1/*! For license information please see formio.form.min.js.LICENSE.txt */ 2!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Formio=t():e.Formio=t()}(self,(function(){return function(){var e={34558:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(66992),n(78783),n(4129),n(33948),n(38880),n(82526),n(41817),n(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(19601),n(92222),n(41539),n(54747),n(39714),n(69600),n(21249),n(24603),n(74916),n(15306),n(26699),n(32023),n(47042);var o=d(n(85542)),i=n(19161),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(82531)),s=d(n(96073)),l=d(n(96486)),u=d(n(30381)),c=d(n(47853));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var h=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=Object.assign({language:"en",highlightErrors:!0,componentErrorClass:"formio-error-wrapper",componentWarningClass:"formio-warning-wrapper",row:"",namespace:"formio"},t||{}),this.id=a.getRandomComponentId(),this.eventHandlers=[],this.i18next=this.options.i18next||s.default,this.events=t&&t.events?t.events:new o.default,this.defaultMask=null,this.helplinks=this.helplinks="false"!==this.options.helplinks&&(this.options.helplinks||"https://help.form.io")}var t,n;return t=e,n=[{key:"on",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.events){var o="".concat(this.options.namespace,".").concat(e);return t.id=this.id,t.key=this.key,t.internal=n,this.events[r?"once":"on"](o,t)}}},{key:"once",value:function(e,t,n){return this.on(e,t,n,!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,t){var n=this;if(this.events){var r="".concat(this.options.namespace,".").concat(e);this.events.listeners(r).forEach((function(e){e&&e.id===n.id&&(t&&t!==e||n.events.off(r,e))}))}}},{key:"emit",value:function(e){if(this.events){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.events).emit.apply(t,["".concat(this.options.namespace,".").concat(e)].concat(r))}}},{key:"hasEventHandler",value:function(e){var t=this;if(!this.events)return!1;var n="".concat(this.options.namespace,".").concat(e);return this.events.listeners(n).some((function(e){return!!e&&(e.id===t.id||e.key===t.key)}))}},{key:"addEventListener",value:function(e,t,n,r){if(e)return r||this.eventHandlers.push({id:this.id,obj:e,type:t,func:n}),"addEventListener"in e?e.addEventListener(t,n,!1):"attachEvent"in e&&e.attachEvent("on".concat(t),n),this}},{key:"removeEventListener",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=[];if(e)return this.eventHandlers.forEach((function(i,a){i.id!==n.id||!e.removeEventListener||i.type!==t||r&&i.func!==r||(e.removeEventListener(t,i.func),o.push(a))})),o.length&&l.default.pullAt(this.eventHandlers,o),this}},{key:"removeEventListeners",value:function(){var e=this;
2this.eventHandlers.forEach((function(t){e.id===t.id&&t.type&&t.obj&&t.obj.removeEventListener&&t.obj.removeEventListener(t.type,t.func)})),this.eventHandlers=[]}},{key:"removeAllEvents",value:function(e){var t=this;l.default.each(this.events._events,(function(n,r){l.default.each(n,(function(n){n&&t.id===n.id&&(e||n.internal)&&t.events.off(r,n)}))}))}},{key:"destroy",value:function(){this.removeEventListeners(),this.removeAllEvents()}},{key:"appendTo",value:function(e,t){return null==t||t.appendChild(e),this}},{key:"prependTo",value:function(e,t){if(t)if(t.firstChild)try{t.insertBefore(e,t.firstChild)}catch(n){console.warn(n),t.appendChild(e)}else t.appendChild(e);return this}},{key:"removeChildFrom",value:function(e,t){if(t&&t.contains(e))try{t.removeChild(e)}catch(e){console.warn(e)}return this}},{key:"ce",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=document.createElement(e);return t&&this.attr(r,t),this.appendChild(r,n),r}},{key:"appendChild",value:function(e,t){var n=this;return Array.isArray(t)?t.forEach((function(t){return n.appendChild(e,t)})):t instanceof HTMLElement||t instanceof Text?e.appendChild(t):t&&e.appendChild(this.text(t.toString())),this}},{key:"maskPlaceholder",value:function(e){var t=this;return e.map((function(e){return e instanceof RegExp?t.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,t,n){if(e&&t){var r=a.getInputMask(t,this.placeholderChar);this.defaultMask=r;try{e.mask&&e.mask.destroy(),e.mask=(0,c.default)({inputElement:e,mask:r,placeholderChar:this.placeholderChar,shadowRoot:this.root?this.root.shadowRoot:null})}catch(e){console.warn(e)}r.numeric&&e.setAttribute("pattern","\\d*"),n&&e.setAttribute("placeholder",this.maskPlaceholder(r))}}},{key:"t",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.i18next).t.apply(t,[e].concat(r))}},{key:"text",value:function(e){return document.createTextNode(this.t(e))}},{key:"attr",value:function(e,t){var n=this;e&&l.default.each(t,(function(t,r){void 0!==t&&(0===r.indexOf("on")?n.addEventListener(e,r.substr(2).toLowerCase(),t):e.setAttribute(r,t))}))}},{key:"hasClass",value:function(e,t){return!!e&&(t=" ".concat(t," ")," ".concat(e.className," ").replace(/[\n\t\r]/g," ").indexOf(t)>-1)}},{key:"addClass",value:function(e,t){if(!(e&&e instanceof HTMLElement))return this;var n=e.getAttribute("class");return null!=n&&n.includes(t)||e.setAttribute("class","".concat(n," ").concat(t)),this}},{key:"removeClass",value:function(e,t){if(!(e&&t&&e instanceof HTMLElement))return this;var n=e.getAttribute("class");return n&&(n=n.replace(new RegExp(" ".concat(t),"g"),""),e.setAttribute("class",n)),this}},{key:"empty",value:function(e){if(e)for(;e.firstChild;)e.removeChild(e.firstChild)}},{key:"evalContext",value:function(e){var t;return Object.assign({_:l.default,utils:a,util:a,user:i.GlobalFormio.getUser(),moment:u.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!==(t=this.options)&&void 0!==t&&t.formConfig?this.options.formConfig:{}},e,l.default.get(this.root,"options.evalContext",{}))}},{key:"interpolate",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return"function"!=typeof e&&this.component.content&&!a.Evaluator.templateSettings.interpolate.test(e)&&(e=a.translateHTMLTemplate(String(e),(function(e){return n.t(e)}))),a.interpolate(e,this.evalContext(t),r)}},{key:"evaluate",value:function(e,t,n,r){return a.evaluate(e,this.evalContext(t),n,r)}},{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));var t="function"==typeof arguments[arguments.length-1]?arguments[arguments.length-1]:null;return t?t(null,arguments[1]):arguments[1]}}],n&&p(t.prototype,n),e}();t.default=h},85542:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(30489),n(41539),n(74819),n(38880),n(12419),n(66992),n(78783),n(4129),n(33948),n(82526),n(41817),n(32165),Object.defineProperty(t,"__esMo
2dule",{value:!0}),t.default=void 0,n(92222);var o=n(26729),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(82531));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=d(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},f.apply(this,arguments)}function d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return u(this,e)});function o(){var e,t,n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,o);var l=a.loadLimit,u=void 0===l?1e3:l,d=a.eventsSafeInterval,m=void 0===d?300:d;h(c(n=r.call(this)),"onAny",(function(e){n.on("any",e)})),h(c(n),"offAny",(function(e){n.off("any",e)}));var v=function(){console.warn("There were more than ".concat(u," events emitted in ").concat(m," ms. It might be caused by events' infinite loop"),n.id)},y=i.observeOverload(v,{limit:u,delay:m});return n.emit=function(){for(var r,i,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];(r=f((e=c(n),p(o.prototype)),"emit",e)).call.apply(r,[e].concat(s)),(i=f((t=c(n),p(o.prototype)),"emit",t)).call.apply(i,[t,"any"].concat(s)),y()},n}return o}(o.EventEmitter);t.default=m},71277:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(66992),n(78783),n(4129),n(33948),n(38880),n(82526),n(41817),n(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(19601),n(41539),n(39714),n(92222),n(30489);var o=f(n(34558)),i=n(19161),a=f(n(9411)),s=f(n(75146)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(82531)),u=f(n(91459));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}
2function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return d=y()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&m(o,n.prototype),o},d.apply(null,arguments)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function v(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(d,e);var t,n,r,o,c,f=(t=d,n=y(),function(){var e,r=b(t);if(n){var o=b(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return v(this,e)});function d(){var e;p(this,d);var t=(arguments.length<=0?void 0:arguments[0])instanceof HTMLElement?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1];return i.GlobalFormio.options&&i.GlobalFormio.options.form&&(t=Object.assign(t,i.GlobalFormio.options.form)),(e=f.call(this,t)).ready=new u.default((function(t,n){e.readyResolve=t,e.readyReject=n})),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=d,c=[{key:"embed",value:function(e){var t=this;return new u.default((function(n){e&&e.src||n();var r=t.id||"formio-".concat(Math.random().toString(36).substring(7)),o=e.class||"formio-form-wrapper",i=e.styles?'<link rel="stylesheet" href="'.concat(e.styles,'">'):"";i+='<div id="'.concat(r,'" class="').concat(o,'"></div>'),document.write(i);var a=0,s=setInterval((function(){a++;var t=document.getElementById(r);(t||a>10)&&(n(new d(t,e.src).ready),clearInterval(s))}),10)}))}}],(o=[{key:"create",value:function(e){return this.options&&(this.options.flatten||"flat"===this.options.renderMode)&&(e="form"),this.display=e,a.default.displays[e]?new a.default.displays[e](this.element,this.options):new a.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 t,n=this;if("string"==typeof(e=e||this.form)){var r,o=new i.GlobalFormio(e);t=this.getSubmission(o).catch((function(e){r=e})).then((function(t){return o.loadForm().catch((function(e){r=e}
2)).then((function(o){if(r&&(o=n.errorForm(r)),n.instance=n.instance||n.create(o.display),n.instance.url=e,n.instance.nosubmit=!1,n._form=n.instance.form=o,t&&(n.instance.submission=t),r)throw r;return n.instance}))}))}else this.instance=this.instance||this.create(e.display),this._form=this.instance.form=e,t=this.instance.ready;return t.then((function(){return n.element=n.instance.element,n.instance}))}},{key:"getSubmission",value:function(e){return e.submissionId?e.loadSubmission():u.default.resolve()}},{key:"setDisplay",value:function(e){return this.display===e&&this.instance?u.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,t){return!1!==this.options.sanitize||t?l.sanitize(e,this.options):e}},{key:"setContent",value:function(e,t,n){return e instanceof HTMLElement&&(e.innerHTML=this.sanitize(t,n),!0)}},{key:"build",value:function(){var e=this;if(!this.instance)return u.default.reject("Form not ready. Use form.ready promise");if(!this.element)return u.default.reject("No DOM element for form.");var t=this.options&&this.options.template?this.options.template:"bootstrap",n=s.default[t].loader||s.default.bootstrap.loader;return this.setContent(this.element,n.form),this.render().then((function(t){return e.setContent(e.element,t),e.attach(e.element).then((function(){return e.instance}))})).then((function(t){return e.emit("build",t),t}))}},{key:"render",value:function(){var e=this;return this.instance?u.default.resolve(this.instance.render()).then((function(t){return e.emit("render",t),t})):u.default.reject("Form not ready. Use form.ready promise")}},{key:"attach",value:function(e){var t=this;return this.instance?(this.element=e,this.instance.attach(this.element).then((function(e){return t.emit("attach",e),e}))):u.default.reject("Form not ready. Use form.ready promise")}}])&&h(r.prototype,o),c&&h(r,c),d}(o.default);t.default=g,i.GlobalFormio.embedForm=function(e){return g.embed(e)},i.GlobalFormio.createForm=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(g,t).ready},i.GlobalFormio.Form=g},19161:function(e,t,n){"use strict";n(47042),n(68309),n(91038),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GlobalFormio=void 0,n(74916),n(4723),n(64765),n(23123),n(92222),n(24603),n(39714),n(15306),n(69600),n(26699),n(32023),n(19601),n(41539),n(54747),n(9653),n(57327),n(2707),n(21249),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948);var r=h(n(91459)),o=h(n(87559)),i=h(n(85542)),a=h(n(4389)),s=h(n(10695)),l=h(n(25325)),u=h(n(27361)),c=h(n(50361)),f=h(n(91747)),d=n(82531),p=h(n(96245));function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||v(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e){return w="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},w(e)}n(5127);var k=(0,o.default)({Promise:r.default}),_=k.fetch,O=k.Headers,x=function(e){return null==e},S=function(e){return e&&"object"===w(e)};function j(e){var t=(0,c.default)(e);
2return Array.isArray(e)&&(t.skip=e.skip,t.limit=e.limit,t.serverCount=e.serverCount),t}var P,C,E=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(b(this,e),!(this instanceof e))return new e(t);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=t,this.options=r,r.hasOwnProperty("base")?this.base=r.base:e.baseUrl?this.base=e.baseUrl:"undefined"!=typeof window&&(this.base=window.location.href.match(/http[s]?:\/\/api./)[0]),!t)return this.projectUrl=e.projectUrl||"".concat(this.base,"/project"),this.projectsUrl="".concat(this.base,"/project"),this.projectId=!1,void(this.query="");r.hasOwnProperty("project")&&(this.projectUrl=r.project);var o=this.projectUrl||e.projectUrl,i=/(^|\/)(project)($|\/[^/]+)/,a=-1!==t.search(i);o&&this.base===o&&!a&&(this.noProject=!0,this.projectUrl=this.base),0!==t.indexOf("http")&&0!==t.indexOf("//")&&(t=this.base+t);var s=this.getUrlParts(t),l=[],u=s[1]+s[2],c=(t=s.length>3?s[3]:"").split("?");c.length>1&&(t=c[0],this.query="?".concat(c[1]));var f=function(e,r){n["".concat(e,"sUrl")]="".concat(r,"/").concat(e);var o=new RegExp("/".concat(e,"/([^/]+)"));return-1!==t.search(o)&&(l=t.match(o),n["".concat(e,"Url")]=l?r+l[0]:"",n["".concat(e,"Id")]=l.length>1?l[1]:"",r+=l[0]),r},d=function e(t,n,r){for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];if(Array.isArray(i))e(i,n,!0);else{var a=f(i,n);n=r?n:a}}};if(!this.projectUrl||this.projectUrl===this.base)if(this.projectUrl||a||"Subdirectories"!==e.pathType)this.projectUrl=u;else{var p="^".concat(u.replace(/\//g,"\\/"),".[^/]+"),h=o.match(new RegExp(p));this.projectUrl=h?h[0]:u}var m=!1;if(e.pathType&&(m="Subdomains"!==e.pathType),!this.noProject){if(a)d(["project"],u),t=t.replace(i,"");else if(u===this.base){if(s.length>3&&t.split("/").length>1){var v=t.split("/");v.shift(),this.projectId=v.shift(),t="/".concat(v.join("/")),this.projectUrl="".concat(u,"/").concat(this.projectId)}}else s.length>2&&(s[2].split(".").length>2||u.includes("localhost"))&&!m&&(this.projectUrl=u,this.projectId=s[2].split(".")[0]);this.projectsUrl=this.projectsUrl||"".concat(this.base,"/project")}if(d(["role"],this.projectUrl),/(^|\/)(form)($|\/)/.test(t))d(["form",["submission","action","v"]],this.projectUrl);else{var y=new RegExp("/(submission|action|v)($|/.*)"),g=t.match(y);this.pathType=g&&g.length>1?g[1]:"",t=(t=t.replace(y,"")).replace(/\/$/,""),this.formsUrl="".concat(this.projectUrl,"/form"),this.formUrl=t?this.projectUrl+t:"",this.formId=t.replace(/^\/+|\/+$/g,"");var w=["submission","action","v"];for(var k in w)if(w.hasOwnProperty(k)){var _=w[k];this["".concat(_,"sUrl")]="".concat(this.projectUrl+t,"/").concat(_),this.pathType===_&&g.length>2&&g[2]&&(this["".concat(_,"Id")]=g[2].replace(/^\/+|\/+$/g,""),this["".concat(_,"Url")]=this.projectUrl+t+g[0])}}e.projectUrlSet||(e.projectUrl=this.projectUrl)}var t,o,i;return t=e,o=[{key:"delete",value:function(t,n){var o="".concat(t,"Id"),i="".concat(t,"Url");return this[o]?(e.cache={},this.makeRequest(t,this[i],"delete",null,n)):r.default.reject("Nothing to delete")}},{key:"index",value:function(t,n,r){var o="".concat(t,"Url");return(n=n||"")&&S(n)&&(n="?".concat(e.serialize(n.params))),this.makeRequest(t,this[o]+n,"get",null,r)}},{key:"save",value:function(t,n,r){var o="".concat(t,"Id"),i="".concat(t,"Url"),a=this[o]||n._id?"put":"post",s=this[o]?this[i]:this["".concat(t,"sUrl")];return this[o]||!n._id||"put"!==a||s.includes(n._id)||(s+="/".concat(n._id)),e.cache={},this.makeRequest(t,s+this.query,a,n,r)}},{key:"load",value:function(t,n,o){var i="".concat(t,"Id"),a="".concat(t,"Url");if(n&&S(n)&&(n=e.serialize(n.params)),n=n?this.query?"".concat(this.query,"&").concat(n):"?".concat(n):this.query,!this[i])return r.default.reject("Missing ".concat(i));var s=this[a]+n;return"form"!==t||isNaN(parseInt(this.vId))||0===parseInt(this.vId)||(s+=s.match(/\?/)?"&":"?",s+="formRevision=".concat(this.vId)),this.makeRequest
2(t,s,"get",null,o)}},{key:"makeRequest",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.makeRequest.apply(e,[this].concat(n))}},{key:"loadProject",value:function(e,t){return this.load("project",e,t)}},{key:"saveProject",value:function(e,t){return this.save("project",e,t)}},{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,t){return this.save("role",e,t)}},{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(t,n){var r=this;return this.load("form",t,n).then((function(o){return!o.revisions||isNaN(parseInt(r.vId))||"current"===o.revisions&&r.submissionId||o._vid===r.vId?o:(t&&S(t)&&(t=e.serialize(t.params)),t=t?r.query?"".concat(r.query,"&").concat(t):"?".concat(t):r.query,r.makeRequest("form",r.vUrl+t,"get",null,n).then((function(e){return o._vid=e._vid,o.components=e.components,o.settings=e.settings,Object.assign({},o)})).catch((function(){return Object.assign({},o)})))}))}},{key:"saveForm",value:function(e,t){return this.save("form",e,t)}},{key:"deleteForm",value:function(e){return this.delete("form",e)}},{key:"loadForms",value:function(e,t){return this.index("forms",e,t)}},{key:"loadSubmission",value:function(e,t){var n=this;return this.load("submission",e,t).then((function(e){return n.vId=e._fvid,n.vUrl="".concat(n.formUrl,"/v/").concat(n.vId),e}))}},{key:"saveSubmission",value:function(e,t){return isNaN(parseInt(this.vId))||(e._fvid=this.vId),this.save("submission",e,t)}},{key:"deleteSubmission",value:function(e){return this.delete("submission",e)}},{key:"loadSubmissions",value:function(e,t){return this.index("submissions",e,t)}},{key:"loadAction",value:function(e,t){return this.load("action",e,t)}},{key:"saveAction",value:function(e,t){return this.save("action",e,t)}},{key:"deleteAction",value:function(e){return this.delete("action",e)}},{key:"loadActions",value:function(e,t){return this.index("actions",e,t)}},{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 new RegExp("^[0-9a-fA-F]{24}$").test(e)}},{key:"getProjectId",value:function(){return this.projectId?this.isObjectId(this.projectId)?r.default.resolve(this.projectId):this.loadProject().then((function(e){return e._id})):r.default.resolve("")}},{key:"getFormId",value:function(){return this.formId?this.isObjectId(this.formId)?r.default.resolve(this.formId):this.loadForm().then((function(e){return e._id})):r.default.resolve("")}},{key:"currentUser",value:function(t){return e.currentUser(this,t)}},{key:"accessInfo",value:function(){return e.accessInfo(this)}},{key:"getToken",value:function(t){return e.getToken(Object.assign({formio:this},this.options,t))}},{key:"setToken",value:function(t,n){return e.setToken(t,Object.assign({formio:this},this.options,n))}},{key:"getTempToken",value:function(t,n,o){if(!e.getToken(o))return r.default.reject("You must be authenticated to generate a temporary auth token.");var i=e.authUrl||this.projectUrl;return this.makeRequest("tempToken","".concat(i,"/token"),"GET",null,{ignoreCache:!0,header:new O({"x-expire":t,"x-allow":n})})}},{key:"getDownloadUrl",value:function(e){var t=this;if(!this.submissionId)return r.default.resolve("");if(!e)return this.loadForm().then((function(e){return e?t.getDownloadUrl(e):""}));var n="/project/".concat(e.project);n+="/form/".concat(e._id),n+="/submission/".concat(this.submissionId),n+="/download";var o=this.base+n;return new r.default((function(e,r){t.getTempToken(3600,"GET:".concat(n)).then((function(t){o+="?token=".concat(t.key),e(o)}),(function(){e(o)})).catch(r)}))}},{key:"uploadFile",value:function(t,n,r,o,i,a,l,u,c,f,d,p){var h=this,m={provider:t,method:"upload",file:n,fileName:r,dir:o};u=u||"file";var v=e.pluginWait("preRequest",m).then((function(){return e.pluginGet("fileRequest",m).then((function(e){if(t&&x(e)){var m=s.default.getProvider("storage",t);if(m){var v=new m(h);return d&&d(),v.uploadFile(n,r,o,i,a,l,u,c,f,p)}throw"Storage provider not found"}return e||{url:""}}))}
2));return e.pluginAlter("wrapFileRequestPromise",v,m)}},{key:"downloadFile",value:function(t,n){var r=this,o={method:"download",file:t},i=e.pluginWait("preRequest",o).then((function(){return e.pluginGet("fileRequest",o).then((function(e){if(t.storage&&x(e)){var o=s.default.getProvider("storage",t.storage);if(o)return new o(r).downloadFile(t,n);throw"Storage provider not found"}return e||{url:""}}))}));return e.pluginAlter("wrapFileRequestPromise",i,o)}},{key:"deleteFile",value:function(t,n){var r=this,o={method:"delete",file:t},i=e.pluginWait("preRequest",o).then((function(){return e.pluginGet("fileRequest",o).then((function(e){if(t.storage&&x(e)){var o=s.default.getProvider("storage",t.storage);if(o)return new o(r).deleteFile(t,n);throw"Storage provider not found"}return e||{url:""}}))}));return e.pluginAlter("wrapFileRequestPromise",i,o)}},{key:"userPermissions",value:function(e,t,n){return r.default.all([void 0!==t?r.default.resolve(t):this.loadForm(),void 0!==e?r.default.resolve(e):this.currentUser(),void 0===n&&this.submissionId?this.loadSubmission():r.default.resolve(n),this.accessInfo()]).then((function(e){var t=e.shift(),n=e.shift()||{_id:!1,roles:[]},r=e.shift(),o=e.shift(),i={create:"create",read:"read",update:"edit",delete:"delete"},a={user:n,form:t,access:o,create:!1,read:!1,edit:!1,delete:!1};for(var s in o.roles)if(o.roles.hasOwnProperty(s)){var c=o.roles[s];if(c.default&&!1===n._id)n.roles.push(c._id);else if(c.admin&&-1!==n.roles.indexOf(c._id))return a.create=!0,a.read=!0,a.delete=!0,a.edit=!0,a}if(t&&t.submissionAccess)for(var f=0;f<t.submissionAccess.length;f++){var p=t.submissionAccess[f],h=m(p.type.split("_"),2),v=h[0],y=h[1];["create","read","update","delete"].includes(v)&&(0,l.default)(p.roles,n.roles).length&&(a[i[v]]="all"===y||!r||n._id===r.owner)}return r&&(0,d.eachComponent)(t.components,(function(e,t){if(e&&e.defaultPermission){var o=(0,u.default)(r.data,t);(Array.isArray(o)?o:[o]).forEach((function(t){t&&t._id&&n.roles.indexOf(t._id)>-1&&("read"===e.defaultPermission&&(a[i.read]=!0),"create"===e.defaultPermission&&(a[i.create]=!0,a[i.read]=!0),"write"===e.defaultPermission&&(a[i.create]=!0,a[i.read]=!0,a[i.update]=!0),"admin"===e.defaultPermission&&(a[i.create]=!0,a[i.read]=!0,a[i.update]=!0,a[i.delete]=!0))}))}})),a}))}},{key:"canSubmit",value:function(){var t=this;return this.userPermissions().then((function(n){return!n.create&&e.getUser()?t.userPermissions(null).then((function(t){return!!t.create&&(e.setUser(null),!0)})):n.create}))}},{key:"getUrlParts",value:function(t){return e.getUrlParts(t,this)}}],i=[{key:"loadProjects",value:function(t,n){return S(t=t||"")&&(t="?".concat(e.serialize(t.params))),e.makeStaticRequest("".concat(e.baseUrl,"/project").concat(t),"GET",null,n)}},{key:"getUrlParts",value:function(t,n){var r=n&&n.base?n.base:e.baseUrl,o="^(http[s]?:\\/\\/)";return r&&0===t.indexOf(r)?o+="(".concat(r.replace(/^http[s]?:\/\//,""),")"):o+="([^/]+)",o+="($|\\/.*)",t.match(new RegExp(o))}},{key:"serialize",value:function(e,t){var n,r=[];for(var o in e)e.hasOwnProperty(o)&&r.push("".concat(encodeURIComponent(o),"=").concat(encodeURIComponent((n=e[o],t?t(n):n))
2));return r.join("&")}},{key:"getRequestArgs",value:function(e,t,n,r,o,i){r=(r||"GET").toUpperCase(),i&&S(i)||(i={});var a={url:n,method:r,data:o||null,opts:i};return t&&(a.type=t),e&&(a.formio=e),a}},{key:"makeStaticRequest",value:function(t,n,r,o){var i=e.getRequestArgs(null,"",t,n,r,o),a=e.pluginWait("preRequest",i).then((function(){return e.pluginGet("staticRequest",i).then((function(t){return x(t)?e.request(i.url,i.method,i.data,i.opts.header,i.opts):t}))}));return e.pluginAlter("wrapStaticRequestPromise",a,i)}},{key:"makeRequest",value:function(t,n,r,o,i,a){if(!t)return e.makeStaticRequest(r,o,i,a);var s=e.getRequestArgs(t,n,r,o,i,a);s.opts=s.opts||{},s.opts.formio=t,s.opts.headers||(s.opts.headers={}),s.opts.headers=(0,f.default)(s.opts.headers,{Accept:"application/json","Content-type":"application/json"});var l=e.pluginWait("preRequest",s).then((function(){return e.pluginGet("request",s).then((function(t){return x(t)?e.request(s.url,s.method,s.data,s.opts.header,s.opts):t}))}));return e.pluginAlter("wrapRequestPromise",l,s)}},{key:"request",value:function(t,n,o,i,a){if(!t)return r.default.reject("No url provided");var s=e;n=(n||"GET").toUpperCase(),w(a)===w(!0)&&(a={ignoreCache:a}),a&&S(a)||(a={});var l=btoa(encodeURI(t));if(!a.ignoreCache&&"GET"===n&&s.cache.hasOwnProperty(l))return r.default.resolve(j(s.cache[l]));var u=i||new O(a.headers||{Accept:"application/json","Content-type":"application/json"}),c=s.getToken(a);c&&!a.noToken&&u.append("x-jwt-token",c);var f={};u.forEach((function(e,t){f[t]=e}));var d={method:n,headers:f,mode:"cors"};o&&(d.body=JSON.stringify(o)),((d=s.pluginAlter("requestOptions",d,t)).namespace||s.namespace)&&(a.namespace=d.namespace||s.namespace);var p=d.headers["x-jwt-token"],h=s.pluginAlter("wrapFetchRequestPromise",s.fetch(t,d),{url:t,method:n,data:o,opts:a}).then((function(e){if(!(e=s.pluginAlter("requestResponse",e,s,o)).ok){if(440===e.status)s.setToken(null,a),s.events.emit("formio.sessionExpired",e.body);else if(401===e.status)s.events.emit("formio.unauthorized",e.body);else if(416===e.status)s.events.emit("formio.rangeIsNotSatisfiable",e.body);else if(504===e.status)return r.default.reject(new Error("Network request failed"));return(e.headers.get("content-type").includes("application/json")?e.json():e.text()).then((function(e){return r.default.reject(e)}))}var i=e.headers.get("x-jwt-token"),l=!1;return"GET"!==n||p||!i||a.external||t.includes("token=")||t.includes("x-jwt-token=")||(console.warn("Token was introduced in request."),l=!0),e.status>=200&&e.status<300&&i&&""!==i&&!l&&s.setToken(i,a),204===e.status?{}:(e.headers.get("content-type").includes("application/json")?e.json():e.text()).then((function(t){var n=e.headers.get("content-range");if(n&&S(t)){if("*"!==(n=n.split("/"))[0]){var r=n[0].split("-");t.skip=Number(r[0]),t.limit=r[1]-r[0]+1}t.serverCount="*"===n[1]?n[1]:Number(n[1])}if(!a.getHeaders)return t;var o={};return e.headers.forEach((function(e,t){o[t]=e})),{result:t,headers:o}}))})).then((function(e){return a.getHeaders?e:("GET"===n&&(s.cache[l]=e),j(e))})).catch((function(e){return"Bad Token"===e&&(s.setToken(null,a),s.events.emit("formio.badToken",e)),e.message&&(e.message="Could not connect to API server (".concat(e.message,")"),e.networkError=!0),"GET"===n&&delete s.cache[l],r.default.reject(e)}));return h}},{key:"token",get:function(){return e.tokens||(e.tokens={}),e.tokens.formioToken||""},set:function(t){e.tokens||(e.tokens={}),e.tokens.formioToken=t||""}},{key:"setToken",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;t=t||"";var o="".concat((n="string"==typeof n?{namespace:n}:n||{}).namespace||e.namespace||"formio","Token");if(e.tokens||(e.tokens={}),!t){n.fromUser||(n.fromToken=!0,e.setUser(null,n));try{localStorage.removeItem(o)}catch(e){a.default.erase(o,{path:"/"})}return e.tokens[o]=t,r.default.resolve(null)}if(e.tokens[o]!==t){e.tokens[o]=t;try{localStorage.setItem(o,t)}catch(e){a.default.set(o,t,{path:"/"})}}return this.currentUserResolved?e.currentUser(n.formio,n):r.default.resolve(null)}},{key:"getToken",value:function(t){var n="".concat((t="string"==typeof t?{namespace:t}:t||{}).namespace||e.namespace||"formio","Token"),r=t.decode?"".concat(n,"Decoded"):n;if(e.tokens||(e.tokens={}),e.tokens[r])return e.tokens[r];try{return e.tokens[n]=localStorage.getItem(n)||"",t.decode?(e.tokens[r]=e.tokens[n]?(0,p.default)(e.tokens[n]):{},e.tokens[r]):e.tokens[n]}catch(t){return e.tokens[n]=a.default.get(n),e.tokens[n]}}},{key:"setUser",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="".concat(n.namespace||e.namespace||"formio","User");if(!t){n.fromToken||(n.fromUser=!0,e.setToken(null,n)),e.events.emit("formio.user",null);try{return localStorage.removeItem(r)}catch(e){return a.default.erase(r,{path:"/"})}}try{localStorage.setItem(r,JSON.stringify(t))}catch(e){a.default.set(r,JSON.stringify(t),{path:"/"})}e.events.emit("formio.user",t)}},{key:"getUser",value:function(t){var n="".concat((t=t||{}).namespace||e.namespace||"formio","User");try{return JSON.parse(localStorage.getItem(n)||null)}catch(e){return JSON.parse(a.default.get(n))}}},{key:"setBaseUrl",value:function(t){e.baseUrl=t,e.projectUrlSet||(e.projectUrl=t)}},{key:"getBaseUrl",value:function(){return e.baseUrl}},{key:"setApiUrl",value:function(t){return e.setBaseUrl(t)}},{key:"getApiUrl",value:function(){return e.getBaseUrl()}},{key:"setAppUrl",value:function(t){console.warn("Formio.setAppUrl() is deprecated. Use Formio.setProjectUrl instead."),e.projectUrl=t,e.projectUrlSet=!0}},{key:"setProjectUrl",value:function(t){e.projectUrl=t,e.projectUrlSet=!0}},{key:"setAuthUrl",value:function(t){e.authUrl=t}},{key:"getAppUrl",value:function(){return console.warn("Formio.getAppUrl() is deprecated. Use Formio.getProjectUrl instead."),e.projectUrl}},{key:"getProjectUrl",value:function(){return e.projectUrl}},{key:"clearCache",value:function(){e.cache={}}},{key:"noop",value:function(){}},{key:"identity",value:function(e){return e}},{key:"deregisterPlugin",value:function(t){var n=e.plugins.length;return e.plugins=e.plugins.filter((function(n){return n!==t&&n.__name!==t||((n.deregister||e.noop).call(t,e),!1)})),n!==e.plugins.length}},{key:"registerPlugin",value:function(t,n){var r=e;r.plugins.push(t),r.plugins.sort((function(e,t){return(t.priority||0)-(e.priority||0)}
2)),t.__name=n,(t.init||r.noop).call(t,r)}},{key:"getPlugin",value:function(t){var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=v(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e.plugins);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.__name===t)return o}}catch(e){r.e(e)}finally{r.f()}return null}},{key:"pluginWait",value:function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.all(e.plugins.map((function(n){var r;return(r=n[t]||e.noop).call.apply(r,[n].concat(o))})))}},{key:"pluginGet",value:function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];var a=function n(i){var a,s=e.plugins[i];return s?r.default.resolve((a=s[t]||e.noop).call.apply(a,[s].concat(o))).then((function(e){return x(e)?n(i+1):e})):r.default.resolve(null)};return a(0)}},{key:"pluginAlter",value:function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return e.plugins.reduce((function(n,r){return(r[t]||e.identity).apply(void 0,[n].concat(o))}),n)}},{key:"accessInfo",value:function(t){var n=t?t.projectUrl:e.projectUrl;return e.makeRequest(t,"accessInfo","".concat(n,"/access"))}},{key:"projectRoles",value:function(t){var n=t?t.projectUrl:e.projectUrl;return e.makeRequest(t,"projectRoles","".concat(n,"/role"))}},{key:"currentUser",value:function(t,n){var o=this,i=e.authUrl;i||(i=t?t.projectUrl:e.projectUrl||e.baseUrl),i+="/current";var a=e.getUser(n);if(a)return e.pluginAlter("wrapStaticRequestPromise",r.default.resolve(a),{url:i,method:"GET",options:n});var s=e.getToken(n);return n&&n.external||s?(this.currentUserResolved=!1,e.makeRequest(t,"currentUser",i,"GET",null,n).then((function(t){return o.currentUserResolved=!0,e.setUser(t,n),t}))):e.pluginAlter("wrapStaticRequestPromise",r.default.resolve(null),{url:i,method:"GET",options:n})}},{key:"logout",value:function(t,n){(n=n||{}).formio=t;var r=e.authUrl?e.authUrl:t?t.projectUrl:e.baseUrl;return e.makeRequest(t,"logout","".concat(r,"/logout")).then((function(t){return e.setToken(null,n),e.setUser(null,n),e.clearCache(),t})).catch((function(t){throw e.setToken(null,n),e.setUser(null,n),e.clearCache(),t}))}},{key:"pageQuery",value:function(){var e={paths:[]},t=location.hash.substr(1).replace(/\?/g,"&").split("&"),n=[];return location.search.substr(1).split("&").forEach((function(t){(n=t.split("=")).length>1&&(e[n[0]]=n[1]&&decodeURIComponent(n[1]))})),t.forEach((function(t){(n=t.split("=")).length>1?e[n[0]]=n[1]&&decodeURIComponent(n[1]):0===t.indexOf("/")&&(e.paths=t.substr(1).split("/"))})),e}},{key:"oAuthCurrentUser",value:function(t,n){return e.currentUser(t,{external:!0,headers:{Authorization:"Bearer ".concat(n)}})}},{key:"samlInit",value:function(t){t=t||{};var n=e.pageQuery();if(n.saml){e.setUser(null);var r=e.setToken(n.saml),o=window.location.toString();return o=o.substring(0,o.indexOf("?")),window.location.hash&&(o+=window.location.hash),window.history.replaceState({},document.title,o),r}t.relay||(t.relay=window.location.href);var i=e.authUrl||e.projectUrl;return window.location.href="".concat(i,"/saml/sso?relay=").concat(encodeURI(t.relay)),!1}},{key:"oktaInit",value:function(t){if(t=t||{},void 0!==("undefined"==typeof OktaAuth?"undefined":w(OktaAuth))&&(t.OktaAuth=OktaAuth),void 0===w(t.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),r.default.reject(n)}return new r.default((function(n,r){var o=t.OktaAuth;delete t.OktaAuth;var i=new o(t);i.tokenManager.get("accessToken").then((function(o){o?n(e.oAuthCurrentUser(t.formio,o.accessToken)):location.hash?i.token.parseFromUrl().then((function(r){i.tokenManager.add("accessToken",r),n(e.oAuthCurrentUser(t.formio,r.accessToken))})).catch((function(e){console.warn(e),r(e)})):(i.token.getWithRedirect({responseType:"token",scopes:t.scopes}),n(!1))})).catch((function(e){r(e)}))}))}},{key:"ssoInit",value:function(t,n){switch(t){case"saml":return e.samlInit(n);case"okta":return e.oktaInit(n);default:return console.warn("Unknown SSO type"),r.default.reject("Unknown SSO type")}}},{key:"requireLibrary",value:function(t,n,o,i,a){if(!e.libraries.hasOwnProperty(t)){e.libraries[t]={},e.libraries[t].ready=new r.default((function(n,r){e.libraries[t].resolve=n,e.libraries[t].reject=r}));var s="".concat(t,"Callback");i||window[s]||(window[s]=function(){return e.libraries[t].resolve()});var l=(0,u.default)(window,n);if(l)e.libraries[t].resolve(l);
2else if((o=Array.isArray(o)?o:[o]).forEach((function(n){var r={},o="";switch("string"==typeof n&&(n={type:"script",src:n}),n.type){case"script":o="script",r={src:n.src,type:"text/javascript",defer:!0,async:!0,referrerpolicy:"origin"};break;case"styles":o="link",r={href:n.src,rel:"stylesheet"}}var i=document.createElement(o);if(i.setAttribute)for(var s in r)i.setAttribute(s,r[s]);a&&i.addEventListener("load",(function(){return a(e.libraries[t].ready)}));var l=document.head;l&&l.appendChild(i)})),i)var c=setInterval((function(){var r=(0,u.default)(window,n);r&&(clearInterval(c),e.libraries[t].resolve(r))}),200)}var f=e.libraries[t].ready;return a?a(f):f}},{key:"libraryReady",value:function(t){return e.libraries.hasOwnProperty(t)&&e.libraries[t].ready?e.libraries[t].ready:r.default.reject("".concat(t," library was not required."))}},{key:"addToGlobal",value:function(t){"object"!==w(t)||t.Formio||(t.Formio=e)}},{key:"setPathType",value:function(t){"string"==typeof t&&(e.pathType=t)}},{key:"getPathType",value:function(){return e.pathType}},{key:"rulesEntities",get:function(){return{ValueSources:e.ValueSources,Conjunctions:e.Conjunctions,Operators:e.Operators,Transformers:e.Transformers,QuickRules:e.QuickRules,Rules:e.Rules}}},{key:"GlobalFormio",get:function(){return void 0!==n.g&&n.g.Formio?n.g.Formio:"undefined"!=typeof window&&window.Formio?window.Formio:e}}],o&&g(t.prototype,o),i&&g(t,i),e}();(C="currentUserResolved")in(P=E)?Object.defineProperty(P,C,{value:true,enumerable:!0,configurable:!0,writable:!0}):P[C]=true,E.libraries={},E.Promise=r.default,E.fetch=_,E.Headers=O,E.baseUrl="https://api.form.io",E.projectUrl=E.baseUrl,E.authUrl="",E.projectUrlSet=!1,E.plugins=[],E.cache={},E.Providers=s.default,E.version="4.14.3",E.pathType="",E.events=new i.default,void 0!==n.g&&E.addToGlobal(n.g),"undefined"!=typeof window&&E.addToGlobal(window);var A=E.GlobalFormio;t.GlobalFormio=A;var M=E;t.default=M},48254:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(47941),n(82526),n(57327),n(54747),n(49337),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(41539),n(88674),n(69826),n(69600),n(68309),n(73210),n(30489);var o=l(n(91459)),i=n(19161),a=l(n(12215)),s=n(82531);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=p(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},d.apply(this,arguments)}function p(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(p,e);var t,n,r,a,l=(r=p,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(r);if(a){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return m(this,e)});function p(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),t.display="pdf",(n=l.call(this,e,t)).components=[],n}return t=p,n=[{key:"init",value:function(){var e=this;d(v(p.prototype),"init",this).call(this),this.on("iframe-submission",(function(t){return e.setValue(t,{fromIframe:!0})}),!0),this.on("iframe-change",(function(t){return e.setValue(t,{fromIframe:!0})}),!0),this.on("iframe-getIframePositions",(function(t){var n=document.getElementById("iframe-".concat(t.formId));if(n){var r=n.getBoundingClientRect();e.postMessage({name:"iframePositions",data:{formId:t.formId,iframe:{top:r.top},scrollY:window.scrollY||window.pageYOffset}})}})),this.on("iframe-ready",(function(){return e.iframeReadyResolve()}),!0)}},{key:"render",value:function(){return this.submitButton=this.addComponent({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?o.default.resolve():d(v(p.prototype),"redraw",this).call(this)}},{key:"rebuild",value:function(){return this.builderMode&&this.component.components?(this.destroyComponents(),this.addComponents(),o.default.resolve()):(this.postMessage({name:"redraw"}),d(v(p.prototype),"rebuild",this).call(this))}},{key:"attachComponents",value:function(e,t,n){return t=t||this.components,n=n||this.component.components,e=this.hook("attachComponents",e,t,n,this),Promise.resolve()}},{key:"attach",value:function(e){var t=this;return d(v(p.prototype),"attach",this).call(this,e).then((function(){t.loadRefs(e,{button:"single",buttonMessageContainer:"single",buttonMessage:"single",zoomIn:"single",zoomOut:"single",iframeContainer:"single"}),t.submitButton.refs=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?u(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t.refs),t.submitButton.attachButton(),t.iframeReady=new o.default((function(e,n){t.iframeReadyResolve=e,t.iframeReadyReject=n})),t.iframeElement=t.ce("iframe",{src:t.getSrc(),id:"iframe-".concat(t.id),seamless:!0,class:"formio-iframe"}),t.iframeElement.formioContainer=t.component.components,t.iframeElement.formioComponent=t,t.empty(t.refs.iframeContainer),t.appendChild(t.refs.iframeContainer,t.iframeElement),t.form.base=i.GlobalFormio.getBaseUrl(),t.form.projectUrl=i.GlobalFormio.getProjectUrl(),t.postMessage({name:"form",data:t.form});var n=t.components.find((function(e){return e.element===t.refs.button}));n&&t.refs.button.classList.toggle("hidden",!n.visible),t.addEventListener(t.refs.zoomIn,"click",(function(e){e.preventDefault(),t.postMessage({name:"zoomIn"})})),t.addEventListener(t.refs.zoomOut,"click",(function(e){e.preventDefault(),t.postMessage({name:"zoomOut"})}));var r=(0,s.fastCloneDeep)(t.form);t.formio&&(r.projectUrl=t.formio.projectUrl,r.url=t.formio.formUrl,r.base=t.formio.base,t.postMessage({name:"token",data:t.formio.getToken()})),t.emit("attach")}))}},{key:"getSubmission",value:function(){var e=this;return new o.default((function(t){e.once("iframe-submission",t),e.postMessage({name:"getSubmission"})}))}},{key:"submitForm",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.postMessage({name:"getErrors"}),this.getSubmission().then((function(){return d(v(p.prototype),"submitForm",e).call(e,t)}))}},{key:"getSrc",value:function(){if(!this._form||!this._form.settings||!this._form.settings.pdf)return"";var e="".concat(this._form.settings.pdf.src,".html"),t=["id=".concat(this.id)];return(this.options.showCheckboxBackground||this._form.settings.showCheckboxBackground)&&t.push("checkboxbackground=1"),this.options.readOnly&&t.push("readonly=1"),this.options.zoom&&t.push("zoom=".concat(this.options.zoom)),this.builderMode&&t.push("builder=1"),t.length&&(e+="?".concat(t.join("&"))),e}},{key:"setForm",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d(v(p.prototype),"setForm",this).call(this,e,n).then((function(){t.formio&&(e.projectUrl=t.formio.projectUrl,e.url=t.formio.formUrl,e.base=t.formio.base,t.postMessage({name:"token",data:t.formio.getToken()})),t.postMessage({name:"form",data:t.form})}))}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=d(v(p.prototype),"setValue",this).call(this,e,n);return n&&n.fromIframe||this.once("iframe-ready",(function(){r&&t.postMessage({name:"submission",data:e})})),r}},{key:"postMessage",value:function(e){var t=this;this.iframeReady&&(e.type||(e.type="iframe-data"),this.iframeReady.then((function(){!t.iframeElement||!t.iframeElement.contentWindow||"form"===e.name&&t.iframeFormSetUp||(t.iframeElement.contentWindow.postMessage(JSON.stringify(e),"*"),t.iframeFormSetUp="form"===e.name)})))}},{key:"focusOnComponent",value:function(e){this.postMessage({name:"focusErroredField",data:e})}},{key:"clear",value:function(){}},{key:"showErrors",value:function(e,t){var n,r=document.getElementById("submit-error"),o=this.t("submitError"),i=(null===(n=this.refs.buttonMessage)||void 0===n?void 0:n.textContent.trim())===o;if(!r&&this.errors.length&&!i){var a=this.ce("p",{class:"help-block"});this.setContent(a,o),a.addEventListener("click",(function(){window.scrollTo(0,0)}));var s=this.ce("div",{id:"submit-error",class:"has-error"});this.appendTo(a,s),this.appendTo(s,this.element)}!this.errors.length&&r&&r.remove(),d(v(p.prototype),"showErrors",this).call(this,e,t)}},{key:"isSubmitButtonHidden",value:function(){var e=!1;return(0,s.eachComponent)(this.component.components,(function(t){"button"!==t.type||"submit"!==t.action&&t.action||(e=t.hidden||!1)})),e}}],n&&f(t.prototype,n),p}(a.default);t.default=y,"undefined"!=typeof window&&window.addEventListener("message",(function(e){var t=null;try{t=JSON.parse(e.data)}catch(e){t=null}t&&t.name&&t.formId&&i.GlobalFormio.forms.hasOwnProperty(t.formId)&&i.GlobalFormio.forms[t.formId].emit("iframe-".concat(t.name),t.data)}))},6487:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(91038),n(47042),n(68309),n(74916),Ob
2ject.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(21249),n(92222),n(26699),n(32023),n(41539),n(54747),n(30489);var o=d(n(96486)),i=d(n(91459)),a=n(19161),s=d(n(95529)),l=n(82531),u=n(32725),c=d(n(1848)),f=d(n(48254));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=b(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},y.apply(this,arguments)}function b(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=k(e)););return e}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function w(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(h,e);var t,n,r,s,d=(r=h,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=k(r);if(s){var n=k(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return w(this,e)});function h(){var e,t,n;return m(this,h),arguments[0]instanceof HTMLElement||arguments[1]?(t=arguments[0],n=arguments[1]):n=arguments[0],n.skipInit=!0,n.display="pdf",(e=t?d.call(this,t,n):d.call(this,n)).dragDropEnabled=!1,w(e)}return t=h,(n=[{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 o.default.has(this.webform.form,"settings.pdf")}},{key:"projectUrl",get:function(){return this.options.projectUrl||a.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(t){return e.renderTemplate("builderSidebarGroup",{group:e.groups[t],groupKey:t,groupId:"builder-sidebar-".concat(e.id),subgroups:e.groups[t].subgroups.map((function(n){return e.renderTemplate("builderSidebarGroup",{group:n,groupKey:n.key,groupId:"group-container-".concat(t),subgroups:[]})}))})}))}),form:this.hasPDF?this.webform.render():this.renderTemplate("pdfBuilderUpload",{})})}},{key:"attach",value:function(e){var t=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 n=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(),n.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 t.refs.hiddenFileInputElement.trigger?t.refs.hiddenFileInputElement.trigger("click"):t.refs.hiddenFileInputElement.click()})),this.addEventListener(this.refs.hiddenFileInputElement,"change",(function(){t.refs.hiddenFileInputElement.value&&(t.upload(t.refs.hiddenFileInputElement.files[0]),t.refs.hiddenFileInputElement.value="")}
2))),i.default.resolve()}return y(k(h.prototype),"attach",this).call(this,e).then((function(){return t.loadRefs(t.element,{iframeDropzone:"single","sidebar-container":"multiple",sidebar:"single"}),t.afterAttach(),t.element}))}},{key:"afterAttach",value:function(){var e=this;this.on("saveComponent",(function(t){e.webform.postMessage({name:"updateElement",data:t})})),this.on("removeComponent",(function(t){e.webform.postMessage({name:"removeElement",data:t})})),this.initIframeEvents(),this.updateDropzoneDimensions();var t=this.refs.sidebar;t&&(this.addClass(t,"disabled"),this.webform.on("iframe-ready",(function(){e.pdfLoaded=!0,e.updateDragAndDrop(),e.removeClass(t,"disabled")}),!0))}},{key:"redraw",value:function(){var e=this;return y(k(h.prototype),"redraw",this).call(this).then((function(){return e.webform.redraw()}))}},{key:"upload",value:function(e){var t=this,n=new a.GlobalFormio(this.projectUrl);this.refs.dragDropText&&(this.refs.dragDropText.style.display="none"),this.refs.uploadProgressWrapper&&(this.refs.uploadProgressWrapper.style.display="inherit"),n.uploadFile("url",e,e,"",(function(e){if(t.refs.uploadProgress){var n=Math.floor(e.loaded/e.total*100);t.refs.uploadProgress.style.width="".concat(n,"%"),t.refs.uploadProgress.innerHTML=n>98?t.t("Converting PDF. Please wait."):"".concat(t.t("Uploading")," ").concat(n,"%")}}),"".concat(this.projectUrl,"/upload"),{},"file").then((function(e){o.default.set(t.webform.form,"settings.pdf",{id:e.data.file,src:"".concat(e.data.filesServer).concat(e.data.path)}),t.refs.dragDropText&&(t.refs.dragDropText.style.display="inherit"),t.refs.uploadProgressWrapper&&(t.refs.uploadProgressWrapper.style.display="none"),t.emit("pdfUploaded",e.data),t.redraw()})).catch((function(e){return t.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 t=this;return e.skipInit=!1,e.hideLoader=!0,this.webform=new f.default(this.element,e),this.webform.on("attach",(function(){t.refs.iframeDropzone&&!p(t.refs.form.children).includes(t.refs.iframeDropzone)&&t.prependTo(t.refs.iframeDropzone,t.refs.form)})),this.webform}},{key:"destroy",value:function(e){y(k(h.prototype),"destroy",this).call(this,e),this.webform.destroy(e)}},{key:"getParentContainer",value:function(e){var t=[],n=null;return(0,u.eachComponent)(this.webform._form.components,(function(r,o,i){if
2(r.id===e.component.id)return t=i,n=r,!0}),!0),{formioComponent:e.parent,formioContainer:t,originalComponent:n}}},{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(t){var n=e.webform.getComponentById(t.id);return n&&n.component&&(n.component.overlay={page:t.page,left:t.left,top:t.top,height:t.height,width:t.width},e.options.noNewEdit||n.component.noNewEdit||e.editComponent(n.component,e.getParentContainer(n),!0),e.emit("updateComponent",n.component)),n})),this.webform.on("iframe-componentUpdate",(function(t){var n=e.webform.getComponentById(t.id);return n&&n.component&&(n.component.overlay={page:t.overlay.page,left:t.overlay.left,top:t.overlay.top,height:t.overlay.height,width:t.overlay.width},e.emit("updateComponent",n.component),e.emit("change",e.form)),n})),this.webform.on("iframe-componentClick",(function(t){var n=e.webform.getComponentById(t.id);n&&e.editComponent(n.component,e.getParentContainer(n))}),!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(t){p(t.children).forEach((function(t){t.draggable=!0,t.setAttribute("draggable",!0),e.removeEventListener(t,"dragstart"),e.removeEventListener(t,"dragend"),e.addEventListener(t,"dragstart",e.onDragStart.bind(e),!0),e.addEventListener(t,"dragend",e.onDragEnd.bind(e),!0),e.addEventListener(t,"drag",(function(e){e.target.style.cursor="none"}))}))}))}},{key:"updateDropzoneDimensions",value:function(){if(this.refs.iframeDropzone){var e=(0,l.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 t=e.offsetX,n=void 0===t?0:t,r=e.offsetY,o=void 0===r?0:r;this.itemOffsetX=n,this.itemOffsetY=o,e.dataTransfer.setData("text",""),this.updateDropzoneDimensions(),this.addClass(this.refs.iframeDropzone,"enabled")}},{key:"onDropzoneDrop",value:function(e){return this.dropEvent=e,e.preventDefault(),!1}},{key:"onDragEnd",value:function(e){var t=this.dropEvent?this.dropEvent.layerX:null,n=this.dropEvent?this.dropEvent.layerY:null;if(this.removeClass(this.refs.iframeDropzone,"enabled"),this.dropEvent){var r=e.target,i=r.getAttribute("data-type"),a=r.getAttribute("data-key"),s=r.getAttribute("data-group"),u=(0,l.fastCloneDeep)(this.schemas[i]);if(a&&s){var f=this.getComponentInfo(a,s);o.default.merge(u,f)}c.default.uniquify([this.webform._form],u),this.webform._form.components.push(u),u.overlay={top:n-this.itemOffsetY+20,left:t-this.itemOffsetX,width:100,height:20},this.webform.addComponent(u,{},null,!0),this.webform.postMessage({name:"addElement",data:u}),this.emit("addComponent",u,this.webform,u.key,this.webform.component.components.length,!this.options.noNewEdit&&!u.noNewEdit),this.dropEvent=null,e.target.style.cursor="default"}}},{key:"highlightInvalidComponents",value:function(){var e=this,t=this.findRepeatablePaths();o.default.isEqual(this.repeatablePaths,t)||((0,u.eachComponent)(this.webform.getComponents(),(function(t,n){e.repeatablePaths.includes(n)&&e.webform.postMessage({name:"updateElement",data:t.component})})),this.repeatablePaths=t),t.length&&(0,u.eachComponent)(this.webform.getComponents(),(function(t,n){e.repeatablePaths.includes(n)&&e.webform.postMessage({name:"showBuilderErrors",data:{compId:t.component.id,errorMessage:"API Key is not unique: ".concat(t.key)}})}))}}])&&v(t.prototype,n),h}(s.default);t.default=_},12215:function(e,t,n){"use strict";n(30489),n(12419),n(74819),n(38880),n(47941),n(82526),n(49337),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esMo
2dule",{value:!0}),t.default=void 0,n(74916),n(23123),n(19601),n(41539),n(54747),n(92222),n(57327),n(26699),n(32023),n(21249),n(68309);var r=m(n(96486)),o=m(n(30381)),i=m(n(74247)),a=m(n(85542)),s=m(n(96073)),l=m(n(68204)),u=n(19161),c=m(n(91459)),f=m(n(39086)),d=m(n(67329)),p=n(82531),h=n(32725);function m(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},v(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(){return k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=_(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},k.apply(this,arguments)}function _(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=j(e)););return e}function O(e,t){return O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},O(e,t)}function x(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
2function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e){var t;return(e=r.default.defaults(e,{submitOnEnter:!1,iconset:(t=e&&e.icons?e.icons:u.GlobalFormio.icons,"fontawesome"===t?"fa":t||""),i18next:s.default,saveDraft:!1,alwaysDirty:!1,saveDraftThrottle:5e3,display:"form"})).events||(e.events=new a.default),e}u.GlobalFormio.forms={},u.GlobalFormio.registerComponent=f.default.setComponent;var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(d,e);var t,n,a,s,f=(a=d,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=j(a);if(s){var n=j(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return x(this,e)});function d(){var e,t,n;g(this,d),arguments[0]instanceof HTMLElement||arguments[1]?(t=arguments[0],n=arguments[1]):n=arguments[0],P(S(e=f.call(this,null,C(n))),"executeShortcuts",(function(t){var n=t.target;if(e.keyboardCatchableElement(n)){var o=t.ctrlKey||t.metaKey,i=t.keyCode,a="";65<=i&&i<=90?a=String.fromCharCode(i):13===i?a="Enter":27===i&&(a="Esc"),r.default.each(e.shortcuts,(function(e){e.ctrl&&!o||e.shortcut===a&&(e.element.click(),t.preventDefault())}))}})),e.element=t,u.GlobalFormio.forms[e.id]=S(e),e.options.baseUrl&&u.GlobalFormio.setBaseUrl(e.options.baseUrl);var o=l.default;if(n&&n.i18n&&!n.i18nReady&&(n.i18n.resources?o=n.i18n:r.default.each(n.i18n,(function(e,t){"options"===t?r.default.merge(o,e):o.resources[t]?r.default.assign(o.resources[t].translation,e):o.resources[t]={translation:r.default.assign((0,p.fastCloneDeep)(l.default.resources.en.translation),e)}}
2)),n.i18n=o,n.i18nReady=!0),n&&n.i18n?e.options.i18n=n.i18n:e.options.i18n=o,e.options.language&&(e.options.i18n.lng=e.options.language),e.type="form",e._src="",e._loading=!1,e._form={},e.draftEnabled=!1,e.savingDraft=!0,e.options.saveDraftThrottle?e.triggerSaveDraft=r.default.throttle(e.saveDraft.bind(S(e)),e.options.saveDraftThrottle):e.triggerSaveDraft=e.saveDraft.bind(S(e)),e.customErrors=[],e.nosubmit=!1,e.submitted=!1,e.submitting=!1,e.formio=null,e.loader=null,e.alert=null,e.onSubmission=null,e.submissionSet=!1,e.formReady=new c.default((function(t,n){e.formReadyResolve=t,e.formReadyReject=n})),e.submissionReady=new c.default((function(t,n){e.submissionReadyResolve=t,e.submissionReadyReject=n})),e.shortcuts=[],e.localize().then((function(){e.language=e.options.language})),e.options.saveDraft&&!e.options.skipDraftRestore){var i=u.GlobalFormio.getUser();i&&!e.submissionSet&&e.restoreDraft(i._id)}return e.component.clearOnHide=!1,e.root=S(e),e.localRoot=S(e),e}return t=d,n=[{key:"language",get:function(){return this.options.language},set:function(e){var t=this;if(this.options.language=e,this.i18next.language!==e)try{this.i18next.changeLanguage(e,(function(e){e||(t.redraw(),t.emit("languageChanged"))}))}catch(e){return}}},{key:"componentComponents",get:function(){return this.form.components}},{key:"shadowRoot",get:function(){return this.options.shadowRoot}},{key:"addLanguage",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=r.default.assign((0,p.fastCloneDeep)(l.default.resources.en.translation),t);this.i18next.addResourceBundle(e,"translation",o,!0,!0),n&&(this.language=e)}},{key:"localize",value:function(){var e=this;return this.i18next.initialized?c.default.resolve(this.i18next):(this.i18next.initialized=!0,new c.default((function(t,n){try{e.i18next.init(b(b({},e.options.i18n),{compatibilityJSON:"v3"}),(function(r){if(e.options.language=e.i18next.language.split(";")[0],r)return n(r);t(e.i18next)}))}catch(e){return n(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,t){if(t&&/^([A-Z]|Enter|Esc)$/i.test(t))if("Enter"===(t=r.default.capitalize(t))||"Esc"===t){if("BUTTON"!==e.tagName)return;this.shortcuts.push({shortcut:t,element:e})}else this.shortcuts.push({ctrl:!0,shortcut:t,element:e})}},{key:"removeShortcut",value:function(e,t){t&&/^([A-Z]|Enter|Esc)$/i.test(t)&&r.default.remove(this.shortcuts,{shortcut:t,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(t){return e.setSubmission(t)}),(function(t){return e.submissionReadyReject(t)})).catch((function(t){return e.submissionReadyReject(t)})):this.submissionReadyResolve(),this.submissionReady}},{key:"setSrc",value:function(e,t){var n=this;return this.setUrl(e,t)?(this.nosubmit=!1,this.formio.loadForm({params:{live:1}}).then((function(e){var t=n.setForm(e);return n.loadSubmission(),t})).catch((function(e){console.warn(e),n.formReadyReject(e)}))):c.default.resolve()}},{key:"url",get:function(){return this._src},set:function(e){this.setUrl(e)}},{key:"setUrl",value:function(e,t){return!(!e||"string"!=typeof e||e===this._src||(this._src=e,this.nosubmit=!0,this.formio=this.options.formio=new u.GlobalFormio(e,t),"form"===this.type&&(this.options.src=e),0))}},{key:"ready",get:function(){var e=this;return this.formReady.then((function(){return k(j(d.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 t=this.ce("div",{class:"loader text-center"});this.loader.appendChild(t)}if(this.loader)try{e?this.prependTo(this.loader,this.wrapper):this.removeChildFrom(this.loader,this.wrapper)}catch(e){}}}},{key:"setForm",value:function(e,t){var n,o=this,a=this._form&&(null===(n=this._form.components)||void 0===n?void 0:n.length);try{var s,l;if(a&&JSON.stringify(this._form)===JSON.stringify(e))return c.default.resolve();if(this._form=null!=t&&t.keepAsReference?e:r.default.cloneDeep(e),this.onSetForm&&this.onSetForm(r.default.cloneDeep(this._form),e),null!==(s=this.parent)&&void 0!==s&&null!==(l=s.component)&&void 0!==l&&l.modalEdit)return c.default.resolve()}catch(e){return console.warn(e),c.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,i.default)(e.sc
2hema,"1.x")>0&&this.ready.then((function(){o.setAlert("alert alert-danger","Form schema is for a newer version, please upgrade your renderer. Some functionality may not work.")})),e&&e.module){var f=null;if("string"==typeof e.module)try{f=this.evaluate("return ".concat(e.module))}catch(e){console.warn(e)}else f=e.module;f&&(u.GlobalFormio.use(f),f.options&&f.options.form&&(this.options=Object.assign(this.options,f.options.form)))}return this.initialized=!1,(this.rebuild()||c.default.resolve()).then((function(){return o.emit("formLoad",e),o.triggerRecaptcha(),setTimeout((function(){o.onChange(t),o.formReadyResolve()}),0),o.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 t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=b(b({},n),{},{fromSubmission:!r.default.has(n,"fromSubmission")||n.fromSubmission}),this.onSubmission=this.formReady.then((function(r){return r&&(n=b(b({},n),r)),t.submissionSet=!0,t.triggerChange(n),t.setValue(e,n),t.submissionReadyResolve(e)}),(function(e){return t.submissionReadyReject(e)})).catch((function(e){return t.submissionReadyReject(e)}))}},{key:"saveDraft",value:function(){var e=this;if(this.draftEnabled)if(this.formio)if(u.GlobalFormio.getUser()){var t=(0,p.fastCloneDeep)(this.submission);
2t.state="draft",this.savingDraft||(this.emit("saveDraftBegin"),this.savingDraft=!0,this.formio.saveSubmission(t).then((function(t){e.submission._id=t._id,e.savingDraft=!1,e.emit("saveDraft",t)})))}else console.warn(this.t("saveDraftAuthError"));else console.warn(this.t("saveDraftInstanceError"))}},{key:"restoreDraft",value:function(e){var t=this;this.formio?(this.savingDraft=!0,this.formio.loadSubmissions({params:{state:"draft",owner:e}}).then((function(e){if(e.length>0&&!t.options.skipDraftRestore){var n=(0,p.fastCloneDeep)(e[0]);return t.setSubmission(n).then((function(){t.draftEnabled=!0,t.savingDraft=!1,t.emit("restoreDraft",n)}))}t.draftEnabled=!0,t.savingDraft=!1,t.emit("restoreDraft",null)}))):console.warn(this.t("restoreDraftInstanceError"))}},{key:"schema",get:function(){var e=(0,p.fastCloneDeep)(r.default.omit(this._form,["components"]));return e.components=[],this.eachComponent((function(t){return e.components.push(t.schema)})),e}},{key:"mergeData",value:function(e,t){r.default.mergeWith(e,t,(function(e,t){if(Array.isArray(e)&&Array.isArray(t)&&e.length!==t.length)return t}))}},{key:"setValue",value:function(e){var t=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 n=k(j(d.prototype),"setValue",this).call(this,e.data,t);return t.sanitize||this.mergeData(this.data,e.data),e.data=this.data,this._submission=e,n}},{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(t){e.submit(!1,t).catch((function(e){return!1!==e&&console.log(e)}))}),!0),this.on("checkValidity",(function(t){return e.checkValidity(t,!0,t)}),!0),this.on("requestUrl",(function(t){return e.submitUrl(t.url,t.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(){setTimeout((function(){e.evaluate(e.form.controller,{components:e.components})}))}))}},{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
2("formDelete",this.id),delete u.GlobalFormio.forms[this.id]),k(j(d.prototype),"destroy",this).call(this)}},{key:"build",value:function(e){var t=this;return e||this.element?this.ready.then((function(){e=e||t.element,k(j(d.prototype),"build",t).call(t,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 k(j(d.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)):c.default.resolve()}},{key:"attach",value:function(e){var t=this;this.element=e,this.loadRefs(e,{webform:"single"});var n=this.attachComponents(this.refs.webform);return this.addEventListener(document,"keydown",this.executeShortcuts),this.currentForm=this,this.hook("attachWebform",e,this),n.then((function(){return t.emit("render",t.element),t.setValue(t._submission,{noUpdateEvent:!0})}
2))}},{key:"hasRequiredFields",value:function(){var e=!1;return(0,h.eachComponent)(this.form.components,(function(t){if(t.validate.required)return e=!0,!0}),!0),e}},{key:"resetValue",value:function(){r.default.each(this.getComponents(),(function(e){return e.resetValue()})),this.setPristine(!0),this.onChange()}},{key:"setAlert",value:function(e,t,n){var r=this;if(e||!this.submitted)if(this.options.noAlerts)t||this.emit("error",!1);else{if(this.alert)try{this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach((function(e){r.removeEventListener(e,"click"),r.removeEventListener(e,"keypress")})),this.removeChild(this.alert),this.alert=null}catch(e){}if(t){var o={class:n&&n.classes||"alert alert-".concat(e),id:"error-list-".concat(this.id)},i={message:t instanceof HTMLElement?t.outerHTML:t,attrs:o,type:e};this.alert=(0,p.convertStringToHTMLElement)(this.renderTemplate("alert",i),"#".concat(o.id))}this.alert&&(this.loadRefs(this.alert,{errorRef:"multiple"}),this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach((function(e){r.addEventListener(e,"click",(function(e){var t=e.currentTarget.dataset.componentKey;r.focusOnComponent(t)})),r.addEventListener(e,"keydown",(function(e){if(13===e.keyCode){e.preventDefault();var t=e.currentTarget.dataset.componentKey;r.focusOnComponent(t)}}))})),this.prepend(this.alert))}else this.alert&&(this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach((function(e){r.removeEventListener(e,"click"),r.removeEventListener(e,"keypress")})),this.removeChild(this.alert),this.alert=null)}},{key:"focusOnComponent",value:function(e){if(e){var t=this.getComponent(e);t&&t.focus()}}},{key:"showErrors",value:function(e,t,n){var o=this;this.loading=!1;var i=this.errors;if(e?Array.isArray(e)?i=i.concat(e):i.push(e):i=k(j(d.prototype),"errors",this),(i=i.concat(this.customErrors)).length){i.forEach((function(e){var t=e.components,n=void 0===t?[]:t;e.component&&n.push(e.component),e.path&&n.push(e.path),n.forEac
2h((function(t){var n=o._parentPath+(0,p.getStringFromComponentPath)(t),i=o.getComponent(t,r.default.identity,n);e.fromServer&&(i.serverErrors?i.serverErrors.push(e):i.serverErrors=[e]),r.default.compact(Array.isArray(i)?i:[i]).forEach((function(t){return t.setCustomValidity(e.message,!0)}))}))}));var a=[];i.forEach((function(e){if(e){var t=function(t,n){var i=!r.default.isUndefined(n)&&e.messages&&e.messages[n],a=i&&i.formattedKeyOrPath||i.path||e.component&&e.component.key||e.fromServer&&e.path,s=a?(0,p.getStringFromComponentPath)(a):"";return s=o._parentPath+s,"string"==typeof e||e.formattedKeyOrPath||(e.formattedKeyOrPath=s),{message:(0,p.unescapeHTML)(t),keyOrPath:s}};if(e.messages=r.default.uniqBy(e.messages,(function(e){return e.message})),e.messages&&e.messages.length){var n=e.component;e.messages.forEach((function(e,r){var i=e.message,s=e.context,l=e.fromServer,u=null!=s&&s.hasLabel||l?o.t("alertMessage",{message:o.t(i)}):o.t("alertMessageWithLabel",{label:o.t(n.label),message:o.t(i)});a.push(t(u,r))}))}else if(e){var i=r.default.isObject(e)?o.t("alertMessage",{message:o.t(e.message||"")}):o.t("alertMessage",{message:o.t(e)});a.push(t(i))}}}));var s=this.renderTemplate("errorsList",{errors:a});return this.root.setAlert("danger",s),t&&this.emit("error",i),i}this.setAlert(!1)}},{key:"onSubmit",value:function(e,t){var n;return this.loading=!1,this.submitting=!1,this.setPristine(!0),this.setValue((0,p.fastCloneDeep)(e),{noValidate:!0,noCheck:!0}),this.setAlert("success","<p>".concat(this.t("complete"),"</p>")),this.draftEnabled&&null!==(n=this.triggerSaveDraft)&&void 0!==n&&n.cancel&&this.triggerSaveDraft.cancel(),this.emit("submit",e,t),t&&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){if(e=this.normalizeError(e),this.submitting=!1,this.setPristine(!1),this.emit("submitError",e),e&&e.silent)return this.emit("change",{isValid:!0},{silent:!0}),!1;var t=this.showErrors(e,!0);return this.root&&this.root.alert&&this.scrollIntoView(this.root.alert),t}},{key:"onChange",value:function(e,t,n,o){e=e||{};var i=!1;t&&t.component&&(this.customErrors=this.customErrors.filter((function(e){return e.component&&e.component!==t.component.key}))),k(j(d.prototype),"onChange",this).call(this,e,!0);var a=r.default.clone(this.submission);e.changed=a.changed=t,e.changes=o,n&&this.pristine&&(this.pristine=!1),a.isValid=this.checkData(a.data,e),this.loading=!1,this.submitted&&this.showErrors(),n&&this.options.saveDraft&&this.triggerSaveDraft(),e&&e.noEmit||(this.emit
2("change",a,e,n),i=!0),i&&!this.initialized&&(this.emit("initialized"),this.initialized=!0)}},{key:"checkData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=k(j(d.prototype),"checkData",this).call(this,e,t);return(r.default.isEmpty(t)||t.noValidate)&&this.submitted&&this.showErrors(),n}},{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||{},r.default.defaults(e.metadata,{timezone:r.default.get(this,"_submission.metadata.timezone",(0,p.currentTimezone)()),offset:parseInt(r.default.get(this,"_submission.metadata.offset",(0,o.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,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.clearServerErrors(),new c.default((function(n,o){if(e.options.readOnly)return n({submission:e.submission,saved:!1});var i=(0,p.fastCloneDeep)(e.submission||{});e.setMetadata(i),i.state=t.state||"submitted";var a="draft"===i.state;e.hook("beforeSubmit",b(b({},i),{},{component:t.component}),(function(s){return s?o(s):a||i.data?a||e.checkValidity(i.data,!0)?(e.everyComponent((function(e){"client-only"===e.component.persistent&&r.default.unset(i.data,e.path)})),void e.hook("customValidation",b(b({},i),{},{component:t.component}),(function(t){if(t)return"string"==typeof t&&(t={message:t}),t=Array.isArray(t)?t:[t],e.customErrors=t,o();if(e.loading=!0,e._form&&e._form.action){var r=i.data._id&&e._form.action.includes(i.data._id)?"PUT":"POST";return u.GlobalFormio.makeStaticRequest(e._form.action,r,i,e.formio?e.formio.options:{}).then((function(e){return n({submission:e,saved:!0})})).catch((function(t){return e.setServerErrors(t),o(t)}))}var a=e.formio;if(e.nosubmit||!a)return n({submission:i,saved:!1});a[a.actionUrl?"saveAction":"saveSubmission"](i).then((function(e){return n({submission:e,saved:!0})})).catch((function(t){return e.setServerErrors(t),o(t)}))}))):o():o("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})))}},{key:"executeSubmit",value:function(e){var t=this;return this.submitted=!0,this.submitting=!0,this.submitForm(e).then((function(e){var n=e.submission,r=e.saved;return t.onSubmit(n,r)})).then((function(e){return t.submissionInProcess=!1,e})).catch((function(e){return t.submissionInProcess=!1,c.default.reject(t.onSubmissionError(e))}))}},{key:"clearServerErrors",value:function(){var e,t=this;null===(e=this.serverErrors)||void 0===e||e.forEach((function(e){if(e.path){var n=(0,p.getArrayFromComponentPath)(e.path),o=t.getComponent(n,r.default.identity,e.formattedKeyOrPath);o&&(o.serverErrors=[])}})),this.serverErrors=[]}},{key:"submit",value:function(e,t){var n=this;return this.submissionInProcess=!0,e?this.executeSubmit(t):this.beforeSubmit(t).then((function(){return n.executeSubmit(t)}))}},{key:"submitUrl",value:function(e,t){var n=this;if(!e)return console.warn("Missing URL argument");var r=this.submission||{},o=e,i={method:"POST",headers:{}};if(t&&t.length>0&&t.map((function(e){""!==e.header&&""!==e.value&&(i.headers[e.header]=n.interpolate(e.value,r))})),!o||!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.");u.GlobalFormio.makeStaticRequest(o,i.method,r,{headers:i.headers}).then((function(){n.emit("requestDone"),n.setAlert("success","<p> Success </p>")})).catch((function(e){n.showErrors("".concat(e.statusText?e.statusText:""," ").concat(e.status?e.status:e)),n.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)),n.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,p.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}
2,set:function(e){this._nosubmit=!!e,this.emit("nosubmit",this._nosubmit)}},{key:"conditions",get:function(){var e,t;return null!==(e=null===(t=this.schema.settings)||void 0===t?void 0:t.conditions)&&void 0!==e?e:[]}},{key:"variables",get:function(){var e,t;return null!==(e=null===(t=this.schema.settings)||void 0===t?void 0:t.variables)&&void 0!==e?e:[]}}],n&&w(t.prototype,n),d}(d.default);t.default=E,E.setBaseUrl=u.GlobalFormio.setBaseUrl,E.setApiUrl=u.GlobalFormio.setApiUrl,E.setAppUrl=u.GlobalFormio.setAppUrl},95529:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(82526),n(49337),n(41817),n(32165),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(21249),n(2707),n(57327),n(41539),n(74916),n(15306),n(26699),n(32023),n(68309),n(47941),n(92222),n(54747),n(47042),n(4723),n(69600),n(91038),n(78783),n(69826),n(34553),n(40561),n(66992),n(51532),n(33948),n(23157),n(92087),n(30489);var o=h(n(12215)),i=h(n(64430)),a=h(n(13861)),s=h(n(91459)),l=h(n(39086)),u=n(19161),c=n(82531),f=n(32725),d=h(n(1848)),p=h(n(96486));function h(e){return e&&e.__esModule?e:{default:e}}function m(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(){return _="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=O(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},_.apply(this,arguments)}function O(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=P(e)););return e}function x(e,t){return x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},x(e,t)}function S(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return j(e)}function j(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}n(89395);var C,E=u.GlobalFormio.Templates;E||(E=n(51508).default),"undefined"!=typeof window&&(C=n(91130));var A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(v,e);var t,n,r,i,h=(r=v,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=P(r);if(i){var n=P(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return S(this,e)});function v(){var e,t,n;w(this,v),arguments[0]instanceof HTMLElement||arguments[1]?(t=arguments[0],n=arguments[1]):n=arguments[0],n.skipInit=!1,n.display=n.display||"form",(e=h.call(this,null,n)).element=t,e.builderHeight=0,e.schemas={},e.repeatablePaths=[],e.sideBarScroll=p.default.get(e.options,"sideBarScroll",!0),e.sideBarScrollOffset=p.default.get(e.options,"sideBarScrollOffset",0),e.dragDropEnabled=!0,e.builder=p.default.defaultsDeep({},e.options.builder,e.defaultGroups),p.default.each(e.defaultGroups,(function(t,n){!1===t&&(e.builder[
2n]=!1)})),e.groups={},e.groupOrder=[];var r=function(t){e.builder[t]&&(e.builder[t].key=t,e.groups[t]=e.builder[t],e.groups[t].components=e.groups[t].components||{},e.groups[t].componentOrder=e.groups[t].componentOrder||[],e.groups[t].subgroups=Object.keys(e.groups[t].groups||{}).map((function(n){return e.groups[t].groups[n].componentOrder=Object.keys(e.groups[t].groups[n].components).map((function(e){return e})),e.groups[t].groups[n]})),e.groupOrder.push(e.groups[t]))};for(var o in e.builder)r(o);for(var i in e.groupOrder=e.groupOrder.filter((function(e){return e&&!e.ignore})).sort((function(e,t){return e.weight-t.weight})).map((function(e){return e.key})),l.default.components){var a=l.default.components[i];if(a.builderInfo&&a.builderInfo.schema){e.schemas[i]=a.builderInfo.schema,a.type=i;var s=a.builderInfo;s.key=a.type,e.addBuilderComponentInfo(s)}}for(var c in e.groups){var f=e.groups[c];for(var d in f.components){var m="resource"===c?"component-".concat(d):d,y=f.components[m];!0===y&&l.default.components[d]&&l.default.components[d].builderInfo&&(y=l.default.components[d].builderInfo),y&&y.schema?(e.schemas[d]=y.schema,f.components[m]=y,f.components[m].key=d):delete f.components[m]}e.orderComponents(f)}e.options.hooks=e.options.hooks||{},e.options.hooks.renderComponent=function(t,n){var r,o=n.component,i=n.self;return"form"!==i.type||i.key?e.options.disabled&&e.options.disabled.includes(i.key)||i.parent.noDragDrop?t:e.renderTemplate("builderComponent",{html:t,disableBuilderActions:null==i||null===(r=i.component)||void 0===r?void 0:r.disableBuilderActions,childComponent:o}):e.hook("renderComponentFormTemplate",t.replace("formio-component-form",""))},e.options.hooks.renderComponents=function(t,n){var r=n.components,o=n.self;return"datagrid"===o.type&&r.length>0||o.noDragDrop?t:((!r||!r.length&&!r.nodrop||"form"===o.type&&r.length<=1&&(0===r.length||"button"===r[0].type))&&(t=e.renderTemplate("builderPlaceholder",{position:0})+t),e.renderTemplate("builderComponents",{key:o.key,type:o.type,html:t}))},e.options.hooks.renderInput=function(e,t){var n=t.self;return"hidden"===n.type?e+n.name:e},e.options.hooks.renderLoading=function(e,t){var n=t.self;return"form"===n.type&&n.key?n.name:e},e.options.hooks.attachComponents=function(t,n,r,o){if(t){if(o.noDragDrop)return t;var i=t.querySelector('[ref="'.concat(o.component.key,'-container"]'))||t;return i.formioContainer=r,i.formioComponent=o,e.dragula&&e.allowDrop(t)&&e.dragula.containers.push(i),("datagrid"===o.type||"datamap"===o.type)&&n.length>0?t:t.children[0]}},e.options.hooks.attachDatagrid=function(e,t){t.loadRefs(e,g({},"".concat(t.key,"-container"),"single"));var n=t.refs["".concat(t.key,"-container")];n&&t.attachComponents(n.parentNode,[],t.component.components)},e.options.hooks.attachComponent=e.attachComponent.bind(j(e));var b={params:{type:"resource",limit:4294967295,select:"_id,title,name,components"}};e.options&&e.options.resourceTag?b.params.tags=[e.options.resourceTag]:e.options&&e.options.hasOwnProperty("resourceTag")||(b.params.tags=["builder"]);var k=new u.GlobalFormio(u.GlobalFormio.projectUrl),_=e.options.builder&&!1===e.options.builder.resource;if(k.loadProject().then((function(t){if(t&&(p.default.get(t,"settings.addConfigToForms",!1)||p.default.get(t,"addConfigToForms",!1))){var n=t.config||{};e.options.formConfig=n;var r="webform._form.config",o=p.default.get(j(e),r);e.webform&&!o&&p.default.set(j(e),r,n)}})).catch((function(e){console.warn("Could not load project settings: ".concat(e.message||e))})),!k.noProject&&!_){var O=e.options.builder&&e.options.builder.resource;k.loadForms(b).then((function(t){t.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(t))}))}return e.options.attachMode="builder",e.webform=e.webform||e.createForm(e.options),e.pathComponentsMapping={},e.arrayDataComponentPaths=[],e.nestedDataComponents=[],e.arrayDataComponents=[],e}return t=v,n=[{key:"allowDrop",value:function(){return!0}},{key:"addExistingResourceFields",value:function(e){var t=this;p.default.each(e,(function(e,n){var r="resource-".concat(e.name),o={key:r,title:e.title,components:[],componentOrder:[],default:0===n};(0,f.eachComponent)(e.components,(function(n){if("button"!==n.type&&(!t.options||!t.options.resourceFilter||n.tags&&-1!==n.tags.indexOf(t.options.resourceFilter))){var i=n.label;!i&&n.key&&(i=p.default.upperFirst(n.key)),o.componentOrder.push("component-".concat(n.key)),o.components["component-".concat(n.key)]=p.default.merge((0,c.fastCloneDeep)(l.default.components[n.type]?l.default.components[n.type].builderInfo:l.default.components.unknown.builderInfo),{key:n.key,title:i,group:"resource",subgroup:r},{schema:b(b({},n),{},{label:n.label,key:n.key,lockKey:!0,source:t.options.noSource?void 0:e._id,isNew:!0})})}}),!0),t.groups.resource.subgroups.push(o)})),this.triggerRedraw()}},{key:"attachTooltip",value:function(e,t){return(0,a.default)(e,{allowHTML:!0,trigger:"mouseenter focus",placement:"top",delay:[200,0],zIndex:1e4,content:t})}},{key:"attachComponent",value:function(e,t){var n=this;if(e.formioComponent=t,t.loadRefs(e,{removeComponent:"single",editComponent:"single",moveComponent:"single",copyComponent:"single",pasteComponent:"single",editJson:"single"}),t.refs.copyComponent&&(this.attachTooltip(t.refs.copyComponent,this.t("Copy")),t.addEventListener(t.refs.copyComponent,"click",(function(){return n.copyComponent(t)}))),t.refs.pasteComponent){var r=this.attachTooltip(t.refs.pasteComponent,this.t("Paste below"));t.addEventListener(t.refs.pasteComponent,"click",(function(){r.hide(),n.pasteComponent(t)}))}
2t.refs.moveComponent&&this.attachTooltip(t.refs.moveComponent,this.t("Move"));var o=this.getParentElement(e);return t.refs.editComponent&&(this.attachTooltip(t.refs.editComponent,this.t("Edit")),t.addEventListener(t.refs.editComponent,"click",(function(){return n.editComponent(t.schema,o,!1,!1,t.component,{inDataGrid:t.isInDataGrid})}))),t.refs.editJson&&(this.attachTooltip(t.refs.editJson,this.t("Edit JSON")),t.addEventListener(t.refs.editJson,"click",(function(){return n.editComponent(t.schema,o,!1,!0,t.component)}))),t.refs.removeComponent&&(this.attachTooltip(t.refs.removeComponent,this.t("Remove")),t.addEventListener(t.refs.removeComponent,"click",(function(){return n.removeComponent(t.schema,o,t.component)}))),e}},{key:"createForm",value:function(e){return this.webform=new o.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 o.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 t=(0,c.getArrayFromComponentPath)(e.path),n=this.webform.getComponent(t);n=Array.isArray(n)?n[0]:n;var r=this.recurseNamespace(n);if(!r||this.form.key===r)return this.form.components;var o=e.component;if(r===e.key)return[].concat(m(o.components),[o]);var i=(0,f.getComponent)(this.form.components,r,!0);return i?i.components:n.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),groups:this.groupOrder.map((function(t){return e.renderTemplate("builderSidebarGroup",{group:e.groups[t],groupKey:t,groupId:"builder-sidebar-".concat(e.id),subgroups:e.groups[t].subgroups.map((function(n){return e.renderTemplate("builderSidebarGroup",{group:n,groupKey:n.key,groupId:"group-container-".concat(t),subgroups:[]})}))})}))}),form:this.webform.render()})}},{key:"attach",value:function(e){var t=this;return this.on("change",(function(e){t.populateRecaptchaSettings(e)})),_(P(v.prototype),"attach",this).call(this,e).then((function(){if(t.loadRefs(e,{form:"single",sidebar:"single","sidebar-search":"single","sidebar-groups":"single",container:"multiple","sidebar-anchor":"multiple","sidebar-group":"multiple","sidebar-container":"multiple"}),t.sideBarScroll&&E.current.handleBuilderSidebarScroll&&E.current.handleBuilderSidebarScroll.call(t,t),"undefined"!=typeof window&&window.sessionStorage&&window.sessionStorage.getItem("formio.clipboard")&&t.addClass(t.refs.form,"builder-paste-mode"),(0,c.bootstrapVersion)(t.options)||(t.refs["sidebar-group"].forEach((function(e){e.style.display="true"===e.getAttribute("data-default")?"inherit":"none"})),t.refs["sidebar-anchor"].forEach((function(e,n){t.addEventListener(e,"click",(function(){var r=e.getAttribute("data-parent").slice("#builder-sidebar-".length),o=e.getAttribute("data-target").slice("#group-".length);t.refs["sidebar-group"].forEach((function(e,t){var i="true"===e.getAttribute("data-default"),a=e.getAttribute("id").slice("group-".length),s=e.getAttribute("data-parent").slice("#builder-sidebar-".length);e.style.display=i&&s===o||a===r||t===n?"inherit":"none"}))}),!0)}))),t.addEventListener(t.refs["sidebar-search"],"input",p.default.debounce((function(e){var n=e.target.value;t.searchFields(n)}),300)),t.dragDropEnabled&&t.initDragula(),t.refs.form)return t.webform.attach(t.refs.form)}))}},{key:"searchFields",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=t.toLowerCase(),r=this.refs.sidebar,o=this.refs["sidebar-groups"];if(r&&o){var i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=p.default.toPlainObject(t),o=r.subgroups,i=void 0===o?[]:o,a=r.components,s=[];for(var l in a){var u=a[l].title.toLowerCase().match(n),c=a[l].key.toLowerCase().match(n);(u||c)&&s.push(a[l])}return e.orderComponents(r,s),n&&(r.default=!0),r.componentOrder.length||i.length?r:null},a=function(t,n){return p.default.cloneDeep(t).filter((function(t){return i(e.groups[t],n)}))},s=function(e,t){return p.default.clone(e).map((function(e){return i(e,t)})).filter((function(e){return!p.default.isNull(e)}))},l=function(t){return{group:i(e.groups[t],n),groupKey:t,groupId:r.id||o.id,subgroups:s(e.groups[t].subgroups,n).map((function(n){return e.renderTemplate("builderSidebarGroup",{group:n,groupKey:n.key,groupId:"group-container-".concat(t),subgroups:[]})}))}};o.innerHTML=a(this.groupOrder,n).map((function(t){return e.renderTemplate("builderSidebarGroup",l(t))})).join(""),this.loadRefs(this.element,{"sidebar-groups":"single","sidebar-anchor":"multiple","sidebar-group":"multiple","sidebar-container":"multiple"}),this.updateDragAndDrop()}}},{key:"orderComponents",value:function(e,t){var n=t||e.components,r=0===e.ke
2y.indexOf("resource-");n&&(e.componentOrder=Object.keys(n).map((function(e){return n[e]})).filter((function(e){return e&&!e.ignore&&!e.ignoreForForm})).sort((function(e,t){return e.weight-t.weight})).map((function(e){return r?"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,t=this.options;this.dragula&&this.dragula.destroy();var n=Array.prototype.slice.call(this.refs["sidebar-container"]).filter((function(e){return"group-container-resource"!==e.id}));C&&(this.dragula=C(n,{moves:function(e){var n=!0;return Array.from(e.classList).filter((function(e){return 0===e.indexOf("formio-component-")})).forEach((function(e){var r=e.slice("formio-component-".length);t.disabled&&t.disabled.includes(r)&&(n=!1)})),e.classList.contains("no-drag")&&(n=!1),n},copy:function(e){return e.classList.contains("drag-copy")},accepts:function(e,t){return!e.contains(t)&&!t.classList.contains("no-drop")}}).on("drop",(function(t,n,r,o){return e.onDrop(t,n,r,o)})))}},{key:"detach",value:function(){this.dragula&&this.dragula.destroy(),this.dragula=null,this.sideBarScroll&&E.current.clearBuilderSidebarScroll&&E.current.clearBuilderSidebarScroll.call(this,this),_(P(v.prototype),"detach",this).call(this)}},{key:"getComponentInfo",value:function(e,t){var n;if(this.schemas.hasOwnProperty(e))n=(0,c.fastCloneDeep)(this.schemas[e]);else if(this.groups.hasOwnProperty(t)){var r=this.groups[t].components;r.hasOwnProperty(e)&&(n=(0,c.fastCloneDeep)(r[e].schema))}else if("resource"===t.slice(0,t.indexOf("-"))){var o=this.groups.resource.subgroups,i=p.default.find(o,{key:t});i&&i.components.hasOwnProperty("component-".concat(e))&&(n=(0,c.fastCloneDeep)(i.components["component-".concat(e)].schema))}else if("searchFields"===t)for(var a=this.groups.resource.subgroups,s=0;s<a.length;s++){var l=a[s];if(l.components.hasOwnProperty("component-".concat(e))){n=(0,c.fastCloneDeep)(l.components["component-".concat(e)].schema);break}}return n&&(n.key=this.generateKey(n)),n}},{key:"getComponentsPath",value:function(e,t){var n="components",r=0,o=0,i=0,a=0;switch(t.type){case"table":o=p.default.findIndex(t.rows,(function(t){return t.some((function(t){return t.components.some((function(t){return t.key===e.key}))}))})),i=p.default.findIndex(t.rows[o],(function(t){return t.components.some((function(t){return t.key===e.key}))})),n="rows[".concat(o,"][").concat(i,"].components");break;case"columns":r=p.default.findIndex(t.columns,(function(t){return t.components.some((function(t){return t.key===e.key}))})),n="columns[".concat(r,"].components");break;case"tabs":a=p.default.findIndex(t.components,(function(t){return t.components.some((function(t){return t.key===e.key}))})),n="components[".concat(a,"].components")}return n}},{key:"onDrop",value:function(e,t,n,r){var o,i=this;if(t&&!e.contains(t)){var a,l,u,c,h=e.getAttribute("data-key"),m=e.getAttribute("data-type"),v=e.getAttribute("data-group");if(h&&v?(!(a=this.getComponentInfo(h,v))&&m&&(a=this.getComponentInfo(m,v)),l=!0):n.formioContainer&&-1!==(c=p.default.findIndex(n.formioContainer,{key:e.formioComponent.component.key}))&&(a=(a=n.formioContainer.splice(p.default.findIndex(n.formioContainer,{key:e.formioComponent.component.key}),1))[0]),a){var y="resource"===v?"component-".concat(h):h,b=(null===(o=this.groups[v])||void 0===o?void 0:o.components[y])||{};if(b.disableSiblings){var g=!1;if((0,f.eachComponent)(this.webform.components,(function(e){e.type!==b.schema.type||(g=!0)}),!0),g)return this.webform.redraw(),void this.webform.setAlert("danger","You cannot add more than one ".concat(b.key," component to one page."))}t!==n&&d.default.uniquify(this.findNamespaceRoot(t.formioComponent),a);var w=t.formioComponent;t.formioContainer&&(r?-1!==(c=r.getAttribute("data-noattach")?r.getAttribute("data-position"):-1===(c=p.default.findIndex(t.formioContainer,{key:p.default.get(r,"formioComponent.component.key")}))?0:c)&&t.formioContainer.splice(c,0,a):t.formioContainer.push(a),u=this.getComponentsPath(a,w.component),-1===(c=p.default.findIndex(p.default.get(w.schema,u),{key:a.key}))&&(c=0)),w&&w.addChildComponent&&w.addChildComponent(a,e,t,n,r);
2var k,_="datagrid"===w.type;return!l||this.options.noNewEdit||a.noNewEdit||this.editComponent(a,t,l,null,null,{inDataGrid:_}),t!==n?n.formioContainer&&n.contains(t)?k=n.formioComponent.rebuild():(t.contains(n)||n.formioContainer&&(k=n.formioComponent.rebuild()),k=t.formioComponent.rebuild()):k=t.formioComponent.rebuild(),k||(k=s.default.resolve()),k.then((function(){i.emit("addComponent",a,w,u,c,l&&!i.options.noNewEdit&&!a.noNewEdit),(!l||i.options.noNewEdit||a.noNewEdit)&&i.emit("change",i.form)}))}}}},{key:"setForm",value:function(e){var t=this;if(e.components||(e.components=[]),!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 n=!this.webform.form.components||e.components.length!==this.webform.form.components.length;return this.webform.setForm(e,{keepAsReference:!0}).then((function(){return t.refs.form&&(t.builderHeight=t.refs.form.offsetHeight),n?t.rebuild().then((function(){return t.form})):t.form}))}return s.default.resolve(e)}},{key:"populateRecaptchaSettings",value:function(e){var t=!1;this.form.components&&((0,f.eachComponent)(e.components,(function(e){if(!t)return"recaptcha"===e.type?(t=!0,!1):void 0})),t?p.default.set(e,"settings.recaptcha.isEnabled",!0):p.default.get(e,"settings.recaptcha.isEnabled")&&p.default.set(e,"settings.recaptcha.isEnabled",!1))}},{key:"removeComponent",value:function(e,t,n){var r=this;if(t){var o=!0,i=!e.skipRemoveConfirm&&(Array.isArray(e.components)&&e.components.length||Array.isArray(e.rows)&&e.rows.length||Array.isArray(e.columns)&&e.columns.length);if(this.options.alwaysConfirmComponentRemoval||i){var a=i?"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?";o=window.confirm(this.t(a))}n||(n=t.formioContainer.find((function(t){return t.id===e.id})));var l=t.formioContainer?t.formioContainer.indexOf(n):0;if(o&&-1!==l){var u=this.getComponentsPath(e,t.formioComponent.component);t.formioContainer?t.formioContainer.splice(l,1):t.formioComponent&&t.formioComponent.removeChildComponent&&t.formioComponent.removeChildComponent(e),(t.formioComponent.rebuild()||s.default.resolve()).then((function(){r.emit("removeComponent",e,t.formioComponent.schema,u,l),r.emit("change",r.form)}))}return o}}},{key:"replaceDoubleQuotes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e)return t.forEach((function(t){e[t]&&(e[t]=e[t].replace(/"/g,"'"))})),e}},{key:"updateComponent",value:function(e,t){var n=this;if(this.preview){this.preview.form={components:[p.default.omit(b({},e),["hidden","conditional","calculateValue","logic","autofocus","customConditional"])],config:this.options.formConfig||{}};var r=["label","tooltip","placeholder"];this.preview.form.components.forEach((function(e){return n.replaceDoubleQuotes(e,r)}));var o=this.componentEdit.querySelector('[ref="preview"]');o&&(this.setContent(o,this.preview.render()),this.preview.attach(o))}var i=(0,f.getComponent)(this.editForm.components,"defaultValue",!0);if(i&&"hidden"!==e.type)if(t&&(t.component&&"defaultValue"===t.component.key||t.instance&&i.hasComponent&&i.hasComponent(t.instance))){var a=t.instance._data.key,s=(0,c.getArrayFromComponentPath)(t.instance.path);s.shift(),s.length&&(s.unshift(e.key),a=(0,c.getStringFromComponentPath)(s)),p.default.set(this.preview._data,a,t.value),p.default.set(this.webform._data,a,t.value)}else{p.default.assign(i.component,p.default.omit(b({},e),["key","label","placeholder","tooltip","hidden","autofocus","validate","disabled","defaultValue","customDefaultValue","calculateValue","conditional","customConditional","id"]));var l=i.parent,u=-1,d=-1;if(l.tabs.some((function(e,t){e.some((function(e,n){return e.id===i.id&&(u=t,d=n,!0)}))})),-1!==u&&-1!==d&&t&&t.value){var h=l.tabs[u][d+1];l.removeComponent(i);var m=l.addComponent(i.component,i.data,h);p.default.pull(m.validators,"required"),l.tabs[u].splice(d,1,m),m.checkValidity=function(){return!0},m.build(i.element)}}
2this.emit("updateComponent",e)}},{key:"findRepeatablePaths",value:function(){var e=[],t=new Map;return(0,f.eachComponent)(this.form.components,(function(n,r){n.key&&(t.has(n.key)?t.get(n.key).includes(r)?e.push(r):t.set(n.key,[].concat(m(t.get(n.key)),[r])):t.set(n.key,[r]))}),!0),e}},{key:"highlightInvalidComponents",value:function(){var e=this.findRepeatablePaths(),t=!1;this.webform.everyComponent((function(n){var r,o,i=n.path;e.includes(i)?(n.setCustomValidity("API Key is not unique: ".concat(n.key)),t=!0):null!==(r=n.error)&&void 0!==r&&null!==(o=r.message)&&void 0!==o&&o.startsWith("API Key is not unique")&&n.setCustomValidity("")})),this.emit("builderFormValidityChange",t)}},{key:"saveComponent",value:function(e,t,n,r){var o=this;this.editForm.detach();var i=t?t.formioContainer:this.container,a=t?t.formioComponent:this;this.dialog.close();var l=i?this.getComponentsPath(e,a.component):"";r||(r=t.formioContainer.find((function(t){return t.id===e.id})));var u=i?i.indexOf(r):0;if(-1!==u){var c=this.editForm.submission.data;c=c.componentJson||c,this.replaceDoubleQuotes(c,["label","tooltip","placeholder"]),this.hook("beforeSaveComponentSettings",c);var f=null;a.getComponents().forEach((function(e){e.component.key===r.key&&(f=e)}));var d=f.component,p=f.schema,h=this.isParentSaveChildMethod(t.formioComponent);return i&&!h?(i[u]=c,f&&(f.component=c)):h&&t.formioComponent.saveChildComponent(c),(a.rebuild()||s.default.resolve()).then((function(){var e=i?i[u]:f?f.schema:[];o.emitSaveComponentEvent(e,d,a.schema,l,u,n,p),o.emit("change",o.form),o.highlightInvalidComponents()}))}return this.highlightInvalidComponents(),s.default.resolve()}},{key:"emitSaveComponentEvent",value:function(e,t,n,r,o,i,a){this.emit("saveComponent",e,t,n,r,o,i,a)}},{key:"editComponent",value:function(e,t,n,r,i){var a=this,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(e.key){var u=!1,f=(0,c.fastCloneDeep)(e),h=l.default.components[f.type],m=void 0===h;r=r||m,h=m?l.default.components.unknown:h,this.dialog&&(this.dialog.close(),this.highlightInvalidComponents());var v=p.default.clone(p.default.get(this,"options.editForm",{}));this.editForm&&this.editForm.destroy();var y=p.default.get(this.options,"editForm.".concat(f.type),{});v.editForm=this.form,v.editComponent=e,v.flags=s,this.hook("editComponentParentInstance",v,t),this.editForm=new o.default(b(b({},p.default.omit(this.options,["hooks","builder","events","attachMode","skipInit"])),{},{language:this.options.language},v)),this.hook("editFormProperties",t),this.editForm.form=r&&!m?{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"}]}:h.editForm(p.default.cloneDeep(y));var g={};this.hook("instanceOptionsPreview",g);var w=new h(f,g),k=this.hook("builderComponentSchema",e,w);this.editForm.submission=r?{data:{componentJson:k,showFullSchema:this.options.showFullJsonSchema}}:{data:w.component},this.preview&&this.preview.destroy(),h.builderInfo.hasOwnProperty("preview")&&!h.builderInfo.preview||(this.preview=new o.default(p.default.omit(b(b({},this.options),{},{preview:!0}),["hooks","builder","events","attachMode","calculateValue"])),this.hook("previewFormSettitngs",k,r)),this.componentEdit=this.ce("div",{class:"component-edit-container"}),this.setContent(this.componentEdit,this.renderTemplate("builderEditForm",{componentInfo:h.builderInfo,editForm:this.editForm.render(),preview:!!this.preview&&this.preview.render(),helplinks:this.helplinks})),this.dialog=this.createModal(this.componentEdit,p.default.get(this.options,"dialogAttr",{})),this.editForm.attach(this.componentEdit.querySelector('[ref="editForm"]')),this.hook("editFormWrapper"),this.updateComponent(f),this.editForm.on("change",(function(o){if(o.changed){if(o.changed.component&&"showFullSchema"===o.changed.component.key){var i=o.changed.value;return void(a.editForm.submission={data:{componentJson:i?w.component:e,showFullSchema:i}})}if((o.changed.component&&"key"===o.changed.component.key||r)&&(f.keyModified=!0),o.changed.component&&["label","t
2itle"].includes(o.changed.component.key)&&n&&(o.data.keyModified||a.editForm.everyComponent((function(e){if("key"===e.key&&"tabs"===e.parent.component.key)return e.setValue(a.updateComponentKey(o.data)),!1})),a.form)){var s=a.findNamespaceRoot(t.formioComponent);s=s.filter((function(e){return v.editComponent.id!==e.id})),d.default.uniquify(s,o.data)}a.updateComponent(o.data.componentJson||o.data,o.changed)}}));var _=this.componentEdit.querySelectorAll('[ref="cancelButton"]');_.forEach((function(t){a.addEventListener(t,"click",(function(t){t.preventDefault(),a.editForm.detach(),a.emit("cancelComponent",e),a.dialog.close(),a.highlightInvalidComponents()}))}));var O=this.componentEdit.querySelectorAll('[ref="removeButton"]');O.forEach((function(n){a.addEventListener(n,"click",(function(n){n.preventDefault(),u=!0,a.editForm.detach(),a.removeComponent(e,t,i),a.dialog.close(),a.highlightInvalidComponents()}))}));var x=this.componentEdit.querySelectorAll('[ref="saveButton"]');x.forEach((function(r){a.addEventListener(r,"click",(function(r){if(r.preventDefault(),!a.editForm.checkValidity(a.editForm.data,!0,a.editForm.data))return a.editForm.setPristine(!1),a.editForm.showErrors(),!1;u=!0,a.saveComponent(e,t,n,i)}))}));var S=function r(){a.editForm.destroy(!0),a.preview&&(a.preview.destroy(!0),a.preview=null),n&&!u&&(a.removeComponent(e,t,i),a.highlightInvalidComponents()),a.removeEventListener(a.dialog,"close",r),a.dialog=null};this.addEventListener(this.dialog,"close",S),this.emit("editComponent",e)}}},{key:"updateComponentKey",value:function(e){return p.default.camelCase(e.title||e.label||e.placeholder||e.type).replace(/^[0-9]*/,"")}},{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 t=window.sessionStorage.getItem("formio.clipboard");if(t){var n=JSON.parse(t),r=this.getParentElement(e.element);if(r){d.default.uniquify(this.findNamespaceRoot(r.formioComponent),n);var o="",i=0,a=this.isParentSaveChildMethod(r.formioComponent);r.formioContainer&&!a?(i=r.formioContainer.indexOf(e.component),o=this.getComponentsPath(n,r.formioComponent.component),r.formioContainer.splice(i+1,0,n)):a&&r.formioComponent.saveChildComponent(n,!1),r.formioComponent.rebuild(),this.emitSaveComponentEvent(n,n,r.formioComponent.component,o,i+1,!0,n)}this.emit("change",this.form)}}}},{key:"isParentSaveChildMethod",value:function(e){return!(!e||!e.saveChildComponent)}},{key:"getParentElement",value:function(e){var t=e;do{t=t.parentNode}while(t&&!t.formioComponent);return t}},{key:"addBuilderComponentInfo",value:function(e){if(e&&e.group&&this.groups[e.group]){e=p.default.clone(e);var t=this.groups[e.group];return t.components.hasOwnProperty(e.key)||(t.components[e.key]=e),e}}},{key:"init",value:function(){return this.webform&&this.webform.init(),_(P(v.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),_(P(v.prototype),"destroy",this).call(this,e)}},{key:"addBuilderGroup",value:function(e,t){this.groups[e]?this.updateBuilderGroup(e,t):(this.groups[e]=t,this.groupOrder.push(e),this.triggerRedraw())}},{key:"updateBuilderGroup",value:function(e,t){this.groups[e]&&(this.groups[e]=t,this.triggerRedraw())}},{key:"generateKey",value:function(e){return p.default.camelCase(e.key||e.title||e.label||e.placeholder||e.type)}}],n&&k(t.prototype,n),v}(i.default);t.default=A},33456:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(82526),n(49337),n(41817),n(32165),n(66992),n(78783),n(33948),n(91038),n(47042),Object.defineProperty(t,"__esMo
2dule",{value:!0}),t.default=void 0,n(57327),n(41539),n(26699),n(32023),n(54747),n(69826),n(68309),n(74916),n(23123),n(21249),n(47941),n(92222),n(34553),n(30489);var o=u(n(91459)),i=u(n(96486)),a=u(n(12215)),s=n(19161),l=n(82531);function u(e){return e&&e.__esModule?e:{default:e}}function c(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)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(){return b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=g(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},b.apply(this,arguments)}function g(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_(e)););return e}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function k(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(u,e);var t,n,r,a,s=(r=u,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=_(r);if(a){var n=_(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return k(this,e)});function u(){var e,t,n;return v(this,u),arguments[0]instanceof HTMLElement||arguments[1]?(t=arguments[0],n=arguments[1]||{}):n=arguments[0]||{},n.display="wizard",(e=s.call(this,t,n)).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=o.default.resolve(),e.enabledIndex=0,e.editMode=!1,e.originalOptions=i.default.cloneDeep(e.options),e}return t=u,n=[{key:"isLastPage",value:function(){var e=this.getNextPage();return i.default.isNumber(e)?-1===e:i.default.isNull(e)}},{key:"getPages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.all,r=void 0!==n&&n,o=this.hasExtraPages?this.components:this.pages,a=o.filter(r?i.default.identity:function(t,n){return e._seenPages.includes(n)});return a}},{key:"hasExtraPages",get:function(){return!i.default.isEmpty(this.subWizards)}},{key:"data",get:function(){return b(_(u.prototype),"data",this)},set:function(e){var t=this;this._data=e,i.default.each(this.getPages({all:!0}),(function(e){e.data=t.componentContext(e)}
2))}},{key:"localData",get:function(){var e,t;return(null===(e=this.pages[this.page])||void 0===e||null===(t=e.root)||void 0===t?void 0:t.submission.data)||this.submission.data}},{key:"checkConditions",value:function(e,t,n){var r=b(_(u.prototype),"checkConditions",this).call(this,e,t,n);return this.establishPages(e),r}},{key:"getComponents",value:function(){return this.submitting?this.getPages({all:this.isLastPage()}):b(_(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,t,n,r=this;this.options.buttonSettings=i.default.defaults(this.options.buttonSettings,{showPrevious:!0,showNext:!0,showSubmit:!0,showCancel:!this.options.readOnly}),this.isSecondInit||(this.isClickableDefined=null===(t=this.options)||void 0===t||null===(n=t.breadcrumbSettings)||void 0===n?void 0:n.hasOwnProperty("clickable"),this.isSecondInit=!0),this.options.breadcrumbSettings=i.default.defaults(this.options.breadcrumbSettings,{clickable:!0}),this.options.allowPrevious=this.options.allowPrevious||!1,this.page=0;var o=b(_(u.prototype),"init",this).call(this);return this.setComponentSchema(),null!==(e=this.pages)&&void 0!==e&&e[this.page]&&(this.component=this.pages[this.page].component),this.on("subWizardsUpdated",(function(e){var t=r.subWizards.find((function(t){var n;return(null==e?void 0:e.id)&&(null===(n=t.subForm)||void 0===n?void 0:n.id)===(null==e?void 0:e.id)}));r.subWizards.length&&t&&(t.subForm.setValue(e._submission,{},!0),r.establishPages(),r.redraw())})),o}},{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,t={};return[{name:"cancel",method:"cancel"},{name:"previous",method:"prevPage"},{name:"next",method:"nextPage"},{name:"submit",method:"submit"}].forEach((function(n){e.hasButton(n.name)&&(t[n.name]=n)})),t}},{key:"buttonOrder",get:function(){var e,t,n;return null!==(e=null===(t=this.options.properties)||void 0===t||null===(n=t.wizardButtonOrder)||void 0===n?void 0:n.toLowerCase().split(", "))&&void 0!==e?e:["cancel","previous","next","submit"]}},{key:"renderContext",get:function(){var e,t;return{wizardKey:this.wizardKey,isBreadcrumbClickable:this.isBreadcrumbClickable(),isSubForm:!!this.parent&&"wizard"===!(null!==(e=this.root)&&void 0!==e&&null!==(t=e.component)&&void 0!==t&&t.type),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 t=this.currentPanel;return t&&t.buttonSettings&&Object.keys(t.buttonSettings).forEach((function(){Object.keys(e.buttons).forEach((function(n){(void 0!==t.buttonSettings[n]&&!t.buttonSettings[n]||e.isSubForm)&&(e.buttons[n]=null)}))})),this.renderTemplate("wizardNav",e)}},{key:"prepareHeaderSettings",value:function(e,t){return this.currentPanel&&"none"===this.currentPanel.breadcrumb||e.isSubForm?null:this.renderTemplate(t,e)}},{key:"render",value:function(){var e=this,t=this.renderContext;this.component.key&&t.panels.map((function(n){n.key===e.component.key&&(e.currentPanel=n,t.wizardPageTooltip=e.getFormattedTooltip(n.tooltip))}));var n=this.prepareNavigationSettings(t),r="wizardHeader".concat(i.default.get(this.form,"settings.wizardHeaderType","")),o=i.default.get(this.form,"settings.wizardHeaderLocation","left"),a=this.prepareHeaderSettings(t,r);return this.renderTemplate("wizard",h(h({},t),{},{className:b(_(u.prototype),"getClassName",this).call(this),wizardHeader:a,wizardHeaderType:r,wizardHeaderLocation:o,wizardNav:n,components:this.renderComponents([].concat(c(this.prefixComps),c(this.currentPage.components),c(this.suffixComps)))}),this.builderMode?"builder":"form")}},{key:"redrawNavigation",value:function(){if(this.element){var e,t=this.element.querySelector("#".concat(this.wizardKey,"-nav"));t&&(this.detachNav(),t.outerHTML=this.renderTemplate("wizardNav",this.renderContext),t=this.element.querySelector("#".concat(this.wizardKey,"-nav")),this.loadRefs(t,(m(e={},"".concat(this.wizardKey,"-cancel"),"single"),m(e,"".concat(this.wizardKey,"-previous"),"single"),m(e,"".concat(this.wizardKey,"-next"),"single"),m(e,"".concat(this.wizardKey,"-submit"),"single"),e)),this.attachNav())}}},{key:"redrawHeader",value:function(){if(this.element){var e,t=this.element.querySelector("#".concat(this.wizardKey,"-header"));t&&(this.detachHeader(),t.outerHTML=this.renderTemplate("wizardHeader".concat(i.default.get(this.form,"settings.wizardHeaderType","")),this.renderContext),t=this.element.querySelector("#".concat(this.wizardKey,"-header")),this.loadRefs(t,(m(e={},"".concat(this.wizardKey,"-link"),"multiple"),m(e,"".concat(this.wizardKey,"-tooltip"),"multiple"),e)),this.attachHeader())}}},{key:"attach",value:function(e){var t,n,r=this;this.element=e,this.loadRefs(e,(m(t={},this.wizardKey,"single"),m(t,"".concat(this.wizardKey,"-header"),"single"),m(t,"".concat(this.wizardKey,"-cancel"),"single"),m(t,"".concat(this.wizardKey,"-previous"),"single"),m(t,"".concat(this.wizardKey,"-next"),"single"),m(t,"".concat(this.wizardKey,"-submit"),"single"),m(t,"".concat(this.wizardKey,"-link"),"multiple"),m(t,"".concat(this.wizardKey,"-tooltip"),"multiple"),t)),!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 o=this.attachComponents(this.refs[this.wizardKey],[].concat(c(this.prefixComps),c(this.currentPage.components),c(this.suffixComps))
2);return this.attachNav(),this.attachHeader(),o.then((function(){r.emit("render",{component:r.currentPage,page:r.page}),r.component.scrollToTop&&r.scrollPageToTop()}))}},{key:"scrollPageToTop",value:function(){var e,t=null!==(e=this.refs["".concat(this.wizardKey,"-header")])&&void 0!==e?e:this.refs[this.wizardKey];t&&("scrollIntoView"in t?t.scrollIntoView(!0):this.scrollIntoView(t))}},{key:"isBreadcrumbClickable",value:function(){var e=this,t=null;return this.pages.map((function(n){i.default.isEqual(e.currentPage.component,n.component)&&(t=n)})),this.isClickableDefined?this.options.breadcrumbSettings.clickable:i.default.get(t,"component.breadcrumbClickable",!0)}},{key:"isAllowPrevious",value:function(){var e=this,t=null;return this.pages.map((function(n){i.default.isEqual(e.currentPage.component,n.component)&&(t=n)})),i.default.get(t.component,"allowPrevious",this.options.allowPrevious)}},{key:"handleNaviageteOnEnter",value:function(e){if(13===e.keyCode){var t=new CustomEvent("click"),n=this.refs["".concat(this.wizardKey,"-").concat(this.buttons.next.name)];n&&n.dispatchEvent(t)}}},{key:"handleSaveOnEnter",value:function(e){if(13===e.keyCode){var t=new CustomEvent("click"),n=this.refs["".concat(this.wizardKey,"-").concat(this.buttons.submit.name)];n&&n.dispatchEvent(t)}}},{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)),i.default.each(this.buttons,(function(t){var n=e.refs["".concat(e.wizardKey,"-").concat(t.name)];e.addEventListener(n,"click",(function(r){r.preventDefault(),n.setAttribute("disabled","disabled"),e.setLoading(n,!0),e[t.method]().then((function(){n.removeAttribute("disabled"),e.setLoading(n,!1)})).catch((function(){n.removeAttribute("disabled"),e.setLoading(n,!1)}))}))}))}},{key:"emitWizardPageSelected",value:function(e){this.emit("wizardPageSelected",this.pages[e],e)}},{key:"attachHeader",value:function(){var e,t=this,n=this.isAllowPrevious();this.attachTooltips(this.refs["".concat(this.wizardKey,"-tooltip")],this.currentPanel.tooltip),(this.isBreadcrumbClickable()||n)&&(null===(e=this.refs["".concat(this.wizardKey,"-link")])||void 0===e||e.forEach((function(e,r){(!n||r<=t.enabledIndex)&&t.addEventListener(e,"click",(function(e){return t.emit("wizardNavigationClicked",t.pages[r]),e.preventDefault(),t.setPage(r).then((function(){t.emitWizardPageSelected(r)}))}))})))}},{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)),i.default.each(this.buttons,(function(t){e.removeEventListener(e.refs["".concat(e.wizardKey,"-").concat(t.name)],"click")}))}},{key:"detachHeader",value:function(){var e=this;this.refs["".concat(this.wizardKey,"-link")]&&this.refs["".concat(this.wizardKey,"-link")].forEach((function(t){e.removeEventListener(t,"click")}))}},{key:"transformPages",value:function(){var e=this,t=[],n=this.getSortedComponents(this),r=[];this.allPages=[];var o=function t(n,o){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=[],u=["datagrid","editgrid","dynamicWizard"],f=null!=n&&n.subForm?e.getSortedComponents(n.subForm):(null==n?void 0:n.components)||[],d=f.filter((function(e){return e._visible})),p=d.filter((function(e){return!u.includes(e.component.type)&&("form"!==e.type||e.isNestedWizard)})),h=f.filter((function(e){var t;return"wizard"!==(null===(t=e.subForm)||void 0===t?void 0:t._form.display)})),m=!1;if((0,l.eachComponent)(p,(function(n){if(n&&n.component&&("panel"===n.component.type&&null!=n&&n.parent.wizard&&!t(n,o,!1)&&(a&&(e.setRootPanelId(n),s.push(n)),m=!0),n.isNestedWizard&&n.subForm)){var r=t(n,s,a);m||(m=r)}}),!0),"panel"===n.component.type&&(!m&&a&&(e.setRootPanelId(n),o.push(n)),m&&h.length)){var v=i.default.clone(n);v.components=h,e.setRootPanelId(v),r.push(v)}return a&&(o.push.apply(o,c(r).concat(s)),r=[]),m};
2n.forEach((function(e){e.visible&&o(e,t)}),[]),this.localRoot&&this.id===this.localRoot.id&&t.forEach((function(e,t){e.eachComponent((function(e){e.page=t}))})),this.allPages=t}},{key:"getSortedComponents",value:function(e){var t=e.components,n=e.originalComponents,r=[],o=[];return t&&t.length&&t.map((function(e){"panel"===e.component.type&&(o[e.component.key||e.component.title]=e)})),null==n||n.forEach((function(e){e.key||(e.key=e.title),o[e.key]&&r.push(o[e.key])})),r}},{key:"findRootPanel",value:function(e){var t;return null!==(t=e.parent)&&void 0!==t&&t.parent?this.findRootPanel(e.parent):e}},{key:"setRootPanelId",value:function(e){var t;if(!e.rootPanelId||e.rootPanelId===e.id){var n=null!==(t=e.parent)&&void 0!==t&&t.parent?this.findRootPanel(e.parent):e;e.rootPanelId=n.id}}},{key:"establishPages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.data;this.pages=[],this.prefixComps=[],this.suffixComps=[];var n=[],r={},o=h(h({},i.default.clone(this.options)),this.parent?{root:this}:{});return this.components&&this.components.length&&this.components.forEach((function(e){"panel"===e.component.type&&(r[e.component.key||e.component.title]=e)})),this.originalComponents&&this.originalComponents.forEach((function(i){if("panel"===i.type){i.key||(i.key=i.title);var a=r[i.key],s=!!e.options.show&&e.options.show[i.key],u=!!e.options.hide&&e.options.hide[i.key],c=a?a.visible:(0,l.checkCondition)(i,t,t,e.component,e)&&!i.hidden;s?c=!0:u&&(c=!1),c&&(n.push(i),a&&e.pages.push(a)),!a&&c&&((a=e.createComponent(i,o)).visible=c,e.pages.push(a),a.eachComponent((function(t){t.page=e.pages.length-1})))}else"button"!==i.type&&(e.pages.length?e.suffixComps.push(e.createComponent(i,o)):e.prefixComps.push(e.createComponent(i,o)))})),this.pages.length&&this.emit("pagesChanged"),this.transformPages(),this.allPages&&this.allPages.length&&this.updatePages(),n}},{key:"updatePages",value:function(){this.pages=this.allPages}},{key:"addComponents",value:function(){this.establishPages()}},{key:"setPage",value:function(e){var t=this;if(e===this.page)return o.default.resolve();if(e>=0&&e<this.pages.length){this.page=e,this.pageFieldLogic(e),this.getNextPage();var n=e;if(this.hasExtraPages){var r=this.pages[e],i=this.components[e];i&&(null==r?void 0:r.id)===i.id||(n=this.components.findIndex((function(e){var r,o;return e.id===(null===(r=t.pages)||void 0===r||null===(o=r[n])||void 0===o?void 0:o.rootPanelId)})))}return this._seenPages.includes(n)||(this._seenPages=this._seenPages.concat(n)),this.redraw().then((function(){t.checkData(t.submission.data)})),o.default.resolve()}return this.pages.length?o.default.reject("Page not found"):(this.redraw(),o.default.resolve())}},{key:"pageFieldLogic",value:function(e){var t;null!==(t=this.pages)&&void 0!==t&&t[e]&&(this.component=this.pages[e].component,this.originalComponent=(0,l.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 t=this.submission.data,n=this.pages[this.page].component;if(n){var r=this.pages.length>this.page+1&&!this.showAllErrors?this.page+1:-1;if(n.nextPage){var o=this.evaluate(n.nextPage,{next:r,data:t,page:r,form:n},"next");if(null===o)return this.currentNextPage=null,null;var i=parseInt(o,10);return!isNaN(parseInt(i,10))&&isFinite(i)?(this.currentNextPage=i,i):(this.currentNextPage=this.getPageIndexByKey(o),this.currentNextPage)}return this.currentNextPage=r,r}this.currentNextPage=null}return null}},{key:"getPreviousPage",value:function(){return this.page-1}},{key:"beforeSubmit",value:function(){var e=this.getPages();return o.default.all(e.map((function(e){return e.options.beforeSubmit=!0,e.beforeSubmit()})))}},{key:"beforePage",value:function(e){var t=this;return new o.default((function(n,r){t.hook(e?"beforeNext":"beforePrev",t.currentPage,t.submission,(function(o){o&&(t.showErrors(o,!0),r(o));var i=t.currentPage;i?i.beforePage(e).then(n).catch(r):n()}))}))}}
2,{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)})),o.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 t=this;return this.options.readOnly?o.default.resolve():b(_(u.prototype),"cancel",this).call(this,e)?(this.setPristine(!0),this.setPage(0).then((function(){return t.enabledIndex&&(t.enabledIndex=0),t.onChange(),t.redraw(),t.page}))):o.default.resolve()}},{key:"getPageIndexByKey",value:function(e){var t=this.page;return this.pages.forEach((function(n,r){if(n.component.key===e)return t=r,!1})),t}},{key:"schema",get:function(){return this.wizard}},{key:"setComponentSchema",value:function(){var e=this,t={};if(this.originalComponents=[],this.component.components.map((function(n){"panel"===n.type&&(n.key=(0,l.uniqueKey)(t,n.key||"panel"),t[n.key]=!0,e.wizard.full?(e.options.show=e.options.show||{},e.options.show[n.key]=!0):e.wizard.hasOwnProperty("full")&&!i.default.isEqual(e.originalOptions.show,e.options.show)&&(e.options.show=h({},e.originalOptions.show||{}))),e.originalComponents.push(i.default.clone(n))})),!Object.keys(t).length){var n={type:"panel",title:"Page 1",label:"Page 1",key:"page1",components:this.component.components};this.component.components=[n],this.originalComponents.push(i.default.clone(n))}}},{key:"setForm",value:function(e,t){if(e)return b(_(u.prototype),"setForm",this).call(this,e,t)}},{key:"onSetForm",value:function(e,t){this.component.components=(this._parentPath?t.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 t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;this._submission=e,n&&n.fromSubmission&&(this.options.readOnly||this.editMode)&&!this.isHtmlRenderMode()&&(this._data=e.data),r||this.establishPages(e.data);var o=this.getPages({all:!0}).reduce((function(r,o){return t.setNestedValue(o,e.data,n,r)||r}),!1);return o&&this.pageFieldLogic(this.page),this.setEditMode(e),o}},{key:"isClickable",value:function(e,t){return this.page!==t&&(0,l.firstNonNil)([i.default.get(e,"breadcrumbClickable"),this.options.breadcrumbSettings.clickable])}},{key:"hasButton",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getNextPage(),n=i.default.get(this.currentPage,"component.buttonSettings",{}),r=n.previous,o=void 0===r?this.options.buttonSettings.showPrevious:r,a=n.cancel,s=void 0===a?this.options.buttonSettings.showCancel:a,l=n.submit,u=void 0===l?this.options.buttonSettings.showSubmit:l,c=n.next,f=void 0===c?this.options.buttonSettings.showNext:c;switch(e){case"previous":return o&&this.getPreviousPage()>-1;case"next":return f&&null!==t&&-1!==t;case"cancel":return s&&!this.options.readOnly;case"submit":return u&&!this.options.readOnly&&(null===t||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,t,n,r){var o,a,s=this;b(_(u.prototype),"onChange",this).call(this,e,t,n,r),this.alert&&!this.submitted&&(this.checkValidity(this.localData,!1,this.localData,!0),this.showErrors([],!0,!0));var l,c,f=this.currentNextPage;this.hasExtraPages?(o=this.pages.map((function(e){return e.component.key})),this.establishPages(),a=this.pages.map((function(e){return e.component.key}))):(o=this.currentPanels||this.pages.map((function(e){return e.component.key})),a=this.establishPages().map((function(e){return e.key})),this.currentPanels=a,null!==(l=this.currentPanel)&&void 0!==l&&l.key&&null!==(c=this.currentPanels)&&void 0!==c&&c.length&&this.setPage(this.currentPanels.findIndex((function(e){return e===s.currentPanel.key})))),(!i.default.isEqual(a,o)||e&&e.fromSubmission)&&this.redrawHeader(),f!==this.getNextPage()&&this.redrawNavigation()}},{key:"redraw",value:function(){var e,t;return null!==(e=this.parent)&&void 0!==e&&null!==(t=e.component)&&void 0!==t&&t.modalEdit?this.parent.redraw():b(_(u.prototype),"redraw",this).call(this)}},{key:"checkValidity",value:function(e,t,n,r){return this.checkCondition(n,e)?(!r||this.isLastPage()?this.getComponents():this.currentPage.components).reduce((function(r,o){return o.checkValidity(e,t,n
2)&&r}),!0):(this.setCustomValidity(""),!0)}},{key:"errors",get:function(){return this.isLastPage()?b(_(u.prototype),"errors",this):this.currentPage.errors}},{key:"focusOnComponent",value:function(e){var t,n,r=this,o=0,i=this.pages.filter((function(t,n){var r=!1;return t.getComponent(e,(function(t){t.path===e&&(o=n,r=!0)})),r})),a=(t=i,n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,n)||f(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return a&&a!==this.currentPage?this.setPage(o).then((function(){r.checkValidity(r.submission.data,!0,r.submission.data),r.showErrors(),b(_(u.prototype),"focusOnComponent",r).call(r,e)})):b(_(u.prototype),"focusOnComponent",this).call(this,e)}}],n&&y(t.prototype,n),u}(a.default);t.default=O,O.setBaseUrl=s.GlobalFormio.setBaseUrl,O.setApiUrl=s.GlobalFormio.setApiUrl,O.setAppUrl=s.GlobalFormio.setAppUrl},72940:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(34553),n(21249),n(26699),n(32023),n(2707),n(57327),n(41539),n(47941),n(54747),n(40561),n(69826),n(30489);var o=u(n(95529)),i=u(n(12215)),a=u(n(1848)),s=u(n(96486)),l=n(82531);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=p(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},d.apply(this,arguments)}function p(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(p,e);var t,n,r,o,u=(r=p,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(r);if(o){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return m(this,e)});function p(){var e,t,n;c(this,p),arguments[0]instanceof HTMLElement||arguments[1]?(t=arguments[0],n=arguments[1]):n=arguments[0],n.skipInit=!1,n.display="wizard",(e=u.call(this,t,n))._form={components:[e.getPageConfig(1)]},e.page=0;var r=function(t){e.groups[t]&&e.groups[t].components&&(e.groups[t].componentOrder=Object.keys(e.groups[t].components).map((function(n){return e.groups[t].components[n]})).filter((function(e){return e&&!e.ignore})).sort((function(e,t){return e.weight-t.weight})).map((function(e){return e.key})))};for(var o in e.groups)r(o);e.options.hooks.attachPanel=function(t,n){n.refs.removeComponent&&e.addEventListener(n.refs.removeComponent,"click",(function(){var t=e.pages.findIndex((function(e){return e.key===n.key})),r=e._form.components.findIndex((function(e){return e.key===n.key}));-1!==t&&e.removePage(t,r)}))};var i=e.options.hooks.renderComponents;e.options.hooks.renderComponents=function(e,t){var n=t.components,r=t.self;return"form"!==r.type||r.root?i(e,{components:n,self:r}):e};var a=e.options.hooks.attachComponents;return e.options.hooks.attachComponents=function(e,t,n,r){return"form"!==r.type||r.root?a(e,t,n,r):e},e.on("saveComponent",(function(t,n){var r=e.webform.components.map((function(e){return e.component}));if(e._form.components.includes(n))e._form.components[e._form.components.indexOf(n)]=t,e.rebuild();else if(r.includes(n))e._form.components.push(t),e.rebuild();else{var o=e._form.components.findIndex((function(e){return n.key===e.key}));-1!==o&&(e._form.components[o]=t,e.rebuild())}}),!0),e}return t=p,n=[{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
2ype:"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 t=this._form.components.filter((function(e){return"button"!==e.type}));this._form.components=[this.getPageConfig(1,t)]}this.rebuild()}},{key:"schema",get:function(){s.default.assign(this.currentPage,this.webform._form.components[0]);var e=new i.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(t){return e.renderTemplate("builderSidebarGroup",{group:e.groups[t],groupKey:t,groupId:"builder-sidebar-".concat(e.id),subgroups:e.groups[t].subgroups.map((function(n){return e.renderTemplate("builderSidebarGroup",{group:n,groupKey:n.key,groupId:"group-container-".concat(t),subgroups:[]})}))})}))}),pages:this.pages,form:this.webform.render()})}},{key:"attach",value:function(e){var t=this;return this.loadRefs(e,{addPage:"multiple",gotoPage:"multiple"}),this.refs.addPage.forEach((function(e){t.addEventListener(e,"click",(function(e){e.preventDefault(),t.addPage()}))})),this.refs.gotoPage.forEach((function(e,n){t.addEventListener(e,"click",(function(e){e.preventDefault(),t.setPage(n)}))})),d(v(p.prototype),"attach",this).call(this,e)}},{key:"rebuild",value:function(){var e=this.currentPage;return this.webform.setForm({display:"form",type:"form",components:e?[e]:[]},{keepAsReference:!0}),this.redraw()}},{key:"addPage",value:function(e){var t=e&&e.schema?(0,l.fastCloneDeep)(e.schema):this.getPageConfig(this.pages.length+1);return a.default.uniquify(this._form.components,t),this._form.components.push(t),this.emitSaveComponentEvent(t,t,this._form,"components",this._form.components.length-1,!0,t),this.emit("change",this._form),this.rebuild()}},{key:"removePage",value:function(e,t){return this._form.components.splice(t,1),this.emit("change",this._form),e===this.pages.length?0===e?(this._form.components.push(this.getPageConfig(1)),this.rebuild()):this.setPage(e-1):this.rebuild()}},{key:"setPage",value:function(e){if(e!==this.page)return this.page=e,this.rebuild()}},{key:"getPageConfig",value:function(e){var t=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:t}}},{key:"pasteComponent",value:function(e){if(!(e instanceof p))return this._form.components.find((function(t){return s.default.isEqual(e.component,t)}))?void this.addPage(e):d(v(p.prototype),"pasteComponent",this).call(this,e)}}],n&&f(t.prototype,n),p}(o.default);t.default=y},59671:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(30489);var o=s(n(34558)),i=s(n(91459)),a=s(n(96486));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(p,e);var t,n,r,o,s,d=(o=p,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(s){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(n=d.call(this,e)).namespace="formio.plugin",n.component=t||{},n.settings=a.default.merge({},n.defaultSettings,e||{}),n}return t=p,r=[{key:"info",get:function(){return{supportedComponents:[],name:"formioAddon",components:[],label:"Formio Addon",defaultSettings:{}}}}],(n=[{key:"defaultSettings",get:function(){return p.info.defaultSettings}},{key:"element",get:function(){return this._element}},{key:"attach",value:function(e){return this._element=e,i.default.resolve()}},{key:"destroy",value:function(){}}])&&l(t.prototype,n),r&&l(t,r),p}(o.default);t.default=d},10902:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(61550))&&r.__esModule?r:{default:r},i=[{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 belongth 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 backgounf 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:{}},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},o.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}]},o.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}
2,o.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"}];t.default=i},16996:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(91038),n(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(2707),n(74916),n(68309),n(44914),n(15306),n(24603),n(39714),n(41539),n(54747),n(92222),n(69600),n(30489);var o=s(n(96486)),i=s(n(59671)),a=s(n(10902));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=d(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},f.apply(this,arguments)}function d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(d,e);var t,n,r,i,s,u=(i=d,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(i);if(s){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function d(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(n=u.call(this,e,t))._entropy=0,n.levels=l(n.settings.levels||n.defaultSettings.levels),n.levels.sort((function(e,t){return e.maxEntropy-t.maxEntropy})),n.level=n.levels[0],n.maxEntropy=n.levels[n.levels.length-1].maxEntropy,n}return t=d,n=[{key:"defaultSettings",get:function(){return d.info.defaultSettings}},{key:"rules",get:function(){var e=this;return{length:{check:function(t,n){var r=n.minLength||e.component.component.validate.minLength||6;return!(t.length<r)||"Value must be longer than ".concat(r," 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 t=this.getLevel(),n="entropyChange"===this.settings.updateOn&&this._entropy!==e;this._entropy=e,this.level=this.getLevel(),("levelChange"===this.settings.updateOn&&t.name!==this.level.name||n)&&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,t;return(null===(e=this.level)||void 0===e?void 0:e.tooltip)||"".concat(null===(t=this.level)||void 0===t?void 0:t.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,t){return e&&t?this.log2(Math.pow(t,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 t=l(this.settings.blackList),n=this.settings.customBlacklistedWords;n&&"string"==typeof n&&(n=this.evaluate(n,this.component.evalContext({value:e}),"values"))&&n.length&&t.push.apply(t,l(n));for(var r=e,o=[],i=0;i<t.length;i++){var a=t[i],s=new RegExp("".concat(a),"gi");if(s.test(e)&&(o.push(a),r=r.replace(s,"")),r.length<3)break}if(o.length){var u=(r.length?this.performChecks(r):0).charactersPoolSize,c=this.calculatePasswordEntropy(r.length,u);return{entropy:this.calculatePasswordEntropyWords(o.length)+c,blackl
2istedWords:o}}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,t,n,r){if(!0!==e)r.push({validation:t.name,message:n,level:t.required?"error":"warning"});else if(t.increaseCharactersPoolSize)return t.increaseCharactersPoolSize;return 0}},{key:"performChecks",value:function(e){var t=this,n=[],r=0;return this.rulesSettings.forEach((function(i){if(t.rules[i.name]){var a=o.default.merge({},t.rules[i.name],i),s=a.check(e,i.options||{}),l=i.message||s;r+=t.handleRuleCheckResult(s,a,l,n)}})),this.customRules.forEach((function(o){if(o.check&&"string"==typeof o.check){var i=t.evaluate(o.check,t.component.evalContext({value:e}),"valid"),a="string"==typeof i?i:"Password does not meet ".concat(o.name," validation");r+=t.handleRuleCheckResult(i,o,a,n)}})),{charactersPoolSize:r,errors:n}}},{key:"checkValidity",value:function(e){var t,n=e.length,r=this.performChecks(e),o=r.charactersPoolSize,i=r.errors;this.errors=i;var a=this.calculatePasswordEntropy(n,o),s=null!==(t=this.settings.blackList)&&void 0!==t&&t.length||this.settings.customBlacklistedWords?this.checkBlackList(e):null;return s&&!0!==s?(this.handleBlackListCheckResult(s),this.entropy=Math.min(a,s.entropy)):this.entropy=a,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 t=e.blacklistedWords,n=this.settings.disableBlacklistedWords,r="Password ".concat(n?"must":"should"," not include common words: ").concat(t.join(", ")),o={name:"blacklist",required:n};this.handleRuleCheckResult(!1,o,r,this.errors)}},{key:"attach",value:function(e){var t=this;f(m(d.prototype),"attach",this).call(this,e);var n=this.component.ce("div",{ref:"passwordStrengthIndicator"});this.insertContainer(e,n)||this.component.append(n),this._element=n,this.component.on("redraw",(function(){return t.updateView()})),this.component.on("componentError",(function(){return t.updateView()})),this.updateView()}},{key:"insertContainer",value:function(e,t){var n,r;if(!e||!t)return!1;var o,i=null===(n=this.settings.location)||void 0===n?void 0:n.insert,a=null===(r=this.settings.location)||void 0===r?void 0:r.selector;if(a&&(o=e.querySelector(a)),!o)return console.warn("No elements found using selector: ".concat(a)),!1;var s=o.parentNode;switch(i){case"after":return!!s&&(s.insertBefore(t,o.nextSibling||null),!0);case"before":return!!s&&(s.insertBefore(t,o),!0);default:return console.warn("Unknown insert option: ".concat(i)),!1}}},{key:"destroy",value:function(){f(m(d.prototype),"destroy",this).call(this)}},{key:"getLevel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.entropy,t=this.levels[0],n=t.maxEntropy;if(e<=t.maxEntropy)return t;if(e>=this.maxEntropy)return this.levels[this.levels.length-1];for(var r=1;r<this.levels.length;r++){var o=this.levels[r];if(e>n&&e<=o.maxEntropy)return o;n=o.maxEntropy}return t}},{key:"updateView",value:function(){if(this.element){var e=this.render();this.element.innerHTML=e}}}],r=[{key:"info",get:function(){return{supportedComponents:["password"],name:"passwordStrength",components:a.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"]'}}}}}],n&&c(t.prototype,n),r&&c(t,r),d}(i.default);t.default=v},24951:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.editForms=t.default=void 0,n(21249),n(68309);var r,o=(r=n(16996))&&r.__esModule?r:{default:r},i=[o.default.info].map((function(e){var t=e.components,n=e.name;return{type:"form",key:"settings",display:"form",input:!0,components:t,defaultValue:{data:e.defaultSettings},customConditional:function(e){return e.row.name.value===n}}}));t.editForms=i;var a={passwordStrength:o.default};t.default=a},57514:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(96486)),o=s(n(6487)),i=s(n(95529)),a=s(n(72940));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u,c,f,d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"addBuilder",value:function(t,n){e.builders[t]=n}},{key:"addBuilders",value:function(t){e.builders=r.default.merge(e.builders,t)}},{key:"getBuilder",value:function(t){return e.builders[t]}},{key:"getBuilders",value:function(){return e.builders}}],null&&l(t.prototype,null),n&&l(t,n),e}();t.default=d,u=d,c="builders",f={pdf:o.default,webform:i.default,wizard:a.default},c in u?Object.defineProperty(u,c,{value:f,enumerable:!0,configurable:!0,writable:!0}):u[c]=f},39086:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(64430)),o=s(n(61550)),i=s(n(3248)),a=s(n(96486));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"EditFormUtils",get:function(){return e._editFormUtils},set:function(t){e._editFormUtils=t}},{key:"baseEditForm",get:function(){return e._baseEditForm},set:function(t){e._baseEditForm=t}},{key:"recalculateComponents",value:function(){window&&window.Formio&&window.Formio.AllComponents&&e.setComponents(window.Formio.AllComponents)}},{key:"components",get:function(){return e._components||(e._components={}),e._components}},{key:"setComponents",value:function(t){t.base&&(t.base.tableView=function(t,n){return e.create(n.component,n.options||{},n.data||{},!0).getView(t)}),a.default.assign(e.components,t)}},{key:"addComponent",value:function(t,n){return e.setComponent(t,n)}},{key:"setComponent",value:function(t,n){e.components[t]=n}},{key:"create",value:function(t,n,o){return t.type&&e.components.hasOwnProperty(t.type)?new e.components[t.type](t,n,o):t.arrayTree?new e.components.datagrid(t,n,o):t.tree?new e.components.nesteddata(t,n,o):Array.isArray(t.components)?new e.components.nested(t,n,o):n&&n.server?new e.components.hidden(t,n,o):new r.default(t,n,o)}}],null&&l(t.prototype,null),n&&l(t,n),e}();t.default=c,u(c,"_editFormUtils",o.default),u(c,"_baseEditForm",i.default)},3248:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var p=r.default.cloneDeep([{type:"tabs",key:"tabs",components:[{label:"Display",key:"display",weight:0,components:l.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:s.default},{label:"Conditional",key:"conditional",weight:40,components:i.default},{label:"Logic",key:"logic",weight:50,components:u.default},{label:"Layout",key:"layout",weight:60,components:f.default},{label:"Addons",key:"addons",weight:70,components:o.default}]}]).concat(t.map((function(e){return{type:"tabs",key:"tabs",components:r.default.cloneDeep(e)}})));return{components:r.default.unionWith(p,d.default.unifyComponents).concat({type:"hidden",key:"type"})}},n(92222),n(21249);var r=p(n(96486)),o=p(n(46716)),i=p(n(89551)),a=p(n(10024)),s=p(n(30811)),l=p(n(10684)),u=p(n(48911)),c=p(n(51250)),f=p(n(77869)),d=p(n(61550));
2function p(e){return e&&e.__esModule?e:{default:e}}},64430:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(33948),n(47941),n(49337),n(4129),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(19601),n(68309),n(92087),n(41539),n(54747),n(92222),n(26699),n(74916),n(23123),n(32023),n(15306),n(69600),n(39714),n(21249),n(40561),n(57327),n(91038),n(78783),n(47042),n(30489);var o=n(47853),i=g(n(91459)),a=g(n(13861)),s=g(n(96486)),l=g(n(90891)),u=n(19161),c=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=b(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}(n(82531)),f=g(n(6771)),d=g(n(34558)),p=g(n(72801)),h=g(n(22457)),m=g(n(24951)),v=n(17607),y=g(n(6701));function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(b=function(e){return e?n:t})(e)}function g(e){return e&&e.__esModule?e:{default:e}}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=S(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function x(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||S(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){if(e){if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(){return C="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=E(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},C.apply(this,arguments)}function E(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=T(e)););return e}function A(e,t){return A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},A(e,t)}function M(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return R(e)}function R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var D=c.getBrowserInfo().ie,I=D?"https://cdn.ckeditor.com/4.14.1/standard/ckeditor.js":"https://cdn.form.io/ckeditor/19.0.0/ckeditor.js",V=D?"https://cdn.quilljs.com/1.3.7":"https://cdn.quilljs.com/2.0.0-dev.3",L=u.GlobalFormio.Templates;L||(L=n(51508).default);var N=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(w,e);var t,n,r,d,b,g=(d=w,b=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=T(d);if(b){var n=T(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return M(this,e)});function w(e,t,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),r=g.call(this,Object.assign({renderMode:"form",attachMode:"full",noDefaults:!1},t||{})),e&&e.id&&(r.id=e.id),r._hasCondition=null,r.refs={},e&&r.options.components&&r.options.components[e.type]&&s.default.merge(e,r.options.components[e.type]),r.validator=f.default,r.path="",r.component=r.mergeSchema(e||{}
2),r.component.id=r.id,r.originalComponent=(0,c.fastCloneDeep)(r.component),r.attached=!1,r.rendered=!1,r._data=n||{},r.error="",r.tooltip="",r.row=r.options.row,r._disabled=!!(0,c.boolValue)(r.component.disabled)&&r.component.disabled,r.root=r.options.root,r.localRoot=r.options.localRoot,r.pristine=!0,r.parent=r.options.parent,r.options.name=r.options.name||"data",r.validators=["required","minLength","maxLength","minWords","maxWords","custom","pattern","json","mask"],r._path="",r._parentPath=r.options.parentPath||"",r.resetCaches(),r._parentVisible=!r.options.hasOwnProperty("parentVisible")||r.options.parentVisible,r._visible=r._parentVisible&&r.conditionallyVisible(null,n),r._parentDisabled=!1;var o=[],i=null,a=[],l=s.default.debounce((function(){var e;r.root&&(r.root.changing=!1),a=[];for(var t=arguments.length,n=new Array(t),l=0;l<t;l++)n[l]=arguments[l];!n[1]&&i&&(n[1]=i),s.default.isEmpty(n[0])&&i&&(n[0]=i.flags),i=null,n[3]=o;var u=(e=r).onChange.apply(e,n);return o=[],u}),100);return r.triggerChange=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1]&&(i=t[1],o.push(i)),r.root&&(r.root.changing=!0),t.length&&(a=t),l.apply(void 0,x(a))},r.triggerRedraw=s.default.debounce(r.redraw.bind(R(r)),100),r.tooltips=[],r.addons=[],r.invalid=!1,r.component&&(r.type=r.component.type,r.allowData&&r.key&&(r.options.name+="[".concat(r.key,"]"),!r.visible&&r.component.clearOnHide||(r.hasValue()?r.dataValue=r.dataValue:r.shouldAddDefaultValue&&(r.dataValue=r.defaultValue))),r.info=r.elementInfo()),r.hook("component"),r.options.skipInit||r.init(),r}return t=w,n=[{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 s.default.defaultsDeep(e,this.defaultSchema)}},{key:"ready",get:function(){return i.default.resolve(this)}},{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 t=this.parent&&this.parent.form&&"pdf"===this.parent.form.display&&this.options.readOnly;return this.hasInput&&this.component.validate&&(0,c.boolValue)(this.component.validate.required)&&!t&&(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,t=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 t.createAddon(e)}))}},{key:"createAddon",value:function(e){var t,n=e.name;if(n){var r=(null===(t=e.settings)||void 0===t?void 0:t.data)||{},o=m.default[n],i=null;if(o){var a=o.info.supportedComponents;null!=a&&a.length&&-1===a.indexOf(this.component.type)?console.warn("Addon ".concat(n," does not support component of type ").concat(this.component.type,".")):(i=new o(r,this),this.addons.push(i))}return i}}},{key:"destroy",value:function(){C(T(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 s.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:"visible",get:function(){return!!(this.builderMode||this.previewMode||this.options.showHiddenFields)||(!this.options.hide||!this.options.hide[this.component.key])&&(!(!this.options.show||!this.options.show[this.component.key])||this._visible&&this._parentVisible)},set:function(e){this._visible!==e&&(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("-")}
2},{key:"skipInEmail",get:function(){return!1}},{key:"rightDirection",value:function(e){return"right"===e}},{key:"getLabelInfo",value:function(){var e=this.rightDirection(this.labelPositions[0]),t="left"===this.labelPositions[0],n=this.rightDirection(this.labelPositions[1]),r="";if(this.component.hideLabel){var o=this.labelWidth+this.labelMargin;r=e?"margin-right: ".concat(o,"%"):"",r=t?"margin-left: ".concat(o,"%"):""}return{isRightPosition:e,isRightAlign:n,labelStyles:"\n flex: ".concat(this.labelWidth,";\n ").concat(e?"margin-left":"margin-right",": ").concat(this.labelMargin,"%;\n "),contentStyles:"\n flex: ".concat(100-this.labelWidth-this.labelMargin,";\n ").concat(r,";\n ").concat(this.component.hideLabel?"max-width: ".concat(100-this.labelWidth-this.labelMargin):"",";\n ")}}},{key:"getModifiedSchema",value:function(e,t,n){var r=this,o={};return t?(s.default.each(e,(function(e,i){if(!s.default.isArray(e)&&s.default.isObject(e)&&t.hasOwnProperty(i)){var a=r.getModifiedSchema(e,t[i],!0);s.default.isEmpty(a)||(o[i]=a)}else s.default.isArray(e)?0===e.length||s.default.isEqual(e,t[i])||(o[i]=e):(!n&&"type"===i||!n&&"key"===i||!n&&"label"===i||!n&&"input"===i||!n&&"tableView"===i||""!==e&&!t.hasOwnProperty(i)||""!==e&&e!==t[i]||t[i]&&e!==t[i])&&(o[i]=e)})),o):e}},{key:"schema",get:function(){return(0,c.fastCloneDeep)(this.getModifiedSchema(s.default.omit(this.component,"id"),this.defaultSchema))}},{key:"isInDataGrid",get:function(){return this.inDataGrid}},{key:"t",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"";if(e in y.default&&n._userInput)return e;n.data=this.rootValue,n.row=this.data,n.component=this.component;for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return(t=C(T(w.prototype),"t",this)).call.apply(t,[this,e,n].concat(o))}},{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",get:function(){return L.current.hasOwnProperty("transform")?L.current.transform.bind(L.current):function(e,t){return t}}},{key:"getTemplate",value:function(e,t){t=Array.isArray(t)?t:[t],e=Array.isArray(e)?e:[e],t.includes("form")||t.push("form");var n=null;if(this.options.templates&&(n=this.checkTemplate(this.options.templates,e,t)))return n;var r=this.options.template?L.templates[this.options.template]:L.current;if(n=this.checkTemplate(r,e,t))return n;var o=e[e.length-1],i=L.defaultTemplates[o];return i?this.checkTemplateMode(i,t)||i.form:"Unknown template: ".concat(o)}},{key:"checkTemplate",value:function(e,t,n){var r,o=O(t);try{for(o.s();!(r=o.n()).done;){var i=e[r.value];if(i){var a=this.checkTemplateMode(i,n);if(a)return a}}}catch(e){o.e(e)}finally{o.f()}return null}},{key:"checkTemplateMode",value:function(e,t){var n,r=O(t);try{for(r.s();!(n=r.n()).done;){var o=e[n.value];if(o)return o}}catch(e){r.e(e)}finally{r.f()}return null}},{key:"getFormattedTooltip",value:function(e){var t=this.interpolate(e||"").replace(/(?:\r\n|\r|\n)/g,"<br />");return t?this.t(t,{_userInput:!0}).replace(/"/g,"""):""}},{key:"isHtmlRenderMode",value:function(){return"html"===this.options.renderMode}}
2,{key:"renderTemplate",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=r||this.options.renderMode||"form";n.component=this.component,n.self=this,n.options=this.options,n.readOnly=this.options.readOnly,n.iconClass=this.iconClass.bind(this),n.size=this.size.bind(this),n.t=this.t.bind(this),n.transform=this.transform,n.id=n.id||this.id,n.key=n.key||this.key,n.value=n.value||this.dataValue,n.disabled=this.disabled,n.builder=this.builderMode,n.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"),t.renderTemplate.apply(t,arguments)},n.label=this.labelInfo,n.tooltip=this.getFormattedTooltip(this.component.tooltip);var i=["".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(i,o),n),n,o)}},{key:"sanitize",value:function(e,t,n){var r;return!this.shouldSanitizeValue&&!t||this.options.pdf&&!t?e:c.sanitize(e,{sanitizeConfig:s.default.merge((null===(r=this.options)||void 0===r?void 0:r.sanitizeConfig)||{},n||{})})}},{key:"renderString",value:function(e,t){return e?this.interpolate(e,t):""}},{key:"performInputMapping",value:function(e){return e}},{key:"widget",get:function(){var e,t=this.component.widget;return t&&null!==(e=this.root)&&void 0!==e&&e.shadowRoot&&(t.shadowRoot=this.root.shadowRoot),t&&h.default[t.type]?new h.default[t.type](t,this.component,this):null}},{key:"getBrowserLanguage",value:function(){var e,t=window.navigator,n=["language","browserLanguage","systemLanguage","userLanguage"];if(Array.isArray(t.languages))for(var r=0;r<t.languages.length;r++)if((e=t.languages[r])&&e.length)return e.split(";")[0];for(var o=0;o<n.length;o++)if((e=t[n[o]])&&e.length)return e.split(";")[0];return null}},{key:"beforePage",value:function(){return i.default.resolve(!0)}},{key:"beforeNext",value:function(){return this.beforePage(!0)}},{key:"beforeSubmit",value:function(){return i.default.resolve(!0)}},{key:"submissionTimezone",get:function(){return this.options.submissionTimezone=this.options.submissionTimezone||s.default.get(this.root,"options.submissionTimezone"),this.options.submissionTimezone}},{key:"loadRefs",value:function(e,t){for(var n in t)"single"===t[n]?this.refs[n]=e.querySelector('[ref="'.concat(n,'"]')):this.refs[n]=e.querySelectorAll('[ref="'.concat(n,'"]'))}},{key:"setOpenModalElement",value:function(e){this.componentModal.setOpenModalElement(e||this.getModalPreviewTemplate())}},{key:"getModalPreviewTemplate",value:function(){var e="password"===this.component.type?this.dataValue.replace(/./g,"â¢"):this.dataValue,t=this.error?{level:"error",message:this.error.message}:"";return this.renderTemplate("modalPreview",{previewText:this.getValueAsString(e,{modalPreview:!0})||this.t("Click to set value"),messages:t&&this.renderTemplate("message",t)})}},{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),t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.visible;return this.rendered=!0,this.builderMode||this.previewMode||!this.component.modalEdit?this.renderTemplate("component",{visible:n,id:this.id,classes:this.className,styles:this.customStyle,children:e},t):p.default.render(this,{visible:n,showSaveButton:this.hasModalSaveButton,id:this.id,classes:this.className,styles:this.customStyle,children:e},t)}},{key:"attachTooltips",value:function(e){var t=this;null==e||e.forEach((function(e,n){if(e){var r=e.getAttribute("data-tooltip"),o=e.getAttribute("data-title"),i=t.interpolate(o||r).replace(/(?:\r\n|\r|\n)/g,"<br />");t.tooltips[n]=(0,a.default)(e,{allowHTML:!0,trigger:"mouseenter click focus",placement:"right",zIndex:1e4,interactive:!0,content:t.t(i,{_userInput:!0})})}}))}},{key:"createComponentModal",value:function(e,t,n){return new p.default(this,e,t,n)}},{key:"attach",value:function(e){if(!this.builderMode&&!this.previewMode&&this.component.modalEdit){var t=!!this.componentModal&&this.componentModal.isOpened,n=t?this.componentModal.currentValue:this.dataValue,r=this.componentModal&&t?this.componentModal.openModalTemplate:null;this.componentModal=this.createComponentModal(e,t,n),this.setOpenModalElement(r)}
2this.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 o=this.component.type;return o&&this.hook("attach".concat(o.charAt(0).toUpperCase()+o.substring(1,o.length)),e,this),this.restoreFocus(),this.addons.forEach((function(t){return t.attach(e)})),i.default.resolve()}},{key:"restoreFocus",value:function(){var e,t,n;(null===(e=this.root)||void 0===e||null===(t=e.focusedComponent)||void 0===t?void 0:t.path)===this.path&&(this.loadRefs(this.element,{input:"multiple"}),this.focus(null===(n=this.root.currentSelection)||void 0===n?void 0:n.index),this.restoreCaretPosition())}},{key:"addShortcut",value:function(e,t){e&&this.root&&this.root!==this&&(t||(t=this.component.shortcut),this.root.addShortcut(e,t))}},{key:"removeShortcut",value:function(e,t){e&&this.root!==this&&(t||(t=this.component.shortcut),this.root.removeShortcut(e,t))}},{key:"detach",value:function(){this.refs={},this.removeEventListeners(),this.detachLogic(),this.tooltip&&this.tooltip.destroy()}},{key:"checkRefresh",value:function(e,t,n){var r=s.default.get(t,"instance.path",!1);r&&this.path===r||("data"===e?this.refresh(this.data,t,n):r&&(0,c.getComponentPath)(t.instance)===e&&t&&t.instance&&this.inContext(t.instance)&&this.refresh(t.value,t,n))}},{key:"checkRefreshOn",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=e||[],!n.noRefresh){!e.length&&n.changed&&(e=[n.changed]);var r=n.fromBlur?this.component.refreshOnBlur:this.component.refreshOn||this.component.redrawOn;r&&(Array.isArray(r)?r.forEach((function(r){return e.forEach((function(e){return t.checkRefresh(r,e,n)}))})):e.forEach((function(e){return t.checkRefresh(r,e,n)})))}}},{key:"refresh",value:function(e){this.hasOwnProperty("refreshOnValue")?this.refreshOnChanged=!s.default.isEqual(e,this.refreshOnValue):this.refreshOnChanged=!0,this.refreshOnValue=(0,c.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 t=this.parent;t;){if(t.data===e.data)return!0;t=t.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,t){var n=this,r=!this.refs.input||!this.refs.input[0]||!this.refs.input[0].widget;if(!e||r)return this.widget&&e?this.widget.getValueAsString(e):e;if(Array.isArray(e)){var o=[];return e.forEach((function(e,r){var i=n.refs.input[r]&&n.refs.input[r].widget;i&&o.push(i.getValueAsString(e,t))})),o}return this.refs.input[0].widget.getValueAsString(e,t)}},{key:"getValueAsString",value:function(e,t){if(!e)return"";if(e=this.getWidgetValueAsString(e,t),Array.isArray(e))return e.join(", ");if(s.default.isPlainObject(e))return JSON.stringify(e);if(null==e)return"";var n=e.toString();return this.sanitize(n)}},{key:"getView",value:function(e,t){return this.component.protected?"--- PROTECTED ---":this.getValueAsString(e,t)}},{key:"updateItems",value:function(){this.restoreValue(),this.onChange.apply(this,arguments)}},{key:"itemValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(s.default.isObject(e)){if(this.valueProperty)return s.default.get(e,this.valueProperty);if(t)return e.value}return e}},{key:"itemValueForHTMLMode",value:function(e){var t=this;return Array.isArray(e)?e.map((function(e){return Array.isArray(e)?t.itemValueForHTMLMode(e):t.itemValue(e)})).join(", "):this.itemValue(e)}},{key:"createModal",value:function(e,t,n){var r=this,o=this.ce("div",t||{});this.setContent(o,this.renderTemplate("dialog")),o.refs={},this.loadRefs.call(o,o,{dialogOverlay:"single",dialogContents:"single",dialogClose:"single"}),o.refs.dialogContents.appendChild(e),document.body.appendChild(o),document.body.classList.add("modal-open"),o.close=function(){document.body.classList.remove("modal-open"),o.dispatchEvent(new CustomEvent("close"))},this.addEventListener(o,"close",(function(){return r.removeChildFrom(o,document.body)}));var i=function(e){e.preventDefault(),o.close()},a=function(e){n?n().then((function(){return i(e)})).catch((function(){})):i(e)};return this.addEventListener(o.refs.dialogOverlay,"click",a),this.addEventListener(o.refs.dialogClose,"click",a),o}},{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?"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,c.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 s.default.each(this.component.style,(function(t,n){""!==t&&(e+="".concat(n,":").concat(t,";"))})),e}},{key:"isMobile",get:function(){return(0,l.default)()}},{key:"getElement",value:function(){return this.element}},{key:"evalContext",value:function(e){return C(T(w.prototype),"evalContext",this).call(this,Object.assign({component:this.component,row:this.data,rowIndex:this.rowIndex,data:this.root
2Value,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,t){var n=this.options.iconset||L.current.defaultIconset||"fa";return L.current.hasOwnProperty("iconClass")?L.current.iconClass(n,e,t):"fa"===this.options.iconset?L.defaultTemplates.iconClass(n,e,t):e}},{key:"size",value:function(e){return L.current.hasOwnProperty("size")?L.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,t,n,r){return e instanceof HTMLElement&&(e.innerHTML=this.sanitize(t,n,r),!0)}},{key:"restoreCaretPosition",value:function(){var e,t;if(null!==(e=this.root)&&void 0!==e&&e.currentSelection&&null!==(t=this.refs.input)&&void 0!==t&&t.length){var n=this.root.currentSelection,r=n.selection,o=n.index,i=this.refs.input[o],a=/text|search|password|tel|url/i.test(i.type||"");if(i){var s;a&&(s=i).setSelectionRange.apply(s,x(r))}else{var l,u=(null===(l=(i=this.refs.input[this.refs.input.length]).value)||void 0===l?void 0:l.length)||0;a&&i.setSelectionRange(u,u)}}}},{key:"redraw",value:function(){if(!this.element||!this.element.parentNode||this.optimizeRedraw)return i.default.resolve();this.detach(),this.emit("redraw");var e=this.element.parentNode,t=Array.prototype.indexOf.call(e.children,this.element);return this.element.outerHTML=this.sanitize(this.render()),this.element=e.children[t],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(T(w.prototype),"removeEventListeners",this).call(this),this.tooltips.forEach((function(e){return e.destroy()})),this.tooltips=[]}},{key:"hasClass",value:function(e,t){if(e)return C(T(w.prototype),"hasClass",this).call(this,e,this.transform("class",t))}},{key:"addClass",value:function(e,t){if(e)return C(T(w.prototype),"addClass",this).call(this,e,this.transform("class",t))}},{key:"removeClass",value:function(e,t){if(e)return C(T(w.prototype),"removeClass",this).call(this,e,this.transform("class",t))}},{key:"hasCondition",value:function(){return null!==this._hasCondition||(this._hasCondition=c.hasCondition(this.component)),this._hasCondition}},{key:"conditionallyVisible",value:function(e,t){return e=e||this.root
2Value,t=t||this.data,this.builderMode||this.previewMode||!this.hasCondition()?!this.component.hidden:(e=e||(this.root?this.root.data:{}),this.checkCondition(t,e))}},{key:"checkCondition",value:function(e,t){return c.checkCondition(this.component,e||this.data,t||this.rootValue,this.root?this.root._form:{},this)}},{key:"checkComponentConditions",value:function(e,t,n){e=e||this.rootValue,t=t||{},n=n||this.data,!this.builderMode&!this.previewMode&&this.fieldLogic(e,n)&&this.redraw();var r=this.conditionallyVisible(e,n);return this.visible!==r&&(this.visible=r),r}},{key:"checkConditions",value:function(e,t,n){return e=e||this.rootValue,t=t||{},n=n||this.data,this.checkComponentConditions(e,t,n)}},{key:"logic",get:function(){return this.component.logic||[]}},{key:"fieldLogic",value:function(e,t){var n=this;e=e||this.rootValue,t=t||this.data;var r=this.logic;if(0!==r.length){var o=(0,c.fastCloneDeep)(this.originalComponent),i=r.reduce((function(r,i){var a=c.checkTrigger(o,i.trigger,t,e,n.root?n.root._form:{},n);return!!a&&n.applyActions(o,i.actions,a,t,e)||r}),!1);if(!s.default.isEqual(this.component,o)){this.component=o,i=!0;var a=this.shouldDisabled;this.disabled!==a&&(this.disabled=a)}return i}}},{key:"isIE",value:function(){if("undefined"==typeof window)return!1;var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var r=e.indexOf("Edge/");return r>0&&parseInt(e.substring(r+5,e.indexOf(".",r)),10)}},{key:"defineActionValue",value:function(e,t){return this.evaluate(e.value,t,"value")}},{key:"applyActions",value:function(e,t,n,r,o){var i=this;return o=o||this.rootValue,r=r||this.data,t.reduce((function(t,a){switch(a.type){case"property":c.setActionProperty(e,a,n,r,o,i);var l=a.property.value;s.default.isEqual(s.default.get(i.component,l),s.default.get(e,l))||(t=!0);break;case"value":var u=i.getValue(),f=i.defineActionValue(a,{value:s.default.clone(u),data:o,row:r,component:e,result:n});s.default.isEqual(u,f)||(i.setValue(f),i.viewOnly&&(i.dataValue=f),t=!0);break;case"mergeComponentSchema":var d=i.evaluate(a.schemaDefinition,{value:s.default.clone(i.getValue()),data:o,row:r,component:e,result:n},"schema");s.default.assign(e,d),s.default.isEqual(i.component,e)||(t=!0);break;case"customAction":var p=i.getValue(),h=i.evaluate(a.customAction,{value:s.default.clone(p),data:o,row:r,input:p,component:e,result:n},"value");s.default.isEqual(p,h)||(i.setValue(h),i.viewOnly&&(i.dataValue=h),t=!0)}return t}),!1)}},{key:"addInputError",value:function(e,t,n){this.addMessages(e),this.setErrorClasses(n,t,!!e)}},{key:"removeInputError",value:function(e){this.setErrorClasses(e,!0,!1)}},{key:"addMessages",value:function(e){var t=this;e&&("string"==typeof e&&(e={messages:e,level:"error"}),Array.isArray(e)||(e=[e]),e=s.default.uniqBy(e,(function(e){return e.message})),this.refs.messageContainer&&this.setContent(this.refs.messageContainer,e.map((function(e){return t.renderTemplate("message",e)})).join("")))}},{key:"setErrorClasses",value:function(e,t,n,r){var o=this,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.element;this.clearErrorClasses(),e.forEach((function(e){o.setElementInvalid(o.performInputMapping(e),!1)})),this.setInputWidgetErrorClasses(e,n),n&&(e.forEach((function(e){o.setElementInvalid(o.performInputMapping(e),!0)})),t&&this.options.highlightErrors?this.addClass(i,this.options.componentErrorClass):this.addClass(i,"has-error")),r&&this.addClass(i,"has-message")}},{key:"setElementInvalid",value:function(e,t){e&&(t?this.addClass(e,"is-invalid"):this.removeClass(e,"is-invalid"),e.setAttribute("aria-invalid",t?"true":"false"))}},{key:"clearOnHide",value:function(){this.rootPristine&&!this.options.server&&!(0,c.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;if(this.options.onChange)(e=this.options).onChange.apply(e,arguments);else if(this.root){var t;(t=this.root).triggerChange.apply(t,arguments)}}},{key:"onChange",value:function(e,t){(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 n={instance:this,component:this.component,value:this.dataValue,flags:e};
2this.emit("componentChange",n);var r=!1;return e.modified&&(r=!0,delete e.modified),t||this.triggerRootChange(e,n,r),n}},{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,t,n){return(t=s.default.isEmpty(t)?{}:t).base64Upload=!this.component.isUploadEnabled,t.mediaEmbed={previewsInData:!0},t=s.default.merge(this.wysiwygDefault.ckeditor,s.default.get(this.options,"editors.ckeditor.settings",{}),t),this.component.isUploadEnabled&&t.extraPlugins.push((0,v.getFormioUploadAdapterPlugin)(this.fileService,this)),u.GlobalFormio.requireLibrary("ckeditor",D?"CKEDITOR":"ClassicEditor",s.default.get(this.options,"editors.ckeditor.src",I),!0).then((function(){if(!e.parentNode)return i.default.reject();if(D){var r=CKEDITOR.replace(e);return r.on("change",(function(){return n(r.getData())})),i.default.resolve(r)}return ClassicEditor.create(e,t).then((function(e){return e.model.document.on("change",(function(){return n(e.data.get())})),e}))}))}},{key:"addQuill",value:function(e,t,n){var r=this;return t=s.default.isEmpty(t)?this.wysiwygDefault.quill:t,t=k(k({},t=s.default.merge(this.wysiwygDefault.quill,s.default.get(this.options,"editors.quill.settings",{}),t)),{},{modules:k({table:!0},t.modules)}),u.GlobalFormio.requireLibrary("quill-css-".concat(t.theme),"Quill",[{type:"styles",src:"".concat(V,"/quill.").concat(t.theme,".css")}],!0),u.GlobalFormio.requireLibrary("quill","Quill",s.default.get(this.options,"editors.quill.src","".concat(V,"/quill.min.js")),!0).then((function(){return u.GlobalFormio.requireLibrary("quill-table","Quill","https://cdn.form.io/quill/quill-table.js",!0).then((function(){if(!e.parentNode)return i.default.reject();r.quill=new Quill(e,D?k(k({},t),{},{modules:{}}):t);var o=document.createElement("textarea");o.setAttribute("class","quill-source-code"),r.quill.addContainer("ql-custom").appendChild(o);var a=e.parentNode.querySelector(".ql-source");a&&r.addEventListener(a,"click",(function(e){e.preventDefault(),"inherit"===o.style.display&&r.quill.setContents(r.quill.clipboard.convert(o.value)),o.style.display="none"===o.style.display?"inherit":"none"})),r.addEventListener(e,"click",(function(){return r.quill.focus()}));for(var s=document.querySelectorAll(".ql-formats > button"),l=0;l<s.length;l++)s[l].setAttribute("tabindex","-1");return r.quill.on("text-change",(function(){o.value=r.quill.root.innerHTML,n(o)})),r.quill}))}))}},{key:"shouldSanitizeValue",get:function(){var e;return!1!==(null===(e=this.options)||void 0===e?void 0:e.sanitize)}},{key:"addAce",value:function(e,t,n){if(!t||"snow"===t.theme){var r=t?t.mode:"";t={},r&&(t.mode=r)}return t=s.default.merge(this.wysiwygDefault.ace,s.default.get(this.options,"editors.ace.settings",{}),t||{}),u.GlobalFormio.requireLibrary("ace","ace",s.default.get(this.options,"editors.ace.src","https://cdn.form.io/ace/1.4.10/ace.js"),!0).then((function(r){return(r=r.edit(e)).removeAllListeners("change"),r.setOptions(t),r.getSession().setMode(t.mode),r.on("change",(function(){return n(r.getValue())})),t.isUseWorkerDisabled&&r.session.setUseWorker(!1),r}))}},{key:"tree",get:function(){return this.component.tree||!1}},{key:"emptyValue",get:function(){return null}},{key:"hasValue",value:function(e){return s.default.has(e||this.data,this.key)}},{key:"rootValue",get:function(){return this.root?this.root.data:this.data}},{key:"rootPristine",get:function(){return s.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 s.default.get(this._data,this.key)},set:function(e){this.allowData&&this.key&&(this.visible||!this.component.clearOnHide||this.rootPristine)&&(null!=e&&(e=this.hook("setDataValue",e,this.key,this._data)),null!=e?s.default.set(this._data,this.key,e):this.unset())}},{key:"splice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.hasValue()){var n=this.dataValue||[];s.default.isArray(n)&&n.hasOwnProperty(e)&&(n.splice(e,1),this.dataValue=n,this.triggerChange(t))}}},{key:"unset",value:function(){s.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,t=this.emptyValue;this.component.defaultValue&&(t=this.component.defaultValue),t=this.getCustomDefaultValue(t);var n=function(t){if("string"==typeof t){var n=e.placeholderChar;t=(0,o.conformToMask)(t,e.defaultMask,{placeholderChar:n}).conformedValue,c.matchInputMask(t,e.defaultMask)||(t="")}else t="";return t};return this.defaultMask&&(t=Array.isArray(t)?t.map(n):n(t)),s.default.cloneDeep(t)}},{key:"getValue",value:function(){if(!this.hasInput||this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var e=[];for(var t in this.refs.input)if(this.refs.input.hasOwnProperty(t)){if(!this.component.multiple)return this.getValueAt(t);e.push(this.getValueAt(t))}return 0!==e.length||this.component.multiple?e:""}},{key:"getValueAt",value:function(e){var t=this.performInputMapping(this.refs.input[e]);return t?t.value:void 0}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
2,n=this.updateValue(e,t);if(e=this.dataValue,!this.hasInput)return n;var r=Array.isArray(e),o=this.refs.fileLink||this.refs.input;if(r&&Array.isArray(this.defaultValue)&&this.refs.hasOwnProperty("input")&&o&&o.length!==e.length&&this.visible&&this.redraw(),this.isHtmlRenderMode()&&t&&t.fromSubmission&&n)return this.redraw(),n;for(var i in this.refs.input)this.refs.input.hasOwnProperty(i)&&this.setValueAt(i,r?e[i]:e,t);return n}},{key:"setValueAt",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n.noDefault||null!=t||this.component.multiple||(t=this.defaultValue);var r=this.performInputMapping(this.refs.input[e]),o=this.refs.valueMaskInput;null!=o&&o.mask&&o.mask.textMaskInputElement.update(t),r.mask?r.mask.textMaskInputElement.update(t):r.widget&&r.widget.setValue?r.widget.setValue(t):r.value=t}},{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 t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.resetValue||null!=e?e:this.getValue(),r=void 0!==(n=this.normalizeValue(n,t))&&this.hasChanged(n,this.dataValue);return r&&(this.dataValue=n,this.updateOnChange(t,r)),this.componentModal&&t&&t.fromSubmission&&this.componentModal.setValue(e),r}},{key:"updateValue",value:function(){return this.updateComponentValue.apply(this,arguments)}},{key:"getIcon",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"icon";return this.renderTemplate("icon",{className:this.iconClass(e),ref:r,styles:n,content:t})}},{key:"resetValue",value:function(){this.unset(),this.setValue(this.emptyValue,{noUpdateEvent:!0,noValidate:!0,resetValue:!0})}},{key:"hasChanged",value:function(e,t){return!(null==e&&(null==t||this.isEmpty(t))||(null==e||!this.allowData||this.hasValue())&&s.default.isEqual(e,t))}},{key:"updateOnChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(e.noUpdateEvent||!t||(this.triggerChange(e),0))}},{key:"convertNumberOrBoolToString",value:function(e){return"number"==typeof e||"boolean"==typeof e?e.toString():e}},{key:"doValueCalculation",value:function(e,t,n){return this.evaluate(this.component.calculateValue,{value:e,data:t,row:n||this.data},"value")}},{key:"calculateComponentValue",value:function(e,t,n){var r=this.component.clearOnHide,o=!this.visible&&r,i=s.default.get(this.component,"allowCalculateOverride",!1);if(this.options.readOnly&&!this.options.pdf||!this.component.calculateValue&&!this.component.calculateValueVariable||o||this.options.server&&!this.component.calculateServer||t.dataSourceInitialLoading&&i)return!1;var a=this.dataValue,l=this.doValueCalculation(a,e,n,t);s.default.isNil(l)&&(l=this.emptyValue);var u=!s.default.isEqual(a,l);if(i){var c=t.fromSubmission&&!0===this.component.persistent;if(this.isEmpty(a))this.calculationLocked=!1;else if(this.calculationLocked||c)return this.calculationLocked=!0,!1;var f=void 0===this.calculatedValue;f&&(this.calculatedValue=null);var d=this.normalizeValue(this.convertNumberOrBoolToString(l)),p=this.normalizeValue(this.convertNumberOrBoolToString(this.calculatedValue)),h=this.normalizeValue(this.convertNumberOrBoolToString(a)),m=!s.default.isEqual(p,d),v=!s.default.isEqual(h,p);if(m&&v&&!f)return!1;if(p&&v&&!m)return!1;if(t.isReordered||!m)return!1;if(c)return this.calculatedValue=l,!1;if(f&&!this.isEmpty(a)&&u&&m)return!0}return this.calculatedValue=l,!!u&&(t.noPristineChangeOnModified||(this.pristine=!1),t.triggeredComponentId=this.id,this.setValue(l,t))}},{key:"calculateValue",value:function(e,t,n){return e=e||this.root
2Value,t=t||{},n=n||this.data,this.calculateComponentValue(e,t,n)}},{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,t,n,r){return n||this.checkCondition(r,e)?this.invalid?this.invalid:!this.hasInput||!t&&this.pristine?"":s.default.map(f.default.checkComponent(this,e),"message").join("\n\n"):""}},{key:"isValid",value:function(e,t){return!this.invalidMessage(e,t)}},{key:"setComponentValidity",value:function(e,t,n){var r=!!e.filter((function(e){return"error"===e.level&&!e.fromServer})).length;return!e.length||n&&!this.error||this.isEmpty(this.defaultValue)&&!t&&this.pristine?n||this.setCustomValidity(""):this.setCustomValidity(e,t),!r}},{key:"checkComponentValidity",value:function(e,t,n){var r,o=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e=e||this.rootValue,n=n||this.data;var s=a.async,l=void 0!==s&&s,u=a.silentCheck,c=void 0!==u&&u;if(this.shouldSkipValidation(e,t,n))return this.setCustomValidity(""),!l||i.default.resolve(!0);var d=f.default.checkComponent(this,e,n,!0,l),p=d;return null!==(r=this.serverErrors)&&void 0!==r&&r.length&&(p=d.concat(this.serverErrors)),l?p.then((function(e){return o.setComponentValidity(e,t,c)})):this.setComponentValidity(p,t,c)}}
2,{key:"checkValidity",value:function(e,t,n,r){e=e||this.rootValue,n=n||this.data;var o=this.checkComponentValidity(e,t,n,{silentCheck:r});return this.checkModal(),o}},{key:"checkAsyncValidity",value:function(e,t,n,r){return i.default.resolve(this.checkComponentValidity(e,t,n,{async:!0,silentCheck:r}))}},{key:"checkData",value:function(e,t,n){if(e=e||this.rootValue,t=t||{},n=n||this.data,this.resetCaches(),t.fromBlur||this.checkRefreshOn(t.changes,t),t.noCheck)return!0;if(this.checkComponentConditions(e,t,n),this.id!==t.triggeredComponentId&&this.calculateComponentValue(e,t,n),t.noValidate&&!t.validateOnInit&&!t.fromIframe)return t.fromSubmission&&this.rootPristine&&this.pristine&&this.error&&t.changed&&this.checkComponentValidity(e,!!this.options.alwaysDirty,n,!0),!0;var r=!1;if((this.options.alwaysDirty||t.dirty)&&(r=!0),t.fromSubmission&&this.hasValue(e)&&(r=!0),this.setDirty(r),"blur"===this.component.validateOn&&t.fromSubmission)return!0;var o=this.checkComponentValidity(e,r,n,t);return this.checkModal(),o}},{key:"checkModal",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.component.modalEdit&&this.componentModal&&(t&&!e?this.setErrorClasses([this.refs.openModal],t,!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,t=!(!s.default.isArray(e)||1!==e.length)&&s.default.isEqual(e[0],this.emptyValue);return null==e||0===e.length||s.default.isEqual(e,this.emptyValue)||t}},{key:"isEqual",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.dataValue;return this.isEmpty(e)&&this.isEmpty(t)||s.default.isEqual(e,t)}},{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,t){this.isInputComponent&&this.component.widget&&null!=e&&e.length&&e.forEach((function(e){null!=e&&e.widget&&e.widget.setErrorClasses&&e.widget.setErrorClasses(t)}))}},{key:"setCustomValidity",value:function(e,t,n){var r=this,o=this.isInputComponent?this.refs.input||[]:null;"string"==typeof e&&e&&(e={level:"error",message:e}),Array.isArray(e)||(e=e?[e]:[]);var i=!!e.filter((function(e){return"error"===e.level})).length,a=o;if(this.component.multiple){var s=Array.from(o);s.forEach((function(e){r.setElementInvalid(r.performInputMapping(e),!1)})),a=s.filter((function(t){var n,r;return null===(n=(r=e).some)||void 0===n?void 0:n.call(r,(function(e){var n;return(null==e||null===(n=e.context)||void 0===n?void 0:n.input)===t}))}))}e.length?(this.refs.messageContainer&&this.empty(this.refs.messageContainer),this.error={component:this.component,message:e[0].message,messages:e,external:!!n},this.emit("componentError",this.error),this.addMessages(e,t,a),a&&this.setErrorClasses(a,t,i,!!e.length)):(!this.error||this.error&&this.error.external===!!n)&&(this.refs.messageContainer&&this.empty(this.refs.messageContainer),this.refs.modalMessageContainer&&this.empty(this.refs.modalMessageContainer),this.error=null,a&&this.setErrorClasses(a,t,i,!!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,t,n){var r=this;return[function(){return r.options.readOnly},function(){return!r.hasInput},function(){return r.isValueHidden()},function(){return!r.visible},function(){return!r.checkCondition(n,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 i.default.resolve()}},{key:"asString",value:function(e){return e=e||this.getValue(),(Array.isArray(e)?e:[e]).map(s.default.toString).join(", ")}},{key:"disabled",get:function(){return this._disabled||this.parentDisabled},set:function(e){this._disabled=e}},{key:"setDisabled",value:function(e,t){e&&(e.disabled=t,t?e.setAttribute("disabled","disabled"):e.removeAttribute("disabled"))}}
2,{key:"setLoading",value:function(e,t){e&&e.loading!==t&&(e.loading=t,!e.loader&&t&&(e.loader=this.ce("i",{class:"".concat(this.iconClass("refresh",!0)," button-icon-right")})),e.loader&&(t?this.appendTo(e.loader,e):this.removeChildFrom(e.loader,e)))}},{key:"selectOptions",value:function(e,t,n,r){var o=this;s.default.each(n,(function(t){var n={value:t.value};void 0!==r&&t.value===r&&(n.selected="selected");var i=o.ce("option",n);i.appendChild(o.text(t.label)),e.appendChild(i)}))}},{key:"setSelectValue",value:function(e,t){var n=e.querySelectorAll("option");s.default.each(n,(function(e){e.value===t?e.setAttribute("selected","selected"):e.removeAttribute("selected")})),e.onchange&&e.onchange(),e.onselect&&e.onselect()}},{key:"getRelativePath",value:function(e){var t=".".concat(this.key),n=this.isInputComponent?this.path:this.path.slice(0).replace(t,"");return e.replace(n,"")}},{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(t){if("event"===t.trigger.type){var n=e.interpolate(t.trigger.event);e.off(n)}}))}},{key:"attachLogic",value:function(){var e=this;this.builderMode||this.logic.forEach((function(t){if("event"===t.trigger.type){var n=e.interpolate(t.trigger.event);e.on(n,(function(){for(var n=(0,c.fastCloneDeep)(e.originalComponent),r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];if(e.applyActions(n,t.actions,o)&&!s.default.isEqual(e.component,n)){e.component=n;var a=e.conditionallyVisible(null,null),l=e.shouldDisabled;e.visible!==a&&(e.visible=a),e.disabled!==l&&(e.disabled=l),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"),s.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 t=e.getBoundingClientRect(),n=t.left,r=t.top;window.scrollTo(n+window.scrollX,r+window.scrollY)}}},{key:"focus",value:function(e){var t;if("beforeFocus"in this.parent&&this.parent.beforeFocus(this),null!==(t=this.refs.input)&&void 0!==t&&t.length){var n,r="number"==typeof e&&this.refs.input[e]?this.refs.input[e]:this.refs.input[this.refs.input.length-1];if("calendar"===(null===(n=this.component.widget)||void 0===n?void 0:n.type)){var o=r.nextSibling;o&&o.focus()}else r.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 u.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}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.default.merge.apply(s.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(t))}},{key:"Validator",get:function(){return f.default}},{key:"tableView",value:function(e,t){}}],n&&P(t.prototype,n),r&&P(t,r),w}(d.default);t.default=N,N.externalLibraries={},N.requireLibrary=function(e,t,n,r){if(!N.externalLibraries.hasOwnProperty(e)){N.externalLibraries[e]={},N.externalLibraries[e].ready=new i.default((function(t,n){N.externalLibraries[e].resolve=t,N.externalLibraries[e].reject=n}));var o="".concat(e,"Callback");r||window[o]||(window[o]=function(){this.resolve()}.bind(N.externalLibraries[e]));var a=s.default.get(window,t);a?N.externalLibraries[e].resolve(a):((n=Array.isArray(n)?n:[n]).forEac
2h((function(e){var t={},n="";switch("string"==typeof e&&(e={type:"script",src:e}),e.type){case"script":n="script",t={src:e.src,type:"text/javascript",defer:!0,async:!0};break;case"styles":n="link",t={href:e.src,rel:"stylesheet"}}var r=document.createElement(n);for(var o in t)r.setAttribute(o,t[o]);document.getElementsByTagName("head")[0].appendChild(r)})),r&&setTimeout((function n(){var r=s.default.get(window,t);r?N.externalLibraries[e].resolve(r):setTimeout(n,200)}),200))}return N.externalLibraries[e].ready},N.libraryReady=function(e){return N.externalLibraries.hasOwnProperty(e)&&N.externalLibraries[e].ready?N.externalLibraries[e].ready:i.default.reject("".concat(e," library was not required."))}},46716:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(91038),n(47042),n(68309),n(74916),n(4129),n(38880),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(57327),n(41539),n(47941),n(26699),n(32023),n(21249);var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(24951));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s,l=[{type:"editgrid",addAnother:"Add Addon",saveRow:"Save Addon",weight:28,input:!0,key:"addons",label:"Addons",components:[{label:"Name",tableView:!0,key:"name",type:"select",dataSrc:"custom",data:{custom:function(e){var t,n,r=e.instance,i=null==r||null===(t=r.root)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.type;return Object.keys(o.default).filter((function(e){var t,n,r;return!(null===(t=o.default[e])||void 0===t||null===(n=t.info)||void 0===n||null===(r=n.supportedComponents)||void 0===r||!r.includes(i))})).map((function(e){return{value:e,label:o.default[e].info.label||e}}))}},input:!0}].concat((s=o.editForms,function(e){if(Array.isArray(e))return a(e)}(s)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(s)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}];t.default=l},30811:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}}]},89551:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(61550))&&r.__esModule?r:{default:r},i=n(82531),a=[{type:"panel",title:"Simple",key:"simple-conditional",theme:"default",components:[{type:"select",input:!0,label:"This component should Dis
2play:",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,i.getContextComponents)(e)}}},{type:"textfield",input:!0,label:"Has the value:",key:"conditional.eq"}]},o.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">Click here for an example</a></p>')];t.default=a},10024:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(61550))&&r.__esModule?r:{default:r},i=[{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 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 (Enterprise Only)",tooltip:"Encrypt this field on the server. This is two way encryption which is not suitable for passwords.",key:"encrypted",input:!0},{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 t=[];return t.push({label:"Any Change",value:"data"}),e.utils.eachComponent(e.instance.options.editForm.components,(function(n,r){n.key!==e.data.key&&t.push({label:n.label||n.key,value:r})})),t}},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,clearOnHide:!1,calculateValue:"value = data.hidden ? false : value",conditional:{json:{"!":[{var:"data.hidden"}]}}},o.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>'),o.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 target="_blank" href="http://formio.github.io/formio.js/app/examples/calculated.html">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."}];t.default=i},10684:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92087),t.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}},{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:"Custom 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 when in a Datagrid.",key:"dataGridLabel",input:!0,customConditional:function(e){var t,n;return null===(t=e.instance.options)||void 0===t||null===(n=t.flags)||void 0===n?void 0:n.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}]},77869:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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:"
2Custom 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)."}]}]},48911:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(19601);var r,o=(r=n(61550))&&r.__esModule?r:{default:r},i=n(82531),a=[{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,i.getContextComponents)(e)}}},{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 t=e.row;return"property"===t.type&&t.hasOwnProperty("property")&&"boolean"===t.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 t=e.row;return"property"===t.type&&t.hasOwnProperty("property")&&"string"===t.property.type&&!t.property.component}}
2,{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(o.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}}]}]}]}];t.default=a},51250:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(61550)),o=i(n(193));function i(e){return e&&e.__esModule?e:{default:e}}var a=[{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!o.default.noeval||o.default.protectedEval},components:[r.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">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>
2r<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 '}]}];t.default=a},61550:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(57327),n(41539),n(40561);var r=i(n(96486)),o=i(n(193));function i(e){return e&&e.__esModule?e:{default:e}}var a={sortAndFilterComponents:function(e){return r.default.filter(r.default.sortBy(e,"weight"),(function(e){return!e.ignore}))},unifyComponents:function(e,t){return e.key&&t.key?!e.skipMerge&&!t.skipMerge&&e.key===t.key&&(r.default.each(e,(function(n,r){!e.overrideEditForm&&t.hasOwnProperty(r)||(t[r]=n)})),r.default.each(t,(function(n,r){!t.overrideEditForm&&e.hasOwnProperty(r)||(e[r]=n)})),e.components&&(t.components=a.sortAndFilterComponents(r.default.unionWith(e.components,t.components,a.unifyComponents))),!0):r.default.isEqual(e,t)},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">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">FormioUtils</a> object.</td></tr><tr><th>util</th><td>An alias for "utils".</td></tr></table><br/>'}},javaScriptValue:function(e,t,n,r,i,a){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"",l=arguments.length>7?arguments[7]:void 0,u=[this.logicVariablesTable(s),{type:"panel",title:"JavaScript",collapsible:!0,collapsed:!1,style:{"margin-bottom":"10px"},key:"".concat(t,"-js"),customConditional:function(){return!o.default.noeval||o.default.protectedEval},components:[{type:"textarea",key:t,rows:5,editor:"ace",hideLabel:!0,as:"javascript",input:!0},{type:"htmlelement",tag:"div",content:"<p>Enter custom javascript code.</p>".concat(i)}]},{type:"panel",title:"JSONLogic",collapsible:!0,collapsed:!0,key:"".concat(t,"-json"),components:[{type:"htmlelement",tag:"div",content:'<p>Execute custom logic using <a href="http://jsonlogic.com/" target="_blank">JSONLogic</a>.</p><p>Full <a href="https://lodash.com/docs" target="_blank">Lodash</a> support is provided using an "_" before each operation, such as <code>{"_sum": {var: "data.a"}}</code></p>'+a},{type:"textarea",key:n,rows:5,editor:"ace",hideLabel:!0,as:"json",input:!0}]}];return l&&u.splice(2,1),{type:"panel",title:e,theme:"default",collapsible:!0,collapsed:!0,key:"".concat(t,"Panel"),weight:r,components:u}}},s=a;t.default=s},72801:function(e,t,n){"use strict";n(47941),n(82526),n(57327),n(41539),n(38880),n(54747),n(49337),Ob
2ject.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222);var r,o=(r=n(96486))&&r.__esModule?r:{default:r},i=n(82531);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isOpened=r,this.component=t,this.element=n,this.currentValue=(0,i.fastCloneDeep)(null!=o?o:this.component.getValue()),this.dataLoaded=!1,this.init()}var t,n,r;return t=e,r=[{key:"render",value:function(e,t,n){var r=e.renderTemplate("component",t,n);return e.renderTemplate("componentModal",s(s({},t),{},{children:r,isOpened:this}))}}],(n=[{key:"refs",get:function(){return this.component.refs}},{key:"init",value:function(){var e=this;this.openModalListener=this.openModalHandler.bind(this),this.showDialogListener=function(t){e.isValueChanged()&&!e.component.disabled?e.showDialog():e.closeModalHandler(t)},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=(0,i.fastCloneDeep)(e),this.dataLoaded=!0,this.updateView())}},{key:"setOpenModalElement",value:function(e){var t;null!==(t=this.component)&&void 0!==t&&t.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(),t=this.currentValue;return e&&e.data&&e.metadata&&(e=this.component.getValue().data,t=this.currentValue.data),!o.default.isEqual((0,i.fastCloneDeep)(e),t)}},{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=o.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(o.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 t;e.preventDefault(),this.currentValue=(0,i.fastCloneDeep)(null!==(t=this.component.dataValue)&&void 0!==t?t:this.component.getValue()),this.closeModal()}}])&&u(t.prototype,n),r&&u(t,r),e}();t.default=c},68093:function(e,t,n){"use strict";function r(e){return r="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},r(e)}var o;function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?i(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=f(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},c.apply(this,arguments)}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}n(41539),n(12419),n(74819),n(38880),n(47941),n(82526),n(57327),n(54747),n(49337),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(30489);var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(s,e);var t,n,r,o,i=(r=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(o){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return p(this,e)});function s(){return l(this,s),i.apply(this,arguments)}return t=s,(n=[{key:"render",value:function(e){return this.noField?c(h(s.prototype),"render",this).call(this,e):this.isAdvancedLabel?c(h(s.prototype),"render",this).call(this,this.renderTemplate("field",a(a({},this.getLabelInfo()),{},{labelMarkup:this.renderTemplate("label"),element:e}),"align")):c(h(s.prototype),"render",this).call(this,this.renderTemplate("field",{labelMarkup:this.renderTemplate("label"),element:e}))}}])&&u(t.prototype,n),s}(((o=n(64430))&&o.__esModule?o:{default:o}).default);t.default=m},63820:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68309),n(21249),n(69826),n(41539),n(74916),n(23123),n(73210),n(15306),n(92222),n(30489);var o=u(n(99606)),i=n(82531),a=u(n(22457)),s=u(n(91459)),l=u(n(96486));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=d(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},f.apply(this,arguments)}function d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(b,e);var t,n,r,u,d,y=(u=b,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(u);if(d){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function b(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b),(r=y.call(this,e,t,n)).triggerUpdateValueAt=l.default.debounce(r.updateValueAt.bind(m(r)),100),r}return t=b,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.schema.apply(o.default,[{widget:{type:"input"}}].concat(t))}}],(n=[{key:"inputInfo",get:function(){var e={name:this.options.name,type:this.component.inputType||"text",class:"form-control",lang:this.options.language};return this.component.inputMode&&(e.inputmode=this.component.inputMode),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"),this.component.autocomplete&&(e.autocomplete=this.component.autocomplete),l.default.defaults(e,this.component.attributes),{id:this.key,type:"input",changeEvent:"input",content:"",attr:e}}},{key:"maskOptions",get:function(){return l.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 t=l.default.find(this.component.inputMasks,(function(t){return t.label===e}));return t?t.mask:void 0}},{key:"setInputMask",value:function(e,t){var n=t||this.component.displayMask||this.component.inputMask;return f(v(b.prototype),"setInputMask",this).call(this,e,n,!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 l.default.parseInt(l.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,i.convertStringToHTMLElement)(e,'[ref="icon"]')}return this.component.suffix}},{key:"renderElement",value:function(e,t){e&&"string"==typeof e&&(e=e.replace(/"/g,"""));var n=this.inputInfo;n.attr=n.attr||{},n.attr.value=this.getValueAsString(this.formatValue(this.parseValue(e))).replace(/"/g,""");var r=this.component.inputMask,o=this.component.displayMask,i=r&&o&&r!==o;return this.isMultipleMasksField&&(n.attr.class+=" formio-multiple-mask-input"),this.isMultipleMasksField?this.renderTemplate("multipleMasksInput",{input
2:n,value:e,index:t,selectOptions:this.getMaskOptions()||[]},this.isHtmlRenderMode()?"html":null):this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:n,value:this.formatValue(this.parseValue(e)),hasValueMaskInput:i,index:t},this.isHtmlRenderMode()?"html":null)}},{key:"setCounter",value:function(e,t,n,r){if(r){var o=r-n;o>0?this.removeClass(t,"text-danger"):this.addClass(t,"text-danger"),this.setContent(t,this.t("{{ remaining }} ".concat(e," remaining."),{remaining:o}))}else this.setContent(t,this.t("{{ count }} ".concat(e),{count:n}))}},{key:"updateValueAt",value:function(e,t,n){if(t=t||{},l.default.get(this.component,"showWordCount",!1)&&this.refs.wordcount&&this.refs.wordcount[n]){var r=l.default.parseInt(l.default.get(this.component,"validate.maxWords",0),10);this.setCounter(this.t("words"),this.refs.wordcount[n],this.getWordCount(e),r)}if(l.default.get(this.component,"showCharCount",!1)&&this.refs.charcount&&this.refs.charcount[n]){var o=l.default.parseInt(l.default.get(this.component,"validate.maxLength",0),10);this.setCounter(this.t("characters"),this.refs.charcount[n],e.length,o)}}},{key:"getValueAt",value:function(e){var t=this.performInputMapping(this.refs.input[e]);return t&&t.widget?t.widget.getValue():t?t.value:void 0}},{key:"updateValue",value:function(e,t,n){t=t||{};var r=f(v(b.prototype),"updateValue",this).call(this,e,t);return this.triggerUpdateValueAt(this.dataValue,t,n),r}},{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"}),f(v(b.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,t){var n=this;f(v(b.prototype),"attachElement",this).call(this,e,t),e.widget&&e.widget.destroy();var r=s.default.resolve();return e.widget=this.createWidget(t),e.widget&&(r=e.widget.attach(e),this.refs.prefix&&this.refs.prefix[t]&&e.widget.addPrefix(this.refs.prefix[t]),this.refs.suffix&&this.refs.suffix[t]&&e.widget.addSuffix(this.refs.suffix[t])),this.addFocusBlurEvents(e),this.options.submitOnEnter&&this.addEventListener(e,"keypress",(function(e){13===(e.keyCode||e.which)&&(e.preventDefault(),e.stopPropagation(),n.emit("submitButton"))})),r}},{key:"createWidget",value:function(e){var t,n=this;if(!this.component.widget)return null;var r,o="string"==typeof this.component.widget?{type:this.component.widget}:this.component.widget;if(null!==(t=this.root)&&void 0!==t&&t.shadowRoot&&(o.shadowRoot=null===(r=this.root)||void 0===r?void 0:r.shadowRoot),!a.default.hasOwnProperty(o.type))return null;var i=new a.default[o.type](o,this.component,this,e);return i.on("update",(function(){return n.updateValue(n.getValue(),{modified:!0},e)}),!0),i.on("redraw",(function(){return n.redraw()}),!0),i}},{key:"detach",value:function(){if(f(v(b.prototype),"detach",this).call(this),this.refs&&this.refs.input)for(var e=0;e<=this.refs.input.length;e++){var t=this.getWidget(e);t&&t.destroy()}this.refs.input=[]}},{key:"addFocusBlurEvents",value:function(e){var t=this;this.addEventListener(e,"focus",(function(){t.root.focusedComponent!==t?(t.root.pendingBlur&&t.root.pendingBlur(),t.root.focusedComponent=t,t.emit("focus",t)):t.root.focusedComponent===t&&t.root.pendingBlur&&(t.root.pendingBlur.cancel(),t.root.pendingBlur=null)})),this.addEventListener(e,"blur",(function(){t.root.pendingBlur=(0,i.delay)((function(){t.emit("blur",t),"blur"===t.component.validateOn&&t.root.triggerChange({fromBlur:!0},{instance:t,component:t.component,value:t.dataValue,flags:{fromBlur:!0}}),t.root.focusedComponent=null,t.root.pendingBlur=null}))}))}}])&&c(t.prototype,n),r&&c(t,r),b}(o.default);t.default=y},99606:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(83593),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esMo
2dule",{value:!0}),t.default=void 0,n(69600),n(21249),n(41539),n(54747),n(69826),n(92222),n(30489);var o=s(n(68093)),i=s(n(91459)),a=s(n(96486));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n,r){return c="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=d(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(r,t,n);return!0},c(e,t,n,r)}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=d(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},f.apply(this,arguments)}function d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(d,e);var t,n,r,o,s=(r=d,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(r);if(o){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function d(){return l(this,d),s.apply(this,arguments)}return t=d,(n=[{key:"dataValue",get:function(){var e=f(m(d.prototype),"dataValue",this);return!e&&this.component.multiple?[]:e},set:function(e){!function(e,t,n,r,o){if(!c(e,t,n,r||e)&&o)throw new Error("failed to set property")}(m(d.prototype),"dataValue",e,this,!0)}},{key:"defaultValue",get:function(){var e=f(m(d.prototype),"defaultValue",this);return this.component.multiple&&(e=a.default.isArray(e)?e.length?e:[f(m(d.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(m(d.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(m(d.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,t){return this.renderTemplate("multiValueRow",{index:t,disabled:this.disabled,element:"".concat(this.renderElement(e,t))})}},{key:"attach",value:function(e){var t=this,n=f(m(d.prototype),"attach",this).call(this,e);this.loadRefs(e,{addButton:"multiple",input:"multiple",removeRow:"multiple",mask:"multiple",select:"multiple"});var r=[];return this.refs.input.forEach((function(e,n){r.push(t.attachElement.call(t,e,n))})),this.component.multiple?(this.refs.removeRow.forEach((function(e,n){t.addEventListener(e,"click",(function(e){e.preventDefault(),t.removeValue(n)}))})),this.refs.addButton.forEach((function(e){t.addEventListener(e,"click",(function(e){e.preventDefault(),t.addValue()}))})),n.then((function(){return i.default.all(r)}))):i.default.all(r)}},{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(m(d.prototype),"detach",this).call(this)}},{key:"attachElement",value:function(e,t){var n=this;if(this.addEventListener(e,this.inputInfo.changeEvent,(function(){var r=a.default.get(n.component,"case","mixed");
2if("mixed"!==r){var o=e.selectionStart,i=e.selectionEnd;"uppercase"===r&&e.value&&(e.value=e.value.toUpperCase()),"lowercase"===r&&e.value&&(e.value=e.value.toLowerCase()),e.selectionStart&&e.selectionEnd&&(e.selectionStart=o,e.selectionEnd=i)}try{n.saveCaretPosition(e,t)}catch(e){console.warn("An error occurred while trying to save caret position",e)}if(!e.mask)return n.updateValue(null,{modified:"hidden"!==n.component.type},t);setTimeout((function(){return n.updateValue(null,{modified:"hidden"!==n.component.type},t)}),1)})),!this.attachMultiMask(t)){this.setInputMask(e);var r=this.component.inputMask,o=this.component.displayMask;r&&o&&o!==r&&this.refs.valueMaskInput&&this.setInputMask(this.refs.valueMaskInput,r)}}},{key:"saveCaretPosition",value:function(e,t){var n,r;(null===(n=this.root)||void 0===n||null===(r=n.focusedComponent)||void 0===r?void 0:r.path)===this.path&&(this.root.currentSelection={selection:[e.selectionStart,e.selectionEnd],index:t})}},{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 t=this.component.inputMasks.find((function(t){return t.label===e}));return this.multiMasks[e]=t?t.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 t=this.refs.select[e];return t.onchange=this.onSelectMaskHandler.bind(this),t.maskInput=this.refs.mask[e],this.setInputMask(t.maskInput,this.component.inputMasks[0].mask),!0}},{key:"updateMask",value:function(e,t){t&&(this.setInputMask(e,t,!this.component.placeholder),this.updateValue())}},{key:"addNewValue",value:function(e){void 0===e&&(e=this.component.defaultValue?this.component.defaultValue:this.emptyValue,Array.isArray(e)&&0===e.length&&(e=this.emptyValue));var t=this.dataValue||[];Array.isArray(t)||(t=[t]),Array.isArray(e)?t=t.concat(e):t.push(e),this.dataValue=t}},{key:"addValue",value:function(){this.addNewValue(),this.redraw(),this.checkConditions(),this.isEmpty(this.dataValue)||this.restoreValue(),this.root&&this.root.onChange()}}])&&u(t.prototype,n),d}(o.default);t.default=v},40970:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.baseEditForm.apply(o.default,[[{key:"data",ignore:!0},{key:"validation",ignore:!0}]].concat(t))},n(92222);var r,o=(r=n(39086))&&r.__esModule?r:{default:r}},24561:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(83593),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(21249),n(41539),n(54747),n(26699),n(32023),n(9494),n(9653),n(92222),n(34553),n(40561),n(47042),n(57327),n(30489);var o=u(n(96486)),i=u(n(68093)),a=u(n(39086)),s=u(n(91459)),l=n(82531);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n,r){return f="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=m(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else p(r,t,n);return!0},f(e,t,n,r)}function d(e,t,n,r,o){if(!f(e,t,n,r||e)&&o)throw new Error("failed to set property");return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=m(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},h.apply(this,arguments)}function m(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function y(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(g,e);var t,n,r,u,f,m=(u=g,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=b(u);if(f){var n=b(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return y(this,e)});function g(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),(r=m.call(this,e,t,n)).type="components",r._collapsed=!!r.component.collapsed,r}return t=g,n=[{key:"defaultSchema",get:function(){return g.schema()}},{key:"schema",get:function(){var e=h(b(g.prototype),"schema",this),t=o.default.uniqBy(this.getComponents(),"component.key");return e.components=o.default.map(t,"schema"),e}},{key:"collapsed",get:function(){return this._collapsed},set:function(e){this._collapsed=e,this.collapse(e)}},{key:"collapse",value:function(e){var t=this.redraw();return e||this.pristine||this.checkValidity(this.data,!0),t}},{key:"visible",get:function(){return h(b(g.prototype),"visible",this)},set:function(e){var t=this._visible!==e;this._visible=e;var n=this.visible,r=this.options.show&&this.options.show[this.component.key],o=this.options.hide&&this.options.hide[this.component.key];
2this.components.forEach((function(e){e.parentVisible=n;var t=e.conditionallyVisible();r||t?e.visible=!0:!o&&n&&t||(e.visible=!1),e.visible||(e.error="")})),t&&(this.clearOnHide(),this.redraw())}},{key:"parentVisible",get:function(){return h(b(g.prototype),"parentVisible",this)},set:function(e){var t=this;d(b(g.prototype),"parentVisible",e,this,!0),this.components.forEach((function(e){return e.parentVisible=t.visible}))}},{key:"disabled",get:function(){return h(b(g.prototype),"disabled",this)},set:function(e){d(b(g.prototype),"disabled",e,this,!0),this.components.forEach((function(t){return t.parentDisabled=e}))}},{key:"parentDisabled",get:function(){return h(b(g.prototype),"parentDisabled",this)},set:function(e){var t=this;d(b(g.prototype),"parentDisabled",e,this,!0),this.components.forEach((function(e){e.parentDisabled=t.disabled}))}},{key:"ready",get:function(){return s.default.all(this.getComponents().map((function(e){return e.ready})))}},{key:"currentForm",get:function(){return h(b(g.prototype),"currentForm",this)},set:function(e){d(b(g.prototype),"currentForm",e,this,!0),this.getComponents().forEach((function(t){t.currentForm=e}))}},{key:"rowIndex",get:function(){return this._rowIndex},set:function(e){this._rowIndex=e,this.eachComponent((function(t){t.rowIndex=e}))}},{key:"componentContext",value:function(){return this._data}},{key:"data",get:function(){return this._data},set:function(e){var t=this;this._data=e,this.eachComponent((function(e){e.data=t.componentContext(e)}))}},{key:"getComponents",value:function(){return this.components||[]}},{key:"everyComponent",value:function(e,t){var n=this.getComponents();o.default.each(n,(function(r,o){return!1!==e(r,n,o)&&("function"!=typeof r.everyComponent||!1!==r.everyComponent(e,t))&&void 0}))}},{key:"hasComponent",value:function(e){var t=!1;return this.everyComponent((function(n){if(n===e)return t=!0,!1})),t}},{key:"flattenComponents",value:function(){var e={};return this.everyComponent((function(t){e[t.component.flattenAs||t.key]=t})),e}},{key:"eachComponent",value:function(e){o.default.each(this.getComponents(),(function(t,n){if(!1===e(t,n))return!1}))}},{key:"getComponent",value:function(e,t,n){n=n||(0,l.getStringFromComponentPath)(e),e=(0,l.getArrayFromComponentPath)(e);var r=n,i=o.default.clone(e),a=i.shift(),s=i,u=null,c=null;return o.default.isNumber(a)&&(a=s.shift()),o.default.isString(a)?(this.everyComponent((function(e,o){var i=!e.hasInput||!e.path||r.includes(e.path);if(e.component.key===a&&(c=e,i))return u=e,s.length>0&&"getComponent"in e?u=e.getComponent(s,t,n):t&&t(e,o),!1})),u||(u=c),u):u}},{key:"getComponentById",value:function(e,t){var n=null;return this.everyComponent((function(r,o){if(r.id===e)return n=r,t&&t(r,o),!1})),n}},{key:"calculateComponentPath",value:function(e){var t="";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 t=n.path?"".concat(n.path).concat(r,"."):"",(t+=e._parentPath&&e.component.shouldIncludeSubFormPath?e._parentPath:"")+e.component.key}}},{key:"createComponent",value:function(e,t,n,r){var i;if(e){t=t||this.options,n=n||this.data,t.parent=this,t.parentVisible=this.visible,t.root=(null===(i=t)||void 0===i?void 0:i.root)||this.root||this,t.localRoot=this.localRoot,t.skipInit=!0,!this.isInputComponent&&this.component.shouldIncludeSubFormPath&&(e.shouldIncludeSubFormPath=!0);var s=a.default.create(e,t,n,!0),l=this.calculateComponentPath(s);if(l&&(s.path=l),s.init(),e.internal)return s;if(r){var u=o.default.findIndex(this.components,{id:r.id});-1!==u?this.components.splice(u,0,s):this.components.push(s)}else this.components.push(s);return s}}},{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(),h(b(g.prototype),"init",this).call(this)}},{key:"addComponents",value:function(e,t){var n=this;e=e||this.data,(t=t||this.options).components?this.components=t.components:(this.hook("addComponents",this.componentComponents,this)||[]).forEac
2h((function(t){return n.addComponent(t,e)}))}},{key:"addComponent",value:function(e,t,n,r){return t=t||this.data,this.options.parentPath&&(e.shouldIncludeSubFormPath=!0),e=this.hook("addComponent",e,t,n,r),this.createComponent(e,this.options,t,n||null)}},{key:"beforeFocus",value:function(){this.parent&&"beforeFocus"in this.parent&&this.parent.beforeFocus(this)}},{key:"render",value:function(e){return h(b(g.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 t=(e=e||this.getComponents()).map((function(e){return e.render()}));return this.renderTemplate("components",{children:t,components:e})}},{key:"attach",value:function(e){var t=this,n=h(b(g.prototype),"attach",this).call(this,e);this.loadRefs(e,p({header:"single",collapsed:this.collapsed},this.nestedKey,"single"));var r=s.default.resolve();return this.refs[this.nestedKey]&&(r=this.attachComponents(this.refs[this.nestedKey])),this.component.collapsible&&this.refs.header&&(this.addEventListener(this.refs.header,"click",(function(){t.collapsed=!t.collapsed})),this.addEventListener(this.refs.header,"keydown",(function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),t.collapsed=!t.collapsed)}))),s.default.all([n,r])}},{key:"attachComponents",value:function(e,t,n){if(t=t||this.components,n=n||this.component.components,!(e=this.hook("attachComponents",e,t,n,this)))return new s.default((function(){}));var r=0,o=[];return Array.prototype.slice.call(e.children).forEach((function(e){!e.getAttribute("data-noattach")&&t[r]&&(o.push(t[r].attach(e)),r++)})),s.default.all(o)}},{key:"removeComponent",value:function(e,t){t=t||this.components,e.destroy(),o.default.remove(t,{id:e.id})}},{key:"removeComponentByKey",value:function(e,t){var n=this;if(!this.getComponent(e,(function(e,r){n.removeComponent(e,r),t&&t(e,r)})))return t&&t(null),null}},{key:"removeComponentById",value:function(e,t){var n=this;if(!this.getComponentById(e,(function(e,r){n.removeComponent(e,r),t&&t(e,r)})))return t&&t(null),null}},{key:"updateValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.components.reduce((function(e,n){return n.updateValue(null,t)||e}),h(b(g.prototype),"updateValue",this).call(this,e,t))}},{key:"shouldSkipValidation",value:function(e,t,n){return!this.component.input||h(b(g.prototype),"shouldSkipValidation",this).call(this,e,t,n)}},{key:"checkData",value:function(e,t,n,r){if(this.builderMode)return!0;
2e=e||this.rootValue,t=t||{},n=n||this.data;var i=(r=r&&o.default.isArray(r)?r:this.getComponents()).reduce((function(r,o){return o.checkData(e,t,n)&&r}),h(b(g.prototype),"checkData",this).call(this,e,t,n));return this.checkModal(i,this.isDirty),i}},{key:"checkConditions",value:function(e,t,n){var r=h(b(g.prototype),"checkConditions",this).call(this,e,t,n);return this.getComponents().forEach((function(n){return n.checkConditions(e,t,n.data)})),r}},{key:"clearOnHide",value:function(e){h(b(g.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(t){return t.clearOnHide(e)}))}},{key:"restoreComponentsContext",value:function(){var e=this;this.getComponents().forEach((function(t){return t.data=e.dataValue}))}},{key:"beforePage",value:function(e){return s.default.all(this.getComponents().map((function(t){return t.beforePage(e)})))}},{key:"beforeSubmit",value:function(){return s.default.all(this.getComponents().map((function(e){return e.beforeSubmit()})))}},{key:"calculateValue",value:function(e,t,n){return!!this.conditionallyVisible()&&this.getComponents().reduce((function(r,o){return o.calculateValue(e,t,n)||r}),h(b(g.prototype),"calculateValue",this).call(this,e,t,n))}},{key:"isLastPage",value:function(){return this.pages.length-1===this.page}},{key:"isValid",value:function(e,t){return this.getComponents().reduce((function(n,r){return r.isValid(e,t)&&n}),h(b(g.prototype),"isValid",this).call(this,e,t))}},{key:"checkValidity",value:function(e,t,n,r){if(!this.checkCondition(n,e))return this.setCustomValidity(""),!0;var o=this.getComponents().reduce((function(o,i){return i.checkValidity(e,t,n,r)&&o}),h(b(g.prototype),"checkValidity",this).call(this,e,t,n,r));return this.checkModal(o,t),o}},{key:"checkAsyncValidity",value:function(e,t,n,r){var o=this;return this.ready.then((function(){var i=[h(b(g.prototype),"checkAsyncValidity",o).call(o,e,t,n,r)];return o.eachComponent((function(o){return i.push(o.checkAsyncValidity(e,t,n,r))})),s.default.all(i).then((function(e){return e.reduce((function(e,t){return e&&t}),!0)}))}))}},{key:"setPristine",value:function(e){h(b(g.prototype),"setPristine",this).call(this,e),this.getComponents().forEach((function(t){return t.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()})),h(b(g.prototype),"detach",this).call(this)}},{key:"clear",value:function(){this.components.forEach((function(e){e.clear()})),h(b(g.prototype),"clear",this).call(this)}},{key:"destroy",value:function(){this.destroyComponents(),h(b(g.prototype),"destroy",this).call(this)}},{key:"destroyComponents",value:function(){var e=this;this.getComponents().slice().forEach((function(t){return e.removeComponent(t,e.components)})),this.components=[]}},{key:"errors",get:function(){var e=this.error?[this.error]:[];return this.getComponents().reduce((function(e,t){return e.concat(t.errors||[])}),e).filter((function(e){return"hidden"!==e.level}))}},{key:"getValue",value:function(){return this.data}},{key:"resetValue",value:function(){h(b(g.prototype),"resetValue",this).call(this),this.getComponents().forEach((function(e){return e.resetValue()})),this.setPristine(!0)}},{key:"dataReady",get:function(){return s.default.all(this.getComponents().map((function(e){return e.dataReady})))}},{key:"setNestedValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e._data=this.componentContext(e),"button"!==e.type&&("components"===e.type?e.setValue(t,n):t&&e.hasValue(t)?e.setValue(o.default.get(t,e.key),n):this.rootPristine&&!e.visible||!e.shouldAddDefaultValue?void 0:(n.noValidate=!n.dirty,n.resetValue=!0,e.setValue(e.defaultValue,n)))}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!e&&(e.submitAsDraft&&!e.submit&&(n.noValidate=!0),this.getComponents().reduce((function(r,o){return t.setNestedValue(o,e,n,r)||r}),!1))}},{key:"lazyLoad",get:function(){var e;return null!==(e=this.component.lazyLoad)&&void 0!==e&&e}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{tree:!1,lazyLoad:!1}
2].concat(t))}}],n&&c(t.prototype,n),r&&c(t,r),g}(i.default);t.default=g},99495:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(41539),n(92222),n(54747),n(30489);var o=s(n(96486)),i=s(n(64430)),a=s(n(67329));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=f(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},c.apply(this,arguments)}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(v,e);var t,n,r,s,f,m=(s=v,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(s);if(f){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return p(this,e)});function v(){return l(this,v),m.apply(this,arguments)}return t=v,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.default.schema.apply(a.default,[{disableAddingRemovingRows:!1}].concat(t))}}],(n=[{key:"componentContext",value:function(e){return this.iteratableRows[e.rowIndex].data}},{key:"iteratableRows",get:function(){throw new Error("Getter #iteratableRows() is not implemented")}},{key:"rowIndex",get:function(){return c(h(v.prototype),"rowIndex",this)},set:function(e){this._rowIndex=e}},{key:"init",value:function(){c(h(v.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())}}
2,{key:"checkData",value:function(e,t,n){return e=e||this.rootValue,t=t||{},n=n||this.data,this.checkAddButtonChanged(),this.checkRows("checkData",e,t,i.default.prototype.checkData.call(this,e,t,n))}},{key:"checkRows",value:function(e,t,n,r,o){var i=this;return this.iteratableRows.reduce((function(r,a,s){return(null!=n&&n.rowIndex&&(null==n?void 0:n.rowIndex)!==s||i.checkRow(e,t,n,a.data,a.components,o))&&r}),r)}},{key:"checkRow",value:function(e,t,n,r,i,a){null!=n&&n.isolateRow&&(a=!0,n.noRefresh=!0);var s=o.default.reduce(i,(function(o,i){return i[e](t,n,r,a)&&o}),!0);return null!=n&&n.noRefresh&&delete n.noRefresh,s}},{key:"hasAddButton",value:function(){var e=o.default.get(this.component,"validate.maxLength"),t=o.default.get(this.component,"conditionalAddButton");return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&!this.options.preview&&(!e||this.iteratableRows.length<e)&&(!t||this.evaluate(t,{value:this.dataValue},"show"))}},{key:"getComponent",value:function(e,t,n){var r=(e=Array.isArray(e)?e:[e]).shift(),i=e,a=[],s=null,l=null,u=null;return o.default.isNumber(r)&&(u=r,r=i.shift()),o.default.isString(r)?(this.everyComponent((function(e,o){e.component.key===r&&(s=e,i.length>0&&"getComponent"in e?l=e.getComponent(i,t,n):t&&t(e,o),a=null!==u?l:a.concat(l||s))}),u),a&&0!==a.length||!s||(a=null!==u?s:[s]),a):a}},{key:"everyComponent",value:function(e,t,n){var r;if(o.default.isObject(t)&&(n=t,t=null),null===(r=n)||void 0===r||!r.email){var i=this.getComponents(t);o.default.each(i,(function(t,r){return!1!==e(t,i,r)&&("function"!=typeof t.everyComponent||!1!==t.everyComponent(e,n))&&void 0}))}}},{key:"getValueAsString",value:function(e,t){if(null!=t&&t.email){var n,r='\n <table border="1" style="width:100%">\n <thead>\n <tr>\n ';return null===(n=this.component.components)||void 0===n||n.forEach((function(e){var t=e.label||e.key;r+='<th style="padding: 5px 10px;">'.concat(t,"</th>")})),r+="\n </tr>\n </thead>\n <tbody>\n ",this.iteratableRows.forEach((function(e){var n=e.components;r+="<tr>",o.default.each(n,(function(e){r+='<td style="padding:5px 10px;">',e.isInputComponent&&e.visible&&!e.skipInEmail&&(r+=e.getView(e.dataValue,t)),r+="</td>"})),r+="</tr>"})),r+="\n </tbody>\n </table>\n "}return e&&e.length?c(h(v.prototype),"getValueAsString",this).call(this,e,t):""}},{key:"getComponents",value:function(e){return void 0!==e?this.iteratableRows[e]?this.iteratableRows[e].components:[]:c(h(v.prototype),"getComponents",this).call(this)}}])&&u(t.prototype,n),r&&u(t,r),v}(a.default);t.default=m},67329:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(47941),n(82526),n(57327),n(49337),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(24603),n(74916),n(39714),n(41539),n(54747),n(15306),n(30489);var o=s(n(64430)),i=s(n(24561)),a=s(n(96486));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=h(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},p.apply(this,arguments)}function h(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function v(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}
2function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(l,e);var t,n,r,i,s=(r=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(r);if(i){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return v(this,e)});function l(){return f(this,l),s.apply(this,arguments)}return t=l,n=[{key:"hasChanged",value:function(e,t){return null!=e&&!this.hasValue()||!a.default.isEqual(e,t)}},{key:"allowData",get:function(){return!0}},{key:"getValueAsString",value:function(e,t){if(null!=t&&t.email){var n='\n <table border="1" style="width:100%">\n <tbody>\n ';return this.everyComponent((function(e){e.isInputComponent&&e.visible&&!e.skipInEmail&&(n+='\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,t),"</td>\n </tr>\n "))}),u(u({},t),{},{fromRoot:!0})),n+="\n </tbody>\n </table>\n "}return a.default.isEmpty(e)?"":null!=t&&t.modalPreview?(delete t.modalPreview,this.getDataValueAsTable(e,t)):"[Complex Data]"}},{key:"getDataValueAsTable",value:function(e,t){var n='\n <table border="1" style="width:100%">\n <tbody>\n ',r=new RegExp("<(.*?)>");return this.components.forEach((function(e){if(e.isInputComponent&&e.visible&&!e.skipInEmail){var o=e.getView(e.dataValue,t);n+='\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&&r.test(o)?o:'<input type="text" value="'.concat(o.replace(/"/g,"""),'" readonly/>'),"</td>\n </tr>\n ")}}),u(u({},t),{},{fromRoot:!0})),n+="\n </tbody>\n </table>\n "}},{key:"everyComponent",value:function(e,t){if(null!=t&&t.email){if(!t.fromRoot)return;delete t.fromRoot}return p(y(l.prototype),"everyComponent",this).call(this,e,t)}},{key:"getValue",value:function(){return this.dataValue}},{key:"updateValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.default.prototype.updateValue.call(this,e,t)}}],n&&d(t.prototype,n),l}(i.default);t.default=b},7115:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"data",components:o.default},{key:"display",components:i.default},{label:"Provider",key:"provider",weight:15,components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=s(n(39086)),o=s(n(23817)),i=s(n(453)),a=s(n(91003));function s(e){return e&&e.__esModule?e:{default:e}}},78621:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(47941),n(82526),n(49337),n(41817),n(32165),n(66992),n(78783),n(33948),n(91038),n(47042),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.AddressComponentMode=void 0,n(21249),n(68309),n(41539),n(54747),n(69600),n(92222),n(74916),n(64765),n(57327),n(30489);var o=f(n(77338)),i=f(n(96486)),a=n(19161),s=n(7763),l=f(n(68093)),u=f(n(24561)),c=f(n(20787));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||p(e,t)||function(){throw new TypeError("Invalid attempt to de
2structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(){return w="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=k(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},w.apply(this,arguments)}function k(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=x(e)););return e}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function O(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}var S={Autocomplete:"autocomplete",Manual:"manual"};t.AddressComponentMode=S;var j="address-autocomplete-remove-value-icon--hidden",P="show = _.get(instance, 'parent.manualMode', false);",C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(C,e);var t,n,r,f,m,k=(f=C,m=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=x(f);if(m){var n=x(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return O(this,e)});function C(){return b(this,C),k.apply(this,arguments)}return t=C,n=[{key:"mergeSchema",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.defaultSchema;return e.components&&(t=i.default.omit(t,"components")),i.default.defaultsDeep(e,t)}},{key:"init",value:function(){if(this.components=this.components||[],(this.builderMode||this.manualModeEnabled)&&u.default.prototype.addComponents.call(this,this.manualMode?this.address:{}),l.default.prototype.init.call(this),!this.builderMode)if(this.component.provider){var e=this.component,t=e.provider,n=e.providerOptions;this.provider=this.initializeProvider(t,n)}else if(this.component.map){this.component.provider=s.GoogleAddressProvider.name,this.component.providerOptions=this.component.providerOptions||{};var r=this.component,o=r.map,a=r.provider,c=r.providerOptions,f=o.key,d=o.region;f&&i.default.set(c,"params.key",f),d&&i.default.set(c,"params.region",d),this.provider=this.initializeProvider(a,c)}}},{key:"initializeProvider",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.interpolate(t.url),r=a.GlobalFormio.Providers.getProvider("address",e);return new r(v(v({},t),{},{url:n}))}},{key:"emptyValue",get:function(){return this.manualModeEnabled?{mode:S.Autocomplete,address:{}}:{}}},{key:"mode",get:function(){var e,t;return this.manualModeEnabled&&null!==(e=null===(t=this.dataValue)||void 0===t?void 0:t.mode)&&void 0!==e?e:S.Autocomplete},set:function(e){this.manualModeEnabled&&(this.dataValue.mode=e)}},{key:"autocompleteMode",get:function(){return this.mode===S.Autocomplete}},{key:"manualMode",get:function(){return this.mode===S.Manual}},{key:"manualModeEnabled",get:function(){return!this.isMultiple&&Boolean(this.component.enableManualMode)}},{key:"restoreComponentsContext",value:function(){var e=this;
2this.getComponents().forEach((function(t){t.data=e.address,t.setValue(t.dataValue,{noUpdateEvent:!0})}))}},{key:"isMultiple",get:function(){return Boolean(this.component.multiple)}},{key:"address",get:function(){return this.isMultiple?i.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=w(x(C.prototype),"defaultValue",this);return this.isMultiple&&(e=i.default.isArray(e)?e:[e]),e}},{key:"defaultSchema",get:function(){return C.schema()}},{key:"isValueInLegacyFormat",value:function(e){return e&&!e.mode}},{key:"normalizeValue",value:function(e){return this.manualModeEnabled&&this.isValueInLegacyFormat(e)?{mode:S.Autocomplete,address:e}:e}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=l.default.prototype.setValue.call(this,e,t);return this.manualMode&&this.restoreComponentsContext(),(n||!i.default.isEmpty(e)&&t.fromSubmission)&&this.redraw(),n}},{key:"modeSwitcher",get:function(){return this.refs&&this.refs[C.modeSwitcherRef]||null}},{key:"removeValueIcon",get:function(){return this.refs&&this.refs[C.removeValueIconRef]||null}},{key:"searchInput",get:function(){return this.refs&&this.refs[C.searchInputRef]||null}},{key:"addRowButton",get:function(){return this.refs&&this.refs[C.addRowButtonRef]||null}},{key:"removeRowButton",get:function(){return this.refs&&this.refs[C.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"),i.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:C.modeSwitcherRef,removeValueIcon:C.removeValueIconRef,searchInput:C.searchInputRef},displayValue:this.getDisplayValue(e),mode:{autocomplete:this.autocompleteMode,manual:this.manualMode}})}},{key:"renderRow",value:function(e,t){return this.renderTemplate(this.rowTemplateName,{index:t,disabled:this.disabled,element:"".concat(this.renderElement(e,t))})}},{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?w(x(C.prototype),"render",this).call(this,this.renderGrid()):w(x(C.prototype),"render",this).call(this,this.renderElement())}},{key:"onSelectAddress",value:function(e,t,n){var r;this.isMultiple?(this.address[n]=e,this.address=function(e){if(Array.isArray(e))return h(e)}(r=this.address)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||p(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):this.address=e,this.triggerChange({modified:!0}),t&&(t.value=this.getDisplayValue(this.isMultiple?this.address[n]:this.address)),this.updateRemoveIcon(n)}},{key:"addRow",value:function(){this.address=this.address.concat(this.emptyValue),w(x(C.prototype),"redraw",this).call(this)}},{key:"attach",value:function(e){var t,n=this,r=(this.builderMode||this.manualMode?w(x(C.prototype),"attach",this):l.default.prototype.attach).call(this,e);if(!this.builderMode&&!this.provider&&this.component.provider){var i=this.component,a=i.provider,s=i.providerOptions;this.provider=this.initializeProvider(a,s)}return this.loadRefs(e,(y(t={},C.addRowButtonRef,"single"),y(t,C.modeSwitcherRef,"single"),y(t,C.removeRowButtonRef,"multiple"),y(t,C.removeValueIconRef,"multiple"),y(t,C.searchInputRef,"multiple"),t)),this.searchInput.forEach((function(e,t){!n.builderMode&&e&&n.provider&&("google"===n.component.provider?n.provider.attachAutocomplete(e,t,n.onSelectAddress.bind(n)):(0,o.default)({input:e,debounceWaitMs:300,fetch:function(e,t){var r=e;n.provider.search(r).then(t)},render:function(e){var t=n.ce("div");return t.textContent=n.getDisplayValue(e),t},onSelect:function(r){n.onSelectAddress(r,e,t)}}),n.addEventListener(e,"blur",(function(){e&&e.value&&(e.value=n.getDisplayValue(n.isMultiple?n.address[t]:n.address))})),n.addEventListener(e,"keyup",(function(){e&&(e.value||n.clearAddress(e,t))})))})),this.addRowButton&&this.addEventListener(this.addRowButton,"click",(function(e){e.preventDefault(),n.addRow()})),this.removeRowButton.forEach((function(e,t){n.addEventListener(e,"click",(function(e){e.preventDefault(),n.removeValue(t)}))}
2)),this.modeSwitcher&&this.addEventListener(this.modeSwitcher,"change",(function(){n.modeSwitcher&&(n.dataValue=n.emptyValue,n.mode=n.modeSwitcher.checked?S.Manual:S.Autocomplete,n.builderMode||(n.manualMode&&n.restoreComponentsContext(),n.triggerChange({modified:!0})),n.redraw())})),this.builderMode||this.removeValueIcon.forEach((function(e,t){n.updateRemoveIcon(t);var r=function(){var e,r=null===(e=n.searchInput)||void 0===e?void 0:e[t];n.clearAddress(r,t),r&&r.focus()};n.addEventListener(e,"click",r),n.addEventListener(e,"keydown",(function(e){"Enter"===e.key&&r()}))})),r}},{key:"addChildComponent",value:function(e){e.customConditional=P}},{key:"redraw",value:function(){var e=this,t=this.modeSwitcher&&document.activeElement===this.modeSwitcher;return w(x(C.prototype),"redraw",this).call(this).then((function(n){return t&&e.modeSwitcher&&e.modeSwitcher.focus(),n}))}},{key:"clearAddress",value:function(e,t){var n;this.isEmpty()||this.triggerChange(),null!==(n=this.address)&&void 0!==n&&n[t]?this.address[t]=this.emptyValue:this.address=this.emptyValue,e&&(e.value=""),this.updateRemoveIcon(t)}},{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 t,n=null===(t=this.removeValueIcon)||void 0===t?void 0:t[e];if(n){var r=this.isMultiple?this.address[e]:this.address;this.isEmpty(r)||this.disabled?this.addClass(n,j):this.removeClass(n,j)}}},{key:"getValueAsString",value:function(e,t){if(!e)return"";var n=this.normalizeValue(e),r=this.manualModeEnabled?n:{address:n,mode:S.Autocomplete},o=r.address,a=r.mode===S.Manual;return this.provider&&!a?this.getDisplayValue(o):a?this.component.manualModeViewString?this.interpolate(this.component.manualModeViewString,{address:o,data:this.data,component:this.component}):this.getComponents().filter((function(e){return e.hasValue(o)})).map((function(e){return[e,i.default.get(o,e.key)]})).filter((function(e){var t=d(e,2),n=t[0],r=t[1];return!n.isEmpty(r)})).map((function(e){var n=d(e,2),r=n[0],o=n[1];return r.getValueAsString(o,t)})).join(", "):w(x(C.prototype),"getValueAsString",this).call(this,o,t)}},{key:"focus",value:function(){this.searchInput&&this.searchInput[0]&&this.searchInput[0].focus()}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c.default.schema.apply(c.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:P},{label:"Address 2",tableView:!1,key:"address2",type:"textfield",input:!0,customConditional:P},{label:"City",tableView:!1,key:"city",type:"textfield",input:!0,customConditional:P},{label:"State",tableView:!1,key:"state",type:"textfield",input:!0,customConditional:P},{label:"Country",tableView:!1,key:"country",type:"textfield",input:!0,customConditional:P},{label:"Zip Code",tableView:!1,key:"zip",type:"textfield",input:!0,customConditional:P}]}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Address",group:"advanced",icon:"home",documentation:"/userguide/#address",weight:35,schema:C.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"}}],n&&g(t.prototype,n),r&&g(t,r),C}(c.default);t.default=C},23817:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"multiple",customConditional:function(e){return!e.data.enableManualMode}},{type:"address",label:"Default Value",key:"defaultValue",weight:5,placeholder:"Default Value",tooltip:"The 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:{}}:{}}}]},453:function(e,t){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=[{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){var t=e.data;return Boolean(t.enableManualMode)}},{weight:40,type:"checkbox",input:!0,key:"disableClearIcon",label:"Disable Clear Icon",tooltip:"Clear 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}}];t.default=n},91003:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(21249),n(2707),n(66992),n(41539),n(33948),n(68309);var r,o=(r=n(96486))&&r.__esModule?r:{default:r},i=n(19161),a=[{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 o.default.values(i.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."}];t.default=a},93808:function(e,t,n){"use strict";n(47941),n(82526),n(57327),n(38880),n(49337),n(41817),n(32165),n(66992),n(78783),n(33948),n(91038),n(47042),n(68309),Object.defineProperty(t,"__esMo
2dule",{value:!0}),t.default=void 0,n(41539),n(54747),n(92222),n(69720),n(74916),n(15306);var r,o=(r=n(96486))&&r.__esModule?r:{default:r},i=n(82531);function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var p=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t,this.alert=null,this.parentComponent=n,this.refs={},this.loadRefs=this.parentComponent.loadRefs.bind(this)}var t,n;return t=e,n=[{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]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e=o.default.isArray(e)?e:[e];var r=this.createMessagesList("error",e);return this.showAlert("error",r,n),t&&this.parentComponent.emit("error",e),e}},{key:"showMessage",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e;r instanceof HTMLElement?r.setAttribute("ref","messageRef"):r=this.parentComponent.ce("p",{ref:"messageRef"}),this.showAlert(t,r,n)}},{key:"createMessagesList",value:function(e){if("error"===e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];
2return this.createErrorList.apply(this,n)}}},{key:"createErrorList",value:function(e){var t=this,n=this.parentComponent.ce("p");this.parentComponent.setContent(n,this.parentComponent.t("error"));var r=this.parentComponent.ce("ul"),o=document.createDocumentFragment();return e.forEach((function(e){return t.appendErrorToList(e,r)})),n.appendChild(r),o.appendChild(n),o}},{key:"showAlert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.customClasses,o=n.customEvents;this.setAlert(e,t,{customClasses:r}),this.alert&&(this.attach({customEvents:o}),this.parentComponent.prependTo(this.alert,this.container))}},{key:"setAlert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.alertTypes[e];if(this.alert&&this.clear(),t){var o=n.id,i=void 0===o?"".concat(e,"-list-").concat(this.parentComponent.id):o,a=n.customClasses,s=void 0===a?"alert alert-".concat(r):a;this.alert=this.parentComponent.ce("div",{id:i,class:s}),t instanceof HTMLElement?this.parentComponent.appendTo(t,this.alert):this.parentComponent.setContent(this.alert,t)}}},{key:"attach",value:function(e){var t,n,r,o=this,i=e.customEvents,l=void 0===i?{}:i;this.eventListenersKeys=[],this.loadRefs(this.alert,this.refsNames);var u=(null===(t=l.click)||void 0===t?void 0:t.listeners)||[],f=(null===(n=l.keypress)||void 0===n?void 0:n.listeners)||[];l=c(c({},l),{},{click:[].concat(a(u),[function(e){var t=e.currentTarget.dataset.componentKey;o.focusOnComponent(t)}]),keypress:[].concat(a(f),[function(e){var t=e.currentTarget.dataset.componentKey;o.focusOnComponent(t)}])}),null!==(r=this.refs.messageRef)&&void 0!==r&&r.length&&this.refs.messageRef.forEach((function(e){Object.entries(l).forEach((function(t){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(n,r)||s(n,r)||function(){throw new 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];i[1].forEach((function(t){return o.parentComponent.addEventListener(e,a,t)})),o.eventListenersKeys.push(a)}))}))}},{key:"clear",value:function(){var e=this;try{var t;null!==(t=this.refs.messageRef)&&void 0!==t&&t.length&&this.refs.messageRef.forEach((function(t){e.eventListenersKeys.forEach((function(n){return e.parentComponent.removeEventListener(t,n)}
2))})),this.refs={},this.parentComponent.removeChildFrom(this.alert,this.container),this.alert=null}catch(e){}}},{key:"focusOnComponent",value:function(e){if(e){var t,n=this.parentComponent._parentPath?e.replace(this.parentComponent._parentPath,""):e,r=null===(t=this.parentComponent.root)||void 0===t?void 0:t.getComponent(n,null,e);r&&o.default.isFunction(r.focus)&&r.focus()}}},{key:"createMessage",value:function(e,t,n,r,o){if("error"===e)return this.createErrorMessage(t,n,r,o)}},{key:"createErrorMessage",value:function(e,t,n,r){var a,s,l={style:"cursor: pointer",ref:"messageRef",tabIndex:0,"aria-label":"".concat(t,". Click to navigate to the field with following error.")},u=this.parentComponent.ce("li",l);this.parentComponent.setContent(u,t);var c=!o.default.isUndefined(n)&&(null==r||null===(a=r.messages)||void 0===a?void 0:a[n]),f=(null==c?void 0:c.path)||(null==r||null===(s=r.component)||void 0===s?void 0:s.key);if(f){var d=(0,i.getStringFromComponentPath)(f);u.dataset.componentKey=d}this.parentComponent.appendTo(u,e)}},{key:"appendErrorToList",value:function(e,t){var n,r=this;if(null!=e&&null!==(n=e.messages)&&void 0!==n&&n.length)e.messages.forEach((function(n,o){var i=n.message;r.createMessage("error",t,i,o,e)}));else if(e){var i=o.default.isObject(e)?e.message||"":e;this.createMessage("error",t,i)}}}],n&&d(t.prototype,n),e}();t.default=p},89395:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=W(n(15178)),o=W(n(7115)),i=W(n(28110)),a=W(n(87533)),s=W(n(98237)),l=W(n(3248)),u=W(n(45187)),c=W(n(67400)),f=W(n(87018)),d=W(n(11988)),p=W(n(21006)),h=W(n(4025)),m=W(n(69403)),v=W(n(68489)),y=W(n(16659)),b=W(n(52710)),g=W(n(59973)),w=W(n(44415)),k=W(n(45574)),_=W(n(16494)),O=W(n(40970)),x=W(n(1512)),S=W(n(81089)),j=W(n(93268)),P=W(n(54570)),C=W(n(20481)),E=W(n(124)),A=W(n(64328)),M=W(n(99966)),R=W(n(24120)),T=W(n(66369)),D=W(n(68427)),I=W(n(39450)),V=W(n(5657)),L=W(n(28145)),N=W(n(3611)),F=W(n(53983)),B=W(n(65105)),z=W(n(69561)),U=W(n(18995)),H=W(n(81541)),q=W(n(793));function W(e){return e&&e.__esModule?e:{default:e}}r.default.address.editForm=o.default,r.default.button.editForm=i.default,r.default.checkbox.editForm=a.default,r.default.columns.editForm=s.default,r.default.component.editForm=l.default,r.default.container.editForm=u.default,r.default.content.editForm=c.default,r.default.currency.editForm=f.default,r.default.datagrid.editForm=d.default,r.default.datamap.editForm=p.default,r.default.datetime.editForm=h.default,r.default.day.editForm=m.default,r.default.editgrid.editForm=v.default,r.default.email.editForm=y.default,r.default.fieldset.editForm=b.default,r.default.file.editForm=g.default,r.default.form.editForm=w.default,r.default.hidden.editForm=k.default,r.default.htmlelement.editForm=_.default,r.default.nested.editForm=O.default,r.default.number.editForm=x.default,r.default.panel.editForm=S.default,r.default.password.editForm=j.default,r.default.phoneNumber.editForm=P.default,r.default.radio.editForm=C.default,r.default.recaptcha.editForm=E.default,r.default.resource.editForm=A.default,r.default.select.editForm=R.default,r.default.selectboxes.editForm=M.default,r.default.signature.editForm=T.default,r.default.survey.editForm=D.default,r.default.table.editForm=I.default,r.default.tabs.editForm=V.default,r.default.tags.editForm=L.default,r.default.textarea.editForm=N.default,r.default.textfield.editForm=F.default,r.default.time.editForm=B.default,r.default.tree.editForm=z.default,r.default.unknown.editForm=U.default,r.default.url.editForm=H.default,r.default.well.editForm=q.default;var K=r.default;t.default=K},28110:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:o.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=i(n(39086)),o=i(n(26620));function i(e){return e&&e.__esModule?e:{default:e}}},83696:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esMo
2dule",{value:!0}),t.default=void 0,n(26699),n(40561),n(74916),n(15306),n(24603),n(39714),n(64765),n(92222),n(69600),n(21249),n(47941),n(41539),n(23123),n(68309),n(30489);var o=u(n(96486)),i=u(n(91459)),a=u(n(68093)),s=u(n(63820)),l=n(82531);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=d(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},f.apply(this,arguments)}function d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(v,e);var t,n,r,a,u,d=(a=v,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(a);if(u){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function v(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),(r=d.call(this,e,t,n)).filesUploading=[],r}return t=v,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.default.schema.apply(s.default,[{type:"button",label:"Submit",key:"submit",size:"md",leftIcon:"",rightIcon:"",block:!1,action:"submit",persistent:!1,disableOnInvalid:!1,theme:"primary",dataGridLabel:!0}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Button",group:"basic",icon:"stop",documentation:"/userguide/#button",weight:110,schema:v.schema()}}}],(n=[{key:"defaultSchema",get:function(){return v.schema()}},{key:"inputInfo",get:function(){var e=f(m(v.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=f(m(v.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 f(m(v.prototype),"className",this)+" form-group"}},{key:"oauthConfig",get:function(){return o.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),f(m(v.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 t=null,n=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(t){var n=o.default.isString(t)?t: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,n)}),!0),this.on("submitError",(function(t){var n=o.default.isString(t)?e.t(t):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,n)}),!0),this.on("fileUploadingStart",(function(t){e.filesUploading.push(t),e.disabled=!0,e.setDisabled(e.refs.button,e.disabled)}),!0),this.on("fileUploadingEnd",(function(t){var n=e.filesUploading.indexOf(t);-1!==n&&e.filesUploading.splice(n,1),e.disabled=!!e.shouldDisabled,e.setDisabled(e.refs.button,e.disabled)}),!0),t=function(t,n){e.removeClass(e.refs.button,"btn-success submit-success"),n&&(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")))},n=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(n,r){var o=n.isValid,i=r&&r.silent;r&&r.noValidate&&(e.component.disableOnInvalid||e.hasError)&&(o=r.rootValidity||!e.root||e.root.checkValidity(e.root.data,null,
2null,!0),r.rootValidity=o),e.loading=!1,e.isDisabledOnInvalid=e.component.disableOnInvalid&&(i||!o),e.disabled=e.shouldDisabled,e.setDisabled(e.refs.button,e.disabled),t&&t(n,o)}),!0),this.on("error",(function(){e.loading=!1,e.disabled=!1,n&&n()}),!0),this.component.saveOnEnter&&this.root.addEventListener(this.root.element,"keyup",(function(t){13===t.keyCode&&e.onClick.call(e,t)})),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 r=function(e){e=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]".concat(e,"=([^&#]*)")).exec(location.search);return t?decodeURIComponent(t[1].replace(/\+/g," ")):t}("iss");r&&0===this.oauthConfig.authURI.indexOf(r)&&this.openOauth(this.oauthConfig)}}},{key:"shouldDisabled",get:function(){var e;return f(m(v.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 t=f(m(v.prototype),"attach",this).call(this,e);return this.attachButton(),t}},{key:"detach",value:function(e){e&&this.refs.button&&this.removeShortcut(this.refs.button),f(m(v.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;
2case"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 t=this.getRoot(),n={},r={};(0,l.eachComponent)(t.components,(function(e,t){n[t]=e.component,r[e.component.key]=e}),!0),this.evaluate(this.component.custom,{form:t,flattened:n,components:r}),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)return void console.warn("You must add the OAuth button to a form for it to function properly");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 t=this;if(this.root.formio){var n={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},r=n.redirect_uri;e.display&&(n.display=e.display),n=Object.keys(n).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(n[e]))})).join("&");var a=-1!==e.authURI.indexOf("?")?"&":"?",s="".concat(e.authURI).concat(a).concat(n),l=window.open(s,e.provider,"width=1020,height=618"),u=setInterval((function(){try{var n=l.location.host,a=window.location.host;if(l&&!l.closed&&n===a&&l.location.search){l.close();var s=l.location.search.substr(1).split("&").reduce((function(e,t){var n=t.split("=");return e[n[0]]=n[1],e}),{});if(s.error)return alert(s.error_description||s.error),void t.root.setAlert("danger",s.error_description||s.error);if(e.state!==s.state)return void t.root.setAlert("danger","OAuth state does not match. Please try logging in again.");var c=i.default.resolve();if(o.default.has(t,"root.form.config.oauth")&&t.root.form.config.oauth[t.component.oauthProvider])s.provider=e.provider,s.redirectURI=r,s.triggeredBy=t.key,c=t.root.formio.makeRequest("oauth","".concat(t.root.formio.projectUrl,"/oauth2"),"POST",s);else{var f={data:{},oauth:{}};f.oauth[e.provider]=s,f.oauth[e.provider].redirectURI=r,f.oauth[e.provider].triggeredBy=t.key,c=t.root.formio.saveSubmission(f)}c.then((function(e){t.root.onSubmit(e,!0)})).catch((function(e){t.root.onSubmissionError(e)}))}}catch(e){"SecurityError"!==e.name&&t.root.setAlert("danger",e.message||e)}l&&!l.closed&&void 0!==l.closed||clearInterval(u)}),100)}else console.warn("You must attach a Form API url to your form in order to use OAuth buttons.")}},{key:"focus",value:function(){this.refs.button&&this.refs.button.focus()}},{key:"triggerReCaptcha",value:function(){var e,t=this;this.root&&(this.root.everyComponent((function(n){"recaptcha"===n.component.type&&"buttonClick"===n.component.eventType&&n.component.buttonKey===t.component.key&&(e=n)})),e&&e.verify("".concat(this.component.key,"Click")))}}])&&c(t.prototype,n),r&&c(t,r),v}(a.default);t.default=v},26620:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(1848)),o=i(n(96486));function i(e){return e&&e.__esModule?e:{default:e}}var a=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"hideLabel",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"]}}}
2,{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 r.default.getAvailableShortcuts(o.default.get(e,"instance.options.editForm",{}),o.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}];t.default=a},87533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"data",components:o.default},{key:"display",components:i.default},{key:"validation",components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=s(n(39086)),o=s(n(36602)),i=s(n(51905)),a=s(n(5817));function s(e){return e&&e.__esModule?e:{default:e}}},37784:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esMo
2dule",{value:!0}),t.default=void 0,n(68309),n(41539),n(39714),n(74916),n(15306),n(92222),n(30489);var o,i=(o=n(68093))&&o.__esModule?o:{default:o};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=u(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},l.apply(this,arguments)}function u(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function f(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(h,e);var t,n,r,o,u,p=(o=h,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(o);if(u){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return f(this,e)});function h(){return a(this,h),p.apply(this,arguments)}return t=h,n=[{key:"defaultSchema",get:function(){return h.schema()}},{key:"defaultValue",get:function(){var e=this.component.name,t=l(d(h.prototype),"defaultValue",this);return e?this.component[e]||this.emptyValue:"true"===(t||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=l(d(h.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 l(d(h.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 t=this;return this.loadRefs(e,{input:"multiple"}),this.input=this.refs.input[0],this.refs.input&&(this.addEventListener(this.input,this.inputInfo.changeEvent,(function(){return t.updateValue(null,{modified:!0})})),this.addShortcut(this.input)),l(d(h.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(e){e&&this.input&&this.removeShortcut(this.input),l(d(h.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 l(d(h.prototype),"isEmpty",this).call(this,e)||!1===e}},{key:"key",get:function(){return this.component.name?this.component.name:l(d(h.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=l(d(h.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 t=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 n=this.updateV
2alue(e,t);return this.isHtmlRenderMode()&&t&&t.fromSubmission&&n&&this.redraw(),n}return!1}},{key:"getValueAsString",value:function(e){return e?"Yes":"No"}},{key:"updateValue",value:function(e,t){this.component.name&&t.modified&&this.dataValue===this.component.value&&(this.input.checked=0,this.input.value=0,this.dataValue="");var n=l(d(h.prototype),"updateValue",this).call(this,e,t);return n&&this.input&&(this.input.checked?this.input.setAttribute("checked","true"):this.input.removeAttribute("checked")),n}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"checkbox",inputType:"checkbox",label:"Checkbox",key:"checkbox",dataGridLabel:!0,labelPosition:"right",value:"",name:""}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Checkbox",group:"basic",icon:"check-square",documentation:"/userguide/#checkbox",weight:50,schema:h.schema()}}}],n&&s(t.prototype,n),r&&s(t,r),h}(i.default);t.default=p},36602:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"multiple",ignore:!0}]},51905:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(1848)),o=i(n(96486));function i(e){return e&&e.__esModule?e:{default:e}}var a=[{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 r.default.getAvailableShortcuts(o.default.get(e,"instance.options.editForm",{}),o.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"]}}},{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"]}}}];t.default=a},5817:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"validateOn",ignore:!0},{key:"unique",ignore:!0}]},98237:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=i(n(40970)),o=i(n(42780));function i(e){return e&&e.__esModule?e:{default:e}}},67559:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(91038),n(47042),n(68309),n(74916),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(21249),n(41539),n(54747),n(92222),n(30489);var o=a(n(96486)),i=a(n(24561));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=f(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},c.apply(this,arguments)}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}
2function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(m,e);var t,n,r,a,l,f=(a=m,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(a);if(l){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return p(this,e)});function m(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),(r=f.call(this,e,t,n)).rows=[],r}return t=m,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.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(t))}},{key:"builderInfo",get:function(){return{title:"Columns",icon:"columns",group:"layout",documentation:"/userguide/#columns",weight:10,schema:m.schema()}}}],(n=[{key:"schema",get:function(){var e,t=this,n=o.default.omit(c(h(m.prototype),"schema",this),["components"]);return null===(e=n.columns)||void 0===e||e.map((function(e,r){e.components.map((function(e,i){var a=o.default.clone(e);a.internal=!0;var s=t.createComponent(a);delete s.component.internal,n.columns[r].components[i]=s.schema}))})),n}},{key:"defaultSchema",get:function(){return m.schema()}},{key:"className",get:function(){return"row ".concat(c(h(m.prototype),"className",this))}},{key:"columnKey",get:function(){return"column-".concat(this.id)}},{key:"init",value:function(){var e=this;c(h(m.prototype),"init",this).call(this),this.columns=[],o.default.each(this.component.columns,(function(t,n){e.columns[n]=[],t.size||(t.size="md"),t.currentWidth=t.width||0,Array.isArray(t.components)||(t.components=[]),o.default.each(t.components,(function(t){var r=e.createComponent(t);r.column=n,e.columns[n].push(r)}))})),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 c(h(m.prototype),"render",this).call(this,this.renderTemplate("columns",{columnKey:this.columnKey,columnComponents:this.columns.map((function(t){return e.renderComponents(t)}))}))}},{key:"justifyColumn",value:function(e,t){var n=o.default.every(e,(function(e){return!e.visible})),r=this.component.columns[t],i=n&&e.length?0:r.width,a=!o.default.isEqual(i,r.currentWidth);return r.currentWidth=i,a}},{key:"justify",value:function(){var e=this;return this.columns.reduce((function(t,n,r){return e.justifyColumn(n,r)||t}),!1)}},{key:"attach",value:function(e){var t,n,r,o=this;this.loadRefs(e,(t={},r="multiple",(n=this.columnKey)in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t));var i=c(h(m.prototype),"attach",this).call(this,e);return this.refs[this.columnKey]&&this.refs[this.columnKey].forEach((function(e,t){return o.attachComponents(e,o.columns[t],o.component.columns[t].components)})),i}},{key:"gridSize",get:function(){return 12}},{key:"groupByRow",value:function(){var e=this,t=function(e){return e.component.width},n=o.default.reduce(this.components,(function(n,r){var i=[].concat(s(n.stack),[r]);return o.default.sumBy(i,t)<=e.gridSize?(n.stack=i,n):(n.rows=[].concat(s(n.rows),[n.stack]),n.stack=[r],n)}),{stack:[],rows:[]});return o.default.concat(n.rows,[n.stack])}},{key:"checkData",value:function(e,t,n,r){var o=c(h(m.prototype),"checkData",this).call(this,e,t,n,r);return this.component.autoAdjust&&"pdf"!==this.options.display&&this.justify()&&this.redraw(),o}},{key:"detach",value:function(e){c(h(m.prototype),"detach",this).call(this,e)}},{key:"destroy",value:function(){c(h(m.prototype),"destroy",this).call(this),this.columns=[]}}])&&u(t.prototype,n),r&&u(t,r),m}(i.default);t.default=m},42780:function(e,t){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},45187:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:o.default},{key:"data",components:i.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=a(n(39086)),o=a(n(20841)),i=a(n(53196));function a(e){return e&&e.__esModule?e:{default:e}}},20787:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(41539),n(54747),n(30489);var o=u(n(96486)),i=n(82531),a=u(n(64430)),s=u(n(68093)),l=u(n(67329));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=p(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},d.apply(this,arguments)}function p(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(b,e);var t,n,r,u,p,y=(u=b,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(u);if(p){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return m(this,e)});function b(){var e;c(this,b);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=y.call.apply(y,[this].concat(n))).type="container",e}return t=b,n=[{key:"addComponents",value:function(e,t){return d(v(b.prototype),"addComponents",this).call(this,this.dataValue,t)}},{key:"defaultSchema",get:function(){return b.schema()}},{key:"emptyValue",get:function(){return{}}},{key:"templateName",get:function(){return"container"}},{key:"componentContext",value:function(){return this.dataValue}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!1,r=this.hasValue();return r&&o.default.isEmpty(this.dataValue)&&(t.noValidate=!0),e&&o.default.isObject(e)&&r||(n=!0,this.dataValue=this.defaultValue),n=d(v(b.prototype),"setValue",this).call(this,e,t)||n,this.updateOnChange(t,n),n}},{key:"checkData",value:function(e,t,n,r){var i=this;
2return e=e||this.rootValue,t=t||{},n=n||this.data,(r=r&&o.default.isArray(r)?r:this.getComponents()).reduce((function(n,r){return r.checkData(e,t,i.dataValue)&&n}),a.default.prototype.checkData.call(this,e,t,n))}},{key:"focus",value:function(){var e=(0,i.getFocusableElements)(this.element);e&&e[0]&&e[0].focus()}},{key:"checkConditions",value:function(e,t,n){var r=this,o=s.default.prototype.checkConditions.call(this,e,t,n);return this.getComponents().forEach((function(n){return n.checkConditions(e,t,r.dataValue)})),o}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l.default.schema.apply(l.default,[{label:"Container",type:"container",key:"container",clearOnHide:!0,input:!0,tree:!0,hideLabel:!0,components:[]}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Container",icon:"folder-open",group:"data",documentation:"/userguide/#container",weight:10,schema:b.schema()}}}],n&&f(t.prototype,n),r&&f(t,r),b}(l.default);t.default=y},53196:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"multiple",ignore:!0},{key:"allowCalculateOverride",ignore:!0},{key:"defaultValue",ignore:!0}]},20841:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tabindex",ignore:!0}]},67400:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=r.default.baseEditForm.apply(r.default,[[{key:"display",components:o.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"logic",components:i.default},{key:"addons",ignore:!0}]].concat(t));return a.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(a.components),a},n(92222);var r=a(n(39086)),o=a(n(79748)),i=a(n(52582));function a(e){return e&&e.__esModule?e:{default:e}}},37419:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(41539),n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(30489);var o=s(n(64430)),i=s(n(96486)),a=s(n(91459));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=f(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},c.apply(this,arguments)}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(v,e);var t,n,r,s,f,m=(s=v,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(s);if(f){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return p(this,e)});function v(){return l(this,v),m.apply(this,arguments)}return t=v,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.schema.apply(o.default,[{label:"Content",type:"content",key:"content",input:!1,html:""}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Content",group:"layout",icon:"html5",preview:!1,documentation:"/userguide/#content-component",weight:5,schema:v.schema()}}}],(n=[{key:"defaultSchema",get:function(){return v.schema()}},{key:"content",get:function(){if(this.builderMode)return this.component.html;var e=i.default.get(this.root,"submission",{});return this.component.html?this.interpolate(this.component.html,{metadata:e.metadata||{}
2,submission:e,data:this.rootValue,row:this.data}):""}},{key:"render",value:function(){return c(h(v.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)||a.default.resolve()}},{key:"attach",value:function(e){var t=this;return this.loadRefs(e,{html:"single"}),this.dataReady.then((function(){t.refs.html&&t.setContent(t.refs.html,t.content)})),this.component.refreshOnChange&&this.on("change",(function(){t.refs.html&&t.setContent(t.refs.html,t.content)}),!0),c(h(v.prototype),"attach",this).call(this,e)}},{key:"emptyValue",get:function(){return""}}])&&u(t.prototype,n),r&&u(t,r),v}(o.default);t.default=m},79748:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},52582:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}}]}]}]}]},87018:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"data",components:i.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}]},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=a(n(53983)),o=a(n(68985)),i=a(n(58791));function a(e){return e&&e.__esModule?e:{default:e}}},29147:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(41539),n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(47042),n(68309),n(91038),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(26699),n(32023),n(74916),n(15306),n(23123),n(92222),n(69600),n(44048),n(9653),n(30489);var o=n(84909),i=n(47853),a=u(n(96486)),s=n(82531),l=u(n(40996));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=h(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},p.apply(this,arguments)}function h(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function v(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}
2function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(g,e);var t,n,r,u,h,b=(u=g,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(u);if(h){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return v(this,e)});function g(e,t,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),e&&!e.hasOwnProperty("delimiter")&&(e.delimiter=!0),b.call(this,e,t,n)}return t=g,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l.default.schema.apply(l.default,[{type:"currency",label:"Currency",key:"currency"}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Currency",group:"advanced",icon:"usd",documentation:"/userguide/#currency",weight:70,schema:g.schema()}}}],(n=[{key:"createNumberMask",value:function(){var e=a.default.get(this.component,"decimalLimit",2),t=(0,s.getCurrencyAffixes)({currency:this.component.currency,decimalLimit:e,decimalSeparator:this.decimalSeparator,lang:this.options.language});return this.currencyPrefix=this.options.prefix||t.prefix,this.currencySuffix=this.options.suffix||t.suffix,(0,o.createNumberMask)({prefix:this.currencyPrefix,suffix:this.currencySuffix,thousandsSeparatorSymbol:a.default.get(this.component,"thousandsSeparator",this.delimiter),decimalSymbol
2:a.default.get(this.component,"decimalSymbol",this.decimalSeparator),decimalLimit:e,allowNegative:a.default.get(this.component,"allowNegative",!0),allowDecimal:this.isDecimalAllowed()})}},{key:"isDecimalAllowed",value:function(){return a.default.get(this.component,"allowDecimal",!0)}},{key:"setInputMask",value:function(e){var t=(0,s.getCurrencyAffixes)({currency:this.component.currency,decimalSeparator:this.decimalSeparator,lang:this.options.language}),n="".concat(t.prefix,"[0-9");n+=this.decimalSeparator||"",n+=this.delimiter||"",n+="]*",e.setAttribute("pattern",n),e.mask=(0,i.maskInput)({inputElement:e,mask:this.numberMask||"",pipe:function(t){return"$0._"===t&&setTimeout((function(){var t=e.value.length-1;e.setSelectionRange(t,t)})),t},shadowRoot:this.root?this.root.shadowRoot:null})}},{key:"defaultSchema",get:function(){return g.schema()}},{key:"parseNumber",value:function(e){return p(y(g.prototype),"parseNumber",this).call(this,this.stripPrefixSuffix(e))}},{key:"parseValue",value:function(e){return p(y(g.prototype),"parseValue",this).call(this,this.stripPrefixSuffix(e))}},{key:"addZerosAndFormatValue",value:function(e){if(e||0===e){var t,n=a.default.get(this.component,"decimalLimit",2),r="",o=[],i=!!this.currencyPrefix&&e.includes(this.currencyPrefix),s=!!this.currencySuffix&&e.includes(this.currencySuffix),l=e.includes("-")||!1;
2if((e=this.stripPrefixSuffix(l?e.replace("-",""):e)).includes(this.decimalSeparator)){var u=(h=e.split(this.decimalSeparator),m=2,function(e){if(Array.isArray(e))return e}(h)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(h,m)||c(h,m)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());t=u[0],o=function(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((r=u[1]).split(""))}else t=e;if(r.length<n)for(;o.length<n;)o.push("0");var d="".concat(l?"-":"").concat(i?this.currencyPrefix:"").concat(t).concat(this.decimalSeparator).concat(o.join("")).concat(s?this.currencySuffix:"");return p(y(g.prototype),"formatValue",this).call(this,d)}var h,m}},{key:"getValueAsString",value:function(e,t){var n=p(y(g.prototype),"getValueAsString",this).call(this,e,t);return e||"0"==e?this.addZerosAndFormatValue(n):n}},{key:"formatValue",value:function(e){return e||"0"===e?this.addZerosAndFormatValue(e):p(y(g.prototype),"formatValue",this).call(this,e)}},{key:"stripPrefixSuffix",value:function(e){if("string"==typeof e)try{var t=!!this.currencyPrefix&&e.includes(this.currencyPrefix),n=!!this.currencySuffix&&e.includes(this.currencySuffix),r=e.includes(this.delimiter),o=e.includes(this.decimalSeparator);this.currencyPrefix&&(e=e.replace(this.currencyPrefix,"")),this.currencySuffix&&(e=e.replace(this.currencySuffix,"")),!t&&!n||r||o||!Number.isNaN(+e)&&e||(e="0")}catch(e){}return e}},{key:"addFocusBlurEvents",value:function(e){var t=this;p(y(g.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=t.getValueAsString(t.addZerosAndFormatValue(t.parseValue(e.value)))}))}}])&&d(t.prototype,n),r&&d(t,r),g}(l.default);t.default=b},58791:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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"}
2,{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"},{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"}
2,{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Ãvar 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"}]}}]},68985:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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)."}]},11988:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=s(n(39086)),o=s(n(27748)),i=s(n(83893)),a=s(n(57369));function s(e){return e&&e.__esModule?e:{default:e}}},56742:function(e,t,n){"use strict";n(12419),n(74819),n(38880),n(83593),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(91038),n(49337),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(21249),n(41539),n(47042),n(26699),n(39714),n(57327),n(54747),n(26833),n(40561),n(69826),n(47941),n(68309),n(74916),n(15306),n(34553),n(69720),n(30489);var r,o=s(n(96486)),i=s(n(99495)),a=n(82531);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){return d(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||m(e,t)||f()}
2function f(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e){if(Array.isArray(e))return 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},p(e)}function h(e){return function(e){if(Array.isArray(e))return y(e)}(e)||v(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function v(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t,n,r){return w="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=x(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else _(r,t,n);return!0},w(e,t,n,r)}function k(e,t,n,r,o){if(!w(e,t,n,r||e)&&o)throw new Error("failed to set property");return n}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(){return O="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=x(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},O.apply(this,arguments)}function x(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=P(e)););return e}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function j(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}"undefined"!=typeof window&&(r=n(91130));var C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(x,e);var t,n,s,l,y,w=(l=x,y=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=P(l);if(y){var n=P(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return j(this,e)});function x(){var e;b(this,x);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=w.call.apply(w,[this].concat(n))).type="datagrid",e.tabIndex=0,e}return t=x,n=[{key:"init",value:function(){this.components=this.components||[],this.rows=[],this.columns=h(this.component.components),!this.initRows&&o.default.isEqual(this.dataValue,this.emptyValue)||this.createRows(!0),this.visibleColumns={},this.prevHasAddButton=this.hasAddButton(),this.checkColumns()}},{key:"dataValue",get:function(){var e=O(P(x.prototype),"dataValue",this);return e&&Array.isArray(e)?e:this.emptyValue},set:function(e){k(P(x.prototype),"dataValue",e,this,!0)}},{key:"defaultSchema",get:function(){return x.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 o.default.get(this.component,"addAnotherPosition","bottom")}},{key:"minLength",get:function(){return this.hasRowGroups()?o.default.sum(this.getGroupSizes()):o.default.get(this.component,"validate.minLength",0)}},{key:"defaultValue",get:function(){var e=this.builderMode,t=this.initEmpty;if(e||t&&!this.dataValue.length)return t&&!e?[]:[{}];for(var n,r=O(P(x.prototype),"defaultValue",this),o=(n=Array.isArray(r)?r:r&&"object"===p(r)?[r]:this.emptyValue).length;o<this.minLength;o++)n.push({});return n}},{key:"disabled",get:function(){return O(P(x.prototype),"disabled",this)},set:function(e){k(P(x.prototype),"disabled",e,this,!0),o.default.each(this.refs["".concat(this.datagridKey,"-addRow")],(function(t){t.disabled=e})),o.default.each(this.refs["".concat(this.datagridKey,"-removeRow")],(function(t){t.disabled=e}))}},{key:"datagridKey",get:function(){return"datagrid-".concat(this.key)}},{key:"allowReorder",get:function(){return!this.options.readOnly&&o.default.get(this.component,"reorder",!1)}},{key:"iteratableRows",get:function(){var e=this;return this.rows.map((function(t,n){return{components:t,data:e.dataValue[n]}}))}},{key:"getRowChunks",value:function(e,t){var n=e.reduce((function(e,t){var n=c(e,2),r=n[0],o=n[1],i=r+t;return[i,[].concat(h(o),[[r,i]])]}),[0,[]]);return c(n,2)[1].map((function(e){return o.default.slice.apply(o.default,[t].concat(h(e)))}))}},{key:"getGroups",value:function(){var e=o.default.get(this.component,"rowGroups",[]),t=o.default.map(e,"numberOfRows").slice(0,-1).reduce((function(e,t){var n=e[e.length-1];return e.concat(n+t)}),[0]);return e.reduce((function(e,n,r){return u(u({},e),{},_({},t[r],n))}),{})}},{key:"getGroupSizes",value:function(){return o.default.map(o.default.get(this.component,"rowGroups",[]),"numberOfRows")}},{key:"hasRowGroups",value:function(){return o.default.get(this,"component.enableRowGroups",!1)&&!this.builderMode}},{key:"totalRowsNumber",value:function(e){return o.default.sum(o.default.map(e,"numberOfRows"))}},{key:"setStaticValue",value:function(e){this.dataValue=o.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>
2o.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(),t=0,n=this.hasRemoveButtons();this.component.reorder&&t++,n&&t++,this.canAddColumn&&t++;var r=Math.floor(12/(e.length+t));return O(P(x.prototype),"render",this).call(this,this.renderTemplate("datagrid",{rows:this.getRows(),columns:e,groups:this.hasRowGroups()?this.getGroups():[],visibleColumns:this.visibleColumns,hasToggle:o.default.get(this,"component.groupToggle",!1),hasHeader:this.hasHeader(),hasExtraColumn:this.hasExtraColumn(),hasAddButton:this.hasAddButton(),hasRemoveButtons:n,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:r.toString()}))}},{key:"getRows",value:function(){return this.rows.map((function(e){var t={};return o.default.each(e,(function(e,n){t[n]=e.render()})),t}))}},{key:"getColumns",value:function(){var e=this;return this.columns.filter((function(t){return!e.visibleColumns.hasOwnProperty(t.key)||e.visibleColumns[t.key]}))}},{key:"hasHeader",value:function(){return this.component.components.reduce((function(e,t){return e||(t.label||t.title)&&!t.hideLabel}),!1)}},{key:"loadRefs",value:function(e,t){if(O(P(x.prototype),"loadRefs",this).call(this,e,t),"single"===t.messageContainer){var n=o.default.last(e.querySelectorAll("[ref=messageContainer]"));this.refs.messageContainer=n||this.refs.messageContainer}}},{key:"attach",value:function(e){var t,n=this;this.loadRefs(e,(_(t={},"".concat(this.datagridKey,"-row"),"multiple"),_(t,"".concat(this.datagridKey,"-tbody"),"single"),_(t,"".concat(this.datagridKey,"-addRow"),"multiple"),_(t,"".concat(this.datagridKey,"-removeRow"),"multiple"),_(t,"".concat(this.datagridKey,"-group-header"),"multiple"),_(t,this.datagridKey,"multiple"),_(t,"messageContainer","single"),t)),this.allowReorder&&(this.refs["".concat(this.datagridKey,"-row")].forEach((function(e,t){e.dragInfo={index:t}})),r&&(this.dragula=r([this.refs["".concat(this.datagridKey,"-tbody")]],{moves:function(e,t,n){var r=n.getAttribute("data-key");if(t.getAttribute("data-key")===r)return n.classList.contains("formio-drag-button")}}).on("drop",this.onReorder.bind(this)),this.dragula.on("cloned",(function(e,t){e&&e.children&&t&&t.children&&t.children.forEach((function(t,n){var r=getComputedStyle(t,null);if(""!==r.cssText)e.children[n].style.cssText=r.cssText;else{var o=Object.values(r).reduce((function(e,t){return"".concat(e).concat(t,":").concat(r.getPropertyValue(t),";")}),"");e.children[n].style.cssText=o}}))})))),this.refs["".concat(this.datagridKey,"-addRow")].forEach((function(e){n.addEventListener(e,"click",n.addRow.bind(n))})),this.refs["".concat(this.datagridKey,"-removeRow")].forEach((function(e,t){n.addEventListener(e,"click",n.removeRow.bind(n,t))})),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,t){n.addEventListener(e,"click",(function(){return n.toggleGroup(e,t)}))})));var o=this.getColumns(),i=o.length;return this.rows.forEach((function(e,t){var r=0;o.forEach((function(e){n.attachComponents(n.refs[n.datagridKey][t*i+r],[n.rows[t][e.key]],n.getComponentsContainer()),r++}))})),O(P(x.prototype),"attach",this).call(this,e)}},{key:"getComponentsContainer",value:function(){return this.component.components}},{key:"onReorder",value:function(e,t,n,r){if(!e.dragInfo||r&&!r.dragInfo)console.warn("There is no Drag Info available for either dragged or sibling element");else{var o=e.dragInfo.index,i=r?r.dragInfo.index:this.dataValue.length,s=i>o,l=(0,a.fastCloneDeep)(this.dataValue),u=l[o];l.splice(i,0,u),l.splice(s?o:o+1,1),this.setValue(l,{isReordered:!0}
2),this.rebuild()}}},{key:"focusOnNewRowElement",value:function(e){Object.keys(e).find((function(t){var n=(0,a.getFocusableElements)(e[t].element);return!(!n||!n[0]||(n[0].focus(),0))}))}},{key:"addRow",value:function(){var e,t=this,n=this.rows.length;this.dataValue.length===n&&this.dataValue.push({});var r=this.dataValue,o=this.defaultValue;this.initEmpty&&o[n]?(e=o[n],r[n]=e):e=r[n],this.rows[n]=this.createRowComponents(e,n),this.emit("dataGridAddRow",{component:this.component,row:e}),this.checkConditions(),this.triggerChange(),this.redraw().then((function(){t.focusOnNewRowElement(t.rows[n])}))}},{key:"updateComponentsRowIndex",value:function(e,t){var n=this;e.forEach((function(e,r){var o;if(null!==(o=e.options)&&void 0!==o&&o.name){var i="[".concat(n.key,"][").concat(t,"]");e.options.name=e.options.name.replace("[".concat(n.key,"][").concat(e.rowIndex,"]"),i)}e.rowIndex=t,e.row="".concat(t,"-").concat(r),e.path=n.calculateComponentPath(e)}))}},{key:"updateRowsComponents",value:function(e){var t=this;this.rows.slice(e).forEach((function(n,r){t.updateComponentsRowIndex(Object.values(n),e+r)}))}},{key:"removeRow",value:function(e){this.splice(e,{isReordered:!0}),this.emit("dataGridDeleteRow",{index:e});var t=c(this.rows.splice(e,1),1)[0];this.removeRowComponents(t),this.updateRowsComponents(e),this.setValue(this.dataValue,{isReordered:!0}),this.redraw()}},{key:"removeRowComponents",value:function(e){var t=this;o.default.each(e,(function(e){return t.removeComponent(e)}))}},{key:"getRowValues",value:function(){return this.dataValue}},{key:"setRowComponentsData",value:function(e,t){o.default.each(this.rows[e],(function(e){e.data=t}))}},{key:"createRows",value:function(e,t){var n=this,r=!1,o=this.getRowValues();o.forEach((function(e,o){!t&&n.rows[o]?n.setRowComponentsData(o,e):(n.rows[o]&&n.removeRowComponents(n.rows[o]),n.rows[o]=n.createRowComponents(e,o),r=!0)}));var i=this.rows.splice(o.length),a=!!i.length;return a&&i.forEach((function(e){return n.removeRowComponents(e)})),e||!r&&!a||this.redraw(),r}},{key:"createRowComponents",value:function(e,t){var n=this,r={};return this.tabIndex=0,this.component.components.map((function(i,a){var s,l=o.default.clone(n.options);l.name+="[".concat(t,"]"),l.row="".concat(t,"-").concat(a),n.builderMode?(i.id=i.id+t,s=i):s=u(u({},i),{},{id:i.id+t});var c=n.createComponent(s,l,e);c.parentDisabled=!!n.disabled,c.rowIndex=t,c.inDataGrid=!0,s.tabindex&&parseInt(s.tabindex)>n.tabIndex&&(n.tabIndex=parseInt(s.tabindex)),r[i.key]=c})),r}}
2,{key:"checkValidity",value:function(e,t,n,r){if(e=e||this.rootValue,n=n||this.data,!this.checkCondition(n,e))return this.setCustomValidity(""),!0;if(!this.checkComponentValidity(e,t,n,{silentCheck:r}))return!1;var o=this.checkRows("checkValidity",e,t,!0,r);return this.checkModal(o,t),o}},{key:"checkColumns",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=e||this.rootValue;var r=!1;if(!this.rows||!this.rows.length)return{rebuild:!1,show:!1};if(this.builderMode)return{rebuild:!1,show:!0};var i={},a=!1,s=this.dataValue;this.rows.forEach((function(r,l){o.default.each(r,(function(r,u){if(r&&"function"==typeof r.checkConditions){var c=void 0===i[u];if(i[u]=!!i[u]||r.checkConditions(e,n,s[l])&&"hidden"!==r.type,r.component.logic&&c){var f=o.default.findIndex(t.columns,["key",u]);o.default.isEqual(t.columns[f],r.component)||(a=!0,t.columns[f]=r.component)}}}))}));var l=!o.default.isEqual(i,this.visibleColumns)||a;return o.default.each(i,(function(e){r|=e})),this.visibleColumns=i,{rebuild:l,show:r}}},{key:"checkComponentConditions",value:function(e,t,n){var r=this.visible;if(!O(P(x.prototype),"checkComponentConditions",this).call(this,e,t,n))return!1;var o=this.checkColumns(e,t),i=o.rebuild,a=o.show;return!i&&r||this.createRows(!1,i),a}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return this.dataValue=this.defaultValue,this.createRows(),!1;Array.isArray(e)||("object"===p(e)?e=[e]:(this.createRows(),e=[{}])),!e||e.length||this.initEmpty||e.push({});var r=n.fromSubmission&&!o.default.isEqual(e,this.emptyValue),i=this.hasChanged(e,this.dataValue);return this.dataValue=e,(this.initRows||r)&&!this.createRows()&&i&&this.redraw(),this.componentModal&&r&&this.componentModal.setValue(e),this.rows.forEach((function(r,i){e.length<=i||o.default.each(r,(function(r){r.rowIndex=i,t.setNestedValue(r,e[i],n)}))})),this.updateOnChange(n,i),i}},{key:"restoreComponentsContext",value:function(){var e=this;this.rows.forEach((function(t,n){return o.default.forIn(t,(function(t){return t.data=e.dataValue[n]}))}))}},{key:"getComponent",value:function(e,t){var n,r=d(n=e=Array.isArray(e)?e:[e])||v(n)||m(n)||f(),i=r[0],a=r.slice(1),s=[];if(o.default.isNumber(i)&&a.length){var l=a.pop();return(s=this.rows[i][l])||Object.entries(this.rows[i]).forEach((function(e){var n=c(e,2)[1];if("getComponent"in n){var r=n.getComponent([l],t);r&&(s=r)}})),s&&o.default.isFunction(t)&&t(s,this.getComponents()),a.length&&"getComponent"in s?s.getComponent(a,t):s}return o.default.isString(i)?(this.everyComponent((function(e,n){if(e.component.key===i){var r=e;a.length>0&&"getComponent"in e?r=e.getComponent(a,t):t&&t(e,n),s=s.concat(r)}})),s.length>0?s:null):s}},{key:"toggleGroup",value:function(e,t){e.classList.toggle("collapsed"),o.default.each(this.refs.chunks[t],(function(e){e.classList.toggle("hidden")}))}}],s=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{label:"Data Grid",key:"dataGrid",type:"datagrid",clearOnHide:!0,input:!0,tree:!0,components:[]}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Data Grid",icon:"th",group:"data",documentation:"/userguide/#datagrid",weight:30,schema:x.schema()}}}],n&&g(t.prototype,n),s&&g(t,s),x}(i.default);t.default=C},27748:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"multiple",ignore:!0}]},83893:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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
2:!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}]},57369:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},21006:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=a(n(39086)),o=a(n(89316)),i=a(n(45392));function a(e){return e&&e.__esModule?e:{default:e}}},93560:function(e,t,n){"use strict";n(74819),n(38880),n(12419),n(83593),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(21249),n(47941),n(69826),n(41539),n(19601),n(92222),n(54747),n(68309),n(40561),n(30489);var r=l(n(64430)),o=l(n(56742)),i=l(n(96486)),a=l(n(26729)),s=n(82531);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},u(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n,r){return f="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=v(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else d(r,t,n);return!0},f(e,t,n,r)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(){return m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=v(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},m.apply(this,arguments)}function v(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(g,e);var t,n,o,l,v,b=(l=g,v=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(l);if(v){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function g(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),(r=b.call(this,e,t,n)).type="datamap",r}return t=g,n=[{key:"schema",get:function(){var e=m(y(g.prototype),"schema",this);return this.components&&this.components.length>0&&(e.valueComponent=this.components[this.components.length-1].schema),i.default.omit(e,"components")}},{key:"init",value:function(){this.components=[],this.rows=[],this.createRows(),this.visibleColumns=d({key:!0},this.valueKey,!0),this.component.valueComponent.hideLabel=!0}},{key:"defaultSchema",get:function(){return g.schema()}},{key:"emptyValue",get:function(){return{}}},{key:"dataValue",get:function(){return!this.key||!this.visible&&this.component.clearOnHide?this.emptyValue:(!this.hasValue()&&this.shouldAddDefaultValue&&(this.dataValue=this.emptyValue),i.default.get(this.data,this.key))},set:function(e){!function(e,t,n,r,o){if(!f(e,t,n,r||e)&&o)throw new Error("failed to set property")}(y(g.prototype),"dataValue",e,this,!0)}},{key:"defaultValue",get:function(){var e=m(y(g.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]:i.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})):m(y(g.prototype),"getComponentsContainer",this).call(this)}},{key:"iteratableRows",get:function(){return this.rows.map((function(e){return Object.keys(e).map((function(t){return{components:e[t],data:e[t].dataValue}}))}))}},{key:"componentContext",value:function(e){return this.iteratableRows[e.row].find((function(t){return t.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),t=Object.assign({},this.component.valueComponent);return e.hideLabel=!1,t.hideLabel=!1,this.component.keyBeforeValue?[e,t]:[t,e]}},{key:"getRowKey",value:function(e){var t=Object.keys(this.dataValue);return t[e]||(t[e]=(0,s.uniqueKey)(this.dataValue,this.defaultRowKey)),t[e]}},{key:"defaultRowKey",get:function(){return"key"}}
2,{key:"setRowComponentsData",value:function(e,t){i.default.each(this.rows[e],(function(n){"__key"===n.key?n.data={__key:Object.keys(t)[e]}:n.data=t}))}},{key:"getValueAsString",value:function(e,t){var n=this;if(null!=t&&t.email&&this.visible&&!this.skipInEmail&&i.default.isObject(e)){var r='\n <table border="1" style="width:100%">\n <tbody>\n ';return(r=Object.keys(e).reduce((function(r,o){return r+'\n <tr>\n <th style="padding: 5px 10px;">'.concat(o,'</th>\n <td style="width:100%;padding:5px 10px;">').concat(n.getView(e[o],t),"</td>\n </tr>\n ")}),r))+"\n </tbody>\n </table>\n "}return i.default.isEmpty(e)?"":null!=t&&t.modalPreview?(delete t.modalPreview,this.getDataValueAsTable(e,t)):"object"===u(e)?"[Complex Data]":e}},{key:"getDataValueAsTable",value:function(e,t){var n=this,r='\n <table border="1" style="width:100%">\n <tbody>\n ';return this.visible&&i.default.isObject(e)&&Object.keys(e).forEach((function(o){r+='\n <tr>\n <th style="padding: 5px 10px;">'.concat(o,'</th>\n <td style="width:100%;padding:5px 10px;">').concat(n.getView(e[o],t),"</td>\n </tr>\n ")})),r+="\n </tbody>\n </table>\n "}},{key:"createRowComponents",value:function(e,t){var n=this,r=this.builderMode?this.valueKey:this.getRowKey(t),o=i.default.clone(this.options);o.events=new a.default,o.name+="[".concat(t,"]"),o.row="".concat(t);var l={};l.__key=this.createComponent(this.keySchema,o,{__key:this.builderMode?this.defaultRowKey:r}),l.__key.on("componentChange",(function(e){var t=n.dataValue,o=(0,s.uniqueKey)(t,e.value);t[o]=t[r],delete t[r];var i=l[n.valueKey];i.component.key=o,i.path=n.calculateComponentPath(i),r=o}));var u=i.default.clone(this.component.valueComponent);u.key=r;var c=this.options;return c.row=o.row,l[this.valueKey]=this.createComponent(u,c,this.dataValue),l}},{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&&(this.component.valueComponent=e)}},{key:"removeChildComponent",value:function(){var e=g.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 t=Object.keys(this.dataValue);t[e]&&delete this.dataValue[t[e]],this.rows.splice(e,1),this.redraw(),this.triggerChange()}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.hasChanged(e,this.dataValue);return this.dataValue=e,this.createRows(),this.updateOnChange(t,n),n}},{key:"checkColumns",value:function(){return{rebuild:!1,show:!0}}}],o=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.schema.apply(r.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(t))}},{key:"builderInfo",get:function(){return{title:"Data Map",icon:"th-list",group:"data",documentation:"/userguide/#datamap",weight:20,schema:g.schema()}}}],n&&c(t.prototype,n),o&&c(t,o),g}(o.default);t.default=b},89316:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0}]},45392:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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:"
2Check 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}}]},4025:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:a.default},{label:"Date",key:"date",weight:1,components:i.default},{label:"Time",key:"time",weight:2,components:s.default},{key:"data",components:o.default},{key:"validation",components:l.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=u(n(39086)),o=u(n(45908)),i=u(n(77099)),a=u(n(48893)),s=u(n(97839)),l=u(n(35733));function u(e){return e&&e.__esModule?e:{default:e}}},54263:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(47941),n(82526),n(57327),n(49337),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(74916),n(15306),n(41539),n(39714),n(54747),n(92222),n(30489);var o=l(n(96486)),i=l(n(30381)),a=l(n(63820)),s=l(n(55666));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=p(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},d.apply(this,arguments)}function p(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(b,e);var t,n,r,l,p,y=(l=b,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(l);if(p){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return m(this,e)});function b(e,t,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b);var i=(r=y.call(this,e,t,n)).component.timezone||r.options.timezone,a=!o.default.get(r.component,"timePicker.showMeridian",!0);r.component.enableDate||(r.component.format=r.component.format.replace(/yyyy-MM-dd /g,"")),r.component.enableTime?r.component.format=a?r.component.format.replace(/hh:mm a$/g,"HH:mm"):r.component.format.replace(/HH:mm$/g,"hh:mm a"):r.component.format=r.component.format.replace(/ hh:mm a$/g,"");var s=r.component.customOptions||{};if("string"==typeof s)try{s=JSON.parse(s)}catch(e){console.warn(e.message),s={}}return r.component.widget=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?u(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({type:"calendar",timezone:i,displayInTimezone:o.default.get(r.component,"displayInTimezone","viewer"),submissionTimezone:r.submissionTimezone,locale:r.options.language,useLocaleSettings:o.default.get(r.component,"useLocaleSettings",!1),allowInput:o.default.get(r.component,"allowInput",!0),mode:"single",enableTime:o.default.get(r.component,"enableTime",!0),noCalendar:!o.default.get(r.component,"enableDate",!0),format:r.component.format,hourIncrement:o.default.get(r.component,"timePicker.hourStep",1),minuteIncrement:o.default.get(r.component,"timePicker.minuteStep",5),time_24hr:a,readOnly:r.options.readOnly,minDate:o.default.get(r.component,"datePicker.minDate"),disabledDates:o.default.get(r.component,"datePicker.disable"),disableWeekends:o.default.get(r.component,"datePicker.disableWeekends"),disableWeekdays:o.default.get(r.component,"datePicker.disableWeekdays"),disableFunction:o.default.get(r.component,"datePicker.disableFunction"),maxDate:o.default.get(r.component,"datePicker.maxDate")},s),r.validators.push("date"),r}return t=b,n=[{key:"performInputMapping",value:function(e){return e.widget&&e.widget.settings&&(e.widget.settings.submissionTimezone=this.submissionTimezone),e}},{key:"defaultSchema",get:function(){return b.schema()}},{key:"defaultValue",get:function(){var e=d(v(b.prototype),"defaultValue",this);return!e&&this.component.defaultDate&&(e=(e=s.default.getDateSetting(this.component.defaultDate))?e.toISOString():""),e}},{key:"emptyValue",get:function(){return""}},{key:"momentFormat",get:function(){return s.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())||d(v(b.prototype),"isEmpty",this).call(this,e)}},{key:"formatValue",value:function(e){var t=i.default.utc(e).toISOString();return"Invalid date"===t?e:t}},{key:"isEqual",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.dataValue;return this.isEmpty(e)&&this.isEmpty(t)||i.default.utc(e).format(this.momentFormat)===i.default.utc(t).format(this.momentFormat)}},{key:"createWrapper",value:function(){return!1}},{key:"checkValidity",value:function(e,t,n){return this.refs.input&&this.refs.input.forEach((function(e){e.widget&&e.widget.enteredDate&&(t=!0)})),d(v(b.prototype),"checkValidity",this).call(this,e,t,n)}},{key:"getValueAsString",value:function(e){var t=s.default.convertFormatToMoment(this.component.format);return(e?(0,i.default)(e).format(t):e)||""}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.default.schema.apply(a.default,[{type:"datetime",label:"Date / Time",key:"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(t))}},{key:"builderInfo",get:function(){return{title:"Date / Time",group:"advanced",icon:"calendar",documentation:"/userguide/#datetime",weight:40,schema:b.schema()}}}],n&&f(t.prototype,n),r&&f(t,r),b}(a.default);t.default=y},45908:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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:{}}]},77099:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(193));function o(e){return e&&e.__esModule?e:{default:e}}var i=[{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!r.default.noeval||r.default.protectedEval},components:[o(n(61550)).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">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}];t.default=i},48893:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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:"https://cdn.form.io/timezones.json"},template:"<span>{{ item.label }}</span>",conditional:{json:{"===":[{var:"data.displayInTimezone"},"location"]}}},{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">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:[]}]},97839:function(e,t){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},35733:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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 t=e.data,n=e.component;return!(n.datePicker&&n.datePicker.minDate&&-1!==n.datePicker.minDate.indexOf("moment")||t.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 t=e.data,n=e.component;return!(!n.datePicker||!n.datePicker.minDate||-1===n.datePicker.minDate.indexOf("moment"))||t.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 t=e.data,n=e.component;return!(n.datePicker&&n.datePicker.maxDate&&-1!==n.datePicker.maxDate.indexOf("moment")||t.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 t=e.data,n=e.component;return!(!n.datePicker||!n.datePicker.maxDate||-1===n.datePicker.maxDate.indexOf("moment"))||t.enableMaxDateInput}}]},69403:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:a.default},{key:"day",label:"Day",weight:3,components:s.default},{key:"month",label:"Month",weight:3,components:l.default},{key:"year",label:"Year",weight:3,components:u.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=c(n(39086)),o=c(n(51951)),i=c(n(84846)),a=c(n(6474)),s=c(n(86842)),l=c(n(65207)),u=c(n(2420));function c(e){return e&&e.__esModule?e:{default:e}}},34160:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(83593),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(47042),n(68309),n(91038),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(41539),n(39714),n(54747),n(74916),n(23123),n(69600),n(21249),n(83112),n(30489);var o=s(n(96486)),i=s(n(68093)),a=n(82531);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n,r){return d="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=h(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(r,t,n);return!0},d(e,t,n,r)}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=h(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},p.apply(this,arguments)}function h(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function v(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(b,e);var t,n,r,s,u,h=(s=b,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(s);if(u){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return v(this,e)});function b(){return c(this,b),h.apply(this,arguments)}return t=b,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.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(t))}},{key:"builderInfo",get:function(){return{title:"Day",group:"advanced",icon:"calendar",documentation:"/userguide/#day",weight:50,schema:b.schema()}}}],(n=[{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&&o.default.get(this.component,"fields.day.required",!1)}},{key:"showDay",get:function(){return!o.default.get(this.component,"fields.day.hide",!1)}},{key:"monthRequired",get:function(){return this.showMonth&&o.default.get(this.component,"fields.month.required",!1)}},{key:"showMonth",get:function(){return!o.default.get(this.component,"fields.month.hide",!1)}},{key:"yearRequired",get:function(){return this.showYear&&o.default.get(this.component,"fields.year.required",!1)}},{key:"showYear",get:function(){return!o.default.get(this.component,"fields.year.hide",!1)}},{key:"defaultSchema",get:function(){return b.schema()}},{key:"shouldDisabled",get:function(){return p(y(b.prototype),"shouldDisabled",this)||this.parentDisabled}},{key:"inputInfo",get:function(){var e=p(y(b.prototype),"elementInfo",this).call(this);return e.type="input",e.attr.type="hidden",e.changeEvent="input",e}},{key:"inputDefinition",value:function(e){var t,n;return"day"===e&&(t=1,n=31),"month"===e&&(t=1,n=12),"year"===e&&(t=o.default.get(this.component,"fields.year.minYear",1900)||1900,n=o.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:t,max:n}}}},{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:o.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:o.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:o.default.get(this.component,"fields.year.placeholder","")}];for(var e=o.default.get(this.component,"fields.year.minYear",1900)||1900,t=o.default.get(this.component,"fields.year.maxYear",2030)||2030,n=e;n<=t;n++)this._years.push({value:n,label:n.toString()});return this._years}},{key:"setErrorClasses",value:function(e,t,n){p(y(b.prototype),"setErrorClasses",this).call(this,e,t,n),p(y(b.prototype),"setErrorClasses",this).call(this,[this.refs.day,this.refs.month,this.refs.year],t,n)}},{key:"removeInputError",value:function(e){p(y(b.prototype),"removeInputError",this).call(this,[this.refs.day,this.refs.month,this.refs.year]),p(y(b.prototype),"removeInputError",this).call(this,e)}},{key:"init",value:function(){p(y(b.prototype),"init",this).call(this),this.validators=this.validators.concat(["day","maxDate","minDate","minYear","maxYear"]);var e=this.component.fields.year.minYear,t=this.component.fields.year.maxYear;this.component.maxYear=t,this.component.minYear=e;
2var n=(0,a.getLocaleDateFormatInfo)(this.options.language);this.dayFirst=this.component.useLocaleSettings?n.dayFirst:this.component.dayFirst}},{key:"render",value:function(){return this.isHtmlRenderMode()?p(y(b.prototype),"render",this).call(this,this.renderTemplate("input")):p(y(b.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 t=this;return"select"===this.component.fields[e].type?this.renderTemplate("select",{input:this.selectDefinition(e),selectOptions:this["".concat(e,"s")].reduce((function(e,n){return e+t.renderTemplate("selectOption",{option:n,selected:!1,attrs:{}})}),"")}):this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:this.inputDefinition(e)})}},{key:"attach",value:function(e){var t=this;this.loadRefs(e,{day:"single",month:"single",year:"single",input:"multiple"});var n=p(y(b.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 t.setDisabled(e,!0)}))):(this.addEventListener(this.refs.day,"input",(function(){return t.updateValue(null,{modified:!0})})),this.addEventListener(this.refs.month,"input",(function(){var e=t.refs.year?parseInt(new Date(t.refs.year.value,t.refs.month.value,0).getDate(),10):"",n=t.getFieldValue("day");!t.component.fields.day.hide&&e&&(t.refs.day.max=e),e&&n>e&&(t.refs.day.value=t.refs.day.max),t.updateValue(null,{modified:!0})})),this.addEventListener(this.refs.year,"input",(function(){return t.updateValue(null,{modified:!0})})),this.addEventListener(this.refs.input,this.info.changeEvent,(function(){return t.updateValue(null,{modified:!0})}))),this.setValue(this.dataValue),this.disabled=this.shouldDisabled,n}},{key:"validateRequired",value:function(e,t){var n=this.parts,r=n.day,o=n.month,i=n.year;return!(this.dayRequired&&!r||this.monthRequired&&!o||this.yearRequired&&!i||(0,a.boolValue)(e)&&this.isEmpty(t))}},{key:"disabled",set:function(e){(function(e,t,n,r,o){if(!d(e,t,n,r||e)&&o)throw new Error("failed to set property")})(y(b.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 t=[],n=e.split("/"),r=function(e,r){return t.push(e?n.shift():r)};return this.dayFirst&&r(this.showDay,"00"),r(this.showMonth,"00"),this.dayFirst||r(this.showDay,"00"),r(this.showYear,"0000"),t.join("/")}},{key:"setValueAt",value:function(e,t){if(!t||"Invalid date"===t)return null;var n,r=t.split("/");this.component.dayFirst&&(n=r.shift());var o=r.shift();this.component.dayFirst||(n=r.shift());var i=r.shift();this.refs.day&&this.showDay&&(this.refs.day.value="00"===n?"":parseInt(n,10)),this.refs.month&&this.showMonth&&(this.refs.month.value="00"===o?"":parseInt(o,10)),this.refs.year&&this.showYear&&(this.refs.year.value="0000"===i?"":parseInt(i,10))}},{key:"getFieldValue",value:function(e){var t=this.dataValue?this.dataValue.split("/"):[],n=0;switch(e){case"month":n=t[this.dayFirst?1:0];break;case"day":n=t[this.dayFirst?0:1];break;case"year":n=t[2]}return n=parseInt(n,10),!o.default.isNaN(n)&&o.default.isNumber(n)?n: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 t,n,r,i=[],a=l(this.component.dayFirst?[0,1,2]:[1,0,2],3),s=a[0],u=a[1],c=a[2],f=e||this.component.defaultValue;return f&&(i=f.split("/").map((function(e){return parseInt(e,10)}))),this.showDay&&this.refs.day&&(t=parseInt(this.refs.day.value,10)),(void 0===t||o.default.isNaN(t))&&(t=i[s]&&!o.default.isNaN(i[s])?i[s]:0),this.showMonth&&this.refs.month&&(n=parseInt(this.refs.month.value,10)),(void 0===n||o.default.isNaN(n))&&(n=i[u]&&!o.default.isNaN(i[u])?i[u]:0),this.showYear&&this.refs.year&&(r=parseInt(this.refs.year.value)),(void 0===r||o.default.isNaN(r))&&(r=i[c]&&!o.default.isNaN(i[c])?i[c]:0),t||n||r?(t=this.showDay?t.toString().padStart(2,0):"",n=this.showMonth?n.toString().padStart(2,0):"",r=this.showYear?r.toString().padStart(4,0):"",this.component.dayFirst?"".concat(t).concat(this.showDay&&this.showMonth||this.showDay&&this.showYear?"/":"").concat(n).concat(this.showMonth&&this.showYear?"/":"").concat(r):"".concat(n).concat(this.showDay&&this.showMonth||this.showMonth&&this.showYear?"/":"").concat(t).concat(this.showDay&&this.showYear?"/":"").concat(r)):null}},{key:"date",get:function(){return this.getDate()}},{key:"normalizeMinMaxDates",value:function(){return[this.component.minDate,this.component.maxDate].map((function(e){return e?e.split("-").reverse().join("/"):e}))}},{key:"validationValue",get:function(){var e=l(this.dayFirst?this.normalizeMinMaxDates():[this.component.minDate,this.component.maxDate],2);return this.component.minDate=e[0],this.component.maxDate=e[1],this.dataValue}},{key:"getValue",value:function(){return p(y(b.prototype),"getValue",this).call(this)||this.dataValue}},{key:"getValueAt",value:function(e){var t=this.date||this.emptyValue;return t?(this.refs.input[e].value=t,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;if(this.dayFirst&&this.showDay||!this.dayFirst&&!this.showMonth&&this.showDay)null===(e=this.refs.day)||void 0===e||e.focus();else if(this.dayFirst&&!this.showDay&&this.showMonth||!this.dayFirst&&this.showMonth){var t;null===(t=this.refs.month)||void 0===t||t.focus()}else if(!this.showDay&&!this.showDay&&this.showYear){var n;null===(n=this.refs.year)||void 0===n||n.focus()}}},{key:"isPartialDay",value:function(e){if(!e)return!1;var t=l(this.component.dayFirst?[0,1,2]:[1,0,2],3),n=t[0],r=t[1],o=t[2],i=e.split("/");return"00"===i[n]||"00"===i[r]||"0000"===i[o]}},{key:"getValidationFormat",value:function(){return this.dayFirst?"DD-MM-YYYY":"MM-DD-YYYY"}}])&&f(t.prototype,n),r&&f(t,r),b}(i.default);t.default=b},51951:function(e,t){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"multiple",ignore:!0}]},86842:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},84846:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},65207:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},6474:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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 in 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}]},2420:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},68489:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{label:"Templates",key:"templates",weight:5,components:a.default},{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:s.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=l(n(39086)),o=l(n(30923)),i=l(n(58917)),a=l(n(67930)),s=l(n(83881));function l(e){return e&&e.__esModule?e:{default:e}}},1870:function(e,t,n){"use strict";n(74819),n(38880),n(83593),n(12419),n(82526),n(41817),n(32165),n(66992),n(33948),n(49337),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(41539),n(54747),n(21249),n(26699),n(32023),n(57327),n(91038),n(78783),n(47941),n(19601),n(24603),n(74916),n(39714),n(15306),n(47042),n(40561),n(68309),n(30489);var r=c(n(96486)),o=c(n(91459)),i=c(n(99495)),a=c(n(64430)),s=c(n(93808)),l=n(82531),u=c(n(41578));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},f(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function g(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e,t,n,r){return w="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=O(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else k(r,t,n);return!0},w(e,t,n,r)}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(){return _="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=O(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},_.apply(this,arguments)}function O(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=x(e)););return e}
2function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}var S={New:"new",Editing:"editing",Saved:"saved",Viewing:"viewing",Removed:"removed",Draft:"draft"},j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(O,e);var t,n,a,c,d,m=(c=O,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=x(c);if(d){var n=x(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return g(this,e)});function O(){var e;v(this,O);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=m.call.apply(m,[this].concat(n))).type="editgrid",e}return t=O,n=[{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?O.defaultTableRowTemplate:O.defaultRowTemplate}},{key:"defaultHeaderTemplate",get:function(){return this.displayAsTable?O.defaultTableHeaderTemplate:O.defaultHeaderTemplate}},{key:"rowTemplate",get:function(){return l.Evaluator.noeval?this.displayAsTable?u.default.tableRow:u.default.row:this.displayAsTable?r.default.get(this.component,"templates.tableRow",this.defaultRowTemplate):r.default.get(this.component,"templates.row",this.defaultRowTemplate)}},{key:"headerTemplate",get:function(){return l.Evaluator.noeval?this.displayAsTable?u.default.tableHeader:u.default.header:this.displayAsTable?r.default.get(this.component,"templates.tableHeader",this.defaultHeaderTemplate):r.default.get(this.component,"templates.header",this.defaultHeaderTemplate)}},{key:"hasScopedChildren",get:function(){return!this.inlineEditMode}},{key:"defaultSchema",get:function(){return O.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 r.default.get(this.component,"validate.minLength",0)}},{key:"data",get:function(){return this._data},set:function(e){this._data=e;var t=this.dataValue;(this.editRows||[]).forEach((function(e,n){t[n]||e.state===S.New||(t[n]={});var r=t[n]||{};e.data=r,e.components.forEach((function(e){e.data=r}))}))}},{key:"dataValue",get:function(){return _(x(O.prototype),"dataValue",this)||[]},set:function(e){!function(e,t,n,r,o){if(!w(e,t,n,r||e)&&o)throw new Error("failed to set property")}(x(O.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=_(x(O.prototype),"defaultValue",this),t=Array.isArray(e)?e:[];return r.default.times(this.minLength-t.length,(function(){return t.push({})})),t}},{key:"hasRemoveButtons",value:function(){return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&this.dataValue.length>r.default.get(this.component,"validate.minLength",0)}},{key:"init",value:function(){var e=this;if(this.builderMode)return this.editRows=[],_(x(O.prototype),"init",this).call(this);this.components=this.components||[];var t=this.dataValue;!t.length&&this.component.openWhenEmpty?(this.editRows=[],this.createRow({},0)):this.editRows=t.map((function(t,n){return{components:e.lazyLoad?[]:e.createRowComponents(t,n),data:t,state:S.Saved,backup:null,error:null}})),this.prevHasAddButton=this.hasAddButton(),this.checkData()}},{key:"isOpen",value:function(e){return[S.New,S.Editing,S.Viewing].includes(e.state)}},{key:"isComponentVisibleInSomeRow",value:function(e){var t=this,n=this.editRows,o=[S.Saved,S.Editing,S.Draft],i=n.filter((function(e){return r.default.includes(o,e.state)}));this.visibleInHeader=this.visibleInHeader||[];
2var a=function(e,n){n||r.default.remove(t.visibleInHeader,(function(t){return t===e.key})),n&&!r.default.includes(t.visibleInHeader,e.key)&&t.visibleInHeader.push(e.key)};if(r.default.isEmpty(n)){var s,u=this.createRowComponents({},0);(0,l.eachComponent)(u,(function(t){t.component.key===e.key&&(s=t),t.checkConditions()}));var c=!s||s.visible;return h(this.components).forEach((function(e){return t.removeComponent(e,t.components)})),a(e,c),c}var f=r.default.get(this.component,"openWhenEmpty")&&1===n.length&&n[0].state===S.New;return r.default.isEmpty(n)||!r.default.isEmpty(i)||f?r.default.some(f?n:i,(function(n,o){var i;if(n.state===S.Editing)i=r.default.includes(t.visibleInHeader,e.key);else{var s=t.flattenComponents(o)[e.key];i=!s||s.visible,a(e,i)}return i})):r.default.includes(this.visibleInHeader,e.key)}},{key:"render",value:function(e){var t=this;if(this.builderMode)return _(x(O.prototype),"render",this).call(this);var n=this.dataValue,o=this.headerTemplate,i=this.t.bind(this),a=this.displayAsTable?"editgridTable":"editgrid";return _(x(O.prototype),"render",this).call(this,e||this.renderTemplate(a,{ref:{row:this.rowRef,addRow:this.addRowRef,saveRow:this.saveRowRef,cancelRow:this.cancelRowRef},header:this.renderString(o,{displayValue:function(e){return t.displayComponentValue(e,!0)},components:this.component.components,value:n,t:i}),footer:this.renderString(r.default.get(this.component,"templates.footer"),{components:this.component.components,value:n,t:i}),rows:this.editRows.map(this.renderRow.bind(this)),openRows:this.editRows.map((function(e){return t.isOpen(e)})),errors:this.editRows.map((function(e){return e.error})),hasAddButton:this.hasAddButton(),hasRemoveButtons:this.hasRemoveButtons()}))}},{key:"renderComponents",value:function(e){var t=(e=e||this.getComponents()).map((function(e){return e.render()})),n=this.displayAsTable&&this.prevHasAddButton?"tableComponents":"components";return this.renderTemplate(n,{children:t,components:e})}},{key:"attach",value:function(e){var t,n=this;if(this.builderMode)return _(x(O.prototype),"attach",this).call(this,e);this.loadRefs(e,(k(t={},this.addRowRef,"multiple"),k(t,this.saveRowRef,"multiple"),k(t,this.cancelRowRef,"multiple"),k(t,this.rowRef,"multiple"),t)),this.addRowElements.forEach((function(e){n.addEventListener(e,"click",(function(){return n.addRow()}))}));var r=0;return this.rowElements.forEach((function(e,t){var o=n.editRows[t];null!=o&&o.isRowSelected&&e.classList.add("selected"),n.isOpen(o)?(n.attachComponents(e,o.components),n.addEventListener(n.saveRowElements[r],"click",(function(){return n.saveRow(t,!0)})),n.addEventListener(n.cancelRowElements[r],"click",(function(){return n.cancelRow(t)})),r++):[{className:"removeRow",event:"click",action:function(){return n.removeRow(t,!0)}},{className:"editRow",event:"click",action:function(){n.editRow(t).then((function(){if(n.component.rowDrafts){var e;n.validateRow(o,!1);var t=o.errors&&!!o.errors.length;n.component.modal&&t&&(null===(e=n.root)||void 0===e?void 0:e.submitted)&&(n.alert.showErrors(o.errors,!1),o.alerts=!0)}}))}},{className:"row",event:"click",action:function(){e.classList.toggle("selected");var r="editGridSelectRow";Array.from(e.classList).includes("selected")?o.isRowSelected=!0:(delete o.isRowSelected,r="editGridUnSelectRow"),n.emit(r,{component:n.component,data:n.dataValue[t]})}}].forEach((function(t){var r=t.className,o=t.event,i=t.action,a=e.getElementsByClassName(r);Array.prototype.forEach.call(a,(function(e){n.addEventListener(e,o,i)}))}))})),r?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")),_(x(O.prototype),"attach",this).call(this,e)}},{key:"flattenRowDataValue",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(o){r.default.isObject(e[o])&&!r.default.isNil(e[o])?Object.assign(n,t.flattenRowDataValue(e[o])):n[o]=e[o]})),n}},{key:"isComponentVisibleInRow",value:function(e,t){var n=t[e.key];return!n||n.visible}},{key:"displayComponentValue",value:function(e,t){return!!(e.hasOwnProperty("tableView")&&!e.tableView||!t?r.default.includes(this.visibleInHeader,e.key):this.isComponentVisibleInSomeRow(e))}},{key:"renderRow",value:function(e,t){var n=this,r=this.dataValue;if(this.isOpen(e))return this.renderComponents(e.components);var o=this.flattenComponents(t),i=this.rowTemplate;return this.renderString(i,{row:r[t]||{},data:this.data,rowIndex:t,components:this.component.components,flattenedComponents:o,displayValue:function(e){return n.displayComponentValue(e)},isVisibleInRow:function(e){return n.isComponentVisibleInRow(e,o)},getView:function(e,t){var n,r,i=o[e.key],a=i?i.getView(t||i.dataValue):"",s=new RegExp("<(.*?)>");return"string"!=typeof a||!a.length||null!==(n=i.component)&&void 0!==n&&n.template||!s.test(a)||"html"===(null===(r=i.component)||void 0===r?void 0:r.inputFormat)?a:'<input type="text" value="'.concat(a.replace(/"/g,"""),'" readonly/>')},state:this.editRows[t].state,t:this.t.bind(this)})}},{key:"eachComponent",value:function(e,t){r.default.each(this.getComponents(t),(function(t,n){if(!1===e(t,n))return!1}))}},{key:"restoreComponentsContext",value:function(){var e=this;
2this.getComponents().forEach((function(t){var n,r=e.dataValue[t.rowIndex],o=null===(n=e.editRows[t.rowIndex])||void 0===n?void 0:n.data;t.data=r||o}))}},{key:"flattenComponents",value:function(e){var t={};return this.everyComponent((function(e){t[e.component.flattenAs||e.key]=e}),e),t}},{key:"getComponents",value:function(e){return this.editRows=this.editRows||[],this.builderMode?_(x(O.prototype),"getComponents",this).call(this):r.default.isNumber(e)?this.editRows[e].components||[]:this.editRows.reduce((function(e,t){return e.concat(t.components||[])}),[])}},{key:"destroyComponents",value:function(e){var t=this;if(this.builderMode)return _(x(O.prototype),"destroyComponents",this).call(this);this.getComponents(e).slice().forEach((function(e){return t.removeComponent(e,t.components)}))}},{key:"createRow",value:function(e,t){var n={components:this.createRowComponents(e,t),data:e,state:S.New,backup:null,error:null};return this.editRows.push(n),this.inlineEditMode&&this.dataValue.push(e),n}},{key:"addRow",value:function(){if(!this.options.readOnly){var e=this.editRows.length,t=this.createRow({},e);return this.inlineEditMode&&this.triggerChange(),this.emit("editGridAddRow",{component:this.component,row:t}),this.checkRow("checkData",null,{},t.data,t.components),this.component.modal?this.addRowModal(e):this.redraw(),t}}},{key:"addRowModal",value:function(e){var t=this,n=this.ce("div"),r=this.editRows[e];r.willBeSaved=!1;var o=r.components;n.innerHTML=this.renderComponents(o);var i=this.component.modal?this.createModal(n,{},(function(){return t.showDialog(e)})):void 0;return i.classList.add("editgrid-row-modal-".concat(this.id)),r.dialog=i,this.alert&&(this.alert.clear(),this.alert=null),this.alert=new s.default(i.refs.dialogContents,this),this.addEventListener(i,"close",(function(){r.willBeSaved||(t.editRows[e]&&t.editRows[e].state!==S.New&&t.editRows[e].components.forEach((function(e){e.setPristine(!0)})),t.cancelRow(e)),t.alert&&(t.alert.clear(),t.alert=null),delete r.confirmationDialog,delete r.dialog})),i.refs.dialogContents.appendChild(this.ce("button",{class:"btn btn-primary",onClick:function(){t.component.rowDrafts||r.components.forEach((function(e){return e.setPristine(!1)})),t.validateRow(r,!0)||t.component.rowDrafts?(r.willBeSaved=!0,i.close(),t.saveRow(e,!0)):(t.alert.showErrors(r.errors,!1),r.alerts=!0)}},this.component.saveRow||"Save")),this.attachComponents(n,o)}},{key:"showDialog",value:function(e){var t=this.editRows[e];if(r.default.isEqual(t.backup,t.data))return o.default.resolve();var n=this.ce("div",{ref:"confirmationDialog"}),i=this.component.dialogTemplate||this.defaultDialogTemplate;n.innerHTML=i,n.refs={},this.loadRefs.call(n,n,{dialogHeader:"single",dialogCancelButton:"single",dialogYesButton:"single"});var a=this.createModal(n);a.classList.add("editgrid-row-modal-confirmation-".concat(this.id));var s,l=function(e){e.preventDefault(),a.close()},u=new o.default((function(e,t){s={resolve:e,reject:t}}));return this.addEventListener(n.refs.dialogYesButton,"click",(function(e){l(e),s.resolve()})),this.addEventListener(n.refs.dialogCancelButton,"click",(function(e){l(e),s.reject()})),t.confirmationDialog=a,u}},{key:"editRow",value:function(e){var t=this.editRows[e],n=t.state===S.Editing||t.state===S.New;if(!t||n)return o.default.resolve();t.prevState=t.state,t.state=this.options.readOnly?S.Viewing:S.Editing,this.lazyLoad&&0===t.components.length&&(t.components=this.createRowComponents(t.data,e));var r=(0,l.fastCloneDeep)(t.data);return this.inlineEditMode?t.backup=r:(t.backup=(0,l.fastCloneDeep)(t.data),t.data=r,this.restoreRowContext(t)),this.component.modal?this.addRowModal(e):this.redraw()}},{key:"clearErrors",value:function(e){var t=this.editRows[e];t&&Array.isArray(t.components)&&t.components.forEach((function(e){e.setPristine(!0),e.setCustomValidity("")}))}},{key:"cancelRow",value:function(e){if(!this.options.readOnly){var t=this.editRows[e];switch(t.state){case S.New:t.state=S.Removed,this.clearErrors(e),this.destroyComponents(e),this.inlineEditMode&&this.splice(e),this.editRows.splice(e,1),this.openWhenEmpty();break;case S.Editing:t.state=t.prevState,this.inlineEditMode&&(this.dataValue[e]=t.backup),t.data=t.backup,t.backup=null,this.restoreRowContext(t),this.clearErrors(e)}
2this.emit("editGridCancelRow",{instance:this,component:this.component,editRow:t}),this.checkValidity(null,!0),this.redraw(),this.component.rowDrafts&&this.checkValidity(this.data,!1)}}},{key:"saveRow",value:function(e,t){var n=this,r=this.editRows[e];if(!this.options.readOnly){this.component.rowDrafts||r.components.forEach((function(e){return e.setPristine(!1)}));var o=this.validateRow(r,!0);if(!this.component.rowDrafts&&!o)return!1;if(this.saveEditMode){var i=this.dataValue;switch(r.state){case S.New:var a=i.length;i.push(r.data),r.components.forEach((function(e){return e.rowIndex=a})),e!==a&&(this.editRows.splice(e,1),this.editRows.splice(a,0,r));break;case S.Editing:i[e]=r.data}}return r.state=this.component.rowDrafts&&!o?S.Draft:S.Saved,r.backup=null,this.updateValue(),this.emit("editGridSaveRow",{component:this.component,row:r.data,instance:this}),this.triggerChange({modified:t,noPristineChangeOnModified:t&&this.component.rowDrafts,isolateRow:!0}),this.component.rowDrafts&&r.components.forEach((function(e){return e.setPristine(n.pristine)})),this.checkValidity(null,!0),this.redraw(),r.alerts&&(r.alerts=!1),!0}}},{key:"beforeFocus",value:function(e){"beforeFocus"in this.parent&&this.parent.beforeFocus(this);var t=this.getRelativePath(e.path),n=(0,l.getArrayFromComponentPath)(t);r.default.isNumber(n[0])&&this.editRow(n[0])}},{key:"updateComponentsRowIndex",value:function(e,t){e.forEach((function(e,n){e.rowIndex=t,e.row="".concat(t,"-").concat(n)}))}},{key:"updateRowsComponents",value:function(e){var t=this;this.editRows.slice(e).forEach((function(n,r){t.updateComponentsRowIndex(n.components,e+r)}))}},{key:"baseRemoveRow",value:function(e){var t=this.editRows[e];return t.state=S.Removed,this.destroyComponents(e),t}},{key:"removeRow",value:function(e,t){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:t,noPristineChangeOnModified:t&&this.component.rowDrafts,isolateRow:!0}),this.checkValidity(null,!0),this.checkData(),this.redraw())}},{key:"createRowComponents",value:function(e,t){var n=this;return this.component.components.map((function(o,i){var a=r.default.clone(o),s=r.default.clone(n.options);s.name+="[".concat(t,"]"),s.row="".concat(t,"-").concat(i),s.onChange=function(){var e,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;if(null!==(e=i.instance.root)&&void 0!==e&&e.id&&(null===(r=n.root)||void 0===r?void 0:r.id)!==i.instance.root.id?i.instance.root.triggerChange(o,i,a):n.component.modal||n.triggerRootChange(o,i,a),!n.inlineEditMode){var s=n.editRows[t];if(null!=s&&s.alerts)n.checkData(null,p(p({},o),{},{changed:i,rowIndex:t}),n.data);else if(s){var l=n.component.rowDrafts&&!n.shouldValidateDraft(s);n.checkRow("checkData",null,p(p({},o),{},{changed:i,silentCheck:l}),s.data,s.components,l)}}};var l=n.createComponent(r.default.assign({},a,{row:s.row}),s,e);return l.rowIndex=t,l.inEditGrid=!0,l}))}},{key:"hasOpenRows",value:function(){var e=this;return this.editRows.some((function(t){return e.isOpen(t)}))}},{key:"shouldValidateDraft",value:function(e){var t,n;return e.state===S.Draft&&!this.pristine&&!(null!==(t=this.root)&&void 0!==t&&t.pristine)&&!this.hasOpenRows()||(null===(n=this.root)||void 0===n?void 0:n.submitted)}},{key:"shouldValidateRow",value:function(e,t){return this.shouldValidateDraft(e)||e.state===S.Editing||e.alerts||t}},{key:"validateRow",value:function(e,t,n){var r,o=this,i=!0,a=h(this.errors);return this.shouldValidateRow(e,t)&&e.components.forEach((function(r){var a=o.component.rowDrafts&&!o.shouldValidateDraft(e)||n;i&=r.checkValidity(null,t,null,a)})),this.component.validate&&this.component.validate.row&&("true"!==(i=this.evaluate(this.component.validate.row,{valid:i,row:e.data},"valid",!0)).toString()?(e.error=i,i=!1):e.error=null,null===i&&(i="Invalid row validation for ".concat(this.key))),e.errors=i?null:this.errors.filter((function(e){return!a.includes(e)})),(!this.component.rowDrafts||null!==(r=this.root)&&void 0!==r&&r.submitted)&&this.showRowErrorAlerts(e,!!i),!!i}},{key:"showRowErrorAlerts",value:function(e,t){var n;e.alerts&&this.alert&&(null!==(n=e.errors)&&void 0!==n&&n.length&&!t?(this.alert.showErrors(e.errors,!1),e.alerts=!0):this.alert.clear())}},{key:"checkValidity",value:function(e,t,n,r){return e=e||this.root
2Value,n=n||this.data,this.checkCondition(n,e)?this.checkComponentValidity(e,t,n,{silentCheck:r}):(this.setCustomValidity(""),!0)}},{key:"checkComponentValidity",value:function(e,t,n){var r,o,i=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=a.silentCheck,l=this.errors.length,u=_(x(O.prototype),"checkComponentValidity",this).call(this,e,t,n,a);if(!u&&!this.alert&&!this.hasOpenRows())return!1;if(this.shouldSkipValidation(e,t,n))return!0;var c,f=!0,d=!1;if(this.editRows.forEach((function(e,n){var r=i.validateRow(e,t,s);if(f&=r,i.rowRefs){var o=i.rowRefs[n];if(o){var a=o.querySelector(".editgrid-row-error");r||!a||i.component.rowDrafts&&!i.shouldValidateDraft(e)?a&&(a.textContent=""):(i.addClass(a,"help-block"),a.textContent=i.t("invalidRowError"))}}d|=t&&i.isOpen(e)})),!f)return s||this.component.rowDrafts&&(null===(c=this.root)||void 0===c||!c.submitted)||(this.setCustomValidity(this.t("invalidRowsError"),t),this.removeClass(this.element,"has-error")),!1;if(d&&this.saveEditMode)return this.setCustomValidity(this.t("unsavedRowsError"),t),!1;var p=this.invalid||this.invalidMessage(e,t);return(null===(r=this.errors)||void 0===r?void 0:r.length)!==l&&null!==(o=this.root)&&void 0!==o&&o.submitted&&!p?(this.setCustomValidity(p,t),this.root.showErrors()):this.setCustomValidity(p,t),u}},{key:"changeState",value:function(e,t){e||t.resetValue&&this.component.modalEdit?this.rebuild():this.redraw()}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e||(e=this.defaultValue),!Array.isArray(e)){if("object"!==f(e))return!1;e=[e]}var r=this.hasChanged(e,this.dataValue);n.noValidate=!r,this.parent&&this.parent.checkComponentConditions(),this.dataValue=e,this.dataValue.forEach((function(e,r){var o=t.editRows[r];o?(o.data=e,t.restoreRowContext(o,n),o.state=S.Saved,o.backup=null,o.error=null):t.editRows[r]={components:t.lazyLoad?[]:t.createRowComponents(e,r),data:e,state:S.Saved,backup:null,error:null}}));var o=this.dataValue.length;return this.editRows[o]&&this.editRows[o].state===S.New&&(o+=1),this.editRows.slice(o).forEach((function(e,n){return t.baseRemoveRow(o+n)})),this.editRows=this.editRows.slice(0,o),this.openWhenEmpty(),this.updateOnChange(n,r),this.checkData(),this.changeState(r,n),r}},{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 t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.components.forEach((function(r){r.data=e.data,t.setNestedValue(r,e.data,n)}))}},{key:"emptyRows",value:function(){var e=this;this.editRows.forEach((function(t,n){return e.destroyComponents(n)})),this.editRows=[]}},{key:"resetValue",value:function(){_(x(O.prototype),"resetValue",this).call(this),this.emptyRows()}}],a=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.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:O.defaultHeaderTemplate,row:O.defaultRowTemplate,tableHeader:O.defaultTableHeaderTemplate,tableRow:O.defaultTableRowTemplate,footer:""}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Edit Grid",icon:"tasks",group:"data",documentation:"/userguide/#editgrid",weight:30,schema:O.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 '}}
2,{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 '}}],n&&y(t.prototype,n),a&&y(t,a),O}(i.default);t.default=j,j.prototype.hasChanged=a.default.prototype.hasChanged},30923:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},58917:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(193))&&r.__esModule?r:{default:r},i=[{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!o.default.noeval}}
2,{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}}];t.default=i},67930:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(193))&&r.__esModule?r:{default:r},i=[{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 t=e.data;return(!o.default.noeval||o.default.protectedEval)&&!t.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 t=e.data;return(!o.default.noeval||o.default.protectedEval)&&t.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 t=e.data;return(!o.default.noeval||o.default.protectedEval)&&!t.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 t=e.data;return(!o.default.noeval||o.default.protectedEval)&&t.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!o.default.noeval||o.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."}];t.default=i},83881:function(e,t){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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 invalid. Errors will occur when try to submit with invalid rows."}]},85201:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="row">\n ',e.util.eachComponent(e.components,(function(r){n+="\n ",r.hasOwnProperty("tableView")&&!r.tableView||(n+='\n <div class="col-sm-2">'+(null==(t=e.t(r.label))?"":t)+"</div>\n "),n+="\n "})),n+="\n</div>\n"}},41578:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(23370)),o=i(n(85201));function i(e){return e&&e.__esModule?e:{default:e}}var a={row:r.default,header:o.default};t.default=a},23370:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="row">\n ',e.util.eachComponent(e.components,(function(r){n+="\n ",r.hasOwnProperty("tableView")&&!r.tableView||(n+='\n <div class="col-sm-2">\n '+(null==(t=e.getView(r,e.row[r.key]))?"":t)+"\n </div>\n "),n+="\n "})),n+="\n ",e.self.options.readOnly||(n+='\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==(t=e.iconClass("edit"))?"":t)+'"></i></button>\n <button class="btn btn-danger btn-sm removeRow"><i class="'+(null==(t=e.iconClass("trash"))?"":t)+'"></i></button>\n </div>\n </div>\n '),n+="\n</div>\n"}},16659:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"validation",components:i.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=a(n(53983)),o=a(n(65799)),i=a(n(92727));function a(e){return e&&e.__esModule?e:{default:e}}},15734:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(41539),n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(21249),n(92222),n(30489);var o,i=(o=n(8745))&&o.__esModule?o:{default:o};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=u(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},l.apply(this,arguments)}function u(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function f(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(h,e);var t,n,r,o,u,p=(o=h,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(o);if(u){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return f(this,e)});function h(){return a(this,h),p.apply(this,arguments)}return t=h,n=[{key:"init",value:function(){l(d(h.prototype),"init",this).call(this),this.validators.push("email")}},{key:"defaultSchema",get:function(){return h.schema()}},{key:"inputInfo",get:function(){var e=l(d(h.prototype),"inputInfo",this);return e.attr.type=this.component.mask?"password":"email",e}},{key:"normalizeValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=l(d(h.prototype),"normalizeValue",this).call(this,e,t),this.options.server&&e&&(e=Array.isArray(e)?e.map((function(e){return e.toLowerCase()})):e.toLowerCase()),e}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"email",label:"Email",key:"email",inputType:"email",kickbox:{enabled:!1}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Email",group:"advanced",icon:"at",documentation:"/userguide/#email",weight:10,schema:h.schema()}}}],n&&s(t.prototype,n),r&&s(t,r),h}(i.default);t.default=p},65799:function(e,t){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},92727:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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"}]}]},52710:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=i(n(40970)),o=i(n(55768));function i(e){return e&&e.__esModule?e:{default:e}}}
2,99184:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(41539),n(74819),n(38880),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(30489);var o,i=(o=n(24561))&&o.__esModule?o:{default:o};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=f(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},c.apply(this,arguments)}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(h,e);var t,n,r,o,f,p=(o=h,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(o);if(f){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function h(){var e;a(this,h);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=p.call.apply(p,[this].concat(n))).noField=!0,e}return t=h,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{label:"Field Set",key:"fieldSet",type:"fieldset",legend:"",components:[],input:!1,persistent:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Field Set",icon:"th-large",group:"layout",documentation:"/userguide/#fieldset",weight:20,schema:h.schema()}}}],(n=[{key:"defaultSchema",get:function(){return h.schema()}},{key:"className",get:function(){return"form-group ".concat(c(d(h.prototype),"className",this))}},{key:"templateName",get:function(){return"fieldset"}}])&&s(t.prototype,n),r&&s(t,r),h}(i.default);t.default=p},55768:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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."}]},59973:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{label:"File",key:"file",weight:5,components:a.default},{key:"validation",components:s.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=l(n(39086)),o=l(n(82422)),i=l(n(31106)),a=l(n(56209)),s=l(n(13415));
2function l(e){return e&&e.__esModule?e:{default:e}}},58192:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(30489),n(12419),n(74819),n(38880),n(47941),n(82526),n(57327),n(49337),n(88674),n(41817),n(32165),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(35666),n(74916),n(23123),n(66992),n(41539),n(82472),n(92990),n(18927),n(33105),n(35035),n(74345),n(7174),n(32846),n(44731),n(77209),n(96319),n(58867),n(37789),n(33739),n(29368),n(14483),n(12056),n(3462),n(30678),n(27462),n(33824),n(55021),n(12974),n(15016),n(69600),n(21249),n(54747),n(68309),n(73210),n(26699),n(32023),n(40561),n(69826),n(92222),n(56977),n(15306),n(23157),n(24603),n(39714),n(64765),n(47042),n(34553);var o,i=f(n(68093)),a=n(82531),s=f(n(33729)),l=f(n(96486)),u=f(n(91459)),c=f(n(82302));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(){return b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=g(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},b.apply(this,arguments)}function g(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_(e)););return e}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function k(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var O,x=navigator.camera||o;"undefined"!=typeof window?O=window.HTMLCanvasElement:void 0!==n.g&&(O=n.g.HTMLCanvasElement),O&&!O.prototype.toBlob&&Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,t,n){var r=this;setTimeout((function(){for(var o=atob(r.toDataURL(t,n).split(",")[1]),i=o.length,a=new Uint8Array(i),s=0;s<i;s++)a[s]=o.charCodeAt(s);e(new Blob([a],{type:t||"image/png"}))}))}});var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(g,e);var t,n,r,f,p,m=(f=g,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=_(f);if(p){var n=_(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return k(this,e)});function g(){return v(this,g),m.apply(this,arguments)}return t=g,n=[{key:"init",value:function(){var e=this;b(_(g.prototype),"init",this).call(this),x=navigator.camera||o;var t="undefined"!=typeof FileReader,n="undefined"!=typeof window&&Boolean(window.FormData),r=!("undefined"==typeof window||!window.XMLHttpRequest)&&"upload"in new XMLHttpRequest;this.support={filereader:t,formdata:n,hasWarning:!t||!n||!r,progress:r},this.filesReady=new u.default((function(t,n){e.filesReadyResolve=t,e.filesReadyReject=n})),this.cameraMode=!1,this.statuses=[],this.fileDropHidden=!1}},{key:"dataReady",get:function(){return this.filesReady}},{key:"defaultSchema",get:function(){return g.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 l.default.isArray(e)?l.default.map(e,"originalName").join(", "):l.default.get(e,"originalName","")}},{key:"getValue",value:function(){return this.dataValue}},{key:"defaultValue",get:function(){var e=b(_(g.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 b(_(g.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:h({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
2h((function(e){return e.stop()}))}},{key:"getFrame",value:function(e){return new u.default((function(t){var n=document.createElement("canvas");n.height=e.videoHeight,n.width=e.videoWidth,n.getContext("2d").drawImage(e,0,0),n.toBlob(t)}))}},{key:"startVideo",value:function(){var e=this;this.getVideoStream().then((function(t){e.videoStream=t;var n=e.refs.videoPlayer;if(!n)return console.warn("Video player not found in template."),e.cameraMode=!1,void e.redraw();n.srcObject=t;var r=parseInt(e.component.webcamSize)||320;n.setAttribute("width",r),n.play()})).catch((function(t){console.error(t),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,t=this.refs.videoPlayer;if(!t)return console.warn("Video player not found in template."),this.cameraMode=!1,void this.redraw();this.getFrame(t).then((function(t){t.name="photo-".concat(Date.now(),".png"),e.upload([t]),e.cameraMode=!1,e.redraw()}))}},{key:"browseFiles",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new u.default((function(n){var r=e.ce("input",h({type:"file",style:"height: 0; width: 0; visibility: hidden;",tabindex:"-1"},t));document.body.appendChild(r),r.addEventListener("change",(function(){n(r.files),document.body.removeChild(r)}),!0),"function"==typeof r.trigger?r.trigger("click"):r.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&&x}},{key:"imageUpload",get:function(){return Boolean(this.component.image)}},{key:"browseOptions",get:function(){var e={};if(this.component.multiple&&(e.multiple=!0),!this.isMobile.any){var t=this.component.filePattern.trim()||"",n="image/*";!this.imageUpload||t&&"*"!==t?this.imageUpload&&!t.includes(n)?e.accept="".concat(n,",").concat(t):e.accept=t:e.accept=n}return e}},{key:"deleteFile",value:function(e){var t=this.component.options,n=void 0===t?{}:t;if(e&&["url","indexeddb"].includes(this.component.storage)){var r=this.fileService;if(r&&"function"==typeof r.deleteFile)r.deleteFile(e,n);else{var o=this.options.formio||this.root&&this.root.formio;o&&o.makeRequest("",e.url,"delete")}}}},{key:"attach",value:function(e){var t=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 n=b(_(g.prototype),"attach",this).call(this,e);if(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){this.className="fileSelector",e.preventDefault(),r.statuses=[],r.upload(e.dataTransfer.files)}))}if(this.refs.fileBrowse&&this.addEventListener(this.refs.fileBrowse,"click",(function(e){e.preventDefault(),t.statuses=[],t.browseFiles(t.browseOptions).then((function(e){t.upload(e)}))})),this.refs.fileLink.forEach((function(e,n){t.addEventListener(e,"click",(function(e){e.preventDefault(),t.getFile(t.dataValue[n])}))})),this.refs.removeLink.forEach((function(e,n){t.addEventListener(e,"click",(function(e){var r=t.dataValue[n];t.deleteFile(r),e.preventDefault(),t.splice(n),t.redraw()}))})),this.refs.fileStatusRemove.forEach((function(e,n){t.addEventListener(e,"click",(function(e){e.preventDefault(),t.abortUpload&&t.abortUpload(),t.statuses.splice(n,1),t.redraw()}))})),this.refs.galleryButton&&x&&this.addEventListener(this.refs.galleryButton,"click",(function(e){e.preventDefault(),x.getPicture((function(e){window.resolveLocalFileSystemURL(e,(function(e){e.file((function(e){var n=new FileReader;n.onloadend=function(n){var r=new Blob([new Uint8Array(n.target.result)],{type:e.type});r.name=e.name,t.upload([r])},n.readAsArrayBuffer(e)}))}))}),(function(e){console.error(e)}),{sourceType:x.PictureSourceType.PHOTOLIBRARY})})),this.refs.cameraButton&&x&&this.addEventListener(this.refs.cameraButton,"click",(function(e){e.preventDefault(),x.getPicture
2((function(e){window.resolveLocalFileSystemURL(e,(function(e){e.file((function(e){var n=new FileReader;n.onloadend=function(n){var r=new Blob([new Uint8Array(n.target.result)],{type:e.type});r.name=e.name,t.upload([r])},n.readAsArrayBuffer(e)}))}))}),(function(e){console.error(e)}),{sourceType:x.PictureSourceType.CAMERA,encodingType:x.EncodingType.PNG,mediaType:x.MediaType.PICTURE,saveToPhotoAlbum:!0,correctOrientation:!1})})),this.refs.takePictureButton&&this.addEventListener(this.refs.takePictureButton,"click",(function(e){e.preventDefault(),t.takePicture()})),this.refs.toggleCameraMode&&this.addEventListener(this.refs.toggleCameraMode,"click",(function(e){e.preventDefault(),t.cameraMode=!t.cameraMode,t.redraw()})),this.refs.fileType.forEach((function(e,n){t.dataValue[n].fileType=t.dataValue[n].fileType||t.component.fileTypes[0].label,t.addEventListener(e,"change",(function(e){e.preventDefault();var r=t.component.fileTypes.find((function(t){return t.value===e.target.value}));t.dataValue[n].fileType=r.label}))})),this.fileService){var o=[];this.refs.fileImage.forEach((function(e,n){o.push(t.loadImage(t.dataValue[n]).then((function(t){return e.src=t})))})),o.length?u.default.all(o).then((function(){t.filesReadyResolve()})).catch((function(){return t.filesReadyReject()})):this.filesReadyResolve()}return n}},{key:"fileSize",value:function(e,t,n,r,o){return"".concat((t=Math,n=t.log,o=n(e)/n(1024)|0,e/t.pow(1024,o)).toFixed(2)," ").concat(o?"".concat("kMGTPEZY"[--o],"B"):"Bytes")}},{key:"globStringToRegex",value:function(e){var t="",n=[];
2if((e=e.replace(/\s/g,"")).length>2&&"/"===e[0]&&"/"===e[e.length-1])t=e.substring(1,e.length-1);else{var r=e.split(",");if(r.length>1)for(var o=0;o<r.length;o++){var i=this.globStringToRegex(r[o]);i.regexp?(t+="(".concat(i.regexp,")"),o<r.length-1&&(t+="|")):n=n.concat(i.excludes)}else e.startsWith("!")?n.push("^((?!".concat(this.globStringToRegex(e.substring(1)).regexp,").)*$")):(e.startsWith(".")&&(e="*".concat(e)),t=(t="^".concat(e.replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g"),"\\$&"),"$")).replace(/\\\*/g,".*").replace(/\\\?/g,"."))}return{regexp:t,excludes:n}}},{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(1024*e.substring(0,e.length-2)*1024);if(e.search(/gb/i)===e.length-2)return parseFloat(1024*e.substring(0,e.length-2)*1024*1024);if(e.search(/b/i)===e.length-1)return parseFloat(e.substring(0,e.length-1));if(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,t){if(!t)return!0;var n=this.globStringToRegex(t),r=!0;if(n.regexp&&n.regexp.length){var o=new RegExp(n.regexp,"i");r=!l.default.isNil(e.type)&&o.test(e.type)||!l.default.isNil(e.name)&&o.test(e.name)}return n.excludes.reduce((function(t,n){var r=new RegExp(n,"i");return t&&(l.default.isNil(e.type)||!r.test(e.type))&&(l.default.isNil(e.name)||!r.test(e.name))}),r)}},{key:"validateMinSize",value:function(e,t){return e.size+.1>=this.translateScalars(t)}},{key:"validateMaxSize",value:function(e,t){return e.size-.1<=this.translateScalars(t)}},{key:"upload",value:function(e){var t=this;this.component.multiple||(e=Array.prototype.slice.call(e,0,1)),this.component.storage&&e&&e.length&&(this.fileDropHidden=!0,Array.prototype.forEach.call(e,function(){var e,n=(e=regeneratorRuntime.mark((function e(n){var r,o,i,s,l,u,f,d,p,h,m,v,y,b,g,w,k,_;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(0,a.uniqueName)(n.name,t.component.fileNameTemplate,t.evalContext()),o={originalName:n.name,name:r,size:n.size,status:"info",message:t.t("Processing file. Please wait...")},i=t.dataValue.some((function(e){return e.originalName===n.name})),s=t.statuses.findIndex((function(e){return e.originalName===n.name&&"error"===e.status})),i&&(o.status="error",o.message=t.t("File with the same name is already uploaded")),-1!==s&&(t.statuses.splice(s,1),t.redraw()),t.component.filePattern&&!t.validatePattern(n,t.component.filePattern)&&(o.status="error",o.message=t.t("File is the wrong type; it must be {{ pattern }}",{pattern:t.component.filePattern})),t.component.fileMinSize&&!t.validateMinSize(n,t.component.fileMinSize)&&(o.status="error",o.message=t.t("File is too small; it must be at least {{ size }}",{size:t.component.fileMinSize})),t.component.fileMaxSize&&!t.validateMaxSize(n,t.component.fileMaxSize)&&(o.status="error",o.message=t.t("File is too big; it must be at most {{ size }}",{size:t.component.fileMaxSize})),l=t.interpolate(t.component.dir||""),(u=t.fileService)||(o.status="error",o.message=t.t("File Service not provided.")),t.statuses.push(o),t.redraw(),"error"===o.status){e.next=46;break}if(t.component.privateDownload&&(n.private=!0),f=t.component,d=f.storage,p=f.options,h=void 0===p?{}:p,m=t.interpolate(t.component.url,{file:o}),v=null,y=null,t.root.everyComponent((function(e){var t,n;(null!==(t=e.component)&&void 0!==t&&t.submissionAccess||null!==(n=e.component)&&void 0!==n&&n.defaultPermission)&&(y=e.component.submissionAccess?e.component.submissionAccess:[{type:e.component.defaultPermission,roles:[]}]).forEach((function(t){v=["admin","write","create"].includes(t.type)?e.component.key:null}))})),b=t.component.fileKey||"file",g=v?t.currentForm.submission.data[v]._id:null,w=null,!t.root.options.fileProcessor){e.next=43;break}return e.prev=25,t.refs.fileProcessingLoader&&(t.refs.fileProcessingLoader.style.display="block"),k=(0,c.default)(t.fileService,t.root.options.fileProcessor),e.next=30,k(n,t.component.properties);case 30:w=e.sent,e.next=40;break;case 33:return e.prev=33,e.t0=e.catch(25),o.status="error",o.message=t.t("File processing has been failed."),t.fileDropHidden=!1,t.redraw(),e.abrupt("return");case 40:return e.prev=40,t.refs.fileProcessingLoader&&(t.refs.fileProcessingLoader.style.display="none"),e.finish(40);case 43:o.message=t.t("Starting upload."),t.redraw(),_=u.uploadFile(d,w||n,r,l,(function(e){o.status="progress",o.progress=parseInt(100*e.loaded/e.total),delete o.message,t.redraw()}),m,h,b,y,g,(function(){t.emit("fileUploadingStart",_)}),(function(e){return t.abortUpload=e})).then((function(e){var r=t.statuses.indexOf(o);-1!==r&&t.statuses.splice(r,1),e.originalName=n.name,t.hasValue()||(t.dataValue=[]),t.dataValue.push(e),t.fileDropHidden=!1,t.redraw(),t.triggerChange(),t.emit("fileUploadingEnd",_)}
2)).catch((function(e){o.status="error",o.message=e,delete o.progress,t.fileDropHidden=!1,t.redraw(),t.emit("fileUploadingEnd",_)}));case 46:case"end":return e.stop()}}),e,null,[[25,33,40,43]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){d(i,r,o,a,s,"next",e)}function s(e){d(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return n.apply(this,arguments)}}()))}},{key:"getFile",value:function(e){var t=this.component.options,n=void 0===t?{}:t,r=this.fileService;if(!r)return alert("File Service not provided");this.component.privateDownload&&(e.private=!0),r.downloadFile(e,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(),b(_(g.prototype),"destroy",this).call(this)}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"file",label:"Upload",key:"file",image:!1,privateDownload:!1,imageSize:"200",filePattern:"*",fileMinSize:"0KB",fileMaxSize:"1GB",uploadOnly:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"File",group:"premium",icon:"file",documentation:"/userguide/#file",weight:100,schema:g.schema()}}}],n&&y(t.prototype,n),r&&y(t,r),g}(i.default);t.default=S},82422:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"defaultValue",ignore:!0}]},31106:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"placeholder",ignore:!0}]},56209:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(21249);var r,o=n(19161),i=(r=n(96486))&&r.__esModule?r:{default:r},a=[{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 i.default.map(o.GlobalFormio.Providers.getProviders("storage"),(function(e,t){return{label:e.title,value:t}}))}}},{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}',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}];t.default=a},13415:function(e,t){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"unique",ignore:!0},{key:"validateOn",ignore:!0}]},44415:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{label:"Form",key:"form",weight:10,components:i.default},{label:"Data",key:"data",weight:10,components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=s(n(40970)),o=s(n(70838)),i=s(n(5318)),a=s(n(13498));function s(e){return e&&e.__esModule?e:{default:e}}},11621:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(74916),n(15306),n(9494),n(9653),n(47941),n(41539),n(54747),n(34553),n(30489);var o=d(n(96486)),i=d(n(64430)),a=d(n(72801)),s=d(n(26729)),l=d(n(91459)),u=n(82531),c=n(19161),f=d(n(71277));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(){return m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=v(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},m.apply(this,arguments)}function v(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function b(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(k,e);var t,n,r,d,v,w=(d=k,v=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g(d);if(v){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return b(this,e)});function k(){return p(this,k),w.apply(this,arguments)}return t=k,n=[{key:"init",value:function(){if(m(g(k.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=c.GlobalFormio.getBaseUrl(),(0,u.isMongoId)(this.component.project)&&(this.formSrc+="/project"),this.formSrc+="/".concat(this.component.project),this.options.project=this.formSrc):(this.formSrc=c.GlobalFormio.getProjectUrl(),this.options.project=this.formSrc),this.component.form?(0,u.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;
2if(this.component.form&&(0,u.isMongoId)(this.component.form))this.formSrc="".concat(e,"/").concat(this.component.form);else{var t=this.component.path||this.component.form;this.formSrc="".concat(e.replace(/\/form$/,""),"/").concat(t)}}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.setFormRevision(this.component.revision||this.component.formRevision),this.createSubForm()}},{key:"dataReady",get:function(){return this.subFormReady||l.default.resolve()}},{key:"defaultValue",get:function(){return this.subForm?m(g(k.prototype),"defaultValue",this):null}},{key:"defaultSchema",get:function(){return k.schema()}},{key:"emptyValue",get:function(){return{data:{}}}},{key:"ready",get:function(){return this.subFormReady||l.default.resolve()}},{key:"useOriginalRevision",get:function(){var e,t;return(null===(e=this.component)||void 0===e?void 0:e.useOriginalRevision)&&!(null===(t=this.formObj)||void 0===t||!t.revisions)}},{key:"setFormRevision",value:function(e){this.formSrc=this.formSrc.replace(/\/v\/\d*/,"");var t=Number.parseInt(e);isNaN(t)?this.subFormRevision=void 0:(this.subFormRevision=e,this.formSrc+="/v/".concat(e))}},{key:"getComponent",value:function(e,t){"data"===(e=(0,u.getArrayFromComponentPath)(e))[0]&&e.shift();var n="".concat(this.path,".data.").concat((0,u.getStringFromComponentPath)(e));if(this.subForm)return this.subForm.getComponent(e,t,n)}},{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(),o.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=o.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),e):e}},{key:"render",value:function(){if(this.builderMode)return m(g(k.prototype),"render",this).call(this,this.component.label||"Nested form");var e=this.subForm?this.subForm.render():this.renderTemplate("loading");return m(g(k.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 t=this;return this.builderMode?m(g(k.prototype),"attach",this).call(this,e):m(g(k.prototype),"attach",this).call(this,e).then((function(){return!t.isSubFormLazyLoad()||t.hasLoadedForm||t.subFormLoading||t.createSubForm(!0),t.subFormReady.then((function(){if(t.empty(e),t.options.builder)t.setContent(e,t.ce("div",{class:"text-muted text-center p-2"},t.text(t.formObj.title)));else if(t.setContent(e,t.render()),t.subForm&&(t.isNestedWizard&&(e=t.root.element),t.subForm.attach(e),t.valueChanged=t.hasSetValue,t.valueChanged||"submitted"===t.dataValue.state?t.restoreValue():t.setDefaultValue()),!t.builderMode&&t.component.modalEdit){var n=!!t.componentModal&&t.componentModal.isOpened,r=n?t.componentModal.currentValue:t.dataValue;t.componentModal=new a.default(t,e,n,r),t.setOpenModalElement()}}))}))}},{key:"detach",value:function(){this.subForm&&this.subForm.detach(),m(g(k.prototype),"detach",this).call(this)}},{key:"currentForm",get:function(){return this._currentForm},set:function(e){var t=this;this._currentForm=e,this.subForm&&this.subForm.getComponents().forEac
2h((function(e){e.currentForm=t}))}},{key:"hasLoadedForm",get:function(){return this.formObj&&this.formObj.components&&Array.isArray(this.formObj.components)&&this.formObj.components.length}},{key:"isRevisionChanged",get:function(){return o.default.isNumber(this.subFormRevision)&&o.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(g(k.prototype),"destroy",this).call(this)}},{key:"redraw",value:function(){return this.subForm&&(this.subForm.form=this.formObj,this.setSubFormDisabled(this.subForm)),m(g(k.prototype),"redraw",this).call(this)}},{key:"everyComponent",value:function(){var e;this.subForm&&(e=this.subForm).everyComponent.apply(e,arguments)}},{key:"setSubFormDisabled",value:function(e){e.disabled=this.disabled}},{key:"updateSubWizards",value:function(e){var t,n,r=this;if(this.isNestedWizard&&null!==(t=this.root)&&void 0!==t&&t.subWizards&&"wizard"===(null==e||null===(n=e._form)||void 0===n?void 0:n.display)){var o=this.root.subWizards.findIndex((function(e){return e.component.form===r.component.form}));-1!==o?this.root.subWizards[o]=this:this.root.subWizards.push(this),this.emit("subWizardsUpdated",e)}}},{key:"createSubForm",value:function(e){var t=this;return this.subFormReady=this.loadSubForm(e).then((function(e){if(e)return(0,u.eachComponent)(e.components,(function(e){t.hideSubmitButton(e)})),t.subForm&&t.subForm.destroy(),new f.default(e,t.getSubOptions()).ready.then((function(e){return t.subForm=e,t.subForm.currentForm=t,t.subForm.parent=t,t.subForm.parentVisible=t.visible,t.subForm.on("change",(function(){t.subForm&&(t.dataValue=t.subForm.getValue(),t.triggerChange({noEmit:!0}))})),t.subForm.url=t.formSrc,t.subForm.nosubmit=!0,t.subForm.root=t.root,t.subForm.localRoot=t.isNestedWizard?t.localRoot:t.subForm,t.restoreValue(),t.valueChanged=t.hasSetValue,t.onChange(),t.subForm}))})).then((function(e){return t.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 t=this;return this.builderMode||this.isHidden()||this.isSubFormLazyLoad()&&!e?l.default.resolve():this.hasLoadedForm&&!this.isRevisionChanged?(this.root&&this.root.form&&this.root.form.config&&!this.formObj.config&&(this.formObj.config=this.root.form.config),l.default.resolve(this.formObj)):this.formSrc?(this.subFormLoading=!0,new c.GlobalFormio(this.formSrc).loadForm({params:{live:1}}).then((function(e){return t.formObj=e,t.subFormLoading=!1,e})).catch((function(e){return console.log(e),null}))):l.default.resolve()}},{key:"subFormData",get:function(){var e;return(null===(e=this.dataValue)||void 0===e?void 0:e.data)||{}}},{key:"checkComponentValidity",value:function(e,t,n,r){var o=(r=r||{}).silentCheck||!1;return this.subForm?this.subForm.checkValidity(this.subFormData,t,null,o):m(g(k.prototype),"checkComponentValidity",this).call(this,e,t,n,r)}},{key:"checkComponentConditions",value:function(e,t,n){var r=this,o=m(g(k.prototype),"checkComponentConditions",this).call(this,e,t,n);return o?this.subForm?this.subForm.checkConditions(this.subFormData):(this.subFormReady&&this.subFormReady.then((function(){if(r.subForm)return r.subForm.checkConditions(r.subFormData)})),o):o}},{key:"calculateValue",value:function(e,t,n){return this.subForm?this.subForm.calculateValue(this.subFormData,t):m(g(k.prototype),"calculateValue",this).call(this,e,t,n)}},{key:"setPristine",value:function(e){m(g(k.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"===o.default.get(this.subForm,"form.display")?this.subForm.getSubmission():l.default.resolve(this.dataValue)}},{key:"submitSubForm",value:function(e){var t=this;return this.shouldSubmit?this.subFormReady.then((function(){return t.subForm?(t.subForm.nosubmit=!1,t.subForm.submitForm(
2).then((function(e){return t.subForm.loading=!1,t.subForm.showAllErrors=!1,t.dataValue=e.submission,t.dataValue})).catch((function(n){return t.subForm.showAllErrors=!0,e?(t.subForm.onSubmissionError(n),l.default.reject(n)):{}}))):t.dataValue})):this.getSubFormData()}},{key:"beforePage",value:function(e){var t=this;return e?this.submitSubForm(!0).then((function(){return m(g(k.prototype),"beforePage",t).call(t,e)})):m(g(k.prototype),"beforePage",this).call(this,e)}},{key:"beforeSubmit",value:function(){var e,t=this,n=this.dataValue;return!(n&&n._id&&n.form)||null!==(e=this.subForm)&&void 0!==e&&e.wizard?this.submitSubForm(!1).then((function(){return t.dataValue})).then((function(){return m(g(k.prototype),"beforeSubmit",t).call(t)})):(this.dataValue=n,l.default.resolve(this.dataValue))}},{key:"isSubFormLazyLoad",value:function(){var e,t;return"wizard"===(null===(e=this.root)||void 0===e||null===(t=e._form)||void 0===t?void 0:t.display)&&this.component.lazyLoad}},{key:"isHidden",value:function(){return!this.visible||!m(g(k.prototype),"checkConditions",this).call(this,this.rootValue)}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=m(g(k.prototype),"setValue",this).call(this,e,n);if(this.valueChanged=!0,this.subForm){var i,a=this.useOriginalRevision&&o.default.isNumber(e._fvid)&&o.default.isNumber(null===(i=this.subForm.form)||void 0===i?void 0:i._vid)&&e._fvid!==this.subForm.form._vid;a?(this.setFormRevision(e._fvid),this.createSubForm().then((function(){t.attach(t.element)}))):this.setSubFormValue(e,n)}return r}},{key:"setSubFormValue",value:function(e,t){if(e&&e._id&&this.subForm.formio&&o.default.isEmpty(e.data)){var n=e.form||this.formObj.form||this.component.form,r="".concat(this.subForm.formio.formsUrl,"/").concat(n,"/submission/").concat(e._id);this.subForm.setUrl(r,this.options),this.subForm.loadSubmission()}else this.subForm.setValue(e,t)}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return null===e||o.default.isEqual(e,this.emptyValue)||this.areAllComponentsEmpty(e.data)&&!e._id}},{key:"areAllComponentsEmpty",value:function(e){var t=!0;return this.subForm?this.subForm.everyComponent((function(n){var r=o.default.get(e,n.key);t&=n.isEmpty(r)})):t=!1,t}},{key:"getValue",value:function(){return this.subForm?this.subForm.getValue():this.dataValue}},{key:"errors",get:function(){var e=m(g(k.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,t,n,r,o;return"wizard"===(null===(e=this.subForm)||void 0===e||null===(t=e._form)||void 0===t?void 0:t.display)&&"wizard"===(null===(n=this.parent)||void 0===n||null===(r=n.parent)||void 0===r||null===(o=r._form)||void 0===o?void 0:o.display)}},{key:"visible",get:function(){return m(g(k.prototype),"visible",this)},set:function(e){var t=this,n=this.isNestedWizard;if(this._visible!==e){if(this._visible=e,!this.subForm&&e)return this.createSubForm(),this.subFormReady.then((function(){t.updateSubFormVisibility(),t.clearOnHide()})),void this.redraw();this.updateSubFormVisibility(),this.clearOnHide(),n?this.rebuild():this.redraw()}!e&&n&&this.root.redraw()}},{key:"parentVisible",get:function(){return m(g(k.prototype),"parentVisible",this)},set:function(e){var t=this;if(this._parentVisible!==e){if(this._parentVisible=e,this.clearOnHide(),!this.subForm&&e)return this.createSubForm(),this.subFormReady.then((function(){t.updateSubFormVisibility()})),void this.redraw();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 s.default,t=e.emit,n=this;return e.emit=function(e){for(var r=e.replace("".concat(n.options.namespace,"."),""),o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];t.call.apply(t,[this,e].concat(i)),n.isInternalEvent(r)||n.emit.apply(n,[r].concat(i))},e}},{key:"deleteValue",value:function(){m(g(k.prototype),"setValue",this).call(this,null,{noUpdateEvent:!0,noDefault:!0}),this.unset()}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{label:"Form",type:"form",key:"form",src:"",reference:!0,form:"",path:"",tableView:!0}
2].concat(t))}},{key:"builderInfo",get:function(){return{title:"Nested Form",icon:"wpforms",group:"premium",documentation:"/userguide/#form",weight:110,schema:k.schema()}}}],n&&h(t.prototype,n),r&&h(t,r),k}(i.default);t.default=w},13498:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(61550))&&r.__esModule?r:{default:r},i=[o.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>'),o.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 target="_blank" href="http://formio.github.io/formio.js/app/examples/calculated.html">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,clearOnHide:!1,calculateValue:"value = data.hidden ? false : value",conditional:{json:{"!":[{var:"data.hidden"}]}}}];t.default=i},70838:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},5318:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(69826),n(41539),t.default=[{type:"select",input:!0,dataSrc:"url",data:{url:"/form?limit=4294967295&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 t,n,r,o,i=e.instance,a=e.data,s=null===(t=i.root)||void 0===t||null===(n=t.getComponent("form"))||void 0===n?void 0:n.defaultDownloadedResources.find((function(e){return e._id===a.form})),l="wizard";return(null===(r=i.options)||void 0===r||null===(o=r.editForm)||void 0===o?void 0:o.display)===l&&s&&s.display!==l}},{type:"textfield",input:!0,label:"Form Revision",placeholder:"Current",tooltip:"You can lock the nested form to a specific revision by entering the revision number here.",key:"revision",weight:11},{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."}]},45574:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:o.default},{key:"data",components:i.default},{key:"validation",ignore:!0},{key:"conditional",ignore:!0},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=a(n(39086)),o=a(n(40365)),i=a(n(42111));function a(e){return e&&e.__esModule?e:{default:e}}},13089:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(41539),n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esMo
2dule",{value:!0}),t.default=void 0,n(92222),n(30489);var o,i=(o=n(63820))&&o.__esModule?o:{default:o};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=u(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},l.apply(this,arguments)}function u(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function f(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(h,e);var t,n,r,o,u,p=(o=h,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(o);if(u){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return f(this,e)});function h(){return a(this,h),p.apply(this,arguments)}return t=h,n=[{key:"defaultSchema",get:function(){return h.schema()}},{key:"inputInfo",get:function(){var e=l(d(h.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 t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.updateValue(e,t)}},{key:"getValue",value:function(){return this.dataValue}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"hidden",tableView:!1,inputType:"hidden"}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Hidden",group:"data",icon:"user-secret",weight:0,documentation:"/userguide/#hidden",schema:h.schema()}}}],n&&s(t.prototype,n),r&&s(t,r),h}(i.default);t.default=p},42111:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"multiple",ignore:!0},{key:"clearOnHide",ignore:!0},{key:"allowCalculateOverride",ignore:!0}]},40365:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},16494:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:o.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"logic",components:i.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=a(n(39086)),o=a(n(97234)),i=a(n(75367));function a(e){return e&&e.__esModule?e:{default:e}}},50919:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(41539),n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esMo
2dule",{value:!0}),t.default=void 0,n(73210),n(74916),n(15306),n(21249),n(92222),n(30489);var o=a(n(64430)),i=a(n(96486));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=c(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},u.apply(this,arguments)}function c(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function d(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(m,e);var t,n,r,a,c,h=(a=m,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(a);if(c){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function m(){return s(this,m),h.apply(this,arguments)}return t=m,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.schema.apply(o.default,[{label:"HTML",type:"htmlelement",tag:"p",attrs:[],content:"",input:!1,persistent:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"HTML Element",group:"layout",icon:"code",weight:0,documentation:"/userguide/#html-element-component",schema:m.schema()}}}],(n=[{key:"defaultSchema",get:function(){return m.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=i.default.get(this.root,"submission",{}),t=this.component.content?this.interpolate(this.component.content,{metadata:e.metadata||{},submission:e,data:this.rootValue,row:this.data}):"";return this.sanitize(t,this.shouldSanitizeValue)}},{key:"singleTags",get:function(){return["br","img","hr"]}},{key:"checkRefreshOn",value:function(e){u(p(m.prototype),"checkRefreshOn",this).call(this,e),!this.builderMode&&this.component.refreshOnChange&&this.element&&this.conditionallyVisible(this.data,this.row)&&this.setContent(this.element,this.renderContent())}},{key:"renderContent",value:function(){var e=this,t=i.default.get(this.root,"submission",{});return this.renderTemplate("html",{component:this.component,tag:this.component.tag,attrs:(this.component.attrs||[]).map((function(n){return{attr:n.attr,value:e.interpolate(n.value,{metadata:t.metadata||{},submission:t,data:e.rootValue,row:e.data})}})),content:this.content,singleTags:this.singleTags})}},{key:"render",value:function(){return u(p(m.prototype),"render",this).call(this,this.renderContent())}},{key:"attach",value:function(e){return this.loadRefs(e,{html:"single"}),u(p(m.prototype),"attach",this).call(this,e)}}])&&l(t.prototype,n),r&&l(t,r),m}(o.default);t.default=h},97234:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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
2y:"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}]},75367:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}}]}]}]}]},15178:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=J(n(78621)),o=J(n(83696)),i=J(n(37784)),a=J(n(67559)),s=J(n(64430)),l=J(n(72801)),u=J(n(20787)),c=J(n(37419)),f=J(n(29147)),d=J(n(56742)),p=J(n(93560)),h=J(n(54263)),m=J(n(34160)),v=J(n(1870)),y=J(n(15734)),b=J(n(99184)),g=J(n(58192)),w=J(n(11621)),k=J(n(13089)),_=J(n(63820)),O=J(n(99606)),x=J(n(68093)),S=J(n(50919)),j=J(n(24561)),P=J(n(67329)),C=J(n(99495)),E=J(n(40996)),A=J(n(95548)),M=J(n(40736)),R=J(n(55089)),T=J(n(44311)),D=J(n(30210)),I=J(n(66572)),V=J(n(14224)),L=J(n(59024)),N=J(n(14051)),F=J(n(55655)),B=J(n(26135)),z=J(n(53700)),U=J(n(16186)),H=J(n(6610)),q=J(n(8745)),W=J(n(8948)),K=J(n(5570)),Y=J(n(37978)),G=J(n(12151)),$=J(n(86267));function J(e){return e&&e.__esModule?e:{default:e}}var Z={address:r.default,base:s.default,component:s.default,componentmodal:l.default,button:o.default,checkbox:i.default,columns:a.default,container:u.default,content:c.default,currency:f.default,datagrid:d.default,datamap:p.default,datetime:h.default,day:m.default,editgrid:v.default,email:y.default,input:_.default,field:x.default,multivalue:O.default,fieldset:b.default,file:g.default,form:w.default,hidden:k.default,htmlelement:S.default,nested:j.default,nesteddata:P.default,nestedarray:C.default,number:E.default,panel:A.default,password:M.default,phoneNumber:R.default,radio:T.default,recaptcha:D.default,resource:I.default,select:L.default,selectboxes:V.default,signature:N.default,survey:F.default,table:B.default,tabs:z.default,tags:U.default,textarea:H.default,textfield:q.default,time:W.default,tree:K.default,unknown:Y.default,url:G.default,well:$.default};t.default=Z},1512:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"data",components:i.default},{key:"validation",components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=s(n(53983)),o=s(n(38519)),i=s(n(30973)),a=s(n(52372));function s(e){return e&&e.__esModule?e:{default:e}}},40996:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esMo
2dule",{value:!0}),t.default=void 0,n(92222),n(74916),n(15306),n(69600),n(23123),n(26699),n(32023),n(82481),n(41539),n(39714),n(21249),n(30489);var o=n(47853),i=u(n(96486)),a=n(84909),s=u(n(63820)),l=n(82531);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=p(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},d.apply(this,arguments)}function p(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(b,e);var t,n,r,u,p,y=(u=b,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(u);if(p){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return m(this,e)});function b(){var e,t;c(this,b);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];(t=y.call.apply(y,[this].concat(r))).validators=t.validators.concat(["min","max"]);var a,s=(0,l.getNumberSeparators)(t.options.language||navigator.language);t.decimalSeparator=t.options.decimalSeparator=t.options.decimalSeparator||(null===(e=t.options.properties)||void 0===e?void 0:e.decimalSeparator)||s.decimalSeparator,t.component.delimiter?(t.options.hasOwnProperty("thousandsSeparator")&&console.warn("Property 'thousandsSeparator' is deprecated. Please use i18n to specify delimiter."),t.delimiter=(null===(a=t.options.properties)||void 0===a?void 0:a.thousandsSeparator)||t.options.thousandsSeparator||s.delimiter):t.delimiter="";var u=i.default.get(t.component,"requireDecimal",!1);if(t.decimalLimit=(0,l.getNumberDecimalLimit)(t.component,u?2:20),i.default.has(t.options,"languageOverride.".concat(t.options.language))){var f=i.default.get(t.options,"languageOverride.".concat(t.options.language));t.decimalSeparator=f.decimalSeparator,t.delimiter=f.delimiter}return t.numberMask=t.createNumberMask(),t}return t=b,n=[{key:"createNumberMask",value:function(){return(0,a.createNumberMask)({prefix:"",suffix:"",requireDecimal:i.default.get(this.component,"requireDecimal",!1),thousandsSeparatorSymbol:i.default.get(this.component,"thousandsSeparator",this.delimiter),decimalSymbol
2:i.default.get(this.component,"decimalSymbol",this.decimalSeparator),decimalLimit:i.default.get(this.component,"decimalLimit",this.decimalLimit),allowNegative:i.default.get(this.component,"allowNegative",!0),allowDecimal:this.isDecimalAllowed()})}},{key:"defaultSchema",get:function(){return b.schema()}},{key:"defaultValue",get:function(){var e=d(v(b.prototype),"defaultValue",this);return e||0!==this.component.defaultValue||(e=this.component.defaultValue),!this.component.multiple&&i.default.isArray(e)&&(e=e[0]||0===e[0]?e[0]:null),e}},{key:"emptyValue",get:function(){return""}},{key:"isDecimalAllowed",value:function(){return i.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 t="[0-9";t+=this.decimalSeparator||"",t+=this.delimiter||"",t+="]*",e.setAttribute("pattern",t),e.mask=(0,o.maskInput)({inputElement:e,mask:this.numberMask,shadowRoot:this.root?this.root.shadowRoot:null})}},{key:"inputInfo",get:function(){var e=d(v(b.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 t=this.refs.input[e].value;return t&&"-_"!==t?this.parseNumber(t):this.emptyValue}},{key:"setValueAt",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return d(v(b.prototype),"setValueAt",this).call(this,e,this.formatValue(this.parseValue(t)),n)}},{key:"parseValue",value:function(e){"string"==typeof e&&(e=e.split(this.delimiter).join("").replace(this.decimalSeparator,"."));var t=parseFloat(e);return i.default.isNaN(t)?null:String(t).replace(".",this.decimalSeparator)}},{key:"formatValue",value:function(e){return this.component.requireDecimal&&e&&!e.includes(this.decimalSeparator)?"".concat(e).concat(this.decimalSeparator).concat(i.default.repeat("0",this.decimalLimit)):this.component.requireDecimal&&e&&e.includes(this.decimalSeparator)?"".concat(e).concat(i.default.repeat("0",this.decimalLimit-e.split(this.decimalSeparator)[1].length)):e}},{key:"focus",value:function(){var e=this.refs.input[0];e&&(d(v(b.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,o.conformToMask)(this.formatValue(e),this.numberMask).conformedValue}},{key:"getValueAsString",value:function(e,t){return e||0===e?(e=this.getWidgetValueAsString(e,t),Array.isArray(e)?e.map(this.getMaskedValue).join(", "):this.getMaskedValue(e)):""}},{key:"addFocusBlurEvents",value:function(e){var t=this;d(v(b.prototype),"addFocusBlurEvents",this).call(this,e),this.addEventListener(e,"blur",(function(){e.value=t.getValueAsString(t.formatValue(t.parseValue(e.value)))}))}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.default.schema.apply(s.default,[{type:"number",label:"Number",key:"number",validate:{min:"",max:"",step:"any",integer:""}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Number",icon:"hashtag",group:"basic",documentation:"/userguide/#number",weight:30,schema:b.schema()}}}],n&&f(t.prototype,n),r&&f(t,r),b}(s.default);t.default=y},30973:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},38519:function(e,t){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"spellcheck",ignore:!0},{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},52372:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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},{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}]},81089:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"conditional",components:i.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=a(n(40970)),o=a(n(74893)),i=a(n(41649));function a(e){return e&&e.__esModule?e:{default:e}}},95548:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(41539),n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(74916),n(15306),n(30489);var o=s(n(24561)),i=n(82531),a=s(n(11621));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=f(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},c.apply(this,arguments)}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(y,e);var t,n,r,s,f,v=(s=y,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(s);if(f){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return p(this,e)});function y(){var e;l(this,y);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=v.call.apply(v,[this].concat(n))).noField=!0,e.on("componentError",(function(){(0,i.hasInvalidComponent)(h(e))&&e.collapsed&&(e.collapsed=!1)})),e}return t=y,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.schema.apply(o.default,[{label:"Panel",type:"panel",key:"panel",title:"Panel",theme:"default",breadcrumb:"default",components:[],clearOnHide:!1,input:!1,tableView:!1,persistent:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Panel",icon:"list-alt",group:"layout",documentation:"/userguide/#panels",weight:30,schema:y.schema()}}}],(n=[{key:"defaultSchema",get:function(){return y.schema()}},{key:"templateName",get:function(){return"panel"}},{key:"getComponent",value:function(e,t,n){var r;return(null===(r=this.root)||void 0===r?void 0:r.parent)instanceof a.default&&(e=e.replace(this._parentPath,"")),c(m(y.prototype),"getComponent",this).call(this,e,t,n)}}])&&u(t.prototype,n),r&&u(t,r),y}(o.default);t.default=v},41649:function(e,t,n){"use strict";
2n(47941),n(82526),n(57327),n(38880),n(54747),n(49337),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(41539);var r=l(n(61550)),o=l(n(18446)),i=l(n(57557)),a=l(n(91966)),s=l(n(3674));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=[c(c({},r.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 t=!1;if("wizard"===e.instance.options.editForm.display){var n=e.instance.options.editForm.components,r=e.instance.options.editComponent;n&&r&&(t=n.some((function(e){var t=(0,a.default)((0,s.default)(e),(0,s.default)(r))||[];return t.push("components"),(0,o.default)((0,i.default)(e,t),(0,i.default)(r,t))})))}return t}})];t.default=d},74893:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(41539);var r=s(n(18446)),o=s(n(57557)),i=s(n(91966)),a=s(n(3674));function s(e){return e&&e.__esModule?e:{default:e}}var l=[{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
2submit 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 t=!1;if("wizard"===e.instance.options.editForm.display){var n=e.instance.options.editForm.components,s=e.instance.options.editComponent;n&&s&&(t=n.some((function(e){var t=(0,i.default)((0,a.default)(e),(0,a.default)(s))||[];return t.push("components"),(0,r.default)((0,o.default)(e,t),(0,o.default)(s,t))})))}return t}},{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]}}}];t.default=l},93268:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.apply(void 0,[[{key:"data",components:a.default},{key:"display",components:i.default},{key:"validation",components:s.default},{label:"Addons",key:"addons",weight:70,components:r.default}]].concat(t))},n(92222);var r=l(n(46716)),o=l(n(53983)),i=l(n(25175)),a=l(n(16170)),s=l(n(13462));function l(e){return e&&e.__esModule?e:{default:e}}},40736:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(41539),n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(30489);var o=a(n(8745)),i=a(n(96486));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=c(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},u.apply(this,arguments)}function c(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function d(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(m,e);var t,n,r,a,c,h=(a=m,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(a);if(c){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function m(){return s(this,m),h.apply(this,arguments)}return t=m,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.schema.apply(o.default,[{type:"password",label:"Password",key:"password",protected:!0,tableView:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Password",icon:"asterisk",group:"basic",documentation:"/userguide/#password",weight:40,schema:m.schema()}}}],(n=[{key:"defaultSchema",get:function(){return i.default.omit(m.schema(),["protected","tableView"])}},{key:"inputInfo",get:function(){var e=u(p(m.prototype),"inputInfo",this);return e.attr.type="password",e}}])&&l(t.prototype,n),r&&l(t,r),m}(o.default);t.default=h},16170:function(e,t){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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."}]},25175:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{ignore:!0,key:"mask"},{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0}]},13462:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"unique",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},54570:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:[{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},{key:"validation",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=i(n(53983)),o=i(n(24482));function i(e){return e&&e.__esModule?e:{default:e}}},55089:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(30489);var o,i=(o=n(8745))&&o.__esModule?o:{default:o};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(p,e);var t,n,r,o,f,d=(o=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(o);if(f){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function p(){return a(this,p),d.apply(this,arguments)}return t=p,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"phoneNumber",label:"Phone Number",key:"phoneNumber",inputType:"tel",inputMask:"(999) 999-9999",inputMode:"decimal",displayMask:""}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Phone Number",group:"advanced",icon:"phone-square",weight:30,documentation:"/userguide/#phonenumber",schema:p.schema()}}}],(n=[{key:"defaultSchema",get:function(){return p.schema()}}])&&s(t.prototype,n),r&&s(t,r),p}(i.default);t.default=f},24482:function(e,t){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0},{key:"validate.pattern",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},20481:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=s(n(39086)),o=s(n(15720)),i=s(n(4473)),a=s(n(17325));function s(e){return e&&e.__esModule?e:{default:e}}},44311:function(e,t,n){"use strict";n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(78783),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68309),n(92222),n(66992),n(41539),n(33948),n(54747),n(39714),n(34553),n(69826),n(30489);var r=a(n(96486)),o=a(n(68093)),i=n(82531);function a(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},s(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=c(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},u.apply(this,arguments)}function c(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function d(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(v,e);var t,n,a,c,h,m=(c=v,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(c);if(h){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function v(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),(r=m.call(this,e,t,n)).previousValue=r.dataValue||null,r}return t=v,a=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.schema.apply(o.default,[{type:"radio",inputType:"radio",label:"Radio",key:"radio",values:[{label:"",value:""}],validate:{onlyAvailableItems:!1},fieldSet:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Radio",group:"basic",icon:"dot-circle-o",weight:80,documentation:"/userguide/#radio",schema:v.schema()}}}],(n=[{key:"defaultSchema",get:function(){return v.schema()}},{key:"defaultValue",get:function(){var e=u(p(v.prototype),"defaultValue",this);return e||!1!==this.component.defaultValue||(e=this.component.defaultValue),e}},{key:"inputInfo",get:function(){var e,t=u(p(v.prototype),"elementInfo",this).call(this);return t.type="input",t.changeEvent="click",t.attr.class="form-check-input",t.attr.name=t.attr.name+="[".concat(null===(e=this.root)||void 0===e?void 0:e.id,"-").concat(this.id,"]"),t}},{key:"emptyValue",get:function(){return""}},{key:"isRadio",get:function(){return"radio"===this.component.inputType}},{key:"optionSelectedClass",get:function(){return"radio-selected"}},{key:"init",value:function(){u(p(v.prototype),"init",this).call(this),this.validators=this.validators.concat(["select","onlyAvailableItems"])}},{key:"render",value:function(){return u(p(v.prototype),"render",this).call(this,this.renderTemplate("radio",{input:this.inputInfo,inline:this.component.inline,values:this.component.values,value:this.dataValue,row:this.row}))}},{key:"attach",value:function(e){var t=this;
2return this.loadRefs(e,{input:"multiple",wrapper:"multiple"}),this.refs.input.forEach((function(e,n){if(t.addEventListener(e,t.inputInfo.changeEvent,(function(){t.updateValue(null,{modified:!0})})),t.addShortcut(e,t.component.values[n].shortcut),t.isRadio){var o=t.dataValue;r.default.isString(t.dataValue)||(o=r.default.toString(t.dataValue)),e.checked=o===e.value,t.addEventListener(e,"keyup",(function(n){" "===n.key&&o===e.value&&(n.preventDefault(),t.updateValue(null,{modified:!0}))}))}})),this.setSelectedClasses(),u(p(v.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(e){var t=this;e&&this.refs.input&&this.refs.input.forEach((function(e,n){t.removeShortcut(e,t.component.values[n].shortcut)})),u(p(v.prototype),"detach",this).call(this)}},{key:"getValue",value:function(){if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var e=this.dataValue;return this.refs.input.forEach((function(t){t.checked&&(e=t.value)})),e}},{key:"validateValueAvailability",value:function(e,t){var n=this;if(!(0,i.boolValue)(e)||!t)return!0;var r=this.component.values;return!!r&&-1!==r.findIndex((function(e){var r=e.value;return n.normalizeValue(r)===t}))}},{key:"getValueAsString",value:function(e){if(!e)return"";r.default.isString(e)||(e=r.default.toString(e));var t=r.default.find(this.component.values,(function(t){return t.value===e}));return r.default.get(t,"label","")}},{key:"setValueAt",value:function(e,t){if(this.refs.input&&this.refs.input[e]&&null!=t){var n=this.refs.input[e].value;this.refs.input[e].checked=n===t.toString()}}},{key:"setSelectedClasses",value:function(){var e=this;if(this.refs.wrapper){var t=this.dataValue;this.refs.wrapper.forEach((function(n,r){var o=e.refs.input[r];("checkbox"===o.type?t[o.value]:o.value.toString()===t.toString())?(e.addClass(n,e.optionSelectedClass),o.setAttribute("checked","true")):(e.removeClass(n,e.optionSelectedClass),o.removeAttribute("checked"))}))}}},{key:"updateValue",value:function(e,t){var n=u(p(v.prototype),"updateValue",this).call(this,e,t);return n&&this.setSelectedClasses(),t&&t.modified&&this.isRadio?(this.currentValue=this.dataValue,!(t&&t.noUpdateEvent)&&this.previousValue===this.currentValue&&(this.resetValue(),this.triggerChange(t)),this.previousValue=this.dataValue,n):n}},{key:"normalizeValue",value:function(e){var t=this.component.dataType||"auto";if(e===this.emptyValue)return e;switch(t){case"auto":!isNaN(parseFloat(e))&&isFinite(e)&&(e=+e),"true"===e&&(e=!0),"false"===e&&(e=!1);break;case"number":e=+e;break;case"string":e="object"===s(e)?JSON.stringify(e):String(e);break;case"boolean":e=!(!e||"false"===e.toString())}return u(p(v.prototype),"normalizeValue",this).call(this,e)}}])&&l(t.prototype,n),a&&l(t,a),v}(o.default);t.default=h},15720:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(1848)),o=i(n(96486));function i(e){return e&&e.__esModule?e:{default:e}}var a=[{key:"multiple",ignore:!0},{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 r.default.getAvailableShortcuts(o.default.get(e,"instance.options.editForm",{}),o.default.get(e,"instance.options.editComponent",{}))}}}]},{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"}
2,{label:"String",value:"string"},{label:"Number",value:"number"},{label:"Boolean",value:"boolean"},{label:"Object",value:"object"}]}}];t.default=a},4473:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},17325:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},124:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return r.default.baseEditForm([{key:"display",components:o.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"conditional",ignore:!0},{key:"logic",ignore:!0},{key:"addons",ignore:!0}])};var r=i(n(39086)),o=i(n(89193));function i(e){return e&&e.__esModule?e:{default:e}}},30210:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(41539),n(12419),n(74819),n(38880),n(47941),n(82526),n(57327),n(54747),n(49337),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68309),n(92222),n(30489);var o=u(n(64430)),i=n(19161),a=u(n(27361)),s=u(n(23279)),l=u(n(91459));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(){return m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=v(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},m.apply(this,arguments)}function v(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function b(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(v,e);
2var t,n,r,u,c,d=(u=v,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g(u);if(c){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return b(this,e)});function v(){return p(this,v),d.apply(this,arguments)}return t=v,n=[{key:"render",value:function(){return this.recaptchaResult=null,this.builderMode?m(g(v.prototype),"render",this).call(this,"reCAPTCHA"):m(g(v.prototype),"render",this).call(this,"",!0)}},{key:"createInput",value:function(){if(this.builderMode)this.append(this.text(this.name));else{var e=(0,a.default)(this.root.form,"settings.recaptcha.siteKey");if(e){var t="https://www.google.com/recaptcha/api.js?render=".concat(e);this.recaptchaApiReady=i.GlobalFormio.requireLibrary("googleRecaptcha","grecaptcha",t,!0)}else console.warn("There is no Site Key specified in settings in form JSON")}}},{key:"createLabel",value:function(){}},{key:"verify",value:function(e){var t=this,n=(0,a.default)(this.root.form,"settings.recaptcha.siteKey");if(n){if(!this.recaptchaApiReady){var r="https://www.google.com/recaptcha/api.js?render=".concat((0,a.default)(this.root.form,"settings.recaptcha.siteKey"));this.recaptchaApiReady=i.GlobalFormio.requireLibrary("googleRecaptcha","grecaptcha",r,!0)}this.recaptchaApiReady&&(this.recaptchaVerifiedPromise=new l.default((function(r,o){t.recaptchaApiReady.then((function(){t.isLoading||(t.isLoading=!0,grecaptcha.ready((0,s.default)((function(){grecaptcha.execute(n,{action:e}).then((function(e){return t.sendVerificationRequest(e).then((function(e){var n=e.verificationResult,o=e.token;return t.recaptchaResult=f(f({},n),{},{token:o}),t.updateValue(t.recaptchaResult),r(n)}))})).catch((function(){t.isLoading=!1}))}),1e3)))})).catch((function(){return o()}))})).then((function(){t.isLoading=!1})))}else console.warn("There is no Site Key specified in settings in form JSON")}},{key:"beforeSubmit",value:function(){var e=this;return this.recaptchaVerifiedPromise?this.recaptchaVerifiedPromise.then((function(){return m(g(v.prototype),"beforeSubmit",e).call(e)})):m(g(v.prototype),"beforeSubmit",this).call(this)}},{key:"sendVerificationRequest",value:function(e){return i.GlobalFormio.makeStaticRequest("".concat(i.GlobalFormio.projectUrl,"/recaptcha?recaptchaToken=").concat(e)).then((function(t){return{verificationResult:t,token:e}}))}},{key:"checkComponentValidity",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};
2e=e||this.rootValue,n=n||this.data;var i=o.async,a=void 0!==i&&i;if(!a)return m(g(v.prototype),"checkComponentValidity",this).call(this,e,t,n,o);var s=n[this.component.key];return s&&s.token?s.success?this.hook("validateReCaptcha",s.token,(function(){return l.default.resolve(!0)})).then((function(e){return e})).catch((function(e){return r.setCustomValidity(e.message||e),!1})):(this.setCustomValidity("ReCAPTCHA: Token validation error"),l.default.resolve(!1)):(this.setCustomValidity("ReCAPTCHA: Token is not specified in submission"),l.default.resolve(!1))}},{key:"normalizeValue",value:function(e){return this.recaptchaResult?this.recaptchaResult:e}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.schema.apply(o.default,[{type:"recaptcha",key:"recaptcha",label:"reCAPTCHA"}].concat(t))}},{key:"builderInfo",get:function(){return{title:"reCAPTCHA",group:"premium",icon:"refresh",documentation:"/userguide/#recaptcha",weight:40,schema:v.schema()}}}],n&&h(t.prototype,n),r&&h(t,r),v}(o.default);t.default=w},89193:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(82531),o=[{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,r.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}];t.default=o},64328:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=i(n(39086)),o=i(n(18577));function i(e){return e&&e.__esModule?e:{default:e}}},66572:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(41539),n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(30489);var o,i=(o=n(59024))&&o.__esModule?o:{default:o};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=u(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},l.apply(this,arguments)}function u(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function f(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}
2function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(h,e);var t,n,r,o,u,p=(o=h,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(o);if(u){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return f(this,e)});function h(){return a(this,h),p.apply(this,arguments)}return t=h,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"resource",label:"Resource",key:"resource",dataSrc:"resource",resource:"",project:"",template:"<span>{{ item.data }}</span>"}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Resource",group:"premium",icon:"files-o",weight:90,documentation:"/userguide/#resource",schema:h.schema()}}}],(n=[{key:"init",value:function(){l(d(h.prototype),"init",this).call(this),this.component.dataSrc="resource",this.component.data={resource:this.component.resource}}},{key:"defaultSchema",get:function(){return h.schema()}}])&&s(t.prototype,n),r&&s(t,r),h}(i.default);t.default=p},18577:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"resourceInfo",weight:-10,type:"htmlelement",tag:"div",className:"alert alert-danger",content:'The Resource component is deprecated. Use the Select component with data source of "Resource" instead.'},{type:"select",input:!0,dataSrc:"url",data:{url:"/form?type=resource&limit=4294967295&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 filters 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"}}]}}}]},24120:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);
2var r=s(n(39086)),o=s(n(12832)),i=s(n(47158)),a=s(n(47446));function s(e){return e&&e.__esModule?e:{default:e}}},59024:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(83593),n(82526),n(41817),n(32165),n(78783),n(91038),n(47042),n(68309),n(49337),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(74916),n(15306),n(23123),n(69826),n(41539),n(73210),n(21249),n(69600),n(4723),n(54747),n(2707),n(26699),n(32023),n(57327),n(39714),n(66992),n(33948),n(23157),n(19601),n(47941),n(9653),n(44048),n(35192),n(34553),n(30489);var o,i=f(n(96486)),a=n(19161),s=f(n(68093)),l=f(n(71277)),u=f(n(91459)),c=n(82531);function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t,n,r){return b="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=_(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else w(r,t,n);return!0},b(e,t,n,r)}function g(e,t,n,r,o){if(!b(e,t,n,r||e)&&o)throw new Error("failed to set property");return n}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(){return k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=_(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},k.apply(this,arguments)}function _(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=S(e)););return e}function O(e,t){return O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},O(e,t)}function x(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}"undefined"!=typeof window&&(o=n(62604).ZP);var j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(b,e);var t,n,r,f,d,m=(f=b,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=S(f);if(d){var n=S(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return x(this,e)});function b(){return v(this,b),m.apply(this,arguments)}return t=b,n=[{key:"init",value:function(){var e=this;k(S(b.prototype),"init",this).call(this),this.templateData={},this.validators=this.validators.concat(["select","onlyAvailableItems"]);var t=[],n=i.default.debounce((function(){t=[];for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.updateItems.apply(e,r)}),100);this.triggerUpdate=function(){"function"==typeof e.itemsLoadedResolve&&e.itemsLoadedResolve(),e.itemsLoaded=new u.default((function(t){e.itemsLoadedResolve=t}));for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length&&(t=o),n.apply(void 0,h(t))},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 u.default((function(t){e.itemsLoadedResolve=t})),this.isHtmlRenderMode()&&this.activate(),this.getTemplateKeys()}},{key:"dataReady",get:function(){return this.root&&this.root.submissionSet&&!this.attached?u.default.resolve():this.itemsLoaded}},{key:"defaultSchema",get:function(){return b.schema()}},{key:"emptyValue",get:function(){if(this.component.multiple)return[];if("json"===this.component.dataSrc&&this.component.data.json){var e,t=this.component.data.json[0];return(e=this.valueProperty?i.default.get(t,this.valueProperty):t)&&"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=k(S(b.prototype),"elementInfo",this).call(this);return e.type="select",e.changeEvent="change",e}},{key:"isSelectResource",get:function(){return"resource"===this.component.dataSrc}},{key:"isSelectURL",get:function(){return"url"===this.component.dataSrc}},{key:"itemsFromUrl",get:function(){return this.isSelectResource||this.isSelectURL}},{key:"isInfiniteScrollProvided",get:function(){return this.itemsFromUrl}},{key:"shouldDisabled",get:function(){return k(S(b.prototype),"shouldDisabled",this)||this.parentDisabled}},{key:"isEntireObjectDisplay",value:function(){return"resource"===this.component.dataSrc&&"data"===this.valueProperty}},{key:"getSelectTemplate",value:function(e,t){if(!this.component.template)return e.label;var n={noeval:!0,data:{}},r=this.interpolate(this.component.template,{item:e},n);return t&&!i.default.isObject(t)&&n.data.item&&(this.templateData[t]=n.data.item),r}},{key:"selectValueAndLabel",value:function(e){var t=this.itemValue(e);return{value:t,label:this.itemTemplate(e,t)}}},{key:"itemTemplate",value:function(e,t){if(i.default.isEmpty(e))return"";if(this.options.readOnly&&this.component.readOnlyValue)return this.itemValue(e);if(e&&!this.component.template){var n=e.label||e,r="string"==typeof n?this.t(n,{_userInput:!0}):n;
2return this.sanitize(r,this.shouldSanitizeValue)}if("string"==typeof e){var o=this.selectData;if(!o)return this.sanitize(this.t(e,{_userInput:!0}),this.shouldSanitizeValue);e=o}if(e.data){var a=/item\.data\.\w*/g.test(this.component.template);e.data=this.isEntireObjectDisplay()&&i.default.isObject(e.data)&&!a?JSON.stringify(e.data):e.data}var s=this.sanitize(this.getSelectTemplate(e,t),this.shouldSanitizeValue);if(s){var l,u=s.replace(/<\/?[^>]+(>|$)/g,""),c=null===(l=this.i18next)||void 0===l?void 0:l.translator;if(!u||c&&!this.t(u,{_userInput:!0}))return;return c?s.replace(u,this.t(u,{_userInput:!0})):u}return this.sanitize(JSON.stringify(e),this.shouldSanitizeValue)}},{key:"addOption",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,c.getRandomComponentId)();if(!i.default.isNil(t)){var o=this.component.idPath?this.component.idPath.split(".").reduceRight((function(e,t){return w({},t,e)}),r):{},a=p({value:this.getOptionValue(e),label:t},o),s=!!this.component.uniqueOptions&&!!this.selectOptions.find((function(e){return i.default.isEqual(e.value,a.value)}));if(!s&&(e&&this.selectOptions.push(a),this.refs.selectContainer&&"html5"===this.component.widget)){a.value&&i.default.isObject(a.value)&&i.default.isEmpty(a.value)&&(a.value="");var l=document.createElement("div");l.innerHTML=this.sanitize(this.renderTemplate("selectOption",{selected:i.default.isEqual(this.dataValue,a.value),option:a,attrs:n,id:r,useId:""===this.valueProperty&&i.default.isObject(e)&&r}),this.shouldSanitizeValue).trim(),a.element=l.firstChild,this.refs.selectContainer.appendChild(a.element)}}}},{key:"addValueOptions",value:function(e){e=e||[];var t=!1;if(!this.selectOptions.length){var n=Array.isArray(this.dataValue)?this.dataValue:[this.dataValue];(t=this.addCurrentChoices(n,e))||this.component.multiple||this.addPlaceholder()}return t}},{key:"disableInfiniteScroll",value:function(){this.downloadedResources&&(this.downloadedResources.serverCount=this.downloadedResources.length,this.serverCount=this.downloadedResources.length)}},{key:"setItems",value:function(e,t){var n,r,o,a=this;if("string"==typeof e)try{e=JSON.parse(e)}catch(t){console.warn(t.message),e=[]}if(this.component.onSetItems&&"function"==typeof this.component.onSetItems){var s=this.component.onSetItems(this,e);s&&(e=s)}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){o=!!this.isSelectURL&&i.default.isEqual(e,this.downloadedResources);var l=this.component.limit>e.length,u=o&&this.downloadedResources&&this.downloadedResources.length===e.length;l?this.disableInfiniteScroll():u?this.selectOptions=[]:this.serverCount=e.serverCount}if(this.isScrollLoading&&e)o||(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 c=i.default.get(this.dataValue,this.component.idPath,null),f=!i.default.isNil(c)&&e.find((function(e){return i.default.get(e,a.component.idPath)===c}));f&&this.setValue(f)}if(t||this.addValueOptions(e),"html5"!==this.component.widget||this.component.placeholder||this.addOption(null,""),i.default.each(e,(function(e,t){if(!(a.root&&a.root.options.editForm&&a.root.options.editForm._id&&a.root.options.editForm._id===e._id)){var n=a.selectValueAndLabel(e);a.addOption(n.value,n.label,{},i.default.get(e,a.component.idPath,String(t)))}})),this.choices?this.choices.setChoices(this.selectOptions,"value","label",!0):this.loading,this.isScrollLoading=!1,this.loading=!1,!t||!(null===(n=this.choices)||void 0===n||null===(r=n.input)||void 0===r?void 0:r.isFocussed))if(this.isEmpty()){if(this.shouldAddDefaultValue){var d=this.defaultValue;this.isEmpty(d)||this.setValue(d)}}else this.setValue(this.dataValue,{noUpdateEvent:!0});this.itemsLoadedResolve()}},{key:"getSingleItemValueForHTMLMode",value:function(e){var t,n=null===(t=this.selectOptions)||void 0===t?void 0:t.find((function(t){var n=t.value;return i.default.isEqual(n,e)}));return n&&n.label||e}},{key:"itemValueForHTMLMode",value:function(e){var t=this;return this.isHtmlRenderMode()?Array.isArray(e)?e.map((function(e){return Array.isArray(e)?t.itemValueForHTMLMode(e):t.getSingleItemValueForHTMLMode(e)})).join(", "):this.getSingleItemValueForHTMLMode(e):k(S(b.prototype),"itemValueForHTMLMode",this).call(this,e)}},{key:"defaultValue",get:function(){var e=k(S(b.prototype),"defaultValue",this);return e||!1!==this.component.defaultValue&&0!==this.component.defaultValue||(e=this.component.defaultValue),e}},{key:"getTemplateKeys",value:function(){var e=this;if(this.templateKeys=[],this.options.readOnly&&this.component.template){var t=this.component.template.match(/({{\s*(.*?)\s*}})/g);t&&t.forEach((function(t){var n=t.match(/{{\s*item\.(.*?)\s*}}
2/);n&&n.length>1&&e.templateKeys.push(n[1])}))}}},{key:"loadingError",get:function(){return!this.component.refreshOn&&!this.component.refreshOnBlur&&this.networkError}},{key:"selectData",get:function(){var e=i.default.get(this.root,"submission.metadata.selectData",{});return i.default.get(e,this.path)}},{key:"shouldLoad",get:function(){if(this.loadingError)return!1;if(!this.options.readOnly||"pdf"===this.options.display&&this.options.readOnly)return!0;if(this.templateKeys&&this.templateKeys.length){var e=this.dataValue,t=this.selectData;return this.templateKeys.reduce((function(n,r){var o=i.default.has(e,r)||i.default.has(t,r);return n||!o}),!1)}return!0}},{key:"loadItems",value:function(e,t,n,r,o,s){var l=this;if(r=r||{},!this.shouldLoad)return this.isScrollLoading=!1,this.loading=!1,void this.itemsLoadedResolve();var u=parseInt(this.component.minSearch,10);if(this.component.searchField&&u>0&&(!t||t.length<u))return this.setItems([]);"GET"===(o=o||"GET").toUpperCase()&&(s=null);var c=this.component.limit||100,f=this.isScrollLoading?this.selectOptions.length:0,d=this.component.disableLimit?{}:{limit:c,skip:f};e=this.interpolate(e,{formioBase:a.GlobalFormio.getBaseUrl(),search:t,limit:c,skip:f,page:Math.abs(Math.floor(f/c))}),this.component.searchField&&t&&(Array.isArray(t)?d["".concat(this.component.searchField)]=t.join(","):d["".concat(this.component.searchField)]=t),this.component.selectFields&&(d.select=this.component.selectFields),this.component.sort&&(d.sort=this.component.sort),i.default.isEmpty(d)||(e+=(e.includes("?")?"&":"?")+a.GlobalFormio.serialize(d,(function(e){return l.interpolate(e)}))),this.component.filter&&(e+=(e.includes("?")?"&":"?")+this.interpolate(this.component.filter)),r.ignoreCache=this.component.ignoreCache,r.header=n,this.loading=!0,a.GlobalFormio.makeRequest(this.options.formio,"select",e,o,s,r).then((function(e){l.loading=!1,l.error=null,l.setItems(e,!!t)})).catch((function(e){l.itemsFromUrl&&(l.setItems([]),l.disableInfiniteScroll()),l.isScrollLoading=!1,l.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,t=new a.GlobalFormio.Headers;if(this.component.data&&this.component.data.headers)try{i.default.each(this.component.data.headers,(function(n){n.key&&t.set(n.key,e.interpolate(n.value))}))}catch(e){console.warn(e.message)}return t}},{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 t=this;if(this.asyncCustomValues()){if(!e&&!this.active)return void this.itemsLoadedResolve();this.loading=!0,this.getCustomItems().then((function(e){t.loading=!1,t.setItems(e||[])})).catch((function(e){t.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 k(S(b.prototype),"isEmpty",this).call(this,e)||void 0===e}},{key:"refresh",value:function(e,t){var n=t.instance;this.component.clearOnRefresh&&n&&!n.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:"updateItems",value:function(e,t){var n=this;if(!this.component.data)return console.warn("Select component ".concat(this.key," does not have data configuration.")),void this.itemsLoadedResolve();if(this.visible)switch(this.component.dataSrc){case"values":this.setItems(this.component.data.values);break;case"json":this.setItems(this.component.data.json);break;
2case"custom":this.updateCustomItems(t);break;case"resource":if(!this.component.data.resource||!t&&!this.active)return void this.itemsLoadedResolve();var r=this.options.formio?this.options.formio.formsUrl:"".concat(a.GlobalFormio.getProjectUrl(),"/form");if(r+="/".concat(this.component.data.resource,"/submission"),t||this.additionalResourcesAvailable||!this.serverCount)try{this.loadItems(r,e,this.requestHeaders)}catch(e){console.warn("Unable to load resources for ".concat(this.key))}else this.setItems(this.downloadedResources);break;case"url":if(!t&&!this.active&&!this.calculatedValue)return void this.itemsLoadedResolve();var o,s,l=this.component.data.url;if(l.startsWith("/")){var c=l.startsWith("/project")?a.GlobalFormio.getBaseUrl():a.GlobalFormio.getProjectUrl()||a.GlobalFormio.getBaseUrl();l=c+l}this.component.data.method?s="POST"===(o=this.component.data.method).toUpperCase()?this.component.data.body:null:o="GET";var f=this.component.authenticate?{}:{noToken:!0};this.loadItems(l,e,this.requestHeaders,f,o,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(n.component.customOptions){var t=e.target.result;t.createObjectStore(n.component.indexeddb.table,{keyPath:"myKey",autoIncrement:!0}).transaction.oncomplete=function(){var e=t.transaction(n.component.indexeddb.table,"readwrite");n.component.customOptions.forEach((function(t){e.objectStore(n.component.indexeddb.table).put(t)}))}}},d.onerror=function(){window.alert(d.errorCode)},d.onsuccess=function(e){var t=e.target.result.transaction(n.component.indexeddb.table,"readwrite").objectStore(n.component.indexeddb.table);new u.default((function(e){var n=[];t.getAll().onsuccess=function(t){t.target.result.forEach((function(e){n.push(e)})),e(n)}})).then((function(e){i.default.isEmpty(n.component.indexeddb.filter)||(e=i.default.filter(e,n.component.indexeddb.filter)),n.setItems(e)}))}}}else this.itemsLoadedResolve()}},{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())}}
2,{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,k(S(b.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,t=this.t(this.component.placeholder,{_userInput:!0}),n=this.component.customOptions||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){console.warn(e.message),n={}}var r={maxPatternLength:1e3,distance:1e3};return p({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,placeholder:!!this.component.placeholder,placeholderValue:t,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?p({tokenize:!0,matchAllTokens:!0},r):Object.assign({},i.default.get(this,"component.fuseOptions",{}),p({include:"score",threshold:i.default.get(this,"component.selectThreshold",.3)},r)),valueComparer:i.default.isEqual,resetScrollPosition:!1},n)}},{key:"attach",value:function(e){var t,n,r,s=this,u=k(S(b.prototype),"attach",this).call(this,e);this.loadRefs(e,{selectContainer:"single",addResource:"single",autocompleteInput:"single"});var c=this.refs.autocompleteInput;c&&this.addEventListener(c,"change",(function(e){s.setValue(e.target.value)}));var f=this.refs.selectContainer;if(f){if(this.addEventListener(f,this.inputInfo.changeEvent,(function(){return s.updateValue(null,{modified:!0})})),this.attachRefreshOnBlur(),"html5"===this.component.widget)return this.triggerUpdate(null,!0),this.visible&&this.setItems(this.selectOptions||[]),this.focusableElement=f,this.addEventListener(f,"focus",(function(){return s.update()})),void this.addEventListener(f,"keydown",(function(e){var t=e.key;["Backspace","Delete"].includes(t)&&s.setValue(s.emptyValue)}));var d=f.tabIndex;this.addPlaceholder(),f.setAttribute("dir",this.i18next.dir()),null!==(t=this.choices)&&void 0!==t&&null!==(n=t.containerOuter)&&void 0!==n&&null!==(r=n.element)&&void 0!==r&&r.parentNode&&this.choices.destroy();var p=this.choicesOptions();if(o&&(this.choices=new o(f,p),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"),p.searchEnabled&&this.addEventListener(this.choices.containerOuter.element,"focus",(function(){return s.focusableElement.focus()}))),this.itemsFromUrl&&(this.scrollList=this.choices.choiceList.element,this.addEventListener(this.scrollList,"scroll",(function(){return s.onScroll()})))),this.focusableElement.setAttribute("tabIndex",d),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(f,"choice",(function(){s.component.multiple&&"resource"===s.component.dataSrc&&s.isFromSearch&&s.triggerUpdate(),s.isFromSearch=!1}));var m=this.component.searchField&&(this.isSelectResource||this.isSelectURL)?1e3*(0===this.component.searchDebounce?0:this.component.searchDebounce||this.defaultSchema.searchDebounce):0;this.addEventListener(f,"search",i.default.debounce((function(e){s.triggerUpdate(e.detail.value)}),m)),this.addEventListener(f,"stopSearch",(function(){return s.triggerUpdate()})),this.addEventListener(f,"hideDropdown",(function(){s.choices&&s.choices.input&&s.choices.input.element&&(s.choices.input.element.value=""),s.updateItems(null,!0)}))}return this.addEventListener(f,"showDropdown",(function(){return s.update()})),this.choices&&p.placeholderValue&&this.choices._isSelectOneElement&&(this.addPlaceholderItem(p.placeholderValue),this.addEventListener(f,"removeItem",(function(){s.addPlaceholderItem(p.placeholderValue)}))),this.addValueOptions(),this.setChoicesValue(this.dataValue),this.isSelectResource&&this.refs.addResource&&this.addEventListener(this.refs.addResource,"click",(function(e){e.preventDefault();var t=s.ce("div"),n=s.createModal(t),r=i.default.get(s.root,"formio.projectUrl",a.GlobalFormio.getProjectUrl()),o="".concat(r,"/form/").concat(s.component.data.resource);new l.default(t,o,{}).ready.then((function(e){e.on("submit",(function(e){var t=s.valueProperty?i.default.get(e,s.valueProperty):e;s.component.multiple&&(t=[].concat(h(s.dataValue),[t])),s.setValue(t),s.triggerUpdate(),n.close()}))}))})),this.disabled=this.shouldDisabled,this.triggerUpdate(),u}}},{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(t){e.checkRefreshOn([{instance:t,value:t.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 k(S(b.prototype),"disabled",this)},set:function(e){g(S(b.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 k(S(b.prototype),"visible",this)},set:function(e){e&&!this._visible!=!e&&this.triggerUpdate(),g(S(b.prototype),"visible",e,this,!0)}},{key:"addCurrentChoices",value:function(e,t,n){var r=this;if(!e)return!1;var o=[],a=e.reduce((function(e,a){if(!a||i.default.isEmpty(a))return e;var s=!1,l=t===r.selectOptions;return t&&t.length&&i.default.each(t,(function(e){if(e._id&&a._id&&e._id===a._id)return s=!0,!1;
2var t=n?e.value:r.itemValue(e,l);return!(s|=i.default.isEqual(t,a))})),s?s||e:(o.push(r.selectValueAndLabel(a)),!0)}),!1);return o.length&&(this.choices&&this.choices.setChoices(o,"value","label"),o.map((function(e){r.addOption(e.value,e.label)}))),a}},{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){if(""===e)return{};var t=this.selectOptions[e];t&&i.default.isObject(t.value)&&(e=t.value)}}else e=this.dataValue;return null==e&&(e=""),e}},{key:"redraw",value:function(){var e=k(S(b.prototype),"redraw",this).call(this);return this.triggerUpdate(),e}},{key:"normalizeSingleValue",value:function(e,t){var n;if(!i.default.isNil(e)){var r=i.default.isObject(e);if(r&&0===Object.keys(e).length)return e;if(e&&!r&&this.templateData[e]&&null!==(n=this.root)&&void 0!==n&&n.submission){var o=this.root.submission;o.metadata||(o.metadata={}),o.metadata.selectData||(o.metadata.selectData={}),i.default.set(o.metadata.selectData,this.path,this.templateData[e])}var a=this.isEntireObjectDisplay(),s=this.component.dataType||"auto",l={value:e,number:function(){var t=Number(this.value),n=e.toString()===t.toString();return!Number.isNaN(t)&&Number.isFinite(t)&&""!==e&&n&&(this.value=t),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 i.default.isObject(this.value)&&a&&!t&&(this.value=JSON.stringify(this.value)),this},auto:function(){return i.default.isObject(this.value)?this.value=this.object().value:this.value=this.string().number().boolean().value,this}};try{return l[s]().value}catch(t){return console.warn("Failed to normalize value",t),e}}}},{key:"normalizeValue",value:function(e){var t=this;return this.component.multiple&&Array.isArray(e)?e.map((function(e){return t.normalizeSingleValue(e,!0)})):k(S(b.prototype),"normalizeValue",this).call(this,this.normalizeSingleValue(e,!0))}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.dataValue,o=this.updateValue(e,n);e=this.dataValue;var a=!this.isEmpty(r),s=!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()&&n&&n.fromSubmission&&o)return this.itemsLoaded.then((function(){t.redraw()})),o;if(this.loading)return o;if(this.isInitApiCallNeeded(s)){this.loading=!0,this.lazyLoadInit=!0;var l=this.component.searchField||this.component.valueProperty;return this.triggerUpdate(i.default.get(e.data||e,l,e),!0),o}return this.itemsLoaded.then((function(){t.addValueOptions(),t.setChoicesValue(e,a,n)})),o}},{key:"isInitApiCallNeeded",value:function(e){return this.component.lazyLoad&&!this.lazyLoadInit&&!this.active&&!this.selectOptions.length&&e&&this.shouldLoad&&this.visible&&(this.component.searchField||this.component.valueProperty)}},{key:"setChoicesValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!this.isEmpty(e);if(t=void 0===t||t,this.choices)if(r){this.choices.removeActiveItems();var o=Array.isArray(e)?e:[e];this.addCurrentChoices(o,this.selectOptions,!0)||this.choices.setChoices(this.selectOptions,"value","label",!0),this.choices.setChoiceByValue(e)}else(t||n.resetValue)&&this.choices.removeActiveItems();else if(r){var a=Array.isArray(e)?e:[e];i.default.each(this.selectOptions,(function(e){i.default.each(a,(function(t){if(i.default.isEqual(t,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||u.default.resolve()},set:function(e){this._itemsLoaded=e}},{key:"validateValueAvailability",value:function(e,t){var n=this;if(!(0,c.boolValue)(e)||!t)return!0;var r=this.getOptionsValues();return!!r&&(i.default.isObject(t)?-1!==r.findIndex((function(e){return function(e){var r=n.normalizeSingleValue(e,!0);if(!i.default.isObject(r))return!1;try{return JSON.stringify(r)===JSON.stringify(t)}catch(e){return console.warn.error("Error while comparing items",e),!1}}(e)})):-1!==r.findIndex((function(e){return n.normalizeSingleValue(e)===t})))}},{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,t=[];switch(this.component.dataSrc){case"values":t=this.component.data.values;break;case"json":t=this.component.data.json;break;
2case"custom":t=this.getCustomItems()}if("string"==typeof t)try{t=JSON.parse(t)}catch(e){console.warn(e.message),t=[]}if(Array.isArray(t))return t.map((function(t){return e.getOptionValue(e.itemValue(t))}))}},{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(t){return{label:t.label,value:String(e.normalizeSingleValue(t.value))}}))}},{key:"asString",value:function(e){var t,n,r,o=this,a=function(e,t){return t?(Array.isArray(e)?e.forEach((function(e){return e[t]=e[t].toString()})):e[t]=e[t].toString(),e):(o.isBooleanOrNumber(e)&&(e=e.toString()),Array.isArray(e)&&e.some((function(e){return o.isBooleanOrNumber(e)}))&&(e=e.map((function(e){o.isBooleanOrNumber(e)&&(e=e.toString())}))),e)};if(e=a(e=null!==(t=e)&&void 0!==t?t:this.getValue()),["values","custom"].includes(this.component.dataSrc)&&!this.asyncCustomValues()){var s,l="values"===this.component.dataSrc?{items:a(this.getNormalizedValues(),"value"),valueProperty:"value"}:{items:a(this.getCustomItems(),this.valueProperty),valueProperty:this.valueProperty},u=l.items,c=l.valueProperty;e=this.component.multiple&&Array.isArray(e)?i.default.filter(u,(function(t){return e.includes(t.value)})):c?null!==(n=i.default.find(u,[c,e]),r=o.defaultSchema.data.values||[],s=i.default.isEqual(n,r[0])?"-":n)&&void 0!==s?s:{value:e,label:e}:e}if(i.default.isString(e))return e;if(Array.isArray(e)){var f=[];return e.forEach((function(e){return f.push(o.itemTemplate(e))})),f.length>0?f.join("<br />"):"-"}return i.default.isNil(e)?"-":this.itemTemplate(e)}},{key:"detach",value:function(){var e,t;k(S(b.prototype),"detach",this).call(this),this.choices&&(null!==(e=this.choices.containerOuter)&&void 0!==e&&null!==(t=e.element)&&void 0!==t&&t.parentNode&&this.choices.destroy(),this.choices=null)}},{key:"focus",value:function(){this.focusableElement&&(k(S(b.prototype),"focus",this).call(this),this.focusableElement.focus())}},{key:"setErrorClasses",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.element;k(S(b.prototype),"setErrorClasses",this).call(this,e,t,n,r,o),this.choices?k(S(b.prototype),"setErrorClasses",this).call(this,[this.choices.containerInner.element],t,n,r,o):k(S(b.prototype),"setErrorClasses",this).call(this,[this.refs.selectContainer],t,n,r,o)}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.default.schema.apply(s.default,[{type:"select",label:"Select",key:"select",idPath:"id",data:{values:[{label:"",value:""}],json:"",url:"",resource:"",custom:""},clearOnRefresh:!1,limit:100,dataSrc:"values",valueProperty:"",lazyLoad:!0,filter:"",searchEnabled:!0,searchDebounce:.3,searchField:"",minSearch:0,readOnlyValue:!1,authenticate:!1,ignoreCache:!1,template:"<span>{{ item.label }}</span>",selectFields:"",selectThreshold:.3,uniqueOptions:!1,tableView:!0,fuseOptions:{include:"score",threshold:.3},validate:{onlyAvailableItems:!1},indexeddb:{filter:{}},customOptions:{},useExactSearch:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Select",group:"basic",icon:"th-list",weight:70,documentation:"/userguide/#select",schema:b.schema()}}}],n&&y(t.prototype,n),r&&y(t,r),b}(s.default);t.default=j},12832:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92087);var r=n(82531),o=[{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",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"]}}}
2,{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:"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:"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:"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=4294967295&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,clearOnHide:!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,t){var n="resource"===t.type?[{label:"{Entire Object}",key:"data"}]:[];return(0,r.eachComponent)(t.components,(function(e,t){e.input&&n.push({label:e.label||e.key,key:"data.".concat(t)})})),n},onChange:function(e){if(e&&e.flags&&e.flags.modified){var t=e.instance.data.valueProperty,n="<span>{{ item.".concat(t||"data"," }}</span>"),r=t?"".concat(t,"__regex"):"";e.instance.root.getComponent("template").setValue(n),e.instance.root.getComponent("searchField").setValue(r)}},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:"Value Property",key:"valueProperty",skipMerge:!0,clearOnHide:!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:"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 f
2ield.",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:"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:"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 t=[];return t.push({label:"Any Change",value:"data"}),e.utils.eachComponent(e.instance.options.editForm.components,(function(n,r){n.key!==e.data.key&&t.push({label:n.label||n.key,value:r})})),t}},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 t=[];return t.push({label:"Any Change",value:"data"}),e.utils.eachComponent(e.instance.options.editForm.components,(function(n,r){n.key!==e.data.key&&t.push({label:n.label||n.key,value:r})})),t}},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."},{label:"Search Threshold",mask:!1,tableView:!0,alwaysEnabled:!1,type:"number",input:!0,key:"selectThreshold",validate:{min:0,customMessage:"",json:"",max: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:26,key:"authenticate",label:"Formio Authenticate",tooltip:"
2Check this if you would like to use Formio Authentication with the request.",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{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."},{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"]}]}}}];t.default=o},47158:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},47446:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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"]]}}}]},99966:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"data",components:[{key:"dataType",ignore:!0}]},{key:"validation",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=i(n(20481)),o=i(n(69541));function i(e){return e&&e.__esModule?e:{default:e}}},14224:function(e,t,n){"use strict";n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(78783),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(68309),n(41539),n(66992),n(33948),n(69600),n(21249),n(57327),n(47941),n(54747),n(39714),n(69826),n(30489);var r=i(n(96486)),o=i(n(44311));function i(e){return e&&e.__esModule?e:{default: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},a(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=c(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},u.apply(this,arguments)}function c(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function d(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}
2function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(v,e);var t,n,i,c,h,m=(c=v,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(c);if(h){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function v(){var e;s(this,v);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=m.call.apply(m,[this].concat(n))).validators=e.validators.concat("minSelectedCount","maxSelectedCount"),e}return t=v,n=[{key:"init",value:function(){u(p(v.prototype),"init",this).call(this),this.component.inputType="checkbox"}},{key:"defaultSchema",get:function(){return v.schema()}},{key:"inputInfo",get:function(){var e=u(p(v.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,t){return t.value&&(e[t.value]=!1),e}),{})}},{key:"defaultValue",get:function(){var e=this.emptyValue;return r.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,t=!0;for(var n in e)if(e.hasOwnProperty(n)&&e[n]){t=!1;break}return t}},{key:"getValue",value:function(){if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var e={};return r.default.each(this.refs.input,(function(t){e[t.value]=!!t.checked})),e}},{key:"normalizeValue",value:function(e){return"object"!==a(e=e||{})&&(e="string"==typeof e?(n=e,n in(t={})?Object.defineProperty(t,n,{value:!0,enumerable:!0,configurable:!0,writable:!0}):t[n]=!0,t):{}),Array.isArray(e)&&r.default.each(e,(function(t){e[t]=!0})),e;var t,n}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.updateValue(e,t);return e=this.dataValue,this.isHtmlRenderMode()?n&&this.redraw():r.default.each(this.refs.input,(function(t){r.default.isUndefined(e[t.value])&&(e[t.value]=!1),t.checked=!!e[t.value]})),n}},{key:"getValueAsString",value:function(e){return e?(0,r.default)(this.component.values||[]).filter((function(t){return e[t.value]})).map("label").join(", "):""}},{key:"setSelectedClasses",value:function(){var e=this;if(this.refs.wrapper){var t=this.dataValue,n=Object.keys(t);this.refs.wrapper.forEach((function(r,o){var i=n[o],a=e.refs.input[o];(null==a?void 0:a.value.toString())!==i&&(i=n.find((function(e){return(null==a?void 0:a.value.toString())===e})));var s=t[i];s&&i?(e.addClass(r,e.optionSelectedClass),a.setAttribute("checked","true")):!s&&i&&(e.removeClass(r,e.optionSelectedClass),a.removeAttribute("checked"))}))}}},{key:"setInputsDisabled",value:function(e,t){this.refs.input&&this.refs.input.forEach((function(n){(t&&!n.checked||!t)&&(n.disabled=e)}))}},{key:"checkComponentValidity",value:function(e,t,n,r){var o=this,i=this.component.validate.minSelectedCount,a=this.component.validate.maxSelectedCount,s=this.isValid(e,t);if(a||i){var l=Object.keys(this.validationValue).reduce((function(e,t){return o.validationValue[t]&&e++,e}),0);if(a&&l>=a?this.setInputsDisabled(!0,!0):a&&!this.shouldDisabled&&this.setInputsDisabled(!1),!s&&a&&l>a){var c=this.t(this.component.maxSelectedCountMessage||"You can only select up to {{maxCount}} items.",{maxCount:a});return this.setCustomValidity(c,t),!1}if(!s&&i&&l<i){this.setInputsDisabled(!1);var f=this.t(this.component.minSelectedCountMessage||"You must select at least {{minCount}} items.",{minCount:i});return this.setCustomValidity(f,t),!1}}return u(p(v.prototype),"checkComponentValidity",this).call(this,e,t,n,r)}}],i=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.schema.apply(o.default,[{type:"selectboxes",label:"Select Boxes",key:"selectBoxes",inline:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Select Boxes",group:"basic",icon:"plus-square",weight:60,documentation:"/userguide/#selectboxes",schema:v.schema()}}}],n&&l(t.prototype,n),i&&l(t,i),v}(o.default);t.default=h},69541:function(e,t){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},66369:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=s(n(39086)),o=s(n(59897)),i=s(n(82257)),a=s(n(20994));function s(e){return e&&e.__esModule?e:{default:e}}},14051:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(41539),n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(30489);var o=s(n(17672)),i=s(n(63820)),a=s(n(96486));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=f(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},c.apply(this,arguments)}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(v,e);var t,n,r,s,f,m=(s=v,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(s);if(f){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return p(this,e)});function v(){return l(this,v),m.apply(this,arguments)}return t=v,n=[{key:"init",value:function(){var e,t,n,r;c(h(v.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&&this.options.pdf&&null!==(e=this.component.overlay)&&void 0!==e&&e.width&&null!==(t=this.component.overlay)&&void 0!==t&&t.height&&(this.ratio=(null===(n=this.component.overlay)||void 0===n?void 0:n.width)/(null===(r=this.component.overlay)||void 0===r?void 0:r.height),this.component.width="100%",this.component.height="auto")}},{key:"emptyValue",get:function(){return""}},{key:"defaultSchema",get:function(){return v.schema()}},{key:"inputInfo",get:function(){var e=c(h(v.prototype),"inputInfo",this);return e.type="input",e.attr.type="hidden",e}},{key:"className",get:function(){return"".concat(c(h(v.prototype),"className",this)," signature-pad")}},{key:"labelIsHidden",value:function(){return this.component.hideLabel}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=c(h(v.prototype),"setValue",this).call(this,e,t);return this.refs.signatureImage&&(this.options.readOnly||this.disabled)&&(this.refs.signatureImage.setAttribute("src",e),this.showCanvas(!1)),this.signaturePad&&(e?n&&this.triggerChange():this.signaturePad.clear()),this.signaturePad&&this.dataValue&&this.signaturePad.isEmpty()&&this.setDataToSigaturePad(),n}},{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"))}},{key:"onDisabled",value:function(){this.showCanvas(!c(h(v.prototype),"disabled",this)),this.signaturePad&&(c(h(v.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,t){if(this.refs.padBody&&(e||this.refs.padBody&&this.refs.padBody.offsetWidth!==this.currentWidth)){this.scale=e?t:this.scale,this.currentWidth=this.refs.padBody.offsetWidth;var n=this.currentWidth*this.scale;this.refs.canvas.width=n;var r=this.ratio?n/this.ratio:this.refs.padBody.offsetHeight*this.scale;this.refs.canvas.height=r,this.refs.canvas.style.maxWidth="".concat(this.currentWidth*this.scale,"px"),this.refs.canvas.style.maxHeight="".concat(this.refs.padBody.offsetHeight*this.scale,"px");var o=this.refs.canvas.getContext("2d");o.setTransform(1,0,0,1,0,0),o.scale(1/this.scale,1/this.scale),o.fillStyle=this.signaturePad.backgroundColor,o.fillRect(0,0,this.refs.canvas.width,this.refs.canvas.height),this.signaturePad.clear(),this.dataValue&&this.setDataToSigaturePad()}}},{key:"renderElement",value:function(e,t){return this.renderTemplate("signature",{element:c(h(v.prototype),"renderElement",this).call(this,e,t),required:a.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 t=this;this.loadRefs(e,{canvas:"single",refresh:"single",padBody:"single",signatureImage:"single"});var n=c(h(v.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 o.default(this.refs.canvas,{minWidth:this.component.minWidth,maxWidth:this.component.maxWidth,penColor:this.component.penColor,backgroundColor:this.component.backgroundColor}),this.signaturePad.onEnd=function(){return t.setValue(t.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.addEventListener(window,"resize",a.default.debounce((function(){return t.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(),t.showCanvas(!0),t.signaturePad.clear(),t.setValue(t.defaultValue)})),this.setValue(this.dataValue),n}},{key:"detach",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.signaturePad&&this.signaturePad.off(),this.signaturePad=null,this.currentWidth=0,c(h(v.prototype),"detach",this).call(this)}},{key:"getValueAsString",value:function(e){return 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})}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.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}
2].concat(t))}},{key:"builderInfo",get:function(){return{title:"Signature",group:"advanced",icon:"pencil",weight:120,documentation:"/userguide/#signature",schema:v.schema()}}}],n&&u(t.prototype,n),r&&u(t,r),v}(i.default);t.default=m},59897:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0},{key:"dbIndex",ignore:!0}]},82257:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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 t,n=e.options;return"pdf"===(null==n||null===(t=n.editForm)||void 0===t?void 0:t.display)},input:!0},{type:"textfield",input:!0,key:"backgroundColor",label:"Background 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}]},20994:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"unique",ignore:!0},{key:"validateOn",ignore:!0}]},68427:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=s(n(39086)),o=s(n(78499)),i=s(n(80327)),a=s(n(60895));function s(e){return e&&e.__esModule?e:{default:e}}},55655:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(83593),n(82526),n(41817),n(32165),n(78783),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(41539),n(54747),n(68309),n(66992),n(33948),n(92222),n(69826),n(30489);var o=s(n(96486)),i=s(n(68093)),a=n(82531);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n,r){return c="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=d(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(r,t,n);return!0},c(e,t,n,r)}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=d(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},f.apply(this,arguments)}function d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(y,e);var t,n,r,s,d,v=(s=y,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(s);if(d){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function y(){return l(this,y),v.apply(this,arguments)}return t=y,n=[{key:"defaultSchema",get:function(){return y.schema()}},{key:"render",value:function(){return f(m(y.prototype),"render",this).call(this,this.renderTemplate("survey"))}},{key:"attach",value:function(e){var t=this;
2this.loadRefs(e,{input:"multiple"});var n=f(m(y.prototype),"attach",this).call(this,e);return this.refs.input.forEach((function(e){t.disabled?e.setAttribute("disabled","disabled"):t.addEventListener(e,"change",(function(){return t.updateValue(null,{modified:!0})}))})),this.setValue(this.dataValue),n}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;o.default.each(this.component.questions,(function(n){o.default.each(t.refs.input,(function(r){r.name===t.getInputName(n)&&(r.checked=r.value===e[n.value])}))}));var r=this.updateValue(e,n);return r&&this.isHtmlRenderMode()&&this.redraw(),r}},{key:"emptyValue",get:function(){return{}}},{key:"defaultValue",get:function(){var e=f(m(y.prototype),"defaultValue",this);if(e&&!o.default.isObject(e)&&this.component.values.some((function(t){return t.value===e}))){var t={};return this.component.questions.forEach((function(n){t[n.value]=e})),t}return e}},{key:"getValue",value:function(){var e=this;if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var t={};return o.default.each(this.component.questions,(function(n){o.default.each(e.refs.input,(function(r){if(r.checked&&r.name===e.getInputName(n))return t[n.value]=r.value,!1}))})),t}},{key:"disabled",get:function(){return f(m(y.prototype),"disabled",this)},set:function(e){(function(e,t,n,r,o){if(!c(e,t,n,r||e)&&o)throw new Error("failed to set property")})(m(y.prototype),"disabled",e,this,!0),o.default.each(this.refs.input,(function(e){e.disabled=!0}))}},{key:"validateRequired",value:function(e,t){return!(0,a.boolValue)(e)||this.component.questions.reduce((function(e,n){return e&&Boolean(t[n.value])}),!0)}},{key:"getInputName",value:function(e){return"".concat(this.options.name,"[").concat(e.value,"]")}},{key:"getValueAsString",value:function(e,t){var n=this;if(null!=t&&t.email){var r='\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 o.default.forIn(e,(function(e,t){var i=o.default.find(n.component.questions,["value",t]),a=o.default.find(n.component.values,["value",e]);i&&a&&(r+='\n <tr>\n <td style="text-align:center;padding: 5px 10px;">'.concat(i.label,'</td>\n <td style="text-align:center;padding: 5px 10px;">').concat(a.label,"</td>\n </tr>\n "))})),r+="</tbody></table>"}return f(m(y.prototype),"getValueAsString",this).call(this,e,t)}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"survey",label:"Survey",key:"survey",questions:[],values:[]}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Survey",group:"advanced",icon:"list",weight:110,documentation:"/userguide/#survey",schema:y.schema()}}}],n&&u(t.prototype,n),r&&u(t,r),y}(i.default);t.default=v},78499:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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"}]}]},80327:function(e,t){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"placeholder",ignore:!0}]},60895:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"validateOn",ignore:!0}]},39450:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=i(n(40970)),o=i(n(69671));function i(e){return e&&e.__esModule?e:{default:e}}},26135:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(74819),n(38880),n(12419),n(47941),n(82526),n(57327),n(49337),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(41539),n(39714),n(47042),n(21249),n(54747),n(30489);var o=s(n(96486)),i=s(n(1848)),a=s(n(24561));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(){return m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=v(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},m.apply(this,arguments)}function v(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(v,e);var t,n,r,s,l,c=(s=v,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(s);if(l){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function v(){var e;f(this,v);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=c.call.apply(c,[this].concat(n))).noField=!0,e}return t=v,r=[{key:"emptyTable",value:function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++)o.push({components:[]});n.push(o)}return n}},{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.default.schema.apply(a.default,[{label:"Table",type:"table",input:!1,key:"table",numRows:3,numCols:3,rows:v.emptyTable(3,3),header:[],caption:"",cloneRows:!1,striped:!1,bordered:!1,hover:!1,condensed:!1,persistent:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Table",group:"layout",icon:"table",weight:40,documentation:"/userguide/#table",schema:v.schema()}}}],(n=[{key:"defaultSchema",get:function(){return v.schema()}},{key:"schema",get:function(){var e=this,t=o.default.omit(m(y(v.prototype),"schema",this),"components");return t.rows=[],this.eachComponent((function(n){t.rows&&t.rows.length||(t.rows=v.emptyTable(e.component.numRows,e.component.numCols)),t.rows[n.tableRow]||(t.rows[n.tableRow]=[]),t.rows[n.tableRow][n.tableColumn]||(t.rows[n.tableRow][n.c
2olumn]={components:[]}),t.rows[n.tableRow][n.tableColumn].components.push(n.schema)})),t.rows.length||(t.rows=v.emptyTable(this.component.numRows,this.component.numCols)),t}},{key:"className",get:function(){var e="table-responsive ".concat(m(y(v.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;m(y(v.prototype),"init",this).call(this);for(var t=0;t<this.component.numRows;t++){this.component.rows[t]=this.component.rows[t]||[];for(var n=0;n<this.component.numCols;n++)this.component.rows[t][n]=this.component.rows[t][n]||{components:[]};this.component.rows[t]=this.component.rows[t].slice(0,this.component.numCols)}this.component.rows=this.component.rows.slice(0,this.component.numRows);var r=[];this.table=[],o.default.each(this.component.rows,(function(t,n){e.table[n]=[],o.default.each(t,(function(t,a){e.table[n][a]=[],e.component.cloneRows&&(t.components.length?r[a]=t:r[a]&&(t.components=o.default.cloneDeep(r[a].components),i.default.uniquify(e.root._form.components,t))),o.default.each(t.components,(function(t){var r;e.builderMode?(t.id=t.id+n,r=t):r=u(u({},t),{},{id:t.id+n});var o=e.createComponent(r);o.tableRow=n,o.tableColumn=a,e.table[n][a].push(o)}))}))}))}},{key:"render",value:function(){var e=this;return m(y(v.prototype),"render",this).call(this,this.renderTemplate("table",{cellClassName:this.cellClassName,tableKey:this.tableKey,colWidth:this.colWidth,tableComponents:this.table.map((function(t){return t.map((function(t){return e.renderComponents(t)}))}))}))}},{key:"attach",value:function(e){var t=this,n=this.table.reduce((function(e,n,r){return e["".concat(t.tableKey,"-").concat(r)]="multiple",e}),{});this.loadRefs(e,n);var r=m(y(v.prototype),"attach",this).call(this,e);return this.table.forEach((function(e,n){e.forEach((function(e,r){t.attachComponents(t.refs["".concat(t.tableKey,"-").concat(n)][r],t.table[n][r],t.component.rows[n][r].components)}))})),r}},{key:"destroy",value:function(e){m(y(v.prototype),"destroy",this).call(this,e),delete this.table}}])&&d(t.prototype,n),r&&d(t,r),v}(a.default);t.default=b},69671:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},5657:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=i(n(40970)),o=i(n(26156));function i(e){return e&&e.__esModule?e:{default:e}}},53700:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(74819),n(38880),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(91038),n(47042),n(68309),n(74916),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(21249),n(41539),n(54747),n(34553),n(57327),n(26699),n(32023),n(30489);var o=a(n(96486)),i=a(n(24561));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(){return h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=m(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},h.apply(this,arguments)}function m(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(y,e);var t,n,r,a,l,m=(a=y,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(a);if(l){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return p(this,e)});function y(){var e;c(this,y);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=m.call.apply(m,[this].concat(n))).currentTab=0,e.noField=!0,e}return t=y,n=[{key:"defaultSchema",get:function(){return y.schema()}},{key:"schema",get:function(){var e=this,t=h(v(y.prototype),"schema",this),n=o.default.cloneDeep(this.component.components);return t.components=n.map((function(t,n){return t.components=e.tabs[n].map((function(e){return e.schema})),t})),t}},{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=[],o.default.each(this.component.components,(function(t,n){e.tabs[n]=[],t.components=t.components||[],o.default.each(t.components,(function(t){var r=e.createComponent(t);r.tab=n,e.tabs[n].push(r)}))}
2))}},{key:"render",value:function(){var e=this;return h(v(y.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(t){return e.renderComponents(t)}))},this.options.flatten||this.options.pdf?"flat":null))}},{key:"attach",value:function(e){var t,n=this;this.loadRefs(e,(u(t={},this.tabLinkKey,"multiple"),u(t,this.tabKey,"multiple"),u(t,this.tabLikey,"multiple"),t)),["change","error"].forEach((function(e){return n.on(e,n.handleTabsValidation.bind(n))}));var r=h(v(y.prototype),"attach",this).call(this,e);return this.refs[this.tabLinkKey].forEach((function(e,t){n.addEventListener(e,"click",(function(e){e.preventDefault(),n.setTab(t)}))})),this.refs[this.tabKey].forEach((function(e,t){n.attachComponents(e,n.tabs[t],n.component.components[t].components)})),r}},{key:"detach",value:function(e){h(v(y.prototype),"detach",this).call(this,e)}},{key:"setTab",value:function(e){var t=this;this.tabs&&this.tabs[e]&&this.refs[this.tabKey]&&this.refs[this.tabKey][e]&&(this.currentTab=e,o.default.each(this.refs[this.tabKey],(function(e){t.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",o.default.each(this.refs[this.tabLinkKey],(function(e,n){t.refs[t.tabLinkKey][n]&&t.removeClass(e,"formio-tab-link-active"),t.refs[t.tabLikey][n]&&t.removeClass(t.refs[t.tabLikey][n],"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 t=this.tabs.findIndex((function(t){return t.some((function(t){return t===e}))}));-1!==t&&this.currentTab!==t&&this.setTab(t)}},{key:"setErrorClasses",value:function(e,t,n,r){var o=this,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.element;this.component.modalEdit&&h(v(y.prototype),"setErrorClasses",this).call(this,e,t,n,r,i),e.forEach((function(e){o.addClass(e,"is-invalid"),"openModal"!==e.getAttribute("ref")&&(o.options.highlightErrors?o.addClass(e,"tab-error"):o.addClass(e,"has-error"))}))}},{key:"clearErrorClasses",value:function(e){var t=this;if(this.component.modalEdit){var n=Array.isArray(e)||e instanceof NodeList?this.element:e;h(v(y.prototype),"clearErrorClasses",this).call(this,n)}(e=Array.isArray(e)||e instanceof NodeList?e:[e]).forEach((function(e){t.removeClass(e,"is-invalid"),t.removeClass(e,"tab-error"),t.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,t,n){return t.some((function(e){return!!e.error}))?[].concat(s(e),[n]):e}),[]);if(e.length){var t=s(this.refs[this.tabLinkKey]).filter((function(t,n){return e.includes(n)}));this.setErrorClasses(t)}}}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{label:"Tabs",type:"tabs",input:!1,key:"tabs",persistent:!1,tableView:!1,components:[{label:"Tab 1",key:"tab1",components:[]}],verticalLayout:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Tabs",group:"layout",icon:"folder-o",weight:50,documentation:"/userguide/#tabs",schema:y.schema()}}}],n&&f(t.prototype,n),r&&f(t,r),y}(i.default);t.default=y},26156:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},28145:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"data",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=i(n(39086)),o=i(n(41770));function i(e){return e&&e.__esModule?e:{default:e}}},16186:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(83593),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(41539),n(73210),n(69600),n(57327),n(74916),n(23123),n(21249),n(39714),n(92222),n(30489);var o,i,a=(o=n(63820))&&o.__esModule?o:{default:o};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n,r){return u="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=f(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(r,t,n);return!0},u(e,t,n,r)}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=f(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},c.apply(this,arguments)}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}"undefined"!=typeof window&&(i=n(57062));var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(v,e);var t,n,r,o,f,m=(o=v,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(o);if(f){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return p(this,e)});function v(){return s(this,v),m.apply(this,arguments)}return t=v,n=[{key:"init",value:function(){c(h(v.prototype),"init",this).call(this)}},{key:"emptyValue",get:function(){return"string"===this.component.storeas?"":[]}},{key:"defaultSchema",get:function(){return v.schema()}},{key:"inputInfo",get:function(){var e=c(h(v.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,t){var n=this;if(c(h(v.prototype),"attachElement",this).call(this,e,t),e&&(e.setAttribute("dir",this.i18next.dir()),this.choices&&this.choices.destroy(),i)){var r=!!this.component.placeholder;this.choices=new i(e,{delimiter:this.delimiter,editItems:!0,maxItemCount:this.component.maxTags,removeItemButton:!0,duplicateItemsAllowed:!1,shadowRoot:this.root?this.root.shadowRoot:null,placeholder:r,placeholderValue:r?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=n.choices.input.value,t=n.component.maxTags,r=n.choices.getValue(!0).length,o=n.choices.getValue(!0).some((function(t){return t.trim()===e.trim()}));e&&(t&&r===t?(n.choices.addItems=!1,n.choices.clearInput()):o?n.choices.clearInput():(n.choices.setValue([e]),n.choices.clearInput(),n.choices.hideDropdown(!0),n.updateV
2alue(null,{modified:!0})))}))}}},{key:"detach",value:function(){c(h(v.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 t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=c(h(v.prototype),"setValue",this).call(this,e,n);if(this.choices){var o=this.dataValue;if(this.choices.removeActiveItems(),o){"string"==typeof o&&(o=o.split(this.delimiter).filter((function(e){return e})));var i=Array.isArray(o)?o:[o];this.choices.setValue(i.map((function(e){return t.sanitize(e,t.shouldSanitizeValue)})))}}return r}},{key:"disabled",get:function(){return c(h(v.prototype),"disabled",this)},set:function(e){(function(e,t,n,r,o){if(!u(e,t,n,r||e)&&o)throw new Error("failed to set property")})(h(v.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(", ");var t=e.toString();return this.sanitize(t,this.shouldSanitizeValue)}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.default.schema.apply(a.default,[{type:"tags",label:"Tags",key:"tags",delimeter:",",storeas:"string",maxTags:0}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Tags",icon:"tags",group:"advanced",documentation:"/userguide/#tags",weight:30,schema:v.schema()}}}],n&&l(t.prototype,n),r&&l(t,r),v}(a.default);t.default=m},41770:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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"}]}}]},3611:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"validation",components:i.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);
2var r=a(n(53983)),o=a(n(64699)),i=a(n(94799));function a(e){return e&&e.__esModule?e:{default:e}}},6610:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(68309),n(21249),n(41539),n(24603),n(74916),n(39714),n(15306),n(54747),n(30489);var o=l(n(8745)),i=l(n(96486)),a=l(n(91459)),s=n(82531);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=d(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},f.apply(this,arguments)}function d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(y,e);var t,n,r,l,d,v=(l=y,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(l);if(d){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function y(){return u(this,y),v.apply(this,arguments)}return t=y,n=[{key:"init",value:function(){f(m(y.prototype),"init",this).call(this),this.editors=[],this.editorsReady=[],this.updateSizes=[],this.options.submitOnEnter=!1}},{key:"defaultSchema",get:function(){return y.schema()}},{key:"inputInfo",get:function(){var e=f(m(y.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,t){var n=this.inputInfo;if(n.attr=n.attr||{},n.content=e,(this.options.readOnly||this.disabled)&&!this.isHtmlRenderMode()){var r=this.info.attr.style||"",o='<div ref="input" class="formio-editor-read-only-content" '.concat(r?"style='".concat(r,"'"):"","></div>");return this.renderTemplate("well",{children:o,nestedKey:this.key,value:e})}return this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:n,value:e,index:t})}},{key:"autoExpand",get:function(){return this.component.autoExpand}},{key:"updateEditorValue",value:function(e,t){t=this.getConvertedValue(this.trimBlanks(t));var n=this.dataValue;if(this.component.multiple&&Array.isArray(n)){var r=i.default.clone(n);r[e]=t,t=r}i.default.isEqual(t,n)||i.default.isEmpty(t)&&i.default.isEmpty(n)||this.updateValue(t,{modified:!this.autoModified},e),this.autoModified=!1}},{key:"attachElement",value:function(e,t){var n=this;if(this.autoExpand&&(this.isPlain||this.options.readOnly||this.options.htmlView)&&"TEXTAREA"===e.nodeName&&this.addAutoExpanding(e,t),this.options.readOnly)return e;this.component.wysiwyg&&!this.component.editor&&(this.component.editor="
2ckeditor");var r=i.default.isEmpty(this.component.wysiwyg)?this.wysiwygDefault[this.component.editor]||this.wysiwygDefault.default:this.component.wysiwyg;return this.editorsReady[t]=new a.default((function(o){switch(n.component.editor){case"ace":r||(r={}),r.mode=n.component.as?"ace/mode/".concat(n.component.as):"ace/mode/javascript",n.addAce(e,r,(function(e){return n.updateEditorValue(t,e)})).then((function(e){n.editors[t]=e;var r=n.dataValue;return r=n.component.multiple&&Array.isArray(r)?r[t]:r,e.setValue(n.setConvertedValue(r,t)),o(e),e})).catch((function(e){return console.warn(e)}));break;case"quill":(r.hasOwnProperty("toolbarGroups")||r.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."),r=n.wysiwygDefault.quill),n.addQuill(e,r,(function(){return n.updateEditorValue(t,n.editors[t].root.innerHTML)})).then((function(e){if(n.editors[t]=e,n.component.isUploadEnabled){var r=n;e.getModule("uploader").options.handler=function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];(e=r.imageHandler).call.apply(e,[r,this].concat(n))}}e.root.spellcheck=n.component.spellcheck,(n.options.readOnly||n.disabled)&&e.disable();var i=n.dataValue;return i=n.component.multiple&&Array.isArray(i)?i[t]:i,e.setContents(e.clipboard.convert({html:n.setConvertedValue(i,t)})),o(e),e})).catch((function(e){return console.warn(e)}));break;case"ckeditor":(r=r||{}).rows=n.component.rows,n.addCKE(e,r,(function(e){return n.updateEditorValue(t,e)})).then((function(e){n.editors[t]=e;var r=n.dataValue;r=n.component.multiple&&Array.isArray(r)?r[t]:r;var a=n.setConvertedValue(r,t),l=n.options.readOnly||n.disabled;if((0,s.getBrowserInfo)().ie)e.on("instanceReady",(function(){e.setReadOnly(l),e.setData(a)}));else{var u=parseInt(n.component.rows,10);if(i.default.isFinite(u)&&i.default.has(e,"ui.view.editable.editableElement")){var c=31*u+14;e.ui.view.editable.editableElement.style.height="".concat(c,"px")}e.isReadOnly=l,e.data.set(a)}return o(e),e}));break;default:f(m(y.prototype),"attachElement",n).call(n,e,t)}})),e}},{key:"attach",value:function(e){var t=f(m(y.prototype),"attach",this).call(this,e);return this.restoreValue(),t}},{key:"imageHandler",value:function(e,t,n){var r=this,o=e.quill;if(n&&n.length){o.enable(!1);var i,a=this.component,l=a.uploadStorage,u=a.uploadUrl,c=a.uploadOptions,f=a.uploadDir,d=a.fileKey;this.fileService.uploadFile(l,n[0],(0,s.uniqueName)(n[0].name),f||"",null,u,c,d).then((function(e){return i=e,r.fileService.downloadFile(e)})).then((function(e){o.enable(!0);var n=Quill.import("delta");o.updateContents((new n).retain(t.index).delete(t.length).insert({image:e.url},{alt:JSON.stringify(i)}),Quill.sources.USER)})).catch((function(e){console.warn("Quill image upload failed"),console.warn(e),o.enable(!0)}))}else console.warn("No files selected")}},{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,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(f(m(y.prototype),"setValueAt",this).call(this,e,t,r),this.editorsReady[e]){var o=function(r){return function(o){if(!r.skipWysiwyg)switch(n.autoModified=!0,n.component.editor){case"ace":o.setValue(n.setConvertedValue(t,e));break;case"quill":if(n.component.isUploadEnabled)n.setAsyncConvertedValue(t).then((function(e){var t=o.clipboard.convert({html:e});o.setContents(t)}));else{var i=n.setConvertedValue(t,e),a=o.clipboard.convert({html:i});o.setContents(a)}break;case"ckeditor":o.data.set(n.setConvertedValue(t,e))}}};this.editorsReady[e].then(o(i.default.clone(r)))}}},{key:"setValue",value:function(e){var t=this,n=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,n){return t.setConvertedValue(e,n)})):this.setConvertedValue(e),f(m(y.prototype),"setValue",this).call(this,e,n)):(n.skipWysiwyg=i.default.isEqual(e,this.getValue()),f(m(y.prototype),"setValue",this).call(this,e,n))}},{key:"setContent",value:function(e,t,n){f(m(y.prototype),"setContent",this).call(this,e,t,n,{addAttr:["allow","allowfullscreen","frameborder","scrolling"],addTags:["iframe"]})}},{key:"setReadOnlyValue",value:function(e,t){t=t||0,(this.options.readOnly||this.disabled)&&this.refs.input&&this.refs.input[t]&&("plain"===this.component.inputFormat?this.refs.input[t].innerText=this.interpolate(e,{},{noeval:!0}):this.setContent(this.refs.input[t],this.interpolate(e,{},{noeval:!0}
2),this.shouldSanitizeValue))}},{key:"isJsonValue",get:function(){return this.component.as&&"json"===this.component.as}},{key:"setConvertedValue",value:function(e,t){if(this.isJsonValue&&!i.default.isNil(e))try{e=JSON.stringify(e,null,2)}catch(e){console.warn(e)}return i.default.isString(e)||(e=""),this.setReadOnlyValue(e,t),e}},{key:"setAsyncConvertedValue",value:function(e){if(this.isJsonValue&&e)try{e=JSON.stringify(e,null,2)}catch(e){console.warn(e)}i.default.isString(e)||(e="");var t=(new DOMParser).parseFromString(e,"text/html"),n=t.getElementsByTagName("img");return n.length?this.setImagesUrl(n).then((function(){return e=t.getElementsByTagName("body")[0].innerHTML})):a.default.resolve(e)}},{key:"setImagesUrl",value:function(e){var t=this;return a.default.all(i.default.map(e,(function(e){var n;try{n=JSON.parse(e.getAttribute("alt"))}catch(e){console.warn(e)}return t.fileService.downloadFile(n).then((function(t){e.setAttribute("src",t.url)}))})))}},{key:"addAutoExpanding",value:function(e,t){var n=null,r=null,o=function(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t},a=function(){0!==e.scrollHeight&&function(t,r){for(var o=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&o.push({node:t.parentNode,scrollTop:t.parentNode.scrollTop}),t=t.parentNode;e.style.height="",e.style.height="".concat(e.scrollHeight+n,"px"),o.forEach((function(e){e.node.scrollTop=e.scrollTop}))}(e)},s=i.default.debounce((function(){a();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),i=e.offsetHeight;i<t&&"hidden"===n.overflowY?o("scroll"):"hidden"!==n.overflowY&&o("hidden"),a(),i=e.offsetHeight,r!==i&&(r=i,s())}),200),l=window.getComputedStyle(e,null);e.style.resize="none",n=parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth)||0,window&&this.addEventListener(window,"resize",s),this.addEventListener(e,"input",s),this.on("initialized",s),this.updateSizes[t]=s,s()}},{key:"trimBlanks",value:function(e){if(!e||this.isPlain)return e;var t=function(e){var t="<p> </p>",n="<p><br></p>",r="<p><br> </p>",o=new RegExp("^".concat(t,"|").concat(t,"$|^").concat(n,"|").concat(n,"$|^").concat(r,"|").concat(r,"$"),"g");return"string"==typeof e?e.replace(o,""):e};return Array.isArray(e)?e.forEach((function(n,r){e[r]=t(n)})):e=t(e),e}},{key:"onChange",value:function(e,t){var n=f(m(y.prototype),"onChange",this).call(this,e,t);
2return this.updateSizes.forEach((function(e){return e()})),n}},{key:"hasChanged",value:function(e,t){return f(m(y.prototype),"hasChanged",this).call(this,this.trimBlanks(e),this.trimBlanks(t))}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return f(m(y.prototype),"isEmpty",this).call(this,this.trimBlanks(e))}},{key:"defaultValue",get:function(){var e=f(m(y.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(t){return e.removeEventListener(window,"resize",t)})),this.updateSizes=[],f(m(y.prototype),"detach",this).call(this)}},{key:"getValue",value:function(){return this.isPlain?this.getConvertedValue(f(m(y.prototype),"getValue",this).call(this)):this.dataValue}},{key:"focus",value:function(){switch(f(m(y.prototype),"focus",this).call(this),this.component.editor){case"ckeditor":var e,t;null!==(e=this.editors[0].editing)&&void 0!==e&&null!==(t=e.view)&&void 0!==t&&t.focus&&this.editors[0].editing.view.focus(),this.element.scrollIntoView();break;case"ace":this.editors[0].focus(),this.element.scrollIntoView();break;case"quill":this.editors[0].focus()}}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.schema.apply(o.default,[{type:"textarea",label:"Text Area",key:"textArea",rows:3,wysiwyg:!1,editor:"",fixedSize:!0,inputFormat:"html",validate:{minWords:"",maxWords:""}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Text Area",group:"basic",icon:"font",documentation:"/userguide/#textarea",weight:20,schema:y.schema()}}}],n&&c(t.prototype,n),r&&c(t,r),y}(o.default);t.default=v},64699:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(21249);var r,o=(r=n(96486))&&r.__esModule?r:{default:r},i=n(19161),a=[{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 o.default.map(i.GlobalFormio.Providers.getProviders("storage"),(function(e,t){return{label:e.title,value:t}}))}},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
2ing",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,t,n,r,o){return o?o.wysiwygDefault:""},conditional:{json:{or:[{"===":[{var:"data.editor"},"ace"]},{"===":[{var:"data.editor"},"ckeditor"]},{"===":[{var:"data.editor"},"quill"]}]}},weight:417}];t.default=a},94799:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},53983:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=s(n(39086)),o=s(n(86297)),i=s(n(58054)),a=s(n(64082));function s(e){return e&&e.__esModule?e:{default:e}}},8745:function(e,t,n){"use strict";n(74819),n(38880),n(12419),n(47941),n(82526),n(57327),n(54747),n(49337),n(41817),n(32165),n(66992),n(78783),n(33948),n(4129),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(21249),n(73210),n(41539),n(39714),n(74916),n(15306),n(92222),n(30489);var r=l(n(63820)),o=n(47853),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(82531)),a=l(n(91459));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}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},u(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function m(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(){return v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=y(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},v.apply(this,arguments)}function y(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(y,e);var t,n,s,l,c,d=(l=y,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=b(l);
2if(c){var n=b(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return m(this,e)});function y(e,t,n){var r,o,i,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y);var s=(null===(r=(a=d.call(this,e,t,n)).component.widget)||void 0===r?void 0:r.timezone)||a.options.timezone,l=(null===(o=a.component.widget)||void 0===o?void 0:o.displayInTimezone)||"viewer";return"calendar"===(null===(i=a.component.widget)||void 0===i?void 0:i.type)&&(a.component.widget=f(f({},a.component.widget),{},{readOnly:a.options.readOnly,timezone:s,displayInTimezone:l,locale:a.options.language,saveAs:"text"})),a}return t=y,n=[{key:"defaultSchema",get:function(){return y.schema()}},{key:"inputInfo",get:function(){var e=v(b(y.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="input",e}},{key:"emptyValue",get:function(){return""}},{key:"attach",value:function(e){return this.loadRefs(e,{valueMaskInput:"single"}),v(b(y.prototype),"attach",this).call(this,e)}},{key:"maskValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&"object"===u(e)||(e={value:e,maskName:this.component.inputMasks[0].label}),!e.value){var n=t.noDefault?this.emptyValue:this.defaultValue;e.value=Array.isArray(n)?n[0]:n}return e}},{key:"normalizeValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isMultipleMasksField?Array.isArray(e)?v(b(y.prototype),"normalizeValue",this).call(this,e.map((function(e){return t.maskValue(e,n)}))):v(b(y.prototype),"normalizeValue",this).call(this,this.maskValue(e,n)):v(b(y.prototype),"normalizeValue",this).call(this,e)}},{key:"setValueAt",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.isMultipleMasksField)return v(b(y.prototype),"setValueAt",this).call(this,e,t,n);var r=(t=this.maskValue(t,n)).value||"",a=this.refs.mask?this.refs.mask[e]:null,s=this.refs.select?this.refs.select[e]:null,l=this.getMaskPattern(t.maskName);if(!(a&&s&&l))return v(b(y.prototype),"setValueAt",this).call(this,e,r,n);var u=this.placeholderChar;a.value=(0,o.conformToMask)(r,i.getInputMask(l),{placeholderChar:u}).conformedValue,s.value=t.maskName}},{key:"unmaskValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.component.displayMask,n=i.getInputMask(t,this.placeholderChar);return i.unmaskValue(e,n,this.placeholderChar)}},{key:"getValueAt",value:function(e){if(!this.isMultipleMasksField){var t,n,r=v(b(y.prototype),"getValueAt",this).call(this,e),o=this.component.inputMask,i=this.component.displayMask;return o&&!i||i===o?r:i&&!o?this.unmaskValue(r,i):null!==(t=this.refs.valueMaskInput)&&void 0!==t&&t.mask?(this.refs.valueMaskInput.mask.textMaskInputElement.update(r),null===(n=this.refs.valueMaskInput)||void 0===n?void 0:n.value):r}var a=this.refs.mask?this.refs.mask[e]:null,s=this.refs.select?this.refs.select[e]:null;return{value:a?a.value:void 0,maskName:s?s.value:void 0}}},{key:"isHtmlRenderMode",value:function(){return v(b(y.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(y.prototype),"isEmpty",this).call(this,e)||(this.component.multiple?0===e.length:!e.maskName||!e.value):v(b(y.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(y.prototype),"validationValue",this);return e&&this.component.truncateMultipleSpaces?this.truncateMultipleSpaces(e):e}},{key:"beforeSubmit",value:function(){var e=this,t=this.dataValue;
2return this.component.truncateMultipleSpaces&&t?(t=this.truncateMultipleSpaces(t),this.dataValue=t,a.default.resolve(t).then((function(){return v(b(y.prototype),"beforeSubmit",e).call(e)}))):a.default.resolve(t)}}],s=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.schema.apply(r.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(t))}},{key:"builderInfo",get:function(){return{title:"Text Field",icon:"terminal",group:"basic",documentation:"/userguide/#textfield",weight:0,schema:y.schema()}}}],n&&p(t.prototype,n),s&&p(t,s),y}(r.default);t.default=g},86297:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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"}]},58054:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(22457)),o=i(n(96486));function i(e){return e&&e.__esModule?e:{default:e}}var a=[{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=o.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 t=e.instance.calculatedValue,n=e.data.widget.type;if(o.default.isEmpty(o.default.omit(e.data.widget,"type"))||o.default.isEmpty(o.default.omit(t,"type"))){if(t&&!t.type)return e.data.widget;var i=e.instance._currentForm.options.editComponent.widget;if(i&&!o.default.isEmpty(o.default.omit(i,"type"))&&n===i.type)return o.default.omit(i,"language");if(n)return o.default.omit(r.default[n].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: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
2y:"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}];t.default=a},64082:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},65105:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"data",components:o.default},{key:"display",components:i.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=a(n(3248)),o=a(n(60480)),i=a(n(21992));function a(e){return e&&e.__esModule?e:{default:e}}},8948:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(41539),n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(91038),n(68309),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(21249),n(26699),n(32023),n(92222),n(47042),n(74916),n(15306),n(30489);var o=s(n(30381)),i=s(n(8745)),a=n(82531);function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=d(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},f.apply(this,arguments)}function d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v="HH:mm:ss",y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(y,e);var t,n,r,s,u,d=(s=y,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(s);if(u){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function y(e,t,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),r=d.call(this,e,t,n);var o=(0,a.getBrowserInfo)(),i=o.edge,s=o.version;
2return r.component.inputMask=r.getInputMaskFromFormat(r.component.format),r.component.inputType=i&&s<=18?"text":r.component.inputType||"time",r.rawData=r.component.multiple?[]:r.emptyValue,r}return t=y,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"time",label:"Time",key:"time",inputType:"time",format:"HH:mm",dataFormat:v}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Time",icon:"clock-o",group:"advanced",documentation:"/userguide/#time",weight:55,schema:y.schema()}}}],(n=[{key:"init",value:function(){f(m(y.prototype),"init",this).call(this),"text"===this.component.inputType&&this.validators.push("time")}},{key:"dataFormat",get:function(){return this.component.dataFormat||v}},{key:"defaultSchema",get:function(){return y.schema()}},{key:"defaultValue",get:function(){var e=this,t=f(m(y.prototype),"defaultValue",this);return this.component.multiple&&Array.isArray(t)?t=t.map((function(t){return t?e.getStringAsValue(t):t})):t&&(t=this.getStringAsValue(t)),t}},{key:"validationValue",get:function(){return Array.isArray(this.rawData)&&!this.rawData.length||!this.rawData?this.dataValue:this.rawData}},{key:"inputInfo",get:function(){var e=f(m(y.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(l(this.rawData.slice(0,e)),l(this.rawData.slice(e+1))):this.emptyValue,f(m(y.prototype),"removeValue",this).call(this,e)}},{key:"resetRawData",value:function(e){e?this.setRawValue(this.emptyValue,e):this.rawData=[]}},{key:"setRawValue",value:function(e,t){Array.isArray(this.rawData)?this.rawData[t]=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 t=this.refs.input[e].value;return t?(this.setRawValue(t,e),this.getStringAsValue(t)):(this.resetRawData(e),this.emptyValue)}},{key:"setValueAt",value:function(e,t){this.setRawValue(t?this.getValueAsString(t):t,e),this.refs.input[e].value=this.getRawValue(e)}},{key:"getStringAsValue",value:function(e){return e?(0,o.default)(e,this.component.format).format(this.component.dataFormat):e}},{key:"getValueAsString",value:function(e){return(e?(0,o.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 t=this;f(m(y.prototype),"addFocusBlurEvents",this).call(this,e),this.addEventListener(e,"blur",(function(){e.value=t.getValueAsString(e.value)}))}}])&&c(t.prototype,n),r&&c(t,r),y}(i.default);t.default=y},60480:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},21992:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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"}]}}
2,{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}]},59612:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(21249),n(57327),n(41539),n(92222),n(54747);var r,o=(r=n(96486))&&r.__esModule?r:{default:r};function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.data,s=void 0===a?{}:a,l=r.children,u=void 0===l?[]:l,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=c.checkNode,d=c.createComponents,p=c.isNew,h=void 0===p||p,m=c.removeComponents,v=c.parentPath,y=void 0===v?"":v;i(this,e),this.parent=t,this.previousData={},this.persistentData=o.default.cloneDeep(s),this.new=h,this.createComponents=d,this.checkNode=f,this.removeComponents=m,this.revertAvailable=!1,this.editing=!1,this.collapsed=!1,this.components=[],this.children=[],this.parentPath=y,this.resetData(),this.children=u.map((function(t,r){return new e(n,t,{checkNode:f,createComponents:d,isNew:!1,removeComponents:m,parentPath:n.getChildrenPath(r)})}))}var t,n;return t=e,(n=[{key:"value",get:function(){return this.new?null:{data:o.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!o.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(t){return t.eachChild(e)})),this}},{key:"getComponents",value:function(){return this.children.reduce((function(e,t){return e.concat(t.getComponents())}),this.components)}},{key:"validateNode",value:function(){var e=this,t=!0;return this.getComponents().forEach((function(n){n.setPristine(!1),t&=n.checkValidity(null,!1,e.persistentData)})),t}},{key:"addChild",value:function(){if(this.new)return null;var t=new e(this,{},{checkNode:this.checkNode,createComponents:this.createComponents,isNew:!0,removeComponents:this.removeComponents,parentPath:this.getChildrenPath(this.children.length)});return this.children=this.children.concat(t),t}},{key:"removeChild",value:function(e){return this.new||(this.children=this.children.filter((function(t){return t!==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=o.default.cloneDeep(this.data),this.clearComponents(),this}},{key:"resetData",value:function(){return this.data=o.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
2h((function(t){if(e.parentPath){var n=e.calculateComponentPath(t);t.path=n}})),this.checkNode(this)}},{key:"clearComponents",value:function(){this.removeComponents(this.components),this.components=[]}},{key:"calculateComponentPath",value:function(e){var t="";return e.component.key&&(t="".concat(this.parentPath,".data.").concat(e.component.key)),t}}])&&a(t.prototype,n),e}();t.default=s},69561:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"data",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=i(n(3248)),o=i(n(39742));function i(e){return e&&e.__esModule?e:{default:e}}},5570:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(83593),n(47941),n(82526),n(57327),n(49337),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(41539),n(54747),n(21249),n(30489);var o=c(n(96486)),i=c(n(64430)),a=c(n(39086)),s=c(n(67329)),l=c(n(59612)),u=c(n(91459));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n,r){return m="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=b(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else v(r,t,n);return!0},m(e,t,n,r)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=b(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},y.apply(this,arguments)}function b(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=k(e)););return e}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function w(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(b,e);var t,n,r,i,c,f=(i=b,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=k(i);if(c){var n=k(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return w(this,e)});function b(){var e;p(this,b);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=f.call.apply(f,[this].concat(n))).type="tree",e}return t=b,n=[{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 y(k(b.prototype),"init",this).call(this);this.components=[],this.componentOptions=d(d({},this.options),{},{parent:this,root:this.root||this}),this.disabled=this.shouldDisabled,this.setRoot(),this.viewComponentsInstantiated=!1,this._viewComponents=[]}},{key:"disabled",get:function(){return y(k(b.prototype),"disabled",this)},set:function(e){(function(e,t,n,r,o){if(!m(e,t,n,r||e)&&o)throw new Error("failed to set property")})(k(b.prototype),"disabled",e,this,!0),this.viewComponents.forEac
2h((function(t){return t.parentDisabled=e}))}},{key:"isDefaultValueComponent",get:function(){return!!this.options.editComponent&&!!this.options.editForm&&"defaultValue"===this.component.key}},{key:"destroy",value:function(){y(k(b.prototype),"destroy",this).call(this),this.builderMode||this.removeComponents(this._viewComponents)}},{key:"createComponents",value:function(e,t){var n=this,r=this.componentComponents.map((function(t){var r=a.default.create(t,n.componentOptions,e);return r.init(),r.parentDisabled=n.disabled,r}));return t&&this.checkNode(this.data,t),r}},{key:"removeComponents",value:function(e){return e.map((function(e){return e.destroy()}))}},{key:"render",value:function(){return this.builderMode?y(k(b.prototype),"render",this).call(this):y(k(b.prototype),"render",this).call(this,this.renderTree(this.treeRoot))}},{key:"renderTree",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.hasChildren&&!e.collapsed?this.renderChildNodes(e.children,!t):[],r=e.changing?this.renderEdit(e):this.renderView(e);return this.renderTemplate("tree",{odd:t,childNodes:n,content:r,node:e})}},{key:"renderChildNodes",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return t.map((function(t){return e.renderTree(t,n)}))}},{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(t){return t.data=e.data,t.checkComponentConditions(e.data),t.getView(t.dataValue)})),nodeData:e.data,node:e})}},{key:"attach",value:function(e){return this.builderMode?y(k(b.prototype),"attach",this).call(this,e):(this.loadRefs(e,{root:"single"}),u.default.all([y(k(b.prototype),"attach",this).call(this,e),this.attachNode(this.refs.root,this.treeRoot)]))}},{key:"attachNode",value:function(e,t){if(!e)return u.default.resolve();var n=u.default.resolve(),r=u.default.resolve();return t.refs=o.default.reduce(e.children,(function(e,t){return t.hasAttribute("ref")?d(d({},e),{},v({},t.getAttribute("ref"),t)):e}),{}),t.refs.content&&(this.attachActions(t),n=this.attachComponents(t)),t.refs.childNodes&&(r=this.attachChildren(t)),u.default.all([n,r])}},{key:"attachActions",value:function(e){var t,n=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===(t=e.refs.content.children[0])||void 0===t?void 0:t.children[1])||e.refs.content,{cancelNode:"single",saveNode:"single"}),e.refs.addChild&&this.addEventListener(e.refs.addChild,"click",(function(){n.addChild(e)})),e.refs.cancelNode&&this.addEventListener(e.refs.cancelNode,"click",(function(){n.cancelNode(e)})),e.refs.editNode&&this.addEventListener(e.refs.editNode,"click",(function(){n.editNode(e)})),e.refs.removeNode&&this.addEventListener(e.refs.removeNode,"click",(function(){n.removeNode(e)})),e.refs.revertNode&&this.addEventListener(e.refs.revertNode,"click",(function(){n.revertNode(e)})),e.refs.saveNode&&this.addEventListener(e.refs.saveNode,"click",(function(){n.saveNode(e)})),e.refs.toggleNode&&this.addEventListener(e.refs.toggleNode,"click",(function(){n.toggleNode(e)}))}},{key:"attachComponents",value:function(e){if(this.builderMode){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=y(k(b.prototype),"attachComponents",this)).call.apply(t,[this,e].concat(r))}return this.loadRefs.call(e,e.refs.content,{nodeEdit:"single"}),e.refs.nodeEdit?y(k(b.prototype),"attachComponents",this).call(this,e.refs.nodeEdit,e.components):u.default.resolve()}},{key:"attachChildren",value:function(e){var t=this,n=e.refs.childNodes.children;return u.default.all(o.default.map(n,(function(n,r){return t.attachNode(n,e.children[r])})))}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
2,n=this.updateValue(e,t);return this.setRoot(),n}},{key:"addChild",value:function(e){var t=this;this.options.readOnly||e.new||this.hook("tree.addChild",{parent:e,component:this},(function(){var n=e.addChild();return t.redraw(),n}))}},{key:"cancelNode",value:function(e){var t=this;this.options.readOnly||this.hook("tree.cancelNode",{node:e,component:this},(function(){return e.isRoot?e.persistentData&&!o.default.isEmpty(e.persistentData)?(e.cancel(),t.redraw()):t.removeRoot():(e.cancel(),t.redraw()),e}))}},{key:"editNode",value:function(e){var t=this;this.options.readOnly||e.new||this.hook("tree.editNode",{node:e,component:this},(function(){return e.edit(),t.redraw(),e}))}},{key:"removeNode",value:function(e){var t=this;this.options.readOnly||e.new||this.hook("tree.removeNode",{node:e,component:this},(function(){return e.isRoot?t.removeRoot():(e.remove(),t.updateTree()),e}))}},{key:"revertNode",value:function(e){var t=this;!this.options.readOnly&&e.revertAvailable&&this.hook("tree.revertNode",{node:e,component:this},(function(){return e.revert(),t.updateTree(),e}))}},{key:"saveNode",value:function(e){var t=this;this.options.readOnly||this.hook("tree.saveNode",{node:e,component:this},(function(){return e.save()&&t.updateTree(),e}))}},{key:"toggleNode",value:function(e){var t=this;this.hook("tree.toggleNode",{node:e,component:this},(function(){return e.collapsed=!e.collapsed,t.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 l.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,t,n){return this.checkNode(e,this.treeRoot,t,n)}},{key:"checkNode",value:function(e,t,n,r){var o=this;return t.children.reduce((function(t,i){return o.checkNode(e,i,n,r)&&t}),y(k(b.prototype),"checkData",this).call(this,e,n,t.data,t.components)&&!t.editing&&!t.new)}},{key:"getComponents",value:function(){return this.treeRoot&&(this.isDefaultValueComponent||!this.isDefaultValueComponent&&!this.builderMode)?this.treeRoot.getComponents():y(k(b.prototype),"getComponents",this).call(this)}}],r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.default.schema.apply(s.default,[{label:"Tree",key:"tree",type:"tree",clearOnHide:!0,input:!0,tree:!0,components:[],multiple:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Tree",icon:"indent",group:"data",weight:40,schema:b.schema()}}}],n&&h(t.prototype,n),r&&h(t,r),b}(s.default);t.default=_,_.prototype.hasChanged=i.default.prototype.hasChanged},39742:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"multiple",ignore:!0}]},18995:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{components:[{type:"tabs",key:"tabs",components:[{label:"Custom",key:"display",weight:0,components:o.default}]}]}};var r,o=(r=n(55066))&&r.__esModule?r:{default:r}},37978:function(e,t,n){"use strict";function r(e){return r="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},r(e)}var o;function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
2function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(30489);var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(d,e);var t,n,r,o,c,f=(o=d,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(o);if(c){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function d(){return i(this,d),f.apply(this,arguments)}return t=d,r=[{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-components/#custom",weight:120,schema:d.schema()}}}],(n=[{key:"defaultSchema",get:function(){return d.schema()}}])&&a(t.prototype,n),r&&a(t,r),d}(((o=n(64430))&&o.__esModule?o:{default:o}).default);t.default=c},55066:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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">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."}]},81541:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"data",components:i.default},{key:"validation",components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=s(n(53983)),o=s(n(58087)),i=s(n(36566)),a=s(n(6595));function s(e){return e&&e.__esModule?e:{default:e}}},12151:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(41539),n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(30489);var o,i=(o=n(8745))&&o.__esModule?o:{default:o};function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=l(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},s.apply(this,arguments)}function l(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(p,e);var t,n,r,o,l,d=(o=p,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(l){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(r=d.call(this,e,t,n)).validators.push("url"),r}return t=p,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"url",label:"Url",key:"url",inputType:"url"}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Url",group:"advanced",icon:"link",documentation:"/userguide/#url",weight:20,schema:p.schema()}}}],(n=[{key:"defaultSchema",get:function(){return p.schema()}},{key:"elementInfo",value:function(){var e=s(f(p.prototype),"elementInfo",this).call(this);return e.attr.type=this.component.mask?"password":"url",e}}])&&a(t.prototype,n),r&&a(t,r),p}(i.default);t.default=d},36566:function(e,t){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"case",ignore:!0}]},58087:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},6595:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=[{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},793:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(92222);var r=i(n(40970)),o=i(n(15110));function i(e){return e&&e.__esModule?e:{default:e}}},86267:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(30489);var o,i=(o=n(24561))&&o.__esModule?o:{default:o};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(p,e);var t,n,r,o,f,d=(o=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(o);if(f){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function p(){var e;a(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=d.call.apply(d,[this].concat(n))).noField=!0,e}return t=p,r=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"well",key:"well",input:!1,persistent:!1,components:[]}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Well",icon:"square-o",group:"layout",documentation:"/userguide/#well",weight:60,schema:p.schema()}}}],(n=[{key:"defaultSchema",get:function(){return p.schema()}},{key:"className",get:function(){return"".concat(this.component.customClass)}},{key:"templateName",get:function(){return"well"}}])&&s(t.prototype,n),r&&s(t,r),p}(i.default);t.default=f},15110:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}]},98890:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(96486)),o=s(n(48254)),i=s(n(12215)),a=s(n(33456));
2function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u,c,f,d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"addDisplay",value:function(t,n){e.displays[t]=n}},{key:"addDisplays",value:function(t){e.displays=r.default.merge(e.displays,t)}},{key:"getDisplay",value:function(t){return e.displays[t]}},{key:"getDisplays",value:function(){return e.displays}}],null&&l(t.prototype,null),n&&l(t,n),e}();t.default=d,u=d,c="displays",f={pdf:o.default,webform:i.default,wizard:a.default},c in u?Object.defineProperty(u,c,{value:f,enumerable:!0,configurable:!0,writable:!0}):u[c]=f},9411:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(98890))&&r.__esModule?r:{default:r}).default;t.default=o},68204:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(6701))&&r.__esModule?r:{default:r},i={lng:"en",nsSeparator:"::",keySeparator:".|.",pluralSeparator:"._.",contextSeparator:"._.",resources:{en:{translation:(0,n(82531).fastCloneDeep)(o.default)}}};t.default=i},29141:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(59595),n(35500),n(74916),n(68309),n(23123),n(15306),n(41539),n(39714),n(69600),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),"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 t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})),function(e,t){if("undefined"!=typeof document){var n,o,i,a;"defineProperty"in Object&&function(){try{return Object.defineProperty({},"test",{value:42}),!0}catch(e){return!1}}()||(n=Object.defineProperty,o=Object.prototype.hasOwnProperty.call(Object.prototype,"__defineGetter__"),i="Getters & setters cannot be defined on this javascript engine",a="A property cannot both have accessors and be writable or have a value",Object.defineProperty=function(e,t,s){if(n&&(e===window||e===document||e===Element.prototype||e instanceof Element))return n(e,t,s);if(null===e||!(e instanceof Object||"object"===r(e)))throw new TypeError("Object.defineProperty called on non-object");if(!(s instanceof Object))throw new TypeError("Property description must be an object");var l=String(t),u="value"in s||"writable"in s,c="get"in s&&r(s.get),f="set"in s&&r(s.set);if(c){if("function"!==c)throw new TypeError("Getter must be a function");if(!o)throw new TypeError(i);if(u)throw new TypeError(a);Object.__defineGetter__.call(e,l,s.get)}else e[l]=s.value;if(f){if("function"!==f)throw new TypeError("Setter must be a function");if(!o)throw new TypeError(i);if(u)throw new TypeError(a);Object.__defineSetter__.call(e,l,s.set)}return"value"in s&&(e[l]=s.value),e});var s,l,u=function(){var e=!0,n=function(t,n,r,o){Object.defineProperty?Object.defineProperty(t,n,{configurable:!1===e||!!o,get:r}):t.__defineGetter__(n,r)};try{n({},"support")}catch(t){e=!1}return function(e,o){var i=this,a=[],s={},l=0,u=0,c=function(e){n(i,e,(function(){return d(),a[e]}),!1)},f=function(){if(l>=u)for(;u<l;++u)c(u)},d=function(){var t,n,i=arguments,u=/\s+/;if(i.length)for(n=0;n<i.length;++n)if(u.test(i[n]))throw(t=new SyntaxError('String "'+i[n]+'" contains an invalid character')).code=5,t.name="InvalidCharacterError",t;for(""===(a="object"===r(e[o])?(""+e[o].baseVal).replace(/^\s+|\s+$/g,"").split(u):(""+e[o]).replace(/^\s+|\s+$/g,"").split(u))[0]&&(a=[]),s={},n=0;n<a.length;++n)s[a[n]]=!0;l=a.length,f()};return d(),n(i,"length",(function(){return d(),l}
2)),i.toLocaleString=i.toString=function(){return d(),a.join(" ")},i.item=function(e){return d(),a[e]},i.contains=function(e){return d(),!!s[e]},i.add=function(){d.apply(i,t=arguments);for(var t,n,u=0,c=t.length;u<c;++u)n=t[u],s[n]||(a.push(n),s[n]=!0);l!==a.length&&(l=a.length>>>0,"object"===r(e[o])?e[o].baseVal=a.join(" "):e[o]=a.join(" "),f())},i.remove=function(){d.apply(i,t=arguments);for(var t,n={},u=0,c=[];u<t.length;++u)n[t[u]]=!0,delete s[t[u]];for(u=0;u<a.length;++u)n[a[u]]||c.push(a[u]);a=c,l=c.length>>>0,"object"===r(e[o])?e[o].baseVal=a.join(" "):e[o]=a.join(" "),f()},i.toggle=function(e,n){return d.apply(i,[e]),t!==n?n?(i.add(e),!0):(i.remove(e),!1):s[e]?(i.remove(e),!1):(i.add(e),!0)},i}}();"DOMTokenList"in e&&(!("classList"in(l=document.createElement("x")))||!l.classList.toggle("x",!1)&&!l.className)||("DOMTokenList"in(s=e)&&s.DOMTokenList&&(!document.createElementNS||!document.createElementNS("http://www.w3.org/2000/svg","svg")||document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList)||(s.DOMTokenList=u),function(){var e=document.createElement("span");"classList"in e&&(e.classList.toggle("x",!1),e.classList.contains("x")&&(e.classList.constructor.prototype.toggle=function(e){var n=arguments[1];if(n===t){var r=!this.contains(e);return this[r?"add":"remove"](e),r}return this[(n=!!n)?"add":"remove"](e),n}))}(),function(){var e=document.createElement("span");if("classList"in e&&(e.classList.add("a","b"),!e.classList.contains("b"))){var t=e.classList.constructor.prototype.add;e.classList.constructor.prototype.add=function(){for(var e=arguments,n=arguments.length,r=0;r<n;r++)t.call(this,e[r])}}}(),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 t=e.classList.constructor.prototype.remove;e.classList.constructor.prototype.remove=function(){for(var e=arguments,n=arguments.length,r=0;r<n;r++)t.call(this,e[r])}}}())}}("object"===("undefined"==typeof window?"undefined":r(window))&&window||"object"===("undefined"==typeof self?"undefined":r(self))&&self||"object"===(void 0===n.g?"undefined":r(n.g))&&n.g||{})},5127:function(e,t,n){"use strict";n(67810),n(29141)},89738:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(96486)),o=s(n(56499)),i=s(n(49452)),a=s(n(34198));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u,c,f,d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"addProvider",value:function(t,n,r){e.providers[t]=e.providers[t]||{},e.providers[t][n]=r}},{key:"addProviders",value:function(t,n){e.providers[t]=r.default.merge(e.providers[t],n)}},{key:"getProvider",value:function(t,n){if(e.providers[t]&&e.providers[t][n])return e.providers[t][n]}},{key:"getProviders",value:function(t){if(e.providers[t])return e.providers[t]}}],null&&l(t.prototype,null),n&&l(t,n),e}();t.default=d,u=d,c="providers",f={address:o.default,auth:i.default,storage:a.default},c in u?Object.defineProperty(u,c,{value:f,enumerable:!0,configurable:!0,writable:!0}):u[c]=f},6542:function(e,t,n){"use strict";n(82526),n(41817),n(41539),n(32165),n(66992),n(78783),n(33948),n(47042),n(68309),n(91038),n(74916),Object.defineProperty(t,"__esModule",{value:!0}),t.AddressProvider=void 0,n(69600),n(21249),n(92222);var r,o=(r=n(96486))&&r.__esModule?r:{default:r},i=n(19161);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this.beforeMergeOptions(t),this.options=o.default.merge({},this.defaultOptions,t)}var t,n,r;return t=e,n=[{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 o.default.toPairs(e).map((function(e){var t,n,r=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}
2(t,n)||function(){throw new 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],i=r[1];return"".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(i))})).join("&")}},{key:"getRequestOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o.default.merge({},this.options,e)}},{key:"getRequestUrl",value:function(){throw new Error("Method AddressProvider#getRequestUrl(options) is abstract.")}},{key:"makeRequest",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i.GlobalFormio.makeStaticRequest(this.getRequestUrl(e),"GET",null,{noToken:!0})}},{key:"search",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRequestOptions(n),i=r.params=r.params||{};return i[this.queryProperty]=e,this.makeRequest(r).then((function(e){return t.responseProperty?o.default.get(e,t.responseProperty,[]):e}))}},{key:"getDisplayValue",value:function(e){return this.displayValueProperty?o.default.get(e,this.displayValueProperty,""):String(e)}}],r=[{key:"name",get:function(){return"address"}},{key:"displayName",get:function(){return"Address"}}],n&&l(t.prototype,n),r&&l(t,r),e}();t.AddressProvider=u},25823:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.AzureAddressProvider=void 0,n(30489);var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(d,e);var t,n,r,u,c,f=(u=d,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=l(u);if(c){var n=l(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function d(){return o(this,d),f.apply(this,arguments)}return t=d,n=[{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]:{},t=e.params;return"https://atlas.microsoft.com/search/address/json?".concat(this.serialize(t))}}],r=[{key:"name",get:function(){return"azure"}},{key:"displayName",get:function(){return"Azure Maps"}}],n&&i(t.prototype,n),r&&i(t,r),d}(n(6542).AddressProvider);t.AzureAddressProvider=u},45555:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=s(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},a.apply(this,arguments)}function s(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}
2function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}n(41539),n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.CustomAddressProvider=void 0,n(92222),n(30489);var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(p,e);var t,n,r,s,f,d=(s=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(s);if(f){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function p(){return o(this,p),d.apply(this,arguments)}return t=p,n=[{key:"queryProperty",get:function(){return this.options.queryProperty||a(c(p.prototype),"queryProperty",this)}},{key:"responseProperty",get:function(){return this.options.responseProperty||a(c(p.prototype),"responseProperty",this)}},{key:"displayValueProperty",get:function(){return this.options.displayValueProperty||a(c(p.prototype),"displayValueProperty",this)}},{key:"getRequestUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.params,n=e.url;return"".concat(n,"?").concat(this.serialize(t))}}],r=[{key:"name",get:function(){return"custom"}},{key:"displayName",get:function(){return"Custom"}}],n&&i(t.prototype,n),r&&i(t,r),p}(n(6542).AddressProvider);t.CustomAddressProvider=f},7763:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAddressProvider=void 0,n(73210),n(41539),n(54747),n(30489);var o=n(19161),i=l(n(96486)),a=n(6542),s=l(n(91459));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function d(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(m,e);var t,n,r,a,l,h=(a=m,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(a);if(l){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function m(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,m),(t=h.call(this,n)).setAutocompleteOptions();var r="https://maps.googleapis.com/maps/api/js?v=quarterly&libraries=places&callback=googleMapsCallback";return null!==(e=n.params)&&void 0!==e&&e.key&&(r+="&key=".concat(n.params.key)),o.GlobalFormio.requireLibrary(t.getLibraryName(),"google.maps.places",r),t}return t=m,r=[{key:"name",get:function(){return"google"}},{key:"displayName",get:function(){return"Google Maps"}}],(n=[{key:"displayValueProperty",get:function(){return"formattedPlace"}},{key:"alternativeDisplayValueProperty",get:function(){return"formatted_address"}},{key:"autocompleteOptions",get:function(){return this._autocompleteOptions}
2,set:function(e){this._autocompleteOptions=e}},{key:"setAutocompleteOptions",value:function(){var e=i.default.get(this.options,"params.autocompleteOptions",{});i.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 t=e,n=i.default.get(t,"params.region","");if(n&&!i.default.has(e,"params.autocompleteOptions")){var r={UK:"GB"};r[n=n.toUpperCase().trim()]&&(n=r[n]),i.default.set(t,"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 t=this.getRequiredAddressProperties();i.default.isArray(e.fields)&&e.fields.length>0&&e.fields.forEach((function(e){t.some((function(t){return e===t}))||t.push(e)})),e.fields=t}},{key:"filterPlace",value:function(e){e=e||{};var t={};return this.autocompleteOptions&&this.autocompleteOptions.fields.forEach((function(n){e[n]&&(t[n]=e[n])})),t}}
2,{key:"attachAutocomplete",value:function(e,t,n){var r=this;o.GlobalFormio.libraryReady(this.getLibraryName()).then((function(){var o=new google.maps.places.Autocomplete(e,r.autocompleteOptions);o.addListener("place_changed",(function(){var a=r.filterPlace(o.getPlace());a.formattedPlace=i.default.get(o,"gm_accessors_.place.se.formattedPrediction",a[r.alternativeDisplayValueProperty]),n(a,e,t)}))}))}},{key:"search",value:function(){return s.default.resolve()}},{key:"makeRequest",value:function(){return s.default.resolve()}},{key:"getDisplayValue",value:function(e){var t=i.default.has(e,this.displayValueProperty)?this.displayValueProperty:this.alternativeDisplayValueProperty;return i.default.get(e,t,"")}}])&&c(t.prototype,n),r&&c(t,r),m}(a.AddressProvider);t.GoogleAddressProvider=h},21680:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esModule",{value:!0}),t.NominatimAddressProvider=void 0,n(30489);var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(d,e);var t,n,r,u,c,f=(u=d,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=l(u);if(c){var n=l(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function d(){return o(this,d),f.apply(this,arguments)}return t=d,n=[{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]:{},t=e.params;return"https://nominatim.openstreetmap.org/search?".concat(this.serialize(t))}}],r=[{key:"name",get:function(){return"nominatim"}},{key:"displayName",get:function(){return"OpenStreetMap Nominatim"}}],n&&i(t.prototype,n),r&&i(t,r),d}(n(6542).AddressProvider);t.NominatimAddressProvider=u},56499:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68309);var r,o=n(25823),i=n(45555),a=n(7763),s=n(21680);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=(l(r={},o.AzureAddressProvider.name,o.AzureAddressProvider),l(r,i.CustomAddressProvider.name,i.CustomAddressProvider),l(r,a.GoogleAddressProvider.name,a.GoogleAddressProvider),l(r,
2s.NominatimAddressProvider.name,s.NominatimAddressProvider),r);t.default=u},49452:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={}},10695:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(89738))&&r.__esModule?r:{default:r}).default;t.default=o},82302:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68309);var r,o=(r=n(91459))&&r.__esModule?r:{default:r};t.default=function(e,t){return function(n,r){return new o.default((function(o,i){var a=new XMLHttpRequest;a.onerror=function(e){e.networkError=!0,i(e)},a.onabort=function(e){e.networkError=!0,i(e)},a.onload=function(){if(a.status>=200&&a.status<300){var e=a.getResponseHeader("Content-Type")||n.type;o(new File([a.response],n.name,{type:e}))}else i(a.response||"Unable to process file")},a.onabort=i,a.open("POST",t.url);var s=e.getToken();s&&a.setRequestHeader("x-jwt-token",s),a.responseType="arraybuffer";var l=new FormData;l.append("file",n),l.append("processorOptions",JSON.stringify(t.options||{})),l.append("options",JSON.stringify(r||{})),a.send(l)}))}}},64666:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(73210),n(68309);var r,o=(r=n(3975))&&r.__esModule?r:{default:r},i=function(e){return{uploadFile:function(t,n,r,i,a,s,l,u,c,f){return o.default.upload(e,"azure",(function(e,n){return e.openAndSetHeaders("PUT",n.url),e.setRequestHeader("Content-Type",t.type),e.setRequestHeader("x-ms-blob-type","BlockBlob"),t}),t,n,r,i,u,c,f).then((function(){return{storage:"azure",name:o.default.path([r,n]),size:t.size,type:t.type,groupPermissions:u,groupId:c}}))},downloadFile:function(t){return e.makeRequest("file","".concat(e.formUrl,"/storage/azure?name=").concat(o.default.trim(t.name)),"GET")}}};i.title="Azure File Services";var a=i;t.default=a},52174:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(91459))&&r.__esModule?r:{default:r},i=function(){return{title:"Base64",name:"base64",uploadFile:function(e,t){var n=this,r=new FileReader;return new o.default((function(o,i){r.onload=function(n){var r=n.target.result;o({storage:"base64",name:t,url:r,size:e.size,type:e.type})},r.onerror=function(){return i(n)},r.readAsDataURL(e)}))},downloadFile:function(e){return o.default.resolve(e)}}};i.title="Base64";var a=i;t.default=a},70585:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222);var r,o=(r=n(91459))&&r.__esModule?r:{default:r},i=n(3975),a=function(e){return{uploadFile:function(t,n,r,a,s,l,u,c,f,d){return new o.default((function(o,s){var l=new XMLHttpRequest;"function"==typeof a&&(l.upload.onprogress=a),"function"==typeof d&&d((function(){return l.abort()}));var u=new FormData;u.append("name",n),u.append("dir",r),u.append("file",t),l.onerror=function(e){e.networkError=!0,s(e)},l.onload=function(){if(l.status>=200&&l.status<300){var e=JSON.parse(l.response);e.storage="dropbox",e.size=t.size,e.type=t.type,e.groupId=f,e.groupPermissions=c,e.url=e.path_lower,o(e)}else s(l.response||"Unable to upload file")},l.onabort=s,l.open("POST","".concat(e.formUrl,"/storage/dropbox")),(0,i.setXhrHeaders)(e,l);var p=e.getToken();p&&l.setRequestHeader("x-jwt-token",p),l.send(u)}))},downloadFile:function(t){var n=e.getToken();return t.url="".concat(e.formUrl,"/storage/dropbox?path_lower=").concat(t.path_lower).concat(n?"&x-jwt-token=".concat(n):""),o.default.resolve(t)}}};a.title="Dropbox";var s=a;t.default=s},37771:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222);var r,o=(r=n(91459))&&r.__esModule?r:{default:r},i=n(3975),a=function(e){return{uploadFile:function(t,n,r,a,s,l,u,c,f,d){return new o.default((function(o,s){var l=new XMLHttpRequest;"function"==typeof a&&(l.upload.onprogress=a),"function"==typeof d&&d((function(){return l.abort()}));var u=new FormData;u.append("name",n),u.append("dir",r),u.append("file",t),l.onerror=function(e){e.networkError=!0,s(e)},l.onload=function(){if(l.status>=200&&l.status<300){var e=JSON.parse(l.response);e.storage="googledrive",e.size=t.size,e.type=t.type,e.groupId=f,e.groupPermissions=c,o(e)}else s(l.response||"Unable to upload file")},l.onabort=s,l.open("POST","".concat(e.formUrl,"/storage/gdrive")),(0,i.setXhrHeaders)(e,l);var p=e.getToken();p&&l.setRequestHeader("x-jwt-token",p),l.send(u)}))},downloadFile:function(t){var n=e.getToken();return t.url="".concat(e.formUrl,"/storage/gdrive?fileId=").concat(t.id,"&fileName=").concat(t.originalName).concat(n?"&x-jwt-token=".concat(n):""),o.default.resolve(t)}}};a.title="Google Drive";var s=a;t.default=s},34198:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(52174)),o=c(n(70585)),i=c(n(87527)),a=c(n(64666)),s=c(n(7433)),l=c(n(3769)),u=c(n(37771));function c(e){return e&&e.__esModule?e:{default:e}}var f={base64:r.default,dropbox:o.default,s3:i.default,url:s.default,azure:a.default,indexeddb:l.default,googledrive:u.default};t.default=f},3769:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(68309);var r,o=n(21614),i=(r=n(91459))&&r.__esModule?r:{default:r},a=function(){return{title:"indexedDB",name:"indexeddb",uploadFile:function(e,t,n,r,a,s){var l=this;if("indexedDB"in window)return new i.default((function(e){var t=indexedDB.open(s.indexeddb,3);t.onsuccess=function(t){var n=t.target.result;e(n)},t.onupgradeneeded=function(e){e.target.result.createObjectStore(s.indexeddbTable)}})).then((function(t){var n=new FileReader;return new i.default((function(r,i){n.onload=function(){var n=new Blob([e],{type:e.type}),i=(0,o.v4)(n),l={id:i,data:n,name:e.name,size:e.size,type:e.type,url:a},u=t.transaction([s.indexeddbTable],"readwrite");u.objectStore(s.indexeddbTable).put(l,i).onerror=function(e){console.log("error storing data"),console.error(e)},u.oncomplete=function(){r({storage:"indexeddb",name:e.name,size:e.size,type:e.type,url:a,id:i})}},n.onerror=function(){return i(l)},n.readAsDataURL(e)}))}));console.log("This browser doesn't support IndexedDB")},downloadFile:function(e,t){var n=this;return new i.default((function(e){indexedDB.open(t.indexeddb,3).onsuccess=function(t){var n=t.target.result;e(n)}})).then((function(r){return new i.default((function(o,i){var a=r.transaction([t.indexeddbTable],"readonly"),s=a.objectStore(t.indexeddbTable).get(e.id);s.onsuccess=function(){a.oncomplete=function(){var t=s.result,r=new File([s.result.data],e.name,{type:s.result.type}),a=new FileReader;a.onload=function(n){t.url=n.target.result,t.storage=e.storage,o(t)},a.onerror=function(){return i(n)},a.readAsDataURL(r)}},s.onerror=function(){return i(n)}}))}))},deleteFile:function(e,t){var n=this;return new i.default((function(e){indexedDB.open(t.indexeddb,3).onsuccess=function(t){var n=t.target.result;e(n)}})).then((function(r){return new i.default((function(o,i){var a=r.transaction([t.indexeddbTable],"readwrite"),s=a.objectStore(t.indexeddbTable).delete(e.id);s.onsuccess=function(){a.oncomplete=function(){var e=s.result;o(e)}},s.onerror=function(){return i(n)}}))}))}}};a.title="IndexedDB";var s=a;t.default=s},87527:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(73210);var r=i(n(91459)),o=i(n(3975));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return{uploadFile:function(t,n,r,i,a,s,l,u,c,f){return o.default.upload(e,"s3",(function(e,i){if(i.data.fileName=n,i.data.key=o.default.path([i.data.key,r,n]),i.signed)return e.openAndSetHeaders("PUT",i.signed),e.setRequestHeader("Content-Type",t.type),t;var a=new FormData;for(var s in i.data)a.append(s,i.data[s]);return a.append("file",t),e.openAndSetHeaders("POST",i.url),a}),t,n,r,i,u,c,f).then((function(e){return{storage:"s3",name:n,bucket:e.bucket,key:e.data.key,url:o.default.path([e.url,e.data.key]),acl:e.data.acl,size:t.size,type:t.type}}))},downloadFile:function(t){return"public-read"!==t.acl?e.makeRequest("file","".concat(e.formUrl,"/storage/s3?bucket=").concat(o.default.trim(t.bucket),"&key=").concat(o.default.trim(t.key)),"GET"):r.default.resolve(t)}}};a.title="S3";var s=a;t.default=s},17607:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFormioUploadAdapterPlugin=void 0,n(68309),n(41539),n(88674),n(17727),n(92222);var r,o=n(82531),i=(r=n(91459))&&r.__esModule?r:{default:r};function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.loader=t,this.fileService=n,this.component=r}var t,n;return t=e,(n=[{key:"upload",value:function(){var e=this;return this.loader.file.then((function(t){return new i.default((function(n,r){var i,a=e.component.component,s=a.uploadStorage,l=a.uploadUrl,u=a.uploadOptions,c=a.uploadDir,f=a.fileKey,d=[s,t,(0,o.uniqueName)(t.name),c||"",function(t){return e.onUploadProgress(t)},l,u,f,null,null],p=(i=e.fileService).uploadFile.apply(i,d.concat([function(){return e.component.emit("fileUploadingStart",p)}])).then((function(t){return e.fileService.downloadFile(t)})).then((function(e){return n({default:e.url})})).catch((function(e){console.warn("An Error occured while uploading file",e),r(e)})).finally((function(){e.component.emit("fileUploadingEnd",p)}))}))}))}},{key:"abort",value:function(){}},{key:"onUploadProgress",value:function(e){e.lengthComputable&&(this.loader.uploadTotal=e.total,this.loader.uploaded=e.loaded)}}])&&a(t.prototype,n),e}();t.getFormioUploadAdapterPlugin=function(e,t){return function(n){n.plugins.get("FileRepository").createUploadAdapter=function(n){return new s(n,e,t)}}}},7433:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),n(68309);var r,o=(r=n(91459))&&r.__esModule?r:{default:r};function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(e){var t=function(t,n,r,i,a,s,l){return new o.default((function(o,u){var c=new XMLHttpRequest,f="string"==typeof i,d=new FormData;if("function"==typeof s&&(c.upload.onprogress=s),"function"==typeof l&&l((function(){return c.abort()})),!f)for(var p in i)d.append(p,i[p]);c.onload=function(){if(c.status>=200&&c.status<300){var e={};try{e=(e="string"==typeof c.response?JSON.parse(c.response):{})&&e.data?e.data:e}catch(t){e={}}var r=e.hasOwnProperty("url")?e.url:"".concat(c.responseURL,"/").concat(n);r&&"/"===r[0]&&(r="".concat(t).concat(r)),o({url:r,data:e})}else u(c.response||"Unable to upload file")},c.onerror=function(){return u(c)},c.onabort=function(){return u(c)};var h=t+(t.indexOf("?")>-1?"&":"?");for(var m in r)h+="".concat(m,"=").concat(r[m],"&");"&"===h[h.length-1]&&(h=h.substr(0,h.length-1)),c.open("POST",h),f&&c.setRequestHeader("Content-Type","application/json");var v=e.getToken();if(v&&c.setRequestHeader("x-jwt-token",v),a){var y="string"==typeof a?JSON.parse(a):a;for(var b in y)c[b]=y[b]}c.send(f?i:d)}))};return{title:"Url",name:"url",uploadFile:function(n,r,o,a,s,l,u,c,f,d){var p=function(c){var f;return t(s,r,{baseUrl:encodeURIComponent(e.projectUrl),project:c?c.project:"",form:c?c._id:""},(f={},i(f,u,n),i(f,"name",r),i(f,"dir",o),f),l,a,d).then((function(t){return t.data=t.data||{},t.data.baseUrl=e.projectUrl,t.data.project=c?c.project:"",t.data.form=c?c._id:"",{storage:"url",name:r,url:t.url,size:n.size,type:n.type,data:t.data}}))};return n.private&&e.formId?e.loadForm().then((function(e){return p(e)})):p()},deleteFile:function(e){return new o.default((function(t,n){var r=new XMLHttpRequest;r.open("DELETE",e.url,!0),r.onload=function(){r.status>=200&&r.status<300?t("File deleted"):n(r.response||"Unable to delete file")},r.send(null)}))},downloadFile:function(n){return n.private?(e.submissionId&&n.data&&(n.data.submission=e.submissionId),t(n.url,n.name,{},JSON.stringify(n)).then((function(e){return e.data}))):o.default.resolve(n)}}};a.title="Url";var s=a;t.default=s},3975:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setXhrHeaders=t.default=void 0,n(69600),n(21249),n(57327),n(41539),n(73210),n(92222);var r=i(n(91459)),o=i(n(92742));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e,t){var n=e.options.headers;if(n){var r={"Content-Disposition":!0,Authorization:!0};for(var o in n)r[o]&&t.setRequestHeader(o,n[o])}};t.setXhrHeaders=a;var s={trim:function(e){return(0,o.default)(e,"/")},path:function(e){return e.filter((function(e){return!!e})).map(s.trim).join("/")},upload:function(e,t,n,o,i,l,u,c,f,d){return new r.default((function(r,p){var h=new XMLHttpRequest;h.onerror=function(e){e.networkError=!0,p(e)},h.onabort=p,h.onload=function(){if(h.status>=200&&h.status<300){var t=JSON.parse(h.response),o=new XMLHttpRequest;"function"==typeof u&&(o.upload.onprogress=u),"function"==typeof d&&d((function(){return o.abort()})),o.openAndSetHeaders=function(){o.open.apply(o,arguments),a(e,o)},o.onerror=function(e){e.networkError=!0,p(e)},o.onabort=function(e){e.networkError=!0,p(e)},o.onload=function(){o.status>=200&&o.status<300?r(t):p(o.response||"Unable to upload file")},o.onabort=p,o.send(n(o,t))}else p(h.response||"Unable to sign file")},h.open("POST","".concat(e.formUrl,"/storage/").concat(t)),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Content-Type","application/json; charset=UTF-8");var m=e.getToken();m&&h.setRequestHeader("x-jwt-token",m),h.send(JSON.stringify({name:s.path([l,i]),size:o.size,type:o.type,groupPermissions:c,groupId:f}))}))}},l=s;t.default=l},51508:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(75146)),o=i(n(96486));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"templates",get:function(){return e._templates||(e._templates=r.default),e._templates}},{key:"addTemplate",value:function(t,n){e.templates[t]=n}},{key:"extendTemplate",value:function(t,n){e.templates[t]=o.default.merge({},e.templates[t],n)}},{key:"setTemplate",value:function(t,n){e.addTemplate(t,n)}},{key:"current",get:function(){return e._current?e._current:e.defaultTemplates},set:function(t){var n=e.current;e._current=o.default.merge({},n,t)}},{key:"defaultTemplates",get:function(){return e.templates.bootstrap}},{key:"framework",get:function(){return e._framework},set:function(t){e.templates.hasOwnProperty(t)&&(e._framework=t,e._current=e.templates[t])}}],null&&a(t.prototype,null),n&&a(t,n),e}();t.default=s}
2,4295:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";if(Array.prototype.join,e.mode.autocomplete){for(var r in n+='\n <div class="address-autocomplete-container">\n <input\n ref="'+(null==(t=e.ref.searchInput)?"":t)+'"\n ',e.inputAttributes)n+="\n "+(null==(t=r)?"":t)+'="'+(null==(t=e.inputAttributes[r])?"":t)+'"\n ';n+='\n value="'+(null==(t=e.displayValue)?"":t)+'"\n autocomplete="off"\n aria-label="'+(null==(t=e.t("autocomplete"))?"":t)+'"\n >\n ',e.component.disableClearIcon||(n+='\n <i\n class="address-autocomplete-remove-value-icon fa fa-times"\n tabindex="'+(null==(t=e.inputAttributes.tabindex)?"":t)+'"\n ref="'+(null==(t=e.ref.removeValueIcon)?"":t)+'"\n ></i>\n '),n+="\n </div>\n"}return n+="\n",e.self.manualModeEnabled&&(n+='\n <div class="form-check checkbox">\n <label class="form-check-label">\n <input\n ref="'+(null==(t=e.ref.modeSwitcher)?"":t)+'"\n type="checkbox"\n class="form-check-input"\n tabindex="'+(null==(t=e.inputAttributes.tabindex)?"":t)+'"\n ',e.mode.manual&&(n+="checked=true"),n+="\n ",e.disabled&&(n+="disabled=true"),n+="\n >
2\n <span>"+(null==(t=e.component.switchToManualModeLabel)?"":t)+"</span>\n </label>\n </div>\n"),n+="\n",e.self.manualMode&&(n+='\n <div ref="'+(null==(t=e.nestedKey)?"":t)+'">\n '+(null==(t=e.children)?"":t)+"\n </div>\n"),n+"\n"}},87302:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div ref="value">',e.displayValue?n+=null==(t=e.displayValue)?"":t:n+="-",n+"</div>\n"}},45284:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(4295)),o=i(n(87302));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},34801:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+="<div\n ",e.attrs)n+="\n "+(null==(t=r)?"":t)+'="'+(null==(t=e.attrs[r])?"":t)+'"\n ';return n+="\n>\n "+(null==(t=e.message)?"":t)+"\n ",e.options.vpat&&(n+='\n <span class="sr-only" id="hotkey-i-'+(null==(t=e.form._id)?"":t)+'">'+(null==(t=e.t("errorListHotkey"))?"":t)+"</span>\n "),n+"\n</div>\n"}},75284:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(34801))&&r.__esModule?r:{default:r}).default};t.default=o},3824:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="formio builder row formbuilder">\n <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n '+(null==(t=e.sidebar)?"":t)+'\n </div>\n <div class="col-xs-8 col-sm-9 col-md-10 formarea" ref="form">\n '+(null==(t=e.form)?"":t)+"\n </div>\n</div>\n"}},15590:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(3824))&&r.__esModule?r:{default:r}).default};t.default=o},6e4:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="builder-component" ref="dragComponent">\n ',e.disableBuilderActions||(n+='\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==(t=e.iconClass("remove"))?"":t)+'"></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==(t=e.iconClass("copy"))?"":t)+'"></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==(t=e.iconClass("save"))?"":t)+'"></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==(t=e.iconClass("wrench"))?"":t)+'"></i>\n </div>\n <div\n role="button"\n aria-label="Move button"\n tabindex="-1"\n class="btn btn-xxs btn-default component-settings-button component-settings-button-move"\n ref="moveComponent"\n >\n <i class="'+(null==(t=e.iconClass("move"))?"":t)+'"></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==(t=e.iconClass("cog"))?"":t)+'"></i>\n </div>\n </div>\n '),n+"\n "+(null==(t=e.html)?"":t)+"\n</div>\n"}},14943:function(e,t,n){"use strict";var r;
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(6e4))&&r.__esModule?r:{default:r}).default};t.default=o},15858:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="builder-components drag-container formio-builder-'+(null==(t=e.type)?"":t)+'" ref="'+(null==(t=e.key)?"":t)+'-container">\n '+(null==(t=e.html)?"":t)+"\n</div>\n"}},89298:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(15858))&&r.__esModule?r:{default:r}).default};t.default=o},47995:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="row">\n <div class="col col-sm-6">\n <p class="lead">'+(null==(t=e.t(e.componentInfo.title,{_userInput:!0}))?"":t)+" "+(null==(t=e.t("Component"))?"":t)+"</p>\n </div>\n ",e.helplinks&&(n+='\n <div class="col col-sm-6">\n <div class="float-right" style="margin-right: 20px; margin-top: 10px">\n <a href="'+(null==(t=e.t(e.helplinks+e.componentInfo.documentation))?"":t)+'" target="_blank">\n <i class="'+(null==(t=e.iconClass("new-window"))?"":t)+'"></i> '+(null==(t=e.t("Help"))?"":t)+"\n </a>\n </div>\n </div>\n "),n+='\n</div>\n<div class="row">\n <div class="col ',e.preview?n+="col-sm-6":n+="col-sm-12",n+='">\n <div ref="editForm">\n '+(null==(t=e.editForm)?"":t)+"\n </div>\n ",e.preview||(n+='\n <div style="margin-top: 10px;">\n <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(t=e.t("Save"))?"":t)+'</button>\n <button class="btn btn-secondary" style="margin-right: 10px;" ref="cancelButton">'+(null==(t=e.t("Cancel"))?"":t)+'</button>\n <button class="btn btn-danger" ref="removeButton">'+(null==(t=e.t("Remove"))?"":t)+"</button>\n </div>
2\n "),n+="\n </div>\n ",e.preview&&(n+='\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==(t=e.t("Preview"))?"":t)+'</h4>\n </div>\n <div class="card-body">\n <div class="component-preview" ref="preview">\n '+(null==(t=e.preview)?"":t)+"\n </div>\n </div>\n </div>\n ",e.componentInfo.help&&(n+='\n <div class="card card-body bg-light formio-settings-help">\n '+(null==(t=e.t(e.componentInfo.help))?"":t)+"\n </div>\n "),n+='\n <div style="margin-top: 10px;">\n <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(t=e.t("Save"))?"":t)+'</button>\n <button class="btn btn-secondary" style="margin-right: 10px;" ref="cancelButton">'+(null==(t=e.t("Cancel"))?"":t)+'</button>\n <button class="btn btn-danger" ref="removeButton">'+(null==(t=e.t("Remove"))?"":t)+"</button>\n </div>\n </div>\n "),n+"\n</div>\n"}},74798:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(47995))&&r.__esModule?r:{default:r}).default};t.default=o},72807:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;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==(t=e.position)?"":t)+'"\n>\n '+(null==(t=e.t("Drag and Drop a form component"))?"":t)+"\n</div>\n"}},65181:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(72807))&&r.__esModule?r:{default:r}).default};t.default=o},42904:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div id="'+(null==(t=e.groupId)?"":t)+'" class="accordion builder-sidebar'+(null==(t=e.scrollEnabled?" builder-sidebar_scroll":"")?"":t)+'" ref="sidebar">\n <input class="form-control builder-sidebar_search" type="search" ref="sidebar-search" placeholder="Search field(s)" />\n <div ref="sidebar-groups">\n ',e.groups.forEach((function(e){n+="\n "+(null==(t=e)?"":t)+"\n "})),n+="\n </div>\n</div>\n"}},98953:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(42904))&&r.__esModule?r:{default:r}).default};t.default=o},96746:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="card form-builder-panel" ref="group-panel-'+(null==(t=e.groupKey)?"":t)+'">\n <div class="card-header form-builder-group-header" id="heading-'+(null==(t=e.groupKey)?"":t)+'">\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==(t=e.groupKey)?"":t)+'"\n data-parent="#'+(null==(t=e.groupId)?"":t)+'"\n aria-expanded="'+(null==(t=e.group.default)?"":t)+'"\n aria-controls="group-'+(null==(t=e.groupKey)?"":t)+'"\n ref="sidebar-anchor"\n >\n '+(null==(t=e.t(e.group.title,{_userInput:!0}))?"":t)+'\n </button>\n </h5>\n </div>\n <div\n id="group-'+(null==(t=e.groupKey)?"":t)+'"\n class="collapse '+(null==(t=e.group.default?" show":"")?"":t)+'"\n data-parent="#'+(null==(t=e.groupId)?"":t)+'"\n data-default="'+(null==(t=e.group.default)?"":t)+'"\n aria-labelledby="heading-'+(null==(t=e.groupKey)?"":t)+'"\n ref="sidebar-group"\n >\n <div id="group-container-'+(null==(t=e.groupKey)?"":t)+'" class="card-body no-drop p-2" ref="sidebar-container">\n ',e.group.componentOrder.length||e.subgroups.length?(n+="\n ",!e.group.componentOrder||e.group.componentOrder.forEach((function(r){n+='\n <span\n data-group="'+(null==(t=e.groupKey)?"":t)+'"\n data-key="'+(null==(t=e.group.components[r].key)?"":t)+'"\n data-type="'+(null==(t=e.group.components[r].schema.type)?"":t)+'"\n class="btn btn-primary btn-sm btn-block formcomponent drag-copy"\n >\n ',e.group.components[r].icon&&(n+='\n <i class="'+(null==(t=e.iconClass(e.group.components[r].icon))?"":t)+'" style="margin-right: 5px;"></i>\n '),n+="\n "+(null==(t=e.t(e.group.components[r].title,{_userInput:!0}))?"":t)+"\n </span>\n "})),n+="\n "+(null==(t=e.subgroups.join(""))?"":t)+"\n "):n+="\n <div>"+(null==(t=e.t("No Matches Found"))?"":t)+"</div>\n ",n+="\n </div>\n </div>\n</div>\n"}},31440:function(e,t,n){"use strict";var r;
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(96746))&&r.__esModule?r:{default:r}).default};t.default=o},41737:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="formio builder row formbuilder">\n <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n '+(null==(t=e.sidebar)?"":t)+'\n </div>\n <div class="col-xs-8 col-sm-9 col-md-10 formarea">\n <ol class="breadcrumb">\n ',e.pages.forEach((function(r,o){n+='\n <li>\n <span title="'+(null==(t=r.title)?"":t)+'" class="mr-2 badge ',o===e.self.page?n+="badge-primary":n+="badge-info",n+=' wizard-page-label" ref="gotoPage">'+(null==(t=r.title)?"":t)+"</span>\n </li>\n "})),n+='\n <li>\n <span title="'+(null==(t=e.t("Create Page"))?"":t)+'" class="mr-2 badge badge-success wizard-page-label" ref="addPage">\n <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t("Page"))?"":t)+'\n </span>\n </li>\n </ol>\n <div ref="form">\n '+(null==(t=e.form)?"":t)+"\n </div>\n </div>\n</div>\n"}},19838:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(41737))&&r.__esModule?r:{default:r}).default};t.default=o},26982:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+="<"+(null==(t=e.input.type)?"":t)+'\n ref="button"\n ',e.input.attr)n+="\n "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n ';return n+="\n ",e.component.description&&(n+='\n aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n '),n+="\n>\n",e.component.leftIcon&&(n+='<span class="'+(null==(t=e.component.leftIcon)?"":t)+'"></span> '),n+="\n"+(null==(t=e.input.content)?"":t)+"\n",e.component.tooltip&&(n+='\n <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n'),n+="\n",e.component.rightIcon&&(n+=' <span class="'+(null==(t=e.component.rightIcon)?"":t)+'"></span>'),n+"\n</"+(null==(t=e.input.type)?"":t)+'>\n<div ref="buttonMessageContainer">\n <span class="help-block" ref="buttonMessage"></span>\n</div>\n'}},35858:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"\n"}},40707:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(26982)),o=i(n(35858));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},18952:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+='<div class="form-check checkbox">\n <label class="'+(null==(t=e.input.labelClass)?"":t)+' form-check-label">\n <'+(null==(t=e.input.type)?"":t)+'\n ref="input"\n ',e.input.attr)n+="\n "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n ';return n+="\n ",e.checked&&(n+="checked=true"),n+='\n aria-required="'+(null==(t=e.component.validate.required)?"":t)+'"\n ',e.component.description&&(n+='\n aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n '),n+="\n >\n ",e.self.labelIsHidden()||(n+="<span>"+(null==(t=e.input.label)?"":t)+"</span>"),n+="\n ",e.component.tooltip&&(n+='\n <i ref="tooltip" tabindex="0" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n '),n+"\n "+(null==(t=e.input.content)?"":t)+"\n </"+(null==(t=e.input.type)?"":t)+">\n </label>\n</div>\n"}},24609:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<label class="'+(null==(t=e.input.labelClass)?"":t)+'">\n '+(null==(t=e.input.content)?"":t)+"\n ",e.self.labelIsHidden()||(n+="<span>"+(null==(t=e.input.label)?"":t)+"</span>"),n+='\n</label>\n<div ref="value">',e.checked?n+="True":n+="False",n+"</div>\n"}},28569:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(18952)),o=i(n(24609));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},89199:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.component.columns.forEach((function(r,o){n+='\n<div class="\n col-'+(null==(t=r.size)?"":t)+"-"+(null==(t=r.currentWidth)?"":t)+"\n col-"+(null==(t=r.size)?"":t)+"-offset-"+(null==(t=r.offset)?"":t)+"\n col-"+(null==(t=r.size)?"":t)+"-push-"+(null==(t=r.push)?"":t)+"\n col-"+(null==(t=r.size)?"":t)+"-pull-"+(null==(t=r.pull)?"":t)+'\n " ref="'+(null==(t=e.columnKey)?"":t)+'">\n '+(null==(t=e.columnComponents[o])?"":t)+"\n</div>\n"})),n+="\n"}},36567:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(89199))&&r.__esModule?r:{default:r}).default};t.default=o},8404:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div id="'+(null==(t=e.id)?"":t)+'" class="'+(null==(t=e.classes)?"":t)+'"',e.styles&&(n+=' styles="'+(null==(t=e.styles)?"":t)+'"'),n+=' ref="component">\n ',e.visible&&(n+="\n "+(null==(t=e.children)?"":t)+'\n <div ref="messageContainer" class="formio-errors invalid-feedback"></div>\n '),n+"\n</div>\n"}},28857:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(8404))&&r.__esModule?r:{default:r}).default};t.default=o},64229:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="formio-component-modal-wrapper formio-component-modal-wrapper-'+(null==(t=e.component.type)?"":t)+'" 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==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'" ',e.self.isIE()||(n+=' role="dialog" '),n+=' ref="modalContents">\n <label class="sr-only" id="ml-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'">'+(null==(t=e.t(e.component.label))?"":t)+(null==(t=e.self.isIE()?", dialog":"")?"":t)+"</label>\n ",e.options.vpat?n+='\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 ':n+='\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 ',n+='\n <div ref="modalContents">\n ',e.visible&&(n+="\n "+(null==(t=e.children)?"":t)+"\n "),n+='\n <div class="formio-dialog-buttons">\n ',e.options.vpat&&(n+='\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==(t=e.t("Cancel"))?"":t)+"</button>\n "),n+'\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==(t=e.t("Save"))?"":t)+'</button>\n </div>\n </div>\n </div>\n <span class="sr-only" ref="modalLiveRegion" aria-live="assertive"></span>\n </div>\n</div>\n'}},6311:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(64229))&&r.__esModule?r:{default:r}).default};t.default=o},16499:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+((null==(t=e.children.join(""))?"":t)+"\n")}},16056:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(16499))&&r.__esModule?r:{default:r}).default};t.default=o}
2,46441:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div ref="'+(null==(t=e.nestedKey)?"":t)+'">\n '+(null==(t=e.children)?"":t)+"\n</div>\n"}},64401:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(46441))&&r.__esModule?r:{default:r}).default};t.default=o},25486:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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"}},79025:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table datagrid-table table-bordered\n '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n " ',e.component.layoutFixed&&(n+='style="table-layout: fixed;"'),n+=">\n ",e.hasHeader&&(n+="\n <thead>\n <tr>\n ",e.component.reorder&&(n+="<th></th>"),n+="\n ",e.columns.forEach((function(r){n+='\n <th class="'+(null==(t=r.validate&&r.validate.required?"field-required":"")?"":t)+'">\n '+(null==(t=r.hideLabel?"":e.t(r.label||r.title,{_userInput:!0}))?"":t)+"\n ",r.tooltip&&(n+=' <i ref="tooltip" tabindex="0" data-title="'+(null==(t=r.tooltip)?"":t)+'" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>'),n+="\n </th>\n "})),n+="\n ",e.hasExtraColumn&&(n+='\n <th>\n <span class="sr-only">'+(null==(t=e.t("Add/Remove"))?"":t)+"</span>\n ",!e.builder&&e.hasAddButton&&e.hasTopSubmit&&(n+='\n <button class="btn btn-primary formio-button-add-row" ref="'+(null==(t=e.datagridKey)?"":t)+'-addRow" tabindex="'+(null==(t=e.tabIndex)?"":t)+'">\n <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i>'+(null==(t=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":t)+"\n </button>\n "),n+="\n </th>\n "),n+="\n </tr>\n </thead>\n "),n+='\n <tbody ref="'+(null==(t=e.datagridKey)?"":t)+'-tbody" data-key="'+(null==(t=e.datagridKey)?"":t)+'">\n ',e.rows.forEach((function(r,o){n+="\n ",e.hasGroups&&e.groups[o]&&(n+='\n <tr ref="'+(null==(t=e.datagridKey)?"":t)+'-group-header" class="datagrid-group-header'+(null==(t=e.hasToggle?" clickable":"")?"":t)+'">\n <td\n ref="'+(null==(t=e.datagridKey)?"":t)+'-group-label"\n colspan="'+(null==(t=e.numColumns)?"":t)+'"\n class="datagrid-group-label">'+(null==(t=e.groups[o].label)?"":t)+"</td>\n </tr>\n "),n+='\n <tr ref="'+(null==(t=e.datagridKey)?"":t)+'-row">\n ',e.component.reorder&&(n+='\n <td>\n <button type="button" class="formio-drag-button btn btn-default fa fa-bars" data-key="'+(null==(t=e.datagridKey)?"":t)+'"></button>\n </td>\n '),n+="\n ",e.columns.forEach((function(o){n+='\n <td ref="'+(null==(t=e.datagridKey)?"":t)+'" ',o.key&&o.overlay&&o.overlay.width&&(n+=' style="width: '+(null==(t=o.overlay.width+"px")?"":t)+'"'),n+=" >\n "+(null==(t=r[o.key])?"":t)+"\n </td>\n "})),n+="\n ",e.hasExtraColumn&&(n+="\n ",e.hasRemoveButtons&&(n+='\n <td>\n <button type="button" class="btn btn-secondary formio-button-remove-row" ref="'+(null==(t=e.datagridKey)?"":t)+'-removeRow" tabindex="'+(null==(t=e.tabIndex)?"":t)+'" aria-label="'+(null==(t=e.t("remove"))?"":t)+'">\n <i class="'+(null==(t=e.iconClass("remove-circle"))?"":t)+'"></i>\n </button>\n </td>\n '),n+="\n ",e.canAddColumn&&(n+='\n <td ref="'+(null==(t=e.key)?"":t)+'-container">\n '+(null==(t=e.placeholder)?"":t)+"\n </td>\n "),n+="\n "),n+="\n </tr>\n "}
2)),n+="\n </tbody>\n ",!e.builder&&e.hasAddButton&&e.hasBottomSubmit&&(n+='\n <tfoot>\n <tr>\n <td colspan="'+(null==(t=e.numColumns+1)?"":t)+'">\n <button class="btn btn-primary formio-button-add-row" ref="'+(null==(t=e.datagridKey)?"":t)+'-addRow" tabindex="'+(null==(t=e.tabIndex)?"":t)+'">\n <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":t)+"\n </button>\n </td>\n </tr>\n </tfoot>\n "),n+="\n</table>\n"}},79822:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table datagrid-table table-bordered\n '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n ">\n ',e.hasHeader&&(n+="\n <thead>\n <tr>\n ",e.columns.forEach((function(r){n+='\n <th class="'+(null==(t=r.validate&&r.validate.required?"field-required":"")?"":t)+'">\n '+(null==(t=r.hideLabel?"":e.t(r.label||r.title,{_userInput:!0}))?"":t)+"\n ",r.tooltip&&(n+=' <i ref="tooltip" tabindex="0" data-title="'+(null==(t=r.tooltip)?"":t)+'" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>'),n+="\n </th>\n "})),n+="\n </tr>\n </thead>
2\n "),n+="\n <tbody>\n ",e.rows.forEach((function(r){n+="\n <tr>\n ",e.columns.forEach((function(o){n+='\n <td ref="'+(null==(t=e.datagridKey)?"":t)+'">\n '+(null==(t=r[o.key])?"":t)+"\n </td>\n "})),n+="\n </tr>\n "})),n+="\n </tbody>\n</table>\n"}},27915:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(79025)),o=i(n(79822));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},62796:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="row" role="group"\n ',e.component.hideLabel?n+='\n aria-label="'+(null==(t=e.component.label)?"":t)+'"\n ':n+='\n aria-labelledby="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n ',n+="\n ",e.component.description&&(n+='\n aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n '),n+="\n >\n ",e.dayFirst&&e.showDay&&(n+='\n <div class="col col-xs-3">\n ',e.component.hideInputLabels||(n+='\n <label for="'+(null==(t=e.component.key)?"":t)+'-day" class="',e.component.fields.day.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Day"))?"":t)+"</label>\n "),n+="\n <div>"+(null==(t=e.day)?"":t)+"</div>\n </div>\n "),n+="\n ",e.showMonth&&(n+='\n <div class="col col-xs-4">\n ',e.component.hideInputLabels||(n+='\n <label for="'+(null==(t=e.component.key)?"":t)+'-month" class="',e.component.fields.month.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Month"))?"":t)+"</label>\n "),n+="\n <div>"+(null==(t=e.month)?"":t)+"</div>\n </div>\n "),n+="\n ",!e.dayFirst&&e.showDay&&(n+='\n <div class="col col-xs-3">\n ',e.component.hideInputLabels||(n+='\n <label for="'+(null==(t=e.component.key)?"":t)+'-day" class="',e.component.fields.day.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Day"))?"":t)+"</label>\n "),n+="\n <div>"+(null==(t=e.day)?"":t)+"</div>\n </div>\n "),n+="\n ",e.showYear&&(n+='\n <div class="col col-xs-5">\n ',e.component.hideInputLabels||(n+='\n <label for="'+(null==(t=e.component.key)?"":t)+'-year" class="',e.component.fields.year.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Year"))?"":t)+"</label>\n "),n+="\n <div>"+(null==(t=e.year)?"":t)+"</div>\n </div>\n "),n+'\n</div>\n<input name="ctx.data[day]" type="hidden" class="form-control" lang="en" value="" ref="input">\n'}},11594:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(62796))&&r.__esModule?r:{default:r}).default};t.default=o},63645:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.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'}},10158:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(63645))&&r.__esModule?r:{default:r}).default};t.default=o},9665:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<ul class="editgrid-listgroup list-group\n '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n ">\n ',e.header&&(n+='\n <li class="list-group-item list-group-header">\n '+(null==(t=e.header)?"":t)+"\n </li>\n "),n+="\n ",e.rows.forEach((function(r,o){n+='\n <li class="list-group-item" ref="'+(null==(t=e.ref.row)?"":t)+'">\n '+(null==(t=r)?"":t)+"\n ",e.openRows[o]&&!e.readOnly&&(n+='\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="'+(null==(t=e.ref.saveRow)?"":t)+'">'+(null==(t=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":t)+"</button>\n ",e.component.removeRow&&(n+='\n <button class="btn btn-danger" ref="'+(null==(t=e.ref.cancelRow)?"":t)+'">'+(null==(t=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":t)+"</button>\n "),n+="\n </div>\n "),n+='\n <div class="has-error">\n <div class="editgrid-row-error">\n '+(null==(t=e.errors[o])?"":t)+"\n </div>\n </div>\n </li>\n "})),n+="\n ",e.footer&&(n+='\n <li class="list-group-item list-group-footer">\n '+(null==(t=e.footer)?"":t)+"\n </li>\n "),n+="\n</ul>\n",!e.readOnly&&e.hasAddButton&&(n+='\n<button class="btn btn-primary" ref="'+(null==(t=e.ref.addRow)?"":t)+'">\n <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":t)+"\n</button>\n"),n+="\n"}}
2,46248:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<ul class="editgrid-listgroup list-group\n '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n ">\n ',e.header&&(n+='\n <li class="list-group-item list-group-header">\n '+(null==(t=e.header)?"":t)+"\n </li>\n "),n+="\n ",e.rows.forEach((function(r,o){n+='\n <li class="list-group-item" ref="'+(null==(t=e.ref.row)?"":t)+'">\n '+(null==(t=r)?"":t)+"\n ",e.openRows[o]&&!e.readOnly&&(n+='\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="'+(null==(t=e.ref.saveRow)?"":t)+'">'+(null==(t=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":t)+"</button>\n ",e.component.removeRow&&(n+='\n <button class="btn btn-danger" ref="'+(null==(t=e.ref.cancelRow)?"":t)+'">'+(null==(t=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":t)+"</button>\n "),n+="\n </div>\n "),n+='\n <div class="has-error">\n <div class="editgrid-row-error help-block">\n '+(null==(t=e.errors[o])?"":t)+"\n </div>\n </div>\n </li>\n "})),n+="\n ",e.footer&&(n+='\n <li class="list-group-item list-group-footer">\n '+(null==(t=e.footer)?"":t)+"\n </li>\n "),n+="\n</ul>\n"}},21838:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(9665)),o=i(n(46248));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},82064:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="editgrid-table-container">\n <div class="table-responsive">\n <table class="table\n '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n ">\n ',e.header&&(n+='\n <thead class="editgrid-table-head">\n '+(null==(t=e.header)?"":t)+"\n </thead>\n "),n+='\n <tbody class="editgrid-table-body">\n ',e.rows.forEach((function(r,o){n+='\n <tr ref="'+(null==(t=e.ref.row)?"":t)+'">\n '+(null==(t=r)?"":t)+"\n ",e.openRows[o]&&!e.readOnly&&(n+='\n <td class="editgrid-table-column">\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="'+(null==(t=e.ref.saveRow)?"":t)+'">'+(null==(t=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":t)+"</button>\n ",e.component.removeRow&&(n+='\n <button class="btn btn-danger" ref="'+(null==(t=e.ref.cancelRow)?"":t)+'">'+(null==(t=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":t)+"</button>\n "),n+="\n </div>\n </td>\n "),n+="\n ",e.errors[o]&&(n+='\n <td class="editgrid-table-column">\n <div class="has-error">\n <div class="editgrid-row-error help-block">\n '+(null==(t=e.errors[o])?"":t)+"\n </div>\n </div>\n </td>\n "),n+="\n </tr>\n "})),n+="\n </tbody>\n ",e.footer&&(n+="\n <tfoot>\n <tr>\n "+(null==(t=e.footer)?"":t)+"\n </tr>\n <tfoot>\n "),n+="\n </table>\n </div>\n</div>\n",!e.readOnly&&e.hasAddButton&&(n+='\n<button class="btn btn-primary" ref="'+(null==(t=e.ref.addRow)?"":t)+'">\n <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i>\n '+(null==(t=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":t)+"\n</button>\n"),n+="\n"}},84940:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="editgrid-table-container">\n <div class="table-responsive">\n <table class="table\n '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n ">\n ',e.header&&(n+='\n <thead class="editgrid-table-head">\n '+(null==(t=e.header)?"":t)+"\n </thead>\n "),n+='\n <tbody class="editgrid-table-body">\n ',e.rows.forEach((function(r,o){n+='\n <tr ref="'+(null==(t=e.ref.row)?"":t)+'">\n '+(null==(t=r)?"":t)+"\n ",e.openRows[o]&&!e.readOnly&&(n+='\n <td class="editgrid-table-column">\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="'+(null==(t=e.ref.saveRow)?"":t)+'">'+(null==(t=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":t)+"</button>\n ",e.component.removeRow&&(n+='\n <button class="btn btn-danger" ref="'+(null==(t=e.ref.cancelRow)?"":t)+'">'+(null==(t=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":t)+"</button>\n "),n+="\n </div>\n </td>\n "),n+="\n ",e.errors[o]&&(n+='\n <td class="editgrid-table-column">\n <div class="has-error">\n <div class="editgrid-row-error help-block">\n '+(null==(t=e.errors[o])?"":t)+"\n </div>\n </div>\n </td>\n "),n+="\n </tr>\n "})),n+="\n </tbody>\n ",e.footer&&(n+="\n <tfoot>\n <tr>\n "+(null==(t=e.footer)?"":t)+"\n </tr>\n <tfoot>\n "),n+="\n </table>\n </div>\n</div>\n"}},5342:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(82064)),o=i(n(84940));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},92161:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+="<p>"+(null==(t=e.t("error"))?"":t)+"\n ",e.options.vpat&&(n+='\n <span ref="errorTooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+'" tabindex="0"></span>\n '),n+="\n</p>\n<ul>\n ",e.errors.forEach((function(e){n+='\n <li>\n <span\n data-component-key = "'+(null==(t=e.keyOrPath)?"":t)+'"\n ref = "errorRef"\n tabIndex = "0"\n role="link"\n >\n '+(null==(t=e.message)?"":t)+"\n </span>\n </li>\n "})),n+="\n</ul>\n"}},21337:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(92161))&&r.__esModule?r:{default:r}).default};t.default=o},21193:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="field-wrapper\n '+(null==(t=e.isRightPosition?"field-wrapper--reverse":"")?"":t)+'">\n ',e.label.hidden||(n+='\n <div class="field-label\n '+(null==(t=e.isRightAlign?"field-label--right":"")?"":t)+'"\n style="'+(null==(t=e.labelStyles)?"":t)+'">\n '+(null==(t=e.labelMarkup)?"":t)+"\n </div>\n "),n+="\n\n ",e.label.hidden&&e.label.className&&e.component.validate.required&&(n+='\n <div class="field-label\n '+(null==(t=e.isRightAlign?"field-label--right":"")?"":t)+'"\n style="'+(null==(t=e.labelStyles)?"":t)+'">\n <label class="'+(null==(t=e.label.className)?"":t)+'"></label>\n </div>\n '),n+='\n\n <div class="field-content" style="'+(null==(t=e.contentStyles)?"":t)+'">\n '+(null==(t=e.element)?"":t)+"\n </div>\n</div>\n\n",e.component.description&&(n+='\n <div class="form-text text-muted">'+(null==(t=e.t(e.component.description,{_userInput:!0}))?"":t)+"</div>\n"),n+"\n"}},81336:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.label.hidden||"bottom"===e.label.labelPosition||(n+="\n "+(null==(t=e.labelMarkup)?"":t)+"\n"),n+="\n\n",e.label.hidden&&e.label.className&&e.component.validate.required&&(n+='\n <label class="'+(null==(t=e.label.className)?"":t)+'"></label>\n'),n+="\n\n"+(null==(t=e.element)?"":t)+"\n\n",e.label.hidden||"bottom"!==e.label.labelPosition||(n+="\n "+(null==(t=e.labelMarkup)?"":t)+"\n"),n+="\n",e.component.description&&(n+='\n <div id="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'" class="form-text text-muted">'+(null==(t=e.t(e.component.description,{_userInput:!0}))?"":t)+"</div>\n"),n+"\n"}},77703:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(81336)),o=i(n(21193));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,align:o.default};t.default=a},3677:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+="<fieldset>\n ",e.component.legend&&(n+='\n <legend ref="header" class="'+(null==(t=e.component.collapsible?"formio-clickable":"")?"":t)+'">\n '+(null==(t=e.t(e.component.legend,{_userInput:!0}))?"":t)+"\n ",e.component.tooltip&&(n+='\n <i ref="tooltip" tabindex="0" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>
2\n '),n+="\n </legend>\n "),n+="\n ",e.collapsed||(n+='\n <div class="fieldset-body" ref="'+(null==(t=e.nestedKey)?"":t)+'">\n '+(null==(t=e.children)?"":t)+"\n </div>\n "),n+"\n</fieldset>\n"}},2619:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(3677))&&r.__esModule?r:{default:r}).default};t.default=o},99748:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.options.vpat&&(n+='\n <span tabindex="-1" class="sr-only" id="invisible-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"></span>\n'),n+="\n",e.self.imageUpload?(n+="\n <div>\n ",e.files.forEach((function(r){n+='\n <div>\n <span>\n <img ref="fileImage" src="" alt="'+(null==(t=r.originalName||r.name)?"":t)+'" style="width:'+(null==(t=e.component.imageSize)?"":t)+'px">\n ',e.disabled||(n+='\n <i tabindex="0" class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="removeLink"></i>\n '),n+="\n </span>\n </div>\n "})),n+="\n </div>\n"):(n+="\n ",e.options.vpat&&(n+="\n <div>"+(null==(t=e.component.filePattern&&"*"!==e.component.filePattern?e.t("Allowed file types: ")+e.component.filePattern:"Any file types are allowed")?"":t)+"</div>\n "),n+='\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||(n+='\n <div class="col-md-1"></div>\n '),n+='\n <div class="col-md-',e.self.hasTypes?n+="7":n+="9",n+='"><strong>'+(null==(t=e.t("File Name"))?"":t)+'</strong></div>\n <div class="col-md-2"><strong>'+(null==(t=e.t("Size"))?"":t)+"</strong></div>\n ",e.self.hasTypes&&(n+='\n <div class="col-md-2"><strong>'+(null==(t=e.t("Type"))?"":t)+"</strong></div>\n "),n+="\n </div>\n </li>\n ",e.files.forEach((function(r){n+='\n <li class="list-group-item">\n <div class="row">\n ',e.disabled||(n+='\n <div class="col-md-1"><i tabindex="0" class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="removeLink"></i></div>\n '),n+='\n <div class="col-md-',e.self.hasTypes?n+="7":n+="9",n+='">\n ',e.component.uploadOnly?n+="\n "+(null==(t=r.originalName||r.name)?"":t)+"\n ":n+='\n <a href="'+(null==(t=r.url||"#")?"":t)+'" target="_blank" ref="fileLink">\n <span class="sr-only">'+(null==(t=e.t("Press to open "))?"":t)+"</span>"+(null==(t=r.originalName||r.name)?"":t)+"\n </a>\n ",n+='\n </div>\n <div class="col-md-2">'+(null==(t=e.fileSize(r.size))?"":t)+"</div>\n ",e.self.hasTypes&&!e.disabled&&(n+='\n <div class="col-md-2">\n <select class="file-type" ref="fileType">\n ',e.component.fileTypes.map((function(o){n+='\n <option class="test" value="'+(null==(t=o.value)?"":t)+'" ',o.label===r.fileType&&(n+='selected="selected"'),n+=">"+(null==(t=e.t(o.label))?"":t)+"</option>\n "})),n+="\n </select>\n </div>\n "),n+="\n ",e.self.hasTypes&&e.disabled&&(n+='\n <div class="col-md-2">'+(null==(t=r.fileType)?"":t)+"</div>\n "),n+="\n </div>\n </li>\n "})),n+="\n </ul>\n"),n+="\n",e.disabled||!e.component.multiple&&e.files.length||(n+="\n ",e.self.useWebViewCamera?n+='\n <div class="fileSelector">\n <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(t=e.t("Gallery"))?"":t)+'</button>\n <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(t=e.t("Camera"))?"":t)+"</button>\n </div>\n ":e.self.cameraMode?n+='\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==(t=e.t("Take Picture"))?"":t)+'</button>\n <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(t=e.t("Switch to file upload"))?"":t)+"</button>\n ":(n+='\n <div class="fileSelector" ref="fileDrop" '+(null==(t=e.fileDropHidden?"hidden":"")?"":t)+'>\n <i class="'+(null==(t=e.iconClass("cloud-upload"))?"":t)+'"></i> '+(null==(t=e.t("Drop files to attach,"))?"":t)+"\n ",e.self.imageUpload&&e.component.webcam&&(n+='\n <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(t=e.t("use camera"))?"":t)+"</a>\n "),n+="\n "+(null==(t=e.t("or"))?"":t)+'\n <a href="#" ref="fileBrowse" class="browse">
2\n '+(null==(t=e.t("browse"))?"":t)+'\n <span class="sr-only">\n '+(null==(t=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")))?"":t)+'\n </span>\n </a>\n <div ref="fileProcessingLoader" class="loader-wrapper">\n <div class="loader text-center"></div>\n </div>\n </div>\n '),n+="\n"),n+="\n",e.statuses.forEach((function(r){n+='\n <div class="file '+(null==(t="error"===e.statuses.status?" has-error":"")?"":t)+'">\n <div class="row">\n <div class="fileName col-form-label col-sm-10">'+(null==(t=r.originalName)?"":t)+'\n <i class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="fileStatusRemove">\n <span class="sr-only">'+(null==(t=e.t("Remove button. Press to remove "+r.originalName||0))?"":t)+'</span>\n <span class="sr-only">'+(null==(t=r.message?r.message.replace(";","."):"")?"":t)+'</span>\n </i>\n </div>\n <div class="fileSize col-form-label col-sm-2 text-right">'+(null==(t=e.fileSize(r.size))?"":t)+'</div>\n </div>\n <div class="row">\n <div class="col-sm-12">\n ',"progress"===r.status?n+='\n <div class="progress">\n <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(t=r.progress)?"":t)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(t=r.progress)?"":t)+'%">\n <span class="sr-only">'+(null==(t=r.progress)?"":t)+"% "+(null==(t=e.t("Complete"))?"":t)+"</span>\n </div>\n </div>\n ":"error"===r.status?n+='\n <div class="alert alert-danger bg-'+(null==(t=r.status)?"":t)+'">'+(null==(t=e.t(r.message))?"":t)+"</div>\n ":n+='\n <div class="bg-'+(null==(t=r.status)?"":t)+'">'+(null==(t=e.t(r.message))?"":t)+"</div>\n ",n+="\n </div>\n </div>\n </div>\n"})),n+="\n",e.component.storage&&!e.support.hasWarning||(n+='\n <div class="alert alert-warning">\n ',e.component.storage||(n+="\n <p>"+(null==(t=e.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":t)+"</p>\n "),n+="\n ",e.support.filereader||(n+="\n <p>"+(null==(t=e.t("File API & FileReader API not supported."))?"":t)+"</p>\n "),n+="\n ",e.support.formdata||(n+="\n <p>"+(null==(t=e.t("XHR2's FormData is not supported."))?"":t)+"</p>\n "),n+="\n ",e.support.progress||(n+="\n <p>"+(null==(t=e.t("XHR2's upload progress isn't supported."))?"":t)+"</p>
2\n "),n+="\n </div>\n"),n+="\n"}},10910:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(99748))&&r.__esModule?r:{default:r}).default};t.default=o},80692:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+="<"+(null==(t=e.tag)?"":t)+' class="'+(null==(t=e.component.className)?"":t)+'" ref="html"\n ',e.attrs.forEach((function(e){n+="\n "+(null==(t=e.attr)?"":t)+'="'+(null==(t=e.value)?"":t)+'"\n '})),n+="\n>"+(null==(t=e.t(e.content))?"":t),e.singleTags&&-1!==e.singleTags.indexOf(e.tag)||(n+="</"+(null==(t=e.tag)?"":t)+">"),n+="\n"}},28209:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(80692))&&r.__esModule?r:{default:r}).default};t.default=o},72663:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<i ref="'+(null==(t=e.ref)?"":t)+'" class="'+(null==(t=e.className)?"":t)+'" style="'+(null==(t=e.styles)?"":t)+'">'+(null==(t=e.content)?"":t)+"</i>\n"}},34885:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(72663))&&r.__esModule?r:{default:r}).default};t.default=o},64968:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(92222),t.default=function(e,t,n){if("fa"===e)switch(t){case"save":t="download";break;case"zoom-in":t="search-plus";break;case"zoom-out":t="search-minus";break;case"question-sign":t="question-circle";break;case"remove-circle":t="times-circle-o";break;case"new-window":t="window-restore";break;case"move":t="arrows";break;case"time":t="clock-o"}return n?"".concat(e," ").concat(e,"-").concat(t," ").concat(e,"-spin"):"".concat(e," ").concat(e,"-").concat(t)}},5508:function(e,t,n){"use strict";n(47941),n(82526),n(57327),n(38880),n(54747),n(49337),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(41539),n(39714);var r=pe(n(45284)),o=pe(n(15590)),i=pe(n(14943)),a=pe(n(89298)),s=pe(n(74798)),l=pe(n(65181)),u=pe(n(98953)),c=pe(n(31440)),f=pe(n(19838)),d=pe(n(40707)),p=pe(n(28569)),h=pe(n(36567)),m=pe(n(28857)),v=pe(n(6311)),y=pe(n(16056)),b=pe(n(42142)),g=pe(n(64401)),w=pe(n(27915)),k=pe(n(11594)),_=pe(n(10158)),O=pe(n(21838)),x=pe(n(5342)),S=pe(n(77703)),j=pe(n(2619)),P=pe(n(10910)),C=pe(n(28209)),E=pe(n(34885)),A=pe(n(64968)),M=pe(n(98781)),R=pe(n(59811)),T=pe(n(38304)),D=pe(n(97028)),I=pe(n(56105)),V=pe(n(40822)),L=pe(n(75441)),N=pe(n(20073)),F=pe(n(44857)),B=pe(n(87505)),z=pe(n(5392)),U=pe(n(32878)),H=pe(n(2265)),q=pe(n(40486)),W=pe(n(24628)),K=pe(n(80247)),Y=pe(n(80411)),G=pe(n(36236)),$=pe(n(58830)),J=pe(n(3246)),Z=pe(n(4287)),X=pe(n(40708)),Q=pe(n(67741)),ee=pe(n(75401)),te=pe(n(1)),ne=pe(n(29304)),re=pe(n(56429)),oe=pe(n(13380)),ie=pe(n(41345)),ae=pe(n(187)),se=pe(n(88057)),le=pe(n(75273)),ue=pe(n(24376)),ce=pe(n(25486)),fe=pe(n(21337)),de=pe(n(75284));function pe(e){return e&&e.__esModule?e:{default:e}}function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){ve(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ye=me(me({transform:function(e,t){return t&&"class"===e&&this.cssClasses.hasOwnProperty(t.toString())?this.cssClasses[t.toString()]:t},defaultIconset:"fa",iconClass:A.default,cssClasses:ce.default,address:r.default,builder:o.default,builderComponent:i.default,builderComponents:a.default,builderEditForm:s.default,builderPlaceholder:l.default,builderSidebar:u.default,builderSidebarGroup:c.default,builderWizard:f.default,button:d.default,checkbox:p.default,columns:h.default,component:m.default,componentModal:v.default,components:y.default,tableComponents:b.default,container:g.default,datagrid:w.default,day:k.default,dialog:_.default,editgrid:O.default,editgridTable:x.default,field:S.default,fieldset:j.default,file:P.default,html:C.default,icon:E.default,input:M.default,label:R.default,loader:T.default,loading:D.default,map:I.default,message:V.default,modaledit:N.default,modaldialog:L.default,modalPreview:F.default,multipleMasksInput:B.default,multiValueRow:z.default,multiValueTable:U.default,panel:H.default,pdf:q.default,pdfBuilder:W.default,pdfBuilderUpload:K.default,radio:Y.default,resourceAdd:G.default,select:$.default,selectOption:J.default,signature:Z.default,survey:X.default,tab:Q.default,table:ee.default,tree:te.default},ne.default),{},{webform:re.default,well:oe.default,wizard:ie.default,wizardHeader:ae.default,wizardHeaderClassic:se.default,wizardHeaderVertical:le.default,wizardNav:ue.default,errorsList:fe.default,alert:de.default});t.default=ye}
2,62247:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";if(Array.prototype.join,(e.prefix||e.suffix)&&(n+='\n<div class="input-group">\n '),n+="\n ",e.prefix&&(n+='\n <div class="input-group-prepend" ref="prefix">\n <span class="input-group-text">\n ',e.prefix instanceof HTMLElement?n+="\n "+(null==(t=e.t(e.prefix.outerHTML,{_userInput:!0}))?"":t)+"\n ":n+="\n "+(null==(t=e.t(e.prefix,{_userInput:!0}))?"":t)+"\n ",n+="\n </span>\n </div>\n "),n+="\n ",!e.component.editor&&!e.component.wysiwyg){for(var r in n+="\n <"+(null==(t=e.input.type)?"":t)+'\n ref="'+(null==(t=e.input.ref?e.input.ref:"input")?"":t)+'"\n ',e.input.attr)n+="\n "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n ';n+='\n id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n aria-labelledby="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+" ",e.component.description&&(n+="d-"+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)),n+='"\n aria-required="'+(null==(t="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)?"":t)+'"\n >'+(null==(t=e.input.content)?"":t)+"</"+(null==(t=e.input.type)?"":t)+">\n ",e.hasValueMaskInput&&(n+='\n <input ref="valueMaskInput" />\n '),n+="\n"}return n+="\n",(e.component.editor||e.component.wysiwyg)&&(n+='\n <div ref="input"></div>\n'),n+="\n","datetime"===e.component.type&&(n+='\n<span aria-live="assertive" id="'+(null==(t=e.instance.id)?"":t)+'-liveRegion" class="sr-only" ref="liveRegion"></span>\n'),n+="\n",e.suffix&&(n+='\n <div class="input-group-append" ref="suffix">\n <span class="input-group-text">\n ',e.suffix instanceof HTMLElement?n+="\n "+(null==(t=e.t(e.suffix.outerHTML,{_userInput:!0}))?"":t)+"\n ":n+="\n "+(null==(t=e.t(e.suffix,{_userInput:!0}))?"":t)+"\n ",n+="\n </span>\n </div>\n"),n+="\n",(e.prefix||e.suffix)&&(n+="\n </div>\n"),n+="\n",(e.component.showCharCount||e.component.showWordCount)&&(n+='\n<div class="form-text '+(null==(t=e.component.description?"pull-right":"text-right")?"":t)+'">\n ',e.component.showCharCount&&(n+='\n <span class="text-muted" ref="charcount" aria-live="polite"></span>\n '),n+="\n ",e.component.showWordCount&&(n+='\n <span class="text-muted" ref="wordcount" aria-live="polite"></span>\n '),n+="\n</div>\n"),n+"\n"}},19423:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div ref="value">',e.value?n+=null==(t=e.value)?"":t:n+="-",n+"</div>\n"}},98781:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(62247)),o=i(n(19423));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},2025:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<label\n ref="label"\n class="col-form-label '+(null==(t=e.label.className)?"":t)+'"\n for="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n id="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n>\n '+(null==(t=e.t(e.component.label,{_userInput:!0}))?"":t)+"\n ","number"!==e.component.type&&"phoneNumber"!==e.component.type&&"currency"!==e.component.type||(n+="\n <span class='sr-only'>, "+(null==(t=e.t("numeric only"))?"":t)+",</span>\n "),n+="\n ",e.component.tooltip&&(n+='\n <i ref="tooltip" tabindex="0" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n '),n+"\n</label>\n"}},59811:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(2025))&&r.__esModule?r:{default:r}).default};t.default=o}
2,76904:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.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'}},38304:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(76904))&&r.__esModule?r:{default:r}).default};t.default=o},71956:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"Loading...\n"}},97028:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(71956))&&r.__esModule?r:{default:r}).default};t.default=o},31597:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div id="'+(null==(t=e.mapId)?"":t)+'" style="min-height: 300px; height: calc(100vh - 600px);" ref="gmapElement"></div>\n'}},56105:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(31597))&&r.__esModule?r:{default:r}).default};t.default=o},46742:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div id="e-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.key)?"":t)+'" class="form-text '+(null==(t=e.level||"error")?"":t)+'">'+(null==(t=e.message)?"":t)+"</div>\n"}},40822:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(46742))&&r.__esModule?r:{default:r}).default};t.default=o},47190:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<label id="l-'+(null==(t=e.component.key)?"":t)+'" class="control-label '+(null==(t=e.label.className)?"":t)+'">\n '+(null==(t=e.t(e.component.label,{_userInput:!0}))?"":t)+'<span ref="modalLabelValue" class="sr-only">. '+(null==(t="signature"===e.component.type?e.self.getValueAsString(e.previewText):e.previewText)?"":t)+'</span>\n</label><br>\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==(t=e.openModalBtnClasses||"")?"":t)+'"\n ref="openModal"\n aria-labelledby="l-'+(null==(t=e.component.key)?"":t)+'"\n>\n '+(null==(t=e.previewText)?"":t)+'\n</button>\n<div class="formio-errors invalid-feedback">\n '+(null==(t=e.messages)?"":t)+"\n</div>\n"}},44857:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(47190))&&r.__esModule?r:{default:r}).default};t.default=o},34585:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;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==(t=e.t("Close"))?"":t)+'\n </button>\n <div ref="inner" class="reset-margins"></div>\n </div>\n</div>\n'}},75441:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(34585))&&r.__esModule?r:{default:r}).default};t.default=o},16160:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;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==(t=e.iconClass("edit"))?"":t)+'"></i>\n </button>\n <div ref="input" class="modaledit-view-inner reset-margins">'+(null==(t=e.content)?"":t)+"</div>\n</div>\n"}},20073:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(16160))&&r.__esModule?r:{default:r}).default};t.default=o}
2,31737:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<tr ref="row">\n <td>\n '+(null==(t=e.element)?"":t)+"\n </td>\n ",e.disabled||(n+='\n <td>\n <button type="button" class="btn btn-secondary" ref="removeRow">\n <i class="'+(null==(t=e.iconClass("remove-circle"))?"":t)+'"></i>\n </button>\n </td>\n '),n+"\n</tr>\n"}},5392:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(31737))&&r.__esModule?r:{default:r}).default};t.default=o},47935:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table table-bordered">\n <tbody>\n '+(null==(t=e.rows)?"":t)+"\n ",e.disabled||(n+='\n <tr>\n <td colspan="2">\n <button class="btn btn-primary formio-button-add-another" ref="addButton"><i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.addAnother,{_userInput:!0}))?"":t)+"</button>\n </td>\n </tr>\n "),n+"\n </tbody>\n</table>\n"}},32878:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(47935))&&r.__esModule?r:{default:r}).default};t.default=o},33793:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+='<div\n class="input-group formio-multiple-mask-container"\n ref="'+(null==(t=e.input.ref?e.input.ref:"input")?"":t)+'"\n>\n <select\n class="form-control formio-multiple-mask-select"\n id="'+(null==(t=e.key)?"":t)+'-mask"\n ref="select"\n ',e.input.attr.disabled&&(n+="disabled"),n+=">\n ",e.selectOptions.forEach((function(e){n+='\n <option value="'+(null==(t=e.value)?"":t)+'">'+(null==(t=e.label)?"":t)+"</option>\n "})),n+='\n </select>\n <input\n ref="mask"\n ',e.input.attr)n+="\n "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n ';return n+="\n >\n</div>\n"}},87505:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(33793))&&r.__esModule?r:{default:r}).default};t.default=o},47760:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="mb-2 card border">\n ',(!e.component.hideLabel||e.builder||e.component.collapsible||e.component.tooltip)&&(n+='\n <div class="card-header '+(null==(t=e.transform("class","bg-"+e.component.theme))?"":t)+'"\n ',e.component.collapsible&&(n+='\n tabindex="0"\n '),n+='\n role="button"\n aria-expanded="'+(null==(t=!e.component.collapsible||!e.collapsed)?"":t)+'"\n aria-controls="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n ref="header"\n >\n <span class="mb-0 card-title ',e.component.theme&&"default"!==e.component.theme&&(n+="text-light"),n+='">\n ',e.component.collapsible&&(n+='\n <i class="formio-collapse-icon '+(null==(t=e.iconClass(e.collapsed?"plus-square-o":"minus-square-o"))?"":t)+' text-muted" data-title="Collapse Panel"></i>\n '),n+="\n ",e.component.hideLabel&&!e.builder||(n+="\n "+(null==(t=e.t(e.component.title,{_userInput:!0}))?"":t)+"\n "),n+="\n ",e.component.tooltip&&(n+='\n <i ref="tooltip" tabindex="0" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n '),n+="\n </span>\n </div>\n "),n+="\n ",e.collapsed&&!e.builder||(n+='\n <div class="card-body" ref="'+(null==(t=e.nestedKey)?"":t)+'" id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'">\n '+(null==(t=e.children)?"":t)+"\n </div>\n "),n+"\n</div>\n"}},2265:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(47760))&&r.__esModule?r:{default:r}).default};t.default=o}
2,52342:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="'+(null==(t=e.classes)?"":t)+'" ref="webform">\n\t<span data-noattach="true" ref="zoomIn" style="position:absolute;right:10px;top:10px;cursor:pointer;" class="btn btn-default btn-secondary no-disable">\n\t\t<i class="'+(null==(t=e.iconClass("zoom-in"))?"":t)+'"></i>\n\t</span>\n\t<span data-noattach="true" ref="zoomOut" style="position:absolute;right:10px;top:60px;cursor:pointer;" class="btn btn-default btn-secondary no-disable">\n\t\t<i class="'+(null==(t=e.iconClass("zoom-out"))?"":t)+'"></i>\n\t</span>\n <div data-noattach="true" ref="iframeContainer"></div>\n '+(null==(t=e.submitButton)?"":t)+"\n</div>\n"}},40486:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(52342))&&r.__esModule?r:{default:r}).default};t.default=o},67384:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="formio builder row formbuilder">\n <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n '+(null==(t=e.sidebar)?"":t)+'\n </div>\n <div class="col-xs-8 col-sm-9 col-md-10 formarea" ref="form">\n\t <div class="formio-drop-zone" ref="iframeDropzone"></div>\n '+(null==(t=e.form)?"":t)+"\n </div>\n</div>\n"}},24628:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(67384))&&r.__esModule?r:{default:r}).default};t.default=o},47733:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="pdf-upload formio-component-file">\n <h3 class="label">'+(null==(t=e.t("Upload a PDF File"))?"":t)+'</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==(t=e.iconClass("cloud-upload"))?"":t)+'"></i>
2'+(null==(t=e.t("Drop pdf to start, or"))?"":t)+' <a href="#" ref="fileBrowse" class="browse">'+(null==(t=e.t("browse"))?"":t)+'</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'}},80247:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(47733))&&r.__esModule?r:{default:r}).default};t.default=o},36564:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div\n class="form-radio radio"\n ref="radioGroup"\n role="'+(null==(t="selectboxes"===e.component.type?"group":"radiogroup")?"":t)+'"\n aria-required="'+(null==(t=e.input.component.validate.required)?"":t)+'"\n aria-labelledby="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n ',e.component.description&&(n+='\n aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n '),n+="\n>\n ",e.values.forEach((function(r){for(var o in n+='\n <div class="'+(null==(t=e.input.attr.type)?"":t)+" "+(null==(t=e.component.optionsLabelPosition&&"right"!==e.component.optionsLabelPosition?"pl-0":"")?"":t)+" form-check"+(null==(t=e.inline?"-inline":"")?"":t)+'" ref="wrapper">\n <label class="form-check-label label-position-'+(null==(t=e.component.optionsLabelPosition)?"":t)+'" for="'+(null==(t=e.instance.root&&e.instance.root.id)?"":t)+"-"+(null==(t=e.id)?"":t)+"-"+(null==(t=e.row)?"":t)+"-"+(null==(t=r.value)?"":t)+'">\n ',"left"!==e.component.optionsLabelPosition&&"top"!==e.component.optionsLabelPosition||(n+="\n <span>"+(null==(t=e.t(r.label,{_userInput:!0}))?"":t)+"</span>\n "),n+="\n <"+(null==(t=e.input.type)?"":t)+'\n ref="input"\n ',e.input.attr)n+="\n "+(null==(t=o)?"":t)+'="'+(null==(t=e.input.attr[o])?"":t)+'"\n ';n+='\n value="'+(null==(t=r.value)?"":t)+'"\n ',e.value&&(e.value===r.value||"object"==typeof e.value&&e.value.hasOwnProperty(r.value)&&e.value[r.value])&&(n+="\n checked=true\n "),n+="\n ",r.disabled&&(n+="\n disabled=true\n "),n+='\n id="'+(null==(t=e.instance.root&&e.instance.root.id)?"":t)+"-"+(null==(t=e.id)?"":t)+"-"+(null==(t=e.row)?"":t)+"-"+(null==(t=r.value)?"":t)+'"\n role="'+(null==(t="selectboxes"===e.component.type?"checkbox":"radio")?"":t)+'"\n >\n ',e.component.optionsLabelPosition&&"right"!==e.component.optionsLabelPosition&&"bottom"!==e.component.optionsLabelPosition||(n+="\n <span>"+(null==(t=e.t(r.label,{_userInput:!0}))?"":t)+"</span>\n "),n+="\n </label>\n </div>\n "})),n+="\n</div>\n"}},92635:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,(n+='<div ref="value">\n ')+"\n "+(null==(t=e.values.filter((function(t){return e.value===t.value||"object"==typeof e.value&&e.value.hasOwnProperty(t.value)&&e.value[t.value]})).map((function(t){return e.t(t.label,{_userInput:!0})})).join(", "))?"":t)+"\n </div>\n"}},80411:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(36564)),o=i(n(92635));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},59464:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<table class="table table-bordered">\n <tbody>\n <tr>\n <td>\n '+(null==(t=e.element)?"":t)+'\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==(t=e.iconClass("plus"))?"":t)+'"></i>\n '+(null==(t=e.t(e.component.addResourceLabel||"Add Resource",{_userInput:!0}))?"":t)+"\n </button>\n </td>\n </tr>\n </tbody>\n</table>\n"}},36236:function(e,t,n){"use strict";var r;
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(59464))&&r.__esModule?r:{default:r}).default};t.default=o},99291:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+='<select\n ref="'+(null==(t=e.input.ref?e.input.ref:"selectContainer")?"":t)+'"\n '+(null==(t=e.input.multiple?"multiple":"")?"":t)+"\n ",e.input.attr)n+="\n "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n ';return n+="\n ",e.input.attr.id||(n+='\n id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n '),n+="\n ",e.component.description&&(n+='\n aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n '),n+='\n aria-required="'+(null==(t="selectContainer"!==e.input.ref&&e.input.ref?e.component.fields[e.input.ref].required:e.input.component.validate.required)?"":t)+'"\n>'+(null==(t=e.selectOptions)?"":t)+'</select>\n<input type="text"\n class="formio-select-autocomplete-input"\n ref="autocompleteInput"\n ',e.input.attr.autocomplete&&(n+='\n autocomplete="'+(null==(t=e.input.attr.autocomplete)?"":t)+'"\n '),n+'\n tabindex="-1"\n aria-label="'+(null==(t=e.t("autocomplete"))?"":t)+'"\n/>\n'}},29645:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div ref="value">',e.value?n+=null==(t=e.self.itemValueForHTMLMode(e.value))?"":t:n+="-",n+"</div>\n"}},58830:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(99291)),o=i(n(29645));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},37040:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+="<option "+(null==(t=e.selected?'selected="selected"':"")?"":t)+"\n value='"+(null==(t=e.useId?e.id:e.option.value)?"":t)+"'\n ",e.attrs)n+="\n "+(null==(t=r)?"":t)+'="'+(null==(t=e.attrs[r])?"":t)+'"\n ';return n+"\n >\n "+(null==(t=e.t(e.option.label,{_userInput:!0}))?"":t)+"\n</option>\n"}},89741:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.selected&&(n+=null==(t=e.t(e.option.label,{_userInput:!0}))?"":t),n+"\n"}},3246:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(37040)),o=i(n(89741));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},66272:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+=(null==(t=e.element)?"":t)+'\n<div\n class="signature-pad-body"\n style="width: '+(null==(t=e.component.width)?"":t)+";height: "+(null==(t=e.component.height)?"":t)+';padding:0;margin:0;"\n tabindex="'+(null==(t=e.component.tabindex||0)?"":t)+'"\n ref="padBody"\n>\n <a class="btn btn-sm btn-light signature-pad-refresh" ref="refresh">\n <i class="'+(null==(t=e.iconClass("refresh"))?"":t)+'"></i>\n </a>\n <canvas class="signature-pad-canvas" style="display: none;" height="'+(null==(t=e.component.height)?"":t)+'" ref="canvas"></canvas>\n ',e.required&&(n+='\n <span class="form-control-feedback field-required-inline text-danger">\n <i class="'+(null==(t=e.iconClass("asterisk"))?"":t)+'"></i>\n </span>\n '),n+='\n <img style="width: 100%;display: inherit;" ref="signatureImage">\n</div>\n',e.component.footer&&(n+='\n <div class="signature-pad-footer">\n '+(null==(t=e.t(e.component.footer,{_userInput:!0}))?"":t)+"\n </div>\n"),n+"\n"}},47044:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'<img style="width: 100%;" ref="signatureImage">\n'}},4287:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(66272)),o=i(n(47044));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a}
2,79419:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table table-striped table-bordered" aria-labelledby="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'">\n <thead>\n <tr>\n <th></th>\n ',e.component.values.forEach((function(r){n+='\n <th style="text-align: center;">\n '+(null==(t=e.t(r.label,{_userInput:!0}))?"":t)+"\n ",r.tooltip&&(n+='\n <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>\n '),n+="\n </th>\n "})),n+="\n </tr>\n </thead>\n <tbody>\n ",e.component.questions.forEach((function(r){n+="\n <tr>\n <td>\n "+(null==(t=e.t(r.label))?"":t)+"\n ",r.tooltip&&(n+='\n <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>\n '),n+="\n </td>\n ",e.component.values.forEach((function(o){n+='\n <td style="text-align: center;">\n <input type="radio" name="'+(null==(t=e.self.getInputName(r))?"":t)+'" value="'+(null==(t=o.value)?"":t)+'" id="'+(null==(t=e.key)?"":t)+"-"+(null==(t=r.value)?"":t)+"-"+(null==(t=o.value)?"":t)+'" ref="input">\n </td>\n '})),n+="\n </tr>\n "})),n+="\n </tbody>\n</table>\n"}},80188:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table table-striped table-bordered">\n <tbody>\n ',e.component.questions.forEach((function(r){n+="\n <tr>\n <th>"+(null==(t=e.t(r.label))?"":t)+"</th>\n <td>\n ",e.component.values.forEach((function(o){n+="\n ",e.value&&e.value.hasOwnProperty(r.value)&&e.value[r.value]===o.value&&(n+="\n "+(null==(t=e.t(o.label))?"":t)+"\n "),n+="\n "})),n+="\n </td>\n </tr>\n "})),n+="\n </tbody>\n</table>\n"}},40708:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(79419)),o=i(n(80188));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},61915:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.component.components.forEach((function(r,o){n+='\n <div class="mb-2 card border">\n <div class="card-header bg-default">\n <h4 class="mb-0 card-title">'+(null==(t=e.t(r.label,{_userInput:!0}))?"":t)+'</h4>\n </div>\n <div\n class="card-body"\n ref="'+(null==(t=e.tabKey)?"":t)+'"\n >\n '+(null==(t=e.tabComponents[o])?"":t)+"\n </div>\n </div>\n"})),n+="\n"}},78395:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="card'+(null==(t=e.component.verticalLayout?" card-vertical":"")?"":t)+'">\n <div class="card-header">\n <ul class="nav nav-tabs card-header-tabs'+(null==(t=e.component.verticalLayout?" nav-tabs-vertical":"")?"":t)+'" role="tablist">\n ',e.component.components.forEach((function(r,o){n+='\n <li class="nav-item'+(null==(t=e.currentTab===o?" active":"")?"":t)+'" role="tab" ref="'+(null==(t=e.tabLikey)?"":t)+'">\n <a\n class="nav-link'+(null==(t=e.currentTab===o?" active":"")?"":t)+(null==(t=e.component.verticalLayout?" nav-link-vertical":"")?"":t)+'"\n href="#'+(null==(t=r.key)?"":t)+'"\n ref="'+(null==(t=e.tabLinkKey)?"":t)+'"\n >\n '+(null==(t=e.t(r.label,{_userInput:!0}))?"":t)+"\n </a>\n </li>\n "})),n+="\n </ul>\n </div>\n ",e.component.components.forEach((function(r,o){n+='\n <div\n role="tabpanel"\n class="card-body tab-pane'+(null==(t=e.currentTab===o?" active":"")?"":t)+'"\n style="display: '+(null==(t=e.currentTab===o?"block":"none")?"":t)+'"\n ref="'+(null==(t=e.tabKey)?"":t)+'"\n >\n '+(null==(t=e.tabComponents[o])?"":t)+"\n </div>\n "})),n+="\n</div>\n"}},67741:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(61915)),o=i(n(78395));function i(e){return e&&e.__esModule?e:{default:e}}var a={flat:r.default,form:o.default};t.default=a},13381:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table\n '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n ">\n <caption class="sr-only">'+(null==(t=e.t(e.component.label))?"":t)+"</caption>\n ",e.component.header&&e.component.header.length>0&&(n+="\n <thead>\n <tr>\n ",e.component.header.forEach((function(r){n+="\n <th>"+(null==(t=e.t(r))?"":t)+"</th>\n "})),n+="\n </tr>\n </thead>\n "),n+="\n <tbody>\n ",e.tableComponents.forEach((function(r,o){n+='\n <tr ref="row-'+(null==(t=e.id)?"":t)+'">\n ',r.forEach((function(r,i){n+='\n <td ref="'+(null==(t=e.tableKey)?"":t)+"-"+(null==(t=o)?"":t)+'"',e.cellClassName&&(n+=' class="'+(null==(t=e.cellClassName)?"":t)+'"'),n+=">"+(null==(t=r)?"":t)+"</td>\n "})),n+="\n </tr>\n "})),n+="\n </tbody>\n</table>\n"}},75401:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(13381))&&r.__esModule?r:{default:r}).default};t.default=o},81863:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.children.forEach((function(e){n+='\n <td class="editgrid-table-column">\n '+(null==(t=e)?"":t)+"\n </td>\n"})),n+="\n"}},42142:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(81863))&&r.__esModule?r:{default:r}).default};t.default=o},45568:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.node.isRoot?n+='\n <div ref="root" class="list-group-item">\n':n+='\n <li ref="node" class="list-group-item col-sm-12 tree__level tree__level_'+(null==(t=e.odd?"odd":"even")?"":t)+'">\n',n+="\n ",e.content&&(n+='\n <div ref="content" class="tree__node-content">\n '+(null==(t=e.content)?"":t)+"\n </div>\n "),n+="\n ",e.childNodes&&e.childNodes.length&&(n+='\n <ul ref="childNodes" class="tree__node-children list-group row">\n '+(null==(t=e.childNodes.join(""))?"":t)+"\n </ul>\n "),n+="\n",e.node.isRoot?n+="\n </div>\n":n+="\n </li>\n",n+"\n"}},1:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(45568))&&r.__esModule?r:{default:r}).default};t.default=o},62720:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="node-edit">\n <div ref="nodeEdit">'+(null==(t=e.children)?"":t)+"</div>\n ",e.readOnly||(n+='\n <div class="node-actions">\n <button ref="saveNode" class="btn btn-primary saveNode">'+(null==(t=e.t("Save"))?"":t)+'</button>\n <button ref="cancelNode" class="btn btn-danger cancelNode">'+(null==(t=e.t("Cancel"))?"":t)+"</button>\n </div>\n "),n+"\n</div>\n"}},29304:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(62720));function o(e){return e&&e.__esModule?e:{default:e}}var i={treeView:{form:o(n(26062)).default},treeEdit:{form:r.default}};t.default=i},26062:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="row">\n ',e.values.forEach((function(e){n+='\n <div class="col-sm-2">\n '+(null==(t=e)?"":t)+"\n </div>\n "})),n+='\n <div class="col-sm-3">\n <div class="btn-group pull-right">\n ',e.node.hasChildren&&(n+='\n <button ref="toggleNode" class="btn btn-default btn-sm toggleNode">'+(null==(t=e.t(e.node.collapsed?"Expand":"Collapse"))?"":t)+"</button>\n "),n+="\n ",e.readOnly||(n+='\n <button ref="addChild" class="btn btn-default btn-sm addChild">'+(null==(t=e.t("Add"))?"":t)+'</button>\n <button ref="editNode" class="btn btn-default btn-sm editNode">'+(null==(t=e.t("Edit"))?"":t)+'</button>\n <button ref="removeNode" class="btn btn-danger btn-sm removeNode">'+(null==(t=e.t("Delete"))?"":t)+"</button>\n ",e.node.revertAvailable&&(n+='\n <button ref="revertNode" class="btn btn-danger btn-sm revertNode">'+(null==(t=e.t("Revert"))?"":t)+"</button>\n "),n+="\n "),n+="\n </div>\n </div>\n</div>\n"}}
2,50332:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="text-muted text-center p-2">'+(null==(t=e.t(e.component.title,{_userInput:!0}))?"":t)+"</div>\n"}},83946:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="'+(null==(t=e.classes)?"":t)+'" ref="webform" novalidate>'+(null==(t=e.children)?"":t)+"</div>\n"}},56429:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(83946)),o=i(n(50332));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,builder:o.default};t.default=a},80643:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="card card-body bg-light mb-3">\n <div ref="'+(null==(t=e.nestedKey)?"":t)+'">\n '+(null==(t=e.children)?"":t)+"\n </div>\n</div>\n"}},13380:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(80643))&&r.__esModule?r:{default:r}).default};t.default=o},7349:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="text-muted text-center p-2">'+(null==(t=e.t(e.component.title,{_userInput:!0}))?"":t)+"</div>\n"}},77090:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="'+(null==(t=e.className)?"":t)+'">\n <div style="position: relative;">\n ',"wizardHeaderVertical"===e.wizardHeaderType?(n+='\n <div class="row">\n ',"right"!==e.wizardHeaderLocation&&(n+='\n <div class="col-sm-2">\n '+(null==(t=e.wizardHeader)?"":t)+"\n </div>\n "),n+='\n <div class="wizard-page col-sm-10" ref="'+(null==(t=e.wizardKey)?"":t)+'">\n '+(null==(t=e.components)?"":t)+"\n </div>\n ","right"===e.wizardHeaderLocation&&(n+='\n <div class="col-sm-2">\n '+(null==(t=e.wizardHeader)?"":t)+"\n </div>\n "),n+='\n </div>\n <div class="col-sm-offset-2 col-sm-10 '+(null==(t="right"===e.wizardHeaderLocation?"col-sm-offset-0 col-md-offset-0":"")?"":t)+'">\n '+(null==(t=e.wizardNav)?"":t)+"\n </div>\n "):n+="\n "+(null==(t=e.wizardHeader)?"":t)+'\n <div class="wizard-page" ref="'+(null==(t=e.wizardKey)?"":t)+'">\n '+(null==(t=e.components)?"":t)+"\n </div>\n "+(null==(t=e.wizardNav)?"":t)+"\n ",n+"\n </div>\n</div>\n"}},41345:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(77090)),o=i(n(7349));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,builder:o.default};t.default=a},29864:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<nav aria-label="Wizard navigation" id="'+(null==(t=e.wizardKey)?"":t)+'-header" ref="'+(null==(t=e.wizardKey)?"":t)+'-header">\n <ul class="pagination" role="tablist">\n ',e.panels.forEach((function(r,o){n+='\n <li class="page-item'+(null==(t=e.currentPage===o?" active":"")?"":t)+'" style="cursor: pointer;">\n <button tabindex="0" data-index="'+(null==(t=o)?"":t)+'" role="tab" class="page-link" ref="'+(null==(t=e.wizardKey)?"":t)+'-link">\n '+(null==(t=e.t(r.title,{_userInput:!0}))?"":t)+"\n ",r.tooltip&&e.currentPage===o&&(n+='\n <i ref="'+(null==(t=e.wizardKey)?"":t)+'-tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>\n '),n+="\n </button>\n </li>\n "})),n+="\n </ul>\n</nav>\n"}},187:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(29864))&&r.__esModule?r:{default:r}).default};t.default=o}
2,47626:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<nav aria-label="navigation" id="'+(null==(t=e.wizardKey)?"":t)+'-header">\n <div class="classic-pagination row justify-content-center" style="border-bottom:0;">\n ',e.panels.forEach((function(r,o){n+='\n <div class="classic-pagination-page col-xs-12 col-sm-6 col-md-3\n '+(null==(t=e.currentPage<o?" disabled":"")?"":t)+"\n "+(null==(t=e.currentPage===o?" active":"")?"":t)+"\n "+(null==(t=e.currentPage>o?" complete":"")?"":t)+'">\n <div class="text-center classic-pagination-title">'+(null==(t=e.t(r.title,{_userInput:!0}))?"":t)+"</div>\n ",e.panels.length>1&&(n+='\n <div class="progress"><div class="progress-bar"></div></div>\n '),n+=' \n <span ref="'+(null==(t=e.wizardKey)?"":t)+'-link" class="classic-pagination-dot"></span>\n </div>\n '})),n+="\n </div>\n</nav>\n"}},88057:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(47626))&&r.__esModule?r:{default:r}).default};t.default=o},9289:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<nav aria-label="navigation" id="'+(null==(t=e.wizardKey)?"":t)+'-header">\n <ul class="pagination flex-column">\n ',e.panels.forEach((function(r,o){n+='\n <li class="col-xs-12 page-item'+(null==(t=e.currentPage===o?" active":"")?"":t)+'" style="cursor: pointer;">
2\n <span class="page-link" ref="'+(null==(t=e.wizardKey)?"":t)+'-link" style="margin-left: 0px;">\n '+(null==(t=e.t(r.title,{_userInput:!0}))?"":t)+"\n ",r.tooltip&&e.currentPage===o&&(n+='\n <i ref="'+(null==(t=e.wizardKey)?"":t)+'-tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>\n '),n+="\n </span>\n </li>\n "})),n+="\n </ul>\n</nav>\n"}},75273:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(9289))&&r.__esModule?r:{default:r}).default};t.default=o},38054:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<ul class="formio-wizard-nav-container list-inline" id="'+(null==(t=e.wizardKey)?"":t)+'-nav">\n ',e.buttonOrder.forEach((function(r){n+="\n ","cancel"===r&&e.buttons.cancel&&(n+='\n <li>\n <button class="btn btn-secondary btn-wizard-nav-cancel" ref="'+(null==(t=e.wizardKey)?"":t)+'-cancel" aria-label="'+(null==(t=e.t("cancel"))?"":t)+' button. Click to reset the form">'+(null==(t=e.t("cancel"))?"":t)+"</button>\n </li>\n "),n+="\n ","previous"===r&&e.buttons.previous&&(n+='\n <li>\n <button class="btn btn-primary btn-wizard-nav-previous" ref="'+(null==(t=e.wizardKey)?"":t)+'-previous" aria-label="'+(null==(t=e.t("previous"))?"":t)+' button. Click to go back to the previous tab">'+(null==(t=e.t("previous"))?"":t)+"</button>\n </li>\n "),n+="\n ","next"===r&&e.buttons.next&&(n+='\n <li>\n <button class="btn btn-primary btn-wizard-nav-next" ref="'+(null==(t=e.wizardKey)?"":t)+'-next" aria-label="'+(null==(t=e.t("next"))?"":t)+' button. Click to go to the next tab">'+(null==(t=e.t("next"))?"":t)+"</button>\n </li>\n "),n+="\n ","submit"===r&&e.buttons.submit&&(n+='\n <li>\n <button class="btn btn-primary btn-wizard-nav-submit" ref="'+(null==(t=e.wizardKey)?"":t)+'-submit" aria-label="'+(null==(t=e.t("submit"))?"":t)+' button. Click to submit the form">'+(null==(t=e.t("submit"))?"":t)+"</button>\n </li>\n "),n+="\n "})),n+="\n</ul>\n"}},24376:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(38054))&&r.__esModule?r:{default:r}).default};t.default=o},75146:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(5508)),o=a(n(81575)),i=a(n(95295));function a(e){return e&&e.__esModule?e:{default:e}}var s={bootstrap:r.default,bootstrap3:o.default.templates.bootstrap3,semantic:i.default.templates.semantic};t.default=s},6701:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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}}
2",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"}},62604:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(41539),n(12419),n(74819),n(38880),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),t.ZP=void 0,n(92222),n(74916),n(30489);var o,i=(o=n(57062))&&o.__esModule?o:{default:o};function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=c(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},u.apply(this,arguments)}function c(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function d(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}i.default.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var e=this.passedElement.placeholderOption;return!!e&&e.text}var t=this.config,n=t.placeholder,r=t.placeholderValue,o=this.passedElement.element.dataset;if(n){if(r)return r;if(o.placeholder)return o.placeholder}return!1};var m=46,v=8,y=9,b=13,g=65,w=27,k=38,_=40,O=33,x=34,S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(c,e);var t,n,r,o,i=(r=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(o){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function c(){var e;s(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n)))._onTabKey=e._onTabKey.bind(p(e)),e.isDirectionUsing=!1,e.shouldOpenDropDown=!0,e}return t=c,n=[{key:"_handleButtonAction",value:function(e,t){if(!this._isSelectOneElement)return u(h(c.prototype),"_handleButtonAction",this).call(this,e,t);e&&t&&this.config.removeItems&&this.config.removeItemButton&&u(h(c.prototype),"_handleButtonAction",this).call(this,e,t)}},{key:"_onEnterKey",value:function(e){"choices__button"===e.event.target.className&&(this.shouldOpenDropDown=!1),u(h(c.prototype),"_onEnterKey",this).call(this,e)}},{key:"_onDirectionKey",value:function(){for(var e,t,n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];if(!this._isSelectOneElement)return(t=u(h(c.prototype),"_onDirectionKey",this)).call.apply(t,[this].concat(o));this.isDirectionUsing=!0,(e=u(h(c.prototype),"_onDirectionKey",this)).call.apply(e,[this].concat(o)),this.onSelectValue.apply(this,o),clearTimeout(this.timeout),this.timeout=setTimeout((function(){n.isDirectionUsing=!1}),250)}},{key:"_onTabKey",value:function(e){var t=e.activeItems;e.hasActiveDropdown&&this._selectHighlightedChoice(t)}},{key:"_selectHighlightedChoice",value:function(e){var t=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));t&&this._handleChoiceAction(e,t),event.preventDefault()}},{key:"_onKeyDown",value:function(e){var t;if(!this._isSelectOneElement)return u(h(c.prototype),"_onKeyDown",this).call(this,e);var n=e.target,r=e.keyCode,o=e.ctrlKey,i=e.metaKey;if(n===this.input.element||this.containerOuter.element.contains(n)){var s=this._store.activeItems,l=this.input.isFocussed,f=this.dropdown.isActive,d=this.itemList.hasChildren,p=String.fromCharCode(r),S=m,j=v,P=y,C=b,E=g,A=w,M=k,R=_,T=O,D=x,I=o||i;if(!f&&!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(p)){var V=this.input.element.value;this.input.element.value=V?"".concat(V).concat(p):p,this.showDropdown()}var L=(a(t={},E,this._onAKey),a(t,P,this._onTabKey),a(t,C,this._onEnterKey),a(t,A,this._onEscapeKey),a(t,M,this._onDirectionKey),a(t,T,this._onDirectionKey),a(t,R,this._onDirectionKey),a(t,D,this._onDirectionKey),a(t,j,this._onDeleteKey),a(t,S,this._onDeleteKey),t);L[r]&&L[r]({event:e,target:n,keyCode:r,metaKey:i,activeItems:s,hasFocusedInput:l,hasActiveDropdown:f,hasItems:d,hasCtrlDownKeyPressed:I})}}},{key:"onSelectValue",value:function(e){var t=e.event,n=e.activeItems;e.hasActiveDropdown?this._selectHighlightedChoice(n):this._isSelectOneElement&&(this.showDropdown(),t.preventDefault())}},{key:"showDropdown",value:function(){var e;if(this.shouldOpenDropDown){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=u(h(c.prototype),"showDropdown",this)).call.apply(e,[this].concat(n))}else this.shouldOpenDropDown=!0}},{key:"hideDropdown",value:function(){var e;if(!this.isDirectionUsing){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=u(h(c.prototype),"hideDropdown",this)).call.apply(e,[this].concat(n))}}},{key:"_onBlur",value:function(){var e;if(!this._isScrollingOnIe){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=u(h(c.prototype),"_onBlur",this)).call.apply(e,[this].concat(n))}}}],n&&l(t.prototype,n),c}(i.default),j=S;t.ZP=j},193:function(e,t,n){"use strict";n(91038),n(47042),n(68309),n(12419),Object.defineProperty(t,"__esMo
2dule",{value:!0}),t.default=void 0,n(66992),n(41539),n(33948),n(92222),n(74916),n(15306),n(21249),n(23123),n(73210),n(54747),n(47941),n(82526),n(41817),n(32165),n(78783);var r=i(n(96486)),o=i(n(69887));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return a=s()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&l(o,n.prototype),o},a.apply(null,arguments)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}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)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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},f(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 t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return d.noeval?(console.warn("No evaluations allowed for this renderer."),r.default.noop):("object"===f(n[0])&&(n=r.default.keys(n[0])),a(Function,u(n).concat([e])))},template:function(e,t){t=t||(0,o.default)(e);try{return e=e.replace(/ctx\./g,""),d.cache[t]=r.default.template(e,d.templateSettings)}catch(t){console.warn("Error while processing template",t,e)}},interpolate:function(e,t,n){var i=r.default.isObject(n)?n:{noeval:n};if("function"==typeof e)try{return e(t)}catch(e){return console.warn("Error interpolating template",e,t),e.message}e=String(e);var a,s=(0,o.default)(e);if(d.cache[s])a=d.cache[s];else{if(d.noeval||i.noeval)return e.replace(/({{\s*(.*?)\s*}})/g,(function(e,o,i){for(var a=i.split("||").map((function(e){return e.trim()})),s="",l="",u=0;u<a.length&&(l=a[u],!(s=r.default.get(t,l)));u++);return n.data&&r.default.set(n.data,l,s),s}));a=d.template(e,s)}if("function"==typeof a)try{return a(t)}catch(n){return console.warn("Error interpolating template",n,e,t),n.message}return a},evaluate:function(e,t){return Array.isArray(t)?e.apply(void 0,u(t)):e(t)},registerEvaluator:function(e){Object.keys(e).forEach((function(t){d[t]=e[t]}))}},p=d;t.default=p},1848:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(26699),n(21249),n(66992),n(41539),n(33948),n(54747),n(92222);var r,o=(r=n(96486))&&r.__esModule?r:{default:r},i=n(82531),a={uniquify:function(e,t){var n=!1,r={};return(0,i.eachComponent)(e,(function(e){if(r[e.key]=!0,["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree)return!0}),!0),(0,i.eachComponent)([t],(function(e){if(e.key){var t=(0,i.uniqueKey)(r,e.key);return t!==e.key&&(e.key=t,n=!0),r[t]=!0,!!(["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree)||void 0}}),!0),n},additionalShortcuts:{button:["Enter","Esc"]},getAlphaShortcuts:function(){return o.default.range("A".charCodeAt(),"Z".charCodeAt()+1).map((function(e){return String.fromCharCode(e)}))},getAdditionalShortcuts:function(e){return this.additionalShortcuts[e]||[]},getBindedShortcuts:function(e,t){var n=[];return(0,i.eachComponent)(e,(function(e){e!==t&&(e.shortcut&&n.push(e.shortcut),e.values&&e.values.forEac
2h((function(e){e.shortcut&&n.push(e.shortcut)})))}),!0),n},getAvailableShortcuts:function(e,t){return t?[""].concat(o.default.difference(this.getAlphaShortcuts().concat(this.getAdditionalShortcuts(t.type)),this.getBindedShortcuts(e.components,t))).map((function(e){return{label:e,value:e}})):[]}};t.default=a},48946:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CALENDAR_ERROR_MESSAGES=void 0,t.checkInvalidDate=function(e,t,n,i){var u=(0,r.default)(e,t,!0),c=u.isValid();if(!c){var f=e.match(/[^a-z0-9_]/gi),d=new RegExp(f.join("|"),"gi"),p=e.replace(/_*/gi,"").split(d),h=t[1]?t[1].split(d):t[0].split(d),m=o.default.findIndex(h,(function(e,t){return 1===e.length&&t===h.length-1}));if(p[o.default.findIndex(h,(function(e){return e.match(/yyyy/gi)}))]/1e3<1)return s(a.INVALID,!1);if(p[0].length===h[0].length){var v=p.map((function(e,t){var n=e;return e||t!==m?e||(n="01"):n="AM",f[t]&&(n="".concat(n).concat(f[t])),n})),y=(0,r.default)(v.join(""),t,!0);if(y.isValid()){var b=l(y,t[0],i,n);return b.result?s(a.INCOMPLETE,!1):s(b.message,b.result)}return s(a.INVALID,!1)}return s(a.INVALID,!1)}if(c&&-1===e.indexOf("_")){var g=l(u,t[0],i,n);if(!g.result)return s(g.message,g.result)}return s("",!0)},t.lessOrGreater=l,n(74916),n(4723),n(24603),n(39714),n(69600),n(23123),n(15306),n(34553),n(21249),n(92222);var r=i(n(30381)),o=i(n(96486));function i(e){return e&&e.__esModule?e:{default:e}}var a={INVALID:"You entered the Invalid Date",INCOMPLETE:"You entered an incomplete date.",greater:function(e,t){return"The entered date is greater than ".concat(e.format(t))},less:function(e,t){return"The entered date is less than ".concat(e.format(t))}};function s(e,t){return{message:e,result:t}}function l(e,t,n,o){var i="",s=!0;if(n&&e.isValid()){var l=(0,r.default)(n,t);e>l&&(i=a.greater(l,t),s=!1)}if(o&&e.isValid()){var u=(0,r.default)(o,t);e<u&&(i=a.less(u,t),s=!1)}return{message:i,result:s}}t.CALENDAR_ERROR_MESSAGES=a},32725:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyFormChanges=function(e,t){var n=[];return t.forEach((function(t){var i=!1;switch(t.op){case"add":var a=t.component;k(e.components,t.container,null,(function(n){t.container||(n=e),k(e.components,t.key,null,(function(t,n){a=t,_(e.components,n)})),i=!0,(0,r.default)(n,t.path).splice(t.index,0,a)}));break;case"remove":k(e.components,t.key,null,(function(t,n){i=!0,(0,r.default)(e.components,n).key!==t.key&&n.pop(),_(e.components,n)}));break;case"edit":k(e.components,t.key,null,(function(a,s){i=!0;try{var l=(0,r.default)(e.components,s),u=(0,m.applyPatch)(a,t.patches).newDocument;l.key!==u.key&&s.pop(),(0,o.default)(e.components,s,u)}catch(e){n.push(t)}}))}i||n.push(t)})),{form:e,failed:n}},t.eachComponent=b,t.escapeRegExCharacters=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},t.findComponent=k,t.findComponents=function(e,t){return console.warn("formio.js/utils findComponents is deprecated. Use searchComponents instead."),w(e,t)},t.flattenComponents=function(e,t){var n={};return b(e,(function(e,t){n[t]=e}),t),n},t.formatAsCurrency=function(e){var t=O(e);if((0,u.default)(t))return"";var n=(0,d.default)(t,2).toString().split(".");return n[0]=(0,p.default)(Array.from(n[0]).reverse(),3).reverse().map((function(e){return e.reverse().join("")})).join(","),n[1]=(0,h.default)(n[1],2,"0"),n.join(".")},t.generateFormChange=function(e,t){var n;switch(e){case"add":n={op:"add",key:t.component.key,container:t.parent.key,path:t.path,index:t.index,component:t.component};break;case"edit":(n={op:"edit",key:t.originalComponent.key,patches:(0,m.compare)(t.originalComponent,t.component)}).patches.length||(n=null);break;case"remove":n={op:"remove",key:t.component.key}}return n},t.getComponent=function(e,t,n){var r;return b(e,(function(e,n){if(n===t||e.path===t)return r=e,!0}),n),r},t.getStrings=function(e){var t=["label","title","legend","tooltip","description","placeholder","prefix","suffix","errorLabel","content","html"],n=[];return b(e.components,(function(e){if(t.forEach((function(t){e.hasOwnProperty(t)&&e[t]&&n.push({key:e.key,type:e.type,property:t,string:e[t]})})),(!e.dataSrc||"values"===e.dataSrc)&&e.hasOwnProperty("values")&&Array.isArray(e.values)&&e.values.length&&e.values.forEac
2h((function(t,r){n.push({key:e.key,property:"value[".concat(r,"].label"),string:e.values[r].label})})),"day"===e.type&&(["day","month","year","Day","Month","Year","january","february","march","april","may","june","july","august","september","october","november","december"].forEach((function(t){n.push({key:e.key,property:"day",string:t})})),e.fields.day.placeholder&&n.push({key:e.key,property:"fields.day.placeholder",string:e.fields.day.placeholder}),e.fields.month.placeholder&&n.push({key:e.key,property:"fields.month.placeholder",string:e.fields.month.placeholder}),e.fields.year.placeholder&&n.push({key:e.key,property:"fields.year.placeholder",string:e.fields.year.placeholder})),"editgrid"===e.type){var r=e.addAnother||"Add Another";e.addAnother&&n.push({key:e.key,property:"addAnother",string:r})}"select"===e.type&&["loading...","Type to search"].forEach((function(t){n.push({key:e.key,property:"select",string:t})}))}),!0),n},t.getValue=function(e,t){return function e(n){if((0,f.default)(n)){if((0,i.default)(n,t))return v.default.get(n,t);var r=null;return(0,s.default)(n,(function(t){var n=e(t);if(!(0,c.default)(n))return r=n,!1})),r}return null}(e.data)},t.hasCondition=function(e){return Boolean(e.customConditional||e.conditional&&(e.conditional.when||e.conditional.json||e.conditional.condition))},t.isLayoutComponent=function(e){return Boolean(e.columns&&Array.isArray(e.columns)||e.rows&&Array.isArray(e.rows)||e.components&&Array.isArray(e.components))},t.matchComponent=g,t.parseFloatExt=O,t.removeComponent=_,t.searchComponents=w,n(41539),n(54747),n(92222),n(26699),n(47042),n(40561),n(74916),n(15306),n(23123),n(39714),n(69600),n(21249),n(91038),n(78783),n(66992),n(33948);var r=y(n(27361)),o=y(n(36968)),i=y(n(18721)),a=y(n(66678)),s=y(n(2525)),l=y(n(47037)),u=y(n(7654)),c=y(n(14293)),f=y(n(68630)),d=y(n(59854)),p=y(n(8400)),h=y(n(45245)),m=n(34901),v=y(n(96486));function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t,n,r,o,i){if(e){if(r=r||"",i){if(e.noRecurse)return void delete e.noRecurse;e.noRecurse=!0}e.forEach((function(i){if(i){var s=i.columns&&Array.isArray(i.columns),l=i.rows&&Array.isArray(i.rows),u=i.components&&Array.isArray(i.components),c=!1,f=i.key?r?"".concat(r,".").concat(i.key):i.key:"";o&&(i.parent=(0,a.default)(o),delete i.parent.components,delete i.parent.componentMap,delete i.parent.columns,delete i.parent.rows);var d=s||l||u&&!i.input||["htmlelement","content"].indexOf(i.type)>-1;(n||i.tree||!d)&&(c=t(i,f,e));var p=function(){return i.key&&!["panel","table","well","columns","fieldset","tabs","form"].includes(i.type)&&(["datagrid","container","editgrid","address","dynamicWizard","datatable"].includes(i.type)||i.tree)?f:i.key&&"form"===i.type?"".concat(f,".data"):r};c||(s?i.columns.forEach((function(e){return b(e.components,t,n,p(),o?i:null)}),!0):l?i.rows.forEach((function(e){Array.isArray(e)&&e.forEach((function(e){return b(e.components,t,n,p(),o?i:null)}),!0)})):u&&b(i.components,t,n,p(),o?i:null,!0))}})),e.noRecurse&&delete e.noRecurse}}function g(e,t){if((0,l.default)(t))return e.key===t||e.path===t;var n=!1;return(0,s.default)(t,(function(t,o){if(!(n=(0,r.default)(e,o)===t))return!1})),n}function w(e,t){var n=[];return b(e,(function(e){g(e,t)&&n.push(e)}),!0),n}function k(e,t,n,r){if(e){if(n=n||[],!t)return r(e);e.forEach((function(o,i){var a=n.slice();a.push(i),o&&(o.hasOwnProperty("columns")&&Array.isArray(o.columns)&&(a.push("columns"),o.columns.forEach((function(e,n){var o=a.slice();o.push(n),o.push("components"),k(e.components,t,o,r)}))),o.hasOwnProperty("rows")&&Array.isArray(o.rows)&&(a.push("rows"),o.rows.forEach((function(e,n){var o=a.slice();o.push(n),e.forEach((function(e,n){var i=o.slice();i.push(n),i.push("components"),k(e.components,t,i,r)}))}))),o.hasOwnProperty("components")&&Array.isArray(o.components)&&(a.push("components"),k(o.components,t,a,r)),o.key===t&&r(o,a,e))}))}}function _(e,t){var n=t.pop();0!==t.length&&(e=(0,r.default)(e,t)),e.splice(n,1)}function O(e){return parseFloat((0,l.default)(e)?e.replace(/[^\de.+-]/gi,""):e)}},55666:function(e,t,n){"use strict";
2n(4129),n(38880),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(82526),n(41817),n(41539),n(32165),n(66992),n(78783),n(33948);var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(r,s,l):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}(n(82531));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}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},i(e)}"object"===(void 0===n.g?"undefined":i(n.g))&&(n.g.FormioUtils=r);var a=r;t.default=a},52013:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lodashOperators=void 0,t.lodashOperators=["chunk","compact","concat","difference","differenceBy","differenceWith","drop","dropRight","dropRightWhile","dropWhile","findIndex","findLastIndex","first","flatten","flatten
2Deep","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"]},82531:function(e,t,n){"use strict";n(82526),n(41817),n(32165),n(78783),n(91038),n(47941),Object.defineProperty(t,"__esModule",{value:!0});var r={evaluate:!0,getRandomComponentId:!0,getPropertyValue:!0,getElementRect:!0,boolValue:!0,isMongoId:!0,checkCalculated:!0,checkSimpleConditional:!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};Object.defineProperty(t,"Evaluator",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o.default}}),t.boolValue=function(e){return o.default.isBoolean(e)?e:o.default.isString(e)?"true"===e.toLowerCase():!!e},t.bootstrapVersion=function(e){return e.bootstrap?e.bootstrap:"function"==typeof $&&"function"==typeof $().collapse?parseInt($.fn.collapse.Constructor.VERSION.split(".")[0],10):0},t.checkCalculated=function(e,t,n){e.calculateValue&&o.default.set(n,e.key,g(e.calculateValue,{value:void 0,data:t?t.data:n,row:n,util:this,component:e},"value"))},t.checkCondition=function(e,t,n,r,o){var i=e.customConditional,a=e.conditional;return i?_(0,i,t,n,r,"show",!0,o):a&&a.when?k(0,a,t=x(e,t,o),n):!a||!a.json||O(e,a.json,t,n,r,!0)},t.checkCustomConditional=_,t.checkJsonConditional=O,t.checkSimpleConditional=k,t.checkTrigger=function(e,t,n,r,o,i){if
2(!t[t.type])return!1;switch(t.type){case"simple":return n=x(e,n,i,t.simple),k(0,t.simple,n,r);case"javascript":return _(0,t.javascript,n,r,o,"result",!1,i);case"json":return O(e,t.json,n,r,o,!1)}return!1},t.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")},t.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")},t.convertFormatToMoment=A,t.convertStringToHTMLElement=function(e,t){return(new window.DOMParser).parseFromString(e,"text/html").body.querySelector(t)},t.currentTimezone=j,t.delay=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=setTimeout.apply(void 0,[e,t].concat(r));function a(){clearTimeout(i)}function s(){return a(),e.apply(void 0,r)}return s.timer=i,s.cancel=a,s},t.evaluate=g,t.fastCloneDeep=function(e){return e?JSON.parse(JSON.stringify(e)):e},t.fieldData=function(e,t){if(!e)return"";if(!t||!t.key)return e;if(t.key.includes(".")){for(var n=e,r=t.key.split("."),o="",i=0;i<r.length;i++){if(o=r[i],n.hasOwnProperty("_id")&&(n=n.data),!n.hasOwnProperty(o))return;o===r[r.length-1]&&t.multiple&&!Array.isArray(n[o])&&(n[o]=[n[o]]),n=n[o]}return n}return t.multiple&&!Array.isArray(e[t.key])&&(e[t.key]=[e[t.key]]),"checkbox"===t.type&&"radio"===t.inputType?e[t.name]===t.value:e[t.key]},t.firstNonNil=void 0,t.formatDate=function(e,t,n,r){var o=(0,s.default)(e,r||void 0);if(n===j())return t.match(/\s(z$|z\s)/)?(E(),s.default.zonesLoaded?o.tz(n).format(A(t)):o.format(A(t.replace(/\s(z$|z\s)/,"")))):o.format(A(t));if("UTC"===n){var i=P(o.toDate(),"UTC");return"".concat((0,s.default)(i.date).format(A(t))," UTC")}return E(),s.default.zonesLoaded&&n?o.tz(n).format("".concat(A(t)," z")):o.format(A(t))},t.formatOffset=function(e,t,n,r){if(r===j())return e(t,n);if("UTC"===r)return"".concat(e(P(t,"UTC").date,n)," UTC");if(E(),s.default.zonesLoaded){var o=P(t,r);return"".concat(e(o.date,n)," ").concat(o.abbr)}return e(t,n)},t.getArrayFromComponentPath=function(e){return e&&o.default.isString(e)?e.replace(/[[\]]/g,".").replace(/\.\./g,".").replace(/(^\.)|(\.$)/g,"").split(".").map((function(e){return o.default.defaultTo(o.default.toNumber(e),e)})):o.default.isArray(e)?e:[e]},t.getBrowserInfo=L,t.getComponentPath=N,t.getComponentPathWithoutIndicies=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/\[\d+\]/,"")},t.getContextButtons=function(e){var t=[];return e.utils.eachComponent(e.instance.options.editForm.components,(function(e){"button"===e.type&&t.push({label:"".concat(e.key," (").concat(e.label,")"),value:e.key})})),t},t.getContextComponents=function(e){var t=[];return e.utils.eachComponent(e.instance.options.editForm.components,(function(n,r){n.key!==e.data.key&&t.push({label:"".concat(n.label||n.key," (").concat(r,")"),value:r})})),t},t.getCurrencyAffixes=function(e){var t=e.currency,n=void 0===t?"USD":t,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 s=100..toLocaleString(i,{style:"currency",currency:n,useGrouping:!0,maximumFractionDigits:r||0,minimumFractionDigits:r||0}).replace(".",o).match(new RegExp(a));return{prefix:(null==s?void 0:s[1])||"",suffix:(null==s?void 0:s[2])||""}},t.getDataParentComponent=F,t.getDateSetting=function(e){if(o.default.isNil(e)||o.default.isNaN(e)||""===e)return null;if(e instanceof Date)return e;if("function"==typeof e.toDate)return e.isValid()?e.toDate():null;var t="string"!=typeof e||-1===e.indexOf("moment(")?(0,s.default)(e):null;if(t&&t.isValid())return t.toDate();t=null;try{var n=p.default.evaluator("return ".concat(e,";"),"moment")(s.default);"string"==typeof n?t=(0,s.default)(n):"function"==typeof n.toDate?t=(0,s.default)(n.toDate().toUTCString()):n instanceof Date&&(t=(0,s.default)(n))}catch(e){return null}return t&&t.isValid()?t.toDate():null},t.getElementRect=function(e){var t=window.getComputedStyle(e,null);return{x:w(t,"left"),y:w(t,"top"),width:w(t,"width"),height:w(t,"height")}},t.getFocusableElements=function(e){return e.querySelectorAll("button:not([disabled]), input:not([disabled]), select:not([disabled]),\n textarea:not([disabled]), button:not([disabled]), [href]")},t.getIEBrowserVersion=function(){var e=L(),t=e.ie,n=e.version;return t?n:null},t.getInputMask=function(e,t){if(e instanceof Array)return e;var n=[];n.numeric=!0;for(var r=0;r<e.length;r++)switch(e[r]){case"9":n.push(/\d/);break;case"A":n.numeric=!1,n.push(/[a-zA-Z]/);break;case"a":n.numeric=!1,n.push(/[a-z]/);break;case"*":n.numeric=!1,n.push(/[a-zA-Z0-9]/);break;case t:n.numeric=!1,n.push(" ");break;default:n.numeric=!1,n.push(e[r])}return n},t.getLocaleDateFormatInfo=function(e){var t={},n=new Date(2017,11,21).toLocaleDateString(e);return t.dayFirst=n.slice(0,2)===21..toString(),t},t.getNumberDecimalLimit=function(e,t){if(o.default.has(e,"decimalLimit"))return o.default.get(e,"decimalLimit");var n=t||20,r=o.default.get(e,"validate.step","any");if("any"!==r){var i=r.toString().split(".");i.length>1&&(n=i[1].length)}return n},t.getNumberSeparators=function(){var e=arguments.length>
20&&void 0!==arguments[0]?arguments[0]:"en",t=12345.6789.toLocaleString(e),n=t.match(/..(.)...(.)../);return n?{delimiter:n.length>1?n[1]:",",decimalSeparator:n.length>2?n[2]:"."}:{delimiter:",",decimalSeparator:"."}},t.getPropertyValue=w,t.getRandomComponentId=function(){return"e".concat(Math.random().toString(36).substring(7))},t.getStringFromComponentPath=function(e){if(!o.default.isArray(e))return e;var t="";return e.forEach((function(e,n){o.default.isNumber(e)?t+="[".concat(e,"]"):t+=0===n?e:".".concat(e)})),t},t.guid=S,t.hasInvalidComponent=function e(t){return t.getComponents().some((function(t){return o.default.isArray(t.components)?e(t):t.error}))},t.interpolate=void 0,t.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}},t.isInsideScopingComponent=function e(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!n&&null!=t&&t.hasScopedChildren)return!0;var r=F(t);return!(null==r||!r.hasScopedChildren)||!(null==r||!r.parent)&&e(r.parent,!1)},t.isMongoId=function(e){return e.toString().match(/^[0-9a-fA-F]{24}$/)},t.isPromise=function(e){return e&&e.then&&"function"==typeof e.then&&"[object Promise]"===Object.prototype.toString.call(e)},t.isValidDate=function(e){return o.default.isDate(e)&&!o.default.isNaN(e.getDate())},t.iterateKey=M,Object.defineProperty(t,"jsonLogic",{enumerable:!0,get:function(){return a.default}}),t.loadZones=E,t.matchInputMask=function(e,t){if(!t)return!0;if(e.length>t.length)return!1;for(var n=0;n<t.length;n++){var r=e[n]||"",i=t[n];if(!(o.default.isRegExp(i)&&i.test(r)||i===r))return!1}return!0},Object.defineProperty(t,"moment",{enumerable:!0,get:function(){return s.default}}),t.momentDate=function(e,t,n){var r=(0,s.default)(e);return"UTC"===n&&(n="Etc/UTC"),(n!==j()||t&&t.match(/\s(z$|z\s)/))&&s.default.zonesLoaded?r.tz(n):r},t.observeOverload=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.limit,r=void 0===n?50:n,o=t.delay,i=void 0===o?500:o,a=0,s=0,l=function(){return a=0};return function(){if(0!==s&&(clearTimeout(s),s=0),s=setTimeout(l,i),(a+=1)>=r)return clearTimeout(s),l(),e()}},t.offsetDate=P,t.round=function(e,t){return o.default.isNumber(e)?e.toFixed(t):e},t.sanitize=function(e,t){if("function"!=typeof f.default.sanitize)return e;var n={ADD_ATTR:["ref","target"],USE_PROFILES:{html:!0}};return t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addAttr)&&t.s
2anitizeConfig.addAttr.length>0&&t.sanitizeConfig.addAttr.forEach((function(e){n.ADD_ATTR.push(e)})),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addTags)&&t.sanitizeConfig.addTags.length>0&&(n.ADD_TAGS=t.sanitizeConfig.addTags),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedTags)&&t.sanitizeConfig.allowedTags.length>0&&(n.ALLOWED_TAGS=t.sanitizeConfig.allowedTags),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedAttrs)&&t.sanitizeConfig.allowedAttrs.length>0&&(n.ALLOWED_ATTR=t.sanitizeConfig.allowedAttrs),t.sanitizeConfig&&t.sanitizeConfig.allowedUriRegex&&(n.ALLOWED_URI_REGEXP=t.sanitizeConfig.allowedUriRegex),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addUriSafeAttr)&&t.sanitizeConfig.addUriSafeAttr.length>0&&(n.ADD_URI_SAFE_ATTR=t.sanitizeConfig.addUriSafeAttr),f.default.sanitize(e,n)},t.setActionProperty=function(e,t,n,r,i,a){var s=t.property.value;switch(t.property.type){case"boolean":var l=o.default.get(e,s,!1).toString(),u=t.state.toString();l!==u&&o.default.set(e,s,"true"===u);break;case"string":var c={data:i,row:r,component:e,result:n},f=t.property.component?t[t.property.component]:t.text,d=o.default.get(e,s,""),h=a&&a.interpolate?a.interpolate(f,c):p.default.interpolate(f,c);h!==d&&o.default.set(e,s,h)}return e},t.shouldLoadZones=C,t.translateHTMLTemplate=function(e,t){if(!/<[^>]*>/.test(e))return t(e);var n=document.createElement("div");return n.innerHTML=e,n.innerText&&n.children.length?(V(n,t),n.innerHTML):e},t.unescapeHTML=function(e){return"undefined"!=typeof window&&"DOMParser"in window?(new window.DOMParser).parseFromString(e,"text/html").documentElement.textContent:e},t.unfold=R,t.uniqueKey=function(e,t){for(var n=t;e.hasOwnProperty(n);)n=M(n);return n},t.uniqueName=function(e,t,n){(t=t||"{{fileName}}-{{guid}}").includes("{{guid}}")||(t="".concat(t,"-{{guid}}"));var r=e.split("."),i=r.slice(0,r.length-1).join("."),a=r.length>1?".".concat(o.default.last(r)):"";return i=i.substr(0,100),n=Object.assign(n||{},{fileName:i,guid:S()}),"".concat(p.default.interpolate(t,n)).concat(a).replace(/[^0-9a-zA-Z.\-_ ]/g,"-")},t.unmaskValue=function(e,t,n){if(!t||!e||e.length>t.length)return e;for(var r=e.split(""),i=0;i<t.length;i++){var a=e[i]||"",s=t[i];o.default.isRegExp(s)||a!==s||(r[i]="")}return r.join("").replace(n,"")},t.withSwitch=function(e,t){var n=e,r=t;return[function(){return n},function(){var e=n;n=r,r=e}]},t.zonesLoaded=function(){return s.default.zonesLoaded},n(41539),n(54747),n(74916),n(15306),n(66992),n(33948),n(39714),n(4723),n(26699),n(32023),n(21249),n(92222),n(23157),n(23123),n(69600),n(47042),n(19601),n(68309),n(24603),n(9653),n(69826),n(73210),n(56977);var o=h(n(96486)),i=h(n(87559)),a=h(n(40962)),s=h(n(85177)),l=h(n(55586)),u=n(52013),c=h(n(91459)),f=h(n(27856)),d=n(32725);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var p=h(n(193));function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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},v(e)}var y=p.default.interpolate;t.interpolate=y;var b=(0,i.default)({Promise:c.default}).fetch;function g(e,t,n,r){var i=null,s=t.component?t.component:{key:"unknown"};!t.form&&t.instance&&(t.form=o.default.get(t.instance,"root._form",{}));var l=s.key;if("string"==typeof e){n&&(e+=";return ".concat(n)),r&&(e=e.replace(/({{\s+(.*)\s+}})/,(function(e,n,r){return 0===r.indexOf("data.")?o.default.get(t.data,r.replace("data.","")):0===r.indexOf("row.")?o.default.get(t.row,r.replace("row.","")):o.default.get(t.data,r)})));try{e=p.default.evaluator(e,t),t=o.default.values(t)}catch(t){console.warn("An error occured within the custom function for ".concat(l),t),i=null,e=!1}}if("function"==typeof e)try{i=p.default.evaluate(e,t)}catch(e){i=null,console.warn("An error occured within custom function for ".concat(l),e)}else if("object"===v(e))try{i=a.default.apply(e,t)}catch(e){i=null,console.warn("An error occured within custom function for ".concat(l),e)}else e&&console.warn("Unknown function type for ".concat(l));return i}function w(e,t){var n=e.getPropertyValue(t);return n=n?n.replace(/[^0-9.]/g,""):"0",parseFloat(n)}function k(e,t,n,r){var i=null;n&&(i=(0,d.getValue)({data:n},t.when)),r&&o.default.isNil(i)&&(i=(0,d.getValue)({data:r},t.when)),o.default.isNil(i)&&(i="");var a=String(t.eq),s=String(t.show);return o.default.isObject(i)&&o.default.has(i,t.eq)?String(i[t.eq])===s:Array.isArray(i)&&i.map(String).includes(a)?"true"===s:String(i)===a==("true"===s)}function _(e,t,n,r,o,i,a,s){"string"==typeof t&&(t="var ".concat(i," = true; ").concat(t,"; return ").concat(i,";"));var l=s&&s.evaluate?s.evaluate(t,{row:n,data:r,form:o}):g(t,{row:n,data:r,form:o});return null===l?a:l}function O(e,t,n,r,i,s){try{return a.default.apply(t,{data:r,row:n,form:i,_:o.default})}catch(t){return console.warn("An error occurred in jsonLogic advanced condition for ".concat(e.key),t),s}}function x(e,t,n,r){var i,a=r||e.conditional;n||function(e){e.path=N(e);var t=F(e);t&&"object"===v(t)&&(t.path=N(t))}(n=o.default.cloneDeep(e));var s=F(n),l=s?N(s):null;if(s&&null!==(i=a.when)&&void 0!==i&&i.startsWith(l)){var u={};o.default.set(u,l,t),t=u}return t}function S(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function j(){return s.default.currentTimezone||(s.default.currentTimezone=l.default.determine().name()),s.default.currentTimezone}function P(e,t){if("UTC"===t)return{date:new Date(e.getTime()+6e4*e.getTimezoneOffset()),abbr:"UTC"};var n=(0,s.default)(e).tz(t);return{date:new Date(e.getTime()+6e4*(n.utcOffset()+e.getTimezoneOffset())),abbr:n.format("z")}}function C(e){return e!==j()&&"UTC"!==e}function E(e){return e&&!C(e)?new c.default(o.default.noop):s.default.zonesPromise?s.default.zonesPromise:s.default.zonesPromise=b("https://cdn.form.io/moment-timezone/data/packed/latest.json").then((function(e){return e.json().then((function(e){if(s.default.tz.load(e),s.default.zonesLoaded=!0,document&&document.createEvent&&document.body&&document.body.dispatchEvent){var t=document.createEvent("Event");t.initEvent("zonesLoaded",!0,!0),document.body.dispatchEvent(t)}}))}))}function A(e){return e.replace(/y/g,"Y").replace(/d/g,"D").replace(/E/g,"d").replace(/a/g,"A").replace(/U/g,"X")}function M(e){return e.match(/(\d+)$/)?e.replace(/(\d+)$/,(function(e){return Number(e)+1})):"".concat(e,"1")}function R(e){return"function"==typeof e?e():e}
2u.lodashOperators.forEach((function(e){return a.default.add_operation("_".concat(e),o.default[e])})),a.default.add_operation("getDate",(function(e){return(0,s.default)(e).toISOString()})),a.default.add_operation("relativeMinDate",(function(e){return(0,s.default)().subtract(e,"days").toISOString()})),a.default.add_operation("relativeMaxDate",(function(e){return(0,s.default)().add(e,"days").toISOString()}));var T=o.default.flow([o.default.partialRight(o.default.map,R),o.default.partialRight(o.default.find,(function(e){return!o.default.isUndefined(e)}))]);t.firstNonNil=T;var D=["#text","A","B","EM","I","SMALL","STRONG","SUB","SUP","INS","DEL","MARK","CODE"];function I(e,t){if(!e.innerText)return e.innerHTML;var n=e.innerText.replace(p.default.templateSettings.interpolate,"").replace(/\s\s+/g," ").trim(),r=t(n);if(n!==r){var o=e.innerHTML.match(/<a[^>]*>(.*?)<\/a>/g);if(o&&o.length){if(1===o.length&&o[0].length===e.innerHTML.length)return e.innerHTML.replace(n,r);var i=o.map((function(e){var n=document.createElement("a");return n.innerHTML=e,I(n,t)}));return"".concat(r," (").concat(i.join(", "),")")}return e.innerText.replace(n,r)}return e.innerHTML}function V(e,t){var n,r=e.children.length&&(function(e){if(Array.isArray(e))return m(e)}(n=e.children)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r&&r.every((function(e){return 0===e.children.length&&D.some((function(t){return e.nodeName===t}))}));!r||o?e.innerHTML=I(e,t):r.forEach((function(e){return V(e,t)}))}function L(){var e={};if("undefined"==typeof window)return e;var t=window.navigator.userAgent.toLowerCase(),n=/(edge|edg)\/([\w.]+)/.exec(t)||/(opr)[/]([\w.]+)/.exec(t)||/(yabrowser)[ /]([\w.]+)/.exec(t)||/(chrome)[ /]([\w.]+)/.exec(t)||/(iemobile)[/]([\w.]+)/.exec(t)||/(version)(applewebkit)[ /]([\w.]+).*(safari)[ /]([\w.]+)/.exec(t)||/(webkit)[ /]([\w.]+).*(version)[ /]([\w.]+).*(safari)[ /]([\w.]+)/.exec(t)||/(webkit)[ /]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ /]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[],r={browser:n[5]||n[3]||n[1]||"",version:n[4]||n[2]||"0"};return r.browser&&(e[r.browser]=!0,e.version=parseInt(r.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 N(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e&&e.key&&"wizard"!==(null==e||null===(t=e._form)||void 0===t?void 0:t.display)?(n=e.isInputComponent||!0===e.input?"".concat(e.key).concat(n?".":"").concat(n):n,N(e.parent,n)):n}function F(e){if(e){var t=e.parent;return t&&(t.isInputComponent||t.input)?t:F(t)}}},24897:function(e,t,n){"use strict";n(47941),n(82526),n(57327),n(41539),n(38880),n(54747),n(49337),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(64753))&&r.__esModule?r:{default:r};function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"addRule",value:function(t,n){e.rules[t]=n}},{key:"addRules",value:function(t){e.rules=a(a({},e.rules),t)}},{key:"getRule",value:function(t){return e.rules[t]}},{key:"getRules",value:function(){return e.rules}}],null&&s(t.prototype,null),n&&s(t,n),e}();t.default=u,l(u,"rules",o.default)},6771:function(e,t,n){"use strict";n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(47042),n(68309),n(91038),Object.defineProperty(t,"__esMo
2dule",{value:!0}),t.default=t.ValidationChecker=void 0,n(41539),n(74916),n(23123),n(92222),n(24603),n(39714),n(57327),n(26699),n(32023),n(69600),n(21249),n(44048),n(9653),n(47941),n(73210),n(4723),n(15306),n(54747),n(26833);var r=c(n(96486)),o=n(82531),i=c(n(30381)),a=c(n(91459)),s=c(n(87559)),l=n(48946),u=c(n(24897));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||p(e,t)||function(){throw new 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,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var y=(0,s.default)({Promise:a.default}),b=y.fetch,g=y.Headers,w=y.Request,k=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m(this,e),this.config=r.default.defaults(t,e.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,t,n){if(!(0,o.boolValue)(t)||e.isValueHidden())return!0;var r=e.validators.some((function(e){return"calendar"===e}));return!n&&r&&e.widget.enteredDate?!this.validators.calendar.check.call(this,e,t,n):!e.isEmpty(n)}},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,t){return!(0,o.boolValue)(t)}},unique:{key:"validate.unique",hasLabel:!0,message:function(e){return e.t(e.errorMessage("unique"),{field:e.errorLabel,data:e.data})},check:function(e,t,n){var i=this;return!(0,o.boolValue)(t)||!!(!n||r.default.isObjectLike(n)&&r.default.isEmpty(n))||!this.config.db||new a.default((function(t){var a=i.config.form,s=i.config.submission,l="data.".concat(e.path),u=function(e,t,n){var o=n.split(/\[\d+\]?./),i=n;if(o.length>1){i=o.shift();var a={};r.default.reduce(o,(function(t,n,i){var s=i===o.length-1,l=r.default.get(a,t,a),u="$elemMatch['".concat(n,"']");return r.default.set(l,u,s?e:{}),t?"".concat(t,".").concat(u):u}),""),t[i]=a}else t[i]=e},c={form:a._id};r.default.isString(n)?e.component.dbIndex?u(n,c,l):u({$regex:new RegExp("^".concat((0,o.escapeRegExCharacters)(n),"$")),$options:"i"},c,l):r.default.isPlainObject(n)&&n.address&&n.address.address_components&&n.address.place_id?u({$regex:new RegExp("^".concat((0,o.escapeRegExCharacters)(n.address.place_id),"$")),$options:"i"},c,"".concat(l,".address.place_id")):r.default.isArray(n)?u({$all:n},c,l):(r.default.isObject(n)||r.default.isNumber(n))&&u({$eq:n},c,l),c.deleted={$eq:null},i.config.db.findOne(c,(function(n,r){return n?t(!1):r?s._id&&r._id.toString()===s._id?void t(!0):(e.conflictId=r._id.toString(),t(!1)):t(!0)}))})).catch((function(){return!1}))}},multiple:{key:"validate.multiple",hasLabel:!0,message:function(e){var t=(0,o.boolValue)(e.component.multiple)||Array.isArray(e.emptyValue),n=e.component.validate.required,r=t?n?"array_nonempty":"array":"nonarray";return e.t(e.errorMessage(r),{field:e.errorLabel,data:e.data})},check:function(e,t,n){if(!e.validateMultiple())return!0;var i=(0,o.boolValue)(t),a=Array.isArray(e.emptyValue),s=Array.isArray(n),l=e.component.validate.required;return i?s?!l||!!n.length:!!r.default.isNil(n)&&!l:a||!s}},select:{key:"validate.select",hasLabel:!0,message:function(e){return e.t(e.errorMessage("select"),{field:e.errorLabel,data:e.data})},check:function(e,t,n,i,a,s,l){if(!(0,o.boolValue)(t))return!0;
2if(!n||r.default.isEmpty(n))return!0;if(!l)return!0;var u=e.component,c={url:t,method:"GET",qs:{},json:!0,headers:{}};if(r.default.isBoolean(c.url)){if(c.url=!!c.url,!c.url||"url"!==u.dataSrc||!u.data.url||!u.searchField)return!0;c.url=u.data.url,c.qs[u.searchField]=n,u.filter&&(c.url+=(c.url.includes("?")?"&":"?")+u.filter),u.selectFields&&(c.qs.select=u.selectFields)}return!c.url||(c.url=(0,o.interpolate)(c.url,{data:e.data}),c.url+=(c.url.includes("?")?"&":"?")+r.default.chain(c.qs).map((function(e,t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e))})).join("&").value(),u.data&&u.data.headers&&r.default.each(u.data.headers,(function(e){e.key&&(c.headers[e.key]=e.value)})),u.authenticate&&this.config.token&&(c.headers["x-jwt-token"]=this.config.token),b(new w(c.url,{headers:new g(c.headers)})).then((function(e){return!!e.ok&&e.json()})).then((function(e){return e&&e.length})).catch((function(){return!1})))}},min:{key:"validate.min",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("min"),{field:e.errorLabel,min:parseFloat(t),data:e.data})},check:function(e,t,n){var r=parseFloat(t),o=parseFloat(n);return!(!Number.isNaN(r)&&!Number.isNaN(o))||o>=r}},max:{key:"validate.max",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("max"),{field:e.errorLabel,max:parseFloat(t),data:e.data})},check:function(e,t,n){var r=parseFloat(t),o=parseFloat(n);return!(!Number.isNaN(r)&&!Number.isNaN(o))||o<=r}},minSelectedCount:{key:"validate.minSelectedCount",message:function(e,t){return e.component.minSelectedCountMessage?e.component.minSelectedCountMessage:e.t(e.errorMessage("minSelectedCount"),{minCount:parseFloat(t),data:e.data})},check:function(e,t,n){var r=parseFloat(t);if(!r)return!0;var o=Object.keys(n).reduce((function(e,t){return n[t]&&e++,e}),0);return!o||o>=r}},maxSelectedCount:{key:"validate.maxSelectedCount",message:function(e,t){return e.component.maxSelectedCountMessage?e.component.maxSelectedCountMessage:e.t(e.errorMessage("maxSelectedCount"),{minCount:parseFloat(t),data:e.data})},check:function(e,t,n){var r=parseFloat(t);return!r||Object.keys(n).reduce((function(e,t){return n[t]&&e++,e}),0)<=r}},minLength:{key:"validate.minLength",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("minLength"),{field:e.errorLabel,length:t,data:e.data})},check:function(e,t,n){var r=parseInt(t,10);return!(n&&r&&"string"==typeof n&&!e.isEmpty(n))||n.length>=r}},maxLength:{key:"validate.maxLength",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("maxLength"),{field:e.errorLabel,length:t,data:e.data})},check:function(e,t,n){var r=parseInt(t,10);return!r||"string"!=typeof n||n.length<=r}},maxWords:{key:"validate.maxWords",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("maxWords"),{field:e.errorLabel,length:t,data:e.data})},check:function(e,t,n){var r=parseInt(t,10);return!r||"string"!=typeof n||n.trim().split(/\s+/).length<=r}},minWords:{key:"validate.minWords",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("minWords"),{field:e.errorLabel,length:t,data:e.data})},check:function(e,t,n){var r=parseInt(t,10);return!r||!n||"string"!=typeof n||n.trim().split(/\s+/).length>=r}},email:{hasLabel:!0,message:function(e){return e.t(e.errorMessage("invalid_email"),{field:e.errorLabel,data:e.data})},check:function(e,t,n){return!n||/^(([^<>()[\]\\.,;:\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(n)}},url:{hasLabel:!0,message:function(e){return e.t(e.errorMessage("invalid_url"),{field:e.errorLabel,data:e.data})},check:function(e,t,n){return!n||/^(?:(?:(?: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(n)&&!/^(([^<>()[\]\\.,;:\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(n)}},date:{hasLabel:!0,message:function(e){return e.t(e.errorMessage("invalid_date"),{field:e.errorLabel,data:e.data})},check:function(e,t,n){return"Invalid date"!==n}},day:{hasLabel:!0,message:function(e){return e.t(e.errorMessage("invalid_day"),{field:e.errorLabel,data:e.data})},check:function(e,t,n){if(!n)return!0;var r=d(e.dayFirst?[0,1,2]:[1,0,2],3),o=r[0],i=r[1],a=r[2],s=n.split("/").map((function(e){return parseInt(e,10)})),l=s[o],u=s[i],c=s[a],f=function(e,t){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 function(e){return!(e%400&&(!(e%100)||e%4))}(t)?29:28}}(u,c);return!(l<0||l>f||u<0||u>12||c<0||c>9999)}},pattern:{key:"validate.pattern",hasLabel:!0,message:function(e,t){return e.t(r.default.get(e,"component.validate.patternMessage",e.errorMessage("pattern")),{field:e.errorLabel,pattern:t,data:e.data})},check:function(e,t,n){return!!e.isEmpty(n)||(!t||new RegExp("^".concat(t,"$")).test(n))}}
2,json:{key:"validate.json",check:function(e,t,n,r,o,i){if(!t)return!0;var a=e.evaluate(t,{data:r,row:i,rowIndex:o,input:n});return null===a||a}},mask:{key:"inputMask",hasLabel:!0,message:function(e){return e.t(e.errorMessage("mask"),{field:e.errorLabel,data:e.data})},check:function(e,t,n){var r;if(e.isMultipleMasksField){var i=n?n.maskName:void 0,a=e.getMaskByName(i);a&&(r=a),n=n?n.value:n}else r=t;return r=r?(0,o.getInputMask)(r):null,!(n&&r&&!e.skipMaskValidation)||(r=r.map((function(t){return t===e.placeholderChar?" ":t})),(0,o.matchInputMask)(n,r))}},custom:{key:"validate.custom",message:function(e){return e.t(e.errorMessage("custom"),{field:e.errorLabel,data:e.data})},check:function(e,t,n,r,o,i){if(!t)return!0;var a=e.evaluate(t,{valid:!0,data:r,rowIndex:o,row:i,input:n},"valid",!0);return null===a||a}},maxDate:{key:"maxDate",hasLabel:!0,message:function(e,t){var n=(0,o.getDateSetting)(t);return e.t(e.errorMessage("maxDate"),{field:e.errorLabel,maxDate:(0,i.default)(n).format(e.format)})},check:function(e,t,n){if(e.isPartialDay&&e.isPartialDay(n))return!0;var a=e.getValidationFormat?(0,i.default)(n,e.getValidationFormat()):(0,i.default)(n),s=(0,o.getDateSetting)(t);return!!r.default.isNull(s)||(s.setHours(0,0,0,0),a.isBefore(s)||a.isSame(s))}},minDate:{key:"minDate",hasLabel:!0,message:function(e,t){var n=(0,o.getDateSetting)(t);return e.t(e.errorMessage("minDate"),{field:e.errorLabel,minDate:(0,i.default)(n).format(e.format)})},check:function(e,t,n){if(e.isPartialDay&&e.isPartialDay(n))return!0;var a=e.getValidationFormat?(0,i.default)(n,e.getValidationFormat()):(0,i.default)(n),s=(0,o.getDateSetting)(t);return!!r.default.isNull(s)||(s.setHours(0,0,0,0),a.isAfter(s)||a.isSame(s))}},minYear:{key:"minYear",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("minYear"),{field:e.errorLabel,minYear:t})},check:function(e,t,n){var r=t,o=/\d{4}$/.exec(n);return o=o?o[0]:null,!+r||!+o||+o>=+r}},maxYear:{key:"maxYear",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("maxYear"),{field:e.errorLabel,maxYear:t})},check:function(e,t,n){var r=t,o=/\d{4}$/.exec(n);return o=o?o[0]:null,!+r||!+o||+o<=+r}},calendar:{key:"validate.calendar",messageText:"",hasLabel:!0,message:function(e){return e.t(e.errorMessage(this.validators.calendar.messageText),{field:e.errorLabel,maxDate:(0,i.default)(e.dataValue).format(e.format)})},check:function(e,t,n,r,a){this.validators.calendar.messageText="";var s=e.getWidget(a);if(!s)return!0;var u=s.settings,c=s.enteredDate,f=u.minDate,d=u.maxDate,p=u.format,h=[(0,o.convertFormatToMoment)(p)];if(h[0].match(/M{3,}/g)&&h.push(h[0].replace(/M{3,}/g,"MM")),!n&&c){var m=(0,l.checkInvalidDate)(c,h,f,d),v=m.message,y=m.result;if(!y)return this.validators.calendar.messageText=v,y}return n&&c?(0,i.default)(n).format()!==(0,i.default)(c,h,!0).format()&&c.match(/_/gi)?(this.validators.calendar.messageText=l.CALENDAR_ERROR_MESSAGES.INCOMPLETE,!1):(s.enteredDate="",!0):void 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,t,n){return!!e.isEmpty(n)||(0,i.default)(n,e.component.format).isValid()}}}}var t,n;return t=e,n=[{key:"checkValidator",value:function(e,t,n,r,o,i,s,l){var u,c=this;u=t.method&&"function"==typeof e[t.method]?e[t.method](n,r,o,i,s,l):t.check.call(this,e,n,r,o,i,s,l);var f=function(r){return"string"==typeof r?r:!r&&t.message?t.message.call(c,e,n,i,s):""};return l?a.default.resolve(u).then(f):f(u)}},{key:"validate",value:function(e,t,n,i,s,l,u,c,f){if(!c)return!1;var d=this.validators[t],p=r.default.get(f||e.component,d.key,null),h=this.checkValidator(e,d,p,n,i,s,l,u),m=function(i){if(i){var a,l={message:(0,o.unescapeHTML)(r.default.get(i,"message",i)),level:"warning"===r.default.get(i,"level")?"warning":"error",path:(0,o.getArrayFromComponentPath)(e.path||""),context:{validator:t,hasLabel:d.hasLabel,setting:p,key:e.key,label:e.label,value:n,index:s,input:null===(a=e.refs.input)||void 0===a?void 0:a[s]}};return"unique"===t&&e.conflictId&&(l.conflictId=e.conflictId),l}return!1};return u?a.default.resolve(h).then(m):m(h)}},{key:"checkComponent",value:function(e,t,n){var o,i=this,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u="undefined"!=typeof process&&"node"===r.default.get(process,"release.name")&&!r.default.defaultTo(e.component.persistent,!0);if(u||!1===e.component.validate)return l?a.default.resolve([]):[];t=t||e.rootValue,n=n||e.data;var c=e.component.multiple&&Array.isArray(e.validationValue)?e.validationValue:[e.validationValue],d=e.conditionallyVisible(),p=[];
2null!=e&&null!==(o=e.addons)&&void 0!==o&&o.length&&c.forEach((function(t){e.addons.forEach((function(e){e.checkValidity(t)||p.push.apply(p,f(e.errors||[]))}))}));var h=r.default.get(e,"component.validations"),m=[];if(h&&Array.isArray(h)&&h.length){var v=r.default.chain(h).groupBy((function(e){return e.mode})).value();if(e.calculateCondition){s=!0;var y=r.default.chain(v.ui).filter("active").groupBy((function(e){return e.group||null})).value(),b=y.null||[];delete y.null,b.forEach((function(t){var n=t.condition,r=t.message,o=t.severity;e.calculateCondition(n)||m.push({level:o||"error",message:e.t(r),componentInstance:e})})),r.default.forEach(y,(function(t){r.default.forEach(t,(function(t){var n=t.condition,r=t.message,o=t.severity;if(!e.calculateCondition(n))return m.push({level:o||"error",message:e.t(r),componentInstance:e}),!1}))}))}else m=this.checkValidations(e,h,t,n,c,l);e.validators.includes("custom")&&v.js&&r.default.each(v.js,(function(o){m.push(r.default.map(c,(function(r,a){return i.validate(e,"custom",r,t,a,n,l,d,o)})))})),e.validators.includes("json")&&v.json&&r.default.each(v.json,(function(o){m.push(r.default.map(c,(function(r,a){return i.validate(e,"json",r,t,a,n,l,d,o)})))}))}var g=r.default.get(e,"component.validate.custom"),w=r.default.get(e,"component.validate.customMessage"),k=(0,r.default)(e.validators).chain().map((function(o){return i.validators.hasOwnProperty(o)?"required"!==o||c.length?r.default.map(c,(function(r,a){return i.validate(e,o,r,t,a,n,l,d)})):[i.validate(e,o,null,t,0,n,l,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,k.push(this.validate(e,"unique",e.validationValue,t,0,t,l,d)),e.component.validate.multiple=e.component.multiple,k.push(this.validate(e,"multiple",e.validationValue,t,0,t,l,d)),k.push.apply(k,p),k.push.apply(k,f(m));var _=function(o){return o=(0,r.default)(o).chain().flatten().compact().value(),(w||g)&&r.default.each(o,(function(r){r.message=e.t(w||r.message,{field:e.errorLabel,data:t,row:n,error:r}),r.context.hasLabel=!1})),s?o:r.default.reject(o,(function(e){return"warning"===e.level}))};return l?a.default.all(k).then(_):_(k)}},{key:"checkValidations",value:function(e,t,n,r,o,i){var a=this,s=t.map((function(t){return a.checkRule(e,t,n,r,o,i)})).reduce((function(e,t){return t?[].concat(f(e),f(t)):e}),[]).filter((function(e){return e})).reduce((function(e,t){return e[t.context.validator]=t,e}),{});return Object.values(s)}},{key:"checkRule",value:function(e,t,n,r,o,i){var a=u.default.getRule(t.rule),s=[];if(a){var l=new a(e,t.settings,this.config);o.map((function(o,a){var u=l.check(o,n,r,i);!0!==u&&s.push({level:t.level||"error",message:e.t(t.message||l.defaultMessage,{settings:t.settings,field:e.errorLabel,data:n,row:r,error:u}),context:{key:e.key,index:a,label:e.label,validator:t.rule}})}))}return 0!==s.length&&s}},{key:"check",get:function(){return this.checkComponent}},{key:"get",value:function(){r.default.get.call(this,arguments)}},{key:"each",value:function(){r.default.each.call(this,arguments)}},{key:"has",value:function(){r.default.has.call(this,arguments)}}],n&&v(t.prototype,n),e}();t.ValidationChecker=k,k.config={db:null,token:null,form:null,submission:null};var _=new k;t.default=_},4338:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(47941),n(82526),n(57327),n(41539),n(38880),n(54747),n(49337),Ob
2ject.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"addConjunction",value:function(t,n){e.conjunctions[t]=n}},{key:"addConjunctions",value:function(t){e.conjunctions=o(o({},e.conjunctions),t)}},{key:"getConjunction",value:function(t){return e.conjunctions[t]}},{key:"getConjunctions",value:function(){return e.conjunctions}}],null&&i(t.prototype,null),n&&i(t,n),e}();t.default=s,a(s,"conjunctions",{})},3764:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(47941),n(82526),n(57327),n(41539),n(38880),n(54747),n(49337),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"addOperator",value:function(t,n){e.operators[t]=n}},{key:"addOperators",value:function(t){e.operators=o(o({},e.operators),t)}},{key:"getOperator",value:function(t){return e.operators[t]}},{key:"getOperators",value:function(){return e.operators}}],null&&i(t.prototype,null),n&&i(t,n),e}();t.default=s,a(s,"operators",{})},50136:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(47941),n(82526),n(57327),n(41539),n(38880),n(54747),n(49337),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"addQuickRule",value:function(t,n){e.quickRules[t]=n}},{key:"addQuickRules",value:function(t){e.quickRules=o(o({},e.quickRules),t)}},{key:"getQuickRule",value:function(t){return e.quickRules[t]}},{key:"getQuickRules",value:function(){return e.quickRules}}],null&&i(t.prototype,null),n&&i(t,n),e}();t.default=s,a(s,"quickRules",{})},480:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
2function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(30489),n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(92222);var f=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(l(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{error}}"),e}return t=p,(n=[{key:"check",value:function(e,t,n,r){var o=this.settings.custom;if(!o)return!0;var i=this.component.evaluate(o,{valid:!0,data:t,row:n,rowIndex:r,input:e},"valid",!0);return null===i||i}}])&&i(t.prototype,n),p}(f)},31266:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(30489),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(92222),n(41539),n(39714);var f=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(l(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} is not a valid date."),e}return t=p,(n=[{key:"check",value:function(e){return!e||e instanceof Date||"Invalid date"!==e&&"Invalid Date"!==e&&("string"==typeof e&&(e=new Date(e)),"Invalid Date"!==e.toString())}}])&&i(t.prototype,n),p}(f)},22762:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
2function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(30489),n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(47042),n(68309),n(91038),n(92222),n(21249),n(74916),n(23123);var d=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(h,e);var t,n,r,d,p=(r=h,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(d){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function h(){var e;i(this,h);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(u(e=p.call.apply(p,[this].concat(n))),"defaultMessage","{{field}} is not a valid day."),e}return t=h,(n=[{key:"check",value:function(e){if(!e)return!0;if("string"!=typeof e)return!1;var t,n,r=(t=this.component.dayFirst?[0,1,2]:[1,0,2],n=3,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=r[0],a=r[1],s=r[2],l=e.split("/").map((function(e){return parseInt(e,10)})),u=l[i],c=l[a],f=l[s],d=function(e,t){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 function(e){return!(e%400&&(!(e%100)||e%4))}(t)?29:28}}(c,f);return!(isNaN(u)||u<0||u>d||isNaN(c)||c<0||c>12||isNaN(f)||f<0||f>9999)}}])&&a(t.prototype,n),h}(d)},81365:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}
2function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(30489),n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(92222),n(74916);var f=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(l(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} must be a valid email."),e}return t=p,(n=[{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)}}])&&i(t.prototype,n),p}(f)},58788:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(30489),n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(92222);var f=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(l(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{error}}"),e}return t=p,(n=[{key:"check",value:function(e,t,n,r){var o=this.settings.json;if(!o)return!0;var i=this.component.evaluate(o,{data:t,row:n,rowIndex:r,input:e});return null===i||i}}])&&i(t.prototype,n),p}(f)},35239:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(30489),n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(92222);var o=n(82531);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
2function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(h,e);var t,n,r,d,p=(r=h,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(d){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function h(){var e;i(this,h);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(u(e=p.call.apply(p,[this].concat(n))),"defaultMessage","{{field}} does not match the mask."),e}return t=h,(n=[{key:"check",value:function(e){var t;if(this.component.isMultipleMasksField){var n=e?e.maskName:void 0,r=this.component.getMaskByName(n);r&&(t=(0,o.getInputMask)(r)),e=e?e.value:e}else t=(0,o.getInputMask)(this.settings.mask);return!e||!t||(0,o.matchInputMask)(e,t)}}])&&a(t.prototype,n),h}(d)},54266:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(30489),n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(92222),n(44048),n(9653);var f=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(l(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} cannot be greater than {{settings.limit}}."),e}return t=p,(n=[{key:"check",value:function(e){var t=parseFloat(this.settings.limit),n=parseFloat(e);return!(!Number.isNaN(t)&&!Number.isNaN(n))||n<=t}}])&&i(t.prototype,n),p}(f)},89017:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(30489),n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(92222);var o=n(82531),i=s(n(30381)),a=s(n(96486));
2function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function f(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(v,e);var t,n,r,s,m=(r=v,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(r);if(s){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return f(this,e)});function v(){var e;l(this,v);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return h(d(e=m.call.apply(m,[this].concat(n))),"defaultMessage","{{field}} should not contain date after {{settings.dateLimit}}"),e}return t=v,(n=[{key:"check",value:function(e){if(!e)return!0;if(e===this.settings.dateLimit)return!0;var t=(0,i.default)(e),n=(0,o.getDateSetting)(this.settings.dateLimit);return!!a.default.isNull(n)||(n.setHours(0,0,0,0),t.isBefore(n)||t.isSame(n))}}])&&u(t.prototype,n),v}(m)},93942:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(30489),n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(92222);var f=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(l(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} must have no more than {{- settings.length}} characters."),e}return t=p,(n=[{key:"check",value:function(e){var t=parseInt(this.settings.length,10);return!(e&&t&&e.hasOwnProperty("length"))||e.length<=t}}])&&i(t.prototype,n),p}(f)},40177:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
2function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(30489),n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(92222),n(74916),n(23123),n(73210);var f=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(l(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} must have no more than {{- settings.length}} words."),e}return t=p,(n=[{key:"check",value:function(e){var t=parseInt(this.settings.length,10);return!t||"string"!=typeof e||e.trim().split(/\s+/).length<=t}}])&&i(t.prototype,n),p}(f)},18722:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(30489),n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(92222),n(74916);var f=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(l(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} should not contain year greater than {{maxYear}}"),e}return t=p,(n=[{key:"check",value:function(e){var t=this.settings,n=/\d{4}$/.exec(e);return n=n?n[0]:null,!+t||!+n||+n<=+t}}])&&i(t.prototype,n),p}(f)},43117:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
2function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(30489),n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(92222),n(44048),n(9653);var f=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(l(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} cannot be less than {{settings.limit}}."),e}return t=p,(n=[{key:"check",value:function(e){var t=parseFloat(this.settings.limit),n=parseFloat(e);return!(!Number.isNaN(t)&&!Number.isNaN(n))||n>=t}}])&&i(t.prototype,n),p}(f)},36056:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(30489),n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(92222);var o=n(82531),i=s(n(30381)),a=s(n(96486));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function f(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(v,e);var t,n,r,s,m=(r=v,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(r);if(s){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return f(this,e)});function v(){var e;l(this,v);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return h(d(e=m.call.apply(m,[this].concat(n))),"defaultMessage","{{field}} should not contain date before {{settings.dateLimit}}"),e}return t=v,(n=[{key:"check",value:function(e){if(!e)return!0;var t=(0,i.default)(e),n=(0,o.getDateSetting)(this.settings.dateLimit);return!!a.default.isNull(n)||(n.setHours(0,0,0,0),t.isAfter(n)||t.isSame(n))}}])&&u(t.prototype,n),v}(m)},24391:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
2function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(30489),n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(92222);var f=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(l(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} must have no more than {{- settings.length}} characters."),e}return t=p,(n=[{key:"check",value:function(e){var t=parseInt(this.settings.length,10);return!(t&&e&&e.hasOwnProperty("length")&&!this.component.isEmpty(e))||e.length>=t}}])&&i(t.prototype,n),p}(f)},17579:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(30489),n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(92222),n(74916),n(23123),n(73210);var f=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(l(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} must have at least {{- settings.length}} words."),e}return t=p,(n=[{key:"check",value:function(e){var t=parseInt(this.settings.length,10);return!t||!e||"string"!=typeof e||e.trim().split(/\s+/).length>=t}}])&&i(t.prototype,n),p}(f)},40535:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
2function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(30489),n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(92222),n(74916);var f=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(l(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} should not contain year less than {{minYear}}"),e}return t=p,(n=[{key:"check",value:function(e){var t=this.settings,n=/\d{4}$/.exec(e);return n=n?n[0]:null,!+t||!+n||+n>=+t}}])&&i(t.prototype,n),p}(f)},49561:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(30489),n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(92222),n(74916),n(24603),n(39714);var f=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(l(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} does not match the pattern {{settings.pattern}}"),e}return t=p,(n=[{key:"check",value:function(e){var t=this.settings.pattern;return!t||new RegExp("^".concat(t,"$")).test(e)}}])&&i(t.prototype,n),p}(f)},86947:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
2function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(30489),n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(92222);var f=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(l(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} is required"),e}return t=p,(n=[{key:"check",value:function(e){return!this.component.isValueHidden()&&!this.component.isEmpty(e)}}])&&i(t.prototype,n),p}(f)},14142:function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.component=t,this.settings=n,this.config=r}var n,r;return n=e,(r=[{key:"check",value:function(){}}])&&t(n.prototype,r),e}()},71912:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(30489),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(92222),n(57327),n(41539),n(26699),n(32023),n(69600),n(21249);var o=n(82531),i=l(n(91459)),a=l(n(87559)),s=l(n(96486));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function d(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=(0,a.default)({Promise:i.default}),y=v.fetch,b=v.Headers,g=v.Request,w=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(l,e);var t,n,r,i,a=(r=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function l(){var e;u(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(p(e=a.call.apply(a,[this].concat(n))),"defaultMessage","{{field}}
2 contains an invalid selection"),e}return t=l,(n=[{key:"check",value:function(e,t,n,r){if(!e||s.default.isEmpty(e))return!0;if(!r)return!0;var i=this.component.component,a={url:this.settings.url,method:"GET",qs:{},json:!0,headers:{}};if(s.default.isBoolean(a.url)){if(a.url=!!a.url,!a.url||"url"!==i.dataSrc||!i.data.url||!i.searchField)return!0;a.url=i.data.url,a.qs[i.searchField]=e,i.filter&&(a.url+=(a.url.includes("?")?"&":"?")+i.filter),i.selectFields&&(a.qs.select=i.selectFields)}return!a.url||(a.url=(0,o.interpolate)(a.url,{data:this.component.data}),a.url+=(a.url.includes("?")?"&":"?")+s.default.chain(a.qs).map((function(e,t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e))})).join("&").value(),i.data&&i.data.headers&&s.default.each(i.data.headers,(function(e){e.key&&(a.headers[e.key]=e.value)})),i.authenticate&&this.config.token&&(a.headers["x-jwt-token"]=this.config.token),y(new g(a.url,{headers:new b(a.headers)})).then((function(e){return!!e.ok&&e.json()})).then((function(e){return e&&e.length})).catch((function(){return!1})))}}])&&c(t.prototype,n),l}(w)},30173:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(30489),n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(92222);var o,i=(o=n(30381))&&o.__esModule?o:{default:o};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(h,e);var t,n,r,o,p=(r=h,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(r);if(o){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function h(){var e;a(this,h);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(c(e=p.call.apply(p,[this].concat(n))),"defaultMessage","{{field}} must contain valid time"),e}return t=h,(n=[{key:"check",value:function(e){return!!this.component.isEmpty(e)||(0,i.default)(e,this.component.component.format).isValid()}}])&&s(t.prototype,n),h}(p)},18754:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(30489),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(92222),n(24603),n(74916),n(39714),n(41539);var o=n(82531),i=s(n(96486)),a=s(n(91459));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
2function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function f(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(v,e);var t,n,r,s,m=(r=v,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(r);if(s){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return f(this,e)});function v(){var e;l(this,v);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return h(d(e=m.call.apply(m,[this].concat(n))),"defaultMessage","{{field}} must be unique"),e}return t=v,(n=[{key:"check",value:function(e){var t=this;return!!(!e||i.default.isObjectLike(e)&&i.default.isEmpty(e))||!this.config.db||new a.default((function(n){var r=t.config.form,a=t.config.submission,s="data.".concat(t.component.path),l={form:r._id};i.default.isString(e)?l[s]={$regex:new RegExp("^".concat((0,o.escapeRegExCharacters)(e),"$")),$options:"i"}:i.default.isPlainObject(e)&&e.address&&e.address.address_components&&e.address.place_id?l["".concat(s,".address.place_id")]={$regex:new RegExp("^".concat((0,o.escapeRegExCharacters)(e.address.place_id),"$")),$options:"i"}:i.default.isArray(e)?l[s]={$all:e}:(i.default.isObject(e)||i.default.isNumber(e))&&(l[s]={$eq:e}),l.deleted={$eq:null},t.config.db.findOne(l,(function(e,t){return n(!e&&(!t||a._id&&t._id.toString()===a._id))}))})).catch((function(){return!1}))}}])&&u(t.prototype,n),v}(m)},68135:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(30489),n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),n(92222),n(74916);var f=n(14142);e.exports=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(p,e);var t,n,r,f,d=(r=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(f){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function p(){var e;o(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return c(l(e=d.call.apply(d,[this].concat(n))),"defaultMessage","{{field}} must be a valid url."),e}return t=p,(n=[{key:"check",value:function(e){return!e||/^(?:(?:(?
2: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)}}])&&i(t.prototype,n),p}(f)},64753:function(e,t,n){"use strict";var r=n(480),o=n(31266),i=n(22762),a=n(81365),s=n(58788),l=n(35239),u=n(54266),c=n(89017),f=n(93942),d=n(40177),p=n(43117),h=n(36056),m=n(24391),v=n(17579),y=n(49561),b=n(86947),g=n(71912),w=n(18754),k=n(68135),_=n(40535),O=n(18722),x=n(30173);e.exports={custom:r,date:o,day:i,email:a,json:s,mask:l,max:u,maxDate:c,maxLength:f,maxWords:d,min:p,minDate:h,minLength:m,minWords:v,pattern:y,required:b,select:g,unique:w,url:k,minYear:_,maxYear:O,time:x}},87892:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(47941),n(82526),n(57327),n(41539),n(38880),n(54747),n(49337),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"addTransformer",value:function(t,n){e.transformers[t]=n}},{key:"addTransformers",value:function(t){e.transformers=o(o({},e.transformers),t)}},{key:"getTransformer",value:function(t){return e.transformers[t]}},{key:"getTransformers",value:function(){return e.transformers}}],null&&i(t.prototype,null),n&&i(t,n),e}();t.default=s,a(s,"transformers",{})},20168:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(47941),n(82526),n(57327),n(41539),n(38880),n(54747),n(49337),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"addValueSource",value:function(t,n){e.valueSources[t]=n}},{key:"addValueSources",value:function(t){e.valueSources=o(o({},e.valueSources),t)}},{key:"getValueSource",value:function(t){return e.valueSources[t]}},{key:"getValueSources",value:function(){return e.valueSources}}],null&&i(t.prototype,null),n&&i(t,n),e}();t.default=s,a(s,"valueSources",{})},27660:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(12419),n(74819),n(38880),n(83593),n(47941),n(82526),n(54747),n(49337),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esMo
2dule",{value:!0}),t.default=void 0,n(74916),n(15306),n(57327),n(41539),n(23123),n(21249),n(4723),n(69826),n(39714),n(30489);var o=n(19161),i=u(n(581)),a=n(82531),s=u(n(30381)),l=u(n(96486));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n,r){return p="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=v(e,t);if(i){if((o=Object.getOwnPropertyDescriptor(i,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else h(r,t,n);return!0},p(e,t,n,r)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(){return m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=v(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},m.apply(this,arguments)}function v(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function b(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var w="yyyy-MM-dd hh:mm a",k="yyyy-MM-ddTHH:mm:ssZ",_="https://cdn.form.io/",O="https://cdn.jsdelivr.net",x="/npm/[email protected]/dist/",S="".concat(O).concat(x,"themes/light.min.css"),j="".concat(O).concat(x,"shortcut-buttons-flatpickr.min.js"),P=(0,a.getBrowserInfo)().ie,C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(h,e);var t,n,r,i,u,c=(i=h,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g(i);if(u){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return b(this,e)});function h(e,t,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(o=c.call(this,e,t,n,r)).settings.noCalendar&&(o.settings.format=o.settings.format.replace(/yyyy-MM-dd /g,"")),o.settings.enableTime?o.settings.time_24hr&&(o.settings.format=o.settings.format.replace(/hh:mm a$/g,"HH:mm")):(o.settings.format=o.settings.format.replace(/ hh:mm a$/g,""),o.settings.dateFormat=o.settings.format),o}return t=h,r=[{key:"defaultSettings",get:function(){return{type:"calendar",altInput:!0,allowInput:!0,clickOpens:!0,enableDate:!0,enableTime:!0,mode:"single",noCalendar:!1,format:w,dateFormat:k,useLocaleSettings:!1,language:"us-en",hourIncrement:1,minuteIncrement:5,time_24hr:!1,saveAs:"date",displayInTimezone:"",timezone:"",disable:[],minDate:"",maxDate:""}}}],(n=[{key:"loadZones",value:function(){var e=this,t=this.timezone;return!((0,a.zonesLoaded)()||!(0,a.shouldLoadZones)(t)||((0,a.loadZones)(t).then((function(){return e.emit("redraw")})),0))}},{key:"attach",value:function(e){var t,n=this,r=m(g(h.prototype),"attach",this).call(this,e),i=(0,a.getL
2ocaleDateFormatInfo)(this.settings.language);this.defaultFormat={date:i.dayFirst?"d/m/Y ":"m/d/Y ",time:"G:i K"},this.closedOn=0,this.valueFormat="date"===this.settings.saveAs?k:this.settings.dateFormat||k,this.valueMomentFormat=(0,a.convertFormatToMoment)(this.valueFormat);var s=this.settings.readOnly;return this.settings.minDate=s?null:(0,a.getDateSetting)(this.settings.minDate),this.settings.maxDate=s?null:(0,a.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,a.convertFormatToFlatpickr)(this.settings.format),this.settings.dateFormat=(0,a.convertFormatToFlatpickr)(this.settings.dateFormat),this.settings.position="auto center",this.settings.onChange=function(){n.settings.allowInput&&(n.settings.isManuallyOverriddenValue&&n.settings.enableTime?n.calendar._input.value=n.settings.manualInputValue:n.settings.manualInputValue="",n.settings.isManuallyOverriddenValue=!1),n.emit("update")},this.settings.onOpen=function(){return n.hook("onCalendarOpen")},this.settings.onClose=function(){n.hook("onCalendarClose"),n.closedOn=Date.now(),n.settings.allowInput&&n.settings.enableTime&&(n.calendar._input.value=n.settings.manualInputValue||n.calendar._input.value,n.settings.isManuallyOverriddenValue=!1,n.emit("update")),n.settings.wasDefaultValueChanged&&(n.calendar._input.value=n.settings.defaultValue,n.settings.wasDefaultValueChanged=!1),n.calendar&&n.emit("blur")},o.GlobalFormio.requireLibrary("flatpickr-css","flatpickr",[{type:"styles",src:"".concat(_).concat(this.flatpickrType,"/flatpickr.min.css")}],!0),this.component.shortcutButtons&&(this.component.shortcutButtons=this.component.shortcutButtons.filter((function(e){return e.label&&e.onClick}))),null!==(t=this.component.shortcutButtons)&&void 0!==t&&t.length&&o.GlobalFormio.requireLibrary("shortcut-buttons-flatpickr-css","ShortcutButtonsPlugin",[{type:"styles",src:S}],!0),r.then((function(){var e;if(null!==(e=n.component.shortcutButtons)&&void 0!==e&&e.length)return o.GlobalFormio.requireLibrary("shortcut-buttons-flatpickr","ShortcutButtonsPlugin",j,!0)})).then((function(e){return o.GlobalFormio.requireLibrary("flatpickr","flatpickr","".concat(_).concat(n.flatpickrType,"/flatpickr.min.js"),!0).then((function(t){var r;if(null!==(r=n.component.shortcutButtons)&&void 0!==r&&r.length&&e&&n.initShortcutButtonsPlugin(e),n.settings.formatDate=n.getFlatpickrFormatDate(t),n._input){var i=n.settings.locale;if(i&&i.length>=2&&"en"!==i)return o.GlobalFormio.requireLibrary("flatpickr-".concat(i),"flatpickr-".concat(i),"".concat("https://cdnjs.cloudflare.com/ajax/libs/flatpickr/4.6.9/l10n","/").concat(i,".min.js"),!1,(function(){return n.initFlatpickr(t)}));n.initFlatpickr(t)}}))})).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(t){return!e.disableWeekends(t)}}},{key:"disableFunction",get:function(){var e=this;return function(t){return e.evaluate("return ".concat(e.settings.disableFunction),{date:t})}}},{key:"defineTimezone",value:function(){return this.settings.timezone?this.settings.timezone:"submission"===this.settings.displayInTimezone&&this.settings.submissionTimezone?this.settings.submissionTimezone:"utc"===this.settings.displayInTimezone?"UTC":(0,a.currentTimezone)()}},{key:"timezone",get:function(){return this.defineTimezone()}},{key:"defaultSettings",get:function(){return h.defaultSettings}},{key:"addSuffix",value:function(e){var t=this;return this.addEventListener(e,"click",(function(e){e.stopPropagation(),t.calendar&&(!t.calendar.isOpen&&Date.now()-t.closedOn>200?t.calendar.open():t.calendar.isOpen&&t.calendar.close())})),e}},{key:"disabled",set:function(e){(function(e,t,n,r,o){if(!p(e,t,n,r||e)&&o)throw new Error("failed to set property")})(g(h.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 t=/\d{4}-\d{2}-\d{2}/g,n=e.match(t);if(n&&n.length)return 1===n.length?e.match(t)[0]:{from:e.match(t)[0],to:e.match(t)[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,a.convertFormatToFlatpickr)(this.dateFormat)}},{key:"dateFormat",get:function(){return l.default.get(this.settings,"format",w)}},{key:"getDateValue",value:function(e,t,n){return n?(0,a.momentDate)(e,this.valueFormat,this.timezone).format((0,a.convertFormatToMoment)(t)):(0,s.default)(e).format((0,a.convertFormatToMoment)(t))}},{key:"flatpickrType",get:function(){return"flatpickr"}},{key:"getValue",value:function(){if(!this.calendar)return m(g(h.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":m(g(h.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 t="text"===this.settings.saveAs;if(!this.calendar)return e=e?(0,a.formatDate)(e,(0,a.convertFormatToMoment)(this.settings.format),this.timezone,(0,a.convertFormatToMoment)(this.valueMomentFormat)):e,m(g
2(h.prototype),"setValue",this).call(this,e);if(this.isValueISO8601(e))this.calendar.setDate((0,s.default)(e).toDate(),!1);else if(e){var n=this.loadZones();t||!this.settings.readOnly||n?this.calendar.setDate((0,s.default)(e,this.valueMomentFormat).toDate(),!1):this.calendar.setDate((0,a.momentDate)(e,this.valueFormat,this.timezone).toDate(),!1)}else this.calendar.clear(!1)}},{key:"getValueAsString",value:function(e,t){var n=t||this.dateFormat,r=this.calendar?this.valueFormat:this.settings.dateFormat;return"text"===this.settings.saveAs&&this.componentInstance.parent&&!this.settings.readOnly?(0,s.default)(e,(0,a.convertFormatToMoment)(r)).format((0,a.convertFormatToMoment)(r)):(0,a.formatDate)(e,n,this.timezone,(0,a.convertFormatToMoment)(r))}},{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 t,n,r,o,i;return!e||!(null===(t=this.calendar)||void 0===t||null===(n=t.config)||void 0===n||null===(r=n.appendTo)||void 0===r||!r.contains(e))||(null===(o=this.calendar)||void 0===o||null===(i=o.calendarContainer)||void 0===i?void 0:i.contains(e))}},{key:"initFlatpickr",value:function(e){var t=this,n=this._input.value;if(this.calendar=new e(this._input,f(f({},this.settings),{},{disableMobile:!0})),n&&(this.isValueISO8601(n)?this.calendar.setDate((0,s.default)(n).toDate(),!1,this.settings.altFormat):this.calendar.setDate((0,s.default)(n,(0,a.convertFormatToMoment)(this.dateFormat)).toDate(),!1,this.settings.altFormat)),this.calendar.altInput.addEventListener("input",(function(e){t.settings.allowInput&&t.settings.currentValue!==e.target.value&&(t.settings.manualInputValue=e.target.value,t.settings.isManuallyOverriddenValue=!0,t.settings.currentValue=e.target.value),""===e.target.value&&t.calendar.selectedDates.length>0?(t.settings.wasDefaultValueChanged=!0,t.settings.defaultValue=e.target.value,t.calendar.clear()):t.settings.wasDefaultValueChanged=!1})),this.settings.readOnly||this.setInputMask(this.calendar._input,(0,a.convertFormatToMask)(this.settings.format)),P){var r=this.calendar._handlers.find((function(e){var n=e.event,r=e.element;return"blur"===n&&r===t.calendar._input}));this.calendar._input.removeEventListener("blur",r.handler),this.addEventListener(this.calendar._input,"blur",(function(e){var n=t.settings.shadowRoot?t.settings.shadowRoot.activeElement:document.activeElement,r=e.relatedTarget?e.relatedTarget:n;e.target===t.calendar._input&&!t.isCalendarElement(r)&&t.calendar.setDate(t.calendar._input.value,!0,e.target===t.calendar.altInput?t.calendar.config.altFormat:t.calendar.config.dateFormat)}))}this.addEventListener(this.calendar._input,"blur",(function(e){var n=t.settings.shadowRoot?t.settings.shadowRoot.activeElement:document.activeElement,r=e.relatedTarget?e.relatedTarget:n;if(P&&!r||t.isCalendarElement(r)){if(!t.calendar.input.value&&t.calendar.config.noCalendar){var o,i,l,u,c=(0,s.default)({hour:null===(o=t.calendar)||void 0===o||null===(i=o.config)||void 0===i?void 0:i.defaultHour,minute:null===(l=t.calendar)||void 0===l||null===(u=l.config)||void 0===u?void 0:u.defaultMinute}).toDate();t.calendar.setDate(c,!0,t.settings.format)}}else{var f=t.calendar.input.value,d=f&&t.settings.enableTime?(0,s.default)(t.calendar.input.value,(0,a.convertFormatToMoment)(t.valueFormat)).toDate():f;t.calendar.setDate(d,!0,t.settings.altFormat)}})),this.addEventListener(this.calendar.altInput,"keydown",(function(e){13===e.keyCode&&t.calendar.isOpen&&(t.calendar.close(),e.stopPropagation())}))}},{key:"initShortcutButtonsPlugin",value:function(e){var t=this;this.settings.plugins=[e({button:this.component.shortcutButtons.map((function(e){return{label:e.label,attributes:e.attribute}})),onClick:function(e){var n=t.component.shortcutButtons[e].onClick,r=t.evaluate(n,{date:new Date},"date");t.calendar.setDate(r,!0)}})]}},{key:"getFlatpickrFormatDate",value:function(e){var t=this;return function(n,r){if(t.settings.readOnly&&r===t.settings.altFormat){if(!t.settings.enableTime||t.loadZones())return e.formatDate(n,r);if(new Date(t.getValue()).toString()===n.toString()){var o=t.componentInstance.dataValue;return Array.isArray(o)&&(o=o[t.valueIndex]),(0,a.formatOffset)(e.formatDate.bind(e),new Date(o),r,t.timezone)}return(0,a.formatOffset)(e.formatDate.bind(e),n,r,t.timezone)}return e.formatDate(n,r)}}},{key:"destroy",value:function(){m(g(h.prototype),"destroy",this).call(this),this.calendar&&this.calendar.destroy()}}])&&d(t.prototype,n),r&&d(t,r),h}(i.default);t.default=C},581:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n(41539),n(12419),n(82526),n(41817),n(32165),n(66992),n(78783),n(33948),Object.defineProperty(t,"__esMo
2dule",{value:!0}),t.default=void 0,n(30489);var o=s(n(96486)),i=s(n(34558)),a=s(n(91459));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(p,e);var t,n,r,i,s,d=(i=p,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(i);if(s){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(e,t,n,r){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(i=d.call(this,e)).valueIndex=r||0,i.componentInstance=n,i.namespace="formio.widget",i.component=t||{},i.settings=o.default.merge({},i.defaultSettings,e||{}),i}return t=p,r=[{key:"defaultSettings",get:function(){return{type:"input"}}}],(n=[{key:"attach",value:function(e){return this._input=e,a.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}}])&&l(t.prototype,n),r&&l(t,r),p}(i.default);t.default=d},22457:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(581)),o=i(n(27660));function i(e){return e&&e.__esModule?e:{default:e}}var a={input:r.default,calendar:o.default};t.default=a},67228:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.default=e.exports,e.exports.__esModule=!0},22858:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},81506:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},34575:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},93913:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e},e.exports.default=e.exports,e.exports.__esModule=!0},59713:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},29754:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},2205:function(e,t,n){var r=n(99489);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},13884:function(e){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}},e.exports.default=e.exports,e.exports.__esModule=!0},80521:function(e){e.exports=function(){throw new TypeError("Invalid attempt to de
2structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},78585:function(e,t,n){var r=n(50008).default,o=n(81506);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t},e.exports.default=e.exports,e.exports.__esModule=!0},99489:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,t(n,r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},63038:function(e,t,n){var r=n(22858),o=n(13884),i=n(60379),a=n(80521);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},50008:function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},60379:function(e,t,n){var r=n(67228);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},81575:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(68531);t.default={framework:"bootstrap3",templates:r.default}},68286:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+="<div\n ",e.attrs)n+="\n "+(null==(t=r)?"":t)+'="'+(null==(t=e.attrs[r])?"":t)+'"\n ';return n+"\n>"+(null==(t=e.message)?"":t)+"</div>\n"}},2101:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(68286);t.default={form:r.default}},83787:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="formio builder row formbuilder">\n <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n '+(null==(t=e.sidebar)?"":t)+'\n </div>\n <div class="col-xs-8 col-sm-9 col-md-10 formarea" ref="form">\n '+(null==(t=e.form)?"":t)+"\n </div>\n</div>\n"}},48433:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(83787);t.default={form:r.default}},85539:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="builder-component" ref="dragComponent">\n ',e.disableBuilderActions||(n+='\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==(t=e.iconClass("remove"))?"":t)+'"></i>\n </div>\n <div class="btn btn-xxs btn-default component-settings-button component-settings-button-copy" ref="copyComponent">\n <i class="'+(null==(t=e.iconClass("copy"))?"":t)+'"></i>\n </div>\n <div class="btn btn-xxs btn-default component-settings-button component-settings-button-paste" ref="pasteComponent">\n <i class="'+(null==(t=e.iconClass("save"))?"":t)+'"></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==(t=e.iconClass("wrench"))?"":t)+'"></i>\n </div>\n <div class="btn btn-xxs btn-default component-settings-button component-settings-button-move" ref="moveComponent">\n <i class="'+(null==(t=e.iconClass("move"))?"":t)+'"></i>\n </div>\n <div class="btn btn-xxs btn-default component-settings-button component-settings-button-edit", ref="editComponent">\n <i class="'+(null==(t=e.iconClass("cog"))?"":t)+'"></i>\n </div>\n </div>\n '),n+"\n "+(null==(t=e.html)?"":t)+"\n</div>\n"}},7581:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=n(85539);t.default={form:r.default}},82097:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="builder-components drag-container formio-builder-'+(null==(t=e.type)?"":t)+'" ref="'+(null==(t=e.key)?"":t)+'-container">\n '+(null==(t=e.html)?"":t)+"\n</div>\n"}},2434:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(82097);t.default={form:r.default}},17894:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="row">\n <div class="col col-sm-6">\n <p class="lead">'+(null==(t=e.t(e.componentInfo.title,{_userInput:!0}))?"":t)+" "+(null==(t=e.t("Component"))?"":t)+"</p>\n </div>\n ",e.helplinks&&(n+='\n <div class="col col-sm-6">\n <div class="pull-right" style="margin-right: 20px; margin-top: 10px">\n <a href="'+(null==(t=e.t(e.helplinks+e.componentInfo.documentation))?"":t)+'" target="_blank">\n <i class="'+(null==(t=e.iconClass("new-window"))?"":t)+'"> '+(null==(t=e.t("Help"))?"":t)+"</i>\n </a>\n </div>\n </div>\n"),n+='\n</div>\n<div class="row component-edit-content">\n <div class="col component-edit-tabs ',e.preview?n+="col-sm-6":n+="col-sm-12",n+='">\n <div class="editForm" ref="editForm">\n '+(null==(t=e.editForm)?"":t)+"\n </div>\n ",e.preview||(n+='\n <div style="margin-top: 10px;">\n <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(t=e.t("Save"))?"":t)+'</button>\n <button class="btn btn-default" style="margin-right: 10px;" ref="cancelButton">'+(null==(t=e.t("Cancel"))?"":t)+'</button>\n <button class="btn btn-danger" ref="removeButton">'+(null==(t=e.t("Remove"))?"":t)+"</button>\n </div>
2\n "),n+="\n </div>\n ",e.preview&&(n+='\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==(t=e.t("Preview"))?"":t)+'</h3>\n </div>\n <div class="panel-body">\n <div class="component-preview" ref="preview">\n '+(null==(t=e.preview)?"":t)+"\n </div>\n </div>\n </div>\n ",e.componentInfo.help&&(n+='\n <div class="well formio-settings-help">\n '+(null==(t=e.componentInfo.help)?"":t)+"\n </div>\n "),n+='\n <div style="margin-top: 10px;">\n <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(t=e.t("Save"))?"":t)+'</button>\n <button class="btn btn-default" style="margin-right: 10px;" ref="cancelButton">'+(null==(t=e.t("Cancel"))?"":t)+'</button>\n <button class="btn btn-danger" ref="removeButton">'+(null==(t=e.t("Remove"))?"":t)+"</button>\n </div>\n </div>\n "),n+"\n</div>\n"}},58809:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17894);t.default={form:r.default}},41852:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;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==(t=e.position)?"":t)+'"\n>\n '+(null==(t=e.t("Drag and Drop a form component"))?"":t)+"\n</div>\n"}},59624:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(41852);t.default={form:r.default}},70307:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="builder-sidebar'+(null==(t=e.scrollEnabled?" builder-sidebar_scroll":"")?"":t)+'" ref="sidebar">\n <input class="form-control builder-sidebar_search" type="search" ref="sidebar-search" placeholder="Search field(s)" />\n <div id="'+(null==(t=e.groupId)?"":t)+'" class="panel-group" ref="sidebar-groups">\n ',e.groups.forEach((function(e){n+="\n "+(null==(t=e)?"":t)+"\n "})),n+="\n </div>\n</div>\n"}},92470:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(70307);t.default={form:r.default}},74913:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="panel panel-default form-builder-panel" ref="group-panel-'+(null==(t=e.groupKey)?"":t)+'">\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==(t=e.groupKey)?"":t)+'"\n data-parent="#'+(null==(t=e.groupId)?"":t)+'"\n href="#group-'+(null==(t=e.groupKey)?"":t)+'"\n ref="sidebar-anchor"\n >\n '+(null==(t=e.t(e.group.title,{_userInput:!0}))?"":t)+'\n </button>\n </h5>\n </div>\n <div\n id="group-'+(null==(t=e.groupKey)?"":t)+'"\n class="panel-collapse collapse'+(null==(t=e.group.default?" in":"")?"":t)+'"\n data-parent="#'+(null==(t=e.groupId)?"":t)+'"\n data-default="'+(null==(t=e.group.default)?"":t)+'"\n ref="sidebar-group"\n >\n <div id="group-container-'+(null==(t=e.groupKey)?"":t)+'" class="panel-body no-drop" ref="sidebar-container">\n ',e.group.componentOrder.length||e.subgroups.length?(n+="\n ",e.group.componentOrder.forEach((function(r){n+='\n <span\n data-group="'+(null==(t=e.groupKey)?"":t)+'"\n data-key="'+(null==(t=e.group.components[r].key)?"":t)+'"\n data-type="'+(null==(t=e.group.components[r].schema.type)?"":t)+'"\n class="btn btn-primary btn-xs btn-block formcomponent drag-copy"\n >\n ',e.group.components[r].icon&&(n+='\n <i class="'+(null==(t=e.iconClass(e.group.components[r].icon))?"":t)+'" style="margin-right: 5px;"></i>\n '),n+="\n "+(null==(t=e.t(e.group.components[r].title,{_userInput:!0}))?"":t)+"\n </span>\n "})),n+="\n "+(null==(t=e.subgroups.join(""))?"":t)+"\n "):n+="\n <div>"+(null==(t=e.t("No Matches Found"))?"":t)+"</div>\n ",n+="\n </div>\n </div>\n</div>\n\n"}},64959:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=n(74913);t.default={form:r.default}},86227:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.component.columns.forEach((function(r,o){n+='\n<div class="col\n col-'+(null==(t=r.size)?"":t)+"-"+(null==(t=r.width)?"":t)+"\n col-"+(null==(t=r.size)?"":t)+"-offset-"+(null==(t=r.offset)?"":t)+"\n col-"+(null==(t=r.size)?"":t)+"-push-"+(null==(t=r.push)?"":t)+"\n col-"+(null==(t=r.size)?"":t)+"-pull-"+(null==(t=r.pull)?"":t)+'\n " ref="'+(null==(t=e.columnKey)?"":t)+'">\n '+(null==(t=e.columnComponents[o])?"":t)+"\n</div>\n"})),n+="\n"}},7569:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(86227);t.default={form:r.default}},51382:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"formio-tab-panel-active":"active","formio-tab-link-active":"active","formio-tab-link-container-active":"active"}},70897:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table datagrid-table table-bordered\n '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n "+(null==(t=e.component.condensed?"table-condensed":"")?"":t)+'\n " ',e.component.layoutFixed&&(n+='style="table-layout: fixed;"'),n+=">\n ",e.hasHeader&&(n+="\n <thead>\n <tr>\n ",e.component.reorder&&(n+="<th></th>"),n+="\n ",e.columns.forEach((function(r){n+='\n <th class="'+(null==(t=r.validate&&r.validate.required?"field-required":"")?"":t)+'">\n '+(null==(t=r.hideLabel?"":e.t(r.label||r.title,{_userInput:!0}))?"":t)+"\n ",r.tooltip&&(n+=' <i ref="tooltip" data-title="'+(null==(t=r.tooltip)?"":t)+'" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>'),n+="\n </th>\n "})),n+="\n ",e.hasExtraColumn&&(n+="\n <th>\n ",!e.builder&&e.hasAddButton&&e.hasTopSubmit&&(n+='\n <button class="btn btn-primary formio-button-add-row" ref="'+(null==(t=e.datagridKey)?"":t)+'-addRow">\n <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":t)+"\n </button>\n "),n+="\n </th>\n "),n+="\n </tr>\n </thead>\n "),n+='\n <tbody ref="'+(null==(t=e.datagridKey)?"":t)+'-tbody" data-key="'+(null==(t=e.datagridKey)?"":t)+'">\n ',e.rows.forEach((function(r,o){n+="\n ",e.hasGroups&&e.groups[o]&&(n+='\n <tr ref="'+(null==(t=e.datagridKey)?"":t)+'-group-header" class="datagrid-group-header'+(null==(t=e.hasToggle?" clickable":"")?"":t)+'">\n <td\n ref="'+(null==(t=e.datagridKey)?"":t)+'-group-label"\n colspan="'+(null==(t=e.numColumns)?"":t)+'"\n class="datagrid-group-label">'+(null==(t=e.groups[o].label)?"":t)+"</td>\n </tr>\n "),n+='\n <tr ref="'+(null==(t=e.datagridKey)?"":t)+'-row">\n ',e.component.reorder&&(n+='\n <td class="col-md-1">\n <button type="button" class="formio-drag-button btn btn-default fa fa-bars" data-key="'+(null==(t=e.datagridKey)?"":t)+'"></button>\n </td>\n '),n+="\n ",e.columns.forEach((function(o){n+='\n <td ref="'+(null==(t=e.datagridKey)?"":t)+'">\n '+(null==(t=r[o.key])?"":t)+"\n </td>\n "})),n+="\n ",e.hasExtraColumn&&(n+="\n ",e.hasRemoveButtons&&(n+='\n <td>\n <button type="button" class="btn btn-default formio-button-remove-row" ref="'+(null==(t=e.datagridKey)?"":t)+'-removeRow">\n <i class="'+(null==(t=e.iconClass("remove-circle"))?"":t)+'"></i>\n </button>\n </td>\n '),n+="\n ",e.canAddColumn&&(n+='\n <td ref="'+(null==(t=e.key)?"":t)+'-container" class="col-md-1">\n '+(null==(t=e.placeholder)?"":t)+"\n </td>\n "),n+="\n "),n+="\n </tr>\n "}
2)),n+="\n </tbody>\n ",e.hasAddButton&&e.hasBottomSubmit&&(n+='\n <tfoot>\n <tr>\n <td colspan="'+(null==(t=e.numColumns+1)?"":t)+'">\n <button class="btn btn-primary formio-button-add-row" ref="'+(null==(t=e.datagridKey)?"":t)+'-addRow">\n <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":t)+"\n </button>\n </td>\n </tr>\n </tfoot>\n "),n+="\n</table>\n"}},5118: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 '+(null==(n=component.striped?"table-striped":"")?"":n)+"\n "+(null==(n=component.hover?"table-hover":"")?"":n)+"\n "+(null==(n=component.condensed?"table-condensed":"")?"":n)+'\n ">\n ',hasHeader&&(r+="\n <thead>\n <tr>\n ",columns.forEach((function(e){r+='\n <th class="'+(null==(n=e.validate&&e.validate.required?"field-required":"")?"":n)+'">\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(t){r+='\n <td ref="'+(null==(n=datagridKey)?"":n)+'">\n '+(null==(n=e[t.key])?"":n)+"\n </td>\n "})),r+="\n </tr>\n "})),r+="\n </tbody>\n</table>\n"}},14714:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(70897),o=n(5118);t.default={form:r.default,html:o.default}},97842:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="row">\n ',e.dayFirst&&e.showDay&&(n+='\n <div class="form-group col col-xs-3">\n ',e.component.hideInputLabels||(n+='\n <label for="'+(null==(t=e.component.key)?"":t)+'-day" class="',e.component.fields.day.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Day"))?"":t)+"</label>\n "),n+="\n <div>"+(null==(t=e.day)?"":t)+"</div>\n </div>\n "),n+="\n ",e.showMonth&&(n+='\n <div class="form-group col col-xs-4">\n ',e.component.hideInputLabels||(n+='\n <label for="'+(null==(t=e.component.key)?"":t)+'-month" class="',e.component.fields.month.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Month"))?"":t)+"</label>\n "),n+="\n <div>"+(null==(t=e.month)?"":t)+"</div>\n </div>\n "),n+="\n ",!e.dayFirst&&e.showDay&&(n+='\n <div class="form-group col col-xs-3">\n ',e.component.hideInputLabels||(n+='\n <label for="'+(null==(t=e.component.key)?"":t)+'-day" class="',e.component.fields.day.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Day"))?"":t)+"</label>\n "),n+="\n <div>"+(null==(t=e.day)?"":t)+"</div>\n </div>\n "),n+="\n ",e.showYear&&(n+='\n <div class="form-group col col-xs-5">\n ',e.component.hideInputLabels||(n+='\n <label for="'+(null==(t=e.component.key)?"":t)+'-year" class="',e.component.fields.year.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Year"))?"":t)+"</label>\n "),n+="\n <div>"+(null==(t=e.year)?"":t)+"</div>\n </div>\n "),n+'\n</div>\n<input name="data[day]" type="hidden" class="form-control" lang="en" value="" ref="input">\n'}},11024:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(97842);t.default={form:r.default}},44033:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.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'}},95371:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=n(44033);t.default={form:r.default}},61424:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<ul class="editgrid-listgroup list-group\n '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n "+(null==(t=e.component.condensed?"table-condensed":"")?"":t)+'\n ">\n ',e.header&&(n+='\n <li class="list-group-item list-group-header">\n '+(null==(t=e.header)?"":t)+"\n </li>\n "),n+="\n ",e.rows.forEach((function(r,o){n+='\n <li class="list-group-item" ref="'+(null==(t=e.ref.row)?"":t)+'">\n '+(null==(t=r)?"":t)+"\n ",e.openRows[o]&&!e.readOnly&&(n+='\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="'+(null==(t=e.ref.saveRow)?"":t)+'">'+(null==(t=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":t)+"</button>\n ",e.component.removeRow&&(n+='\n <button class="btn btn-danger" ref="'+(null==(t=e.ref.cancelRow)?"":t)+'">'+(null==(t=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":t)+"</button>\n "),n+="\n </div>\n "),n+='\n <div class="has-error">\n <div class="editgrid-row-error help-block">\n '+(null==(t=e.errors[o])?"":t)+"\n </div>\n </div>\n </li>\n "})),n+="\n ",e.footer&&(n+='\n <li class="list-group-item list-group-footer">\n '+(null==(t=e.footer)?"":t)+"\n </li>\n "),n+="\n</ul>\n",!e.readOnly&&e.hasAddButton&&(n+='\n<button class="btn btn-primary formio-button-add-another" ref="'+(null==(t=e.ref.addRow)?"":t)+'">\n <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.component.addAnother||"Add Another",{_userInput:!0}))?"":t)+"\n</button>\n"),n+="\n"}},47456:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<ul class="editgrid-listgroup list-group\n '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n "+(null==(t=e.component.condensed?"table-sm":"")?"":t)+'\n ">\n ',e.header&&(n+='\n <li class="list-group-item list-group-header">\n '+(null==(t=e.header)?"":t)+"\n </li>\n "),n+="\n ",e.rows.forEach((function(r,o){n+='\n <li class="list-group-item" ref="'+(null==(t=e.ref.row)?"":t)+'">\n '+(null==(t=r)?"":t)+"\n ",e.openRows[o]&&!e.readOnly&&(n+='\n <div class="editgrid-actions">\n <button class="btn btn-primary" ref="'+(null==(t=e.ref.saveRow)?"":t)+'">'+(null==(t=e.t(e.component.saveRow||"Save",{_userInput:!0}))?"":t)+"</button>\n ",e.component.removeRow&&(n+='\n <button class="btn btn-danger" ref="'+(null==(t=e.ref.cancelRow)?"":t)+'">'+(null==(t=e.t(e.component.removeRow||"Cancel",{_userInput:!0}))?"":t)+"</button>\n "),n+="\n </div>\n "),n+='\n <div class="has-error">\n <div class="editgrid-row-error help-block">\n '+(null==(t=e.errors[o])?"":t)+"\n </div>\n </div>\n </li>\n "})),n+="\n ",e.footer&&(n+='\n <li class="list-group-item list-group-footer">\n '+(null==(t=e.footer)?"":t)+"\n </li>\n "),n+="\n</ul>\n"}},43614:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(61424),o=n(47456);t.default={form:r.default,html:o.default}},44787:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+="<p>"+(null==(t=e.t("error"))?"":t)+"</p>\n<ul>\n ",e.errors.forEach((function(r){n+='\n <li\n data-component-key = "'+(null==(t=r.keyOrPath)?"":t)+'"\n aria-label = "'+(null==(t=r.message)?"":t)+". "+(null==(t=e.t("errorsListNavigationMessage"))?"":t)+'"\n ref = "errorRef"\n tabIndex = "0",\n style = "cursor:pointer;"\n ><span>'+(null==(t=r.message)?"":t)+"</span></li>\n "})),n+="\n</ul>\n"}},40079:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=n(44787);t.default={form:r.default}},96735:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="field-wrapper\n '+(null==(t=e.isRightPosition?"field-wrapper--reverse":"")?"":t)+'">\n ',e.label.hidden||(n+='\n <div class="field-label\n '+(null==(t=e.isRightAlign?"field-label--right":"")?"":t)+'"\n style="'+(null==(t=e.labelStyles)?"":t)+'">\n '+(null==(t=e.labelMarkup)?"":t)+"\n </div>\n "),n+="\n\n ",e.label.hidden&&e.label.className&&e.component.validate.required&&(n+='\n <div class="field-label\n '+(null==(t=e.isRightAlign?"field-label--right":"")?"":t)+'"\n style="'+(null==(t=e.labelStyles)?"":t)+'">\n <label class="'+(null==(t=e.label.className)?"":t)+'"></label>\n </div>\n '),n+='\n\n <div class="filed-content" style="'+(null==(t=e.contentStyles)?"":t)+'">\n '+(null==(t=e.element)?"":t)+"\n </div>\n</div>\n\n",e.component.description&&(n+='\n <div class="form-text text-muted">'+(null==(t=e.t(e.component.description,{_userInput:!0}))?"":t)+"</div>\n"),n+"\n"}},63646:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.label.hidden||"bottom"===e.label.labelPosition||(n+="\n "+(null==(t=e.labelMarkup)?"":t)+"\n"),n+="\n\n",e.label.hidden&&e.label.className&&e.component.validate.required&&(n+='\n <label class="'+(null==(t=e.label.className)?"":t)+'"></label>\n'),n+="\n\n"+(null==(t=e.element)?"":t)+"\n",e.label.hidden||"bottom"!==e.label.labelPosition||(n+="\n "+(null==(t=e.labelMarkup)?"":t)+"\n"),n+="\n",e.component.description&&(n+='\n <div class="help-block">'+(null==(t=e.t(e.component.description,{_userInput:!0}))?"":t)+"</div>\n"),n+"\n"}},20798:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(96735),o=n(63646);t.default={align:r.default,form:o.default}},65526:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.self.imageUpload?(n+="\n <div>\n ",e.files.forEach((function(r){n+='\n <div>\n <span>\n <img ref="fileImage" src="" alt="'+(null==(t=r.originalName||r.name)?"":t)+'" style="width:'+(null==(t=e.component.imageSize)?"":t)+'px">\n ',e.disabled||(n+='\n <i class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="removeLink"></i>\n '),n+="\n </span>\n </div>\n "})),n+="\n </div>\n"):(n+='\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||(n+='\n <div class="col-md-1"></div>\n '),n+='\n <div class="col-md-',e.self.hasTypes?n+="7":n+="9",n+='"><strong>'+(null==(t=e.t("File Name"))?"":t)+'</strong></div>\n <div class="col-md-2"><strong>'+(null==(t=e.t("Size"))?"":t)+"</strong></div>\n ",e.self.hasTypes&&(n+='\n <div class="col-md-2"><strong>'+(null==(t=e.t("Type"))?"":t)+"</strong></div>\n "),n+="\n </div>\n </li>\n ",e.files.forEach((function(r){n+='\n <li class="list-group-item">\n <div class="row">\n ',e.disabled||(n+='\n <div class="col-md-1"><i class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="removeLink"></i></div>\n '),n+='\n <div class="col-md-',e.self.hasTypes?n+="7":n+="9",n+='">\n ',e.component.uploadOnly?n+="\n "+(null==(t=r.originalName||r.name)?"":t)+"\n ":n+='\n <a href="'+(null==(t=r.url||"#")?"":t)+'" target="_blank" ref="fileLink">'+(null==(t=r.originalName||r.name)?"":t)+"</a>\n ",n+='\n </div>\n <div class="col-md-2">'+(null==(t=e.fileSize(r.size))?"":t)+"</div>\n ",e.self.hasTypes&&!e.disabled&&(n+='\n <div class="col-md-2">\n <select class="file-type" ref="fileType" >\n ',e.component.fileTypes.map((function(e){n+='\n <option class="test" value="'+(null==(t=e.value)?"":t)+'" ',e.label===r.fileType&&(n+='selected="selected"'),n+=">"+(null==(t=e.label)?"":t)+"</option>\n "})),n+="\n </select>\n </div>\n "),n+="\n ",e.self.hasTypes&&e.disabled&&(n+='\n <div class="col-md-2">
2'+(null==(t=r.fileType)?"":t)+"</div>\n "),n+="\n </div>\n </li>\n "})),n+="\n </ul>\n"),n+="\n",e.disabled||!e.component.multiple&&e.files.length||(n+="\n ",e.self.useWebViewCamera?n+='\n <div class="fileSelector">\n <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(t=e.t("Gallery"))?"":t)+'</button>\n <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(t=e.t("Camera"))?"":t)+"</button>\n </div>\n ":e.self.cameraMode?n+='\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==(t=e.t("Take Picture"))?"":t)+'</button>\n <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(t=e.t("Switch to file upload"))?"":t)+"</button>\n ":(n+='\n <div class="fileSelector" ref="fileDrop" '+(null==(t=e.fileDropHidden?"hidden":"")?"":t)+'>\n <i class="'+(null==(t=e.iconClass("cloud-upload"))?"":t)+'"></i> '+(null==(t=e.t("Drop files to attach,"))?"":t)+"\n ",e.self.imageUpload&&e.component.webcam&&(n+='\n <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(t=e.t("Use Camera,"))?"":t)+"</a>
2\n "),n+="\n "+(null==(t=e.t("or"))?"":t)+' <a href="#" ref="fileBrowse" class="browse">'+(null==(t=e.t("browse"))?"":t)+"</a>\n </div>\n "),n+="\n"),n+="\n",e.statuses.forEach((function(r){n+='\n <div class="file '+(null==(t="error"===e.statuses.status?" has-error":"")?"":t)+'">\n <div class="row">\n <div class="fileName col-form-label col-sm-10">'+(null==(t=r.originalName)?"":t)+' <i class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="fileStatusRemove"></i></div>\n <div class="fileSize col-form-label col-sm-2 text-right">'+(null==(t=e.fileSize(r.size))?"":t)+'</div>\n </div>\n <div class="row">\n <div class="col-sm-12">\n ',"progress"===r.status?n+='\n <div class="progress">\n <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(t=r.progress)?"":t)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(t=r.progress)?"":t)+'%">\n <span class="sr-only">'+(null==(t=r.progress)?"":t)+"% "+(null==(t=e.t("Complete"))?"":t)+"</span>\n </div>\n </div>\n ":"error"===r.status?n+='\n <div class="alert alert-danger bg-'+(null==(t=r.status)?"":t)+'">'+(null==(t=e.t(r.message))?"":t)+"</div>\n ":n+='\n <div class="bg-'+(null==(t=r.status)?"":t)+'">'+(null==(t=e.t(r.message))?"":t)+"</div>\n ",n+="\n </div>\n </div>\n </div>\n"})),n+="\n",e.component.storage&&!e.support.hasWarning||(n+='\n <div class="alert alert-warning">\n ',e.component.storage||(n+="\n <p>"+(null==(t=e.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":t)+"</p>\n "),n+="\n ",e.support.filereader||(n+="\n <p>"+(null==(t=e.t("File API & FileReader API not supported."))?"":t)+"</p>\n "),n+="\n ",e.support.formdata||(n+="\n <p>"+(null==(t=e.t("XHR2's FormData is not supported."))?"":t)+"</p>\n "),n+="\n ",e.support.progress||(n+="\n <p>"+(null==(t=e.t("XHR2's upload progress isn't supported."))?"":t)+"</p>
2\n "),n+="\n </div>\n"),n}},66565:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(65526);t.default={form:r.default}},18320:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<i ref="'+(null==(t=e.ref)?"":t)+'" class="'+(null==(t=e.className)?"":t)+'" style="'+(null==(t=e.styles)?"":t)+'">'+(null==(t=e.content)?"":t)+"</i>\n"}},3429:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18320);t.default={form:r.default}},42260:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if("fa"===e)switch(t){case"save":t="download";break;case"zoom-in":t="search-plus";break;case"zoom-out":t="search-minus";break;case"question-sign":t="question-circle";break;case"remove-circle":t="times-circle-o";break;case"new-window":t="window-restore";break;case"move":t="arrows"}return n?e+" "+e+"-"+t+" "+e+"-spin":e+" "+e+"-"+t}},65441:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(91033),o=n(48433),i=n(7581),a=n(2434),s=n(58809),l=n(59624),u=n(92470),c=n(64959),f=n(7569),d=n(51382),p=n(14714),h=n(11024),m=n(95371),v=n(43614),y=n(20798),b=n(66565),g=n(3429),w=n(42260),k=n(55691),_=n(17875),O=n(35284),x=n(49074),S=n(36786),j=n(85573),P=n(3499),C=n(12477),E=n(96950),A=n(61659),M=n(92882),R=n(80710),T=n(634),D=n(83980),I=n(95722),V=n(45546),L=n(68497),N=n(72065),F=n(48866),B=n(16299),z=n(2101),U=n(40079);t.default={transform:function(e,t){return t&&"class"===e&&this.cssClasses.hasOwnProperty(t.toString())?this.cssClasses[t.toString()]:t},handleBuilderSidebarScroll:function(e){e.scrollResizeObserver&&e.scrollResizeObserver.disconnect(),e.scrollResizeObserver=new r.default((function(){setTimeout((function(){var t=e.refs,n=t.form,r=t.sidebar,o=n&&n.parentNode&&n.parentNode.clientHeight,i=r&&r.clientHeight,a=r&&r.parentNode&&r.parentNode.style;a&&o&&i&&(a.height=Math.max(i+20,o)+"px")}))})),e.scrollResizeObserver.observe(e.refs.form),e.scrollResizeObserver.observe(e.refs.sidebar)},clearBuilderSidebarScroll:function(e){e.scrollResizeObserver&&(e.scrollResizeObserver.disconnect(),e.scrollResizeObserver=null)},defaultIconset:"glyphicon",iconClass:w.default,cssClasses:d.default,builder:o.default,builderComponent:i.default,builderComponents:a.default,builderEditForm:s.default,builderPlaceholder:l.default,builderSidebar:u.default,builderSidebarGroup:c.default,columns:f.default,datagrid:p.default,day:h.default,dialog:m.default,editgrid:v.default,field:y.default,file:b.default,icon:g.default,input:k.default,label:_.default,message:O.default,modaldialog:x.default,modaledit:S.default,multiValueRow:j.default,multiValueTable:P.default,panel:C.default,radio:E.default,resourceAdd:A.default,signature:M.default,survey:R.default,tab:T.default,table:D.default,well:I.default,wizard:V.default,wizardHeader:L.default,wizardHeaderClassic:N.default,wizardHeaderVertical:F.default,wizardNav:B.default,errorsList:U.default,alert:z.default}},25169:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";if(Array.prototype.join,(e.prefix||e.suffix)&&(n+='\n<div class="input-group">\n '),n+="\n ",e.prefix&&(n+='\n <div class="input-group-addon" ref="prefix">\n ',e.prefix instanceof HTMLElement?n+="\n "+(null==(t=e.t(e.prefix.outerHTML,{_userInput:!0}))?"":t)+"\n ":n+="\n "+(null==(t=e.t(e.prefix,{_userInput:!0}))?"":t)+"\n ",n+="\n </div>\n "),n+="\n ",!e.component.editor&&!e.component.wysiwyg){for(var r in n+="\n <"+(null==(t=e.input.type)?"":t)+'\n ref="'+(null==(t=e.input.ref?e.input.ref:"input")?"":t)+'"\n ',e.input.attr)n+="\n "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n ';n+='\n id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n >'+(null==(t=e.input.content)?"":t)+"</"+(null==(t=e.input.type)?"":t)+">\n ",e.hasValueMaskInput&&(n+='\n <input ref="valueMaskInput" />\n '),n+="\n"}return n+="\n",(e.component.editor||e.component.wysiwyg)&&(n+='\n <div ref="input"></div>\n'),n+="\n",e.suffix&&(n+='\n <div class="input-group-addon" ref="suffix">\n ',e.suffix instanceof HTMLElement?n+="\n "+(null==(t=e.t(e.suffix.outerHTML,{_userInput:!0}))?"":t)+"\n ":n+="\n "+(null==(t=e.t(e.suffix,{_userInput:!0}
2))?"":t)+"\n ",n+="\n </div>\n"),n+="\n",(e.prefix||e.suffix)&&(n+="\n </div>\n"),n+="\n",e.component.showCharCount&&(n+='\n<span class="text-muted pull-right" ref="charcount"></span>\n'),n+="\n",e.component.showWordCount&&(n+='\n<span class="text-muted pull-right" ref="wordcount"></span>\n'),n+"\n"}},81944:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div ref="value">',e.value?n+=null==(t=e.value)?"":t:n+="-",n+"</div>\n"}},55691:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25169),o=n(81944);t.default={form:r.default,html:o.default}},83340:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<label\n class="control-label '+(null==(t=e.label.className)?"":t)+'"\n for="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n>\n ',e.label.hidden||(n+="\n "+(null==(t=e.t(e.component.label,{_userInput:!0}))?"":t)+"\n ",e.component.tooltip&&(n+='\n <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n '),n+="\n "),n+"\n</label>\n"}},17875:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(83340);t.default={form:r.default}},68059:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<p class="help-block '+(null==(t=e.level)?"":t)+'">'+(null==(t=e.message)?"":t)+"</p>\n"}},35284:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(68059);t.default={form:r.default}},64375:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;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==(t=e.t("Close"))?"":t)+'\n </button>\n <div ref="inner" class="reset-margins"></div>\n </div>\n</div>\n'}},49074:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(64375);t.default={form:r.default}},90685:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;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==(t=e.iconClass("edit"))?"":t)+'"></i>\n </button>\n <div ref="input" class="modaledit-view-inner reset-margins">'+(null==(t=e.content)?"":t)+"</div>\n</div>\n"}},36786:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(90685);t.default={form:r.default}},1948:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<tr ref="row">\n <td>\n '+(null==(t=e.element)?"":t)+"\n </td>\n ",e.disabled||(n+='\n <td>\n <button type="button" class="btn btn-default" ref="removeRow">\n <i class="'+(null==(t=e.iconClass("remove-circle"))?"":t)+'"></i>\n </button>\n </td>\n '),n+"\n</tr>\n"}},85573:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1948);t.default={form:r.default}},48021:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table table-bordered">\n <tbody>\n '+(null==(t=e.rows)?"":t)+"\n ",e.disabled||(n+='\n <tr>\n <td colspan="2">\n <button class="btn btn-primary formio-button-add-another" ref="addButton"><i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.addAnother,{_userInput:!0}))?"":t)+"</button>\n </td>\n </tr>\n "),n+"\n </tbody>\n</table>\n"}},3499:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=n(48021);t.default={form:r.default}},16094:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="panel panel-'+(null==(t=e.component.theme)?"":t)+'">\n ',(!e.component.hideLabel||e.builder||e.component.collapsible||e.component.tooltip)&&(n+='\n <div class="panel-heading"\n ',e.component.collapsible&&(n+='\n tabindex="0"\n '),n+='\n role="button"\n aria-expanded="'+(null==(t=!e.component.collapsible||!e.collapsed)?"":t)+'"\n aria-controls="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n ref="header"\n >\n <h4 class="mb-0 panel-title">\n ',e.component.collapsible&&(n+='\n <i class="formio-collapse-icon '+(null==(t=e.iconClass(e.collapsed?"plus":"minus"))?"":t)+' text-muted" data-title="Collapse Panel"></i>\n '),n+="\n ",e.component.hideLabel&&!e.builder||(n+="\n "+(null==(t=e.t(e.component.title,{_userInput:!0}))?"":t)+"\n "),n+="\n ",e.component.tooltip&&(n+='\n <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n '),n+="\n </h4>\n </div>\n "),n+="\n ",e.collapsed&&!e.builder||(n+='\n <div class="panel-body" ref="'+(null==(t=e.nestedKey)?"":t)+'" id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'">\n '+(null==(t=e.children)?"":t)+"\n </div>\n "),n+"\n</div>\n"}},12477:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16094);t.default={form:r.default}},22159:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="input-group">\n ',e.values.forEach((function(r){for(var o in n+='\n <div class="'+(null==(t=e.input.attr.type)?"":t)+(null==(t=e.inline?"-inline":"")?"":t)+'" ref="wrapper">\n <label class="control-label form-check-label label-position-'+(null==(t=e.component.optionsLabelPosition)?"":t)+'" for="'+(null==(t=e.instance.root&&e.instance.root.id)?"":t)+"-"+(null==(t=e.id)?"":t)+"-"+(null==(t=e.row)?"":t)+"-"+(null==(t=r.value)?"":t)+'">\n ',"left"!==e.component.optionsLabelPosition&&"top"!==e.component.optionsLabelPosition||(n+="\n <span>"+(null==(t=e.t(r.label,{_userInput:!0}))?"":t)+"</span>\n "),n+="\n <"+(null==(t=e.input.type)?"":t)+'\n ref="input"\n ',e.input.attr)n+="\n "+(null==(t=o)?"":t)+'="'+(null==(t=e.input.attr[o])?"":t)+'"\n ';n+='\n value="'+(null==(t=r.value)?"":t)+'"\n ',(e.value===r.value||"object"==typeof e.value&&e.value.hasOwnProperty(r.value)&&e.value[r.value])&&(n+="\n checked=true\n "),n+="\n ",r.disabled&&(n+="\n disabled=true\n "),n+='\n id="'+(null==(t=e.instance.root&&e.instance.root.id)?"":t)+"-"+(null==(t=e.id)?"":t)+"-"+(null==(t=e.row)?"":t)+"-"+(null==(t=r.value)?"":t)+'"\n >\n ',e.component.optionsLabelPosition&&"right"!==e.component.optionsLabelPosition&&"bottom"!==e.component.optionsLabelPosition||(n+="\n <span>"+(null==(t=e.t(r.label,{_userInput:!0}))?"":t)+"</span>\n "),n+="\n </label>\n </div>\n "})),n+="\n</div>\n"}},31152:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,(n+='<div ref="value">\n ')+"\n "+(null==(t=e.values.filter((function(t){return e.value===t.value||"object"==typeof e.value&&e.value.hasOwnProperty(t.value)&&e.value[t.value]})).map((function(t){return e.t(t.label,{_userInput:!0})})).join(", "))?"":t)+"\n </div>\n"}},96950:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(22159),o=n(31152);t.default={form:r.default,html:o.default}},72264:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<table class="table table-bordered">\n <tbody>\n <tr>\n <td>\n '+(null==(t=e.element)?"":t)+'\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==(t=e.iconClass("plus"))?"":t)+'"></i>\n '+(null==(t=e.t(e.component.addResourceLabel||"Add Resource",{_userInput:!0}))?"":t)+"\n </button>\n </td>\n </tr>\n </tbody>\n</table>\n"}},61659:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=n(72264);t.default={form:r.default}},16866:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+=(null==(t=e.element)?"":t)+'\n<div\n class="signature-pad-body"\n style="width: '+(null==(t=e.component.width)?"":t)+";height: "+(null==(t=e.component.height)?"":t)+';padding:0;margin:0;"\n tabindex="'+(null==(t=e.component.tabindex||0)?"":t)+'"\n ref="padBody"\n>\n\n <a class="btn btn-sm btn-default signature-pad-refresh" ref="refresh">\n <i class="'+(null==(t=e.iconClass("refresh"))?"":t)+'"></i>\n </a>\n <canvas class="signature-pad-canvas" style="display: none;" height="'+(null==(t=e.component.height)?"":t)+'" ref="canvas"></canvas>\n ',e.required&&(n+='\n <span class="form-control-feedback field-required-inline text-danger">\n <i class="'+(null==(t=e.iconClass("asterisk"))?"":t)+'"></i>\n </span>\n '),n+='\n <img style="width: 100%;display: inherit;" ref="signatureImage">\n</div>\n',e.component.footer&&(n+='\n <div class="signature-pad-footer">\n '+(null==(t=e.t(e.component.footer,{_userInput:!0}))?"":t)+"\n </div>\n"),n+"\n"}},96141:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'<img style="width: 100%;" ref="signatureImage">\n'}},92882:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16866),o=n(96141);t.default={form:r.default,html:o.default}},40207:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table table-striped table-bordered">\n <thead>\n <tr>\n <th></th>\n ',e.component.values.forEach((function(r){n+='\n <th style="text-align: center;">\n '+(null==(t=e.t(r.label))?"":t)+"\n ",r.tooltip&&(n+='\n <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>\n '),n+="\n </th>\n "})),n+="\n </tr>\n </thead>\n <tbody>\n ",e.component.questions.forEach((function(r){n+="\n <tr>\n <td>\n "+(null==(t=e.t(r.label))?"":t)+"\n ",r.tooltip&&(n+='\n <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>\n '),n+="\n </td>\n ",e.component.values.forEach((function(o){n+='\n <td style="text-align: center;">\n <input type="radio" name="'+(null==(t=e.self.getInputName(r))?"":t)+'" value="'+(null==(t=o.value)?"":t)+'" id="'+(null==(t=e.key)?"":t)+"-"+(null==(t=r.value)?"":t)+"-"+(null==(t=o.value)?"":t)+'" ref="input">\n </td>\n '})),n+="\n </tr>\n "})),n+="\n </tbody>\n</table>\n"}},55754:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table table-striped table-bordered">\n <tbody>\n ',e.component.questions.forEach((function(r){n+="\n <tr>\n <th>"+(null==(t=e.t(r.label))?"":t)+"</th>\n <td>\n ",e.component.values.forEach((function(o){n+="\n ",e.value&&e.value.hasOwnProperty(r.value)&&e.value[r.value]===o.value&&(n+="\n "+(null==(t=e.t(o.label))?"":t)+"\n "),n+="\n "})),n+="\n </td>\n </tr>\n "})),n+="\n </tbody>\n</table>\n"}},80710:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(40207),o=n(55754);t.default={form:r.default,html:o.default}},87603:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.component.components.forEach((function(r,o){n+='\n <div class="panel panel-default">\n <div class="panel-heading">\n <h4 class="panel-title">'+(null==(t=e.t(r.label,{_userInput:!0}))?"":t)+'</h4>\n </div>\n <div class="panel-body" ref="'+(null==(t=e.tabKey)?"":t)+'">\n '+(null==(t=e.tabComponents[o])?"":t)+"\n </div>\n </div>\n"})),n+="\n"}}
2,17469:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="tab-container'+(null==(t=e.component.verticalLayout?" card-vertical":"")?"":t)+'">\n <ul class="nav nav-tabs'+(null==(t=e.component.verticalLayout?" nav-tabs-vertical":"")?"":t)+'">\n ',e.component.components.forEach((function(r,o){n+='\n <li class="nav-item'+(null==(t=e.currentTab===o?" active":"")?"":t)+'" role="presentation" ref="'+(null==(t=e.tabLikey)?"":t)+'">\n <a class="nav-link'+(null==(t=e.currentTab===o?" active":"")?"":t)+(null==(t=e.component.verticalLayout?" nav-link-vertical":"")?"":t)+'" href="#'+(null==(t=r.key)?"":t)+'" ref="'+(null==(t=e.tabLinkKey)?"":t)+'">'+(null==(t=e.t(r.label,{_userInput:!0}))?"":t)+"</a>\n </li>\n "})),n+='\n </ul>\n <div class="tab-content">\n ',e.component.components.forEach((function(r,o){n+='\n <div role="tabpanel" class="tab-pane'+(null==(t=e.currentTab===o?" active":"")?"":t)+'" ref="'+(null==(t=e.tabKey)?"":t)+'">'+(null==(t=e.tabComponents[o])?"":t)+"</div>\n "})),n+="\n </div>\n</div>\n"}},634:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(87603),o=n(17469);t.default={flat:r.default,form:o.default}},94957:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="table\n '+(null==(t=e.component.striped?"table-striped":"")?"":t)+"\n "+(null==(t=e.component.bordered?"table-bordered":"")?"":t)+"\n "+(null==(t=e.component.hover?"table-hover":"")?"":t)+"\n "+(null==(t=e.component.condensed?"table-condensed":"")?"":t)+'\n ">\n ',e.component.header&&e.component.header.length>0&&(n+="\n <thead>\n <tr>\n ",e.component.header.forEach((function(r){n+="\n <th>"+(null==(t=e.t(r,{_userInput:!0}))?"":t)+"</th>\n "})),n+="\n </tr>\n </thead>
2\n "),n+="\n <tbody>\n ",e.tableComponents.forEach((function(r,o){n+='\n <tr ref="row-'+(null==(t=e.id)?"":t)+'">\n ',r.forEach((function(r,i){n+='\n <td ref="'+(null==(t=e.tableKey)?"":t)+"-"+(null==(t=o)?"":t)+'"',e.cellClassName&&(n+=' class="'+(null==(t=e.cellClassName)?"":t)+'"'),n+=">"+(null==(t=r)?"":t)+"</td>\n "})),n+="\n </tr>\n "})),n+="\n </tbody>\n</table>\n"}},83980:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(94957);t.default={form:r.default}},25378:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="well">\n <div ref="'+(null==(t=e.nestedKey)?"":t)+'">\n '+(null==(t=e.children)?"":t)+"\n </div>\n</div>\n"}},95722:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25378);t.default={form:r.default}},55040:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="text-muted text-center">'+(null==(t=e.t(e.component.title,{_userInput:!0}))?"":t)+"</div>\n"}},24088:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="'+(null==(t=e.className)?"":t)+'">\n <div style="position: relative;">\n ',"wizardHeaderVertical"===e.wizardHeaderType?n+='\n <div class="row">\n <div class="col-sm-12 col-md-2">\n '+(null==(t=e.wizardHeader)?"":t)+'\n </div>\n <div class="wizard-page col-sm-offset-1 col-md-offset-0 col-sm-10" ref="'+(null==(t=e.wizardKey)?"":t)+'">\n '+(null==(t=e.components)?"":t)+'\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==(t=e.wizardNav)?"":t)+"\n </div>\n ":n+=" \n "+(null==(t=e.wizardHeader)?"":t)+'\n <div class="wizard-page" ref="'+(null==(t=e.wizardKey)?"":t)+'">\n '+(null==(t=e.components)?"":t)+"\n </div>\n "+(null==(t=e.wizardNav)?"":t)+"\n ",n+" \n </div>\n</div>"}},45546:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(55040),o=n(24088);t.default={form:o.default,builder:r.default}},38917:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<nav aria-label="navigation" id="'+(null==(t=e.wizardKey)?"":t)+'-header" ref="'+(null==(t=e.wizardKey)?"":t)+'-header">\n <ul class="pagination">\n ',e.panels.forEach((function(r,o){n+='\n <li class="page-item'+(null==(t=e.currentPage===o?" active":"")?"":t)+'" style="">
2\n <span class="page-link" ref="'+(null==(t=e.wizardKey)?"":t)+'-link">\n '+(null==(t=e.t(r.title,{_userInput:!0}))?"":t)+"\n ",r.tooltip&&e.currentPage===o&&(n+='\n <i ref="'+(null==(t=e.wizardKey)?"":t)+'-tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>\n '),n+="\n </span>\n </li>\n "})),n+="\n </ul>\n</nav>\n"}},68497:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(38917);t.default={form:r.default}},18760:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<nav aria-label="navigation" id="'+(null==(t=e.wizardKey)?"":t)+'-header">\n <div class="classic-pagination row" style="border-bottom:0;">\n ',e.panels.forEach((function(r,o){n+='\n <div class="classic-pagination-page col-xs-12 col-sm-6 col-md-3\n '+(null==(t=e.currentPage<o?" disabled":"")?"":t)+"\n "+(null==(t=e.currentPage===o?" active":"")?"":t)+"\n "+(null==(t=e.currentPage>o?" complete":"")?"":t)+'">\n <div class="text-center classic-pagination-title">'+(null==(t=e.t(r.title,{_userInput:!0}))?"":t)+"</div>\n ",e.panels.length>1&&(n+='\n <div class="progress"><div class="progress-bar"></div></div>\n '),n+=' \n <span ref="'+(null==(t=e.wizardKey)?"":t)+'-link" class="classic-pagination-dot"></span>\n </div>\n '})),n+="\n </div>\n</nav>\n"}},72065:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18760);t.default={form:r.default}},34611:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<nav aria-label="navigation" id="'+(null==(t=e.wizardKey)?"":t)+'-header">\n <ul class="pagination">\n ',e.panels.forEach((function(r,o){n+='\n <li class="col-sm-offset-3 col-sm-6 col-md-offset-0 col-md-12 page-item'+(null==(t=e.currentPage===o?" active":"")?"":t)+'" style="cursor: pointer;">
2\n <span class="page-link" ref="'+(null==(t=e.wizardKey)?"":t)+'-link" style="margin: 0px 0px 5px;">\n '+(null==(t=e.t(r.title,{_userInput:!0}))?"":t)+"\n ",r.tooltip&&e.currentPage===o&&(n+='\n <i ref="'+(null==(t=e.wizardKey)?"":t)+'-tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>\n '),n+="\n </span>\n </li>\n "})),n+="\n </ul>\n</nav>\n"}},48866:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(34611);t.default={form:r.default}},81201:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<ul class="list-inline" id="'+(null==(t=e.wizardKey)?"":t)+'-nav">\n ',e.buttons.cancel&&(n+='\n <li class="list-inline-item">\n <button class="btn btn-default btn-wizard-nav-cancel" ref="'+(null==(t=e.wizardKey)?"":t)+'-cancel">'+(null==(t=e.t("cancel"))?"":t)+"</button>\n </li>\n "),n+="\n ",e.buttons.previous&&(n+='\n <li class="list-inline-item">\n <button class="btn btn-primary btn-wizard-nav-previous" ref="'+(null==(t=e.wizardKey)?"":t)+'-previous">'+(null==(t=e.t("previous"))?"":t)+"</button>\n </li>\n "),n+="\n ",e.buttons.next&&(n+='\n <li class="list-inline-item">\n <button class="btn btn-primary btn-wizard-nav-next" ref="'+(null==(t=e.wizardKey)?"":t)+'-next">'+(null==(t=e.t("next"))?"":t)+"</button>\n </li>\n "),n+="\n ",e.buttons.submit&&(n+='\n <li class="list-inline-item">\n <button class="btn btn-primary btn-wizard-nav-submit" ref="'+(null==(t=e.wizardKey)?"":t)+'-submit">'+(null==(t=e.t("submit"))?"":t)+"</button>\n </li>\n "),n+"\n</ul>\n"}},16299:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(81201);t.default={form:r.default}},68531:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(65441);t.default={bootstrap3:r.default}},57062:function(e){var t;window,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/public/assets/scripts/",n(n.s=4)}([function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)},o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return i(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=i;var o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&s(e).forEach((function(t){r[t]=i(e[t],n)})),s(t).forEach((function(o){(function(e,t){try{return t in e&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}catch(e){return!1}})(e,o)||(n.isMergeableObject(t[o])&&e[o]?r[o]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(o,n)(e[o],t[o],n):r[o]=i(t[o],n))})),r}(e,t,n):i(t,n)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var u=l;e.exports=u},function(e,t,n){"use strict";(function(e,r){var o,i=n(3);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(i.a)(o);t.a=a}).call(this,n(5),n(6)(e))},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
2),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t){e.exports=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){function r(e){return(r="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 o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=n(2),a=n(8),s=n(0),l=function(){function e(t,n){var r=n.location,o=void 0===r?0:r,i=n.distance,s=void 0===i?100:i,l=n.threshold,u=void 0===l?.6:l,c=n.maxPatternLength,f=void 0===c?32:c,d=n.caseSensitive,p=void 0!==d&&d,h=n.tokenSeparator,m=void 0===h?/ +/g:h,v=n.findAllMatches,y=void 0!==v&&v,b=n.minMatchCharLength,g=void 0===b?1:b,w=n.id,k=void 0===w?null:w,_=n.keys,O=void 0===_?[]:_,x=n.shouldSort,S=void 0===x||x,j=n.getFn,P=void 0===j?a:j,C=n.sortFn,E=void 0===C?function(e,t){return e.score-t.score}:C,A=n.tokenize,M=void 0!==A&&A,R=n.matchAllTokens,T=void 0!==R&&R,D=n.includeMatches,I=void 0!==D&&D,V=n.includeScore,L=void 0!==V&&V,N=n.verbose,F=void 0!==N&&N;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={location:o,distance:s,threshold:u,maxPatternLength:f,isCaseSensitive:p,tokenSeparator:m,findAllMatches:y,minMatchCharLength:g,id:k,keys:O,includeMatches:I,includeScore:L,shouldSort:S,getFn:P,sortFn:E,verbose:F,tokenize:M,matchAllTokens:T},this.setCollection(t)}var t,n;return t=e,(n=[{key:"setCollection",value:function(e){return this.list=e,e}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{limit:!1};this._log('---------\nSearch pattern: "'.concat(e,'"'));var n=this._prepareSearchers(e),r=n.tokenSearchers,o=n.fullSearcher,i=this._search(r,o),a=i.weights,s=i.results;return this._computeScore(a,s),this.options.shouldSort&&this._sort(s),t.limit&&"number"==typeof t.limit&&(s=s.slice(0,t.limit)),this._format(s)}},{key:"_prepareSearchers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];if(this.options.tokenize)for(var n=e.split(this.options.tokenSeparator),r=0,o=n.length;r<o;r+=1)t.push(new i(n[r],this.options));return{tokenSearchers:t,fullSearcher:new i(e,this.options)}}},{key:"_search",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=this.list,r={},o=[];if("string"==typeof n[0]){for(var i=0,a=n.length;i<a;i+=1)this._analyze({key:"",value:n[i],record:i,index:i},{resultMap:r,results:o,tokenSearchers:e,fullSearcher:t});return{weights:null,results:o}}for(var s={},l=0,u=n.length;l<u;l+=1)for(var c=n[l],f=0,d=this.options.keys.length;f<d;f+=1){var p=this.options.keys[f];if("string"!=typeof p){if(s[p.name]={weight:1-p.weight||1},p.weight<=0||p.weight>1)throw new Error("Key weight has to be > 0 and <= 1");p=p.name}else s[p]={weight:1};this._analyze({key:p,value:this.options.getFn(c,p),record:c,index:l},{resultMap:r,results:o,tokenSearchers:e,fullSearcher:t})}return{weights:s,results:o}}},{key:"_analyze",value:function(e,t){var n=e.key,r=e.arrayIndex,o=void 0===r?-1:r,i=e.value,a=e.record,l=e.index,u=t.tokenSearchers,c=void 0===u?[]:u,f=t.fullSearcher,d=void 0===f?[]:f,p=t.resultMap,h=void 0===p?{}:p,m=t.results,v=void 0===m?[]:m;if(null!=i){var y=!1,b=-1,g=0;if("string"==typeof i){this._log("\nKey: ".concat(""===n?"-":n));var w=d.search(i);if(this._log('Full text: "'.concat(i,'", score: ').concat(w.score)),this.options.tokenize){for(var k=i.split(this.options.tokenSeparator),_=[],O=0;O<c.length;O+=1){var x=c[O];this._log('\nPattern: "'.concat(x.pattern,'"'));for(var S=!1,j=0;j<k.length;j+=1){var P=k[j],C=x.search(P),E={};C.isMatch?(E[P]=C.score,y=!0,S=!0,_.push(C.score)):(E[P]=1,this.options.matchAllTokens||_.push(1)),this._log('Token: "'.concat(P,'", score: ').concat(E[P]))}S&&(g+=1)}b=_[0];for(var A=_.length,M=1;M<A;M+=1)b+=_[M];b/=A,this._log("Token score average:",b)}var R=w.score;b>-1&&(R=(R+b)/2),this._log("Score average:",R);var T=!this.options.tokenize||!this.options.matchAllTokens||g>=c.length;if(this._log("\nCheck Matches: ".concat(T)),(y||w.isMatch)&&T){var D=h[l];D?D.output.push({key:n,arrayIndex:o,value:i,score:R,matchedIndices:w.matchedIndices}):(h[l]={item:a,output:[{key:n,arrayIndex:o,value:i,score:R,matchedIndices:w.matchedIndices}]},v.push(h[l]))}}else if(s(i))for(var I=0,V=i.length;I<V;I+=1)this._analyze({key:n,arrayIndex:I,value:i[I],record:a,index:l},{resultMap:h,results:v,tokenSearchers:c,fullSearcher:d})}}},{key:"_computeScore",value:function(e,t){this._log("\n\nComputing score:\n");for(var n=0,r=t.length;n<r;n+=1){for(var o=t[n].output,i=o.length,a=1,s=1,l=0;l<i;l+=1){var u=e?e[o[l].key].weight:1,c=(1===u?o[l].score:o[l].score||.001)*u;1!==u?s=Math.min(s,c):(o[l].nScore=c,a*=c)}t[n].score=1===s?a:s,this._log(t[n])}}},{key:"_sort",value:function(e){this._log("\n\nSorting...."),e.sort(this.options.sortFn)}},{key:"_format",value:function(e){var t=[];if(this.options.verbose){var n=[];this._log("\n\nOutput:\n\n",JSON.stringify(e,(function(e,t){if("object"===r(t)&&null!==t){if(-1!==n.indexOf(t))return;n.push(t)}return t}))),n=null}var o=[];this.options.includeMatches&&o.push((function(e,t){var n=e.output;t.matches=[];for(var r=0,o=n.length;r<o;r+=1){var i=n[r];if(0!==i.matchedIndices.length){var a={indices:i.matchedIndices,value:i.value};i.key&&(a.key=i.key),i.hasOwnProperty("arrayIndex")&&i.arrayIndex>-1&&(a.arrayIndex=i.arrayIndex),t.matches.push(a)}}})),this.options.includeScore&&o.push((function(e,t){t.score=e.score}));for(var i=0,a=e.length;i<a;i+=1){var s=e[i];if(this.options.id&&(s.item=this.options.getFn(s.item,this.options.id)[0]),o.length){for(var l={item:s.item},u=0,c=o.length;u<c;u+=1)o[u](s,l);t.push(l)}else t.push(s.item)}return t}},{key:"_log",value:function(){var e;
2this.options.verbose&&(e=console).log.apply(e,arguments)}}])&&o(t.prototype,n),e}();e.exports=l},function(e,t,n){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=n(3),i=n(4),a=n(7),s=function(){function e(t,n){var r=n.location,o=void 0===r?0:r,i=n.distance,s=void 0===i?100:i,l=n.threshold,u=void 0===l?.6:l,c=n.maxPatternLength,f=void 0===c?32:c,d=n.isCaseSensitive,p=void 0!==d&&d,h=n.tokenSeparator,m=void 0===h?/ +/g:h,v=n.findAllMatches,y=void 0!==v&&v,b=n.minMatchCharLength,g=void 0===b?1:b;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={location:o,distance:s,threshold:u,maxPatternLength:f,isCaseSensitive:p,tokenSeparator:m,findAllMatches:y,minMatchCharLength:g},this.pattern=this.options.isCaseSensitive?t:t.toLowerCase(),this.pattern.length<=f&&(this.patternAlphabet=a(this.pattern))}var t,n;return t=e,(n=[{key:"search",value:function(e){if(this.options.isCaseSensitive||(e=e.toLowerCase()),this.pattern===e)return{isMatch:!0,score:0,matchedIndices:[[0,e.length-1]]};var t=this.options,n=t.maxPatternLength,r=t.tokenSeparator;if(this.pattern.length>n)return o(e,this.pattern,r);var a=this.options,s=a.location,l=a.distance,u=a.threshold,c=a.findAllMatches,f=a.minMatchCharLength;return i(e,this.pattern,this.patternAlphabet,{location:s,distance:l,threshold:u,findAllMatches:c,minMatchCharLength:f})}}])&&r(t.prototype,n),e}();e.exports=s},function(e,t){var n=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;e.exports=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/ +/g,o=new RegExp(t.replace(n,"\\$&").replace(r,"|")),i=e.match(o),a=!!i,s=[];if(a)for(var l=0,u=i.length;l<u;l+=1){var c=i[l];s.push([e.indexOf(c),c.length-1])}return{score:a?.5:1,isMatch:a,matchedIndices:s}}},function(e,t,n){var r=n(5),o=n(6);e.exports=function(e,t,n,i){for(var a=i.location,s=void 0===a?0:a,l=i.distance,u=void 0===l?100:l,c=i.threshold,f=void 0===c?.6:c,d=i.findAllMatches,p=void 0!==d&&d,h=i.minMatchCharLength,m=void 0===h?1:h,v=s,y=e.length,b=f,g=e.indexOf(t,v),w=t.length,k=[],_=0;_<y;_+=1)k[_]=0;if(-1!==g){var O=r(t,{errors:0,currentLocation:g,expectedLocation:v,distance:u});if(b=Math.min(O,b),-1!==(g=e.lastIndexOf(t,v+w))){var x=r(t,{errors:0,currentLocation:g,expectedLocation:v,distance:u});b=Math.min(x,b)}}g=-1;for(var S=[],j=1,P=w+y,C=1<<w-1,E=0;E<w;E+=1){for(var A=0,M=P;A<M;)r(t,{errors:E,currentLocation:v+M,expectedLocation:v,distance:u})<=b?A=M:P=M,M=Math.floor((P-A)/2+A);P=M;var R=Math.max(1,v-M+1),T=p?y:Math.min(v+M,y)+w,D=Array(T+2);D[T+1]=(1<<E)-1;for(var I=T;I>=R;I-=1){var V=I-1,L=n[e.charAt(V)];if(L&&(k[V]=1),D[I]=(D[I+1]<<1|1)&L,0!==E&&(D[I]|=(S[I+1]|S[I])<<1|1|S[I+1]),D[I]&C&&(j=r(t,{errors:E,currentLocation:V,expectedLocation:v,distance:u}))<=b){if(b=j,(g=V)<=v)break;R=Math.max(1,2*v-g)}}if(r(t,{errors:E+1,currentLocation:v,expectedLocation:v,distance:u})>b)break;S=D}return{isMatch:g>=0,score:0===j?.001:j,matchedIndices:o(k,m)}}},function(e,t){e.exports=function(e,t){var n=t.errors,r=void 0===n?0:n,o=t.currentLocation,i=void 0===o?0:o,a=t.expectedLocation,s=void 0===a?0:a,l=t.distance,u=void 0===l?100:l,c=r/e.length,f=Math.abs(s-i);return u?c+f/u:f?1:c}},function(e,t){e.exports=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],r=-1,o=-1,i=0,a=e.length;i<a;i+=1){var s=e[i];s&&-1===r?r=i:s||-1===r||((o=i-1)-r+1>=t&&n.push([r,o]),r=-1)}return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}},function(e,t){e.exports=function(e){for(var t={},n=e.length,r=0;r<n;r+=1)t[e.charAt(r)]=0;for(var o=0;o<n;o+=1)t[e.charAt(o)]|=1<<n-o-1;return t}},function(e,t,n){var r=n(0);e.exports=function(e,t){return function e(t,n,o){if(n){var i=n.indexOf("."),a=n,s=null;-1!==i&&(a=n.slice(0,i),s=n.slice(i+1));var l=t[a];if(null!=l)if(s||"string"!=typeof l&&"number"!=typeof l)if(r(l))for(var u=0,c=l.length;u<c;u+=1)e(l[u],s,o);else s&&e(l,s,o);else o.push(l.toString())}else o.push(t);return o}(e,t,[])}}])},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=n(7)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n.n(r),i=n(0),a=n.n(i),s=n(1),l=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function c(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function f(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(
2). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(f)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,i=t,a=[],l=a,d=!1;function p(){l===a&&(l=a.slice())}function h(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function m(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return p(),l.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,p();var n=l.indexOf(e);l.splice(n,1)}}}function v(e){if(!c(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,i=o(i,e)}finally{d=!1}for(var t=a=l,n=0;n<t.length;n++)(0,t[n])();return e}function y(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,v({type:u.REPLACE})}function b(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[s.a]=function(){return this},e}return v({type:u.INIT}),(r={dispatch:v,subscribe:m,getState:h,replaceReducer:y})[s.a]=b,r}function d(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}var p,h=[],m=[],v=[],y={loading:!1},b=function(e){return Array.from({length:e},(function(){return(0,36,Math.floor(36*Math.random()+0)).toString(36)})).join("")},g=function(e){return Object.prototype.toString.call(e).slice(8,-1)},w=function(e,t){return null!=t&&g(t)===e},k=function(e){return"string"!=typeof e?e:e.replace(/&/g,"&").replace(/>/g,"&rt;").replace(/</g,"<").replace(/"/g,""")},_=(p=document.createElement("div"),function(e){var t=e.trim();p.innerHTML=t;for(var n=p.children[0];p.firstChild;)p.removeChild(p.firstChild);return n}),O=function(e,t){return e.score-t.score},x=function(e){return JSON.parse(JSON.stringify(e))},S=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:u.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:u.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+u.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var l=a[s],u=n[l],c=e[l],f=u(c,t);if(void 0===f){var p=d(l,t);throw new Error(p)}o[l]=f,r=r||f!==c}return r?o:e}}({items:function(e,t){switch(void 0===e&&(e=h),t.type){case"ADD_ITEM":return[].concat(e,[{id:t.id,choiceId:t.choiceId,groupId:t.groupId,value:t.value,label:t.label,active:!0,highlighted:!1,customProperties:t.customProperties,placeholder:t.placeholder||!1,keyCode:null}]).map((function(e){var t=e;return t.highlighted=!1,t}));case"REMOVE_ITEM":return e.map((function(e){var n=e;return n.id===t.id&&(n.active=!1),n}));case"HIGHLIGHT_ITEM":return e.map((function(e){var n=e;return n.id===t.id&&(n.highlighted=t.highlighted),n}));default:return e}},groups:function(e,t){switch(void 0===e&&(e=m),t.type){case"ADD_GROUP":return[].concat(e,[{id:t.id,value:t.value,active:t.active,disabled:t.disabled}]);case"CLEAR_CHOICES":return[];default:return e}},choices:function(e,t){switch(void 0===e&&(e=v),t.type){case"ADD_CHOICE":return[].concat(e,[{id:t.id,elementId:t.elementId,groupId:t.groupId,value:t.value,label:t.label||t.value,disabled:t.disabled||!1,selected:!1,active:!0,score:9999,customProperties:t.customProperties,placeholder:t.placeholder||!1,keyCode:null}]);case"ADD_ITEM":return t.activateOptions?e.map((function(e){var n=e;return n.active=t.active,n}
2)):t.choiceId>-1?e.map((function(e){var n=e;return n.id===parseInt(t.choiceId,10)&&(n.selected=!0),n})):e;case"REMOVE_ITEM":return t.choiceId>-1?e.map((function(e){var n=e;return n.id===parseInt(t.choiceId,10)&&(n.selected=!1),n})):e;case"FILTER_CHOICES":return e.map((function(e){var n=e;return n.active=t.results.some((function(e){var t=e.item,r=e.score;return t.id===n.id&&(n.score=r,!0)})),n}));case"ACTIVATE_CHOICES":return e.map((function(e){var n=e;return n.active=t.active,n}));case"CLEAR_CHOICES":return v;default:return e}},general:function(e,t){return void 0===e&&(e=y),"SET_IS_LOADING"===t.type?{loading:t.isLoading}:e}}),j=function(e,t){var n=e;if("CLEAR_ALL"===t.type)n=void 0;else if("RESET_TO"===t.type)return x(t.state);return S(n,t)};function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var C=function(){function e(){this._store=f(j,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}var t,n,r=e.prototype;return r.subscribe=function(e){this._store.subscribe(e)},r.dispatch=function(e){this._store.dispatch(e)},r.isLoading=function(){return this.state.general.loading},r.getChoiceById=function(e){return this.activeChoices.find((function(t){return t.id===parseInt(e,10)}))},r.getGroupById=function(e){return this.groups.find((function(t){return t.id===e}))},t=e,(n=[{key:"state",get:function(){return this._store.getState()}},{key:"items",get:function(){return this.state.items}},{key:"activeItems",get:function(){return this.items.filter((function(e){return!0===e.active}))}},{key:"highlightedActiveItems",get:function(){return this.items.filter((function(e){return e.active&&e.highlighted}))}},{key:"choices",get:function(){return this.state.choices}},{key:"activeChoices",get:function(){return this.choices.filter((function(e){return!0===e.active}))}},{key:"selectableChoices",get:function(){return this.choices.filter((function(e){return!0!==e.disabled}))}},{key:"searchableChoices",get:function(){return this.selectableChoices.filter((function(e){return!0!==e.placeholder}))}},{key:"placeholderChoice",get:function(){return[].concat(this.choices).reverse().find((function(e){return!0===e.placeholder}))}},{key:"groups",get:function(){return this.state.groups}},{key:"activeGroups",get:function(){var e=this.groups,t=this.choices;return e.filter((function(e){var n=!0===e.active&&!1===e.disabled,r=t.some((function(e){return!0===e.active&&!1===e.disabled}));return n&&r}),[])}}])&&P(t.prototype,n),e}();function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var A=function(){function e(e){var t=e.element,n=e.type,r=e.classNames;this.element=t,this.classNames=r,this.type=n,this.isActive=!1}var t,n,r=e.prototype;return r.getChild=function(e){return this.element.querySelector(e)},r.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},r.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},t=e,(n=[{key:"distanceFromTopWindow",get:function(){return this.element.getBoundingClientRect().bottom}}])&&E(t.prototype,n),e}(),M={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:function(e,t){var n=e.value,r=e.label,o=void 0===r?n:r,i=t.value,a=t.label,s=void 0===a?i:a;return o.localeCompare(s,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},shadowRoot:null,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(e){return'Press Enter to add <b>"'+k(e)+'"</b>'},maxItemText:function(e){return"Only "+e+" values can be added"},valueComparer:function(e,t){return e===t},fuseOptions:{includeScore:!0},callbackOnInit:null,callbackOnCreateTemplates:null,classNames:{containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"}},R="removeItem",T="highlightItem",D="select-one",I=function(){function e(e){var t=e.element,n=e.type,r=e.classNames,o=e.position;this.element=t,this.classNames=r,this.type=n,this.position=o,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}var t=e.prototype;return t.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},t.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},t.shouldFlip=function(e){if("number"!=typeof e)return!1;var t=!1;return"auto"===this.position?t=!window.matchMedia("(min-height: "+(e+1)+"px)").matches:"top"===this.position&&(t=!0),t},t.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},t.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},t.open=function(e){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(e)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},t.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","fal
2se"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},t.focus=function(){this.isFocussed||this.element.focus()},t.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},t.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},t.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===D&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},t.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===D&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},t.wrap=function(e){!function(e,t){void 0===t&&(t=document.createElement("div")),e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t.appendChild(e)}(e,this.element)},t.unwrap=function(e){this.element.parentNode.insertBefore(e,this.element),this.element.parentNode.removeChild(this.element)},t.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},t.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},t._onFocus=function(){this.isFocussed=!0},t._onBlur=function(){this.isFocussed=!1},e}();function V(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var L=function(){function e(e){var t=e.element,n=e.type,r=e.classNames,o=e.preventPaste;this.element=t,this.type=n,this.classNames=r,this.preventPaste=o,this.isFocussed=this.element===document.activeElement,this.isDisabled=t.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}var t,n,r=e.prototype;return r.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},r.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput,{passive:!0}),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus,{passive:!0}),this.element.removeEventListener("blur",this._onBlur,{passive:!0})},r.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},r.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},r.focus=function(){this.isFocussed||this.element.focus()},r.blur=function(){this.isFocussed&&this.element.blur()},r.clear=function(e){return void 0===e&&(e=!0),this.element.value&&(this.element.value=""),e&&this.setWidth(),this},r.setWidth=function(){var e=this.element,t=e.style,n=e.value,r=e.placeholder;t.minWidth=r.length+1+"ch",t.width=n.length+1+"ch"},r.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},r.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},r._onInput=function(){this.type!==D&&this.setWidth()},r._onPaste=function(e){this.preventPaste&&e.preventDefault()},r._onFocus=function(){this.isFocussed=!0},r._onBlur=function(){this.isFocussed=!1},t=e,(n=[{key:"placeholder",set:function(e){this.element.placeholder=e}},{key:"value",get:function(){return k(this.element.value)},set:function(e){this.element.value=e}}])&&V(t.prototype,n),e}(),N=function(){function e(e){var t=e.element;this.element=t,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}var t=e.prototype;return t.clear=function(){this.element.innerHTML=""},t.append=function(e){this.element.appendChild(e)},t.getChild=function(e){return this.element.querySelector(e)},t.hasChildren=function(){return this.element.hasChildNodes()},t.scrollToTop=function(){this.element.scrollTop=0},t.scrollToChildElement=function(e,t){var n=this;if(e){var r=this.element.offsetHeight,o=this.element.scrollTop+r,i=e.offsetHeight,a=e.offsetTop+i,s=t>0?this.element.scrollTop+a-o:e.offsetTop;requestAnimationFrame((function(){n._animateScroll(s,t)}))}},t._scrollDown=function(e,t,n){var r=(n-e)/t,o=r>1?r:1;this.element.scrollTop=e+o},t._scrollUp=function(e,t,n){var r=(e-n)/t,o=r>1?r:1;this.element.scrollTop=e-o},t._animateScroll=function(e,t){var n=this,r=this.element.scrollTop,o=!1;t>0?(this._scrollDown(r,4,e),r<e&&(o=!0)):(this._scrollUp(r,4,e),r>e&&(o=!0)),o&&requestAnimationFrame((function(){n._animateScroll(e,t)}))},e}();function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var B=function(){function e(e){var t=e.element,n=e.classNames;if(this.element=t,this.classNames=n,!(t instanceof HTMLInputElement||t instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}var t,n,r=e.prototype;return r.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var e=this.element.getAttribute("style");e&&this.element.setAttribute("data-choice-orig-style",e),this.element.setAttribute("data-choice","active")},r.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var e=this.element.getAttribute("data-choice-orig-style");e?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",e)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},r.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},r.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},r.triggerEvent=function(e,t){!function(e,t,n){void 0===n&&(n=null);var r=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0});e.dispatchEvent(r)}(this.element,e,t)},t=e,(n=[{key:"isActive",get:function(){return"active"===this.element.dataset.choice}},{key:"dir",get:function(){return this.element.dir}},{key:"value",get:function(){return this.element.value},set:function(e){this.element.value=e}}])&&F(t.prototype,n),e}();function z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var U=function(e){var t,n,r,o;function i(t){var n,r=t.element,o=t.classNames,i=t.delimiter;return(n=e.call(this,{element:r,classNames:o})||this).delimiter=i,n}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r=i,(o=[{key:"value",get:function(){return this.element.value},set:function(e){var t=e.map((function(e){return e.value})).join(this.delimiter);this.element.setAttribute("value",t),this.element.value=t}}])&&z(r.prototype,o),i}(B);function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var q=function(e){var t,n,r,o;function i(t){var n,r=t.element,o=t.classNames,i=t.template;return(n=e.call(this,{element:r,classNames:o})||this).template=i,n}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.prototype.appendDocFragment=function(e){this.element.innerHTML="",this.element.appendChild(e)},r=i,(o=[{key:"placeholderOption",get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")}},{key:"optionGroups",get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))}},{key:"options",get:function(){return Array.from(this.element.options)},set:function(e){var t=this,n=document.createDocumentFragment();e.forEach((function(e){return r=e,o=t.template(r),void n.appendChild(o);var r,o})),this.appendDocFragment(n)}}])&&H(r.prototype,o),i}(B),W={containerOuter:function(e,t,n,r,o,i){var a=e.containerOuter,s=Object.assign(document.createElement("div"),{className:a});return s.dataset.type=i,t&&(s.dir=t),r&&(s.tabIndex=0),n&&(s.setAttribute("role",o?"combobox":"listbox"),o&&s.setAttribute("aria-autocomplete","list")),s.setAttribute("aria-haspopup","true"),s.setAttribute("aria-expanded","fal
2se"),s},containerInner:function(e){var t=e.containerInner;return Object.assign(document.createElement("div"),{className:t})},itemList:function(e,t){var n=e.list,r=e.listSingle,o=e.listItems;return Object.assign(document.createElement("div"),{className:n+" "+(t?r:o)})},placeholder:function(e,t){var n=e.placeholder;return Object.assign(document.createElement("div"),{className:n,innerHTML:t})},item:function(e,t,n){var r=e.item,o=e.button,i=e.highlightedState,a=e.itemSelectable,s=e.placeholder,l=t.id,u=t.value,c=t.label,f=t.customProperties,d=t.active,p=t.disabled,h=t.highlighted,m=t.placeholder,v=Object.assign(document.createElement("div"),{className:r,innerHTML:c});if(Object.assign(v.dataset,{item:"",id:l,value:u,customProperties:f}),d&&v.setAttribute("aria-selected","true"),p&&v.setAttribute("aria-disabled","true"),m&&v.classList.add(s),v.classList.add(h?i:a),n){p&&v.classList.remove(a),v.dataset.deletable="";var y=Object.assign(document.createElement("button"),{type:"button",className:o,innerHTML:"Remove item"});y.setAttribute("aria-label","Remove item: '"+u+"'"),y.dataset.button="",v.appendChild(y)}return v},choiceList:function(e,t){var n=e.list,r=Object.assign(document.createElement("div"),{className:n});return t||r.setAttribute("aria-multiselectable","true"),r.setAttribute("role","listbox"),r},choiceGroup:function(e,t){var n=e.group,r=e.groupHeading,o=e.itemDisabled,i=t.id,a=t.value,s=t.disabled,l=Object.assign(document.createElement("div"),{className:n+" "+(s?o:"")});return l.setAttribute("role","group"),Object.assign(l.dataset,{group:"",id:i,value:a}),s&&l.setAttribute("aria-disabled","true"),l.appendChild(Object.assign(document.createElement("div"),{className:r,innerHTML:a})),l},choice:function(e,t,n){var r=e.item,o=e.itemChoice,i=e.itemSelectable,a=e.selectedState,s=e.itemDisabled,l=e.placeholder,u=t.id,c=t.value,f=t.label,d=t.groupId,p=t.elementId,h=t.disabled,m=t.selected,v=t.placeholder,y=Object.assign(document.createElement("div"),{id:p,innerHTML:f,className:r+" "+o});return m&&y.classList.add(a),v&&y.classList.add(l),y.setAttribute("role",d>0?"treeitem":"option"),Object.assign(y.dataset,{choice:"",id:u,value:c,selectText:n}),h?(y.classList.add(s),y.dataset.choiceDisabled="",y.setAttribute("aria-disabled","true")):(y.classList.add(i),y.dataset.choiceSelectable=""),y},input:function(e,t){var n=e.input,r=e.inputCloned,o=Object.assign(document.createElement("input"),{type:"text",className:n+" "+r,autocomplete:"off",autocapitalize:"off",spellcheck:!1});return o.setAttribute("role","textbox"),o.setAttribute("aria-autocomplete","list"),o.setAttribute("aria-label",t),o},dropdown:function(e){var t=e.list,n=e.listDropdown,r=document.createElement("div");return r.classList.add(t,n),r.setAttribute("aria-expanded","false"),r},notice:function(e,t,n){var r=e.item,o=e.itemChoice,i=e.noResults,a=e.noChoices;void 0===n&&(n="");var s=[r,o];return"no-choices"===n?s.push(a):"no-results"===n&&s.push(i),Object.assign(document.createElement("div"),{innerHTML:t,className:s.join(" ")})},option:function(e){var t=e.label,n=e.value,r=e.customProperties,o=e.active,i=e.disabled,a=new Option(t,n,!1,o);return r&&(a.dataset.customProperties=r),a.disabled=i,a}},K=function(e){return void 0===e&&(e=!0),{type:"ACTIVATE_CHOICES",active:e}},Y=function(e,t){return{type:"HIGHLIGHT_ITEM",id:e,highlighted:t}},G=function(e){return{type:"ADD_GROUP",value:e.value,id:e.id,active:e.active,disabled:e.disabled}},$=function(e){return{type:"SET_IS_LOADING",isLoading:e}};function J(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Z="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,X={},Q=function(){var e,t;function n(e,t){var r=this;void 0===e&&(e="[data-choice]"),void 0===t&&(t={}),this.config=a.a.all([M,n.defaults.options,t],{arrayMerge:function(e,t){return[].concat(t)}}),t.shadowRoot&&(this.config.shadowRoot=t.shadowRoot);var o,i,s,l,u=(o=this.config,i=M,s=Object.keys(o).sort(),l=Object.keys(i).sort(),s.filter((function(e){return l.indexOf(e)<0})));u.length&&console.warn("Unknown config option(s) passed",u.join(", "));var c="string"==typeof e?document.querySelector(e):e;if(!(c instanceof HTMLInputElement||c instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");if(this._isTextElement="text"===c.type,this._isSelectOneElement=c.type===D,this._isSelectMultipleElement="select-multiple"===c.type,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes(this.config.render
2SelectedChoices)||(this.config.renderSelectedChoices="auto"),t.addItemFilter&&"function"!=typeof t.addItemFilter){var f=t.addItemFilter instanceof RegExp?t.addItemFilter:new RegExp(t.addItemFilter);this.config.addItemFilter=f.test.bind(f)}if(this._isTextElement?this.passedElement=new U({element:c,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new q({element:c,classNames:this.config.classNames,template:function(e){return r._templates.option(e)}}),this.initialised=!1,this._store=new C,this._initialState={},this._currentState={},this._prevState={},this._currentValue="",this._canSearch=this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=function(e,t){return"choices--"+(e.id||e.name&&e.name+"-"+b(2)||b(4)).replace(/(:|\.|\[|\]|,)/g,"")}(this.passedElement.element),this._direction=this.passedElement.dir,!this._direction){var d=window.getComputedStyle(this.passedElement.element).direction;d!==window.getComputedStyle(document.documentElement).direction&&(this._direction=d)}if(this._idNames={itemChoice:"item-choice"},this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options,this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&(this._presetItems=this._presetItems.concat(this.passedElement.value.split(this.config.delimiter))),this.passedElement.options&&this.passedElement.options.forEach((function(e){r._presetChoices.push({value:e.value,label:e.innerHTML,selected:e.selected,disabled:e.disabled||e.parentNode.disabled,placeholder:""===e.value||e.hasAttribute("placeholder"),customProperties:e.getAttribute("data-custom-properties")})})),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onAKey=this._onAKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive)return this.config.silent||console.warn("Trying to initialise Choices on element already initialised"),void(this.initialised=!0);this.init()}e=n,t=[{key:"defaults",get:function(){return Object.preventExtensions({get options(){return X},get templates(){return W}})}}],null&&J(e.prototype,null),t&&J(e,t);var r=n.prototype;return r.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._initialState=x(this._store.state),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialised=!0;var e=this.config.callbackOnInit;e&&"function"==typeof e&&e.call(this)}},r.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=null,this.initialised=!1)},r.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},r.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},r.highlightItem=function(e,t){if(void 0===t&&(t=!0),!e)return this;var n=e.id,r=e.groupId,o=void 0===r?-1:r,i=e.value,a=void 0===i?"":i,s=e.label,l=void 0===s?"":s,u=o>=0?this._store.getGroupById(o):null;return this._store.dispatch(Y(n,!0)),t&&this.passedElement.triggerEvent(T,{id:n,value:a,label:l,groupValue:u&&u.value?u.value:null}),this},r.unhighlightItem=function(e){if(!e)return this;var t=e.id,n=e.groupId,r=void 0===n?-1:n,o=e.value,i=void 0===o?"":o,a=e.label,s=void 0===a?"":a,l=r>=0?this._store.getGroupById(r):null;return this._store.dispatch(Y(t,!1)),this.passedElement.triggerEvent(T,{id:t,value:i,label:s,groupValue:l&&l.value?l.value:null}),this},r.highlightAll=function(){var e=this;
2return this._store.items.forEach((function(t){return e.highlightItem(t)})),this},r.unhighlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.unhighlightItem(t)})),this},r.removeActiveItemsByValue=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.value===e})).forEach((function(e){return t._removeItem(e)})),this},r.removeActiveItems=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.id!==e})).forEach((function(e){return t._removeItem(e)})),this},r.removeHighlightedItems=function(e){var t=this;return void 0===e&&(e=!1),this._store.highlightedActiveItems.forEach((function(n){t._removeItem(n),e&&t._triggerChange(n.value)})),this},r.showDropdown=function(e){var t=this;return this.dropdown.isActive||requestAnimationFrame((function(){t.dropdown.show(),t.containerOuter.open(t.dropdown.distanceFromTopWindow),!e&&t._canSearch&&t.input.focus(),t.passedElement.triggerEvent("showDropdown",{})})),this},r.hideDropdown=function(e){var t=this;return this.dropdown.isActive?(requestAnimationFrame((function(){t.dropdown.hide(),t.containerOuter.close(),!e&&t._canSearch&&(t.input.removeActiveDescendant(),t.input.blur()),t.passedElement.triggerEvent("hideDropdown",{})})),this):this},r.getValue=function(e){void 0===e&&(e=!1);var t=this._store.activeItems.reduce((function(t,n){var r=e?n.value:n;return t.push(r),t}),[]);return this._isSelectOneElement?t[0]:t},r.setValue=function(e){var t=this;return this.initialised?(e.forEach((function(e){return t._setChoiceOrItem(e)})),this):this},r.setChoiceByValue=function(e){var t=this;return!this.initialised||this._isTextElement||(Array.isArray(e)?e:[e]).forEach((function(e){return t._findAndSelectChoiceByValue(e)})),this},r.setChoices=function(e,t,n,r){var o=this;if(void 0===e&&(e=[]),void 0===t&&(t="value"),void 0===n&&(n="label"),void 0===r&&(r=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if("string"!=typeof t||!t)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(r&&this.clearChoices(),"function"==typeof e){var i=e(this);if("function"==typeof Promise&&i instanceof Promise)return new Promise((function(e){return requestAnimationFrame(e)})).then((function(){return o._handleLoadingState(!0)})).then((function(){return i})).then((function(e){return o.setChoices(e,t,n,r)})).catch((function(e){o.config.silent||console.error(e)})).then((function(){return o._handleLoadingState(!1)})).then((function(){return o}));if(!Array.isArray(i))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: "+typeof i);return this.setChoices(i,t,n,!1)}if(!Array.isArray(e))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),e.forEach((function(e){e.choices?o._addGroup({id:parseInt(e.id,10)||null,group:e,valueKey:t,labelKey:n}):o._addChoice({value:e[t],label:e[n],isSelected:e.selected,isDisabled:e.disabled,customProperties:e.customProperties,placeholder:e.placeholder})})),this._stopLoading(),this},r.clearChoices=function(){return this._store.dispatch({type:"CLEAR_CHOICES"}),this},r.clearStore=function(){return this._store.dispatch({type:"CLEAR_ALL"}),this},r.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch(K(!0))),this},r._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var e=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,t=this._isSelectElement,n=this._currentState.items!==this._prevState.items;e&&(t&&this._renderChoices(),n&&this._renderItems(),this._prevState=this._currentState)}}
2,r._renderChoices=function(){var e=this,t=this._store,n=t.activeGroups,r=t.activeChoices,o=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return e.choiceList.scrollToTop()})),n.length>=1&&!this._isSearching){var i=r.filter((function(e){return!0===e.placeholder&&-1===e.groupId}));i.length>=1&&(o=this._createChoicesFragment(i,o)),o=this._createGroupsFragment(n,r,o)}else r.length>=1&&(o=this._createChoicesFragment(r,o));if(o.childNodes&&o.childNodes.length>0){var a=this._store.activeItems,s=this._canAddItem(a,this.input.value);s.response?(this.choiceList.append(o),this._highlightChoice()):this.choiceList.append(this._getTemplate("notice",s.notice))}else{var l,u;this._isSearching?(u="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,l=this._getTemplate("notice",u,"no-results")):(u="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,l=this._getTemplate("notice",u,"no-choices")),this.choiceList.append(l)}},r._renderItems=function(){var e=this._store.activeItems||[];this.itemList.clear();var t=this._createItemsFragment(e);t.childNodes&&this.itemList.append(t)},r._createGroupsFragment=function(e,t,n){var r=this;return void 0===n&&(n=document.createDocumentFragment()),this.config.shouldSort&&e.sort(this.config.sorter),e.forEach((function(e){var o=function(e){return t.filter((function(t){return r._isSelectOneElement?t.groupId===e.id:t.groupId===e.id&&("always"===r.config.renderSelectedChoices||!t.selected)}))}(e);if(o.length>=1){var i=r._getTemplate("choiceGroup",e);n.appendChild(i),r._createChoicesFragment(o,n,!0)}})),n},r._createChoicesFragment=function(e,t,n){var r=this;void 0===t&&(t=document.createDocumentFragment()),void 0===n&&(n=!1);var o=this.config,i=o.renderSelectedChoices,a=o.searchResultLimit,s=o.renderChoiceLimit,l=this._isSearching?O:this.config.sorter,u=function(e){if("auto"!==i||r._isSelectOneElement||!e.selected){var n=r._getTemplate("choice",e,r.config.itemSelectText);t.appendChild(n)}},c=e;"auto"!==i||this._isSelectOneElement||(c=e.filter((function(e){return!e.selected})));var f=c.reduce((function(e,t){return t.placeholder?e.placeholderChoices.push(t):e.normalChoices.push(t),e}),{placeholderChoices:[],normalChoices:[]}),d=f.placeholderChoices,p=f.normalChoices;(this.config.shouldSort||this._isSearching)&&p.sort(l);var h=c.length,m=this._isSelectOneElement?[].concat(d,p):p;this._isSearching?h=a:s&&s>0&&!n&&(h=s);for(var v=0;v<h;v+=1)m[v]&&u(m[v]);return t},r._createItemsFragment=function(e,t){var n=this;void 0===t&&(t=document.createDocumentFragment());var r=this.config,o=r.shouldSortItems,i=r.sorter,a=r.removeItemButton;return o&&!this._isSelectOneElement&&e.sort(i),this._isTextElement?this.passedElement.value=e:this.passedElement.options=e,e.forEach((function(e){var r=n._getTemplate("item",e,a);t.appendChild(r)})),t},r._triggerChange=function(e){null!=e&&this.passedElement.triggerEvent("change",{value:e})},r._selectPlaceholderChoice=function(){var e=this._store.placeholderChoice;e&&(this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,placeholder:e.placeholder}),this._triggerChange(e.value))},r._handleButtonAction=function(e,t){if(e&&t&&this.config.removeItems&&this.config.removeItemButton){var n=t.parentNode.getAttribute("data-id"),r=e.find((function(e){return e.id===parseInt(n,10)}));this._removeItem(r),this._triggerChange(r.value),this._isSelectOneElement&&this._selectPlaceholderChoice()}},r._handleItemAction=function(e,t,n){var r=this;if(void 0===n&&(n=!1),e&&t&&this.config.removeItems&&!this._isSelectOneElement){var o=t.getAttribute("data-id");e.forEach((function(e){e.id!==parseInt(o,10)||e.highlighted?!n&&e.highlighted&&r.unhighlightItem(e):r.highlightItem(e)})),this.input.focus()}},r._handleChoiceAction=function(e,t){if(e&&t){var n=t.dataset.id,r=this._store.getChoiceById(n);if(r){var o=e[0]&&e[0].keyCode?e[0].keyCode:null,i=this.dropdown.isActive;r.keyCode=o,this.passedElement.triggerEvent("choice",{choice:r}),r.selected||r.disabled||this._canAddItem(e,r.value).response&&(this._addItem({value:r.value,label:r.label,choiceId:r.id,groupId:r.groupId,customProperties:r.customProperties,placeholder:r.placeholder,ke
2yCode:r.keyCode}),this._triggerChange(r.value)),this.clearInput(),i&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},r._handleBackspace=function(e){if(this.config.removeItems&&e){var t=e[e.length-1],n=e.some((function(e){return e.highlighted}));this.config.editItems&&!n&&t?(this.input.value=t.value,this.input.setWidth(),this._removeItem(t),this._triggerChange(t.value)):(n||this.highlightItem(t,!1),this.removeHighlightedItems(!0))}},r._startLoading=function(){this._store.dispatch($(!0))},r._stopLoading=function(){this._store.dispatch($(!1))},r._handleLoadingState=function(e){void 0===e&&(e=!0);var t=this.itemList.getChild("."+this.config.classNames.placeholder);e?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?t?t.innerHTML=this.config.loadingText:(t=this._getTemplate("placeholder",this.config.loadingText),this.itemList.append(t)):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?t.innerHTML=this._placeholderValue||"":this.input.placeholder=this._placeholderValue||"")},r._handleSearch=function(e){if(e&&this.input.isFocussed){var t=this._store.choices,n=this.config,r=n.searchFloor,o=n.searchChoices,i=t.some((function(e){return!e.active}));if(e&&e.length>=r){var a=o?this._searchChoices(e):0;this.passedElement.triggerEvent("search",{value:e,resultCount:a})}else i&&(this._isSearching=!1,this._store.dispatch(K(!0)))}},r._canAddItem=function(e,t){var n=!0,r="function"==typeof this.config.addItemText?this.config.addItemText(t):this.config.addItemText;if(!this._isSelectOneElement){var o=function(e,t,n){return void 0===n&&(n="value"),e.some((function(e){return"string"==typeof t?e[n]===t.trim():e[n]===t}))}(e,t);this.config.maxItemCount>0&&this.config.maxItemCount<=e.length&&(n=!1,r="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&o&&n&&(n=!1,r="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(t):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&n&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(t)&&(n=!1,r="function"==typeof this.config.customAddItemText?this.config.customAddItemText(t):this.config.customAddItemText)}return{response:n,notice:r}},r._searchChoices=function(e){var t="string"==typeof e?e.trim():e,n="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(t.length<1&&t===n+" ")return 0;var r=this._store.searchableChoices,i=t,a=[].concat(this.config.searchFields),s=Object.assign(this.config.fuseOptions,{keys:a}),l=new o.a(r,s).search(i);return this._currentValue=t,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch(function(e){return{type:"FILTER_CHOICES",results:e}}(l)),l.length},r._addEventListeners=function(){var e=this.config.shadowRoot||document.documentElement;e.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("click",this._onClick,{passive:!0}),e.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},r._removeEventListeners=function(){var e=this.config.shadowRoot||document.documentElement;e.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("click",this._onClick),e.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},r._onKeyDown=function(e){var t,n=e.target,r=e.keyCode,o=e.ctrlKey,i=e.metaKey,a=this._store.activeItems,s=this.input.isFocussed,l=this.dropdown.isActive,u=this.itemList.hasChildren(),c=String.fromCharCode(r),f=o||i;!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(c)&&this.showDropdown();var d=((t={})[65]=this._onAKey,t[13]=this._onEnterKey,t[27]=this._onEscapeKey,t[38]=this._onDirectionKey,t[33]=this._onDirectionKey,t[40]=this._onDirectionKey,t[34]=this._onDirectionKey,t[8]=this._onDeleteKey,t[46]=this._onDeleteKey,t);d[r]&&d[r]({event:e,target:n,keyCode:r,metaKey:i,activeItems:a,hasFocusedInput:s,hasActiveDropdown:l,hasItems:u,hasCtrlDownKeyPressed:f})},r._onKeyUp=function(e){var t=e.target,n=e.keyCode,r=this.input.value,o=this._store.activeItems,i=this._canAddItem(o,r);if(this._isTextElement)if(i.notice&&r){var a=this._getTemplate("notice",i.notice);this.dropdown.element.innerHTML=a.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var s=(46===n||8===n)&&!t.value,l=!this._isTextElement&&this._isSearching,u=this._canSearch&&i.response;s&&l?(this._isSearching=!1,this._store.dispatch(K(!0))):u&&this._handleSearch(this.input.value)}this._canSearch=this.config.searchEnabled},r._onAKey=function(e){var t=e.hasItems;e.hasCtrlDownKeyPressed&&t&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},r._onEnterKey=function(e){var t=e.event,n=e.target,r=e.activeItems,o=e.hasActiveDropdown,i=n.hasAttribute("data-button");if(this._isTextElement&&n.value){var a=this.input.value;this._canAddItem(r,a).response&&(this.hideDropdown(!0),this._addItem({value:a}),this._triggerChange(a),this.clearInput())}if(i&&(this._handleButtonAction(r,n),t.preventDefault()),o){var s=this.dropdown.getChild("."+this.config.classNames.highlightedState);s&&(r[0]&&(r[0].keyCode=13),this._handleChoiceAction(r,s)),t.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),t.preventDefault())},r._onEscapeKey=function(e){e.hasActiveDropdown&&(this.hideDropdown(!0),this.containerOuter.focus())},r._onDirectionKey=function(e){var t,n,r,o=e.event,i=e.hasActiveDropdown,a=e.keyCode,s=e.metaKey;if(i||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var l,u=40===a||34===a?1:-1,c="[data-choice-selectable]";if(s||34===a||33===a)l=u>0?this.dropdown.element.querySelector("[data-choice-selectable]:last-of-type"):this.dropdown.element.querySelector(c);else{var f=this.dropdown.element.querySelector("."+this.config.classNames.highlightedState);l=f?function(e,t,n){if(void 0===n&&(n=1),e instanceof Element){for(var r=(n>0?"next":"previous")+"ElementSibling",o=e[r];o;){if(o.matches(t))return o;o=o[r]}return o}}(f,c,u):this.dropdown.element.querySelector(c)}l&&(t=l,n=this.choiceList.element,void 0===(r=u)&&(r=1),t&&(r>0?n.scrollTop+n.offsetHeight>=t.offsetTop+t.offsetHeight:t.offsetTop>=n.scrollTop)||this.choiceList.scrollToChildElement(l,u),this._highlightChoice(l)),o.preventDefault()}},r._onDeleteKey=function(e){var t=e.event,n=e.target,r=e.hasFocusedInput,o=e.activeItems;!r||n.value||this._isSelectOneElement||(this._handleBackspace(o),t.preventDefault())},r._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},r._onTouchEnd=function(e){var t=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&((t===this.containerOuter.element||t===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),e.stopPropagation()),this._wasTap=!0},r._onMouseDown=function(e){var t=e.target;if(t instanceof HTMLElement){if(Z&&this.choiceList.element.contains(t)){var n=this.choiceList.element.firstElementChild,r="ltr"===this._direction?e.offsetX>=n.offsetWidth:e.offsetX<n.offsetLeft;this._isScrollingOnIe=r}if(t!==this.input.element){var o=t.closest("[data-button],[data-item],[data-choice]");if(o instanceof HTMLElement){var i=e.shiftKey,a=this._store.activeItems,s=o.dataset;"button"in s?this._handleButtonAction(a,o):"item"in s?this._handleItemAction(a,o,i):"choice"in s&&this._handleChoiceAction(a,o)}e.preventDefault()}}},r._onMouseOver=function(e){var t=e.target;t instanceof HTMLElement&&"choice"in t.dataset&&this._highlightChoice(t)},r._onClick=function(e){var t=e.target;this.containerOuter.element.contains(t)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&t!==this.input.element&&!this.dropdown.element.contains(t)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},r._onFocus=function(e){var t,n=this,r=e.target;this.containerOuter.element.contains(r)&&((t={}).text=function(){r===n.input.element&&n.containerOuter.addFocusState()},t["select-one"]=function(){n.containerOuter.addFocusState(),r===n.input.element&&n.showDropdown(!0)},t["select-multiple"]=function(){r===n.input.element&&(n.showDropdown(!0),n.containerOuter.addFocusState())},t)[this.passedElement.element.type]()},r._onBlur=function(e){var t=this,n=e.target;if(this.containerOuter.element.contains(n)&&!this._isScrollingOnIe){var r,o=this._store.activeItems.some((function(e){return e.highlighted}));((r={}).text=function(){n===t.input.element&&(t.containerOuter.removeFocusState(),o&&t.unhighlightAll(),t.hideDropdown(!0))},r["select-one"]=function(){t.containerOuter.removeFocusState(),(n===t.input.element||n===t.containerOuter.element&&!t._canSearch)&&t.hideDropdown(!0)},r["select-multiple"]=function(){n===t.input.element&&(t.containerOuter.removeFocusState(),t.hideDropdown(!0),o&&t.unhighlightAll())},r)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},r._onFormReset=function(){this._store.dispatch({type:"RESET_TO",state:this._initialState})},r._highlightChoice=function(e){var t=this;void 0===e&&(e=null);var n=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(n.length){var r=e;Array.from(this.dropdown.element.querySelectorAll("."+this.config.classNames.highlightedState)).forEac
2h((function(e){e.classList.remove(t.config.classNames.highlightedState),e.setAttribute("aria-selected","false")})),r?this._highlightPosition=n.indexOf(r):(r=n.length>this._highlightPosition?n[this._highlightPosition]:n[n.length-1])||(r=n[0]),r.classList.add(this.config.classNames.highlightedState),r.setAttribute("aria-selected","true"),this.passedElement.triggerEvent("highlightChoice",{el:r}),this.dropdown.isActive&&(this.input.setActiveDescendant(r.id),this.containerOuter.setActiveDescendant(r.id))}},r._addItem=function(e){var t,n=e.value,r=e.label,o=void 0===r?null:r,i=e.choiceId,a=void 0===i?-1:i,s=e.groupId,l=void 0===s?-1:s,u=e.customProperties,c=void 0===u?null:u,f=e.placeholder,d=void 0!==f&&f,p=e.keyCode,h=void 0===p?null:p,m="string"==typeof n?n.trim():n,v=h,y=c,b=this._store.items,g=o||m,w=a||-1,k=l>=0?this._store.getGroupById(l):null,_=b?b.length+1:1;return this.config.prependValue&&(m=this.config.prependValue+m.toString()),this.config.appendValue&&(m+=this.config.appendValue.toString()),this._store.dispatch((t={value:m,label:g,id:_,choiceId:w,groupId:l,customProperties:c,placeholder:d,keyCode:v},{type:"ADD_ITEM",value:t.value,label:t.label,id:t.id,choiceId:t.choiceId,groupId:t.groupId,customProperties:t.customProperties,placeholder:t.placeholder,keyCode:t.keyCode})),this._isSelectOneElement&&this.removeActiveItems(_),this.passedElement.triggerEvent("addItem",{id:_,value:m,label:g,customProperties:y,groupValue:k&&k.value?k.value:void 0,keyCode:v}),this},r._removeItem=function(e){if(!e||!w("Object",e))return this;var t=e.id,n=e.value,r=e.label,o=e.choiceId,i=e.groupId,a=i>=0?this._store.getGroupById(i):null;return this._store.dispatch(function(e,t){return{type:"REMOVE_ITEM",id:e,choiceId:t}}(t,o)),a&&a.value?this.passedElement.triggerEvent(R,{id:t,value:n,label:r,groupValue:a.value}):this.passedElement.triggerEvent(R,{id:t,value:n,label:r}),this},r._addChoice=function(e){var t,n=e.value,r=e.label,o=void 0===r?null:r,i=e.isSelected,a=void 0!==i&&i,s=e.isDisabled,l=void 0!==s&&s,u=e.groupId,c=void 0===u?-1:u,f=e.customProperties,d=void 0===f?null:f,p=e.placeholder,h=void 0!==p&&p,m=e.keyCode,v=void 0===m?null:m;if(null!=n){var y=this._store.choices,b=o||n,g=y?y.length+1:1,w=this._baseId+"-"+this._idNames.itemChoice+"-"+g;this._store.dispatch((t={id:g,groupId:c,elementId:w,value:n,label:b,disabled:l,customProperties:d,placeholder:h,keyCode:v},{type:"ADD_CHOICE",value:t.value,label:t.label,id:t.id,groupId:t.groupId,disabled:t.disabled,elementId:t.elementId,customProperties:t.customProperties,placeholder:t.placeholder,keyCode:t.keyCode})),a&&this._addItem({value:n,label:b,choiceId:g,customProperties:d,placeholder:h,keyCode:v})}},r._addGroup=function(e){var t=this,n=e.group,r=e.id,o=e.valueKey,i=void 0===o?"value":o,a=e.labelKey,s=void 0===a?"label":a,l=w("Object",n)?n.choices:Array.from(n.getElementsByTagName("OPTION")),u=r||Math.floor((new Date).valueOf()*Math.random()),c=!!n.disabled&&n.disabled;l?(this._store.dispatch(G({value:n.label,id:u,active:!0,disabled:c})),l.forEach((function(e){var n=e.disabled||e.parentNode&&e.parentNode.disabled;t._addChoice({value:e[i],label:w("Object",e)?e[s]:e.innerHTML,isSelected:e.selected,isDisabled:n,groupId:u,customProperties:e.customProperties,placeholder:e.placeholder})}))):this._store.dispatch(G({value:n.label,id:n.id,active:!1,disabled:n.disabled}))},r._getTemplate=function(e){var t;if(!e)return null;for(var n=this.config.classNames,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return(t=this._templates[e]).call.apply(t,[this,n].concat(o))},r._createTemplates=function(){var e=this.config.callbackOnCreateTemplates,t={};e&&"function"==typeof e&&(t=e.call(this,_)),this._templates=a()(W,t)},r._createElements=function(){this.containerOuter=new I({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new I({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new L({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new N({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new N({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new A({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},r._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},r._addPredefinedGroups=function(e){var t=this,n=this.passedElement.placeholderOption;n&&"SELECT"===n.parentNode.tagName&&this._addChoice({value:n.value,label:n.innerHTML,isSelected:n.selected,isDisabled:n.disabled,placeholder:!0}),e.forEach((function(e){return t._addGroup({group:e,id:e.id||null})}))},r._addPredefinedChoices=function(e){var t=this;this.config.shouldSort&&e.sort(this.config.sorter);var n=e.some((function(e){return e.selected})),r=e.findIndex((function(e){return void 0===e.disabled||!e.disabled}));e.forEach((function(e,o){var i=e.value,a=e.label,s=e.customProperties,l=e.placeholder;if(t._isSelectElement)if(e.choices)t._addGroup({group:e,id:e.id||null});else{var u=!(!t._isSelectOneElement||n||o!==r)||e.selected,c=e.disabled;
2t._addChoice({value:i,label:a,isSelected:u,isDisabled:c,customProperties:s,placeholder:l})}else t._addChoice({value:i,label:a,isSelected:e.selected,isDisabled:e.disabled,customProperties:s,placeholder:l})}))},r._addPredefinedItems=function(e){var t=this;e.forEach((function(e){"object"==typeof e&&e.value&&t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}),"string"==typeof e&&t._addItem({value:e})}))},r._setChoiceOrItem=function(e){var t=this;({object:function(){e.value&&(t._isTextElement?t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}):t._addChoice({value:e.value,label:e.label,isSelected:!0,isDisabled:!1,customProperties:e.customProperties,placeholder:e.placeholder}))},string:function(){t._isTextElement?t._addItem({value:e}):t._addChoice({value:e,label:e,isSelected:!0,isDisabled:!1})}})[g(e).toLowerCase()]()},r._findAndSelectChoiceByValue=function(e){var t=this,n=this._store.choices.find((function(n){return t.config.valueComparer(n.value,e)}));n&&!n.selected&&this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.groupId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode})},r._generatePlaceholderValue=function(){if(this._isSelectElement){var e=this.passedElement.placeholderOption;return!!e&&e.text}var t=this.config,n=t.placeholder,r=t.placeholderValue,o=this.passedElement.element.dataset;if(n){if(r)return r;if(o.placeholder)return o.placeholder}return!1},n}();t.default=Q}]).default},e.exports=t()},95295:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(38571);t.default={framework:"semantic",templates:r.default}},38571:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5487);t.default={semantic:r.default}},89345:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+="<div\n ",e.attrs)n+="\n ",n+="class"===r?"\n "+(null==(t=r)?"":t)+'="ui message '+(null==(t=e.attrs[r])?"":t)+'"\n ':"\n "+(null==(t=r)?"":t)+'="'+(null==(t=e.attrs[r])?"":t)+'"\n ',n+="\n ";return n+"\n>"+(null==(t=e.message)?"":t)+"</div>\n"}},35692:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(89345);t.default={form:r.default}},23138:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="formio builder ui grid formbuilder">\n <div class="four wide column formcomponents">\n '+(null==(t=e.sidebar)?"":t)+'\n </div>\n <div class="twelve wide column formarea" ref="form">\n '+(null==(t=e.form)?"":t)+"\n </div>\n</div>\n"}},84594:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23138);t.default={form:r.default}},16751:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;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==(t=e.iconClass("cog"))?"":t)+'"></i>\n </div>\n <div class="ui button mini icon component-settings-button-copy" ref="copyComponent">\n <i class="'+(null==(t=e.iconClass("copy"))?"":t)+'"></i>\n </div>\n <div class="ui button mini icon component-settings-button-paste" ref="pasteComponent">\n <i class="'+(null==(t=e.iconClass("save"))?"":t)+'"></i>\n </div>\n <div class="ui button mini icon component-settings-button-edit-json" ref="editJson">\n <i class="'+(null==(t=e.iconClass("wrench"))?"":t)+'"></i>\n </div>\n <div class="ui button mini icon component-settings-button-move" ref="moveComponent">\n <i class="'+(null==(t=e.iconClass("move"))?"":t)+'"></i>\n </div>\n <div class="ui button mini icon secondary component-settings-button-remove" ref="removeComponent">\n <i class="'+(null==(t=e.iconClass("remove"))?"":t)+'"></i>\n </div>\n </div>\n '+(null==(t=e.html)?"":t)+"\n</div>\n"}},61967:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=n(16751);t.default={form:r.default}},84558:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="builder-components drag-container '+(null==(t=e.type)?"":t)+'" ref="'+(null==(t=e.key)?"":t)+'-container">\n '+(null==(t=e.html)?"":t)+"\n</div>\n"}},13332:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84558);t.default={form:r.default}},26680:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="ui grid">\n <div class="eight wide column">\n <h3 class="lead">'+(null==(t=e.t(e.componentInfo.title))?"":t)+" "+(null==(t=e.t("Component"))?"":t)+'</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==(t=e.componentInfo.documentation)?"":t)+'" target="_blank">\n <i class="'+(null==(t=e.iconClass("new-window"))?"":t)+'"> '+(null==(t=e.t("Help"))?"":t)+'</i>\n </a>\n </div>\n </div>\n</div>\n<div class="ui grid">\n <div class="',e.preview?n+="eight":n+="sixteen",n+=' wide column">\n <div ref="editForm">\n '+(null==(t=e.editForm)?"":t)+"\n </div>\n ",e.preview||(n+='\n <div style="margin-top: 10px;">\n <button class="ui button primary" style="margin-right: 10px;" ref="saveButton">'+(null==(t=e.t("Save"))?"":t)+'</button>\n <button class="ui button default" style="margin-right: 10px;" ref="cancelButton">'+(null==(t=e.t("Cancel"))?"":t)+'</button>\n <button class="ui button negative" ref="removeButton">'+(null==(t=e.t("Remove"))?"":t)+"</button>\n </div>
2\n "),n+="\n </div>\n ",e.preview&&(n+='\n <div class="eight wide column">\n <div class="ui top attached block header">\n '+(null==(t=e.t("Preview"))?"":t)+'\n </div>\n <div class="ui bottom attached segment" ref="preview">\n '+(null==(t=e.preview)?"":t)+"\n </div>\n ",e.componentInfo.help&&(n+='\n <div class="ui secondary segment formio-settings-help">\n '+(null==(t=e.componentInfo.help)?"":t)+"\n </div>\n "),n+='\n <div style="margin-top: 10px;">\n <button class="ui button primary" style="margin-right: 10px;" ref="saveButton">'+(null==(t=e.t("Save"))?"":t)+'</button>\n <button class="ui button default" style="margin-right: 10px;" ref="cancelButton">'+(null==(t=e.t("Cancel"))?"":t)+'</button>\n <button class="ui button negative" ref="removeButton">'+(null==(t=e.t("Remove"))?"":t)+"</button>\n </div>\n </div>\n "),n+"\n</div>\n"}},85097:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(26680);t.default={form:r.default}},36634:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;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==(t=e.position)?"":t)+'"\n>\n Drag and Drop a form component\n</div>\n'}},59144:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(36634);t.default={form:r.default}},21102:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div id="builder-sidebar-'+(null==(t=e.id)?"":t)+'" class="ui segments" ref="sidebar">\n ',e.groups.forEach((function(e){n+="\n "+(null==(t=e)?"":t)+"\n "})),n+="\n</div>\n"}},67767:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(21102);t.default={form:r.default}},3414:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="ui segment secondary form-builder-panel" style="padding: 0" ref="group-panel-'+(null==(t=e.groupKey)?"":t)+'">\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==(t=e.groupKey)?"":t)+'"\n data-parent="'+(null==(t=e.groupId)?"":t)+'"\n ref="sidebar-anchor"\n >\n '+(null==(t=e.t(e.group.title))?"":t)+'\n </button>\n </h5>\n </div>\n</div>\n<div class="ui segment" style="padding: 0">\n <div\n class="panel-collapse collapse '+(null==(t=e.group.default?" in":"")?"":t)+'"\n data-parent="#'+(null==(t=e.groupId)?"":t)+'"\n data-default="'+(null==(t=e.group.default)?"":t)+'"\n id="group-'+(null==(t=e.groupKey)?"":t)+'"\n ref="sidebar-group"\n >\n <div id="group-container-'+(null==(t=e.groupKey)?"":t)+'" class="card-body panel-body no-drop" ref="sidebar-container">\n ',e.group.componentOrder.forEach((function(r){n+='\n <span\n data-group="'+(null==(t=e.groupKey)?"":t)+'"\n data-key="'+(null==(t=e.group.components[r].key)?"":t)+'"\n data-type="'+(null==(t=e.group.components[r].schema.type)?"":t)+'"\n class="ui button mini primary fluid formcomponent drag-copy"\n >\n ',e.group.components[r].icon&&(n+='\n <i class="'+(null==(t=e.iconClass(e.group.components[r].icon))?"":t)+'" style="margin-right: 5px;"></i>\n '),n+="\n "+(null==(t=e.t(e.group.components[r].title))?"":t)+"\n </span>\n "})),n+="\n "+(null==(t=e.subgroups.join(""))?"":t)+"\n </div>\n </div>\n</div>\n"}},18840:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3414);t.default={form:r.default}},17517:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="formio builder ui grid formbuilder">\n <div class="four wide column formcomponents">\n '+(null==(t=e.sidebar)?"":t)+'\n </div>\n <div class="twelve wide column formarea">\n <div class="ui breadcrumb" style="margin-bottom: 0.5em">
2\n ',e.pages.forEach((function(r,o){n+='\n <div title="'+(null==(t=r.title)?"":t)+'" class="',o===e.self.page?n+=" active section ":n+=" section ",n+=' wizard-page-label" ref="gotoPage">'+(null==(t=r.title)?"":t)+'</div>\n <div class="divider">/</div>\n '})),n+='\n <div title="'+(null==(t=e.t("Create Page"))?"":t)+'" class="section wizard-page-label" ref="addPage"><i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t("Page"))?"":t)+'</div>\n </div>\n <div ref="form">\n '+(null==(t=e.form)?"":t)+"\n </div>\n </div>\n</div>\n"}},29733:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17517);t.default={form:r.default}},50052:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+="<"+(null==(t=e.input.type)?"":t)+'\n ref="button"\n class="ui button '+(null==(t=e.transform("theme",e.component.theme))?"":t)+" "+(null==(t=e.component.customClass)?"":t)+'"\n ',e.input.attr)n+="\n "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n ';return n+="\n>\n",e.component.leftIcon&&(n+='<i class="'+(null==(t=e.component.leftIcon)?"":t)+'"></i> '),n+="\n"+(null==(t=e.input.content)?"":t)+"\n",e.component.tooltip&&(n+='\n <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n'),n+="\n",e.component.rightIcon&&(n+=' <i class="'+(null==(t=e.component.rightIcon)?"":t)+'"></i>'),n+"\n</"+(null==(t=e.input.type)?"":t)+'>\n<div ref="buttonMessageContainer">\n <span class="help-block" ref="buttonMessage"></span>\n</div>\n'}},12749:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"\n"}},96871:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(50052),o=n(12749);t.default={form:r.default,html:o.default}},1237:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+='<div class="ui checkbox">\n <'+(null==(t=e.input.type)?"":t)+'\n ref="input"\n id="'+(null==(t=e.id)?"":t)+'"\n ',e.input.attr)n+="\n "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n ';return n+="\n ",e.checked&&(n+="checked=true"),n+="\n >\n </"+(null==(t=e.input.type)?"":t)+'>\n <label class="'+(null==(t=e.input.labelClass)?"":t)+'" for="'+(null==(t=e.id)?"":t)+'">\n '+(null==(t=e.input.content)?"":t)+"\n ",e.self.labelIsHidden()||(n+="<span>"+(null==(t=e.input.label)?"":t)+"</span>"),n+="\n ",e.component.tooltip&&(n+='\n <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n '),n+"\n </label>\n</div>\n"}},51266:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<label class="'+(null==(t=e.input.labelClass)?"":t)+'">\n '+(null==(t=e.input.content)?"":t)+"\n ",e.self.labelIsHidden()||(n+="<span>"+(null==(t=e.input.label)?"":t)+"</span>"),n+='\n</label>\n<div ref="value">',e.checked?n+="True":n+="False",n+"</div>\n"}},48424:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1237),o=n(51266);t.default={form:r.default,html:o.default}},46530:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="ui grid" style="width: 100%">\n ',e.component.columns.forEach((function(r,o){n+='\n <div class="'+(null==(t=e.transform("columns",r.width))?"":t)+' wide column" ref="'+(null==(t=e.columnKey)?"":t)+'">\n '+(null==(t=e.columnComponents[o])?"":t)+"\n </div>\n "})),n+="\n</div>\n"}},43960:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(46530);t.default={form:r.default}},23475:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div id="'+(null==(t=e.id)?"":t)+'" class="field '+(null==(t=e.classes)?"":t)+'"',e.styles&&(n+=' styles="'+(null==(t=e.styles)?"":t)+'"'),n+=' ref="component">\n ',e.visible&&(n+="\n "+(null==(t=e.children)?"":t)+'\n <div ref="messageContainer"></div>\n '),n+"\n</div>\n"}},71427:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=n(23475);t.default={form:r.default}},51284:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"has-error":"error","is-invalid":"error","formio-tab-panel-active":"active","formio-tab-link-active":"active","formio-tab-link-container-active":"active"}},15894:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="ui table datagrid-table\n '+(null==(t=e.component.striped?"striped":"")?"":t)+"\n "+(null==(t=e.component.bordered?"celled":"")?"":t)+"\n "+(null==(t=e.component.hover?"selectable":"")?"":t)+"\n "+(null==(t=e.component.condensed?"compact":"padded")?"":t)+'\n " ',e.component.layoutFixed&&(n+='style="table-layout: fixed;"'),n+=">\n ",e.hasHeader&&(n+="\n <thead>\n <tr>\n ",e.component.reorder&&(n+="<th></th>"),n+="\n ",e.columns.forEach((function(r){n+='\n <th class="'+(null==(t=r.validate&&r.validate.required?"field-required":"")?"":t)+'">\n '+(null==(t=r.hideLabel?"":e.t(r.label||r.title))?"":t)+"\n ",r.tooltip&&(n+=' <i ref="tooltip" data-title="'+(null==(t=r.tooltip)?"":t)+'" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>'),n+="\n </th>\n "})),n+="\n ",e.hasExtraColumn&&(n+="\n <th>\n ",e.hasAddButton&&e.hasTopSubmit&&(n+='\n <button class="ui button primary" ref="'+(null==(t=e.datagridKey)?"":t)+'-addRow">\n <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.component.addAnother||"Add Another"))?"":t)+"\n </button>\n "),n+="\n </th>\n "),n+="\n </tr>\n </thead>\n "),n+='\n <tbody ref="'+(null==(t=e.datagridKey)?"":t)+'-tbody">\n ',e.rows.forEach((function(r,o){n+="\n ",e.hasGroups&&e.groups[o]&&(n+='\n <tr ref="'+(null==(t=e.datagridKey)?"":t)+'-group-header" class="datagrid-group-header'+(null==(t=e.hasToggle?" clickable":"")?"":t)+'">\n <td\n ref="'+(null==(t=e.datagridKey)?"":t)+'-group-label"\n colspan="'+(null==(t=e.numColumns)?"":t)+'"\n class="datagrid-group-label">'+(null==(t=e.groups[o].label)?"":t)+"</td>\n </tr>\n "),n+='\n <tr ref="'+(null==(t=e.datagridKey)?"":t)+'-row">\n ',e.component.reorder&&(n+='\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 '),n+="\n ",e.columns.forEach((function(o){n+='\n <td ref="'+(null==(t=e.datagridKey)?"":t)+'">\n '+(null==(t=r[o.key])?"":t)+"\n </td>\n "})),n+="\n ",e.hasExtraColumn&&(n+="\n ",e.hasRemoveButtons&&(n+='\n <td>\n <button type="button" class="btn-xss ui icon button secondary formio-'+(null==(t=e.component.type)?"":t)+'-remove" ref="'+(null==(t=e.datagridKey)?"":t)+'-removeRow">\n <i class="'+(null==(t=e.iconClass("remove"))?"":t)+'"></i>\n </button>\n </td>\n '),n+="\n ",e.canAddColumn&&(n+='\n <td ref="'+(null==(t=e.key)?"":t)+'-container">\n '+(null==(t=e.placeholder)?"":t)+"\n </td>\n "),n+="\n "),n+="\n </tr>\n "})),n+="\n </tbody>\n ",e.hasAddButton&&e.hasBottomSubmit&&(n+='\n <tfoot>\n <tr>\n <td colspan="'+(null==(t=e.numColumns+1)?"":t)+'">\n <button class="ui button primary" ref="'+(null==(t=e.datagridKey)?"":t)+'-addRow">\n <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.component.addAnother||"Add Another"))?"":t)+"\n </button>\n </td>\n </tr>\n </tfoot>\n "),n+="\n</table>\n"}},46719:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="ui table datagrid-table\n '+(null==(t=e.component.striped?"striped":"")?"":t)+"\n "+(null==(t=e.component.bordered?"celled":"")?"":t)+"\n "+(null==(t=e.component.hover?"selectable":"")?"":t)+"\n "+(null==(t=e.component.condensed?"compact":"padded")?"":t)+'\n ">\n ',e.hasHeader&&(n+="\n <thead>\n <tr>\n ",e.columns.forEach((function(r){n+='\n <th class="'+(null==(t=r.validate&&r.validate.required?"field-required":"")?"":t)+'">\n '+(null==(t=r.hideLabel?"":e.t(r.label||r.title))?"":t)+"\n ",r.tooltip&&(n+=' <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>'),n+="\n </th>\n "})),n+="\n </tr>\n </thead>
2\n "),n+="\n <tbody>\n ",e.rows.forEach((function(r){n+="\n <tr>\n ",e.columns.forEach((function(o){n+='\n <td ref="'+(null==(t=e.datagridKey)?"":t)+'">\n '+(null==(t=r[o.key])?"":t)+"\n </td>\n "})),n+="\n </tr>\n "})),n+="\n </tbody>\n</table>\n"}},99126:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(15894),o=n(46719);t.default={form:r.default,html:o.default}},20173:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="ui grid">\n ',e.dayFirst&&e.showDay&&(n+='\n <div class="four wide column">\n <label for="'+(null==(t=e.component.key)?"":t)+'-day" class="">'+(null==(t=e.t("Day"))?"":t)+"</label>\n "+(null==(t=e.day)?"":t)+"\n </div>\n "),n+="\n ",e.showMonth&&(n+='\n <div class="five wide column">\n <label for="'+(null==(t=e.component.key)?"":t)+'-month" class="">'+(null==(t=e.t("Month"))?"":t)+"</label>\n "+(null==(t=e.month)?"":t)+"\n </div>\n "),n+="\n ",!e.dayFirst&&e.showDay&&(n+='\n <div class="four wide column">\n <label for="'+(null==(t=e.component.key)?"":t)+'-day" class="">'+(null==(t=e.t("Day"))?"":t)+"</label>\n "+(null==(t=e.day)?"":t)+"\n </div>\n "),n+="\n ",e.showYear&&(n+='\n <div class="seven wide column">\n <label for="'+(null==(t=e.component.key)?"":t)+'-year" class="">'+(null==(t=e.t("Year"))?"":t)+"</label>\n "+(null==(t=e.year)?"":t)+"\n </div>\n "),n+'\n</div>\n<input name="data[day]" type="hidden" class="form-control" lang="en" value="" ref="input">\n'}},20446:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(20173);t.default={form:r.default}},97483:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="editgrid-listgroup ui celled list">\n ',e.header&&(n+='\n <div class="item list-group-header">\n '+(null==(t=e.header)?"":t)+"\n </div>\n "),n+="\n ",e.rows.forEach((function(r,o){n+='\n <div class="item" ref="'+(null==(t=e.ref.row)?"":t)+'">\n '+(null==(t=r)?"":t)+"\n ",e.openRows[o]&&!e.readOnly&&(n+='\n <div class="editgrid-actions">\n <button class="ui button primary" ref="'+(null==(t=e.ref.saveRow)?"":t)+'">'+(null==(t=e.t(e.component.saveRow||"Save"))?"":t)+"</button>\n ",e.component.removeRow&&(n+='\n <button class="ui button secondary" ref="'+(null==(t=e.ref.cancelRow)?"":t)+'">'+(null==(t=e.t(e.component.removeRow||"Cancel"))?"":t)+"</button>\n "),n+="\n </div>\n "),n+='\n <div class="has-error">\n <div class="editgrid-row-error help-block">\n '+(null==(t=e.errors[o])?"":t)+"\n </div>\n </div>\n </div>\n "})),n+="\n ",e.footer&&(n+='\n <div class="item list-group-footer">\n '+(null==(t=e.footer)?"":t)+"\n </div>\n "),n+="\n</div>\n",!e.readOnly&&e.hasAddButton&&(n+='\n<button class="ui button primary" ref="'+(null==(t=e.ref.addRow)?"":t)+'">\n <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.component.addAnother||"Add Another"))?"":t)+"\n</button>\n"),n+="\n"}},5264:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="editgrid-listgroup ui celled list">\n ',e.header&&(n+='\n <div class="item list-group-header">\n '+(null==(t=e.header)?"":t)+"\n </div>\n "),n+="\n ",e.rows.forEach((function(r,o){n+='\n <div class="item" ref="'+(null==(t=e.ref.row)?"":t)+'">\n '+(null==(t=r)?"":t)+"\n ",e.openRows[o]&&!e.readOnly&&(n+='\n <div class="editgrid-actions">\n <button class="ui button primary" ref="'+(null==(t=e.ref.saveRow)?"":t)+'">'+(null==(t=e.t(e.component.saveRow||"Save"))?"":t)+"</button>\n ",e.component.removeRow&&(n+='\n <button class="ui button secondary" ref="'+(null==(t=e.ref.cancelRow)?"":t)+'">'+(null==(t=e.t(e.component.removeRow||"Cancel"))?"":t)+"</button>\n "),n+="\n </div>\n "),n+='\n <div class="has-error">\n <div class="editgrid-row-error help-block">\n '+(null==(t=e.errors[o])?"":t)+"\n </div>\n </div>\n </div>\n "})),n+="\n ",e.footer&&(n+='\n <div class="item list-group-footer">\n '+(null==(t=e.footer)?"":t)+"\n </div>\n "),n+="\n</div>\n"}},96943:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=n(97483),o=n(5264);t.default={form:r.default,html:o.default}},95463:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+="<p>"+(null==(t=e.t("error"))?"":t)+"</p>\n<ul>\n ",e.errors.forEach((function(r){n+='\n <li\n data-component-key = "'+(null==(t=r.keyOrPath)?"":t)+'"\n aria-label = "'+(null==(t=r.message)?"":t)+". "+(null==(t=e.t("errorsListNavigationMessage"))?"":t)+'"\n ref = "errorRef"\n tabIndex = "0",\n style = "cursor:pointer;"\n ><span>'+(null==(t=r.message)?"":t)+"</span></li>\n "})),n+="\n</ul>\n\n"}},69240:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(95463);t.default={form:r.default}},64129:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="field-wrapper\n '+(null==(t=e.isRightPosition?"field-wrapper--reverse":"")?"":t)+'">\n ',e.label.hidden||(n+='\n <div class="field-label\n '+(null==(t=e.isRightAlign?"field-label--right":"")?"":t)+'"\n style="'+(null==(t=e.labelStyles)?"":t)+'">\n '+(null==(t=e.labelMarkup)?"":t)+"\n </div>\n "),n+="\n\n ",e.label.hidden&&e.label.className&&e.component.validate.required&&(n+='\n <div class="field-label\n '+(null==(t=e.isRightAlign?"field-label--right":"")?"":t)+'"\n style="'+(null==(t=e.labelStyles)?"":t)+'">\n <label class="'+(null==(t=e.label.className)?"":t)+'"></label>\n </div>\n '),n+='\n\n <div class="filed-content" style="'+(null==(t=e.contentStyles)?"":t)+'">\n '+(null==(t=e.element)?"":t)+"\n </div>\n</div>\n\n",e.component.description&&(n+='\n <div class="form-text text-muted">'+(null==(t=e.t(e.component.description))?"":t)+"</div>\n"),n+"\n"}},99809:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.label.hidden||"bottom"===e.label.labelPosition||(n+="\n "+(null==(t=e.labelMarkup)?"":t)+"\n"),n+="\n\n",e.label.hidden&&e.label.className&&e.component.validate.required&&(n+='\n <label class="'+(null==(t=e.label.className)?"":t)+'"></label>\n'),n+="\n\n"+(null==(t=e.element)?"":t)+"\n",e.label.hidden||"bottom"!==e.label.labelPosition||(n+="\n "+(null==(t=e.labelMarkup)?"":t)+"\n"),n+="\n",e.component.description&&(n+='\n <div class="help-block">'+(null==(t=e.t(e.component.description))?"":t)+"</div>\n"),n+"\n"}},4061:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(99809),o=n(64129);t.default={form:r.default,align:o.default}},54427:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<fieldset>\n <legend ref="header" class="'+(null==(t=e.component.collapsible?"formio-clickable":"")?"":t)+'">\n '+(null==(t=e.t(e.component.legend))?"":t)+"\n ",e.component.tooltip&&(n+='\n <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+'" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>
2\n '),n+="\n </legend> ",e.collapsed||(n+='\n <div class="card-body" ref="'+(null==(t=e.nestedKey)?"":t)+'">\n '+(null==(t=e.children)?"":t)+"\n </div>\n "),n+"\n</fieldset>\n"}},72297:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(54427);t.default={form:r.default}},75762:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.self.imageUpload?(n+="\n <div>\n ",e.files.forEach((function(r){n+='\n <div>\n <span>\n <img ref="fileImage" src="" alt="'+(null==(t=r.originalName||r.name)?"":t)+'" style="width:'+(null==(t=e.component.imageSize)?"":t)+'px">\n ',e.disabled||(n+='\n <i class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="removeLink"></i>\n '),n+="\n </span>\n </div>\n "})),n+="\n </div>\n"):(n+='\n <div class="ui celled list">\n <div class="item">\n <div class="ui grid">\n ',e.disabled||(n+='\n <div class="one wide column"></div>\n '),n+='\n <div class="',e.self.hasTypes?n+="nine":n+="twelve",n+=' wide column"><strong>'+(null==(t=e.t("File Name"))?"":t)+'</strong></div>\n <div class="three wide column"><strong>'+(null==(t=e.t("Size"))?"":t)+"</strong></div>\n ",e.self.hasTypes&&(n+='\n <div class="three wide column"><strong>'+(null==(t=e.t("Type"))?"":t)+"</strong></div>\n "),n+="\n </div>\n </div>\n ",e.files.forEach((function(r){n+='\n <li class="list-group-item">\n <div class="ui grid">\n ',e.disabled||(n+='\n <div class="one wide column"><i class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="removeLink"></i></div>\n '),n+='\n <div class="',e.self.hasTypes?n+="nine":n+="twelve",n+=' wide column">\n ',e.component.uploadOnly?n+="\n "+(null==(t=r.originalName||r.name)?"":t)+"\n ":n+='\n <a href="'+(null==(t=r.url||"#")?"":t)+'" target="_blank" ref="fileLink">'+(null==(t=r.originalName||r.name)?"":t)+"</a>\n ",n+='\n </div>\n <div class="three wide column">'+(null==(t=e.fileSize(r.size))?"":t)+"</div>\n ",e.self.hasTypes&&!e.disabled&&(n+='\n <div class="three wide column">\n <select class="file-type" ref="fileType">\n ',e.component.fileTypes.map((function(e){n+='\n <option class="test" value="'+(null==(t=e.value)?"":t)+'" ',e.label===r.fileType&&(n+='selected="selected"'),n+=">"+(null==(t=e.label)?"":t)+"</option>\n "})),n+="\n </select>\n </div>\n "),n+="\n ",e.self.hasTypes&&e.disabled&&(n+='\n <div class="three wide column">'+(null==(t=r.fileType)?"":t)+"</div>\n "),n+="\n </div>\n </li>\n "})),n+="\n </div>\n"),n+="\n",e.disabled||!e.component.multiple&&e.files.length||(n+="\n ",e.self.useWebViewCamera?n+='\n <div class="fileSelector">\n <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(t=e.t("Gallery"))?"":t)+'</button>\n <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(t=e.t("Camera"))?"":t)+"</button>\n </div>\n ":e.self.cameraMode?n+='\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==(t=e.t("Take Picture"))?"":t)+'</button>\n <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(t=e.t("Switch to file upload"))?"":t)+"</button>\n ":(n+='\n <div class="fileSelector" ref="fileDrop" '+(null==(t=e.fileDropHidden?"hidden":"")?"":t)+'>\n <i class="'+(null==(t=e.iconClass("cloud-upload"))?"":t)+'"></i> '+(null==(t=e.t("Drop files to attach,"))?"":t)+"\n ",e.self.imageUpload&&e.component.webcam&&(n+='\n <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(t=e.t("Use Camera,"))?"":t)+"</a>
2\n "),n+="\n "+(null==(t=e.t("or"))?"":t)+' <a href="#" ref="fileBrowse" class="browse">'+(null==(t=e.t("browse"))?"":t)+"</a>\n </div>\n "),n+="\n"),n+="\n",e.statuses.forEach((function(r){n+='\n <div class="file '+(null==(t="error"===e.statuses.status?" has-error":"")?"":t)+'">\n <div class="ui grid">\n <div class="fileName control-label thirteen wide column">'+(null==(t=r.originalName)?"":t)+' <i class="'+(null==(t=e.iconClass("remove"))?"":t)+'" ref="fileStatusRemove"></i></div>\n <div class="fileSize control-label three wide column">'+(null==(t=e.fileSize(r.size))?"":t)+'</div>\n </div>\n <div class="ui grid">\n <div class="thirteen wide column">\n ',"progress"===r.status?n+='\n <div class="progress">\n <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(t=r.progress)?"":t)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(t=r.progress)?"":t)+'">\n <span class="sr-only">'+(null==(t=r.progress)?"":t)+"% "+(null==(t=e.t("Complete"))?"":t)+"</span>\n </div>\n </div>\n ":n+='\n <div class="bg-'+(null==(t=r.status)?"":t)+'">'+(null==(t=e.t(r.message))?"":t)+"</div>\n ",n+="\n </div>\n </div>\n </div>\n"})),n+="\n",e.component.storage&&!e.support.hasWarning||(n+='\n <div class="alert alert-warning">\n ',e.component.storage||(n+="\n <p>"+(null==(t=e.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":t)+"</p>\n "),n+="\n ",e.support.filereader||(n+="\n <p>"+(null==(t=e.t("File API & FileReader API not supported."))?"":t)+"</p>\n "),n+="\n ",e.support.formdata||(n+="\n <p>"+(null==(t=e.t("XHR2's FormData is not supported."))?"":t)+"</p>\n "),n+="\n ",e.support.progress||(n+="\n <p>"+(null==(t=e.t("XHR2's upload progress isn't supported."))?"":t)+"</p>
2\n "),n+="\n </div>\n"),n+="\n"}},7007:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(75762);t.default={form:r.default}},84481:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<i ref="'+(null==(t=e.ref)?"":t)+'" class="'+(null==(t=e.className)?"":t)+'" style="'+(null==(t=e.styles)?"":t)+'">'+(null==(t=e.content)?"":t)+"</i>\n"}},63751:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84481);t.default={form:r.default}},83836:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r={"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 r.hasOwnProperty(t)&&(t=r[t]),t=(t=(t=t||"").replace(/-/g," ")).replace(/ o$/," outline"),n?"icon "+t+" loading":"icon "+t}},5487:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(84594),i=n(61967),a=n(13332),s=n(85097),l=n(59144),u=n(67767),c=n(18840),f=n(29733),d=n(96871),p=n(48424),h=n(43960),m=n(71427),v=n(51284),y=n(99126),b=n(20446),g=n(96943),w=n(4061),k=n(72297),_=n(7007),O=n(63751),x=n(83836),S=n(89504),j=n(61206),P=n(11042),C=n(72763),E=n(30490),A=n(71580),M=n(29367),R=n(88576),T=n(1746),D=n(56533),I=n(60587),V=n(14668),L=n(95339),N=n(88020),F=n(31533),B=n(83725),z=n(62441),U=n(12923),H=n(4599),q=n(76709),W=n(42317),K=n(86739),Y=n(7130),G=n(54815),$=n(86858),J=n(35692),Z=n(69240);t.default=r(r({transform:function(e,t){if(!t)return t;var n={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 n.hasOwnProperty(t.toString())?n[t.toString()]:t;case"class":return this.cssClasses.hasOwnProperty(t.toString())?this.cssClasses[t.toString()]:t}return t},defaultIconset:"icon",iconClass:x.default,cssClasses:v.default,builder:o.default,builderComponent:i.default,builderComponents:a.default,builderEditForm:s.default,builderPlaceholder:l.default,builderSidebar:u.default,builderSidebarGroup:c.default,builderWizard:f.default,button:d.default,checkbox:p.default,columns:h.default,component:m.default,datagrid:y.default,day:b.default,editgrid:g.default,field:w.default,fieldset:k.default,file:_.default,icon:O.default,input:S.default,label:j.default,loader:P.default,loading:C.default,message:E.default,multiValueRow:A.default,multiValueTable:M.default,panel:R.default,radio:T.default,resourceAdd:D.default,select:I.default,selectOption:V.default,signature:L.default,survey:N.default,tab:F.default,tree:z.default},U.default),{table:B.default,webform:H.default,well:q.default,wizard:W.default,wizardHeader:K.default,wizardHeaderClassic:Y.default,wizardHeaderVertical:G.default,wizardNav:$.default,alert:J.default,errorsList:Z.default})},10090:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";if(Array.prototype.join,n+='<div class="ui '+(null==(t=e.component.editor?"":"input")?"":t)+" fluid "+(null==(t=e.suffix?" right":"")?"":t)+(null==(t=e.prefix||e.suffix?" labeled":"")?"":t)+'">\n',e.prefix&&(n+='\n<label class="ui label" ref="prefix">\n',e.prefix instanceof HTMLElement?n+="\n "+(null==(t=e.t(e.prefix.outerHTML))?"":t)+"\n":n+="\n "+(null==(t=e.t(e.prefix))?"":t)+"\n",n+="\n</label>\n"),n+="\n",!e.component.editor&&!e.component.wysiwyg){for(var r in n+="\n<"+(null==(t=e.input.type)?"":t)+'\n ref="'+(null==(t=e.input.ref?e.input.ref:"input")?"":t)+'"\n ',e.input.attr)n+="\n "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n ';n+='\n id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n>'+(null==(t=e.input.content)?"":t)+"</"+(null==(t=e.input.type)?"":t)+">\n"}return n+="\n",(e.component.editor||e.component.wysiwyg)&&(n+='\n<div ref="input"></div>\n'),n+="\n",e.component.showCharCount&&(n+='\n<span class="ui right floated" ref="charcount"></span>\n'),n+="\n",e.component.showWordCount&&(n+='\n<span class="ui right floated" ref="wordcount"></span>\n'),n+="\n",e.suffix&&(n+='\n<div class="ui label" ref="suffix">\n',e.suffix instanceof HTMLElement?n+="\n "+(null==(t=e.t(e.suffix.outerHTML))?"":t)+"\n":n+="\n "+(null==(t=e.t(e.suffix))?"":t)+"\n",n+="\n</div>\n"),n+"\n</div>\n"}}
2,2305:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div ref="value">',e.value?n+=null==(t=e.value)?"":t:n+="-",n+"</div>\n"}},89504:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10090),o=n(2305);t.default={form:r.default,html:o.default}},31520:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<label\n class="'+(null==(t=e.label.className)?"":t)+'"\n for="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n>\n ',e.label.hidden||(n+="\n "+(null==(t=e.t(e.component.label))?"":t)+"\n ",e.component.tooltip&&(n+='\n <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n '),n+="\n "),n+"\n</label>\n"}},61206:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31520);t.default={form:r.default}},83345:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.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'}},11042:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(83345);t.default={form:r.default}},23432:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"Loading...\n"}},72763:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23432);t.default={form:r.default}},18182:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="ui pointing red basic label '+(null==(t=e.level)?"":t)+'">\n '+(null==(t=e.message)?"":t)+"\n</div>\n"}},30490:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18182);t.default={form:r.default}},9637:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<tr ref="row">\n <td>\n '+(null==(t=e.element)?"":t)+"\n </td>\n ",e.disabled||(n+='\n <td>\n <button type="button" class="ui icon button secondary" ref="removeRow">\n <i class="trash icon"></i>\n </button>\n </td>\n '),n+"\n</tr>\n"}},71580:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9637);t.default={form:r.default}},42412:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="ui celled table">\n <tbody>\n '+(null==(t=e.rows)?"":t)+"\n ",e.disabled||(n+='\n <tr>\n <td colspan="2">\n <button class="ui button primary" ref="addButton"><i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.addAnother))?"":t)+"</button>\n </td>\n </tr>\n "),n+"\n </tbody>\n</table>\n"}},29367:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(42412);t.default={form:r.default}},4860:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,(!e.component.hideLabel||e.builder||e.component.collapsible||e.component.tooltip)&&(n+='\n<h4 class="ui top attached block header '+(null==(t=e.component.className)?"":t)+'" ref="header">\n ',e.component.collapsible&&(n+='\n <i class="formio-collapse-icon '+(null==(t=e.iconClass(e.collapsed?"plus-square-o":"minus-square-o"))?"":t)+' text-muted" data-title="Collapse Panel"></i>\n '),n+="\n ",e.component.hideLabel&&!e.builder||(n+="\n "+(null==(t=e.t(e.component.title))?"":t)+"\n "),n+="\n ",e.component.tooltip&&(n+='\n <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n '),n+="\n</h4>\n"),n+="\n",e.collapsed&&!e.builder||(n+='\n<div class="ui bottom attached segment" ref="'+(null==(t=e.nestedKey)?"":t)+'">\n '+(null==(t=e.children)?"":t)+"\n</div>\n"),n+"\n"}},88576:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=n(4860);t.default={form:r.default}},84275:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="fields '+(null==(t=e.inline?"inline":"grouped")?"":t)+'">\n ',e.values.forEach((function(r){for(var o in n+='\n <div class="field">\n <div class="ui '+(null==(t="radio"===e.input.attr.type?"radio":"")?"":t)+' checkbox" ref="wrapper">\n <'+(null==(t=e.input.type)?"":t)+'\n ref="input"\n ',e.input.attr)n+="\n "+(null==(t=o)?"":t)+'="'+(null==(t=e.input.attr[o])?"":t)+'"\n ';n+='\n value="'+(null==(t=r.value)?"":t)+'"\n ',(e.value===r.value||"object"==typeof e.value&&e.value.hasOwnProperty(r.value)&&e.value[r.value])&&(n+="\n checked=true\n "),n+="\n ",r.disabled&&(n+="\n disabled=true\n "),n+='\n id="'+(null==(t=e.instance.root&&e.instance.root.id)?"":t)+"-"+(null==(t=e.id)?"":t)+"-"+(null==(t=e.row)?"":t)+"-"+(null==(t=r.value)?"":t)+'"\n >\n <label class="" for="'+(null==(t=e.instance.root&&e.instance.root.id)?"":t)+"-"+(null==(t=e.id)?"":t)+"-"+(null==(t=e.row)?"":t)+"-"+(null==(t=r.value)?"":t)+'">\n <span>'+(null==(t=e.t(r.label))?"":t)+"</span>\n </label>\n </div>\n </div>\n "})),n+="\n</div>\n"}},2227:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,(n+='<div ref="value">\n ')+"\n "+(null==(t=e.values.filter((function(t){return e.value===t.value||"object"==typeof e.value&&e.value.hasOwnProperty(t.value)&&e.value[t.value]})).map((function(t){return e.t(t.label)})).join(", "))?"":t)+"\n </div>\n"}},1746:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84275),o=n(2227);t.default={form:r.default,html:o.default}},25396:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<table class="ui table celled">\n <tbody>\n <tr>\n <td>\n '+(null==(t=e.element)?"":t)+'\n </td>\n </tr>\n <tr>\n <td colspan="2">\n <button class="ui button primary" ref="addResource">\n <i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i>\n '+(null==(t=e.t(e.component.addResourceLabel||"Add Resource"))?"":t)+"\n </button>\n </td>\n </tr>\n </tbody>\n</table>\n"}},56533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25396);t.default={form:r.default}},5721:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+='<select\n ref="'+(null==(t=e.input.ref?e.input.ref:"selectContainer")?"":t)+'"\n class="ui search dropdown"\n '+(null==(t=e.input.multiple?"multiple":"")?"":t)+"\n ",e.input.attr)n+="\n "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n ';return n+="\n ",e.input.attr.id||(n+='\n id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n '),n+="\n>"+(null==(t=e.selectOptions)?"":t)+'</select>\n<input type="text"\n class="formio-select-autocomplete-input"\n ref="autocompleteInput"\n ',e.input.attr.autocomplete&&(n+='\n autocomplete="'+(null==(t=e.input.attr.autocomplete)?"":t)+'"\n '),n+'\n tabindex="-1"\n/>\n'}},80260:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div ref="value">',e.value?n+=null==(t=e.self.itemValueForHTMLMode(e.value))?"":t:n+="-",n+"</div>\n"}},60587:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5721),o=n(80260);t.default={form:r.default,html:o.default}},93593:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var r in Array.prototype.join,n+="<option "+(null==(t=e.selected?'selected="selected"':"")?"":t)+"\n value='"+(null==(t=e.option.value)?"":t)+"'\n ",e.attrs)n+="\n "+(null==(t=r)?"":t)+'="'+(null==(t=e.attrs[r])?"":t)+'"\n ';return n+"\n >\n "+(null==(t=e.t(e.option.label))?"":t)+"\n</option>\n"}}
2,60345:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.selected&&(n+=null==(t=e.t(e.option.label))?"":t),n+"\n"}},14668:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(93593),o=n(60345);t.default={form:r.default,html:o.default}},90538:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+=(null==(t=e.element)?"":t)+'\n<div\n class="signature-pad-body"\n style="width: '+(null==(t=e.component.width)?"":t)+";height: "+(null==(t=e.component.height)?"":t)+';padding:0;margin:0;"\n tabindex="'+(null==(t=e.component.tabindex||0)?"":t)+'"\n ref="padBody"\n>\n\n <a class="ui basic button mini icon signature-pad-refresh" ref="refresh">\n <i class="'+(null==(t=e.iconClass("refresh"))?"":t)+'"></i>\n </a>\n <canvas class="signature-pad-canvas" height="'+(null==(t=e.component.height)?"":t)+'" ref="canvas"></canvas>\n ',e.required&&(n+='\n <span class="form-control-feedback field-required-inline text-danger">\n <i class="'+(null==(t=e.iconClass("asterisk"))?"":t)+'"></i>\n </span>\n '),n+='\n <img style="width: 100%;display: none;" ref="signatureImage">\n</div>\n',e.component.footer&&(n+='\n <div class="signature-pad-footer">\n '+(null==(t=e.t(e.component.footer))?"":t)+"\n </div>\n"),n+"\n"}},96515:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'<img style="width: 100%;" ref="signatureImage">\n'}},95339:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(90538),o=n(96515);t.default={form:r.default,html:o.default}},87090:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="ui table striped celled">\n <thead>\n <tr>\n <th></th>\n ',e.component.values.forEach((function(r){n+='\n <th style="text-align: center;">'+(null==(t=e.t(r.label))?"":t)+"</th>\n "})),n+="\n </tr>\n </thead>\n <tbody>\n ",e.component.questions.forEach((function(r){n+="\n <tr>\n <td>"+(null==(t=e.t(r.label))?"":t)+"</td>\n ",e.component.values.forEach((function(o){n+='\n <td style="text-align: center;">\n <input type="radio" name="'+(null==(t=e.self.getInputName(r))?"":t)+'" value="'+(null==(t=o.value)?"":t)+'" id="'+(null==(t=e.key)?"":t)+"-"+(null==(t=r.value)?"":t)+"-"+(null==(t=o.value)?"":t)+'" ref="input">\n </td>\n '})),n+="\n </tr>\n "})),n+="\n </tbody>\n</table>\n"}},13556:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="ui table striped celled">\n <tbody>\n ',e.component.questions.forEach((function(r){n+="\n <tr>\n <th>"+(null==(t=e.t(r.label))?"":t)+"</th>\n <td>\n ",e.component.values.forEach((function(o){n+="\n ",e.value&&e.value.hasOwnProperty(r.value)&&e.value[r.value]===o.value&&(n+="\n "+(null==(t=e.t(o.label))?"":t)+"\n "),n+="\n "})),n+="\n </td>\n </tr>\n "})),n+="\n </tbody>\n</table>\n"}},88020:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(87090),o=n(13556);t.default={form:r.default,html:o.default}},74216:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.component.components.forEach((function(r,o){n+='\n <h4 class="ui top attached block header">'+(null==(t=e.t(r.label))?"":t)+'</h4>\n <div class="ui bottom attached segment">\n '+(null==(t=e.tabComponents[o])?"":t)+"\n </div>\n"})),n+="\n"}},25238:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="tab-container'+(null==(t=e.component.verticalLayout?" card-vertical":"")?"":t)+'">\n <div class="ui top attached tabular menu'+(null==(t=e.component.verticalLayout?" nav-tabs-vertical":"")?"":t)+'">
2\n ',e.component.components.forEach((function(r,o){n+='\n <a class="item'+(null==(t=e.currentTab===o?" active":"")?"":t)+'" role="presentation" ref="'+(null==(t=e.tabLinkKey)?"":t)+'">'+(null==(t=e.t(r.label))?"":t)+"</a>\n "})),n+="\n </div>\n ",e.component.components.forEach((function(r,o){n+='\n <div role="tabpanel" class="ui bottom attached tab segment'+(null==(t=e.currentTab===o?" active":"")?"":t)+'" ref="'+(null==(t=e.tabKey)?"":t)+'"">'+(null==(t=e.tabComponents[o])?"":t)+"</div>\n "})),n+="\n</div>\n"}},31533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(74216),o=n(25238);t.default={flat:r.default,form:o.default}},949:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<table class="ui table\n '+(null==(t=e.component.striped?"striped":"")?"":t)+"\n "+(null==(t=e.component.bordered?"celled":"")?"":t)+"\n "+(null==(t=e.component.hover?"selectable":"")?"":t)+"\n "+(null==(t=e.component.condensed?"compact":"padded")?"":t)+'\n ">\n ',e.component.header&&e.component.header.length>0&&(n+="\n <thead>\n <tr>\n ",e.component.header.forEach((function(r){n+="\n <th>"+(null==(t=e.t(r))?"":t)+"</th>\n "})),n+="\n </tr>\n </thead>
2\n "),n+="\n <tbody>\n ",e.tableComponents.forEach((function(r,o){n+='\n <tr ref="row-'+(null==(t=e.id)?"":t)+'">\n ',r.forEach((function(r,o){n+='\n <td ref="'+(null==(t=e.tableKey)?"":t)+"-"+(null==(t=e.rowIndex)?"":t)+'"',e.cellClassName&&(n+=' class="'+(null==(t=e.cellClassName)?"":t)+'"'),n+=">"+(null==(t=r)?"":t)+"</td>\n "})),n+="\n </tr>\n "})),n+="\n </tbody>\n</table>\n"}},83725:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(949);t.default={form:r.default}},37552:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.node.isRoot?n+='\n <div class="ui relaxed list">\n <div class="item" ref="root" role="listitem">\n ':n+='\n <div ref="node" class="item tree__level" role="listitem">\n ',n+="\n ",e.content&&(n+='\n <div ref="content" class="tree__node-content content">\n '+(null==(t=e.content)?"":t)+"\n </div>\n "),n+="\n ",e.childNodes&&e.childNodes.length&&(n+='\n <div ref="childNodes" class="tree__node-children list" role="list">\n '+(null==(t=e.childNodes.join(""))?"":t)+"\n </div>\n "),n+="\n ",e.node.isRoot?n+="\n </div>\n </div>\n ":n+="\n </div>\n",n+"\n"}},62441:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(37552);t.default={form:r.default}},16016:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="node-edit">\n <div ref="nodeEdit">'+(null==(t=e.children)?"":t)+"</div>\n ",e.readOnly||(n+='\n <div class="node-actions">\n <button ref="saveNode" class="ui mini primary button saveNode">'+(null==(t=e.t("Save"))?"":t)+'</button>\n <button ref="cancelNode" class="ui mini negative button cancelNode">'+(null==(t=e.t("Cancel"))?"":t)+"\n </div>\n "),n+"\n</div>\n"}},12923:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16016),o=n(47379);t.default={treeView:{form:o.default},treeEdit:{form:r.default}}},47379:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="ui grid">\n <div class="row">\n ',e.values.forEach((function(e){n+='\n <div class="two wide column">\n '+(null==(t=e)?"":t)+"\n </div>\n "})),n+='\n <div class="five wide column">\n <div class="ui mini right floated buttons">\n ',e.node.hasChildren&&(n+='\n <button ref="toggleNode" class="ui button toggleNode">'+(null==(t=e.t(e.node.collapsed?"Expand":"Collapse"))?"":t)+'</button>\n <div class="or"></div>\n '),n+="\n ",e.readOnly||(n+='\n <button ref="addChild" class="ui button primary addChild">'+(null==(t=e.t("Add"))?"":t)+'</button>\n <div class="or"></div>\n <button ref="editNode" class="ui button editNode">'+(null==(t=e.t("Edit"))?"":t)+'</button>\n <div class="or"></div>\n <button ref="removeNode" class="ui button negative removeNode">'+(null==(t=e.t("Delete"))?"":t)+"</button>\n ",e.node.revertAvailable&&(n+='\n <div class="or"></div>\n <button ref="revertNode" class="ui button negative revertNode">'+(null==(t=e.t("Revert"))?"":t)+"</button>\n "),n+="\n "),n+="\n </div>\n </div>\n </div>\n</div>\n"}},21710:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="ui visible message"><p>'+(null==(t=e.t(e.component.title))?"":t)+"</p></div>\n"}},32178:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="'+(null==(t=e.classes)?"":t)+' ui form" ref="webform" novalidate>'+(null==(t=e.children)?"":t)+"</div>\n"}},4599:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(21710),o=n(32178);t.default={form:o.default,builder:r.default}},2230:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="ui secondary segment">\n <div class="content" ref="'+(null==(t=e.nestedKey)?"":t)+'">\n '+(null==(t=e.children)?"":t)+"\n </div>\n</div>\n"}},76709:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=n(2230);t.default={form:r.default}},70084:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'<div class="formio-wizard-builder-component-title">'+(null==(t=e.t(e.component.title))?"":t)+"</div>\n"}},16466:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="'+(null==(t=e.className)?"":t)+'">\n <div style="position: relative;">\n ',"wizardHeaderVertical"===e.wizardHeaderType?n+='\n <div class="ui stackable grid">\n <div class="three wide computer sixteen wide tablet sixteen wide mobile column">\n '+(null==(t=e.wizardHeader)?"":t)+'\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==(t=e.wizardKey)?"":t)+'">\n '+(null==(t=e.components)?"":t)+'\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==(t=e.wizardNav)?"":t)+"\n </div>\n </div>\n ":n+=" \n "+(null==(t=e.wizardHeader)?"":t)+'\n <div class="wizard-page" ref="'+(null==(t=e.wizardKey)?"":t)+'">\n '+(null==(t=e.components)?"":t)+"\n </div>\n "+(null==(t=e.wizardNav)?"":t)+"\n ",n+" \n </div>\n</div>"}},42317:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(70084),o=n(16466);t.default={form:o.default,builder:r.default}},93363:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<nav aria-label="navigation" id="'+(null==(t=e.wizardKey)?"":t)+'-header" ref="'+(null==(t=e.wizardKey)?"":t)+'-header">\n <div class="ui steps">\n ',e.panels.forEach((function(r,o){n+='\n <a class="'+(null==(t=e.currentPage===o?" active":"")?"":t)+' step" ref="'+(null==(t=e.wizardKey)?"":t)+'-link">\n <div class="content">\n <div class="title">\n '+(null==(t=r.title)?"":t)+"\n ",r.tooltip&&e.currentPage===o&&(n+='\n <span data-tooltip="'+(null==(t=e.wizardPageTooltip)?"":t)+'" data-position="right center">\n <i class="'+(null==(t=e.iconClass("question-sign"))?"":t)+'"></i>\n </span>\n '),n+="\n </div>\n </div>\n </a>\n "})),n+="\n </div>\n</nav>\n"}},86739:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(93363);t.default={form:r.default}},28267:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<nav aria-label="navigation" id="'+(null==(t=e.wizardKey)?"":t)+'-header">\n <div class=" ui stackable grid" style="border-bottom:0;">\n ',e.panels.forEach((function(r,o){n+='\n <div class="classic-pagination-page four wide computer eight wide tablet sixteen wide mobile column\n '+(null==(t=e.currentPage<o?" disabled":"")?"":t)+"\n "+(null==(t=e.currentPage===o?" active":"")?"":t)+"\n "+(null==(t=e.currentPage>o?" complete":"")?"":t)+'" style="padding: 0;">\n <div class="ui center aligned header classic-pagination-title">'+(null==(t=e.t(r.title,{_userInput:!0}))?"":t)+"</div>\n ",e.panels.length>1&&(n+='\n <div class="classic-pagination-progress" style="border-radius: 0;"><div class="classic-pagination-progress-bar"></div></div>\n '),n+=' \n <span ref="'+(null==(t=e.wizardKey)?"":t)+'-link" class="classic-pagination-dot" style="top: 45px;"></span>\n </div>\n '})),n+="\n </div>\n</nav>\n"}},7130:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28267);t.default={form:r.default}},81256:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<nav aria-label="navigation" id="'+(null==(t=e.wizardKey)?"":t)+'-header">\n <ul class="ui vertical fluid tabular menu">
2\n ',e.panels.forEach((function(r,o){n+='\n <li class=" item page-item'+(null==(t=e.currentPage===o?" active":"")?"":t)+'" style="cursor: pointer;">\n <span class="page-link" ref="'+(null==(t=e.wizardKey)?"":t)+'-link" style="margin-left: 0px;">\n '+(null==(t=e.t(r.title,{_userInput:!0}))?"":t)+"\n ",r.tooltip&&e.currentPage===o&&(n+='\n <i ref="'+(null==(t=e.wizardKey)?"":t)+'-tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=r.tooltip)?"":t)+'"></i>\n '),n+="\n </span>\n </li>\n "})),n+="\n </ul>\n</nav>\n"}},54815:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(81256);t.default={form:r.default}},41993:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='<div class="ui horizontal list" id="'+(null==(t=e.wizardKey)?"":t)+'-nav">\n ',e.buttons.cancel&&(n+='\n <div class="item">\n <button class="ui button secondary btn-wizard-nav-cancel" ref="'+(null==(t=e.wizardKey)?"":t)+'-cancel">'+(null==(t=e.t("cancel"))?"":t)+"</button>\n </div>\n "),n+="\n ",e.buttons.previous&&(n+='\n <div class="item">\n <button class="ui button primary btn-wizard-nav-previous" ref="'+(null==(t=e.wizardKey)?"":t)+'-previous">'+(null==(t=e.t("previous"))?"":t)+"</button>\n </div>\n "),n+="\n ",e.buttons.next&&(n+='\n <div class="item">\n <button class="ui button primary btn-wizard-nav-next" ref="'+(null==(t=e.wizardKey)?"":t)+'-next">'+(null==(t=e.t("next"))?"":t)+"</button>\n </div>\n "),n+="\n ",e.buttons.submit&&(n+='\n <div class="item">\n <button class="ui button primary btn-wizard-nav-submit" ref="'+(null==(t=e.wizardKey)?"":t)+'-submit">'+(null==(t=e.t("submit"))?"":t)+"</button>\n </div>\n "),n+"\n</div>\n"}},86858:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(41993);t.default={form:r.default}},47853:function(e){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.inputElement,n=e.afterUpdate,r=(0,a.default)(e),o=function(e){var t=e.target.value;r.update(t),"function"==typeof n&&n(t)};return t.addEventListener("input",o),r.update(t.value),{textMaskInputElement:r,destroy:function(){t.removeEventListener("input",o)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.conformToMask=void 0,t.maskInput=o;var i=n(2);Object.defineProperty(t,"conformToMask",{enumerable:!0,get:function(){return r(i).default}});var a=r(n(5));t.default=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.placeholderChar="_",t.strFunction="function"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,o.isArray)(t)){if((void 0===t?"undefined":r(t))!==i.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");t=t(e,n),t=(0,o.processCaretTraps)(t).maskWithoutCaretTraps}var l=n.guide,u=void 0===l||l,c=n.previousConformedValue,f=void 0===c?s:c,d=n.placeholderChar,p=void 0===d?i.placeholderChar:d,h=n.placeholder,m=void 0===h?(0,o.convertMaskToPlaceholder)(t,p):h,v=n.currentCaretPosition,y=n.keepCharPositions,b=!1===u&&void 0!==f,g=e.length,w=f.length,k=m.length,_=t.length,O=g-w,x=O>0,S=v+(x?-O:0),j=S+Math.abs(O);if(!0===y&&!x){for(var P=s,C=S;C<j;C++)m[C]===p&&(P+=p);e=e.slice(0,S)+P+e.slice(S,g)}for(var E=e.split(s).map((function(e,t){return{char:e,isNew:t>=S&&t<j}})),A=g-1;A>=0;A--){var M=E[A].char;M!==p&&M===m[A>=S&&w===_?A-O:A]&&E.splice(A,1)}var R=s,T=!1;e:for(var D=0;D<k;D++){var I=m[D];if(I===p){if(E.length>0)for(;E.length>0;){var V=E.shift(),L=V.char,N=V.isNew;if(L===p&&!0!==b){R+=p;continue e}
2if(t[D].test(L)){if(!0===y&&!1!==N&&f!==s&&!1!==u&&x){for(var F=E.length,B=null,z=0;z<F;z++){var U=E[z];if(U.char!==p&&!1===U.isNew)break;if(U.char===p){B=z;break}}null!==B?(R+=L,E.splice(B,1)):D--}else R+=L;continue e}T=!0}!1===b&&(R+=m.substr(D,k));break}R+=I}if(b&&!1===x){for(var H=null,q=0;q<R.length;q++)m[q]===p&&(H=q);R=null!==H?R.substr(0,H+1):s}return{conformedValue:R,meta:{someCharsRejected:T}}};var o=n(3),i=n(1),a=[],s=""},function(e,t,n){"use strict";function r(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}Object.defineProperty(t,"__esModule",{value:!0}),t.convertMaskToPlaceholder=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.placeholderChar;if(!r(e))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(t))throw new 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(t)+"\n\nThe mask that was received is: "+JSON.stringify(e));return e.map((function(e){return e instanceof RegExp?t:e})).join("")},t.isArray=r,t.isString=function(e){return"string"==typeof e||e instanceof String},t.isNumber=function(e){return"number"==typeof e&&void 0===e.length&&!isNaN(e)},t.isNil=function(e){return null==e},t.processCaretTraps=function(e){for(var t=[],n=void 0;-1!==(n=e.indexOf(a));)t.push(n),e.splice(n,1);return{maskWithoutCaretTraps:e,indexes:t}};var o=n(1),i=[],a="[]"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.previousConformedValue,o=void 0===t?r:t,i=e.previousPlaceholder,a=void 0===i?r:i,s=e.currentCaretPosition,l=void 0===s?0:s,u=e.conformedValue,c=e.rawValue,f=e.placeholderChar,d=e.placeholder,p=e.indexesOfPipedChars,h=void 0===p?n:p,m=e.caretTrapIndexes,v=void 0===m?n:m;if(0===l||!c.length)return 0;var y=c.length,b=o.length,g=d.length,w=u.length,k=y-b,_=k>0;if(k>1&&!_&&0!==b)return l;var O=0,x=void 0,S=void 0;if(!_||o!==u&&u!==d){var j=u.toLowerCase(),P=c.toLowerCase().substr(0,l).split(r).filter((function(e){return-1!==j.indexOf(e)}));S=P[P.length-1];var C=a.substr(0,P.length).split(r).filter((function(e){return e!==f})).length,E=d.substr(0,P.length).split(r).filter((function(e){return e!==f})).length,A=E!==C,M=void 0!==a[P.length-1]&&void 0!==d[P.length-2]&&a[P.length-1]!==f&&a[P.length-1]!==d[P.length-1]&&a[P.length-1]===d[P.length-2];!_&&(A||M)&&C>0&&d.indexOf(S)>-1&&void 0!==c[l]&&(x=!0,S=c[l]);for(var R=h.map((function(e){return j[e]})),T=R.filter((function(e){return e===S})).length,D=P.filter((function(e){return e===S})).length,I=d.substr(0,d.indexOf(f)).split(r).filter((function(e,t){return e===S&&c[t]!==e})).length,V=I+D+T+(x?1:0),L=0,N=0;N<w&&(O=N+1,j[N]===S&&L++,!(L>=V));N++);}else O=l-k;if(_){for(var F=O,B=O;B<=g;B++)if(d[B]===f&&(F=B),d[B]===f||-1!==v.indexOf(B)||B===g)return F}else if(x){for(var z=O-1;z>=0;z--)if(u[z]===S||-1!==v.indexOf(z)||0===z)return z}else for(var U=O;U>=0;U--)if(d[U-1]===f||-1!==v.indexOf(U)||0===U)return U};var n=[],r=""},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){(n?n.activeElement:document.activeElement)===e&&(m?v((function(){return e.setSelectionRange(t,t,p)}),0):e.setSelectionRange(t,t,p))}function i(e){if((0,c.isString)(e))return e;if((0,c.isNumber)(e))return String(e);if(null==e)return d;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(e))}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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};t.default=function(e){var t={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:t,update:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,p=r.inputElement,m=r.mask,v=r.guide,y=r.pipe,b=r.placeholderChar,g=void 0===b?f.placeholderChar:b,w=r.keepCharPositions,k=void 0!==w&&w,_=r.showMask,O=void 0!==_&&_;if(void 0===n&&(n=p.value),n!==t.previousConformedValue){(void 0===m?"undefined":s(m))===h&&void 0!==m.pipe&&void 0!==m.mask&&(y=m.pipe,m=m.mask);var x=void 0,S=void 0;if(m instanceof Array&&(x=(0,c.convertMaskToPlaceholder)(m,g)),!1!==m){var j=i(n),P=p.selectionEnd,C=t.previousConformedValue,E=t.previousPlaceholder,A=void 0;if((void 0===m?"undefined":s(m))===f.strFunction){if(!1===(S=m(j,{currentCaretPosition:P,previousConformedValue:C,placeholderChar:g})))return;var M=(0,c.processCaretTraps)(S);
2S=M.maskWithoutCaretTraps,A=M.indexes,x=(0,c.convertMaskToPlaceholder)(S,g)}else S=m;var R={previousConformedValue:C,guide:v,placeholderChar:g,pipe:y,placeholder:x,currentCaretPosition:P,keepCharPositions:k},T=(0,u.default)(j,S,R).conformedValue,D=(void 0===y?"undefined":s(y))===f.strFunction,I={};D&&(!1===(I=y(T,a({rawValue:j},R)))?I={value:C,rejected:!0}:(0,c.isString)(I)&&(I={value:I}));var V=D?I.value:T,L=(0,l.default)({previousConformedValue:C,previousPlaceholder:E,conformedValue:V,placeholder:x,rawValue:j,currentCaretPosition:P,placeholderChar:g,indexesOfPipedChars:I.indexesOfPipedChars,caretTrapIndexes:A}),N=V===x&&0===L?O?x:d:V;t.previousConformedValue=N,t.previousPlaceholder=x,p.value!==N&&(p.value=N,o(p,L,e.shadowRoot))}}}}};var l=r(n(4)),u=r(n(2)),c=n(3),f=n(1),d="",p="none",h="object",m="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),v="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout}])},77338:function(e){e.exports=function(){"use strict";return function(e){var t,n,r=document,o=e.container||r.createElement("div"),i=o.style,a=navigator.userAgent,s=-1!==a.indexOf("Firefox")&&-1!==a.indexOf("Mobile"),l=e.debounceWaitMs||0,u=e.preventSubmit||!1,c=e.disableAutoSelect||!1,f=s?"input":"keyup",d=[],p="",h=2,m=e.showOnFocus,v=0;if(void 0!==e.minLength&&(h=e.minLength),!e.input)throw new Error("input undefined");var y=e.input;function b(){n&&window.clearTimeout(n)}function g(){return!!o.parentNode}function w(){var e;v++,d=[],p="",t=void 0,(e=o.parentNode)&&e.removeChild(o)}function k(){for(;o.firstChild;)o.removeChild(o.firstChild);var n=function(e,t){var n=r.createElement("div");return n.textContent=e.label||"",n};e.render&&(n=e.render);var a=function(e,t){var n=r.createElement("div");return n.textContent=e,n};e.renderGroup&&(a=e.renderGroup);var s=r.createDocumentFragment(),l="#9?$";if(d.forEach((function(r){if(r.group&&r.group!==l){l=r.group;var o=a(r.group,p);o&&(o.className+=" group",s.appendChild(o))}var i=n(r,p);i&&(i.addEventListener("click",(function(t){e.onSelect(r,y),w(),t.preventDefault(),t.stopPropagation()})),r===t&&(i.className+=" selected"),s.appendChild(i))})),o.appendChild(s),d.length<1){if(!e.emptyMsg)return void w();var u=r.createElement("div");u.className="empty",u.textContent=e.emptyMsg,o.appendChild(u)}o.parentNode||r.body.appendChild(o),function(){if(g()){i.height="auto",i.width=y.offsetWidth+"px";var t,n=0;a(),a(),e.customize&&t&&e.customize(y,t,o,n)}function a(){var e=r.documentElement,o=e.clientTop||r.body.clientTop||0,a=e.clientLeft||r.body.clientLeft||0,s=window.pageYOffset||e.scrollTop,l=window.pageXOffset||e.scrollLeft,u=(t=y.getBoundingClientRect()).top+y.offsetHeight+s-o,c=t.left+l-a;i.top=u+"px",i.left=c+"px",(n=window.innerHeight-(t.top+y.offsetHeight))<0&&(n=0),i.top=u+"px",i.bottom="",i.left=c+"px",i.maxHeight=n+"px"}}(),function(){var e=o.getElementsByClassName("selected");if(e.length>0){var t=e[0],n=t.previousElementSibling;if(n&&-1!==n.className.indexOf("group")&&!n.previousElementSibling&&(t=n),t.offsetTop<o.scrollTop)o.scrollTop=t.offsetTop;else{var r=t.offsetTop+t.offsetHeight,i=o.scrollTop+o.offsetHeight;r>i&&(o.scrollTop+=r-i)}}}()}function _(){g()&&k()}function O(){_()}function x(e){e.target!==o?_():e.preventDefault()}function S(e){for(var t=e.which||e.keyCode||0,n=0,r=[38,13,27,39,37,16,17,18,20,91,9];n<r.length;n++)if(t===r[n])return;t>=112&&t<=123||40===t&&g()||C(0)}function j(n){var r=n.which||n.keyCode||0;if(38===r||40===r||27===r){var o=g();if(27===r)w();else{if(!o||d.length<1)return;38===r?function(){if(d.length<1)t=void 0;else if(t===d[0])t=d[d.length-1];else for(var e=d.length-1;e>0;e--)if(t===d[e]||1===e){t=d[e-1];break}}():function(){if(d.length<1&&(t=void 0),t&&t!==d[d.length-1]){for(var e=0;e<d.length-1;e++)if(t===d[e]){t=d[e+1];break}}else t=d[0]}(),k()}return n.preventDefault(),void(o&&n.stopPropagation())}13===r&&(t&&(e.onSelect(t,y),w()),u&&n.preventDefault())}function P(){m&&C(1)}function C(r){var o=++v,i=y.value;i.length>=h||1===r?(b(),n=window.setTimeout((function(){e.fetch(i,(function(e){v===o&&e&&(p=i,t=(d=e).length<1||c?void 0:d[0],k())}),r)}),0===r?l:0)):w()}function E(){setTimeout((function(){r.activeElement!==y&&w()}),200)}return o.className="autocomplete "+(e.className||""),i.position="absolute",o.addEventListener("mousedown",(function(e){e.stopPropagation(),e.preventDefault()})),o.addEventListener("focus",(function(){return y.focus()})),y.addEventListener("keydown",j),y.addEventListener(f,S),y.addEventListener("blur",E),y.addEventListener("focus",P),window.addEventListener("resize",O),r.addEventListener("scroll",x,!0),{destroy:function(){y.removeEventListener("focus",P),y.removeEventListener("keydown",j),y.removeEventListener(f,S),y.removeEventListener("blur",E),window.removeEventListener("resize",O),r.removeEventListener("scroll",x,!0),b(),w()}}}}()},4389:function(e,t){t.defaults={},t.set=function(e,n,r){var o=r||{},i=t.defaults,a=o.expires||i.expires,s=o.domain||i.domain,l=void 0!==o.path?o.path:void 0!==i.path?i.path:"/",u=void 0!==o.secure?o.secure:i.secure,c=void 0!==o.httponly?o.httponly:i.httponly,f=void 0!==o.samesite?o.samesite:i.samesite,d=a?new Date("number"==typeof a?(new Date).getTime()+864e5*a:a):0;document.cookie=e.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+n.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(d&&d.getTime()>=0?";expires="+d.toUTCString():"")+(s?";domain="+s:"")+(l?";path="+l:"")+(u?";secure":"")+(c?";httponly":"")+(f?";samesite="+f:"")},t.get=function(e){for(var t=document.cookie.split(";");t.length;){var n=t.pop(),r=n.indexOf("=");
2if(r=r<0?n.length:r,decodeURIComponent(n.slice(0,r).replace(/^\s+/,""))===e)return decodeURIComponent(n.slice(r+1))}return null},t.erase=function(e,n){t.set(e,"",{expires:-1,domain:n&&n.domain,path:n&&n.path,secure:0,httponly:0})},t.all=function(){for(var e={},t=document.cookie.split(";");t.length;){var n=t.pop(),r=n.indexOf("=");r=r<0?n.length:r,e[decodeURIComponent(n.slice(0,r).replace(/^\s+/,""))]=decodeURIComponent(n.slice(r+1))}return e}},74247:function(e,t){var n,r;void 0===(r="function"==typeof(n=function(){var e=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function t(e){var t,n,r=e.replace(/^v/,"").replace(/\+.*$/,""),o=(n="-",-1===(t=r).indexOf(n)?t.length:t.indexOf(n)),i=r.substring(0,o).split(".");return i.push(r.substring(o+1)),i}function n(e){return isNaN(Number(e))?e:Number(e)}function r(t){if("string"!=typeof t)throw new TypeError("Invalid argument expected string");if(!e.test(t))throw new Error("Invalid argument not valid semver
2('"+t+"' received)")}function o(e,o){[e,o].forEach(r);for(var i=t(e),a=t(o),s=0;s<Math.max(i.length-1,a.length-1);s++){var l=parseInt(i[s]||0,10),u=parseInt(a[s]||0,10);if(l>u)return 1;if(u>l)return-1}var c=i[i.length-1],f=a[a.length-1];if(c&&f){var d=c.split(".").map(n),p=f.split(".").map(n);for(s=0;s<Math.max(d.length,p.length);s++){if(void 0===d[s]||"string"==typeof p[s]&&"number"==typeof d[s])return-1;if(void 0===p[s]||"string"==typeof d[s]&&"number"==typeof p[s])return 1;if(d[s]>p[s])return 1;if(p[s]>d[s])return-1}}else if(c||f)return c?-1:1;return 0}var i=[">",">=","=","<","<="],a={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return o.validate=function(t){return"string"==typeof t&&e.test(t)},o.compare=function(e,t,n){!function(e){if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===i.indexOf(e))throw new TypeError("Invalid operator, expected one of "+i.join("|"))}(n);var r=o(e,t);return a[n].indexOf(r)>-1},o})?n.apply(t,[]):n)||(e.exports=r)},19662:function(e,t,n){var r=n(17854),o=n(60614),i=n(66330),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a function")}},39483:function(e,t,n){var r=n(17854),o=n(4411),i=n(66330),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a constructor")}},96077:function(e,t,n){var r=n(17854),o=n(60614),i=r.String,a=r.TypeError;e.exports=function(e){if("object"==typeof e||o(e))return e;throw a("Can't set "+i(e)+" as a prototype")}},51223:function(e,t,n){var r=n(5112),o=n(70030),i=n(3070),a=r("unscopables"),s=Array.prototype;null==s[a]&&i.f(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},31530:function(e,t,n){"use strict";var r=n(28710).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},25787:function(e,t,n){var r=n(17854),o=n(47976),i=r.TypeError;e.exports=function(e,t){if(o(t,e))return e;throw i("Incorrect invocation")}},19670:function(e,t,n){var r=n(17854),o=n(70111),i=r.String,a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not an object")}},24019:function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},7556:function(e,t,n){var r=n(47293);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},90260:function(e,t,n){"use strict";var r,o,i,a=n(24019),s=n(19781),l=n(17854),u=n(60614),c=n(70111),f=n(92597),d=n(70648),p=n(66330),h=n(68880),m=n(31320),v=n(3070).f,y=n(47976),b=n(79518),g=n(27674),w=n(5112),k=n(69711),_=l.Int8Array,O=_&&_.prototype,x=l.Uint8ClampedArray,S=x&&x.prototype,j=_&&b(_),P=O&&b(O),C=Object.prototype,E=l.TypeError,A=w("toStringTag"),M=k("TYPED_ARRAY_TAG"),R=k("TYPED_ARRAY_CONSTRUCTOR"),T=a&&!!g&&"Opera"!==d(l.opera),D=!1,I={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},V={BigInt64Array:8,BigUint64Array:8},L=function(e){if(!c(e))return!1;var t=d(e);return f(I,t)||f(V,t)};for(r in I)(i=(o=l[r])&&o.prototype)?h(i,R,o):T=!1;for(r in V)(i=(o=l[r])&&o.prototype)&&h(i,R,o);if((!T||!u(j)||j===Function.prototype)&&(j=function(){throw E("Incorrect invocation")},T))for(r in I)l[r]&&g(l[r],j);if((!T||!P||P===C)&&(P=j.prototype,T))for(r in I)l[r]&&g(l[r].prototype,P);if(T&&b(S)!==P&&g(S,P),s&&!f(P,A))for(r in D=!0,v(P,A,{get:function(){return c(this)?this[M]:void 0}}),I)l[r]&&h(l[r],M,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:T,TYPED_ARRAY_CONSTRUCTOR:R,TYPED_ARRAY_TAG:D&&M,aTypedArray:function(e){if(L(e))return e;throw E("Target is not a typed array")},aTypedArrayConstructor:function(e){if(u(e)&&(!g||y(j,e)))return e;throw E(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(s){if(n)for(var r in I){var o=l[r];if(o&&f(o.prototype,e))try{delete o.prototype[e]}catch(e){}}P[e]&&!n||m(P,e,n?t:T&&O[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(s){if(g){if(n)for(r in I)if((o=l[r])&&f(o,e))try{delete o[e]}catch(e){}if(j[e]&&!n)return;try{return m(j,e,n?t:T&&j[e]||t)}catch(e){}}for(r in I)!(o=l[r])||o[e]&&!n||m(o,e,t)}},isView:function(e){if(!c(e))return!1;var t=d(e);return"DataView"===t||f(I,t)||f(V,t)},isTypedArray:L,TypedArray:j,TypedArrayPrototype:P}},13331:function(e,t,n){"use strict";var r=n(17854),o=n(1702),i=n(19781),a=n(24019),s=n(76530),l=n(68880),u=n(12248),c=n(47293),f=n(25787),d=n(19303),p=n(17466),h=n(57067),m=n(11179),v=n(79518),y=n(27674),b=n(8006).f,g=n(3070).f,w=n(21285),k=n(41589),_=n(58003),O=n(29909),x=s.PROPER,S=s.CONFIGURABLE,j=O.get,P=O.set,C="ArrayBuffer",E="Wrong index",A=r.ArrayBuffer,M=A,R=M&&M.prototype,T=r.DataView,D=T&&T.prototype,I=Object.prototype,V=r.Array,L=r.RangeError,N=o(w),F=o([].reverse),B=m.pack,z=m.unpack,U=function(e){return[255&e]},H=function(e){return[255&e,e>>8&255]},q=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},W=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},K=function(e){return B(e,23,4)},Y=function(e){return B(e,52,8)},G=function(e,t){g(e.prototype,t,{get:function(){return j(this)[t]}})},$=function(e,t,n,r){var o=h(n),i=j(e);if(o+t>i.byteLength)throw L(E);var a=j(i.buffer).bytes,s=o+i.byteOffset,l=k(a,s,s+t);return r?l:F(l)},J=function(e,t,n,r,o,i){var a=h(n),s=j(e);if(a+t>s.byteLength)throw L(E);for(var l=j(s.buffer).bytes,u=a+s.byteOffset,c=r(+o),f=0;f<t;f++)l[u+f]=c[i?f:t-f-1]};if(a){var Z=x&&A.name!==C;if(c((function(){A(1)}))&&c((function(){new A(-1)}))&&!c((function(){return new A,new A(1.5),new A(NaN),Z&&!S})))Z&&S&&l(A,"name",C);else{(M=function(e){return f(this,R),new A(h(e))}).prototype=R;for(var X,Q=b(A),ee=0;Q.length>ee;)(X=Q[ee++])in M||l(M,X,A[X]);R.constructor=M}y&&v(D)!==I&&y(D,I);var te=new T(new M(2)),ne=o(D.setInt8);te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||u(D,{setInt8:function(e,t){ne(this,e,t<<24>>24)},setUint8:function(e,t){ne(this,e,t<<24>>24)}},{unsafe:!0})}else R=(M=function(e){f(this,R);var t=h(e);P(this,{bytes:N(V(t),0),byteLength:t}),i||(this.byteLength=t)}).prototype,D=(T=function(e,t,n){f(this,D),f(e,R);var r=j(e).byteLength,o=d(t);if(o<0||o>r)throw L("Wrong offset");if(o+(n=void 0===n?r-o:p(n))>r)throw L("Wrong length");P(this,{buffer:e,byteLength:n,byteOffset:o}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=o)}).prototype,i&&(G(M,"byteLength"),G(T,"buffer"),G(T,"byteLength"),G(T,"byteOffset")),u(D,{getInt8:function(e){return $(this,1,e)[0]<<24>>24},getUint8:function(e){return $(this,1,e)[0]},getInt16:function(e){var t=$(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=$(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return W($(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return W($(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return z($(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return z($(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){J(this,1,e,U,t)},setUint8:function(e,t){J(this,1,e,U,t)},setInt16:function(e,t){J(this,2,e,H,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){J(this,2,e,H,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){J(this,4,e,q,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){J(this,4,e,q,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){J(this,4,e,K,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){J(this,8,e,Y,t,arguments.length>2?arguments[2]:void 0)}});_(M,C),_(T,"DataView"),e.exports={ArrayBuffer:M,DataView:T}},1048:function(e,t,n){"use strict";var r=n(47908),o=n(51400),i=n(26244),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=i(n),l=o(e,s),u=o(t,s),c=arguments.length>2?arguments[2]:void 0,f=a((void 0===c?s:o(c,s))-u,s-l),d=1;for(u<l&&l<u+f&&(d=-1,u+=f-1,l+=f-1);f-- >0;)u in n?n[l]=n[u]:delete n[l],l+=d,u+=d;return n}},21285:function(e,t,n){"use strict";var r=n(47908),o=n(51400),i=n(26244);e.exports=function(e){for(var t=r(this),n=i(t),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),l=a>
vendor: 6,508 bytes, line 2
22?arguments[2]:void 0,u=void 0===l?n:o(l,n);u>s;)t[s++]=e;return t}},18533:function(e,t,n){"use strict";var r=n(42092).forEach,o=n(9341)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},97745:function(e){e.exports=function(e,t){for(var n=0,r=t.length,o=new e(r);r>n;)o[n]=t[n++];return o}},48457:function(e,t,n){"use strict";var r=n(17854),o=n(49974),i=n(46916),a=n(47908),s=n(53411),l=n(97659),u=n(4411),c=n(26244),f=n(86135),d=n(18554),p=n(71246),h=r.Array;e.exports=function(e){var t=a(e),n=u(this),r=arguments.length,m=r>1?arguments[1]:void 0,v=void 0!==m;v&&(m=o(m,r>2?arguments[2]:void 0));var y,b,g,w,k,_,O=p(t),x=0;if(!O||this==h&&l(O))for(y=c(t),b=n?new this(y):h(y);y>x;x++)_=v?m(t[x],x):t[x],f(b,x,_);else for(k=(w=d(t,O)).next,b=n?new this:[];!(g=i(k,w)).done;x++)_=v?s(w,m,[g.value,x],!0):g.value,f(b,x,_);return b.length=x,b}},41318:function(e,t,n){var r=n(45656),o=n(51400),i=n(26244),a=function(e){return function(t,n,a){var s,l=r(t),u=i(l),c=o(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},42092:function(e,t,n){var r=n(49974),o=n(1702),i=n(68361),a=n(47908),s=n(26244),l=n(65417),u=o([].push),c=function(e){var t=1==e,n=2==e,o=3==e,c=4==e,f=6==e,d=7==e,p=5==e||f;return function(h,m,v,y){for(var b,g,w=a(h),k=i(w),_=r(m,v),O=s(k),x=0,S=y||l,j=t?S(h,O):n||d?S(h,0):void 0;O>x;x++)if((p||x in k)&&(g=_(b=k[x],x,w),e))if(t)j[x]=g;else if(g)switch(e){case 3:return!0;case 5:return b;case 6:return x;case 2:u(j,b)}else switch(e){case 4:return!1;case 7:u(j,b)}return f?-1:o||c?c:j}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},86583:function(e,t,n){"use strict";var r=n(22104),o=n(45656),i=n(19303),a=n(26244),s=n(9341),l=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,f=s("lastIndexOf"),d=c||!f;e.exports=d?function(e){if(c)return r(u,this,arguments)||0;var t=o(this),n=a(t),s=n-1;for(arguments.length>1&&(s=l(s,i(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:u},81194:function(e,t,n){var r=n(47293),o=n(5112),i=n(7392),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},9341:function(e,t,n){"use strict";var r=n(47293);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},53671:function(e,t,n){var r=n(17854),o=n(19662),i=n(47908),a=n(68361),s=n(26244),l=r.TypeError,u=function(e){return function(t,n,r,u){o(n);var c=i(t),f=a(c),d=s(c),p=e?d-1:0,h=e?-1:1;if(r<2)for(;;){if(p in f){u=f[p],p+=h;break}if(p+=h,e?p<0:d<=p)throw l("Reduce of empty array with no initial value")}for(;e?p>=0:d>p;p+=h)p in f&&(u=n(u,f[p],p,c));return u}};e.exports={left:u(!1),right:u(!0)}},41589:function(e,t,n){var r=n(17854),o=n(51400),i=n(26244),a=n(86135),s=r.Array,l=Math.max;e.exports=function(e,t,n){for(var r=i(e),u=o(t,r),c=o(void 0===n?r:n,r),f=s(l(c-u,0)),d=0;u<c;u++,d++)a(f,d,e[u]);return f.length=d,f}},50206:function(e,t,n){var r=n(1702);e.exports=r([].slice)},94362:function(e,t,n){var r=n(41589),o=Math.floor,i=function(e,t){var n=e.length,l=o(n/2);return n<8?a(e,t):s(e,i(r(e,0,l),t),i(r(e,l),t),t)},a=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},s=function(e,t,n,r){for(var o=t.length,i=n.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?r(t[a],n[s])<=0?t[a++]:n[s++]:a<o?t[a++]:n[s++];return e};e.exports=i},77475:function(e,t,n){var r=n(17854),o=n(43157),i=n(4411),a=n(70111),s=n(5112)("species"),l=r.Array;e.exports=function(e){var t;return o(e)&&(t=e.constructor,(i(t)&&(t===l||o(t.prototype))||a(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?l:t}},65417:function(e,t,n){var r=n(77475);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},53411:function(e,t,n){var r=n(19670),o=n(99212);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},17072:function(e,t,n){var r=n(5112)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},84326:function(e,t,n){var r=n(1702),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},70648:function(e,t,n){var r=n(17854),o=n(51694),i=n(60614),a=n(84326),s=n(5112)("toStringTag"),l=r.Object,u="Arguments"==a(function(){return arguments}());e.exports=o?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=l(e),s))?n:u?a(t):"Object"==(r=a(t))&&i(t.callee)?"Arguments":r}},95631:function(e,t,n){"use strict";var r=n(3070).f,o=n(70030),i=n(12248),a=n(49974),s=n(25787),l=n(20408),u=n(70654),c=n(96340),f=n(19781),d=n(62423).fastKey,p=n(29909),h=p.set,m=p.getterFor;e.exports={getConstructor:function(e,t,n,u){var c=e((function(e,r){s(e,p),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&l(r,e[u],{that:e,AS_ENTRIES:n})})),p=c.prototype,v=m(t),y=function(e,t,n){var r,o,i=v(e),a=b(e,t);return a?a.value=n:(i.last=a={index:o=d(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},b=function(e,t){var n,r=v(e),o=d(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(p,{clear:function(){for(var e=v(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=this,n=v(t),r=b(t,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),f?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=v(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),i(p,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),f&&r(p,"size",{get:function(){return v(this).size}}
2),c},setStrong:function(e,t,n){var r=t+" Iterator",o=m(t),i=m(r);u(e,t,(function(e,t){h(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),c(t)}}},29320:function(e,t,n){"use strict";var r=n(1702),o=n(12248),i=n(62423).getWeakData,a=n(19670),s=n(70111),l=n(25787),u=n(20408),c=n(42092),f=n(92597),d=n(29909),p=d.set,h=d.getterFor,m=c.find,v=c.findIndex,y=r([].splice),b=0,g=function(e){return e.frozen||(e.frozen=new w)},w=function(){this.entries=[]},k=function(e,t){return m(e.entries,(function(e){return e[0]===t}))};w.prototype={get:function(e){var t=k(this,e);if(t)return t[1]},has:function(e){return!!k(this,e)},set:function(e,t){var n=k(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var c=e((function(e,o){l(e,d),p(e,{type:t,id:b++,frozen:void 0}),null!=o&&u(o,e[r],{that:e,AS_ENTRIES:n})})),d=c.prototype,m=h(t),v=function(e,t,n){var r=m(e),o=i(a(t),!0);return!0===o?g(r).set(t,n):o[r.id]=n,e};return o(d,{delete:function(e){var t=m(this);if(!s(e))return!1;var n=i(e);return!0===n?g(t).delete(e):n&&f(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!s(e))return!1;var n=i(e);return!0===n?g(t).has(e):n&&f(n,t.id)}}),o(d,n?{get:function(e){var t=m(this);if(s(e)){var n=i(e);return!0===n?g(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),c}}},77710:function(e,t,n){"use strict";var r=n(82109),o=n(17854),i=n(1702),a=n(54705),s=n(31320),l=n(62423),u=n(20408),c=n(25787),f=n(60614),d=n(70111),p=n(47293),h=n(17072),m=n(58003),v=n(79587);e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),g=y?"set":"add",w=o[e],k=w&&w.prototype,_=w,O={},x=function(e){var t=i(k[e]);s(k,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!d(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return b&&!d(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!d(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!f(w)||!(b||k.forEach&&!p((function(){(new w).entries().next()})))))_=n.getConstructor(t,e,y,g),l.enable();else if(a(e,!0)){var S=new _,j=S[g](b?{}:-0,1)!=S,P=p((function(){S.has(1)})),C=h((function(e){new w(e)})),E=!b&&p((function(){for(var e=new w,t=5;t--;)e[g](t,t);return!e.has(-0)}));C||((_=t((function(e,t){c(e,k);var n=v(new w,e,_);return null!=t&&u(t,n[g],{that:n,AS_ENTRIES:y}),n}))).prototype=k,k.constructor=_),(P||E)&&(x("delete"),x("has"),y&&x("get")),(E||j)&&x(g),b&&k.clear&&delete k.clear}return O[e]=_,r({global:!0,forced:_!=w},O),m(_,e),b||n.setStrong(_,e,y),_}},99920:function(e,t,n){var r=n(92597),o=n(53887),i=n(31236),a=n(3070);e.exports=function(e,t){for(var n=o(t),s=a.f,l=i.f,u=0;u<n.length;u++){var c=n[u];r(e,c)||s(e,c,l(t,c))}}},84964:function(e,t,n){var r=n(5112)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},49920:function(e,t,n){var r=n(47293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},24994:function(e,t,n){"use strict";var r=n(13383).IteratorPrototype,o=n(70030),i=n(79114),a=n(58003),s=n(97497),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=o(r,{next:i(+!u,n)}),a(e,c,!1,!0),s[c]=l,e}},68880:function(e,t,n){var r=n(19781),o=n(3070),i=n(79114);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},79114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},86135:function(e,t,n){"use strict";var r=n(34948),o=n(3070),i=n(79114);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},70654:function(e,t,n){"use strict";var r=n(82109),o=n(46916),i=n(31913),a=n(76530),s=n(60614),l=n(24994),u=n(79518),c=n(27674),f=n(58003),d=n(68880),p=n(31320),h=n(5112),m=n(97497),v=n(13383),y=a.PROPER,b=a.CONFIGURABLE,g=v.IteratorPrototype,w=v.BUGGY_SAFARI_ITERATORS,k=h("iterator"),_="keys",O="values",x="entr
2ies",S=function(){return this};e.exports=function(e,t,n,a,h,v,j){l(n,t,a);var P,C,E,A=function(e){if(e===h&&I)return I;if(!w&&e in T)return T[e];switch(e){case _:case O:case x:return function(){return new n(this,e)}}return function(){return new n(this)}},M=t+" Iterator",R=!1,T=e.prototype,D=T[k]||T["@@iterator"]||h&&T[h],I=!w&&D||A(h),V="Array"==t&&T.entries||D;if(V&&(P=u(V.call(new e)))!==Object.prototype&&P.next&&(i||u(P)===g||(c?c(P,g):s(P[k])||p(P,k,S)),f(P,M,!0,!0),i&&(m[M]=S)),y&&h==O&&D&&D.name!==O&&(!i&&b?d(T,"name",O):(R=!0,I=function(){return o(D,this)})),h)if(C={values:A(O),keys:v?I:A(_),entries:A(x)},j)for(E in C)(w||R||!(E in T))&&p(T,E,C[E]);else r({target:t,proto:!0,forced:w||R},C);return i&&!j||T[k]===I||p(T,k,I,{name:h}),m[t]=I,C}},97235:function(e,t,n){var r=n(40857),o=n(92597),i=n(6061),a=n(3070).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},19781:function(e,t,n){var r=n(47293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},80317:function(e,t,n){var r=n(17854),o=n(70111),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},48324:function(e){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}},98509:function(e,t,n){var r=n(80317)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},68886:function(e,t,n){var r=n(88113).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},7871:function(e){e.exports="object"==typeof window},30256:function(e,t,n){var r=n(88113);e.exports=/MSIE|Trident/.test(r)},71528:function(e,t,n){var r=n(88113),o=n(17854);e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},6833:function(e,t,n){var r=n(88113);
vendor: 11,119 bytes, line 2
2e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},35268:function(e,t,n){var r=n(84326),o=n(17854);e.exports="process"==r(o.process)},71036:function(e,t,n){var r=n(88113);e.exports=/web0s(?!.*chrome)/i.test(r)},88113:function(e,t,n){var r=n(35005);e.exports=r("navigator","userAgent")||""},7392:function(e,t,n){var r,o,i=n(17854),a=n(88113),s=i.process,l=i.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(o=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},98008:function(e,t,n){var r=n(88113).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},80748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},82109:function(e,t,n){var r=n(17854),o=n(31236).f,i=n(68880),a=n(31320),s=n(83505),l=n(99920),u=n(54705);e.exports=function(e,t){var n,c,f,d,p,h=e.target,m=e.global,v=e.stat;if(n=m?r:v?r[h]||s(h,{}):(r[h]||{}).prototype)for(c in t){if(d=t[c],f=e.noTargetGet?(p=o(n,c))&&p.value:n[c],!u(m?c:h+(v?".":"#")+c,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;l(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),a(n,c,d,e)}}},47293:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},27007:function(e,t,n){"use strict";n(74916);var r=n(1702),o=n(31320),i=n(22261),a=n(47293),s=n(5112),l=n(68880),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,f){var d=s(e),p=!a((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),h=p&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!p||!h||n){var m=r(/./[d]),v=t(d,""[e],(function(e,t,n,o,a){var s=r(e),l=t.exec;return l===i||l===c.exec?p&&!a?{done:!0,value:m(t,n,o)}:{done:!0,value:s(n,t,o)}:{done:!1}}));o(String.prototype,e,v[0]),o(c,d,v[1])}f&&l(c[d],"sham",!0)}},76677:function(e,t,n){var r=n(47293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},22104:function(e){var t=Function.prototype,n=t.apply,r=t.bind,o=t.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(n):function(){return o.apply(n,arguments)})},49974:function(e,t,n){var r=n(1702),o=n(19662),i=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?i(e,t):function(){return e.apply(t,arguments)}}},27065:function(e,t,n){"use strict";var r=n(17854),o=n(1702),i=n(19662),a=n(70111),s=n(92597),l=n(50206),u=r.Function,c=o([].concat),f=o([].join),d={},p=function(e,t,n){if(!s(d,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";d[t]=u("C,a","return new C("+f(r,",")+")")}return d[t](e,n)};e.exports=u.bind||function(e){var t=i(this),n=t.prototype,r=l(arguments,1),o=function(){var n=c(r,l(arguments));return this instanceof o?p(t,n.length,n):t.apply(e,n)};return a(n)&&(o.prototype=n),o}},46916:function(e){var t=Function.prototype.call;e.exports=t.bind?t.bind(t):function(){return t.apply(t,arguments)}},76530:function(e,t,n){var r=n(19781),o=n(92597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,u=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},1702:function(e){var t=Function.prototype,n=t.bind,r=t.call,o=n&&n.bind(r);e.exports=n?function(e){return e&&o(r,e)}:function(e){return e&&function(){return r.apply(e,arguments)}}},35005:function(e,t,n){var r=n(17854),o=n(60614),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},71246:function(e,t,n){var r=n(70648),o=n(58173),i=n(97497),a=n(5112)("iterator");e.exports=function(e){if(null!=e)return o(e,a)||o(e,"@@iterator")||i[r(e)]}},18554:function(e,t,n){var r=n(17854),o=n(46916),i=n(19662),a=n(19670),s=n(66330),l=n(71246),u=r.TypeError;e.exports=function(e,t){var n=arguments.length<2?l(e):t;if(i(n))return a(o(n,e));throw u(s(e)+" is not iterable")}},58173:function(e,t,n){var r=n(19662);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},10647:function(e,t,n){var r=n(1702),o=n(47908),i=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,f,d){var p=n+e.length,h=r.length,m=c;return void 0!==f&&(f=o(f),m=u),s(d,m,(function(o,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,p);case"<":u=f[l(s,1,-1)];break;default:var c=+s;if(0===c)return o;if(c>h){var d=i(c/10);return 0===d?o:d<=h?void 0===r[d-1]?a(s,1):r[d-1]+a(s,1):o}u=r[c-1]}return void 0===u?"":u}))}},17854:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},92597:function(e,t,n){var r=n(1702),o=n(47908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},3501:function(e){e.exports={}},842:function(e,t,n){var r=n(17854);e.exports=function(e,t){var n=r.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},60490:function(e,t,n){var r=n(35005);e.exports=r("document","documentElement")},64664:function(e,t,n){var r=n(19781),o=n(47293),i=n(80317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},11179:function(e,t,n){var r=n(17854).Array,o=Math.abs,i=Math.pow,a=Math.floor,s=Math.log,l=Math.LN2;e.exports={pack:function(e,t,n){var u,c,f,d=r(n),p=8*n-t-1,h=(1<<p)-1,m=h>>1,v=23===t?i(2,-24)-i(2,-77):0,y=e<0||0===e&&1/e<0?1:0,b=0;for((e=o(e))!=e||e===1/0?(c=e!=e?1:0,u=h):(u=a(s(e)/l),e*(f=i(2,-u))<1&&(u--,f*=2),(e+=u+m>=1?v/f:v*i(2,1-m))*f>=2&&(u++,f/=2),u+m>=h?(c=0,u=h):u+m>=1?(c=(e*f-1)*i(2,t),u+=m):(c=e*i(2,m-1)*i(2,t),u=0));t>=8;)d[b++]=255&c,c/=256,t-=8;for(u=u<<t|c,p+=t;p>0;)d[b++]=255&u,u/=256,p-=8;return d[--b]|=128*y,d},unpack:function(e,t){var n,r=e.length,o=8*r-t-1,a=(1<<o)-1,s=a>>1,l=o-7,u=r-1,c=e[u--],f=127&c;for(c>>=7;l>0;)f=256*f+e[u--],l-=8;for(n=f&(1<<-l)-1,f>>=-l,l+=t;l>0;)n=256*n+e[u--],l-=8;if(0===f)f=1-s;else{if(f===a)return n?NaN:c?-1/0:1/0;n+=i(2,t),f-=s}return(c?-1:1)*n*i(2,f-t)}}},68361:function(e,t,n){var r=n(17854),o=n(1702),i=n(47293),a=n(84326),s=r.Object,l=o("".split);e.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?l(e,""):s(e)}:s},79587:function(e,t,n){var r=n(60614),o=n(70111),i=n(27674);e.exports=function(e,t,n){var a,s;return i&&r(a=t.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},42788:function(e,t,n){var r=n(1702),o=n(60614),i=n(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},62423:function(e,t,n){var r=n(82109),o=n(1702),i=n(3501),a=n(70111),s=n(92597),l=n(3070).f,u=n(8006),c=n(1156),f=n(52050),d=n(69711),p=n(76677),h=!1,m=d("meta"),v=0,y=function(e){l(e,m,{value:{objectID:"O"+v++,weakData:{}}})},b=e.exports={enable:function(){b.enable=function(){},h=!0;var e=u.f,t=o([].splice),n={};n[m]=1,e(n).length&&(u.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===m){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!f(e))return"F";if(!t)return"E";y(e)}return e[m].objectID},getWeakData:function(e,t){if(!s(e,m)){if(!f(e))return!0;if(!t)return!1;y(e)}return e[m].weakData},onFreeze:function(e){return p&&h&&f(e)&&!s(e,m)&&y(e),e}};i[m]=!0},29909:function(e,t,n){var r,o,i,a=n(68536),s=n(17854),l=n(1702),u=n(70111),c=n(68880),f=n(92597),d=n(5465),p=n(6200),h=n(3501),m="Object already initialized",v=s.TypeError,y=s.WeakMap;if(a||d.state){var b=d.state||(d.state=new y),g=l(b.get),w=l(b.has),k=l(b.set);r=function(e,t){if(w(b,e))throw new v(m);return t.facade=e,k(b,e,t),t},o=function(e){return g(b,e)||{}},i=function(e){return w(b,e)}}else{var _=p("state");h[_]=!0,r=function(e,t){if(f(e,_))throw new v(m);return t.facade=e,c(e,_,t),t},o=function(e){return f(e,_)?e[_]:{}},i=function(e){return f(e,_)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return n}}}},97659:function(e,t,n){var r=n(5112),o=n(97497),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},43157:function(e,t,n){var r=n(84326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},60614:function(e){e.exports=function(e){return"function"==typeof e}},4411:function(e,t,n){var r=n(1702),o=n(47293),i=n(60614),a=n(70648),s=n(35005),l=n(42788),u=function(){},c=[],f=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=r(d.exec),h=!d.exec(u),m=function(e){if(!i(e))return!1;try{return f(u,c,e),!0}catch(e){return!1}};e.exports=!f||o((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return h||!!p(d,l(e))}:m},45032:function(e,t,n){var r=n(92597);e.exports=function(e){return void 0!==e&&(r(e,"value")||r(e,"writable"))}},54705:function(e,t,n){var r=n(47293),o=n(60614),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==c||n!=u&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},55988:function(e,t,n){var r=n(70111),o=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&o(e)===e}},70111:function(e,t,n){var r=n(60614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},31913:function(e){e.exports=!1},47850:function(e,t,n){var r=n(70111),o=n(84326),i=n(5112)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},52190:function(e,t,n){var r=n(17854),o=n(35005),i=n(60614),a=n(47976),s=n(43307),l=r.Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return i(t)&&a(t.prototype,l(e))}},20408:function(e,t,n){var r=n(17854),o=n(49974),i=n(46916),a=n(19670),s=n(66330),l=n(97659),u=n(26244),c=n(47976),f=n(18554),d=n(71246),p=n(99212),h=r.TypeError,m=function(e,t){this.stopped=e,this.result=t},v=m.prototype;e.exports=function(e,t,n){var r,y,b,g,w,k,_,O=n&&n.that,x=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_ITERATOR),j=!(!n||!n.INTERRUPTED),P=o(t,O),C=function(e){return r&&p(r,"normal",e),new m(!0,e)},E=function(e){return x?(a(e),j?P(e[0],e[1],C):P(e[0],e[1])):j?P(e,C):P(e)};if(S)r=e;else{if(!(y=d(e)))throw h(s(e)+" is not iterable");if(l(y)){for(b=0,g=u(e);g>b;b++)if((w=E(e[b]))&&c(v,w))return w;return new m(!1)}r=f(e,y)}for(k=r.next;!(_=i(k,r)).done;){try{w=E(_.value)}catch(e){p(r,"throw",e)}if("object"==typeof w&&w&&c(v,w))return w}return new m(!1)}},99212:function(e,t,n){var r=n(46916),o=n(19670),i=n(58173);e.exports=function(e,t,n){var a,s;o(e);
2try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return o(a),n}},13383:function(e,t,n){"use strict";var r,o,i,a=n(47293),s=n(60614),l=n(70030),u=n(79518),c=n(31320),f=n(5112),d=n(31913),p=f("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):h=!0),null==r||a((function(){var e={};return r[p].call(e)!==e}))?r={}:d&&(r=l(r)),s(r[p])||c(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},97497:function(e){e.exports={}},26244:function(e,t,n){var r=n(17466);e.exports=function(e){return r(e.length)}},95948:function(e,t,n){var r,o,i,a,s,l,u,c,f=n(17854),d=n(49974),p=n(31236).f,h=n(20261).set,m=n(6833),v=n(71528),y=n(71036),b=n(35268),g=f.MutationObserver||f.WebKitMutationObserver,w=f.document,k=f.process,_=f.Promise,O=p(f,"queueMicrotask"),x=O&&O.value;x||(r=function(){var e,t;for(b&&(e=k.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},m||b||y||!g||!w?!v&&_&&_.resolve?((u=_.resolve(void 0)).constructor=_,c=d(u.then,u),a=function(){c(r)}):b?a=function(){k.nextTick(r)}:(h=d(h,f),a=function(){h(r)}):(s=!0,l=w.createTextNode(""),new g(r).observe(l,{characterData:!0}),a=function(){l.data=s=!s})),e.exports=x||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},13366:function(e,t,n){var r=n(17854);e.exports=r.Promise},30133:function(e,t,n){var r=n(7392),o=n(47293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},68536:function(e,t,n){var r=n(17854),o=n(60614),i=n(42788),a=r.WeakMap;e.exports=o(a)&&/native code/.test(i(a))},78523:function(e,t,n){"use strict";var r=n(19662),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},3929:function(e,t,n){var r=n(17854),o=n(47850),i=r.TypeError;e.exports=function(e){if(o(e))throw i("The method doesn't accept regular expressions");return e}},77023:function(e,t,n){var r=n(17854).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},83009:function(e,t,n){var r=n(17854),o=n(47293),i=n(1702),a=n(41340),s=n(53111).trim,l=n(81361),u=r.parseInt,c=r.Symbol,f=c&&c.iterator,d=/^[+-]?0x/i,p=i(d.exec),h=8!==u(l+"08")||22!==u(l+"0x16")||f&&!o((function(){u(Object(f))}));e.exports=h?function(e,t){var n=s(a(e));return u(n,t>>>0||(p(d,n)?16:10))}:u},21574:function(e,t,n){"use strict";var r=n(19781),o=n(1702),i=n(46916),a=n(47293),s=n(81956),l=n(25181),u=n(55296),c=n(47908),f=n(68361),d=Object.assign,p=Object.defineProperty,h=o([].concat);e.exports=!d||a((function(){if(r&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||s(d({},t)).join("")!=o}))?function(e,t){for(var n=c(e),o=arguments.length,a=1,d=l.f,p=u.f;o>a;)for(var m,v=f(arguments[a++]),y=d?h(s(v),d(v)):s(v),b=y.length,g=0;b>g;)m=y[g++],r&&!i(p,v,m)||(n[m]=v[m]);return n}:d},70030:function(e,t,n){var r,o=n(19670),i=n(36048),a=n(80748),s=n(3501),l=n(60490),u=n(80317),c=n(6200)("IE_PROTO"),f=function(){},d=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;h="undefined"!=typeof document?document.domain&&r?p(r):((t=u("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(r);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[c]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=o(e),n=new f,f.prototype=null,n[c]=e):n=h(),void 0===t?n:i(n,t)}},36048:function(e,t,n){var r=n(19781),o=n(3070),i=n(19670),a=n(456
vendor: 2,510 bytes, line 2
256),s=n(81956);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),l=s(t),u=l.length,c=0;u>c;)o.f(e,n=l[c++],r[n]);return e}},3070:function(e,t,n){var r=n(17854),o=n(19781),i=n(64664),a=n(19670),s=n(34948),l=r.TypeError,u=Object.defineProperty;t.f=o?u:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},31236:function(e,t,n){var r=n(19781),o=n(46916),i=n(55296),a=n(79114),s=n(45656),l=n(34948),u=n(92597),c=n(64664),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=s(e),t=l(t),c)try{return f(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},1156:function(e,t,n){var r=n(84326),o=n(45656),i=n(8006).f,a=n(41589),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==r(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},8006:function(e,t,n){var r=n(16324),o=n(80748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},25181:function(e,t){t.f=Object.getOwnPropertySymbols},79518:function(e,t,n){var r=n(17854),o=n(92597),i=n(60614),a=n(47908),s=n(6200),l=n(49920),u=s("IE_PROTO"),c=r.Object,f=c.prototype;e.exports=l?c.getPrototypeOf:function(e){var t=a(e);if(o(t,u))return t[u];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof c?f:null}},52050:function(e,t,n){var r=n(47293),o=n(70111),i=n(84326),a=n(7556),s=Object.isExtensible,l=r((function(){s(1)}));e.exports=l||a?function(e){return!!o(e)&&(!a||"ArrayBuffer"!=i(e))&&(!s||s(e))}:s},47976:function(e,t,n){var r=n(1702);e.exports=r({}.isPrototypeOf)},16324:function(e,t,n){var r=n(1702),o=n(92597),i=n(45656),a=n(41318).indexOf,s=n(3501),l=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,c=[];for(n in r)!o(s,n)&&o(r,n)&&l(c,n);for(;t.length>u;)o(r,n=t[u++])&&(~a(c,n)||l(c,n));return c}},81956:function(e,t,n){var r=n(16324),o=n(80748);e.exports=Object.keys||function(e){return r(e,o)}},55296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},69026:function(e,t,n){"use strict";var r=n(31913),o=n(17854),i=n(47293),a=n(98008);e.exports=r||!i((function(){if(!(a&&a<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete o[e]}}))},27674:function(e,t,n){var r=n(1702),o=n(19670),i=n(96077);
vendor: 3,799 bytes, line 2
2e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},44699:function(e,t,n){var r=n(19781),o=n(1702),i=n(81956),a=n(45656),s=o(n(55296).f),l=o([].push),u=function(e){return function(t){for(var n,o=a(t),u=i(o),c=u.length,f=0,d=[];c>f;)n=u[f++],r&&!s(o,n)||l(d,e?[n,o[n]]:o[n]);return d}};e.exports={entries:u(!0),values:u(!1)}},90288:function(e,t,n){"use strict";var r=n(51694),o=n(70648);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},92140:function(e,t,n){var r=n(17854),o=n(46916),i=n(60614),a=n(70111),s=r.TypeError;e.exports=function(e,t){var n,r;if("string"===t&&i(n=e.toString)&&!a(r=o(n,e)))return r;if(i(n=e.valueOf)&&!a(r=o(n,e)))return r;if("string"!==t&&i(n=e.toString)&&!a(r=o(n,e)))return r;throw s("Can't convert object to primitive value")}},53887:function(e,t,n){var r=n(35005),o=n(1702),i=n(8006),a=n(25181),s=n(19670),l=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?l(t,n(e)):t}},40857:function(e,t,n){var r=n(17854);e.exports=r},12534:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},69478:function(e,t,n){var r=n(19670),o=n(70111),i=n(78523);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},12248:function(e,t,n){var r=n(31320);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},31320:function(e,t,n){var r=n(17854),o=n(60614),i=n(92597),a=n(68880),s=n(83505),l=n(42788),u=n(29909),c=n(76530).CONFIGURABLE,f=u.get,d=u.enforce,p=String(String).split("String");(e.exports=function(e,t,n,l){var u,f=!!l&&!!l.unsafe,h=!!l&&!!l.enumerable,m=!!l&&!!l.noTargetGet,v=l&&void 0!==l.name?l.name:t;o(n)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||c&&n.name!==v)&&a(n,"name",v),(u=d(n)).source||(u.source=p.join("string"==typeof v?v:""))),e!==r?(f?!m&&e[t]&&(h=!0):delete e[t],h?e[t]=n:a(e,t,n)):h?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return o(this)&&f(this).source||l(this)}))},97651:function(e,t,n){var r=n(17854),o=n(46916),i=n(19670),a=n(60614),s=n(84326),l=n(22261),u=r.TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var r=o(n,e,t);return null!==r&&i(r),r}if("RegExp"===s(e))return o(l,e,t);throw u("RegExp#exec called on incompatible receiver")}},22261:function(e,t,n){"use strict";var r,o,i=n(46916),a=n(1702),s=n(41340),l=n(67066),u=n(52999),c=n(72309),f=n(70030),d=n(29909).get,p=n(9441),h=n(38173),m=c("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,y=v,b=a("".charAt),g=a("".indexOf),w=a("".replace),k=a("".slice),_=(o=/b*/g,i(v,r=/a/,"a"),i(v,o,"a"),0!==r.lastIndex||0!==o.lastIndex),O=u.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];(_||x||O||p||h)&&(y=function(e){var t,n,r,o,a,u,c,p=this,h=d(p),S=s(e),j=h.raw;if(j)return j.lastIndex=p.lastIndex,t=i(y,j,S),p.lastIndex=j.lastIndex,t;var P=h.groups,C=O&&p.sticky,E=i(l,p),A=p.source,M=0,R=S;if(C&&(E=w(E,"y",""),-1===g(E,"g")&&(E+="g"),R=k(S,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==b(S,p.lastIndex-1))&&(A="(?: "+A+")",R=" "+R,M++),n=new RegExp("^(?:"+A+")",E)),x&&(n=new RegExp("^"+A+"$(?!\\s)",E)),_&&(r=p.lastIndex),o=i(v,C?n:p,R),C?o?(o.input=k(o.input,M),o[0]=k(o[0],M),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:_&&o&&(p.lastIndex=p.global?o.index+o[0].length:r),x&&o&&o.length>1&&i(m,o[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&P)for(o.groups=u=f(null),a=0;a<P.length;a++)u[(c=P[a])[0]]=o[c[1]];return o}
2),e.exports=y},67066:function(e,t,n){"use strict";var r=n(19670);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},52999:function(e,t,n){var r=n(47293),o=n(17854).RegExp,i=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=i||r((function(){return!o("a","y").sticky})),s=i||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},9441:function(e,t,n){var r=n(47293),o=n(17854).RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},38173:function(e,t,n){var r=n(47293),o=n(17854).RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},84488:function(e,t,n){var r=n(17854).TypeError;e.exports=function(e){if(null==e)throw r("Can't call method on "+e);return e}},81150:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},83505:function(e,t,n){var r=n(17854),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},96340:function(e,t,n){"use strict";var r=n(35005),o=n(3070),i=n(5112),a=n(19781),s=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},58003:function(e,t,n){var r=n(3070).f,o=n(92597),i=n(5112)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},6200:function(e,t,n){var r=n(72309),o=n(69711),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},5465:function(e,t,n){var r=n(17854),o=n(83505),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},72309:function(e,t,n){var r=n(31913),o=n(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},36707:function(e,t,n){var r=n(19670),o=n(39483),i=n(5112)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},28710:function(e,t,n){var r=n(1702),o=n(19303),i=n(41340),a=n(84488),s=r("".charAt),l=r("".charCodeAt),u=r("".slice),c=function(e){return function(t,n){var r,c,f=i(a(t)),d=o(n),p=f.length;return d<0||d>=p?e?"":void 0:(r=l(f,d))<55296||r>56319||d+1===p||(c=l(f,d+1))<56320||c>57343?e?s(f,d):r:e?u(f,d,d+2):c-56320+(r-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},54986:function(e,t,n){var r=n(88113);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},76650:function(e,t,n){var r=n(1702),o=n(17466),i=n(41340),a=n(38415),s=n(84488),l=r(a),u=r("".slice),c=Math.ceil,f=function(e){return function(t,n,r){var a,f,d=i(s(t)),p=o(n),h=d.length,m=void 0===r?" ":i(r);return p<=h||""==m?d:((f=l(m,c((a=p-h)/m.length))).length>a&&(f=u(f,0,a)),e?d+f:f+d)}};e.exports={start:f(!1),end:f(!0)}},38415:function(e,t,n){"use strict";var r=n(17854),o=n(19303),i=n(41340),a=n(84488),s=r.RangeError;e.exports=function(e){var t=i(a(this)),n="",r=o(e);if(r<0||r==1/0)throw s("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}},76091:function(e,t,n){var r=n(76530).PROPER,o=n(47293),i=n(81361);e.exports=function(e){return o((function(){return!!i[e]()||"âÂ
á "!=="âÂ
á "[e]()||r&&i[e].name!==e}))}},53111:function(e,t,n){var r=n(1702),o=n(84488),i=n(41340),a=n(81361),s=r("".replace),l="["+a+"]",u=RegExp("^"+l+l+"*"),c=RegExp(l+l+"*$"),f=function(e){return function(t){var n=i(o(t));return 1&e&&(n=s(n,u,"")),2&e&&(n=s(n,c,"")),n}};e.exports={start:f(1),end:f(2),trim:f(3)}},20261:function(e,t,n){var r,o,i,a,s=n(17854),l=n(22104),u=n(49974),c=n(60614),f=n(92597),d=n(47293),p=n(60490),h=n(50206),m=n(80317),v=n(6833),y=n(35268),b=s.setImmediate,g=s.clearImmediate,w=s.process,k=s.Dispatch,_=s.Function,O=s.MessageChannel,x=s.String,S=0,j={};try{r=s.location}catch(e){}var P=function(e){if(f(j,e)){var t=j[e];delete j[e],t()}},C=function(e){return function(){P(e)}},E=function(e){P(e.data)},A=function(e){s.postMessage(x(e),r.protocol+"//"+r.host)};
vendor: 4,153 bytes, line 2
2b&&g||(b=function(e){var t=h(arguments,1);return j[++S]=function(){l(c(e)?e:_(e),void 0,t)},o(S),S},g=function(e){delete j[e]},y?o=function(e){w.nextTick(C(e))}:k&&k.now?o=function(e){k.now(C(e))}:O&&!v?(a=(i=new O).port2,i.port1.onmessage=E,o=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!d(A)?(o=A,s.addEventListener("message",E,!1)):o="onreadystatechange"in m("script")?function(e){p.appendChild(m("script")).onreadystatechange=function(){p.removeChild(this),P(e)}}:function(e){setTimeout(C(e),0)}),e.exports={set:b,clear:g}},50863:function(e,t,n){var r=n(1702);e.exports=r(1..valueOf)},51400:function(e,t,n){var r=n(19303),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},57067:function(e,t,n){var r=n(17854),o=n(19303),i=n(17466),a=r.RangeError;e.exports=function(e){if(void 0===e)return 0;var t=o(e),n=i(t);if(t!==n)throw a("Wrong length or index");return n}},45656:function(e,t,n){var r=n(68361),o=n(84488);e.exports=function(e){return r(o(e))}},19303:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){var r=+e;return r!=r||0===r?0:(r>0?n:t)(r)}},17466:function(e,t,n){var r=n(19303),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},47908:function(e,t,n){var r=n(17854),o=n(84488),i=r.Object;e.exports=function(e){return i(o(e))}},84590:function(e,t,n){var r=n(17854),o=n(73002),i=r.RangeError;e.exports=function(e,t){var n=o(e);if(n%t)throw i("Wrong offset");return n}},73002:function(e,t,n){var r=n(17854),o=n(19303),i=r.RangeError;e.exports=function(e){var t=o(e);if(t<0)throw i("The argument can't be less than 0");return t}},57593:function(e,t,n){var r=n(17854),o=n(46916),i=n(70111),a=n(52190),s=n(58173),l=n(92140),u=n(5112),c=r.TypeError,f=u("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var n,r=s(e,f);if(r){if(void 0===t&&(t="default"),n=o(r,e,t),!i(n)||a(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},34948:function(e,t,n){var r=n(57593),o=n(52190);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},51694:function(e,t,n){var r={};r[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(r)},41340:function(e,t,n){var r=n(17854),o=n(70648),i=r.String;e.exports=function(e){if("Symbol"===o(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},66330:function(e,t,n){var r=n(17854).String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},19843:function(e,t,n){"use strict";var r=n(82109),o=n(17854),i=n(46916),a=n(19781),s=n(63832),l=n(90260),u=n(13331),c=n(25787),f=n(79114),d=n(68880),p=n(55988),h=n(17466),m=n(57067),v=n(84590),y=n(34948),b=n(92597),g=n(70648),w=n(70111),k=n(52190),_=n(70030),O=n(47976),x=n(27674),S=n(8006).f,j=n(97321),P=n(42092).forEach,C=n(96340),E=n(3070),A=n(31236),M=n(29909),R=n(79587),T=M.get,D=M.set,I=E.f,V=A.f,L=Math.round,N=o.RangeError,F=u.ArrayBuffer,B=F.prototype,z=u.DataView,U=l.NATIVE_ARRAY_BUFFER_VIEWS,H=l.TYPED_ARRAY_CONSTRUCTOR,q=l.TYPED_ARRAY_TAG,W=l.TypedArray,K=l.TypedArrayPrototype,Y=l.aTypedArrayConstructor,G=l.isTypedArray,$="BYTES_PER_ELEMENT",J="Wrong length",Z=function(e,t){Y(e);for(var n=0,r=t.length,o=new e(r);r>n;)o[n]=t[n++];return o},X=function(e,t){I(e,t,{get:function(){return T(this)[t]}})},Q=function(e){var t;return O(B,e)||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},ee=function(e,t){return G(e)&&!k(t)&&t in e&&p(+t)&&t>=0},te=function(e,t){return t=y(t),ee(e,t)?f(2,e[t]):V(e,t)},ne=function(e,t,n){return t=y(t),!(ee(e,t)&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?I(e,t,n):(e[t]=n.value,e)};a?(U||(A.f=te,E.f=ne,X(K,"buffer"),X(K,"byteOffset"),X(K,"byteLength"),X(K,"length")),r({target:"Object",stat:!0,forced:!U},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,l=e+(n?"Clamped":"")+"Array",u="get"+e,f="set"+e,p=o[l],y=p,b=y&&y.prototype,g={},k=function(e,t){I(e,t,{get:function(){return function(e,t){var n=T(e);return n.view[u](t*a+n.byteOffset,!0)}(this,t)}
2,set:function(e){return function(e,t,r){var o=T(e);n&&(r=(r=L(r))<0?0:r>255?255:255&r),o.view[f](t*a+o.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};U?s&&(y=t((function(e,t,n,r){return c(e,b),R(w(t)?Q(t)?void 0!==r?new p(t,v(n,a),r):void 0!==n?new p(t,v(n,a)):new p(t):G(t)?Z(y,t):i(j,y,t):new p(m(t)),e,y)})),x&&x(y,W),P(S(p),(function(e){e in y||d(y,e,p[e])})),y.prototype=b):(y=t((function(e,t,n,r){c(e,b);var o,s,l,u=0,f=0;if(w(t)){if(!Q(t))return G(t)?Z(y,t):i(j,y,t);o=t,f=v(n,a);var d=t.byteLength;if(void 0===r){if(d%a)throw N(J);if((s=d-f)<0)throw N(J)}else if((s=h(r)*a)+f>d)throw N(J);l=s/a}else l=m(t),o=new F(s=l*a);for(D(e,{buffer:o,byteOffset:f,byteLength:s,length:l,view:new z(o)});u<l;)k(e,u++)})),x&&x(y,W),b=y.prototype=_(K)),b.constructor!==y&&d(b,"constructor",y),d(b,H,y),q&&d(b,q,l),g[l]=y,r({global:!0,forced:y!=p,sham:!U},g),$ in y||d(y,$,a),$ in b||d(b,$,a),C(l)}):e.exports=function(){}},63832:function(e,t,n){var r=n(17854),o=n(47293),i=n(17072),a=n(90260).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,l=r.Int8Array;e.exports=!a||!o((function(){l(1)}))||!o((function(){new l(-1)}))||!i((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||o((function(){return 1!==new l(new s(2),1,void 0).length}))},43074:function(e,t,n){var r=n(97745),o=n(66304);e.exports=function(e,t){return r(o(e),t)}},97321:function(e,t,n){var r=n(49974),o=n(46916),i=n(39483),a=n(47908),s=n(26244),l=n(18554),u=n(71246),c=n(97659),f=n(90260).aTypedArrayConstructor;e.exports=function(e){var t,n,d,p,h,m,v=i(this),y=a(e),b=arguments.length,g=b>1?arguments[1]:void 0,w=void 0!==g,k=u(y);if(k&&!c(k))for(m=(h=l(y,k)).next,y=[];!(p=o(m,h)).done;)y.push(p.value);for(w&&b>2&&(g=r(g,arguments[2])),n=s(y),d=new(f(v))(n),t=0;n>t;t++)d[t]=w?g(y[t],t):y[t];return d}},66304:function(e,t,n){var r=n(90260),o=n(36707),i=r.TYPED_ARRAY_CONSTRUCTOR,a=r.aTypedArrayConstructor;e.exports=function(e){return a(o(e,e[i]))}},69711:function(e,t,n){var r=n(1702),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},43307:function(e,t,n){var r=n(30133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:function(e,t,n){var r=n(5112);t.f=r},5112:function(e,t,n){var r=n(17854),o=n(72309),i=n(92597),a=n(69711),s=n(30133),l=n(43307),u=o("wks"),c=r.Symbol,f=c&&c.for,d=l?c:c&&c.withoutSetter||a;e.exports=function(e){if(!i(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&i(c,e)?u[e]=c[e]:u[e]=l&&f?f(t):d(t)}return u[e]}},81361:function(e){e.exports="\t\n\v\f\r  áââââââ
ââââââ¯âã\u2028\u2029\ufeff"},92222:function(e,t,n){"use strict";var r=n(82109),o=n(17854),i=n(47293),a=n(43157),s=n(70111),l=n(47908),u=n(26244),c=n(86135),f=n(65417),d=n(81194),p=n(5112),h=n(7392),m=p("isConcatSpreadable"),v=9007199254740991,y="Maximum allowed index exceeded",b=o.TypeError,g=h>=51||!i((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),w=d("concat"),k=function(e){if(!s(e))return!1;var t=e[m];return void 0!==t?!!t:a(e)};r({target:"Array",proto:!0,forced:!g||!w},{concat:function(e){var t,n,r,o,i,a=l(this),s=f(a,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(k(i=-1===t?a:arguments[t])){if(d+(o=u(i))>v)throw b(y);for(n=0;n<o;n++,d++)n in i&&c(s,d,i[n])}else{if(d>=v)throw b(y);c(s,d++,i)}return s.length=d,s}})},57327:function(e,t,n){"use strict";var r=n(82109),o=n(42092).filter;r({target:"Array",proto:!0,forced:!n(81194)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},34553:function(e,t,n){"use strict";var r=n(82109),o=n(42092).findIndex,i=n(51223),a="findIndex",s=!0;a in[]&&Array(1).findIndex((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},69826:function(e,t,n){"use strict";var r=n(82109),o=n(42092).find,i=n(51223),a="find",s=!0;a in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},91038:function(e,t,n){var r=n(82109),o=n(48457);r({target:"Array",stat:!0,forced:!n(17072)((function(e){Array.from(e)}))},{from:o})},26699:function(e,t,n){"use strict";var r=n(82109),o=n(41318).includes,i=n(51223);r({target:"Array",proto:!0},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},66992:function(e,t,n){"use strict";var r=n(45656),o=n(51223),i=n(97497),a=n(29909),s=n(70654),l="Array Iterator",u=a.set,c=a.getterFor(l);e.exports=s(Array,"Array",(function(e,t){u(this,{type:l,target:r(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},69600:function(e,t,n){"use strict";
vendor: 1,345 bytes, line 2
2var r=n(82109),o=n(1702),i=n(68361),a=n(45656),s=n(9341),l=o([].join),u=i!=Object,c=s("join",",");r({target:"Array",proto:!0,forced:u||!c},{join:function(e){return l(a(this),void 0===e?",":e)}})},21249:function(e,t,n){"use strict";var r=n(82109),o=n(42092).map;r({target:"Array",proto:!0,forced:!n(81194)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},47042:function(e,t,n){"use strict";var r=n(82109),o=n(17854),i=n(43157),a=n(4411),s=n(70111),l=n(51400),u=n(26244),c=n(45656),f=n(86135),d=n(5112),p=n(81194),h=n(50206),m=p("slice"),v=d("species"),y=o.Array,b=Math.max;r({target:"Array",proto:!0,forced:!m},{slice:function(e,t){var n,r,o,d=c(this),p=u(d),m=l(e,p),g=l(void 0===t?p:t,p);if(i(d)&&(n=d.constructor,(a(n)&&(n===y||i(n.prototype))||s(n)&&null===(n=n[v]))&&(n=void 0),n===y||void 0===n))return h(d,m,g);for(r=new(void 0===n?y:n)(b(g-m,0)),o=0;m<g;m++,o++)m in d&&f(r,o,d[m]);return r.length=o,r}})},2707:function(e,t,n){"use strict";var r=n(82109),o=n(1702),i=n(19662),a=n(47908),s=n(26244),l=n(41340),u=n(47293),c=n(94362),f=n(9341),d=n(68886),p=n(30256),h=n(7392),m=n(98008),v=[],y=o(v.sort),b=o(v.push),g=u((function(){v.sort(void 0)})),w=u((function(){v.sort(null)})),k=f("sort"),_=!u((function(){if(h)return h<70;if(!(d&&d>3)){if(p)return!0;if(m)return m<603;var e,t,n,r,o="";for(e=65;e<76;
2e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:t+r,v:n})}for(v.sort((function(e,t){return t.v-e.v})),r=0;r<v.length;r++)t=v[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));r({target:"Array",proto:!0,forced:g||!w||!k||!_},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(_)return void 0===e?y(t):y(t,e);var n,r,o=[],u=s(t);for(r=0;r<u;r++)r in t&&b(o,t[r]);for(c(o,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:l(t)>l(n)?1:-1}}(e)),n=o.length,r=0;r<n;)t[r]=o[r++];for(;r<u;)delete t[r++];return t}})},40561:function(e,t,n){"use strict";var r=n(82109),o=n(17854),i=n(51400),a=n(19303),s=n(26244),l=n(47908),u=n(65417),c=n(86135),f=n(81194)("splice"),d=o.TypeError,p=Math.max,h=Math.min,m=9007199254740991,v="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!f},{splice:function(e,t){var n,r,o,f,y,b,g=l(this),w=s(g),k=i(e,w),_=arguments.length;if(0===_?n=r=0:1===_?(n=0,r=w-k):(n=_-2,r=h(p(a(t),0),w-k)),w+n-r>m)throw d(v);for(o=u(g,r),f=0;f<r;f++)(y=k+f)in g&&c(o,f,g[y]);if(o.length=r,n<r){for(f=k;f<w-r;f++)b=f+n,(y=f+r)in g?g[b]=g[y]:delete g[b];for(f=w;f>w-r+n;f--)delete g[f-1]}else if(n>r)for(f=w-r;f>k;f--)b=f+n-1,(y=f+r-1)in g?g[b]=g[y]:delete g[b];for(f=0;f<n;f++)g[f+k]=arguments[f+2];return g.length=w-r+n,o}})},68309:function(e,t,n){var r=n(19781),o=n(76530).EXISTS,i=n(1702),a=n(3070).f,s=Function.prototype,l=i(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=i(u.exec);
vendor: 4,246 bytes, line 2
2r&&!o&&a(s,"name",{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(e){return""}}})},51532:function(e,t,n){"use strict";n(77710)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(95631))},44914:function(e,t,n){var r=n(82109),o=Math.log,i=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return o(e)/i}})},9653:function(e,t,n){"use strict";var r=n(19781),o=n(17854),i=n(1702),a=n(54705),s=n(31320),l=n(92597),u=n(79587),c=n(47976),f=n(52190),d=n(57593),p=n(47293),h=n(8006).f,m=n(31236).f,v=n(3070).f,y=n(50863),b=n(53111).trim,g="Number",w=o.Number,k=w.prototype,_=o.TypeError,O=i("".slice),x=i("".charCodeAt),S=function(e){var t=d(e,"number");return"bigint"==typeof t?t:j(t)},j=function(e){var t,n,r,o,i,a,s,l,u=d(e,"number");if(f(u))throw _("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=b(u),43===(t=x(u,0))||45===t){if(88===(n=x(u,2))||120===n)return NaN}else if(48===t){switch(x(u,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+u}for(a=(i=O(u,2)).length,s=0;s<a;s++)if((l=x(i,s))<48||l>o)return NaN;return parseInt(i,r)}return+u};if(a(g,!w(" 0o1")||!w("0b1")||w("+0x1"))){for(var P,C=function(e){var t=arguments.length<1?0:w(S(e)),n=this;return c(k,n)&&p((function(){y(n)}))?u(Object(t),n,C):t},E=r?h(w):"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(","),A=0;E.length>A;A++)l(w,P=E[A])&&!l(C,P)&&v(C,P,m(w,P));C.prototype=k,k.constructor=C,s(o,g,C)}},35192:function(e,t,n){n(82109)({target:"Number",stat:!0},{isFinite:n(77023)})},44048:function(e,t,n){n(82109)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},9494:function(e,t,n){var r=n(82109),o=n(83009);r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},56977:function(e,t,n){"use strict";var r=n(82109),o=n(17854),i=n(1702),a=n(19303),s=n(50863),l=n(38415),u=n(47293),c=o.RangeError,f=o.String,d=Math.floor,p=i(l),h=i("".slice),m=i(1..toFixed),v=function(e,t,n){return 0===t?n:t%2==1?v(e,t-1,n*e):v(e*e,t/2,n)},y=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=d(o/1e7)},b=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=d(r/t),r=r%t*1e7},g=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=f(e[t]);n=""===n?r:n+p("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:u((function(){return"0.000"!==m(8e-5,3)||"1"!==m(.9,0)||"1.25"!==m(1.255,2)||"1000000000000000128"!==m(0xde0b6b3a7640080,0)}))||!u((function(){m({})}))},{toFixed:function(e){var t,n,r,o,i=s(this),l=a(e),u=[0,0,0,0,0,0],d="",m="0";if(l<0||l>20)throw c("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return f(i);if(i<0&&(d="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*v(2,69,1))-69)<0?i*v(2,-t,1):i/v(2,t,1),n*=4503599627370496,(t=52-t)>0){for(y(u,0,n),r=l;r>=7;)y(u,1e7,0),r-=7;for(y(u,v(10,r,1),0),r=t-1;r>=23;)b(u,1<<23),r-=23;b(u,1<<r),y(u,1,1),b(u,2),m=g(u)}else y(u,0,n),y(u,1<<-t,0),m=g(u)+p("0",l);return l>0?d+((o=m.length)<=l?"0."+p("0",l-o)+m:h(m,0,o-l)+"."+h(m,o-l)):d+m}})},19601:function(e,t,n){var r=n(82109),o=n(21574);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},59595:function(e,t,n){"use strict";var r=n(82109),o=n(19781),i=n(69026),a=n(19662),s=n(47908),l=n(3070);o&&r({target:"Object",proto:!0,forced:i},{__defineGetter__:function(e,t){l.f(s(this),e,{get:a(t),enumerable:!0,configurable:!0})}})},35500:function(e,t,n){"use strict";var r=n(82109),o=n(19781),i=n(69026),a=n(19662),s=n(47908),l=n(3070);o&&r({target:"Object",proto:!0,forced:i},{__defineSetter__:function(e,t){l.f(s(this),e,{set:a(t),enumerable:!0,configurable:!0})}})},69720:function(e,t,n){var r=n(82109),o=n(44699).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},38880:function(e,t,n){var r=n(82109),o=n(47293),i=n(45656),a=n(31236).f,s=n(19781),l=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},49337:function(e,t,n){var r=n(82109),o=n(19781),i=n(53887),a=n(456
vendor: 4,135 bytes, line 2
256),s=n(31236),l=n(86135);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,u=i(r),c={},f=0;u.length>f;)void 0!==(n=o(r,t=u[f++]))&&l(c,t,n);return c}})},30489:function(e,t,n){var r=n(82109),o=n(47293),i=n(47908),a=n(79518),s=n(49920);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},47941:function(e,t,n){var r=n(82109),o=n(47908),i=n(81956);r({target:"Object",stat:!0,forced:n(47293)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},41539:function(e,t,n){var r=n(51694),o=n(31320),i=n(90288);r||o(Object.prototype,"toString",i,{unsafe:!0})},26833:function(e,t,n){var r=n(82109),o=n(44699).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},17727:function(e,t,n){"use strict";var r=n(82109),o=n(31913),i=n(13366),a=n(47293),s=n(35005),l=n(60614),u=n(36707),c=n(69478),f=n(31320);if(r({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,s("Promise")),n=l(e);return this.then(n?function(n){return c(t,e()).then((function(){return n}))}:e,n?function(n){return c(t,e()).then((function(){throw n}))}:e)}}),!o&&l(i)){var d=s("Promise").prototype.finally;i.prototype.finally!==d&&f(i.prototype,"finally",d,{unsafe:!0})}},88674:function(e,t,n){"use strict";var r,o,i,a,s=n(82109),l=n(31913),u=n(17854),c=n(35005),f=n(46916),d=n(13366),p=n(31320),h=n(12248),m=n(27674),v=n(58003),y=n(96340),b=n(19662),g=n(60614),w=n(70111),k=n(25787),_=n(42788),O=n(20408),x=n(17072),S=n(36707),j=n(20261).set,P=n(95948),C=n(69478),E=n(842),A=n(78523),M=n(12534),R=n(29909),T=n(54705),D=n(5112),I=n(7871),V=n(35268),L=n(7392),N=D("species"),F="Promise",B=R.getterFor(F),z=R.set,U=R.getterFor(F),H=d&&d.prototype,q=d,W=H,K=u.TypeError,Y=u.document,G=u.process,$=A.f,J=$,Z=!!(Y&&Y.createEvent&&u.dispatchEvent),X=g(u.PromiseRejectionEvent),Q="unhandledrejection",ee=!1,te=T(F,(function(){var e=_(q),t=e!==String(q);if(!t&&66===L)return!0;if(l&&!W.finally)return!0;if(L>=51&&/native code/.test(e))return!1;var n=new q((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[N]=r,!(ee=n.then((function(){}))instanceof r)||!t&&I&&!X})),ne=te||!x((function(e){q.all(e).catch((function(){}))})),re=function(e){var t;return!(!w(e)||!g(t=e.then))&&t},oe=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;P((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,s,l,u=n[i++],c=o?u.ok:u.fail,d=u.resolve,p=u.reject,h=u.domain;try{c?(o||(2===e.rejection&&le(e),e.rejection=1),!0===c?a=r:(h&&h.enter(),a=c(r),h&&(h.exit(),l=!0)),a===u.promise?p(K("Promise-chain cycle")):(s=re(a))?f(s,a,d,p):d(a)):p(r)}catch(e){h&&!l&&h.exit(),p(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ae(e)}))}},ie=function(e,t,n){var r,o;Z?((r=Y.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!X&&(o=u["on"+e])?o(r):e===Q&&E("Unhandled promise rejection",n)},ae=function(e){f(j,u,(function(){var t,n=e.facade,r=e.value;if(se(e)&&(t=M((function(){V?G.emit("unhandledRejection",r,n):ie(Q,n,r)})),e.rejection=V||se(e)?2:1,t.error))throw t.value}))},se=function(e){return 1!==e.rejection&&!e.parent},le=function(e){f(j,u,(function(){var t=e.facade;V?G.emit("rejectionHandled",t):ie("rejectionhandled",t,e.value)}))},ue=function(e,t,n){return function(r){e(t,r,n)}},ce=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,oe(e,!0))},fe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw K("Promise can't be resolved itself");var r=re(t);r?P((function(){var n={done:!1};try{f(r,t,ue(fe,n,e),ue(ce,n,e))}catch(t){ce(n,t,e)}})):(e.value=t,e.state=1,oe(e,!1))}catch(t){ce({done:!1},t,e)}}};if(te&&(W=(q=function(e){k(this,W),b(e),f(r,this);var t=B(this);try{e(ue(fe,t),ue(ce,t))}catch(e){ce(t,e)}}).prototype,(r=function(e){z(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(W,{then:function(e,t){var n=U(this),r=n.reactions,o=$(S(this,q));
2return o.ok=!g(e)||e,o.fail=g(t)&&t,o.domain=V?G.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&oe(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=B(e);this.promise=e,this.resolve=ue(fe,t),this.reject=ue(ce,t)},A.f=$=function(e){return e===q||e===i?new o(e):J(e)},!l&&g(d)&&H!==Object.prototype)){a=H.then,ee||(p(H,"then",(function(e,t){var n=this;return new q((function(e,t){f(a,n,e,t)})).then(e,t)}),{unsafe:!0}),p(H,"catch",W.catch,{unsafe:!0}));try{delete H.constructor}catch(e){}m&&m(H,W)}s({global:!0,wrap:!0,forced:te},{Promise:q}),v(q,F,!1,!0),y(F),i=c(F),s({target:F,stat:!0,forced:te},{reject:function(e){var t=$(this);return f(t.reject,void 0,e),t.promise}}),s({target:F,stat:!0,forced:l||te},{resolve:function(e){return C(l&&this===i?q:this,e)}}),s({target:F,stat:!0,forced:ne},{all:function(e){var t=this,n=$(t),r=n.resolve,o=n.reject,i=M((function(){var n=b(t.resolve),i=[],a=0,s=1;O(e,(function(e){var l=a++,u=!1;s++,f(n,t,e).then((function(e){u||(u=!0,i[l]=e,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=$(t),r=n.reject,o=M((function(){var o=b(t.resolve);O(e,(function(e){f(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},12419:function(e,t,n){var r=n(82109),o=n(35005),i=n(22104),a=n(27065),s=n(39483),l=n(19670),u=n(70111),c=n(70030),f=n(47293),d=o("Reflect","construct"),p=Object.prototype,h=[].push,m=f((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),v=!f((function(){d((function(){}))})),y=m||v;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(v&&!m)return d(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return i(h,r,t),new(i(a,e,r))}var o=n.prototype,f=c(u(o)?o:p),y=i(e,f,t);return u(y)?y:f}})},74819:function(e,t,n){var r=n(82109),o=n(46916),i=n(70111),a=n(19670),s=n(45032),l=n(31236),u=n(79518);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,c,f=arguments.length<3?t:arguments[2];return a(t)===f?t[n]:(r=l.f(t,n))?s(r)?r.value:void 0===r.get?void 0:o(r.get,f):i(c=u(t))?e(c,n,f):void 0}})},83593:function(e,t,n){var r=n(82109),o=n(46916),i=n(19670),a=n(70111),s=n(45032),l=n(47293),u=n(3070),c=n(31236),f=n(79518),d=n(79114);r({target:"Reflect",stat:!0,forced:l((function(){var e=function(){},t=u.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)}))},{set:function e(t,n,r){var l,p,h,m=arguments.length<4?t:arguments[3],v=c.f(i(t),n);if(!v){if(a(p=f(t)))return e(p,n,r,m);v=d(0)}if(s(v)){if(!1===v.writable||!a(m))return!1;if(l=c.f(m,n)){if(l.get||l.set||!1===l.writable)return!1;l.value=r,u.f(m,n,l)}else u.f(m,n,d(0,r))}else{if(void 0===(h=v.set))return!1;o(h,m,r)}return!0}})},24603:function(e,t,n){var r=n(19781),o=n(17854),i=n(1702),a=n(54705),s=n(79587),l=n(68880),u=n(3070).f,c=n(8006).f,f=n(47976),d=n(47850),p=n(41340),h=n(67066),m=n(52999),v=n(31320),y=n(47293),b=n(92597),g=n(29909).enforce,w=n(96340),k=n(5112),_=n(9441),O=n(38173),x=k("match"),S=o.RegExp,j=S.prototype,P=o.SyntaxError,C=i(h),E=i(j.exec),A=i("".charAt),M=i("".replace),R=i("".indexOf),T=i("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,I=/a/g,V=/a/g,L=new S(I)!==I,N=m.MISSED_STICKY,F=m.UNSUPPORTED_Y;if(a("RegExp",r&&(!L||N||_||O||y((function(){return V[x]=!1,S(I)!=I||S(V)==V||"/a/i"!=S(I,"i")}))))){for(var B=function(e,t){var n,r,o,i,a,u,c=f(j,this),h=d(e),m=void 0===t,v=[],y=e;if(!c&&h&&m&&e.constructor===B)return e;if((h||f(j,e))&&(e=e.source,m&&(t="flags"in y?y.flags:C(y))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),y=e,_&&"dotAll"in I&&(r=!!t&&R(t,"s")>-1)&&(t=M(t,/s/g,"")),n=t,N&&"sticky"in I&&(o=!!t&&R(t,"y")>-1)&&F&&(t=M(t,/y/g,"")),O&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},s=!1,l=!1,u=0,c="";r<=n;r++){if("\\"===(t=A(e,r)))t+=A(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:E(D,T(e,r+1))&&(r+=2,l=!0),o+=t,u++;continue;case">"===t&&l:if(""===c||b(a,c))throw new P("Invalid capture group name");a[c]=!0,i[i.length]=[c,u],l=!1,c="";continue}l?c+=t:o+=t}return[o,i]}(e),e=i[0],v=i[1]),a=s(S(e,t),c?this:j,B),(r||o||v.length)&&(u=g(a),r&&(u.dotAll=!0,u.raw=B(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=A(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+A(e,++r);return o}(e),n)),o&&(u.sticky=!0),v.length&&(u.groups=v)),e!==y)try{l(a,"source",""===y?"(?:)":y)}catch(e){}return a},z=function(e){e in B||u(B,e,{configurable:!0,get:function(){return S[e]},set:function(t){S[e]=t}})},U=c(S),H=0;U.length>H;)z(U[H++]);j.constructor=B,B.prototype=j,v(o,"RegExp",B)}w("RegExp")},74916:function(e,t,n){"use strict";var r=n(82109),o=n(22261);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},92087:function(e,t,n){var r=n(19781),o=n(3070),i=n(67066),a=n(47293),s=RegExp.prototype;r&&a((function(){return"sy"!==Object.getOwnPropertyDescriptor(s,"flags").get.call({dotAll:!0,sticky:!0})}))&&o.f(s,"flags",{configurable:!0,get:i})},39714:function(e,t,n){"use strict";var r=n(1702),o=n(76530).PROPER,i=n(31320),a=n(19670),s=n(47976),l=n(41340),u=n(47293),c=n(67066),f="toString",d=RegExp.prototype,p=d.toString,h=r(c),m=u((function(){return"/a/b"!=p.call({
vendor: 8,867 bytes, line 2
2source:"a",flags:"b"})})),v=o&&p.name!=f;(m||v)&&i(RegExp.prototype,f,(function(){var e=a(this),t=l(e.source),n=e.flags;return"/"+t+"/"+l(void 0===n&&s(d,e)&&!("flags"in d)?h(e):n)}),{unsafe:!0})},32023:function(e,t,n){"use strict";var r=n(82109),o=n(1702),i=n(3929),a=n(84488),s=n(41340),l=n(84964),u=o("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},78783:function(e,t,n){"use strict";var r=n(28710).charAt,o=n(41340),i=n(29909),a=n(70654),s="String Iterator",l=i.set,u=i.getterFor(s);a(String,"String",(function(e){l(this,{type:s,string:o(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},4723:function(e,t,n){"use strict";var r=n(46916),o=n(27007),i=n(19670),a=n(17466),s=n(41340),l=n(84488),u=n(58173),c=n(31530),f=n(97651);o("match",(function(e,t,n){return[function(t){var n=l(this),o=null==t?void 0:u(t,e);return o?r(o,t,n):new RegExp(t)[e](s(n))},function(e){var r=i(this),o=s(e),l=n(t,r,o);if(l.done)return l.value;if(!r.global)return f(r,o);var u=r.unicode;r.lastIndex=0;for(var d,p=[],h=0;null!==(d=f(r,o));){var m=s(d[0]);p[h]=m,""===m&&(r.lastIndex=c(o,a(r.lastIndex),u)),h++}return 0===h?null:p}]}))},83112:function(e,t,n){"use strict";var r=n(82109),o=n(76650).start;r({target:"String",proto:!0,forced:n(54986)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},82481:function(e,t,n){n(82109)({target:"String",proto:!0},{repeat:n(38415)})},15306:function(e,t,n){"use strict";var r=n(22104),o=n(46916),i=n(1702),a=n(27007),s=n(47293),l=n(19670),u=n(60614),c=n(19303),f=n(17466),d=n(41340),p=n(84488),h=n(31530),m=n(58173),v=n(10647),y=n(97651),b=n(5112)("replace"),g=Math.max,w=Math.min,k=i([].concat),_=i([].push),O=i("".indexOf),x=i("".slice),S="$0"==="a".replace(/./,"$0"),j=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,n){var i=j?"$":"$0";return[function(e,n){var r=p(this),i=null==e?void 0:m(e,b);return i?o(i,e,r,n):o(t,d(r),e,n)},function(e,o){var a=l(this),s=d(e);if("string"==typeof o&&-1===O(o,i)&&-1===O(o,"$<")){var p=n(t,a,s,o);if(p.done)return p.value}var m=u(o);m||(o=d(o));var b=a.global;if(b){var S=a.unicode;a.lastIndex=0}for(var j=[];;){var P=y(a,s);if(null===P)break;if(_(j,P),!b)break;""===d(P[0])&&(a.lastIndex=h(s,f(a.lastIndex),S))}for(var C,E="",A=0,M=0;M<j.length;M++){for(var R=d((P=j[M])[0]),T=g(w(c(P.index),s.length),0),D=[],I=1;I<P.length;I++)_(D,void 0===(C=P[I])?C:String(C));var V=P.groups;if(m){var L=k([R],D,T,s);void 0!==V&&_(L,V);var N=d(r(o,void 0,L))}else N=v(R,s,T,D,V,o);T>=A&&(E+=x(s,A,T)+N,A=T+R.length)}return E+x(s,A)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!S||j)},64765:function(e,t,n){"use strict";var r=n(46916),o=n(27007),i=n(19670),a=n(84488),s=n(81150),l=n(41340),u=n(58173),c=n(97651);o("search",(function(e,t,n){return[function(t){var n=a(this),o=null==t?void 0:u(t,e);return o?r(o,t,n):new RegExp(t)[e](l(n))},function(e){var r=i(this),o=l(e),a=n(t,r,o);if(a.done)return a.value;var u=r.lastIndex;s(u,0)||(r.lastIndex=0);var f=c(r,o);return s(r.lastIndex,u)||(r.lastIndex=u),null===f?-1:f.index}]}))},23123:function(e,t,n){"use strict";var r=n(22104),o=n(46916),i=n(1702),a=n(27007),s=n(47850),l=n(19670),u=n(84488),c=n(36707),f=n(31530),d=n(17466),p=n(41340),h=n(58173),m=n(41589),v=n(97651),y=n(22261),b=n(52999),g=n(47293),w=b.UNSUPPORTED_Y,k=4294967295,_=Math.min,O=[].push,x=i(/./.exec),S=i(O),j=i("".slice),P=!g((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));a("split",(function(e,t,n){var i;return i="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,n){var i=p(u(this)),a=void 0===n?k:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!s(e))return o(t,i,e,a);for(var l,c,f,d=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),v=0,b=new RegExp(e.source,h+"g");(l=o(y,b,i))&&!((c=b.lastIndex)>v&&(S(d,j(i,v,l.index)),l.length>1&&l.index<i.length&&r(O,d,m(l,1)),f=l[0].length,v=c,d.length>=a));)b.lastIndex===l.index&&b.lastIndex++;return v===i.length?!f&&x(b,"")||S(d,""):S(d,j(i,v)),d.length>a?m(d,0,a):d}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:o(t,this,e,n)}:t,[function(t,n){var r=u(this),a=null==t?void 0:h(t,e);return a?o(a,t,r,n):o(i,p(r),t,n)},function(e,r){var o=l(this),a=p(e),s=n(i,o,a,r,i!==t);if(s.done)return s.value;var u=c(o,RegExp),h=o.unicode,m=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(w?"g":"y"),y=new u(w?"^(?:"+o.source+")":o,m),b=void 0===r?k:r>>>0;if(0===b)return[];if(0===a.length)return null===v(y,a)?[a]:[];for(var g=0,O=0,x=[];O<a.length;){y.lastIndex=w?0:O;var P,C=v(y,w?j(a,O):a);if(null===C||(P=_(d(y.lastIndex+(w?O:0)),a.length))===g)O=f(a,O,h);else{if(S(x,j(a,g,O)),x.length===b)return x;for(var E=1;E<=C.length-1;E++)if(S(x,C[E]),x.length===b)return x;O=g=P}}return S(x,j(a,g)),x}]}),!P,w)},23157:function(e,t,n){"use strict";var r,o=n(82109),i=n(1702),a=n(31236).f,s=n(17466),l=n(41340),u=n(3929),c=n(84488),f=n(84964),d=n(31913),p=i("".startsWith),h=i("".slice),m=Math.min,v=f("startsWith");o({target:"String",proto:!0,forced:!(!d&&!v&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||v)},{startsWith:function(e){var t=l(c(this));u(e);var n=s(m(arguments.length>1?arguments[1]:void 0,t.length)),r=l(e);return p?p(t,r,n):h(t,n,n+r.length)===r}})},73210:function(e,t,n){"use strict";var r=n(82109),o=n(53111).trim;r({target:"String",proto:!0,forced:n(76091)("trim")},{trim:function(){return o(this)}})},41817:function(e,t,n){"use strict";var r=n(82109),o=n(19781),i=n(17854),a=n(1702),s=n(92597),l=n(60614),u=n(47976),c=n(41340),f=n(3070).f,d=n(99920),p=i.Symbol,h=p&&p.prototype;if(o&&l(p)&&(!("description"in h)||void 0!==p().description)){var m={},v=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(h,this)?new p(e):void 0===e?p():p(e);return""===e&&(m[t]=!0),t};d(v,p),v.prototype=h,h.constructor=v;var y="Symbol(test)"==String(p("test")),b=a(h.toString),g=a(h.valueOf),w=/^Symbol\((.*)\)[^)]+$/,k=a("".replace),_=a("".slice);f(h,"description",{configurable:!0,get:function(){var e=g(this),t=b(e);if(s(m,e))return"";var n=y?_(t,7,-1):k(t,w,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:v})}},32165:function(e,t,n){n(97235)("iterator")},82526:function(e,t,n){"use strict";var r=n(82109),o=n(17854),i=n(35005),a=n(22104),s=n(46916),l=n(1702),u=n(31913),c=n(19781),f=n(30133),d=n(47293),p=n(92597),h=n(43157),m=n(60614),v=n(70111),y=n(47976),b=n(52190),g=n(19670),w=n(47908),k=n(45656),_=n(34948),O=n(41340),x=n(79114),S=n(70030),j=n(81956),P=n(8006),C=n(1156),E=n(25181),A=n(31236),M=n(3070),R=n(55296),T=n(50206),D=n(31320),I=n(72309),V=n(6200),L=n(3501),N=n(69711),F=n(5112),B=n(6061),z=n(97235),U=n(58003),H=n(29909),q=n(42092).forEach,W=V("hidden"),K="Symbol",Y=F("toPrimitive"),G=H.set,$=H.getterFor(K),J=Object.prototype,Z=o.Symbol,X=Z&&Z.prototype,Q=o.TypeError,ee=o.QObject,te=i("JSON","stringify"),ne=A.f,re=M.f,oe=C.f,ie=R.f,ae=l([].push),se=I("symbols"),le=I("op-symbols"),ue=I("string-to-symbol-registry"),ce=I("symbol-to-string-registry"),fe=I("wks"),de=!ee||!ee.prototype||!ee.prototype.findChild,pe=c&&d((function(){return 7!=S(re({},"a",{get:function(){return re(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=ne(J,t);r&&delete J[t],re(e,t,n),r&&e!==J&&re(J,t,r)}:re,he=function(e,t){var n=se[e]=S(X);return G(n,{type:K,tag:e,description:t}),c||(n.description=t),n},me=function(e,t,n){e===J&&me(le,t,n),g(e);var r=_(t);return g(n),p(se,r)?(n.enumerable?(p(e,W)&&e[W][r]&&(e[W][r]=!1),n=S(n,{enumerable:x(0,!1)})):(p(e,W)||re(e,W,x(1,{})),e[W][r]=!0),pe(e,r,n)):re(e,r,n)},ve=function(e,t){g(e);var n=k(t),r=j(n).concat(we(n));return q(r,(function(t){c&&!s(ye,n,t)||me(e,t,n[t])})),e},ye=function(e){var t=_(e),n=s(ie,this,t);return!(this===J&&p(se,t)&&!p(le,t))&&(!(n||!p(this,t)||!p(se,t)||p(this,W)&&this[W][t])||n)},be=function(e,t){var n=k(e),r=_(t);if(n!==J||!p(se,r)||p(le,r)){var o=ne(n,r);return!o||!p(se,r)||p(n,W)&&n[W][r]||(o.enumerable=!0),o}},ge=function(e){var t=oe(k(e)),n=[];return q(t,(function(e){p(se,e)||p(L,e)||ae(n,e)})),n},we=function(e){var t=e===J,n=oe(t?le:k(e)),r=[];return q(n,(function(e){!p(se,e)||t&&!p(J,e)||ae(r,se[e])})),r};if(f||(Z=function(){if(y(X,this))throw Q("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?O(arguments[0]):void 0,t=N(e),n=function(e){this===J&&s(n,le,e),p(this,W)&&p(this[W],t)&&(this[W][t]=!1),pe(this,t,x(1,e))};
2return c&&de&&pe(J,t,{configurable:!0,set:n}),he(t,e)},D(X=Z.prototype,"toString",(function(){return $(this).tag})),D(Z,"withoutSetter",(function(e){return he(N(e),e)})),R.f=ye,M.f=me,A.f=be,P.f=C.f=ge,E.f=we,B.f=function(e){return he(F(e),e)},c&&(re(X,"description",{configurable:!0,get:function(){return $(this).description}}),u||D(J,"propertyIsEnumerable",ye,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:Z}),q(j(fe),(function(e){z(e)})),r({target:K,stat:!0,forced:!f},{for:function(e){var t=O(e);if(p(ue,t))return ue[t];var n=Z(t);return ue[t]=n,ce[n]=t,n},keyFor:function(e){if(!b(e))throw Q(e+" is not a symbol");if(p(ce,e))return ce[e]},useSetter:function(){de=!0},useSimple:function(){de=!1}}),r({target:"Object",stat:!0,forced:!f,sham:!c},{create:function(e,t){return void 0===t?S(e):ve(S(e),t)},defineProperty:me,defineProperties:ve,getOwnPropertyDescriptor:be}),r({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:ge,getOwnPropertySymbols:we}),r({target:"Object",stat:!0,forced:d((function(){E.f(1)}))},{getOwnPropertySymbols:function(e){return E.f(w(e))}}),te&&r({target:"JSON",stat:!0,forced:!f||d((function(){var e=Z();return"[null]"!=te([e])||"{}"!=te({a:e})||"{}"!=te(Object(e))}))},{stringify:function(e,t,n){var r=T(arguments),o=t;if((v(t)||void 0!==e)&&!b(e))return h(t)||(t=function(e,t){if(m(o)&&(t=s(o,this,e,t)),!b(t))return t}),r[1]=t,a(te,null,r)}}),!X[Y]){var ke=X.valueOf;D(X,Y,(function(e){return s(ke,this)}))}U(Z,K),L[W]=!0},92990:function(e,t,n){"use strict";var r=n(1702),o=n(90260),i=r(n(1048)),a=o.aTypedArray;(0,o.exportTypedArrayMethod)("copyWithin",(function(e,t){return i(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},18927:function(e,t,n){"use strict";var r=n(90260),o=n(42092).every,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},33105:function(e,t,n){"use strict";var r=n(90260),o=n(46916),i=n(21285),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("fill",(function(e){var t=arguments.length;return o(i,a(this),e,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}))},35035:function(e,t,n){"use strict";var r=n(90260),o=n(42092).filter,i=n(43074),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(e){var t=o(a(this),e,arguments.length>1?arguments[1]:void 0);return i(this,t)}))},7174:function(e,t,n){"use strict";var r=n(90260),o=n(42092).findIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},74345:function(e,t,n){"use strict";var r=n(90260),o=n(42092).find,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},32846:function(e,t,n){"use strict";var r=n(90260),o=n(42092).forEach,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},44731:function(e,t,n){"use strict";var r=n(90260),o=n(41318).includes,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},77209:function(e,t,n){"use strict";var r=n(90260),o=n(41318).indexOf,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},96319:function(e,t,n){"use strict";var r=n(17854),o=n(1702),i=n(76530).PROPER,a=n(90260),s=n(66992),l=n(5112)("iterator"),u=r.Uint8Array,c=o(s.values),f=o(s.keys),d=o(s.entries),p=a.aTypedArray,h=a.exportTypedArrayMethod,m=u&&u.prototype[l],v=!!m&&"values"===m.name,y=function(){return c(p(this))};h("entries",(function(){return d(p(this))})),h("keys",(function(){return f(p(this))})),h("values",y,i&&!v),h(l,y,i&&!v)},58867:function(e,t,n){"use strict";var r=n(90260),o=n(1702),i=r.aTypedArray,a=r.exportTypedArrayMethod,s=o([].join);a("join",(function(e){return s(i(this),e)}))},37789:function(e,t,n){"use strict";var r=n(90260),o=n(22104),i=n(86583),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return o(i,a(this),t>1?[e,arguments[1]]:[e])}))},33739:function(e,t,n){"use strict";var r=n(90260),o=n(42092).map,i=n(66304),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(i(e))(t)}))}))},14483:function(e,t,n){"use strict";var r=n(90260),o=n(53671).right,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},29368:function(e,t,n){"use strict";var r=n(90260),o=n(53671).left,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},12056:function(e,t,n){"use strict";var r=n(90260),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=this,n=o(t).length,r=a(n/2),i=0;i<r;)e=t[i],t[i++]=t[--n],t[n]=e;return t}))},3462:function(e,t,n){"use strict";var r=n(17854),o=n(90260),i=n(26244),a=n(84590),s=n(47908),l=n(47293),u=r.RangeError,c=o.aTypedArray;(0,o.exportTypedArrayMethod)("set",(function(e){c(this);var t=a(arguments.length>
21?arguments[1]:void 0,1),n=this.length,r=s(e),o=i(r),l=0;if(o+t>n)throw u("Wrong length");for(;l<o;)this[t+l]=r[l++]}),l((function(){new Int8Array(1).set({})})))},30678:function(e,t,n){"use strict";var r=n(90260),o=n(66304),i=n(47293),a=n(50206),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("slice",(function(e,t){for(var n=a(s(this),e,t),r=o(this),i=0,l=n.length,u=new r(l);l>i;)u[i]=n[i++];return u}),i((function(){new Int8Array(1).slice()})))},27462:function(e,t,n){"use strict";var r=n(90260),o=n(42092).some,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},33824:function(e,t,n){"use strict";var r=n(17854),o=n(1702),i=n(47293),a=n(19662),s=n(94362),l=n(90260),u=n(68886),c=n(30256),f=n(7392),d=n(98008),p=r.Array,h=l.aTypedArray,m=l.exportTypedArrayMethod,v=r.Uint16Array,y=v&&o(v.prototype.sort),b=!(!y||i((function(){y(new v(2),null)}))&&i((function(){y(new v(2),{})}))),g=!!y&&!i((function(){if(f)return f<74;if(u)return u<67;if(c)return!0;if(d)return d<602;var e,t,n=new v(516),r=p(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(y(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));m("sort",(function(e){return void 0!==e&&a(e),g?y(this,e):s(h(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!g||b)},55021:function(e,t,n){"use strict";var r=n(90260),o=n(17466),i=n(51400),a=n(66304),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=s(this),r=n.length,l=i(e,r);return new(a(n))(n.buffer,n.byteOffset+l*n.BYTES_PER_ELEMENT,o((void 0===t?r:i(t,r))-l))}))},12974:function(e,t,n){"use strict";var r=n(17854),o=n(22104),i=n(90260),a=n(47293),s=n(50206),l=r.Int8Array,u=i.aTypedArray,c=i.exportTypedArrayMethod,f=[].toLocaleString,d=!!l&&a((function(){f.call(new l(1))}));c("toLocaleString",(function(){return o(f,d?s(u(this)):u(this),s(arguments))}),a((function(){return[1,2].toLocaleString()!=new l([1,2]).toLocaleString()}))||!a((function(){l.prototype.toLocaleString.call([1,2])})))},15016:function(e,t,n){"use strict";var r=n(90260).exportTypedArrayMethod,o=n(47293),i=n(17854),a=n(1702),s=i.Uint8Array,l=s&&s.prototype||{},u=[].toString,c=a([].join);o((function(){u.call({})}))&&(u=function(){return c(this)});var f=l.toString!=u;r("toString",u,f)},82472:function(e,t,n){n(19843)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},4129:function(e,t,n){"use strict";var r,o=n(17854),i=n(1702),a=n(12248),s=n(62423),l=n(77710),u=n(29320),c=n(70111),f=n(52050),d=n(29909).enforce,p=n(68536),h=!o.ActiveXObject&&"ActiveXObject"in o,m=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},v=l("WeakMap",m,u);if(p&&h){r=u.getConstructor(m,"WeakMap",!0),s.enable();var y=v.prototype,b=i(y.delete),g=i(y.has),w=i(y.get),k=i(y.set);a(y,{delete:function(e){if(c(e)&&!f(e)){var t=d(this);return t.frozen||(t.frozen=new r),b(this,e)||t.frozen.delete(e)}return b(this,e)},has:function(e){if(c(e)&&!f(e)){var t=d(this);return t.frozen||(t.frozen=new r),g(this,e)||t.frozen.has(e)}return g(this,e)},get:function(e){if(c(e)&&!f(e)){var t=d(this);return t.frozen||(t.frozen=new r),g(this,e)?w(this,e):t.frozen.get(e)}return w(this,e)},set:function(e,t){if(c(e)&&!f(e)){var n=d(this);n.frozen||(n.frozen=new r),g(this,e)?k(this,e,t):n.frozen.set(e,t)}else k(this,e,t);return this}})}},54747:function(e,t,n){var r=n(17854),o=n(48324),i=n(98509),a=n(18533),s=n(68880),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in o)o[u]&&l(r[u]&&r[u].prototype);l(i)},33948:function(e,t,n){var r=n(17854),o=n(48324),i=n(98509),a=n(66992),s=n(68880),l=n(5112),u=l("iterator"),c=l("toStringTag"),f=a.values,d=function(e,t){if(e){if(e[u]!==f)try{s(e,u,f)}catch(t){e[u]=f}if(e[c]||s(e,c,t),o[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var p in o)d(r[p]&&r[p].prototype,p);d(i,"DOMTokenList")},67810:function(){!function(){if("undefined"!=typeof window)try{var e=new window.CustomEvent("test",{cancelable:!0});if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default")}catch(e){var t=function(e,t){var n,r;return(t=t||{}).bubbles=!!t.bubbles,t.cancelable=!!t.cancelable,(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),r=n.preventDefault,n.preventDefault=function(){r.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},n};t.prototype=window.Event.prototype,window.CustomEvent=t}}()},27856:function(e){e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,n=Object.isFrozen,r=Object.getPrototypeOf,o=Object.getOwnPropertyDescriptor,i=Object.freeze,a=Object.
2seal,s=Object.create,l="undefined"!=typeof Reflect&&Reflect,u=l.apply,c=l.construct;u||(u=function(e,t,n){return e.apply(t,n)}),i||(i=function(e){return e}),a||(a=function(e){return e}),c||(c=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))))});var f,d=_(Array.prototype.forEach),p=_(Array.prototype.pop),h=_(Array.prototype.push),m=_(String.prototype.toLowerCase),v=_(String.prototype.match),y=_(String.prototype.replace),b=_(String.prototype.indexOf),g=_(String.prototype.trim),w=_(RegExp.prototype.test),k=(f=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(f,t)});function _(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return u(e,t,r)}}function O(e,r){t&&t(e,null);for(var o=r.length;o--;){var i=r[o];if("string"==typeof i){var a=m(i);a!==i&&(n(r)||(r[o]=a),i=a)}e[i]=!0}return e}function x(t){var n=s(null),r=void 0;for(r in t)u(e,t,[r])&&(n[r]=t[r]);return n}function S(e,t){for(;null!==e;){var n=o(e,t);if(n){if(n.get)return _(n.get);if("function"==typeof n.value)return _(n.value)}e=r(e)}return function(e){return console.warn("fallback value for",e),null}}var j=i(["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"]),P=i(["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"]),C=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),E=i(["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"]),A=i(["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"]),M=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R=i(["#text"]),T=i(["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","
2spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),D=i(["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","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"]),I=i(["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"]),V=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L=a(/\{\{[\s\S]*|[\s\S]*\}\}/gm),N=a(/<%[\s\S]*|[\s\S]*%>/gm),F=a(/^data-[\-\w.\u00B7-\uFFFF]/),B=a(/^aria-[\-\w]+$/),z=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=a(/^(?:\w+script|data):/i),H=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q="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};function W(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var K=function(){return"undefined"==typeof window?null:window},Y=function(e,t){if("object"!==(void 0===e?"undefined":q(e))||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K(),n=function(t){return e(t)};if(n.version="2.3.4",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,o=t.document,a=t.DocumentFragment,s=t.HTMLTemplateElement,l=t.Node,u=t.Element,c=t.NodeFilter,f=t.NamedNodeMap,_=void 0===f?t.NamedNodeMap||t.MozNamedAttrMap:f,G=t.HTMLFormElement,$=t.DOMParser,J=t.trustedTypes,Z=u.prototype,X=S(Z,"cloneNode"),Q=S(Z,"nextSibling"),ee=S(Z,"childNodes"),te=S(Z,"parentNode");if("function"==typeof s){var ne=o.createElement("template");ne.content&&ne.content.ownerDocument&&(o=ne.content.ownerDocument)}var re=Y(J,r),oe=re&&Ve?re.createHTML(""):"",ie=o,ae=ie.implementation,se=ie.createNodeIterator,le=ie.createDocumentFragment,ue=ie.getElementsByTagName,ce=r.importNode,fe={};try{fe=x(o).documentMode?o.documentMode:{}}catch(e){}var de={};n.isSupported="function"==typeof te&&ae&&void 0!==ae.createHTMLDocument&&9!==fe;var pe=L,he=N,me=F,ve=B,ye=U,be=H,ge=z,we=null,ke=O({},[].concat(W(j),W(P),W(C),W(A),W(R))),_e=null,Oe=O({},[].concat(W(T),W(D),W(I),W(V))),xe=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}})),Se=null,je=null,Pe=!0,Ce=!0,Ee=!1,Ae=!1,Me=!1,Re=!1,Te=!1,De=!1,Ie=!1,Ve=!1,Le=!0,Ne=!0,Fe=!1,Be={},ze=null,Ue=O({},["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"]),He=null,qe=O({},["audio","video","img","source","image","track"]),We=null,Ke=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ye="http://www.w3.org/1998/Math/MathML",Ge="http://www.w3.org/2000/svg",$e="http://www.w3.org/1999/xhtml",Je=$e,Ze=!1,Xe=void 0,Qe=["application/xhtml+xml","text/html"],et="text/html",tt=void 0,nt=null,rt=o.createElement("form"),ot=function(e){return e instanceof RegExp||e instanceof Function},it=function(e){nt&&nt===e||(e&&"object"===(void 0===e?"undefined":q(e))||(e={}),e=x(e),we="ALLOWED_TAGS"in e?O({},e.ALLOWED_TAGS):ke,_e="ALLOWED_ATTR"in e?O({},e.ALLOWED_ATTR):Oe,We="ADD_URI_SAFE_ATTR"in e?O(x(Ke),e.ADD_URI_SAFE_ATTR):Ke,He="ADD_DATA_URI_TAGS"in e?O(x(qe),e.ADD_DATA_URI_TAGS):qe,ze="FORBID_CONTENTS"in e?O({}
2,e.FORBID_CONTENTS):Ue,Se="FORBID_TAGS"in e?O({},e.FORBID_TAGS):{},je="FORBID_ATTR"in e?O({},e.FORBID_ATTR):{},Be="USE_PROFILES"in e&&e.USE_PROFILES,Pe=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,Ee=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=e.SAFE_FOR_TEMPLATES||!1,Me=e.WHOLE_DOCUMENT||!1,De=e.RETURN_DOM||!1,Ie=e.RETURN_DOM_FRAGMENT||!1,Ve=e.RETURN_TRUSTED_TYPE||!1,Te=e.FORCE_BODY||!1,Le=!1!==e.SANITIZE_DOM,Ne=!1!==e.KEEP_CONTENT,Fe=e.IN_PLACE||!1,ge=e.ALLOWED_URI_REGEXP||ge,Je=e.NAMESPACE||$e,e.CUSTOM_ELEMENT_HANDLING&&ot(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(xe.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ot(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(xe.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(xe.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Xe=Xe=-1===Qe.indexOf(e.PARSER_MEDIA_TYPE)?et:e.PARSER_MEDIA_TYPE,tt="application/xhtml+xml"===Xe?function(e){return e}:m,Ae&&(Ce=!1),Ie&&(De=!0),Be&&(we=O({},[].concat(W(R))),_e=[],!0===Be.html&&(O(we,j),O(_e,T)),!0===Be.svg&&(O(we,P),O(_e,D),O(_e,V)),!0===Be.svgFilters&&(O(we,C),O(_e,D),O(_e,V)),!0===Be.mathMl&&(O(we,A),O(_e,I),O(_e,V))),e.ADD_TAGS&&(we===ke&&(we=x(we)),O(we,e.ADD_TAGS)),e.ADD_ATTR&&(_e===Oe&&(_e=x(_e)),O(_e,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&O(We,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(ze===Ue&&(ze=x(ze)),O(ze,e.FORBID_CONTENTS)),Ne&&(we["#text"]=!0),Me&&O(we,["html","head","body"]),we.table&&(O(we,["tbody"]),delete Se.tbody),i&&i(e),nt=e)},at=O({},["mi","mo","mn","ms","mtext"]),st=O({},["foreignobject","desc","title","annotation-xml"]),lt=O({},P);O(lt,C),O(lt,E);var ut=O({},A);O(ut,M);var ct=function(e){var t=te(e);t&&t.tagName||(t={namespaceURI:$e,tagName:"template"});var n=m(e.tagName),r=m(t.tagName);if(e.namespaceURI===Ge)return t.namespaceURI===$e?"svg"===n:t.namespaceURI===Ye?"svg"===n&&("annotation-xml"===r||at[r]):Boolean(lt[n]);if(e.namespaceURI===Ye)return t.namespaceURI===$e?"math"===n:t.namespaceURI===Ge?"math"===n&&st[r]:Boolean(ut[n]);if(e.namespaceURI===$e){if(t.namespaceURI===Ge&&!st[r])return!1;if(t.namespaceURI===Ye&&!at[r])return!1;var o=O({},["title","style","font","a","script"]);return!ut[n]&&(o[n]||!lt[n])}return!1},ft=function(e){h(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=oe}catch(t){e.remove()}}},dt=function(e,t){try{h(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){h(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!_e[e])if(De||Ie)try{ft(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},pt=function(e){var t=void 0,n=void 0;if(Te)e="<remove></remove>"+e;else{var r=v(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===Xe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=re?re.createHTML(e):e;if(Je===$e)try{t=(new $).parseFromString(i,Xe)}catch(e){}if(!t||!t.documentElement){t=ae.createDocument(Je,"template",null);try{t.documentElement.innerHTML=Ze?"":i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),Je===$e?ue.call(t,Me?"html":"body")[0]:Me?t.documentElement:a},ht=function(e){return se.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},mt=function(e){return e instanceof G&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof _)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},vt=function(e){return"object"===(void 0===l?"undefined":q(l))?e instanceof l:e&&"object"===(void 0===e?"undefined":q(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},yt=function(e,t,r){de[e]&&d(de[e],(function(e){e.call(n,t,r,nt)}))},bt=function(e){var t=void 0;if(yt("beforeSanitizeElements",e,null),mt(e))return ft(e),!0;if(v(e.nodeName,/[\u0080-\uFFFF]/))return ft(e),!0;var r=tt(e.nodeName);if(yt("uponSanitizeElement",e,{tagName:r,allowedTags:we}),!vt(e.firstElementChild)&&(!vt(e.content)||!vt(e.content.firstElementChild))&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return ft(e),!0;if("select"===r&&w(/<template/i,e.innerHTML))return ft(e),!0;if(!we[r]||Se[r]){if(Ne&&!ze[r]){var o=te(e)||e.parentNode,i=ee(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(X(i[a],!0),Q(e))}if(!Se[r]&&wt(r)){if(xe.tagNameCheck instanceof RegExp&&w(xe.tagNameCheck,r))return!1;if(xe.tagNameCheck instanceof Function&&xe.tagNameCheck(r))return!1}return ft(e),!0}return e instanceof u&&!ct(e)?(ft(e),!0):"noscript"!==r&&"noembed"!==r||!w(/<\/no(script|embed)/i,e.innerHTML)?(Ae&&3===e.n
2odeType&&(t=e.textContent,t=y(t,pe," "),t=y(t,he," "),e.textContent!==t&&(h(n.removed,{element:e.cloneNode()}),e.textContent=t)),yt("afterSanitizeElements",e,null),!1):(ft(e),!0)},gt=function(e,t,n){if(Le&&("id"===t||"name"===t)&&(n in o||n in rt))return!1;if(Ce&&!je[t]&&w(me,t));else if(Pe&&w(ve,t));else if(!_e[t]||je[t]){if(!(wt(e)&&(xe.tagNameCheck instanceof RegExp&&w(xe.tagNameCheck,e)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(e))&&(xe.attributeNameCheck instanceof RegExp&&w(xe.attributeNameCheck,t)||xe.attributeNameCheck instanceof Function&&xe.attributeNameCheck(t))||"is"===t&&xe.allowCustomizedBuiltInElements&&(xe.tagNameCheck instanceof RegExp&&w(xe.tagNameCheck,n)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(n))))return!1}else if(We[t]);else if(w(ge,y(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(n,"data:")||!He[e])if(Ee&&!w(ye,y(n,be,"")));else if(n)return!1;return!0},wt=function(e){return e.indexOf("-")>0},kt=function(e){var t=void 0,r=void 0,o=void 0,i=void 0;yt("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_e};for(i=a.length;i--;){var l=t=a[i],u=l.name,c=l.namespaceURI;if(r=g(t.value),o=tt(u),s.attrName=o,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,yt("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(dt(u,e),s.keepAttr))if(w(/\/>/i,r))dt(u,e);else{Ae&&(r=y(r,pe," "),r=y(r,he," "));var f=tt(e.nodeName);if(gt(f,o,r))try{c?e.setAttributeNS(c,u,r):e.setAttribute(u,r),p(n.removed)}catch(e){}}}yt("afterSanitizeAttributes",e,null)}},_t=function e(t){var n=void 0,r=ht(t);for(yt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)yt("uponSanitizeShadowNode",n,null),bt(n)||(n.content instanceof a&&e(n.content),kt(n));yt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,o){var i=void 0,s=void 0,u=void 0,c=void 0,f=void 0;if((Ze=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!vt(e)){if("function"!=typeof e.toString)throw k("toString is not a function");if("string"!=typeof(e=e.toString()))throw k("dirty is not a string, aborting")}if(!n.isSupported){if("object"===q(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(vt(e))return t.toStaticHTML(e.outerHTML)}return e}if(Re||it(o),n.removed=[],"string"==typeof e&&(Fe=!1),Fe);else if(e instanceof l)1===(s=(i=pt("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?i=s:i.appendChild(s);else{if(!De&&!Ae&&!Me&&-1===e.indexOf("<"))return re&&Ve?re.createHTML(e):e;if(!(i=pt(e)))return De?null:oe}i&&Te&&ft(i.firstChild);for(var d=ht(Fe?e:i);u=d.nextNode();)3===u.nodeType&&u===c||bt(u)||(u.content instanceof a&&_t(u.content),kt(u),c=u);if(c=null,Fe)return e;if(De){if(Ie)for(f=le.call(i.ownerDocument);i.firstChild;)f.appendChild(i.firstChild);else f=i;return _e.shadowroot&&(f=ce.call(r,f,!0)),f}var p=Me?i.outerHTML:i.innerHTML;return Ae&&(p=y(p,pe," "),p=y(p,he," ")),re&&Ve?re.createHTML(p):p},n.setConfig=function(e){it(e),Re=!0},n.clearConfig=function(){nt=null,Re=!1},n.isValidAttribute=function(e,t,n){nt||it({});var r=tt(e),o=tt(t);return gt(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(de[e]=de[e]||[],h(de[e],t))},n.removeHook=function(e){de[e]&&p(de[e])},n.removeHooks=function(e){de[e]&&(de[e]=[])},n.removeAllHooks=function(){de={}},n}()}()},33729:function(e,t){var n,r;void 0===(r="function"==typeof(n=function(){return function e(t,n,r){var o,i,a=window,s="application/octet-stream",l=r||s,u=t,c=!n&&!r&&u,f=document.createElement("a"),d=function(e){return String(e)},p=a.Blob||a.MozBlob||a.WebKitBlob||d,h=n||"download";if(p=p.call?p.bind(a):Blob,"true"===String(this)&&(l=(u=[u,l])[0],u=u[1]),c&&c.length<2048&&(h=c.split("/").pop().split("?")[0],f.href=c,-1!==f.href.indexOf(c))){var m=new XMLHttpRequest;return m.open("GET",c,!0),m.responseType="blob",m.onload=function(t){e(t.target.response,h,s)},setTimeout((function(){m.send()}),0),m}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u)){if(!(u.length>2096103.424&&p!==d))return navigator.msSaveBlob?navigator.msSaveBlob(g(u),h):w(u);l=(u=g(u)).type||s}else if(/([\x80-\xff])/.test(u)){for(var v=0,y=new Uint8Array(u.length),b=y.length;v<b;++v)y[v]=u.charCodeAt(v);u=new p([y],{type:l})}function g(e){for(var t=e.split(/[:;,]/),n=t[1],r=("base64"==t[2]?atob:decodeURIComponent)(t.pop()),o=r.length,i=0,a=new Uint8Array(o);i<o;++i)a[i]=r.charCodeAt(i);return new p([a],{type:n})}function w(e,t){if("download"in f)return f.href=e,f.setAttribute("download",h),f.className="download-js-link",f.innerHTML="downloading...",f.style.display="none",document.body.appendChild(f),setTimeout((function(){f.click(),document.body.removeChild(f),!0===t&&setTimeout((function(){a.URL.revokeObjectURL(f.href)}),250)}),66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,s)),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 n=document.createElement("iframe");document.body.appendChild(n),!t&&/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,s)),n.src=e,setTimeout((function(){document.body.removeChild(n)}),333)}if(o=u instanceof p?u:new p([u],{type:l}),navigator.msSaveBlob)return navigator.msSaveBlob(o,h);if(a.URL)w(a.URL.createObjectURL(o),!0);else{if("string"==typeof o||o.constructor===d)try{return w("data:"+l+";base64,"+a.btoa(o))}catch(e){return w("data:"+l+","+encodeURIComponent(o))}(i=new FileReader).onload=function(e){w(this.result)},i.readAsDataURL(o)}return!0}})?n.apply(t,[]):n)||(e.exports=r)},91130:function(e,t,n){e.exports=function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};t[a][0].call(u.exports,(function(e){return o(t[a][1][e]||e)}),u,u.exports,e,t,n,r)}return n[a].exports}for(var i=void 0,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){"use strict";var r={};function o(e){var t=r[e];return t?t.lastIndex=0:r[e]=t=new RegExp("(?:^|\\s)"+e+"(?:\\s|$)","g"),t}t.exports={add:function(e,t){var n=e.className;n.length?o(t).test(n)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(o(t)," ").trim()}}},{}],2:[function(e,t,r){(function(n){"use strict";var r=e("contra/emitter"),o=e("crossvent"),i=e("./classes"),a=document,s=a.documentElement;
2function l(e,t,r,i){n.navigator.pointerEnabled?o[t](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[r],i):n.navigator.msPointerEnabled?o[t](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[r],i):(o[t](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[r],i),o[t](e,r,i))}function u(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 t=e.button;return void 0!==t?1&t?1:2&t?3:4&t?2:0:void 0}function c(e){var t=e.getBoundingClientRect();return{left:t.left+f("scrollLeft","pageXOffset"),top:t.top+f("scrollTop","pageYOffset")}}function f(e,t){return void 0!==n[t]?n[t]:s.clientHeight?s[e]:a.body[e]}function d(e,t,n){var r,o=(e=e||{}).className||"";return e.className+=" gu-hide",r=a.elementFromPoint(t,n),e.className=o,r}function p(){return!1}function h(){return!0}function m(e){return e.width||e.right-e.left}function v(e){return e.height||e.bottom-e.top}function y(e){return e.parentNode===a?null:e.parentNode}function b(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||g(e)}function g(e){return!!e&&"false"!==e.contentEditable&&("true"===e.contentEditable||g(y(e)))}function w(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function k(e,t){var n=function(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}(t),r={pageX:"clientX",pageY:"clientY"};return e in r&&!(e in n)&&r[e]in n&&(e=r[e]),n[e]}t.exports=function(e,t){var n,f,g,_,O,x,S,j,P,C,E;1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var A,M=null,R=t||{};void 0===R.moves&&(R.moves=h),void 0===R.accepts&&(R.accepts=h),void 0===R.invalid&&(R.invalid=K),void 0===R.containers&&(R.containers=e||[]),void 0===R.isContainer&&(R.isContainer=p),void 0===R.copy&&(R.copy=!1),void 0===R.copySortSource&&(R.copySortSource=!1),void 0===R.revertOnSpill&&(R.revertOnSpill=!1),void 0===R.removeOnSpill&&(R.removeOnSpill=!1),void 0===R.direction&&(R.direction="vertical"),void 0===R.ignoreInputTextSelection&&(R.ignoreInputTextSelection=!0),void 0===R.mirrorContainer&&(R.mirrorContainer=a.body);var T=r({containers:R.containers,start:q,end:Y,cancel:X,remove:Z,destroy:N,canMove:H,dragging:!1});return!0===R.removeOnSpill&&T.on("over",re).on("out",oe),I(),T;function D(e){return-1!==T.containers.indexOf(e)||R.isContainer(e)}function I(e){var t=e?"remove":"add";l(s,t,"mousedown",B),l(s,t,"mouseup",$)}function V(e){l(s,e?"remove":"add","mousemove",z)}function L(e){var t=e?"remove":"add";o[t](s,"selectstart",F),o[t](s,"click",F)}function N(){I(!0),$({})}function F(e){A&&e.preventDefault()}function B(e){if(x=e.clientX,S=e.clientY,1===u(e)&&!e.metaKey&&!e.ctrlKey){var t=e.target,n=U(t);n&&(A=n,V(),"mousedown"===e.type&&(b(t)?t.focus():e.preventDefault()))}}function z(e){if(A)if(0!==u(e)){if(!(void 0!==e.clientX&&Math.abs(e.clientX-x)<=(R.slideFactorX||0)&&void 0!==e.clientY&&Math.abs(e.clientY-S)<=(R.slideFactorY||0))){if(R.ignoreInputTextSelection){var t=k("clientX",e)||0,n=k("clientY",e)||0;if(b(a.elementFromPoint(t,n)))return}var r=A;V(!0),L(),Y(),W(r);var o=c(g);_=k("pageX",e)-o.left,O=k("pageY",e)-o.top,i.add(C||g,"gu-transit"),ie(),ne(e)}}else $({})}function U(e){if(!(T.dragging&&n||D(e))){for(var t=e;y(e)&&!1===D(y(e));){if(R.invalid(e,t))return;if(!(e=y(e)))return}var r=y(e);if(r&&!R.invalid(e,t)&&R.moves(e,r,t,w(e)))return{item:e,source:r}}}function H(e){return!!U(e)}function q(e){var t=U(e);t&&W(t)}function W(e){ue(e.item,e.source)&&(C=e.item.cloneNode(!0),T.emit("cloned",C,e.item,"copy")),f=e.source,g=e.item,j=P=w(e.item),T.dragging=!0,T.emit("drag",g,f)}function K(){return!1}function Y(){if(T.dragging){var e=C||g;J(e,y(e))}}function G(){A=!1,V(!0),L(!0)}function $(e){if(G(),T.dragging){var t=C||g,r=k("clientX",e)||0,o=k("clientY",e)||0,i=te(d(n,r,o),r,o);i&&(C&&R.copySortSource||!C||i!==f)?J(t,i):R.removeOnSpill?Z():X()}}function J(e,t){var n=y(e);C&&R.copySortSource&&t===f&&n.removeChild(g),ee(t)?T.emit("cancel",e,f,f):T.emit("drop",e,t,f,P),Q()}function Z(){if(T.dragging){var e=C||g,t=y(e);t&&t.removeChild(e),T.emit(C?"cancel":"remove",e,t,f),Q()}}function X(e){if(T.dragging){var t=arguments.length>0?e:R.revertOnSpill,n=C||g,r=y(n),o=ee(r);!1===o&&t&&(C?r&&r.removeChild(C):f.insertBefore(n,j)),o||t?T.emit("cancel",n,f,f):T.emit("drop",n,r,f,P),Q()}}function Q(){var e=C||g;G(),ae(),e&&i.rm(e,"gu-transit"),E&&clearTimeout(E),T.dragging=!1,M&&T.emit("out",e,M,f),T.emit("dragend",e),f=g=C=j=P=E=M=null}function ee(e,t){var r;return r=void 0!==t?t:n?P:w(C||g),e===f&&r===j}function te(e,t,n){for(var r=e;r&&!o();)r=y(r);return r;function o(){if(!1===D(r))return!1;var o=se(r,e),i=le(r,o,t,n);return!!ee(r,i)||R.accepts(g,r,f,i)}}function ne(e){if(n){e.preventDefault();var t=k("clientX",e)||0,r=k("clientY",e)||0,o=t-_,i=r-O;n.style.left=o+"px",n.style.top=i+"px";var a=C||g,s=d(n,t,r),l=te(s,t,r),u=null!==l&&l!==M;(u||null===l)&&(M&&m("out"),M=l,u&&m("over"));var c=y(a);if(l!==f||!C||R.copySortSource){var p,h=se(l,s);if(null!==h)p=le(l,h,t,r);else{if(!0!==R.revertOnSpill||C)return void(C&&c&&c.removeChild(a));p=j,l=f}(null===p&&u||p!==a&&p!==w(a))&&(P=p,l.insertBefore(a,p),T.emit("shadow",a,l,f))}else c&&c.removeChild(a)}function m(e){T.emit(e,a,M,f)}}function re(e){i.rm(e,"gu-hide")}function oe(e){T.dragging&&i.add(e,"gu-hide")}function ie(){if(!n){var e=g.getBoundingClientRect();(n=g.cloneNode(!0)).style.width=m(e)+"px",n.style.height=v(e)+"px",i.rm(n,"gu-transit"),i.add(n,"gu-mirror"),R.mirrorContainer.appendChild(n),l(s,"add","mousemove",ne),i.add(R.mirrorContainer,"gu-unselectable"),T.emit("cloned",n,g,"mirror")}}function ae(){n&&(i.rm(R.mirrorContainer,"gu-unselectable"),l(s,"remove","mousemove",ne),y(n).removeChild(n),n=null)}function se(e,t){for(var n=t;n!==e&&y(n)!==e;)n=y(n);return n===s?null:n}function le(e,t,n,r){var o,i="horizontal"===R.direction;return t!==e?(o=t.getBoundingClientRect(),(i?n>o.left+m(o)/2:r>
2o.top+v(o)/2)?w(t):t):function(){var t,o,a,s=e.children.length;for(t=0;t<s;t++){if(a=(o=e.children[t]).getBoundingClientRect(),i&&a.left+a.width/2>n)return o;if(!i&&a.top+a.height/2>r)return o}return null}()}function ue(e,t){return"boolean"==typeof R.copy?R.copy:R.copy(e,t)}}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./classes":1,"contra/emitter":5,crossvent:6}],3:[function(e,t,n){t.exports=function(e,t){return Array.prototype.slice.call(e,t)}},{}],4:[function(e,t,n){"use strict";var r=e("ticky");t.exports=function(e,t,n){e&&r((function(){e.apply(n||null,t||[])}))}},{ticky:10}],5:[function(e,t,n){"use strict";var r=e("atoa"),o=e("./debounce");t.exports=function(e,t){var n=t||{},i={};return void 0===e&&(e={}),e.on=function(t,n){return i[t]?i[t].push(n):i[t]=[n],e},e.once=function(t,n){return n._once=!0,e.on(t,n),e},e.off=function(t,n){var r=arguments.length;if(1===r)delete i[t];else if(0===r)i={};else{var o=i[t];if(!o)return e;o.splice(o.indexOf(n),1)}return e},e.emit=function(){var t=r(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var a=(i[t]||[]).slice(0);return function(){var i=r(arguments),s=this||e;if("error"===t&&!1!==n.throws&&!a.length)throw 1===i.length?i[0]:i;return a.forEach((function(r){n.async?o(r,i,s):r.apply(s,i),r._once&&e.off(t,r)})),e}},e}},{"./debounce":4,atoa:3}],6:[function(e,t,r){(function(n){"use strict";var r=e("custom-event"),o=e("./eventmap"),i=n.document,a=function(e,t,n,r){return e.addEventListener(t,n,r)},s=function(e,t,n,r){return e.removeEventListener(t,n,r)},l=[];function u(e,t,n){var r=function(e,t,n){var r,o;for(r=0;r<l.length;r++)if((o=l[r]).element===e&&o.type===t&&o.fn===n)return r}(e,t,n);if(r){var o=l[r].wrapper;return l.splice(r,1),o}}n.addEventListener||(a=function(e,t,r){return e.attachEvent("on"+t,function(e,t,r){var o=u(e,t,r)||function(e,t,r){return function(t){var o=t||n.event;o.target=o.target||o.srcElement,o.preventDefault=o.preventDefault||function(){o.returnValue=!1},o.stopPropagation=o.stopPropagation||function(){o.cancelBubble=!0},o.which=o.which||o.keyCode,r.call(e,o)}}(e,0,r);return l.push({wrapper:o,element:e,type:t,fn:r}),o}(e,t,r))},s=function(e,t,n){var r=u(e,t,n);if(r)return e.detachEvent("on"+t,r)}),t.exports={add:a,remove:s,fabricate:function(e,t,n){var a=-1===o.indexOf(t)?new r(t,{detail:n}):function(){var e;return i.createEvent?(e=i.createEvent("Event")).initEvent(t,!0,!0):i.createEventObject&&(e=i.createEventObject()),e}();e.dispatchEvent?e.dispatchEvent(a):e.fireEvent("on"+t,a)}}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./eventmap":7,"custom-event":8}],7:[function(e,t,r){(function(e){"use strict";var n=[],r="",o=/^on/;for(r in e)o.test(r)&&n.push(r.slice(2));t.exports=n}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(e,t,r){(function(e){var n=e.CustomEvent;t.exports=function(){try{var e=new n("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?n:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(e,t,n){var r,o,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{o="function"==typeof clearTimeout?clearTimeout:s}
2catch(e){o=s}}();var u,c=[],f=!1,d=-1;function p(){f&&u&&(f=!1,u.length?c=u.concat(c):d=-1,c.length&&h())}function h(){if(!f){var e=l(p);f=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,f=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===s||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new m(e,t)),1!==c.length||f||l(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],10:[function(e,t,n){(function(e){var n;n="function"==typeof e?function(t){e(t)}:function(e){setTimeout(e,0)},t.exports=n}).call(this,e("timers").setImmediate)},{timers:11}],11:[function(e,t,n){(function(t,r){var o=e("process/browser.js").nextTick,i=Function.prototype.apply,a=Array.prototype.slice,s={},l=0;function u(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new u(i.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new u(i.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n.setImmediate="function"==typeof t?t:function(e){var t=l++,r=!(arguments.length<2)&&a.call(arguments,1);return s[t]=!0,o((function(){s[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"==typeof r?r:function(e){delete s[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":9,timers:11}]},{},[2])(2)},26729:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,o),!0;case 5:return c.fn.call(c.context,t,r,o,i),!0;case 6:return c.fn.call(c.context,t,r,o,i,a),!0}for(u=1,l=new Array(f-1);u<f;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var d,p=c.length;for(u=0;
2u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,r);break;case 4:c[u].fn.call(c[u].context,t,r,o);break;default:if(!l)for(d=1,l=new Array(f-1);d<f;d++)l[d-1]=arguments[d];c[u].fn.apply(c[u].context,l)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||o&&!s[l].once||r&&s[l].context!==r)&&u.push(s[l]);u.length?this._events[i]=1===u.length?u[0]:u:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},87559:function(e,t,n){var r;!function(o){"use strict";function i(e){var n=e&&e.Promise||o.Promise,r=e&&e.XMLHttpRequest||o.XMLHttpRequest;return function(){var e=Object.create(o,{fetch:{value:void 0,writable:!0}});return function(t){var o=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==o&&o,i="URLSearchParams"in o,a="Symbol"in o&&"iterator"in Symbol,s="FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch(e){return!1}}(),l="FormData"in o,u="ArrayBuffer"in o;if(u)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return a&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function v(e){if(e.bodyUsed)return n.reject(new TypeError("Already read"));e.bodyUsed=!0}function y(e){return new n((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function b(e){var t=new FileReader,n=y(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:s&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:l&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():u&&s&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(e)||f(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):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&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var e=v(this);if(e)return e;if(this._bodyBlob)return n.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return n.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return n.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?v(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?n.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):n.resolve(this._bodyArrayBuffer)):this.blob().then(b)}),this.text=function(){var e,t,r,o=v(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=y(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return n.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return n.resolve(this._bodyText)},l&&(this.formData=function(){return this.text().then(O)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(e,t){e=d(e),t=p(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},m.prototype.delete=function(e){delete this.map[d(e)]},m.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},m.prototype.set=function(e,t){this.map[d(e)]=p(t)},m.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},m.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},m.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},m.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},a&&(m.prototype[Symbol.iterator]=m.prototype.entries);
vendor: 4,073 bytes, line 2
2var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new m(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new m(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),k.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function O(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function x(e,t){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},w.call(_.prototype),w.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var S=[301,302,303,307,308];x.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})},t.DOMException=o.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function j(e,i){return new n((function(n,a){var l=new _(e,i);if(l.signal&&l.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var c=new r;function f(){c.abort()}c.onload=function(){var e,t,r={status:c.status,statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new m,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 n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in c?c.responseURL:r.headers.get("X-Request-URL");var o="response"in c?c.response:c.responseText;setTimeout((function(){n(new x(o,r))}),0)},c.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},c.onabort=function(){setTimeout((function(){a(new t.DOMException("Aborted","AbortError"))}),0)},c.open(l.method,function(e){try{return""===e&&o.location.href?o.location.href:e}catch(t){return e}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(s?c.responseType="blob":u&&l.headers.get("Content-Type")&&-1!==l.headers.get("Content-Type").indexOf("application/octet-stream")&&(c.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof m?l.headers.forEach((function(e,t){c.setRequestHeader(t,e)}
2)):Object.getOwnPropertyNames(i.headers).forEach((function(e){c.setRequestHeader(e,p(i.headers[e]))})),l.signal&&(l.signal.addEventListener("abort",f),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",f)}),c.send(void 0===l._bodyInit?null:l._bodyInit)}))}j.polyfill=!0,o.fetch||(o.fetch=j,o.Headers=m,o.Request=_,o.Response=x),t.Headers=m,t.Request=_,t.Response=x,t.fetch=j,Object.defineProperty(t,"__esModule",{value:!0})}(t),{fetch:e.fetch,Headers:e.Headers,Request:e.Request,Response:e.Response,DOMException:e.DOMException}}()}void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==n.g?n.g:this)},96073:function(e,t,n){"use strict";var r=n(50008),o=n(34575),i=n(93913),a=n(81506),s=n(2205),l=n(78585),u=n(29754),c=n(59713),f=n(63038);function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=d(r),h=d(o),m=d(i),v=d(a),y=d(s),b=d(l),g=d(u),w=d(c),k=d(f);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){w.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x={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,t){console&&console[e]&&console[e].apply(console,t)}},S=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h.default(this,e),this.init(t,n)}return m.default(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||x,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,O(O({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}}]),e}(),j=new S,P=function(){function e(){h.default(this,e),this.observers={}}return m.default(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function C(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function E(e){return null==e?"":""+e}function A(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function M(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function R(e,t,n){var r=M(e,t,Object);r.obj[r.k]=n}function T(e,t){var n=M(e,t),r=n.obj,o=n.k;if(r)return r[o]}function D(e,t,n){var r=T(e,n);return void 0!==r?r:T(t,n)}function I(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):I(e[r],t[r],n):e[r]=t[r]);return e}function V(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var L={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function N(e){return"string"==typeof e?e.replace(/[&<>
2"'\/]/g,(function(e){return L[e]})):e}var F="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,B=[" ",",","?","!",";"];function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){w.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,s=r.slice(i,i+a).join(n),l=o[s];void 0===l&&r.length>i+a;)a++,l=o[s=r.slice(i,i+a).join(n)];if(void 0===l)return;if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s];var u=r.slice(i+a).join(n);return u?H(l,u,n):void 0}o=o[r[i]]}return o}}var q=function(e){y.default(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=g.default(t);if(n){var o=g.default(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return b.default(this,e)});function o(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return h.default(this,o),t=r.call(this),F&&P.call(v.default(t)),t.data=e||{},t.options=n,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return m.default(o,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.
vendor: 3,281 bytes, line 2
2indexOf(".")>-1&&(a=e.split("."));var s=T(this.data,a);return s||!i||"string"!=typeof n?s:H(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),R(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=T(this.data,a)||{};r?I(s,n,o):s=U(U({},s),n),R(this.data,a,s),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?U(U({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),o}(P),W={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}};function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){w.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var G={},$=function(e){y.default(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=g.default(t);if(n){var o=g.default(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return b.default(this,e)});function o(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h.default(this,o),t=r.call(this),F&&P.call(v.default(t)),A(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
2i18nFormat","utils"],e,v.default(t)),t.options=n,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=j.create("translator"),t}return m.default(o,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS,i=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=B.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var o=new RegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),i=!o.test(e);if(!i){var a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}(e,n,r));if(i&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:o};var l=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(l[0])>-1)&&(o=l.shift()),e=l.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,n){var r=this;if("object"!==p.default(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],t),s=a.key,l=a.namespaces,u=l[l.length-1],c=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=t.nsSeparator||this.options.nsSeparator;return u+d+s}return s}var h=this.resolve(e,t),m=h&&h.res,v=h&&h.usedKey||s,y=h&&h.exactUsedKey||s,b=Object.prototype.toString.apply(m),g=["[object Number]","[object Function]","[object RegExp]"],w=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,_="string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m;if(k&&m&&_&&g.indexOf(b)<0&&("string"!=typeof w||"[object Array]"!==b)){if(!t.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,m,Y(Y({},t),{},{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(i){var O="[object Array]"===b,x=O?[]:{},S=O?y:v;for(var j in m)if(Object.prototype.hasOwnProperty.call(m,j)){var P="".concat(S).concat(i).concat(j);x[j]=this.translate(P,Y(Y({},t),{joinArrays:!1,ns:l})),x[j]===P&&(x[j]=m[j])}m=x}}else if(k&&"string"==typeof w&&"[object Array]"===b)(m=m.join(w))&&(m=this.extendTranslation(m,e,t,n));else{var C=!1,E=!1,A=void 0!==t.count&&"string"!=typeof t.count,M=o.hasDefaultValue(t),R=A?this.pluralResolver.getSuffix(c,t.count,t):"",T=t["defaultValue".concat(R)]||t.defaultValue;!this.isValidLookup(m)&&M&&(C=!0,m=T),this.isValidLookup(m)||(E=!0,m=s);var D=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,I=D&&E?void 0:m,V=M&&T!==m&&this.options.updateMissing;if(E||C||V){if(this.logger.log(V?"updateKey":"missingKey",c,u,s,V?T:m),i){var L=this.resolve(s,Y(Y({},t),{},{keySeparator:!1}));L&&L.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 N=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var B=0;B<F.length;B++)N.push(F[B]);else"all"===this.options.saveMissingTo?N=this.languageUtils.toResolveHierarchy(t.lng||this.language):N.push(t.lng||this.language);var z=function(e,n,o){var i=M&&o!==m?o:I;r.options.missingKeyHandler?r.options.missingKeyHandler(e,u,n,i,V,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,u,n,i,V,t),r.emit("missingKey",e,u,n,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?N.forEac
vendor: 7,463 bytes, line 2
2h((function(e){r.pluralResolver.getSuffixes(e).forEach((function(n){z([e],s+n,t["defaultValue".concat(n)]||T)}))})):z(N,s,T))}m=this.extendTranslation(m,e,t,h,n),E&&m===s&&this.options.appendNamespaceToMissingKey&&(m="".concat(u,":").concat(s)),(E||C)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(m))}return m}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(Y(Y({},n),{interpolation:Y(Y({},this.options.interpolation),n.interpolation)}));var a,s="string"==typeof e&&(n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables);if(s){var l=e.match(this.interpolator.nestingRegexp);a=l&&l.length}var u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=Y(Y({},this.options.interpolation.defaultVariables),u)),e=this.interpolator.interpolate(e,u,n.lng||this.language,n),s){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=W.handle(d,e,t,this.options&&this.options.postProcessPassResolved?Y({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),u=l.key;n=u;var c=l.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,d=f&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),p=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!G["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(G["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(i,'" 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!!!")),h.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,l=[u];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(l,u,n,e,s);else{var c;f&&(c=a.pluralResolver.getSuffix(n,s.count,s));var h="_zero";if(f&&(l.push(u+c),d&&l.push(u+h)),p){var m="".concat(u).concat(a.options.contextSeparator).concat(s.context);l.push(m),f&&(l.push(m+c),d&&l.push(m+h))}}for(;i=l.pop();)a.isValidLookup(t)||(r=i,t=a.getResource(n,e,i,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),o}(P);function J(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Z=function(){function e(t){h.default(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=j.create("languageUtils")}return m.default(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=J(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=J(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=J(n[2].toLowerCase()))),n.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 t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),X=[{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","
2sq","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}],Q={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)}},ee=["v1","v2","v3"],te={zero:0,one:1,two:2,few:3,many:4,other:5};function ne(){var e={};return X.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Q[t.fc]}}))})),e}var re=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h.default(this,e),this.languageUtils=t,this.options=n,this.logger=j.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=ne()}return m.default(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(e,t){return te[e]-te[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):r.numbers.map((function(r){return t.getSuffix(e,r,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[
vendor: 5,750 bytes, line 2
20]&&(2===o?o="plural":1===o&&(o=""));var i=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!ee.includes(this.options.compatibilityJSON)}}]),e}();function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){w.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ae=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h.default(this,e),this.logger=j.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return m.default(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:N,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?V(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?V(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?V(t.nestingPrefix):t.nestingPrefixEscaped||V("$t("),this.nestingSuffix=t.nestingSuffix?V(t.nestingSuffix):t.nestingSuffixEscaped||V(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.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);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0){var o=D(t,l,e);return s.alwaysFormat?s.format(o,void 0,n,ie(ie(ie({},r),t),{},{interpolationkey:e})):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),u=i.join(s.formatSeparator).trim();return s.format(D(t,l,a),u,n,ie(ie(ie({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=E(i));var l=t.safeValue(i);if(e=e.replace(o[0],l),d?(t.regex.lastIndex+=l.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=ie({},i);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=ie(ie({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),l=c,u=!0}if((r=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=E(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),u&&(r=l.reduce((function(e,t){return o.format(e,t,i.lng,ie(ie({},i),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?se(Object(n),!0).forEach((function(t){w.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ue=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h.default(this,e),this.logger=j.create("formatter"),this.options=t,this.formats={number:function(e,t,n){return new Intl.NumberFormat(t,n).format(e)},currency:function(e,t,n){return new Intl.NumberFormat(t,le(le({},n),{},{style:"currency"})).format(e)},datetime:function(e,t,n){return new Intl.DateTimeFormat(t,le({},n)).format(e)},relativetime:function(e,t,n){return new Intl.RelativeTimeFormat(t,le({},n)).format(e,n.range||"day")},list:function(e,t,n){return new Intl.ListFormat(t,le({},n)).format(e)}},this.init(t)}return m.default(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e]=t}},{key:"format",value:function(e,t,n,r){var o=this;return t.split(this.formatSeparator).reduce((function(e,t){var i=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach((function(e){if(e){var t=e.split(":"),r=k.default(t,2),o=r[0],i=r[1];"false"===i.trim()&&(n[o.trim()]=!1),"true"===i.trim()&&(n[o.trim()]=!0),isNaN(i.trim())||(n[o.trim()]=parseInt(i.trim(),10)),n[o.trim()]||(n[o.trim()]=i.trim())}}))}return{formatName:t,formatOptions:n}}(t),a=i.formatName,s=i.formatOptions;if(o.formats[a]){var l=e;try{var u=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},c=u.locale||u.lng||r.locale||r.lng||n;l=o.formats[a](e,c,le(le(le({},s),r),u))}catch(e){o.logger.warn(e)}return l}return o.logger.warn("there was no format function for ".concat(a)),e}),e)}}]),e}();function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){w.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var de=function(e){y.default(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=g.default(t);if(n){var o=g.default(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return b.default(this,e)});function o(e,t,n){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return h.default(this,o),i=r.call(this),F&&P.call(v.default(i)),i.backend=e,i.store=t,i.services=n,i.languageUtils=n.languageUtils,i.options=a,i.logger=j.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(n,a.backend,a),i}return m.default(o,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],s=[],l=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?a.indexOf(s)<0&&a.push(s):(o.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),i.indexOf(s)<0&&i.push(s),l.indexOf(t)<0&&l.push(t)))})),r||s.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];
vendor: 4,570 bytes, line 2
2t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,s,l,u,c;r=n.loaded,s=i,(u=(l=M(r,[o],Object)).obj)[c=l.k]=u[c]||[],u[c].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,l){s&&l&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(s,l)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=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."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" 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!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,fe(fe({},i),{},{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),o}(P);function pe(){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 t={};if("object"===p.default(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===p.default(e[2])||"object"===p.default(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function he(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&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?me(Object(n),!0).forEach((function(t){w.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ye(){}function be(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}))}var ge=function(e){y.default(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=g.default(t);if(n){var o=g.default(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return b.default(this,e)});function o(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(h.default(this,o),e=r.call(this),F&&P.call(v.default(e)),e.options=he(t),e.services={},e.logger=j,e.modules={external:[]},be(v.default(e)),n&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,n),b.default(e,v.default(e));setTimeout((function(){e.init(t,n)}),0)}return e}return m.default(o,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r=pe();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=ve(ve(ve({},r),this.options),he(t)),this.options.interpolation=ve({},this.options.interpolation),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var i;this.modules.logger?j.init(o(this.modules.logger),this.options):j.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"undefined"!=typeof Intl&&(i=ue);var a=new Z(this.options);this.store=new q(this.options.resources,this.options);var s=this.services;s.logger=j,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new re(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!i||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(s.formatter=o(i),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new ae(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new de(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new $(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,n||(n=ye),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];
vendor: 4,448 bytes, line 2
2c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var f=C(),d=function(){var t=function(t,r){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),f.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=C();return e||(e=this.languages),t||(t=this.options.ns),n||(n=ye),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new 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&&W.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=C();this.emit("languageChanging",e);var o=function(e){if(n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<n.languages.length;t++){var r=n.languages[t];if(!(["cimode","dev"].indexOf(r)>-1)&&n.store.hasLanguageSomeTranslations(r)){n.resolvedLanguage=r;break}}},i=function(i){e||i||!n.services.languageDetector||(i=[]);var a="string"==typeof i?i:n.services.languageUtils.getBestMatchFromCodes(i);a&&(n.language||o(a),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,(function(e){!function(e,i){i?(o(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==p.default(o)){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];i=r.options.overloadTranslationOptionHandler([t,o].concat(s))}else i=ve({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var u=r.options.keySeparator||".",c=n?"".concat(n).concat(u).concat(t):t;return r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{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 t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
2if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=C();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=C();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),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.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye,r=ve(ve(ve({},this.options),t),{isClone:!0}),i=new o(r),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=ve({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new $(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(r,n),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),o}(P);w.default(ge,"createInstance",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ge(e,t)}));var we=ge.createInstance();we.createInstance=ge.createInstance,e.exports=we},90891:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var r=/iPhone/i,o=/iPod/i,i=/iPad/i,a=/\biOS-universal(?:.+)Mac\b/i,s=/\bAndroid(?:.+)Mobile\b/i,l=/Android/i,u=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,c=/Silk/i,f=/Windows Phone/i,d=/\bWindows(?:.+)ARM\b/i,p=/BlackBerry/i,h=/BB10/i,m=/Opera Mini/i,v=/\b(CriOS|Chrome)(?:.+)Mobile/i,y=/Mobile(?:.+)Firefox\b/i,b=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&"undefined"==typeof MSStream};function g(e){var t={userAgent:"",platform:"",maxTouchPoints:0};e||"undefined"==typeof navigator?"string"==typeof e?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var n=t.userAgent,g=n.split("[FBAN");void 0!==g[1]&&(n=g[0]),void 0!==(g=n.split("Twitter"))[1]&&(n=g[0]);var w=function(e){return function(t){return t.test(e)}}(n),k={apple:{phone:w(r)&&!w(f),ipod:w(o),tablet:!w(r)&&(w(i)||b(t))&&!w(f),universal:w(a),device:(w(r)||w(o)||w(i)||w(a)||b(t))&&!w(f)},amazon:{phone:w(u),tablet:!w(u)&&w(c),device:w(u)||w(c)},android:{phone:!w(f)&&w(u)||!w(f)&&w(s),tablet:!w(f)&&!w(u)&&!w(s)&&(w(c)||w(l)),device:!w(f)&&(w(u)||w(c)||w(s)||w(l))||w(/\bokhttp\b/i)}
2,windows:{phone:w(f),tablet:w(d),device:w(f)||w(d)},other:{blackberry:w(p),blackberry10:w(h),opera:w(m),firefox:w(y),chrome:w(v),device:w(p)||w(h)||w(m)||w(y)||w(v)},any:!1,phone:!1,tablet:!1};return k.any=k.apple.device||k.android.device||k.windows.device||k.other.device,k.phone=k.apple.phone||k.android.phone||k.windows.phone,k.tablet=k.apple.tablet||k.android.tablet||k.windows.tablet,k}},40962:function(e,t,n){var r,o;r=function(){"use strict";Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,n){return void 0===n?e<t:e<t&&t<n},"<=":function(e,t,n){return void 0===n?e<=t:e<=t&&t<=n},"!!":function(t){return e.truthy(t)},"!":function(t){return!e.truthy(t)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||void 0===t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,n){if(n<0){var r=String(e).substr(t);return r.substr(0,r.length+n)}return String(e).substr(t,n)},"+":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)+parseFloat(t,10)}),0)},"*":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)*parseFloat(t,10)}))},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},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,t){return e.concat(t)}),[])},var:function(e,t){var n=void 0===t?null:t,r=this;if(void 0===e||""===e||null===e)return r;for(var o=String(e).split("."),i=0;i<o.length;i++){if(null==r)return n;if(void 0===(r=r[o[i]]))return n}return r},missing:function(){for(var t=[],n=Array.isArray(arguments[0])?arguments[0]:arguments,r=0;r<n.length;r++){var o=n[r],i=e.apply({var:o},this);null!==i&&""!==i||t.push(o)}return t},missing_some:function(t,n){var r=e.apply({missing:n},this);return n.length-r.length>=t?[]:r}};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(t){return t[e.get_operator(t)]},e.apply=function(n,r){if(Array.isArray(n))return n.map((function(t){return e.apply(t,r)}));if(!e.is_logic(n))return n;var o,i,a,s,l,u=e.get_operator(n),c=n[u];if(Array.isArray(c)||(c=[c]),"if"===u||"?:"==u){for(o=0;o<c.length-1;o+=2)if(e.truthy(e.apply(c[o],r)))return e.apply(c[o+1],r);return c.length===o+1?e.apply(c[o],r):null}if("and"===u){for(o=0;o<c.length;o+=1)if(i=e.apply(c[o],r),!e.truthy(i))return i;return i}if("or"===u){for(o=0;o<c.length;o+=1)if(i=e.apply(c[o],r),e.truthy(i))return i;return i}if("filter"===u)return s=e.apply(c[0],r),a=c[1],Array.isArray(s)?s.filter((function(t){return e.truthy(e.apply(a,t))})):[];if("map"===u)return s=e.apply(c[0],r),a=c[1],Array.isArray(s)?s.map((function(t){return e.apply(a,t)})):[];if("reduce"===u)return s=e.apply(c[0],r),a=c[1],l=void 0!==c[2]?c[2]:null,Array.isArray(s)?s.reduce((function(t,n){return e.apply(a,{current:n,accumulator:t})}),l):l;if("all"===u){if(s=e.apply(c[0],r),a=c[1],!s.length)return!1;for(o=0;o<s.length;o+=1)if(!e.truthy(e.apply(a,s[o])))return!1;return!0}if("none"===u)return 0===e.apply({filter:c},r).length;if("some"===u)return e.apply({filter:c},r).length>0;if(c=c.map((function(t){return e.apply(t,r)})),t.hasOwnProperty(u)&&"function"==typeof t[u])return t[u].apply(r,c);if(u.indexOf(".")>0){var f=String(u).split("."),d=t;for(o=0;o<f.length;o++){if(!d.hasOwnProperty(f[o]))throw new Error("Unrecognized operation "+u+" (failed at "+f.slice(0,o+1).join(".")+")");d=d[f[o]]}return d.apply(r,c)}throw new Error("Unrecognized operation "+u)},e.uses_data=function(t){var n=[];if(e.is_logic(t)){var r=e.get_operator(t),o=t[r];Array.isArray(o)||(o=[o]),"var"===r?n.push(o[0]):o.map((function(t){n.push.apply(n,e.uses_data(t))}))}return function(e){for(var t=[],n=0,r=e.length;n<r;
2n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n)},e.add_operation=function(e,n){t[e]=n},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,n){if(n===t)return!0;if("@"===n)return!0;if("number"===n)return"number"==typeof t;if("string"===n)return"string"==typeof t;if("array"===n)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(n)){if(e.is_logic(t)){var r=e.get_operator(n),o=e.get_operator(t);if("@"===r||r===o)return e.rule_like(e.get_values(t,!1),e.get_values(n,!1))}return!1}if(Array.isArray(n)){if(Array.isArray(t)){if(n.length!==t.length)return!1;for(var i=0;i<n.length;i+=1)if(!e.rule_like(t[i],n[i]))return!1;return!0}return!1}return!1},e},void 0===(o=r.call(t,n,t,e))||(e.exports=o)},55586:function(e,t,n){var r,o;(o=function(){"use strict";var e={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"]}},t=function(e){var t=-e.getTimezoneOffset();return null!==t?t:0},n=function(){for(var n=[],r=0;r<=11;r++)for(var o=1;o<=28;o++){var i=t(new Date(e.BASELINE_YEAR,r,o));n?n&&n[n.length-1]!==i&&n.push(i):n.push()}return n},r=function(e){for(var t=new Date(e,0,1,0,0,1,0).getTime(),n=new Date(e,12,31,23,59,59).getTime(),r=t,o=new Date(r).getTimezoneOffset(),a=null,s=null;r<n-864e5;){var l=new Date(r),u=l.getTimezoneOffset();u!==o&&(u<o&&(a=l),u>o&&(s=l),o=u),r+=864e5}return!(!a||!s)&&{s:i(a).getTime(),e:i(s).getTime()}},i=function t(n,r,o){void 0===r&&(r=e.DAY,o=e.HOUR);for(var i=new Date(n.getTime()-r).getTime(),a=n.getTime()+r,s=new Date(i).getTimezoneOffset(),l=i,u=null;l<a-o;){var c=new Date(l);if(c.getTimezoneOffset()!==s){u=c;break}l+=o}return r===e.DAY?t(u,e.HOUR,e.MINUTE):r===e.HOUR?t(u,e.MINUTE,e.SECOND):u},a=function(t){var n=function(){for(var e=[],t=0;t<o.olson.dst_rules.years.length;t++){var n=r(o.olson.dst_rules.years[t]);e.push(n)}return e}(),i=function(e){for(var t=0;t<e.length;t++)if(!1!==e[t])return!0;return!1}(n);return i?function(t,n){for(var r=function(r){for(var o=0,i=0;i<t.length;i++)if(r.rules[i]&&t[i]){if(!(t[i].s>=r.rules[i].s&&t[i].e<=r.rules[i].e)){o="N/A";break}if(o=0,o+=Math.abs(t[i].s-r.rules[i].s),(o+=Math.abs(r.rules[i].e-t[i].e))>e.MAX_SCORE){o="N/A";break}}return function(e,t,n,r){if("N/A"!==n)return n;
vendor: 5,130 bytes, line 2
2if("Asia/Beirut"===t){if("Africa/Cairo"===r.name&&13983768e5===e[6].s&&14116788e5===e[6].e)return 0;if("Asia/Jerusalem"===r.name&&13959648e5===e[6].s&&14118588e5===e[6].e)return 0}else if("America/Santiago"===t){if("America/Asuncion"===r.name&&14124816e5===e[6].s&&1397358e6===e[6].e)return 0;if("America/Campo_Grande"===r.name&&14136912e5===e[6].s&&13925196e5===e[6].e)return 0}else if("America/Montevideo"===t){if("America/Sao_Paulo"===r.name&&14136876e5===e[6].s&&1392516e6===e[6].e)return 0}else if("Pacific/Auckland"===t&&"Pacific/Fiji"===r.name&&14142456e5===e[6].s&&13961016e5===e[6].e)return 0;return n}(t,n,o,r)},i={},a=o.olson.dst_rules.zones,s=a.length,l=e.AMBIGUITIES[n],u=0;u<s;u++){var c=a[u],f=r(a[u]);"N/A"!==f&&(i[c.name]=f)}for(var d in i)if(i.hasOwnProperty(d))for(var p=0;p<l.length;p++)if(l[p]===d)return d;return n}(n,t):t};return{determine:function(t){var r=!1,i=function(){var e=0,t=n();return t.length>1&&(e=t[0]-t[1]),t.length>3?t[0]+",1,weird":e<0?t[0]+",1":e>0?t[1]+",1,s":t[0]+",0"}();return(t||void 0===t)&&(r=function(){var e,t;if(Intl&&"undefined"!=typeof Intl&&void 0!==Intl.DateTimeFormat&&void 0!==(e=Intl.DateTimeFormat())&&void 0!==e.resolvedOptions)return(t=e.resolvedOptions().timeZone)&&(t.indexOf("/")>-1||"UTC"===t)?t:void 0}()),r||(r=o.olson.timezones[i],void 0!==e.AMBIGUITIES[r]&&(r=a(r))),{name:function(){return r},using_intl:t||void 0===t,needle:i,offsets:n()}}}}()).olson=o.olson||{},o.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/New_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"},o.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}
vendor: 4,074 bytes, line 2
2,{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}]},{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}
2,{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=o:null!==n.amdD&&null!=n.amdO?void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r):window.jstz=o},96245:function(e,t,n){"use strict";function r(e){this.message=e}n.r(t),n.d(t,{default:function(){return s},InvalidTokenError:function(){return a}}),r.prototype=new Error,r.prototype.name="InvalidCharacterError";var o="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,i=0,a=0,s="";o=t.charAt(a++);~o&&(n=i%4?64*n+o:o,i++%4)?s+=String.fromCharCode(255&n>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return s};function i(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(o(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return o(t)}}function a(e){this.message=e}a.prototype=new Error,a.prototype.name="InvalidTokenError";const s=function(e,t){if("string"!=typeof e)throw new a("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(i(e.split(".")[n]))}catch(e){throw new a("Invalid token specified: "+e.message)}}},18552:function(e,t,n){var r=n(10852)(n(55639),"DataView");e.exports=r},1989:function(e,t,n){var r=n(51789),o=n(80401),i=n(57667),a=n(21327),s=n(81866);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},38407:function(e,t,n){var r=n(27040),o=n(14125),i=n(82117),a=n(67518),s=n(13399);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},57071:function(e,t,n){var r=n(10852)(n(55639),"Map");e.exports=r},83369:function(e,t,n){var r=n(24785),o=n(11285),i=n(96e3),a=n(49916),s=n(95265);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},53818:function(e,t,n){var r=n(10852)(n(55639),"Promise");e.exports=r},58525:function(e,t,n){var r=n(10852)(n(55639),"Set");e.exports=r},88668:function(e,t,n){var r=n(83369),o=n(90619),i=n(72385);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},46384:function(e,t,n){var r=n(38407),o=n(37465),i=n(63779),a=n(67599),s=n(44758),l=n(34309);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},11149:function(e,t,n){var r=n(55639).Uint8Array;e.exports=r},70577:function(e,t,n){var r=n(10852)(n(55639),"WeakMap");e.exports=r},96874:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},77412:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},34963:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},47443:function(e,t,n){var r=n(42118);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},1196:function(e){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},14636:function(e,t,n){var r=n(22545),o=n(35694),i=n(1469),a=n(44144),s=n(65776),l=n(36719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),f=!n&&!c&&a(e),d=!n&&!c&&!f&&l(e),p=n||c||f||d,h=p?r(e.length,String):[],m=h.length;for(var v in e)!t&&!u.call(e,v)||p&&("length"==v||f&&("offset"==v||"parent"==v)||d&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||h.push(v);return h}},29932:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},62488:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},82908:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},48983:function(e,t,n){var r=n(40371)("length");e.exports=r},44286:function(e){e.exports=function(e){return e.split("")}},34865:function(e,t,n){var r=n(89465),o=n(77813),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},18470:function(e,t,n){var r=n(77813);e.exports=function(e,t){for(var n=e.length;n--;
vendor: 4,931 bytes, line 2
2)if(r(e[n][0],t))return n;return-1}},44037:function(e,t,n){var r=n(98363),o=n(3674);e.exports=function(e,t){return e&&r(t,o(t),e)}},63886:function(e,t,n){var r=n(98363),o=n(81704);e.exports=function(e,t){return e&&r(t,o(t),e)}},89465:function(e,t,n){var r=n(38777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},85990:function(e,t,n){var r=n(46384),o=n(77412),i=n(34865),a=n(44037),s=n(63886),l=n(64626),u=n(278),c=n(18805),f=n(1911),d=n(58234),p=n(46904),h=n(64160),m=n(43824),v=n(29148),y=n(38517),b=n(1469),g=n(44144),w=n(56688),k=n(13218),_=n(72928),O=n(3674),x=n(81704),S="[object Arguments]",j="[object Function]",P="[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[P]=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[j]=C["[object WeakMap]"]=!1,e.exports=function e(t,n,E,A,M,R){var T,D=1&n,I=2&n,V=4&n;if(E&&(T=M?E(t,A,M,R):E(t)),void 0!==T)return T;if(!k(t))return t;var L=b(t);if(L){if(T=m(t),!D)return u(t,T)}else{var N=h(t),F=N==j||"[object GeneratorFunction]"==N;if(g(t))return l(t,D);if(N==P||N==S||F&&!M){if(T=I||F?{}:y(t),!D)return I?f(t,s(T,t)):c(t,a(T,t))}else{if(!C[N])return M?t:{};T=v(t,N,D)}}R||(R=new r);var B=R.get(t);if(B)return B;R.set(t,T),_(t)?t.forEach((function(r){T.add(e(r,n,E,r,t,R))})):w(t)&&t.forEach((function(r,o){T.set(o,e(r,n,E,o,t,R))}));var z=L?void 0:(V?I?p:d:I?x:O)(t);return o(z||t,(function(r,o){z&&(r=t[o=r]),i(T,o,e(r,n,E,o,t,R))})),T}},3118:function(e,t,n){var r=n(13218),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},20731:function(e,t,n){var r=n(88668),o=n(47443),i=n(1196),a=n(29932),s=n(7518),l=n(74757);e.exports=function(e,t,n,u){var c=-1,f=o,d=!0,p=e.length,h=[],m=t.length;if(!p)return h;n&&(t=a(t,s(n))),u?(f=i,d=!1):t.length>=200&&(f=l,d=!1,t=new r(t));e:for(;++c<p;){var v=e[c],y=null==n?v:n(v);if(v=u||0!==v?v:0,d&&y==y){for(var b=m;b--;)if(t[b]===y)continue e;h.push(v)}else f(t,y,u)||h.push(v)}return h}},41848:function(e){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},21078:function(e,t,n){var r=n(62488),o=n(37285);e.exports=function e(t,n,i,a,s){var l=-1,u=t.length;for(i||(i=o),s||(s=[]);++l<u;){var c=t[l];n>0&&i(c)?n>1?e(c,n-1,i,a,s):r(s,c):a||(s[s.length]=c)}return s}},28483:function(e,t,n){var r=n(25063)();e.exports=r},47816:function(e,t,n){var r=n(28483),o=n(3674);e.exports=function(e,t){return e&&r(e,t,o)}},97786:function(e,t,n){var r=n(71811),o=n(40327);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},68866:function(e,t,n){var r=n(62488),o=n(1469);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},44239:function(e,t,n){var r=n(62705),o=n(89607),i=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},78565:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},42118:function(e,t,n){var r=n(41848),o=n(62722),i=n(42351);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},47556:function(e,t,n){var r=n(88668),o=n(47443),i=n(1196),a=n(29932),s=n(7518),l=n(74757),u=Math.min;e.exports=function(e,t,n){for(var c=n?i:o,f=e[0].length,d=e.length,p=d,h=Array(d),m=1/0,v=[];p--;){var y=e[p];p&&t&&(y=a(y,s(t))),m=u(y.length,m),h[p]=!n&&(t||f>=120&&y.length>=120)?new r(p&&y):void 0}y=e[0];var b=-1,g=h[0];e:for(;++b<f&&v.length<m;){var w=y[b],k=t?t(w):w;if(w=n||0!==w?w:0,!(g?l(g,k):c(v,k,n))){for(p=d;--p;){var _=h[p];if(!(_?l(_,k):c(e[p],k,n)))continue e}g&&g.push(k),v.push(w)}}return v}},9454:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},90939:function(e,t,n){var r=n(2492),o=n(37005);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},2492:function(e,t,n){var r=n(46384),o=n(67114),i=n(18351),a=n(16096),s=n(64160),l=n(1469),u=n(44144),c=n(36719),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,v,y){var b=l(e),g=l(t),w=b?d:s(e),k=g?d:s(t),_=(w=w==f?p:w)==p,O=(k=k==f?p:k)==p,x=w==k;if(x&&u(e)){if(!u(t))return!1;b=!0,_=!1}if(x&&!_)return y||(y=new r),b||c(e)?o(e,t,n,m,v,y):i(e,t,w,n,m,v,y);if(!(1&n)){var S=_&&h.call(e,"__wrapped__"),j=O&&h.call(t,"__wrapped__");
2if(S||j){var P=S?e.value():e,C=j?t.value():t;return y||(y=new r),v(P,C,n,m,y)}}return!!x&&(y||(y=new r),a(e,t,n,m,v,y))}},25588:function(e,t,n){var r=n(64160),o=n(37005);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},62722:function(e){e.exports=function(e){return e!=e}},28458:function(e,t,n){var r=n(23560),o=n(15346),i=n(13218),a=n(80346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,f=u.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:s).test(a(e))}},29221:function(e,t,n){var r=n(64160),o=n(37005);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},38749:function(e,t,n){var r=n(44239),o=n(41780),i=n(37005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},280:function(e,t,n){var r=n(25726),o=n(86916),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},10313:function(e,t,n){var r=n(13218),o=n(25726),i=n(33498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},40371:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},18190:function(e){var t=Math.floor;e.exports=function(e,n){var r="";if(!e||n<1||n>9007199254740991)return r;do{n%2&&(r+=e),(n=t(n/2))&&(e+=e)}while(n);return r}},5976:function(e,t,n){var r=n(6557),o=n(45357),i=n(30061);e.exports=function(e,t){return i(o(e,t,r),e+"")}},10611:function(e,t,n){var r=n(34865),o=n(71811),i=n(65776),a=n(13218),s=n(40327);e.exports=function(e,t,n,l){if(!a(e))return e;for(var u=-1,c=(t=o(t,e)).length,f=c-1,d=e;null!=d&&++u<c;){var p=s(t[u]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=f){var m=d[p];void 0===(h=l?l(m,p,d):void 0)&&(h=a(m)?m:i(t[u+1])?[]:{})}r(d,p,h),d=d[p]}return e}},56560:function(e,t,n){var r=n(75703),o=n(38777),i=n(6557),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},14259:function(e){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},22545:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},80531:function(e,t,n){var r=n(62705),o=n(29932),i=n(1469),a=n(33448),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},27561:function(e,t,n){var r=n(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},7518:function(e){e.exports=function(e){return function(t){return e(t)}}},57406:function(e,t,n){var r=n(71811),o=n(10928),i=n(40292),a=n(40327);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},74757:function(e){e.exports=function(e,t){return e.has(t)}},24387:function(e,t,n){var r=n(29246);e.exports=function(e){return r(e)?e:[]}},54290:function(e,t,n){var r=n(6557);e.exports=function(e){return"function"==typeof e?e:r}},71811:function(e,t,n){var r=n(1469),o=n(15403),i=n(55514),a=n(79833);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},40180:function(e,t,n){var r=n(14259);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},5512:function(e,t,n){var r=n(42118);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},89817:function(e,t,n){var r=n(42118);e.exports=function(e,t){for(var n=-1,o=e.length;++n<o&&r(t,e[n],0)>-1;);return n}},74318:function(e,t,n){var r=n(11149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},64626:function(e,t,n){e=n.nmd(e);var r=n(55639),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},57157:function(e,t,n){var r=n(74318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},93147:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},40419:function(e,t,n){var r=n(62705),o=r?r.prototype:void 0,i=o?o.valueOf
2:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},77133:function(e,t,n){var r=n(74318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},278:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},98363:function(e,t,n){var r=n(34865),o=n(89465);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=i?i(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?o(n,u,c):r(n,u,c)}return n}},18805:function(e,t,n){var r=n(98363),o=n(99551);e.exports=function(e,t){return r(e,o(e),t)}},1911:function(e,t,n){var r=n(98363),o=n(51442);e.exports=function(e,t){return r(e,o(e),t)}},14429:function(e,t,n){var r=n(55639)["__core-js_shared__"];e.exports=r},25063:function(e){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},78302:function(e,t,n){var r=n(18190),o=n(80531),i=n(40180),a=n(62689),s=n(88016),l=n(83140),u=Math.ceil;e.exports=function(e,t){var n=(t=void 0===t?" ":o(t)).length;if(n<2)return n?r(t,e):t;var c=r(t,u(e/s(t)));return a(t)?i(l(c),0,e).join(""):c.slice(0,e)}},89179:function(e,t,n){var r=n(55639),o=n(40554),i=n(14841),a=n(79833),s=r.isFinite,l=Math.min;e.exports=function(e){var t=Math[e];return function(e,n){if(e=i(e),(n=null==n?0:l(o(n),292))&&s(e)){var r=(a(e)+"e").split("e"),u=t(r[0]+"e"+(+r[1]+n));return+((r=(a(u)+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}},60696:function(e,t,n){var r=n(68630);e.exports=function(e){return r(e)?void 0:e}},38777:function(e,t,n){var r=n(10852),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},67114:function(e,t,n){var r=n(88668),o=n(82908),i=n(74757);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,f=t.length;if(c!=f&&!(u&&f>c))return!1;var d=l.get(e),p=l.get(t);if(d&&p)return d==t&&p==e;var h=-1,m=!0,v=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<c;){var y=e[h],b=t[h];if(a)var g=u?a(b,y,h,t,e,l):a(y,b,h,e,t,l);if(void 0!==g){if(g)continue;m=!1;break}if(v){if(!o(t,(function(e,t){if(!i(v,t)&&(y===e||s(y,e,n,a,l)))return v.push(t)}))){m=!1;break}}else if(y!==b&&!s(y,b,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},18351:function(e,t,n){var r=n(62705),o=n(11149),i=n(77813),a=n(67114),s=n(68776),l=n(21814),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,f,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var h=1&r;if(p||(p=l),e.size!=t.size&&!h)return!1;var m=d.get(e);if(m)return m==t;r|=2,d.set(e,t);var v=a(p(e),p(t),r,u,f,d);return d.delete(e),v;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},16096:function(e,t,n){var r=n(58234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var f=c;f--;){var d=u[f];if(!(l?d in t:o.call(t,d)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var v=l;++f<c;){var y=e[d=u[f]],b=t[d];if(i)var g=l?i(b,y,d,t,e,s):i(y,b,d,e,t,s);if(!(void 0===g?y===b||a(y,b,n,i,s):g)){m=!1;break}v||(v="constructor"==d)}if(m&&!v){var w=e.constructor,k=t.constructor;w==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof k&&k instanceof k||(m=!1)}return s.delete(e),s.delete(t),m}},99021:function(e,t,n){var r=n(85564),o=n(45357),i=n(30061);e.exports=function(e){return i(o(e,void 0,r),e+"")}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},58234:function(e,t,n){var r=n(68866),o=n(99551),i=n(3674);e.exports=function(e){return r(e,i,o)}},46904:function(e,t,n){var r=n(68866),o=n(51442),i=n(81704);e.exports=function(e){return r(e,i,o)}},45050:function(e,t,n){var r=n(37019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},10852:function(e,t,n){var r=n(28458),o=n(47801);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},85924:function(e,t,n){var r=n(5569)(Object.getPrototypeOf,Object);e.exports=r},89607:function(e,t,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},99551:function(e,t,n){var r=n(34963),o=n(70479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},51442:function(e,t,n){var r=n(62488),o=n(85924),i=n(99551),a=n(70479),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},64160:function(e,t,n){var r=n(18552),o=n(57071),i=n(53818),a=n(58525),s=n(70577),l=n(44239),u=n(80346),c="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",m=u(r),v=u(o),y=u(i),b=u(a),g=u(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=c||i&&w(i.resolve())!=f||a&&w(new a)!=d||s&&w(new s)!=p)&&
vendor: 4,501 bytes, line 2
2(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case m:return h;case v:return c;case y:return f;case b:return d;case g:return p}return t}),e.exports=w},47801:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},222:function(e,t,n){var r=n(71811),o=n(35694),i=n(1469),a=n(65776),s=n(41780),l=n(40327);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,f=!1;++u<c;){var d=l(t[u]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++u!=c?f:!!(c=null==e?0:e.length)&&s(c)&&a(d,c)&&(i(e)||o(e))}},62689:function(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},51789:function(e,t,n){var r=n(94536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},80401:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},57667:function(e,t,n){var r=n(94536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},21327:function(e,t,n){var r=n(94536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},81866:function(e,t,n){var r=n(94536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},43824:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},29148:function(e,t,n){var r=n(74318),o=n(57157),i=n(93147),a=n(40419),s=n(77133);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,n);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 s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},38517:function(e,t,n){var r=n(3118),o=n(85924),i=n(25726);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},37285:function(e,t,n){var r=n(62705),o=n(35694),i=n(1469),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},65776:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},16612:function(e,t,n){var r=n(77813),o=n(98612),i=n(65776),a=n(13218);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},15403:function(e,t,n){var r=n(1469),o=n(33448),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},37019:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},15346:function(e,t,n){var r,o=n(14429),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},25726:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},27040:function(e){e.exports=function(){this.__data__=[],this.size=0}},14125:function(e,t,n){var r=n(18470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},82117:function(e,t,n){var r=n(18470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},67518:function(e,t,n){var r=n(18470);e.exports=function(e){return r(this.__data__,e)>-1}},13399:function(e,t,n){var r=n(18470);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},24785:function(e,t,n){var r=n(1989),o=n(38407),i=n(57071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),str
2ing:new r}}},11285:function(e,t,n){var r=n(45050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},96e3:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).get(e)}},49916:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).has(e)}},95265:function(e,t,n){var r=n(45050);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},68776:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},24523:function(e,t,n){var r=n(88306);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},94536:function(e,t,n){var r=n(10852)(Object,"create");e.exports=r},86916:function(e,t,n){var r=n(5569)(Object.keys,Object);e.exports=r},33498:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},31167:function(e,t,n){e=n.nmd(e);var r=n(31957),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},45357:function(e,t,n){var r=n(96874),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=n(l),r(e,this,u)}}},40292:function(e,t,n){var r=n(97786),o=n(14259);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},90619:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},72385:function(e){e.exports=function(e){return this.__data__.has(e)}},21814:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},30061:function(e,t,n){var r=n(56560),o=n(21275)(r);e.exports=o},21275:function(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},37465:function(e,t,n){var r=n(38407);e.exports=function(){this.__data__=new r,this.size=0}},63779:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},34309:function(e,t,n){var r=n(38407),o=n(57071),i=n(83369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},42351:function(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},88016:function(e,t,n){var r=n(48983),o=n(62689),i=n(21903);e.exports=function(e){return o(e)?i(e):r(e)}},83140:function(e,t,n){var r=n(44286),o=n(62689),i=n(676);e.exports=function(e){return o(e)?i(e):r(e)}},55514:function(e,t,n){var r=n(24523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},40327:function(e,t,n){var r=n(33448);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},21903:function(e){var t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",r="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+t+"|"+n+")?",s="[\\ufe0e\\ufe0f]?",l=s+a+"(?:\\u200d(?:"+[r,o,i].join("|")+")"+s+a+")*",u="(?:"+[r+t+"?",t,o,i,"[\\ud800-\\udfff]"].join("|")+")",c=RegExp(n+"(?="+n+")|"+u+l,"g");e.exports=function(e){for(var t=c.lastIndex=0;c.test(e);)++t;return t}},676:function(e){var t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",r="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+t+"|"+n+")?",s="[\\ufe0e\\ufe0f]?",l=s+a+"(?:\\u200d(?:"+[r,o,i].join("|")+")"+s+a+")*",u="(?:"+[r+t+"?",t,o,i,"[\\ud800-\\udfff]"].join("|")+")",c=RegExp(n+"(?="+n+")|"+u+l,"g");e.exports=function(e){return e.match(c)||[]}},8400:function(e,t,n){var r=n(14259),o=n(16612),i=n(40554),a=Math.ceil,s=Math.max;e.exports=function(e,t,n){t=(n?o(e,t,n):void 0===t)?1:s(i(t),0);var l=null==e?0:e.length;if(!l||t<1)return[];for(var u=0,c=0,f=Array(a(l/t));u<l;)f[c++]=r(e,u,u+=t);return f}},66678:function(e,t,n){var r=n(85990);e.exports=function(e){return r(e,4)}},50361:function(e,t,n){var r=n(85990);e.exports=function(e){return r(e,5)}},75703:function(e){e.exports=function(e){return function(){return e}}},23279:function(e,t,n){var r=n(13218),o=n(7771),i=n(14841),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,f,d,p,h=0,m=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=l,r=u;return l=u=void 0,h=t,f=e.apply(r,n)}function g(e){return h=e,d=setTimeout(k,t),m?b(e):f}function w(e){var n=e-p;return void 0===p||n>=t||n<0||v&&e-h>=c}function k(){var e=o();if(w(e))return _(e);d=setTimeout(k,function(e){var n=t-(e-p);return v?s(n,c-(e-h)):n}(e))}function _(e){return d=void 0,y&&l?b(e):(l=u=void 0,f)}function O(){var e=o(),n=w(e);if(l=arguments,u=this,p=e,n){if(void 0===d)return g(p);if(v)return clearTimeout(d),d=setTimeout(k,t),b(p)}return void 0===d&&(d=setTimeout(k,t)),f}return t=i(t)||0,r(n)&&(m=!!n.leading,c=(v="maxWait"in n)?a(i(n.maxWait)||0,t):c,y="trailing"in n?!!n.trailing:y),O.cancel=function(){void 0!==d&&clearTimeout(d),h=0,l=p=u=d=void 0},O.flush=function(){return void 0===d?f:_(o())},O}},91747:function(e,t,n){var r=n(5976),o=n(77813),i=n(16612),a=n(81704),s=Object.prototype,l=s.hasOwnProperty,u=r((function(e,t){e=Object(e);var n=-1,r=t.length,u=r>2?t[2]:void 0;for(u&&i(t[0],t[1],u)&&(r=1);++n<r;)for(var c=t[n],f=a(c),d=-1,p=f.length;++d<p;){var h=f[d],m=e[h];(void 0===m||o(m,s[h])&&!l.call(e,h))&&(e[h]=c[h])}return e}));e.exports=u},91966:function(e,t,n){var r=n(20731),o=n(21078),i=n(5976),a=n(29246),s=i((function(e,t){return a(e)?r(e,o(t,1,a,!0)):[]}));e.exports=s},77813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},85564:function(e,t,n){var r=n(21078);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},2525:function(e,t,n){var r=n(47816),o=n(54290);e.exports=function(e,t){return e&&r(e,o(t))}},27361:function(e,t,n){var r=n(97786);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},18721:function(e,t,n){var r=n(78565),o=n(222);e.exports=function(e,t){return null!=e&&o(e,t,r)}},6557:function(e){e.exports=function(e){return e}},25325:function(e,t,n){var r=n(29932),o=n(47556),i=n(5976),a=n(24387),s=i((function(e){var t=r(e,a);return t.length&&t[0]===e[0]?o(t):[]}));e.exports=s},35694:function(e,t,n){var r=n(9454),o=n(37005),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:function(e){var t=Array.isArray;e.exports=t},98612:function(e,t,n){var r=n(23560),o=n(41780);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},29246:function(e,t,n){var r=n(98612),o=n(37005);e.exports=function(e){return o(e)&&r(e)}},44144:function(e,t,n){e=n.nmd(e);var r=n(55639),o=n(95062),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},18446:function(e,t,n){var r=n(90939);e.exports=function(e,t){return r(e,t)}},23560:function(e,t,n){var r=n(44239),o=n(13218);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},56688:function(e,t,n){var r=n(25588),o=n(7518),i=n(31167),a=i&&i.isMap,s=a?o(a):r;e.exports=s},7654:function(e,t,n){var r=n(81763);e.exports=function(e){return r(e)&&e!=+e}},14293:function(e){e.exports=function(e){return null==e}},81763:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},68630:function(e,t,n){var r=n(44239),o=n(85924),i=n(37005),a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},72928:function(e,t,n){var r=n(29221),o=n(7518),i=n(31167),a=i&&i.isSet,s=a?o(a):r;e.exports=s},47037:function(e,t,n){var r=n(44239),o=n(1469),i=n(37005);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},36719:function(e,t,n){var r=n(38749),o=n(7518),i=n(31167),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},3674:function(e,t,n){var r=n(14636),o=n(280),i=n(98612);e.exports=function(e){return i(e)?r(e):o(e)}},81704:function(e,t,n){var r=n(14636),o=n(10313),i=n(98612);e.exports=function(e){return i(e)?r(e,!0):o(e)}},10928:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},96486:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=32,u=128,c=1/0,f=9007199254740991,d=NaN,p=4294967295,h=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],m="[object Arguments]",v="[object Array]",y="[object Boolean]",b="[object Date]",g="[object Error]",w="[object Function]",k="[object GeneratorFunction]",_="[object Map]",O="[object Number]",x="[object Object]",S="[object Promise]",j="[object RegExp]",P="[object Set]",C="[object String]",E="[object Symbol]",A="[object WeakMap]",M="[object ArrayBuffer]",R="[object DataView]",T="[object Float32Array]",D="[object Float64Array
vendor: 4,115 bytes, line 2
2]",I="[object Int8Array]",V="[object Int16Array]",L="[object Int32Array]",N="[object Uint8Array]",F="[object Uint8ClampedArray]",B="[object Uint16Array]",z="[object Uint32Array]",U=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,Y=RegExp(W.source),G=RegExp(K.source),$=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ge=/($^)/,we=/['\n\r\u2028\u2029\\]/g,ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",xe="\\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",Se="["+xe+"]",je="["+ke+"]",Pe="\\d+",Ce="["+_e+"]",Ee="[^\\ud800-\\udfff"+xe+Pe+"\\u2700-\\u27bf"+_e+Oe+"]",Ae="\\ud83c[\\udffb-\\udfff]",Me="[^\\ud800-\\udfff]",Re="(?:\\ud83c[\\udde6-\\uddff]){2}",Te="[\\ud800-\\udbff][\\udc00-\\udfff]",De="["+Oe+"]",Ie="(?:"+Ce+"|"+Ee+")",Ve="(?:"+De+"|"+Ee+")",Le="(?:['â](?:d|ll|m|re|s|t|ve))?",Ne="(?:['â](?:D|LL|M|RE|S|T|VE))?",Fe="(?:"+je+"|"+Ae+")?",Be="[\\ufe0e\\ufe0f]?",ze=Be+Fe+"(?:\\u200d(?:"+[Me,Re,Te].join("|")+")"+Be+Fe+")*",Ue="(?:"+["[\\u2700-\\u27bf]",Re,Te].join("|")+")"+ze,He="(?:"+[Me+je+"?",je,Re,Te,"[\\ud800-\\udfff]"].join("|")+")",qe=RegExp("['â]","g"),We=RegExp(je,"g"),Ke=RegExp(Ae+"(?="+Ae+")|"+He+ze,"g"),Ye=RegExp([De+"?"+Ce+"+"+Le+"(?="+[Se,De,"$"].join("|")+")",Ve+"+"+Ne+"(?="+[Se,De+Ie,"$"].join("|")+")",De+"?"+Ie+"+"+Le,De+"+"+Ne,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,Ue].join("|"),"g"),Ge=RegExp("[\\u200d\\ud800-\\udfff"+ke+"\\ufe0e\\ufe0f]"),$e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Je=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ze=-1,Xe={};Xe[T]=Xe[D]=Xe[I]=Xe[V]=Xe[L]=Xe[N]=Xe[F]=Xe[B]=Xe[z]=!0,Xe[m]=Xe[v]=Xe[M]=Xe[y]=Xe[R]=Xe[b]=Xe[g]=Xe[w]=Xe[_]=Xe[O]=Xe[x]=Xe[j]=Xe[P]=Xe[C]=Xe[A]=!1;var Qe={};Qe[m]=Qe[v]=Qe[M]=Qe[R]=Qe[y]=Qe[b]=Qe[T]=Qe[D]=Qe[I]=Qe[V]=Qe[L]=Qe[_]=Qe[O]=Qe[x]=Qe[j]=Qe[P]=Qe[C]=Qe[E]=Qe[N]=Qe[F]=Qe[B]=Qe[z]=!0,Qe[g]=Qe[w]=Qe[A]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ot="object"==typeof self&&self&&self.Object===Object&&self,it=rt||ot||Function("return this")(),at=t&&!t.nodeType&&t,st=at&&e&&!e.nodeType&&e,lt=st&&st.exports===at,ut=lt&&rt.process,ct=function(){try{return st&&st.require&&st.require("util").types||ut&&ut.binding&&ut.binding("util")}catch(e){}}(),ft=ct&&ct.isArrayBuffer,dt=ct&&ct.isDate,pt=ct&&ct.isMap,ht=ct&&ct.isRegExp,mt=ct&&ct.isSet,vt=ct&&ct.isTypedArray;function yt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function bt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function gt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function wt(e,t){for(var n=null==e?0:e.length;
vendor: 4,742 bytes, line 2
2n--&&!1!==t(e[n],n,e););return e}function kt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function _t(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Ot(e,t){return!(null==e||!e.length)&&Tt(e,t,0)>-1}function xt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function St(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function jt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Pt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Ct(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Et(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var At=Lt("length");function Mt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Rt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Tt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Rt(e,It,n)}function Dt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function It(e){return e!=e}function Vt(e,t){var n=null==e?0:e.length;return n?Bt(e,t)/n:d}function Lt(e){return function(t){return null==t?o:t[e]}}function Nt(e){return function(t){return null==e?o:e[t]}}function Ft(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Bt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function zt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ut(e){return e?e.slice(0,sn(e)+1).replace(re,""):e}function Ht(e){return function(t){return e(t)}}function qt(e,t){return St(t,(function(t){return e[t]}))}function Wt(e,t){return e.has(t)}function Kt(e,t){for(var n=-1,r=e.length;++n<r&&Tt(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length;n--&&Tt(t,e[n],0)>-1;);return n}function Gt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var $t=Nt({Ã:"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"}),Jt=Nt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Zt(e){return"\\"+et[e]}function Xt(e){return Ge.test(e)}function Qt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Xt(e)?function(e){for(var t=Ke.lastIndex=0;Ke.test(e);)++t;return t}(e):At(e)}function an(e){return Xt(e)?function(e){return e.match(Ke)||[]}(e):function(e){return e.split("")}(e)}function sn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var ln=Nt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),un=function e(t){var n,r=(t=null==t?it:un.defaults(it.Object(),t,un.pick(it,Je))).Array,oe=t.Date,ke=t.Error,_e=t.Function,Oe=t.Math,xe=t.Object,Se=t.RegExp,je=t.String,Pe=t.TypeError,Ce=r.prototype,Ee=_e.prototype,Ae=xe.prototype,Me=t["__core-js_shared__"],Re=Ee.toString,Te=Ae.hasOwnProperty,De=0,Ie=(n=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||""))?"Symbol(sr
2c)_1."+n:"",Ve=Ae.toString,Le=Re.call(xe),Ne=it._,Fe=Se("^"+Re.call(Te).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=lt?t.Buffer:o,ze=t.Symbol,Ue=t.Uint8Array,He=Be?Be.allocUnsafe:o,Ke=en(xe.getPrototypeOf,xe),Ge=xe.create,et=Ae.propertyIsEnumerable,rt=Ce.splice,ot=ze?ze.isConcatSpreadable:o,at=ze?ze.iterator:o,st=ze?ze.toStringTag:o,ut=function(){try{var e=ci(xe,"defineProperty");return e({},"",{}),e}catch(e){}}(),ct=t.clearTimeout!==it.clearTimeout&&t.clearTimeout,At=oe&&oe.now!==it.Date.now&&oe.now,Nt=t.setTimeout!==it.setTimeout&&t.setTimeout,cn=Oe.ceil,fn=Oe.floor,dn=xe.getOwnPropertySymbols,pn=Be?Be.isBuffer:o,hn=t.isFinite,mn=Ce.join,vn=en(xe.keys,xe),yn=Oe.max,bn=Oe.min,gn=oe.now,wn=t.parseInt,kn=Oe.random,_n=Ce.reverse,On=ci(t,"DataView"),xn=ci(t,"Map"),Sn=ci(t,"Promise"),jn=ci(t,"Set"),Pn=ci(t,"WeakMap"),Cn=ci(xe,"create"),En=Pn&&new Pn,An={},Mn=Fi(On),Rn=Fi(xn),Tn=Fi(Sn),Dn=Fi(jn),In=Fi(Pn),Vn=ze?ze.prototype:o,Ln=Vn?Vn.valueOf:o,Nn=Vn?Vn.toString:o;function Fn(e){if(ns(e)&&!Wa(e)&&!(e instanceof Hn)){if(e instanceof Un)return e;if(Te.call(e,"__wrapped__"))return Bi(e)}return new Un(e)}var Bn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ge)return Ge(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function zn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Wn(e);this.size=t.size}function $n(e,t){var n=Wa(e),r=!n&&qa(e),o=!n&&!r&&$a(e),i=!n&&!r&&!o&&cs(e),a=n||r||o||i,s=a?zt(e.length,je):[],l=s.length;for(var u in e)!t&&!Te.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||yi(u,l))||s.push(u);return s}function Jn(e){var t=e.length;return t?e[Kr(0,t-1)]:o}function Zn(e,t){return Di(Co(e),ar(t,0,e.length))}function Xn(e){return Di(Co(e))}function Qn(e,t,n){(n!==o&&!za(e[t],n)||n===o&&!(t in e))&&or(e,t,n)}function er(e,t,n){var r=e[t];Te.call(e,t)&&za(r,n)&&(n!==o||t in e)||or(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(za(e[n][0],t))return n;return-1}function nr(e,t,n,r){return fr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function rr(e,t){return e&&Eo(t,Rs(t),e)}function or(e,t,n){"__proto__"==t&&ut?ut(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:Ps(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function sr(e,t,n,r,i,a){var s,l=1&t,u=2&t,c=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!ts(e))return e;var f=Wa(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Te.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Co(e,s)}else{var d=pi(e),p=d==w||d==k;if($a(e))return _o(e,l);if(d==x||d==m||p&&!i){if(s=u||p?{}:mi(e),!l)return u?function(e,t){return Eo(e,di(e),t)}(e,function(e,t){return e&&Eo(t,Ts(t),e)}(s,e)):function(e,t){return Eo(e,fi(e),t)}(e,rr(s,e))}else{if(!Qe[d])return i?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case M:return Oo(e);case y:case b:return new o(+e);case R:return function(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case T:case D:case I:case V:case L:case N:case F:case B:case z:return xo(e,n);case _:return new o;case O:case C:return new o(e);case j:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case P:return new o;case E:return r=e,Ln?xe(Ln.call(r)):{}}
vendor: 5,653 bytes, line 2
2}(e,d,l)}}a||(a=new Gn);var h=a.get(e);if(h)return h;a.set(e,s),ss(e)?e.forEach((function(r){s.add(sr(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,o){s.set(o,sr(r,t,n,o,e,a))}));var v=f?o:(c?u?ri:ni:u?Ts:Rs)(e);return gt(v||e,(function(r,o){v&&(r=e[o=r]),er(s,o,sr(r,t,n,o,e,a))})),s}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=xe(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Pe(i);return Ai((function(){e.apply(o,n)}),t)}function cr(e,t,n,r){var o=-1,i=Ot,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=St(t,Ht(n))),r?(i=xt,a=!1):t.length>=200&&(i=Wt,a=!1,t=new Yn(t));e:for(;++o<s;){var c=e[o],f=null==n?c:n(c);if(c=r||0!==c?c:0,a&&f==f){for(var d=u;d--;)if(t[d]===f)continue e;l.push(c)}else i(t,f,r)||l.push(c)}return l}Fn.templateSettings={escape:$,evaluate:J,interpolate:Z,variable:"",imports:{_:Fn}},Fn.prototype=zn.prototype,Fn.prototype.constructor=Fn,Un.prototype=Bn(zn.prototype),Un.prototype.constructor=Un,Hn.prototype=Bn(zn.prototype),Hn.prototype.constructor=Hn,qn.prototype.clear=function(){this.__data__=Cn?Cn(null):{},this.size=0},qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qn.prototype.get=function(e){var t=this.__data__;if(Cn){var n=t[e];return n===a?o:n}return Te.call(t,e)?t[e]:o},qn.prototype.has=function(e){var t=this.__data__;return Cn?t[e]!==o:Te.call(t,e)},qn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Cn&&t===o?a:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},Wn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?o:t[n][1]},Wn.prototype.has=function(e){return tr(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(xn||Wn),string:new qn}},Kn.prototype.delete=function(e){var t=li(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return li(this,e).get(e)},Kn.prototype.has=function(e){return li(this,e).has(e)},Kn.prototype.set=function(e,t){var n=li(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,a),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var r=n.__data__;if(!xn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var fr=Ro(gr),dr=Ro(wr,!0);function pr(e,t){var n=!0;return fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function hr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(l===o?s==s&&!us(s):n(s,l)))var l=s,u=a}return u}function mr(e,t){var n=[];return fr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function vr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=vi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?vr(s,t-1,n,r,o):jt(o,s):r||(o[o.length]=s)}return o}var yr=To(),br=To(!0);function gr(e,t){return e&&yr(e,t,Rs)}function wr(e,t){return e&&br(e,t,Rs)}function kr(e,t){return _t(t,(function(t){return Xa(e[t])}))}function _r(e,t){for(var n=0,r=(t=bo(t,e)).length;null!=e&&n<r;)e=e[Ni(t[n++])];return n&&n==r?e:o}function Or(e,t,n){var r=t(e);return Wa(e)?r:jt(r,n(e))}function xr(e){return null==e?e===o?"[object Undefined]":"[object Null]":st&&st in xe(e)?function(e){var t=Te.call(e,st),n=e[st];try{e[st]=o;var r=!0}catch(e){}var i=Ve.call(e);return r&&(t?e[st]=n:delete e[st]),i}(e):function(e){return Ve.call(e)}(e)}function Sr(e,t){return e>t}function jr(e,t){return null!=e&&Te.call(e,t)}function Pr(e,t){return null!=e&&t in xe(e)}function Cr(e,t,n){for(var i=n?xt:Ot,a=e[0].length,s=e.length,l=s,u=r(s),c=1/0,f=[];l--;){var d=e[l];l&&t&&(d=St(d,Ht(t))),c=bn(d.length,c),u[l]=!n&&(t||a>=120&&d.length>=120)?new Yn(l&&d):o}d=e[0];var p=-1,h=u[0];e:for(;++p<a&&f.length<c;){var m=d[p],v=t?t(m):m;if(m=n||0!==m?m:0,!(h?Wt(h,v):i(f,v,n))){for(l=s;--l;){var y=u[l];if(!(y?Wt(y,v):i(e[l],v,n)))continue e}h&&h.push(v),f.push(m)}}return f}function Er(e,t,n){var r=null==(e=ji(e,t=bo(t,e)))?e:e[Ni(Zi(t))];return null==r?o:yt(r,e,n)}function Ar(e){return ns(e)&&xr(e)==m}function Mr(e,t,n,r,i){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=Wa(e),l=Wa(t),u=s?v:pi(e),c=l?v:pi(t),f=(u=u==m?x:u)==x,d=(c=c==m?x:c)==x,p=u==c;if(p&&$a(e)){if(!$a(t))return!1;s=!0,f=!1}if(p&&!f)return a||(a=new Gn),s||cs(e)?ei(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case M:return!(e.byteLength!=t.byteLength||!i(new Ue(e),new Ue(t)));case y:case b:case O:return za(+e,+t);case g:return e.name==t.name&&e.message==t.message;case j:case C:return e==t+"";case _:var s=Qt;case P:var l=1&r;if(s||(s=nn),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=ei(s(e),s(t),r,o,i,a);return a.delete(e),c;case E:if(Ln)return Ln.call(e)==Ln.call(t)}return!1}(e,t,u,n,r,i,a);if(!(1&n)){var h=f&&Te.call(e,"__wrapped__"),w=d&&Te.call(t,"__wrapped__");
vendor: 11,864 bytes, line 2
2if(h||w){var k=h?e.value():e,S=w?t.value():t;return a||(a=new Gn),i(k,S,n,r,a)}}return!!p&&(a||(a=new Gn),function(e,t,n,r,i,a){var s=1&n,l=ni(e),u=l.length;if(u!=ni(t).length&&!s)return!1;for(var c=u;c--;){var f=l[c];if(!(s?f in t:Te.call(t,f)))return!1}var d=a.get(e),p=a.get(t);if(d&&p)return d==t&&p==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=s;++c<u;){var v=e[f=l[c]],y=t[f];if(r)var b=s?r(y,v,f,t,e,a):r(v,y,f,e,t,a);if(!(b===o?v===y||i(v,y,n,r,a):b)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var g=e.constructor,w=t.constructor;g==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof w&&w instanceof w||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,i,a))}(e,t,n,r,Mr,i))}function Rr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=xe(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var u=(l=n[i])[0],c=e[u],f=l[1];if(s&&l[2]){if(c===o&&!(u in e))return!1}else{var d=new Gn;if(r)var p=r(c,f,u,e,t,d);if(!(p===o?Mr(f,c,3,r,d):p))return!1}}return!0}function Tr(e){return!(!ts(e)||(t=e,Ie&&Ie in t))&&(Xa(e)?Fe:me).test(Fi(e));var t}function Dr(e){return"function"==typeof e?e:null==e?ol:"object"==typeof e?Wa(e)?Fr(e[0],e[1]):Nr(e):pl(e)}function Ir(e){if(!_i(e))return vn(e);var t=[];for(var n in xe(e))Te.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Vr(e,t){return e<t}function Lr(e,t){var n=-1,o=Ya(e)?r(e.length):[];return fr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Nr(e){var t=ui(e);return 1==t.length&&t[0][2]?xi(t[0][0],t[0][1]):function(n){return n===e||Rr(n,e,t)}}function Fr(e,t){return gi(e)&&Oi(t)?xi(Ni(e),t):function(n){var r=Ps(n,e);return r===o&&r===t?Cs(n,e):Mr(t,r,3)}}function Br(e,t,n,r,i){e!==t&&yr(t,(function(a,s){if(i||(i=new Gn),ts(a))!function(e,t,n,r,i,a,s){var l=Ci(e,n),u=Ci(t,n),c=s.get(u);if(c)Qn(e,n,c);else{var f=a?a(l,u,n+"",e,t,s):o,d=f===o;if(d){var p=Wa(u),h=!p&&$a(u),m=!p&&!h&&cs(u);f=u,p||h||m?Wa(l)?f=l:Ga(l)?f=Co(l):h?(d=!1,f=_o(u,!0)):m?(d=!1,f=xo(u,!0)):f=[]:is(u)||qa(u)?(f=l,qa(l)?f=bs(l):ts(l)&&!Xa(l)||(f=mi(u))):d=!1}d&&(s.set(u,f),i(f,u,r,a,s),s.delete(u)),Qn(e,n,f)}}(e,t,s,n,Br,r,i);else{var l=r?r(Ci(e,s),a,s+"",e,t,i):o;l===o&&(l=a),Qn(e,s,l)}}),Ts)}function zr(e,t){var n=e.length;if(n)return yi(t+=t<0?n:0,n)?e[t]:o}function Ur(e,t,n){t=t.length?St(t,(function(e){return Wa(e)?function(t){return _r(t,1===e.length?e[0]:e)}:e})):[ol];var r=-1;t=St(t,Ht(si()));var o=Lr(e,(function(e,n,o){var i=St(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var l=So(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(o)}function Hr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=_r(e,a);n(s,a)&&Zr(i,bo(a,e),s)}return i}function qr(e,t,n,r){var o=r?Dt:Tt,i=-1,a=t.length,s=e;for(e===t&&(t=Co(t)),n&&(s=St(e,Ht(n)));++i<a;)for(var l=0,u=t[i],c=n?n(u):u;(l=o(s,c,l,r))>-1;)s!==e&&rt.call(s,l,1),rt.call(e,l,1);return e}function Wr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;yi(o)?rt.call(e,o,1):uo(e,o)}}return e}function Kr(e,t){return e+fn(kn()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=fn(t/2))&&(e+=e)}while(t);return n}function Gr(e,t){return Mi(Si(e,t,ol),e+"")}function $r(e){return Jn(zs(e))}function Jr(e,t){var n=zs(e);return Di(n,ar(t,0,n.length))}function Zr(e,t,n,r){if(!ts(e))return e;for(var i=-1,a=(t=bo(t,e)).length,s=a-1,l=e;null!=l&&++i<a;){var u=Ni(t[i]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=s){var f=l[u];(c=r?r(f,u,l):o)===o&&(c=ts(f)?f:yi(t[i+1])?[]:{})}er(l,u,c),l=l[u]}return e}var Xr=En?function(e,t){return En.set(e,t),e}:ol,Qr=ut?function(e,t){return ut(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:ol;function eo(e){return Di(zs(e))}function to(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function no(e,t){var n;return fr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ro(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!us(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return oo(e,t,ol,n)}function oo(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,u=us(t),c=t===o;i<a;){var f=fn((i+a)/2),d=n(e[f]),p=d!==o,h=null===d,m=d==d,v=us(d);if(s)var y=r||m;else y=c?m&&(r||p):l?m&&p&&(r||!h):u?m&&p&&!h&&(r||!v):!h&&!v&&(r?d<=t:d<t);y?i=f+1:a=f}return bn(a,4294967294)}function io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!za(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function ao(e){return"number"==typeof e?e:us(e)?d:+e}function so(e){if("string"==typeof e)return e;if(Wa(e))return St(e,so)+"";if(us(e))return Nn?Nn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function lo(e,t,n){var r=-1,o=Ot,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=xt;else if(i>=200){var u=t?null:Go(e);if(u)return nn(u);a=!1,o=Wt,l=new Yn}else l=t?[]:s;e:for(;++r<i;){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,a&&f==f){for(var d=l.length;d--;)if(l[d]===f)continue e;t&&l.push(f),s.push(c)}else o(l,f,n)||(l!==s&&l.push(f),s.push(c))}return s}function uo(e,t){return null==(e=ji(e,t=bo(t,e)))||delete e[Ni(Zi(t))]}function co(e,t,n,r){return Zr(e,t,n(_r(e,t)),r)}function fo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?to(e,r?0:i,r?i+1:o):to(e,r?i+1:0,r?o:i)}function po(e,t){var n=e;return n instanceof Hn&&(n=n.value()),Pt(t,(function(e,t){return t.func.apply(t.thisArg,jt([e],t.args))}),n)}function ho(e,t,n){var o=e.length;if(o<2)return o?lo(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],l=-1;++l<o;)l!=i&&(a[i]=cr(a[i]||s,e[l],t,n));return lo(vr(a,1),t,n)}function mo(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var l=r<a?t[r]:o;n(s,e[r],l)}return s}function vo(e){return Ga(e)?e:[]}function yo(e){return"function"==typeof e?e:ol}function bo(e,t){return Wa(e)?e:gi(e,t)?[e]:Li(gs(e))}var go=Gr;function wo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:to(e,t,n)}var ko=ct||function(e){return it.clearTimeout(e)};function _o(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function Oo(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function xo(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function So(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=us(e),s=t!==o,l=null===t,u=t==t,c=us(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||l&&n&&i||!s&&i||!u)return-1}return 0}function jo(e,t,n,o){for(var i=-1,a=e.length,s=n.length,l=-1,u=t.length,c=yn(a-s,0),f=r(u+c),d=!o;++l<u;)f[l]=t[l];for(;++i<s;)(d||i<a)&&(f[n[i]]=e[i]);for(;c--;)f[l++]=e[i++];return f}function Po(e,t,n,o){for(var i=-1,a=e.length,s=-1,l=n.length,u=-1,c=t.length,f=yn(a-l,0),d=r(f+c),p=!o;++i<f;)d[i]=e[i];for(var h=i;++u<c;)d[h+u]=t[u];for(;++s<l;)(p||i<a)&&(d[h+n[s]]=e[i++]);return d}function Co(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Eo(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],u=r?r(n[l],e[l],l,n,e):o;u===o&&(u=e[l]),i?or(n,l,u):er(n,l,u)}return n}function Ao(e,t){return function(n,r){var o=Wa(n)?bt:nr,i=t?t():{};return o(n,e,si(r,2),i)}}function Mo(e){return Gr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&bi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=xe(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}function Ro(e,t){return function(n,r){if(null==n)return n;if(!Ya(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=xe(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function To(e){return function(t,n,r){for(var o=-1,i=xe(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function Do(e){return function(t){var n=Xt(t=gs(t))?an(t):o,r=n?n[0]:t.charAt(0),i=n?wo(n,1).join(""):t.slice(1);return r[e]()+i}}function Io(e){return function(t){return Pt(Xs(qs(t).replace(qe,"")),e,"")}}function Vo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function Lo(e){return function(t,n,r){var i=xe(t);if(!Ya(t)){var a=si(n,3);t=Rs(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function No(e){return ti((function(t){var n=t.length,r=n,a=Un.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Pe(i);if(a&&!l&&"wrapper"==ii(s))var l=new Un([],!0)}for(r=l?r:n;++r<n;){var u=ii(s=t[r]),c="wrapper"==u?oi(s):o;l=c&&wi(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[ii(c[0])].apply(l,c[3]):1==s.length&&wi(s)?l[u]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Wa(r))return l.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Fo(e,t,n,i,a,s,l,c,f,d){var p=t&u,h=1&t,m=2&t,v=24&t,y=512&t,b=m?o:Vo(e);return function o(){for(var u=arguments.length,g=r(u),w=u;w--;)g[w]=arguments[w];if(v)var k=ai(o),_=Gt(g,k);if(i&&(g=jo(g,i,a,v)),s&&(g=Po(g,s,l,v)),u-=_,v&&u<d){var O=tn(g,k);return Ko(e,t,Fo,o.placeholder,n,g,O,c,f,d-u)}var x=h?n:this,S=m?x[e]:e;return u=g.length,c?g=Pi(g,c):y&&u>1&&g.reverse(),p&&f<u&&(g.length=f),this&&this!==it&&this instanceof o&&(S=b||Vo(S)),S.apply(x,g)}}function Bo(e,t){return function(n,r){return function(e,t,n,r){return gr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function zo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=so(n),r=so(r)):(n=ao(n),r=ao(r)),i=e(n,r)}return i}}function Uo(e){return ti((function(t){return t=St(t,Ht(si())),Gr((function(n){var r=this;return e(t,(function(e){return yt(e,r,n)}))}))}))}function Ho(e,t){var n=(t=t===o?" ":so(t)).length;if(n<2)return n?Yr(t,e):t;var r=Yr(t,cn(e/on(t)));return Xt(t)?wo(an(r),0,e).join(""):r.slice(0,e)}function qo(e){return function(t,n,i){return i&&"number"!=typeof i&&bi(t,n,i)&&(n=i=o),t=hs(t),n===o?(n=t,t=0):n=hs(n),function(e,t,n,o){for(var i=-1,a=yn(cn((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:hs(i),e)}}function Wo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ys(t),n=ys(n)),e(t,n)}}function Ko(e,t,n,r,i,a,s,u,c,f){var d=8&t;t|=d?l:64,4&(t&=~(d?64:l))||(t&=-4);var p=[e,t,i,d?a:o,d?s:o,d?o:a,d?o:s,u,c,f],h=n.apply(o,p);return wi(e)&&Ei(h,p),h.placeholder=r,Ri(h,e,t)}function Yo(e){var t=Oe[e];return function(e,n){if(e=ys(e),(n=null==n?0:bn(ms(n),292))&&hn(e)){var r=(gs(e)+"e").split("e");return+((r=(gs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Go=jn&&1/nn(new jn([,-0]))[1]==c?function(e){return new jn(e)}:ul;function $o(e){return function(t){var n=pi(t);return n==_?Qt(t):n==P?rn(t):function(e,t){return St(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jo(e,t,n,a,c,f,d,p){var h=2&t;if(!h&&"function"!=typeof e)throw new Pe(i);var m=a?a.length:0;if(m||(t&=-97,a=c=o),d=d===o?d:yn(ms(d),0),p=p===o?p:ms(p),m-=c?c.length:0,64&t){var v=a,y=c;a=c=o}var b=h?o:oi(e),g=[e,t,n,a,c,v,y,f,d,p];if(b&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==u&&8==n||r==u&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;
vendor: 4,954 bytes, line 2
2if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?jo(c,l,t[4]):l,e[4]=c?tn(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Po(c,l,t[6]):l,e[6]=c?tn(e[5],s):t[6]),(l=t[7])&&(e[7]=l),r&u&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(g,b),e=g[0],t=g[1],n=g[2],a=g[3],c=g[4],!(p=g[9]=g[9]===o?h?0:e.length:yn(g[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var i=Vo(e);return function a(){for(var s=arguments.length,l=r(s),u=s,c=ai(a);u--;)l[u]=arguments[u];var f=s<3&&l[0]!==c&&l[s-1]!==c?[]:tn(l,c);return(s-=f.length)<n?Ko(e,t,Fo,a.placeholder,o,l,f,o,o,n-s):yt(this&&this!==it&&this instanceof a?i:e,this,l)}}(e,t,p):t!=l&&33!=t||c.length?Fo.apply(o,g):function(e,t,n,o){var i=1&t,a=Vo(e);return function t(){for(var s=-1,l=arguments.length,u=-1,c=o.length,f=r(c+l),d=this&&this!==it&&this instanceof t?a:e;++u<c;)f[u]=o[u];for(;l--;)f[u++]=arguments[++s];return yt(d,i?n:this,f)}}(e,t,n,a);else var w=function(e,t,n){var r=1&t,o=Vo(e);return function t(){return(this&&this!==it&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Ri((b?Xr:Ei)(w,g),e,t)}function Zo(e,t,n,r){return e===o||za(e,Ae[n])&&!Te.call(r,n)?t:e}function Xo(e,t,n,r,i,a){return ts(e)&&ts(t)&&(a.set(t,e),Br(e,t,o,Xo,a),a.delete(t)),e}function Qo(e){return is(e)?o:e}function ei(e,t,n,r,i,a){var s=1&n,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var d=-1,p=!0,h=2&n?new Yn:o;for(a.set(e,t),a.set(t,e);++d<l;){var m=e[d],v=t[d];if(r)var y=s?r(v,m,d,t,e,a):r(m,v,d,e,t,a);if(y!==o){if(y)continue;p=!1;break}if(h){if(!Et(t,(function(e,t){if(!Wt(h,t)&&(m===e||i(m,e,n,r,a)))return h.push(t)}))){p=!1;break}}else if(m!==v&&!i(m,v,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ti(e){return Mi(Si(e,o,Ki),e+"")}function ni(e){return Or(e,Rs,fi)}function ri(e){return Or(e,Ts,di)}var oi=En?function(e){return En.get(e)}:ul;function ii(e){for(var t=e.name+"",n=An[t],r=Te.call(An,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ai(e){return(Te.call(Fn,"placeholder")?Fn:e).placeholder}function si(){var e=Fn.iteratee||il;return e=e===il?Dr:e,arguments.length?e(arguments[0],arguments[1]):e}function li(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ui(e){for(var t=Rs(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Oi(o)]}return t}function ci(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Tr(n)?n:o}var fi=dn?function(e){return null==e?[]:(e=xe(e),_t(dn(e),(function(t){return et.call(e,t)})))}:vl,di=dn?function(e){for(var t=[];e;)jt(t,fi(e)),e=Ke(e);return t}:vl,pi=xr;function hi(e,t,n){for(var r=-1,o=(t=bo(t,e)).length,i=!1;++r<o;){var a=Ni(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&es(o)&&yi(a,o)&&(Wa(e)||qa(e))}function mi(e){return"function"!=typeof e.constructor||_i(e)?{}:Bn(Ke(e))}function vi(e){return Wa(e)||qa(e)||!!(ot&&e&&e[ot])}function yi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ye.test(e))&&e>-1&&e%1==0&&e<t}function bi(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?Ya(n)&&yi(t,n.length):"string"==r&&t in n)&&za(n[t],e)}function gi(e,t){if(Wa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!us(e))||Q.test(e)||!X.test(e)||null!=t&&e in xe(t)}function wi(e){var t=ii(e),n=Fn[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=oi(n);return!!r&&e===r[0]}(On&&pi(new On(new ArrayBuffer(1)))!=R||xn&&pi(new xn)!=_||Sn&&pi(Sn.resolve())!=S||jn&&pi(new jn)!=P||Pn&&pi(new Pn)!=A)&&(pi=function(e){var t=xr(e),n=t==x?e.constructor:o,r=n?Fi(n):"";if(r)switch(r){case Mn:return R;case Rn:return _;case Tn:return S;case Dn:return P;case In:return A}return t});var ki=Me?Xa:yl;function _i(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ae)}function Oi(e){return e==e&&!ts(e)}function xi(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in xe(n))}}function Si(e,t,n){return t=yn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=yn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var l=r(t+1);++i<t;)l[i]=o[i];return l[t]=n(s),yt(e,this,l)}}function ji(e,t){return t.length<2?e:_r(e,to(t,0,-1))}function Pi(e,t){for(var n=e.length,r=bn(t.length,n),i=Co(e);r--;){var a=t[r];e[r]=yi(a,n)?i[a]:o}return e}function Ci(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ei=Ti(Xr),Ai=Nt||function(e,t){return it.setTimeout(e,t)},Mi=Ti(Qr);function Ri(e,t,n){var r=t+"";return Mi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return gt(h,(function(n){var r="_."+n[0];
vendor: 3,194 bytes, line 2
2t&n[1]&&!Ot(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Ti(e){var t=0,n=0;return function(){var r=gn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Di(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Kr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Ii,Vi,Li=(Ii=Ia((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(ce,"$1"):n||e)})),t}),(function(e){return 500===Vi.size&&Vi.clear(),e})),Vi=Ii.cache,Ii);function Ni(e){if("string"==typeof e||us(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fi(e){if(null!=e){try{return Re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bi(e){if(e instanceof Hn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Co(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zi=Gr((function(e,t){return Ga(e)?cr(e,vr(t,1,Ga,!0)):[]})),Ui=Gr((function(e,t){var n=Zi(t);return Ga(n)&&(n=o),Ga(e)?cr(e,vr(t,1,Ga,!0),si(n,2)):[]})),Hi=Gr((function(e,t){var n=Zi(t);return Ga(n)&&(n=o),Ga(e)?cr(e,vr(t,1,Ga,!0),o,n):[]}));function qi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ms(n);return o<0&&(o=yn(r+o,0)),Rt(e,si(t,3),o)}function Wi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ms(n),i=n<0?yn(r+i,0):bn(i,r-1)),Rt(e,si(t,3),i,!0)}function Ki(e){return null!=e&&e.length?vr(e,1):[]}function Yi(e){return e&&e.length?e[0]:o}var Gi=Gr((function(e){var t=St(e,vo);return t.length&&t[0]===e[0]?Cr(t):[]})),$i=Gr((function(e){var t=Zi(e),n=St(e,vo);return t===Zi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Cr(n,si(t,2)):[]})),Ji=Gr((function(e){var t=Zi(e),n=St(e,vo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Cr(n,o,t):[]}));function Zi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Xi=Gr(Qi);function Qi(e,t){return e&&e.length&&t&&t.length?qr(e,t):e}var ea=ti((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return Wr(e,St(t,(function(e){return yi(e,n)?+e:e})).sort(So)),r}));function ta(e){return null==e?e:_n.call(e)}var na=Gr((function(e){return lo(vr(e,1,Ga,!0))})),ra=Gr((function(e){var t=Zi(e);return Ga(t)&&(t=o),lo(vr(e,1,Ga,!0),si(t,2))})),oa=Gr((function(e){var t=Zi(e);return t="function"==typeof t?t:o,lo(vr(e,1,Ga,!0),o,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=_t(e,(function(e){if(Ga(e))return t=yn(e.length,t),!0})),zt(t,(function(t){return St(e,Lt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:St(n,(function(e){return yt(t,o,e)}))}var sa=Gr((function(e,t){return Ga(e)?cr(e,t):[]})),la=Gr((function(e){return ho(_t(e,Ga))})),ua=Gr((function(e){var t=Zi(e);return Ga(t)&&(t=o),ho(_t(e,Ga),si(t,2))})),ca=Gr((function(e){var t=Zi(e);return t="function"==typeof t?t:o,ho(_t(e,Ga),o,t)})),fa=Gr(ia),da=Gr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)}));function pa(e){var t=Fn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var ma=ti((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,
vendor: 6,523 bytes, line 2
2i=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Hn&&yi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:o}),new Un(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),va=Ao((function(e,t,n){Te.call(e,n)?++e[n]:or(e,n,1)})),ya=Lo(qi),ba=Lo(Wi);function ga(e,t){return(Wa(e)?gt:fr)(e,si(t,3))}function wa(e,t){return(Wa(e)?wt:dr)(e,si(t,3))}var ka=Ao((function(e,t,n){Te.call(e,n)?e[n].push(t):or(e,n,[t])})),_a=Gr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ya(e)?r(e.length):[];return fr(e,(function(e){a[++o]=i?yt(t,e,n):Er(e,t,n)})),a})),Oa=Ao((function(e,t,n){or(e,n,t)}));function xa(e,t){return(Wa(e)?St:Lr)(e,si(t,3))}var Sa=Ao((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ja=Gr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&bi(e,t[0],t[1])?t=[]:n>2&&bi(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,vr(t,1),[])})),Pa=At||function(){return it.Date.now()};function Ca(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Jo(e,u,o,o,o,o,t)}function Ea(e,t){var n;if("function"!=typeof t)throw new Pe(i);return e=ms(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Aa=Gr((function(e,t,n){var r=1;if(n.length){var o=tn(n,ai(Aa));r|=l}return Jo(e,r,t,n,o)})),Ma=Gr((function(e,t,n){var r=3;if(n.length){var o=tn(n,ai(Ma));r|=l}return Jo(t,r,e,n,o)}));function Ra(e,t,n){var r,a,s,l,u,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new Pe(i);function m(t){var n=r,i=a;return r=a=o,f=t,l=e.apply(i,n)}function v(e){return f=e,u=Ai(b,t),d?m(e):l}function y(e){var n=e-c;return c===o||n>=t||n<0||p&&e-f>=s}function b(){var e=Pa();if(y(e))return g(e);u=Ai(b,function(e){var n=t-(e-c);return p?bn(n,s-(e-f)):n}(e))}function g(e){return u=o,h&&r?m(e):(r=a=o,l)}function w(){var e=Pa(),n=y(e);if(r=arguments,a=this,c=e,n){if(u===o)return v(c);if(p)return ko(u),u=Ai(b,t),m(c)}return u===o&&(u=Ai(b,t)),l}return t=ys(t)||0,ts(n)&&(d=!!n.leading,s=(p="maxWait"in n)?yn(ys(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),w.cancel=function(){u!==o&&ko(u),f=0,r=c=a=u=o},w.flush=function(){return u===o?l:g(Pa())},w}var Ta=Gr((function(e,t){return ur(e,1,t)})),Da=Gr((function(e,t,n){return ur(e,ys(t)||0,n)}));function Ia(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Pe(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Ia.Cache||Kn),n}function Va(e){if("function"!=typeof e)throw new Pe(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ia.Cache=Kn;var La=go((function(e,t){var n=(t=1==t.length&&Wa(t[0])?St(t[0],Ht(si())):St(vr(t,1),Ht(si()))).length;return Gr((function(r){for(var o=-1,i=bn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return yt(e,this,r)}))})),Na=Gr((function(e,t){var n=tn(t,ai(Na));return Jo(e,l,o,t,n)})),Fa=Gr((function(e,t){var n=tn(t,ai(Fa));return Jo(e,64,o,t,n)})),Ba=ti((function(e,t){return Jo(e,256,o,o,o,t)}));function za(e,t){return e===t||e!=e&&t!=t}var Ua=Wo(Sr),Ha=Wo((function(e,t){return e>=t})),qa=Ar(function(){return arguments}())?Ar:function(e){return ns(e)&&Te.call(e,"callee")&&!et.call(e,"callee")},Wa=r.isArray,Ka=ft?Ht(ft):function(e){return ns(e)&&xr(e)==M};function Ya(e){return null!=e&&es(e.length)&&!Xa(e)}function Ga(e){return ns(e)&&Ya(e)}var $a=pn||yl,Ja=dt?Ht(dt):function(e){return ns(e)&&xr(e)==b};function Za(e){if(!ns(e))return!1;var t=xr(e);return t==g||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Xa(e){if(!ts(e))return!1;var t=xr(e);return t==w||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qa(e){return"number"==typeof e&&e==ms(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=pt?Ht(pt):function(e){return ns(e)&&pi(e)==_};function os(e){return"number"==typeof e||ns(e)&&xr(e)==O}function is(e){if(!ns(e)||xr(e)!=x)return!1;var t=Ke(e);if(null===t)return!0;var n=Te.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Re.call(n)==Le}var as=ht?Ht(ht):function(e){return ns(e)&&xr(e)==j},ss=mt?Ht(mt):function(e){return ns(e)&&pi(e)==P};function ls(e){return"string"==typeof e||!Wa(e)&&ns(e)&&xr(e)==C}function us(e){return"symbol"==typeof e||ns(e)&&xr(e)==E}var cs=vt?Ht(vt):function(e){return ns(e)&&es(e.length)&&!!Xe[xr(e)]},fs=Wo(Vr),ds=Wo((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Ya(e))return ls(e)?an(e):Co(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=pi(e);return(t==_?Qt:t==P?nn:zs)(e)}function hs(e){return e?(e=ys(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ms(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function vs(e){return e?ar(ms(e),0,p):0}function ys(e){if("number"==typeof e)return e;if(us(e))return d;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ut(e);var n=he.test(e);return n||ve.test(e)?nt(e.slice(2),n?2:8):pe.test(e)?d:+e}function bs(e){return Eo(e,Ts(e))}function gs(e){return null==e?"":so(e)}var ws=Mo((function(e,t){if(_i(t)||Ya(t))Eo(t,Rs(t),e);else for(var n in t)Te.call(t,n)&&er(e,n,t[n])})),ks=Mo((function(e,t){Eo(t,Ts(t),e)})),_s=Mo((function(e,t,n,r){Eo(t,Ts(t),e,r)})),Os=Mo((function(e,t,n,r){Eo(t,Rs(t),e,r)})),xs=ti(ir),Ss=Gr((function(e,t){e=xe(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&bi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Ts(a),l=-1,u=s.length;++l<u;){var c=s[l],f=e[c];(f===o||za(f,Ae[c])&&!Te.call(e,c))&&(e[c]=a[c])}return e})),js=Gr((function(e){return e.push(o,Xo),yt(Is,o,e)}));function Ps(e,t,n){var r=null==e?o:_r(e,t);return r===o?n:r}function Cs(e,t){return null!=e&&hi(e,t,Pr)}var Es=Bo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ve.call(t)),e[t]=n}),tl(ol)),As=Bo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ve.call(t)),Te.call(e,t)?e[t].push(n):e[t]=[n]}),si),Ms=Gr(Er);function Rs(e){return Ya(e)?$n(e):Ir(e)}function Ts(e){return Ya(e)?$n(e,!0):function(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in xe(e))t.push(n);return t}(e);var t=_i(e),n=[];
vendor: 19,698 bytes, line 2
2for(var r in e)("constructor"!=r||!t&&Te.call(e,r))&&n.push(r);return n}(e)}var Ds=Mo((function(e,t,n){Br(e,t,n)})),Is=Mo((function(e,t,n,r){Br(e,t,n,r)})),Vs=ti((function(e,t){var n={};if(null==e)return n;var r=!1;t=St(t,(function(t){return t=bo(t,e),r||(r=t.length>1),t})),Eo(e,ri(e),n),r&&(n=sr(n,7,Qo));for(var o=t.length;o--;)uo(n,t[o]);return n})),Ls=ti((function(e,t){return null==e?{}:function(e,t){return Hr(e,t,(function(t,n){return Cs(e,n)}))}(e,t)}));function Ns(e,t){if(null==e)return{};var n=St(ri(e),(function(e){return[e]}));return t=si(t),Hr(e,n,(function(e,n){return t(e,n[0])}))}var Fs=$o(Rs),Bs=$o(Ts);function zs(e){return null==e?[]:qt(e,Rs(e))}var Us=Io((function(e,t,n){return t=t.toLowerCase(),e+(n?Hs(t):t)}));function Hs(e){return Zs(gs(e).toLowerCase())}function qs(e){return(e=gs(e))&&e.replace(be,$t).replace(We,"")}var Ws=Io((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ks=Io((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ys=Do("toLowerCase"),Gs=Io((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),$s=Io((function(e,t,n){return e+(n?" ":"")+Zs(t)})),Js=Io((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Zs=Do("toUpperCase");function Xs(e,t,n){return e=gs(e),(t=n?o:t)===o?function(e){return $e.test(e)}(e)?function(e){return e.match(Ye)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Qs=Gr((function(e,t){try{return yt(e,o,t)}catch(e){return Za(e)?e:new ke(e)}})),el=ti((function(e,t){return gt(t,(function(t){t=Ni(t),or(e,t,Aa(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=No(),rl=No(!0);function ol(e){return e}function il(e){return Dr("function"==typeof e?e:sr(e,1))}var al=Gr((function(e,t){return function(n){return Er(n,e,t)}})),sl=Gr((function(e,t){return function(n){return Er(e,n,t)}}));function ll(e,t,n){var r=Rs(t),o=kr(t,r);null!=n||ts(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=kr(t,Rs(t)));var i=!(ts(n)&&"chain"in n&&!n.chain),a=Xa(e);return gt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=Co(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,jt([this.value()],arguments))})})),e}function ul(){}var cl=Uo(St),fl=Uo(kt),dl=Uo(Et);function pl(e){return gi(e)?Lt(Ni(e)):function(e){return function(t){return _r(t,e)}}(e)}var hl=qo(),ml=qo(!0);function vl(){return[]}function yl(){return!1}var bl,gl=zo((function(e,t){return e+t}),0),wl=Yo("ceil"),kl=zo((function(e,t){return e/t}),1),_l=Yo("floor"),Ol=zo((function(e,t){return e*t}),1),xl=Yo("round"),Sl=zo((function(e,t){return e-t}),0);return Fn.after=function(e,t){if("function"!=typeof t)throw new Pe(i);return e=ms(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=Ca,Fn.assign=ws,Fn.assignIn=ks,Fn.assignInWith=_s,Fn.assignWith=Os,Fn.at=xs,Fn.before=Ea,Fn.bind=Aa,Fn.bindAll=el,Fn.bindKey=Ma,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wa(e)?e:[e]},Fn.chain=pa,Fn.chunk=function(e,t,n){t=(n?bi(e,t,n):t===o)?1:yn(ms(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,l=r(cn(i/t));a<i;)l[s++]=to(e,a,a+=t);return l},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return jt(Wa(n)?Co(n):[n],vr(t,1))},Fn.cond=function(e){var t=null==e?0:e.length,n=si();return e=t?St(e,(function(e){if("function"!=typeof e[1])throw new Pe(i);return[n(e[0]),e[1]]})):[],Gr((function(n){for(var r=-1;++r<t;){var o=e[r];if(yt(o[0],this,n))return yt(o[1],this,n)}}))},Fn.conforms=function(e){return function(e){var t=Rs(e);return function(n){return lr(n,e,t)}}(sr(e,1))},Fn.constant=tl,Fn.countBy=va,Fn.create=function(e,t){var n=Bn(e);return null==t?n:rr(n,t)},Fn.curry=function e(t,n,r){var i=Jo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Fn.curryRight=function e(t,n,r){var i=Jo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Fn.debounce=Ra,Fn.defaults=Ss,Fn.defaultsDeep=js,Fn.defer=Ta,Fn.delay=Da,Fn.difference=zi,Fn.differenceBy=Ui,Fn.differenceWith=Hi,Fn.drop=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=n||t===o?1:ms(t))<0?0:t,r):[]},Fn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,0,(t=r-(t=n||t===o?1:ms(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?fo(e,si(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?fo(e,si(t,3),!0):[]},Fn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&bi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ms(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ms(r))<0&&(r+=i),r=n>r?0:vs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Fn.filter=function(e,t){return(Wa(e)?_t:mr)(e,si(t,3))},Fn.flatMap=function(e,t){return vr(xa(e,t),1)},Fn.flatMapDeep=function(e,t){return vr(xa(e,t),c)},Fn.flatMapDepth=function(e,t,n){return n=n===o?1:ms(n),vr(xa(e,t),n)},Fn.flatten=Ki,Fn.flattenDeep=function(e){return null!=e&&e.length?vr(e,c):[]},Fn.flattenDepth=function(e,t){return null!=e&&e.length?vr(e,t=t===o?1:ms(t)):[]},Fn.flip=function(e){return Jo(e,512)},Fn.flow=nl,Fn.flowRight=rl,Fn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Fn.functions=function(e){return null==e?[]:kr(e,Rs(e))},Fn.functionsIn=function(e){return null==e?[]:kr(e,Ts(e))},Fn.groupBy=ka,Fn.initial=function(e){return null!=e&&e.length?to(e,0,-1):[]},Fn.intersection=Gi,Fn.intersectionBy=$i,Fn.intersectionWith=Ji,Fn.invert=Es,Fn.invertBy=As,Fn.invokeMap=_a,Fn.iteratee=il,Fn.keyBy=Oa,Fn.keys=Rs,Fn.keysIn=Ts,Fn.map=xa,Fn.mapKeys=function(e,t){var n={};return t=si(t,3),gr(e,(function(e,r,o){or(n,t(e,r,o),e)})),n},Fn.mapValues=function(e,t){var n={};return t=si(t,3),gr(e,(function(e,r,o){or(n,r,t(e,r,o))})),n},Fn.matches=function(e){return Nr(sr(e,1))},Fn.matchesProperty=function(e,t){return Fr(e,sr(t,1))},Fn.memoize=Ia,Fn.merge=Ds,Fn.mergeWith=Is,Fn.method=al,Fn.methodOf=sl,Fn.mixin=ll,Fn.negate=Va,Fn.nthArg=function(e){return e=ms(e),Gr((function(t){return zr(t,e)}))},Fn.omit=Vs,Fn.omitBy=function(e,t){return Ns(e,Va(si(t)))},Fn.once=function(e){return Ea(2,e)},Fn.orderBy=function(e,t,n,r){return null==e?[]:(Wa(t)||(t=null==t?[]:[t]),Wa(n=r?o:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Fn.over=cl,Fn.overArgs=La,Fn.overEvery=fl,Fn.overSome=dl,Fn.partial=Na,Fn.partialRight=Fa,Fn.partition=Sa,Fn.pick=Ls,Fn.pickBy=Ns,Fn.property=pl,Fn.propertyOf=function(e){return function(t){return null==e?o:_r(e,t)}},Fn.pull=Xi,Fn.pullAll=Qi,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,si(n,2)):e},Fn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,o,n):e},Fn.pullAt=ea,Fn.range=hl,Fn.rangeRight=ml,Fn.rearg=Ba,Fn.reject=function(e,t){return(Wa(e)?_t:mr)(e,Va(si(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=si(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Wr(e,o),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new Pe(i);return Gr(e,t=t===o?t:ms(t))},Fn.reverse=ta,Fn.sampleSize=function(e,t,n){return t=(n?bi(e,t,n):t===o)?1:ms(t),(Wa(e)?Zn:Jr)(e,t)},Fn.set=function(e,t,n){return null==e?e:Zr(e,t,n)},Fn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Zr(e,t,n,r)},Fn.shuffle=function(e){return(Wa(e)?Xn:eo)(e)},Fn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&bi(e,t,n)?(t=0,n=r):(t=null==t?0:ms(t),n=n===o?r:ms(n)),to(e,t,n)):[]},Fn.sortBy=ja,Fn.sortedUniq=function(e){return e&&e.length?io(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?io(e,si(t,2)):[]},Fn.split=function(e,t,n){return n&&"number"!=typeof n&&bi(e,t,n)&&(t=n=o),(n=n===o?p:n>>>0)?(e=gs(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=so(t))&&Xt(e)?wo(an(e),0,n):e.split(t,n):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new Pe(i);return t=null==t?0:yn(ms(t),0),Gr((function(n){var r=n[t],o=wo(n,0,t);return r&&jt(o,r),yt(e,this,o)}))},Fn.tail=function(e){var t=null==e?0:e.length;return t?to(e,1,t):[]},Fn.take=function(e,t,n){return e&&e.length?to(e,0,(t=n||t===o?1:ms(t))<0?0:t):[]},Fn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=r-(t=n||t===o?1:ms(t)))<0?0:t,r):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?fo(e,si(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?fo(e,si(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Pe(i);return ts(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ra(e,t,{leading:r,maxWait:t,trailing:o})},Fn.thru=ha,Fn.toArray=ps,Fn.toPairs=Fs,Fn.toPairsIn=Bs,Fn.toPath=function(e){return Wa(e)?St(e,Ni):us(e)?[e]:Co(Li(gs(e)))},Fn.toPlainObject=bs,Fn.transform=function(e,t,n){var r=Wa(e),o=r||$a(e)||cs(e);if(t=si(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ts(e)&&Xa(i)?Bn(Ke(e)):{}}return(o?gt:gr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Fn.unary=function(e){return Ca(e,1)},Fn.union=na,Fn.unionBy=ra,Fn.unionWith=oa,Fn.uniq=function(e){return e&&e.length?lo(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?lo(e,si(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?lo(e,o,t):[]},Fn.unset=function(e,t){return null==e||uo(e,t)},Fn.unzip=ia,Fn.unzipWith=aa,Fn.update=function(e,t,n){return null==e?e:co(e,t,yo(n))},Fn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:co(e,t,yo(n),r)},Fn.values=zs,Fn.valuesIn=function(e){return null==e?[]:qt(e,Ts(e))},Fn.without=sa,Fn.words=Xs,Fn.wrap=function(e,t){return Na(yo(t),e)},Fn.xor=la,Fn.xorBy=ua,Fn.xorWith=ca,Fn.zip=fa,Fn.zipObject=function(e,t){return mo(e||[],t||[],er)},Fn.zipObjectDeep=function(e,t){return mo(e||[],t||[],Zr)},Fn.zipWith=da,Fn.entries=Fs,Fn.entriesIn=Bs,Fn.extend=ks,Fn.extendWith=_s,ll(Fn,Fn),Fn.add=gl,Fn.attempt=Qs,Fn.camelCase=Us,Fn.capitalize=Hs,Fn.ceil=wl,Fn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ys(n))==n?n:0),t!==o&&(t=(t=ys(t))==t?t:0),ar(ys(e),t,n)},Fn.clone=function(e){return sr(e,4)},Fn.cloneDeep=function(e){return sr(e,5)},Fn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:o)},Fn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:o)},Fn.conformsTo=function(e,t){return null==t||lr(e,t,Rs(t))},Fn.deburr=qs,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=kl,Fn.endsWith=function(e,t,n){e=gs(e),t=so(t);var r=e.length,i=n=n===o?r:ar(ms(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Fn.eq=za,Fn.escape=function(e){return(e=gs(e))&&G.test(e)?e.replace(K,Jt):e},Fn.escapeRegExp=function(e){return(e=gs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Fn.every=function(e,t,n){var r=Wa(e)?kt:pr;return n&&bi(e,t,n)&&(t=o),r(e,si(t,3))},Fn.find=ya,Fn.findIndex=qi,Fn.findKey=function(e,t){return Mt(e,si(t,3),gr)},Fn.findLast=ba,Fn.findLastIndex=Wi,Fn.findLastKey=function(e,t){return Mt(e,si(t,3),wr)},Fn.floor=_l,Fn.forEach=ga,Fn.forEachRight=wa,Fn.forIn=function(e,t){return null==e?e:yr(e,si(t,3),Ts)},Fn.forInRight=function(e,t){return null==e?e:br(e,si(t,3),Ts)},Fn.forOwn=function(e,t){return e&&gr(e,si(t,3))},Fn.forOwnRight=function(e,t){return e&&wr(e,si(t,3))},Fn.get=Ps,Fn.gt=Ua,Fn.gte=Ha,Fn.has=function(e,t){return null!=e&&hi(e,t,jr)},Fn.hasIn=Cs,Fn.head=Yi,Fn.identity=ol,Fn.includes=function(e,t,n,r){e=Ya(e)?e:zs(e),n=n&&!r?ms(n):0;var o=e.length;return n<0&&(n=yn(o+n,0)),ls(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Tt(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ms(n);return o<0&&(o=yn(r+o,0)),Tt(e,t,o)},Fn.inRange=function(e,t,n){return t=hs(t),n===o?(n=t,t=0):n=hs(n),function(e,t,n){return e>=bn(t,n)&&e<yn(t,n)}(e=ys(e),t,n)},Fn.invoke=Ms,Fn.isArguments=qa,Fn.isArray=Wa,Fn.isArrayBuffer=Ka,Fn.isArrayLike=Ya,Fn.isArrayLikeObject=Ga,Fn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&xr(e)==y},Fn.isBuffer=$a,Fn.isDate=Ja,Fn.isElement=function(e){return ns(e)&&1===e.nodeType&&!is(e)},Fn.isEmpty=function(e){if(null==e)return!0;if(Ya(e)&&(Wa(e)||"string"==typeof e||"function"==typeof e.splice||$a(e)||cs(e)||qa(e)))return!e.length;var t=pi(e);if(t==_||t==P)return!e.size;if(_i(e))return!Ir(e).length;for(var n in e)if(Te.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Mr(e,t)},Fn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Mr(e,t,o,n):!!r},Fn.isError=Za,Fn.isFinite=function(e){return"number"==typeof e&&hn(e)},Fn.isFunction=Xa,Fn.isInteger=Qa,Fn.isLength=es,Fn.isMap=rs,Fn.isMatch=function(e,t){return e===t||Rr(e,t,ui(t))},Fn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Rr(e,t,ui(t),n)},Fn.isNaN=function(e){return os(e)&&e!=+e},Fn.isNative=function(e){if(ki(e))throw new ke("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Tr(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=os,Fn.isObject=ts,Fn.isObjectLike=ns,Fn.isPlainObject=is,Fn.isRegExp=as,Fn.isSafeInteger=function(e){return Qa(e)&&e>=-9007199254740991&&e<=f},Fn.isSet=ss,Fn.isString=ls,Fn.isSymbol=us,Fn.isTypedArray=cs,Fn.isUndefined=function(e){return e===o},Fn.isWeakMap=function(e){return ns(e)&&pi(e)==A},Fn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==xr(e)},Fn.join=function(e,t){return null==e?"":mn.call(e,t)},Fn.kebabCase=Ws,Fn.last=Zi,Fn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ms(n))<0?yn(r+i,0):bn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Rt(e,It,i,!0)},Fn.lowerCase=Ks,Fn.lowerFirst=Ys,Fn.lt=fs,Fn.lte=ds,Fn.max=function(e){return e&&e.length?hr(e,ol,Sr):o},Fn.maxBy=function(e,t){return e&&e.length?hr(e,si(t,2),Sr):o},Fn.mean=function(e){return Vt(e,ol)},Fn.meanBy=function(e,t){return Vt(e,si(t,2))},Fn.min=function(e){return e&&e.length?hr(e,ol,Vr):o},Fn.minBy=function(e,t){return e&&e.length?hr(e,si(t,2),Vr):o},Fn.stubArray=vl,Fn.stubFalse=yl,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=Ol,Fn.nth=function(e,t){return e&&e.length?zr(e,ms(t)):o},Fn.noConflict=function(){return it._===this&&(it._=Ne),this},Fn.noop=ul,Fn.now=Pa,Fn.pad=function(e,t,n){e=gs(e);var r=(t=ms(t))?on(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ho(fn(o),n)+e+Ho(cn(o),n)},Fn.padEnd=function(e,t,n){e=gs(e);var r=(t=ms(t))?on(e):0;return t&&r<t?e+Ho(t-r,n):e},Fn.padStart=function(e,t,n){e=gs(e);var r=(t=ms(t))?on(e):0;return t&&r<t?Ho(t-r,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(gs(e).replace(re,""),t||0)},Fn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&bi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=hs(e),t===o?(t=e,e=0):t=hs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=kn();return bn(e+i*(t-e+tt("1e-"+((i+"").length-1))),t)}return Kr(e,t)},Fn.reduce=function(e,t,n){var r=Wa(e)?Pt:Ft,o=arguments.length<3;return r(e,si(t,4),n,o,fr)},Fn.reduceRight=function(e,t,n){var r=Wa(e)?Ct:Ft,o=arguments.length<3;return r(e,si(t,4),n,o,dr)},Fn.repeat=function(e,t,n){return t=(n?bi(e,t,n):t===o)?1:ms(t),Yr(gs(e),t)},Fn.replace=function(){var e=arguments,t=gs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(e,t,n){var r=-1,i=(t=bo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Ni(t[r])];a===o&&(r=i,a=n),e=Xa(a)?a.call(e):a}return e},Fn.round=xl,Fn.runInContext=e,Fn.sample=function(e){return(Wa(e)?Jn:$r)(e)},Fn.size=function(e){if(null==e)return 0;if(Ya(e))return ls(e)?on(e):e.length;var t=pi(e);return t==_||t==P?e.size:Ir(e).length},Fn.snakeCase=Gs,Fn.some=function(e,t,n){var r=Wa(e)?Et:no;return n&&bi(e,t,n)&&(t=o),r(e,si(t,3))},Fn.sortedIndex=function(e,t){return ro(e,t)},Fn.sortedIndexBy=function(e,t,n){return oo(e,t,si(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ro(e,t);if(r<n&&za(e[r],t))return r}return-1},Fn.sortedLastIndex=function(e,t){return ro(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return oo(e,t,si(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ro(e,t,!0)-1;if(za(e[n],t))return n}return-1},Fn.startCase=$s,Fn.startsWith=function(e,t,n){return e=gs(e),n=null==n?0:ar(ms(n),0,e.length),t=so(t),e.slice(n,n+t.length)==t},Fn.subtract=Sl,Fn.sum=function(e){return e&&e.length?Bt(e,ol):0},Fn.sumBy=function(e,t){return e&&e.length?Bt(e,si(t,2)):0},Fn.template=function(e,t,n){var r=Fn.templateSettings;n&&bi(e,t,n)&&(t=o),e=gs(e),t=_s({},t,r,Zo);var i,a,s=_s({},t.imports,r.imports,Zo),l=Rs(s),u=qt(s,l),c=0,f=t.interpolate||ge,d="__p += '",p=Se((t.escape||ge).source+"|"+f.source+"|"+(f===Z?fe:ge).source+"|"+(t.evaluate||ge).source+"|$","g"),h="//# sourceURL="+(Te.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ze+"]")+"\n";e.replace(p,(function(t,n,r,o,s,l){return r||(r=o),d+=e.slice(c,l).replace(we,Zt),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),d+="';\n";var m=Te.call(t,"variable")&&t.variable;if(m){if(ue.test(m))throw new ke("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(U,""):d).replace(H,"$1").replace(q,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=Qs((function(){return _e(l,h+"return "+d).apply(o,u)}));if(v.source=d,Za(v))throw v;return v},Fn.times=function(e,t){if((e=ms(e))<1||e>f)return[];var n=p,r=bn(e,p);t=si(t),e-=p;for(var o=zt(r,t);++n<e;)t(n);return o},Fn.toFinite=hs,Fn.toInteger=ms,Fn.toLength=vs,Fn.toLower=function(e){return gs(e).toLowerCase()},Fn.toNumber=ys,Fn.toSafeInteger=function(e){return e?ar(ms(e),-9007199254740991,f):0===e?e:0},Fn.toString=gs,Fn.toUpper=function(e){return gs(e).toUpperCase()},Fn.trim=function(e,t,n){if((e=gs(e))&&(n||t===o))return Ut(e);if(!e||!(t=so(t)))return e;var r=an(e),i=an(t);return wo(r,Kt(r,i),Yt(r,i)+1).join("")},Fn.trimEnd=function(e,t,n){if((e=gs(e))&&(n||t===o))return e.slice(0,sn(e)+1);if(!e||!(t=so(t)))return e;var r=an(e);return wo(r,0,Yt(r,an(t))+1).join("")},Fn.trimStart=function(e,t,n){if((e=gs(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=so(t)))return e;var r=an(e);return wo(r,Kt(r,an(t))).join("")},Fn.truncate=function(e,t){var n=30,r="...";if(ts(t)){var i="separator"in t?t.separator:i;n="length"in t?ms(t.length):n,r="omission"in t?so(t.omission):r}var a=(e=gs(e)).length;if(Xt(e)){var s=an(e);a=s.length}if(n>=a)return e;var l=n-on(r);if(l<1)return r;var u=s?wo(s,0,l).join(""):e.slice(0,l);if(i===o)return u+r;if(s&&(l+=u.length-l),as(i)){if(e.slice(l).search(i)){var c,f=u;for(i.global||(i=Se(i.source,gs(de.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var d=c.index;u=u.slice(0,d===o?l:d)}}else if(e.indexOf(so(i),l)!=l){var p=u.lastIndexOf(i);p>-1&&(u=u.slice(0,p))}return u+r},Fn.unescape=function(e){return(e=gs(e))&&Y.test(e)?e.replace(W,ln):e},Fn.uniqueId=function(e){var t=++De;return gs(e)+t},Fn.upperCase=Js,Fn.upperFirst=Zs,Fn.each=ga,Fn.eachRight=wa,Fn.first=Yi,ll(Fn,(bl={},gr(Fn,(function(e,t){Te.call(Fn.prototype,t)||(bl[t]=e)})),bl),{chain:!1}),Fn.VERSION="4.17.21",gt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fn[e].placeholder=Fn})),gt(["drop","take"],(function(e,t){Hn.prototype[e]=function(n){n=n===o?1:yn(ms(n),0
vendor: 5,603 bytes, line 2
2);var r=this.__filtered__&&!t?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=bn(n,r.__takeCount__):r.__views__.push({size:bn(n,p),type:e+(r.__dir__<0?"Right":"")}),r},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),gt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),gt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),gt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(ol)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Gr((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return Er(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(Va(si(e)))},Hn.prototype.slice=function(e,t){e=ms(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Hn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ms(t))<0?n.dropRight(-t):n.take(t-e)),n)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(p)},gr(Hn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Fn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Fn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Hn,u=s[0],c=l||Wa(t),f=function(e){var t=i.apply(Fn,jt([e],s));return r&&d?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,m=l&&!p;if(!a&&c){t=m?t:new Hn(this);var v=e.apply(t,s);return v.__actions__.push({func:ha,args:[f],thisArg:o}),new Un(v,d)}return h&&m?e.apply(this,s):(v=this.thru(f),h?r?v.value()[0]:v.value():v)})})),gt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ce[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Wa(o)?o:[],e)}return this[n]((function(n){return t.apply(Wa(n)?n:[],e)}))}})),gr(Hn.prototype,(function(e,t){var n=Fn[t];if(n){var r=n.name+"";Te.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}})),An[Fo(o,2).name]=[{name:"wrapper",func:o}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=Co(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Co(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Co(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Wa(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=bn(t,e+a);break;case"takeRight":e=yn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,f=c.length,d=0,p=bn(l,this.__takeCount__);if(!n||!r&&o==l&&p==l)return po(e,this.__actions__);var h=[];e:for(;l--&&d<p;){for(var m=-1,v=e[u+=t];++m<f;){var y=c[m],b=y.iteratee,g=y.type,w=b(v);if(2==g)v=w;else if(!w){if(1==g)continue e;break e}}h[d++]=v}return h},Fn.prototype.at=ma,Fn.prototype.chain=function(){return pa(this)},Fn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===o&&(this.__values__=ps(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,n=this;n instanceof zn;){var r=Bi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:o}),new Un(t,this.__chain__)}return this.thru(ta)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return po(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,at&&(Fn.prototype[at]=function(){return this}),Fn}();it._=un,(r=function(){return un}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},88306:function(e,t,n){var r=n(83369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},57557:function(e,t,n){var r=n(29932),o=n(85990),i=n(57406),a=n(71811),s=n(98363),l=n(60696),u=n(99021),c=n(46904),f=u((function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,(function(t){return t=a(t,e),u||(u=t.length>1),t})),s(e,c(e),n),u&&(n=o(n,7,l));for(var f=t.length;f--;)i(n,t[f]);return n}));e.exports=f},45245:function(e,t,n){var r=n(78302),o=n(88016),i=n(40554),a=n(79833),s=Math.ceil,l=Math.floor;e.exports=function(e,t,n){e=a(e);var u=(t=i(t))?o(e):0;
2if(!t||u>=t)return e;var c=(t-u)/2;return r(l(c),n)+e+r(s(c),n)}},59854:function(e,t,n){var r=n(89179)("round");e.exports=r},36968:function(e,t,n){var r=n(10611);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},70479:function(e){e.exports=function(){return[]}},95062:function(e){e.exports=function(){return!1}},18601:function(e,t,n){var r=n(14841);e.exports=function(e){return e?Infinity===(e=r(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},40554:function(e,t,n){var r=n(18601);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},14841:function(e,t,n){var r=n(27561),o=n(13218),i=n(33448),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},79833:function(e,t,n){var r=n(80531);e.exports=function(e){return null==e?"":r(e)}},92742:function(e,t,n){var r=n(80531),o=n(27561),i=n(40180),a=n(5512),s=n(89817),l=n(83140),u=n(79833);e.exports=function(e,t,n){if((e=u(e))&&(n||void 0===t))return o(e);if(!e||!(t=r(t)))return e;var c=l(e),f=l(t),d=s(c,f),p=a(c,f)+1;return i(c,d,p).join("")}},85177:function(e,t,n){var r,o,i;!function(a,s){"use strict";e.exports?e.exports=s(n(30381)):(o=[n(30381)],void 0===(i="function"==typeof(r=s)?r.apply(t,o):r)||(e.exports=i))}(0,(function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,n={},r={},o={},i={},a={};e&&"string"==typeof e.version||C("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var s=e.version.split("."),l=+s[0],u=+s[1];function c(e){return e>96?e-87:e>64?e-29:e-48}function f(e){var t=0,n=e.split("."),r=n[0],o=n[1]||"",i=1,a=0,s=1;for(45===e.charCodeAt(0)&&(t=1,s=-1);t<r.length;t++)a=60*a+c(r.charCodeAt(t));for(t=0;t<o.length;t++)i/=60,a+=c(o.charCodeAt(t))*i;return a*s}function d(e){for(var t=0;t<e.length;t++)e[t]=f(e[t])}function p(e,t){var n,r=[];for(n=0;n<t.length;n++)r[n]=e[t[n]];return r}function h(e){var t=e.split("|"),n=t[2].split(" "),r=t[3].split(""),o=t[4].split(" ");return d(n),d(r),d(o),function(e,t){for(var n=0;n<t;n++)e[n]=Math.round((e[n-1]||0)+6e4*e[n]);e[t-1]=1/0}(o,r.length),{name:t[0],abbrs:p(t[1].split(" "),r),offsets:p(n,r),untils:o,population:0|t[5]}}function m(e){e&&this._set(h(e))}function v(e,t){this.name=e,this.zones=t}function y(e){var t=e.toTimeString(),n=t.match(/\([a-z ]+\)/i);"GMT"===(n=n&&n[0]?(n=n[0].match(/[A-Z]/g))?n.join(""):void 0:(n=t.match(/[A-Z]{3,5}/g))?n[0]:void 0)&&(n=void 0),this.at=+e,this.abbr=n,this.offset=e.getTimezoneOffset()}function b(e){this.zone=e,this.offsetScore=0,this.abbrScore=0}function g(e,t){for(var n,r;r=6e4*((t.at-e.at)/12e4|0);)(n=new y(new Date(e.at+r))).offset===e.offset?e=n:t=n;return e}function w(e,t){return e.offsetScore!==t.offsetScore?e.offsetScore-t.offsetScore:e.abbrScore!==t.abbrScore?e.abbrScore-t.abbrScore:e.zone.population!==t.zone.population?t.zone.population-e.zone.population:t.zone.name.localeCompare(e.zone.name)}function k(e,t){var n,r;for(d(t),n=0;n<t.length;n++)r=t[n],a[r]=a[r]||{},a[r][e]=!0}function _(e){var t,n,r,o=e.length,s={},l=[];for(t=0;t<o;t++)for(n in r=a[e[t].offset]||{})r.hasOwnProperty(n)&&(s[n]=!0);for(t in s)s.hasOwnProperty(t)&&l.push(i[t]);return l}function O(e){return(e||"").toLowerCase().replace(/\//g,"_")}function x(e){var t,r,o,a;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)a=O(r=(o=e[t].split("|"))[0]),n[a]=e[t],i[a]=r,k(a,o[2].split(" "))}function S(e,t){e=O(e);var o,a=n[e];return a instanceof m?a:"string"==typeof a?(a=new m(a),n[e]=a,a):r[e]&&t!==S&&(o=S(r[e],S))?((a=n[e]=new m)._set(o),a.name=i[e],a):null}function j(e){var t,n,o,a;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)o=O((n=e[t].split("|"))[0]),a=O(n[1]),r[o]=a,i[o]=n[0],r[a]=o,i[a]=n[1]}function P(e){var t="X"===e._f||"x"===e._f;return!(!e._a||void 0!==e._tzm||t)}function C(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}function E(t){var n=Array.prototype.slice.call(arguments,0,-1),r=arguments[arguments.length-1],o=S(r),i=e.utc.apply(null,n);return o&&!e.isMoment(t)&&P(i)&&i.add(o.parse(i),"minutes"),i.tz(r),i}(l<2||2===l&&u<6)&&C("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),m.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 t,n=+e,r=this.untils;for(t=0;t<r.length;t++)if(n<r[t])return t},countries:function(){var e=this.name;return Object.keys(o).filter((function(t){return-1!==o[t].zones.indexOf(e)}))},parse:function(e){var t,n,r,o,i=+e,a=this.offsets,s=this.untils,l=s.length-1;for(o=0;o<l;o++)if(t=a[o],n=a[o+1],r=a[o?o-1:o],t<n&&E.moveAmbiguousForward?t=n:t>r&&E.moveInvalidForward&&(t=r),i<s[o]-6e4*t)return a[o];return a[l]},abbr:function(e){return this.abbrs[this._index(e)]}
vendor: 4,126 bytes, line 2
2,offset:function(e){return C("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(e)]},utcOffset:function(e){return this.offsets[this._index(e)]}},b.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++},E.version="0.5.34",E.dataVersion="",E._zones=n,E._links=r,E._names=i,E._countries=o,E.add=x,E.link=j,E.load=function(e){x(e.zones),j(e.links),function(e){var t,n,r,i;if(e&&e.length)for(t=0;t<e.length;t++)n=(i=e[t].split("|"))[0].toUpperCase(),r=i[1].split(" "),o[n]=new v(n,r)}(e.countries),E.dataVersion=e.version},E.zone=S,E.zoneExists=function e(t){return e.didShowError||(e.didShowError=!0,C("moment.tz.zoneExists('"+t+"') has been deprecated in favor of !moment.tz.zone('"+t+"')")),!!S(t)},E.guess=function(e){return t&&!e||(t=function(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e&&e.length>3){var t=i[O(e)];if(t)return t;C("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}var n,r,o,a=function(){var e,t,n,r=(new Date).getFullYear()-2,o=new y(new Date(r,0,1)),i=[o];for(n=1;n<48;n++)(t=new y(new Date(r,n,1))).offset!==o.offset&&(e=g(o,t),i.push(e),i.push(new y(new Date(e.at+6e4)))),o=t;for(n=0;n<4;n++)i.push(new y(new Date(r+n,0,1))),i.push(new y(new Date(r+n,6,1)));return i}(),s=a.length,l=_(a),u=[];for(r=0;r<l.length;r++){for(n=new b(S(l[r]),s),o=0;o<s;o++)n.scoreOffsetAt(a[o]);u.push(n)}return u.sort(w),u.length>0?u[0].zone.name:void 0}()),t},E.names=function(){var e,t=[];for(e in i)i.hasOwnProperty(e)&&(n[e]||n[r[e]])&&i[e]&&t.push(i[e]);return t.sort()},E.Zone=m,E.unpack=h,E.unpackBase60=f,E.needsOffset=P,E.moveInvalidForward=!0,E.moveAmbiguousForward=!1,E.countries=function(){return Object.keys(o)},E.zonesForCountry=function(e,t){var n;if(n=(n=e).toUpperCase(),!(e=o[n]||null))return null;var r=e.zones.sort();return t?r.map((function(e){return{name:e,offset:S(e).utcOffset(new Date)}})):r};var A,M=e.fn;function R(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function T(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=E,e.defaultZone=null,e.updateOffset=function(t,n){var r,o=e.defaultZone;if(void 0===t._z&&(o&&P(t)&&!t._isUTC&&(t._d=e.utc(t._a)._d,t.utc().add(o.parse(t),"minutes")),t._z=o),t._z)if(r=t._z.utcOffset(t),Math.abs(r)<16&&(r/=60),void 0!==t.utcOffset){var i=t._z;t.utcOffset(-r,n),t._z=i}else t.zone(r,n)},M.tz=function(t,n){if(t){if("string"!=typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=S(t),this._z?e.updateOffset(this,n):C("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},M.zoneName=R(M.zoneName),M.zoneAbbr=R(M.zoneAbbr),M.utc=T(M.utc),M.local=T(M.local),M.utcOffset=(A=M.utcOffset,function(){return arguments.length>0&&(this._z=null),A.apply(this,arguments)}),e.tz.setDefault=function(t){return(l<2||2===l&&u<9)&&C("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?S(t):null,e};var D=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(D)?(D.push("_z"),D.push("_a")):D&&(D._z=null),e}))},30381:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function l(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}
vendor: 5,731 bytes, line 2
2function d(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return xt(e,t,n,r,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=h(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function v(e){var t=p(NaN);return null!=e?d(h(t),e):h(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var y=r.momentProperties=[],b=!1;function g(e,t){var n,r,o;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=h(t)),l(t._locale)||(e._locale=t._locale),y.length>0)for(n=0;n<y.length;n++)l(o=t[r=y[n]])||(e[r]=o);return e}function w(e){g(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,r.updateOffset(this),b=!1)}function k(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function _(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function O(e,t){var n=!0;return d((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var o,i,s,l=[];for(i=0;i<arguments.length;i++){if(o="","object"==typeof arguments[i]){for(s in o+="\n["+i+"] ",arguments[0])a(arguments[0],s)&&(o+=s+": "+arguments[0][s]+", ");o=o.slice(0,-2)}else o=arguments[i];l.push(o)}_(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var x,S={};function j(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),S[e]||(_(t),S[e]=!0)}function P(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function C(e,t){var n,r=d({},e);for(n in t)a(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)a(e,n)&&!a(t,n)&&i(e[n])&&(r[n]=d({},r[n]));return r}function E(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,x=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};function A(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var M=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,R=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,T={},D={};function I(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(D[e]=o),t&&(D[t[0]]=function(){return A(o.apply(this,arguments),t[1],t[2])}),n&&(D[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function V(e,t){return e.isValid()?(t=L(t,e.localeData()),T[t]=T[t]||function(e){var t,n,r,o=e.match(M);for(t=0,n=o.length;t<n;t++)D[o[t]]?o[t]=D[o[t]]:o[t]=(r=o[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,i="";for(r=0;r<n;r++)i+=P(o[r])?o[r].call(t,e):o[r];return i}}(t),T[t](e)):e.localeData().invalidDate()}function L(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(R.lastIndex=0;n>=0&&R.test(e);)e=e.replace(R,r),R.lastIndex=0,n-=1;return e}var N={};function F(e,t){var n=e.toLowerCase();N[n]=N[n+"s"]=N[t]=e}function B(e){return"string"==typeof e?N[e]||N[e.toLowerCase()]:void 0}function z(e){var t,n,r={};for(n in e)a(e,n)&&(t=B(n))&&(r[t]=e[n]);return r}var U={};function H(e,t){U[e]=t}function q(e){return e%4==0&&e%100!=0||e%400==0}function W(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function K(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=W(t)),n}function Y(e,t){return function(n){return null!=n?($(this,e,n),r.updateOffset(this,t),this):G(this,e)}}function G(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function $(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&q(e.year())&&1===e.month()&&29===e.date()?(n=K(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ke(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var J,Z=/\d/,X=/\d\d/,Q=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,re=/\d\d\d\d?/,oe=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,ae=/\d{1,4}/,se=/[+-]?\d{1,6}/,le=/\d+/,ue=/[+-]?\d+/,ce=/Z|[+-]\d\d:?\d\d/gi,fe=/Z|[+-]\d\d(?::?\d\d)?/gi,de=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function pe(e,t,n){J[e]=P(t)?t:function(e,r){return e&&n?n:t}}function he(e,t){return a(J,e)?J[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}J={};var ve={};function ye(e,t){var n,r=t;
vendor: 4,361 bytes, line 2
2for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=K(e)}),n=0;n<e.length;n++)ve[e[n]]=r}function be(e,t){ye(e,(function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)}))}function ge(e,t,n){null!=t&&a(ve,e)&&ve[e](t,n._a,n,e)}var we;function ke(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?q(e)?29:28:31-r%7%2}we=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},I("M",["MM",2],"Mo",(function(){return this.month()+1})),I("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),I("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),F("month","M"),H("month",8),pe("M",ne),pe("MM",ne,X),pe("MMM",(function(e,t){return t.monthsShortRegex(e)})),pe("MMMM",(function(e,t){return t.monthsRegex(e)})),ye(["M","MM"],(function(e,t){t[1]=K(e)-1})),ye(["MMM","MMMM"],(function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[1]=o:h(n).invalidMonth=e}));var _e="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Oe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),xe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Se=de,je=de;function Pe(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=we.call(this._shortMonthsParse,a))?o:null:-1!==(o=we.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=we.call(this._shortMonthsParse,a))||-1!==(o=we.call(this._longMonthsParse,a))?o:null:-1!==(o=we.call(this._longMonthsParse,a))||-1!==(o=we.call(this._shortMonthsParse,a))?o:null}function Ce(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=K(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),ke(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ee(e){return null!=e?(Ce(this,e),r.updateOffset(this,!0),this):G(this,"Month")}function Ae(){function e(e,t){return t.length-e.length}var t,n,r=[],o=[],i=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),o.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),o.sort(e),i.sort(e),t=0;t<12;t++)r[t]=me(r[t]),o[t]=me(o[t]);for(t=0;t<24;t++)i[t]=me(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Me(e){return q(e)?366:365}I("Y",0,0,(function(){var e=this.year();return e<=9999?A(e,4):"+"+e})),I(0,["YY",2],0,(function(){return this.year()%100})),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),F("year","y"),H("year",1),pe("Y",ue),pe("YY",ne,X),pe("YYYY",ae,ee),pe("YYYYY",se,te),pe("YYYYYY",se,te),ye(["YYYYY","YYYYYY"],0),ye("YYYY",(function(e,t){t[0]=2===e.length?r.parseTwoDigitYear(e):K(e)})),ye("YY",(function(e,t){t[0]=r.parseTwoDigitYear(e)})),ye("Y",(function(e,t){t[0]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return K(e)+(K(e)>68?1900:2e3)};var Re=Y("FullYear",!0);function Te(e,t,n,r,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),s}function De(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ie(e,t,n){var r=7+t-n;return-(7+De(e,0,r).getUTCDay()-t)%7+r-1}function Ve(e,t,n,r,o){var i,a,s=1+7*(t-1)+(7+n-r)%7+Ie(e,r,o);return s<=0?a=Me(i=e-1)+s:s>Me(e)?(i=e+1,a=s-Me(e)):(i=e,a=s),{year:i,dayOfYear:a}}function Le(e,t,n){var r,o,i=Ie(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?r=a+Ne(o=e.year()-1,t,n):a>Ne(e.year(),t,n)?(r=a-Ne(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Ne(e,t,n){var r=Ie(e,t,n),o=Ie(e+1,t,n);return(Me(e)-r+o)/7}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),H("week",5),H("isoWeek",5),pe("w",ne),pe("ww",
vendor: 4,906 bytes, line 2
2ne,X),pe("W",ne),pe("WW",ne,X),be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=K(e)}));function Fe(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("d",0,"do","day"),I("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),I("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),I("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),pe("d",ne),pe("e",ne),pe("E",ne),pe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),pe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),pe("dddd",(function(e,t){return t.weekdaysRegex(e)})),be(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:h(n).invalidWeekday=e})),be(["d","e","E"],(function(e,t,n,r){t[r]=K(e)}));var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ue="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),He=de,qe=de,We=de;function Ke(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=we.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=we.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=we.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=we.call(this._weekdaysParse,a))||-1!==(o=we.call(this._shortWeekdaysParse,a))||-1!==(o=we.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=we.call(this._shortWeekdaysParse,a))||-1!==(o=we.call(this._weekdaysParse,a))||-1!==(o=we.call(this._minWeekdaysParse,a))?o:null:-1!==(o=we.call(this._minWeekdaysParse,a))||-1!==(o=we.call(this._weekdaysParse,a))||-1!==(o=we.call(this._shortWeekdaysParse,a))?o:null}function Ye(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=me(this.weekdaysMin(n,"")),o=me(this.weekdaysShort(n,"")),i=me(this.weekdays(n,"")),a.push(r),s.push(o),l.push(i),u.push(r),u.push(o),u.push(i);a.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ge(){return this.hours()%12||12}function $e(e,t){I(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Je(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Ge),I("k",["kk",2],0,(function(){return this.hours()||24})),I("hmm",0,0,(function(){return""+Ge.apply(this)+A(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+Ge.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+A(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)})),$e("a",!0),$e("A",!1),F("hour","h"),H("hour",13),pe("a",Je),pe("A",Je),pe("H",ne),pe("h",ne),pe("k",ne),pe("HH",ne,X),pe("hh",ne,X),pe("kk",ne,X),pe("hmm",re),pe("hmmss",oe),pe("Hmm",re),pe("Hmmss",oe),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,n){var r=K(e);t[3]=24===r?0:r})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[3]=K(e),h(n).bigHour=!0})),ye("hmm",(function(e,t,n){var r=e.length-2;t[3]=K(e.substr(0,r)),t[4]=K(e.substr(r)),h(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=K(e.substr(0,r)),t[4]=K(e.substr(r,2)),t[5]=K(e.substr(o)),h(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var r=e.length-2;t[3]=K(e.substr(0,r)),t[4]=K(e.substr(r))})),ye("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=K(e.substr(0,r)),t[4]=K(e.substr(r,2)),t[5]=K(e.substr(o))}));var Ze=Y("Hours",!0);var Xe,Qe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:_e,monthsShort:Oe,week:{dow:0,doy:6}
vendor: 7,518 bytes, line 2
2,weekdays:Be,weekdaysMin:Ue,weekdaysShort:ze,meridiemParse:/[ap]\.?m?\.?/i},et={},tt={};function nt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function rt(e){return e?e.toLowerCase().replace("_","-"):e}function ot(t){var n=null;if(void 0===et[t]&&e&&e.exports)try{n=Xe._abbr,Object(function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}()),it(n)}catch(e){et[t]=null}return et[t]}function it(e,t){var n;return e&&((n=l(t)?st(e):at(e,t))?Xe=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Xe._abbr}function at(e,t){if(null!==t){var n,r=Qe;if(t.abbr=e,null!=et[e])j("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=et[e]._config;else if(null!=t.parentLocale)if(null!=et[t.parentLocale])r=et[t.parentLocale]._config;else{if(null==(n=ot(t.parentLocale)))return tt[t.parentLocale]||(tt[t.parentLocale]=[]),tt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return et[e]=new E(C(r,t)),tt[e]&&tt[e].forEach((function(e){at(e.name,e.config)})),it(e),et[e]}return delete et[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Xe;if(!o(e)){if(t=ot(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i<e.length;){for(t=(o=rt(e[i]).split("-")).length,n=(n=rt(e[i+1]))?n.split("-"):null;t>0;){if(r=ot(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&nt(o,n)>=t-1)break;t--}i++}return Xe}(e)}function lt(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>ke(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ct=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,dt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],pt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ht=/^\/?Date\((-?\d+)/i,mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,vt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yt(e){var t,n,r,o,i,a,s=e._i,l=ut.exec(s)||ct.exec(s);if(l){for(h(e).iso=!0,t=0,n=dt.length;t<n;t++)if(dt[t][1].exec(l[1])){o=dt[t][0],r=!1!==dt[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=pt.length;t<n;t++)if(pt[t][1].exec(l[3])){i=(l[2]||" ")+pt[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(l[4]){if(!ft.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=o+(i||"")+(a||""),_t(e)}else e._isValid=!1}function bt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function gt(e){var t,n,r,o,i,a,s,l,u=mt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(n=u[4],r=u[3],o=u[2],i=u[5],a=u[6],s=u[7],l=[bt(n),Oe.indexOf(r),parseInt(o,10),parseInt(i,10),parseInt(a,10)],s&&l.push(parseInt(s,10)),t=l,!function(e,t,n){return!e||ze.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(n).weekdayMismatch=!0,n._isValid=!1,!1)}(u[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return vt[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}(u[8],u[9],u[10]),e._d=De.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function wt(e,t,n){return null!=e?e:null!=t?t:n}function kt(e){var t,n,o,i,a,s=[];if(!e._d){for(o=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,o,i,a,s,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,a=4,n=wt(t.GG,e._a[0],Le(St(),1,4).year),r=wt(t.W,1),((o=wt(t.E,1))<1||o>7)&&(l=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=Le(St(),i,a),n=wt(t.gg,e._a[0],u.year),r=wt(t.w,u.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i),r<1||r>Ne(n,i,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=Ve(n,r,o,i,a),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=wt(e._a[0],o[0]),(e._dayOfYear>Me(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=De(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=o[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?De:Te).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}function _t(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],h(e).empty=!0;var t,n,o,i,a,s,l=""+e._i,u=l.length,c=0;for(o=L(e._f,e._locale).match(M)||[],t=0;t<o.length;t++)i=o[t],(n=(l.match(he(i,e))||[])[0])&&((a=l.substr(0,l.indexOf(n))).length>0&&h(e).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),c+=n.length),D[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),ge(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=u-c,l.length>0&&h(e).unusedInput.push(l),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=h(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),kt(e),lt(e)}else gt(e);else yt(e)}function Ot(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),k(t)?new w(lt(t)):(c(t)?e._d=t:o(n)?function(e){var t,n,r,o,i,a,s=!1;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)i=0,a=!1,t=g({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],_t(t),m(t)&&(a=!0),i+=h(t).charsLeftOver,i+=10*h(t).unusedTokens.length,h(t).score=i,s?i<r&&(r=i,n=t):(null==r||i<r||a)&&(r=i,n=t,a&&(s=!0));d(e,n||t)}(e):n?_t(e):function(e){var t=e._i;l(t)?e._d=new Date(r.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=ht.exec(e._i);
2null===t?(yt(e),!1===e._isValid&&(delete e._isValid,gt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):o(t)?(e._a=f(t.slice(0),(function(e){return parseInt(e,10)})),kt(e)):i(t)?function(e){if(!e._d){var t=z(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),kt(e)}}(e):u(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function xt(e,t,n,r,a){var l,u={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&s(e)||o(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=n,u._i=e,u._f=t,u._strict=r,(l=new w(lt(Ot(u))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function St(e,t,n,r){return xt(e,t,n,r,!1)}r.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var jt=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),Pt=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}));function Ct(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return St();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Et=["year","quarter","month","week","day","hour","minute","second","millisecond"];function At(e){var t=z(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,u=t.minute||0,c=t.second||0,f=t.millisecond||0;this._isValid=function(e){var t,n,r=!1;for(t in e)if(a(e,t)&&(-1===we.call(Et,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<Et.length;++n)if(e[Et[n]]){if(r)return!1;parseFloat(e[Et[n]])!==K(e[Et[n]])&&(r=!0)}return!0}(t),this._milliseconds=+f+1e3*c+6e4*u+1e3*l*60*60,this._days=+s+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=st(),this._bubble()}function Mt(e){return e instanceof At}function Rt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Tt(e,t){I(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+A(~~(e/60),2)+t+A(~~e%60,2)}))}Tt("Z",":"),Tt("ZZ",""),pe("Z",fe),pe("ZZ",fe),ye(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=It(fe,e)}));var Dt=/([\+\-]|\d\d)/gi;function It(e,t){var n,r,o=(t||"").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(Dt)||["-",0,0])[1]+K(n[2]))?0:"+"===n[0]?r:-r}function Vt(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(k(e)||c(e)?e.valueOf():St(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),r.updateOffset(n,!1),n):St(e).local()}function Lt(e){return-Math.round(e._d.getTimezoneOffset())}function Nt(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Ft=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function zt(e,t){var n,r,o,i,s,l,c=e,f=null;return Mt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(f=Ft.exec(e))?(n="-"===f[1]?-1:1,c={y:0,d:K(f[2])*n,h:K(f[3])*n,m:K(f[4])*n,s:K(f[5])*n,ms:K(Rt(1e3*f[6]))*n}):(f=Bt.exec(e))?(n="-"===f[1]?-1:1,c={y:Ut(f[2],n),M:Ut(f[3],n),w:Ut(f[4],n),d:Ut(f[5],n),h:Ut(f[6],n),m:Ut(f[7],n),s:Ut(f[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(i=St(c.from),s=St(c.to),o=i.isValid()&&s.isValid()?(s=Vt(s,i),i.isBefore(s)?l=Ht(i,s):((l=Ht(s,i)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(c={}).ms=o.milliseconds,c.M=o.months),r=new At(c),Mt(e)&&a(e,"_locale")&&(r._locale=e._locale),Mt(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function Ut(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ht(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function qt(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(j(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Wt(this,zt(n,r),e),this}}function Wt(e,t,n,o){var i=t._milliseconds,a=Rt(t._days),s=Rt(t._months);e.isValid()&&(o=null==o||o,s&&Ce(e,G(e,"Month")+s*n),a&&$(e,"Date",G(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),o&&r.updateOffset(e,a||s))}zt.fn=At.prototype,zt.invalid=function(){return zt(NaN)};var Kt=qt(1,"add"),Yt=qt(-1,"subtract");function Gt(e){return"string"==typeof e||e instanceof String}function $t(e){return k(e)||c(e)||Gt(e)||u(e)||function(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&Gt(e)})).length),t&&n}(e)||function(e){var t,n,r=i(e)&&!s(e),o=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<l.length;t+=1)n=l[t],o=o||a(e,n);return r&&o}(e)||null==e}function Jt(e){var t,n=i(e)&&!s(e),r=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)r=r||a(e,o[t]);return n&&r}function Zt(e,t){if(e.date()<t.date())return-Zt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Xt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=st(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Qt=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function en(){return this._locale}var tn=1e3,nn=6e4,rn=36e5,on=126227808e5;function an(e,t){return(e%t+t)%t}function sn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-on:new Date(e,t,n).valueOf()}
2function ln(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-on:Date.UTC(e,t,n)}function un(e,t){return t.erasAbbrRegex(e)}function cn(){var e,t,n=[],r=[],o=[],i=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(me(a[e].name)),n.push(me(a[e].abbr)),o.push(me(a[e].narrow)),i.push(me(a[e].name)),i.push(me(a[e].abbr)),i.push(me(a[e].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function fn(e,t){I(0,[e,e.length],0,t)}function dn(e,t,n,r,o){var i;return null==e?Le(this,r,o).year:(t>(i=Ne(e,r,o))&&(t=i),pn.call(this,e,t,n,r,o))}function pn(e,t,n,r,o){var i=Ve(e,t,n,r,o),a=De(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),pe("N",un),pe("NN",un),pe("NNN",un),pe("NNNN",(function(e,t){return t.erasNameRegex(e)})),pe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?h(n).era=o:h(n).invalidEra=e})),pe("y",le),pe("yy",le),pe("yyy",le),pe("yyyy",le),pe("yo",(function(e,t){return t._eraYearOrdinalRegex||le})),ye(["y","yy","yyy","yyyy"],0),ye(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,o):t[0]=parseInt(e,10)})),I(0,["gg",2],0,(function(){return this.weekYear()%100})),I(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),fn("gggg","weekYear"),fn("ggggg","weekYear"),fn("GGGG","isoWeekYear"),fn("GGGGG","isoWeekYear"),F("weekYear","gg"),F("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),pe("G",ue),pe("g",ue),pe("GG",ne,X),pe("gg",ne,X),pe("GGGG",ae,ee),pe("gggg",ae,ee),pe("GGGGG",se,te),pe("ggggg",se,te),be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=K(e)})),be(["gg","GG"],(function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)})),I("Q",0,"Qo","quarter"),F("quarter","Q"),H("quarter",7),pe("Q",Z),ye("Q",(function(e,t){t[1]=3*(K(e)-1)})),I("D",["DD",2],"Do","date"),F("date","D"),H("date",9),pe("D",ne),pe("DD",ne,X),pe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=K(e.match(ne)[0])}));var hn=Y("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),F("dayOfYear","DDD"),H("dayOfYear",4),pe("DDD",ie),pe("DDDD",Q),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=K(e)})),I("m",["mm",2],0,"minute"),F("minute","m"),H("minute",14),pe("m",ne),pe("mm",ne,X),ye(["m","mm"],4);var mn=Y("Minutes",!1);I("s",["ss",2],0,"second"),F("second","s"),H("second",15),pe("s",ne),pe("ss",ne,X),ye(["s","ss"],5);var vn,yn,bn=Y("Seconds",!1);for(I("S",0,0,(function(){return~~(this.millisecond()/100)})),I(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),I(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),I(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),I(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),I(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),I(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),F("millisecond","ms"),H("millisecond",16),pe("S",ie,Z),pe("SS",ie,X),pe("SSS",ie,Q),vn="SSSS";vn.length<=9;vn+="S")pe(vn,le);function gn(e,t){t[6]=K(1e3*("0."+e))}for(vn="S";vn.length<=9;vn+="S")ye(vn,gn);yn=Y("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var wn=w.prototype;function kn(e){return e}wn.add=Kt,wn.calendar=function(e,t){1===arguments.length&&(arguments[0]?$t(arguments[0])?(e=arguments[0],t=void 0):Jt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||St(),o=Vt(n,this).startOf("day"),i=r.calendarFormat(this,o)||"sameElse",a=t&&(P(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,St(n)))},wn.clone=function(){return new w(this)},wn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Vt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=B(t)){case"year":i=Zt(this,r)/12;break;case"month":i=Zt(this,r);break;case"quarter":i=Zt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:W(i)},wn.endOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ln:sn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;
vendor: 4,225 bytes, line 2
2case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=rn-an(t+(this._isUTC?0:this.utcOffset()*nn),rn)-1;break;case"minute":t=this._d.valueOf(),t+=nn-an(t,nn)-1;break;case"second":t=this._d.valueOf(),t+=tn-an(t,tn)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},wn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)},wn.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||St(e).isValid())?zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},wn.fromNow=function(e){return this.from(St(),e)},wn.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||St(e).isValid())?zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},wn.toNow=function(e){return this.to(St(),e)},wn.get=function(e){return P(this[e=B(e)])?this[e]():this},wn.invalidAt=function(){return h(this).overflow},wn.isAfter=function(e,t){var n=k(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},wn.isBefore=function(e,t){var n=k(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},wn.isBetween=function(e,t,n,r){var o=k(e)?e:St(e),i=k(t)?t:St(t);return!!(this.isValid()&&o.isValid()&&i.isValid())&&("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n))},wn.isSame=function(e,t){var n,r=k(e)?e:St(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},wn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},wn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},wn.isValid=function(){return m(this)},wn.lang=Qt,wn.locale=Xt,wn.localeData=en,wn.max=Pt,wn.min=jt,wn.parsingFlags=function(){return d({},h(this))},wn.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:U[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=z(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(P(this[e=B(e)]))return this[e](t);return this},wn.startOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ln:sn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=an(t+(this._isUTC?0:this.utcOffset()*nn),rn);break;case"minute":t=this._d.valueOf(),t-=an(t,nn);break;case"second":t=this._d.valueOf(),t-=an(t,tn)}return this._d.setTime(t),r.updateOffset(this,!0),this},wn.subtract=Yt,wn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},wn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},wn.toDate=function(){return new Date(this.valueOf())},wn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?V(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
2,wn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(wn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),wn.toJSON=function(){return this.isValid()?this.toISOString():null},wn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},wn.unix=function(){return Math.floor(this.valueOf()/1e3)},wn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},wn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},wn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},wn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},wn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},wn.eraYear=function(){var e,t,n,o,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,o=this.clone().startOf("day").valueOf(),i[e].since<=o&&o<=i[e].until||i[e].until<=o&&o<=i[e].since)return(this.year()-r(i[e].since).year())*n+i[e].offset;return this.year()},wn.year=Re,wn.isLeapYear=function(){return q(this.year())},wn.weekYear=function(e){return dn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},wn.isoWeekYear=function(e){return dn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},wn.quarter=wn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},wn.month=Ee,wn.daysInMonth=function(){return ke(this.year(),this.month())},wn.week=wn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},wn.isoWeek=wn.isoWeeks=function(e){var t=Le(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},wn.weeksInYear=function(){var e=this.localeData()._week;return Ne(this.year(),e.dow,e.doy)},wn.weeksInWeekYear=function(){var e=this.localeData()._week;return Ne(this.weekYear(),e.dow,e.doy)},wn.isoWeeksInYear=function(){return Ne(this.year(),1,4)},wn.isoWeeksInISOWeekYear=function(){return Ne(this.isoWeekYear(),1,4)},wn.date=hn,wn.day=wn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},wn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},wn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},wn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},wn.hour=wn.hours=Ze,wn.minute=wn.minutes=mn,wn.second=wn.seconds=bn,wn.millisecond=wn.milliseconds=yn,wn.utcOffset=function(e,t,n){var o,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=It(fe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=Lt(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),i!==e&&(!t||this._changeInProgress?Wt(this,zt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Lt(this)},wn.utc=function(e){return this.utcOffset(0,e)},wn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Lt(this),"m")),this},wn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=It(ce,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},wn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?St(e).utcOffset():0,(this.utcOffset()-e)%60==0)},wn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},wn.isLocal=function(){return!!this.isValid()&&!this._isUTC},wn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},wn.isUtc=Nt,wn.isUTC=Nt,wn.zoneAbbr=function(){return this._isUTC?"UTC":""},wn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},wn.dates=O("dates accessor is deprecated. Use date instead.",hn),wn.months=O
vendor: 10,731 bytes, line 2
2("months accessor is deprecated. Use month instead",Ee),wn.years=O("years accessor is deprecated. Use year instead",Re),wn.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),wn.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return g(t,this),(t=Ot(t))._a?(e=t._isUTC?p(t._a):St(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&K(e[r])!==K(t[r]))&&a++;return a+i}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var _n=E.prototype;function On(e,t,n,r){var o=st(),i=p().set(r,t);return o[n](i,e)}function xn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return On(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=On(e,r,n,"month");return o}function Sn(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var o,i=st(),a=e?i._week.dow:0,s=[];if(null!=n)return On(t,(n+a)%7,r,"day");for(o=0;o<7;o++)s[o]=On(t,(o+a)%7,r,"day");return s}_n.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return P(r)?r.call(t,n):r},_n.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(M).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},_n.invalidDate=function(){return this._invalidDate},_n.ordinal=function(e){return this._ordinal.replace("%d",e)},_n.preparse=kn,_n.postformat=kn,_n.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return P(o)?o(e,t,n,r):o.replace(/%d/i,e)},_n.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return P(n)?n(t):n.replace(/%s/i,t)},_n.set=function(e){var t,n;for(n in e)a(e,n)&&(P(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},_n.eras=function(e,t){var n,o,i,a=this._eras||st("en")._eras;for(n=0,o=a.length;n<o;++n)switch("string"==typeof a[n].since&&(i=r(a[n].since).startOf("day"),a[n].since=i.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=r(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf()}return a},_n.erasParse=function(e,t,n){var r,o,i,a,s,l=this.eras();for(e=e.toUpperCase(),r=0,o=l.length;r<o;++r)if(i=l[r].name.toUpperCase(),a=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[r];break;case"NNNN":if(i===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([i,a,s].indexOf(e)>=0)return l[r]},_n.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},_n.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||cn.call(this),e?this._erasAbbrRegex:this._erasRegex},_n.erasNameRegex=function(e){return a(this,"_erasNameRegex")||cn.call(this),e?this._erasNameRegex:this._erasRegex},_n.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||cn.call(this),e?this._erasNarrowRegex:this._erasRegex},_n.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||xe).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},_n.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[xe.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},_n.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return Pe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},_n.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Ae.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=je),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},_n.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Ae.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Se),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},_n.week=function(e){return Le(e,this._week.dow,this._week.doy).week},_n.firstDayOfYear=function(){return this._week.doy},_n.firstDayOfWeek=function(){return this._week.dow},_n.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Fe(n,this._week.dow):e?n[e.day()]:n},_n.weekdaysMin=function(e){return!0===e?Fe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},_n.weekdaysShort=function(e){return!0===e?Fe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},_n.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return Ke.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},_n.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=He),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},_n.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},_n.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=We),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},_n.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},_n.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},it("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===K(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=O("moment.lang is deprecated. Use moment.locale instead.",it),r.langData=O("moment.langData is deprecated. Use moment.localeData instead.",st);var jn=Math.abs;function Pn(e,t,n,r){var o=zt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Cn(e){return e<0?Math.floor(e):Math.ceil(e)}function En(e){return 4800*e/146097}function An(e){return 146097*e/4800}function Mn(e){return function(){return this.as(e)}}var Rn=Mn("ms"),Tn=Mn("s"),Dn=Mn("m"),In=Mn("h"),Vn=Mn("d"),Ln=Mn("w"),Nn=Mn("M"),Fn=Mn("Q"),Bn=Mn("y");function zn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Un=zn("milliseconds"),Hn=zn("seconds"),qn=zn("minutes"),Wn=zn("hours"),Kn=zn("days"),Yn=zn("months"),Gn=zn("years");var $n=Math.round,Jn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Zn(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var Xn=Math.abs;function Qn(e){return(e>0)-(e<0)||+e}function er(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,a,s,l=Xn(this._milliseconds)/1e3,u=Xn(this._days),c=Xn(this._months),f=this.asSeconds();return f?(e=W(l/60),t=W(e/60),l%=60,e%=60,n=W(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=f<0?"-":"",i=Qn(this._months)!==Qn(f)?"-":"",a=Qn(this._days)!==Qn(f)?"-":"",s=Qn(this._milliseconds)!==Qn(f)?"-":"",o+"P"+(n?i+n+"Y":"")+(c?i+c+"M":"")+(u?a+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var tr=At.prototype;return tr.isValid=function(){return this._isValid},tr.abs=function(){var e=this._data;return this._milliseconds=jn(this._milliseconds),this._days=jn(this._days),this._months=jn(this._months),e.milliseconds=jn(e.milliseconds),e.seconds=jn(e.seconds),e.minutes=jn(e.minutes),e.hours=jn(e.hours),e.months=jn(e.months),e.years=jn(e.years),this},tr.add=function(e,t){return Pn(this,e,t,1)},tr.subtract=function(e,t){return Pn(this,e,t,-1)},tr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+En(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(An(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},tr.asMilliseconds=Rn,tr.asSeconds=Tn,tr.asMinutes=Dn,tr.asHours=In,tr.asDays=Vn,tr.asWeeks=Ln,tr.asMonths=Nn,tr.asQuarters=
2Fn,tr.asYears=Bn,tr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*K(this._months/12):NaN},tr._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*Cn(An(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=W(i/1e3),l.seconds=e%60,t=W(e/60),l.minutes=t%60,n=W(t/60),l.hours=n%24,a+=W(n/24),s+=o=W(En(a)),a-=Cn(An(o)),r=W(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},tr.clone=function(){return zt(this)},tr.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},tr.milliseconds=Un,tr.seconds=Hn,tr.minutes=qn,tr.hours=Wn,tr.days=Kn,tr.weeks=function(){return W(this.days()/7)},tr.months=Yn,tr.years=Gn,tr.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=Jn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(i=Object.assign({},Jn,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=function(e,t,n,r){var o=zt(e).abs(),i=$n(o.as("s")),a=$n(o.as("m")),s=$n(o.as("h")),l=$n(o.as("d")),u=$n(o.as("M")),c=$n(o.as("w")),f=$n(o.as("y")),d=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(d=d||c<=1&&["w"]||c<n.w&&["ww",c]),(d=d||u<=1&&["M"]||u<n.M&&["MM",u]||f<=1&&["y"]||["yy",f])[2]=t,d[3]=+e>0,d[4]=r,Zn.apply(null,d)}(this,!o,i,n=this.localeData()),o&&(r=n.pastFuture(+this,r)),n.postformat(r)},tr.toISOString=er,tr.toString=er,tr.toJSON=er,tr.locale=Xt,tr.localeData=en,tr.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",er),tr.lang=Qt,I("X",0,0,"unix"),I("x",0,0,"valueOf"),pe("x",ue),pe("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,n){n._d=new Date(K(e))})),r.version="2.29.1",t=St,r.fn=wn,r.min=function(){return Ct("isBefore",[].slice.call(arguments,0))},r.max=function(){return Ct("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=p,r.unix=function(e){return St(1e3*e)},r.months=function(e,t){return xn(e,t,"months")},r.isDate=c,r.locale=it,r.invalid=v,r.duration=zt,r.isMoment=k,r.weekdays=function(e,t,n){return Sn(e,t,n,"weekdays")},r.parseZone=function(){return St.apply(null,arguments).parseZone()},r.localeData=st,r.isDuration=Mt,r.monthsShort=function(e,t){return xn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return Sn(e,t,n,"weekdaysMin")},r.defineLocale=at,r.updateLocale=function(e,t){if(null!=t){var n,r,o=Qe;null!=et[e]&&null!=et[e].parentLocale?et[e].set(C(et[e]._config,t)):(null!=(r=ot(e))&&(o=r._config),t=C(o,t),null==r&&(t.abbr=e),(n=new E(t)).parentLocale=et[e],et[e]=n),it(e)}else null!=et[e]&&(null!=et[e].parentLocale?(et[e]=et[e].parentLocale,e===it()&&it(e)):null!=et[e]&&delete et[e]);return et[e]},r.locales=function(){return x(et)},r.weekdaysShort=function(e,t,n){return Sn(e,t,n,"weekdaysShort")},r.normalizeUnits=B,r.relativeTimeRounding=function(e){return void 0===e?$n:"function"==typeof e&&($n=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Jn[e]&&(void 0===t?Jn[e]:(Jn[e]=t,"s"===e&&(Jn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=wn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()},91459:function(e,t,n){var r,o,i,a;o="Promise",a=function(){"use strict";var e,t,n,r=Object.prototype.toString,o="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function i(e,r){n.add(e,r),t||(t=o(n.drain))}function a(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function s(){for(var e=0;e<this.chain.length;e++)l(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function l(e,t,n){var r,o;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(o=a(r))?o.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}function u(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=a(e))?i((function(){var r=new d(n);try{t.call(e,(function(){u.apply(r,arguments)}),(function(){c.apply(r,arguments)}))}catch(e){c.call(r,e)}})):(n.msg=e,n.state=1,n.chain.length>0&&i(s,n))}catch(e){c.call(new d(n),e)}}}function c(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&i(s,t))}function f(e,t,n,r){for(var o=0;o<t.length;o++)!function(o){e.resolve(t[o]).then((function(e){n(o,e)}),r)}(o)}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 t=new p(this);this.then=function(e,n){var r={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return r.promise=new this.constructor((function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");r.resolve=e,r.reject=t}
2)),t.chain.push(r),0!==t.state&&i(s,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){u.call(t,e)}),(function(e){c.call(t,e)}))}catch(e){c.call(t,e)}}n=function(){var e,n,r;function o(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,i){r=new o(t,i),n?n.next=r:e=r,n=r,r=void 0},drain:function(){var r=e;for(e=n=t=void 0;r;)r.fn.call(r.self),r=r.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(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)}))})),e(h,"reject",(function(e){return new this((function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)}))})),e(h,"all",(function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t((function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var o=e.length,i=Array(o),a=0;f(t,e,(function(e,t){i[e]=t,++a===o&&n(i)}),r)}))})),e(h,"race",(function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):new t((function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");f(t,e,(function(e,t){n(t)}),r)}))})),h},(i=void 0!==n.g?n.g:this)[o]=i[o]||a(),e.exports?e.exports=i[o]:void 0===(r=function(){return i[o]}.call(t,n,t,e))||(e.exports=r)},35666:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new C(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return A()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?h:d,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",m={};function v(){}function y(){}function b(){}var g={};g[i]=function(){return this};var w=Object.getPrototypeOf,k=w&&w(w(E([])));k&&k!==n&&r.call(k,i)&&(g=k);var _=b.prototype=v.prototype=Object.create(g);function O(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(o,i,a,s){var l=c(e[o],e,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=c(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function E(e){if(e){var n=e[i];if(n)return n.call(e);
2if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:A}}function A(){return{value:t,done:!0}}return y.prototype=_.constructor=b,b.constructor=y,y.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},O(x.prototype),x.prototype[a]=function(){return this},e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(_),l(_,s,"Generator"),_[i]=function(){return this},_.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},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 s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){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&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},91033:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return O}});var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},s=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;
vendor: 5,303 bytes, line 2
2function i(){n&&(n=!1,e()),r&&l()}function s(){a(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(s,20);o=e}return l}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.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(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(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(){o&&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 t=e.propertyName,n=void 0===t?"":t;s.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},d=y(0,0,0,0);function p(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+p(e["border-"+n+"-width"])}),0)}var m="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function v(e){return o?m(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=f(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=p(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=p(r.width),l=p(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=h(r,"left","right")+i),Math.round(l+a)!==n&&(l-=h(r,"top","bottom")+a)),!function(e){return e===f(e).document.documentElement}(e)){var u=Math.round(s+i)-t,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return y(o.left,o.top,s,l)}(e):d}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var b=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=v(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,t){var n,r,o,i,a,s,l,u=(r=(n=t).x,o=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),c(l,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),l);c(this,{target:e,contentRect:u})},w=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.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(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new g(e.target,e.broadcastRect())}
vendor: 9,333 bytes, line 2
2));this.callback_.call(e,t,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 r,_=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new w(t,n,this);k.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){_.prototype[e]=function(){var t;return(t=k.get(this))[e].apply(t,arguments)}}));const O=void 0!==i.ResizeObserver?i.ResizeObserver:_},17672:function(e){e.exports=function(){"use strict";function e(e,t,n){this.x=e,this.y=t,this.time=n||(new Date).getTime()}function t(e,t,n,r){this.startPoint=e,this.control1=t,this.control2=n,this.endPoint=r}function n(e,t){var r=this,o=t||{};this.velocityFilterWeight=o.velocityFilterWeight||.7,this.minWidth=o.minWidth||.5,this.maxWidth=o.maxWidth||2.5,this.throttle="throttle"in o?o.throttle:16,this.minDistance="minDistance"in o?o.minDistance:5,this.throttle?this._strokeMoveUpdate=function(e,t,n){var r,o,i,a=null,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),a=null,i=e.apply(r,o),a||(r=o=null)};return function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=t-(u-s);return r=this,o=arguments,c<=0||c>t?(a&&(clearTimeout(a),a=null),s=u,i=e.apply(r,o),a||(r=o=null)):a||!1===n.trailing||(a=setTimeout(l,c)),i}}(n.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=n.prototype._strokeUpdate,this.dotSize=o.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=o.penColor||"black",this.backgroundColor=o.backgroundColor||"rgba(0,0,0,0)",this.onBegin=o.onBegin,this.onEnd=o.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(e){1===e.which&&(r._mouseButtonDown=!0,r._strokeBegin(e))},this._handleMouseMove=function(e){r._mouseButtonDown&&r._strokeMoveUpdate(e)},this._handleMouseUp=function(e){1===e.which&&r._mouseButtonDown&&(r._mouseButtonDown=!1,r._strokeEnd(e))},this._handleTouchStart=function(e){if(1===e.targetTouches.length){var t=e.changedTouches[0];r._strokeBegin(t)}},this._handleTouchMove=function(e){e.preventDefault();var t=e.targetTouches[0];r._strokeMoveUpdate(t)},this._handleTouchEnd=function(e){e.target===r._canvas&&(e.preventDefault(),r._strokeEnd(e))},this.on()}return e.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},e.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},e.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time},t.prototype.length=function(){for(var e=0,t=void 0,n=void 0,r=0;r<=10;r+=1){var o=r/10,i=this._point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this._point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(r>0){var s=i-t,l=a-n;e+=Math.sqrt(s*s+l*l)}t=i,n=a}return e},t.prototype._point=function(e,t,n,r,o){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*r*(1-e)*e*e+o*e*e*e},n.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0},n.prototype.fromDataURL=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new Image,o=n.ratio||window.devicePixelRatio||1,i=n.width||this._canvas.width/o,a=n.height||this._canvas.height/o;this._reset(),r.src=e,r.onload=function(){t._ctx.drawImage(r,0,0,i,a)},this._isEmpty=!1},n.prototype.toDataURL=function(e){var t;if("image/svg+xml"===e)return this._toSVG();for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this._canvas).toDataURL.apply(t,[e].concat(r))},n.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},n.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},n.prototype.isEmpty=function(){return this._isEmpty},n.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)},n.prototype._strokeUpdate=function(e){var t=e.clientX,n=e.clientY,r=this._createPoint(t,n),o=this._data[this._data.length-1],i=o&&o[o.length-1],a=i&&r.distanceTo(i)<this.minDistance;if(!i||!a){var s=this._addPoint(r),l=s.curve,u=s.widths;l&&u&&this._drawCurve(l,u.start,u.end),this._data[this._data.length-1].push({x:r.x,y:r.y,time:r.time,color:this.penColor})}},n.prototype._strokeEnd=function(e){var t=this.points.length>2,n=this.points[0];if(!t&&n&&this._drawDot(n),n){var r=this._data[this._data.length-1],o=r[r.length-1];n.equals(o)||r.push({x:n.x,y:n.y,time:n.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(e)},n.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},n.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},n.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},n.prototype._createPoint=function(t,n,r){var o=this._canvas.getBoundingClientRect();return new e(t-o.left,n-o.top,r||(new Date).getTime())},n.prototype._addPoint=function(e){var n=this.points;if(n.push(e),n.length>2){3===n.length&&n.unshift(n[0]);var r=this._calculateCurveControlPoints(n[0],n[1],n[2]).c2,o=this._calculateCurveControlPoints(n[1],n[2],n[3]).c1,i=new t(n[1],r,o,n[2]),a=this._calculateCurveWidths(i);return n.shift(),{curve:i,widths:a}}return{}},n.prototype._calculateCurveControlPoints=function(t,n,r){var o=t.x-n.x,i=t.y-n.y,a=n.x-r.x,s=n.y-r.y,l=(t.x+n.x)/2,u=(t.y+n.y)/2,c=(n.x+r.x)/2,f=(n.y+r.y)/2,d=Math.sqrt(o*o+i*i),p=Math.sqrt(a*a+s*s),h=p/(d+p),m=c+(l-c)*h,v=f+(u-f)*h,y=n.x-m,b=n.y-v;return{c1:new e(l+y,u+b),c2:new e(c+y,f+b)}},n.prototype._calculateCurveWidths=function(e){var t=e.startPoint,n=e.endPoint,r={start:null,end:null},o=this.velocityFilterWeight*n.velocityFrom(t)+(1-this.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(o);return r.start=this._lastWidth,r.end=i,this._lastVelocity=o,this._lastWidth=i,r},n.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},n.prototype._drawPoint=function(e,t,n){var r=this._ctx;r.moveTo(e,t),r.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1},n.prototype._drawCurve=function(e,t,n){var r=this._ctx,o=n-t,i=Math.floor(e.length());r.beginPath();for(var a=0;a<i;a+=1){var s=a/i,l=s*s,u=l*s,c=1-s,f=c*c,d=f*c,p=d*e.startPoint.x;p+=3*f*s*e.control1.x,p+=3*c*l*e.control2.x,p+=u*e.endPoint.x;var h=d*e.startPoint.y;h+=3*f*s*e.control1.y,h+=3*c*l*e.control2.y,h+=u*e.endPoint.y;var m=t+u*o;this._drawPoint(p,h,m)}r.closePath(),r.fill()},n.prototype._drawDot=function(e){var t=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,n),t.closePath(),t.fill()},n.prototype._fromData=function(t,n,r){for(var o=0;o<t.length;o+=1){var i=t[o];if(i.length>1)for(var a=0;a<i.length;a+=1){var s=i[a],l=new e(s.x,s.y,s.time),u=s.color;if(0===a)this.penColor=u,this._reset(),this._addPoint(l);else if(a!==i.length-1){var c=this._addPoint(l),f=c.curve,d=c.widths;f&&d&&n(f,d,u)}}else this._reset(),r(i[0])}},n.prototype._toSVG=function(){var e=this,t=this._data,n=this._canvas,r=Math.max(window.devicePixelRatio||1,1),o=n.width/r,i=n.height/r,a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttributeNS(null,"width",n.width),a.setAttributeNS(null,"height",n.height),this._fromData(t,(function(e,t,n){var r=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){var 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*t.end).toFixed(3)),r.setAttribute("stroke",n),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),a.appendChild(r)}}),(function(t){var n=document.createElement("circle"),r="function"==typeof e.dotSize?e.dotSize():e.dotSize;n.setAttribute("r",r),n.setAttribute("cx",t.x),n.setAttribute("cy",t.y),n.setAttribute("fill",t.color),a.appendChild(n)}));var s='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewB
2ox="0 0 '+o+" "+i+'" width="'+o+'" height="'+i+'">',l=a.innerHTML;if(void 0===l){var u=document.createElement("dummy"),c=a.childNodes;u.innerHTML="";for(var f=0;f<c.length;f+=1)u.appendChild(c[f].cloneNode(!0));l=u.innerHTML}return"data:image/svg+xml;base64,"+btoa(s+l+"</svg>")},n.prototype.fromData=function(e){var t=this;this.clear(),this._fromData(e,(function(e,n){return t._drawCurve(e,n.start,n.end)}),(function(e){return t._drawDot(e)})),this._data=e},n.prototype.toData=function(){return this._data},n}()},69887:function(e){"use strict";e.exports=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}},84909:function(e){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1);Object.defineProperty(t,"createAutoCorrectedDatePipe",{enumerable:!0,get:function(){return r(o).default}});var i=n(2);Object.defineProperty(t,"createNumberMask",{enumerable:!0,get:function(){return r(i).default}});var a=n(3);Object.defineProperty(t,"emailMask",{enumerable:!0,get:function(){return r(a).default}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mm dd yyyy",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.minYear,i=void 0===o?1:o,a=t.maxYear,s=void 0===a?9999:a,l=e.split(/[^dmyHMS]+/).sort((function(e,t){return r.indexOf(e)-r.indexOf(t)}));return function(t){var r=[],o={dd:31,mm:12,yy:99,yyyy:s,HH:23,MM:59,SS:59},a={dd:1,mm:1,yy:0,yyyy:i,HH:0,MM:0,SS:0},u=t.split("");l.forEach((function(t){var n=e.indexOf(t),i=parseInt(o[t].toString().substr(0,1),10);parseInt(u[n],10)>i&&(u[n+1]=u[n],u[n]=0,r.push(n))}));var c=0,f=l.some((function(r){var l=e.indexOf(r),u=r.length,f=t.substr(l,u).replace(/\D/g,""),d=parseInt(f,10);"mm"===r&&(c=d||0);var p="dd"===r?n[c]:o[r];if("yyyy"===r&&(1!==i||9999!==s)){var h=parseInt(o[r].toString().substring(0,f.length),10);return d<parseInt(a[r].toString().substring(0,f.length),10)||d>h}return d>p||f.length===u&&d<a[r]}));return!f&&{value:u.join(""),indexesOfPipedChars:r}}};var n=[31,31,29,31,30,31,30,31,31,30,31,30,31],r=["yyyy","yy","mm","dd","HH","MM","SS"]},function(e,t){"use strict";function n(e){return e.split(a).map((function(e){return p.test(e)?p:e}))}function r(e,t){return e.replace(/\B(?=(\d{3})+(?!\d))/g,t)}Object.defineProperty(t,"__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};t.default=function(){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=e.length;if(e===a||e[0]===v[0]&&1===t)return v.split(a).concat([p]).concat(b.split(a));if(e===j&&x)return v.split(a).concat(["0",j,p]).concat(b.split(a));var i=e[0]===u&&R;i&&(e=e.toString().substr(1));var s=e.lastIndexOf(j),l=-1!==s,m=void 0,y=void 0,g=void 0;if(e.slice(-1*N)===b&&(e=e.slice(0,-1*N)),l&&(x||A)?(m=e.slice(e.slice(0,L)===v?L:0,s),y=n((y=e.slice(s+1,t)).replace(f,a))):m=e.slice(0,L)===v?e.slice(L):e,V&&(void 0===V?"undefined":o(V))===d){var k="."===_?"[.]":""+_,O=(m.match(new RegExp(k,"g"))||[]).length;m=m.slice(0,V+O*F)}return m=m.replace(f,a),D||(m=m.replace(/^0+(0$|[^0])/,"$1")),g=n(m=w?r(m,_):m),(l&&x||!0===A)&&(e[s-1]!==j&&g.push(h),g.push(j,h),y&&((void 0===C?"undefined":o(C))===d&&(y=y.slice(0,C)),g=g.concat(y)),!0===A&&e[s-1]===j&&g.push(p)),L>0&&(g=v.split(a).concat(g)),i&&(g.length===L&&g.push(p),g=[c].concat(g)),b.length>0&&(g=g.concat(b.split(a))),g}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},m=t.prefix,v=void 0===m?i:m,y=t.suffix,b=void 0===y?a:y,g=t.includeThousandsSeparator,w=void 0===g||g,k=t.thousandsSeparatorSymbol,_=void 0===k?s:k,O=t.allowDecimal,x=void 0!==O&&O,S=t.decimalSymbol,j=void 0===S?l:S,P=t.decimalLimit,C=void 0===P?2:P,E=t.requireDecimal,A=void 0!==E&&E,M=t.allowNegative,R=void 0!==M&&M,T=t.allowLeadingZeroes,D=void 0!==T&&T,I=t.integerLimit,V=void 0===I?null:I,L=v&&v.length||0,N=b&&b.length||0,F=_&&_.length||0;return e.instanceOf="createNumberMask",e};var i="$",a="",s=",",l=".",u="-",c=/-/,f=/\D+/g,d="number",p=/\d/,h="[]"},function(e,t,n){"use strict";function r(e,t,n){var r=[];return e[t]===n?r.push(n):r.push(d,n),r.push(d),r}function o(e,t,n,r){var o=c;return-1!==t&&(o=-1===n?e.slice(t+1,e.length):e.slice(t+1,n)),(o=o.replace(new RegExp("[\\s"+r+"]",h),c))===f?l:o.length<1?p:o[o.length-1]===u?o.slice(0,o.length-1):o}function i(e,t,n,r){var o=c;return-1!==t&&(o=e.slice(t+1,e.length)),0===(o=o.replace(new RegExp("[\\s"+n+".]",h),c)).length?e[t-1]===u&&r!==e.length?l:c:o}function a(e,t){return e.split(c).map((function(e){return e===p?e:t?v:m}))}
2Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){return e&&e.__esModule?e:{default:e}}(n(4)),l="*",u=".",c="",f="@",d="[]",p=" ",h="g",m=/[^\s]/,v=/[^.\s]/,y=/\s/g;t.default={mask:function(e,t){e=e.replace(y,c);var n=t.placeholderChar,s=t.currentCaretPosition,l=e.indexOf(f),d=e.lastIndexOf(u),p=d<l?-1:d,h=r(e,l+1,f),m=r(e,p-1,u),v=function(e,t){return-1===t?e:e.slice(0,t)}(e,l),b=o(e,l,p,n),g=i(e,p,n,s);return v=a(v),b=a(b),g=a(g,!0),v.concat(h).concat(b).concat(m).concat(g)},pipe:s.default}},function(e,t){"use strict";function n(e){var t=0;return e.replace(o,(function(){return 1==++t?r:i}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var o=t.currentCaretPosition,f=t.rawValue,d=t.previousConformedValue,p=t.placeholderChar,h=e,m=(h=n(h)).indexOf(a);if(null===f.match(new RegExp("[^@\\s."+p+"]")))return i;if(-1!==h.indexOf(l)||-1!==m&&o!==m+1||-1===f.indexOf(r)&&d!==i&&-1!==f.indexOf(s))return!1;var v=h.indexOf(r);return(h.slice(v+1,h.length).match(c)||u).length>1&&h.substr(-1)===s&&o!==f.length&&(h=h.slice(0,h.length-1)),h};var r="@",o=/@/g,i="",a="@.",s=".",l="..",u=[],c=/\./g}])},13861:function(e,t,n){"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function o(e){return e instanceof r(e).Element||e instanceof Element}function i(e){return e instanceof r(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!=typeof ShadowRoot&&(e instanceof r(e).ShadowRoot||e instanceof ShadowRoot)}n.r(t),n.d(t,{animateFill:function(){return st},createSingleton:function(){return ot},default:function(){return mt},delegate:function(){return at},followCursor:function(){return ft},hideAll:function(){return nt},inlinePositioning:function(){return dt},roundArrow:function(){return ce},sticky:function(){return pt}});var s=Math.max,l=Math.min,u=Math.round;function c(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(i(e)&&t){var a=e.offsetHeight,s=e.offsetWidth;s>0&&(r=u(n.width)/s||1),a>0&&(o=u(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function f(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function d(e){return e?(e.nodeName||"").toLowerCase():null}function p(e){return((o(e)?e.ownerDocument:e.document)||window.document).documentElement}function h(e){return c(p(e)).left+f(e).scrollLeft}function m(e){return r(e).getComputedStyle(e)}function v(e){var t=m(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function y(e,t,n){void 0===n&&(n=!1);var o,a,s=i(t),l=i(t)&&function(e){var t=e.getBoundingClientRect(),n=u(t.width)/e.offsetWidth||1,r=u(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),m=p(t),y=c(e,l),b={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(s||!s&&!n)&&(("body"!==d(t)||v(m))&&(b=(o=t)!==r(o)&&i(o)?{scrollLeft:(a=o).scrollLeft,scrollTop:a.scrollTop}:f(o)),i(t)?((g=c(t,!0)).x+=t.clientLeft,g.y+=t.clientTop):m&&(g.x=h(m))),{x:y.left+b.scrollLeft-g.x,y:y.top+b.scrollTop-g.y,width:y.width,height:y.height}}function b(e){var t=c(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function g(e){return"html"===d(e)?e:e.assignedSlot||e.parentNode||(a(e)?e.host:null)||p(e)}function w(e){return["html","body","#document"].indexOf(d(e))>=0?e.ownerDocument.body:i(e)&&v(e)?e:w(g(e))}function k(e,t){var n;void 0===t&&(t=[]);var o=w(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=r(o),s=i?[a].concat(a.visualViewport||[],v(o)?o:[]):o,l=t.concat(s);return i?l:l.concat(k(g(s)))}function _(e){return["table","td","th"].indexOf(d(e))>=0}function O(e){return i(e)&&"fixed"!==m(e).position?e.offsetParent:null}function x(e){for(var t=r(e),n=O(e);n&&_(n)&&"static"===m(n).position;)n=O(n);return n&&("html"===d(n)||"body"===d(n)&&"static"===m(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&i(e)&&"fixed"===m(e).position)return null;for(var n=g(e);i(n)&&["html","body"].indexOf(d(n))<0;){var r=m(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var S="top",j="bottom",P="right",C="left",E="auto",A=[S,j,P,C],M="start",R="end",T="viewport",D="popper",I=A.reduce((function(e,t){return e.concat([t+"-"+M,t+"-"+R])}),[]),V=[].concat(A,[E]).reduce((function(e,t){return e.concat([t,t+"-"+M,t+"-"+R])}),[]),L=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function N(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEac
vendor: 4,323 bytes, line 2
2h((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var F={placement:"bottom",modifiers:[],strategy:"absolute"};function B(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function z(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,a=void 0===i?F:i;return function(e,t,n){void 0===n&&(n=a);var i,s,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},F,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],c=!1,f={state:l,setOptions:function(n){var i="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},a,l.options,i),l.scrollParents={reference:o(e)?k(e):e.contextElement?k(e.contextElement):[],popper:k(t)};var s,c,p=function(e){var t=N(e);return L.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(r,l.options.modifiers),c=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:l,name:t,instance:f,options:r});u.push(i||function(){})}})),f.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(B(t,n)){l.rects={reference:y(t,x(n),"fixed"===l.options.strategy),popper:b(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,u=o.name;"function"==typeof i&&(l=i({state:l,options:s,name:u,instance:f})||l)}else l.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){f.forceUpdate(),e(l)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(i())}))}))),s}),destroy:function(){d(),c=!0}};if(!B(e,t))return f;function d(){u.forEach((function(e){return e()})),u=[]}return f.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),f}}var U={passive:!0};function H(e){return e.split("-")[0]}function q(e){return e.split("-")[1]}function W(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function K(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?H(o):null,a=o?q(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case S:t={x:s,y:n.y-r.height};break;case j:t={x:s,y:n.y+n.height};break;case P:t={x:n.x+n.width,y:l};break;case C:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=i?W(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case M:t[u]=t[u]-(n[c]/2-r[c]/2);break;case R:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var Y={top:"auto",right:"auto",bottom:"auto",left:"auto"};function G(e){var t,n=e.popper,o=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,f=e.adaptive,d=e.roundOffsets,h=e.isFixed,v=!0===d?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:u(t*r)/r||0,y:u(n*r)/r||0}}(s):"function"==typeof d?d(s):s,y=v.x,b=void 0===y?0:y,g=v.y,w=void 0===g?0:g,k=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),O=C,E=S,A=window;if(f){var M=x(n),T="clientHeight",D="clientWidth";M===r(n)&&"static"!==m(M=p(n)).position&&"absolute"===l&&(T="scrollHeight",D="scrollWidth"),M=M,(i===S||(i===C||i===P)&&a===R)&&(E=j,w-=(h&&A.visualViewport?A.visualViewport.height:M[T])-o.height,w*=c?1:-1),i!==C&&(i!==S&&i!==j||a!==R)||(O=P,b-=(h&&A.visualViewport?A.visualViewport.width:M[D])-o.width,b*=c?1:-1)}var I,V=Object.assign({position:l},f&&Y);return c?Object.assign({},V,((I={})[E]=_?"0":"",I[O]=k?"0":"",I.transform=(A.devicePixelRatio||1)<=1?"translate("+b+"px, "+w+"px)":"translate3d("+b+"px, "+w+"px, 0)",I)):Object.assign({},V,((t={})[E]=_?w+"px":"",t[O]=k?b+"px":"",t.transform="",t))}const $={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;
vendor: 4,296 bytes, line 2
2Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];i(o)&&d(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});i(r)&&d(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var J={left:"right",right:"left",bottom:"top",top:"bottom"};function Z(e){return e.replace(/left|right|bottom|top/g,(function(e){return J[e]}))}var X={start:"end",end:"start"};function Q(e){return e.replace(/start|end/g,(function(e){return X[e]}))}function ee(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function te(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ne(e,t){return t===T?te(function(e){var t=r(e),n=p(e),o=t.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;return o&&(i=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=o.offsetLeft,l=o.offsetTop)),{width:i,height:a,x:s+h(e),y:l}}(e)):o(t)?function(e){var t=c(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):te(function(e){var t,n=p(e),r=f(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=s(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=s(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+h(e),u=-r.scrollTop;return"rtl"===m(o||n).direction&&(l+=s(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:u}}(p(e)))}function re(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function oe(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ie(e,t){void 0===t&&(t={});var n=t,r=n.placement,a=void 0===r?e.placement:r,u=n.boundary,f=void 0===u?"clippingParents":u,h=n.rootBoundary,v=void 0===h?T:h,y=n.elementContext,b=void 0===y?D:y,w=n.altBoundary,_=void 0!==w&&w,O=n.padding,C=void 0===O?0:O,E=re("number"!=typeof C?C:oe(C,A)),M=b===D?"reference":D,R=e.rects.popper,I=e.elements[_?M:b],V=function(e,t,n){var r="clippingParents"===t?function(e){var t=k(g(e)),n=["absolute","fixed"].indexOf(m(e).position)>=0,r=n&&i(e)?x(e):e;return o(r)?t.filter((function(e){return o(e)&&ee(e,r)&&"body"!==d(e)&&(!n||"static"!==m(e).position)})):[]}(e):[].concat(t),a=[].concat(r,[n]),u=a[0],c=a.reduce((function(t,n){var r=ne(e,n);return t.top=s(r.top,t.top),t.right=l(r.right,t.right),t.bottom=l(r.bottom,t.bottom),t.left=s(r.left,t.left),t}),ne(e,u));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}(o(I)?I:I.contextElement||p(e.elements.popper),f,v),L=c(e.elements.reference),N=K({reference:L,element:R,strategy:"absolute",placement:a}),F=te(Object.assign({},R,N)),B=b===D?F:L,z={top:V.top-B.top+E.top,bottom:B.bottom-V.bottom+E.bottom,left:V.left-B.left+E.left,right:B.right-V.right+E.right},U=e.modifiersData.offset;if(b===D&&U){var H=U[a];Object.keys(z).forEach((function(e){var t=[P,j].indexOf(e)>=0?1:-1,n=[S,j].indexOf(e)>=0?"y":"x";z[e]+=H[n]*t}))}return z}function ae(e,t,n){return s(e,l(t,n))}function se(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function le(e){return[S,P,j,C].some((function(t){return e[t]>=0}))}var ue=z({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,i=o.scroll,a=void 0===i||i,s=o.resize,l=void 0===s||s,u=r(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);
vendor: 18,827 bytes, line 2
2return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,U)})),l&&u.addEventListener("resize",n.update,U),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,U)})),l&&u.removeEventListener("resize",n.update,U)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=K({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,u={placement:H(t.placement),variation:q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,G(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,G(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},$,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=V.reduce((function(e,n){return e[n]=function(e,t,n){var r=H(e),o=[C,S].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[C,P].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,v=t.options.placement,y=H(v),b=l||(y!==v&&h?function(e){if(H(e)===E)return[];var t=Z(e);return[Q(e),t,Q(t)]}(v):[Z(v)]),g=[v].concat(b).reduce((function(e,n){return e.concat(H(n)===E?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?V:l,c=q(r),f=c?s?I:I.filter((function(e){return q(e)===c})):A,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=ie(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[H(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,k=t.rects.popper,_=new Map,O=!0,x=g[0],R=0;R<g.length;R++){var T=g[R],D=H(T),L=q(T)===M,N=[S,j].indexOf(D)>=0,F=N?"width":"height",B=ie(t,{placement:T,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),z=N?L?P:C:L?j:S;w[F]>k[F]&&(z=Z(z));var U=Z(z),W=[];if(i&&W.push(B[D]<=0),s&&W.push(B[z]<=0,B[U]<=0),W.every((function(e){return e}))){x=T,O=!1;break}_.set(T,W)}if(O)for(var K=function(e){var t=g.find((function(t){var n=_.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},Y=h?3:1;Y>0&&"break"!==K(Y);Y--);t.placement!==x&&(t.modifiersData[r]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,u=void 0!==a&&a,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.padding,h=n.tether,m=void 0===h||h,v=n.tetherOffset,y=void 0===v?0:v,g=ie(t,{boundary:c,rootBoundary:f,padding:p,altBoundary:d}),w=H(t.placement),k=q(t.placement),_=!k,O=W(w),E="x"===O?"y":"x",A=t.modifiersData.popperOffsets,R=t.rects.reference,T=t.rects.popper,D="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,I="number"==typeof D?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(A){if(i){var N,F="y"===O?S:C,B="y"===O?j:P,z="y"===O?"height":"width",U=A[O],K=U+g[F],Y=U-g[B],G=m?-T[z]/2:0,$=k===M?R[z]:T[z],J=k===M?-T[z]:-R[z],Z=t.elements.arrow,X=m&&Z?b(Z):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Q[F],te=Q[B],ne=ae(0,R[z],X[z]),re=_?R[z]/2-G-ne-ee-I.mainAxis:$-ne-ee-I.mainAxis,oe=_?-R[z]/2+G+ne+te+I.mainAxis:J+ne+te+I.mainAxis,se=t.elements.arrow&&x(t.elements.arrow),le=se?"y"===O?se.clientTop||0:se.clientLeft||0:0,ue=null!=(N=null==V?void 0:V[O])?N:0,ce=U+oe-ue,fe=ae(m?l(K,U+re-ue-le):K,U,m?s(Y,ce):Y);A[O]=fe,L[O]=fe-U}if(u){var de,pe="x"===O?S:C,he="x"===O?j:P,me=A[E],ve="y"===E?"height":"width",ye=me+g[pe],be=me-g[he],ge=-1!==[S,C].indexOf(w),we=null!=(de=null==V?void 0:V[E])?de:0,ke=ge?ye:me-R[ve]-T[ve]-we+I.altAxis,_e=ge?me+R[ve]+T[ve]-we-I.altAxis:be,Oe=m&&ge?function(e,t,n){var r=ae(e,t,n);return r>n?n:r}(ke,me,_e):ae(m?ke:ye,me,m?_e:be);A[E]=Oe,L[E]=Oe-me}t.modifiersData[r]=L}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=H(n.placement),l=W(s),u=[C,P].indexOf(s)>=0?"height":"width";if(i&&a){var c=function(e,t){return re("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:oe(e,A))}(o.padding,n),f=b(i),d="y"===l?S:C,p="y"===l?j:P,h=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],m=a[l]-n.rects.reference[l],v=x(i),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,g=h/2-m/2,w=c[d],k=y-f[u]-c[p],_=y/2-f[u]/2+g,O=ae(w,_,k),E=l;n.modifiersData[r]=((t={})[E]=O,t.centerOffset=O-_,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ee(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ie(t,{elementContext:"reference"}),s=ie(t,{altBoundary:!0}),l=se(a,r),u=se(s,o,i),c=le(l),f=le(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}),ce='<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>',fe="tippy-content",de="tippy-backdrop",pe="tippy-arrow",he="tippy-svg-arrow",me={passive:!0,capture:!0},ve=function(){return document.body};function ye(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function be(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function ge(e,t){return"function"==typeof e?e.apply(void 0,t):e}function we(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function ke(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}function _e(e){return[].concat(e)}function Oe(e,t){-1===e.indexOf(t)&&e.push(t)}function xe(e){return e.split("-")[0]}function Se(e){return[].slice.call(e)}function je(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Pe(){return document.createElement("div")}function Ce(e){return["Element","Fragment"].some((function(t){return be(e,t)}))}function Ee(e){return be(e,"MouseEvent")}function Ae(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function Me(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Re(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Te(e){var t,n=_e(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function De(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function Ie(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var Ve={isTouch:!1},Le=0;function Ne(){Ve.isTouch||(Ve.isTouch=!0,window.performance&&document.addEventListener("mousemove",Fe))}function Fe(){var e=performance.now();e-Le<20&&(Ve.isTouch=!1,document.removeEventListener("mousemove",Fe)),Le=e}function Be(){var e=document.activeElement;if(Ae(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var ze=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),Ue=Object.assign({appendTo:ve,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}),He=Object.keys(Ue);function qe(e){var t=(e.plugins||[]).reduce((function(t,n){var r,o=n.name,i=n.defaultValue;return o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=Ue[o])?r:i),t}),{});return Object.assign({},e,t)}function We(e,t){var n=Object.assign({},t,{content:ge(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(qe(Object.assign({},Ue,{plugins:t}))):He).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Ue.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Ke(e,t){e.innerHTML=t}function Ye(e){var t=Pe();return!0===e?t.className=pe:(t.className=he,Ce(e)?t.appendChild(e):Ke(t,e)),t}function Ge(e,t){Ce(t.content)?(Ke(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Ke(e,t.content):e.textContent=t.content)}function $e(e){var t=e.firstElementChild,n=Se(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(fe)})),arrow:n.find((function(e){return e.classList.contains(pe)||e.classList.contains(he)})),backdrop:n.find((function(e){return e.classList.contains(de)}))}}function Je(e){var t=Pe(),n=Pe();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Pe();function o(n,r){var o=$e(t),i=o.box,a=o.content,s=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||Ge(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(i.removeChild(s),i.appendChild(Ye(r.arrow))):i.appendChild(Ye(r.arrow)):s&&i.removeChild(s)}return r.className=fe,r.setAttribute("data-state","hidden"),Ge(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}Je.$$tippy=!0;var Ze=1,Xe=[],Qe=[];function et(e,t){var n,r,o,i,a,s,l,u,c=We(e,Object.assign({},Ue,qe(je(t)))),f=!1,d=!1,p=!1,h=!1,m=[],v=we(Y,c.interactiveDebounce),y=Ze++,b=(u=c.plugins).filter((function(e,t){return u.indexOf(e)===t})),g={id:y,reference:e,popper:Pe(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(t){if(!g.state.isDestroyed){T("onBeforeUpdate",[g,t]),W();var n=g.props,r=We(e,Object.assign({},n,je(t),{ignoreAttributes:!0}));g.props=r,q(),n.interactiveDebounce!==r.interactiveDebounce&&(V(),v=we(Y,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?_e(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded"),I(),R(),_&&_(n,r),g.popperInstance&&(Z(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),T("onAfterUpdate",[g,t])}},setContent:function(e){g.setProps({content:e})},show:function(){var e=g.state.isVisible,t=g.state.isDestroyed,n=!g.state.isEnabled,r=Ve.isTouch&&!g.props.touch,o=ye(g.props.duration,0,Ue.duration);if(!(e||t||n||r||C().hasAttribute("disabled")||(T("onShow",[g],!1),!1===g.props.onShow(g)))){if(g.state.isVisible=!0,P()&&(k.style.visibility="visible"),R(),B(),g.state.isMounted||(k.style.transition="none"),P()){var i=A();Me([i.box,i.content],0)}var a,l,u;s=function(){var e;if(g.state.isVisible&&!h){if(h=!0,k.offsetHeight,k.style.transition=g.props.moveTransition,P()&&g.props.animation){var t=A(),n=t.box,r=t.content;Me([n,r],o),Re([n,r],"visible")}D(),I(),Oe(Qe,g),null==(e=g.popperInstance)||e.forceUpdate(),T("onMount",[g]),g.props.animation&&P()&&function(e,t){U(e,(function(){g.state.isShown=!0,T("onShown",[g])}))}(o)}},l=g.props.appendTo,u=C(),(a=g.props.interactive&&l===ve||"parent"===l?u.parentNode:ge(l,[u])).contains(k)||a.appendChild(k),g.state.isMounted=!0,Z()}},hide:function(){var e=!g.state.isVisible,t=g.state.isDestroyed,n=!g.state.isEnabled,r=ye(g.props.duration,1,Ue.duration);if(!(e||t||n)&&(T("onHide",[g],!1),!1!==g.props.onHide(g))){if(g.state.isVisible=!1,g.state.isShown=!1,h=!1,f=!1,P()&&(k.style.visibility="hidden"),V(),z(),R(!0),P()){var o=A(),i=o.box,a=o.content;g.props.animation&&(Me([i,a],r),Re([i,a],"hidden"))}D(),I(),g.props.animation?P()&&function(e,t){U(e,(function(){!g.state.isVisible&&k.parentNode&&k.parentNode.contains(k)&&t()}))}(r,g.unmount):g.unmount()}},hideWithInteractivity:function(e){E().addEventListener("mousemove",v),Oe(Xe,v),v(e)},enable:function(){g.state.isEnabled=!0},disable:function(){g.hide(),g.state.isEnabled=!1},unmount:function(){g.state.isVisible&&g.hide(),g.state.isMounted&&(X(),Q().forEach((function(e){e._tippy.unmount()})),k.parentNode&&k.parentNode.removeChild(k),Qe=Qe.filter((function(e){return e!==g})),g.state.isMounted=!1,T("onHidden",[g]))},destroy:function(){g.state.isDestroyed||(g.clearDelayTimeouts(),g.unmount(),W(),delete e._tippy,g.state.isDestroyed=!0,T("onDestroy",[g]))}};if(!c.render)return g;var w=c.render(g),k=w.popper,_=w.onUpdate;k.setAttribute("data-tippy-root",""),k.id="tippy-"+g.id,g.popper=k,e._tippy=g,k._tippy=g;var O=b.map((function(e){return e.fn(g)})),x=e.hasAttribute("aria-expanded");return q(),I(),R(),T("onCreate",[g]),c.showOnCreate&&ee(),k.addEventListener("mouseenter",(function(){g.props.interactive&&g.state.isVisible&&g.clearDelayTimeouts()})),k.addEventListener("mouseleave",(function(){g.props.interactive&&g.props.trigger.indexOf("mouseenter")>=0&&E().addEventListener("mousemove",v)})),g;function S(){var e=g.props.touch;return Array.isArray(e)?e:[e,0]}function j(){return"hold"===S()[0]}function P(){var e;return!(null==(e=g.props.render)||!e.$$tippy)}function C(){return l||e}function E(){var e=C().parentNode;return e?Te(e):document}function A(){return $e(k)}function M(e){return g.state.isMounted&&!g.state.isVisible||Ve.isTouch||i&&"focus"===i.type?0:ye(g.props.delay,e?0:1,Ue.delay)}function R(e){void 0===e&&(e=!1),k.style.pointerEvents=g.props.interactive&&!e?"":"none",k.style.zIndex=""+g.props.zIndex}function T(e,t,n){var r;void 0===n&&(n=!0),O.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(r=g.props)[e].apply(r,t)}function D(){var t=g.props.aria;if(t.content){var n="aria-"+t.content,r=k.id;_e(g.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(g.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function I(){!x&&g.props.aria.expanded&&_e(g.props.triggerTarget||e).forEach((function(e){g.props.interactive?e.setAttribute("aria-expanded",g.state.isVisible&&e===C()?"true":"false"):e.removeAttribute("aria-expanded")}))}function V(){E().removeEventListener("mousemove",v),Xe=Xe.filter((function(e){return e!==v}))}function L(t){if(!Ve.isTouch||!p&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!g.props.interactive||!Ie(k,n)){if(_e(g.props.triggerTarget||e).some((function(e){return Ie(e,n)}))){if(Ve.isTouch)return;if(g.state.isVisible&&g.props.trigger.indexOf("click")>=0)return}else T("onClickOutside",[g,t]);!0===g.props.hideOnClick&&(g.clearDelayTimeouts(),g.hide(),d=!0,setTimeout((function(){d=!1})),g.state.isMounted||z())}}}function N(){p=!0}function F(){p=!1}function B(){var e=E();e.addEventListener("mousedown",L,!0),e.addEventListener("touchend",L,me),e.addEventListener("touchstart",F,me),e.addEventListener("touchmove",N,me)}function z(){var e=E();e.removeEventListener("mousedown",L,!0),e.removeEventListener("touchend",L,me),e.removeEventListener("touchstart",F,me),e.removeEventListener("touchmove",N,me)}function U(e,t){var n=A().box;function r(e){e.target===n&&(De(n,"remove",r),t())}if(0===e)return t();De(n,"remove",a),De(n,"add",r),a=r}function H(t,n,r){void 0===r&&(r=!1),_e(g.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})}))}function q(){var e;j()&&(H("touchstart",K,{passive:!0}),H("touchend",G,{passive:!0})),(e=g.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(H(e,K),e){case"mouseenter":H("mouseleave",G);break;case"focus":H(ze?"focusout":"blur",$);break;case"focusin":H("focusout",$)}}))}function W(){m.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),m=[]}function K(e){var t,n=!1;if(g.state.isEnabled&&!J(e)&&!d){var r="focus"===(null==(t=i)?void 0:t.type);i=e,l=e.currentTarget,I(),!g.state.isVisible&&Ee(e)&&Xe.forEach((function(t){return t(e)}
vendor: 11,435 bytes, line 2
2)),"click"===e.type&&(g.props.trigger.indexOf("mouseenter")<0||f)&&!1!==g.props.hideOnClick&&g.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!r&&te(e)}}function Y(e){var t=e.target,n=C().contains(t)||k.contains(t);if("mousemove"!==e.type||!n){var r=Q().concat(k).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:c}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=xe(o.placement),s=o.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,c="right"===a?s.left.x:0,f="left"===a?s.right.x:0,d=t.top-r+l>i,p=r-t.bottom-u>i,h=t.left-n+c>i,m=n-t.right-f>i;return d||p||h||m}))})(r,e)&&(V(),te(e))}}function G(e){J(e)||g.props.trigger.indexOf("click")>=0&&f||(g.props.interactive?g.hideWithInteractivity(e):te(e))}function $(e){g.props.trigger.indexOf("focusin")<0&&e.target!==C()||g.props.interactive&&e.relatedTarget&&k.contains(e.relatedTarget)||te(e)}function J(e){return!!Ve.isTouch&&j()!==e.type.indexOf("touch")>=0}function Z(){X();var t=g.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,l=P()?$e(k).arrow:null,u=i?{getBoundingClientRect:i,contextElement:i.contextElement||C()}:e,c=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(P()){var n=A().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];P()&&l&&c.push({name:"arrow",options:{element:l,padding:3}}),c.push.apply(c,(null==n?void 0:n.modifiers)||[]),g.popperInstance=ue(u,k,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:c}))}function X(){g.popperInstance&&(g.popperInstance.destroy(),g.popperInstance=null)}function Q(){return Se(k.querySelectorAll("[data-tippy-root]"))}function ee(e){g.clearDelayTimeouts(),e&&T("onTrigger",[g,e]),B();var t=M(!0),r=S(),o=r[0],i=r[1];Ve.isTouch&&"hold"===o&&i&&(t=i),t?n=setTimeout((function(){g.show()}),t):g.show()}function te(e){if(g.clearDelayTimeouts(),T("onUntrigger",[g,e]),g.state.isVisible){if(!(g.props.trigger.indexOf("mouseenter")>=0&&g.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=M(!1);t?r=setTimeout((function(){g.state.isVisible&&g.hide()}),t):o=requestAnimationFrame((function(){g.hide()}))}}else z()}}function tt(e,t){void 0===t&&(t={});var n=Ue.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Ne,me),window.addEventListener("blur",Be);var r,o=Object.assign({},t,{plugins:n}),i=(r=e,Ce(r)?[r]:function(e){return be(e,"NodeList")}(r)?Se(r):Array.isArray(r)?r:Se(document.querySelectorAll(r))).reduce((function(e,t){var n=t&&et(t,o);return n&&e.push(n),e}),[]);return Ce(e)?i[0]:i}tt.defaultProps=Ue,tt.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Ue[t]=e[t]}))},tt.currentInput=Ve;var nt=function(e){var t=void 0===e?{}:e,n=t.exclude,r=t.duration;Qe.forEach((function(e){var t=!1;if(n&&(t=Ae(n)?e.reference===n:e.popper===n.popper),!t){var o=e.props.duration;e.setProps({duration:r}),e.hide(),e.state.isDestroyed||e.setProps({duration:o})}}))},rt=Object.assign({},$,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),ot=function(e,t){var n;void 0===t&&(t={});var r,o=e,i=[],a=[],s=t.overrides,l=[],u=!1;function c(){a=o.map((function(e){return _e(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function f(){i=o.map((function(e){return e.reference}))}function d(e){o.forEach((function(t){e?t.enable():t.disable()}))}function p(e){return o.map((function(t){var n=t.setProps;return t.setProps=function(o){n(o),t.reference===r&&e.setProps(o)},function(){t.setProps=n}}))}function h(e,t){var n=a.indexOf(t);if(t!==r){r=t;var l=(s||[]).concat("content").reduce((function(e,t){return e[t]=o[n].props[t],e}),{});e.setProps(Object.assign({},l,{getReferenceClientRect:"function"==typeof l.getReferenceClientRect?l.getReferenceClientRect:function(){var e;return null==(e=i[n])?void 0:e.getBoundingClientRect()}}))}}d(!1),f(),c();var m={fn:function(){return{onDestroy:function(){d(!0)},onHidden:function(){r=null},onClickOutside:function(e){e.props.showOnCreate&&!u&&(u=!0,r=null)},onShow:function(e){e.props.showOnCreate&&!u&&(u=!0,h(e,i[0]))},onTrigger:function(e,t){h(e,t.currentTarget)}}}},v=tt(Pe(),Object.assign({},ke(t,["overrides"]),{plugins:[m].concat(t.plugins||[]),triggerTarget:a,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[rt])})})),y=v.show;v.show=function(e){if(y(),!r&&null==e)return h(v,i[0]);if(!r||null!=e){if("number"==typeof e)return i[e]&&h(v,i[e]);if(o.indexOf(e)>=0){var t=e.reference;return h(v,t)}return i.indexOf(e)>=0?h(v,e):void 0}},v.showNext=function(){var e=i[0];if(!r)return v.show(0);var t=i.indexOf(r);v.show(i[t+1]||e)},v.showPrevious=function(){var e=i[i.length-1];if(!r)return v.show(e);var t=i.indexOf(r),n=i[t-1]||e;v.show(n)};var b=v.setProps;return v.setProps=function(e){s=e.overrides||s,b(e)},v.setInstances=function(e){d(!0),l.forEach((function(e){return e()})),o=e,d(!1),f(),c(),l=p(v),v.setProps({triggerTarget:a})},l=p(v),v},it={mouseover:"mouseenter",focusin:"focus",click:"click"};function at(e,t){var n=[],r=[],o=!1,i=t.target,a=ke(t,["target"]),s=Object.assign({},a,{trigger:"manual",touch:!1}),l=Object.assign({touch:Ue.touch},a,{showOnCreate:!0}),u=tt(e,s);function c(e){if(e.target&&!o){var n=e.target.closest(i);if(n){var a=n.getAttribute("data-tippy-trigger")||t.trigger||Ue.trigger;if(!n._tippy&&!("touchstart"===e.type&&"boolean"==typeof l.touch||"touchstart"!==e.type&&a.indexOf(it[e.type])<0)){var s=tt(n,l);s&&(r=r.concat(s))}}}}function f(e,t,r,o){void 0===o&&(o=!1),e.addEventListener(t,r,o),n.push({node:e,eventType:t,handler:r,options:o})}return _e(u).forEach((function(e){var t=e.destroy,i=e.enable,a=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&r.forEach((function(e){e.destroy()})),r=[],n.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),n=[],t()},e.enable=function(){i(),r.forEach((function(e){return e.enable()})),o=!1},e.disable=function(){a(),r.forEach((function(e){return e.disable()})),o=!0},function(e){var t=e.reference;f(t,"touchstart",c,me),f(t,"mouseover",c),f(t,"focusin",c),f(t,"click",c)}(e)})),u}var st={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return{};var n=$e(e.popper),r=n.box,o=n.content,i=e.props.animateFill?function(){var e=Pe();return e.className=de,Re([e],"hidden"),e}():null;return{onCreate:function(){i&&(r.insertBefore(i,r.firstElementChild),r.setAttribute("data-animatefill",""),r.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(i){var e=r.style.transitionDuration,t=Number(e.replace("ms",""));o.style.transitionDelay=Math.round(t/10)+"ms",i.style.transitionDuration=e,Re([i],"visible")}},onShow:function(){i&&(i.style.transitionDuration="0ms")},onHide:function(){i&&Re([i],"hidden")}}}},lt={clientX:0,clientY:0},ut=[];function ct(e){var t=e.clientX,n=e.clientY;lt={clientX:t,clientY:n}}var ft={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=Te(e.props.triggerTarget||t),r=!1,o=!1,i=!0,a=e.props;function s(){return"initial"===e.props.followCursor&&e.state.isVisible}function l(){n.addEventListener("mousemove",f)}function u(){n.removeEventListener("mousemove",f)}function c(){r=!0,e.setProps({getReferenceClientRect:null}),r=!1}function f(n){var r=!n.target||t.contains(n.target),o=e.props.followCursor,i=n.clientX,a=n.clientY,s=t.getBoundingClientRect(),l=i-s.left,u=a-s.top;!r&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=i,r=a;"initial"===o&&(n=e.left+l,r=e.top+u);var s="horizontal"===o?e.top:r,c="vertical"===o?e.right:n,f="horizontal"===o?e.bottom:r,d="vertical"===o?e.left:n;return{width:c-d,height:f-s,top:s,right:c,bottom:f,left:d}}})}function d(){e.props.followCursor&&(ut.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",ct)}(n))}function p(){0===(ut=ut.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",ct)}(n)}return{onCreate:d,onDestroy:p,onBeforeUpdate:function(){a=e.props},onAfterUpdate:function(t,n){var i=n.followCursor;r||void 0!==i&&a.followCursor!==i&&(p(),i?(d(),!e.state.isMounted||o||s()||l()):(u(),c()))},onMount:function(){e.props.followCursor&&!o&&(i&&(f(lt),i=!1),s()||l())},onTrigger:function(e,t){Ee(t)&&(lt={clientX:t.clientX,clientY:t.clientY}),o="focus"===t.type},onHidden:function(){e.props.followCursor&&(c(),u(),i=!0)}}}},dt={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference,r=-1,o=!1,i=[],a={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(o){var a=o.state;e.props.inlinePositioning&&(-1!==i.indexOf(a.placement)&&(i=[]),t!==a.placement&&-1===i.indexOf(a.placement)&&(i.push(a.placement),e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n,r){if(n.length<2||null===e)return t;if(2===n.length&&r>=0&&n[0].left>n[1].right)return n[r]||t;switch(e){case"top":case"bottom":var o=n[0],i=n[n.length-1],a="top"===e,s=o.top,l=i.bottom,u=a?o.left:i.left,c=a?o.right:i.right;return{top:s,bottom:l,left:u,right:c,width:c-u,height:l-s};case"left":case"right":var f=Math.min.apply(Math,n.map((function(e){return e.left}))),d=Math.max.apply(Math,n.map((function(e){return e.right}))),p=n.filter((function(t){return"left"===e?t.left===f:t.right===d})),h=p[0].top,m=p[p.length-1].bottom;return{top:h,bottom:m,left:f,right:d,width:d-f,height:m-h};default:return t}}(xe(e),n.getBoundingClientRect(),Se(n.getClientRects()),r)}(a.placement)}})),t=a.placement)}};function s(){var t;o||(t=function(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter((function(e){return e.name!==t.name})),[t])})}}(e.props,a),o=!0,e.setProps(t),o=!1)}return{onCreate:s,onAfterUpdate:s,onTrigger:function(t,n){if(Ee(n)){var o=Se(e.reference.getClientRects()),i=o.find((function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY})),a=o.indexOf(i);r=a>-1?a:r}},onHidden:function(){r=-1}}}},pt={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function r(t){return!0===e.props.sticky||e.props.sticky===t}var o=null,i=null;function a(){var s=r("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,l=r("popper")?n.getBoundingClientRect():null;(s&&ht(o,s)||l&&ht(i,l))&&e.popperInstance&&e.popperInstance.update(
2),o=s,i=l,e.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){e.props.sticky&&a()}}}};function ht(e,t){return!e||!t||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left}tt.setDefaultProps({render:Je});const mt=tt},21614:function(e,t,n){"use strict";var r;n.r(t),n.d(t,{NIL:function(){return A},parse:function(){return v},stringify:function(){return c},v1:function(){return m},v3:function(){return S},v4:function(){return j},v5:function(){return E},validate:function(){return s},version:function(){return M}});var o=new Uint8Array(16);function i(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const a=/^(?:[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,s=function(e){return"string"==typeof e&&a.test(e)};for(var l=[],u=0;u<256;++u)l.push((u+256).toString(16).substr(1));const c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n};var f,d,p=0,h=0;const m=function(e,t,n){var r=t&&n||0,o=t||new Array(16),a=(e=e||{}).node||f,s=void 0!==e.clockseq?e.clockseq:d;if(null==a||null==s){var l=e.random||(e.rng||i)();null==a&&(a=f=[1|l[0],l[1],l[2],l[3],l[4],l[5]]),null==s&&(s=d=16383&(l[6]<<8|l[7]))}var u=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:h+1,v=u-p+(m-h)/1e4;if(v<0&&void 0===e.clockseq&&(s=s+1&16383),(v<0||u>p)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=u,h=m,d=s;var y=(1e4*(268435455&(u+=122192928e5))+m)%4294967296;o[r++]=y>>>24&255,o[r++]=y>>>16&255,o[r++]=y>>>8&255,o[r++]=255&y;var b=u/4294967296*1e4&268435455;o[r++]=b>>>8&255,o[r++]=255&b,o[r++]=b>>>24&15|16,o[r++]=b>>>16&255,o[r++]=s>>>8|128,o[r++]=255&s;for(var g=0;g<6;++g)o[r+g]=a[g];return t||c(o)},v=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function y(e,t,n){function r(e,r,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=v(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(r),a.set(e,r.length),(a=n(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,o){i=i||0;for(var s=0;s<16;++s)o[i+s]=a[s];return o}return c(a)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function b(e){return 14+(e+64>>>9<<4)+1}function g(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function w(e,t,n,r,o,i){return g((a=g(g(t,e),g(r,i)))<<(s=o)|a>>>32-s,n);var a,s}function k(e,t,n,r,o,i,a){return w(t&n|~t&r,e,t,o,i,a)}function _(e,t,n,r,o,i,a){return w(t&r|n&~r,e,t,o,i,a)}function O(e,t,n,r,o,i,a){return w(t^n^r,e,t,o,i,a)}function x(e,t,n,r,o,i,a){return w(n^(t|~r),e,t,o,i,a)}const S=y("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",o=0;o<n;o+=8){var i=e[o>>5]>>>o%32&255,a=parseInt(r.charAt(i>>>4&15)+r.charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[b(t)-1]=t;
vendor: 3,911 bytes, line 2
2for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var s=n,l=r,u=o,c=i;n=k(n,r,o,i,e[a],7,-680876936),i=k(i,n,r,o,e[a+1],12,-389564586),o=k(o,i,n,r,e[a+2],17,606105819),r=k(r,o,i,n,e[a+3],22,-1044525330),n=k(n,r,o,i,e[a+4],7,-176418897),i=k(i,n,r,o,e[a+5],12,1200080426),o=k(o,i,n,r,e[a+6],17,-1473231341),r=k(r,o,i,n,e[a+7],22,-45705983),n=k(n,r,o,i,e[a+8],7,1770035416),i=k(i,n,r,o,e[a+9],12,-1958414417),o=k(o,i,n,r,e[a+10],17,-42063),r=k(r,o,i,n,e[a+11],22,-1990404162),n=k(n,r,o,i,e[a+12],7,1804603682),i=k(i,n,r,o,e[a+13],12,-40341101),o=k(o,i,n,r,e[a+14],17,-1502002290),n=_(n,r=k(r,o,i,n,e[a+15],22,1236535329),o,i,e[a+1],5,-165796510),i=_(i,n,r,o,e[a+6],9,-1069501632),o=_(o,i,n,r,e[a+11],14,643717713),r=_(r,o,i,n,e[a],20,-373897302),n=_(n,r,o,i,e[a+5],5,-701558691),i=_(i,n,r,o,e[a+10],9,38016083),o=_(o,i,n,r,e[a+15],14,-660478335),r=_(r,o,i,n,e[a+4],20,-405537848),n=_(n,r,o,i,e[a+9],5,568446438),i=_(i,n,r,o,e[a+14],9,-1019803690),o=_(o,i,n,r,e[a+3],14,-187363961),r=_(r,o,i,n,e[a+8],20,1163531501),n=_(n,r,o,i,e[a+13],5,-1444681467),i=_(i,n,r,o,e[a+2],9,-51403784),o=_(o,i,n,r,e[a+7],14,1735328473),n=O(n,r=_(r,o,i,n,e[a+12],20,-1926607734),o,i,e[a+5],4,-378558),i=O(i,n,r,o,e[a+8],11,-2022574463),o=O(o,i,n,r,e[a+11],16,1839030562),r=O(r,o,i,n,e[a+14],23,-35309556),n=O(n,r,o,i,e[a+1],4,-1530992060),i=O(i,n,r,o,e[a+4],11,1272893353),o=O(o,i,n,r,e[a+7],16,-155497632),r=O(r,o,i,n,e[a+10],23,-1094730640),n=O(n,r,o,i,e[a+13],4,681279174),i=O(i,n,r,o,e[a],11,-358537222),o=O(o,i,n,r,e[a+3],16,-722521979),r=O(r,o,i,n,e[a+6],23,76029189),n=O(n,r,o,i,e[a+9],4,-640364487),i=O(i,n,r,o,e[a+12],11,-421815835),o=O(o,i,n,r,e[a+15],16,530742520),n=x(n,r=O(r,o,i,n,e[a+2],23,-995338651),o,i,e[a],6,-198630844),i=x(i,n,r,o,e[a+7],10,1126891415),o=x(o,i,n,r,e[a+14],15,-1416354905),r=x(r,o,i,n,e[a+5],21,-57434055),n=x(n,r,o,i,e[a+12],6,1700485571),i=x(i,n,r,o,e[a+3],10,-1894986606),o=x(o,i,n,r,e[a+10],15,-1051523),r=x(r,o,i,n,e[a+1],21,-2054922799),n=x(n,r,o,i,e[a+8],6,1873313359),i=x(i,n,r,o,e[a+15],10,-30611744),o=x(o,i,n,r,e[a+6],15,-1560198380),r=x(r,o,i,n,e[a+13],21,1309151649),n=x(n,r,o,i,e[a+4],6,-145523070),i=x(i,n,r,o,e[a+11],10,-1120210379),o=x(o,i,n,r,e[a+2],15,718787259),r=x(r,o,i,n,e[a+9],21,-343485551),n=g(n,s),r=g(r,l),o=g(o,u),i=g(i,c)}return[n,r,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(b(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))})),j=function(e,t,n){var r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return c(r)};function P(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function C(e,t){return e<<t|e>>>32-t}const E=y("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a),l=0;l<a;++l){for(var u=new Uint32Array(16),c=0;c<16;++c)u[c]=e[64*l+4*c]<<24|e[64*l+4*c+1]<<16|e[64*l+4*c+2]<<8|e[64*l+4*c+3];s[l]=u}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<a;++f){for(var d=new Uint32Array(80),p=0;p<16;++p)d[p]=s[f][p];for(var h=16;h<80;++h)d[h]=C(d[h-3]^d[h-8]^d[h-14]^d[h-16],1);for(var m=n[0],v=n[1],y=n[2],b=n[3],g=n[4],w=0;w<80;++w){var k=Math.floor(w/20),_=C(m,5)+P(k,v,y,b)+g+t[k]+d[w]>>>0;g=b,b=y,y=C(v,30)>>>0,v=m,m=_}n[0]=n[0]+m>>>0,n[1]=n[1]+v>>>0,n[2]=n[2]+y>>>0,n[3]=n[3]+b>>>0,n[4]=n[4]+g>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>
vendor: 10,236 bytes, line 2
2>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),A="00000000-0000-0000-0000-000000000000",M=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},34901:function(e,t,n){"use strict";n.r(t),n.d(t,{JsonPatchError:function(){return v},_areEquals:function(){return P},applyOperation:function(){return _},applyPatch:function(){return O},applyReducer:function(){return x},compare:function(){return I},deepClone:function(){return c},default:function(){return V},escapePathComponent:function(){return d},generate:function(){return T},getValueByPointer:function(){return k},observe:function(){return R},unescapePathComponent:function(){return p},unobserve:function(){return M},validate:function(){return j},validator:function(){return S}});var r={};n.r(r),n.d(r,{JsonPatchError:function(){return y},_areEquals:function(){return P},applyOperation:function(){return _},applyPatch:function(){return O},applyReducer:function(){return x},deepClone:function(){return b},getValueByPointer:function(){return k},validate:function(){return j},validator:function(){return S}});var o={};n.r(o),n.d(o,{compare:function(){return I},generate:function(){return T},observe:function(){return R},unobserve:function(){return M}});var i,a=(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},i(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=Object.prototype.hasOwnProperty;function l(e,t){return s.call(e,t)}function u(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);for(var r in t=[],e)l(e,r)&&t.push(r);return t}function c(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function f(e){for(var t,n=0,r=e.length;n<r;){if(!((t=e.charCodeAt(n))>=48&&t<=57))return!1;n++}return!0}function d(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function p(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function h(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(h(e[t]))return!0}else if("object"==typeof e){var r=u(e),o=r.length;for(t=0;t<o;t++)if(h(e[r[t]]))return!0}return!1}function m(e,t){var n=[e];for(var r in t){var o="object"==typeof t[r]?JSON.stringify(t[r],null,2):t[r];void 0!==o&&n.push(r+": "+o)}return n.join("\n")}var v=function(e){function t(t,n,r,o,i){var a=this.constructor,s=e.call(this,m(t,{name:n,index:r,operation:o,tree:i}))||this;return s.name=n,s.index=r,s.operation=o,s.tree=i,Object.setPrototypeOf(s,a.prototype),s.message=m(t,{name:n,index:r,operation:o,tree:i}),s}return a(t,e),t}(Error),y=v,b=c,g={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=k(n,this.path);r&&(r=c(r));var o=_(n,{op:"remove",path:this.from}).removed;return _(n,{op:"add",path:this.path,value:o}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=k(n,this.from);return _(n,{op:"add",path:this.path,value:c(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:P(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},w={add:function(e,t,n){return f(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){return{newDocument:n,removed:e.splice(t,1)[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:g.move,copy:g.copy,test:g.test,_get:g._get};function k(e,t){if(""==t)return e;var n={op:"_get",path:t};return _(e,n),n.value}function _(e,t,n,r,o,i){if(void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===o&&(o=!0),void 0===i&&(i=0),n&&("function"==typeof n?n(t,0,e,t.path):S(t,0)),""===t.path){var a={newDocument:e};if("add"===t.op)return a.newDocument=t.value,a;if("replace"===t.op)return a.newDocument=t.value,a.removed=e,a;if("move"===t.op||"copy"===t.op)return a.newDocument=k(e,t.from),"move"===t.op&&(a.removed=e),a;if("test"===t.op){if(a.test=P(e,t.value),!1===a.test)throw new y("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a.newDocument=e,a}if("remove"===t.op)return a.removed=e,a.newDocument=null,a;if("_get"===t.op)return t.value=e,a;if(n)throw new y("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return a}r||(e=c(e));var s=(t.path||"").split("/"),l=e,u=1,d=s.length,h=void 0,m=void 0,v=void 0;for(v="function"==typeof n?n:S;;){if((m=s[u])&&-1!=m.indexOf("~")&&(m=p(m)),o&&"__proto__"==m)throw new TypeError("JSON-Patch: modifying `__proto__` 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(n&&void 0===h&&(void 0===l[m]?h=s.slice(0,u).join("/"):u==d-1&&(h=t.path),void 0!==h&&v(t,0,e,h)),u++,Array.isArray(l)){if("-"===m)m=l.length;else{if(n&&!f(m))throw new y("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",i,t,e);f(m)&&(m=~~m)}if(u>=d){if(n&&"add"===t.op&&m>l.length)throw new y("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(a=w[t.op].call(t,l,m,e)).test)throw new y("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(u>=d){if(!1===(a=g[t.op].call(t,l,m,e)).test)throw new y("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(l=l[m],n&&u<d&&(!l||"object"!=typeof l))throw new y("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function O(e,t,n,r,o){if(void 0===r&&(r=!0),void 0===o&&(o=!0),n&&!Array.isArray(t))throw new y("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(e=c(e));for(var i=new Array(t.length),a=0,s=t.length;a<s;a++)i[a]=_(e,t[a],n,!0,o,a),e=i[a].newDocument;return i.newDocument=e,i}function x(e,t,n){var r=_(e,t);if(!1===r.test)throw new y("Test operation failed","TEST_OPERATION_FAILED",n,t,e);return r.newDocument}function S(e,t,n,r){if("object"!=typeof e||null===e||Array.isArray(e))throw new y("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,n);if(!g[e.op])throw new y("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n);if("string"!=typeof e.path)throw new y("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,n);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new y('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new y("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new y("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&h(e.value))throw new y("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n)if("add"==e.op){var o=e.path.split("/").length,i=r.split("/").length;if(o!==i+1&&o!==i)throw new y("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==r)throw new y("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if("move"===e.op||"copy"===e.op){var a=j([{op:"_get",path:e.from,value:void 0}],n);if(a&&"OPERATION_PATH_UNRESOLVABLE"===a.name)throw new y("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}function j(e,t,n){try{if(!Array.isArray(e))throw new y("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)O(c(t),c(e),n||!0);else{n=n||S;for(var r=0;r<e.length;r++)n(e[r],r,t,void 0)}}catch(e){if(e instanceof y)return e;throw e}}function P(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,r,o,i=Array.isArray(e),a=Array.isArray(t);if(i&&a){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!P(e[n],t[n]))return!1;return!0}if(i!=a)return!1;var s=Object.keys(e);if((r=s.length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!t.hasOwnProperty(s[n]))return!1;for(n=r;0!=n--;)if(!P(e[o=s[n]],t[o]))return!1;return!0}return e!=e&&t!=t}var C=new WeakMap,E=function(e){this.observers=new Map,this.obj=e},A=function(e,t){this.callback=e,this.observer=t};function M(e,t){t.unobserve()}function R(e,t){var n,r=function(e){return C.get(e)}(e);if(r){var o=function(e,t){return e.observers.get(t)}(r,t);n=o&&o.observer}else r=new E(e),C.set(e,r);if(n)return n;if(n={},r.value=c(e),t){n.callback=t,n.next=null;var i=function(){T(n)},a=function(){clearTimeout(n.next),n.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",a),window.addEventListener("keyup",a),window.addEventListener("mousedown",a),window.addEventListener("keydown",a),window.addEventListener("change",a))}return n.patches=[],n.object=e,n.unobserve=function(){T(n),clearTimeout(n.next),function(e,t){e.observers.delete(t.callback)}(r,n),"undefined"!=typeof window&&(window.removeEventListener("mouseup",a),window.removeEventListener("keyup",a),window.removeEventListener("mousedown",a),window.removeEventListener("keydown",a),window.removeEventListener("change",a))},r.observers.set(t,new A(t,n)),n}function T(e,t){void 0===t&&(t=!1);var n=C.get(e.object);D(n.value,e.object,e.patches,"",t),e.patches.length&&O(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function D(e,t,n,r,o){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());
2for(var i=u(t),a=u(e),s=!1,f=a.length-1;f>=0;f--){var p=e[m=a[f]];if(!l(t,m)||void 0===t[m]&&void 0!==p&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+d(m),value:c(p)}),n.push({op:"remove",path:r+"/"+d(m)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}));else{var h=t[m];"object"==typeof p&&null!=p&&"object"==typeof h&&null!=h&&Array.isArray(p)===Array.isArray(h)?D(p,h,n,r+"/"+d(m),o):p!==h&&(o&&n.push({op:"test",path:r+"/"+d(m),value:c(p)}),n.push({op:"replace",path:r+"/"+d(m),value:c(h)}))}}if(s||i.length!=a.length)for(f=0;f<i.length;f++){var m;l(e,m=i[f])||void 0===t[m]||n.push({op:"add",path:r+"/"+d(m),value:c(t[m])})}}}function I(e,t,n){void 0===n&&(n=!1);var r=[];return D(e,t,r,"",n),r}const V=Object.assign({},r,o,{JsonPatchError:v,deepClone:c,escapePathComponent:d,unescapePathComponent:p})}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.amdD=function(){throw new Error("define cannot be used indirect")},r.amdO={},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var o={};return function(){"use strict";var e=o;Object.defineProperty(e,"Formio",{enumerable:!0,get:function(){return n.default}}),r(47941),r(41539),r(54747),r(82526),r(41817),r(32165),r(66992),r(78783),r(33948);var t=k(r(96486)),n=k(r(19161)),i=k(r(15178)),a=k(r(57514)),s=k(r(39086)),l=k(r(98890)),u=k(r(51508)),c=k(r(10695)),f=k(r(24897)),d=k(r(4338)),p=k(r(3764)),h=k(r(50136)),m=k(r(87892)),v=k(r(20168)),y=k(r(22457)),b=k(r(71277)),g=k(r(55666)),w=k(r(193));function k(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)}n.default.loadModules=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"".concat(n.default.getApiUrl(),"/externalModules.js"),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"externalModules";n.default.requireLibrary(t,t,e,!0).then((function(e){n.default.use(e)}))},n.default.Components=s.default,n.default.Templates=u.default,n.default.Builders=a.default,n.default.Utils=g.default,n.default.Form=b.default,n.default.Displays=l.default,n.default.Providers=c.default,n.default.Rules=f.default,n.default.Widgets=y.default,n.default.Evaluator=w.default,n.default.Conjunctions=d.default,n.default.Operators=p.default,n.default.QuickRules=h.default,n.default.Transformers=m.default,n.default.ValueSources=v.default,n.default.AllComponents=i.default,n.default.Formio=n.default,n.default.Components.setComponents(i.default);var O=function(e){if("object"===_(e))for(var r=0,o=Object.keys(e);r<o.length;r++){var i=o[r],a=e.framework||n.default.Templates.framework||"bootstrap";switch(i){case"options":n.default.options=t.default.merge(n.default.options,e.options);break;case"templates":for(var s=0,l=Object.keys(e.templates);s<l.length;s++){var u=l[s];n.default.Templates.extendTemplate(u,e.templates[u])}e.templates[a]&&(n.default.Templates.current=e.templates[a]);break;case"components":n.default.Components.setComponents(e.components);break;case"framework":n.default.Templates.framework=e.framework;break;case"fetch":for(var c=0,f=Object.keys(e.fetch);c<f.length;c++){var d=f[c];n.default.registerPlugin(e.fetch[d],d)}break;case"providers":for(var p=0,h=Object.keys(e.providers);p<h.length;p++){var m=h[p];n.default.Providers.addProviders(m,e.providers[m])}break;case"displays":n.default.Displays.addDisplays(e.displays);break;case"builders":n.default.Builders.addBuilders(e.builders);break;case"rules":n.default.Rules.addRules(e.rules);break;case"evaluator":n.default.Evaluator.registerEvaluator(e.evaluator);break;case"conjunctions":n.default.Conjunctions.addConjunctions(e.conjunctions);break;case"operators":n.default.Operators.addOperators(e.operators);break;case"quickRules":n.default.QuickRules.addQuickRules(e.quickRules);break;case"transformers":n.default.Transformers.addTransformers(e.transformers);break;case"valueSources":n.default.ValueSources.addValueSources(e.valueSources);break;default:console.log("Unknown plugin option",i)}}};n.default.use=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach((function(e){Array.isArray(e)?e.forEach((function(e){return O(e)})):O(e)}))}}(),o.Formio}()}));
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.