formio.full.min.js 1.5 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /*! formiojs v4.12.0 | https://unpkg.com/formiojs@4.12.0/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()}(window,(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="",n(n.s=271)}([function(e,t,n){"use strict";var r=n(15),o=n(20),i=n(114),a=n(38),s=n(46),u=n(33),l=n(100),c=n(152),f=n(101),d=n(28),p=n(209),h=d("isConcatSpreadable"),m=p>=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),y=f("concat"),v=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,forced:!m||!y},{concat:function(e){var t,n,r,o,i,a=s(this),f=c(a,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(v(i=-1===t?a:arguments[t])){if(d+(o=u(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,d++)n in i&&l(f,d,i[n])}else{if(d>=9007199254740991)throw TypeError("Maximum allowed index exceeded");l(f,d++,i)}return f.length=d,f}})},function(e,t,n){"use strict";var r=n(52),o=n(115),i=n(99),a=n(79),s=n(153),u=a.set,l=a.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){u(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=l(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")},function(e,t,n){var r=n(154),o=n(55),i=n(279);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,n){"use strict";var r=n(15),o=n(24),i=n(89),a=n(88),s=n(32),u=n(151),l=n(200),c=n(20),f=n(42),d=n(114),p=n(38),h=n(43),m=n(46),y=n(52),v=n(87),b=n(77),g=n(81),w=n(96),k=n(80),_=n(276),O=n(150),S=n(60),x=n(36),P=n(111),j=n(49),C=n(55),E=n(148),A=n(112),M=n(94),R=n(93),T=n(28),D=n(201),L=n(202),I=n(97),V=n(79),N=n(47).forEach,F=A("hidden"),U=T("toPrimitive"),z=V.set,B=V.getterFor("Symbol"),H=Object.prototype,q=o.Symbol,W=i("JSON","stringify"),Y=S.f,K=x.f,G=_.f,J=P.f,Z=E("symbols"),X=E("op-symbols"),$=E("string-to-symbol-registry"),Q=E("symbol-to-string-registry"),ee=E("wks"),te=o.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=s&&c((function(){return 7!=g(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Y(H,t);r&&delete H[t],K(e,t,n),r&&e!==H&&K(H,t,r)}:K,oe=function(e,t){var n=Z[e]=g(q.prototype);return z(n,{type:"Symbol",tag:e,description:t}),s||(n.description=t),n},ie=u&&"symbol"==typeof q.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof q},ae=function(e,t,n){e===H&&ae(X,t,n),h(e);var r=v(t,!0);return h(n),f(Z,r)?(n.enumerable?(f(e,F)&&e[F][r]&&(e[F][r]=!1),n=g(n,{enumerable:b(0,!1)})):(f(e,F)||K(e,F,b(1,{})),e[F][r]=!0),re(e,r,n)):K(e,r,n)},se=function(e,t){h(e);var n=y(t),r=w(n).concat(fe(n));return N(r,(function(t){s&&!ue.call(n,t)||ae(e,t,n[t])})),e},ue=function(e){var t=v(e,!0),n=J.call(this,t);return!(this===H&&f(Z,t)&&!f(X,t))&&(!(n||!f(this,t)||!f(Z,t)||f(this,F)&&this[F][t])||n)},le=function(e,t){var n=y(e),r=v(t,!0);if(n!==H||!f(Z,r)||f(X,r)){var o=Y(n,r);return!o||!f(Z,r)||f(n,F)&&n[F][r]||(o.enumerable=!0),o}},ce=function(e){var t=G(y(e)),n=[];return N(t,(function(e){f(Z,e)||f(M,e)||n.push(e)})),n},fe=function(e){var t=e===H,n=G(t?X:y(e)),r=[];return N(n,(function(e){!f(Z,e)||t&&!f(H,e)||r.push(Z[e])})),r};(u||(C((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=R(e),n=function(e){this===H&&n.call(X,e),f(this,F)&&f(this[F],t)&&(this[F][t]=!1),re(this,t,b(1,e))};return s&&ne&&re(H,t,{configurable:!0,set:n}),oe(t,e)}).prototype,"toString",(function(){return B(this).tag})),P.f=ue,x.f=ae,S.f=le,k.f=_.f=ce,O.f=fe,s&&(K(q.prototype,"description",{configurable:!0,get:function(){return B(this).description}}),a||C(H,"propertyIsEnumerable",ue,{unsafe:!0}))),l||(D.f=function(e){return oe(T(e),e)}),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),N(w(ee),(function(e){L(e)})),r({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=String(e);if(f($,t))return $[t];var n=q(t);return $[t]=n,Q[n]=t,n},keyFor:function(e){if(!ie(e))throw TypeError(e+" is not a symbol");if(f(Q,e))return Q[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(e,t){return void 0===t?g(e):se(g(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:le}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ce,getOwnPropertySymbols:fe}),r({target:"Object",stat:!0,forced:c((function(){O.f(1)}))},{getOwnPropertySymbols:function(e){return O.f(m(e))}}),W)&&r({target:"JSON",stat:!0,forced:!u||c((function(){var e=q();return"[null]"!=W([e])||"{}"!=W({a:e})||"{}"!=W(Object(e))}))},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(p(t)||void 0!==e)&&!ie(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ie(t))return t}),o[1]=t,W.apply(null,o)}});q.prototype[U]||j(q.prototype,U,q.prototype.valueOf),I(q,"Symbol"),M[F]=!0},function(e,t,n){var r=n(24),o=n(207),i=n(1),a=n(49),s=n(28),u=s("iterator"),l=s("toStringTag"),c=i.values;for(var f in o){var d=r[f],p=d&&d.prototype;if(p){if(p[u]!==c)try{a(p,u,c)}catch(e){p[u]=c}if(p[l]||a(p,l,f),o[f])for(var h in i)if(p[h]!==i[h])try{a(p,h,i[h])}catch(e){p[h]=i[h]}}}},function(e,t,n){"use strict";var r=n(55),o=n(43),i=n(20),a=n(119),s=RegExp.prototype,u=s.toString,l=i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),c="toString"!=u.name;(l||c)&&r(RegExp.prototype,"toString",(function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in s)?a.call(e):n)}),{unsafe:!0})},function(e,t,n){"use strict";var r=n(206).charAt,o=n(79),i=n(153),a=o.set,s=o.getterFor("String Iterator");i(String,"String",(function(e){a(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=s(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})}))},function(e,t,n){"use strict";var r=n(15),o=n(32),i=n(24),a=n(42),s=n(38),u=n(36).f,l=n(196),c=i.Symbol;if(o&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var f={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new c(e):void 0===e?c():c(e);return""===e&&(f[t]=!0),t};l(d,c);var p=d.prototype=c.prototype;p.constructor=d;var h=p.toString,m="Symbol(test)"==String(c("test")),y=/^Symbol\((.*)\)[^)]+$/;u(p,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=h.call(e);if(a(f,e))return"";var n=m?t.slice(7,-1):t.replace(y,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},function(e,t,n){n(202)("iterator")},function(e,t,n){var r=n(15),o=n(89),i=n(82),a=n(43),s=n(38),u=n(81),l=n(282),c=n(20),f=o("Reflect","construct"),d=c((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),p=!c((function(){f((function(){}))})),h=d||p;r({target:"Reflect",stat:!0,forced:h,sham:h},{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(p&&!d)return f(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 r.push.apply(r,t),new(l.apply(e,r))}var o=n.prototype,c=u(s(o)?o:Object.prototype),h=Function.apply.call(e,c,t);return s(h)?h:c}})},function(e,t,n){var r=n(15),o=n(20),i=n(46),a=n(91),s=n(205);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},function(e,t,n){(function(e,r){var o;
  3. /**
  4. * @license
  5. * Lodash <https://lodash.com/>
  6. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  7. * Released under MIT license <https://lodash.com/license>
  8. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  9. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  10. */(function(){var i="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",l="[object Array]",c="[object Boolean]",f="[object Date]",d="[object Error]",p="[object Function]",h="[object GeneratorFunction]",m="[object Map]",y="[object Number]",v="[object Object]",b="[object RegExp]",g="[object Set]",w="[object String]",k="[object Symbol]",_="[object WeakMap]",O="[object ArrayBuffer]",S="[object DataView]",x="[object Float32Array]",P="[object Float64Array]",j="[object Int8Array]",C="[object Int16Array]",E="[object Int32Array]",A="[object Uint8Array]",M="[object Uint16Array]",R="[object Uint32Array]",T=/\b__p \+= '';/g,D=/\b(__p \+=) '' \+/g,L=/(__e\(.*?\)|\b__t\)) \+\n'';/g,I=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,N=RegExp(I.source),F=RegExp(V.source),U=/<%-([\s\S]+?)%>/g,z=/<%([\s\S]+?)%>/g,B=/<%=([\s\S]+?)%>/g,H=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/,W=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,K=RegExp(Y.source),G=/^\s+|\s+$/g,J=/^\s+/,Z=/\s+$/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,oe=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,ue=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,fe=/['\n\r\u2028\u2029\\]/g,de="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pe="\\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",he="[\\ud800-\\udfff]",me="["+pe+"]",ye="["+de+"]",ve="\\d+",be="[\\u2700-\\u27bf]",ge="[a-z\\xdf-\\xf6\\xf8-\\xff]",we="[^\\ud800-\\udfff"+pe+ve+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ke="\\ud83c[\\udffb-\\udfff]",_e="[^\\ud800-\\udfff]",Oe="(?:\\ud83c[\\udde6-\\uddff]){2}",Se="[\\ud800-\\udbff][\\udc00-\\udfff]",xe="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Pe="(?:"+ge+"|"+we+")",je="(?:"+xe+"|"+we+")",Ce="(?:"+ye+"|"+ke+")"+"?",Ee="[\\ufe0e\\ufe0f]?"+Ce+("(?:\\u200d(?:"+[_e,Oe,Se].join("|")+")[\\ufe0e\\ufe0f]?"+Ce+")*"),Ae="(?:"+[be,Oe,Se].join("|")+")"+Ee,Me="(?:"+[_e+ye+"?",ye,Oe,Se,he].join("|")+")",Re=RegExp("['’]","g"),Te=RegExp(ye,"g"),De=RegExp(ke+"(?="+ke+")|"+Me+Ee,"g"),Le=RegExp([xe+"?"+ge+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[me,xe,"$"].join("|")+")",je+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[me,xe+Pe,"$"].join("|")+")",xe+"?"+Pe+"+(?:['’](?:d|ll|m|re|s|t|ve))?",xe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve,Ae].join("|"),"g"),Ie=RegExp("[\\u200d\\ud800-\\udfff"+de+"\\ufe0e\\ufe0f]"),Ve=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ne=["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"],Fe=-1,Ue={};Ue[x]=Ue[P]=Ue[j]=Ue[C]=Ue[E]=Ue[A]=Ue["[object Uint8ClampedArray]"]=Ue[M]=Ue[R]=!0,Ue[u]=Ue[l]=Ue[O]=Ue[c]=Ue[S]=Ue[f]=Ue[d]=Ue[p]=Ue[m]=Ue[y]=Ue[v]=Ue[b]=Ue[g]=Ue[w]=Ue[_]=!1;var ze={};ze[u]=ze[l]=ze[O]=ze[S]=ze[c]=ze[f]=ze[x]=ze[P]=ze[j]=ze[C]=ze[E]=ze[m]=ze[y]=ze[v]=ze[b]=ze[g]=ze[w]=ze[k]=ze[A]=ze["[object Uint8ClampedArray]"]=ze[M]=ze[R]=!0,ze[d]=ze[p]=ze[_]=!1;var Be={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},He=parseFloat,qe=parseInt,We="object"==typeof e&&e&&e.Object===Object&&e,Ye="object"==typeof self&&self&&self.Object===Object&&self,Ke=We||Ye||Function("return this")(),Ge=t&&!t.nodeType&&t,Je=Ge&&"object"==typeof r&&r&&!r.nodeType&&r,Ze=Je&&Je.exports===Ge,Xe=Ze&&We.process,$e=function(){try{var e=Je&&Je.require&&Je.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(e){}}(),Qe=$e&&$e.isArrayBuffer,et=$e&&$e.isDate,tt=$e&&$e.isMap,nt=$e&&$e.isRegExp,rt=$e&&$e.isSet,ot=$e&&$e.isTypedArray;function it(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 at(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 st(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function ut(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function lt(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 ct(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 ft(e,t){return!!(null==e?0:e.length)&&kt(e,t,0)>-1}function dt(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 pt(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 ht(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function mt(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 yt(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 vt(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 bt=xt("length");function gt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function wt(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 kt(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):wt(e,Ot,n)}function _t(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Ot(e){return e!=e}function St(e,t){var n=null==e?0:e.length;return n?Ct(e,t)/n:NaN}function xt(e){return function(t){return null==t?void 0:t[e]}}function Pt(e){return function(t){return null==e?void 0:e[t]}}function jt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Ct(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}function Et(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function At(e){return function(t){return e(t)}}function Mt(e,t){return pt(t,(function(t){return e[t]}))}function Rt(e,t){return e.has(t)}function Tt(e,t){for(var n=-1,r=e.length;++n<r&&kt(t,e[n],0)>-1;);return n}function Dt(e,t){for(var n=e.length;n--&&kt(t,e[n],0)>-1;);return n}function Lt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var It=Pt({"À":"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":"'n","ſ":"s"}),Vt=Pt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Nt(e){return"\\"+Be[e]}function Ft(e){return Ie.test(e)}function Ut(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function zt(e,t){return function(n){return e(t(n))}}function Bt(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,i[o++]=n)}return i}function Ht(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function qt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Wt(e){return Ft(e)?function(e){var t=De.lastIndex=0;for(;De.test(e);)++t;return t}(e):bt(e)}function Yt(e){return Ft(e)?function(e){return e.match(De)||[]}(e):function(e){return e.split("")}(e)}var Kt=Pt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Gt=function e(t){var n,r=(t=null==t?Ke:Gt.defaults(Ke.Object(),t,Gt.pick(Ke,Ne))).Array,o=t.Date,de=t.Error,pe=t.Function,he=t.Math,me=t.Object,ye=t.RegExp,ve=t.String,be=t.TypeError,ge=r.prototype,we=pe.prototype,ke=me.prototype,_e=t["__core-js_shared__"],Oe=we.toString,Se=ke.hasOwnProperty,xe=0,Pe=(n=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",je=ke.toString,Ce=Oe.call(me),Ee=Ke._,Ae=ye("^"+Oe.call(Se).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=Ze?t.Buffer:void 0,De=t.Symbol,Ie=t.Uint8Array,Be=Me?Me.allocUnsafe:void 0,We=zt(me.getPrototypeOf,me),Ye=me.create,Ge=ke.propertyIsEnumerable,Je=ge.splice,Xe=De?De.isConcatSpreadable:void 0,$e=De?De.iterator:void 0,bt=De?De.toStringTag:void 0,Pt=function(){try{var e=ei(me,"defineProperty");return e({},"",{}),e}catch(e){}}(),Jt=t.clearTimeout!==Ke.clearTimeout&&t.clearTimeout,Zt=o&&o.now!==Ke.Date.now&&o.now,Xt=t.setTimeout!==Ke.setTimeout&&t.setTimeout,$t=he.ceil,Qt=he.floor,en=me.getOwnPropertySymbols,tn=Me?Me.isBuffer:void 0,nn=t.isFinite,rn=ge.join,on=zt(me.keys,me),an=he.max,sn=he.min,un=o.now,ln=t.parseInt,cn=he.random,fn=ge.reverse,dn=ei(t,"DataView"),pn=ei(t,"Map"),hn=ei(t,"Promise"),mn=ei(t,"Set"),yn=ei(t,"WeakMap"),vn=ei(me,"create"),bn=yn&&new yn,gn={},wn=ji(dn),kn=ji(pn),_n=ji(hn),On=ji(mn),Sn=ji(yn),xn=De?De.prototype:void 0,Pn=xn?xn.valueOf:void 0,jn=xn?xn.toString:void 0;function Cn(e){if(qa(e)&&!Ta(e)&&!(e instanceof Rn)){if(e instanceof Mn)return e;if(Se.call(e,"__wrapped__"))return Ci(e)}return new Mn(e)}var En=function(){function e(){}return function(t){if(!Ha(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function An(){}function Mn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Rn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Tn(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 Dn(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 Ln(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 In(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Ln;++t<n;)this.add(e[t])}function Vn(e){var t=this.__data__=new Dn(e);this.size=t.size}function Nn(e,t){var n=Ta(e),r=!n&&Ra(e),o=!n&&!r&&Va(e),i=!n&&!r&&!o&&$a(e),a=n||r||o||i,s=a?Et(e.length,ve):[],u=s.length;for(var l in e)!t&&!Se.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||si(l,u))||s.push(l);return s}function Fn(e){var t=e.length;return t?e[Ir(0,t-1)]:void 0}function Un(e,t){return Si(bo(e),Jn(t,0,e.length))}function zn(e){return Si(bo(e))}function Bn(e,t,n){(void 0!==n&&!Ea(e[t],n)||void 0===n&&!(t in e))&&Kn(e,t,n)}function Hn(e,t,n){var r=e[t];Se.call(e,t)&&Ea(r,n)&&(void 0!==n||t in e)||Kn(e,t,n)}function qn(e,t){for(var n=e.length;n--;)if(Ea(e[n][0],t))return n;return-1}function Wn(e,t,n,r){return er(e,(function(e,o,i){t(r,e,n(e),i)})),r}function Yn(e,t){return e&&go(t,ws(t),e)}function Kn(e,t,n){"__proto__"==t&&Pt?Pt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Gn(e,t){for(var n=-1,o=t.length,i=r(o),a=null==e;++n<o;)i[n]=a?void 0:ms(e,t[n]);return i}function Jn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Zn(e,t,n,r,o,i){var a,s=1&t,l=2&t,d=4&t;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!Ha(e))return e;var _=Ta(e);if(_){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Se.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return bo(e,a)}else{var T=ri(e),D=T==p||T==h;if(Va(e))return fo(e,s);if(T==v||T==u||D&&!o){if(a=l||D?{}:ii(e),!s)return l?function(e,t){return go(e,ni(e),t)}(e,function(e,t){return e&&go(t,ks(t),e)}(a,e)):function(e,t){return go(e,ti(e),t)}(e,Yn(a,e))}else{if(!ze[T])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case O:return po(e);case c:case f:return new r(+e);case S:return function(e,t){var n=t?po(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case x:case P:case j:case C:case E:case A:case"[object Uint8ClampedArray]":case M:case R:return ho(e,n);case m:return new r;case y:case w:return new r(e);case b:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case g:return new r;case k:return o=e,Pn?me(Pn.call(o)):{}}var o}(e,T,s)}}i||(i=new Vn);var L=i.get(e);if(L)return L;i.set(e,a),Ja(e)?e.forEach((function(r){a.add(Zn(r,t,n,r,e,i))})):Wa(e)&&e.forEach((function(r,o){a.set(o,Zn(r,t,n,o,e,i))}));var I=_?void 0:(d?l?Ko:Yo:l?ks:ws)(e);return st(I||e,(function(r,o){I&&(r=e[o=r]),Hn(a,o,Zn(r,t,n,o,e,i))})),a}function Xn(e,t,n){var r=n.length;if(null==e)return!r;for(e=me(e);r--;){var o=n[r],i=t[o],a=e[o];if(void 0===a&&!(o in e)||!i(a))return!1}return!0}function $n(e,t,n){if("function"!=typeof e)throw new be(i);return wi((function(){e.apply(void 0,n)}),t)}function Qn(e,t,n,r){var o=-1,i=ft,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=pt(t,At(n))),r?(i=dt,a=!1):t.length>=200&&(i=Rt,a=!1,t=new In(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=l;d--;)if(t[d]===f)continue e;u.push(c)}else i(t,f,r)||u.push(c)}return u}Cn.templateSettings={escape:U,evaluate:z,interpolate:B,variable:"",imports:{_:Cn}},Cn.prototype=An.prototype,Cn.prototype.constructor=Cn,Mn.prototype=En(An.prototype),Mn.prototype.constructor=Mn,Rn.prototype=En(An.prototype),Rn.prototype.constructor=Rn,Tn.prototype.clear=function(){this.__data__=vn?vn(null):{},this.size=0},Tn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Tn.prototype.get=function(e){var t=this.__data__;if(vn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Se.call(t,e)?t[e]:void 0},Tn.prototype.has=function(e){var t=this.__data__;return vn?void 0!==t[e]:Se.call(t,e)},Tn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=vn&&void 0===t?"__lodash_hash_undefined__":t,this},Dn.prototype.clear=function(){this.__data__=[],this.size=0},Dn.prototype.delete=function(e){var t=this.__data__,n=qn(t,e);return!(n<0)&&(n==t.length-1?t.pop():Je.call(t,n,1),--this.size,!0)},Dn.prototype.get=function(e){var t=this.__data__,n=qn(t,e);return n<0?void 0:t[n][1]},Dn.prototype.has=function(e){return qn(this.__data__,e)>-1},Dn.prototype.set=function(e,t){var n=this.__data__,r=qn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Ln.prototype.clear=function(){this.size=0,this.__data__={hash:new Tn,map:new(pn||Dn),string:new Tn}},Ln.prototype.delete=function(e){var t=$o(this,e).delete(e);return this.size-=t?1:0,t},Ln.prototype.get=function(e){return $o(this,e).get(e)},Ln.prototype.has=function(e){return $o(this,e).has(e)},Ln.prototype.set=function(e,t){var n=$o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},In.prototype.add=In.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},In.prototype.has=function(e){return this.__data__.has(e)},Vn.prototype.clear=function(){this.__data__=new Dn,this.size=0},Vn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Vn.prototype.get=function(e){return this.__data__.get(e)},Vn.prototype.has=function(e){return this.__data__.has(e)},Vn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Dn){var r=n.__data__;if(!pn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ln(r)}return n.set(e,t),this.size=n.size,this};var er=_o(ur),tr=_o(lr,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function rr(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===s?a==a&&!Xa(a):n(a,s)))var s=a,u=i}return u}function or(e,t){var n=[];return er(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function ir(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=ai),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?ir(s,t-1,n,r,o):ht(o,s):r||(o[o.length]=s)}return o}var ar=Oo(),sr=Oo(!0);function ur(e,t){return e&&ar(e,t,ws)}function lr(e,t){return e&&sr(e,t,ws)}function cr(e,t){return ct(t,(function(t){return Ua(e[t])}))}function fr(e,t){for(var n=0,r=(t=so(t,e)).length;null!=e&&n<r;)e=e[Pi(t[n++])];return n&&n==r?e:void 0}function dr(e,t,n){var r=t(e);return Ta(e)?r:ht(r,n(e))}function pr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":bt&&bt in me(e)?function(e){var t=Se.call(e,bt),n=e[bt];try{e[bt]=void 0;var r=!0}catch(e){}var o=je.call(e);r&&(t?e[bt]=n:delete e[bt]);return o}(e):function(e){return je.call(e)}(e)}function hr(e,t){return e>t}function mr(e,t){return null!=e&&Se.call(e,t)}function yr(e,t){return null!=e&&t in me(e)}function vr(e,t,n){for(var o=n?dt:ft,i=e[0].length,a=e.length,s=a,u=r(a),l=1/0,c=[];s--;){var f=e[s];s&&t&&(f=pt(f,At(t))),l=sn(f.length,l),u[s]=!n&&(t||i>=120&&f.length>=120)?new In(s&&f):void 0}f=e[0];var d=-1,p=u[0];e:for(;++d<i&&c.length<l;){var h=f[d],m=t?t(h):h;if(h=n||0!==h?h:0,!(p?Rt(p,m):o(c,m,n))){for(s=a;--s;){var y=u[s];if(!(y?Rt(y,m):o(e[s],m,n)))continue e}p&&p.push(m),c.push(h)}}return c}function br(e,t,n){var r=null==(e=yi(e,t=so(t,e)))?e:e[Pi(Fi(t))];return null==r?void 0:it(r,e,n)}function gr(e){return qa(e)&&pr(e)==u}function wr(e,t,n,r,o){return e===t||(null==e||null==t||!qa(e)&&!qa(t)?e!=e&&t!=t:function(e,t,n,r,o,i){var a=Ta(e),s=Ta(t),p=a?l:ri(e),h=s?l:ri(t),_=(p=p==u?v:p)==v,x=(h=h==u?v:h)==v,P=p==h;if(P&&Va(e)){if(!Va(t))return!1;a=!0,_=!1}if(P&&!_)return i||(i=new Vn),a||$a(e)?qo(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case O:return!(e.byteLength!=t.byteLength||!i(new Ie(e),new Ie(t)));case c:case f:case y:return Ea(+e,+t);case d:return e.name==t.name&&e.message==t.message;case b:case w:return e==t+"";case m:var s=Ut;case g:var u=1&r;if(s||(s=Ht),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var p=qo(s(e),s(t),r,o,i,a);return a.delete(e),p;case k:if(Pn)return Pn.call(e)==Pn.call(t)}return!1}(e,t,p,n,r,o,i);if(!(1&n)){var j=_&&Se.call(e,"__wrapped__"),C=x&&Se.call(t,"__wrapped__");if(j||C){var E=j?e.value():e,A=C?t.value():t;return i||(i=new Vn),o(E,A,n,r,i)}}if(!P)return!1;return i||(i=new Vn),function(e,t,n,r,o,i){var a=1&n,s=Yo(e),u=s.length,l=Yo(t).length;if(u!=l&&!a)return!1;var c=u;for(;c--;){var f=s[c];if(!(a?f in t:Se.call(t,f)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var h=!0;i.set(e,t),i.set(t,e);var m=a;for(;++c<u;){f=s[c];var y=e[f],v=t[f];if(r)var b=a?r(v,y,f,t,e,i):r(y,v,f,e,t,i);if(!(void 0===b?y===v||o(y,v,n,r,i):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 i.delete(e),i.delete(t),h}(e,t,n,r,o,i)}(e,t,n,r,wr,o))}function kr(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=me(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var u=(s=n[o])[0],l=e[u],c=s[1];if(a&&s[2]){if(void 0===l&&!(u in e))return!1}else{var f=new Vn;if(r)var d=r(l,c,u,e,t,f);if(!(void 0===d?wr(c,l,3,r,f):d))return!1}}return!0}function _r(e){return!(!Ha(e)||(t=e,Pe&&Pe in t))&&(Ua(e)?Ae:ae).test(ji(e));var t}function Or(e){return"function"==typeof e?e:null==e?Ys:"object"==typeof e?Ta(e)?Er(e[0],e[1]):Cr(e):tu(e)}function Sr(e){if(!di(e))return on(e);var t=[];for(var n in me(e))Se.call(e,n)&&"constructor"!=n&&t.push(n);return t}function xr(e){if(!Ha(e))return function(e){var t=[];if(null!=e)for(var n in me(e))t.push(n);return t}(e);var t=di(e),n=[];for(var r in e)("constructor"!=r||!t&&Se.call(e,r))&&n.push(r);return n}function Pr(e,t){return e<t}function jr(e,t){var n=-1,o=La(e)?r(e.length):[];return er(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Cr(e){var t=Qo(e);return 1==t.length&&t[0][2]?hi(t[0][0],t[0][1]):function(n){return n===e||kr(n,e,t)}}function Er(e,t){return li(e)&&pi(t)?hi(Pi(e),t):function(n){var r=ms(n,e);return void 0===r&&r===t?ys(n,e):wr(t,r,3)}}function Ar(e,t,n,r,o){e!==t&&ar(t,(function(i,a){if(o||(o=new Vn),Ha(i))!function(e,t,n,r,o,i,a){var s=bi(e,n),u=bi(t,n),l=a.get(u);if(l)return void Bn(e,n,l);var c=i?i(s,u,n+"",e,t,a):void 0,f=void 0===c;if(f){var d=Ta(u),p=!d&&Va(u),h=!d&&!p&&$a(u);c=u,d||p||h?Ta(s)?c=s:Ia(s)?c=bo(s):p?(f=!1,c=fo(u,!0)):h?(f=!1,c=ho(u,!0)):c=[]:Ka(u)||Ra(u)?(c=s,Ra(s)?c=as(s):Ha(s)&&!Ua(s)||(c=ii(u))):f=!1}f&&(a.set(u,c),o(c,u,r,i,a),a.delete(u));Bn(e,n,c)}(e,t,a,n,Ar,r,o);else{var s=r?r(bi(e,a),i,a+"",e,t,o):void 0;void 0===s&&(s=i),Bn(e,a,s)}}),ks)}function Mr(e,t){var n=e.length;if(n)return si(t+=t<0?n:0,n)?e[t]:void 0}function Rr(e,t,n){t=t.length?pt(t,(function(e){return Ta(e)?function(t){return fr(t,1===e.length?e[0]:e)}:e})):[Ys];var r=-1;return t=pt(t,At(Xo())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(jr(e,(function(e,n,o){return{criteria:pt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;for(;++r<a;){var u=mo(o[r],i[r]);if(u){if(r>=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)}))}function Tr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=fr(e,a);n(s,a)&&zr(i,so(a,e),s)}return i}function Dr(e,t,n,r){var o=r?_t:kt,i=-1,a=t.length,s=e;for(e===t&&(t=bo(t)),n&&(s=pt(e,At(n)));++i<a;)for(var u=0,l=t[i],c=n?n(l):l;(u=o(s,c,u,r))>-1;)s!==e&&Je.call(s,u,1),Je.call(e,u,1);return e}function Lr(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;si(o)?Je.call(e,o,1):Qr(e,o)}}return e}function Ir(e,t){return e+Qt(cn()*(t-e+1))}function Vr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Qt(t/2))&&(e+=e)}while(t);return n}function Nr(e,t){return ki(mi(e,t,Ys),e+"")}function Fr(e){return Fn(Es(e))}function Ur(e,t){var n=Es(e);return Si(n,Jn(t,0,n.length))}function zr(e,t,n,r){if(!Ha(e))return e;for(var o=-1,i=(t=so(t,e)).length,a=i-1,s=e;null!=s&&++o<i;){var u=Pi(t[o]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(o!=a){var c=s[u];void 0===(l=r?r(c,u,s):void 0)&&(l=Ha(c)?c:si(t[o+1])?[]:{})}Hn(s,u,l),s=s[u]}return e}var Br=bn?function(e,t){return bn.set(e,t),e}:Ys,Hr=Pt?function(e,t){return Pt(e,"toString",{configurable:!0,enumerable:!1,value:Hs(t),writable:!0})}:Ys;function qr(e){return Si(Es(e))}function Wr(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 Yr(e,t){var n;return er(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function Kr(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&&!Xa(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return Gr(e,t,Ys,n)}function Gr(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,s=null===t,u=Xa(t),l=void 0===t;o<i;){var c=Qt((o+i)/2),f=n(e[c]),d=void 0!==f,p=null===f,h=f==f,m=Xa(f);if(a)var y=r||h;else y=l?h&&(r||d):s?h&&d&&(r||!p):u?h&&d&&!p&&(r||!m):!p&&!m&&(r?f<=t:f<t);y?o=c+1:i=c}return sn(i,4294967294)}function Jr(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||!Ea(s,u)){var u=s;i[o++]=0===a?0:a}}return i}function Zr(e){return"number"==typeof e?e:Xa(e)?NaN:+e}function Xr(e){if("string"==typeof e)return e;if(Ta(e))return pt(e,Xr)+"";if(Xa(e))return jn?jn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function $r(e,t,n){var r=-1,o=ft,i=e.length,a=!0,s=[],u=s;if(n)a=!1,o=dt;else if(i>=200){var l=t?null:No(e);if(l)return Ht(l);a=!1,o=Rt,u=new In}else u=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=u.length;d--;)if(u[d]===f)continue e;t&&u.push(f),s.push(c)}else o(u,f,n)||(u!==s&&u.push(f),s.push(c))}return s}function Qr(e,t){return null==(e=yi(e,t=so(t,e)))||delete e[Pi(Fi(t))]}function eo(e,t,n,r){return zr(e,t,n(fr(e,t)),r)}function to(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Wr(e,r?0:i,r?i+1:o):Wr(e,r?i+1:0,r?o:i)}function no(e,t){var n=e;return n instanceof Rn&&(n=n.value()),mt(t,(function(e,t){return t.func.apply(t.thisArg,ht([e],t.args))}),n)}function ro(e,t,n){var o=e.length;if(o<2)return o?$r(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],u=-1;++u<o;)u!=i&&(a[i]=Qn(a[i]||s,e[u],t,n));return $r(ir(a,1),t,n)}function oo(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var s=r<i?t[r]:void 0;n(a,e[r],s)}return a}function io(e){return Ia(e)?e:[]}function ao(e){return"function"==typeof e?e:Ys}function so(e,t){return Ta(e)?e:li(e,t)?[e]:xi(ss(e))}var uo=Nr;function lo(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Wr(e,t,n)}var co=Jt||function(e){return Ke.clearTimeout(e)};function fo(e,t){if(t)return e.slice();var n=e.length,r=Be?Be(n):new e.constructor(n);return e.copy(r),r}function po(e){var t=new e.constructor(e.byteLength);return new Ie(t).set(new Ie(e)),t}function ho(e,t){var n=t?po(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function mo(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=Xa(e),a=void 0!==t,s=null===t,u=t==t,l=Xa(t);if(!s&&!l&&!i&&e>t||i&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!o)return 1;if(!r&&!i&&!l&&e<t||l&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!u)return-1}return 0}function yo(e,t,n,o){for(var i=-1,a=e.length,s=n.length,u=-1,l=t.length,c=an(a-s,0),f=r(l+c),d=!o;++u<l;)f[u]=t[u];for(;++i<s;)(d||i<a)&&(f[n[i]]=e[i]);for(;c--;)f[u++]=e[i++];return f}function vo(e,t,n,o){for(var i=-1,a=e.length,s=-1,u=n.length,l=-1,c=t.length,f=an(a-u,0),d=r(f+c),p=!o;++i<f;)d[i]=e[i];for(var h=i;++l<c;)d[h+l]=t[l];for(;++s<u;)(p||i<a)&&(d[h+n[s]]=e[i++]);return d}function bo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function go(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),o?Kn(n,s,u):Hn(n,s,u)}return n}function wo(e,t){return function(n,r){var o=Ta(n)?at:Wn,i=t?t():{};return o(n,e,Xo(r,2),i)}}function ko(e){return Nr((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&ui(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=me(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t}))}function _o(e,t){return function(n,r){if(null==n)return n;if(!La(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=me(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Oo(e){return function(t,n,r){for(var o=-1,i=me(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}function So(e){return function(t){var n=Ft(t=ss(t))?Yt(t):void 0,r=n?n[0]:t.charAt(0),o=n?lo(n,1).join(""):t.slice(1);return r[e]()+o}}function xo(e){return function(t){return mt(Us(Rs(t).replace(Re,"")),e,"")}}function Po(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=En(e.prototype),r=e.apply(n,t);return Ha(r)?r:n}}function jo(e){return function(t,n,r){var o=me(t);if(!La(t)){var i=Xo(n,3);t=ws(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}}function Co(e){return Wo((function(t){var n=t.length,r=n,o=Mn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new be(i);if(o&&!s&&"wrapper"==Jo(a))var s=new Mn([],!0)}for(r=s?r:n;++r<n;){var u=Jo(a=t[r]),l="wrapper"==u?Go(a):void 0;s=l&&ci(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?s[Jo(l[0])].apply(s,l[3]):1==a.length&&ci(a)?s[u]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Ta(r))return s.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 Eo(e,t,n,o,i,a,s,u,l,c){var f=128&t,d=1&t,p=2&t,h=24&t,m=512&t,y=p?void 0:Po(e);return function v(){for(var b=arguments.length,g=r(b),w=b;w--;)g[w]=arguments[w];if(h)var k=Zo(v),_=Lt(g,k);if(o&&(g=yo(g,o,i,h)),a&&(g=vo(g,a,s,h)),b-=_,h&&b<c){var O=Bt(g,k);return Io(e,t,Eo,v.placeholder,n,g,O,u,l,c-b)}var S=d?n:this,x=p?S[e]:e;return b=g.length,u?g=vi(g,u):m&&b>1&&g.reverse(),f&&l<b&&(g.length=l),this&&this!==Ke&&this instanceof v&&(x=y||Po(x)),x.apply(S,g)}}function Ao(e,t){return function(n,r){return function(e,t,n,r){return ur(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Mo(e,t){return function(n,r){var o;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(o=n),void 0!==r){if(void 0===o)return r;"string"==typeof n||"string"==typeof r?(n=Xr(n),r=Xr(r)):(n=Zr(n),r=Zr(r)),o=e(n,r)}return o}}function Ro(e){return Wo((function(t){return t=pt(t,At(Xo())),Nr((function(n){var r=this;return e(t,(function(e){return it(e,r,n)}))}))}))}function To(e,t){var n=(t=void 0===t?" ":Xr(t)).length;if(n<2)return n?Vr(t,e):t;var r=Vr(t,$t(e/Wt(t)));return Ft(t)?lo(Yt(r),0,e).join(""):r.slice(0,e)}function Do(e){return function(t,n,o){return o&&"number"!=typeof o&&ui(t,n,o)&&(n=o=void 0),t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n,o){for(var i=-1,a=an($t((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,o=void 0===o?t<n?1:-1:ns(o),e)}}function Lo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=is(t),n=is(n)),e(t,n)}}function Io(e,t,n,r,o,i,a,s,u,l){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var f=[e,t,o,c?i:void 0,c?a:void 0,c?void 0:i,c?void 0:a,s,u,l],d=n.apply(void 0,f);return ci(e)&&gi(d,f),d.placeholder=r,_i(d,e,t)}function Vo(e){var t=he[e];return function(e,n){if(e=is(e),(n=null==n?0:sn(rs(n),292))&&nn(e)){var r=(ss(e)+"e").split("e");return+((r=(ss(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var No=mn&&1/Ht(new mn([,-0]))[1]==1/0?function(e){return new mn(e)}:Xs;function Fo(e){return function(t){var n=ri(t);return n==m?Ut(t):n==g?qt(t):function(e,t){return pt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Uo(e,t,n,o,s,u,l,c){var f=2&t;if(!f&&"function"!=typeof e)throw new be(i);var d=o?o.length:0;if(d||(t&=-97,o=s=void 0),l=void 0===l?l:an(rs(l),0),c=void 0===c?c:rs(c),d-=s?s.length:0,64&t){var p=o,h=s;o=s=void 0}var m=f?void 0:Go(e),y=[e,t,n,o,s,p,h,u,l,c];if(m&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,s=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!s)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?yo(l,u,t[4]):u,e[4]=l?Bt(e[3],a):t[4]}(u=t[5])&&(l=e[5],e[5]=l?vo(l,u,t[6]):u,e[6]=l?Bt(e[5],a):t[6]);(u=t[7])&&(e[7]=u);128&r&&(e[8]=null==e[8]?t[8]:sn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(y,m),e=y[0],t=y[1],n=y[2],o=y[3],s=y[4],!(c=y[9]=void 0===y[9]?f?0:e.length:an(y[9]-d,0))&&24&t&&(t&=-25),t&&1!=t)v=8==t||16==t?function(e,t,n){var o=Po(e);return function i(){for(var a=arguments.length,s=r(a),u=a,l=Zo(i);u--;)s[u]=arguments[u];var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:Bt(s,l);if((a-=c.length)<n)return Io(e,t,Eo,i.placeholder,void 0,s,c,void 0,void 0,n-a);var f=this&&this!==Ke&&this instanceof i?o:e;return it(f,this,s)}}(e,t,c):32!=t&&33!=t||s.length?Eo.apply(void 0,y):function(e,t,n,o){var i=1&t,a=Po(e);return function t(){for(var s=-1,u=arguments.length,l=-1,c=o.length,f=r(c+u),d=this&&this!==Ke&&this instanceof t?a:e;++l<c;)f[l]=o[l];for(;u--;)f[l++]=arguments[++s];return it(d,i?n:this,f)}}(e,t,n,o);else var v=function(e,t,n){var r=1&t,o=Po(e);return function t(){var i=this&&this!==Ke&&this instanceof t?o:e;return i.apply(r?n:this,arguments)}}(e,t,n);return _i((m?Br:gi)(v,y),e,t)}function zo(e,t,n,r){return void 0===e||Ea(e,ke[n])&&!Se.call(r,n)?t:e}function Bo(e,t,n,r,o,i){return Ha(e)&&Ha(t)&&(i.set(t,e),Ar(e,t,void 0,Bo,i),i.delete(t)),e}function Ho(e){return Ka(e)?void 0:e}function qo(e,t,n,r,o,i){var a=1&n,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=i.get(e),c=i.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,p=2&n?new In:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var h=e[f],m=t[f];if(r)var y=a?r(m,h,f,t,e,i):r(h,m,f,e,t,i);if(void 0!==y){if(y)continue;d=!1;break}if(p){if(!vt(t,(function(e,t){if(!Rt(p,t)&&(h===e||o(h,e,n,r,i)))return p.push(t)}))){d=!1;break}}else if(h!==m&&!o(h,m,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function Wo(e){return ki(mi(e,void 0,Di),e+"")}function Yo(e){return dr(e,ws,ti)}function Ko(e){return dr(e,ks,ni)}var Go=bn?function(e){return bn.get(e)}:Xs;function Jo(e){for(var t=e.name+"",n=gn[t],r=Se.call(gn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Zo(e){return(Se.call(Cn,"placeholder")?Cn:e).placeholder}function Xo(){var e=Cn.iteratee||Ks;return e=e===Ks?Or:e,arguments.length?e(arguments[0],arguments[1]):e}function $o(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Qo(e){for(var t=ws(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,pi(o)]}return t}function ei(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return _r(n)?n:void 0}var ti=en?function(e){return null==e?[]:(e=me(e),ct(en(e),(function(t){return Ge.call(e,t)})))}:ou,ni=en?function(e){for(var t=[];e;)ht(t,ti(e)),e=We(e);return t}:ou,ri=pr;function oi(e,t,n){for(var r=-1,o=(t=so(t,e)).length,i=!1;++r<o;){var a=Pi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Ba(o)&&si(a,o)&&(Ta(e)||Ra(e))}function ii(e){return"function"!=typeof e.constructor||di(e)?{}:En(We(e))}function ai(e){return Ta(e)||Ra(e)||!!(Xe&&e&&e[Xe])}function si(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ue.test(e))&&e>-1&&e%1==0&&e<t}function ui(e,t,n){if(!Ha(n))return!1;var r=typeof t;return!!("number"==r?La(n)&&si(t,n.length):"string"==r&&t in n)&&Ea(n[t],e)}function li(e,t){if(Ta(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Xa(e))||(q.test(e)||!H.test(e)||null!=t&&e in me(t))}function ci(e){var t=Jo(e),n=Cn[t];if("function"!=typeof n||!(t in Rn.prototype))return!1;if(e===n)return!0;var r=Go(n);return!!r&&e===r[0]}(dn&&ri(new dn(new ArrayBuffer(1)))!=S||pn&&ri(new pn)!=m||hn&&"[object Promise]"!=ri(hn.resolve())||mn&&ri(new mn)!=g||yn&&ri(new yn)!=_)&&(ri=function(e){var t=pr(e),n=t==v?e.constructor:void 0,r=n?ji(n):"";if(r)switch(r){case wn:return S;case kn:return m;case _n:return"[object Promise]";case On:return g;case Sn:return _}return t});var fi=_e?Ua:iu;function di(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ke)}function pi(e){return e==e&&!Ha(e)}function hi(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in me(n)))}}function mi(e,t,n){return t=an(void 0===t?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=an(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var u=r(t+1);++i<t;)u[i]=o[i];return u[t]=n(s),it(e,this,u)}}function yi(e,t){return t.length<2?e:fr(e,Wr(t,0,-1))}function vi(e,t){for(var n=e.length,r=sn(t.length,n),o=bo(e);r--;){var i=t[r];e[r]=si(i,n)?o[i]:void 0}return e}function bi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var gi=Oi(Br),wi=Xt||function(e,t){return Ke.setTimeout(e,t)},ki=Oi(Hr);function _i(e,t,n){var r=t+"";return ki(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(X,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!ft(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match($);return t?t[1].split(Q):[]}(r),n)))}function Oi(e){var t=0,n=0;return function(){var r=un(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Si(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n<t;){var i=Ir(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}var xi=function(e){var t=Oa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(W,(function(e,n,r,o){t.push(r?o.replace(te,"$1"):n||e)})),t}));function Pi(e){if("string"==typeof e||Xa(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ji(e){if(null!=e){try{return Oe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ci(e){if(e instanceof Rn)return e.clone();var t=new Mn(e.__wrapped__,e.__chain__);return t.__actions__=bo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ei=Nr((function(e,t){return Ia(e)?Qn(e,ir(t,1,Ia,!0)):[]})),Ai=Nr((function(e,t){var n=Fi(t);return Ia(n)&&(n=void 0),Ia(e)?Qn(e,ir(t,1,Ia,!0),Xo(n,2)):[]})),Mi=Nr((function(e,t){var n=Fi(t);return Ia(n)&&(n=void 0),Ia(e)?Qn(e,ir(t,1,Ia,!0),void 0,n):[]}));function Ri(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:rs(n);return o<0&&(o=an(r+o,0)),wt(e,Xo(t,3),o)}function Ti(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=rs(n),o=n<0?an(r+o,0):sn(o,r-1)),wt(e,Xo(t,3),o,!0)}function Di(e){return(null==e?0:e.length)?ir(e,1):[]}function Li(e){return e&&e.length?e[0]:void 0}var Ii=Nr((function(e){var t=pt(e,io);return t.length&&t[0]===e[0]?vr(t):[]})),Vi=Nr((function(e){var t=Fi(e),n=pt(e,io);return t===Fi(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?vr(n,Xo(t,2)):[]})),Ni=Nr((function(e){var t=Fi(e),n=pt(e,io);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?vr(n,void 0,t):[]}));function Fi(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Ui=Nr(zi);function zi(e,t){return e&&e.length&&t&&t.length?Dr(e,t):e}var Bi=Wo((function(e,t){var n=null==e?0:e.length,r=Gn(e,t);return Lr(e,pt(t,(function(e){return si(e,n)?+e:e})).sort(mo)),r}));function Hi(e){return null==e?e:fn.call(e)}var qi=Nr((function(e){return $r(ir(e,1,Ia,!0))})),Wi=Nr((function(e){var t=Fi(e);return Ia(t)&&(t=void 0),$r(ir(e,1,Ia,!0),Xo(t,2))})),Yi=Nr((function(e){var t=Fi(e);return t="function"==typeof t?t:void 0,$r(ir(e,1,Ia,!0),void 0,t)}));function Ki(e){if(!e||!e.length)return[];var t=0;return e=ct(e,(function(e){if(Ia(e))return t=an(e.length,t),!0})),Et(t,(function(t){return pt(e,xt(t))}))}function Gi(e,t){if(!e||!e.length)return[];var n=Ki(e);return null==t?n:pt(n,(function(e){return it(t,void 0,e)}))}var Ji=Nr((function(e,t){return Ia(e)?Qn(e,t):[]})),Zi=Nr((function(e){return ro(ct(e,Ia))})),Xi=Nr((function(e){var t=Fi(e);return Ia(t)&&(t=void 0),ro(ct(e,Ia),Xo(t,2))})),$i=Nr((function(e){var t=Fi(e);return t="function"==typeof t?t:void 0,ro(ct(e,Ia),void 0,t)})),Qi=Nr(Ki);var ea=Nr((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Gi(e,n)}));function ta(e){var t=Cn(e);return t.__chain__=!0,t}function na(e,t){return t(e)}var ra=Wo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Gn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Rn&&si(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:na,args:[o],thisArg:void 0}),new Mn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var oa=wo((function(e,t,n){Se.call(e,n)?++e[n]:Kn(e,n,1)}));var ia=jo(Ri),aa=jo(Ti);function sa(e,t){return(Ta(e)?st:er)(e,Xo(t,3))}function ua(e,t){return(Ta(e)?ut:tr)(e,Xo(t,3))}var la=wo((function(e,t,n){Se.call(e,n)?e[n].push(t):Kn(e,n,[t])}));var ca=Nr((function(e,t,n){var o=-1,i="function"==typeof t,a=La(e)?r(e.length):[];return er(e,(function(e){a[++o]=i?it(t,e,n):br(e,t,n)})),a})),fa=wo((function(e,t,n){Kn(e,n,t)}));function da(e,t){return(Ta(e)?pt:jr)(e,Xo(t,3))}var pa=wo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ha=Nr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ui(e,t[0],t[1])?t=[]:n>2&&ui(t[0],t[1],t[2])&&(t=[t[0]]),Rr(e,ir(t,1),[])})),ma=Zt||function(){return Ke.Date.now()};function ya(e,t,n){return t=n?void 0:t,Uo(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function va(e,t){var n;if("function"!=typeof t)throw new be(i);return e=rs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ba=Nr((function(e,t,n){var r=1;if(n.length){var o=Bt(n,Zo(ba));r|=32}return Uo(e,r,t,n,o)})),ga=Nr((function(e,t,n){var r=3;if(n.length){var o=Bt(n,Zo(ga));r|=32}return Uo(t,r,e,n,o)}));function wa(e,t,n){var r,o,a,s,u,l,c=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new be(i);function h(t){var n=r,i=o;return r=o=void 0,c=t,s=e.apply(i,n)}function m(e){return c=e,u=wi(v,t),f?h(e):s}function y(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=a}function v(){var e=ma();if(y(e))return b(e);u=wi(v,function(e){var n=t-(e-l);return d?sn(n,a-(e-c)):n}(e))}function b(e){return u=void 0,p&&r?h(e):(r=o=void 0,s)}function g(){var e=ma(),n=y(e);if(r=arguments,o=this,l=e,n){if(void 0===u)return m(l);if(d)return co(u),u=wi(v,t),h(l)}return void 0===u&&(u=wi(v,t)),s}return t=is(t)||0,Ha(n)&&(f=!!n.leading,a=(d="maxWait"in n)?an(is(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),g.cancel=function(){void 0!==u&&co(u),c=0,r=l=o=u=void 0},g.flush=function(){return void 0===u?s:b(ma())},g}var ka=Nr((function(e,t){return $n(e,1,t)})),_a=Nr((function(e,t,n){return $n(e,is(t)||0,n)}));function Oa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new be(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(Oa.Cache||Ln),n}function Sa(e){if("function"!=typeof e)throw new be(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)}}Oa.Cache=Ln;var xa=uo((function(e,t){var n=(t=1==t.length&&Ta(t[0])?pt(t[0],At(Xo())):pt(ir(t,1),At(Xo()))).length;return Nr((function(r){for(var o=-1,i=sn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return it(e,this,r)}))})),Pa=Nr((function(e,t){return Uo(e,32,void 0,t,Bt(t,Zo(Pa)))})),ja=Nr((function(e,t){return Uo(e,64,void 0,t,Bt(t,Zo(ja)))})),Ca=Wo((function(e,t){return Uo(e,256,void 0,void 0,void 0,t)}));function Ea(e,t){return e===t||e!=e&&t!=t}var Aa=Lo(hr),Ma=Lo((function(e,t){return e>=t})),Ra=gr(function(){return arguments}())?gr:function(e){return qa(e)&&Se.call(e,"callee")&&!Ge.call(e,"callee")},Ta=r.isArray,Da=Qe?At(Qe):function(e){return qa(e)&&pr(e)==O};function La(e){return null!=e&&Ba(e.length)&&!Ua(e)}function Ia(e){return qa(e)&&La(e)}var Va=tn||iu,Na=et?At(et):function(e){return qa(e)&&pr(e)==f};function Fa(e){if(!qa(e))return!1;var t=pr(e);return t==d||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ka(e)}function Ua(e){if(!Ha(e))return!1;var t=pr(e);return t==p||t==h||"[object AsyncFunction]"==t||"[object Proxy]"==t}function za(e){return"number"==typeof e&&e==rs(e)}function Ba(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ha(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qa(e){return null!=e&&"object"==typeof e}var Wa=tt?At(tt):function(e){return qa(e)&&ri(e)==m};function Ya(e){return"number"==typeof e||qa(e)&&pr(e)==y}function Ka(e){if(!qa(e)||pr(e)!=v)return!1;var t=We(e);if(null===t)return!0;var n=Se.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Oe.call(n)==Ce}var Ga=nt?At(nt):function(e){return qa(e)&&pr(e)==b};var Ja=rt?At(rt):function(e){return qa(e)&&ri(e)==g};function Za(e){return"string"==typeof e||!Ta(e)&&qa(e)&&pr(e)==w}function Xa(e){return"symbol"==typeof e||qa(e)&&pr(e)==k}var $a=ot?At(ot):function(e){return qa(e)&&Ba(e.length)&&!!Ue[pr(e)]};var Qa=Lo(Pr),es=Lo((function(e,t){return e<=t}));function ts(e){if(!e)return[];if(La(e))return Za(e)?Yt(e):bo(e);if($e&&e[$e])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[$e]());var t=ri(e);return(t==m?Ut:t==g?Ht:Es)(e)}function ns(e){return e?(e=is(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function rs(e){var t=ns(e),n=t%1;return t==t?n?t-n:t:0}function os(e){return e?Jn(rs(e),0,4294967295):0}function is(e){if("number"==typeof e)return e;if(Xa(e))return NaN;if(Ha(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ha(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(G,"");var n=ie.test(e);return n||se.test(e)?qe(e.slice(2),n?2:8):oe.test(e)?NaN:+e}function as(e){return go(e,ks(e))}function ss(e){return null==e?"":Xr(e)}var us=ko((function(e,t){if(di(t)||La(t))go(t,ws(t),e);else for(var n in t)Se.call(t,n)&&Hn(e,n,t[n])})),ls=ko((function(e,t){go(t,ks(t),e)})),cs=ko((function(e,t,n,r){go(t,ks(t),e,r)})),fs=ko((function(e,t,n,r){go(t,ws(t),e,r)})),ds=Wo(Gn);var ps=Nr((function(e,t){e=me(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&ui(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=ks(i),s=-1,u=a.length;++s<u;){var l=a[s],c=e[l];(void 0===c||Ea(c,ke[l])&&!Se.call(e,l))&&(e[l]=i[l])}return e})),hs=Nr((function(e){return e.push(void 0,Bo),it(Os,void 0,e)}));function ms(e,t,n){var r=null==e?void 0:fr(e,t);return void 0===r?n:r}function ys(e,t){return null!=e&&oi(e,t,yr)}var vs=Ao((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),e[t]=n}),Hs(Ys)),bs=Ao((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),Se.call(e,t)?e[t].push(n):e[t]=[n]}),Xo),gs=Nr(br);function ws(e){return La(e)?Nn(e):Sr(e)}function ks(e){return La(e)?Nn(e,!0):xr(e)}var _s=ko((function(e,t,n){Ar(e,t,n)})),Os=ko((function(e,t,n,r){Ar(e,t,n,r)})),Ss=Wo((function(e,t){var n={};if(null==e)return n;var r=!1;t=pt(t,(function(t){return t=so(t,e),r||(r=t.length>1),t})),go(e,Ko(e),n),r&&(n=Zn(n,7,Ho));for(var o=t.length;o--;)Qr(n,t[o]);return n}));var xs=Wo((function(e,t){return null==e?{}:function(e,t){return Tr(e,t,(function(t,n){return ys(e,n)}))}(e,t)}));function Ps(e,t){if(null==e)return{};var n=pt(Ko(e),(function(e){return[e]}));return t=Xo(t),Tr(e,n,(function(e,n){return t(e,n[0])}))}var js=Fo(ws),Cs=Fo(ks);function Es(e){return null==e?[]:Mt(e,ws(e))}var As=xo((function(e,t,n){return t=t.toLowerCase(),e+(n?Ms(t):t)}));function Ms(e){return Fs(ss(e).toLowerCase())}function Rs(e){return(e=ss(e))&&e.replace(le,It).replace(Te,"")}var Ts=xo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ds=xo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ls=So("toLowerCase");var Is=xo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Vs=xo((function(e,t,n){return e+(n?" ":"")+Fs(t)}));var Ns=xo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Fs=So("toUpperCase");function Us(e,t,n){return e=ss(e),void 0===(t=n?void 0:t)?function(e){return Ve.test(e)}(e)?function(e){return e.match(Le)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var zs=Nr((function(e,t){try{return it(e,void 0,t)}catch(e){return Fa(e)?e:new de(e)}})),Bs=Wo((function(e,t){return st(t,(function(t){t=Pi(t),Kn(e,t,ba(e[t],e))})),e}));function Hs(e){return function(){return e}}var qs=Co(),Ws=Co(!0);function Ys(e){return e}function Ks(e){return Or("function"==typeof e?e:Zn(e,1))}var Gs=Nr((function(e,t){return function(n){return br(n,e,t)}})),Js=Nr((function(e,t){return function(n){return br(e,n,t)}}));function Zs(e,t,n){var r=ws(t),o=cr(t,r);null!=n||Ha(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=cr(t,ws(t)));var i=!(Ha(n)&&"chain"in n&&!n.chain),a=Ua(e);return st(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__=bo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,ht([this.value()],arguments))})})),e}function Xs(){}var $s=Ro(pt),Qs=Ro(lt),eu=Ro(vt);function tu(e){return li(e)?xt(Pi(e)):function(e){return function(t){return fr(t,e)}}(e)}var nu=Do(),ru=Do(!0);function ou(){return[]}function iu(){return!1}var au=Mo((function(e,t){return e+t}),0),su=Vo("ceil"),uu=Mo((function(e,t){return e/t}),1),lu=Vo("floor");var cu,fu=Mo((function(e,t){return e*t}),1),du=Vo("round"),pu=Mo((function(e,t){return e-t}),0);return Cn.after=function(e,t){if("function"!=typeof t)throw new be(i);return e=rs(e),function(){if(--e<1)return t.apply(this,arguments)}},Cn.ary=ya,Cn.assign=us,Cn.assignIn=ls,Cn.assignInWith=cs,Cn.assignWith=fs,Cn.at=ds,Cn.before=va,Cn.bind=ba,Cn.bindAll=Bs,Cn.bindKey=ga,Cn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ta(e)?e:[e]},Cn.chain=ta,Cn.chunk=function(e,t,n){t=(n?ui(e,t,n):void 0===t)?1:an(rs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,s=r($t(o/t));i<o;)s[a++]=Wr(e,i,i+=t);return s},Cn.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},Cn.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 ht(Ta(n)?bo(n):[n],ir(t,1))},Cn.cond=function(e){var t=null==e?0:e.length,n=Xo();return e=t?pt(e,(function(e){if("function"!=typeof e[1])throw new be(i);return[n(e[0]),e[1]]})):[],Nr((function(n){for(var r=-1;++r<t;){var o=e[r];if(it(o[0],this,n))return it(o[1],this,n)}}))},Cn.conforms=function(e){return function(e){var t=ws(e);return function(n){return Xn(n,e,t)}}(Zn(e,1))},Cn.constant=Hs,Cn.countBy=oa,Cn.create=function(e,t){var n=En(e);return null==t?n:Yn(n,t)},Cn.curry=function e(t,n,r){var o=Uo(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return o.placeholder=e.placeholder,o},Cn.curryRight=function e(t,n,r){var o=Uo(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return o.placeholder=e.placeholder,o},Cn.debounce=wa,Cn.defaults=ps,Cn.defaultsDeep=hs,Cn.defer=ka,Cn.delay=_a,Cn.difference=Ei,Cn.differenceBy=Ai,Cn.differenceWith=Mi,Cn.drop=function(e,t,n){var r=null==e?0:e.length;return r?Wr(e,(t=n||void 0===t?1:rs(t))<0?0:t,r):[]},Cn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Wr(e,0,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t):[]},Cn.dropRightWhile=function(e,t){return e&&e.length?to(e,Xo(t,3),!0,!0):[]},Cn.dropWhile=function(e,t){return e&&e.length?to(e,Xo(t,3),!0):[]},Cn.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&ui(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=rs(n))<0&&(n=-n>o?0:o+n),(r=void 0===r||r>o?o:rs(r))<0&&(r+=o),r=n>r?0:os(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Cn.filter=function(e,t){return(Ta(e)?ct:or)(e,Xo(t,3))},Cn.flatMap=function(e,t){return ir(da(e,t),1)},Cn.flatMapDeep=function(e,t){return ir(da(e,t),1/0)},Cn.flatMapDepth=function(e,t,n){return n=void 0===n?1:rs(n),ir(da(e,t),n)},Cn.flatten=Di,Cn.flattenDeep=function(e){return(null==e?0:e.length)?ir(e,1/0):[]},Cn.flattenDepth=function(e,t){return(null==e?0:e.length)?ir(e,t=void 0===t?1:rs(t)):[]},Cn.flip=function(e){return Uo(e,512)},Cn.flow=qs,Cn.flowRight=Ws,Cn.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},Cn.functions=function(e){return null==e?[]:cr(e,ws(e))},Cn.functionsIn=function(e){return null==e?[]:cr(e,ks(e))},Cn.groupBy=la,Cn.initial=function(e){return(null==e?0:e.length)?Wr(e,0,-1):[]},Cn.intersection=Ii,Cn.intersectionBy=Vi,Cn.intersectionWith=Ni,Cn.invert=vs,Cn.invertBy=bs,Cn.invokeMap=ca,Cn.iteratee=Ks,Cn.keyBy=fa,Cn.keys=ws,Cn.keysIn=ks,Cn.map=da,Cn.mapKeys=function(e,t){var n={};return t=Xo(t,3),ur(e,(function(e,r,o){Kn(n,t(e,r,o),e)})),n},Cn.mapValues=function(e,t){var n={};return t=Xo(t,3),ur(e,(function(e,r,o){Kn(n,r,t(e,r,o))})),n},Cn.matches=function(e){return Cr(Zn(e,1))},Cn.matchesProperty=function(e,t){return Er(e,Zn(t,1))},Cn.memoize=Oa,Cn.merge=_s,Cn.mergeWith=Os,Cn.method=Gs,Cn.methodOf=Js,Cn.mixin=Zs,Cn.negate=Sa,Cn.nthArg=function(e){return e=rs(e),Nr((function(t){return Mr(t,e)}))},Cn.omit=Ss,Cn.omitBy=function(e,t){return Ps(e,Sa(Xo(t)))},Cn.once=function(e){return va(2,e)},Cn.orderBy=function(e,t,n,r){return null==e?[]:(Ta(t)||(t=null==t?[]:[t]),Ta(n=r?void 0:n)||(n=null==n?[]:[n]),Rr(e,t,n))},Cn.over=$s,Cn.overArgs=xa,Cn.overEvery=Qs,Cn.overSome=eu,Cn.partial=Pa,Cn.partialRight=ja,Cn.partition=pa,Cn.pick=xs,Cn.pickBy=Ps,Cn.property=tu,Cn.propertyOf=function(e){return function(t){return null==e?void 0:fr(e,t)}},Cn.pull=Ui,Cn.pullAll=zi,Cn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Dr(e,t,Xo(n,2)):e},Cn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Dr(e,t,void 0,n):e},Cn.pullAt=Bi,Cn.range=nu,Cn.rangeRight=ru,Cn.rearg=Ca,Cn.reject=function(e,t){return(Ta(e)?ct:or)(e,Sa(Xo(t,3)))},Cn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Xo(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Lr(e,o),n},Cn.rest=function(e,t){if("function"!=typeof e)throw new be(i);return Nr(e,t=void 0===t?t:rs(t))},Cn.reverse=Hi,Cn.sampleSize=function(e,t,n){return t=(n?ui(e,t,n):void 0===t)?1:rs(t),(Ta(e)?Un:Ur)(e,t)},Cn.set=function(e,t,n){return null==e?e:zr(e,t,n)},Cn.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:zr(e,t,n,r)},Cn.shuffle=function(e){return(Ta(e)?zn:qr)(e)},Cn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ui(e,t,n)?(t=0,n=r):(t=null==t?0:rs(t),n=void 0===n?r:rs(n)),Wr(e,t,n)):[]},Cn.sortBy=ha,Cn.sortedUniq=function(e){return e&&e.length?Jr(e):[]},Cn.sortedUniqBy=function(e,t){return e&&e.length?Jr(e,Xo(t,2)):[]},Cn.split=function(e,t,n){return n&&"number"!=typeof n&&ui(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=ss(e))&&("string"==typeof t||null!=t&&!Ga(t))&&!(t=Xr(t))&&Ft(e)?lo(Yt(e),0,n):e.split(t,n):[]},Cn.spread=function(e,t){if("function"!=typeof e)throw new be(i);return t=null==t?0:an(rs(t),0),Nr((function(n){var r=n[t],o=lo(n,0,t);return r&&ht(o,r),it(e,this,o)}))},Cn.tail=function(e){var t=null==e?0:e.length;return t?Wr(e,1,t):[]},Cn.take=function(e,t,n){return e&&e.length?Wr(e,0,(t=n||void 0===t?1:rs(t))<0?0:t):[]},Cn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Wr(e,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t,r):[]},Cn.takeRightWhile=function(e,t){return e&&e.length?to(e,Xo(t,3),!1,!0):[]},Cn.takeWhile=function(e,t){return e&&e.length?to(e,Xo(t,3)):[]},Cn.tap=function(e,t){return t(e),e},Cn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new be(i);return Ha(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),wa(e,t,{leading:r,maxWait:t,trailing:o})},Cn.thru=na,Cn.toArray=ts,Cn.toPairs=js,Cn.toPairsIn=Cs,Cn.toPath=function(e){return Ta(e)?pt(e,Pi):Xa(e)?[e]:bo(xi(ss(e)))},Cn.toPlainObject=as,Cn.transform=function(e,t,n){var r=Ta(e),o=r||Va(e)||$a(e);if(t=Xo(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Ha(e)&&Ua(i)?En(We(e)):{}}return(o?st:ur)(e,(function(e,r,o){return t(n,e,r,o)})),n},Cn.unary=function(e){return ya(e,1)},Cn.union=qi,Cn.unionBy=Wi,Cn.unionWith=Yi,Cn.uniq=function(e){return e&&e.length?$r(e):[]},Cn.uniqBy=function(e,t){return e&&e.length?$r(e,Xo(t,2)):[]},Cn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?$r(e,void 0,t):[]},Cn.unset=function(e,t){return null==e||Qr(e,t)},Cn.unzip=Ki,Cn.unzipWith=Gi,Cn.update=function(e,t,n){return null==e?e:eo(e,t,ao(n))},Cn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:eo(e,t,ao(n),r)},Cn.values=Es,Cn.valuesIn=function(e){return null==e?[]:Mt(e,ks(e))},Cn.without=Ji,Cn.words=Us,Cn.wrap=function(e,t){return Pa(ao(t),e)},Cn.xor=Zi,Cn.xorBy=Xi,Cn.xorWith=$i,Cn.zip=Qi,Cn.zipObject=function(e,t){return oo(e||[],t||[],Hn)},Cn.zipObjectDeep=function(e,t){return oo(e||[],t||[],zr)},Cn.zipWith=ea,Cn.entries=js,Cn.entriesIn=Cs,Cn.extend=ls,Cn.extendWith=cs,Zs(Cn,Cn),Cn.add=au,Cn.attempt=zs,Cn.camelCase=As,Cn.capitalize=Ms,Cn.ceil=su,Cn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=is(n))==n?n:0),void 0!==t&&(t=(t=is(t))==t?t:0),Jn(is(e),t,n)},Cn.clone=function(e){return Zn(e,4)},Cn.cloneDeep=function(e){return Zn(e,5)},Cn.cloneDeepWith=function(e,t){return Zn(e,5,t="function"==typeof t?t:void 0)},Cn.cloneWith=function(e,t){return Zn(e,4,t="function"==typeof t?t:void 0)},Cn.conformsTo=function(e,t){return null==t||Xn(e,t,ws(t))},Cn.deburr=Rs,Cn.defaultTo=function(e,t){return null==e||e!=e?t:e},Cn.divide=uu,Cn.endsWith=function(e,t,n){e=ss(e),t=Xr(t);var r=e.length,o=n=void 0===n?r:Jn(rs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Cn.eq=Ea,Cn.escape=function(e){return(e=ss(e))&&F.test(e)?e.replace(V,Vt):e},Cn.escapeRegExp=function(e){return(e=ss(e))&&K.test(e)?e.replace(Y,"\\$&"):e},Cn.every=function(e,t,n){var r=Ta(e)?lt:nr;return n&&ui(e,t,n)&&(t=void 0),r(e,Xo(t,3))},Cn.find=ia,Cn.findIndex=Ri,Cn.findKey=function(e,t){return gt(e,Xo(t,3),ur)},Cn.findLast=aa,Cn.findLastIndex=Ti,Cn.findLastKey=function(e,t){return gt(e,Xo(t,3),lr)},Cn.floor=lu,Cn.forEach=sa,Cn.forEachRight=ua,Cn.forIn=function(e,t){return null==e?e:ar(e,Xo(t,3),ks)},Cn.forInRight=function(e,t){return null==e?e:sr(e,Xo(t,3),ks)},Cn.forOwn=function(e,t){return e&&ur(e,Xo(t,3))},Cn.forOwnRight=function(e,t){return e&&lr(e,Xo(t,3))},Cn.get=ms,Cn.gt=Aa,Cn.gte=Ma,Cn.has=function(e,t){return null!=e&&oi(e,t,mr)},Cn.hasIn=ys,Cn.head=Li,Cn.identity=Ys,Cn.includes=function(e,t,n,r){e=La(e)?e:Es(e),n=n&&!r?rs(n):0;var o=e.length;return n<0&&(n=an(o+n,0)),Za(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&kt(e,t,n)>-1},Cn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:rs(n);return o<0&&(o=an(r+o,0)),kt(e,t,o)},Cn.inRange=function(e,t,n){return t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n){return e>=sn(t,n)&&e<an(t,n)}(e=is(e),t,n)},Cn.invoke=gs,Cn.isArguments=Ra,Cn.isArray=Ta,Cn.isArrayBuffer=Da,Cn.isArrayLike=La,Cn.isArrayLikeObject=Ia,Cn.isBoolean=function(e){return!0===e||!1===e||qa(e)&&pr(e)==c},Cn.isBuffer=Va,Cn.isDate=Na,Cn.isElement=function(e){return qa(e)&&1===e.nodeType&&!Ka(e)},Cn.isEmpty=function(e){if(null==e)return!0;if(La(e)&&(Ta(e)||"string"==typeof e||"function"==typeof e.splice||Va(e)||$a(e)||Ra(e)))return!e.length;var t=ri(e);if(t==m||t==g)return!e.size;if(di(e))return!Sr(e).length;for(var n in e)if(Se.call(e,n))return!1;return!0},Cn.isEqual=function(e,t){return wr(e,t)},Cn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?wr(e,t,void 0,n):!!r},Cn.isError=Fa,Cn.isFinite=function(e){return"number"==typeof e&&nn(e)},Cn.isFunction=Ua,Cn.isInteger=za,Cn.isLength=Ba,Cn.isMap=Wa,Cn.isMatch=function(e,t){return e===t||kr(e,t,Qo(t))},Cn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,kr(e,t,Qo(t),n)},Cn.isNaN=function(e){return Ya(e)&&e!=+e},Cn.isNative=function(e){if(fi(e))throw new de("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return _r(e)},Cn.isNil=function(e){return null==e},Cn.isNull=function(e){return null===e},Cn.isNumber=Ya,Cn.isObject=Ha,Cn.isObjectLike=qa,Cn.isPlainObject=Ka,Cn.isRegExp=Ga,Cn.isSafeInteger=function(e){return za(e)&&e>=-9007199254740991&&e<=9007199254740991},Cn.isSet=Ja,Cn.isString=Za,Cn.isSymbol=Xa,Cn.isTypedArray=$a,Cn.isUndefined=function(e){return void 0===e},Cn.isWeakMap=function(e){return qa(e)&&ri(e)==_},Cn.isWeakSet=function(e){return qa(e)&&"[object WeakSet]"==pr(e)},Cn.join=function(e,t){return null==e?"":rn.call(e,t)},Cn.kebabCase=Ts,Cn.last=Fi,Cn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=rs(n))<0?an(r+o,0):sn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):wt(e,Ot,o,!0)},Cn.lowerCase=Ds,Cn.lowerFirst=Ls,Cn.lt=Qa,Cn.lte=es,Cn.max=function(e){return e&&e.length?rr(e,Ys,hr):void 0},Cn.maxBy=function(e,t){return e&&e.length?rr(e,Xo(t,2),hr):void 0},Cn.mean=function(e){return St(e,Ys)},Cn.meanBy=function(e,t){return St(e,Xo(t,2))},Cn.min=function(e){return e&&e.length?rr(e,Ys,Pr):void 0},Cn.minBy=function(e,t){return e&&e.length?rr(e,Xo(t,2),Pr):void 0},Cn.stubArray=ou,Cn.stubFalse=iu,Cn.stubObject=function(){return{}},Cn.stubString=function(){return""},Cn.stubTrue=function(){return!0},Cn.multiply=fu,Cn.nth=function(e,t){return e&&e.length?Mr(e,rs(t)):void 0},Cn.noConflict=function(){return Ke._===this&&(Ke._=Ee),this},Cn.noop=Xs,Cn.now=ma,Cn.pad=function(e,t,n){e=ss(e);var r=(t=rs(t))?Wt(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return To(Qt(o),n)+e+To($t(o),n)},Cn.padEnd=function(e,t,n){e=ss(e);var r=(t=rs(t))?Wt(e):0;return t&&r<t?e+To(t-r,n):e},Cn.padStart=function(e,t,n){e=ss(e);var r=(t=rs(t))?Wt(e):0;return t&&r<t?To(t-r,n)+e:e},Cn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ln(ss(e).replace(J,""),t||0)},Cn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&ui(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ns(e),void 0===t?(t=e,e=0):t=ns(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=cn();return sn(e+o*(t-e+He("1e-"+((o+"").length-1))),t)}return Ir(e,t)},Cn.reduce=function(e,t,n){var r=Ta(e)?mt:jt,o=arguments.length<3;return r(e,Xo(t,4),n,o,er)},Cn.reduceRight=function(e,t,n){var r=Ta(e)?yt:jt,o=arguments.length<3;return r(e,Xo(t,4),n,o,tr)},Cn.repeat=function(e,t,n){return t=(n?ui(e,t,n):void 0===t)?1:rs(t),Vr(ss(e),t)},Cn.replace=function(){var e=arguments,t=ss(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Cn.result=function(e,t,n){var r=-1,o=(t=so(t,e)).length;for(o||(o=1,e=void 0);++r<o;){var i=null==e?void 0:e[Pi(t[r])];void 0===i&&(r=o,i=n),e=Ua(i)?i.call(e):i}return e},Cn.round=du,Cn.runInContext=e,Cn.sample=function(e){return(Ta(e)?Fn:Fr)(e)},Cn.size=function(e){if(null==e)return 0;if(La(e))return Za(e)?Wt(e):e.length;var t=ri(e);return t==m||t==g?e.size:Sr(e).length},Cn.snakeCase=Is,Cn.some=function(e,t,n){var r=Ta(e)?vt:Yr;return n&&ui(e,t,n)&&(t=void 0),r(e,Xo(t,3))},Cn.sortedIndex=function(e,t){return Kr(e,t)},Cn.sortedIndexBy=function(e,t,n){return Gr(e,t,Xo(n,2))},Cn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Kr(e,t);if(r<n&&Ea(e[r],t))return r}return-1},Cn.sortedLastIndex=function(e,t){return Kr(e,t,!0)},Cn.sortedLastIndexBy=function(e,t,n){return Gr(e,t,Xo(n,2),!0)},Cn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Kr(e,t,!0)-1;if(Ea(e[n],t))return n}return-1},Cn.startCase=Vs,Cn.startsWith=function(e,t,n){return e=ss(e),n=null==n?0:Jn(rs(n),0,e.length),t=Xr(t),e.slice(n,n+t.length)==t},Cn.subtract=pu,Cn.sum=function(e){return e&&e.length?Ct(e,Ys):0},Cn.sumBy=function(e,t){return e&&e.length?Ct(e,Xo(t,2)):0},Cn.template=function(e,t,n){var r=Cn.templateSettings;n&&ui(e,t,n)&&(t=void 0),e=ss(e),t=cs({},t,r,zo);var o,i,a=cs({},t.imports,r.imports,zo),s=ws(a),u=Mt(a,s),l=0,c=t.interpolate||ce,f="__p += '",d=ye((t.escape||ce).source+"|"+c.source+"|"+(c===B?ne:ce).source+"|"+(t.evaluate||ce).source+"|$","g"),p="//# sourceURL="+(Se.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Fe+"]")+"\n";e.replace(d,(function(t,n,r,a,s,u){return r||(r=a),f+=e.slice(l,u).replace(fe,Nt),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),s&&(i=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),f+="';\n";var h=Se.call(t,"variable")&&t.variable;h||(f="with (obj) {\n"+f+"\n}\n"),f=(i?f.replace(T,""):f).replace(D,"$1").replace(L,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=zs((function(){return pe(s,p+"return "+f).apply(void 0,u)}));if(m.source=f,Fa(m))throw m;return m},Cn.times=function(e,t){if((e=rs(e))<1||e>9007199254740991)return[];var n=4294967295,r=sn(e,4294967295);e-=4294967295;for(var o=Et(r,t=Xo(t));++n<e;)t(n);return o},Cn.toFinite=ns,Cn.toInteger=rs,Cn.toLength=os,Cn.toLower=function(e){return ss(e).toLowerCase()},Cn.toNumber=is,Cn.toSafeInteger=function(e){return e?Jn(rs(e),-9007199254740991,9007199254740991):0===e?e:0},Cn.toString=ss,Cn.toUpper=function(e){return ss(e).toUpperCase()},Cn.trim=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(G,"");if(!e||!(t=Xr(t)))return e;var r=Yt(e),o=Yt(t);return lo(r,Tt(r,o),Dt(r,o)+1).join("")},Cn.trimEnd=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(Z,"");if(!e||!(t=Xr(t)))return e;var r=Yt(e);return lo(r,0,Dt(r,Yt(t))+1).join("")},Cn.trimStart=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(J,"");if(!e||!(t=Xr(t)))return e;var r=Yt(e);return lo(r,Tt(r,Yt(t))).join("")},Cn.truncate=function(e,t){var n=30,r="...";if(Ha(t)){var o="separator"in t?t.separator:o;n="length"in t?rs(t.length):n,r="omission"in t?Xr(t.omission):r}var i=(e=ss(e)).length;if(Ft(e)){var a=Yt(e);i=a.length}if(n>=i)return e;var s=n-Wt(r);if(s<1)return r;var u=a?lo(a,0,s).join(""):e.slice(0,s);if(void 0===o)return u+r;if(a&&(s+=u.length-s),Ga(o)){if(e.slice(s).search(o)){var l,c=u;for(o.global||(o=ye(o.source,ss(re.exec(o))+"g")),o.lastIndex=0;l=o.exec(c);)var f=l.index;u=u.slice(0,void 0===f?s:f)}}else if(e.indexOf(Xr(o),s)!=s){var d=u.lastIndexOf(o);d>-1&&(u=u.slice(0,d))}return u+r},Cn.unescape=function(e){return(e=ss(e))&&N.test(e)?e.replace(I,Kt):e},Cn.uniqueId=function(e){var t=++xe;return ss(e)+t},Cn.upperCase=Ns,Cn.upperFirst=Fs,Cn.each=sa,Cn.eachRight=ua,Cn.first=Li,Zs(Cn,(cu={},ur(Cn,(function(e,t){Se.call(Cn.prototype,t)||(cu[t]=e)})),cu),{chain:!1}),Cn.VERSION="4.17.20",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Cn[e].placeholder=Cn})),st(["drop","take"],(function(e,t){Rn.prototype[e]=function(n){n=void 0===n?1:an(rs(n),0);var r=this.__filtered__&&!t?new Rn(this):this.clone();return r.__filtered__?r.__takeCount__=sn(n,r.__takeCount__):r.__views__.push({size:sn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Rn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Rn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Xo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Rn.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Rn.prototype[e]=function(){return this.__filtered__?new Rn(this):this[n](1)}})),Rn.prototype.compact=function(){return this.filter(Ys)},Rn.prototype.find=function(e){return this.filter(e).head()},Rn.prototype.findLast=function(e){return this.reverse().find(e)},Rn.prototype.invokeMap=Nr((function(e,t){return"function"==typeof e?new Rn(this):this.map((function(n){return br(n,e,t)}))})),Rn.prototype.reject=function(e){return this.filter(Sa(Xo(e)))},Rn.prototype.slice=function(e,t){e=rs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Rn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=rs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Rn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Rn.prototype.toArray=function(){return this.take(4294967295)},ur(Rn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Cn[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(Cn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof Rn,u=a[0],l=s||Ta(t),c=function(e){var t=o.apply(Cn,ht([e],a));return r&&f?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var f=this.__chain__,d=!!this.__actions__.length,p=i&&!f,h=s&&!d;if(!i&&l){t=h?t:new Rn(this);var m=e.apply(t,a);return m.__actions__.push({func:na,args:[c],thisArg:void 0}),new Mn(m,f)}return p&&h?e.apply(this,a):(m=this.thru(c),p?r?m.value()[0]:m.value():m)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ge[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Cn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ta(o)?o:[],e)}return this[n]((function(n){return t.apply(Ta(n)?n:[],e)}))}})),ur(Rn.prototype,(function(e,t){var n=Cn[t];if(n){var r=n.name+"";Se.call(gn,r)||(gn[r]=[]),gn[r].push({name:t,func:n})}})),gn[Eo(void 0,2).name]=[{name:"wrapper",func:void 0}],Rn.prototype.clone=function(){var e=new Rn(this.__wrapped__);return e.__actions__=bo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=bo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=bo(this.__views__),e},Rn.prototype.reverse=function(){if(this.__filtered__){var e=new Rn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Rn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ta(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++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=sn(t,e+a);break;case"takeRight":e=an(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,f=c.length,d=0,p=sn(u,this.__takeCount__);if(!n||!r&&o==u&&p==u)return no(e,this.__actions__);var h=[];e:for(;u--&&d<p;){for(var m=-1,y=e[l+=t];++m<f;){var v=c[m],b=v.iteratee,g=v.type,w=b(y);if(2==g)y=w;else if(!w){if(1==g)continue e;break e}}h[d++]=y}return h},Cn.prototype.at=ra,Cn.prototype.chain=function(){return ta(this)},Cn.prototype.commit=function(){return new Mn(this.value(),this.__chain__)},Cn.prototype.next=function(){void 0===this.__values__&&(this.__values__=ts(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Cn.prototype.plant=function(e){for(var t,n=this;n instanceof An;){var r=Ci(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Cn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Rn){var t=e;return this.__actions__.length&&(t=new Rn(this)),(t=t.reverse()).__actions__.push({func:na,args:[Hi],thisArg:void 0}),new Mn(t,this.__chain__)}return this.thru(Hi)},Cn.prototype.toJSON=Cn.prototype.valueOf=Cn.prototype.value=function(){return no(this.__wrapped__,this.__actions__)},Cn.prototype.first=Cn.prototype.head,$e&&(Cn.prototype[$e]=function(){return this}),Cn}();Ke._=Gt,void 0===(o=function(){return Gt}.call(t,n,t,r))||(r.exports=o)}).call(this)}).call(this,n(51),n(102)(e))},function(e,t,n){var r=n(15),o=n(20),i=n(52),a=n(60).f,s=n(32),u=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t,n){var r=n(15),o=n(38),i=n(43),a=n(42),s=n(60),u=n(91);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,l,c=arguments.length<3?t:arguments[2];return i(t)===c?t[n]:(r=s.f(t,n))?a(r,"value")?r.value:void 0===r.get?void 0:r.get.call(c):o(l=u(t))?e(l,n,c):void 0}})},function(e,t,n){"use strict";var r=n(15),o=n(47).map,i=n(20),a=n(101)("map"),s=a&&!i((function(){[].map.call({length:-1,0:1},(function(e){throw e}))}));r({target:"Array",proto:!0,forced:!a||!s},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(24),o=n(60).f,i=n(49),a=n(55),s=n(147),u=n(196),l=n(113);e.exports=function(e,t){var n,c,f,d,p,h=e.target,m=e.global,y=e.stat;if(n=m?r:y?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],!l(m?c:h+(y?".":"#")+c,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),a(n,c,d,e)}}},function(e,t,n){"use strict";var r=n(15),o=n(203);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(e,t,n){var r=n(24),o=n(207),i=n(203),a=n(49);for(var s in o){var u=r[s],l=u&&u.prototype;if(l&&l.forEach!==i)try{a(l,"forEach",i)}catch(e){l.forEach=i}}},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(57),n(16),n(31),n(50),n(1),n(29),n(14),n(30),n(19),n(69),n(214),n(61),n(2),n(62),n(21),n(5),n(44),n(6),n(103),n(34),n(37),n(17),n(4),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,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,sanitize:!0,fastCloneDeep:!0,interpolate:!0,isInputComponent:!0,getArrayFromComponentPath:!0,getStringFromComponentPath:!0,round:!0,getIEBrowserVersion:!0,jsonLogic:!0,moment:!0,Evaluator:!0};t.evaluate=b,t.getRandomComponentId=function(){return"e".concat(Math.random().toString(36).substring(7))},t.getPropertyValue=g,t.getElementRect=function(e){var t=window.getComputedStyle(e,null);return{x:g(t,"left"),y:g(t,"top"),width:g(t,"width"),height:g(t,"height")}},t.boolValue=function(e){return o.default.isBoolean(e)?e:o.default.isString(e)?"true"===e.toLowerCase():!!e},t.isMongoId=function(e){return e.toString().match(/^[0-9a-fA-F]{24}$/)},t.checkCalculated=function(e,t,n){e.calculateValue&&o.default.set(n,e.key,b(e.calculateValue,{value:void 0,data:t?t.data:n,row:n,util:this,component:e},"value"))},t.checkSimpleConditional=w,t.checkCustomConditional=k,t.checkJsonConditional=_,t.checkCondition=function(e,t,n,r,o){if(e.customConditional)return k(e,e.customConditional,t,n,r,"show",!0,o);if(e.conditional&&e.conditional.when)return w(e,e.conditional,t,n);if(e.conditional&&e.conditional.json)return _(e,e.conditional.json,t,n,r,!0);return!0},t.checkTrigger=function(e,t,n,r,o,i){if(!t[t.type])return!1;switch(t.type){case"simple":return w(e,t.simple,n,r);case"javascript":return k(e,t.javascript,n,r,o,"result",!1,i);case"json":return _(e,t.json,n,r,o,!1)}return!1},t.setActionProperty=function(e,t,n,r,i,a){var s=t.property.value;switch(t.property.type){case"boolean":var u=o.default.get(e,s,!1).toString(),l=t.state.toString();u!==l&&o.default.set(e,s,"true"===l);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.unescapeHTML=function(e){if("undefined"==typeof window||!("DOMParser"in window))return e;return(new window.DOMParser).parseFromString(e,"text/html").documentElement.textContent},t.convertStringToHTMLElement=function(e,t){return(new window.DOMParser).parseFromString(e,"text/html").body.querySelector(t)},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:O()}),"".concat(p.default.interpolate(t,n)).concat(a).replace(/[^0-9a-zA-Z.\-_ ]/g,"-")},t.guid=O,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}if(!t)return null;if(!t.isValid())return null;return t.toDate()},t.isValidDate=function(e){return o.default.isDate(e)&&!o.default.isNaN(e.getDate())},t.currentTimezone=S,t.offsetDate=x,t.zonesLoaded=function(){return s.default.zonesLoaded},t.shouldLoadZones=P,t.loadZones=j,t.momentDate=function(e,t,n){var r=(0,s.default)(e);"UTC"===n&&(n="Etc/UTC");if((n!==S()||t&&t.match(/\s(z$|z\s)/))&&s.default.zonesLoaded)return r.tz(n);return r},t.formatDate=function(e,t,n){var r=(0,s.default)(e);if(n===S())return t.match(/\s(z$|z\s)/)?(j(),s.default.zonesLoaded?r.tz(n).format(C(t)):r.format(C(t.replace(/\s(z$|z\s)/,"")))):r.format(C(t));if("UTC"===n){var o=x(r.toDate(),"UTC");return"".concat((0,s.default)(o.date).format(C(t))," UTC")}return j(),s.default.zonesLoaded&&n?r.tz(n).format("".concat(C(t)," z")):r.format(C(t))},t.formatOffset=function(e,t,n,r){if(r===S())return e(t,n);if("UTC"===r)return"".concat(e(x(t,"UTC").date,n)," UTC");if(j(),s.default.zonesLoaded){var o=x(t,r);return"".concat(e(o.date,n)," ").concat(o.abbr)}return e(t,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.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.convertFormatToMoment=C,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.getInputMask=function(e){if(e instanceof Array)return e;var t=[];t.numeric=!0;for(var n=0;n<e.length;n++)switch(e[n]){case"9":t.push(/\d/);break;case"A":t.numeric=!1,t.push(/[a-zA-Z]/);break;case"a":t.numeric=!1,t.push(/[a-z]/);break;case"*":t.numeric=!1,t.push(/[a-zA-Z0-9]/);break;default:t.numeric=!1,t.push(e[n])}return t},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},t.getNumberSeparators=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",t=12345.6789.toLocaleString(e),n=t.match(/..(.)...(.)../);if(!n)return{delimiter:",",decimalSeparator:"."};return{delimiter:n.length>1?n[1]:",",decimalSeparator:n.length>2?n[2]:"."}},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.getCurrencyAffixes=function(e){var t=e.currency,n=void 0===t?"USD":t,r=e.decimalLimit,o=e.decimalSeparator,i=e.lang,a="(.*)?100";r&&(a+="".concat("."===o?"\\.":o,"0{").concat(r,"}"));a+="(.*)?";var s=100..toLocaleString(i,{style:"currency",currency:n,useGrouping:!0,maximumFractionDigits:r,minimumFractionDigits:r}).replace(".",o).match(new RegExp(a));return{prefix:s[1]||"",suffix:s[2]||""}},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.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.iterateKey=E,t.uniqueKey=function(e,t){var n=t;for(;e.hasOwnProperty(n);)n=E(n);return n},t.bootstrapVersion=function(e){if(e.bootstrap)return e.bootstrap;if("function"==typeof $&&"function"==typeof $().collapse)return parseInt($.fn.collapse.Constructor.VERSION.split(".")[0],10);return 0},t.unfold=A,t.withSwitch=function(e,t){var n=e,r=t;return[function(){return n},function(){var e=n;n=r,r=e}]},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,u=function(){return a=0};return function(){if(0!==s&&(clearTimeout(s),s=0),s=setTimeout(u,i),(a+=1)>=r)return clearTimeout(s),u(),e()}},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.sanitize=function(e,t){var n={ADD_ATTR:["ref","target"],USE_PROFILES:{html:!0}};t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addAttr)&&t.sanitizeConfig.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);return f.default.sanitize(e,n)},t.fastCloneDeep=function(e){return e?JSON.parse(JSON.stringify(e)):e},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.getArrayFromComponentPath=function(e){if(!e||!o.default.isString(e))return o.default.isArray(e)?e:[e];return e.replace(/[[\]]/g,".").replace(/\.\./g,".").replace(/(^\.)|(\.$)/g,"").split(".").map((function(e){return o.default.defaultTo(o.default.toNumber(e),e)}))},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.round=function(e,t){if(o.default.isNumber(e))return e.toFixed(t);return e},t.getIEBrowserVersion=function(){if("undefined"==typeof document||!("documentMode"in document))return null;return document.documentMode},Object.defineProperty(t,"jsonLogic",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"moment",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Evaluator",{enumerable:!0,get:function(){return p.default}}),t.interpolate=t.firstNonNil=void 0;var o=h(n(11)),i=h(n(125)),a=h(n(288)),s=h(n(289)),u=h(n(290)),l=n(293),c=h(n(22)),f=h(n(294)),d=n(126);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var p=h(n(105));function h(e){return e&&e.__esModule?e:{default:e}}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var y=p.default.interpolate;t.interpolate=y;var v=(0,i.default)({Promise:c.default}).fetch;function b(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 u=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(u),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(u),e)}else if("object"===m(e))try{i=a.default.apply(e,t)}catch(e){i=null,console.warn("An error occured within custom function for ".concat(u),e)}else e&&console.warn("Unknown function type for ".concat(u));return i}function g(e,t){var n=e.getPropertyValue(t);return n=n?n.replace(/[^0-9.]/g,""):"0",parseFloat(n)}function w(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 k(e,t,n,r,o,i,a,s){"string"==typeof t&&(t="var ".concat(i," = true; ").concat(t,"; return ").concat(i,";"));var u=s&&s.evaluate?s.evaluate(t):b(t,{row:n,data:r,form:o});return null===u?a:u}function _(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 O(){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 S(){return s.default.currentTimezone||(s.default.currentTimezone=u.default.determine().name()),s.default.currentTimezone}function x(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 P(e){return e!==S()&&"UTC"!==e}function j(e){return e&&!P(e)?new c.default(o.default.noop):s.default.zonesPromise?s.default.zonesPromise:s.default.zonesPromise=v("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 C(e){return e.replace(/y/g,"Y").replace(/d/g,"D").replace(/E/g,"d").replace(/a/g,"A").replace(/U/g,"X")}function E(e){return e.match(/(\d+)$/)?e.replace(/(\d+)$/,(function(e){return Number(e)+1})):"".concat(e,"1")}function A(e){return"function"==typeof e?e():e}l.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 M=o.default.flow([o.default.partialRight(o.default.map,A),o.default.partialRight(o.default.find,(function(e){return!o.default.isUndefined(e)}))]);t.firstNonNil=M},function(e,t,n){var r=n(32),o=n(36).f,i=Function.prototype,a=i.toString,s=/^\s*function ([^ (]*)/;r&&!("name"in i)&&o(i,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";var r=n(15),o=n(118);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(e,t,n){(function(r,o){var i,a,s,u;
  11. /*! Native Promise Only
  12. v0.8.1 (c) Kyle Simpson
  13. MIT License: http://getify.mit-license.org
  14. */u=function(){"use strict";var e,t,n,r=Object.prototype.toString,i=void 0!==o?function(e){return o(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 a(e,r){n.add(e,r),t||(t=i(n.drain))}function s(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function u(){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=s(r))?o.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}function c(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=s(e))?a((function(){var r=new p(n);try{t.call(e,(function(){c.apply(r,arguments)}),(function(){f.apply(r,arguments)}))}catch(e){f.call(r,e)}})):(n.msg=e,n.state=1,n.chain.length>0&&a(u,n))}catch(e){f.call(new p(n),e)}}}function f(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&a(u,t))}function d(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 p(e){this.def=e,this.triggered=!1}function h(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(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 h(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})),t.chain.push(r),0!==t.state&&a(u,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){c.call(t,e)}),(function(e){f.call(t,e)}))}catch(e){f.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 y=e({},"constructor",m,!1);return m.prototype=y,e(y,"__NPO__",0,!1),e(m,"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(m,"reject",(function(e){return new this((function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)}))})),e(m,"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;d(t,e,(function(e,t){i[e]=t,++a===o&&n(i)}),r)}))})),e(m,"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");d(t,e,(function(e,t){n(t)}),r)}))})),m},(s=void 0!==r?r:this)[a="Promise"]=s[a]||u(),e.exports?e.exports=s[a]:void 0===(i=function(){return s[a]}.call(t,n,t,e))||(e.exports=i)}).call(this,n(51),n(163).setImmediate)},function(e,t,n){"use strict";var r=n(15),o=n(47).filter,i=n(20),a=n(101)("filter"),s=a&&!i((function(){[].filter.call({length:-1,0:1},(function(e){throw e}))}));r({target:"Array",proto:!0,forced:!a||!s},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n(51))},function(e,t,n){"use strict";var r,o=n(32),i=n(24),a=n(38),s=n(42),u=n(117),l=n(49),c=n(55),f=n(36).f,d=n(91),p=n(116),h=n(28),m=n(93),y=i.DataView,v=y&&y.prototype,b=i.Int8Array,g=b&&b.prototype,w=i.Uint8ClampedArray,k=w&&w.prototype,_=b&&d(b),O=g&&d(g),S=Object.prototype,x=S.isPrototypeOf,P=h("toStringTag"),j=m("TYPED_ARRAY_TAG"),C=!(!i.ArrayBuffer||!y),E=C&&!!p&&"Opera"!==u(i.opera),A=!1,M={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},R=function(e){return a(e)&&s(M,u(e))};for(r in M)i[r]||(E=!1);if((!E||"function"!=typeof _||_===Function.prototype)&&(_=function(){throw TypeError("Incorrect invocation")},E))for(r in M)i[r]&&p(i[r],_);if((!E||!O||O===S)&&(O=_.prototype,E))for(r in M)i[r]&&p(i[r].prototype,O);if(E&&d(k)!==O&&p(k,O),o&&!s(O,P))for(r in A=!0,f(O,P,{get:function(){return a(this)?this[j]:void 0}}),M)i[r]&&l(i[r],j,r);C&&p&&d(v)!==S&&p(v,S),e.exports={NATIVE_ARRAY_BUFFER:C,NATIVE_ARRAY_BUFFER_VIEWS:E,TYPED_ARRAY_TAG:A&&j,aTypedArray:function(e){if(R(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(p){if(x.call(_,e))return e}else for(var t in M)if(s(M,r)){var n=i[t];if(n&&(e===n||x.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(o){if(n)for(var r in M){var a=i[r];a&&s(a.prototype,e)&&delete a.prototype[e]}O[e]&&!n||c(O,e,n?t:E&&g[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,a;if(o){if(p){if(n)for(r in M)(a=i[r])&&s(a,e)&&delete a[e];if(_[e]&&!n)return;try{return c(_,e,n?t:E&&b[e]||t)}catch(e){}}for(r in M)!(a=i[r])||a[e]&&!n||c(a,e,t)}},isView:function(e){var t=u(e);return"DataView"===t||s(M,t)},isTypedArray:R,TypedArray:_,TypedArrayPrototype:O}},function(e,t,n){var r=n(15),o=n(46),i=n(96);r({target:"Object",stat:!0,forced:n(20)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},function(e,t,n){"use strict";n(0),n(14),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 d=r.default.cloneDeep([{type:"tabs",key:"tabs",components:[{label:"Display",key:"display",weight:0,components:s.default},{label:"Data",key:"data",weight:10,components:i.default},{label:"Validation",key:"validation",weight:20,components:l.default},{label:"API",key:"api",weight:30,components:a.default},{label:"Conditional",key:"conditional",weight:40,components:o.default},{label:"Logic",key:"logic",weight:50,components:u.default},{label:"Layout",key:"layout",weight:60,components:c.default}]}]).concat(t.map((function(e){return{type:"tabs",key:"tabs",components:r.default.cloneDeep(e)}})));return{components:r.default.unionWith(d,f.default.unifyComponents).concat({type:"hidden",key:"type"})}};var r=d(n(11)),o=d(n(874)),i=d(n(875)),a=d(n(876)),s=d(n(877)),u=d(n(878)),l=d(n(879)),c=d(n(880)),f=d(n(73));function d(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var r=n(24),o=n(148),i=n(42),a=n(93),s=n(151),u=n(200),l=o("wks"),c=r.Symbol,f=u?c:a;e.exports=function(e){return i(l,e)||(s&&i(c,e)?l[e]=c[e]:l[e]=f("Symbol."+e)),l[e]}},function(e,t,n){"use strict";var r=n(15),o=n(92),i=n(52),a=n(83),s=[].join,u=o!=Object,l=a("join",",");r({target:"Array",proto:!0,forced:u||l},{join:function(e){return s.call(i(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(15),o=n(38),i=n(114),a=n(90),s=n(33),u=n(52),l=n(100),c=n(101),f=n(28)("species"),d=[].slice,p=Math.max;r({target:"Array",proto:!0,forced:!c("slice")},{slice:function(e,t){var n,r,c,h=u(this),m=s(h.length),y=a(e,m),v=a(void 0===t?m:t,m);if(i(h)&&("function"!=typeof(n=h.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[f])&&(n=void 0):n=void 0,n===Array||void 0===n))return d.call(h,y,v);for(r=new(void 0===n?Array:n)(p(v-y,0)),c=0;y<v;y++,c++)y in h&&l(r,c,h[y]);return r.length=c,r}})},function(e,t,n){"use strict";var r=n(15),o=n(95).includes,i=n(115);r({target:"Array",proto:!0},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(e,t,n){var r=n(20);e.exports=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(56),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){"use strict";var r=n(121),o=n(43),i=n(46),a=n(33),s=n(56),u=n(53),l=n(162),c=n(122),f=Math.max,d=Math.min,p=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n){return[function(n,r){var o=u(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,i){var u=n(t,e,this,i);if(u.done)return u.value;var p=o(e),h=String(this),m="function"==typeof i;m||(i=String(i));var y=p.global;if(y){var v=p.unicode;p.lastIndex=0}for(var b=[];;){var g=c(p,h);if(null===g)break;if(b.push(g),!y)break;""===String(g[0])&&(p.lastIndex=l(h,a(p.lastIndex),v))}for(var w,k="",_=0,O=0;O<b.length;O++){g=b[O];for(var S=String(g[0]),x=f(d(s(g.index),h.length),0),P=[],j=1;j<g.length;j++)P.push(void 0===(w=g[j])?w:String(w));var C=g.groups;if(m){var E=[S].concat(P,x,h);void 0!==C&&E.push(C);var A=String(i.apply(void 0,E))}else A=r(S,h,x,P,C,i);x>=_&&(k+=h.slice(_,x)+A,_=x+S.length)}return k+h.slice(_)}];function r(e,n,r,o,a,s){var u=r+e.length,l=o.length,c=m;return void 0!==a&&(a=i(a),c=h),t.call(s,c,(function(t,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return t;if(c>l){var f=p(c/10);return 0===f?t:f<=l?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):t}s=o[c-1]}return void 0===s?"":s}))}}))},function(e,t,n){"use strict";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)}}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 t,n,o;return t=e,(n=[{key:"check",value:function(){}}])&&r(t.prototype,n),o&&r(t,o),e}()},function(e,t,n){var r=n(32),o=n(192),i=n(43),a=n(87),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";var r=n(121),o=n(160),i=n(43),a=n(53),s=n(104),u=n(162),l=n(33),c=n(122),f=n(118),d=n(20),p=[].push,h=Math.min,m=!d((function(){return!RegExp(4294967295,"y")}));r("split",2,(function(e,t,n){var r;return r="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 r=String(a(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,i);for(var s,u,l,c=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,m=new RegExp(e.source,d+"g");(s=f.call(m,r))&&!((u=m.lastIndex)>h&&(c.push(r.slice(h,s.index)),s.length>1&&s.index<r.length&&p.apply(c,s.slice(1)),l=s[0].length,h=u,c.length>=i));)m.lastIndex===s.index&&m.lastIndex++;return h===r.length?!l&&m.test("")||c.push(""):c.push(r.slice(h)),c.length>i?c.slice(0,i):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=a(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var a=n(r,e,this,o,r!==t);if(a.done)return a.value;var f=i(e),d=String(this),p=s(f,RegExp),y=f.unicode,v=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(m?"y":"g"),b=new p(m?f:"^(?:"+f.source+")",v),g=void 0===o?4294967295:o>>>0;if(0===g)return[];if(0===d.length)return null===c(b,d)?[d]:[];for(var w=0,k=0,_=[];k<d.length;){b.lastIndex=m?k:0;var O,S=c(b,m?d:d.slice(k));if(null===S||(O=h(l(b.lastIndex+(m?0:k)),d.length))===w)k=u(d,k,y);else{if(_.push(d.slice(w,k)),_.length===g)return _;for(var x=1;x<=S.length-1;x++)if(_.push(S[x]),_.length===g)return _;k=w=O}}return _.push(d.slice(w)),_}]}),!m)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(15),o=n(281);r({target:"Array",stat:!0,forced:!n(157)((function(e){Array.from(e)}))},{from:o})},function(e,t,n){"use strict";var r=n(15),o=n(123).left;r({target:"Array",proto:!0,forced:n(83)("reduce")},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";(function(e){n(3),n(7),n(8),n(0),n(23),n(16),n(39),n(31),n(50),n(1),n(29),n(14),n(40),n(30),n(19),n(69),n(61),n(2),n(62),n(21),n(5),n(44),n(6),n(103),n(34),n(120),n(37),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(22)),o=h(n(125)),i=h(n(165)),a=h(n(396)),s=h(n(235)),u=h(n(417)),l=h(n(168)),c=h(n(433)),f=h(n(434)),d=n(18),p=h(n(435));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){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;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,t)||y(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 y(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}}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 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})(e)}n(438);var k=(0,o.default)({Promise:r.default}),_=k.fetch,O=k.Headers,S=function(e){return null==e},x=function(e){return e&&"object"===w(e)};function P(e){var t=(0,c.default)(e);return Array.isArray(e)&&(t.skip=e.skip,t.limit=e.limit,t.serverCount=e.serverCount),t}var j=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: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),u=[],l=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)&&(u=t.match(o),n["".concat(e,"Url")]=u?r+u[0]:"",n["".concat(e,"Id")]=u.length>1?u[1]:"",r+=u[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||(this.projectUrl=l),!this.noProject){if(a)d(["project"],l),t=t.replace(i,"");else if(l===this.base){if(s.length>3&&t.split("/").length>1){var p=t.split("/");p.shift(),this.projectId=p.shift(),t="/".concat(p.join("/")),this.projectUrl="".concat(l,"/").concat(this.projectId)}}else s.length>2&&(s[2].split(".").length>2||l.includes("localhost"))&&(this.projectUrl=l,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 h=new RegExp("/(submission|action|v)($|/.*)"),m=t.match(h);this.pathType=m&&m.length>1?m[1]:"",t=(t=t.replace(h,"")).replace(/\/$/,""),this.formsUrl="".concat(this.projectUrl,"/form"),this.formUrl=t?this.projectUrl+t:"",this.formId=t.replace(/^\/+|\/+$/g,"");var y=["submission","action","v"];for(var v in y)if(y.hasOwnProperty(v)){var g=y[v];this["".concat(g,"sUrl")]="".concat(this.projectUrl+t,"/").concat(g),this.pathType===g&&m.length>2&&m[2]&&(this["".concat(g,"Id")]=m[2].replace(/^\/+|\/+$/g,""),this["".concat(g,"Url")]=this.projectUrl+t+m[0])}}e.projectUrlSet||(e.projectUrl=this.projectUrl)}var t,n,o;return t=e,o=[{key:"loadProjects",value:function(t,n){return x(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))));return r.join("&")}},{key:"getRequestArgs",value:function(e,t,n,r,o,i){r=(r||"GET").toUpperCase(),i&&x(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(r){return S(r)?e.request(t,n,i.data,i.opts.header,i.opts):r}))}));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 u=e.pluginWait("preRequest",s).then((function(){return e.pluginGet("request",s).then((function(t){return S(t)?e.request(r,o,s.data,s.opts.header,s.opts):t}))}));return e.pluginAlter("wrapRequestPromise",u,s)}},{key:"request",value:function(t,n,o,i,a){if(!t)return r.default.reject("No url provided");n=(n||"GET").toUpperCase(),w(a)===w(!0)&&(a={ignoreCache:a}),a&&x(a)||(a={});var s=btoa(encodeURI(t));if(!a.ignoreCache&&"GET"===n&&e.cache.hasOwnProperty(s))return r.default.resolve(P(e.cache[s]));var u=i||new O(a.headers||{Accept:"application/json","Content-type":"application/json"}),l=e.getToken(a);l&&!a.noToken&&u.append("x-jwt-token",l);var c={};u.forEach((function(e,t){c[t]=e}));var f={method:n,headers:c,mode:"cors"};o&&(f.body=JSON.stringify(o)),((f=e.pluginAlter("requestOptions",f,t)).namespace||e.namespace)&&(a.namespace=f.namespace||e.namespace);var d=f.headers["x-jwt-token"];return e.pluginAlter("wrapFetchRequestPromise",e.fetch(t,f),{url:t,method:n,data:o,opts:a}).then((function(i){if(!(i=e.pluginAlter("requestResponse",i,e,o)).ok)return 440===i.status?(e.setToken(null,a),e.events.emit("formio.sessionExpired",i.body)):401===i.status?e.events.emit("formio.unauthorized",i.body):416===i.status&&e.events.emit("formio.rangeIsNotSatisfiable",i.body),(i.headers.get("content-type").includes("application/json")?i.json():i.text()).then((function(e){return r.default.reject(e)}));var s=i.headers.get("x-jwt-token"),u=!1;return"GET"!==n||d||!s||a.external||t.includes("token=")||t.includes("x-jwt-token=")||(console.warn("Token was introduced in request."),u=!0),i.status>=200&&i.status<300&&s&&""!==s&&!u&&e.setToken(s,a),204===i.status?{}:(i.headers.get("content-type").includes("application/json")?i.json():i.text()).then((function(e){var t=i.headers.get("content-range");if(t&&x(e)){if("*"!==(t=t.split("/"))[0]){var n=t[0].split("-");e.skip=Number(n[0]),e.limit=n[1]-n[0]+1}e.serverCount="*"===t[1]?t[1]:Number(t[1])}if(!a.getHeaders)return e;var r={};return i.headers.forEach((function(e,t){r[t]=e})),{result:e,headers:r}}))})).then((function(t){return a.getHeaders?t:("GET"===n&&(e.cache[s]=t),P(t))})).catch((function(t){return"Bad Token"===t&&(e.setToken(null,a),e.events.emit("formio.badToken",t)),t.message&&(t.message="Could not connect to API server (".concat(t.message,")"),t.networkError=!0),"GET"===n&&delete e.cache[s],r.default.reject(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 e.currentUser(n.formio,n)}},{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){e.plugins.push(t),e.plugins.sort((function(e,t){return(t.priority||0)-(e.priority||0)})),t.__name=n,(t.init||e.noop).call(t,e)}},{key:"getPlugin",value:function(t){var n,r=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=y(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=e[Symbol.iterator]()},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 S(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=e.authUrl;o||(o=t?t.projectUrl:e.projectUrl||e.baseUrl),o+="/current";var i=e.getUser(n);if(i)return e.pluginAlter("wrapStaticRequestPromise",r.default.resolve(i),{url:o,method:"GET",options:n});var a=e.getToken(n);return n&&n.external||a?e.makeRequest(t,"currentUser",o,"GET",null,n).then((function(t){return e.setUser(t,n),t})):e.pluginAlter("wrapStaticRequestPromise",r.default.resolve(null),{url:o,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){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 a="".concat(t,"Callback");i||window[a]||(window[a]=function(){return e.libraries[t].resolve()});var s=(0,l.default)(window,n);if(s)e.libraries[t].resolve(s);else if((o=Array.isArray(o)?o:[o]).forEach((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,referrerpolicy:"origin"};break;case"styles":n="link",t={href:e.src,rel:"stylesheet"}}var r=document.createElement(n);if(r.setAttribute)for(var o in t)r.setAttribute(o,t[o]);var i=document.head;i&&i.appendChild(r)})),i)var u=setInterval((function(){var r=(0,l.default)(window,n);r&&(clearInterval(u),e.libraries[t].resolve(r))}),200)}return e.libraries[t].ready}},{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:"token",get:function(){return e.tokens||(e.tokens={}),e.tokens.formioToken||""},set:function(t){e.tokens||(e.tokens={}),e.tokens.formioToken=t||""}}],(n=[{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||"")&&x(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");return n&&x(n)&&(n=e.serialize(n.params)),n=n?this.query?"".concat(this.query,"&").concat(n):"?".concat(n):this.query,this[i]?this.makeRequest(t,this[a]+n,"get",null,o):r.default.reject("Missing ".concat(i))}},{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:(t&&x(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,u,l,c,f){var d=this,p={provider:t,method:"upload",file:n,fileName:r,dir:o};l=l||"file";var h=e.pluginWait("preRequest",p).then((function(){return e.pluginGet("fileRequest",p).then((function(e){if(t&&S(e)){var p=s.default.getProvider("storage",t);if(p)return new p(d).uploadFile(n,r,o,i,a,u,l,c,f);throw"Storage provider not found"}return e||{url:""}}))}));return e.pluginAlter("wrapFileRequestPromise",h,p)}},{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&&S(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:"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),y=h[0],v=h[1];["create","read","update","delete"].includes(y)&&(0,u.default)(p.roles,n.roles).length&&(a[i[y]]="all"===v||!r||n._id===r.owner)}return r&&(0,d.eachComponent)(t.components,(function(e,t){if(e&&e.defaultPermission){var o=(0,l.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)}}])&&g(t.prototype,n),o&&g(t,o),e}();t.default=j,j.libraries={},j.Promise=r.default,j.fetch=_,j.Headers=O,j.baseUrl="https://api.form.io",j.projectUrl=j.baseUrl,j.authUrl="",j.projectUrlSet=!1,j.plugins=[],j.cache={},j.Providers=s.default,j.version="4.12.0",j.events=new i.default({wildcard:!1,maxListeners:0}),void 0!==e&&j.addToGlobal(e),"undefined"!=typeof window&&j.addToGlobal(window)}).call(this,n(51))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(38);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){"use strict";var r=n(15),o=n(212),i=n(53);r({target:"String",proto:!0,forced:!n(213)("includes")},{includes:function(e){return!!~String(i(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(15),o=n(32),i=n(197),a=n(52),s=n(60),u=n(100);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,l=i(r),c={},f=0;l.length>f;)void 0!==(n=o(r,t=l[f++]))&&u(c,t,n);return c}})},function(e,t,n){var r=n(53);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(98),o=n(92),i=n(46),a=n(33),s=n(152),u=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,c=4==e,f=6==e,d=5==e||f;return function(p,h,m,y){for(var v,b,g=i(p),w=o(g),k=r(h,m,3),_=a(w.length),O=0,S=y||s,x=t?S(p,_):n?S(p,0):void 0;_>O;O++)if((d||O in w)&&(b=k(v=w[O],O,g),e))if(t)x[O]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return O;case 2:u.call(x,v)}else if(c)return!1;return f?-1:l||c?c:x}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(23),n(16),n(39),n(31),n(50),n(1),n(29),n(14),n(40),n(30),n(68),n(66),n(19),n(61),n(12),n(45),n(10),n(26),n(2),n(9),n(13),n(21),n(240),n(5),n(44),n(6),n(34),n(37),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(106),o=m(n(22)),i=m(n(241)),a=m(n(11)),s=m(n(1007)),u=m(n(41)),l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==y(e)&&"function"!=typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(18)),c=m(n(443)),f=m(n(188)),d=m(n(189)),p=m(n(245));function h(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}function m(e){return e&&e.__esModule?e:{default:e}}function y(e){return(y="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 v(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?v(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(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){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=_(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=e[Symbol.iterator]()},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 k(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||_(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 _(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}}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 S(e,t,n){return(S="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=M(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function x(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){return t&&x(e.prototype,t),n&&x(e,n),e}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=M(e);if(t){var o=M(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?A(e):t}function A(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)})(e)}var R=l.getIEBrowserVersion(),T=R?"https://cdn.ckeditor.com/4.14.1/standard/ckeditor.js":"https://cdn.form.io/ckeditor/19.0.0/ckeditor.js",D=R?"https://cdn.quilljs.com/1.3.7":"https://cdn.quilljs.com/2.0.0-dev.3",L=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&&j(e,t)}(n,e);var t=C(n);function n(e,r,o){var i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),i=t.call(this,Object.assign({renderMode:"form",attachMode:"full"},r||{})),e&&e.id&&(i.id=e.id),i._hasCondition=null,i.refs={},e&&i.options.components&&i.options.components[e.type]&&a.default.merge(e,i.options.components[e.type]),i.validator=c.default,i.path="",i.component=i.mergeSchema(e||{}),i.originalComponent=(0,l.fastCloneDeep)(i.component),i.attached=!1,i.rendered=!1,i._data=o||{},i.component.id=i.id,i.error="",i.tooltip="",i.row=i.options.row,i._disabled=!!(0,l.boolValue)(i.component.disabled)&&i.component.disabled,i.root=i.options.root,i.pristine=!0,i.parent=i.options.parent,i.options.name=i.options.name||"data",i.validators=["required","minLength","maxLength","minWords","maxWords","custom","pattern","json","mask"],i._path="",i._parentPath=i.options.parentPath||"",i._parentVisible=!i.options.hasOwnProperty("parentVisible")||i.options.parentVisible,i._visible=i._parentVisible&&i.conditionallyVisible(null,o),i._parentDisabled=!1;var s=[],u=null,f=[],d=a.default.debounce((function(){var e;i.root&&(i.root.changing=!1),f=[];for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];!n[1]&&u&&(n[1]=u),a.default.isEmpty(n[0])&&u&&(n[0]=u.flags),u=null,n[3]=s;var o=(e=i).onChange.apply(e,n);return s=[],o}),100);return i.triggerChange=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1]&&(u=t[1],s.push(u)),i.root&&(i.root.changing=!0),t.length&&(f=t),d.apply(void 0,k(f))},i.triggerRedraw=a.default.debounce(i.redraw.bind(A(i)),100),i.tooltips=[],i.invalid=!1,i.component&&(i.type=i.component.type,i.allowData&&i.key&&(i.options.name+="[".concat(i.key,"]"),!i.visible&&i.component.clearOnHide||(i.hasValue()?i.dataValue=i.dataValue:i.dataValue=i.defaultValue)),i.info=i.elementInfo()),i.hook("component"),i.options.skipInit||i.init(),i}return P(n,null,[{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.merge.apply(a.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:"",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}].concat(t))}},{key:"tableView",value:function(e,t){}},{key:"Validator",get:function(){return c.default}}]),P(n,[{key:"mergeSchema",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a.default.defaultsDeep(e,this.defaultSchema)}},{key:"init",value:function(){this.disabled=this.shouldDisabled,this._visible=this.conditionallyVisible(null,null)}},{key:"destroy",value:function(){S(M(n.prototype),"destroy",this).call(this),this.detach()}},{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?(a.default.each(e,(function(e,i){if(!a.default.isArray(e)&&a.default.isObject(e)&&t.hasOwnProperty(i)){var s=r.getModifiedSchema(e,t[i],!0);a.default.isEmpty(s)||(o[i]=s)}else a.default.isArray(e)?0!==e.length&&(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])&&(o[i]=e)})),o):e}},{key:"t",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"";r.data=this.rootValue,r.row=this.data,r.component=this.component;for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];return(t=S(M(n.prototype),"t",this)).call.apply(t,[this,e,r].concat(i))}},{key:"labelIsHidden",value:function(){return!this.component.label||(!this.inDataGrid&&this.component.hideLabel||this.inDataGrid&&!this.component.dataGridLabel||this.options.inputsOnly)&&!this.builderMode}},{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?f.default.templates[this.options.template]:f.default.current;if(n=this.checkTemplate(r,e,t))return n;var o=e[e.length-1],i=f.default.defaultTemplates[o];if(!i)return"Unknown template: ".concat(o);var a=this.checkTemplateMode(i,t);return a||i.form}},{key:"checkTemplate",value:function(e,t,n){var r,o=w(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=w(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:"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.interpolate(this.component.tooltip||"").replace(/(?:\r\n|\r|\n)/g,"<br />");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){return l.sanitize(e,this.options)}},{key:"renderString",value:function(e,t){return e?this.interpolate(e,t):""}},{key:"performInputMapping",value:function(e){return e}},{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 o.default.resolve(!0)}},{key:"beforeNext",value:function(){return this.beforePage(!0)}},{key:"beforeSubmit",value:function(){return o.default.resolve(!0)}},{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(){this.componentModal.setOpenModalElement(this.getModalPreviewTemplate())}},{key:"getModalPreviewTemplate",value:function(){return this.renderTemplate("modalPreview",{previewText:this.getValueAsString(this.dataValue,{modalPreview:!0})||this.t("Click to set value")})}},{key:"build",value:function(e){return e=e||this.element,this.empty(e),this.setContent(e,this.render()),this.attach(e)}},{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.component.modalEdit?p.default.render(this,{visible:n,showSaveButton:this.hasModalSaveButton,id:this.id,classes:this.className,styles:this.customStyle,children:e},t):this.renderTemplate("component",{visible:n,id:this.id,classes:this.className,styles:this.customStyle,children:e},t)}},{key:"attach",value:function(e){var t=this;if(!this.builderMode&&this.component.modalEdit){var n=!!this.componentModal&&this.componentModal.isOpened,r=n?this.componentModal.currentValue:this.dataValue;this.componentModal=new p.default(this,e,n,r),this.setOpenModalElement()}this.attached=!0,this.element=e,e.component=this,this.element.id&&(this.id=this.element.id),this.loadRefs(e,{messageContainer:"single",tooltip:"multiple"}),this.refs.tooltip.forEach((function(e,n){var r=t.interpolate(e.getAttribute("data-title")||t.t(t.component.tooltip)).replace(/(?:\r\n|\r|\n)/g,"<br />");t.tooltips[n]=new i.default(e,{trigger:"hover click focus",placement:"right",html:!0,title:r,template:'\n <div class="tooltip" style="opacity: 1;" role="tooltip">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner"></div>\n </div>'})})),this.attachLogic(),this.autofocus(),this.hook("attachComponent",e,this);var a=this.component.type;return a&&this.hook("attach".concat(a.charAt(0).toUpperCase()+a.substring(1,a.length)),e,this),this.restoreFocus(),o.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.dispose()}},{key:"checkRefresh",value:function(e,t,n){var r=a.default.get(t,"instance.path",!1);r&&this.path===r||("data"===e?this.refresh(this.data,t,n):r&&r===e&&t&&t.instance&&this.inContext(t.instance)&&this.refresh(t.value,t,n))}},{key:"checkRefreshOn",value:function(e,t){var n=this;!(e=e||[]).length&&(null==t?void 0:t.changed)&&(e=[t.changed]);var r=this.component.refreshOn||this.component.redrawOn;r&&(Array.isArray(r)?r.forEach((function(r){return e.forEach((function(e){return n.checkRefresh(r,e,t)}))})):e.forEach((function(e){return n.checkRefresh(r,e,t)})))}},{key:"refresh",value:function(e){this.hasOwnProperty("refreshOnValue")?this.refreshOnChanged=!a.default.isEqual(e,this.refreshOnValue):this.refreshOnChanged=!0,this.refreshOnValue=(0,l.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:"createViewOnlyElement",value:function(){return this.element=this.ce("dl",{id:this.id}),this.element&&(this.element.component=this),this.element}},{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 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){return e?(e=this.getWidgetValueAsString(e,t),Array.isArray(e)?e.join(", "):a.default.isPlainObject(e)?JSON.stringify(e):null==e?"":e.toString()):""}},{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(a.default.isObject(e)){if(this.valueProperty)return a.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:"getElement",value:function(){return this.element}},{key:"evalContext",value:function(e){return S(M(n.prototype),"evalContext",this).call(this,Object.assign({component:this.component,row:this.data,rowIndex:this.rowIndex,data:this.rootValue,iconClass:this.iconClass.bind(this),submission:this.root?this.root._submission:{},form:this.root?this.root._form:{}},e))}},{key:"setPristine",value:function(e){this.pristine=e}},{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||f.default.current.defaultIconset||"fa";return f.default.current.hasOwnProperty("iconClass")?f.default.current.iconClass(n,e,t):"fa"===this.options.iconset?f.default.defaultTemplates.iconClass(n,e,t):e}},{key:"size",value:function(e){return f.default.current.hasOwnProperty("size")?f.default.current.size(e):e}},{key:"errorMessage",value:function(e){return this.component.errors&&this.component.errors[e]?this.component.errors[e]:e}},{key:"setContent",value:function(e,t){return e instanceof HTMLElement&&(e.innerHTML=this.sanitize(t),!0)}},{key:"restoreCaretPosition",value:function(){var e,t;if((null===(e=this.root)||void 0===e?void 0:e.currentSelection)&&(null===(t=this.refs.input)||void 0===t?void 0:t.length)){var n=this.root.currentSelection,r=n.selection,o=n.index,i=this.refs.input[o];if(i){var a;(a=i).setSelectionRange.apply(a,k(r))}else{var s,u=(null===(s=(i=this.refs.input[this.refs.input.length]).value)||void 0===s?void 0:s.length)||0;i.setSelectionRange(u,u)}}}},{key:"redraw",value:function(){if(!this.element||!this.element.parentNode)return o.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.redraw()}},{key:"removeEventListeners",value:function(){S(M(n.prototype),"removeEventListeners",this).call(this),this.tooltips.forEach((function(e){return e.dispose()})),this.tooltips=[],this.refs.input=[]}},{key:"hasClass",value:function(e,t){if(e)return S(M(n.prototype),"hasClass",this).call(this,e,this.transform("class",t))}},{key:"addClass",value:function(e,t){if(e)return S(M(n.prototype),"addClass",this).call(this,e,this.transform("class",t))}},{key:"removeClass",value:function(e,t){if(e)return S(M(n.prototype),"removeClass",this).call(this,e,this.transform("class",t))}},{key:"hasCondition",value:function(){return null!==this._hasCondition||(this._hasCondition=l.hasCondition(this.component)),this._hasCondition}},{key:"conditionallyVisible",value:function(e,t){return e=e||this.rootValue,t=t||this.data,this.builderMode||!this.hasCondition()?!this.component.hidden:(e=e||(this.root?this.root.data:{}),this.checkCondition(t,e))}},{key:"checkCondition",value:function(e,t){return l.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.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:"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,l.fastCloneDeep)(this.originalComponent),i=r.reduce((function(r,i){var a=l.checkTrigger(o,i.trigger,t,e,n.root?n.root._form:{},n);return!!a&&n.applyActions(o,i.actions,a,t,e)||r}),!1);return a.default.isEqual(this.component,o)||(this.component=o,this.disabled=this.shouldDisabled,i=!0),i}}},{key:"isIE",value:function(){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:"applyActions",value:function(e,t,n,r,o){var i=this;return o=o||this.rootValue,r=r||this.data,t.reduce((function(t,s){switch(s.type){case"property":l.setActionProperty(e,s,n,r,o,i);var u=s.property.value;a.default.isEqual(a.default.get(i.component,u),a.default.get(e,u))||(t=!0);break;case"value":var c=i.getValue(),f=i.evaluate(s.value,{value:a.default.clone(c),data:o,row:r,component:e,result:n},"value");a.default.isEqual(c,f)||(i.setValue(f),i.viewOnly&&(i.dataValue=f),t=!0);break;case"mergeComponentSchema":var d=i.evaluate(s.schemaDefinition,{value:a.default.clone(i.getValue()),data:o,row:r,component:e,result:n},"schema");a.default.assign(e,d),a.default.isEqual(i.component,e)||(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]),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;this.clearErrorClasses(),e.forEach((function(e){return o.removeClass(o.performInputMapping(e),"is-invalid")})),n&&(e.forEach((function(e){return o.addClass(o.performInputMapping(e),"is-invalid")})),t&&this.options.highlightErrors?this.addClass(this.element,this.options.componentErrorClass):this.addClass(this.element,"has-error")),r&&this.addClass(this.element,"has-message")}},{key:"clearOnHide",value:function(){this.rootPristine||!1===this.component.clearOnHide||this.options.readOnly||this.options.showHiddenFields||(this.visible?this.hasValue()||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&&(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};this.emit("componentChange",n);var r=!1;return e.modified&&(r=!0,delete e.modified),t||this.triggerRootChange(e,n,r),n}},{key:"addCKE",value:function(e,t,n){return(t=a.default.isEmpty(t)?{}:t).base64Upload=!0,t.mediaEmbed={previewsInData:!0},t=a.default.merge(this.wysiwygDefault.ckeditor,a.default.get(this.options,"editors.ckeditor.settings",{}),t),u.default.requireLibrary("ckeditor",R?"CKEDITOR":"ClassicEditor",a.default.get(this.options,"editors.ckeditor.src",T),!0).then((function(){if(!e.parentNode)return o.default.reject();if(R){var r=CKEDITOR.replace(e);return r.on("change",(function(){return n(r.getData())})),o.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=a.default.isEmpty(t)?this.wysiwygDefault.quill:t,t=b(b({},t=a.default.merge(this.wysiwygDefault.quill,a.default.get(this.options,"editors.quill.settings",{}),t)),{},{modules:{table:!0}}),u.default.requireLibrary("quill-css-".concat(t.theme),"Quill",[{type:"styles",src:"".concat(D,"/quill.").concat(t.theme,".css")}],!0),u.default.requireLibrary("quill","Quill",a.default.get(this.options,"editors.quill.src","".concat(D,"/quill.min.js")),!0).then((function(){return u.default.requireLibrary("quill-table","Quill","https://cdn.form.io/quill/quill-table.js",!0).then((function(){if(!e.parentNode)return o.default.reject();r.quill=new Quill(e,R?b(b({},t),{},{modules:{}}):t);var i=document.createElement("textarea");i.setAttribute("class","quill-source-code"),r.quill.addContainer("ql-custom").appendChild(i);var a=e.parentNode.querySelector(".ql-source");a&&r.addEventListener(a,"click",(function(e){e.preventDefault(),"inherit"===i.style.display&&r.quill.setContents(r.quill.clipboard.convert(i.value)),i.style.display="none"===i.style.display?"inherit":"none"})),r.addEventListener(e,"click",(function(){return r.quill.focus()}));for(var s=document.querySelectorAll(".ql-formats > button"),u=0;u<s.length;u++)s[u].setAttribute("tabindex","-1");return r.quill.on("text-change",(function(){i.value=r.quill.root.innerHTML,n(i)})),r.quill}))}))}},{key:"addAce",value:function(e,t,n){if(!t||"snow"===t.theme){var r=t?t.mode:"";t={},r&&(t.mode=r)}return t=a.default.merge(this.wysiwygDefault.ace,a.default.get(this.options,"editors.ace.settings",{}),t||{}),u.default.requireLibrary("ace","ace",a.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("ace/mode/".concat(t.mode)),r.on("change",(function(){return n(r.getValue())})),r}))}},{key:"hasValue",value:function(e){return a.default.has(e||this.data,this.key)}},{key:"splice",value:function(e){if(this.hasValue()){var t=this.dataValue||[];a.default.isArray(t)&&t.hasOwnProperty(e)&&(t.splice(e,1),this.dataValue=t,this.triggerChange())}}},{key:"unset",value:function(){a.default.unset(this._data,this.key)}},{key:"deleteValue",value:function(){this.setValue(null,{noUpdateEvent:!0,noDefault:!0}),this.unset()}},{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]:{},n=this.updateValue(e,t);if(e=this.dataValue,!this.hasInput)return n;var r=Array.isArray(e);for(var o in r&&Array.isArray(this.defaultValue)&&this.refs.hasOwnProperty("input")&&this.refs.input&&this.refs.input.length!==e.length&&this.visible&&this.redraw(),this.refs.input)this.refs.input.hasOwnProperty(o)&&this.setValueAt(o,r?e[o]: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]);r.mask?r.mask.textMaskInputElement.update(t):r.widget&&r.widget.setValue?r.widget.setValue(t):r.value=t}},{key:"setDefaultValue",value:function(){if(this.defaultValue){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.setValue(this.emptyValue,{noUpdateEvent:!0,noValidate:!0,resetValue:!0}),this.unset()}},{key:"hasChanged",value:function(e,t){return(null!=e||null!=t&&!this.isEmpty(t))&&(!(null==e||!this.allowData||this.hasValue())||!a.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:"calculateComponentValue",value:function(e,t,n){var r=this.component,o=r.hidden,i=r.clearOnHide,s=(!this.visible||o)&&i&&!this.rootPristine;if(!this.component.calculateValue||s)return!1;var u=this.component.allowCalculateOverride,l=!1,c=this.dataValue;void 0===this.calculatedValue&&(l=!0,this.calculatedValue=null);var f=this.evaluate(this.component.calculateValue,{value:c,data:e,row:n||this.data},"value");a.default.isNil(f)&&(f=this.emptyValue),t.isReordered&&u&&(this.calculatedValue=f);var d=this.convertNumberOrBoolToString(this.calculatedValue),p=this.convertNumberOrBoolToString(f),h=this.normalizeValue(d),m=this.normalizeValue(p);if(u&&this.calculatedValue&&!a.default.isEqual(c,d)&&a.default.isEqual(p,d))return!1;if(a.default.isEqual(h,m)&&u)return!1;if(t.fromSubmission&&u&&!0===this.component.persistent)return this.calculatedValue=f,!1;if(u&&l&&!this.isEmpty(c)&&!a.default.isEqual(c,this.convertNumberOrBoolToString(f))&&!a.default.isEqual(f,this.convertNumberOrBoolToString(f)))return this.calculatedValue=f,!0;var y=!t.dataSourceInitialLoading&&!a.default.isEqual(this.dataValue,f)&&this.setValue(f,t);return this.calculatedValue=f,y}},{key:"calculateValue",value:function(e,t,n){return e=e||this.rootValue,t=t||{},n=n||this.data,this.calculateComponentValue(e,t,n)}},{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?"":a.default.map(c.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})).length;return!e.length||n&&!this.error||!t&&this.pristine?n||this.setCustomValidity(""):this.setCustomValidity(e,t),!r}},{key:"checkComponentValidity",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e=e||this.rootValue,n=n||this.data;var a=i.async,s=void 0!==a&&a,u=i.silentCheck,l=void 0!==u&&u;if(this.shouldSkipValidation(e,t,n))return this.setCustomValidity(""),!s||o.default.resolve(!0);var f=c.default.checkComponent(this,e,n,!0,s);return s?f.then((function(e){return r.setComponentValidity(e,t,l)})):this.setComponentValidity(f,t,l)}},{key:"checkValidity",value:function(e,t,n,r){return e=e||this.rootValue,n=n||this.data,this.checkComponentValidity(e,t,n,{silentCheck:r})}},{key:"checkAsyncValidity",value:function(e,t,n,r){return o.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.checkRefreshOn(t.changes,t),t.noCheck)return!0;if(this.calculateComponentValue(e,t,n),this.checkComponentConditions(e,t,n),t.noValidate&&!t.validateOnInit)return t.fromSubmission&&this.rootPristine&&this.pristine&&this.error&&t.changed&&this.checkComponentValidity(e,!!this.options.alwaysDirty,n,!0),!0;var r=!1;return(this.options.alwaysDirty||t.dirty)&&(r=!0),t.fromSubmission&&this.hasValue(e)&&(r=!0),!("blur"!==this.component.validateOn||!t.fromSubmission)||this.checkComponentValidity(e,r,n)}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue,t=!(!a.default.isArray(e)||1!==e.length)&&a.default.isEqual(e[0],this.emptyValue);return null==e||0===e.length||a.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)||a.default.isEqual(e,t)}},{key:"validateMultiple",value:function(){return!0}},{key:"clearErrorClasses",value:function(){this.removeClass(this.element,this.options.componentErrorClass),this.removeClass(this.element,"alert alert-danger"),this.removeClass(this.element,"has-error"),this.removeClass(this.element,"has-message")}},{key:"setCustomValidity",value:function(e,t,n){var r=this.isInputComponent?this.refs.input||[]:null;"string"==typeof e&&e&&(e={level:"error",message:e}),Array.isArray(e)||(e=e?[e]:[]);var o=!!e.filter((function(e){return"error"===e.level})).length;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,r),r&&this.setErrorClasses(r,t,o,!!e.length)):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,r&&this.setErrorClasses(r,t,o,!!e.length),this.clearErrorClasses())}},{key:"isValueHidden",value:function(){return!(!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.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:"asString",value:function(e){return e=e||this.getValue(),(Array.isArray(e)?e:[e]).map(a.default.toString).join(", ")}},{key:"setDisabled",value:function(e,t){e&&(e.disabled=t,t?e.setAttribute("disabled","disabled"):e.removeAttribute("disabled"))}},{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;a.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");a.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,l.fastCloneDeep)(e.originalComponent),r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];e.applyActions(n,t.actions,o)&&(a.default.isEqual(e.component,n)||(e.component=n),e.rebuild())}),!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)),this.component.tabindex&&(e.tabindex=this.component.tabindex),this.disabled&&(e.disabled="disabled"),a.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:"focus",value:function(e){var t;"beforeFocus"in this.parent&&this.parent.beforeFocus(this),(null===(t=this.refs.input)||void 0===t?void 0:t.length)&&("number"==typeof e&&this.refs.input[e]?this.refs.input[e].focus():this.refs.input[this.refs.input.length-1].focus()),this.refs.openModal&&this.refs.openModal.focus(),this.parent.refs.openModal&&this.parent.refs.openModal.focus()}},{key:"data",get:function(){return this._data},set:function(e){this._data=e}},{key:"ready",get:function(){return o.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,l.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:"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 n.schema()}},{key:"key",get:function(){return a.default.get(this.component,"key","")}},{key:"parentVisible",set:function(e){this._parentVisible!==e&&(this._parentVisible=e,this.clearOnHide(),this.redraw())},get:function(){return this._parentVisible}},{key:"parentDisabled",set:function(e){this._parentDisabled!==e&&(this._parentDisabled=e,this.clearOnHide(),this.redraw())},get:function(){return this._parentDisabled}},{key:"visible",set:function(e){this._visible!==e&&(this._visible=e,this.clearOnHide(),this.redraw())},get:function(){return!(!this.builderMode&&!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)}},{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(){return this.component.labelWidth||30}},{key:"labelMargin",get:function(){return this.component.labelMargin||3}},{key:"isAdvancedLabel",get:function(){return["left-left","left-right","right-left","right-right"].includes(this.labelPosition)}},{key:"labelPositions",get:function(){return this.labelPosition.split("-")}},{key:"skipInEmail",get:function(){return!1}},{key:"schema",get:function(){return(0,l.fastCloneDeep)(this.getModifiedSchema(a.default.omit(this.component,"id"),this.defaultSchema))}},{key:"transform",get:function(){return f.default.current.hasOwnProperty("transform")?f.default.current.transform.bind(f.default.current):function(e,t){return t}}},{key:"submissionTimezone",get:function(){return this.options.submissionTimezone=this.options.submissionTimezone||a.default.get(this.root,"options.submissionTimezone"),this.options.submissionTimezone}},{key:"hasModalSaveButton",get:function(){return!0}},{key:"viewOnly",get:function(){return this.options.readOnly&&this.options.viewAsHtml}},{key:"defaultViewOnlyValue",get:function(){return"-"}},{key:"className",get:function(){var e=this.hasInput?"form-group has-feedback ":"";return e+="formio-component formio-component-".concat(this.component.type," "),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,l.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 a.default.each(this.component.style,(function(t,n){""!==t&&(e+="".concat(n,":").concat(t,";"))})),e}},{key:"isMobile",get:function(){return(0,s.default)()}},{key:"name",get:function(){return this.t(this.component.label||this.component.placeholder||this.key)}},{key:"errorLabel",get:function(){return this.t(this.component.errorLabel||this.component.label||this.component.placeholder||this.key)}},{key:"logic",get:function(){return this.component.logic||[]}},{key:"wysiwygDefault",get:function(){return{quill:{theme:"snow",placeholder:this.t(this.component.placeholder),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:"javascript",placeholder:this.t(this.component.placeholder)},ckeditor:{image:{toolbar:["imageTextAlternative","|","imageStyle:full","imageStyle:alignLeft","imageStyle:alignCenter","imageStyle:alignRight"],styles:["full","alignLeft","alignCenter","alignRight"]}},default:{}}}},{key:"tree",get:function(){return this.component.tree||!1}},{key:"emptyValue",get:function(){return null}},{key:"rootValue",get:function(){return this.root?this.root.data:this.data}},{key:"rootPristine",get:function(){return a.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()){var e=this.component.multiple?[]:this.emptyValue;return this.rootPristine||(this.dataValue=e),e}return a.default.get(this._data,this.key)},set:function(e){return this.allowData&&this.key&&(this.visible||!this.component.clearOnHide||this.rootPristine)?(null!=e&&(e=this.hook("setDataValue",e,this.key,this._data)),null==e?(this.unset(),e):(a.default.set(this._data,this.key,e),e)):e}},{key:"defaultValue",get:function(){var e=this.emptyValue;return this.component.defaultValue&&(e=this.component.defaultValue),this.component.customDefaultValue&&!this.options.preview&&(e=this.evaluate(this.component.customDefaultValue,{value:""},"value")),this.defaultMask&&("string"==typeof e?(e=(0,r.conformToMask)(e,this.defaultMask).conformedValue,l.matchInputMask(e,this.defaultMask)||(e="")):e=""),a.default.cloneDeep(e)}},{key:"hasSetValue",get:function(){return this.hasValue()&&!this.isEmpty(this.dataValue)}},{key:"label",get:function(){return this.component.label},set:function(e){this.component.label=e,this.labelElement&&(this.labelElement.innerText=e)}},{key:"validationValue",get:function(){return this.dataValue}},{key:"errors",get:function(){return this.error?[this.error]:[]}},{key:"dataReady",get:function(){return o.default.resolve()}},{key:"disabled",get:function(){return this._disabled||this.parentDisabled},set:function(e){this._disabled=e}},{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.default;return this.root&&this.root._form&&this.root._form._id&&(e.formUrl="".concat(e.projectUrl,"/form/").concat(this.root._form._id)),e}}]),n}(d.default);t.default=L,L.externalLibraries={},L.requireLibrary=function(e,t,n,r){if(!L.externalLibraries.hasOwnProperty(e)){L.externalLibraries[e]={},L.externalLibraries[e].ready=new o.default((function(t,n){L.externalLibraries[e].resolve=t,L.externalLibraries[e].reject=n}));var i="".concat(e,"Callback");r||window[i]||(window[i]=function(){this.resolve()}.bind(L.externalLibraries[e]));var s=a.default.get(window,t);s?L.externalLibraries[e].resolve(s):((n=Array.isArray(n)?n:[n]).forEach((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=a.default.get(window,t);r?L.externalLibraries[e].resolve(r):setTimeout(n,200)}),200))}return L.externalLibraries[e].ready},L.libraryReady=function(e){return L.externalLibraries.hasOwnProperty(e)&&L.externalLibraries[e].ready?L.externalLibraries[e].ready:o.default.reject("".concat(e," library was not required."))}},function(e,t,n){var r=n(32),o=n(36),i=n(77);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var r=n(15),o=n(95).indexOf,i=n(83),a=[].indexOf,s=!!a&&1/[1].indexOf(1,-0)<0,u=i("indexOf");r({target:"Array",proto:!0,forced:s||u},{indexOf:function(e){return s?a.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},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,n){var r=n(92),o=n(53);e.exports=function(e){return r(o(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){(function(e){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 u(e){return void 0===e}function l(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}function 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 St(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 y(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 v=r.momentProperties=[],b=!1;function g(e,t){var n,r,o;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=h(t)),u(t._locale)||(e._locale=t._locale),v.length>0)for(n=0;n<v.length;n++)u(o=t[r=v[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,u=[];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];u.push(o)}_(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var S,x={};function P(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),x[e]||(_(t),x[e]=!0)}function j(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)}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}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,S=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};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 L(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 I(e,t){return e.isValid()?(t=V(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+=j(o[r])?o[r].call(t,e):o[r];return i}}(t),T[t](e)):e.localeData().invalidDate()}function V(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 U(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=U(n))&&(r[t]=e[n]);return r}var B={};function H(e,t){B[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 Y(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=W(t)),n}function K(e,t){return function(n){return null!=n?(J(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 J(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&q(e.year())&&1===e.month()&&29===e.date()?(n=Y(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ke(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Z,X=/\d/,$=/\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}/,ue=/\d+/,le=/[+-]?\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){Z[e]=j(t)?t:function(e,r){return e&&n?n:t}}function he(e,t){return a(Z,e)?Z[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,"\\$&")}Z={};var ye,ve={};function be(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=Y(e)}),n=0;n<e.length;n++)ve[e[n]]=r}function ge(e,t){be(e,(function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)}))}function we(e,t,n){null!=t&&a(ve,e)&&ve[e](t,n._a,n,e)}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}ye=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},L("M",["MM",2],"Mo",(function(){return this.month()+1})),L("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),L("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),F("month","M"),H("month",8),pe("M",ne),pe("MM",ne,$),pe("MMM",(function(e,t){return t.monthsShortRegex(e)})),pe("MMMM",(function(e,t){return t.monthsRegex(e)})),be(["M","MM"],(function(e,t){t[1]=Y(e)-1})),be(["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("_"),Se=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xe=de,Pe=de;function je(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=ye.call(this._shortMonthsParse,a))?o:null:-1!==(o=ye.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=ye.call(this._shortMonthsParse,a))||-1!==(o=ye.call(this._longMonthsParse,a))?o:null:-1!==(o=ye.call(this._longMonthsParse,a))||-1!==(o=ye.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=Y(t);else if(!l(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}L("Y",0,0,(function(){var e=this.year();return e<=9999?A(e,4):"+"+e})),L(0,["YY",2],0,(function(){return this.year()%100})),L(0,["YYYY",4],0,"year"),L(0,["YYYYY",5],0,"year"),L(0,["YYYYYY",6,!0],0,"year"),F("year","y"),H("year",1),pe("Y",le),pe("YY",ne,$),pe("YYYY",ae,ee),pe("YYYYY",se,te),pe("YYYYYY",se,te),be(["YYYYY","YYYYYY"],0),be("YYYY",(function(e,t){t[0]=2===e.length?r.parseTwoDigitYear(e):Y(e)})),be("YY",(function(e,t){t[0]=r.parseTwoDigitYear(e)})),be("Y",(function(e,t){t[0]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return Y(e)+(Y(e)>68?1900:2e3)};var Re=K("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 Le(e,t,n){var r=7+t-n;return-(7+De(e,0,r).getUTCDay()-t)%7+r-1}function Ie(e,t,n,r,o){var i,a,s=1+7*(t-1)+(7+n-r)%7+Le(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 Ve(e,t,n){var r,o,i=Le(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=Le(e,t,n),o=Le(e+1,t,n);return(Me(e)-r+o)/7}function Fe(e,t){return e.slice(t,7).concat(e.slice(0,t))}L("w",["ww",2],"wo","week"),L("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),H("week",5),H("isoWeek",5),pe("w",ne),pe("ww",ne,$),pe("W",ne),pe("WW",ne,$),ge(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=Y(e)})),L("d",0,"do","day"),L("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),L("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),L("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),L("e",0,0,"weekday"),L("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)})),ge(["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})),ge(["d","e","E"],(function(e,t,n,r){t[r]=Y(e)}));var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Be="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),He=de,qe=de,We=de;function Ye(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=ye.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=ye.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=ye.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=ye.call(this._weekdaysParse,a))||-1!==(o=ye.call(this._shortWeekdaysParse,a))||-1!==(o=ye.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=ye.call(this._shortWeekdaysParse,a))||-1!==(o=ye.call(this._weekdaysParse,a))||-1!==(o=ye.call(this._minWeekdaysParse,a))?o:null:-1!==(o=ye.call(this._minWeekdaysParse,a))||-1!==(o=ye.call(this._weekdaysParse,a))||-1!==(o=ye.call(this._shortWeekdaysParse,a))?o:null}function Ke(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],u=[],l=[];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),u.push(i),l.push(r),l.push(o),l.push(i);a.sort(e),s.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ge(){return this.hours()%12||12}function Je(e,t){L(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ze(e,t){return t._meridiemParse}L("H",["HH",2],0,"hour"),L("h",["hh",2],0,Ge),L("k",["kk",2],0,(function(){return this.hours()||24})),L("hmm",0,0,(function(){return""+Ge.apply(this)+A(this.minutes(),2)})),L("hmmss",0,0,(function(){return""+Ge.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)})),L("Hmm",0,0,(function(){return""+this.hours()+A(this.minutes(),2)})),L("Hmmss",0,0,(function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)})),Je("a",!0),Je("A",!1),F("hour","h"),H("hour",13),pe("a",Ze),pe("A",Ze),pe("H",ne),pe("h",ne),pe("k",ne),pe("HH",ne,$),pe("hh",ne,$),pe("kk",ne,$),pe("hmm",re),pe("hmmss",oe),pe("Hmm",re),pe("Hmmss",oe),be(["H","HH"],3),be(["k","kk"],(function(e,t,n){var r=Y(e);t[3]=24===r?0:r})),be(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),be(["h","hh"],(function(e,t,n){t[3]=Y(e),h(n).bigHour=!0})),be("hmm",(function(e,t,n){var r=e.length-2;t[3]=Y(e.substr(0,r)),t[4]=Y(e.substr(r)),h(n).bigHour=!0})),be("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=Y(e.substr(0,r)),t[4]=Y(e.substr(r,2)),t[5]=Y(e.substr(o)),h(n).bigHour=!0})),be("Hmm",(function(e,t,n){var r=e.length-2;t[3]=Y(e.substr(0,r)),t[4]=Y(e.substr(r))})),be("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=Y(e.substr(0,r)),t[4]=Y(e.substr(r,2)),t[5]=Y(e.substr(o))}));var Xe,$e=K("Hours",!0),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},weekdays:Ue,weekdaysMin:Be,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]&&void 0!==e&&e&&e.exports)try{n=Xe._abbr,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=u(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])P("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 ut(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 lt=/^\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}))$/,yt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function vt(e){var t,n,r,o,i,a,s=e._i,u=lt.exec(s)||ct.exec(s);if(u){for(h(e).iso=!0,t=0,n=dt.length;t<n;t++)if(dt[t][1].exec(u[1])){o=dt[t][0],r=!1!==dt[t][2];break}if(null==o)return void(e._isValid=!1);if(u[3]){for(t=0,n=pt.length;t<n;t++)if(pt[t][1].exec(u[3])){i=(u[2]||" ")+pt[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(u[4]){if(!ft.exec(u[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,u,l=mt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){if(n=l[4],r=l[3],o=l[2],i=l[5],a=l[6],s=l[7],u=[bt(n),Oe.indexOf(r),parseInt(o,10),parseInt(i,10),parseInt(a,10)],s&&u.push(parseInt(s,10)),t=u,!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)}(l[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return yt[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}(l[8],l[9],l[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,u,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,a=4,n=wt(t.GG,e._a[0],Ve(xt(),1,4).year),r=wt(t.W,1),((o=wt(t.E,1))<1||o>7)&&(u=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,l=Ve(xt(),i,a),n=wt(t.gg,e._a[0],l.year),r=wt(t.w,l.week),null!=t.d?((o=t.d)<0||o>6)&&(u=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(u=!0)):o=i),r<1||r>Ne(n,i,a)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(s=Ie(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,u=""+e._i,l=u.length,c=0;for(o=V(e._f,e._locale).match(M)||[],t=0;t<o.length;t++)i=o[t],(n=(u.match(he(i,e))||[])[0])&&((a=u.substr(0,u.indexOf(n))).length>0&&h(e).unusedInput.push(a),u=u.slice(u.indexOf(n)+n.length),c+=n.length),D[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),we(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=l-c,u.length>0&&h(e).unusedInput.push(u),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),ut(e)}else gt(e);else vt(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?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),k(t)?new w(ut(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;u(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);null===t?(vt(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):l(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function St(e,t,n,r,a){var u,l={};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),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=n,l._i=e,l._f=t,l._strict=r,(u=new w(ut(Ot(l))))._nextDay&&(u.add(1,"d"),u._nextDay=void 0),u}function xt(e,t,n,r){return St(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 and will be removed in an upcoming major release. 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 Pt=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),jt=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function Ct(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return xt();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,u=t.hour||0,l=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===ye.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]])!==Y(e[Et[n]])&&(r=!0)}return!0}(t),this._milliseconds=+f+1e3*c+6e4*l+1e3*u*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){L(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),be(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Lt(fe,e)}));var Dt=/([\+\-]|\d\d)/gi;function Lt(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]+Y(n[2]))?0:"+"===n[0]?r:-r}function It(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(k(e)||c(e)?e.valueOf():xt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),r.updateOffset(n,!1),n):xt(e).local()}function Vt(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*)?)?$/,Ut=/^(-|\+)?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,u,c=e,f=null;return Mt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(f=Ft.exec(e))?(n="-"===f[1]?-1:1,c={y:0,d:Y(f[2])*n,h:Y(f[3])*n,m:Y(f[4])*n,s:Y(f[5])*n,ms:Y(Rt(1e3*f[6]))*n}):(f=Ut.exec(e))?(n="-"===f[1]?-1:1,c={y:Bt(f[2],n),M:Bt(f[3],n),w:Bt(f[4],n),d:Bt(f[5],n),h:Bt(f[6],n),m:Bt(f[7],n),s:Bt(f[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(i=xt(c.from),s=xt(c.to),o=i.isValid()&&s.isValid()?(s=It(s,i),i.isBefore(s)?u=Ht(i,s):((u=Ht(s,i)).milliseconds=-u.milliseconds,u.months=-u.months),u):{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 Bt(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)||(P(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&&J(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 Yt=qt(1,"add"),Kt=qt(-1,"subtract");function Gt(e){return"string"==typeof e||e instanceof String}function Jt(e){return k(e)||c(e)||Gt(e)||l(e)||function(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!l(t)&&Gt(e)})).length),t&&n}(e)||function(e){var t,n,r=i(e)&&!s(e),o=!1,u=["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<u.length;t+=1)n=u[t],o=o||a(e,n);return r&&o}(e)||null==e}function Zt(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 Xt(e,t){if(e.date()<t.date())return-Xt(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 $t(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}function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function an(){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 sn(e,t){L(0,[e,e.length],0,t)}function un(e,t,n,r,o){var i;return null==e?Ve(this,r,o).year:(t>(i=Ne(e,r,o))&&(t=i),ln.call(this,e,t,n,r,o))}function ln(e,t,n,r,o){var i=Ie(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}L("N",0,0,"eraAbbr"),L("NN",0,0,"eraAbbr"),L("NNN",0,0,"eraAbbr"),L("NNNN",0,0,"eraName"),L("NNNNN",0,0,"eraNarrow"),L("y",["y",1],"yo","eraYear"),L("y",["yy",2],0,"eraYear"),L("y",["yyy",3],0,"eraYear"),L("y",["yyyy",4],0,"eraYear"),pe("N",on),pe("NN",on),pe("NNN",on),pe("NNNN",(function(e,t){return t.erasNameRegex(e)})),pe("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),be(["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",ue),pe("yy",ue),pe("yyy",ue),pe("yyyy",ue),pe("yo",(function(e,t){return t._eraYearOrdinalRegex||ue})),be(["y","yy","yyy","yyyy"],0),be(["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)})),L(0,["gg",2],0,(function(){return this.weekYear()%100})),L(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),sn("gggg","weekYear"),sn("ggggg","weekYear"),sn("GGGG","isoWeekYear"),sn("GGGGG","isoWeekYear"),F("weekYear","gg"),F("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),pe("G",le),pe("g",le),pe("GG",ne,$),pe("gg",ne,$),pe("GGGG",ae,ee),pe("gggg",ae,ee),pe("GGGGG",se,te),pe("ggggg",se,te),ge(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=Y(e)})),ge(["gg","GG"],(function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)})),L("Q",0,"Qo","quarter"),F("quarter","Q"),H("quarter",7),pe("Q",X),be("Q",(function(e,t){t[1]=3*(Y(e)-1)})),L("D",["DD",2],"Do","date"),F("date","D"),H("date",9),pe("D",ne),pe("DD",ne,$),pe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),be(["D","DD"],2),be("Do",(function(e,t){t[2]=Y(e.match(ne)[0])}));var cn=K("Date",!0);L("DDD",["DDDD",3],"DDDo","dayOfYear"),F("dayOfYear","DDD"),H("dayOfYear",4),pe("DDD",ie),pe("DDDD",Q),be(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=Y(e)})),L("m",["mm",2],0,"minute"),F("minute","m"),H("minute",14),pe("m",ne),pe("mm",ne,$),be(["m","mm"],4);var fn=K("Minutes",!1);L("s",["ss",2],0,"second"),F("second","s"),H("second",15),pe("s",ne),pe("ss",ne,$),be(["s","ss"],5);var dn,pn,hn=K("Seconds",!1);for(L("S",0,0,(function(){return~~(this.millisecond()/100)})),L(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),L(0,["SSS",3],0,"millisecond"),L(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),L(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),L(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),L(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),L(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),L(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),F("millisecond","ms"),H("millisecond",16),pe("S",ie,X),pe("SS",ie,$),pe("SSS",ie,Q),dn="SSSS";dn.length<=9;dn+="S")pe(dn,ue);function mn(e,t){t[6]=Y(1e3*("0."+e))}for(dn="S";dn.length<=9;dn+="S")be(dn,mn);pn=K("Milliseconds",!1),L("z",0,0,"zoneAbbr"),L("zz",0,0,"zoneName");var yn=w.prototype;function vn(e){return e}yn.add=Yt,yn.calendar=function(e,t){1===arguments.length&&(Jt(arguments[0])?(e=arguments[0],t=void 0):Zt(arguments[0])&&(t=arguments[0],e=void 0));var n=e||xt(),o=It(n,this).startOf("day"),i=r.calendarFormat(this,o)||"sameElse",a=t&&(j(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,xt(n)))},yn.clone=function(){return new w(this)},yn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=It(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=U(t)){case"year":i=Xt(this,r)/12;break;case"month":i=Xt(this,r);break;case"quarter":i=Xt(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)},yn.endOf=function(e){var t,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,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;case"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+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},yn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=I(this,e);return this.localeData().postformat(t)},yn.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||xt(e).isValid())?zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.fromNow=function(e){return this.from(xt(),e)},yn.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||xt(e).isValid())?zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.toNow=function(e){return this.to(xt(),e)},yn.get=function(e){return j(this[e=U(e)])?this[e]():this},yn.invalidAt=function(){return h(this).overflow},yn.isAfter=function(e,t){var n=k(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},yn.isBefore=function(e,t){var n=k(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},yn.isBetween=function(e,t,n,r){var o=k(e)?e:xt(e),i=k(t)?t:xt(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)))},yn.isSame=function(e,t){var n,r=k(e)?e:xt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},yn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},yn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},yn.isValid=function(){return m(this)},yn.lang=Qt,yn.locale=$t,yn.localeData=en,yn.max=jt,yn.min=Pt,yn.parsingFlags=function(){return d({},h(this))},yn.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:B[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(j(this[e=U(e)]))return this[e](t);return this},yn.startOf=function(e){var t,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?rn:nn,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-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}return this._d.setTime(t),r.updateOffset(this,!0),this},yn.subtract=Kt,yn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},yn.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()}},yn.toDate=function(){return new Date(this.valueOf())},yn.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?I(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):j(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",I(n,"Z")):I(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},yn.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",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(yn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),yn.toJSON=function(){return this.isValid()?this.toISOString():null},yn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},yn.unix=function(){return Math.floor(this.valueOf()/1e3)},yn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},yn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},yn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.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""},yn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.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""},yn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.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""},yn.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.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()},yn.year=Re,yn.isLeapYear=function(){return q(this.year())},yn.weekYear=function(e){return un.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},yn.isoWeekYear=function(e){return un.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},yn.quarter=yn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},yn.month=Ee,yn.daysInMonth=function(){return ke(this.year(),this.month())},yn.week=yn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},yn.isoWeek=yn.isoWeeks=function(e){var t=Ve(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},yn.weeksInYear=function(){var e=this.localeData()._week;return Ne(this.year(),e.dow,e.doy)},yn.weeksInWeekYear=function(){var e=this.localeData()._week;return Ne(this.weekYear(),e.dow,e.doy)},yn.isoWeeksInYear=function(){return Ne(this.year(),1,4)},yn.isoWeeksInISOWeekYear=function(){return Ne(this.isoWeekYear(),1,4)},yn.date=cn,yn.day=yn.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},yn.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")},yn.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},yn.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")},yn.hour=yn.hours=$e,yn.minute=yn.minutes=fn,yn.second=yn.seconds=hn,yn.millisecond=yn.milliseconds=pn,yn.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=Lt(fe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=Vt(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:Vt(this)},yn.utc=function(e){return this.utcOffset(0,e)},yn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Vt(this),"m")),this},yn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Lt(ce,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},yn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?xt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},yn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},yn.isLocal=function(){return!!this.isValid()&&!this._isUTC},yn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},yn.isUtc=Nt,yn.isUTC=Nt,yn.zoneAbbr=function(){return this._isUTC?"UTC":""},yn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},yn.dates=O("dates accessor is deprecated. Use date instead.",cn),yn.months=O("months accessor is deprecated. Use month instead",Ee),yn.years=O("years accessor is deprecated. Use year instead",Re),yn.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()})),yn.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return g(t,this),(t=Ot(t))._a?(e=t._isUTC?p(t._a):xt(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&&Y(e[r])!==Y(t[r]))&&a++;return a+i}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var bn=E.prototype;function gn(e,t,n,r){var o=st(),i=p().set(r,t);return o[n](i,e)}function wn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return gn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=gn(e,r,n,"month");return o}function kn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var o,i=st(),a=e?i._week.dow:0,s=[];if(null!=n)return gn(t,(n+a)%7,r,"day");for(o=0;o<7;o++)s[o]=gn(t,(o+a)%7,r,"day");return s}bn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return j(r)?r.call(t,n):r},bn.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])},bn.invalidDate=function(){return this._invalidDate},bn.ordinal=function(e){return this._ordinal.replace("%d",e)},bn.preparse=vn,bn.postformat=vn,bn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return j(o)?o(e,t,n,r):o.replace(/%d/i,e)},bn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return j(n)?n(t):n.replace(/%s/i,t)},bn.set=function(e){var t,n;for(n in e)a(e,n)&&(j(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)},bn.eras=function(e,t){var n,o,i,a=this._eras||st("en")._eras;for(n=0,o=a.length;n<o;++n){switch(typeof a[n].since){case"string":i=r(a[n].since).startOf("day"),a[n].since=i.valueOf()}switch(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},bn.erasParse=function(e,t,n){var r,o,i,a,s,u=this.eras();for(e=e.toUpperCase(),r=0,o=u.length;r<o;++r)if(i=u[r].name.toUpperCase(),a=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return u[r];break;case"NNNN":if(i===e)return u[r];break;case"NNNNN":if(s===e)return u[r]}else if([i,a,s].indexOf(e)>=0)return u[r]},bn.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},bn.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||an.call(this),e?this._erasAbbrRegex:this._erasRegex},bn.erasNameRegex=function(e){return a(this,"_erasNameRegex")||an.call(this),e?this._erasNameRegex:this._erasRegex},bn.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||an.call(this),e?this._erasNarrowRegex:this._erasRegex},bn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Se).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},bn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Se.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},bn.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return je.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}},bn.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Ae.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Pe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},bn.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Ae.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=xe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},bn.week=function(e){return Ve(e,this._week.dow,this._week.doy).week},bn.firstDayOfYear=function(){return this._week.doy},bn.firstDayOfWeek=function(){return this._week.dow},bn.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},bn.weekdaysMin=function(e){return!0===e?Fe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},bn.weekdaysShort=function(e){return!0===e?Fe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},bn.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return Ye.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}},bn.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=He),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},bn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},bn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=We),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},bn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},bn.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===Y(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 _n=Math.abs;function On(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 Sn(e){return e<0?Math.floor(e):Math.ceil(e)}function xn(e){return 4800*e/146097}function Pn(e){return 146097*e/4800}function jn(e){return function(){return this.as(e)}}var Cn=jn("ms"),En=jn("s"),An=jn("m"),Mn=jn("h"),Rn=jn("d"),Tn=jn("w"),Dn=jn("M"),Ln=jn("Q"),In=jn("y");function Vn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Nn=Vn("milliseconds"),Fn=Vn("seconds"),Un=Vn("minutes"),zn=Vn("hours"),Bn=Vn("days"),Hn=Vn("months"),qn=Vn("years"),Wn=Math.round,Yn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Kn(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var Gn=Math.abs;function Jn(e){return(e>0)-(e<0)||+e}function Zn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,a,s,u=Gn(this._milliseconds)/1e3,l=Gn(this._days),c=Gn(this._months),f=this.asSeconds();return f?(e=W(u/60),t=W(e/60),u%=60,e%=60,n=W(c/12),c%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",o=f<0?"-":"",i=Jn(this._months)!==Jn(f)?"-":"",a=Jn(this._days)!==Jn(f)?"-":"",s=Jn(this._milliseconds)!==Jn(f)?"-":"",o+"P"+(n?i+n+"Y":"")+(c?i+c+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var Xn=At.prototype;return Xn.isValid=function(){return this._isValid},Xn.abs=function(){var e=this._data;return this._milliseconds=_n(this._milliseconds),this._days=_n(this._days),this._months=_n(this._months),e.milliseconds=_n(e.milliseconds),e.seconds=_n(e.seconds),e.minutes=_n(e.minutes),e.hours=_n(e.hours),e.months=_n(e.months),e.years=_n(e.years),this},Xn.add=function(e,t){return On(this,e,t,1)},Xn.subtract=function(e,t){return On(this,e,t,-1)},Xn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=U(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+xn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Pn(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)}},Xn.asMilliseconds=Cn,Xn.asSeconds=En,Xn.asMinutes=An,Xn.asHours=Mn,Xn.asDays=Rn,Xn.asWeeks=Tn,Xn.asMonths=Dn,Xn.asQuarters=Ln,Xn.asYears=In,Xn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Y(this._months/12):NaN},Xn._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,u=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*Sn(Pn(s)+a),a=0,s=0),u.milliseconds=i%1e3,e=W(i/1e3),u.seconds=e%60,t=W(e/60),u.minutes=t%60,n=W(t/60),u.hours=n%24,a+=W(n/24),o=W(xn(a)),s+=o,a-=Sn(Pn(o)),r=W(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},Xn.clone=function(){return zt(this)},Xn.get=function(e){return e=U(e),this.isValid()?this[e+"s"]():NaN},Xn.milliseconds=Nn,Xn.seconds=Fn,Xn.minutes=Un,Xn.hours=zn,Xn.days=Bn,Xn.weeks=function(){return W(this.days()/7)},Xn.months=Hn,Xn.years=qn,Xn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=Yn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(i=Object.assign({},Yn,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var o=zt(e).abs(),i=Wn(o.as("s")),a=Wn(o.as("m")),s=Wn(o.as("h")),u=Wn(o.as("d")),l=Wn(o.as("M")),c=Wn(o.as("w")),f=Wn(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]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(d=d||c<=1&&["w"]||c<n.w&&["ww",c]),(d=d||l<=1&&["M"]||l<n.M&&["MM",l]||f<=1&&["y"]||["yy",f])[2]=t,d[3]=+e>0,d[4]=r,Kn.apply(null,d)}(this,!o,i,n),o&&(r=n.pastFuture(+this,r)),n.postformat(r)},Xn.toISOString=Zn,Xn.toString=Zn,Xn.toJSON=Zn,Xn.locale=$t,Xn.localeData=en,Xn.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Zn),Xn.lang=Qt,L("X",0,0,"unix"),L("x",0,0,"valueOf"),pe("x",le),pe("X",/[+-]?\d+(\.\d{1,3})?/),be("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),be("x",(function(e,t,n){n._d=new Date(Y(e))})),
  15. //! moment.js
  16. r.version="2.27.0",t=xt,r.fn=yn,r.min=function(){var e=[].slice.call(arguments,0);return Ct("isBefore",e)},r.max=function(){var e=[].slice.call(arguments,0);return Ct("isAfter",e)},r.now=function(){return Date.now?Date.now():+new Date},r.utc=p,r.unix=function(e){return xt(1e3*e)},r.months=function(e,t){return wn(e,t,"months")},r.isDate=c,r.locale=it,r.invalid=y,r.duration=zt,r.isMoment=k,r.weekdays=function(e,t,n){return kn(e,t,n,"weekdays")},r.parseZone=function(){return xt.apply(null,arguments).parseZone()},r.localeData=st,r.isDuration=Mt,r.monthsShort=function(e,t){return wn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return kn(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 S(et)},r.weekdaysShort=function(e,t,n){return kn(e,t,n,"weekdaysShort")},r.normalizeUnits=U,r.relativeTimeRounding=function(e){return void 0===e?Wn:"function"==typeof e&&(Wn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Yn[e]&&(void 0===t?Yn[e]:(Yn[e]=t,"s"===e&&(Yn.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=yn,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}()}).call(this,n(102)(e))},function(e,t,n){var r=n(24),o=n(49),i=n(42),a=n(147),s=n(194),u=n(79),l=u.get,c=u.enforce,f=String(String).split("String");(e.exports=function(e,t,n,s){var u=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),c(n).source=f.join("string"==typeof t?t:"")),e!==r?(u?!d&&e[t]&&(l=!0):delete e[t],l?e[t]=n:o(e,t,n)):l?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){"use strict";var r=n(15),o=n(47).find,i=n(115),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},function(e,t,n){var r=n(215),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,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){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 u(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 c(e,t,n){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(3),n(7),n(8),n(23),n(16),n(1),n(12),n(45),n(10),n(26),n(2),n(9),n(13),n(5),n(6),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;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&&f(e,t)}(i,e);var t,n,r,o=d(i);function i(){return u(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(e){return this.noField?c(h(i.prototype),"render",this).call(this,e):this.isAdvancedLabel?c(h(i.prototype),"render",this).call(this,this.renderTemplate("field",a(a({},this.getLabelInfo()),{},{labelMarkup:this.renderTemplate("label"),element:e}),"align")):c(h(i.prototype),"render",this).call(this,this.renderTemplate("field",{labelMarkup:this.renderTemplate("label"),element:e}))}}])&&l(t.prototype,n),r&&l(t,r),i}(((r=n(48))&&r.__esModule?r:{default:r}).default);t.default=m},function(e,t,n){var r=n(32),o=n(111),i=n(77),a=n(52),s=n(87),u=n(42),l=n(192),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=a(e),t=s(t,!0),l)try{return c(e,t)}catch(e){}if(u(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t,n){var r=n(15),o=n(285);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t,n){var r=n(32),o=n(24),i=n(113),a=n(124),s=n(36).f,u=n(80).f,l=n(160),c=n(119),f=n(55),d=n(20),p=n(161),h=n(28)("match"),m=o.RegExp,y=m.prototype,v=/a/g,b=/a/g,g=new m(v)!==v;if(r&&i("RegExp",!g||d((function(){return b[h]=!1,m(v)!=v||m(b)==b||"/a/i"!=m(v,"i")})))){for(var w=function(e,t){var n=this instanceof w,r=l(e),o=void 0===t;return!n&&r&&e.constructor===w&&o?e:a(g?new m(r&&!o?e.source:e,t):m((r=e instanceof w)?e.source:e,r&&o?c.call(e):t),n?this:y,w)},k=function(e){e in w||s(w,e,{configurable:!0,get:function(){return m[e]},set:function(t){m[e]=t}})},_=u(m),O=0;_.length>O;)k(_[O++]);y.constructor=w,w.prototype=y,f(o,"RegExp",w)}p("RegExp")},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(108),n(16),n(39),n(31),n(1),n(14),n(40),n(30),n(66),n(19),n(69),n(780),n(12),n(10),n(2),n(9),n(13),n(65),n(5),n(44),n(6),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(11)),o=u(n(59)),i=u(n(109)),a=u(n(22)),s=n(18);function u(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e)||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 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,n,r){return(d="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=y(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})(e,t,n,r)}function p(e,t,n,r,o){if(!d(e,t,n,r||e)&&o)throw new Error("failed to set property");return n}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(e,t,n){return(m="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(n):o.value}})(e,t,n||e)}function y(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_(e)););return 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)}}function b(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_(e);if(t){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}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&&g(e,t)}(n,e);var t=w(n);function n(e,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(i=t.call(this,e,r,o)).type="components",i._collapsed=!!i.component.collapsed,i}return b(n,null,[{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,[{tree:!1}].concat(t))}}]),b(n,[{key:"componentContext",value:function(){return this._data}},{key:"getComponents",value:function(){return this.components||[]}},{key:"everyComponent",value:function(e,t){var n=this.getComponents();r.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){r.default.each(this.getComponents(),(function(t,n){if(!1===e(t,n))return!1}))}},{key:"getComponent",value:function(e,t,n){n=n||(0,s.getStringFromComponentPath)(e),e=(0,s.getArrayFromComponentPath)(e);var o=n,i=c(e),a=i[0],u=i.slice(1),l=null,f=null;return r.default.isString(a)?(this.everyComponent((function(e,r){var i=!e.hasInput||!e.path||o.includes(e.path);if(e.component.key===a&&(f=e,i))return l=e,u.length>0&&"getComponent"in e?l=e.getComponent(u,t,n):t&&t(e,r),!1})),l||(l=f),l):l}},{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:"",t+=e.component.key}}},{key:"createComponent",value:function(e,t,n,o){if(e){t=t||this.options,n=n||this.data,t.parent=this,t.parentVisible=this.visible,t.root=this.root||this,t.skipInit=!0,!this.isInputComponent&&this.component.shouldIncludeSubFormPath&&(e.shouldIncludeSubFormPath=!0);var a=i.default.create(e,t,n,!0),s=this.calculateComponentPath(a);if(s&&(a.path=s),a.init(),e.internal)return a;if(o){var u=r.default.findIndex(this.components,{id:o.id});-1!==u?this.components.splice(u,0,a):this.components.push(a)}else this.components.push(a);return a}}},{key:"getContainer",value:function(){return this.element}},{key:"init",value:function(){return this.components=this.components||[],this.addComponents(),m(_(n.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)||[]).forEach((function(t){return n.addComponent(t,e)}))}},{key:"addComponent",value:function(e,t,n,r){t=t||this.data,this.options.parentPath&&(e.shouldIncludeSubFormPath=!0),e=this.hook("addComponent",e,t,n,r);var o=this.createComponent(e,this.options,t,n||null);return o}},{key:"render",value:function(e){return m(_(n.prototype),"render",this).call(this,e||this.renderTemplate(this.templateName,{children: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,r=m(_(n.prototype),"attach",this).call(this,e);this.loadRefs(e,h({header:"single",collapsed:this.collapsed},this.nestedKey,"single"));var o=a.default.resolve();return this.refs[this.nestedKey]&&(o=this.attachComponents(this.refs[this.nestedKey])),this.component.collapsible&&this.refs.header&&this.addEventListener(this.refs.header,"click",(function(){t.collapsed=!t.collapsed})),a.default.all([r,o])}},{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 a.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++)})),a.default.all(o)}},{key:"removeComponent",value:function(e,t){t=t||this.components,e.destroy(),r.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}),m(_(n.prototype),"updateValue",this).call(this,e,t))}},{key:"shouldSkipValidation",value:function(e,t,r){return!this.component.input||m(_(n.prototype),"shouldSkipValidation",this).call(this,e,t,r)}},{key:"checkData",value:function(e,t,r,o){return!!this.builderMode||(e=e||this.rootValue,t=t||{},r=r||this.data,(o=o||this.getComponents()).reduce((function(n,o){return o.checkData(e,t,r)&&n}),m(_(n.prototype),"checkData",this).call(this,e,t,r)))}},{key:"checkConditions",value:function(e,t,r){return this.getComponents().forEach((function(n){return n.checkConditions(e,t,r)})),m(_(n.prototype),"checkConditions",this).call(this,e,t,r)}},{key:"clearOnHide",value:function(e){m(_(n.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 a.default.all(this.getComponents().map((function(t){return t.beforePage(e)})))}},{key:"beforeSubmit",value:function(){return a.default.all(this.getComponents().map((function(e){return e.beforeSubmit()})))}},{key:"calculateValue",value:function(e,t,r){return!!this.conditionallyVisible()&&this.getComponents().reduce((function(n,o){return o.calculateValue(e,t,r)||n}),m(_(n.prototype),"calculateValue",this).call(this,e,t,r))}},{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}),m(_(n.prototype),"isValid",this).call(this,e,t))}},{key:"checkValidity",value:function(e,t,r,o){return this.checkCondition(r,e)?this.getComponents().reduce((function(n,i){return i.checkValidity(e,t,r,o)&&n}),m(_(n.prototype),"checkValidity",this).call(this,e,t,r,o)):(this.setCustomValidity(""),!0)}},{key:"checkAsyncValidity",value:function(e,t,r,o){var i=this;return this.ready.then((function(){var s=[m(_(n.prototype),"checkAsyncValidity",i).call(i,e,t,r,o)];return i.eachComponent((function(n){return s.push(n.checkAsyncValidity(e,t,r,o))})),a.default.all(s).then((function(e){return e.reduce((function(e,t){return e&&t}),!0)}))}))}},{key:"setPristine",value:function(e){m(_(n.prototype),"setPristine",this).call(this,e),this.getComponents().forEach((function(t){return t.setPristine(e)}))}},{key:"detach",value:function(){this.components.forEach((function(e){e.detach()})),m(_(n.prototype),"detach",this).call(this)}},{key:"destroy",value:function(){this.destroyComponents(),m(_(n.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:"getValue",value:function(){return this.data}},{key:"resetValue",value:function(){this.getComponents().forEach((function(e){return e.resetValue()})),this.unset(),this.setPristine(!0)}},{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(r.default.get(t,e.key),n):!this.rootPristine||e.visible?(n.noValidate=!n.dirty,n.resetValue=!0,e.setValue(e.defaultValue,n)):void 0)}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!e&&this.getComponents().reduce((function(r,o){return t.setNestedValue(o,e,n,r)||r}),!1)}},{key:"defaultSchema",get:function(){return n.schema()}},{key:"schema",get:function(){var e=m(_(n.prototype),"schema",this),t=r.default.uniqBy(this.getComponents(),"component.key");return e.components=r.default.map(t,"schema"),e}},{key:"collapsed",get:function(){return this._collapsed},set:function(e){this._collapsed=e,this.redraw(),e||this.checkValidity(this.data,!0)}},{key:"visible",set:function(e){p(_(n.prototype),"visible",e,this,!0);var t=this.visible,r=this.options.show&&this.options.show[this.component.key],o=this.options.hide&&this.options.hide[this.component.key];this.components.forEach((function(e){var n=e.conditionallyVisible();r||n?e.visible=!0:!o&&t&&n||(e.visible=!1),e.visible||(e.error=""),e.parentVisible=t}))},get:function(){return m(_(n.prototype),"visible",this)}},{key:"parentVisible",set:function(e){var t=this;p(_(n.prototype),"parentVisible",e,this,!0),this.components.forEach((function(e){e.parentVisible=t.visible}))},get:function(){return m(_(n.prototype),"parentVisible",this)}},{key:"disabled",get:function(){return m(_(n.prototype),"disabled",this)},set:function(e){p(_(n.prototype),"disabled",e,this,!0),this.components.forEach((function(t){return t.parentDisabled=e}))}},{key:"parentDisabled",set:function(e){var t=this;p(_(n.prototype),"parentDisabled",e,this,!0),this.components.forEach((function(e){e.parentDisabled=t.disabled}))},get:function(){return m(_(n.prototype),"parentDisabled",this)}},{key:"ready",get:function(){return a.default.all(this.getComponents().map((function(e){return e.ready})))}},{key:"currentForm",get:function(){return m(_(n.prototype),"currentForm",this)},set:function(e){p(_(n.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:"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:"componentComponents",get:function(){return this.component.components||[]}},{key:"nestedKey",get:function(){return"nested-".concat(this.key)}},{key:"templateName",get:function(){return"container"}},{key:"errors",get:function(){var e=this.error?[this.error]:[];return this.getComponents().reduce((function(e,t){return e.concat(t.errors||[])}),e)}},{key:"dataReady",get:function(){return a.default.all(this.getComponents().map((function(e){return e.dataReady})))}}]),n}(o.default);t.default=O},function(e,t,n){var r=n(15),o=n(43),i=n(38),a=n(42),s=n(20),u=n(36),l=n(60),c=n(91),f=n(77);r({target:"Reflect",stat:!0,forced:s((function(){var e=u.f({},"a",{configurable:!0});return!1!==Reflect.set(c(e),"a",1,e)}))},{set:function e(t,n,r){var s,d,p=arguments.length<4?t:arguments[3],h=l.f(o(t),n);if(!h){if(i(d=c(t)))return e(d,n,r,p);h=f(0)}if(a(h,"value")){if(!1===h.writable||!i(p))return!1;if(s=l.f(p,n)){if(s.get||s.set||!1===s.writable)return!1;s.value=r,u.f(p,n,s)}else u.f(p,n,f(0,r));return!0}return void 0!==h.set&&(h.set.call(p,r),!0)}})},function(e,t,n){"use strict";var r=n(15),o=n(90),i=n(56),a=n(33),s=n(46),u=n(152),l=n(100),c=n(101),f=Math.max,d=Math.min;r({target:"Array",proto:!0,forced:!c("splice")},{splice:function(e,t){var n,r,c,p,h,m,y=s(this),v=a(y.length),b=o(e,v),g=arguments.length;if(0===g?n=r=0:1===g?(n=0,r=v-b):(n=g-2,r=d(f(i(t),0),v-b)),v+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(c=u(y,r),p=0;p<r;p++)(h=b+p)in y&&l(c,p,y[h]);if(c.length=r,n<r){for(p=b;p<v-r;p++)m=p+n,(h=p+r)in y?y[m]=y[h]:delete y[m];for(p=v;p>v-r+n;p--)delete y[p-1]}else if(n>r)for(p=v-r;p>b;p--)m=p+n-1,(h=p+r-1)in y?y[m]=y[h]:delete y[m];for(p=0;p<n;p++)y[p+b]=arguments[p+2];return y.length=v-r+n,c}})},function(e,t,n){"use strict";var r=n(15),o=n(158).trim;r({target:"String",proto:!0,forced:n(407)("trim")},{trim:function(){return o(this)}})},function(e,t,n){"use strict";var r=n(15),o=n(47).some;r({target:"Array",proto:!0,forced:n(83)("some")},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(32),o=n(24),i=n(113),a=n(55),s=n(42),u=n(78),l=n(124),c=n(87),f=n(20),d=n(81),p=n(80).f,h=n(60).f,m=n(36).f,y=n(158).trim,v=o.Number,b=v.prototype,g="Number"==u(d(b)),w=function(e){var t,n,r,o,i,a,s,u,l=c(e,!1);if("string"==typeof l&&l.length>2)if(43===(t=(l=y(l)).charCodeAt(0))||45===t){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(a=(i=l.slice(2)).length,s=0;s<a;s++)if((u=i.charCodeAt(s))<48||u>o)return NaN;return parseInt(i,r)}return+l};if(i("Number",!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var k,_=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof _&&(g?f((function(){b.valueOf.call(n)})):"Number"!=u(n))?l(new v(w(t)),n,_):w(t)},O=r?p(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;O.length>S;S++)s(v,k=O[S])&&!s(_,k)&&m(_,k,h(v,k));_.prototype=b,b.constructor=_,a(o,"Number",_)}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(128),o=n(297),i=n(298),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)}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n(23),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(11)),o=i(n(105));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,s){return{type:"panel",title:e,theme:"default",collapsible:!0,collapsed:!0,key:"".concat(t,"Panel"),weight:r,components:[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},components:[{type:"textarea",key:t,rows:5,editor:"ace",hideLabel:!0,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}]}]}}},s=a;t.default=s},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(57),n(1),n(14),n(19),n(12),n(10),n(2),n(9),n(13),n(21),n(5),n(6),n(34),n(37),n(67),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(247)),o=n(18),i=u(n(144)),a=u(n(22)),s=u(n(11));function u(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(h,e);var t,n,u,l=p(h);function h(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(r=l.call(this,e,t,n)).triggerUpdateValueAt=s.default.debounce(r.updateValueAt.bind(m(r)),100),r}return t=h,u=[{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,[{widget:{type:"input"}}].concat(t))}}],(n=[{key:"getMaskByName",value:function(e){var t=s.default.find(this.component.inputMasks,(function(t){return t.label===e}));return t?t.mask:void 0}},{key:"setInputMask",value:function(e,t){return f(y(h.prototype),"setInputMask",this).call(this,e,t||this.component.inputMask,!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.trim().split(/\s+/).length}},{key:"renderElement",value:function(e,t){e&&"string"==typeof e&&(e=e.replace(/"/g,"&quot;"));var n=this.inputInfo;return n.attr=n.attr||{},n.attr.value=this.getValueAsString(this.formatValue(this.parseValue(e))),this.isMultipleMasksField&&(n.attr.class+=" formio-multiple-mask-input"),this.isMultipleMasksField?this.renderTemplate("multipleMasksInput",{input:n,value:e,index:t,selectOptions:this.getMaskOptions()||[]}):this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:n,value:this.formatValue(this.parseValue(e)),index:t})}},{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||{},s.default.get(this.component,"showWordCount",!1)&&this.refs.wordcount&&this.refs.wordcount[n]){var r=s.default.parseInt(s.default.get(this.component,"validate.maxWords",0),10);this.setCounter(this.t("words"),this.refs.wordcount[n],this.getWordCount(e),r)}if(s.default.get(this.component,"showCharCount",!1)&&this.refs.charcount&&this.refs.charcount[n]){var o=s.default.parseInt(s.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(y(h.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(y(h.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:"getValueAsString",value:function(e,t){return f(y(h.prototype),"getValueAsString",this).call(this,this.getWidgetValueAsString(e,t),t)}},{key:"attachElement",value:function(e,t){var n=this;f(y(h.prototype),"attachElement",this).call(this,e,t),e.widget&&e.widget.destroy();var r=a.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=this;if(!this.component.widget)return null;var n="string"==typeof this.component.widget?{type:this.component.widget}:this.component.widget;if(!i.default.hasOwnProperty(n.type))return null;var r=new i.default[n.type](n,this.component);return r.on("update",(function(){return t.updateValue(r.getValue(),{modified:!0},e)}),!0),r.on("redraw",(function(){return t.redraw()}),!0),r}},{key:"detach",value:function(){if(f(y(h.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()}}},{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,o.delay)((function(){t.emit("blur",t),"blur"===t.component.validateOn&&t.root.triggerChange({},{instance:t,component:t.component,value:t.dataValue,flags:{}}),t.root.focusedComponent=null,t.root.pendingBlur=null}))}))}},{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.placeholder&&(e.placeholder=this.t(this.component.placeholder)),this.component.tabindex&&(e.tabindex=this.component.tabindex),this.disabled&&(e.disabled="disabled"),this.component.autocomplete&&(e.autocomplete=this.component.autocomplete),s.default.defaults(e,this.component.attributes),{id:this.key,type:"input",changeEvent:"input",content:"",attr:e}}},{key:"maskOptions",get:function(){return s.default.map(this.component.inputMasks,(function(e){return{label:e.label,value:e.label}}))}},{key:"isMultipleMasksField",get:function(){return this.component.allowMultipleMasks&&!!this.component.inputMasks&&!!this.component.inputMasks.length}},{key:"remainingWords",get:function(){return s.default.parseInt(s.default.get(this.component,"validate.maxWords"),10)-this.getWordCount(this.dataValue)}},{key:"prefix",get:function(){return this.component.prefix}},{key:"suffix",get:function(){if(this.component.widget&&"calendar"===this.component.widget.type){var e=this.renderTemplate("icon",{ref:"icon",className:this.iconClass(this.component.enableDate||this.component.widget.enableDate?"calendar":"clock-o"),styles:"",content:""}).trim();if(this.component.prefix!==e)return(0,o.convertStringToHTMLElement)(e,'[ref="icon"]')}return this.component.suffix}}])&&c(t.prototype,n),u&&c(t,u),h}(r.default);t.default=v},function(e,t,n){"use strict";n(0),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",ignore:!0},{key:"validation",ignore:!0}]].concat(t))};var r,o=(r=n(27))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";n(0),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:i.default},{key:"data",components:o.default},{key:"validation",components:a.default}]].concat(t))};var r=s(n(27)),o=s(n(899)),i=s(n(900)),a=s(n(901));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r,o,i,a=n(273),s=n(24),u=n(38),l=n(49),c=n(42),f=n(112),d=n(94),p=s.WeakMap;if(a){var h=new p,m=h.get,y=h.has,v=h.set;r=function(e,t){return v.call(h,e,t),t},o=function(e){return m.call(h,e)||{}},i=function(e){return y.call(h,e)}}else{var b=f("state");d[b]=!0,r=function(e,t){return l(e,b,t),t},o=function(e){return c(e,b)?e[b]:{}},i=function(e){return c(e,b)}}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 TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(199),o=n(149).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(43),o=n(274),i=n(149),a=n(94),s=n(275),u=n(193),l=n(112)("IE_PROTO"),c=function(){},f=function(){var e,t=u("iframe"),n=i.length;for(t.style.display="none",s.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),f=e.F;n--;)delete f.prototype[i[n]];return f()};e.exports=Object.create||function(e,t){var n;return null!==e?(c.prototype=r(e),n=new c,c.prototype=null,n[l]=e):n=f(),void 0===t?n:o(n,t)},a[l]=!0},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){"use strict";var r=n(20);e.exports=function(e,t){var n=[][e];return!n||!r((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){var r=n(305),o=n(308);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(14),n(12),n(10),n(2),n(9),n(13),n(5),n(6),n(67),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(74))&&r.__esModule?r:{default:r},i=n(106),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(18));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(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,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(h,e);var t,n,r,s=p(h);function h(){return l(this,h),s.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 o.default.schema.apply(o.default,[{label:"Text Field",key:"textField",type:"textfield",mask:!1,inputType:"text",inputFormat:"plain",inputMask:"",tableView:!0,spellcheck:!0,validate:{minLength:"",maxLength:"",pattern:""}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Text Field",icon:"terminal",group:"basic",documentation:"http://help.form.io/userguide/#textfield",weight:0,schema:h.schema()}}}],(n=[{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)?f(m(h.prototype),"normalizeValue",this).call(this,e.map((function(e){return t.maskValue(e,n)}))):f(m(h.prototype),"normalizeValue",this).call(this,this.maskValue(e,n)):f(m(h.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 f(m(h.prototype),"setValueAt",this).call(this,e,t,n);var r=(t=this.maskValue(t,n)).value||"",o=this.refs.mask?this.refs.mask[e]:null,s=this.refs.select?this.refs.select[e]:null,u=this.getMaskPattern(t.maskName);if(!(o&&s&&u))return f(m(h.prototype),"setValueAt",this).call(this,e,r,n);o.value=(0,i.conformToMask)(r,a.getInputMask(u)).conformedValue,s.value=t.maskName}},{key:"getValueAt",value:function(e){if(!this.isMultipleMasksField)return f(m(h.prototype),"getValueAt",this).call(this,e);var t=this.refs.mask?this.refs.mask[e]:null,n=this.refs.select?this.refs.select[e]:null;return{value:t?t.value:void 0,maskName:n?n.value:void 0}}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return this.isMultipleMasksField?f(m(h.prototype),"isEmpty",this).call(this,e)||(this.component.multiple?0===e.length:!e.maskName||!e.value):f(m(h.prototype),"isEmpty",this).call(this,(e||"").toString().trim())}},{key:"defaultSchema",get:function(){return h.schema()}},{key:"inputInfo",get:function(){var e=f(m(h.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""}}])&&c(t.prototype,n),r&&c(t,r),h}(o.default);t.default=y},function(e,t,n){"use strict";n(0),n(16),n(31),n(1),n(14),n(2),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(11))&&r.__esModule?r:{default:r},i=n(18);var 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","tree"].includes(t.type)||t.tree||t.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","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.forEach((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},function(e,t,n){var r=n(38);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=!1},function(e,t,n){var r=n(198),o=n(24),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},function(e,t,n){var r=n(56),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)}},function(e,t,n){var r=n(42),o=n(46),i=n(112),a=n(205),s=i("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},function(e,t,n){var r=n(20),o=n(78),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t){e.exports={}},function(e,t,n){var r=n(52),o=n(33),i=n(90),a=function(e){return function(t,n,a){var s,u=r(t),l=o(u.length),c=i(a,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(199),o=n(149);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(36).f,o=n(42),i=n(28)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(82);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(87),o=n(36),i=n(77);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){var r=n(20),o=n(28),i=n(209),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}))}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r=n(121),o=n(43),i=n(33),a=n(53),s=n(162),u=n(122);r("match",1,(function(e,t,n){return[function(t){var n=a(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=o(e),l=String(this);if(!a.global)return u(a,l);var c=a.unicode;a.lastIndex=0;for(var f,d=[],p=0;null!==(f=u(a,l));){var h=String(f[0]);d[p]=h,""===h&&(a.lastIndex=s(l,i(a.lastIndex),c)),p++}return 0===p?null:d}]}))},function(e,t,n){var r=n(43),o=n(82),i=n(28)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(39),n(1),n(30),n(19),n(2),n(9),n(21),n(5),n(6),n(34),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(11)),o=i(n(395));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&&u(o,n.prototype),o}).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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(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})(e)}var d={noeval:!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,l(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){if("function"==typeof e)try{return e(t)}catch(e){return console.warn("Error interpolating template",e,t),e.message}e=String(e);var n,i=(0,o.default)(e);if(d.cache[i])n=d.cache[i];else{if(d.noeval)return e.replace(/({{\s*(.*?)\s*}})/g,(function(e,n,o){return r.default.get(t,o)}));n=d.template(e,i)}if("function"==typeof n)try{return n(t)}catch(n){return console.warn("Error interpolating template",n,e,t),n.message}return n},evaluate:function(e,t){return Array.isArray(t)?e.apply(void 0,l(t)):e(t)}},p=d;t.default=p},function(e,t,n){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=(0,a.default)(e),r=function(e){var t=e.target.value;return n.update(t)};return t.addEventListener("input",r),n.update(t.value),{textMaskInputElement:n,destroy:function(){t.removeEventListener("input",r)}}}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 u=n.guide,l=void 0===u||u,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,y=n.currentCaretPosition,v=n.keepCharPositions,b=!1===l&&void 0!==f,g=e.length,w=f.length,k=m.length,_=t.length,O=g-w,S=O>0,x=y+(S?-O:0),P=x+Math.abs(O);if(!0===v&&!S){for(var j=s,C=x;C<P;C++)m[C]===p&&(j+=p);e=e.slice(0,x)+j+e.slice(x,g)}for(var E=e.split(s).map((function(e,t){return{char:e,isNew:t>=x&&t<P}})),A=g-1;A>=0;A--){var M=E[A].char;if(M!==p){var R=A>=x&&w===_;M===m[R?A-O:A]&&E.splice(A,1)}}var T=s,D=!1;e:for(var L=0;L<k;L++){var I=m[L];if(I===p){if(E.length>0)for(;E.length>0;){var V=E.shift(),N=V.char,F=V.isNew;if(N===p&&!0!==b){T+=p;continue e}if(t[L].test(N)){if(!0===v&&!1!==F&&f!==s&&!1!==l&&S){for(var U=E.length,z=null,B=0;B<U;B++){var H=E[B];if(H.char!==p&&!1===H.isNew)break;if(H.char===p){z=B;break}}null!==z?(T+=N,E.splice(z,1)):L--}else T+=N;continue e}D=!0}!1===b&&(T+=m.substr(L,k));break}T+=I}if(b&&!1===S){for(var q=null,W=0;W<T.length;W++)m[W]===p&&(q=W);T=null!==q?T.substr(0,q+1):s}return{conformedValue:T,meta:{someCharsRejected:D}}};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.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,u=void 0===s?0:s,l=e.conformedValue,c=e.rawValue,f=e.placeholderChar,d=e.placeholder,p=e.indexesOfPipedChars,h=void 0===p?n:p,m=e.caretTrapIndexes,y=void 0===m?n:m;if(0===u||!c.length)return 0;var v=c.length,b=o.length,g=d.length,w=l.length,k=v-b,_=k>0;if(k>1&&!_&&0!==b)return u;var O=0,S=void 0,x=void 0;if(!_||o!==l&&l!==d){var P=l.toLowerCase(),j=c.toLowerCase().substr(0,u).split(r).filter((function(e){return-1!==P.indexOf(e)}));x=j[j.length-1];var C=a.substr(0,j.length).split(r).filter((function(e){return e!==f})).length,E=d.substr(0,j.length).split(r).filter((function(e){return e!==f})).length!==C,A=void 0!==a[j.length-1]&&void 0!==d[j.length-2]&&a[j.length-1]!==f&&a[j.length-1]!==d[j.length-1]&&a[j.length-1]===d[j.length-2];!_&&(E||A)&&C>0&&d.indexOf(x)>-1&&void 0!==c[u]&&(S=!0,x=c[u]);for(var M=h.map((function(e){return P[e]})).filter((function(e){return e===x})).length,R=j.filter((function(e){return e===x})).length,T=d.substr(0,d.indexOf(f)).split(r).filter((function(e,t){return e===x&&c[t]!==e})).length+R+M+(S?1:0),D=0,L=0;L<w&&(O=L+1,P[L]===x&&D++,!(D>=T));L++);}else O=u-k;if(_){for(var I=O,V=O;V<=g;V++)if(d[V]===f&&(I=V),d[V]===f||-1!==y.indexOf(V)||V===g)return I}else if(S){for(var N=O-1;N>=0;N--)if(l[N]===x||-1!==y.indexOf(N)||0===N)return N}else for(var F=O;F>=0;F--)if(d[F-1]===f||-1!==y.indexOf(F)||0===F)return F};var n=[],r=""},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){document.activeElement===e&&(m?y((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,y=r.guide,v=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&&(v=m.pipe,m=m.mask);var S=void 0,x=void 0;if(m instanceof Array&&(S=(0,c.convertMaskToPlaceholder)(m,g)),!1!==m){var P=i(n),j=p.selectionEnd,C=t.previousConformedValue,E=t.previousPlaceholder,A=void 0;if((void 0===m?"undefined":s(m))===f.strFunction){if(!1===(x=m(P,{currentCaretPosition:j,previousConformedValue:C,placeholderChar:g})))return;var M=(0,c.processCaretTraps)(x),R=M.maskWithoutCaretTraps,T=M.indexes;x=R,A=T,S=(0,c.convertMaskToPlaceholder)(x,g)}else x=m;var D={previousConformedValue:C,guide:y,placeholderChar:g,pipe:v,placeholder:S,currentCaretPosition:j,keepCharPositions:k},L=(0,l.default)(P,x,D),I=L.conformedValue,V=(void 0===v?"undefined":s(v))===f.strFunction,N={};V&&(!1===(N=v(I,a({rawValue:P},D)))?N={value:C,rejected:!0}:(0,c.isString)(N)&&(N={value:N}));var F=V?N.value:I,U=(0,u.default)({previousConformedValue:C,previousPlaceholder:E,conformedValue:F,placeholder:S,rawValue:P,currentCaretPosition:j,placeholderChar:g,indexesOfPipedChars:N.indexesOfPipedChars,caretTrapIndexes:A}),z=F===S&&0===U,B=O?S:d,H=z?B:F;t.previousConformedValue=H,t.previousPlaceholder=S,p.value!==H&&(p.value=H,o(p,U))}}}}};var u=r(n(4)),l=r(n(2)),c=n(3),f=n(1),d="",p="none",h="object",m="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),y="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout}])},function(e,t,n){n(15)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){"use strict";var r=n(15),o=n(47).findIndex,i=n(115),a=!0;"findIndex"in[]&&Array(1).findIndex((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(48)),o=a(n(73)),i=a(n(11));function a(e){return e&&e.__esModule?e:{default: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)}}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,a;return t=e,a=[{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)}),i.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):new r.default(t,n,o)}},{key:"EditFormUtils",get:function(){return o.default}},{key:"components",get:function(){return e._components||(e._components={}),e._components}}],(n=null)&&s(t.prototype,n),a&&s(t,a),e}();t.default=u},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(23),n(16),n(31),n(50),n(1),n(14),n(19),n(61),n(12),n(45),n(10),n(26),n(2),n(9),n(13),n(21),n(5),n(44),n(6),n(37),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(n(11)),o=m(n(54)),i=m(n(838)),a=m(n(165)),s=m(n(269)),u=m(n(839)),l=m(n(41)),c=m(n(22)),f=m(n(109)),d=m(n(143)),p=n(18),h=n(126);function m(e){return e&&e.__esModule?e:{default:e}}function y(e){return(y="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 v(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?v(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(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(e,t,n){return(k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=P(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=P(e);if(t){var o=P(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?x(e):t}function x(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)})(e)}function j(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:l.default.icons,"fontawesome"===t?"fa":t||""),i18next:s.default,saveDraft:!1,alwaysDirty:!1,saveDraftThrottle:5e3})).events||(e.events=new a.default({wildcard:!1,maxListeners:0})),e}l.default.forms={},l.default.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&&_(e,t)}(f,e);var t,n,a,s=O(f);function f(){var e,t,n;g(this,f),arguments[0]instanceof HTMLElement||arguments[1]?(t=arguments[0],n=arguments[1]):n=arguments[0],j(x(e=s.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,l.default.forms[e.id]=x(e),e.options.baseUrl&&l.default.setBaseUrl(e.options.baseUrl);var o=u.default;return 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:e}})),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(x(e)),e.options.saveDraftThrottle):e.triggerSaveDraft=e.saveDraft.bind(x(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&&l.default.events&&l.default.events.on("formio.user",(function(t){e.formReady.then((function(){e.submissionSet||e.restoreDraft(t._id)}))})),e.component.clearOnHide=!1,e.root=x(e),e}return t=f,(n=[{key:"addLanguage",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.i18next.addResourceBundle(e,"translation",t,!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(e.options.i18n,(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:"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:"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 l.default(e,t),"form"===this.type&&(this.options.src=e),0))}},{key:"setForm",value:function(e,t){var n=this;try{if(JSON.stringify(this._form)===JSON.stringify(e))return c.default.resolve()}catch(e){return console.warn(e),c.default.resolve()}if(this._form=e,e&&e.settings&&e.settings.components&&(this.options.components=e.settings.components),"schema"in e&&(0,i.default)(e.schema,"1.x")>0&&this.ready.then((function(){n.setAlert("alert alert-danger","Form schema is for a newer version, please upgrade your renderer. Some functionality may not work.")})),e&&e.module){var r=null;if("string"==typeof e.module)try{r=this.evaluate("return ".concat(e.module))}catch(e){console.warn(e)}else r=e.module;r&&(l.default.use(r),r.options&&r.options.form&&(this.options=Object.assign(this.options,r.options.form)))}return this.initialized=!1,(this.rebuild()||c.default.resolve()).then((function(){return n.emit("formLoad",e),n.triggerRecaptcha(),setTimeout((function(){n.onChange(t),n.formReadyResolve()}),0),n.formReady}))}},{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(l.default.getUser()){var t=(0,p.fastCloneDeep)(this.submission);t.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:"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(P(f.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(){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&&delete l.default.forms[this.id],k(P(f.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(P(f.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(P(f.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(this.element,"keydown",this.executeShortcuts),this.currentForm=this,n.then((function(){return t.emit("render",t.element),t.setValue(t._submission,{noUpdateEvent:!0})}))}},{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.redraw()}},{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){}t&&(this.alert=this.ce("div",{class:n||"alert alert-".concat(e),id:"error-list-".concat(this.id)}),t instanceof HTMLElement?this.appendTo(t,this.alert):this.setContent(this.alert,t)),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(P(f.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.forEach((function(t){var n=o.getComponent(t,r.default.identity);r.default.compact(Array.isArray(n)?n:[n]).forEach((function(t){return t.setCustomValidity(e.message,!0)}))}))}));var a=document.createDocumentFragment(),s=this.ce("p");this.setContent(s,this.t("error"));var u=this.ce("ul");return i.forEach((function(e){if(e){var t=function(t,n){var i={ref:"errorRef",tabIndex:0,"aria-label":"".concat(t,". Click to navigate to the field with following error.")},a=o.ce("li",i),s=o.ce("span");a.style="cursor:pointer",o.setContent(s,(0,p.unescapeHTML)(t)),o.appendTo(s,a);var l=!r.default.isUndefined(n)&&e.messages&&e.messages[n],c=l&&l.path||e.component&&e.component.key;if(c){var f=(0,p.getStringFromComponentPath)(c);a.dataset.componentKey=f}o.appendTo(a,u)};if(e.messages&&e.messages.length){var n=e.component;e.messages.forEach((function(e,r){var i=e.message,a=o.t("alertMessage",{label:o.t(n.label),message:i});t(a,r)}))}else if(e){var i=r.default.isObject(e)?e.message||"":e;t(i)}}})),s.appendChild(u),a.appendChild(s),this.setAlert("danger",a),t&&this.emit("error",i),i}this.setAlert(!1)}},{key:"onSubmit",value:function(e,t){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.emit("submit",e),t&&this.emit("submitDone",e),e}},{key:"onSubmissionError",value:function(e){return e&&("string"==typeof e&&(e={message:e}),"details"in e&&(e=e.details)),this.submitting=!1,this.setPristine(!1),this.emit("submitError",e),e&&e.silent?(this.emit("change",{isValid:!0}),!1):this.showErrors(e,!0)}},{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(P(f.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("change",a,e),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(P(f.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))}},{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 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,i.data)?(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 l.default.makeStaticRequest(e._form.action,r,i,e.formio?e.formio.options:{}).then((function(e){return n({submission:e,saved:!0})})).catch(o)}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(o)}))):o():o("Invalid Submission")}))}))}},{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)})).catch((function(e){return c.default.reject(t.onSubmissionError(e))}))}},{key:"submit",value:function(e,t){var n=this;return 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.");l.default.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:"language",set:function(e){var t=this;return new c.default((function(n,r){if(t.options.language=e,t.i18next.language===e)return n();try{t.i18next.changeLanguage(e,(function(e){if(e)return r(e);t.redraw(),t.emit("languageChanged"),n()}))}catch(e){return r(e)}}))}},{key:"componentComponents",get:function(){return this.form.components}},{key:"src",get:function(){return this._src},set:function(e){this.setSrc(e)}},{key:"url",get:function(){return this._src},set:function(e){this.setUrl(e)}},{key:"ready",get:function(){var e=this;return this.formReady.then((function(){return k(P(f.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:"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:"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:"nosubmit",set:function(e){this._nosubmit=!!e,this.emit("nosubmit",this._nosubmit)},get:function(){return this._nosubmit||!1}}])&&w(t.prototype,n),a&&w(t,a),f}(d.default);t.default=E,E.setBaseUrl=l.default.setBaseUrl,E.setApiUrl=l.default.setApiUrl,E.setAppUrl=l.default.setAppUrl},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(148),o=n(93),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t,n){var r=n(20),o=/#|\.prototype\./,i=function(e,t){var n=s[a(e)];return n==l||n!=u&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},u=i.NATIVE="N",l=i.POLYFILL="P";e.exports=i},function(e,t,n){var r=n(78);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(28),o=n(81),i=n(49),a=r("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,o(null)),e.exports=function(e){s[a][e]=!0}},function(e,t,n){var r=n(43),o=n(278);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},function(e,t,n){var r=n(154),o=n(78),i=n(28)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o: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=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){"use strict";var r,o,i=n(119),a=RegExp.prototype.exec,s=String.prototype.replace,u=a,l=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),c=void 0!==/()??/.exec("")[1];(l||c)&&(u=function(e){var t,n,r,o,u=this;return c&&(n=new RegExp("^"+u.source+"$(?!\\s)",i.call(u))),l&&(t=u.lastIndex),r=a.call(u,e),l&&r&&(u.lastIndex=u.global?r.index+r[0].length:t),c&&r&&r.length>1&&s.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),e.exports=u},function(e,t,n){"use strict";var r=n(43);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}},function(e,t,n){"use strict";var r=n(121),o=n(43),i=n(53),a=n(283),s=n(122);r("search",1,(function(e,t,n){return[function(t){var n=i(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=o(e),u=String(this),l=i.lastIndex;a(l,0)||(i.lastIndex=0);var c=s(i,u);return a(i.lastIndex,l)||(i.lastIndex=l),null===c?-1:c.index}]}))},function(e,t,n){"use strict";var r=n(49),o=n(55),i=n(20),a=n(28),s=n(118),u=a("species"),l=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),c=!i((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]}));e.exports=function(e,t,n,f){var d=a(e),p=!i((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),h=p&&!i((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||"replace"===e&&!l||"split"===e&&!c){var m=/./[d],y=n(d,""[e],(function(e,t,n,r,o){return t.exec===s?p&&!o?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=y[0],b=y[1];o(String.prototype,e,v),o(RegExp.prototype,d,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)}),f&&r(RegExp.prototype[d],"sham",!0)}}},function(e,t,n){var r=n(78),o=n(118);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){var r=n(82),o=n(46),i=n(92),a=n(33),s=function(e){return function(t,n,s,u){r(n);var l=o(t),c=i(l),f=a(l.length),d=e?f-1:0,p=e?-1:1;if(s<2)for(;;){if(d in c){u=c[d],d+=p;break}if(d+=p,e?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=p)d in c&&(u=n(u,c[d],d,l));return u}};e.exports={left:s(!1),right:s(!0)}},function(e,t,n){var r=n(38),o=n(116);e.exports=function(e,t,n){var i,a;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(e,a),e}},function(e,t,n){(function(r){var o;!function(r){"use strict";function i(e){var t=e&&e.Promise||r.Promise,n=e&&e.XMLHttpRequest||r.XMLHttpRequest,o=r;return function(){var e=Object.create(o,{fetch:{value:void 0,writable:!0}});return function(e){if(!e.fetch){var r="URLSearchParams"in e,o="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in e,s="ArrayBuffer"in e;if(s)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=function(e){return e&&DataView.prototype.isPrototypeOf(e)},c=ArrayBuffer.isView||function(e){return e&&u.indexOf(Object.prototype.toString.call(e))>-1};y.prototype.append=function(e,t){e=p(e),t=h(t);var n=this.map[e];this.map[e]=n?n+","+t:t},y.prototype.delete=function(e){delete this.map[p(e)]},y.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},y.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},y.prototype.set=function(e,t){this.map[p(e)]=h(t)},y.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},y.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),m(e)},y.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),m(e)},y.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),m(e)},o&&(y.prototype[Symbol.iterator]=y.prototype.entries);var f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},k.call(_.prototype),k.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:0,statusText:""});return e.type="error",e};var d=[301,302,303,307,308];S.redirect=function(e,t){if(-1===d.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},e.Headers=y,e.Request=_,e.Response=S,e.fetch=function(e,r){return new t((function(t,o){var a=new _(e,r),s=new n;s.onload=function(){var e,n,r={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",n=new y,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var t=e.split(":"),r=t.shift().trim();if(r){var o=t.join(":").trim();n.append(r,o)}})),n)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;t(new S(o,r))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),s.send(void 0===a._bodyInit?null:a._bodyInit)}))},e.fetch.polyfill=!0}function p(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function h(e){return"string"!=typeof e&&(e=String(e)),e}function m(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function y(e){this.map={},e instanceof y?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 t.reject(new TypeError("Already read"));e.bodyUsed=!0}function b(e){return new t((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=b(t);return t.readAsArrayBuffer(e),n}function w(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function k(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(i&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(a&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(r&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(s&&i&&l(e))this._bodyArrayBuffer=w(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!s||!ArrayBuffer.prototype.isPrototypeOf(e)&&!c(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=w(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=v(this);if(e)return e;if(this._bodyBlob)return t.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return t.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return t.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?v(this)||t.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,n,r,o=v(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,n=new FileReader,r=b(n),n.readAsText(e),r;if(this._bodyArrayBuffer)return t.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 t.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(O)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){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 y(e.headers)),this.method=e.method,this.mode=e.mode,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new y(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),f.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}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 S(e,t){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:"OK",this.headers=new y(t.headers),this.url=t.url||"",this._initBody(e)}}(void 0!==e?e:this),{fetch:e.fetch,Headers:e.Headers,Request:e.Request,Response:e.Response}}()}void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}("undefined"!=typeof self?self:void 0!==r?r:this)}).call(this,n(51))},function(e,t,n){"use strict";n(0),n(16),n(39),n(31),n(50),n(1),n(29),n(14),n(30),n(66),n(2),n(21),n(5),n(6),n(34),n(37),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),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.eachComponent=b,t.matchComponent=g,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.searchComponents=w,t.findComponents=function(e,t){return console.warn("formio.js/utils findComponents is deprecated. Use searchComponents instead."),w(e,t)},t.findComponent=k,t.removeComponent=_,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.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 u=(0,r.default)(e.components,s),l=(0,m.applyPatch)(a,t.patches).newDocument;u.key!==l.key&&s.pop(),(0,o.default)(e.components,s,l)}catch(e){n.push(t)}}))}i||n.push(t)})),{form:e,failed:n}},t.flattenComponents=function(e,t){var n={};return b(e,(function(e,t){n[t]=e}),t),n},t.hasCondition=function(e){return Boolean(e.customConditional||e.conditional&&e.conditional.when||e.conditional&&e.conditional.json)},t.parseFloatExt=O,t.formatAsCurrency=function(e){var t=O(e);if((0,l.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.escapeRegExCharacters=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},t.getValue=function(e,t){return function e(n){if((0,f.default)(n)){if((0,i.default)(n,t))return y.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.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.forEach((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};var r=v(n(168)),o=v(n(323)),i=v(n(325)),a=v(n(329)),s=v(n(371)),u=v(n(376)),l=v(n(377)),c=v(n(379)),f=v(n(380)),d=v(n(381)),p=v(n(384)),h=v(n(385)),m=n(393),y=v(n(11));function v(e){return e&&e.__esModule?e:{default:e}}function b(e,t,n,r,o){e&&(r=r||"",e.forEach((function(i){if(i){var s=i.columns&&Array.isArray(i.columns),u=i.rows&&Array.isArray(i.rows),l=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||u||l||["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"].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)})):u?i.rows.forEach((function(e){Array.isArray(e)&&e.forEach((function(e){return b(e.components,t,n,p(),o?i:null)}))})):l&&b(i.components,t,n,p(),o?i:null))}})))}function g(e,t){if((0,u.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,u.default)(e)?e.replace(/[^\de.+-]/gi,""):e)}},function(e,t,n){var r=n(71),o=n(63);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(58).Symbol;e.exports=r},function(e,t,n){var r=n(84)(Object,"create");e.exports=r},function(e,t,n){var r=n(313),o=n(314),i=n(315),a=n(316),s=n(317);function u(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])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(132);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(319);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(172);e.exports=function(e){return null==e?"":r(e)}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(175),o=n(218);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var l=t[s],c=i?i(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),a?o(n,l,c):r(n,l,c)}return n}},function(e,t,n){var r=n(222),o=n(342),i=n(139);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(216),o=n(176);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(222),o=n(345),i=n(139);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t){
  17. /*!
  18. * https://github.com/Starcounter-Jack/JSON-Patch
  19. * (c) 2017 Joachim Wester
  20. * MIT license
  21. */
  22. var n,r=this&&this.__extends||(n=function(e,t){return(n=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])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=Object.prototype.hasOwnProperty;function i(e,t){return o.call(e,t)}function a(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);t=[];for(var r in e)i(e,r)&&t.push(r);return t}function s(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function u(e,t){var n;for(var r in e)if(i(e,r)){if(e[r]===t)return s(r)+"/";if("object"==typeof e[r]&&""!=(n=u(e[r],t)))return s(r)+"/"+n}return""}function l(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")}t.hasOwnProperty=i,t._objectKeys=a,t._deepClone=function(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}},t.isInteger=function(e){for(var t,n=0,r=e.length;n<r;){if(!((t=e.charCodeAt(n))>=48&&t<=57))return!1;n++}return!0},t.escapePathComponent=s,t.unescapePathComponent=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")},t._getPathRecursive=u,t.getPath=function(e,t){if(e===t)return"/";var n=u(e,t);if(""===n)throw new Error("Object not found in root");return"/"+n},t.hasUndefined=function e(t){if(void 0===t)return!0;if(t)if(Array.isArray(t)){for(var n=0,r=t.length;n<r;n++)if(e(t[n]))return!0}else if("object"==typeof t){var o=a(t),i=o.length;for(n=0;n<i;n++)if(e(t[o[n]]))return!0}return!1};var c=function(e){function t(t,n,r,o,i){var a=this.constructor,s=e.call(this,l(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=l(t,{name:n,index:r,operation:o,tree:i}),s}return r(t,e),t}(Error);t.PatchError=c},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(39),n(1),n(29),n(14),n(30),n(19),n(2),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.AddressProvider=void 0;var r=i(n(11)),o=i(n(41));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;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,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(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 s(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){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 c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}var f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,e),this.options=r.default.merge({},this.defaultOptions,t)}return c(e,null,[{key:"name",get:function(){return"address"}},{key:"displayName",get:function(){return"Address"}}]),c(e,[{key:"serialize",value:function(e){return r.default.toPairs(e).map((function(e){var t=a(e,2),n=t[0],r=t[1];return"".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(r))})).join("&")}},{key:"getRequestOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.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 o.default.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]:{},o=this.getRequestOptions(n),i=o.params=o.params||{};return i[this.queryProperty]=e,this.makeRequest(o).then((function(e){return t.responseProperty?r.default.get(e,t.responseProperty,[]):e}))}},{key:"getDisplayValue",value:function(e){return this.displayValueProperty?r.default.get(e,this.displayValueProperty,""):String(e)}},{key:"defaultOptions",get:function(){return{}}},{key:"queryProperty",get:function(){return"query"}},{key:"responseProperty",get:function(){return null}},{key:"displayValueProperty",get:function(){return null}}]),e}();t.AddressProvider=f},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(23),n(16),n(1),n(12),n(45),n(10),n(26),n(2),n(9),n(13),n(5),n(6),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(48)),o=a(n(64)),i=a(n(11));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})(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 l(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){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}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,n){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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&&h(e,t)}(s,e);var t,n,o,a=m(s);function s(){return f(this,s),a.apply(this,arguments)}return t=s,(n=[{key:"hasChanged",value:function(e,t){return null!=e&&!this.hasValue()||!i.default.isEqual(e,t)}},{key:"getValueAsString",value:function(e,t){if(null==t?void 0: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 "))}),l(l({},t),{},{fromRoot:!0})),n+="\n </tbody>\n </table>\n "}return i.default.isEmpty(e)?"":(null==t?void 0: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 ';return this.components.forEach((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 "))}),l(l({},t),{},{fromRoot:!0})),n+="\n </tbody>\n </table>\n "}},{key:"everyComponent",value:function(e,t){if(null==t?void 0:t.email){if(!t.fromRoot)return;delete t.fromRoot}return p(v(s.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 r.default.prototype.updateValue.call(this,e,t)}},{key:"allowData",get:function(){return!0}}])&&d(t.prototype,n),o&&d(t,o),s}(o.default);t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(248)),o=i(n(783));function i(e){return e&&e.__esModule?e:{default:e}}var a={input:r.default,calendar:o.default};t.default=a},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(61),n(10),n(2),n(9),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(189)),o=c(n(41)),i=c(n(837)),a=c(n(244)),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(18)),u=c(n(22));function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return(f=v()?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}).apply(null,arguments)}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,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})(e,t)}function y(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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,l,c,f=(t=d,n=v(),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 y(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 o.default.options&&o.default.options.form&&(t=Object.assign(t,o.default.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)}))}}],(l=[{key:"create",value:function(e){return this.options&&(this.options.flatten||"flat"===this.options.renderMode)&&(e="form"),this.display=e,i.default.displays[e]?new i.default.displays[e](this.element,this.options):new i.default.displays.webform(this.element,this.options)}},{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,i=new o.default(e);t=this.getSubmission(i).catch((function(e){r=e})).then((function(t){return i.loadForm().catch((function(e){r=e})).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){return s.sanitize(e,this.options)}},{key:"setContent",value:function(e,t){return e instanceof HTMLElement&&(e.innerHTML=this.sanitize(t),!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=a.default[t].loader||a.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")}},{key:"form",set:function(e){return this.setForm(e)},get:function(){return this._form}}])&&h(r.prototype,l),c&&h(r,c),d}(r.default);t.default=g,o.default.embedForm=function(e){return g.embed(e)},o.default.createForm=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f(g,t).ready},o.default.Form=g},function(e,t,n){var r=n(24),o=n(49);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(88),o=n(195);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.5.0",mode:r?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(20);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(e,t,n){var r=n(38),o=n(114),i=n(28)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){"use strict";var r=n(15),o=n(277),i=n(91),a=n(116),s=n(97),u=n(49),l=n(55),c=n(28),f=n(88),d=n(99),p=n(204),h=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,y=c("iterator"),v=function(){return this};e.exports=function(e,t,n,c,p,b,g){o(n,t,c);var w,k,_,O=function(e){if(e===p&&C)return C;if(!m&&e in P)return P[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},S=t+" Iterator",x=!1,P=e.prototype,j=P[y]||P["@@iterator"]||p&&P[p],C=!m&&j||O(p),E="Array"==t&&P.entries||j;if(E&&(w=i(E.call(new e)),h!==Object.prototype&&w.next&&(f||i(w)===h||(a?a(w,h):"function"!=typeof w[y]&&u(w,y,v)),s(w,S,!0,!0),f&&(d[S]=v))),"values"==p&&j&&"values"!==j.name&&(x=!0,C=function(){return j.call(this)}),f&&!g||P[y]===C||u(P,y,C),d[t]=C,p)if(k={values:O("values"),keys:b?C:O("keys"),entries:O("entries")},g)for(_ in k)(m||x||!(_ in P))&&l(P,_,k[_]);else r({target:t,proto:!0,forced:m||x},k);return k}},function(e,t,n){var r={};r[n(28)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){var r=n(28),o=n(99),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,n){var r=n(117),o=n(99),i=n(28)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){var r=n(28)("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}},function(e,t,n){var r=n(53),o="["+n(159)+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,n){var r=n(38),o=n(78),i=n(28)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){"use strict";var r=n(89),o=n(36),i=n(28),a=n(32),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}})}},function(e,t,n){"use strict";var r=n(206).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(286),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(51))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,l=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&p())}function p(){if(!c){var e=s(d);c=!0;for(var t=l.length;t;){for(u=l,l=[];++f<t;)u&&u[f].run();f=-1,t=l.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.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];l.push(new h(e,t)),1!==l.length||c||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(50),n(1),n(12),n(10),n(26),n(2),n(9),n(13),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(166),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(18));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(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})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?d(e):t}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,t,n){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(n,e);var t=c(n);function n(){var e,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,n);var a=i.loadLimit,l=void 0===a?1e3:a,c=i.eventsSafeInterval,f=void 0===c?300:c,m=s(i,["loadLimit","eventsSafeInterval"]);r=t.call(this,m);var y=function(){console.warn("There were more than ".concat(l," events emitted in ").concat(f," ms. It might be caused by events' infinite loop"),r.id)},v=o.observeOverload(y,{limit:l,delay:f});return r.emit=function(){for(var t,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];(t=p((e=d(r),h(n.prototype)),"emit",e)).call.apply(t,[e].concat(i)),v()},r}return n}(r.EventEmitter2);t.default=m},function(e,t,n){(function(r,o){var i;
  23. /*!
  24. * EventEmitter2
  25. * https://github.com/hij1nx/EventEmitter2
  26. *
  27. * Copyright (c) 2013 hij1nx
  28. * Licensed under the MIT license.
  29. */!function(a){var s=Object.hasOwnProperty,u=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},l="object"==typeof r&&"function"==typeof r.nextTick,c="function"==typeof Symbol,f="object"==typeof Reflect,d="function"==typeof o?o:setTimeout,p=c?f&&"function"==typeof Reflect.ownKeys?Reflect.ownKeys:function(e){var t=Object.getOwnPropertyNames(e);return t.push.apply(t,Object.getOwnPropertySymbols(e)),t}:Object.keys;function h(){this._events={},this._conf&&m.call(this,this._conf)}function m(e){e&&(this._conf=e,e.delimiter&&(this.delimiter=e.delimiter),void 0!==e.maxListeners&&(this._maxListeners=e.maxListeners),e.wildcard&&(this.wildcard=e.wildcard),e.newListener&&(this._newListener=e.newListener),e.removeListener&&(this._removeListener=e.removeListener),e.verboseMemoryLeak&&(this.verboseMemoryLeak=e.verboseMemoryLeak),e.ignoreErrors&&(this.ignoreErrors=e.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function y(e,t){var n="(node) warning: possible EventEmitter memory leak detected. "+e+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(n+=" Event name: "+t+"."),void 0!==r&&r.emitWarning){var o=new Error(n);o.name="MaxListenersExceededWarning",o.emitter=this,o.count=e,r.emitWarning(o)}else console.error(n),console.trace&&console.trace()}var v=function(e,t,n){var r=arguments.length;switch(r){case 0:return[];case 1:return[e];case 2:return[e,t];case 3:return[e,t,n];default:for(var o=new Array(r);r--;)o[r]=arguments[r];return o}};function b(e,t){for(var n={},r=e.length,o=t?value.length:0,i=0;i<r;i++)n[e[i]]=i<o?t[i]:void 0;return n}function g(e,t,n){var r,o;if(this._emitter=e,this._target=t,this._listeners={},this._listenersCount=0,(n.on||n.off)&&(r=n.on,o=n.off),t.addEventListener?(r=t.addEventListener,o=t.removeEventListener):t.addListener?(r=t.addListener,o=t.removeListener):t.on&&(r=t.on,o=t.off),!r&&!o)throw Error("target does not implement any known event API");if("function"!=typeof r)throw TypeError("on method must be a function");if("function"!=typeof o)throw TypeError("off method must be a function");this._on=r,this._off=o;var i=e._observers;i?i.push(this):e._observers=[this]}function w(e,t,n,r){var o=Object.assign({},t);if(!e)return o;if("object"!=typeof e)throw TypeError("options must be an object");var i,a,u,l=Object.keys(e),c=l.length;function f(e){throw Error('Invalid "'+i+'" option value'+(e?". Reason: "+e:""))}for(var d=0;d<c;d++){if(i=l[d],!r&&!s.call(t,i))throw Error('Unknown "'+i+'" option');void 0!==(a=e[i])&&(u=n[i],o[i]=u?u(a,f):a)}return o}function k(e,t){return"function"==typeof e&&e.hasOwnProperty("prototype")||t("value must be a constructor"),e}function _(e){var t="value must be type of "+e.join("|"),n=e.length,r=e[0],o=e[1];return 1===n?function(e,n){if(typeof e===r)return e;n(t)}:2===n?function(e,n){var i=typeof e;if(i===r||i===o)return e;n(t)}:function(r,o){for(var i=typeof r,a=n;a-- >0;)if(i===e[a])return r;o(t)}}Object.assign(g.prototype,{subscribe:function(e,t,n){var r=this,o=this._target,i=this._emitter,a=this._listeners,s=function(){var r=v.apply(null,arguments),a={data:r,name:t,original:e};if(n){var s=n.call(o,a);!1!==s&&i.emit.apply(i,[a.name].concat(r))}else i.emit.apply(i,[t].concat(r))};if(a[e])throw Error("Event '"+e+"' is already listening");this._listenersCount++,i._newListener&&i._removeListener&&!r._onNewListener?(this._onNewListener=function(n){n===t&&null===a[e]&&(a[e]=s,r._on.call(o,e,s))},i.on("newListener",this._onNewListener),this._onRemoveListener=function(n){n===t&&!i.hasListeners(n)&&a[e]&&(a[e]=null,r._off.call(o,e,s))},a[e]=null,i.on("removeListener",this._onRemoveListener)):(a[e]=s,r._on.call(o,e,s))},unsubscribe:function(e){var t,n,r,o=this,i=this._listeners,a=this._emitter,s=this._off,u=this._target;if(e&&"string"!=typeof e)throw TypeError("event must be a string");function l(){o._onNewListener&&(a.off("newListener",o._onNewListener),a.off("removeListener",o._onRemoveListener),o._onNewListener=null,o._onRemoveListener=null);var e=P.call(a,o);a._observers.splice(e,1)}if(e){if(!(t=i[e]))return;s.call(u,e,t),delete i[e],--this._listenersCount||l()}else{for(r=(n=p(i)).length;r-- >0;)e=n[r],s.call(u,e,i[e]);this._listeners={},this._listenersCount=0,l()}}});var O=_(["function"]),S=_(["object","function"]);function x(e,t,n){var r,o,i,a=0,s=new e((function(u,l,c){function f(){o&&(o=null),a&&(clearTimeout(a),a=0)}n=w(n,{timeout:0,overload:!1},{timeout:function(e,t){return("number"!=typeof(e*=1)||e<0||!Number.isFinite(e))&&t("timeout must be a positive number"),e}}),r=!n.overload&&"function"==typeof e.prototype.cancel&&"function"==typeof c;var d=function(e){f(),u(e)},p=function(e){f(),l(e)};r?t(d,p,c):(o=[function(e){p(e||Error("canceled"))}],t(d,p,(function(e){if(i)throw Error("Unable to subscribe on cancel event asynchronously");if("function"!=typeof e)throw TypeError("onCancel callback must be a function");o.push(e)})),i=!0),n.timeout>0&&(a=setTimeout((function(){var e=Error("timeout");a=0,s.cancel(e),l(e)}),n.timeout))}));return r||(s.cancel=function(e){if(o){for(var t=o.length,n=1;n<t;n++)o[n](e);o[0](e),o=null}}),s}function P(e){var t=this._observers;if(!t)return-1;for(var n=t.length,r=0;r<n;r++)if(t[r]._target===e)return r;return-1}function j(e,t,n,r,o){if(!n)return null;if(0===r){var i=typeof t;if("string"===i){var a,s,u=0,l=0,c=this.delimiter,f=c.length;if(-1!==(s=t.indexOf(c))){a=new Array(5);do{a[u++]=t.slice(l,s),l=s+f}while(-1!==(s=t.indexOf(c,l)));a[u++]=t.slice(l),t=a,o=u}else t=[t],o=1}else"object"===i?o=t.length:(t=[t],o=1)}var d,h,m,y,v,b,g,w=null,k=t[r],_=t[r+1];if(r===o&&n._listeners)return"function"==typeof n._listeners?(e&&e.push(n._listeners),[n]):(e&&e.push.apply(e,n._listeners),[n]);if("*"===k){for(s=(b=p(n)).length;s-- >0;)"_listeners"!==(d=b[s])&&(g=j(e,t,n[d],r+1,o))&&(w?w.push.apply(w,g):w=g);return w}if("**"===k){for((v=r+1===o||r+2===o&&"*"===_)&&n._listeners&&(w=j(e,t,n,o,o)),s=(b=p(n)).length;s-- >0;)"_listeners"!==(d=b[s])&&("*"===d||"**"===d?(n[d]._listeners&&!v&&(g=j(e,t,n[d],o,o))&&(w?w.push.apply(w,g):w=g),g=j(e,t,n[d],r,o)):g=j(e,t,n[d],d===_?r+2:r,o),g&&(w?w.push.apply(w,g):w=g));return w}if(n[k]&&(w=j(e,t,n[k],r+1,o)),(h=n["*"])&&j(e,t,h,r+1,o),m=n["**"])if(r<o)for(m._listeners&&j(e,t,m,o,o),s=(b=p(m)).length;s-- >0;)"_listeners"!==(d=b[s])&&(d===_?j(e,t,m[d],r+2,o):d===k?j(e,t,m[d],r+1,o):((y={})[d]=m[d],j(e,t,{"**":y},r+1,o)));else m._listeners?j(e,t,m,o,o):m["*"]&&m["*"]._listeners&&j(e,t,m["*"],o,o);return w}function C(e,t){var n,r,o=0,i=0,a=this.delimiter,s=a.length;if("string"==typeof e)if(-1!==(n=e.indexOf(a))){r=new Array(5);do{r[o++]=e.slice(i,n),i=n+s}while(-1!==(n=e.indexOf(a,i)));r[o++]=e.slice(i)}else r=[e],o=1;else r=e,o=e.length;if(o>1)for(n=0;n+1<o;n++)if("**"===r[n]&&"**"===r[n+1])return;var u,l=this.listenerTree;for(n=0;n<o;n++)if(l=l[u=r[n]]||(l[u]={}),n===o-1)return l._listeners?("function"==typeof l._listeners&&(l._listeners=[l._listeners]),l._listeners.push(t),!l._listeners.warned&&this._maxListeners>0&&l._listeners.length>this._maxListeners&&(l._listeners.warned=!0,y.call(this,l._listeners.length,u))):l._listeners=t,!0;return!0}function E(e,t,n,r){for(var o,i,a,s,u=p(e),l=u.length,c=e._listeners;l-- >0;)o=e[i=u[l]],a="_listeners"===i?n:n?n.concat(i):[i],s=r||"symbol"==typeof i,c&&t.push(s?a:a.join(this.delimiter)),"object"==typeof o&&E.call(this,o,t,a,s);return t}function A(e){for(var t,n,r,o=p(e),i=o.length;i-- >0;)(t=e[n=o[i]])&&(r=!0,"_listeners"===n||A(t)||delete e[n]);return r}function M(e,t,n){this.emitter=e,this.event=t,this.listener=n}function R(e,t,n){if(!0===n)i=!0;else if(!1===n)o=!0;else{if(!n||"object"!=typeof n)throw TypeError("options should be an object or true");var o=n.async,i=n.promisify,a=n.nextTick,s=n.objectify}if(o||a||i){var u=t,c=t._origin||t;if(a&&!l)throw Error("process.nextTick is not supported");void 0===i&&(i="AsyncFunction"===t.constructor.name),(t=function(){var e=arguments,t=this,n=this.event;return i?a?Promise.resolve():new Promise((function(e){d(e)})).then((function(){return t.event=n,u.apply(t,e)})):(a?r.nextTick:d)((function(){t.event=n,u.apply(t,e)}))})._async=!0,t._origin=c}return[t,s?new M(this,e,t):this]}function T(e){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,m.call(this,e)}M.prototype.off=function(){return this.emitter.off(this.event,this.listener),this},T.EventEmitter2=T,T.prototype.listenTo=function(e,t,n){if("object"!=typeof e)throw TypeError("target musts be an object");var r=this;function o(t){if("object"!=typeof t)throw TypeError("events must be an object");var o,i=n.reducers,a=P.call(r,e);o=-1===a?new g(r,e,n):r._observers[a];for(var s,u=p(t),l=u.length,c="function"==typeof i,f=0;f<l;f++)s=u[f],o.subscribe(s,t[s]||s,c?i:i&&i[s])}return n=w(n,{on:void 0,off:void 0,reducers:void 0},{on:O,off:O,reducers:S}),u(t)?o(b(t)):o("string"==typeof t?b(t.split(/\s+/)):t),this},T.prototype.stopListeningTo=function(e,t){var n=this._observers;if(!n)return!1;var r,o=n.length,i=!1;if(e&&"object"!=typeof e)throw TypeError("target should be an object");for(;o-- >0;)r=n[o],e&&r._target!==e||(r.unsubscribe(t),i=!0);return i},T.prototype.delimiter=".",T.prototype.setMaxListeners=function(e){void 0!==e&&(this._maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e)},T.prototype.getMaxListeners=function(){return this._maxListeners},T.prototype.event="",T.prototype.once=function(e,t,n){return this._once(e,t,!1,n)},T.prototype.prependOnceListener=function(e,t,n){return this._once(e,t,!0,n)},T.prototype._once=function(e,t,n,r){return this._many(e,1,t,n,r)},T.prototype.many=function(e,t,n,r){return this._many(e,t,n,!1,r)},T.prototype.prependMany=function(e,t,n,r){return this._many(e,t,n,!0,r)},T.prototype._many=function(e,t,n,r,o){var i=this;if("function"!=typeof n)throw new Error("many only accepts instances of Function");function a(){return 0==--t&&i.off(e,a),n.apply(this,arguments)}return a._origin=n,this._on(e,a,r,o)},T.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||h.call(this);var e,t,n,r,o,i,a=arguments[0],s=this.wildcard;if("newListener"===a&&!this._newListener&&!this._events.newListener)return!1;if(s&&(e=a,"newListener"!==a&&"removeListener"!==a&&"object"==typeof a)){if(n=a.length,c)for(r=0;r<n;r++)if("symbol"==typeof a[r]){i=!0;break}i||(a=a.join(this.delimiter))}var u,l=arguments.length;if(this._all&&this._all.length)for(r=0,n=(u=this._all.slice()).length;r<n;r++)switch(this.event=a,l){case 1:u[r].call(this,a);break;case 2:u[r].call(this,a,arguments[1]);break;case 3:u[r].call(this,a,arguments[1],arguments[2]);break;default:u[r].apply(this,arguments)}if(s)u=[],j.call(this,u,e,this.listenerTree,0,n);else{if("function"==typeof(u=this._events[a])){switch(this.event=a,l){case 1:u.call(this);break;case 2:u.call(this,arguments[1]);break;case 3:u.call(this,arguments[1],arguments[2]);break;default:for(t=new Array(l-1),o=1;o<l;o++)t[o-1]=arguments[o];u.apply(this,t)}return!0}u&&(u=u.slice())}if(u&&u.length){if(l>3)for(t=new Array(l-1),o=1;o<l;o++)t[o-1]=arguments[o];for(r=0,n=u.length;r<n;r++)switch(this.event=a,l){case 1:u[r].call(this);break;case 2:u[r].call(this,arguments[1]);break;case 3:u[r].call(this,arguments[1],arguments[2]);break;default:u[r].apply(this,t)}return!0}if(!this.ignoreErrors&&!this._all&&"error"===a)throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},T.prototype.emitAsync=function(){if(!this._events&&!this._all)return!1;this._events||h.call(this);var e,t,n,r,o,i,a=arguments[0],s=this.wildcard;if("newListener"===a&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);if(s&&(e=a,"newListener"!==a&&"removeListener"!==a&&"object"==typeof a)){if(r=a.length,c)for(o=0;o<r;o++)if("symbol"==typeof a[o]){t=!0;break}t||(a=a.join(this.delimiter))}var u,l=[],f=arguments.length;if(this._all)for(o=0,r=this._all.length;o<r;o++)switch(this.event=a,f){case 1:l.push(this._all[o].call(this,a));break;case 2:l.push(this._all[o].call(this,a,arguments[1]));break;case 3:l.push(this._all[o].call(this,a,arguments[1],arguments[2]));break;default:l.push(this._all[o].apply(this,arguments))}if(s?(u=[],j.call(this,u,e,this.listenerTree,0)):u=this._events[a],"function"==typeof u)switch(this.event=a,f){case 1:l.push(u.call(this));break;case 2:l.push(u.call(this,arguments[1]));break;case 3:l.push(u.call(this,arguments[1],arguments[2]));break;default:for(n=new Array(f-1),i=1;i<f;i++)n[i-1]=arguments[i];l.push(u.apply(this,n))}else if(u&&u.length){if(u=u.slice(),f>3)for(n=new Array(f-1),i=1;i<f;i++)n[i-1]=arguments[i];for(o=0,r=u.length;o<r;o++)switch(this.event=a,f){case 1:l.push(u[o].call(this));break;case 2:l.push(u[o].call(this,arguments[1]));break;case 3:l.push(u[o].call(this,arguments[1],arguments[2]));break;default:l.push(u[o].apply(this,n))}}else if(!this.ignoreErrors&&!this._all&&"error"===a)return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(l)},T.prototype.on=function(e,t,n){return this._on(e,t,!1,n)},T.prototype.prependListener=function(e,t,n){return this._on(e,t,!0,n)},T.prototype.onAny=function(e){return this._onAny(e,!1)},T.prototype.prependAny=function(e){return this._onAny(e,!0)},T.prototype.addListener=T.prototype.on,T.prototype._onAny=function(e,t){if("function"!=typeof e)throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),t?this._all.unshift(e):this._all.push(e),this},T.prototype._on=function(e,t,n,r){if("function"==typeof e)return this._onAny(e,t),this;if("function"!=typeof t)throw new Error("on only accepts instances of Function");this._events||h.call(this);var o,i=this;return void 0!==r&&(t=(o=R.call(this,e,t,r))[0],i=o[1]),this._newListener&&this.emit("newListener",e,t),this.wildcard?(C.call(this,e,t),i):(this._events[e]?("function"==typeof this._events[e]&&(this._events[e]=[this._events[e]]),n?this._events[e].unshift(t):this._events[e].push(t),!this._events[e].warned&&this._maxListeners>0&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,y.call(this,this._events[e].length,e))):this._events[e]=t,i)},T.prototype.off=function(e,t){if("function"!=typeof t)throw new Error("removeListener only takes instances of Function");var n,r=[];if(this.wildcard){var o="string"==typeof e?e.split(this.delimiter):e.slice();if(!(r=j.call(this,null,o,this.listenerTree,0)))return this}else{if(!this._events[e])return this;n=this._events[e],r.push({_listeners:n})}for(var i=0;i<r.length;i++){var a=r[i];if(n=a._listeners,u(n)){for(var s=-1,l=0,c=n.length;l<c;l++)if(n[l]===t||n[l].listener&&n[l].listener===t||n[l]._origin&&n[l]._origin===t){s=l;break}if(s<0)continue;return this.wildcard?a._listeners.splice(s,1):this._events[e].splice(s,1),0===n.length&&(this.wildcard?delete a._listeners:delete this._events[e]),this._removeListener&&this.emit("removeListener",e,t),this}(n===t||n.listener&&n.listener===t||n._origin&&n._origin===t)&&(this.wildcard?delete a._listeners:delete this._events[e],this._removeListener&&this.emit("removeListener",e,t))}return this.listenerTree&&A(this.listenerTree),this},T.prototype.offAny=function(e){var t,n=0,r=0;if(e&&this._all&&this._all.length>0){for(n=0,r=(t=this._all).length;n<r;n++)if(e===t[n])return t.splice(n,1),this._removeListener&&this.emit("removeListenerAny",e),this}else{if(t=this._all,this._removeListener)for(n=0,r=t.length;n<r;n++)this.emit("removeListenerAny",t[n]);this._all=[]}return this},T.prototype.removeListener=T.prototype.off,T.prototype.removeAllListeners=function(e){if(void 0===e)return!this._events||h.call(this),this;if(this.wildcard){var t,n=j.call(this,null,e,this.listenerTree,0);if(!n)return this;for(t=0;t<n.length;t++)n[t]._listeners=null;this.listenerTree&&A(this.listenerTree)}else this._events&&(this._events[e]=null);return this},T.prototype.listeners=function(e){var t,n,r,o,i,a=this._events;if(void 0===e){if(this.wildcard)throw Error("event name required for wildcard emitter");if(!a)return[];for(o=(t=p(a)).length,r=[];o-- >0;)"function"==typeof(n=a[t[o]])?r.push(n):r.push.apply(r,n);return r}if(this.wildcard){if(!(i=this.listenerTree))return[];var s=[],u="string"==typeof e?e.split(this.delimiter):e.slice();return j.call(this,s,u,i,0),s}return a&&(n=a[e])?"function"==typeof n?[n]:n:[]},T.prototype.eventNames=function(e){var t=this._events;return this.wildcard?E.call(this,this.listenerTree,[],null,e):t?p(t):[]},T.prototype.listenerCount=function(e){return this.listeners(e).length},T.prototype.hasListeners=function(e){if(this.wildcard){var t=[],n="string"==typeof e?e.split(this.delimiter):e.slice();return j.call(this,t,n,this.listenerTree,0),t.length>0}var r=this._events,o=this._all;return!!(o&&o.length||r&&(void 0===e?p(r).length:r[e]))},T.prototype.listenersAny=function(){return this._all?this._all:[]},T.prototype.waitFor=function(e,t){var n=this,r=typeof t;return"number"===r?t={timeout:t}:"function"===r&&(t={filter:t}),x((t=w(t,{timeout:0,filter:void 0,handleError:!1,Promise:Promise,overload:!1},{filter:O,Promise:k})).Promise,(function(r,o,i){function a(){var i=t.filter;if(!i||i.apply(n,arguments))if(n.off(e,a),t.handleError){var s=arguments[0];s?o(s):r(v.apply(null,arguments).slice(1))}else r(v.apply(null,arguments))}i((function(){n.off(e,a)})),n._on(e,a,!1)}),{timeout:t.timeout,overload:t.overload})};var D=T.prototype;Object.defineProperties(T,{defaultMaxListeners:{get:function(){return D._maxListeners},set:function(e){if("number"!=typeof e||e<0||Number.isNaN(e))throw TypeError("n must be a non-negative number");D._maxListeners=e},enumerable:!0},once:{value:function(e,t,n){return x((n=w(n,{Promise:Promise,timeout:0,overload:!1},{Promise:k})).Promise,(function(n,r,o){var i;if("function"==typeof e.addEventListener)return i=function(){n(v.apply(null,arguments))},o((function(){e.removeEventListener(t,i)})),void e.addEventListener(t,i,{once:!0});var a,s=function(){a&&e.removeListener("error",a),n(v.apply(null,arguments))};"error"!==t&&(a=function(n){e.removeListener(t,s),r(n)},e.once("error",a)),o((function(){a&&e.removeListener("error",a),e.removeListener(t,s)})),e.once(t,s)}),{timeout:n.timeout,overload:n.overload})},writable:!0,configurable:!0}}),Object.defineProperties(D,{_maxListeners:{value:10,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),void 0===(i=function(){return T}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n(164),n(163).setImmediate)},function(e,t,n){"use strict";var r=n(56),o=n(53);e.exports="".repeat||function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t,n){var r=n(295);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(70),o=n(296),i=n(299),a=n(134);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){var r=n(302),o=n(318),i=n(320),a=n(321),s=n(322);function u(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])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(84)(n(58),"Map");e.exports=r},function(e,t,n){var r=n(128),o=n(173),i=n(70),a=n(127),s=r?r.prototype:void 0,u=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 u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t){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}},function(e,t,n){var r=n(127);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){var r=n(218),o=n(132),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)}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){(function(e){var r=n(215),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(102)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(350),o=n(225),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},function(e,t,n){var r=n(224)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(354),o=n(171),i=n(355),a=n(356),s=n(357),u=n(71),l=n(217),c=l(r),f=l(o),d=l(i),p=l(a),h=l(s),m=u;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||i&&"[object Promise]"!=m(i.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case c:return"[object DataView]";case f:return"[object Map]";case d:return"[object Promise]";case p:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(360);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(383);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(394),o=n(141);t.JsonPatchError=o.PatchError,t.deepClone=o._deepClone;var i={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=s(n,this.path);r&&(r=o._deepClone(r));var i=u(n,{op:"remove",path:this.from}).removed;return u(n,{op:"add",path:this.path,value:i}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=s(n,this.from);return u(n,{op:"add",path:this.path,value:o._deepClone(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:r(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},a={add:function(e,t,n){return o.isInteger(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:i.move,copy:i.copy,test:i.test,_get:i._get};function s(e,t){if(""==t)return e;var n={op:"_get",path:t};return u(e,n),n.value}function u(e,n,u,l,c,d){if(void 0===u&&(u=!1),void 0===l&&(l=!0),void 0===c&&(c=!0),void 0===d&&(d=0),u&&("function"==typeof u?u(n,0,e,n.path):f(n,0)),""===n.path){var p={newDocument:e};if("add"===n.op)return p.newDocument=n.value,p;if("replace"===n.op)return p.newDocument=n.value,p.removed=e,p;if("move"===n.op||"copy"===n.op)return p.newDocument=s(e,n.from),"move"===n.op&&(p.removed=e),p;if("test"===n.op){if(p.test=r(e,n.value),!1===p.test)throw new t.JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",d,n,e);return p.newDocument=e,p}if("remove"===n.op)return p.removed=e,p.newDocument=null,p;if("_get"===n.op)return n.value=e,p;if(u)throw new t.JsonPatchError("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",d,n,e);return p}l||(e=o._deepClone(e));var h=(n.path||"").split("/"),m=e,y=1,v=h.length,b=void 0,g=void 0,w=void 0;for(w="function"==typeof u?u:f;;){if(g=h[y],c&&"__proto__"==g)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(u&&void 0===b&&(void 0===m[g]?b=h.slice(0,y).join("/"):y==v-1&&(b=n.path),void 0!==b&&w(n,0,e,b)),y++,Array.isArray(m)){if("-"===g)g=m.length;else{if(u&&!o.isInteger(g))throw new t.JsonPatchError("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",d,n,e);o.isInteger(g)&&(g=~~g)}if(y>=v){if(u&&"add"===n.op&&g>m.length)throw new t.JsonPatchError("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",d,n,e);if(!1===(p=a[n.op].call(n,m,g,e)).test)throw new t.JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",d,n,e);return p}}else if(g&&-1!=g.indexOf("~")&&(g=o.unescapePathComponent(g)),y>=v){if(!1===(p=i[n.op].call(n,m,g,e)).test)throw new t.JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",d,n,e);return p}m=m[g]}}function l(e,n,r,i,a){if(void 0===i&&(i=!0),void 0===a&&(a=!0),r&&!Array.isArray(n))throw new t.JsonPatchError("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");i||(e=o._deepClone(e));for(var s=new Array(n.length),l=0,c=n.length;l<c;l++)s[l]=u(e,n[l],r,!0,a,l),e=s[l].newDocument;return s.newDocument=e,s}function c(e,n,r){var o=u(e,n);if(!1===o.test)throw new t.JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",r,n,e);return o.newDocument}function f(e,n,r,a){if("object"!=typeof e||null===e||Array.isArray(e))throw new t.JsonPatchError("Operation is not an object","OPERATION_NOT_AN_OBJECT",n,e,r);if(!i[e.op])throw new t.JsonPatchError("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",n,e,r);if("string"!=typeof e.path)throw new t.JsonPatchError("Operation `path` property is not a string","OPERATION_PATH_INVALID",n,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new t.JsonPatchError('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",n,e,r);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new t.JsonPatchError("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",n,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new t.JsonPatchError("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",n,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&o.hasUndefined(e.value))throw new t.JsonPatchError("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",n,e,r);if(r)if("add"==e.op){var s=e.path.split("/").length,u=a.split("/").length;if(s!==u+1&&s!==u)throw new t.JsonPatchError("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",n,e,r)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==a)throw new t.JsonPatchError("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",n,e,r)}else if("move"===e.op||"copy"===e.op){var l=d([{op:"_get",path:e.from,value:void 0}],r);if(l&&"OPERATION_PATH_UNRESOLVABLE"===l.name)throw new t.JsonPatchError("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",n,e,r)}}function d(e,n,r){try{if(!Array.isArray(e))throw new t.JsonPatchError("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(n)l(o._deepClone(n),o._deepClone(e),r||!0);else{r=r||f;for(var i=0;i<e.length;i++)r(e[i],i,n,void 0)}}catch(e){if(e instanceof t.JsonPatchError)return e;throw e}}t.getValueByPointer=s,t.applyOperation=u,t.applyPatch=l,t.applyReducer=c,t.validator=f,t.validate=d,t.default={JsonPatchError:t.JsonPatchError,deepClone:t.deepClone,getValueByPointer:s,applyOperation:u,applyPatch:l,applyReducer:c,validator:f,validate:d}},function(e,t,n){var r=n(410),o=n(411),i=n(412);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(244)),o=i(n(11));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,i;return t=e,i=[{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:"templates",get:function(){return e._templates||(e._templates=r.default),e._templates}},{key:"current",set:function(t){var n=e.current;e._current=o.default.merge({},n,t)},get:function(){return e._current?e._current:e.defaultTemplates}},{key:"defaultTemplates",get:function(){return e.templates.bootstrap}},{key:"framework",set:function(t){e.templates.hasOwnProperty(t)&&(e._framework=t,e._current=e.templates[t])},get:function(){return e._framework}}],(n=null)&&a(t.prototype,n),i&&a(t,i),e}();t.default=s},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})(e)}n(0),n(16),n(31),n(50),n(29),n(14),n(30),n(61),n(2),n(62),n(21),n(5),n(44),n(34),n(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=d(n(165)),i=d(n(41)),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(18)),s=d(n(269)),u=d(n(11)),l=d(n(54)),c=d(n(106));function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},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({wildcard:!1,maxListeners:0}),this.defaultMask=null}var t,n,r;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.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){var t=this;if(this.events){var n="".concat(this.options.namespace,".").concat(e);u.default.each(this.events.listeners(n),(function(e){e&&e.id===t.id&&t.events.off(n,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:"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=[];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&&u.default.pullAt(this.eventHandlers,o),this}},{key:"removeEventListeners",value:function(){var e=this;this.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;u.default.each(this.events._events,(function(n,r){u.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){return e.map((function(e){return e instanceof RegExp?"_":e})).join("")}},{key:"setInputMask",value:function(e,t,n){if(e&&t){var r=a.getInputMask(t);this.defaultMask=r;try{e.mask&&e.mask.destroy(),e.mask=(0,c.default)({inputElement:e,mask:r})}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&&u.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?void 0: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){return Object.assign({_:u.default,utils:a,util:a,user:i.default.getUser(),moment:l.default,instance:this,self:this,token:i.default.getToken({decode:!0}),config:this.root&&this.root.form&&this.root.form.config?this.root.form.config:{}},e,u.default.get(this.root,"options.evalContext",{}))}},{key:"interpolate",value:function(e,t){return a.interpolate(e,this.evalContext(t))}},{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]}}])&&p(t.prototype,n),r&&p(t,r),e}();t.default=h},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(16),n(1),n(40),n(12),n(10),n(2),n(9),n(13),n(5),n(6),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(11)),o=a(n(48)),i=a(n(143));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})(e)}function u(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 c(e,t,n){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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&&f(e,t)}(p,e);var t,n,a,s=d(p);function p(){return u(this,p),s.apply(this,arguments)}return t=p,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,[{disableAddingRemovingRows:!1}].concat(t))}}],(n=[{key:"componentContext",value:function(e){return this.iteratableRows[e.rowIndex].data}},{key:"init",value:function(){c(h(p.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())}},{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,o.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?void 0: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,o,i,a){return r.default.reduce(i,(function(r,i){return i[e](t,n,o,a)&&r}),!0)}},{key:"hasAddButton",value:function(){var e=r.default.get(this.component,"validate.maxLength"),t=r.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 o=(e=Array.isArray(e)?e:[e]).shift(),i=e,a=[],s=null,u=null,l=null;return r.default.isNumber(o)&&(l=o,o=i.shift()),r.default.isString(o)?(this.everyComponent((function(e,r){e.component.key===o&&(s=e,i.length>0&&"getComponent"in e?u=e.getComponent(i,t,n):t&&t(e,r),a=null!==l?u:a.concat(u||s))}),l),a&&0!==a.length||!s||(a=null!==l?s:[s]),a):a}},{key:"everyComponent",value:function(e,t,n){var o;if(r.default.isObject(t)&&(n=t,t=null),!(null===(o=n)||void 0===o?void 0:o.email)){var i=this.getComponents(t);r.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?void 0:t.email){var n,o='\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;o+='<th style="padding: 5px 10px;">'.concat(t,"</th>")})),o+="\n </tr>\n </thead>\n <tbody>\n ",this.iteratableRows.forEach((function(e){var n=e.components;o+="<tr>",r.default.each(n,(function(e){o+='<td style="padding:5px 10px;">',e.isInputComponent&&e.visible&&!e.skipInEmail&&(o+=e.getView(e.dataValue,t)),o+="</td>"})),o+="</tr>"})),o+="\n </tbody>\n </table>\n "}return e&&e.length?c(h(p.prototype),"getValueAsString",this).call(this,e,t):""}},{key:"getComponents",value:function(e){return e?this.iteratableRows[e]?this.iteratableRows[e].components:[]:c(h(p.prototype),"getComponents",this).call(this)}},{key:"iteratableRows",get:function(){throw new Error("Getter #iteratableRows() is not implemented")}},{key:"rowIndex",get:function(){return c(h(p.prototype),"rowIndex",this)},set:function(e){this._rowIndex=e}}])&&l(t.prototype,n),a&&l(t,a),p}(i.default);t.default=m},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(23),n(57),n(108),n(16),n(39),n(31),n(50),n(1),n(29),n(14),n(30),n(68),n(66),n(19),n(868),n(12),n(45),n(10),n(26),n(2),n(9),n(13),n(21),n(5),n(44),n(6),n(34),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(n(110)),o=m(n(48)),i=m(n(253)),a=m(n(241)),s=m(n(22)),u=m(n(109)),l=m(n(41)),c=n(18),f=n(126),d=m(n(86)),p=m(n(11)),h=m(n(188));function m(e){return e&&e.__esModule?e:{default:e}}function y(e){return(y="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 v(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(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 b(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 g(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 w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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 _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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)}}function S(e,t,n){return(S="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=C(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=C(e);if(t){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(872);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&&x(e,t)}(y,e);var t,n,o,m=P(y);function y(){var e,t,n;_(this,y),arguments[0]instanceof HTMLElement||arguments[1]?(t=arguments[0],n=arguments[1]):n=arguments[0],n.skipInit=!1,(e=m.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);var r={};for(var o in u.default.components){var i=u.default.components[o];i.builderInfo&&(i.type=o,r[o]=i.builderInfo)}e.fieldsList={title:"Result fields",key:"searchFields",weight:0,subgroups:[],default:!0,components:{},componentOrder:[]},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[n]=!1)})),e.groups={},e.groupOrder=[];var s=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 c in e.builder)s(c);for(var f 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})),u.default.components){var d=u.default.components[f];if(d.builderInfo){e.schemas[f]=d.builderInfo.schema,d.type=f;var h=d.builderInfo;h.key=d.type,e.addBuilderComponentInfo(h)}}for(var v in e.groups){var b=e.groups[v];for(var g in b.components){var w=b.components[g];w&&(w.schema&&(e.schemas[g]=w.schema),b.components[g]=!0===w?r[g]:w,b.components[g].key=g,e.fieldsList.components[g]=b.components[g])}}var O=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 S in e.groups)O(S);e.options.hooks=e.options.hooks||{},e.options.hooks.renderComponent=function(t,n){var r,o=n.self;return"form"!==o.type||o.key?e.options.disabled&&e.options.disabled.includes(o.key)||o.parent.noDragDrop?t:e.renderTemplate("builderComponent",{html:t,disableBuilderActions:null==o||null===(r=o.component)||void 0===r?void 0:r.disableBuilderActions}):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,k({},"".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=function(t,n){if(t.formioComponent=n,n.loadRefs(t,{removeComponent:"single",editComponent:"single",moveComponent:"single",copyComponent:"single",pasteComponent:"single",editJson:"single"}),n.refs.copyComponent&&(new a.default(n.refs.copyComponent,{trigger:"hover",placement:"top",title:e.t("Copy")}),n.addEventListener(n.refs.copyComponent,"click",(function(){return e.copyComponent(n)}))),n.refs.pasteComponent){var r=new a.default(n.refs.pasteComponent,{trigger:"hover",placement:"top",title:e.t("Paste below")});n.addEventListener(n.refs.pasteComponent,"click",(function(){r.hide(),e.pasteComponent(n)}))}n.refs.moveComponent&&new a.default(n.refs.moveComponent,{trigger:"hover",placement:"top",title:e.t("Move")});var o=e.getParentElement(t);return n.refs.editComponent&&(new a.default(n.refs.editComponent,{trigger:"hover",placement:"top",title:e.t("Edit")}),n.addEventListener(n.refs.editComponent,"click",(function(){return e.editComponent(n.schema,o,!1,!1,n.component)}))),n.refs.editJson&&(new a.default(n.refs.editJson,{trigger:"hover",placement:"top",title:e.t("Edit JSON")}),n.addEventListener(n.refs.editJson,"click",(function(){return e.editComponent(n.schema,o,!1,!0,n.component)}))),n.refs.removeComponent&&(new a.default(n.refs.removeComponent,{trigger:"hover",placement:"top",title:e.t("Remove")}),n.addEventListener(n.refs.removeComponent,"click",(function(){return e.removeComponent(n.schema,o,n.component)}))),t};var x={params:{type:"resource",limit:4294967295,select:"_id,title,name,components"}};e.options&&e.options.resourceTag?x.params.tags=[e.options.resourceTag]:e.options&&e.options.hasOwnProperty("resourceTag")||(x.params.tags=["builder"]);var P=new l.default(l.default.projectUrl),j=e.options.builder&&!1===e.options.builder.resource;if(!P.noProject&&!j){var C=e.options.builder&&e.options.builder.resource;P.loadForms(x).then((function(t){t.length&&(e.builder.resource={title:C?C.title:"Existing Resource Fields",key:"resource",weight:C?C.weight:50,subgroups:[],components:[],componentOrder:[]},e.groups.resource={title:C?C.title:"Existing Resource Fields",key:"resource",weight:C?C.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}return t=y,(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(n.key),o.components[n.key]=p.default.merge((0,c.fastCloneDeep)(u.default.components[n.type]?u.default.components[n.type].builderInfo:u.default.components.unknown.builderInfo),{key:n.key,title:i,group:"resource",subgroup:r},{schema:w(w({},n),{},{label:n.label,key:n.key,lockKey:!0,source:t.options.noSource?void 0:e._id,isNew:!0})}),t.fieldsList.components[n.key]=o.components[n.key]}}),!0),t.groups.resource.subgroups.push(o)})),this.triggerRedraw()}},{key:"createForm",value:function(e){return this.webform=new r.default(this.element,e),this.element&&(this.loadRefs(this.element,{form:"single"}),this.refs.form&&(this.webform.element=this.refs.form)),this.webform}},{key:"redraw",value:function(){return r.default.prototype.redraw.call(this)}},{key:"findNamespaceRoot",value:function(e){var t=(0,f.getComponent)(this.webform.form.components,e.key,!0),n=this.recurseNamespace(t);return n&&this.form.key!==n?n===e.key?[].concat(v(e.components),[e]):(0,f.getComponent)(this.form.components,n,!0).components:this.form.components}},{key:"recurseNamespace",value:function(e){return e?["address","container","datagrid","editgrid","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)})),S(C(y.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&&h.default.current.handleBuilderSidebarScroll&&h.default.current.handleBuilderSidebarScroll.call(t,t),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",(function(e){var n=e.target.value;t.searchFields(n)})),t.dragDropEnabled&&t.initDragula(),t.refs.form)return t.webform.attach(t.refs.form)}))}},{key:"searchFields",value:function(e){var t=this;if(this.refs["sidebar-groups"]){if(e){var n=[];for(var r in this.fieldsList.components)-1!==this.fieldsList.components[r].title.toLowerCase().indexOf(e)&&n.push(r);this.fieldsList.componentOrder=n,this.refs["sidebar-groups"].innerHTML=this.renderTemplate("builderSidebarGroup",{group:this.fieldsList,groupKey:"searchFields",groupId:"builder-sidebar-".concat(this.id),subgroups:[]})}else this.refs["sidebar-groups"].innerHTML=this.groupOrder.map((function(e){return t.renderTemplate("builderSidebarGroup",{group:t.groups[e],groupKey:e,groupId:"builder-sidebar-".concat(t.id),subgroups:t.groups[e].subgroups.map((function(n){return t.renderTemplate("builderSidebarGroup",{group:n,groupKey:n.key,groupId:"group-container-".concat(e),subgroups:[]})}))})})).join("");this.loadRefs(this.element,{"sidebar-groups":"single","sidebar-anchor":"multiple","sidebar-group":"multiple","sidebar-container":"multiple"}),this.updateDragAndDrop()}}},{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}));this.dragula=(0,i.default)(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&&h.default.current.clearBuilderSidebarScroll&&h.default.current.clearBuilderSidebarScroll.call(this,this),S(C(y.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))}if("resource"===t.slice(0,t.indexOf("-"))){var o=this.groups.resource.subgroups,i=p.default.find(o,{key:t});i&&i.components.hasOwnProperty(e)&&(n=(0,c.fastCloneDeep)(i.components[e].schema))}return n&&(n.key=p.default.camelCase(n.key||n.title||n.label||n.placeholder||n.type)),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=this;if(t&&!e.contains(t)){var i,a,u,l,c=e.getAttribute("data-key"),f=e.getAttribute("data-type"),h=e.getAttribute("data-group");if(c?(!(i=this.getComponentInfo(c,h))&&f&&(i=this.getComponentInfo(f,h)),a=!0):n.formioContainer&&-1!==(l=p.default.findIndex(n.formioContainer,{key:e.formioComponent.component.key}))&&(i=(i=n.formioContainer.splice(p.default.findIndex(n.formioContainer,{key:e.formioComponent.component.key}),1))[0]),i){t!==n&&d.default.uniquify(this.findNamespaceRoot(t.formioComponent.component),i);var m,y=t.formioComponent;return t.formioContainer&&(r?-1!==(l=r.getAttribute("data-noattach")?r.getAttribute("data-position"):-1===(l=p.default.findIndex(t.formioContainer,{key:p.default.get(r,"formioComponent.component.key")}))?0:l)&&t.formioContainer.splice(l,0,i):t.formioContainer.push(i),u=this.getComponentsPath(i,y.component),-1===(l=p.default.findIndex(p.default.get(y.schema,u),{key:i.key}))&&(l=0)),y&&y.addChildComponent&&y.addChildComponent(i,e,t,n,r),!a||this.options.noNewEdit||i.noNewEdit||this.editComponent(i,t,a),t!==n?n.formioContainer&&n.contains(t)?m=n.formioComponent.rebuild():(t.contains(n)||n.formioContainer&&(m=n.formioComponent.rebuild()),m=t.formioComponent.rebuild()):m=t.formioComponent.rebuild(),m||(m=s.default.resolve()),m.then((function(){o.emit("addComponent",i,y,u,l,a&&!o.options.noNewEdit&&!i.noNewEdit),(!a||o.options.noNewEdit||i.noNewEdit)&&o.emit("change",o.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).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;!e.skipRemoveConfirm&&(Array.isArray(e.components)&&e.components.length||Array.isArray(e.rows)&&e.rows.length||Array.isArray(e.columns)&&e.columns.length)&&(o=window.confirm(this.t("Removing this component will also remove all of its children. Are you sure you want to do this?"))),n||(n=t.formioContainer.find((function(t){return t.key===e.key})));var i=t.formioContainer?t.formioContainer.indexOf(n):0;if(o&&-1!==i){var a=this.getComponentsPath(e,t.formioComponent.component);t.formioContainer?t.formioContainer.splice(i,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,a,i),r.emit("change",r.form)}))}return o}}},{key:"updateComponent",value:function(e,t){if(this.preview){this.preview.form={components:[p.default.omit(e,["hidden","conditional","calculateValue","logic","autofocus","customConditional"])]};var n=this.componentEdit.querySelector('[ref="preview"]');n&&(this.setContent(n,this.preview.render()),this.preview.attach(n))}var r=(0,f.getComponent)(this.editForm.components,"defaultValue");if(r&&"hidden"!==e.type&&(!t||!(t.component&&"defaultValue"===t.component.key||t.instance&&r.hasComponent&&r.hasComponent(t.instance)))){p.default.assign(r.component,p.default.omit(e,["key","label","placeholder","tooltip","hidden","autofocus","validate","disabled","defaultValue","customDefaultValue","calculateValue","conditional","customConditional"]));var o=r.parent,i=-1,a=-1;if(o.tabs.some((function(e,t){e.some((function(e,n){return e.id===r.id&&(i=t,a=n,!0)}))})),-1!==i&&-1!==a){var s=o.tabs[i][a+1];o.removeComponent(r);var u=o.addComponent(r.component,r.data,s);p.default.pull(u.validators,"required"),o.tabs[i].splice(a,1,u),u.checkValidity=function(){return!0},u.build(r.element)}}this.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(v(t.get(n.key)),[r])):t.set(n.key,[r]))})),e}},{key:"highlightInvalidComponents",value:function(){var e=this.findRepeatablePaths();(0,f.eachComponent)(this.webform.getComponents(),(function(t,n){e.includes(n)&&t.setCustomValidity("API Key is not unique: ".concat(t.key))}))}},{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 u=i?this.getComponentsPath(e,a.component):"";r||(r=t.formioContainer.find((function(t){return t.id===e.id})));var l=i?i.indexOf(r):0;if(-1!==l){var c=this.editForm.submission.data;c=c.componentJson||c;var f=null;a.getComponents().forEach((function(e){e.component.key===r.key&&(f=e)}));var d=f.component,p=f.schema;return i?(i[l]=c,f&&(f.component=c)):a&&a.saveChildComponent&&a.saveChildComponent(c),(a.rebuild()||s.default.resolve()).then((function(){var e=i?i[l]:f?f.schema:[];o.emit("saveComponent",e,d,a.schema,u,l,n,p),o.emit("change",o.form),o.highlightInvalidComponents()}))}return this.highlightInvalidComponents(),s.default.resolve()}},{key:"editComponent",value:function(e,t,n,o,i){var a=this;if(e.key){var s=!1,l=(0,c.fastCloneDeep)(e),f=u.default.components[l.type],h=void 0===f;o=o||h,f=h?u.default.components.unknown:f,this.dialog&&(this.dialog.close(),this.highlightInvalidComponents());var m=p.default.clone(p.default.get(this,"options.editForm",{}));this.editForm&&this.editForm.destroy();var y=p.default.get(this.options,"editForm.".concat(l.type),{});m.editForm=this.form,m.editComponent=e,this.editForm=new r.default(w(w({},p.default.omit(this.options,["hooks","builder","events","attachMode","skipInit"])),{},{language:this.options.language},m)),this.editForm.form=o&&!h?{components:[{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"componentJson",label:"Component JSON",tooltip:"Edit the JSON for this component."}]}:f.editForm(p.default.cloneDeep(y));var v=new f(l);this.editForm.submission=o?{data:{componentJson:v.component}}:{data:v.component},this.preview&&this.preview.destroy(),f.builderInfo.hasOwnProperty("preview")&&!f.builderInfo.preview||(this.preview=new r.default(p.default.omit(w(w({},this.options),{},{preview:!0}),["hooks","builder","events","attachMode","calculateValue"]))),this.componentEdit=this.ce("div",{class:"component-edit-container"}),this.setContent(this.componentEdit,this.renderTemplate("builderEditForm",{componentInfo:f.builderInfo,editForm:this.editForm.render(),preview:!!this.preview&&this.preview.render()})),this.dialog=this.createModal(this.componentEdit,p.default.get(this.options,"dialogAttr",{})),this.editForm.attach(this.componentEdit.querySelector('[ref="editForm"]')),this.updateComponent(l),this.editForm.on("change",(function(e){if(e.changed){if((e.changed.component&&"key"===e.changed.component.key||o)&&(l.keyModified=!0),e.changed.component&&["label","title"].includes(e.changed.component.key)&&n&&(e.data.keyModified||a.editForm.everyComponent((function(t){if("key"===t.key&&"tabs"===t.parent.component.key)return t.setValue(p.default.camelCase(e.data.title||e.data.label||e.data.placeholder||e.data.type)),!1})),a.form)){var r=a.findNamespaceRoot(t.formioComponent.component);r=r.filter((function(e){return m.editComponent.id!==e.id})),d.default.uniquify(r,e.data)}a.updateComponent(e.data.componentJson||e.data,e.changed)}})),this.addEventListener(this.componentEdit.querySelector('[ref="cancelButton"]'),"click",(function(t){t.preventDefault(),a.editForm.detach(),a.emit("cancelComponent",e),a.dialog.close(),a.highlightInvalidComponents()})),this.addEventListener(this.componentEdit.querySelector('[ref="removeButton"]'),"click",(function(n){n.preventDefault(),s=!0,a.editForm.detach(),a.removeComponent(e,t,i),a.dialog.close(),a.highlightInvalidComponents()})),this.addEventListener(this.componentEdit.querySelector('[ref="saveButton"]'),"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;s=!0,a.saveComponent(e,t,n,i)})),this.addEventListener(this.dialog,"close",(function r(){a.editForm.destroy(!0),a.preview&&(a.preview.destroy(!0),a.preview=null),n&&!s&&(a.removeComponent(e,t,i),a.highlightInvalidComponents()),a.removeEventListener(a.dialog,"close",r),a.dialog=null})),this.emit("editComponent",e)}}},{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);d.default.uniquify(this.findNamespaceRoot(r.formioComponent.component),n);var o="",i=0;r.formioContainer?(i=r.formioContainer.indexOf(e.component),o=this.getComponentsPath(n,r.formioComponent.component),r.formioContainer.splice(i+1,0,n)):r.formioComponent&&r.formioComponent.saveChildComponent&&r.formioComponent.saveChildComponent(n,!1),r.formioComponent.rebuild(),this.emit("saveComponent",n,n,r.formioComponent.components,o,i+1,!0),this.emit("change",this.form)}}}},{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),this.fieldsList.components[e.key]=e,e}}},{key:"init",value:function(){return this.webform&&this.webform.init(),S(C(y.prototype),"init",this).call(this)}},{key:"destroy",value:function(e){this.webform.initialized&&this.webform.destroy(e),S(C(y.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:"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:"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}}])&&O(t.prototype,n),o&&O(t,o),y}(o.default);t.default=E},function(e,t,n){var r=n(32),o=n(20),i=n(193);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(24),o=n(38),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var r=n(195),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(24),o=n(147),i=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,n){var r=n(42),o=n(197),i=n(60),a=n(36);e.exports=function(e,t){for(var n=o(t),s=a.f,u=i.f,l=0;l<n.length;l++){var c=n[l];r(e,c)||s(e,c,u(t,c))}}},function(e,t,n){var r=n(89),o=n(80),i=n(150),a=n(43);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(24);e.exports=r},function(e,t,n){var r=n(42),o=n(52),i=n(95).indexOf,a=n(94);e.exports=function(e,t){var n,s=o(e),u=0,l=[];for(n in s)!r(a,n)&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){var r=n(151);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol()},function(e,t,n){var r=n(28);t.f=r},function(e,t,n){var r=n(198),o=n(42),i=n(201),a=n(36).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},function(e,t,n){"use strict";var r=n(47).forEach,o=n(83);e.exports=o("forEach")?function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}:[].forEach},function(e,t,n){"use strict";var r,o,i,a=n(91),s=n(49),u=n(42),l=n(28),c=n(88),f=l("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):d=!0),null==r&&(r={}),c||u(r,f)||s(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(e,t,n){var r=n(20);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(56),o=n(53),i=function(e){return function(t,n){var i,a,s=String(o(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(i=s.charCodeAt(u))<55296||i>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):i:e?s.slice(u,u+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t){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}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=J(n(280)),o=J(n(782)),i=J(n(784)),a=J(n(785)),s=J(n(48)),u=J(n(246)),l=J(n(786)),c=J(n(787)),f=J(n(251)),d=J(n(789)),p=J(n(790)),h=J(n(791)),m=J(n(795)),y=J(n(800)),v=J(n(801)),b=J(n(802)),g=J(n(836)),w=J(n(842)),k=J(n(74)),_=J(n(247)),O=J(n(59)),S=J(n(843)),x=J(n(64)),P=J(n(143)),j=J(n(190)),C=J(n(250)),E=J(n(844)),A=J(n(845)),M=J(n(846)),R=J(n(262)),T=J(n(847)),D=J(n(848)),L=J(n(853)),I=J(n(263)),V=J(n(854)),N=J(n(856)),F=J(n(857)),U=J(n(858)),z=J(n(859)),B=J(n(860)),H=J(n(85)),q=J(n(861)),W=J(n(862)),Y=J(n(864)),K=J(n(865)),G=J(n(866));function J(e){return e&&e.__esModule?e:{default:e}}var Z={address:r.default,base:s.default,component:s.default,button:o.default,checkbox:i.default,columns:a.default,container:u.default,content:l.default,currency:c.default,datagrid:f.default,datamap:d.default,datetime:p.default,day:h.default,editgrid:m.default,email:y.default,input:k.default,field:O.default,multivalue:_.default,fieldset:v.default,file:b.default,form:g.default,hidden:w.default,htmlelement:S.default,nested:x.default,nesteddata:P.default,nestedarray:j.default,number:C.default,panel:E.default,password:A.default,phoneNumber:M.default,radio:R.default,recaptcha:T.default,resource:D.default,select:I.default,selectboxes:L.default,signature:V.default,survey:N.default,table:F.default,tabs:U.default,tags:z.default,textarea:B.default,textfield:H.default,time:q.default,tree:W.default,unknown:Y.default,url:K.default,well:G.default};t.default=Z},function(e,t,n){var r,o,i=n(24),a=n(210),s=i.process,u=s&&s.versions,l=u&&u.v8;l?o=(r=l.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},function(e,t,n){var r=n(89);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r=n(43);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r=n(160);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(28)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(15),o=n(56),i=n(287),a=n(167),s=n(20),u=1..toFixed,l=Math.floor,c=function(e,t,n){return 0===t?n:t%2==1?c(e,t-1,n*e):c(e*e,t/2,n)};r({target:"Number",proto:!0,forced:u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){u.call({})}))},{toFixed:function(e){var t,n,r,s,u=i(this),f=o(e),d=[0,0,0,0,0,0],p="",h="0",m=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*d[n],d[n]=r%1e7,r=l(r/1e7)},y=function(e){for(var t=6,n=0;--t>=0;)n+=d[t],d[t]=l(n/e),n=n%e*1e7},v=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==d[e]){var n=String(d[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t};if(f<0||f>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(p="-",u=-u),u>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}(u*c(2,69,1))-69)<0?u*c(2,-t,1):u/c(2,t,1),n*=4503599627370496,(t=52-t)>0){for(m(0,n),r=f;r>=7;)m(1e7,0),r-=7;for(m(c(10,r,1),0),r=t-1;r>=23;)y(1<<23),r-=23;y(1<<r),m(1,1),y(2),h=v()}else m(0,n),m(1<<-t,0),h=v()+a.call("0",f);return h=f>0?p+((s=h.length)<=f?"0."+a.call("0",f-s)+h:h.slice(0,s-f)+"."+h.slice(s-f)):p+h}})},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(51))},function(e,t,n){var r=n(71),o=n(72);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}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(219);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(84),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(328),o=n(63),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t,n){var r=n(330),o=n(336),i=n(175),a=n(337),s=n(344),u=n(347),l=n(348),c=n(349),f=n(351),d=n(352),p=n(353),h=n(181),m=n(358),y=n(359),v=n(365),b=n(70),g=n(223),w=n(367),k=n(72),_=n(369),O=n(137),S=n(140),x={};x["[object Arguments]"]=x["[object Array]"]=x["[object ArrayBuffer]"]=x["[object DataView]"]=x["[object Boolean]"]=x["[object Date]"]=x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Map]"]=x["[object Number]"]=x["[object Object]"]=x["[object RegExp]"]=x["[object Set]"]=x["[object String]"]=x["[object Symbol]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x["[object Error]"]=x["[object Function]"]=x["[object WeakMap]"]=!1,e.exports=function e(t,n,P,j,C,E){var A,M=1&n,R=2&n,T=4&n;if(P&&(A=C?P(t,j,C,E):P(t)),void 0!==A)return A;if(!k(t))return t;var D=b(t);if(D){if(A=m(t),!M)return l(t,A)}else{var L=h(t),I="[object Function]"==L||"[object GeneratorFunction]"==L;if(g(t))return u(t,M);if("[object Object]"==L||"[object Arguments]"==L||I&&!C){if(A=R||I?{}:v(t),!M)return R?f(t,s(A,t)):c(t,a(A,t))}else{if(!x[L])return C?t:{};A=y(t,L,M)}}E||(E=new r);var V=E.get(t);if(V)return V;E.set(t,A),_(t)?t.forEach((function(r){A.add(e(r,n,P,r,t,E))})):w(t)&&t.forEach((function(r,o){A.set(o,e(r,n,P,o,t,E))}));var N=D?void 0:(T?R?p:d:R?S:O)(t);return o(N||t,(function(r,o){N&&(r=t[o=r]),i(A,o,e(r,n,P,o,t,E))})),A}},function(e,t,n){var r=n(338),o=n(220),i=n(70),a=n(223),s=n(135),u=n(340),l=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&&u(e),p=n||c||f||d,h=p?r(e.length,String):[],m=h.length;for(var y in e)!t&&!l.call(e,y)||p&&("length"==y||f&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,m))||h.push(y);return h}},function(e,t,n){(function(e){var r=n(58),o=n(339),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||o;e.exports=u}).call(this,n(102)(e))},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(227),o=n(180),i=n(179),a=n(225),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(227),o=n(70);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t,n){var r=n(72),o=n(127),i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t){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}},function(e,t,n){var r=n(132),o=n(139),i=n(135),a=n(72);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)}},function(e,t,n){var r=n(230);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)}},function(e,t,n){var r=n(388),o=n(185),i=n(390);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t,n){var r=n(391),o=n(185),i=n(392);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(397))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";n(3),n(7),n(8),n(1),n(10),n(2),n(9),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAddressProvider=void 0;var r,o=n(142),i=(r=n(22))&&r.__esModule?r:{default:r};function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(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 l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(a,e);var t,n,r,o=c(a);function a(){return s(this,a),o.apply(this,arguments)}return t=a,r=[{key:"name",get:function(){return"google"}},{key:"displayName",get:function(){return"Google Maps"}}],(n=[{key:"makeRequest",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i.default((function(n,r){var o=new XMLHttpRequest;o.open("GET",e.getRequestUrl(t),!0),o.onload=function(){return n(JSON.parse(o.response))},o.onerror=r,o.send()}))}},{key:"getRequestUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.params;return"https://maps.googleapis.com/maps/api/geocode/json?".concat(this.serialize(t))}},{key:"defaultOptions",get:function(){return{params:{sensor:"false"}}}},{key:"queryProperty",get:function(){return"address"}},{key:"responseProperty",get:function(){return"results"}},{key:"displayValueProperty",get:function(){return"formatted_address"}}])&&u(t.prototype,n),r&&u(t,r),a}(o.AddressProvider);t.GoogleAddressProvider=p},function(e,t,n){"use strict";n(0),n(23),n(29),n(14),n(67),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(22)),o=i(n(408));function i(e){return e&&e.__esModule?e:{default:e}}var a={trim:function(e){return(0,o.default)(e,"/")},path:function(e){return e.filter((function(e){return!!e})).map(a.trim).join("/")},upload:function(e,t,n,o,i,s,u,l,c){return new r.default((function(r,f){var d=new XMLHttpRequest;d.onerror=function(e){e.networkError=!0,f(e)},d.onabort=f,d.onload=function(){if(d.status>=200&&d.status<300){var e=JSON.parse(d.response),t=new XMLHttpRequest;"function"==typeof u&&(t.upload.onprogress=u),t.onerror=function(e){e.networkError=!0,f(e)},t.onabort=function(e){e.networkError=!0,f(e)},t.onload=function(){t.status>=200&&t.status<300?r(e):f(t.response||"Unable to upload file")},t.onabort=f,t.send(n(t,e))}else f(d.response||"Unable to sign file")},d.open("POST","".concat(e.formUrl,"/storage/").concat(t)),d.setRequestHeader("Accept","application/json"),d.setRequestHeader("Content-Type","application/json; charset=UTF-8");var p=e.getToken();p&&d.setRequestHeader("x-jwt-token",p),d.send(JSON.stringify({name:a.path([s,i]),size:o.size,type:o.type,groupPermissions:l,groupId:c}))}))}},s=a;t.default=s},function(e,t,n){var r=n(183),o=n(425),i=n(427);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){"use strict";var r=n(88),o=n(24),i=n(20);e.exports=r||!i((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete o[e]}))},function(e,t,n){var r=n(32),o=n(36),i=n(119);r&&"g"!=/./g.flags&&o.f(RegExp.prototype,"flags",{configurable:!0,get:i})},function(e,t,n){"use strict";n.r(t);var r=n(270);
  30. /**!
  31. * @fileOverview Kickass library to create and place poppers near their reference elements.
  32. * @version 1.3.3
  33. * @license
  34. * Copyright (c) 2016 Federico Zivolo and contributors
  35. *
  36. * Permission is hereby granted, free of charge, to any person obtaining a copy
  37. * of this software and associated documentation files (the "Software"), to deal
  38. * in the Software without restriction, including without limitation the rights
  39. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  40. * copies of the Software, and to permit persons to whom the Software is
  41. * furnished to do so, subject to the following conditions:
  42. *
  43. * The above copyright notice and this permission notice shall be included in all
  44. * copies or substantial portions of the Software.
  45. *
  46. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  47. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  48. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  49. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  50. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  51. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  52. * SOFTWARE.
  53. */var o=function(){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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=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},a={container:!1,delay:0,html:!1,placement:"top",title:"",template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",offset:0,arrowSelector:".tooltip-arrow, .tooltip__arrow",innerSelector:".tooltip-inner, .tooltip__inner"},s=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u.call(this),n=i({},a,n),t.jquery&&(t=t[0]),this.reference=t,this.options=n;var r="string"==typeof n.trigger?n.trigger.split(" ").filter((function(e){return-1!==["click","hover","focus"].indexOf(e)})):[];this._isOpen=!1,this._popperOptions={},this._setEventListeners(t,r,n)}return o(e,[{key:"_create",value:function(e,t,n,r){var o=window.document.createElement("div");o.innerHTML=t.trim();var i=o.childNodes[0];i.id="tooltip_"+Math.random().toString(36).substr(2,10),i.setAttribute("aria-hidden","false");var a=o.querySelector(this.options.innerSelector);return this._addTitleContent(e,n,r,a),i}},{key:"_addTitleContent",value:function(e,t,n,r){var o;1===t.nodeType||11===t.nodeType?n&&r.appendChild(t):(o=t)&&"[object Function]"==={}.toString.call(o)?this._addTitleContent(e,t.call(e),n,r):n?r.innerHTML=t:r.textContent=t}},{key:"_show",value:function(e,t){if(this._isOpen&&!this._isOpening)return this;if(this._isOpen=!0,this._tooltipNode)return this._tooltipNode.style.visibility="visible",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.update(),this;var n=e.getAttribute("title")||t.title;if(!n)return this;var o=this._create(e,t.template,n,t.html);e.setAttribute("aria-describedby",o.id);var a=this._findContainer(t.container,e);return this._append(o,a),this._popperOptions=i({},t.popperOptions,{placement:t.placement}),this._popperOptions.modifiers=i({},this._popperOptions.modifiers,{arrow:i({},this._popperOptions.modifiers&&this._popperOptions.modifiers.arrow,{element:t.arrowSelector}),offset:i({},this._popperOptions.modifiers&&this._popperOptions.modifiers.offset,{offset:t.offset||this._popperOptions.modifiers&&this._popperOptions.modifiers.offset&&this._popperOptions.modifiers.offset.offset||t.offset})}),t.boundariesElement&&(this._popperOptions.modifiers.preventOverflow={boundariesElement:t.boundariesElement}),this.popperInstance=new r.a(e,o,this._popperOptions),this._tooltipNode=o,this}},{key:"_hide",value:function(){return this._isOpen?(this._isOpen=!1,this._tooltipNode.style.visibility="hidden",this._tooltipNode.setAttribute("aria-hidden","true"),this):this}},{key:"_dispose",value:function(){var e=this;return this._events.forEach((function(t){var n=t.func,r=t.event;e.reference.removeEventListener(r,n)})),this._events=[],this._tooltipNode&&(this._hide(),this.popperInstance.destroy(),this.popperInstance.options.removeOnDestroy||(this._tooltipNode.parentNode.removeChild(this._tooltipNode),this._tooltipNode=null)),this}},{key:"_findContainer",value:function(e,t){return"string"==typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e}},{key:"_append",value:function(e,t){t.appendChild(e)}},{key:"_setEventListeners",value:function(e,t,n){var r=this,o=[],i=[];t.forEach((function(e){switch(e){case"hover":o.push("mouseenter"),i.push("mouseleave");break;case"focus":o.push("focus"),i.push("blur");break;case"click":o.push("click"),i.push("click")}})),o.forEach((function(t){var o=function(t){!0!==r._isOpening&&(t.usedByTooltip=!0,r._scheduleShow(e,n.delay,n,t))};r._events.push({event:t,func:o}),e.addEventListener(t,o)})),i.forEach((function(t){var o=function(t){!0!==t.usedByTooltip&&r._scheduleHide(e,n.delay,n,t)};r._events.push({event:t,func:o}),e.addEventListener(t,o),"click"===t&&n.closeOnClickOutside&&document.addEventListener("mousedown",(function(t){if(r._isOpening){var n=r.popperInstance.popper;e.contains(t.target)||n.contains(t.target)||o(t)}}),!0)}))}},{key:"_scheduleShow",value:function(e,t,n){var r=this;this._isOpening=!0;var o=t&&t.show||t||0;this._showTimeout=window.setTimeout((function(){return r._show(e,n)}),o)}},{key:"_scheduleHide",value:function(e,t,n,r){var o=this;this._isOpening=!1;var i=t&&t.hide||t||0;window.clearTimeout(this._showTimeout),window.setTimeout((function(){if(!1!==o._isOpen&&document.body.contains(o._tooltipNode)){if("mouseleave"===r.type)if(o._setTooltipNodeEvent(r,e,t,n))return;o._hide(e,n)}}),i)}},{key:"_updateTitleContent",value:function(e){if(void 0!==this._tooltipNode){var t=this._tooltipNode.querySelector(this.options.innerSelector);this._clearTitleContent(t,this.options.html,this.reference.getAttribute("title")||this.options.title),this._addTitleContent(this.reference,e,this.options.html,t),this.options.title=e,this.popperInstance.update()}else void 0!==this.options.title&&(this.options.title=e)}},{key:"_clearTitleContent",value:function(e,t,n){1===n.nodeType||11===n.nodeType?t&&e.removeChild(n):t?e.innerHTML="":e.textContent=""}}]),e}(),u=function(){var e=this;this.show=function(){return e._show(e.reference,e.options)},this.hide=function(){return e._hide()},this.dispose=function(){return e._dispose()},this.toggle=function(){return e._isOpen?e.hide():e.show()},this.updateTitleContent=function(t){return e._updateTitleContent(t)},this._events=[],this._setTooltipNodeEvent=function(t,n,r,o){var i=t.relatedreference||t.toElement||t.relatedTarget;return!!e._tooltipNode.contains(i)&&(e._tooltipNode.addEventListener(t.type,(function r(i){var a=i.relatedreference||i.toElement||i.relatedTarget;e._tooltipNode.removeEventListener(t.type,r),n.contains(a)||e._scheduleHide(n,o.delay,o,i)})),!0)}};t.default=s},function(e,t,n){var r=n(32),o=n(96),i=n(52),a=n(111).f,s=function(e){return function(t){for(var n,s=i(t),u=o(s),l=u.length,c=0,f=[];l>c;)n=u[c++],r&&!a.call(s,n)||f.push(e?[n,s[n]]:s[n]);return f}};e.exports={entries:s(!0),values:s(!1)}},function(e,t,n){"use strict";n(3),n(23),n(16),n(12),n(45),n(26),n(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(446))&&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){u(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 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 l=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,r;return t=e,r=[{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}}],(n=null)&&s(t.prototype,n),r&&s(t,r),e}();t.default=l,u(l,"rules",o.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(469)),o=a(n(599)),i=a(n(680));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},function(e,t,n){"use strict";n(3),n(0),n(23),n(16),n(12),n(45),n(26),n(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(11))&&r.__esModule?r:{default:r},i=n(18);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){u(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 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 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 c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}var f=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)(o),this.dataLoaded=!1,this.init()}return c(e,null,[{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}))}}]),c(e,[{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){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:"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.closeModalListener),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.closeModalListener),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(e,t)}},{key:"setOpenEventListener",value:function(){this.component.removeEventListener(this.refs.openModal,"click",this.openModalListener),this.component.loadRefs(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.closeModal(),this.component.disabled||(this.component.setValue(this.currentValue,{resetValue:!0}),this.component.redraw())}},{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-primary">').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){e.preventDefault(),this.currentValue=(0,i.fastCloneDeep)(this.component.dataValue),this.closeModal()}},{key:"refs",get:function(){return this.component.refs}},{key:"templateRefs",get:function(){return{modalOverlay:"single",modalContents:"single",modalClose:"single",openModalWrapper:"single",openModal:"single",modalSave:"single",modalWrapper:"single"}}}]),e}();t.default=f},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(40),n(12),n(10),n(2),n(9),n(13),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(11)),o=a(n(48)),i=a(n(143));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})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||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){return t&&c(e.prototype,t),n&&c(e,n),e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(n,e);var t=p(n);function n(){var e;u(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).type="container",e}return f(n,null,[{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:"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:"http://help.form.io/userguide/#container",weight:10,schema:n.schema()}}}]),f(n,[{key:"addComponents",value:function(e,t){return l(m(n.prototype),"addComponents",this).call(this,this.dataValue,t)}},{key:"componentContext",value:function(){return this.dataValue}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=!1,i=this.hasValue();return i&&r.default.isEmpty(this.dataValue)&&(t.noValidate=!0),e&&r.default.isObject(e)&&i||(o=!0,this.dataValue=this.defaultValue),o=l(m(n.prototype),"setValue",this).call(this,e,t)||o,this.updateOnChange(t,o),o}},{key:"checkData",value:function(e,t,n,r){var i=this;return e=e||this.rootValue,t=t||{},n=n||this.data,(r=r||this.getComponents()).reduce((function(n,r){return r.checkData(e,t,i.dataValue)&&n}),o.default.prototype.checkData.call(this,e,t,n))}},{key:"defaultSchema",get:function(){return n.schema()}},{key:"emptyValue",get:function(){return{}}},{key:"templateName",get:function(){return"container"}}]),n}(i.default);t.default=y},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(57),n(16),n(1),n(29),n(14),n(12),n(10),n(2),n(9),n(13),n(65),n(5),n(6),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(59)),o=a(n(22)),i=a(n(11));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})(e)}function u(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 c(e,t,n,r){return(c="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=p(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})(e,t,n,r)}function f(e,t,n,r,o){if(!c(e,t,n,r||e)&&o)throw new Error("failed to set property");return n}function d(e,t,n){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(n):o.value}})(e,t,n||e)}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})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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&&h(e,t)}(s,e);var t,n,r,a=m(s);function s(){return u(this,s),a.apply(this,arguments)}return t=s,(n=[{key:"useWrapper",value:function(){return this.component.hasOwnProperty("multiple")&&this.component.multiple}},{key:"render",value:function(){if(!this.useWrapper())return d(v(s.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]:[]),d(v(s.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=d(v(s.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 o.default.all(r)}))):o.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()})),d(v(s.prototype),"detach",this).call(this)}},{key:"attachElement",value:function(e,t){var n=this;this.addEventListener(e,this.inputInfo.changeEvent,(function(){var r=i.default.get(n.component,"case","mixed");if("mixed"!==r){var o=e.selectionStart,a=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=a)}if(n.saveCaretPosition(e,t),!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)}},{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()}},{key:"dataValue",get:function(){var e=d(v(s.prototype),"dataValue",this);return!e&&this.component.multiple?[]:e},set:function(e){f(v(s.prototype),"dataValue",e,this,!0)}},{key:"defaultValue",get:function(){var e=d(v(s.prototype),"defaultValue",this);return this.component.multiple&&(e=i.default.isArray(e)?e.length?e:[d(v(s.prototype),"emptyValue",this)]:[e]),e}},{key:"addAnother",get:function(){return this.t(this.component.addAnother||"Add Another")}}])&&l(t.prototype,n),r&&l(t,r),s}(r.default);t.default=b},function(e,t,n){"use strict";n(3),n(7),n(8),n(1),n(10),n(2),n(9),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(11)),o=a(n(189)),i=a(n(22));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})(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)}}function l(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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&&c(e,t)}(n,e);var t=f(n);function n(e,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(i=t.call(this,e)).namespace="formio.widget",i.component=o||{},i.settings=r.default.merge({},i.defaultSettings,e||{}),i}return l(n,null,[{key:"defaultSettings",get:function(){return{type:"input"}}}]),l(n,[{key:"attach",value:function(e){return this._input=e,i.default.resolve()}},{key:"getValue",value:function(){return this._input.value}},{key:"getValueAsString",value:function(e){return e}},{key:"validationValue",value:function(e){return e}},{key:"addPrefix",value:function(){return null}},{key:"addSuffix",value:function(){return null}},{key:"setValue",value:function(e){this._input.value=e}},{key:"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}}]),n}(o.default);t.default=h},function(e,t,n){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,u=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},l=t.split("");u.forEach((function(t){var n=e.indexOf(t),i=parseInt(o[t].toString().substr(0,1),10);parseInt(l[n],10)>i&&(l[n+1]=l[n],l[n]=0,r.push(n))}));var c=0;return!u.some((function(r){var u=e.indexOf(r),l=r.length,f=t.substr(u,l).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===l&&d<a[r]}))&&{value:l.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]===y[0]&&1===t)return y.split(a).concat([p]).concat(b.split(a));if(e===P&&S)return y.split(a).concat(["0",P,p]).concat(b.split(a));var i=e[0]===l&&R;i&&(e=e.toString().substr(1));var s=e.lastIndexOf(P),u=-1!==s,m=void 0,v=void 0,g=void 0;if(e.slice(-1*N)===b&&(e=e.slice(0,-1*N)),u&&(S||A)?(m=e.slice(e.slice(0,V)===y?V:0,s),v=n((v=e.slice(s+1,t)).replace(f,a))):m=e.slice(0,V)===y?e.slice(V):e,I&&(void 0===I?"undefined":o(I))===d){var k="."===_?"[.]":""+_,O=(m.match(new RegExp(k,"g"))||[]).length;m=m.slice(0,I+O*F)}return m=m.replace(f,a),D||(m=m.replace(/^0+(0$|[^0])/,"$1")),g=n(m=w?r(m,_):m),(u&&S||!0===A)&&(e[s-1]!==P&&g.push(h),g.push(P,h),v&&((void 0===C?"undefined":o(C))===d&&(v=v.slice(0,C)),g=g.concat(v)),!0===A&&e[s-1]===P&&g.push(p)),V>0&&(g=y.split(a).concat(g)),i&&(g.length===V&&g.push(p),g=[c].concat(g)),b.length>0&&(g=g.concat(b.split(a))),g}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},m=t.prefix,y=void 0===m?i:m,v=t.suffix,b=void 0===v?a:v,g=t.includeThousandsSeparator,w=void 0===g||g,k=t.thousandsSeparatorSymbol,_=void 0===k?s:k,O=t.allowDecimal,S=void 0!==O&&O,x=t.decimalSymbol,P=void 0===x?u:x,j=t.decimalLimit,C=void 0===j?2:j,E=t.requireDecimal,A=void 0!==E&&E,M=t.allowNegative,R=void 0!==M&&M,T=t.allowLeadingZeroes,D=void 0!==T&&T,L=t.integerLimit,I=void 0===L?null:L,V=y&&y.length||0,N=b&&b.length||0,F=_&&_.length||0;return e.instanceOf="createNumberMask",e};var i="$",a="",s=",",u=".",l="-",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?u:o.length<1?p:o[o.length-1]===l?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]===l&&r!==e.length?u:c:o}function a(e,t){return e.split(c).map((function(e){return e===p?e:t?y:m}))}Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){return e&&e.__esModule?e:{default:e}}(n(4)),u="*",l=".",c="",f="@",d="[]",p=" ",h="g",m=/[^\s]/,y=/[^.\s]/,v=/\s/g;t.default={mask:function(e,t){e=e.replace(v,c);var n=t.placeholderChar,s=t.currentCaretPosition,u=e.indexOf(f),d=e.lastIndexOf(l),p=d<u?-1:d,h=r(e,u+1,f),m=r(e,p-1,l),y=function(e,t){return-1===t?e:e.slice(0,t)}(e,u),b=o(e,u,p,n),g=i(e,p,n,s);return y=a(y),b=a(b),g=a(g,!0),y.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(u)||-1!==m&&o!==m+1||-1===f.indexOf(r)&&d!==i&&-1!==f.indexOf(s))return!1;var y=h.indexOf(r);return(h.slice(y+1,h.length).match(c)||l).length>1&&h.substr(-1)===s&&o!==f.length&&(h=h.slice(0,h.length-1)),h};var r="@",o=/@/g,i="",a="@.",s=".",u="..",l=[],c=/\./g}])},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(31),n(1),n(29),n(14),n(12),n(10),n(2),n(9),n(13),n(21),n(5),n(44),n(6),n(788),n(34),n(37),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(106),o=u(n(11)),i=n(249),a=u(n(74)),s=n(18);function u(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(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)}}function p(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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&&h(e,t)}(n,e);var t=m(n);function n(){var e;c(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];(e=t.call.apply(t,[this].concat(i))).validators=e.validators.concat(["min","max"]);var u=(0,s.getNumberSeparators)(e.options.language);e.decimalSeparator=e.options.decimalSeparator=e.options.decimalSeparator||u.decimalSeparator,e.component.delimiter?(e.options.hasOwnProperty("thousandsSeparator")&&console.warn("Property 'thousandsSeparator' is deprecated. Please use i18n to specify delimiter."),e.delimiter=e.options.thousandsSeparator||u.delimiter):e.delimiter="";var l=o.default.get(e.component,"requireDecimal",!1);if(e.decimalLimit=(0,s.getNumberDecimalLimit)(e.component,l?2:20),o.default.has(e.options,"languageOverride.".concat(e.options.language))){var f=o.default.get(e.options,"languageOverride.".concat(e.options.language));e.decimalSeparator=f.decimalSeparator,e.delimiter=f.delimiter}return e.numberMask=e.createNumberMask(),e}return p(n,null,[{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:"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:"http://help.form.io/userguide/#number",weight:30,schema:n.schema()}}}]),p(n,[{key:"createNumberMask",value:function(){return(0,i.createNumberMask)({prefix:"",suffix:"",requireDecimal:o.default.get(this.component,"requireDecimal",!1),thousandsSeparatorSymbol:o.default.get(this.component,"thousandsSeparator",this.delimiter),decimalSymbol:o.default.get(this.component,"decimalSymbol",this.decimalSeparator),decimalLimit:o.default.get(this.component,"decimalLimit",this.decimalLimit),allowNegative:o.default.get(this.component,"allowNegative",!0),allowDecimal:this.isDecimalAllowed()})}},{key:"isDecimalAllowed",value:function(){return o.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,r.maskInput)({inputElement:e,mask:this.numberMask})}},{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?this.parseNumber(t):null}},{key:"setValueAt",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f(v(n.prototype),"setValueAt",this).call(this,e,this.formatValue(this.parseValue(t)),r)}},{key:"parseValue",value:function(e){"string"==typeof e&&(e=e.split(this.delimiter).join("").replace(this.decimalSeparator,"."));var t=parseFloat(e);return t=o.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(o.default.repeat("0",this.decimalLimit)):this.component.requireDecimal&&e&&e.includes(this.decimalSeparator)?"".concat(e).concat(o.default.repeat("0",this.decimalLimit-e.split(this.decimalSeparator)[1].length)):e}},{key:"focus",value:function(){var e=this.refs.input[0];e&&(f(v(n.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,r.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;f(v(n.prototype),"addFocusBlurEvents",this).call(this,e),this.addEventListener(e,"blur",(function(){e.value=t.getValueAsString(t.formatValue(t.parseValue(e.value)))}))}},{key:"defaultSchema",get:function(){return n.schema()}},{key:"defaultValue",get:function(){var e=f(v(n.prototype),"defaultValue",this);return e||0!==this.component.defaultValue||(e=this.component.defaultValue),e}},{key:"inputInfo",get:function(){var e=f(v(n.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}}]),n}(a.default);t.default=b},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(23),n(16),n(39),n(31),n(1),n(14),n(40),n(30),n(66),n(19),n(252),n(12),n(45),n(10),n(26),n(2),n(9),n(13),n(65),n(5),n(6),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(11)),o=s(n(253)),i=s(n(190)),a=n(18);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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 c(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){k(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 f(e){return function(e){if(Array.isArray(e))return y(e)}(e)||d(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 d(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function p(e,t){return v(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;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,t)||m(e,t)||h()}function h(){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 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 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 v(e){if(Array.isArray(e))return e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t,n,r){return(g="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})(e,t,n,r)}function w(e,t,n,r,o){if(!g(e,t,n,r||e)&&o)throw new Error("failed to set property");return n}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 _(e,t,n){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(n):o.value}})(e,t,n||e)}function O(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=E(e)););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 x(e,t,n){return t&&S(e.prototype,t),n&&S(e,n),e}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E(e);if(t){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}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&&P(e,t)}(n,e);var t=j(n);function n(){var e;b(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).type="datagrid",e}return x(n,null,[{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:"http://help.form.io/userguide/#datagrid",weight:30,schema:n.schema()}}}]),x(n,[{key:"init",value:function(){this.components=this.components||[],this.rows=[],this.initRows&&this.createRows(!0),this.visibleColumns={},this.checkColumns()}},{key:"getRowChunks",value:function(e,t){var n=e.reduce((function(e,t){var n=p(e,2),r=n[0],o=n[1],i=r+t;return[i,[].concat(f(o),[[r,i]])]}),[0,[]]);return p(n,2)[1].map((function(e){return r.default.slice.apply(r.default,[t].concat(f(e)))}))}},{key:"getGroups",value:function(){var e=r.default.get(this.component,"rowGroups",[]),t=r.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 c(c({},e),{},k({},t[r],n))}),{})}},{key:"getGroupSizes",value:function(){return r.default.map(r.default.get(this.component,"rowGroups",[]),"numberOfRows")}},{key:"hasRowGroups",value:function(){return r.default.get(this,"component.enableRowGroups",!1)&&!this.builderMode}},{key:"totalRowsNumber",value:function(e){return r.default.sum(r.default.map(e,"numberOfRows"))}},{key:"setStaticValue",value:function(e){this.dataValue=r.default.range(e).map((function(){return{}}))}},{key:"hasExtraColumn",value:function(){return this.hasRemoveButtons()||this.canAddColumn}},{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:"hasTopSubmit",value:function(){return this.hasAddButton()&&["top","both"].includes(this.addAnotherPosition)}},{key:"hasBottomSubmit",value:function(){return this.hasAddButton()&&["bottom","both"].includes(this.addAnotherPosition)}},{key:"render",value:function(){var e=this.getColumns();return _(E(n.prototype),"render",this).call(this,this.renderTemplate("datagrid",{rows:this.getRows(),columns:e,groups:this.hasRowGroups()?this.getGroups():[],visibleColumns:this.visibleColumns,hasToggle:r.default.get(this,"component.groupToggle",!1),hasHeader:this.hasHeader(),hasExtraColumn:this.hasExtraColumn(),hasAddButton:this.hasAddButton(),hasRemoveButtons:this.hasRemoveButtons(),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,placeholder:this.renderTemplate("builderPlaceholder",{position:this.componentComponents.length})}))}},{key:"getRows",value:function(){return this.rows.map((function(e){var t={};return r.default.each(e,(function(e,n){t[n]=e.render()})),t}))}},{key:"getColumns",value:function(){var e=this;return this.component.components.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:"attach",value:function(e){var t,r=this;this.loadRefs(e,(k(t={},"".concat(this.datagridKey,"-row"),"multiple"),k(t,"".concat(this.datagridKey,"-tbody"),"single"),k(t,"".concat(this.datagridKey,"-addRow"),"multiple"),k(t,"".concat(this.datagridKey,"-removeRow"),"multiple"),k(t,"".concat(this.datagridKey,"-group-header"),"multiple"),k(t,this.datagridKey,"multiple"),t)),this.allowReorder&&(this.refs["".concat(this.datagridKey,"-row")].forEach((function(e,t){e.dragInfo={index:t}})),this.dragula=(0,o.default)([this.refs["".concat(this.datagridKey,"-tbody")]],{moves:function(e,t,n){return n.classList.contains("formio-drag-button")}}).on("drop",this.onReorder.bind(this))),this.refs["".concat(this.datagridKey,"-addRow")].forEach((function(e){r.addEventListener(e,"click",r.addRow.bind(r))})),this.refs["".concat(this.datagridKey,"-removeRow")].forEach((function(e,t){r.addEventListener(e,"click",r.removeRow.bind(r,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){r.addEventListener(e,"click",(function(){return r.toggleGroup(e,t)}))})));var i=this.getColumns(),a=i.length;return this.rows.forEach((function(e,t){var n=0;i.forEach((function(e){r.attachComponents(r.refs[r.datagridKey][t*a+n],[r.rows[t][e.key]],r.component.components),n++}))})),_(E(n.prototype),"attach",this).call(this,e)}},{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,u=(0,a.fastCloneDeep)(this.dataValue),l=u[o];u.splice(i,0,l),u.splice(s?o:o+1,1),this.setValue(u,{isReordered:!0}),this.redraw()}}},{key:"addRow",value:function(){var e=this.rows.length;this.dataValue.length===e&&this.dataValue.push({}),this.rows[e]=this.createRowComponents(this.dataValue[e],e),this.checkConditions(),this.triggerChange(),this.redraw()}},{key:"removeRow",value:function(e){var t=this;this.splice(e);var n=p(this.rows.splice(e,1),1)[0];r.default.each(n,(function(e){return t.removeComponent(e)})),this.setValue(this.dataValue,{isReordered:!0}),this.redraw()}},{key:"getRowValues",value:function(){return this.dataValue}},{key:"setRowComponentsData",value:function(e,t){r.default.each(this.rows[e],(function(e){e.data=t}))}},{key:"createRows",value:function(e){var t=this,n=!1,r=this.getRowValues();r.forEach((function(e,r){t.rows[r]?t.setRowComponentsData(r,e):(t.rows[r]=t.createRowComponents(e,r),n=!0)}));var o=!!this.rows.splice(r.length).length;return e||!n&&!o||this.redraw(),n}},{key:"createRowComponents",value:function(e,t){var n=this,o={};return this.component.components.map((function(i,a){var s=r.default.clone(n.options);s.name+="[".concat(t,"]"),s.row="".concat(t,"-").concat(a),i.id&&(i.id=i.id+t);var u=n.createComponent(i,s,e);u.parentDisabled=!!n.disabled,u.rowIndex=t,u.inDataGrid=!0,o[i.key]=u})),o}},{key:"checkValidity",value:function(e,t,n,r){return e=e||this.rootValue,n=n||this.data,this.checkCondition(n,e)?!!this.checkComponentValidity(e,t,n,{silentCheck:r})&&this.checkRows("checkValidity",e,t,!0,r):(this.setCustomValidity(""),!0)}},{key:"checkColumns",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=e||this.rootValue;var n=!1;if(!this.rows||!this.rows.length)return{rebuild:!1,show:!1};if(this.builderMode)return{rebuild:!1,show:!0};var o={},i=this.dataValue;this.rows.forEach((function(n,a){r.default.each(n,(function(n,r){n&&"function"==typeof n.checkConditions&&(o[r]=!!o[r]||n.checkConditions(e,t,i[a])&&"hidden"!==n.type)}))}));var a=!r.default.isEqual(o,this.visibleColumns);return r.default.each(o,(function(e){n|=e})),this.visibleColumns=o,{rebuild:a,show:n}}},{key:"checkComponentConditions",value:function(e,t,r){if(!_(E(n.prototype),"checkComponentConditions",this).call(this,e,t,r))return!1;var o=this.checkColumns(e,t),i=o.rebuild,a=o.show;return i&&this.redraw(),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"===u(e)?e=[e]:(this.createRows(),e=[{}])),!e||e.length||this.initEmpty||e.push({});var o=this.hasChanged(e,this.dataValue);return this.initRows&&(this.dataValue=e,this.createRows()),this.rows.forEach((function(o,i){e.length<=i||r.default.each(o,(function(r){r.rowIndex=i,t.setNestedValue(r,e[i],n)}))})),this.updateOnChange(n,o),o}},{key:"restoreComponentsContext",value:function(){var e=this;this.rows.forEach((function(t,n){return r.default.forIn(t,(function(t){return t.data=e.dataValue[n]}))}))}},{key:"getComponent",value:function(e,t){e=Array.isArray(e)?e:[e];var n,o=v(n=e)||d(n)||m(n)||h(),i=o[0],a=o.slice(1),s=[];if(r.default.isNumber(i)&&a.length){var u=a.pop();return(s=this.rows[i][u])||Object.entries(this.rows[i]).forEach((function(e){var n=p(e,2)[1];if("getComponent"in n){var r=n.getComponent([u],t);r&&(s=r)}})),s&&r.default.isFunction(t)&&t(s,this.getComponents()),a.length&&"getComponent"in s?s.getComponent(a,t):s}return r.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"),r.default.each(this.refs.chunks[t],(function(e){e.classList.toggle("hidden")}))}},{key:"dataValue",get:function(){var e=_(E(n.prototype),"dataValue",this);return e&&Array.isArray(e)?e:this.emptyValue},set:function(e){w(E(n.prototype),"dataValue",e,this,!0)}},{key:"defaultSchema",get:function(){return n.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[{}]}},{key:"addAnotherPosition",get:function(){return r.default.get(this.component,"addAnotherPosition","bottom")}},{key:"minLength",get:function(){return this.hasRowGroups()?r.default.sum(this.getGroupSizes()):r.default.get(this.component,"validate.minLength",0)}},{key:"defaultValue",get:function(){if(this.builderMode)return[{}];for(var e,t=_(E(n.prototype),"defaultValue",this),r=(e=Array.isArray(t)?t:t&&"object"===u(t)?[t]:this.emptyValue).length;r<this.minLength;r++)e.push({});return e}},{key:"disabled",set:function(e){w(E(n.prototype),"disabled",e,this,!0),r.default.each(this.refs["".concat(this.datagridKey,"-addRow")],(function(t){t.disabled=e})),r.default.each(this.refs["".concat(this.datagridKey,"-removeRow")],(function(t){t.disabled=e}))},get:function(){return _(E(n.prototype),"disabled",this)}},{key:"datagridKey",get:function(){return"datagrid-".concat(this.key)}},{key:"allowReorder",get:function(){return!this.options.readOnly&&r.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:"canAddColumn",get:function(){return this.builderMode}}]),n}(i.default);t.default=A},function(e,t,n){var r=n(15),o=n(242).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},function(e,t,n){(function(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 u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){var n=t[a][1][e];return o(n||e)}),l,l.exports,e,t,n,r)}return n[a].exports}for(var i=!1,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,n,r){(function(t){"use strict";var r=e("contra/emitter"),o=e("crossvent"),i=e("./classes"),a=document,s=a.documentElement;function u(e,n,r,i){t.navigator.pointerEnabled?o[n](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[r],i):t.navigator.msPointerEnabled?o[n](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[r],i):(o[n](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[r],i),o[n](e,r,i))}function l(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,n){return void 0!==t[n]?t[n]:s.clientHeight?s[e]:a.body[e]}function d(e,t,n){var r,o=e||{},i=o.className;return o.className+=" gu-hide",r=a.elementFromPoint(t,n),o.className=i,r}function p(){return!1}function h(){return!0}function m(e){return e.width||e.right-e.left}function y(e){return e.height||e.bottom-e.top}function v(e){return e.parentNode===a?null:e.parentNode}function b(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||function e(t){return!!t&&"false"!==t.contentEditable&&("true"===t.contentEditable||e(v(t)))}(e)}function g(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function w(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]}n.exports=function(e,t){var n,f,k,_,O,S,x,P,j,C,E,A=arguments.length;1===A&&!1===Array.isArray(e)&&(t=e,e=[]);var M,R=null,T=t||{};void 0===T.moves&&(T.moves=h),void 0===T.accepts&&(T.accepts=h),void 0===T.invalid&&(T.invalid=K),void 0===T.containers&&(T.containers=e||[]),void 0===T.isContainer&&(T.isContainer=p),void 0===T.copy&&(T.copy=!1),void 0===T.copySortSource&&(T.copySortSource=!1),void 0===T.revertOnSpill&&(T.revertOnSpill=!1),void 0===T.removeOnSpill&&(T.removeOnSpill=!1),void 0===T.direction&&(T.direction="vertical"),void 0===T.ignoreInputTextSelection&&(T.ignoreInputTextSelection=!0),void 0===T.mirrorContainer&&(T.mirrorContainer=a.body);var D=r({containers:T.containers,start:W,end:G,cancel:Q,remove:$,destroy:F,canMove:q,dragging:!1});return!0===T.removeOnSpill&&D.on("over",oe).on("out",ie),I(),D;function L(e){return-1!==D.containers.indexOf(e)||T.isContainer(e)}function I(e){var t=e?"remove":"add";u(s,t,"mousedown",z),u(s,t,"mouseup",Z)}function V(e){u(s,e?"remove":"add","mousemove",B)}function N(e){var t=e?"remove":"add";o[t](s,"selectstart",U),o[t](s,"click",U)}function F(){I(!0),Z({})}function U(e){M&&e.preventDefault()}function z(e){if(S=e.clientX,x=e.clientY,1===l(e)&&!e.metaKey&&!e.ctrlKey){var t=e.target,n=H(t);n&&(M=n,V(),"mousedown"===e.type&&(b(t)?t.focus():e.preventDefault()))}}function B(e){if(M)if(0!==l(e)){if(void 0===e.clientX||e.clientX!==S||void 0===e.clientY||e.clientY!==x){if(T.ignoreInputTextSelection){var t=w("clientX",e),n=w("clientY",e);if(b(a.elementFromPoint(t,n)))return}var r=M;V(!0),N(),G(),Y(r);var o=c(k);_=w("pageX",e)-o.left,O=w("pageY",e)-o.top,i.add(C||k,"gu-transit"),ae(),re(e)}}else Z({})}function H(e){if(!(D.dragging&&n||L(e))){for(var t=e;v(e)&&!1===L(v(e));){if(T.invalid(e,t))return;if(!(e=v(e)))return}var r=v(e);if(r&&!T.invalid(e,t)&&T.moves(e,r,t,g(e)))return{item:e,source:r}}}function q(e){return!!H(e)}function W(e){var t=H(e);t&&Y(t)}function Y(e){ce(e.item,e.source)&&(C=e.item.cloneNode(!0),D.emit("cloned",C,e.item,"copy")),f=e.source,k=e.item,P=j=g(e.item),D.dragging=!0,D.emit("drag",k,f)}function K(){return!1}function G(){if(D.dragging){var e=C||k;X(e,v(e))}}function J(){M=!1,V(!0),N(!0)}function Z(e){if(J(),D.dragging){var t=C||k,r=w("clientX",e),o=w("clientY",e),i=ne(d(n,r,o),r,o);i&&(C&&T.copySortSource||!C||i!==f)?X(t,i):T.removeOnSpill?$():Q()}}function X(e,t){var n=v(e);C&&T.copySortSource&&t===f&&n.removeChild(k),te(t)?D.emit("cancel",e,f,f):D.emit("drop",e,t,f,j),ee()}function $(){if(D.dragging){var e=C||k,t=v(e);t&&t.removeChild(e),D.emit(C?"cancel":"remove",e,t,f),ee()}}function Q(e){if(D.dragging){var t=arguments.length>0?e:T.revertOnSpill,n=C||k,r=v(n),o=te(r);!1===o&&t&&(C?r&&r.removeChild(C):f.insertBefore(n,P)),o||t?D.emit("cancel",n,f,f):D.emit("drop",n,r,f,j),ee()}}function ee(){var e=C||k;J(),se(),e&&i.rm(e,"gu-transit"),E&&clearTimeout(E),D.dragging=!1,R&&D.emit("out",e,R,f),D.emit("dragend",e),f=k=C=P=j=E=R=null}function te(e,t){var r;return r=void 0!==t?t:n?j:g(C||k),e===f&&r===P}function ne(e,t,n){for(var r=e;r&&!o();)r=v(r);return r;function o(){if(!1===L(r))return!1;var o=ue(r,e),i=le(r,o,t,n);return!!te(r,i)||T.accepts(k,r,f,i)}}function re(e){if(n){e.preventDefault();var t=w("clientX",e),r=w("clientY",e),o=t-_,i=r-O;n.style.left=o+"px",n.style.top=i+"px";var a=C||k,s=d(n,t,r),u=ne(s,t,r),l=null!==u&&u!==R;(l||null===u)&&(R&&m("out"),R=u,l&&m("over"));var c=v(a);if(u!==f||!C||T.copySortSource){var p,h=ue(u,s);if(null!==h)p=le(u,h,t,r);else{if(!0!==T.revertOnSpill||C)return void(C&&c&&c.removeChild(a));p=P,u=f}(null===p&&l||p!==a&&p!==g(a))&&(j=p,u.insertBefore(a,p),D.emit("shadow",a,u,f))}else c&&c.removeChild(a)}function m(e){D.emit(e,a,R,f)}}function oe(e){i.rm(e,"gu-hide")}function ie(e){D.dragging&&i.add(e,"gu-hide")}function ae(){if(!n){var e=k.getBoundingClientRect();(n=k.cloneNode(!0)).style.width=m(e)+"px",n.style.height=y(e)+"px",i.rm(n,"gu-transit"),i.add(n,"gu-mirror"),T.mirrorContainer.appendChild(n),u(s,"add","mousemove",re),i.add(T.mirrorContainer,"gu-unselectable"),D.emit("cloned",n,k,"mirror")}}function se(){n&&(i.rm(T.mirrorContainer,"gu-unselectable"),u(s,"remove","mousemove",re),v(n).removeChild(n),n=null)}function ue(e,t){for(var n=t;n!==e&&v(n)!==e;)n=v(n);return n===s?null:n}function le(e,t,n,r){var o,i="horizontal"===T.direction;return t!==e?(o=t.getBoundingClientRect(),a(i?n>o.left+m(o)/2:r>o.top+y(o)/2)):function(){var t,o,a,s=e.children.length;for(t=0;t<s;t++){if(o=e.children[t],a=o.getBoundingClientRect(),i&&a.left+a.width/2>n)return o;if(!i&&a.top+a.height/2>r)return o}return null}();function a(e){return e?g(t):t}}function ce(e,t){return"boolean"==typeof T.copy?T.copy:T.copy(e,t)}}}).call(this,void 0!==t?t:"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:9}],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,n,r){(function(t){"use strict";var r=e("custom-event"),o=e("./eventmap"),i=t.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)},u=[];function l(e,t,n){var r=function(e,t,n){var r,o;for(r=0;r<u.length;r++)if((o=u[r]).element===e&&o.type===t&&o.fn===n)return r}(e,t,n);if(r){var o=u[r].wrapper;return u.splice(r,1),o}}t.addEventListener||(a=function(e,n,r){return e.attachEvent("on"+n,function(e,n,r){var o=l(e,n,r)||function(e,n,r){return function(n){var o=n||t.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 u.push({wrapper:o,element:e,type:n,fn:r}),o}(e,n,r))},s=function(e,t,n){var r=l(e,t,n);if(r)return e.detachEvent("on"+t,r)}),n.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!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./eventmap":7,"custom-event":8}],7:[function(e,n,r){(function(e){"use strict";var t=[],r="",o=/^on/;for(r in e)o.test(r)&&t.push(r.slice(2));n.exports=t}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(e,n,r){(function(e){var t=e.CustomEvent;n.exports=function(){try{var e=new t("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?t:"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!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(e,t,r){var o;o="function"==typeof n?function(e){n(e)}:function(e){setTimeout(e,0)},t.exports=o},{}]},{},[2])(2)}).call(this,n(51),n(163).setImmediate)},function(e,t,n){"use strict";(function(e){n(3),n(7),n(8),n(1),n(2),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=r?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(18));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},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})(e)}"object"===(void 0===e?"undefined":i(e))&&(e.FormioUtils=r);var a=r;t.default=a}).call(this,n(51))},function(e,t,n){"use strict";var r,o=n(15),i=n(60).f,a=n(33),s=n(212),u=n(53),l=n(213),c=n(88),f="".startsWith,d=Math.min,p=l("startsWith");o({target:"String",proto:!0,forced:!!(c||p||(r=i(String.prototype,"startsWith"),!r||r.writable))&&!p},{startsWith:function(e){var t=String(u(this));s(e);var n=a(d(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return f?f.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){var r=n(55);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){var r=n(56),o=n(33);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length or index");return n}},function(e,t,n){"use strict";var r=n(46),o=n(90),i=n(33);e.exports=function(e){for(var t=r(this),n=i(t.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,l=void 0===u?n:o(u,n);l>s;)t[s++]=e;return t}},function(e,t,n){var r=n(808);e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(11)),o=s(n(261)),i=s(n(110)),a=s(n(841));function s(e){return e&&e.__esModule?e:{default: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 l=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,o;return t=e,o=[{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}}],(n=null)&&u(t.prototype,n),o&&u(t,o),e}();t.default=l,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(l,"displays",{pdf:o.default,webform:i.default,wizard:a.default})},function(e,t,n){"use strict";n(3),n(7),n(8),n(23),n(57),n(16),n(1),n(29),n(19),n(12),n(45),n(10),n(26),n(2),n(9),n(13),n(5),n(6),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(22)),o=s(n(41)),i=s(n(110)),a=n(18);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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 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(e,t,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(u,e);var t,o,i,s=h(u);function u(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=s.call(this,e,t)).components=[],n}return t=u,(o=[{key:"init",value:function(){var e=this;d(y(u.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?r.default.resolve():d(y(u.prototype),"redraw",this).call(this)}},{key:"rebuild",value:function(){return this.builderMode&&this.component.components?(this.destroyComponents(),this.addComponents(),r.default.resolve()):(this.postMessage({name:"redraw"}),d(y(u.prototype),"rebuild",this).call(this))}},{key:"attach",value:function(e){var t=this;return d(y(u.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]:{};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}({},t.refs),t.submitButton.attachButton(),t.iframeReady=new r.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.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 o=(0,a.fastCloneDeep)(t.form);t.formio&&(o.projectUrl=t.formio.projectUrl,o.url=t.formio.formUrl,o.base=t.formio.base,t.postMessage({name:"token",data:t.formio.getToken()})),t.emit("attach")}))}},{key:"getSubmission",value:function(){var e=this;return new r.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(y(u.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.readOnly&&t.push("readonly=1"),this.options.zoom&&t.push("zoom=".concat(this.options.zoom)),this.builderMode&&t.push("builder=1"),this.options.hideLoader&&t.push("hide-loader=".concat(this.options.hideLoader)),t.length&&(e+="?".concat(t.join("&"))),e}},{key:"setForm",value:function(e){var t=this;return d(y(u.prototype),"setForm",this).call(this,e).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(y(u.prototype),"setValue",this).call(this,e,n);return n&&n.fromIframe||this.once("iframe-ready",(function(){t.postMessage({name:"submission",data:e})})),r}},{key:"setSubmission",value:function(e){var t=this;return d(y(u.prototype),"setSubmission",this).call(this,e).then((function(){t.formio&&t.formio.getDownloadUrl().then((function(e){e&&(t.downloadButton||(t.options.primaryProject&&(e+="&project=".concat(t.options.primaryProject)),t.downloadButton=t.ce("a",{href:e,target:"_blank",style:"position:absolute;right:10px;top:110px;cursor:pointer;"},t.ce("img",{src:n(840),style:"width:3em;"})),t.element.insertBefore(t.downloadButton,t.iframe)))}))}))}},{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&&t.iframeElement.contentWindow.postMessage(JSON.stringify(e),"*")})))}},{key:"focusOnComponent",value:function(e){this.postMessage({name:"focusErroredField",data:e})}},{key:"clear",value:function(){}},{key:"showErrors",value:function(e,t){var n=document.getElementById("submit-error");if(!n&&this.errors.length){var r=this.ce("p",{class:"help-block"});this.setContent(r,this.t("submitError")),r.addEventListener("click",(function(){window.scrollTo(0,0)}));var o=this.ce("div",{id:"submit-error",class:"has-error"});this.appendTo(r,o),this.appendTo(o,this.element)}!this.errors.length&&n&&n.remove(),d(y(u.prototype),"showErrors",this).call(this,e,t)}},{key:"isSubmitButtonHidden",value:function(){var e=!1;return(0,a.eachComponent)(this.component.components,(function(t){"button"!==t.type||"submit"!==t.action&&t.action||(e=t.hidden||!1)})),e}}])&&f(t.prototype,o),i&&f(t,i),u}(i.default);t.default=v,window.addEventListener("message",(function(e){var t=null;try{t=JSON.parse(e.data)}catch(e){t=null}t&&t.name&&t.formId&&o.default.forms.hasOwnProperty(t.formId)&&o.default.forms[t.formId].emit("iframe-".concat(t.name),t.data)}))},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(57),n(16),n(1),n(19),n(12),n(10),n(2),n(9),n(13),n(5),n(6),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(11)),o=i(n(59));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})(e)}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(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)}}function l(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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&&c(e,t)}(n,e);var t=f(n);function n(e,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(i=t.call(this,e,r,o)).previousValue=i.dataValue||null,i}return l(n,null,[{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:""}],fieldSet:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Radio",group:"basic",icon:"dot-circle-o",weight:80,documentation:"http://help.form.io/userguide/#radio",schema:n.schema()}}}]),l(n,[{key:"render",value:function(){return s(p(n.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;return this.loadRefs(e,{input:"multiple",wrapper:"multiple"}),this.refs.input.forEach((function(e,n){if(t.addEventListener(e,t.inputInfo.changeEvent,(function(){return 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}))}))}})),s(p(n.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)})),s(p(n.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:"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:"updateValue",value:function(e,t){var r=this,o=s(p(n.prototype),"updateValue",this).call(this,e,t);if(o&&this.refs.wrapper){var i=this.dataValue;this.refs.wrapper.forEach((function(e,t){var n=r.refs.input[t];n&&n.value.toString()===i.toString()?r.addClass(e,"radio-selected"):r.removeClass(e,"radio-selected")}))}return t&&t.modified&&this.isRadio?(this.currentValue=this.dataValue,!(t&&t.noUpdateEvent)&&this.previousValue===this.currentValue&&(this.resetValue(),this.triggerChange()),this.previousValue=this.dataValue,o):o}},{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"===a(e)?JSON.stringify(e):e.toString();break;case"boolean":e=!(!e||"false"===e.toString())}return s(p(n.prototype),"normalizeValue",this).call(this,e)}},{key:"defaultSchema",get:function(){return n.schema()}},{key:"inputInfo",get:function(){var e=s(p(n.prototype),"elementInfo",this).call(this);return e.type="input",e.changeEvent="click",e.attr.class="form-check-input",e.attr.name=e.attr.name+="[".concat(this.id,"]"),e}},{key:"emptyValue",get:function(){return""}},{key:"isRadio",get:function(){return"radio"===this.component.inputType}}]),n}(o.default);t.default=h},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(23),n(57),n(16),n(39),n(31),n(1),n(29),n(14),n(40),n(849),n(30),n(68),n(19),n(69),n(850),n(107),n(61),n(12),n(45),n(10),n(26),n(2),n(9),n(13),n(65),n(21),n(5),n(44),n(6),n(34),n(37),n(255),n(67),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(852)),o=c(n(11)),i=c(n(41)),a=c(n(59)),s=c(n(146)),u=c(n(22)),l=n(18);function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,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&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(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 y(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 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})(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(e,t,n){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(n):o.value}})(e,t,n||e)}function _(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=P(e)););return e}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=P(e);if(t){var o=P(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}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)}(d,e);var t,n,c,f=S(d);function d(){return y(this,d),f.apply(this,arguments)}return t=d,c=[{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:"select",label:"Select",key:"select",idPath:"id",data:{values:[],json:"",url:"",resource:"",custom:""},clearOnRefresh:!1,limit:100,dataSrc:"values",valueProperty:"",lazyLoad:!0,filter:"",searchEnabled:!0,searchField:"",minSearch:0,readOnlyValue:!1,authenticate:!1,template:"<span>{{ item.label }}</span>",selectFields:"",searchThreshold:.3,uniqueOptions:!1,tableView:!0,fuseOptions:{include:"score",threshold:.3},customOptions:{}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Select",group:"basic",icon:"th-list",weight:70,documentation:"http://help.form.io/userguide/#select",schema:d.schema()}}}],(n=[{key:"init",value:function(){var e=this;k(P(d.prototype),"init",this).call(this),this.validators=this.validators.concat(["select"]);var t=[],n=o.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(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.length&&(t=r),n.apply(void 0,h(t))},this.selectOptions=[],this.isInfiniteScrollProvided&&(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}))}},{key:"isEntireObjectDisplay",value:function(){return"resource"===this.component.dataSrc&&"data"===this.valueProperty}},{key:"itemTemplate",value:function(e){if(o.default.isEmpty(e))return"";if(this.options.readOnly&&this.component.readOnlyValue)return this.itemValue(e);if(e&&!this.component.template){var t=e.label||e;return"string"==typeof t?this.t(t):t}if("string"==typeof e)return this.t(e);if(e.data){var n=/item\.data\.\w*/g.test(this.component.template);e.data=this.isEntireObjectDisplay()&&o.default.isObject(e.data)&&!n?JSON.stringify(e.data):e.data}var r=this.component.template?this.interpolate(this.component.template,{item:e}):e.label;if(r){var i=r.replace(/<\/?[^>]+(>|$)/g,"");if(!i||!this.t(i))return;return r.replace(i,this.t(i))}return JSON.stringify(e)}},{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,l.getRandomComponentId)();if(!o.default.isNil(t)){var i=this.component.idPath?this.component.idPath.split(".").reduceRight((function(e,t){return w({},t,e)}),r):{},a=p({value:o.default.isObject(e)&&this.isEntireObjectDisplay()?this.normalizeSingleValue(e):o.default.isObject(e)?e:o.default.isNull(e)?this.emptyValue:String(this.normalizeSingleValue(e)),label:t},i),s=!!this.component.uniqueOptions&&!!this.selectOptions.find((function(e){return o.default.isEqual(e.value,a.value)}));if(!s&&(e&&this.selectOptions.push(a),this.refs.selectContainer&&"html5"===this.component.widget)){var u=document.createElement("div");u.innerHTML=this.sanitize(this.renderTemplate("selectOption",{selected:o.default.isEqual(this.dataValue,a.value),option:a,attrs:n,id:r,useId:""===this.valueProperty&&o.default.isObject(e)&&r})).trim(),a.element=u.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=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 i=this.component.onSetItems(this,e);i&&(e=i)}if(!this.choices&&this.refs.selectContainer&&(this.loading,this.empty(this.refs.selectContainer)),this.component.selectValues&&(e=o.default.get(e,this.component.selectValues,e)||[]),this.isInfiniteScrollProvided){n=!!this.isSelectURL&&o.default.isEqual(e,this.downloadedResources);var a=this.component.limit>e.length,s=n&&this.downloadedResources&&this.downloadedResources.length===e.length;a?this.disableInfiniteScroll():s?this.selectOptions=[]:this.serverCount=e.serverCount}if(this.isScrollLoading&&e)n||(this.downloadedResources=this.downloadedResources?this.downloadedResources.concat(e):e),this.downloadedResources.serverCount=e.serverCount||this.downloadedResources.serverCount;else if(this.downloadedResources=e||[],this.selectOptions=[],!o.default.isEmpty(this.dataValue)&&this.component.idPath){var u=o.default.get(this.dataValue,this.component.idPath,null),l=!o.default.isNil(u)&&e.find((function(e){return o.default.get(e,r.component.idPath)===u}));l&&this.setValue(l)}if(t||this.addValueOptions(e),"html5"!==this.component.widget||this.component.placeholder||this.addOption(null,""),o.default.each(e,(function(e,t){r.root&&r.root.options.editForm&&r.root.options.editForm._id&&r.root.options.editForm._id===e._id||r.addOption(r.itemValue(e),r.itemTemplate(e),{},o.default.get(e,r.component.idPath,String(t)))})),this.choices){if(this.choices.setChoices(this.selectOptions,"value","label",!0),this.overlayOptions){var c=this.choices.dropdown.element;c.style.position="fixed";var f=function(){var e=r.element.getBoundingClientRect(),t=e.top,n=e.height,o=e.width;c.style.top="".concat(t+n,"px"),c.style.width="".concat(o,"px")};f(),["scroll","resize"].forEach((function(e){return r.addEventListener(window,e,f)}))}}else this.loading;if(this.isScrollLoading=!1,this.loading=!1,this.dataValue)this.setValue(this.dataValue,{noUpdateEvent:!0});else{var d=this.multiple?this.defaultValue||[]:this.defaultValue;d&&this.setValue(d)}this.itemsLoadedResolve()}},{key:"loadItems",value:function(e,t,n,r,a,s){var u=this;r=r||{};var l=parseInt(this.component.minSearch,10);if(this.component.searchField&&l>0&&(!t||t.length<l))return this.setItems([]);"GET"===(a=a||"GET").toUpperCase()&&(s=null);var c=this.component.limit||100,f=this.isScrollLoading?this.selectOptions.length:0,d="url"===this.component.dataSrc?{}:{limit:c,skip:f};e=this.interpolate(e,{formioBase:i.default.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),o.default.isEmpty(d)||(e+=(e.includes("?")?"&":"?")+i.default.serialize(d,(function(e){return u.interpolate(e)}))),this.component.filter&&(e+=(e.includes("?")?"&":"?")+this.interpolate(this.component.filter)),r.header=n,this.loading=!0,i.default.makeRequest(this.options.formio,"select",e,a,s,r).then((function(e){u.loading=!1,u.setItems(e,!!t)})).catch((function(e){u.isInfiniteScrollProvided&&(u.setItems([]),u.disableInfiniteScroll()),u.isScrollLoading=!1,u.loading=!1,u.itemsLoadedResolve(),u.emit("componentError",{component:u.component,message:e.toString()}),console.warn("Unable to load resources for ".concat(u.key))}))}},{key:"getCustomItems",value:function(){return this.evaluate(this.component.data.custom,{values:[]},"values")}},{key:"updateCustomItems",value:function(){this.setItems(this.getCustomItems()||[])}},{key:"refresh",value:function(e,t){var n=t.instance;this.component.clearOnRefresh&&n&&!n.pristine&&this.setValue(this.emptyValue),this.component.lazyLoad&&(this.activated=!1,this.loading=!0,this.setItems([])),this.updateItems(null,!0)}},{key:"updateItems",value:function(e,t){var n=this;if(this.itemsLoaded=new u.default((function(e){n.itemsLoadedResolve=e})),!this.component.data)return console.warn("Select component ".concat(this.key," does not have data configuration.")),void this.itemsLoadedResolve();if(this.checkConditions())switch(this.component.dataSrc){case"values":this.setItems(this.component.data.values);break;case"json":this.setItems(this.component.data.json);break;case"custom":this.updateCustomItems();break;case"resource":if(!this.component.data.resource||!t&&!this.active)return;var r=this.options.formio?this.options.formio.formsUrl:"".concat(i.default.getProjectUrl(),"/form");if(r+="/".concat(this.component.data.resource,"/submission"),t||this.additionalResourcesAvailable||this.dataValue.length&&!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;var a,s,l=this.component.data.url;if(l.startsWith("/")){var c=l.startsWith("/project")?i.default.getBaseUrl():i.default.getProjectUrl()||i.default.getBaseUrl();l=c+l}this.component.data.method?s="POST"===(a=this.component.data.method).toUpperCase()?this.component.data.body:null:a="GET";var f=this.component.authenticate?{}:{noToken:!0};this.loadItems(l,e,this.requestHeaders,f,a,s);break;case"indexeddb":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){o.default.isEmpty(n.component.indexeddb.filter)||(e=o.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.active||(this.activated=!0,this.choices?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...")),this.triggerUpdate())}},{key:"render",value:function(){var e=this.inputInfo,t=this.overlayOptions?{position:"fixed",display:"block",width:"400px",height:"100%",top:0,left:0,right:0,bottom:0,"z-index":2}:null;return e.attr=e.attr||{},e.multiple=this.component.multiple,k(P(d.prototype),"render",this).call(this,this.wrapElement(this.renderTemplate("select",{input:e,selectOptions:"",styles:t,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),n=this.component.customOptions||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){console.warn(e.message),n={}}return p({removeItemButton:!this.component.disabled&&o.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:o.default.get(this,"component.searchFields",["label"]),fuseOptions:Object.assign({},o.default.get(this,"component.fuseOptions",{}),{include:"score",threshold:o.default.get(this,"component.searchThreshold",.3)}),valueComparer:o.default.isEqual,resetScrollPosition:!1},n)}},{key:"attach",value:function(e){var t=this,n=k(P(d.prototype),"attach",this).call(this,e);this.loadRefs(e,{selectContainer:"single",addResource:"single",autocompleteInput:"single"});var a=this.refs.autocompleteInput;a&&this.addEventListener(a,"change",(function(e){t.setValue(e.target.value)}));var u=this.refs.selectContainer;if(u){if(this.addEventListener(u,this.inputInfo.changeEvent,(function(){return t.updateValue(null,{modified:!0})})),"html5"===this.component.widget)return this.triggerUpdate(),this.setItems(this.selectOptions||[]),this.focusableElement=u,this.addEventListener(u,"focus",(function(){return t.update()})),void this.addEventListener(u,"keydown",(function(e){var n=e.key;["Backspace","Delete"].includes(n)&&t.setValue(t.emptyValue)}));var l=u.tabIndex;this.addPlaceholder(),u.setAttribute("dir",this.i18next.dir()),this.choices&&this.choices.destroy();var c=this.choicesOptions();return this.choices=new r.default(u,c),this.addEventListener(u,"hideDropdown",(function(){t.choices.input.element.value="",t.updateItems(null,!0)})),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"),c.searchEnabled&&this.addEventListener(this.choices.containerOuter.element,"focus",(function(){return t.focusableElement.focus()}))),this.isInfiniteScrollProvided&&(this.scrollList=this.choices.choiceList.element,this.onScroll=function(){!t.isScrollLoading&&t.additionalResourcesAvailable&&t.scrollList.scrollTop+t.scrollList.clientHeight>=t.scrollList.scrollHeight&&(t.isScrollLoading=!0,t.choices.setChoices([{value:"".concat(t.id,"-loading"),label:"Loading...",disabled:!0}],"value","label"),t.triggerUpdate(t.choices.input.element.value))},this.addEventListener(this.scrollList,"scroll",this.onScroll)),this.focusableElement.setAttribute("tabIndex",l),this.component.searchField&&(this.choices&&this.choices.input&&this.choices.input.element&&this.addEventListener(this.choices.input.element,"input",(function(e){t.isFromSearch=!!e.target.value,e.target.value?(t.serverCount=null,t.downloadedResources=[]):t.triggerUpdate()})),this.addEventListener(u,"choice",(function(){t.component.multiple&&"resource"===t.component.dataSrc&&t.isFromSearch&&t.triggerUpdate(),t.isFromSearch=!1})),this.addEventListener(u,"search",(function(e){return t.triggerUpdate(e.detail.value)})),this.addEventListener(u,"stopSearch",(function(){return t.triggerUpdate()}))),this.addEventListener(u,"showDropdown",(function(){t.dataValue&&t.triggerUpdate(),t.update()})),c.placeholderValue&&this.choices._isSelectOneElement&&(this.addPlaceholderItem(c.placeholderValue),this.addEventListener(u,"removeItem",(function(){t.addPlaceholderItem(c.placeholderValue)}))),this.addValueOptions(),this.setChoicesValue(this.dataValue),this.isSelectResource&&this.refs.addResource&&this.addEventListener(this.refs.addResource,"click",(function(e){e.preventDefault();var n=t.ce("div"),r=t.createModal(n),a=o.default.get(t.root,"formio.projectUrl",i.default.getBaseUrl()),u="".concat(a,"/form/").concat(t.component.data.resource);new s.default(n,u,{}).ready.then((function(e){e.on("submit",(function(e){var n=t.valueProperty?o.default.get(e,t.valueProperty):e;t.component.multiple&&(n=[].concat(h(t.dataValue),[n])),t.setValue(n),t.triggerUpdate(),r.close()}))}))})),this.disabled=this.shouldDisabled,this.triggerUpdate(),n}}},{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:"addCurrentChoices",value:function(e,t,n){var r=this;if(!e)return!1;var i=[],a=e.reduce((function(e,a){if(!a||o.default.isEmpty(a))return e;var s=!1,u=t===r.selectOptions;return t&&t.length&&o.default.each(t,(function(e){if(e._id&&a._id&&e._id===a._id)return s=!0,!1;var t=n?e.value:r.itemValue(e,u);return!(s|=o.default.isEqual(t,a))})),s?s||e:(i.push({value:r.itemValue(a),label:r.itemTemplate(a)}),!0)}),!1);return i.length&&(this.choices?this.choices.setChoices(i,"value","label"):i.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)&&(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&&o.default.isObject(t.value)&&(e=t.value)}}else e=this.dataValue;return null==e&&(e=""),e}},{key:"redraw",value:function(){var e=k(P(d.prototype),"redraw",this).call(this);return this.triggerUpdate(),e}},{key:"normalizeSingleValue",value:function(e){if(!o.default.isNil(e)){if(o.default.isObject(e)&&0===Object.keys(e).length)return e;var t=this.isEntireObjectDisplay(),n=this.component.dataType||"auto",r={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!o.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 o.default.isObject(this.value)&&t&&(this.value=JSON.stringify(this.value)),this},auto:function(){return o.default.isObject(this.value)?this.value=this.object().value:this.value=this.string().number().boolean().value,this}};try{return r[n]().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)})):k(P(d.prototype),"normalizeValue",this).call(this,this.normalizeSingleValue(e))}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.dataValue,r=this.updateValue(e,t);e=this.dataValue;var i=Array.isArray(n)?n.length:n,a=Array.isArray(e)?e.length: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.loading)return r;if(this.isInitApiCallNeeded(a)){this.loading=!0,this.lazyLoadInit=!0;var s=this.component.searchField||this.component.valueProperty;return this.triggerUpdate(o.default.get(e.data||e,s,e),!0),r}return this.addValueOptions(),this.setChoicesValue(e,i),r}},{key:"isInitApiCallNeeded",value:function(e){return this.component.lazyLoad&&!this.lazyLoadInit&&!this.active&&!this.selectOptions.length&&e&&this.visible&&(this.component.searchField||this.component.valueProperty)}},{key:"setChoicesValue",value:function(e,t){var n=Array.isArray(e)?e.length:e;if(t=void 0===t||t,this.choices)if(n){this.choices.removeActiveItems();var r=Array.isArray(e)?e:[e];this.addCurrentChoices(r,this.selectOptions,!0)||this.choices.setChoices(this.selectOptions,"value","label",!0),this.choices.setChoiceByValue(e)}else t&&this.choices.removeActiveItems();else if(n){var i=Array.isArray(e)?e:[e];o.default.each(this.selectOptions,(function(e){o.default.each(i,(function(t){if(o.default.isEqual(t,e.value)&&e.element)return e.element.selected=!0,e.element.setAttribute("selected","selected"),!1}))}))}else o.default.each(this.selectOptions,(function(e){e.element&&(e.element.selected=!1,e.element.removeAttribute("selected"))}))}},{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=this,n=function(e,n){return n?(Array.isArray(e)?e.forEach((function(e){return e[n]=e[n].toString()})):e[n]=e[n].toString(),e):(t.isBooleanOrNumber(e)&&(e=e.toString()),Array.isArray(e)&&e.some((function(e){return t.isBooleanOrNumber(e)}))&&(e=e.map((function(e){t.isBooleanOrNumber(e)&&(e=e.toString())}))),e)};if(e=n(e=e||this.getValue()),["values","custom"].includes(this.component.dataSrc)){var r="values"===this.component.dataSrc?{items:n(this.getNormalizedValues(),"value"),valueProperty:"value"}:{items:n(this.getCustomItems(),this.valueProperty),valueProperty:this.valueProperty},i=r.items,a=r.valueProperty;e=this.component.multiple&&Array.isArray(e)?o.default.filter(i,(function(t){return e.includes(t.value)})):a?o.default.find(i,[a,e]):e}if(o.default.isString(e))return e;if(Array.isArray(e)){var s=[];return e.forEach((function(e){return s.push(t.itemTemplate(e))})),s.length>0?s.join("<br />"):"-"}return o.default.isNil(e)?"-":this.itemTemplate(e)}},{key:"detach",value:function(){k(P(d.prototype),"detach",this).call(this),this.choices&&(this.choices.destroy(),this.choices=null)}},{key:"focus",value:function(){this.focusableElement&&(k(P(d.prototype),"focus",this).call(this),this.focusableElement.focus())}},{key:"setErrorClasses",value:function(e,t,n){k(P(d.prototype),"setErrorClasses",this).call(this,e,t,n),this.choices?k(P(d.prototype),"setErrorClasses",this).call(this,[this.choices.containerInner.element],t,n):k(P(d.prototype),"setErrorClasses",this).call(this,[this.refs.selectContainer],t,n)}},{key:"dataReady",get:function(){return this.itemsLoaded}},{key:"defaultSchema",get:function(){return d.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?o.default.get(t,this.valueProperty):t)&&"string"==typeof e?"":{}}return this.valueProperty?"":{}}},{key:"overlayOptions",get:function(){return this.parent&&this.parent.component&&"table"===this.parent.component.type}},{key:"valueProperty",get:function(){return this.component.valueProperty?this.component.valueProperty:"values"===this.component.dataSrc?"value":""}},{key:"inputInfo",get:function(){var e=k(P(d.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:"isInfiniteScrollProvided",get:function(){return this.isSelectResource||this.isSelectURL}},{key:"shouldDisabled",get:function(){return k(P(d.prototype),"shouldDisabled",this)||this.parentDisabled}},{key:"requestHeaders",get:function(){var e=this,t=new i.default.Headers;if(this.component.data&&this.component.data.headers)try{o.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:"additionalResourcesAvailable",get:function(){return o.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:"active",get:function(){return!this.component.lazyLoad||this.activated||this.options.readOnly}},{key:"disabled",set:function(e){g(P(d.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()))},get:function(){return k(P(d.prototype),"disabled",this)}},{key:"visible",set:function(e){e&&!this._visible!=!e&&this.triggerUpdate(),g(P(d.prototype),"visible",e,this,!0)},get:function(){return k(P(d.prototype),"visible",this)}}])&&v(t.prototype,n),c&&v(t,c),d}(a.default);t.default=j},function(e,t,n){
  54. /*! choices.js v9.0.1 | © 2019 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
  55. var r;window,r=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 u(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}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):u(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 c=l;e.exports=c},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){
  56. /*!
  57. * Fuse.js v3.4.5 - Lightweight fuzzy-search (http://fusejs.io)
  58. *
  59. * Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)
  60. * All Rights Reserved. Apache Software License 2.0
  61. *
  62. * http://www.apache.org/licenses/LICENSE-2.0
  63. */
  64. 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"}),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),u=function(){function e(t,n){var r=n.location,o=void 0===r?0:r,i=n.distance,s=void 0===i?100:i,u=n.threshold,l=void 0===u?.6:u,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,y=n.findAllMatches,v=void 0!==y&&y,b=n.minMatchCharLength,g=void 0===b?1:b,w=n.id,k=void 0===w?null:w,_=n.keys,O=void 0===_?[]:_,S=n.shouldSort,x=void 0===S||S,P=n.getFn,j=void 0===P?a:P,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,L=void 0!==D&&D,I=n.includeScore,V=void 0!==I&&I,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:l,maxPatternLength:f,isCaseSensitive:p,tokenSeparator:m,findAllMatches:v,minMatchCharLength:g,id:k,keys:O,includeMatches:L,includeScore:V,shouldSort:x,getFn:j,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={},u=0,l=n.length;u<l;u+=1)for(var c=n[u],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:u},{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,u=e.index,l=t.tokenSearchers,c=void 0===l?[]:l,f=t.fullSearcher,d=void 0===f?[]:f,p=t.resultMap,h=void 0===p?{}:p,m=t.results,y=void 0===m?[]:m;if(null!=i){var v=!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 S=c[O];this._log('\nPattern: "'.concat(S.pattern,'"'));for(var x=!1,P=0;P<k.length;P+=1){var j=k[P],C=S.search(j),E={};C.isMatch?(E[j]=C.score,v=!0,x=!0,_.push(C.score)):(E[j]=1,this.options.matchAllTokens||_.push(1)),this._log('Token: "'.concat(j,'", score: ').concat(E[j]))}x&&(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)),(v||w.isMatch)&&T){var D=h[u];D?D.output.push({key:n,arrayIndex:o,value:i,score:R,matchedIndices:w.matchedIndices}):(h[u]={item:a,output:[{key:n,arrayIndex:o,value:i,score:R,matchedIndices:w.matchedIndices}]},y.push(h[u]))}}else if(s(i))for(var L=0,I=i.length;L<I;L+=1)this._analyze({key:n,arrayIndex:L,value:i[L],record:a,index:u},{resultMap:h,results:y,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,u=0;u<i;u+=1){var l=e?e[o[u].key].weight:1,c=(1===l?o[u].score:o[u].score||.001)*l;1!==l?s=Math.min(s,c):(o[u].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 u={item:s.item},l=0,c=o.length;l<c;l+=1)o[l](s,u);t.push(u)}else t.push(s.item)}return t}},{key:"_log",value:function(){var e;this.options.verbose&&(e=console).log.apply(e,arguments)}}])&&o(t.prototype,n),e}();e.exports=u},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,u=n.threshold,l=void 0===u?.6:u,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,y=n.findAllMatches,v=void 0!==y&&y,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:l,maxPatternLength:f,isCaseSensitive:p,tokenSeparator:m,findAllMatches:v,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,u=a.distance,l=a.threshold,c=a.findAllMatches,f=a.minMatchCharLength;return i(e,this.pattern,this.patternAlphabet,{location:s,distance:u,threshold:l,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 u=0,l=i.length;u<l;u+=1){var c=i[u];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,u=i.distance,l=void 0===u?100:u,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,y=s,v=e.length,b=f,g=e.indexOf(t,y),w=t.length,k=[],_=0;_<v;_+=1)k[_]=0;if(-1!==g){var O=r(t,{errors:0,currentLocation:g,expectedLocation:y,distance:l});if(b=Math.min(O,b),-1!==(g=e.lastIndexOf(t,y+w))){var S=r(t,{errors:0,currentLocation:g,expectedLocation:y,distance:l});b=Math.min(S,b)}}g=-1;for(var x=[],P=1,j=w+v,C=1<<w-1,E=0;E<w;E+=1){for(var A=0,M=j;A<M;)r(t,{errors:E,currentLocation:y+M,expectedLocation:y,distance:l})<=b?A=M:j=M,M=Math.floor((j-A)/2+A);j=M;var R=Math.max(1,y-M+1),T=p?v:Math.min(y+M,v)+w,D=Array(T+2);D[T+1]=(1<<E)-1;for(var L=T;L>=R;L-=1){var I=L-1,V=n[e.charAt(I)];if(V&&(k[I]=1),D[L]=(D[L+1]<<1|1)&V,0!==E&&(D[L]|=(x[L+1]|x[L])<<1|1|x[L+1]),D[L]&C&&(P=r(t,{errors:E,currentLocation:I,expectedLocation:y,distance:l}))<=b){if(b=P,(g=I)<=y)break;R=Math.max(1,2*y-g)}}if(r(t,{errors:E+1,currentLocation:y,expectedLocation:y,distance:l})>b)break;x=D}return{isMatch:g>=0,score:0===P?.001:P,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,u=t.distance,l=void 0===u?100:u,c=r/e.length,f=Math.abs(s-i);return l?c+f/l: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 u=t[a];if(null!=u)if(s||"string"!=typeof u&&"number"!=typeof u)if(r(u))for(var l=0,c=u.length;l<c;l+=1)e(u[l],s,o);else s&&e(u,s,o);else o.push(u.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),u=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};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(). 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=[],u=a,d=!1;function p(){u===a&&(u=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(),u.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=u.indexOf(e);u.splice(n,1)}}}function y(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=u,n=0;n<t.length;n++)(0,t[n])();return e}function v(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,y({type:l.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 y({type:l.INIT}),(r={dispatch:y,subscribe:m,getState:h,replaceReducer:v})[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=[],y=[],v={loading:!1},b=function(e,t){switch(void 0===e&&(e=v),t.type){case"SET_IS_LOADING":return{loading:t.isLoading};default:return e}},g=function(e){return Array.from({length:e},(function(){return(e=0,t=36,Math.floor(Math.random()*(t-e)+e)).toString(36);var e,t})).join("")},w=function(e){return Object.prototype.toString.call(e).slice(8,-1)},k=function(e,t){return null!=t&&w(t)===e},_=function(e){return"string"!=typeof e?e:e.replace(/&/g,"&amp;").replace(/>/g,"&rt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")},O=(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}),S=function(e,t){return e.score-t.score},x=function(e){return JSON.parse(JSON.stringify(e))},P=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:l.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:l.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+l.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 u=a[s],l=n[u],c=e[u],f=l(c,t);if(void 0===f){var p=d(u,t);throw new Error(p)}o[u]=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=y),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})):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 y;default:return e}},general:b}),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 P(n,t)};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)}}var E=function(){function e(){this._store=f(j,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}var t,n,r,o=e.prototype;return o.subscribe=function(e){this._store.subscribe(e)},o.dispatch=function(e){this._store.dispatch(e)},o.isLoading=function(){return this.state.general.loading},o.getChoiceById=function(e){return this.activeChoices.find((function(t){return t.id===parseInt(e,10)}))},o.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}),[])}}])&&C(t.prototype,n),r&&C(t,r),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 M=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,o=e.prototype;return o.getChild=function(e){return this.element.querySelector(e)},o.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},o.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}}])&&A(t.prototype,n),r&&A(t,r),e}(),R={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})},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>"'+_(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"}},T="showDropdown",D="hideDropdown",L="change",I="choice",V="search",N="addItem",F="removeItem",U="highlightItem",z="highlightChoice",B="ADD_CHOICE",H="FILTER_CHOICES",q="ACTIVATE_CHOICES",W="CLEAR_CHOICES",Y="ADD_GROUP",K="ADD_ITEM",G="REMOVE_ITEM",J="HIGHLIGHT_ITEM",Z=46,X=8,$=13,Q=65,ee=27,te=38,ne=40,re=33,oe=34,ie=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","false"),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"),"select-one"===this.type&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},t.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),"select-one"===this.type&&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 ae(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 se=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,o=e.prototype;return o.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})},o.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})},o.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},o.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},o.focus=function(){this.isFocussed||this.element.focus()},o.blur=function(){this.isFocussed&&this.element.blur()},o.clear=function(e){return void 0===e&&(e=!0),this.element.value&&(this.element.value=""),e&&this.setWidth(),this},o.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"},o.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},o.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},o._onInput=function(){"select-one"!==this.type&&this.setWidth()},o._onPaste=function(e){this.preventPaste&&e.preventDefault()},o._onFocus=function(){this.isFocussed=!0},o._onBlur=function(){this.isFocussed=!1},t=e,(n=[{key:"placeholder",set:function(e){this.element.placeholder=e}},{key:"value",get:function(){return _(this.element.value)},set:function(e){this.element.value=e}}])&&ae(t.prototype,n),r&&ae(t,r),e}(),ue=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 le(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 ce=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,o=e.prototype;return o.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")},o.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},o.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},o.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},o.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}}])&&le(t.prototype,n),r&&le(t,r),e}();function fe(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 de=function(e){var t,n,r,o,i;function a(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=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r=a,(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}}])&&fe(r.prototype,o),i&&fe(r,i),a}(ce);function pe(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 he=function(e){var t,n,r,o,i;function a(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=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.prototype.appendDocFragment=function(e){this.element.innerHTML="",this.element.appendChild(e)},r=a,(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)}}])&&pe(r.prototype,o),i&&pe(r,i),a}(ce),me={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","false"),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,u=t.id,l=t.value,c=t.label,f=t.customProperties,d=t.active,p=t.disabled,h=t.highlighted,m=t.placeholder,y=Object.assign(document.createElement("div"),{className:r,innerHTML:c});if(Object.assign(y.dataset,{item:"",id:u,value:l,customProperties:f}),d&&y.setAttribute("aria-selected","true"),p&&y.setAttribute("aria-disabled","true"),m&&y.classList.add(s),y.classList.add(h?i:a),n){p&&y.classList.remove(a),y.dataset.deletable="";var v=Object.assign(document.createElement("button"),{type:"button",className:o,innerHTML:"Remove item"});v.setAttribute("aria-label","Remove item: '"+l+"'"),v.dataset.button="",y.appendChild(v)}return y},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,u=Object.assign(document.createElement("div"),{className:n+" "+(s?o:"")});return u.setAttribute("role","group"),Object.assign(u.dataset,{group:"",id:i,value:a}),s&&u.setAttribute("aria-disabled","true"),u.appendChild(Object.assign(document.createElement("div"),{className:r,innerHTML:a})),u},choice:function(e,t,n){var r=e.item,o=e.itemChoice,i=e.itemSelectable,a=e.selectedState,s=e.itemDisabled,u=e.placeholder,l=t.id,c=t.value,f=t.label,d=t.groupId,p=t.elementId,h=t.disabled,m=t.selected,y=t.placeholder,v=Object.assign(document.createElement("div"),{id:p,innerHTML:f,className:r+" "+o});return m&&v.classList.add(a),y&&v.classList.add(u),v.setAttribute("role",d>0?"treeitem":"option"),Object.assign(v.dataset,{choice:"",id:l,value:c,selectText:n}),h?(v.classList.add(s),v.dataset.choiceDisabled="",v.setAttribute("aria-disabled","true")):(v.classList.add(i),v.dataset.choiceSelectable=""),v},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}},ye=function(e){return void 0===e&&(e=!0),{type:q,active:e}},ve=function(e,t){return{type:J,id:e,highlighted:t}},be=function(e){var t=e.value,n=e.id,r=e.active,o=e.disabled;return{type:Y,value:t,id:n,active:r,disabled:o}},ge=function(e){return{type:"SET_IS_LOADING",isLoading:e}};function we(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 ke="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,_e={},Oe=function(){var e,t,n;function r(e,t){var n=this;void 0===e&&(e="[data-choice]"),void 0===t&&(t={}),this.config=a.a.all([R,r.defaults.options,t],{arrayMerge:function(e,t){return[].concat(t)}});var o,i,s,u,l=(o=this.config,i=R,s=Object.keys(o).sort(),u=Object.keys(i).sort(),s.filter((function(e){return u.indexOf(e)<0})));l.length&&console.warn("Unknown config option(s) passed",l.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="select-one"===c.type,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.renderSelectedChoices)||(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 de({element:c,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new he({element:c,classNames:this.config.classNames,template:function(e){return n._templates.option(e)}}),this.initialised=!1,this._store=new E,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){var n=e.id||e.name&&e.name+"-"+g(2)||g(4);return n=t+"-"+(n=n.replace(/(:|\.|\[|\]|,)/g,""))}(this.passedElement.element,"choices-"),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){n._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=r,n=[{key:"defaults",get:function(){return Object.preventExtensions({get options(){return _e},get templates(){return me}})}}],(t=null)&&we(e.prototype,t),n&&we(e,n);var i=r.prototype;return i.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)}},i.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)},i.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},i.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},i.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,u=void 0===s?"":s,l=o>=0?this._store.getGroupById(o):null;return this._store.dispatch(ve(n,!0)),t&&this.passedElement.triggerEvent(U,{id:n,value:a,label:u,groupValue:l&&l.value?l.value:null}),this},i.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,u=r>=0?this._store.getGroupById(r):null;return this._store.dispatch(ve(t,!1)),this.passedElement.triggerEvent(U,{id:t,value:i,label:s,groupValue:u&&u.value?u.value:null}),this},i.highlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.highlightItem(t)})),this},i.unhighlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.unhighlightItem(t)})),this},i.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},i.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},i.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},i.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(T,{})})),this},i.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(D,{})})),this):this},i.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},i.setValue=function(e){var t=this;return this.initialised?(e.forEach((function(e){return t._setChoiceOrItem(e)})),this):this},i.setChoiceByValue=function(e){var t=this;return!this.initialised||this._isTextElement||(Array.isArray(e)?e:[e]).forEach((function(e){return t._findAndSelectChoiceByValue(e)})),this},i.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},i.clearChoices=function(){return this._store.dispatch({type:W}),this},i.clearStore=function(){return this._store.dispatch({type:"CLEAR_ALL"}),this},i.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch(ye(!0))),this},i._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)}},i._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 u,l;this._isSearching?(l="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,u=this._getTemplate("notice",l,"no-results")):(l="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,u=this._getTemplate("notice",l,"no-choices")),this.choiceList.append(u)}},i._renderItems=function(){var e=this._store.activeItems||[];this.itemList.clear();var t=this._createItemsFragment(e);t.childNodes&&this.itemList.append(t)},i._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},i._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,u=this._isSearching?S:this.config.sorter,l=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(u);var h=c.length,m=this._isSelectOneElement?[].concat(d,p):p;this._isSearching?h=a:s&&s>0&&!n&&(h=s);for(var y=0;y<h;y+=1)m[y]&&l(m[y]);return t},i._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},i._triggerChange=function(e){null!=e&&this.passedElement.triggerEvent(L,{value:e})},i._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))},i._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()}},i._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()}},i._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(I,{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,keyCode:r.keyCode}),this._triggerChange(r.value)),this.clearInput(),i&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},i._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))}},i._startLoading=function(){this._store.dispatch(ge(!0))},i._stopLoading=function(){this._store.dispatch(ge(!1))},i._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||"")},i._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(V,{value:e,resultCount:a})}else i&&(this._isSearching=!1,this._store.dispatch(ye(!0)))}},i._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}},i._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}),u=new o.a(r,s).search(i);return this._currentValue=t,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch(function(e){return{type:H,results:e}}(u)),u.length},i._addEventListeners=function(){var e=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()},i._removeEventListeners=function(){var e=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()},i._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,u=this.dropdown.isActive,l=this.itemList.hasChildren(),c=String.fromCharCode(r),f=Z,d=X,p=$,h=Q,m=ee,y=te,v=ne,b=re,g=oe,w=o||i;!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(c)&&this.showDropdown();var k=((t={})[h]=this._onAKey,t[p]=this._onEnterKey,t[m]=this._onEscapeKey,t[y]=this._onDirectionKey,t[b]=this._onDirectionKey,t[v]=this._onDirectionKey,t[g]=this._onDirectionKey,t[d]=this._onDeleteKey,t[f]=this._onDeleteKey,t);k[r]&&k[r]({event:e,target:n,keyCode:r,metaKey:i,activeItems:a,hasFocusedInput:s,hasActiveDropdown:u,hasItems:l,hasCtrlDownKeyPressed:w})},i._onKeyUp=function(e){var t=e.target,n=e.keyCode,r=this.input.value,o=this._store.activeItems,i=this._canAddItem(o,r),a=Z,s=X;if(this._isTextElement)if(i.notice&&r){var u=this._getTemplate("notice",i.notice);this.dropdown.element.innerHTML=u.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var l=(n===a||n===s)&&!t.value,c=!this._isTextElement&&this._isSearching,f=this._canSearch&&i.response;l&&c?(this._isSearching=!1,this._store.dispatch(ye(!0))):f&&this._handleSearch(this.input.value)}this._canSearch=this.config.searchEnabled},i._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())},i._onEnterKey=function(e){var t=e.event,n=e.target,r=e.activeItems,o=e.hasActiveDropdown,i=$,a=n.hasAttribute("data-button");if(this._isTextElement&&n.value){var s=this.input.value;this._canAddItem(r,s).response&&(this.hideDropdown(!0),this._addItem({value:s}),this._triggerChange(s),this.clearInput())}if(a&&(this._handleButtonAction(r,n),t.preventDefault()),o){var u=this.dropdown.getChild("."+this.config.classNames.highlightedState);u&&(r[0]&&(r[0].keyCode=i),this._handleChoiceAction(r,u)),t.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),t.preventDefault())},i._onEscapeKey=function(e){e.hasActiveDropdown&&(this.hideDropdown(!0),this.containerOuter.focus())},i._onDirectionKey=function(e){var t,n,r,o=e.event,i=e.hasActiveDropdown,a=e.keyCode,s=e.metaKey,u=ne,l=re,c=oe;if(i||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var f,d=a===u||a===c?1:-1;if(s||a===c||a===l)f=d>0?this.dropdown.element.querySelector("[data-choice-selectable]:last-of-type"):this.dropdown.element.querySelector("[data-choice-selectable]");else{var p=this.dropdown.element.querySelector("."+this.config.classNames.highlightedState);f=p?function(e,t,n){if(void 0===n&&(n=1),e instanceof Element&&"string"==typeof t){for(var r=(n>0?"next":"previous")+"ElementSibling",o=e[r];o;){if(o.matches(t))return o;o=o[r]}return o}}(p,"[data-choice-selectable]",d):this.dropdown.element.querySelector("[data-choice-selectable]")}f&&(t=f,n=this.choiceList.element,void 0===(r=d)&&(r=1),t&&(r>0?n.scrollTop+n.offsetHeight>=t.offsetTop+t.offsetHeight:t.offsetTop>=n.scrollTop)||this.choiceList.scrollToChildElement(f,d),this._highlightChoice(f)),o.preventDefault()}},i._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())},i._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},i._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},i._onMouseDown=function(e){var t=e.target;if(t instanceof HTMLElement){if(ke&&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()}}},i._onMouseOver=function(e){var t=e.target;t instanceof HTMLElement&&"choice"in t.dataset&&this._highlightChoice(t)},i._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))},i._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]()},i._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()},i._onFormReset=function(){this._store.dispatch({type:"RESET_TO",state:this._initialState})},i._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)).forEach((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(z,{el:r}),this.dropdown.isActive&&(this.input.setActiveDescendant(r.id),this.containerOuter.setActiveDescendant(r.id))}},i._addItem=function(e){var t=e.value,n=e.label,r=void 0===n?null:n,o=e.choiceId,i=void 0===o?-1:o,a=e.groupId,s=void 0===a?-1:a,u=e.customProperties,l=void 0===u?null:u,c=e.placeholder,f=void 0!==c&&c,d=e.keyCode,p=void 0===d?null:d,h="string"==typeof t?t.trim():t,m=p,y=l,v=this._store.items,b=r||h,g=i||-1,w=s>=0?this._store.getGroupById(s):null,k=v?v.length+1:1;return this.config.prependValue&&(h=this.config.prependValue+h.toString()),this.config.appendValue&&(h+=this.config.appendValue.toString()),this._store.dispatch(function(e){var t=e.value,n=e.label,r=e.id,o=e.choiceId,i=e.groupId,a=e.customProperties,s=e.placeholder,u=e.keyCode;return{type:K,value:t,label:n,id:r,choiceId:o,groupId:i,customProperties:a,placeholder:s,keyCode:u}}({value:h,label:b,id:k,choiceId:g,groupId:s,customProperties:l,placeholder:f,keyCode:m})),this._isSelectOneElement&&this.removeActiveItems(k),this.passedElement.triggerEvent(N,{id:k,value:h,label:b,customProperties:y,groupValue:w&&w.value?w.value:void 0,keyCode:m}),this},i._removeItem=function(e){if(!e||!k("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:G,id:e,choiceId:t}}(t,o)),a&&a.value?this.passedElement.triggerEvent(F,{id:t,value:n,label:r,groupValue:a.value}):this.passedElement.triggerEvent(F,{id:t,value:n,label:r}),this},i._addChoice=function(e){var t=e.value,n=e.label,r=void 0===n?null:n,o=e.isSelected,i=void 0!==o&&o,a=e.isDisabled,s=void 0!==a&&a,u=e.groupId,l=void 0===u?-1:u,c=e.customProperties,f=void 0===c?null:c,d=e.placeholder,p=void 0!==d&&d,h=e.keyCode,m=void 0===h?null:h;if(null!=t){var y=this._store.choices,v=r||t,b=y?y.length+1:1,g=this._baseId+"-"+this._idNames.itemChoice+"-"+b;this._store.dispatch(function(e){var t=e.value,n=e.label,r=e.id,o=e.groupId,i=e.disabled,a=e.elementId,s=e.customProperties,u=e.placeholder,l=e.keyCode;return{type:B,value:t,label:n,id:r,groupId:o,disabled:i,elementId:a,customProperties:s,placeholder:u,keyCode:l}}({id:b,groupId:l,elementId:g,value:t,label:v,disabled:s,customProperties:f,placeholder:p,keyCode:m})),i&&this._addItem({value:t,label:v,choiceId:b,customProperties:f,placeholder:p,keyCode:m})}},i._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,u=k("Object",n)?n.choices:Array.from(n.getElementsByTagName("OPTION")),l=r||Math.floor((new Date).valueOf()*Math.random()),c=!!n.disabled&&n.disabled;u?(this._store.dispatch(be({value:n.label,id:l,active:!0,disabled:c})),u.forEach((function(e){var n=e.disabled||e.parentNode&&e.parentNode.disabled;t._addChoice({value:e[i],label:k("Object",e)?e[s]:e.innerHTML,isSelected:e.selected,isDisabled:n,groupId:l,customProperties:e.customProperties,placeholder:e.placeholder})}))):this._store.dispatch(be({value:n.label,id:n.id,active:!1,disabled:n.disabled}))},i._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))},i._createTemplates=function(){var e=this.config.callbackOnCreateTemplates,t={};e&&"function"==typeof e&&(t=e.call(this,O)),this._templates=a()(me,t)},i._createElements=function(){this.containerOuter=new ie({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 ie({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new se({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new ue({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new ue({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new M({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},i._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)},i._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})}))},i._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,u=e.placeholder;if(t._isSelectElement)if(e.choices)t._addGroup({group:e,id:e.id||null});else{var l=!(!t._isSelectOneElement||n||o!==r)||e.selected,c=e.disabled;t._addChoice({value:i,label:a,isSelected:l,isDisabled:c,customProperties:s,placeholder:u})}else t._addChoice({value:i,label:a,isSelected:e.selected,isDisabled:e.disabled,customProperties:s,placeholder:u})}))},i._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})}))},i._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})}})[w(e).toLowerCase()]()},i._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})},i._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},r}();t.default=Oe}]).default},e.exports=r()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(11)),o=s(n(867)),i=s(n(191)),a=s(n(1003));function s(e){return e&&e.__esModule?e:{default: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 l=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,o;return t=e,o=[{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}}],(n=null)&&u(t.prototype,n),o&&u(t,o),e}();t.default=l,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(l,"builders",{pdf:o.default,webform:i.default,wizard:a.default})},function(e,t,n){var r=n(94),o=n(38),i=n(42),a=n(36).f,s=n(93),u=n(870),l=s("meta"),c=0,f=Object.isExtensible||function(){return!0},d=function(e){a(e,l,{value:{objectID:"O"+ ++c,weakData:{}}})},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,l)){if(!f(e))return"F";if(!t)return"E";d(e)}return e[l].objectID},getWeakData:function(e,t){if(!i(e,l)){if(!f(e))return!0;if(!t)return!1;d(e)}return e[l].weakData},onFreeze:function(e){return u&&p.REQUIRED&&f(e)&&!i(e,l)&&d(e),e}};r[l]=!0},function(e,t,n){var r=n(43),o=n(155),i=n(33),a=n(98),s=n(156),u=n(211),l=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,c,f){var d,p,h,m,y,v,b,g=a(t,n,c?2:1);if(f)d=e;else{if("function"!=typeof(p=s(e)))throw TypeError("Target is not iterable");if(o(p)){for(h=0,m=i(e.length);m>h;h++)if((y=c?g(r(b=e[h])[0],b[1]):g(e[h]))&&y instanceof l)return y;return new l(!1)}d=p.call(e)}for(v=d.next;!(b=v.call(d)).done;)if("object"==typeof(y=u(d,g,b.value,c))&&y&&y instanceof l)return y;return new l(!1)}).stop=function(e){return new l(!0,e)}},function(e,t,n){"use strict";n(0),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:i.default},{key:"data",components:o.default},{key:"validation",components:a.default}]].concat(t))};var r=s(n(27)),o=s(n(961)),i=s(n(962)),a=s(n(963));function s(e){return e&&e.__esModule?e:{default:e}}},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})(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}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 u(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?l(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(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)}n.r(t);var h={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)}},m=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,e),this.init(t,n)}return u(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||h,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,i({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),y=function(){function e(){a(this,e),this.observers={}}return u(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 v(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function b(e){return null==e?"":""+e}function g(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function w(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=e[a]}return o()?{}:{obj:e,k:r(i.shift())}}function k(e,t,n){var r=w(e,t,Object);r.obj[r.k]=n}function _(e,t){var n=w(e,t),r=n.obj,o=n.k;if(r)return r[o]}function O(e,t,n){var r=_(e,n);return void 0!==r?r:_(t,n)}function S(e,t,n){for(var r in t)"__proto__"!==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]):S(e[r],t[r],n):e[r]=t[r]);return e}function x(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var P={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function j(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return P[e]})):e}var C="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,E=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return a(this,t),n=c(this,f(t).call(this)),C&&y.call(l(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return p(t,e),u(t,[{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=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),_(this.data,i)}},{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),k(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 a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var u=_(this.data,s)||{};r?S(u,n,o):u=i({},u,n),k(this.data,s,u),a.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?i({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(y),A={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}},M={},R=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(this,t),n=c(this,f(t).call(this)),C&&y.call(l(n)),g(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,l(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=m.create("translator"),n}return p(t,e),u(t,[{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:{}},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;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,n){var o=this;if("object"!==r(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),u=s.key,l=s.namespaces,c=l[l.length-1],f=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(d){var p=t.nsSeparator||this.options.nsSeparator;return c+p+u}return u}var h=this.resolve(e,t),m=h&&h.res,y=h&&h.usedKey||u,v=h&&h.exactUsedKey||u,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.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,m,t):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(a){var O="[object Array]"===b,S=O?[]:{},x=O?v:y;for(var P in m)if(Object.prototype.hasOwnProperty.call(m,P)){var j="".concat(x).concat(a).concat(P);S[P]=this.translate(j,i({},t,{joinArrays:!1,ns:l})),S[P]===j&&(S[P]=m[P])}m=S}}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;if(!this.isValidLookup(m)&&void 0!==t.defaultValue){if(C=!0,void 0!==t.count){var A=this.pluralResolver.getSuffix(f,t.count);m=t["defaultValue".concat(A)]}m||(m=t.defaultValue)}this.isValidLookup(m)||(E=!0,m=u);var M=t.defaultValue&&t.defaultValue!==m&&this.options.updateMissing;if(E||C||M){if(this.logger.log(M?"updateKey":"missingKey",f,c,u,M?t.defaultValue:m),a){var R=this.resolve(u,i({},t,{keySeparator:!1}));R&&R.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 T=[],D=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&D&&D[0])for(var L=0;L<D.length;L++)T.push(D[L]);else"all"===this.options.saveMissingTo?T=this.languageUtils.toResolveHierarchy(t.lng||this.language):T.push(t.lng||this.language);var I=function(e,n){o.options.missingKeyHandler?o.options.missingKeyHandler(e,c,n,M?t.defaultValue:m,M,t):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,c,n,M?t.defaultValue:m,M,t),o.emit("missingKey",e,c,n,m)};if(this.options.saveMissing){var V=void 0!==t.count&&"string"!=typeof t.count;this.options.saveMissingPlurals&&V?T.forEach((function(e){o.pluralResolver.getPluralFormsOfKey(e,u).forEach((function(t){return I([e],t)}))})):I(T,u)}}m=this.extendTranslation(m,e,t,h,n),E&&m===u&&this.options.appendNamespaceToMissingKey&&(m="".concat(c,":").concat(u)),E&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(m))}return m}},{key:"extendTranslation",value:function(e,t,n,r,o){var a=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(i({},n,{interpolation:i({},this.options.interpolation,n.interpolation)}));var s,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var l=e.match(this.interpolator.nestingRegexp);s=l&&l.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=i({},this.options.interpolation.defaultVariables,c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),u){var f=e.match(this.interpolator.nestingRegexp);s<(f&&f.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return o&&o[0]===n[0]?(a.logger.warn("It seems you are nesting recursively key: ".concat(n[0]," in key: ").concat(t[0])),null):a.translate.apply(a,n.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=A.handle(p,e,t,this.options&&this.options.postProcessPassResolved?i({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 u=a.extractFromKey(e,s),l=u.key;n=l;var c=u.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,d=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!M["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(M["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.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!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,u,c=l,p=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(p,l,n,e,s);else f&&(i=a.pluralResolver.getSuffix(n,s.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(s.context)),f&&p.push(c+=i);for(;u=p.pop();)a.isValidLookup(t)||(r=u,t=a.getResource(n,e,u,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)}}]),t}(y);function T(e){return e.charAt(0).toUpperCase()+e.slice(1)}var D=function(){function e(t){a(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=m.create("languageUtils")}return u(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]=T(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]=T(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=T(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(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("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}(),L=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","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","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","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}],I={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)}};function V(){var e={};return L.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:I[t.fc]}}))})),e}var N=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,e),this.languageUtils=t,this.options=n,this.logger=m.create("pluralResolver"),this.rules=V()}return u(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=this,r=[],o=this.getRule(e);return o?(o.numbers.forEach((function(o){var i=n.getSuffix(e,o);r.push("".concat(t).concat(i))})),r):r}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),F=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(this,e),this.logger=m.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return u(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:j,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?x(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?x(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?x(t.nestingPrefix):t.nestingPrefixEscaped||x("$t("),this.nestingSuffix=t.nestingSuffix?x(t.nestingSuffix):t.nestingSuffixEscaped||x(")"),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,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0){var o=O(t,u,e);return s.alwaysFormat?s.format(o,void 0,n):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),l=i.join(s.formatSeparator).trim();return s.format(O(t,u,a),l,n,r)};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 l(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?l(s.escape(e)):l(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=b(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=i({},a);function u(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,s)).replace(/'/g,'"');try{s=JSON.parse(o),t&&(s=i({},t,s))}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 s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=f.shift(),l=f,c=!0}if((r=t(u.call(this,n[1].trim(),s),s))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=b(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=l.reduce((function(e,t){return o.format(e,t,a.lng,a)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();var U=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return a(this,t),o=c(this,f(t).call(this)),C&&y.call(l(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=m.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return p(t,e),u(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],s=[],u=[];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),u.indexOf(t)<0&&u.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:u}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&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,u,l,c,f;r=n.loaded,s=i,l=w(r,[o],Object),c=l.obj,f=l.k,c[f]=c[f]||[],u&&(c[f]=c[f].concat(s)),u||c[f].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,u){s&&u&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(s,u)})):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 a=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,i({},a,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(y);function z(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!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"===r(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===r(e[2])||"object"===r(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:!1}}}function B(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.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function H(){}var q=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(a(this,t),e=c(this,f(t).call(this)),C&&y.call(l(e)),e.options=B(n),e.services={},e.logger=m,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),c(e,l(e));setTimeout((function(){e.init(n,r)}),0)}return e}return p(t,e),u(t,[{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 r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},z(),this.options,B(t)),this.format=this.options.interpolation.format,n||(n=H),!this.options.isClone){this.modules.logger?m.init(r(this.modules.logger),this.options):m.init(null,this.options);var o=new D(this.options);this.store=new E(this.options.resources,this.options);var a=this.services;a.logger=m,a.resourceStore=this.store,a.languageUtils=o,a.pluralResolver=new N(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new F(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new U(r(this.modules.backend),a.resourceStore,a,this.options),a.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&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new R(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)}))}this.modules.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var s=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=v(),c=function(){e.changeLanguage(e.options.lng,(function(t,r){e.isInitialized=!0,e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)}))};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H,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=v();return e||(e=this.languages),t||(t=this.options.ns),n||(n=H),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&&A.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=v();this.emit("languageChanging",e);var o=function(e){var o="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,o=function e(t,o){var a;if("object"!==r(o)){for(var s=arguments.length,u=new Array(s>2?s-2:0),l=2;l<s;l++)u[l-2]=arguments[l];a=n.options.overloadTranslationOptionHandler([t,o].concat(u))}else a=i({},o);return a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,n.t(t,a)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,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;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=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=v();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=v();"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){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["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"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H,o=i({},this.options,n,{isClone:!0}),a=new t(o),s=["store","services","language"];return s.forEach((function(t){a[t]=e[t]})),a.services=i({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new R(a.services,a.options),a.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];a.emit.apply(a,[e].concat(n))})),a.init(o,r),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}}]),t}(y));t.default=q},function(e,t,n){"use strict";(function(e){
  65. /**!
  66. * @fileOverview Kickass library to create and place poppers near their reference elements.
  67. * @version 1.16.1
  68. * @license
  69. * Copyright (c) 2016 Federico Zivolo and contributors
  70. *
  71. * Permission is hereby granted, free of charge, to any person obtaining a copy
  72. * of this software and associated documentation files (the "Software"), to deal
  73. * in the Software without restriction, including without limitation the rights
  74. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  75. * copies of the Software, and to permit persons to whom the Software is
  76. * furnished to do so, subject to the following conditions:
  77. *
  78. * The above copyright notice and this permission notice shall be included in all
  79. * copies or substantial portions of the Software.
  80. *
  81. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  82. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  83. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  84. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  85. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  86. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  87. * SOFTWARE.
  88. */
  89. var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var o=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function i(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function u(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:u(s(e))}function l(e){return e&&e.referenceNode?e.referenceNode:e}var c=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function d(e){return 11===e?c:10===e?f:c||f}function p(e){if(!e)return document.documentElement;for(var t=d(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function m(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,s,u=i.commonAncestorContainer;if(e!==u&&t!==u||r.contains(o))return"BODY"===(s=(a=u).nodeName)||"HTML"!==s&&p(a.firstElementChild)!==a?p(u):u;var l=h(e);return l.host?m(l.host,t):m(e,h(t).host)}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=y(t,"top"),o=y(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function b(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function g(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],d(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function w(e){var t=e.body,n=e.documentElement,r=d(10)&&getComputedStyle(n);return{height:g("Height",t,n,r),width:g("Width",t,n,r)}}var k=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},_=function(){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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),O=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},S=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};function x(e){return S({},e,{right:e.left+e.width,bottom:e.top+e.height})}function P(e){var t={};try{if(d(10)){t=e.getBoundingClientRect();var n=y(e,"top"),r=y(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?w(e.ownerDocument):{},s=i.width||e.clientWidth||o.width,u=i.height||e.clientHeight||o.height,l=e.offsetWidth-s,c=e.offsetHeight-u;if(l||c){var f=a(e);l-=b(f,"x"),c-=b(f,"y"),o.width-=l,o.height-=c}return x(o)}function j(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=d(10),o="HTML"===t.nodeName,i=P(e),s=P(t),l=u(e),c=a(t),f=parseFloat(c.borderTopWidth),p=parseFloat(c.borderLeftWidth);n&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=x({top:i.top-s.top-f,left:i.left-s.left-p,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!r&&o){var m=parseFloat(c.marginTop),y=parseFloat(c.marginLeft);h.top-=f-m,h.bottom-=f-m,h.left-=p-y,h.right-=p-y,h.marginTop=m,h.marginLeft=y}return(r&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(h=v(h,t)),h}function C(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=j(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:y(n),s=t?0:y(n,"left"),u={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return x(u)}function E(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=s(e);return!!n&&E(n)}function A(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function M(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?A(e):m(e,l(t));if("viewport"===r)i=C(a,o);else{var c=void 0;"scrollParent"===r?"BODY"===(c=u(s(t))).nodeName&&(c=e.ownerDocument.documentElement):c="window"===r?e.ownerDocument.documentElement:r;var f=j(c,a,o);if("HTML"!==c.nodeName||E(a))i=f;else{var d=w(e.ownerDocument),p=d.height,h=d.width;i.top+=f.top-f.marginTop,i.bottom=p+f.top,i.left+=f.left-f.marginLeft,i.right=h+f.left}}var y="number"==typeof(n=n||0);return i.left+=y?n:n.left||0,i.top+=y?n:n.top||0,i.right-=y?n:n.right||0,i.bottom-=y?n:n.bottom||0,i}function R(e){return e.width*e.height}function T(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=M(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(s).map((function(e){return S({key:e},s[e],{area:R(s[e])})})).sort((function(e,t){return t.area-e.area})),l=u.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),c=l.length>0?l[0].key:u[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function D(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?A(t):m(t,l(n));return j(n,o,r)}function L(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function I(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function V(e,t,n){n=n.split("-")[0];var r=L(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",u=i?"height":"width",l=i?"width":"height";return o[a]=t[a]+t[u]/2-r[u]/2,o[s]=n===s?t[s]-r[l]:t[I(s)],o}function N(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function F(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=N(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&i(n)&&(t.offsets.popper=x(t.offsets.popper),t.offsets.reference=x(t.offsets.reference),t=n(t,e))})),t}function U(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=D(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=T(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=V(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=F(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function z(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function B(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(void 0!==document.body.style[i])return i}return null}function H(){return this.state.isDestroyed=!0,z(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[B("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function q(e){var t=e.ownerDocument;return t?t.defaultView:window}function W(e,t,n,r){n.updateBound=r,q(e).addEventListener("resize",n.updateBound,{passive:!0});var o=u(e);return function e(t,n,r,o){var i="BODY"===t.nodeName,a=i?t.ownerDocument.defaultView:t;a.addEventListener(n,r,{passive:!0}),i||e(u(a.parentNode),n,r,o),o.push(a)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Y(){this.state.eventsEnabled||(this.state=W(this.reference,this.options,this.state,this.scheduleUpdate))}function K(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,q(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function G(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function J(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&G(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var Z=n&&/Firefox/i.test(navigator.userAgent);function X(e,t,n){var r=N(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var $=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Q=$.slice(3);function ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Q.indexOf(e),r=Q.slice(n+1).concat(Q.slice(0,n));return t?r.reverse():r}var te="flip",ne="clockwise",re="counterclockwise";function oe(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(N(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return(l=l.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return x(s)[t]/100*i}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i}return i}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){G(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var ie={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",l=s?"width":"height",c={start:O({},u,i[u]),end:O({},u,i[u]+i[l]-a[l])};e.offsets.popper=S({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],u=void 0;return u=G(+n)?[+n,0]:oe(n,i,a,s),"left"===s?(i.top+=u[0],i.left-=u[1]):"right"===s?(i.top+=u[0],i.left+=u[1]):"top"===s?(i.left+=u[0],i.top-=u[1]):"bottom"===s&&(i.left+=u[0],i.top+=u[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||p(e.instance.popper);e.instance.reference===n&&(n=p(n));var r=B("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var u=M(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=u;var l=t.priority,c=e.offsets.popper,f={primary:function(e){var n=c[e];return c[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(c[e],u[e])),O({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=c[n];return c[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(c[n],u[e]-("right"===e?c.width:c.height))),O({},n,r)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=S({},c,f[t](e))})),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",u=a?"left":"top",l=a?"width":"height";return n[s]<i(r[u])&&(e.offsets.popper[u]=i(r[u])-n[l]),n[u]>i(r[s])&&(e.offsets.popper[u]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!X(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,s=i.popper,u=i.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",f=l?"Top":"Left",d=f.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",m=L(r)[c];u[h]-m<s[d]&&(e.offsets.popper[d]-=s[d]-(u[h]-m)),u[d]+m>s[h]&&(e.offsets.popper[d]+=u[d]+m-s[h]),e.offsets.popper=x(e.offsets.popper);var y=u[d]+u[c]/2-m/2,v=a(e.instance.popper),b=parseFloat(v["margin"+f]),g=parseFloat(v["border"+f+"Width"]),w=y-e.offsets.popper[d]-b-g;return w=Math.max(Math.min(s[c]-m,w),0),e.arrowElement=r,e.offsets.arrow=(O(n={},d,Math.round(w)),O(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(z(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=M(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=I(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case te:a=[r,o];break;case ne:a=ee(r);break;case re:a=ee(r,!0);break;default:a=t.behavior}return a.forEach((function(s,u){if(r!==s||a.length===u+1)return e;r=e.placement.split("-")[0],o=I(r);var l=e.offsets.popper,c=e.offsets.reference,f=Math.floor,d="left"===r&&f(l.right)>f(c.left)||"right"===r&&f(l.left)<f(c.right)||"top"===r&&f(l.bottom)>f(c.top)||"bottom"===r&&f(l.top)<f(c.bottom),p=f(l.left)<f(n.left),h=f(l.right)>f(n.right),m=f(l.top)<f(n.top),y=f(l.bottom)>f(n.bottom),v="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&y,b=-1!==["top","bottom"].indexOf(r),g=!!t.flipVariations&&(b&&"start"===i&&p||b&&"end"===i&&h||!b&&"start"===i&&m||!b&&"end"===i&&y),w=!!t.flipVariationsByContent&&(b&&"start"===i&&h||b&&"end"===i&&p||!b&&"start"===i&&y||!b&&"end"===i&&m),k=g||w;(d||v||k)&&(e.flipped=!0,(d||v)&&(r=a[u+1]),k&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=S({},e.offsets.popper,V(e.instance.popper,e.offsets.reference,e.placement)),e=F(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=I(t),e.offsets.popper=x(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!X(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=N(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=N(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=p(e.instance.popper),u=P(s),l={position:o.position},c=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},u=i(o.width),l=i(r.width),c=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?c||f||u%2==l%2?i:a:s,p=t?i:s;return{left:d(u%2==1&&l%2==1&&!f&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:d(r.right)}}(e,window.devicePixelRatio<2||!Z),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",h=B("transform"),m=void 0,y=void 0;if(y="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-u.height+c.bottom:c.top,m="right"===d?"HTML"===s.nodeName?-s.clientWidth+c.right:-u.width+c.right:c.left,a&&h)l[h]="translate3d("+m+"px, "+y+"px, 0)",l[f]=0,l[d]=0,l.willChange="transform";else{var v="bottom"===f?-1:1,b="right"===d?-1:1;l[f]=y*v,l[d]=m*b,l.willChange=f+", "+d}var g={"x-placement":e.placement};return e.attributes=S({},g,e.attributes),e.styles=S({},l,e.styles),e.arrowStyles=S({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return J(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&J(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=D(o,t,e,n.positionFixed),a=T(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),J(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},ae=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};k(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=o(this.update.bind(this)),this.options=S({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(S({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){r.options.modifiers[t]=S({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return S({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&i(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return _(e,[{key:"update",value:function(){return U.call(this)}},{key:"destroy",value:function(){return H.call(this)}},{key:"enableEventListeners",value:function(){return Y.call(this)}},{key:"disableEventListeners",value:function(){return K.call(this)}}]),e}();ae.Utils=("undefined"!=typeof window?window:e).PopperUtils,ae.placements=$,ae.Defaults=ie,t.a=ae}).call(this,n(51))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Builders",{enumerable:!0,get:function(){return o.Builders}}),Object.defineProperty(t,"Components",{enumerable:!0,get:function(){return o.Components}}),Object.defineProperty(t,"Displays",{enumerable:!0,get:function(){return o.Displays}}),Object.defineProperty(t,"Providers",{enumerable:!0,get:function(){return o.Providers}}),Object.defineProperty(t,"Rules",{enumerable:!0,get:function(){return o.Rules}}),Object.defineProperty(t,"Widgets",{enumerable:!0,get:function(){return o.Widgets}}),Object.defineProperty(t,"Templates",{enumerable:!0,get:function(){return o.Templates}}),Object.defineProperty(t,"Utils",{enumerable:!0,get:function(){return o.Utils}}),Object.defineProperty(t,"Form",{enumerable:!0,get:function(){return o.Form}}),Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return o.Formio}}),Object.defineProperty(t,"FormBuilder",{enumerable:!0,get:function(){return i.default}});var r,o=n(272),i=(r=n(1004))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";n(3),n(7),n(8),n(16),n(1),n(26),n(2),n(6),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Builders",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Components",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Displays",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Templates",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Providers",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Rules",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Widgets",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"Form",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"Utils",{enumerable:!0,get:function(){return p.default}});var r=h(n(208)),o=h(n(265)),i=h(n(109)),a=h(n(260)),s=h(n(188)),u=h(n(235)),l=h(n(243)),c=h(n(144)),f=h(n(41)),d=h(n(146)),p=h(n(254));function h(e){return e&&e.__esModule?e:{default:e}}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}i.default.setComponents(r.default);var y=function(e){if("object"===m(e))for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t],c=e.framework||s.default.framework||"bootstrap";switch(r){case"options":f.default.options=e.options;break;case"templates":for(var d=0,p=Object.keys(e.templates);d<p.length;d++){var h=p[d];s.default.extendTemplate(h,e.templates[h])}e.templates[c]&&(s.default.current=e.templates[c]);break;case"components":i.default.setComponents(e.components);break;case"framework":s.default.framework=e.framework;break;case"fetch":for(var y=0,v=Object.keys(e.fetch);y<v.length;y++){var b=v[y];f.default.registerPlugin(e.fetch[b],b)}break;case"providers":for(var g=0,w=Object.keys(e.providers);g<w.length;g++){var k=w[g];u.default.addProviders(k,e.providers[k])}break;case"displays":a.default.addDisplays(e.displays);break;case"builders":o.default.addBuilders(e.builders);break;case"rules":l.default.addRules(e.rules);break;default:console.log("Unknown plugin option",r)}}};f.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 y(e)})):y(e)}))},f.default.loadModules=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"".concat(f.default.getApiUrl(),"/externalModules.js"),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"externalModules";f.default.requireLibrary(t,t,e,!0).then((function(e){f.default.use(e)}))},f.default.Components=i.default,f.default.Templates=s.default,f.default.Builders=o.default,f.default.Utils=p.default,f.default.Form=d.default,f.default.Displays=a.default,f.default.Providers=u.default,f.default.Rules=l.default,f.default.Widgets=c.default,f.default.Formio=f.default},function(e,t,n){var r=n(24),o=n(194),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},function(e,t,n){var r=n(32),o=n(36),i=n(43),a=n(96);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),s=r.length,u=0;s>u;)o.f(e,n=r[u++],t[n]);return e}},function(e,t,n){var r=n(89);e.exports=r("document","documentElement")},function(e,t,n){var r=n(52),o=n(80).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t,n){"use strict";var r=n(204).IteratorPrototype,o=n(81),i=n(77),a=n(97),s=n(99),u=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,l,!1,!0),s[l]=u,e}},function(e,t,n){var r=n(38);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){"use strict";var r=n(154),o=n(117);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(23),n(16),n(39),n(1),n(29),n(14),n(30),n(19),n(12),n(10),n(2),n(9),n(13),n(21),n(5),n(6),n(120),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.AddressComponentMode=void 0;var r=c(n(284)),o=c(n(11)),i=c(n(41)),a=n(236),s=c(n(59)),u=c(n(64)),l=c(n(246));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;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,t)||h(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){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||h(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){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}}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 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 v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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 g(e,t,n){return(g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=O(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S={Autocomplete:"autocomplete",Manual:"manual"};t.AddressComponentMode=S;var x="show = _.get(instance, 'parent.manualMode', false);",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&&w(e,t)}(h,e);var t,n,c,f=k(h);function h(){return v(this,h),f.apply(this,arguments)}return t=h,c=[{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:"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:x},{label:"Address 2",tableView:!1,key:"address2",type:"textfield",input:!0,customConditional:x},{label:"City",tableView:!1,key:"city",type:"textfield",input:!0,customConditional:x},{label:"State",tableView:!1,key:"state",type:"textfield",input:!0,customConditional:x},{label:"Country",tableView:!1,key:"country",type:"textfield",input:!0,customConditional:x},{label:"Zip Code",tableView:!1,key:"zip",type:"textfield",input:!0,customConditional:x}]}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Address",group:"advanced",icon:"home",documentation:"http://help.form.io/userguide/#address",weight:35,schema:h.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=[{key:"mergeSchema",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.defaultSchema;return e.components&&(t=o.default.omit(t,"components")),o.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:{}),s.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=a.GoogleAddressProvider.name,this.component.providerOptions=this.component.providerOptions||{};var r=this.component,i=r.map,l=r.provider,c=r.providerOptions,f=i.key,d=i.region;f&&o.default.set(c,"params.key",f),d&&o.default.set(c,"params.region",d),this.provider=this.initializeProvider(l,c)}}},{key:"initializeProvider",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.default.Providers.getProvider("address",e);return new n(t)}},{key:"restoreComponentsContext",value:function(){var e=this;this.getComponents().forEach((function(t){t.data=e.address,t.setValue(t.dataValue,{noUpdateEvent:!0})}))}},{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=s.default.prototype.setValue.call(this,e,t);return this.manualMode&&this.restoreComponentsContext(),n&&this.redraw(),n}},{key:"renderElement",value:function(e){return this.renderTemplate(this.templateName,{children:this.hasChildren?this.renderComponents():"",nestedKey:this.nestedKey,inputAttributes:this.searchInputAttributes,ref:{modeSwitcher:h.modeSwitcherRef,removeValueIcon:h.removeValueIconRef,searchInput:h.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?g(O(h.prototype),"render",this).call(this,this.renderGrid()):g(O(h.prototype),"render",this).call(this,this.renderElement())}},{key:"addRow",value:function(){this.address=this.address.concat(this.emptyValue),g(O(h.prototype),"redraw",this).call(this)}},{key:"attach",value:function(e){var t,n=this,o=(this.builderMode||this.manualMode?g(O(h.prototype),"attach",this):s.default.prototype.attach).call(this,e);if(!this.builderMode&&!this.provider&&this.component.provider){var i=this.component,a=i.provider,u=i.providerOptions;this.provider=this.initializeProvider(a,u)}return this.loadRefs(e,(y(t={},h.addRowButtonRef,"single"),y(t,h.modeSwitcherRef,"single"),y(t,h.removeRowButtonRef,"multiple"),y(t,h.removeValueIconRef,"multiple"),y(t,h.searchInputRef,"multiple"),t)),this.searchInput.forEach((function(e,t){!n.builderMode&&e&&n.provider&&((0,r.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.isMultiple?(n.address[t]=r,n.address=p(n.address)):n.address=r,n.triggerChange({modified:!0}),e&&(e.value=n.getDisplayValue(n.isMultiple?n.address[t]:n.address)),n.updateRemoveIcon(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)}))})),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()}))})),o}},{key:"addChildComponent",value:function(e){e.customConditional=x}},{key:"redraw",value:function(){var e=this,t=this.modeSwitcher&&document.activeElement===this.modeSwitcher;return g(O(h.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?void 0: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,"address-autocomplete-remove-value-icon--hidden"):this.removeClass(n,"address-autocomplete-remove-value-icon--hidden")}}},{key:"getValueAsString",value:function(e,t){if(!e)return"";var n=this.normalizeValue(e),r=this.manualModeEnabled?n:{address:n,mode:S.Autocomplete},i=r.address,a=r.mode===S.Manual;return this.provider&&!a?this.getDisplayValue(i):a?this.component.manualModeViewString?this.interpolate(this.component.manualModeViewString,{address:i,data:this.data,component:this.component}):this.getComponents().filter((function(e){return e.hasValue(i)})).map((function(e){return[e,o.default.get(i,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(", "):g(O(h.prototype),"getValueAsString",this).call(this,i,t)}},{key:"focus",value:function(){this.searchInput&&this.searchInput[0]&&this.searchInput[0].focus()}},{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:"isMultiple",get:function(){return Boolean(this.component.multiple)}},{key:"address",get:function(){return this.isMultiple?o.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(){return this.isMultiple?[this.emptyValue]:this.emptyValue}},{key:"defaultSchema",get:function(){return h.schema()}},{key:"modeSwitcher",get:function(){return this.refs&&this.refs[h.modeSwitcherRef]||null}},{key:"removeValueIcon",get:function(){return this.refs&&this.refs[h.removeValueIconRef]||null}},{key:"searchInput",get:function(){return this.refs&&this.refs[h.searchInputRef]||null}},{key:"addRowButton",get:function(){return this.refs&&this.refs[h.addRowButtonRef]||null}},{key:"removeRowButton",get:function(){return this.refs&&this.refs[h.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"),o.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")}}])&&b(t.prototype,n),c&&b(t,c),h}(l.default);t.default=P},function(e,t,n){"use strict";var r=n(98),o=n(46),i=n(211),a=n(155),s=n(33),u=n(100),l=n(156);e.exports=function(e){var t,n,c,f,d,p=o(e),h="function"==typeof this?this:Array,m=arguments.length,y=m>1?arguments[1]:void 0,v=void 0!==y,b=0,g=l(p);if(v&&(y=r(y,m>2?arguments[2]:void 0,2)),null==g||h==Array&&a(g))for(n=new h(t=s(p.length));t>b;b++)u(n,b,v?y(p[b],b):p[b]);else for(d=(f=g.call(p)).next,n=new h;!(c=d.call(f)).done;b++)u(n,b,v?i(f,y,[c.value,b],!0):c.value);return n.length=b,n}},function(e,t,n){"use strict";var r=n(82),o=n(38),i=[].slice,a={},s=function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=i.call(arguments,1),a=function(){var r=n.concat(i.call(arguments));return this instanceof a?s(t,r.length,r):t.apply(e,r)};return o(t.prototype)&&(a.prototype=t.prototype),a}},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){e.exports=function(){"use strict";return function(e){var t,n,r=document,o=r.createElement("div"),i=o.style,a=navigator.userAgent,s=-1!==a.indexOf("Firefox")&&-1!==a.indexOf("Mobile"),u=e.debounceWaitMs||0,l=e.preventSubmit||!1,c=s?"input":"keyup",f=[],d="",p=2,h=e.showOnFocus,m=0;if(void 0!==e.minLength&&(p=e.minLength),!e.input)throw new Error("input undefined");var y=e.input;function v(){n&&window.clearTimeout(n)}function b(){return!!o.parentNode}function g(){var e;m++,f=[],d="",t=void 0,(e=o.parentNode)&&e.removeChild(o)}function w(){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(),u="#9?$";if(f.forEach((function(r){if(r.group&&r.group!==u){u=r.group;var o=a(r.group,d);o&&(o.className+=" group",s.appendChild(o))}var i=n(r,d);i&&(i.addEventListener("click",(function(t){e.onSelect(r,y),g(),t.preventDefault(),t.stopPropagation()})),r===t&&(i.className+=" selected"),s.appendChild(i))})),o.appendChild(s),f.length<1){if(!e.emptyMsg)return void g();var l=r.createElement("div");l.className="empty",l.textContent=e.emptyMsg,o.appendChild(l)}o.parentNode||r.body.appendChild(o),function(){if(b()){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,u=window.pageXOffset||e.scrollLeft,l=(t=y.getBoundingClientRect()).top+y.offsetHeight+s-o,c=t.left+u-a;i.top=l+"px",i.left=c+"px",(n=window.innerHeight-(t.top+y.offsetHeight))<0&&(n=0),i.top=l+"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 k(){b()&&w()}function _(){k()}function O(e){e.target!==o?k():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&&b()||j(0)}function x(n){var r=n.which||n.keyCode||0;if(38===r||40===r||27===r){var o=b();if(27===r)g();else{if(!b||f.length<1)return;38===r?function(){if(f.length<1)t=void 0;else if(t===f[0])t=f[f.length-1];else for(var e=f.length-1;e>0;e--)if(t===f[e]||1===e){t=f[e-1];break}}():function(){if(f.length<1&&(t=void 0),t&&t!==f[f.length-1]){for(var e=0;e<f.length-1;e++)if(t===f[e]){t=f[e+1];break}}else t=f[0]}(),w()}return n.preventDefault(),void(o&&n.stopPropagation())}13===r&&(t&&(e.onSelect(t,y),g()),l&&n.preventDefault())}function P(){h&&j(1)}function j(r){var o=++m,i=y.value;i.length>=p||1===r?(v(),n=window.setTimeout((function(){e.fetch(i,(function(e){m===o&&e&&(d=i,t=(f=e).length>0?f[0]:void 0,w())}),0)}),0===r?u:0)):g()}function C(){setTimeout((function(){r.activeElement!==y&&g()}),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",x),y.addEventListener(c,S),y.addEventListener("blur",C),y.addEventListener("focus",P),window.addEventListener("resize",_),r.addEventListener("scroll",O,!0),{destroy:function(){y.removeEventListener("focus",P),y.removeEventListener("keydown",x),y.removeEventListener(c,S),y.removeEventListener("blur",C),window.removeEventListener("resize",_),r.removeEventListener("scroll",O,!0),v(),g()}}}}()},function(e,t,n){"use strict";var r=n(32),o=n(20),i=n(96),a=n(150),s=n(111),u=n(46),l=n(92),c=Object.assign,f=Object.defineProperty;e.exports=!c||o((function(){if(r&&1!==c({b:1},c(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||"abcdefghijklmnopqrst"!=i(c({},t)).join("")}))?function(e,t){for(var n=u(e),o=arguments.length,c=1,f=a.f,d=s.f;o>c;)for(var p,h=l(arguments[c++]),m=f?i(h).concat(f(h)):i(h),y=m.length,v=0;y>v;)p=m[v++],r&&!d.call(h,p)||(n[p]=h[p]);return n}:c},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,s,u=1,l={},c=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return l[u]=o,r(u),u++},d.clearImmediate=p}function p(e){delete l[e]}function h(e){if(c)setTimeout(h,0,e);else{var t=l[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{p(e),c=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(51),n(164))},function(e,t,n){var r=n(78);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},function(e,t,n){var r,o;void 0===(o="function"==typeof(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},method:function(e,t,n){return e[t].apply(e,n)}};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;r=r||{};var o,i,a,s,u,l=e.get_operator(n),c=n[l];if(Array.isArray(c)||(c=[c]),"if"===l||"?:"==l){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"===l){for(o=0;o<c.length;o+=1)if(i=e.apply(c[o],r),!e.truthy(i))return i;return i}if("or"===l){for(o=0;o<c.length;o+=1)if(i=e.apply(c[o],r),e.truthy(i))return i;return i}if("filter"===l)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"===l)return s=e.apply(c[0],r),a=c[1],Array.isArray(s)?s.map((function(t){return e.apply(a,t)})):[];if("reduce"===l)return s=e.apply(c[0],r),a=c[1],u=void 0!==c[2]?c[2]:null,Array.isArray(s)?s.reduce((function(t,n){return e.apply(a,{current:n,accumulator:t})}),u):u;if("all"===l){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"===l)return 0===e.apply({filter:c},r).length;if("some"===l)return e.apply({filter:c},r).length>0;if(c=c.map((function(t){return e.apply(t,r)})),"function"==typeof t[l])return t[l].apply(r,c);if(l.indexOf(".")>0){var f=String(l).split("."),d=t;for(o=0;o<f.length;o++)if(void 0===(d=d[f[o]]))throw new Error("Unrecognized operation "+l+" (failed at "+f.slice(0,o+1).join(".")+")");return d.apply(r,c)}throw new Error("Unrecognized operation "+l)},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;n++)-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})?r.call(t,n,t,e):r)||(e.exports=o)},function(e,t,n){var r,o,i;//! moment-timezone.js
  90. //! version : 0.5.31
  91. //! Copyright (c) JS Foundation and other contributors
  92. //! license : MIT
  93. //! github.com/moment/moment-timezone
  94. !function(a,s){"use strict";e.exports?e.exports=s(n(54)):(o=[n(54)],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||E("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var s=e.version.split("."),u=+s[0],l=+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 y(e,t){this.name=e,this.zones=t}function v(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 v(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={},u=[];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)&&u.push(i[t]);return u}function O(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e&&e.length>3){var t=i[S(e)];if(t)return t;E("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 v(new Date(r,0,1)),i=[o];for(n=1;n<48;n++)(t=new v(new Date(r,n,1))).offset!==o.offset&&(e=g(o,t),i.push(e),i.push(new v(new Date(e.at+6e4)))),o=t;for(n=0;n<4;n++)i.push(new v(new Date(r+n,0,1))),i.push(new v(new Date(r+n,6,1)));return i}(),s=a.length,u=_(a),l=[];for(r=0;r<u.length;r++){for(n=new b(P(u[r]),s),o=0;o<s;o++)n.scoreOffsetAt(a[o]);l.push(n)}return l.sort(w),l.length>0?l[0].zone.name:void 0}function S(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=S(r=(o=e[t].split("|"))[0]),n[a]=e[t],i[a]=r,k(a,o[2].split(" "))}function P(e,t){e=S(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!==P&&(o=P(r[e],P))?((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=S((n=e[t].split("|"))[0]),a=S(n[1]),r[o]=a,i[o]=n[0],r[a]=o,i[a]=n[1]}function C(e){var t="X"===e._f||"x"===e._f;return!(!e._a||void 0!==e._tzm||t)}function E(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}function A(t){var n=Array.prototype.slice.call(arguments,0,-1),r=arguments[arguments.length-1],o=P(r),i=e.utc.apply(null,n);return o&&!e.isMoment(t)&&C(i)&&i.add(o.parse(i),"minutes"),i.tz(r),i}(u<2||2===u&&l<6)&&E("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,u=s.length-1;for(o=0;o<u;o++)if(t=a[o],n=a[o+1],r=a[o?o-1:o],t<n&&A.moveAmbiguousForward?t=n:t>r&&A.moveInvalidForward&&(t=r),i<s[o]-6e4*t)return a[o];return a[u]},abbr:function(e){return this.abbrs[this._index(e)]},offset:function(e){return E("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(e)]},utcOffset:function(e){return this.offsets[this._index(e)]}},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++},A.version="0.5.31",A.dataVersion="",A._zones=n,A._links=r,A._names=i,A._countries=o,A.add=x,A.link=j,A.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 y(n,r)}(e.countries),A.dataVersion=e.version},A.zone=P,A.zoneExists=function e(t){return e.didShowError||(e.didShowError=!0,E("moment.tz.zoneExists('"+t+"') has been deprecated in favor of !moment.tz.zone('"+t+"')")),!!P(t)},A.guess=function(e){return t&&!e||(t=O()),t},A.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()},A.Zone=m,A.unpack=h,A.unpackBase60=f,A.needsOffset=C,A.moveInvalidForward=!0,A.moveAmbiguousForward=!1,A.countries=function(){return Object.keys(o)},A.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:P(e).utcOffset(new Date)}})):r};var M,R=e.fn;function T(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function D(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=A,e.defaultZone=null,e.updateOffset=function(t,n){var r,o=e.defaultZone;if(void 0===t._z&&(o&&C(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)},R.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=P(t),this._z?e.updateOffset(this,n):E("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},R.zoneName=T(R.zoneName),R.zoneAbbr=T(R.zoneAbbr),R.utc=D(R.utc),R.local=D(R.local),R.utcOffset=(M=R.utcOffset,function(){return arguments.length>0&&(this._z=null),M.apply(this,arguments)}),e.tz.setDefault=function(t){return(u<2||2===u&&l<9)&&E("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?P(t):null,e};var L=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(L)?(L.push("_z"),L.push("_a")):L&&(L._z=null),e}))},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(){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"},i=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(),i=null,s=null;r<n-864e5;){var u=new Date(r),l=u.getTimezoneOffset();l!==o&&(l<o&&(i=u),l>o&&(s=u),o=l),r+=864e5}return!(!i||!s)&&{s:a(i).getTime(),e:a(s).getTime()}},a=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(),u=i,l=null;u<a-o;){var c=new Date(u);if(c.getTimezoneOffset()!==s){l=c;break}u+=o}return r===e.DAY?t(l,e.HOUR,e.MINUTE):r===e.HOUR?t(l,e.MINUTE,e.SECOND):l},s=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;if("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,u=e.AMBIGUITIES[n],l=0;l<s;l++){var c=a[l],f=r(a[l]);"N/A"!==f&&(i[c.name]=f)}for(var d in i)if(i.hasOwnProperty(d))for(var p=0;p<u.length;p++)if(u[p]===d)return d;return n},u=function(e){var t=function(){for(var e=[],t=0;t<o.olson.dst_rules.years.length;t++){var n=i(o.olson.dst_rules.years[t]);e.push(n)}return e}();return function(e){for(var t=0;t<e.length;t++)if(!1!==e[t])return!0;return!1}(t)?s(t,e):e};return{determine:function(t){var i=!1,a=r();return(t||void 0===t)&&(i=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}()),i||(i=o.olson.timezones[a],void 0!==e.AMBIGUITIES[i]&&(i=u(i))),{name:function(){return i},using_intl:t||void 0===t,needle:a,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},{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},{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(291)&&null!=n(292)?void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r):window.jstz=o},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"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","flattenDeep","flattenDepth","fromPairs","head","indexOf","initial","intersection","intersectionBy","intersectionWith","join","last","lastIndexOf","nth","slice","sortedIndex","sortedIndexBy","sortedIndexOf","sortedLastIndex","sortedLastIndexBy","sortedLastIndexOf","sortedUniq","sortedUniqBy","tail","take","takeRight","takeRightWhile","takeWhile","union","unionBy","unionWith","uniq","uniqBy","uniqWith","unzip","unzipWith","without","xor","xorBy","xorWith","zip","zipObject","zipObjectDeep","zipWith","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"]},function(e,t,n){
  95. /*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.0.8/LICENSE */
  96. e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,n=Object.isFrozen,r=Object.keys,o=Object.freeze,i=Object.seal,a="undefined"!=typeof Reflect&&Reflect,s=a.apply,u=a.construct;s||(s=function(e,t,n){return e.apply(t,n)}),o||(o=function(e){return e}),i||(i=function(e){return e}),u||(u=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 l=O(Array.prototype.forEach),c=O(Array.prototype.indexOf),f=O(Array.prototype.join),d=O(Array.prototype.pop),p=O(Array.prototype.push),h=O(Array.prototype.slice),m=O(String.prototype.toLowerCase),y=O(String.prototype.match),v=O(String.prototype.replace),b=O(String.prototype.indexOf),g=O(String.prototype.trim),w=O(RegExp.prototype.test),k=S(RegExp),_=S(TypeError);function O(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 s(e,t,r)}}function S(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return u(e,n)}}function x(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 P(t){var n={},r=void 0;for(r in t)s(e,t,[r])&&(n[r]=t[r]);return n}var j=o(["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","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"]),C=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","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","video","view","vkern"]),E=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),A=o(["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=o(["#text"]),R=o(["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","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns"]),T=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","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","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"]),D=o(["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"]),L=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),I=i(/\{\{[\s\S]*|[\s\S]*\}\}/gm),V=i(/<%[\s\S]*|[\s\S]*%>/gm),N=i(/^data-[\-\w.\u00B7-\uFFFF]/),F=i(/^aria-[\-\w]+$/),U=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z=i(/^(?:\w+script|data):/i),B=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function q(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 W=function(){return"undefined"==typeof window?null:window},Y=function(e,t){if("object"!==(void 0===e?"undefined":H(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W(),n=function(t){return e(t)};if(n.version="2.0.11",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var i=t.document,a=!1,s=t.document,u=t.DocumentFragment,O=t.HTMLTemplateElement,S=t.Node,K=t.NodeFilter,G=t.NamedNodeMap,J=void 0===G?t.NamedNodeMap||t.MozNamedAttrMap:G,Z=t.Text,X=t.Comment,$=t.DOMParser,Q=t.trustedTypes;if("function"==typeof O){var ee=s.createElement("template");ee.content&&ee.content.ownerDocument&&(s=ee.content.ownerDocument)}var te=Y(Q,i),ne=te?te.createHTML(""):"",re=s,oe=re.implementation,ie=re.createNodeIterator,ae=re.getElementsByTagName,se=re.createDocumentFragment,ue=i.importNode,le={};n.isSupported=oe&&void 0!==oe.createHTMLDocument&&9!==s.documentMode;var ce=I,fe=V,de=N,pe=F,he=z,me=B,ye=U,ve=null,be=x({},[].concat(q(j),q(C),q(E),q(A),q(M))),ge=null,we=x({},[].concat(q(R),q(T),q(D),q(L))),ke=null,_e=null,Oe=!0,Se=!0,xe=!1,Pe=!1,je=!1,Ce=!1,Ee=!1,Ae=!1,Me=!1,Re=!1,Te=!1,De=!1,Le=!0,Ie=!0,Ve=!1,Ne={},Fe=x({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ue=null,ze=x({},["audio","video","img","source","image","track"]),Be=null,He=x({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),qe=null,We=s.createElement("form"),Ye=function(e){qe&&qe===e||(e&&"object"===(void 0===e?"undefined":H(e))||(e={}),ve="ALLOWED_TAGS"in e?x({},e.ALLOWED_TAGS):be,ge="ALLOWED_ATTR"in e?x({},e.ALLOWED_ATTR):we,Be="ADD_URI_SAFE_ATTR"in e?x(P(He),e.ADD_URI_SAFE_ATTR):He,Ue="ADD_DATA_URI_TAGS"in e?x(P(ze),e.ADD_DATA_URI_TAGS):ze,ke="FORBID_TAGS"in e?x({},e.FORBID_TAGS):{},_e="FORBID_ATTR"in e?x({},e.FORBID_ATTR):{},Ne="USE_PROFILES"in e&&e.USE_PROFILES,Oe=!1!==e.ALLOW_ARIA_ATTR,Se=!1!==e.ALLOW_DATA_ATTR,xe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=e.SAFE_FOR_JQUERY||!1,je=e.SAFE_FOR_TEMPLATES||!1,Ce=e.WHOLE_DOCUMENT||!1,Me=e.RETURN_DOM||!1,Re=e.RETURN_DOM_FRAGMENT||!1,Te=e.RETURN_DOM_IMPORT||!1,De=e.RETURN_TRUSTED_TYPE||!1,Ae=e.FORCE_BODY||!1,Le=!1!==e.SANITIZE_DOM,Ie=!1!==e.KEEP_CONTENT,Ve=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||ye,je&&(Se=!1),Re&&(Me=!0),Ne&&(ve=x({},[].concat(q(M))),ge=[],!0===Ne.html&&(x(ve,j),x(ge,R)),!0===Ne.svg&&(x(ve,C),x(ge,T),x(ge,L)),!0===Ne.svgFilters&&(x(ve,E),x(ge,T),x(ge,L)),!0===Ne.mathMl&&(x(ve,A),x(ge,D),x(ge,L))),e.ADD_TAGS&&(ve===be&&(ve=P(ve)),x(ve,e.ADD_TAGS)),e.ADD_ATTR&&(ge===we&&(ge=P(ge)),x(ge,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&x(Be,e.ADD_URI_SAFE_ATTR),Ie&&(ve["#text"]=!0),Ce&&x(ve,["html","head","body"]),ve.table&&(x(ve,["tbody"]),delete ke.tbody),o&&o(e),qe=e)},Ke=function(e){p(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.outerHTML=ne}},Ge=function(e,t){try{p(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(n.removed,{attribute:null,from:t})}t.removeAttribute(e)},Je=function(e){var t=void 0,n=void 0;if(Ae)e="<remove></remove>"+e;else{var r=y(e,/^[\r\n\t ]+/);n=r&&r[0]}var o=te?te.createHTML(e):e;try{t=(new $).parseFromString(o,"text/html")}catch(e){}if(a&&x(ke,["title"]),!t||!t.documentElement){var i=(t=oe.createHTMLDocument("")).body;i.parentNode.removeChild(i.parentNode.firstElementChild),i.outerHTML=o}return e&&n&&t.body.insertBefore(s.createTextNode(n),t.body.childNodes[0]||null),ae.call(t,Ce?"html":"body")[0]};n.isSupported&&function(){try{var e=Je("<x/><title>&lt;/title&gt;&lt;img&gt;");w(/<\/title/,e.querySelector("title").innerHTML)&&(a=!0)}catch(e){}}();var Ze=function(e){return ie.call(e.ownerDocument||e,e,K.SHOW_ELEMENT|K.SHOW_COMMENT|K.SHOW_TEXT,(function(){return K.FILTER_ACCEPT}),!1)},Xe=function(e){return!(e instanceof Z||e instanceof X||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof J&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI)},$e=function(e){return"object"===(void 0===S?"undefined":H(S))?e instanceof S:e&&"object"===(void 0===e?"undefined":H(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Qe=function(e,t,r){le[e]&&l(le[e],(function(e){e.call(n,t,r,qe)}))},et=function(e){var t=void 0;if(Qe("beforeSanitizeElements",e,null),Xe(e))return Ke(e),!0;var r=m(e.nodeName);if(Qe("uponSanitizeElement",e,{tagName:r,allowedTags:ve}),("svg"===r||"math"===r)&&0!==e.querySelectorAll("p, br").length)return Ke(e),!0;if(!ve[r]||ke[r]){if(Ie&&!Fe[r]&&"function"==typeof e.insertAdjacentHTML)try{var o=e.innerHTML;e.insertAdjacentHTML("AfterEnd",te?te.createHTML(o):o)}catch(e){}return Ke(e),!0}return"noscript"===r&&w(/<\/noscript/i,e.innerHTML)||"noembed"===r&&w(/<\/noembed/i,e.innerHTML)?(Ke(e),!0):(!Pe||e.firstElementChild||e.content&&e.content.firstElementChild||!w(/</g,e.textContent)||(p(n.removed,{element:e.cloneNode()}),e.innerHTML?e.innerHTML=v(e.innerHTML,/</g,"&lt;"):e.innerHTML=v(e.textContent,/</g,"&lt;")),je&&3===e.nodeType&&(t=e.textContent,t=v(t,ce," "),t=v(t,fe," "),e.textContent!==t&&(p(n.removed,{element:e.cloneNode()}),e.textContent=t)),Qe("afterSanitizeElements",e,null),!1)},tt=function(e,t,n){if(Le&&("id"===t||"name"===t)&&(n in s||n in We))return!1;if(Se&&w(de,t));else if(Oe&&w(pe,t));else{if(!ge[t]||_e[t])return!1;if(Be[t]);else if(w(ye,v(n,me,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(n,"data:")||!Ue[e])if(xe&&!w(he,v(n,me,"")));else if(n)return!1}return!0},nt=function(e){var t=void 0,o=void 0,i=void 0,a=void 0,s=void 0;Qe("beforeSanitizeAttributes",e,null);var u=e.attributes;if(u){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ge};for(s=u.length;s--;){var p=t=u[s],y=p.name,b=p.namespaceURI;if(o=g(t.value),i=m(y),l.attrName=i,l.attrValue=o,l.keepAttr=!0,l.forceKeepAttr=void 0,Qe("uponSanitizeAttribute",e,l),o=l.attrValue,!l.forceKeepAttr){if("name"===i&&"IMG"===e.nodeName&&u.id)a=u.id,u=h(u,[]),Ge("id",e),Ge(y,e),c(u,a)>s&&e.setAttribute("id",a.value);else{if("INPUT"===e.nodeName&&"type"===i&&"file"===o&&l.keepAttr&&(ge[i]||!_e[i]))continue;"id"===y&&e.setAttribute(y,""),Ge(y,e)}if(l.keepAttr)if(Pe&&w(/\/>/i,o))Ge(y,e);else if(w(/svg|math/i,e.namespaceURI)&&w(k("</("+f(r(Fe),"|")+")","i"),o))Ge(y,e);else{je&&(o=v(o,ce," "),o=v(o,fe," "));var _=e.nodeName.toLowerCase();if(tt(_,i,o))try{b?e.setAttributeNS(b,y,o):e.setAttribute(y,o),d(n.removed)}catch(e){}}}}Qe("afterSanitizeAttributes",e,null)}},rt=function e(t){var n=void 0,r=Ze(t);for(Qe("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Qe("uponSanitizeShadowNode",n,null),et(n)||(n.content instanceof u&&e(n.content),nt(n));Qe("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,r){var o=void 0,a=void 0,s=void 0,l=void 0,c=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!$e(e)){if("function"!=typeof e.toString)throw _("toString is not a function");if("string"!=typeof(e=e.toString()))throw _("dirty is not a string, aborting")}if(!n.isSupported){if("object"===H(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if($e(e))return t.toStaticHTML(e.outerHTML)}return e}if(Ee||Ye(r),n.removed=[],"string"==typeof e&&(Ve=!1),Ve);else if(e instanceof S)1===(a=(o=Je("\x3c!--\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a);else{if(!Me&&!je&&!Ce&&De&&-1===e.indexOf("<"))return te?te.createHTML(e):e;if(!(o=Je(e)))return Me?null:ne}o&&Ae&&Ke(o.firstChild);for(var f=Ze(Ve?e:o);s=f.nextNode();)3===s.nodeType&&s===l||et(s)||(s.content instanceof u&&rt(s.content),nt(s),l=s);if(l=null,Ve)return e;if(Me){if(Re)for(c=se.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return Te&&(c=ue.call(i,c,!0)),c}var d=Ce?o.outerHTML:o.innerHTML;return je&&(d=v(d,ce," "),d=v(d,fe," ")),te&&De?te.createHTML(d):d},n.setConfig=function(e){Ye(e),Ee=!0},n.clearConfig=function(){qe=null,Ee=!1},n.isValidAttribute=function(e,t,n){qe||Ye({});var r=m(e),o=m(t);return tt(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(le[e]=le[e]||[],p(le[e],t))},n.removeHook=function(e){le[e]&&d(le[e])},n.removeHooks=function(e){le[e]&&(le[e]=[])},n.removeAllHooks=function(){le={}},n}()}()},function(e,t,n){var r=n(169),o=n(174);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}},function(e,t,n){var r=n(70),o=n(127),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))}},function(e,t,n){var r=n(128),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}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(300),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},function(e,t,n){var r=n(301);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(170);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},function(e,t,n){var r=n(303),o=n(130),i=n(171);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(304),o=n(309),i=n(310),a=n(311),s=n(312);function u(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])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(129);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(216),o=n(306),i=n(72),a=n(217),s=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,c=u.toString,f=l.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))}},function(e,t,n){var r,o=n(307),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(58)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(129),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}},function(e,t,n){var r=n(129),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(129);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}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(131),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)}},function(e,t,n){var r=n(131);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(131);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(131);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}},function(e,t,n){var r=n(133);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(133);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(133);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(133);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}},function(e,t,n){var r=n(324);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},function(e,t,n){var r=n(175),o=n(169),i=n(135),a=n(72),s=n(174);e.exports=function(e,t,n,u){if(!a(e))return e;for(var l=-1,c=(t=o(t,e)).length,f=c-1,d=e;null!=d&&++l<c;){var p=s(t[l]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(l!=f){var m=d[p];void 0===(h=u?u(m,p,d):void 0)&&(h=a(m)?m:i(t[l+1])?[]:{})}r(d,p,h),d=d[p]}return e}},function(e,t,n){var r=n(326),o=n(327);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t,n){var r=n(169),o=n(220),i=n(70),a=n(135),s=n(176),u=n(174);e.exports=function(e,t,n){for(var l=-1,c=(t=r(t,e)).length,f=!1;++l<c;){var d=u(t[l]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++l!=c?f:!!(c=null==e?0:e.length)&&s(c)&&a(d,c)&&(i(e)||o(e))}},function(e,t,n){var r=n(71),o=n(63);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t,n){var r=n(221);e.exports=function(e){return r(e,4)}},function(e,t,n){var r=n(130),o=n(331),i=n(332),a=n(333),s=n(334),u=n(335);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,e.exports=l},function(e,t,n){var r=n(130);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(130),o=n(171),i=n(170);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}},function(e,t){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}},function(e,t,n){var r=n(136),o=n(137);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(341),o=n(138),i=n(177),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t,n){var r=n(71),o=n(176),i=n(63),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)]}},function(e,t,n){var r=n(178),o=n(343),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}},function(e,t,n){var r=n(224)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(136),o=n(140);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(72),o=n(178),i=n(346),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}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){(function(e){var r=n(58),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&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}}).call(this,n(102)(e))},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(136),o=n(179);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t){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}},function(e,t,n){var r=n(136),o=n(226);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(228),o=n(179),i=n(137);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(228),o=n(226),i=n(140);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(84)(n(58),"DataView");e.exports=r},function(e,t,n){var r=n(84)(n(58),"Promise");e.exports=r},function(e,t,n){var r=n(84)(n(58),"Set");e.exports=r},function(e,t,n){var r=n(84)(n(58),"WeakMap");e.exports=r},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(182),o=n(361),i=n(362),a=n(363),s=n(364);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+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]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return i(e);case"[object Set]":return new u;case"[object Symbol]":return a(e)}}},function(e,t,n){var r=n(58).Uint8Array;e.exports=r},function(e,t,n){var r=n(182);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(128),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},function(e,t,n){var r=n(182);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(366),o=n(180),i=n(178);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t,n){var r=n(72),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},function(e,t,n){var r=n(368),o=n(138),i=n(177),a=i&&i.isMap,s=a?o(a):r;e.exports=s},function(e,t,n){var r=n(181),o=n(63);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(370),o=n(138),i=n(177),a=i&&i.isSet,s=a?o(a):r;e.exports=s},function(e,t,n){var r=n(181),o=n(63);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},function(e,t,n){var r=n(372),o=n(375);e.exports=function(e,t){return e&&r(e,o(t))}},function(e,t,n){var r=n(373),o=n(137);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(374)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}},function(e,t,n){var r=n(183);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(71),o=n(70),i=n(63);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},function(e,t,n){var r=n(378);e.exports=function(e){return r(e)&&e!=+e}},function(e,t,n){var r=n(71),o=n(63);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},function(e,t){e.exports=function(e){return null==e}},function(e,t,n){var r=n(71),o=n(180),i=n(63),a=Function.prototype,s=Object.prototype,u=a.toString,l=s.hasOwnProperty,c=u.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=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==c}},function(e,t,n){var r=n(382)("round");e.exports=r},function(e,t,n){var r=n(58),o=n(184),i=n(229),a=n(134),s=r.isFinite,u=Math.min;e.exports=function(e){var t=Math[e];return function(e,n){if(e=i(e),(n=null==n?0:u(o(n),292))&&s(e)){var r=(a(e)+"e").split("e"),l=t(r[0]+"e"+(+r[1]+n));return+((r=(a(l)+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}},function(e,t,n){var r=n(229);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(230),o=n(231),i=n(184),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 u=null==e?0:e.length;if(!u||t<1)return[];for(var l=0,c=0,f=Array(a(u/t));l<u;)f[c++]=r(e,l,l+=t);return f}},function(e,t,n){var r=n(386),o=n(233),i=n(184),a=n(134),s=Math.ceil,u=Math.floor;e.exports=function(e,t,n){e=a(e);var l=(t=i(t))?o(e):0;if(!t||l>=t)return e;var c=(t-l)/2;return r(u(c),n)+e+r(s(c),n)}},function(e,t,n){var r=n(387),o=n(172),i=n(232),a=n(185),s=n(233),u=n(234),l=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,l(e/s(t)));return a(t)?i(u(c),0,e).join(""):c.slice(0,e)}},function(e,t){var n=Math.floor;e.exports=function(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do{t%2&&(r+=e),(t=n(t/2))&&(e+=e)}while(t);return r}},function(e,t,n){var r=n(389)("length");e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+o+")"+"?",l="[\\ufe0e\\ufe0f]?"+u+("(?:\\u200d(?:"+[i,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+u+")*"),c="(?:"+[i+r+"?",r,a,s,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+c+l,"g");e.exports=function(e){for(var t=f.lastIndex=0;f.test(e);)++t;return t}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+o+")"+"?",l="[\\ufe0e\\ufe0f]?"+u+("(?:\\u200d(?:"+[i,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+u+")*"),c="(?:"+[i+r+"?",r,a,s,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+c+l,"g");e.exports=function(e){return e.match(f)||[]}},function(e,t,n){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}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});
  97. /*!
  98. * https://github.com/Starcounter-Jack/JSON-Patch
  99. * (c) 2017 Joachim Wester
  100. * MIT license
  101. */
  102. var o=n(141),i=n(186),a=n(186);t.applyOperation=a.applyOperation,t.applyPatch=a.applyPatch,t.applyReducer=a.applyReducer,t.getValueByPointer=a.getValueByPointer,t.validate=a.validate,t.validator=a.validator;var s=n(141);t.JsonPatchError=s.PatchError,t.deepClone=s._deepClone,t.escapePathComponent=s.escapePathComponent,t.unescapePathComponent=s.unescapePathComponent;var u=new WeakMap,l=function(e){this.observers=new Map,this.obj=e},c=function(e,t){this.callback=e,this.observer=t};function f(e,t){t.unobserve()}function d(e,t){var n,r=function(e){return u.get(e)}(e);if(r){var i=function(e,t){return e.observers.get(t)}(r,t);n=i&&i.observer}else r=new l(e),u.set(e,r);if(n)return n;if(n={},r.value=o._deepClone(e),t){n.callback=t,n.next=null;var a=function(){p(n)},s=function(){clearTimeout(n.next),n.next=setTimeout(a)};"undefined"!=typeof window&&(window.addEventListener("mouseup",s),window.addEventListener("keyup",s),window.addEventListener("mousedown",s),window.addEventListener("keydown",s),window.addEventListener("change",s))}return n.patches=[],n.object=e,n.unobserve=function(){p(n),clearTimeout(n.next),function(e,t){e.observers.delete(t.callback)}(r,n),"undefined"!=typeof window&&(window.removeEventListener("mouseup",s),window.removeEventListener("keyup",s),window.removeEventListener("mousedown",s),window.removeEventListener("keydown",s),window.removeEventListener("change",s))},r.observers.set(t,new c(t,n)),n}function p(e,t){void 0===t&&(t=!1);var n=u.get(e.object);h(n.value,e.object,e.patches,"",t),e.patches.length&&i.applyPatch(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function h(e,t,n,r,i){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var a=o._objectKeys(t),s=o._objectKeys(e),u=!1,l=s.length-1;l>=0;l--){var c=e[d=s[l]];if(!o.hasOwnProperty(t,d)||void 0===t[d]&&void 0!==c&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(i&&n.push({op:"test",path:r+"/"+o.escapePathComponent(d),value:o._deepClone(c)}),n.push({op:"remove",path:r+"/"+o.escapePathComponent(d)}),u=!0):(i&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}),!0);else{var f=t[d];"object"==typeof c&&null!=c&&"object"==typeof f&&null!=f?h(c,f,n,r+"/"+o.escapePathComponent(d),i):c!==f&&(!0,i&&n.push({op:"test",path:r+"/"+o.escapePathComponent(d),value:o._deepClone(c)}),n.push({op:"replace",path:r+"/"+o.escapePathComponent(d),value:o._deepClone(f)}))}}if(u||a.length!=s.length)for(l=0;l<a.length;l++){var d=a[l];o.hasOwnProperty(e,d)||void 0===t[d]||n.push({op:"add",path:r+"/"+o.escapePathComponent(d),value:o._deepClone(t[d])})}}}function m(e,t,n){void 0===n&&(n=!1);var r=[];return h(e,t,r,"",n),r}t.unobserve=f,t.observe=d,t.generate=p,t.compare=m;var y=n(186),v=n(141);t.default=r({},y,{unobserve:f,observe:d,generate:p,compare:m,JsonPatchError:v.PatchError,deepClone:o._deepClone,escapePathComponent:o.escapePathComponent,unescapePathComponent:v.unescapePathComponent})},function(e,t,n){"use strict";var r=Array.isArray,o=Object.keys,i=Object.prototype.hasOwnProperty;e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var a,s,u,l=r(t),c=r(n);if(l&&c){if((s=t.length)!=n.length)return!1;for(a=s;0!=a--;)if(!e(t[a],n[a]))return!1;return!0}if(l!=c)return!1;var f=t instanceof Date,d=n instanceof Date;if(f!=d)return!1;if(f&&d)return t.getTime()==n.getTime();var p=t instanceof RegExp,h=n instanceof RegExp;if(p!=h)return!1;if(p&&h)return t.toString()==n.toString();var m=o(t);if((s=m.length)!==o(n).length)return!1;for(a=s;0!=a--;)if(!i.call(n,m[a]))return!1;for(a=s;0!=a--;)if(!e(t[u=m[a]],n[u]))return!1;return!0}return t!=t&&n!=n}},function(e,t,n){"use strict";e.exports=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}},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,u=void 0!==o.path?o.path:void 0!==i.path?i.path:"/",l=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:"")+(u?";path="+u:"")+(l?";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("=");if(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}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(11)),o=s(n(398)),i=s(n(402)),a=s(n(403));function s(e){return e&&e.__esModule?e:{default: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 l=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,o;return t=e,o=[{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]}}],(n=null)&&u(t.prototype,n),o&&u(t,o),e}();t.default=l,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(l,"providers",{address:o.default,auth:i.default,storage:a.default})},function(e,t,n){"use strict";n(19),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(399),i=n(400),a=n(236),s=n(401);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 l=(u(r={},o.AzureAddressProvider.name,o.AzureAddressProvider),u(r,i.CustomAddressProvider.name,i.CustomAddressProvider),u(r,a.GoogleAddressProvider.name,a.GoogleAddressProvider),u(r,s.NominatimAddressProvider.name,s.NominatimAddressProvider),r);t.default=l},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})(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})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(3),n(7),n(8),n(1),n(10),n(2),n(9),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.AzureAddressProvider=void 0;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&&a(e,t)}(l,e);var t,n,r,u=s(l);function l(){return o(this,l),u.apply(this,arguments)}return t=l,r=[{key:"name",get:function(){return"azure"}},{key:"displayName",get:function(){return"Azure Maps"}}],(n=[{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))}},{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"}}])&&i(t.prototype,n),r&&i(t,r),l}(n(142).AddressProvider);t.AzureAddressProvider=c},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})(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,n){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(3),n(7),n(8),n(0),n(1),n(12),n(10),n(2),n(9),n(13),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.CustomAddressProvider=void 0;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&&s(e,t)}(f,e);var t,n,r,l=u(f);function f(){return o(this,f),l.apply(this,arguments)}return t=f,r=[{key:"name",get:function(){return"custom"}},{key:"displayName",get:function(){return"Custom"}}],(n=[{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))}},{key:"queryProperty",get:function(){return this.options.queryProperty||a(c(f.prototype),"queryProperty",this)}},{key:"responseProperty",get:function(){return this.options.responseProperty||a(c(f.prototype),"responseProperty",this)}},{key:"displayValueProperty",get:function(){return this.options.displayValueProperty||a(c(f.prototype),"displayValueProperty",this)}}])&&i(t.prototype,n),r&&i(t,r),f}(n(142).AddressProvider);t.CustomAddressProvider=f},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})(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})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(3),n(7),n(8),n(1),n(10),n(2),n(9),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.NominatimAddressProvider=void 0;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&&a(e,t)}(l,e);var t,n,r,u=s(l);function l(){return o(this,l),u.apply(this,arguments)}return t=l,r=[{key:"name",get:function(){return"nominatim"}},{key:"displayName",get:function(){return"OpenStreetMap Nominatim"}}],(n=[{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))}},{key:"defaultOptions",get:function(){return{params:{addressdetails:"1",format:"json"}}}},{key:"queryProperty",get:function(){return"q"}},{key:"displayValueProperty",get:function(){return"display_name"}}])&&i(t.prototype,n),r&&i(t,r),l}(n(142).AddressProvider);t.NominatimAddressProvider=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(404)),o=l(n(405)),i=l(n(406)),a=l(n(414)),s=l(n(415)),u=l(n(416));function l(e){return e&&e.__esModule?e:{default:e}}var c={base64:r.default,dropbox:o.default,s3:i.default,url:s.default,azure:a.default,indexeddb:u.default};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(22))&&r.__esModule?r:{default:r};var 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},function(e,t,n){"use strict";n(0),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(22))&&r.__esModule?r:{default:r};var i=function(e){return{uploadFile:function(t,n,r,i,a,s,u,l,c){return new o.default((function(o,a){var s=new XMLHttpRequest;"function"==typeof i&&(s.upload.onprogress=i);var u=new FormData;u.append("name",n),u.append("dir",r),u.append("file",t),s.onerror=function(e){e.networkError=!0,a(e)},s.onload=function(){if(s.status>=200&&s.status<300){var e=JSON.parse(s.response);e.storage="dropbox",e.size=t.size,e.type=t.type,e.groupId=c,e.groupPermissions=l,e.url=e.path_lower,o(e)}else a(s.response||"Unable to upload file")},s.onabort=a,s.open("POST","".concat(e.formUrl,"/storage/dropbox"));var f=e.getToken();f&&s.setRequestHeader("x-jwt-token",f),s.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)}}};i.title="Dropbox";var a=i;t.default=a},function(e,t,n){"use strict";n(0),n(67),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(22)),o=i(n(237));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return{uploadFile:function(t,n,r,i,a,s,u,l,c){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.open("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.open("POST",i.url),a}),t,n,r,i,l,c).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},function(e,t,n){var r=n(20),o=n(159);e.exports=function(e){return r((function(){return!!o[e]()||"​…᠎"!="​…᠎"[e]()||o[e].name!==e}))}},function(e,t,n){var r=n(172),o=n(232),i=n(409),a=n(413),s=n(234),u=n(134),l=/^\s+|\s+$/g;e.exports=function(e,t,n){if((e=u(e))&&(n||void 0===t))return e.replace(l,"");if(!e||!(t=r(t)))return e;var c=s(e),f=s(t),d=a(c,f),p=i(c,f)+1;return o(c,d,p).join("")}},function(e,t,n){var r=n(187);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},function(e,t){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}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},function(e,t,n){var r=n(187);e.exports=function(e,t){for(var n=-1,o=e.length;++n<o&&r(t,e[n],0)>-1;);return n}},function(e,t,n){"use strict";n(0),n(19),n(67),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(237))&&r.__esModule?r:{default:r};var i=function(e){return{uploadFile:function(t,n,r,i,a,s,u,l,c){return o.default.upload(e,"azure",(function(e,n){return e.open("PUT",n.url),e.setRequestHeader("Content-Type",t.type),e.setRequestHeader("x-ms-blob-type","BlockBlob"),t}),t,n,r,i,l,c).then((function(){return{storage:"azure",name:o.default.path([r,n]),size:t.size,type:t.type,groupPermissions:l,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},function(e,t,n){"use strict";n(0),n(50),n(19),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(22))&&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){return new o.default((function(o,u){var l=new XMLHttpRequest,c="string"==typeof i,f=new FormData;if("function"==typeof s&&(l.upload.onprogress=s),!c)for(var d in i)f.append(d,i[d]);l.onload=function(){if(l.status>=200&&l.status<300){var e={};try{e=(e="string"==typeof l.response?JSON.parse(l.response):{})&&e.data?e.data:e}catch(t){e={}}var r=e.hasOwnProperty("url")?e.url:"".concat(l.responseURL,"/").concat(n);r&&"/"===r[0]&&(r="".concat(t).concat(r)),o({url:r,data:e})}else u(l.response||"Unable to upload file")},l.onerror=function(){return u(l)},l.onabort=function(){return u(l)};var p=t+(t.indexOf("?")>-1?"&":"?");for(var h in r)p+="".concat(h,"=").concat(r[h],"&");"&"===p[p.length-1]&&(p=p.substr(0,p.length-1)),l.open("POST",p),c&&l.setRequestHeader("Content-Type","application/json");var m=e.getToken();if(m&&l.setRequestHeader("x-jwt-token",m),a){var y="string"==typeof a?JSON.parse(a):a;for(var v in y)l[v]=y[v]}l.send(c?i:f)}))};return{title:"Url",name:"url",uploadFile:function(n,r,o,a,s,u,l){var c=function(c){var f;return t(s,r,{baseUrl:encodeURIComponent(e.projectUrl),project:c?c.project:"",form:c?c._id:""},(f={},i(f,l,n),i(f,"name",r),i(f,"dir",o),f),u,a).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 c(e)})):c()},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},function(e,t,n){"use strict";n(19),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(1006),i=(r=n(22))&&r.__esModule?r:{default:r};var a=function(){return{title:"indexedDB",name:"indexeddb",uploadFile:function(e,t,n,r,a,s){var u=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),u={id:i,data:n,name:e.name,size:e.size,type:e.type,url:a},l=t.transaction([s.indexeddbTable],"readwrite");l.objectStore(s.indexeddbTable).put(u,i).onerror=function(e){console.log("error storing data"),console.error(e)},l.oncomplete=function(){r({storage:"indexeddb",name:e.name,size:e.size,type:e.type,url:a,id:i})}},n.onerror=function(){return i(u)},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(e){t.url=e.target.result,o(t)},a.onerror=function(){return i(n)},a.readAsDataURL(r)}},s.onerror=function(){return i(n)}}))}))}}};a.title="IndexedDB";var s=a;t.default=s},function(e,t,n){var r=n(173),o=n(418),i=n(238),a=n(431),s=i((function(e){var t=r(e,a);return t.length&&t[0]===e[0]?o(t):[]}));e.exports=s},function(e,t,n){var r=n(419),o=n(422),i=n(423),a=n(173),s=n(138),u=n(424),l=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,y=[];p--;){var v=e[p];p&&t&&(v=a(v,s(t))),m=l(v.length,m),h[p]=!n&&(t||f>=120&&v.length>=120)?new r(p&&v):void 0}v=e[0];var b=-1,g=h[0];e:for(;++b<f&&y.length<m;){var w=v[b],k=t?t(w):w;if(w=n||0!==w?w:0,!(g?u(g,k):c(y,k,n))){for(p=d;--p;){var _=h[p];if(!(_?u(_,k):c(e[p],k,n)))continue e}g&&g.push(k),y.push(w)}}return y}},function(e,t,n){var r=n(170),o=n(420),i=n(421);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},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(187);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t){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}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(426),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),u=Array(s);++a<s;)u[a]=i[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=i[a];return l[t]=n(u),r(e,this,l)}}},function(e,t){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)}},function(e,t,n){var r=n(428),o=n(430)(r);e.exports=o},function(e,t,n){var r=n(429),o=n(219),i=n(183),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var o=n(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(432);e.exports=function(e){return r(e)?e:[]}},function(e,t,n){var r=n(139),o=n(63);e.exports=function(e){return o(e)&&r(e)}},function(e,t,n){var r=n(221);e.exports=function(e){return r(e,5)}},function(e,t,n){var r=n(238),o=n(132),i=n(231),a=n(140),s=Object.prototype,u=s.hasOwnProperty,l=r((function(e,t){e=Object(e);var n=-1,r=t.length,l=r>2?t[2]:void 0;for(l&&i(t[0],t[1],l)&&(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])&&!u.call(e,h))&&(e[h]=c[h])}return e}));e.exports=l},function(e,t,n){"use strict";var r=n(436);function o(e){this.message=e}o.prototype=new Error,o.prototype.name="InvalidTokenError",e.exports=function(e,t){if("string"!=typeof e)throw new o("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(r(e.split(".")[n]))}catch(e){throw new o("Invalid token specified: "+e.message)}},e.exports.InvalidTokenError=o},function(e,t,n){var r=n(437);e.exports=function(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(r(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 r(t)}}},function(e,t){function n(e){this.message=e}n.prototype=new Error,n.prototype.name="InvalidCharacterError",e.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,i=0,a=0,s="";o=t.charAt(a++);~o&&(r=i%4?64*r+o:o,i++%4)?s+=String.fromCharCode(255&r>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return s}},function(e,t,n){"use strict";n(439),n(440)},function(e,t){!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}}()},function(e,t,n){"use strict";(function(e){function t(e){return(t="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(3),n(7),n(8),n(1),n(29),n(19),n(441),n(442),n(2),n(21),n(5),n(6),n(34),n(37),n(4),"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,n){if("undefined"!=typeof document){var r,o,i;"defineProperty"in Object&&function(){try{return Object.defineProperty({},"test",{value:42}),!0}catch(e){return!1}}()||(r=Object.defineProperty,o=Object.prototype.hasOwnProperty.call(Object.prototype,"__defineGetter__"),i="A property cannot both have accessors and be writable or have a value",Object.defineProperty=function(e,n,a){if(r&&(e===window||e===document||e===Element.prototype||e instanceof Element))return r(e,n,a);if(null===e||!(e instanceof Object||"object"===t(e)))throw new TypeError("Object.defineProperty called on non-object");if(!(a instanceof Object))throw new TypeError("Property description must be an object");var s=String(n),u="value"in a||"writable"in a,l="get"in a&&t(a.get),c="set"in a&&t(a.set);if(l){if("function"!==l)throw new TypeError("Getter must be a function");if(!o)throw new TypeError("Getters & setters cannot be defined on this javascript engine");if(u)throw new TypeError(i);Object.__defineGetter__.call(e,s,a.get)}else e[s]=a.value;if(c){if("function"!==c)throw new TypeError("Setter must be a function");if(!o)throw new TypeError("Getters & setters cannot be defined on this javascript engine");if(u)throw new TypeError(i);Object.__defineSetter__.call(e,s,a.set)}return"value"in a&&(e[s]=a.value),e});var a,s=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,r){var o=this,i=[],a={},s=0,u=0,l=function(e){n(o,e,(function(){return f(),i[e]}),!1)},c=function(){if(s>=u)for(;u<s;++u)l(u)},f=function(){var n,o,u=arguments,l=/\s+/;if(u.length)for(o=0;o<u.length;++o)if(l.test(u[o]))throw(n=new SyntaxError('String "'+u[o]+'" contains an invalid character')).code=5,n.name="InvalidCharacterError",n;for(""===(i="object"===t(e[r])?(""+e[r].baseVal).replace(/^\s+|\s+$/g,"").split(l):(""+e[r]).replace(/^\s+|\s+$/g,"").split(l))[0]&&(i=[]),a={},o=0;o<i.length;++o)a[i[o]]=!0;s=i.length,c()};return f(),n(o,"length",(function(){return f(),s})),o.toLocaleString=o.toString=function(){return f(),i.join(" ")},o.item=function(e){return f(),i[e]},o.contains=function(e){return f(),!!a[e]},o.add=function(){f.apply(o,n=arguments);for(var n,u,l=0,d=n.length;l<d;++l)u=n[l],a[u]||(i.push(u),a[u]=!0);s!==i.length&&(s=i.length>>>0,"object"===t(e[r])?e[r].baseVal=i.join(" "):e[r]=i.join(" "),c())},o.remove=function(){f.apply(o,n=arguments);for(var n,u={},l=0,d=[];l<n.length;++l)u[n[l]]=!0,delete a[n[l]];for(l=0;l<i.length;++l)u[i[l]]||d.push(i[l]);i=d,s=d.length>>>0,"object"===t(e[r])?e[r].baseVal=i.join(" "):e[r]=i.join(" "),c()},o.toggle=function(e,t){return f.apply(o,[e]),void 0!==t?t?(o.add(e),!0):(o.remove(e),!1):a[e]?(o.remove(e),!1):(o.add(e),!0)},o}}();"DOMTokenList"in e&&(!("classList"in(a=document.createElement("x")))||!a.classList.toggle("x",!1)&&!a.className)||function(e){"DOMTokenList"in e&&e.DOMTokenList&&(!document.createElementNS||!document.createElementNS("http://www.w3.org/2000/svg","svg")||document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList)||(e.DOMTokenList=s),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 t=arguments[1];if(void 0===t){var n=!this.contains(e);return this[n?"add":"remove"](e),n}return this[(t=!!t)?"add":"remove"](e),t}))}(),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])}}}()}(e)}}("object"===("undefined"==typeof window?"undefined":t(window))&&window||"object"===("undefined"==typeof self?"undefined":t(self))&&self||"object"===(void 0===e?"undefined":t(e))&&e||{})}).call(this,n(51))},function(e,t,n){"use strict";var r=n(15),o=n(32),i=n(239),a=n(46),s=n(82),u=n(36);o&&r({target:"Object",proto:!0,forced:i},{__defineGetter__:function(e,t){u.f(a(this),e,{get:s(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(15),o=n(32),i=n(239),a=n(46),s=n(82),u=n(36);o&&r({target:"Object",proto:!0,forced:i},{__defineSetter__:function(e,t){u.f(a(this),e,{set:s(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";(function(e){n(3),n(7),n(8),n(0),n(23),n(39),n(31),n(1),n(29),n(14),n(40),n(30),n(68),n(19),n(69),n(107),n(26),n(2),n(444),n(62),n(21),n(5),n(44),n(6),n(103),n(34),n(37),n(67),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationChecker=t.default=void 0;var r=c(n(11)),o=n(18),i=c(n(54)),a=c(n(22)),s=c(n(125)),u=n(445),l=c(n(243));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&&Symbol.iterator in Object(e))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){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;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,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 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)}}var v=(0,s.default)({Promise:a.default}),b=v.fetch,g=v.Headers,w=v.Request,k=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m(this,t),this.config=r.default.defaults(e,t.config),this.validators={required:{key:"validate.required",method:"validateRequired",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)}},unique:{key:"validate.unique",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.isEmpty(n))||(!this.config.db||new a.default((function(t){var a=i.config.form,s=i.config.submission,u="data.".concat(e.path),l={form:a._id};r.default.isString(n)?l[u]={$regex:new RegExp("^".concat((0,o.escapeRegExCharacters)(n),"$")),$options:"i"}:r.default.isPlainObject(n)&&n.address&&n.address.address_components&&n.address.place_id?l["".concat(u,".address.place_id")]={$regex:new RegExp("^".concat((0,o.escapeRegExCharacters)(n.address.place_id),"$")),$options:"i"}:r.default.isArray(n)?l[u]={$all:n}:r.default.isObject(n)&&(l[u]={$eq:n}),l.deleted={$eq:null},i.config.db.findOne(l,(function(e,n){return t(!e&&(!n||s._id&&n._id.toString()===s._id))}))})).catch((function(){return!1}))))}},multiple:{key:"validate.multiple",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),u=e.component.validate.required;return i?s?!u||!!n.length:!!r.default.isNil(n)&&!u:a||!s}},select:{key:"validate.select",message:function(e){return e.t(e.errorMessage("select"),{field:e.errorLabel,data:e.data})},check:function(e,t,n,i,a,s,u){if(!(0,o.boolValue)(t))return!0;if(!n||r.default.isEmpty(n))return!0;if(!u)return!0;var l=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"!==l.dataSrc||!l.data.url||!l.searchField)return!0;c.url=l.data.url,c.qs[l.searchField]=n,l.filter&&(c.url+=(c.url.includes("?")?"&":"?")+l.filter),l.selectFields&&(c.qs.select=l.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(),l.data&&l.data.headers&&r.default.each(l.data.headers,(function(e){e.key&&(c.headers[e.key]=e.value)})),l.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",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",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);return!r||Object.keys(n).reduce((function(e,t){return n[t]&&e++,e}),0)>=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",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!(r&&"string"==typeof n&&!e.isEmpty(n))||n.length>=r}},maxLength:{key:"validate.maxLength",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",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",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||"string"!=typeof n||n.trim().split(/\s+/).length>=r}},email:{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:{message:function(e){return e.t(e.errorMessage("invalid_url"),{field:e.errorLabel,data:e.data})},check:function(e,t,n){return!n||/[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/.test(n)}},date:{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:{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)})),u=s[o],l=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: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;default:return 31}}(l,c);return!(u<0||u>f)&&(!(l<0||l>12)&&!(c<0||c>9999))}},pattern:{key:"validate.pattern",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){if(e.isEmpty(n))return!0;return!t||new RegExp("^".concat(t,"$")).test(n)}},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",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)||(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",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=(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",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=(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",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",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:"",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 l=s.settings,c=s.enteredDate,f=l.minDate,d=l.maxDate,p=l.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,u.checkInvalidDate)(c,h,f,d),y=m.message,v=m.result;if(!v)return this.validators.calendar.messageText=y,v}return n&&c?(0,i.default)(n).format()!==(0,i.default)(c,h,!0).format()&&c.match(/_/gi)?(this.validators.calendar.messageText=u.CALENDAR_ERROR_MESSAGES.INCOMPLETE,!1):(s.enteredDate="",!0):void 0}},time:{key:"validate.time",messageText:"Invalid time",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 n,s,c;return n=t,(s=[{key:"checkValidator",value:function(e,t,n,r,o,i,s,u){var l=this,c=null;c=t.method&&"function"==typeof e[t.method]?e[t.method](n,r,o,i,s,u):t.check.call(this,e,n,r,o,i,s,u);var f=function(r){return"string"==typeof r?r:!r&&t.message?t.message.call(l,e,n,i,s):""};return u?a.default.resolve(c).then(f):f(c)}},{key:"validate",value:function(e,t,n,i,s,u,l){if(!e.conditionallyVisible())return!1;var c=this.validators[t],f=r.default.get(e.component,c.key,null),d=this.checkValidator(e,c,f,n,i,s,u,l),p=function(i){return!!i&&{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,setting:f,key:e.key,label:e.label,value:n}}};return l?a.default.resolve(d).then(p):p(d)}},{key:"checkComponent",value:function(t,n,o){var i=this,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=void 0!==e&&"node"===r.default.get(e,"release.name")&&!r.default.defaultTo(t.component.persistent,!0);if(l||!1===t.component.validate)return u?a.default.resolve([]):[];n=n||t.rootValue,o=o||t.data;var c=t.component.multiple&&Array.isArray(t.validationValue)?t.validationValue:[t.validationValue],f=r.default.get(t,"component.validations");if(f&&Array.isArray(f)){var d=this.checkValidations(t,f,n,o,c,u),p=function(e){return s?e:e.filter((function(e){return"error"===e.level}))};return u?a.default.all(d).then(p):p(d)}var h=r.default.get(t,"component.validate.custom"),m=r.default.get(t,"component.validate.customMessage"),y=(0,r.default)(t.validators).chain().map((function(e){return i.validators.hasOwnProperty(e)?"required"!==e||c.length?r.default.map(c,(function(r,a){return i.validate(t,e,r,n,a,o,u)})):[i.validate(t,e,null,n,0,o,u)]:{message:'Validator for "'.concat(e,'" is not defined'),level:"warning",context:{validator:e,key:t.key,label:t.label}}})).flatten().value();t.component.validate=t.component.validate||{},t.component.validate.unique=t.component.unique,y.push(this.validate(t,"unique",t.validationValue,n,0,n,u)),t.component.validate.multiple=t.component.multiple,y.push(this.validate(t,"multiple",t.validationValue,n,0,n,u));var v=function(e){return e=(0,r.default)(e).chain().flatten().compact().value(),(m||h)&&r.default.each(e,(function(e){e.message=t.t(m||e.message,{field:t.errorLabel,data:n,row:o,error:e})})),s?e:r.default.reject(e,(function(e){return"warning"===e.level}))};return u?a.default.all(y).then(v):v(y)}},{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=l.default.getRule(t.rule),s=[];if(a){var u=new a(e,t.settings,this.config);o.map((function(o,a){var l=u.check(o,n,r,i);!0!==l&&s.push({level:t.level||"error",message:e.t(t.message||u.defaultMessage,{settings:t.settings,field:e.errorLabel,data:n,row:r,error:l}),context:{key:e.key,index:a,label:e.label,validator:t.rule}})}))}return 0!==s.length&&s}},{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)}},{key:"check",get:function(){return this.checkComponent}}])&&y(n.prototype,s),c&&y(n,c),t}();t.ValidationChecker=k,k.config={db:null,token:null,form:null,submission:null};var _=new k;t.default=_}).call(this,n(164))},function(e,t,n){var r=n(15),o=n(242).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){"use strict";n(0),n(108),n(50),n(29),n(14),n(62),n(21),n(5),n(103),n(34),n(37),Object.defineProperty(t,"__esModule",{value:!0}),t.lessOrGreater=u,t.checkInvalidDate=function(e,t,n,i){var l=(0,r.default)(e,t,!0),c=l.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})),y=o.default.findIndex(h,(function(e){return e.match(/yyyy/gi)}));if(p[y]/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})),b=(0,r.default)(v.join(""),t,!0);if(b.isValid()){var g=u(b,t[0],i,n);if(!g.result){var w=g.message,k=g.result;return s(w,k)}return s(a.INCOMPLETE,!1)}return s(a.INVALID,!1)}return s(a.INVALID,!1)}if(c&&-1===e.indexOf("_")){var _=u(l,t[0],i,n);if(!_.result){var O=_.message,S=_.result;return s(O,S)}}return s("",!0)},t.CALENDAR_ERROR_MESSAGES=void 0;var r=i(n(54)),o=i(n(11));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 u(e,t,n,o){var i="",s=!0;if(n&&e.isValid()){var u=(0,r.default)(n,t);e>u&&(i=a.greater(u,t),s=!1)}if(o&&e.isValid()){var l=(0,r.default)(o,t);e<l&&(i=a.less(l,t),s=!1)}return{message:i,result:s}}t.CALENDAR_ERROR_MESSAGES=a},function(e,t,n){"use strict";var r=n(447),o=n(448),i=n(449),a=n(450),s=n(451),u=n(452),l=n(453),c=n(454),f=n(455),d=n(456),p=n(457),h=n(458),m=n(459),y=n(460),v=n(461),b=n(462),g=n(463),w=n(464),k=n(465),_=n(466),O=n(467),S=n(468);e.exports={custom:r,date:o,day:i,email:a,json:s,mask:u,max:l,maxDate:c,maxLength:f,maxWords:d,min:p,minDate:h,minLength:m,minWords:y,pattern:v,required:b,select:g,unique:w,url:k,minYear:_,maxYear:O,time:S}},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})(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})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?l(e):t}function l(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)})(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(3),n(7),n(8),n(0),n(1),n(10),n(2),n(9),n(5),n(6),n(4);var d=n(35);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)}(c,e);var t,n,r,u=s(c);function c(){var e;o(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(l(e=u.call.apply(u,[this].concat(n))),"defaultMessage","{{error}}"),e}return t=c,(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),r&&i(t,r),c}(d)},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})(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})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?l(e):t}function l(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)})(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(3),n(7),n(8),n(0),n(1),n(10),n(2),n(9),n(5),n(6),n(4);var d=n(35);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)}(c,e);var t,n,r,u=s(c);function c(){var e;o(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(l(e=u.call.apply(u,[this].concat(n))),"defaultMessage","{{field}} is not a valid date."),e}return t=c,(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),r&&i(t,r),c}(d)},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})(e)}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;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,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(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 i(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 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 u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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}n(3),n(7),n(8),n(0),n(39),n(1),n(14),n(30),n(19),n(10),n(2),n(9),n(21),n(5),n(6),n(37),n(4);var h=n(35);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&&u(e,t)}(c,e);var t,n,r,i=l(c);function c(){var e;a(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return p(f(e=i.call.apply(i,[this].concat(n))),"defaultMessage","{{field}} is not a valid day."),e}return t=c,(n=[{key:"check",value:function(e){if(!e)return!0;if("string"!=typeof e)return!1;var t=o(this.component.dayFirst?[0,1,2]:[1,0,2],3),n=t[0],r=t[1],i=t[2],a=e.split("/").map((function(e){return parseInt(e,10)})),s=a[n],u=a[r],l=a[i],c=function(e,t){switch(e){case 1:case 3:case 5:case 7:case 8:case 10:case 12: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;default:return 31}}(u,l);return!(isNaN(s)||s<0||s>c||isNaN(u)||u<0||u>12||isNaN(l)||l<0||l>9999)}}])&&s(t.prototype,n),r&&s(t,r),c}(h)},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})(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})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?l(e):t}function l(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)})(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(3),n(7),n(8),n(0),n(1),n(10),n(2),n(9),n(5),n(6),n(4);var d=n(35);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)}(c,e);var t,n,r,u=s(c);function c(){var e;o(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(l(e=u.call.apply(u,[this].concat(n))),"defaultMessage","{{field}} must be a valid email."),e}return t=c,(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),r&&i(t,r),c}(d)},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})(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})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?l(e):t}function l(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)})(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(3),n(7),n(8),n(0),n(1),n(10),n(2),n(9),n(5),n(6),n(4);var d=n(35);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)}(c,e);var t,n,r,u=s(c);function c(){var e;o(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(l(e=u.call.apply(u,[this].concat(n))),"defaultMessage","{{error}}"),e}return t=c,(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),r&&i(t,r),c}(d)},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(10),n(2),n(9),n(5),n(6),n(4);var r=n(18);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,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)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?c(e):t}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)})(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(35);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)}(f,e);var t,n,o,l=u(f);function f(){var e;i(this,f);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(c(e=l.call.apply(l,[this].concat(n))),"defaultMessage","{{field}} does not match the mask."),e}return t=f,(n=[{key:"check",value:function(e){var t;if(this.component.isMultipleMasksField){var n=e?e.maskName:void 0,o=this.component.getMaskByName(n);o&&(t=(0,r.getInputMask)(o)),e=e?e.value:e}else t=(0,r.getInputMask)(this.settings.mask);return!e||!t||(0,r.matchInputMask)(e,t)}}])&&a(t.prototype,n),o&&a(t,o),f}(p)},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})(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})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?l(e):t}function l(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)})(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(3),n(7),n(8),n(0),n(1),n(69),n(107),n(10),n(2),n(9),n(5),n(6),n(4);var d=n(35);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)}(c,e);var t,n,r,u=s(c);function c(){var e;o(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(l(e=u.call.apply(u,[this].concat(n))),"defaultMessage","{{field}} cannot be greater than {{settings.limit}}."),e}return t=c,(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),r&&i(t,r),c}(d)},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(10),n(2),n(9),n(5),n(6),n(4);var r=n(18),o=a(n(54)),i=a(n(11));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})(e)}function u(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 c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?p(e):t}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)})(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 y=n(35);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)}(d,e);var t,n,a,s=f(d);function d(){var e;u(this,d);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(p(e=s.call.apply(s,[this].concat(n))),"defaultMessage","{{field}} should not contain date after {{settings.dateLimit}}"),e}return t=d,(n=[{key:"check",value:function(e){if(!e)return!0;if(e===this.settings.dateLimit)return!0;var t=(0,o.default)(e),n=(0,r.getDateSetting)(this.settings.dateLimit);return!!i.default.isNull(n)||(n.setHours(0,0,0,0),t.isBefore(n)||t.isSame(n))}}])&&l(t.prototype,n),a&&l(t,a),d}(y)},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})(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})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?l(e):t}function l(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)})(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(3),n(7),n(8),n(0),n(1),n(10),n(2),n(9),n(5),n(6),n(4);var d=n(35);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)}(c,e);var t,n,r,u=s(c);function c(){var e;o(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(l(e=u.call.apply(u,[this].concat(n))),"defaultMessage","{{field}} must have no more than {{- settings.length}} characters."),e}return t=c,(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),r&&i(t,r),c}(d)},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})(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})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?l(e):t}function l(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)})(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(3),n(7),n(8),n(0),n(1),n(10),n(2),n(9),n(21),n(5),n(6),n(37),n(67),n(4);var d=n(35);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)}(c,e);var t,n,r,u=s(c);function c(){var e;o(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(l(e=u.call.apply(u,[this].concat(n))),"defaultMessage","{{field}} must have no more than {{- settings.length}} words."),e}return t=c,(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),r&&i(t,r),c}(d)},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})(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})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?l(e):t}function l(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)})(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(3),n(7),n(8),n(0),n(1),n(69),n(107),n(10),n(2),n(9),n(5),n(6),n(4);var d=n(35);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)}(c,e);var t,n,r,u=s(c);function c(){var e;o(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(l(e=u.call.apply(u,[this].concat(n))),"defaultMessage","{{field}} cannot be less than {{settings.limit}}."),e}return t=c,(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),r&&i(t,r),c}(d)},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(10),n(2),n(9),n(5),n(6),n(4);var r=n(18),o=a(n(54)),i=a(n(11));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})(e)}function u(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 c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?p(e):t}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)})(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 y=n(35);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)}(d,e);var t,n,a,s=f(d);function d(){var e;u(this,d);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(p(e=s.call.apply(s,[this].concat(n))),"defaultMessage","{{field}} should not contain date before {{settings.dateLimit}}"),e}return t=d,(n=[{key:"check",value:function(e){if(!e)return!0;var t=(0,o.default)(e),n=(0,r.getDateSetting)(this.settings.dateLimit);return!!i.default.isNull(n)||(n.setHours(0,0,0,0),t.isAfter(n)||t.isSame(n))}}])&&l(t.prototype,n),a&&l(t,a),d}(y)},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})(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})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?l(e):t}function l(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)})(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(3),n(7),n(8),n(0),n(1),n(10),n(2),n(9),n(5),n(6),n(4);var d=n(35);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)}(c,e);var t,n,r,u=s(c);function c(){var e;o(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(l(e=u.call.apply(u,[this].concat(n))),"defaultMessage","{{field}} must have no more than {{- settings.length}} characters."),e}return t=c,(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),r&&i(t,r),c}(d)},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})(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})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?l(e):t}function l(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)})(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(3),n(7),n(8),n(0),n(1),n(10),n(2),n(9),n(21),n(5),n(6),n(37),n(67),n(4);var d=n(35);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)}(c,e);var t,n,r,u=s(c);function c(){var e;o(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(l(e=u.call.apply(u,[this].concat(n))),"defaultMessage","{{field}} must have at least {{- settings.length}} words."),e}return t=c,(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),r&&i(t,r),c}(d)},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})(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})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?l(e):t}function l(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)})(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(3),n(7),n(8),n(0),n(1),n(10),n(2),n(9),n(62),n(21),n(5),n(6),n(4);var d=n(35);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)}(c,e);var t,n,r,u=s(c);function c(){var e;o(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(l(e=u.call.apply(u,[this].concat(n))),"defaultMessage","{{field}} does not match the pattern {{settings.pattern}}"),e}return t=c,(n=[{key:"check",value:function(e){var t=this.settings.pattern;return!t||new RegExp("^".concat(t,"$")).test(e)}}])&&i(t.prototype,n),r&&i(t,r),c}(d)},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})(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})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?l(e):t}function l(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)})(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(3),n(7),n(8),n(0),n(1),n(10),n(2),n(9),n(5),n(6),n(4);var d=n(35);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)}(c,e);var t,n,r,u=s(c);function c(){var e;o(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(l(e=u.call.apply(u,[this].concat(n))),"defaultMessage","{{field}} is required"),e}return t=c,(n=[{key:"check",value:function(e){return!this.component.isValueHidden()&&!this.component.isEmpty(e)}}])&&i(t.prototype,n),r&&i(t,r),c}(d)},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(23),n(31),n(1),n(29),n(14),n(10),n(2),n(9),n(5),n(44),n(6),n(4);var r=n(18),o=s(n(22)),i=s(n(125)),a=s(n(11));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(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})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?h(e):t}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)})(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}var v=(0,i.default)({Promise:o.default}),b=v.fetch,g=v.Headers,w=v.Request,k=n(35);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)}(s,e);var t,n,o,i=d(s);function s(){var e;l(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y(h(e=i.call.apply(i,[this].concat(n))),"defaultMessage","{{field}} contains an invalid selection"),e}return t=s,(n=[{key:"check",value:function(e,t,n,o){if(!e||a.default.isEmpty(e))return!0;if(!o)return!0;var i=this.component.component,s={url:this.settings.url,method:"GET",qs:{},json:!0,headers:{}};if(a.default.isBoolean(s.url)){if(s.url=!!s.url,!s.url||"url"!==i.dataSrc||!i.data.url||!i.searchField)return!0;s.url=i.data.url,s.qs[i.searchField]=e,i.filter&&(s.url+=(s.url.includes("?")?"&":"?")+i.filter),i.selectFields&&(s.qs.select=i.selectFields)}return!s.url||(s.url=(0,r.interpolate)(s.url,{data:this.component.data}),s.url+=(s.url.includes("?")?"&":"?")+a.default.chain(s.qs).map((function(e,t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e))})).join("&").value(),i.data&&i.data.headers&&a.default.each(i.data.headers,(function(e){e.key&&(s.headers[e.key]=e.value)})),i.authenticate&&this.config.token&&(s.headers["x-jwt-token"]=this.config.token),b(new w(s.url,{headers:new g(s.headers)})).then((function(e){return!!e.ok&&e.json()})).then((function(e){return e&&e.length})).catch((function(){return!1})))}}])&&c(t.prototype,n),o&&c(t,o),s}(k)},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(10),n(2),n(9),n(62),n(21),n(5),n(6),n(4);var r=n(18),o=a(n(11)),i=a(n(22));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})(e)}function u(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 c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?p(e):t}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)})(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 y=n(35);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)}(d,e);var t,n,a,s=f(d);function d(){var e;u(this,d);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(p(e=s.call.apply(s,[this].concat(n))),"defaultMessage","{{field}} must be unique"),e}return t=d,(n=[{key:"check",value:function(e){var t=this;return!(e&&!o.default.isEmpty(e))||!this.config.db||new i.default((function(n){var i=t.config.form,a=t.config.submission,s="data.".concat(t.component.path),u={form:i._id};o.default.isString(e)?u[s]={$regex:new RegExp("^".concat((0,r.escapeRegExCharacters)(e),"$")),$options:"i"}:o.default.isPlainObject(e)&&e.address&&e.address.address_components&&e.address.place_id?u["".concat(s,".address.place_id")]={$regex:new RegExp("^".concat((0,r.escapeRegExCharacters)(e.address.place_id),"$")),$options:"i"}:o.default.isArray(e)?u[s]={$all:e}:o.default.isObject(e)&&(u[s]={$eq:e}),u.deleted={$eq:null},t.config.db.findOne(u,(function(e,t){return n(!e&&(!t||a._id&&t._id.toString()===a._id))}))})).catch((function(){return!1}))}}])&&l(t.prototype,n),a&&l(t,a),d}(y)},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})(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})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?l(e):t}function l(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)})(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(3),n(7),n(8),n(0),n(1),n(10),n(2),n(9),n(5),n(6),n(4);var d=n(35);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)}(c,e);var t,n,r,u=s(c);function c(){var e;o(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(l(e=u.call.apply(u,[this].concat(n))),"defaultMessage","{{field}} must be a valid url."),e}return t=c,(n=[{key:"check",value:function(e){return!e||/(https?:\/\/(?:www\.|(?!www)))?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/.test(e)}}])&&i(t.prototype,n),r&&i(t,r),c}(d)},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})(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})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?l(e):t}function l(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)})(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(3),n(7),n(8),n(0),n(1),n(10),n(2),n(9),n(21),n(5),n(6),n(4);var d=n(35);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)}(c,e);var t,n,r,u=s(c);function c(){var e;o(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(l(e=u.call.apply(u,[this].concat(n))),"defaultMessage","{{field}} should not contain year less than {{minYear}}"),e}return t=c,(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),r&&i(t,r),c}(d)},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})(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})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?l(e):t}function l(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)})(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(3),n(7),n(8),n(0),n(1),n(10),n(2),n(9),n(21),n(5),n(6),n(4);var d=n(35);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)}(c,e);var t,n,r,u=s(c);function c(){var e;o(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(l(e=u.call.apply(u,[this].concat(n))),"defaultMessage","{{field}} should not contain year greater than {{maxYear}}"),e}return t=c,(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),r&&i(t,r),c}(d)},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(10),n(2),n(9),n(5),n(6),n(4);var r,o=(r=n(54))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,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 u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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}var h=n(35);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&&u(e,t)}(c,e);var t,n,r,i=l(c);function c(){var e;a(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return p(f(e=i.call.apply(i,[this].concat(n))),"defaultMessage","{{field}} must contain valid time"),e}return t=c,(n=[{key:"check",value:function(e){return!!this.component.isEmpty(e)||(0,o.default)(e,this.component.component.format).isValid()}}])&&s(t.prototype,n),r&&s(t,r),c}(h)},function(e,t,n){"use strict";n(3),n(23),n(16),n(12),n(45),n(26),n(2),n(5),n(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=se(n(470)),o=se(n(472)),i=se(n(474)),a=se(n(476)),s=se(n(478)),u=se(n(480)),l=se(n(482)),c=se(n(484)),f=se(n(486)),d=se(n(488)),p=se(n(491)),h=se(n(494)),m=se(n(496)),y=se(n(498)),v=se(n(500)),b=se(n(502)),g=se(n(504)),w=se(n(507)),k=se(n(509)),_=se(n(511)),O=se(n(514)),S=se(n(517)),x=se(n(519)),P=se(n(521)),j=se(n(523)),C=se(n(525)),E=se(n(526)),A=se(n(529)),M=se(n(531)),R=se(n(533)),T=se(n(535)),D=se(n(537)),L=se(n(539)),I=se(n(541)),V=se(n(543)),N=se(n(545)),F=se(n(547)),U=se(n(549)),z=se(n(551)),B=se(n(553)),H=se(n(555)),q=se(n(557)),W=se(n(559)),Y=se(n(562)),K=se(n(564)),G=se(n(567)),J=se(n(570)),Z=se(n(573)),X=se(n(576)),$=se(n(579)),Q=se(n(581)),ee=se(n(583)),te=se(n(586)),ne=se(n(589)),re=se(n(591)),oe=se(n(594)),ie=se(n(596)),ae=se(n(598));function se(e){return e&&e.__esModule?e:{default:e}}function ue(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]:{};t%2?ue(Object(n),!0).forEach((function(t){ce(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fe=le(le({transform:function(e,t){if(!t)return t;switch(e){case"class":return this.cssClasses.hasOwnProperty(t.toString())?this.cssClasses[t.toString()]:t}return t},defaultIconset:"fa",iconClass:C.default,cssClasses:ae.default,address:r.default,builder:o.default,builderComponent:i.default,builderComponents:a.default,builderEditForm:s.default,builderPlaceholder:u.default,builderSidebar:l.default,builderSidebarGroup:c.default,builderWizard:f.default,button:d.default,checkbox:p.default,columns:h.default,component:m.default,componentModal:y.default,components:v.default,container:b.default,datagrid:g.default,day:w.default,dialog:k.default,editgrid:_.default,field:O.default,fieldset:S.default,file:x.default,html:P.default,icon:j.default,input:E.default,label:A.default,loader:M.default,loading:R.default,map:T.default,message:D.default,modaledit:I.default,modaldialog:L.default,modalPreview:V.default,multipleMasksInput:N.default,multiValueRow:F.default,multiValueTable:U.default,panel:z.default,pdf:B.default,pdfBuilder:H.default,pdfBuilderUpload:q.default,radio:W.default,resourceAdd:Y.default,select:K.default,selectOption:G.default,signature:J.default,survey:Z.default,tab:X.default,table:$.default,tree:Q.default},ee.default),{},{webform:te.default,well:ne.default,wizard:re.default,wizardHeader:oe.default,wizardNav:ie.default});t.default=fe},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(471))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;if(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 >\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 >\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"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(473))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return 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" ref="form">\n '+(null==(t=e.form)?"":t)+"\n </div>\n</div>\n"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(475))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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-secondary 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"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(477))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<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"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(479))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return n+='<div class="row">\n <div class="col col-sm-6">\n <p class="lead">'+(null==(t=e.t(e.componentInfo.title))?"":t)+" "+(null==(t=e.t("Component"))?"":t)+'</p>\n </div>\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.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</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>\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"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(481))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<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"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(483))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(485))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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))?"":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))?"":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"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(487))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(489)),o=i(n(490));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;for(var r in 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>\n",e.component.leftIcon&&(n+='<span class="'+(null==(t=e.component.leftIcon)?"":t)+'"></span>&nbsp;'),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"></i>\n'),n+="\n",e.component.rightIcon&&(n+='&nbsp;<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'}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"\n","\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(492)),o=i(n(493));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;for(var r in 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 >\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"></i>\n '),n+="\n "+(null==(t=e.input.content)?"":t)+"\n </"+(null==(t=e.input.type)?"":t)+">\n </label>\n</div>\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(495))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return e.component.columns.forEach((function(r,o){n+='\n<div class="\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"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(497))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(499))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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" ref="modalContents">\n <div ref="modalContents">\n ',e.visible&&(n+="\n "+(null==(t=e.children)?"":t)+"\n "),n+='\n <div class="formio-dialog-buttons">\n <button class="btn btn-success formio-dialog-button" ref="modalSave">'+(null==(t=e.t("Save"))?"":t)+'</button>\n </div>\n </div>\n <button class="formio-dialog-close float-right btn btn-secondary btn-sm" aria-label="close" ref="modalClose"></button>\n </div>\n </div>\n</div>\n'}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(501))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+=(null==(t=e.children.join(""))?"":t)+"\n"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(503))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<div ref="'+(null==(t=e.nestedKey)?"":t)+'">\n '+(null==(t=e.children)?"":t)+"\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(505)),o=i(n(506));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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))?"":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"></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"))?"":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 btn btn-default fa fa-bars"></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.builder&&e.hasRemoveButtons&&(n+='\n <td>\n <button type="button" class="btn btn-secondary 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">\n '+(null==(t=e.placeholder)?"":t)+"\n </td>\n "),n+="\n "),n+="\n </tr>\n "})),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">\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"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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))?"":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"></i>'),n+="\n </th>\n "})),n+="\n </tr>\n </thead>\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"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(508))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return n+='<div class="row">\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'}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(510))&&r.__esModule?r:{default:r}).default};t.default=o},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 float-right btn btn-secondary btn-sm" aria-label="close" ref="dialogClose"></button>\n </div>\n</div>\n','<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 float-right btn btn-secondary btn-sm" aria-label="close" ref="dialogClose"></button>\n </div>\n</div>\n'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(512)),o=i(n(513));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"))?"":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"))?"":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" 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"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"))?"":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"))?"":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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(515)),o=i(n(516));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,align:o.default};t.default=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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 class="form-text text-muted">'+(null==(t=e.t(e.component.description))?"":t)+"</div>\n"),n+="\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(518))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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))?"":t)+"\n ",e.component.tooltip&&(n+='\n <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted"></i>\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"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(520))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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">'+(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>\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">\n <i class="'+(null==(t=e.iconClass("cloud-upload"))?"":t)+'"></i> '+(null==(t=e.t("Drop files to attach,"))?"":t)+"\n ",e.self.imageUpload&&(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)+' <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>\n "),n+="\n </div>\n"),n+="\n"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(522))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(524))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<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"}},function(e,t,n){"use strict";n(0),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 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";break;case"time":t="clock-o"}return n?"".concat(e," ").concat(e,"-").concat(t," ").concat(e,"-spin"):"".concat(e," ").concat(e,"-").concat(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(527)),o=i(n(528));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;if((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))?"":t)+"\n ":n+="\n "+(null==(t=e.t(e.prefix))?"":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>'+(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="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",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))?"":t)+"\n ":n+="\n "+(null==(t=e.t(e.suffix))?"":t)+"\n ",n+="\n </span>\n</div>\n"),n+="\n",(e.prefix||e.suffix)&&(n+="\n</div>\n"),n+="\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return n+='<div ref="value">',e.value?n+=null==(t=e.value)?"":t:n+="-",n+="</div>\n"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(530))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return n+='<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>\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"></i>\n '),n+="\n</label>\n"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(532))&&r.__esModule?r:{default:r}).default};t.default=o},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','<div class="formio-loader">\n <div class="loader-wrapper">\n <div class="loader text-center"></div>\n </div> \n</div>\n'}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(534))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"Loading...\n","Loading...\n"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(536))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<div id="'+(null==(t=e.mapId)?"":t)+'" style="min-height: 300px; height: calc(100vh - 600px);" ref="gmapElement"></div>\n'}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(538))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<div class="form-text '+(null==(t=e.level)?"":t)+'">'+(null==(t=e.message)?"":t)+"</div>\n"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(540))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<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'}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(542))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<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"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(544))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<label class="control-label">'+(null==(t=e.t(e.component.label))?"":t)+"</label><br>\n<button lang='en' class='btn btn-light btn-md open-modal-button' ref='openModal'>\n "+(null==(t=e.previewText)?"":t)+"\n</button>\n"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(546))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;for(var r in 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"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(548))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(550))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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))?"":t)+"</button>\n </td>\n </tr>\n "),n+="\n </tbody>\n</table>\n"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(552))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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)+'" ref="header">\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))?"":t)+"\n "),n+="\n ",e.component.tooltip&&(n+='\n <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted"></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)+'">\n '+(null==(t=e.children)?"":t)+"\n </div>\n "),n+="\n</div>\n"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(554))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<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"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(556))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<div class="formio builder row formbuilder">\n <div class="loader-wrapper" ref="sidebar-loader"><div class="loader text-center"></div></div>\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"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(558))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<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>'+(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'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(560)),o=i(n(561));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return n+='<div class="form-radio radio">\n ',e.values.forEach((function(r){for(var o in n+='\n <div class="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.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))?"":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.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))?"":t)+"</span>\n "),n+="\n </label>\n </div>\n "})),n+="\n</div>\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;n+='<div ref="value">\n ';var r=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(", ");return n+="\n "+(null==(t=r)?"":t)+"\n </div>\n"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(563))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<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"))?"":t)+"\n </button>\n </td>\n </tr>\n </tbody>\n</table>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(565)),o=i(n(566));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;for(var r in 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>"+(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'}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return n+='<div ref="value">',e.value?n+=null==(t=e.self.itemValueForHTMLMode(e.value))?"":t:n+="-",n+="</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(568)),o=i(n(569));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;for(var r in 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))?"":t)+"\n</option>\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return e.selected&&(n+=null==(t=e.t(e.option.label))?"":t),n+="\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(571)),o=i(n(572));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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" 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"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'<img style="width: 100%;" ref="signatureImage">\n','<img style="width: 100%;" ref="signatureImage">\n'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(574)),o=i(n(575));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,html:o.default};t.default=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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;">'+(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"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(577)),o=i(n(578));function i(e){return e&&e.__esModule?e:{default:e}}var a={flat:r.default,form:o.default};t.default=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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))?"":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"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return n+='<div class="card">\n <div class="card-header">\n <ul class="nav nav-tabs card-header-tabs">\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)+'" href="#'+(null==(t=r.key)?"":t)+'" ref="'+(null==(t=e.tabLinkKey)?"":t)+'">'+(null==(t=e.t(r.label))?"":t)+"</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"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(580))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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.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"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(582))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(584));function o(e){return e&&e.__esModule?e:{default:e}}var i={treeView:{form:o(n(585)).default},treeEdit:{form:r.default}};t.default=i},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(587)),o=i(n(588));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,builder:o.default};t.default=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<div class="'+(null==(t=e.classes)?"":t)+'" ref="webform" novalidate>'+(null==(t=e.children)?"":t)+"</div>\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<div class="text-muted text-center p-2">'+(null==(t=e.t(e.component.title))?"":t)+"</div>\n"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(590))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<div class="card card-body bg-light">\n <div ref="'+(null==(t=e.nestedKey)?"":t)+'">\n '+(null==(t=e.children)?"":t)+"\n </div>\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(592)),o=i(n(593));function i(e){return e&&e.__esModule?e:{default:e}}var a={form:r.default,builder:o.default};t.default=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<div class="'+(null==(t=e.className)?"":t)+'">\n <div style="position: relative;">\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 </div>\n</div>"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<div class="text-muted text-center p-2">'+(null==(t=e.t(e.component.title))?"":t)+"</div>\n"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(595))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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="page-item'+(null==(t=e.currentPage===o?" active":"")?"":t)+'" style="">\n <span class="page-link" ref="'+(null==(t=e.wizardKey)?"":t)+'-link">'+(null==(t=e.t(r.title))?"":t)+"</span>\n </li>\n "})),n+="\n </ul>\n</nav>\n"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={form:((r=n(597))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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-secondary 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"}},function(e,t,n){"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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(600);t.default={framework:"bootstrap3",templates:r.default}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(601);t.default={bootstrap3:r.default}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(602),o=n(603),i=n(605),a=n(607),s=n(609),u=n(611),l=n(613),c=n(615),f=n(617),d=n(619),p=n(620),h=n(623),m=n(625),y=n(627),v=n(630),b=n(633),g=n(635),w=n(637),k=n(638),_=n(641),O=n(643),S=n(645),x=n(647),P=n(649),j=n(651),C=n(653),E=n(655),A=n(658),M=n(660),R=n(663),T=n(666),D=n(669),L=n(671),I=n(673),V=n(676),N=n(678);t.default={transform:function(e,t){if(!t)return t;switch(e){case"class":return this.cssClasses.hasOwnProperty(t.toString())?this.cssClasses[t.toString()]:t}return t},handleBuilderSidebarScroll:function(e){e.scrollResizeObserver&&e.scrollResizeObserver.disconnect(),e.scrollResizeObserver=new r.default((function(){setTimeout((function(){var t=e.refs,n=t.form.parentNode.clientHeight,r=t.sidebar,o=r.clientHeight;r.parentNode.style.height=Math.max(o+20,n)+"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:u.default,builderSidebar:l.default,builderSidebarGroup:c.default,columns:f.default,datagrid:p.default,day:h.default,dialog:m.default,editgrid:y.default,field:v.default,file:b.default,icon:g.default,input:k.default,label:_.default,message:O.default,modaldialog:S.default,modaledit:x.default,multiValueRow:P.default,multiValueTable:j.default,panel:C.default,radio:E.default,resourceAdd:A.default,signature:M.default,survey:R.default,tab:T.default,table:D.default,well:L.default,wizard:I.default,wizardHeader:V.default,wizardNav:N.default}},function(e,t,n){"use strict";n.r(t),function(e){var n=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}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var a=["top","right","bottom","left","width","height","size","weight"],s="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;function a(){n&&(n=!1,e()),r&&u()}function s(){i(a)}function u(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(s,t);o=e}return u}(this.refresh.bind(this),20)}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(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&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;a.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}(),l=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},c=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},f=v(0,0,0,0);function d(e){return parseFloat(e)||0}function p(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+d(e["border-"+n+"-width"])}),0)}function h(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var r=c(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]=d(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=d(r.width),u=d(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=p(r,"left","right")+i),Math.round(u+a)!==n&&(u-=p(r,"top","bottom")+a)),!function(e){return e===c(e).document.documentElement}(e)){var l=Math.round(s+i)-t,h=Math.round(u+a)-n;1!==Math.abs(l)&&(s-=l),1!==Math.abs(h)&&(u-=h)}return v(o.left,o.top,s,u)}var m="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof c(e).SVGGraphicsElement}:function(e){return e instanceof c(e).SVGElement&&"function"==typeof e.getBBox};function y(e){return r?m(e)?function(e){var t=e.getBBox();return v(0,0,t.width,t.height)}(e):h(e):f}function v(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_=v(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=y(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,u,c=(r=(n=t).x,o=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(s.prototype),l(u,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),u);l(this,{target:e,contentRect:c})},w=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}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 c(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 c(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())}));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 n,_=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)}}));var O=void 0!==o.ResizeObserver?o.ResizeObserver:_;t.default=O}.call(this,n(51))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(604);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return 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" ref="form">\n '+(null==(t=e.form)?"":t)+"\n </div>\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(606);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(608);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(610);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return n+='<div class="row">\n <div class="col col-sm-6">\n <p class="lead">'+(null==(t=e.t(e.componentInfo.title))?"":t)+" "+(null==(t=e.t("Component"))?"":t)+'</p>\n </div>\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.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="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>\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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(612);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(614);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return n+='<div id="'+(null==(t=e.groupId)?"":t)+'" class="panel-group 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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(616);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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))?"":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))?"":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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(618);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(621),o=n(622);t.default={form:r.default,html:o.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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))?"":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"></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"))?"":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 btn btn-default fa fa-bars"></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.builder&&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">\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="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"))?"":t)+"\n </button>\n </td>\n </tr>\n </tfoot>\n "),n+="\n</table>\n"}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n,r="";Array.prototype.join;return 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"></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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(624);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(626);t.default={form:r.default}},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','<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'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(628),o=n(629);t.default={form:r.default,html:o.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"))?"":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"))?"":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"))?"":t)+"\n</button>\n"),n+="\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"))?"":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"))?"":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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(631),o=n(632);t.default={align:r.default,form:o.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(634);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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">'+(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>\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">\n <i class="'+(null==(t=e.iconClass("cloud-upload"))?"":t)+'"></i> '+(null==(t=e.t("Drop files to attach,"))?"":t)+"\n ",e.self.imageUpload&&(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)+' <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>\n "),n+="\n </div>\n"),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(636);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<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"}},function(e,t,n){"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}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(639),o=n(640);t.default={form:r.default,html:o.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;if((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))?"":t)+"\n":n+="\n "+(null==(t=e.t(e.prefix))?"":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"}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="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",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))?"":t)+"\n":n+="\n "+(null==(t=e.t(e.suffix))?"":t)+"\n",n+="\n</div>\n"),n+="\n",(e.prefix||e.suffix)&&(n+="\n</div>\n"),n+="\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return n+='<div ref="value">',e.value?n+=null==(t=e.value)?"":t:n+="-",n+="</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(642);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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))?"":t)+"\n ",e.component.tooltip&&(n+='\n <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted"></i>\n '),n+="\n "),n+="\n</label>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(644);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<p class="help-block '+(null==(t=e.level)?"":t)+'">'+(null==(t=e.message)?"":t)+"</p>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(646);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<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'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(648);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(650);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(652);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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))?"":t)+"</button>\n </td>\n </tr>\n "),n+="\n </tbody>\n</table>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(654);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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" ref="header">\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))?"":t)+"\n "),n+="\n ",e.component.tooltip&&(n+='\n <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted"></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)+'">\n '+(null==(t=e.children)?"":t)+"\n </div>\n "),n+="\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(656),o=n(657);t.default={form:r.default,html:o.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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.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))?"":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.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))?"":t)+"</span>\n "),n+="\n </label>\n </div>\n "})),n+="\n</div>\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;n+='<div ref="value">\n ';var r=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(", ");return n+="\n "+(null==(t=r)?"":t)+"\n </div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(659);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<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"))?"":t)+"\n </button>\n </td>\n </tr>\n </tbody>\n</table>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(661),o=n(662);t.default={form:r.default,html:o.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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" 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"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'<img style="width: 100%;" ref="signatureImage">\n','<img style="width: 100%;" ref="signatureImage">\n'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(664),o=n(665);t.default={form:r.default,html:o.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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;">'+(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"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(667),o=n(668);t.default={flat:r.default,form:o.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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))?"":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"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return n+='<ul class="nav nav-tabs">\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)+'" href="#'+(null==(t=r.key)?"":t)+'" ref="'+(null==(t=e.tabLinkKey)?"":t)+'">'+(null==(t=e.t(r.label))?"":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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(670);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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))?"":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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(672);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<div class="well">\n <div ref="'+(null==(t=e.nestedKey)?"":t)+'">\n '+(null==(t=e.children)?"":t)+"\n </div>\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(674),o=n(675);t.default={form:o.default,builder:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<div class="text-muted text-center">'+(null==(t=e.t(e.component.title))?"":t)+"</div>\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<div class="'+(null==(t=e.className)?"":t)+'">\n <div style="position: relative;">\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 </div>\n</div>"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(677);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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="page-item'+(null==(t=e.currentPage===o?" active":"")?"":t)+'" style="">\n <span class="page-link" ref="'+(null==(t=e.wizardKey)?"":t)+'-link">'+(null==(t=r.title)?"":t)+"</span>\n </li>\n "})),n+="\n </ul>\n</nav>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(679);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(681);t.default={framework:"semantic",templates:r.default}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(682);t.default={semantic:r.default}},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}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(683),i=n(685),a=n(687),s=n(689),u=n(691),l=n(693),c=n(695),f=n(697),d=n(699),p=n(702),h=n(705),m=n(707),y=n(709),v=n(710),b=n(713),g=n(715),w=n(718),k=n(721),_=n(723),O=n(725),S=n(727),x=n(728),P=n(731),j=n(733),C=n(735),E=n(737),A=n(739),M=n(741),R=n(743),T=n(745),D=n(748),L=n(750),I=n(753),V=n(756),N=n(759),F=n(762),U=n(765),z=n(767),B=n(769),H=n(772),q=n(775),W=n(777);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:S.default,cssClasses:y.default,builder:o.default,builderComponent:i.default,builderComponents:a.default,builderEditForm:s.default,builderPlaceholder:u.default,builderSidebar:l.default,builderSidebarGroup:c.default,builderWizard:f.default,button:d.default,checkbox:p.default,columns:h.default,component:m.default,datagrid:v.default,day:b.default,editgrid:g.default,field:w.default,fieldset:k.default,file:_.default,icon:O.default,input:x.default,label:P.default,loader:j.default,loading:C.default,message:E.default,multiValueRow:A.default,multiValueTable:M.default,panel:R.default,radio:T.default,resourceAdd:D.default,select:L.default,selectOption:I.default,signature:V.default,survey:N.default,tab:F.default,tree:z.default},B.default),{table:U.default,webform:H.default,well:q.default,wizard:W.default})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(684);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return 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" ref="form">\n '+(null==(t=e.form)?"":t)+"\n </div>\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(686);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(688);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(690);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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>\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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(692);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<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'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(694);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(696);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(698);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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">\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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(700),o=n(701);t.default={form:r.default,html:o.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;for(var r in 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>&nbsp;'),n+="\n"+(null==(t=e.input.content)?"":t)+"\n",e.component.rightIcon&&(n+='&nbsp;<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'}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"\n","\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(703),o=n(704);t.default={form:r.default,html:o.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;for(var r in 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.tooltip&&(n+='\n <span data-tooltip="'+(null==(t=e.tooltip)?"":t)+'" data-position="right center">\n <i class="'+(null==(t=e.iconClass("question-sign"))?"":t)+'"></i>\n </span>\n '),n+="\n </label>\n</div>\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(706);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(708);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(711),o=n(712);t.default={form:r.default,html:o.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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+=' <span data-tooltip="'+(null==(t=r.tooltip)?"":t)+'" data-position="right center">\n <i class="'+(null==(t=e.iconClass("question-sign"))?"":t)+'"></i>\n </span>'),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.builder&&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"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"></i>'),n+="\n </th>\n "})),n+="\n </tr>\n </thead>\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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(714);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(716),o=n(717);t.default={form:r.default,html:o.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(719),o=n(720);t.default={form:r.default,align:o.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(722);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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)+'"></i>\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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(724);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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">\n <i class="'+(null==(t=e.iconClass("cloud-upload"))?"":t)+'"></i> '+(null==(t=e.t("Drop files to attach,"))?"":t)+"\n ",e.self.imageUpload&&(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)+' <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>\n "),n+="\n </div>\n"),n+="\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(726);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<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"}},function(e,t,n){"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}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(729),o=n(730);t.default={form:r.default,html:o.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;if(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"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return n+='<div ref="value">',e.value?n+=null==(t=e.value)?"":t:n+="-",n+="</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(732);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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.tooltip&&(n+='\n <span data-tooltip="'+(null==(t=e.tooltip)?"":t)+'" data-position="right center">\n <i class="'+(null==(t=e.iconClass("question-sign"))?"":t)+'"></i>\n </span>\n '),n+="\n "),n+="\n</label>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(734);t.default={form:r.default}},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','<div class="formio-loader">\n <div class="loader-wrapper">\n <div class="ui active centered inline loader"></div>\n </div>\n</div>\n'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(736);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"Loading...\n","Loading...\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(738);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<div class="ui pointing red basic label '+(null==(t=e.level)?"":t)+'">\n '+(null==(t=e.message)?"":t)+"\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(740);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(742);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(744);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return(!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"></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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(746),o=n(747);t.default={form:r.default,html:o.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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.id)?"":t)+(null==(t=e.row)?"":t)+"-"+(null==(t=r.value)?"":t)+'"\n >\n <label class="" for="'+(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"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;n+='<div ref="value">\n ';var r=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(", ");return n+="\n "+(null==(t=r)?"":t)+"\n </div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(749);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(751),o=n(752);t.default={form:r.default,html:o.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;for(var r in 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'}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return n+='<div ref="value">',e.value?n+=null==(t=e.self.itemValueForHTMLMode(e.value))?"":t:n+="-",n+="</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(754),o=n(755);t.default={form:r.default,html:o.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;for(var r in 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"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return e.selected&&(n+=null==(t=e.t(e.option.label))?"":t),n+="\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(757),o=n(758);t.default={form:r.default,html:o.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'<img style="width: 100%;" ref="signatureImage">\n','<img style="width: 100%;" ref="signatureImage">\n'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(760),o=n(761);t.default={form:r.default,html:o.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(763),o=n(764);t.default={flat:r.default,form:o.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return n+='<div class="ui top attached tabular menu">\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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(766);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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>\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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(768);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(770),o=n(771);t.default={treeView:{form:o.default},treeEdit:{form:r.default}}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(773),o=n(774);t.default={form:o.default,builder:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<div class="ui visible message"><p>'+(null==(t=e.t(e.component.title))?"":t)+"</p></div>\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<div class="'+(null==(t=e.classes)?"":t)+' ui form" ref="webform" novalidate>'+(null==(t=e.children)?"":t)+"</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(776);t.default={form:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(778),o=n(779);t.default={form:o.default,builder:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<div class="formio-wizard-builder-component-title">'+(null==(t=e.t(e.component.title))?"":t)+"</div>\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<div class="'+(null==(t=e.className)?"":t)+'">\n <div class="formio-wizard-position">\n '+(null==(t=e.wizardHeader)?"":t)+'\n <div class="wizard-page" ref="'+(null==(t=wizardKey)?"":t)+'">\n '+(null==(t=e.components)?"":t)+"\n </div>\n "+(null==(t=e.wizardNav)?"":t)+"\n </div>\n</div>"}},function(e,t,n){var r=n(15),o=n(781);r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},function(e,t,n){var r=n(24),o=n(158).trim,i=n(159),a=r.parseInt,s=/^[+-]?0[Xx]/,u=8!==a(i+"08")||22!==a(i+"0x16");e.exports=u?function(e,t){var n=o(String(e));return a(n,t>>>0||(s.test(n)?16:10))}:a},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(57),n(31),n(50),n(1),n(29),n(14),n(40),n(19),n(12),n(10),n(26),n(2),n(9),n(13),n(62),n(21),n(5),n(6),n(34),n(120),n(37),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(11)),o=u(n(22)),i=u(n(59)),a=u(n(74)),s=n(18);function u(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(l,e);var t,n,i,u=h(l);function l(){return c(this,l),u.apply(this,arguments)}return t=l,i=[{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:"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:"http://help.form.io/userguide/#button",weight:110,schema:l.schema()}}}],(n=[{key:"createLabel",value:function(){}},{key:"createInput",value:function(e){return this.refs.button=d(y(l.prototype),"createInput",this).call(this,e),this.refs.button}},{key:"getValue",value:function(){return this.dataValue}},{key:"render",value:function(){return(this.viewOnly||this.options.hideButtons)&&(this._visible=!1),d(y(l.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("submitDone",(function(t){var n=r.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=r.default.isString(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),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;r&&r.noValidate&&(e.component.disableOnInvalid||e.hasError)&&(o=r.rootValidity||!e.root||e.root.checkValidity(e.root.data,null,null,!0),r.rootValidity=o),e.loading=!1,e.disabled=e.shouldDisabled||e.component.disableOnInvalid&&!o,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.addEventListener(this.refs.button,"click",this.onClick.bind(this)),this.disabled=this.shouldDisabled,"oauth"===this.component.action&&this.oauthConfig&&!this.oauthConfig.error){var o=function(e){e=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]".concat(e,"=([^&#]*)")).exec(location.search);return t?decodeURIComponent(t[1].replace(/\+/g," ")):t}("iss");o&&0===this.oauthConfig.authURI.indexOf(o)&&this.openOauth(this.oauthConfig)}}},{key:"attach",value:function(e){this.loadRefs(e,{button:"single",buttonMessageContainer:"single",buttonMessage:"single"});var t=d(y(l.prototype),"attach",this).call(this,e);return this.attachButton(),t}},{key:"detach",value:function(e){e&&this.refs.button&&this.removeShortcut(this.refs.button),d(y(l.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;case"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=(0,s.flattenComponents)(t.component.components,!0),o={};r.default.each(n,(function(e,n){var r=t.getComponent(n);r&&(o[n]=r)})),this.evaluate(this.component.custom,{form:t,flattened:n,components:o});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:window.location.origin||"".concat(window.location.protocol,"//").concat(window.location.host),state:e.state,scope:e.scope};e.display&&(n.display=e.display),n=Object.keys(n).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(n[e]))})).join("&");var i="".concat(e.authURI,"?").concat(n),a=window.open(i,e.provider,"width=1020,height=618"),s=setInterval((function(){try{var n=a.location.host,i=window.location.host;if(a&&!a.closed&&n===i&&a.location.search){a.close();var u=a.location.search.substr(1).split("&").reduce((function(e,t){var n=t.split("=");return e[n[0]]=n[1],e}),{});if(u.error)return alert(u.error_description||u.error),void t.root.setAlert("danger",u.error_description||u.error);if(e.state!==u.state)return void t.root.setAlert("danger","OAuth state does not match. Please try logging in again.");var l=o.default.resolve();if(r.default.has(t,"root.form.config.oauth")&&t.root.form.config.oauth[t.component.oauthProvider])u.provider=e.provider,u.redirectURI=window.location.origin,l=t.root.formio.makeRequest("oauth","".concat(t.root.formio.projectUrl,"/oauth2"),"POST",u);else{var c={data:{},oauth:{}};c.oauth[e.provider]=u,c.oauth[e.provider].redirectURI=window.location.origin||"".concat(window.location.protocol,"//").concat(window.location.host),l=t.root.formio.saveSubmission(c)}l.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)}a&&!a.closed&&void 0!==a.closed||clearInterval(s)}),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=this;if(this.root){var t=this.root.components.find((function(t){return"recaptcha"===t.component.type&&"buttonClick"===t.component.eventType&&t.component.buttonKey===e.component.key}));t&&t.verify("".concat(this.component.key,"Click"))}}},{key:"defaultSchema",get:function(){return l.schema()}},{key:"inputInfo",get:function(){var e=d(y(l.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),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:"emptyValue",get:function(){return!1}},{key:"clicked",get:function(){return this.dataValue}},{key:"defaultValue",get:function(){return!1}},{key:"className",get:function(){var e=d(y(l.prototype),"className",this);return e+=" form-group"}},{key:"oauthConfig",get:function(){return r.default.has(this,"root.form.config.oauth")&&this.component.oauthProvider?this.root.form.config.oauth[this.component.oauthProvider]:!!this.component.oauth&&this.component.oauth}}])&&f(t.prototype,n),i&&f(t,i),l}(i.default);t.default=v},function(e,t,n){"use strict";n(3),n(7),n(8),n(31),n(1),n(14),n(12),n(10),n(2),n(9),n(13),n(65),n(21),n(5),n(44),n(6),n(103),n(34),n(37),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(41)),o=u(n(248)),i=n(18),a=u(n(54)),s=u(n(11));function u(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t,n,r){return(c="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=p(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})(e,t,n,r)}function f(e,t,n,r,o){if(!c(e,t,n,r||e)&&o)throw new Error("failed to set property");return n}function d(e,t,n){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(n):o.value}})(e,t,n||e)}function p(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}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){return t&&h(e.prototype,t),n&&h(e,n),e}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(n,e);var t=v(n);function n(e,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(o=t.call(this,e,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}return m(n,null,[{key:"defaultSettings",get:function(){return{type:"calendar",altInput:!0,allowInput:!0,clickOpens:!0,enableDate:!0,enableTime:!0,mode:"single",noCalendar:!1,format:"yyyy-MM-dd hh:mm a",dateFormat:"yyyy-MM-ddTHH:mm:ssZ",useLocaleSettings:!1,language:"us-en",hourIncrement:1,minuteIncrement:5,time_24hr:!1,saveAs:"date",displayInTimezone:"",timezone:"",disable:[],minDate:"",maxDate:""}}}]),m(n,[{key:"loadZones",value:function(){var e=this,t=this.timezone;return!((0,i.zonesLoaded)()||!(0,i.shouldLoadZones)(t))&&((0,i.loadZones)(t).then((function(){return e.emit("redraw")})),!0)}},{key:"attach",value:function(e){var t=this,o=d(g(n.prototype),"attach",this).call(this,e);this.setPlaceholder(e);var a=(0,i.getLocaleDateFormatInfo)(this.settings.language);return this.defaultFormat={date:a.dayFirst?"d/m/Y ":"m/d/Y ",time:"G:i K"},this.closedOn=0,this.valueFormat=this.settings.dateFormat||"yyyy-MM-ddTHH:mm:ssZ",this.valueMomentFormat=(0,i.convertFormatToMoment)(this.valueFormat),this.settings.minDate=(0,i.getDateSetting)(this.settings.minDate),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.maxDate=(0,i.getDateSetting)(this.settings.maxDate),this.settings.wasDefaultValueChanged=!1,this.settings.defaultValue="",this.settings.manualInputValue="",this.settings.isManuallyOverriddenValue=!1,this.settings.altFormat=(0,i.convertFormatToFlatpickr)(this.settings.format),this.settings.dateFormat=(0,i.convertFormatToFlatpickr)(this.settings.dateFormat),this.settings.onChange=function(){t.settings.allowInput&&(t.settings.isManuallyOverriddenValue&&t.settings.enableTime?t.calendar._input.value=t.settings.manualInputValue:t.settings.manualInputValue="",t.settings.isManuallyOverriddenValue=!1),t.emit("update")},this.settings.onOpen=function(){return t.hook("onCalendarOpen")},this.settings.onClose=function(){t.hook("onCalendarClose"),t.closedOn=Date.now(),t.settings.allowInput&&t.settings.enableTime&&(t.calendar._input.value=t.settings.manualInputValue||t.calendar._input.value,t.settings.isManuallyOverriddenValue=!1),t.settings.wasDefaultValueChanged&&(t.calendar._input.value=t.settings.defaultValue,t.settings.wasDefaultValueChanged=!1),t.calendar&&t.emit("blur")},r.default.requireLibrary("flatpickr-css","flatpickr-css",[{type:"styles",src:"".concat("https://cdn.form.io/").concat(this.flatpickrType,"/flatpickr.min.css")}],!0),o.then((function(){return r.default.requireLibrary("flatpickr","flatpickr","".concat("https://cdn.form.io/").concat(t.flatpickrType,"/flatpickr.min.js"),!0).then((function(e){t.settings.formatDate=function(n,r){return t.settings.readOnly&&r===t.settings.altFormat?"text"===t.settings.saveAs||!t.settings.enableTime||t.loadZones()?e.formatDate(n,r):(0,i.formatOffset)(e.formatDate.bind(e),n,r,t.timezone):e.formatDate(n,r)},t._input&&(t.calendar=new e(t._input,t.settings),t.calendar.altInput.addEventListener("input",(function(e){t.settings.allowInput&&(t.settings.manualInputValue=e.target.value,t.settings.isManuallyOverriddenValue=!0),""===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})),t.settings.readOnly||t.setInputMask(t.calendar._input,(0,i.convertFormatToMask)(t.settings.format)),t.addEventListener(t.calendar._input,"blur",(function(e){var n;(null===(n=e.relatedTarget)||void 0===n?void 0:n.className.split(/\s+/).includes("flatpickr-day"))||t.calendar.setDate(t.calendar.input.value,!0,t.settings.altFormat)})))}))}))}},{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:"getDateValue",value:function(e,t){return(0,a.default)(e).format((0,i.convertFormatToMoment)(t))}},{key:"getValue",value:function(){if(!this.calendar)return d(g(n.prototype),"getValue",this).call(this);var e=this.calendar.selectedDates;return e&&e.length?e[0]instanceof Date?this.getDateValue(e[0],this.valueFormat):"Invalid Date":d(g(n.prototype),"getValue",this).call(this)}},{key:"setValue",value:function(e){if(!this.calendar)return d(g(n.prototype),"setValue",this).call(this,e);e?"text"!==this.settings.saveAs&&this.settings.readOnly&&!this.loadZones()?this.calendar.setDate((0,i.momentDate)(e,this.valueFormat,this.timezone).toDate(),!1):this.calendar.setDate((0,a.default)(e,this.valueMomentFormat).toDate(),!1):this.calendar.clear(!1)}},{key:"getValueAsString",value:function(e,t){return t=t||this.dateFormat,"text"===this.settings.saveAs?this.getDateValue(e,t):(0,i.formatDate)(e,t,this.timezone)}},{key:"setPlaceholder",value:function(e){e&&!e.getAttribute("placeholder")&&e.setAttribute("placeholder",this.settings.format)}},{key:"validationValue",value:function(e){return"string"==typeof e?new Date(e):e.map((function(e){return new Date(e)}))}},{key:"destroy",value:function(){d(g(n.prototype),"destroy",this).call(this),this.calendar&&this.calendar.destroy()}},{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:"timezone",get:function(){return this.settings.timezone?this.settings.timezone:"submission"===this.settings.displayInTimezone&&this.settings.submissionTimezone?this.settings.submissionTimezone:"utc"===this.settings.displayInTimezone?"UTC":(0,i.currentTimezone)()}},{key:"defaultSettings",get:function(){return n.defaultSettings}},{key:"disabled",set:function(e){f(g(n.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.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,i.convertFormatToFlatpickr)(this.dateFormat)}},{key:"dateFormat",get:function(){return s.default.get(this.settings,"format","yyyy-MM-dd hh:mm a")}},{key:"flatpickrType",get:function(){return"flatpickr"}}]),n}(o.default);t.default=w},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(19),n(12),n(10),n(2),n(9),n(13),n(21),n(5),n(6),n(34),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(59))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,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 u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(f,e);var t,n,r,i=c(f);function f(){return a(this,f),i.apply(this,arguments)}return t=f,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:"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:"http://help.form.io/userguide/#checkbox",weight:50,schema:f.schema()}}}],(n=[{key:"render",value:function(){return u(d(f.prototype),"render",this).call(this,this.renderTemplate("checkbox",{input:this.inputInfo,checked:this.checked,tooltip:this.interpolate(this.t(this.component.tooltip)||"").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)),u(d(f.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(e){e&&this.input&&this.removeShortcut(this.input),u(d(f.prototype),"detach",this).call(this)}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return u(d(f.prototype),"isEmpty",this).call(this,e)||!1===e}},{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=u(d(f.prototype),"getValue",this).call(this);return this.component.name?e?this.setCheckedState(e):this.setCheckedState(this.dataValue):""===e?this.dataValue:!!e}},{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]:{};return(void 0!==this.setCheckedState(e)||!(this.input||void 0===e||!this.visible&&this.component.clearOnHide))&&this.updateValue(e,t)}},{key:"getValueAsString",value:function(e){return e?"Yes":"No"}},{key:"defaultSchema",get:function(){return f.schema()}},{key:"defaultValue",get:function(){var e=this.component.name;return e?this.component[e]||this.emptyValue:"true"===(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=u(d(f.prototype),"elementInfo",this).call(this);return e.type="input",e.changeEvent="click",e.attr.type=this.component.inputType||"checkbox",e.attr.class="form-check-input",this.component.name&&(e.attr.name="data[".concat(this.component.name,"]")),e.attr.value=this.component.value?this.component.value:0,e.label=this.t(this.component.label),e.labelClass=this.labelClass,e}},{key:"labelInfo",get:function(){return{hidden:!0}}},{key:"emptyValue",get:function(){return"radio"===this.component.inputType&&null}},{key:"key",get:function(){return this.component.name?this.component.name:u(d(f.prototype),"key",this)}},{key:"checked",get:function(){return this.component.name?this.dataValue===this.component.value:!!this.dataValue}}])&&s(t.prototype,n),r&&s(t,r),f}(o.default);t.default=p},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(23),n(16),n(39),n(1),n(14),n(40),n(30),n(19),n(12),n(10),n(2),n(9),n(13),n(5),n(6),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(11)),o=i(n(64));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})(e)}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(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 l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||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){return t&&c(e.prototype,t),n&&c(e,n),e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(n,e);var t=p(n);function n(e,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(i=t.call(this,e,r,o)).rows=[],i}return f(n,null,[{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:"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,hideOnChildrenHidden:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Columns",icon:"columns",group:"layout",documentation:"http://help.form.io/userguide/#columns",weight:10,schema:n.schema()}}}]),f(n,[{key:"init",value:function(){var e=this;l(m(n.prototype),"init",this).call(this),this.columns=[],r.default.each(this.component.columns,(function(t,n){e.columns[n]=[],t.size||(t.size="md"),Array.isArray(t.components)||(t.components=[]),r.default.each(t.components,(function(t){t.hideOnChildrenHidden=e.component.hideOnChildrenHidden;var r=e.createComponent(t);r.column=n,e.columns[n].push(r)}))})),this.rows=this.groupByRow()}},{key:"labelIsHidden",value:function(){return!0}},{key:"render",value:function(){var e=this;return l(m(n.prototype),"render",this).call(this,this.renderTemplate("columns",{columnKey:this.columnKey,columnComponents:this.columns.map((function(t){return e.renderComponents(t)}))}))}},{key:"attach",value:function(e){var t=this;this.loadRefs(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}({},this.columnKey,"multiple"));var r=l(m(n.prototype),"attach",this).call(this,e);return this.refs[this.columnKey].forEach((function(e,n){return t.attachComponents(e,t.columns[n],t.component.columns[n].components)})),r}},{key:"justifyRow",value:function(e){var t=r.default.filter(e,"visible"),n=e.length,o=t.length;if(n>0&&o>0){var i=Math.floor(this.gridSize/o),a=i*o,s=this.gridSize-a;r.default.each(t,(function(e){e.component.width=i})),r.default.last(t).component.width+=s,r.default.each(t,(function(e){e.element&&e.element.setAttribute("class",e.className)}))}}},{key:"groupByRow",value:function(){var e=this,t=function(e){return e.component.width},n=r.default.reduce(this.components,(function(n,o){var i=[].concat(s(n.stack),[o]);return r.default.sumBy(i,t)<=e.gridSize?(n.stack=i,n):(n.rows=[].concat(s(n.rows),[n.stack]),n.stack=[o],n)}),{stack:[],rows:[]});return r.default.concat(n.rows,[n.stack])}},{key:"justify",value:function(){r.default.each(this.columns,this.justifyRow.bind(this))}},{key:"checkComponentConditions",value:function(e,t,r){if(this.component.autoAdjust){var o=l(m(n.prototype),"checkComponentConditions",this).call(this,e,t,r);return this.justify(),o}return l(m(n.prototype),"checkComponentConditions",this).call(this,e,t,r)}},{key:"detach",value:function(e){l(m(n.prototype),"detach",this).call(this,e)}},{key:"destroy",value:function(){l(m(n.prototype),"destroy",this).call(this),this.columns=[]}},{key:"schema",get:function(){var e=this,t=r.default.omit(l(m(n.prototype),"schema",this),["components"]);return t.columns.map((function(n,o){n.components.map((function(n,i){var a=r.default.clone(n);a.internal=!0;var s=e.createComponent(a);delete s.component.internal,t.columns[o].components[i]=s.schema}))})),t}},{key:"defaultSchema",get:function(){return n.schema()}},{key:"className",get:function(){return"row ".concat(l(m(n.prototype),"className",this))}},{key:"columnKey",get:function(){return"column-".concat(this.id)}},{key:"gridSize",get:function(){return 12}}]),n}(o.default);t.default=y},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(12),n(10),n(2),n(9),n(13),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(48)),o=i(n(11));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})(e)}function s(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 l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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&&c(e,t)}(d,e);var t,n,i,a=f(d);function d(){return s(this,d),a.apply(this,arguments)}return t=d,i=[{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:"Content",type:"content",key:"content",input:!1,html:""}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Content",group:"layout",icon:"html5",preview:!1,documentation:"http://help.form.io/userguide/#content-component",weight:5,schema:d.schema()}}}],(n=[{key:"render",value:function(){return l(p(d.prototype),"render",this).call(this,this.renderTemplate("html",{tag:"div",attrs:[],content:this.content}))}},{key:"attach",value:function(e){var t=this;return this.loadRefs(e,{html:"single"}),this.component.refreshOnChange&&this.on("change",(function(){t.refs.html&&t.setContent(t.refs.html,t.content)}),!0),l(p(d.prototype),"attach",this).call(this,e)}},{key:"defaultSchema",get:function(){return d.schema()}},{key:"content",get:function(){if(this.builderMode)return this.component.html;var e=o.default.get(this.root,"submission",{});return this.component.html?this.interpolate(this.component.html,{metadata:e.metadata||{},submission:e,data:this.rootValue,row:this.data}):""}},{key:"emptyValue",get:function(){return""}}])&&u(t.prototype,n),i&&u(t,i),d}(r.default);t.default=h},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(39),n(31),n(1),n(29),n(30),n(19),n(69),n(107),n(12),n(10),n(2),n(9),n(13),n(21),n(5),n(44),n(6),n(34),n(37),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(249),o=n(106),i=u(n(11)),a=n(18),s=u(n(250));function u(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||d(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){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;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,t)||d(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 d(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}function p(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 h(e,t,n){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=w(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function m(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(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=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)}(n,e);var t=b(n);function n(e,r,o){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),e&&!e.hasOwnProperty("delimiter")&&(e.delimiter=!0),t.call(this,e,r,o)}return y(n,null,[{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:"currency",label:"Currency",key:"currency"}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Currency",group:"advanced",icon:"usd",documentation:"http://help.form.io/userguide/#currency",weight:70,schema:n.schema()}}}]),y(n,[{key:"createNumberMask",value:function(){var e=i.default.get(this.component,"decimalLimit",2),t=(0,a.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,r.createNumberMask)({prefix:this.currencyPrefix,suffix:this.currencySuffix,thousandsSeparatorSymbol:i.default.get(this.component,"thousandsSeparator",this.delimiter),decimalSymbol:i.default.get(this.component,"decimalSymbol",this.decimalSeparator),decimalLimit:e,allowNegative:i.default.get(this.component,"allowNegative",!0),allowDecimal:this.isDecimalAllowed()})}},{key:"isDecimalAllowed",value:function(){return i.default.get(this.component,"allowDecimal",!0)}},{key:"setInputMask",value:function(e){var t=(0,a.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,o.maskInput)({inputElement:e,mask:this.numberMask||""})}},{key:"parseNumber",value:function(e){return h(w(n.prototype),"parseNumber",this).call(this,this.stripPrefixSuffix(e))}},{key:"parseValue",value:function(e){return h(w(n.prototype),"parseValue",this).call(this,this.stripPrefixSuffix(e))}},{key:"addZerosAndFormatValue",value:function(e){if(e||0===e){var t,r=i.default.get(this.component,"decimalLimit",2),o="",a=[],s=!!this.currencyPrefix&&e.includes(this.currencyPrefix),u=!!this.currencySuffix&&e.includes(this.currencySuffix),l=e.includes("-")||!1;if((e=this.stripPrefixSuffix(l?e.replace("-",""):e)).includes(this.decimalSeparator)){var d=f(e.split(this.decimalSeparator),2);t=d[0],a=c((o=d[1]).split(""))}else t=e;if(o.length<r)for(;a.length<r;)a.push("0");var p="".concat(l?"-":"").concat(s?this.currencyPrefix:"").concat(t).concat(this.decimalSeparator).concat(a.join("")).concat(u?this.currencySuffix:"");return h(w(n.prototype),"formatValue",this).call(this,p)}}},{key:"getValueAsString",value:function(e,t){var r=h(w(n.prototype),"getValueAsString",this).call(this,e,t);return e||"0"==e?this.addZerosAndFormatValue(r):r}},{key:"formatValue",value:function(e){return e||"0"===e?this.addZerosAndFormatValue(e):h(w(n.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;h(w(n.prototype),"addFocusBlurEvents",this).call(this,e),this.addEventListener(e,"blur",(function(){e.value=t.getValueAsString(t.addZerosAndFormatValue(t.parseValue(e.value)))}))}},{key:"defaultSchema",get:function(){return n.schema()}}]),n}(s.default);t.default=k},function(e,t,n){n(15)({target:"String",proto:!0},{repeat:n(167)})},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(57),n(1),n(14),n(66),n(19),n(61),n(12),n(10),n(26),n(2),n(9),n(13),n(65),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(48)),o=u(n(251)),i=u(n(11)),a=u(n(166)),s=n(18);function u(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t,n,r){return(c="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=g(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})(e,t,n,r)}function f(e,t,n,r,o){if(!c(e,t,n,r||e)&&o)throw new Error("failed to set property");return n}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,n){return t&&p(e.prototype,t),n&&p(e,n),e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e,t,n){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(n):o.value}})(e,t,n||e)}function g(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=w(e)););return e}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=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)}(n,e);var t=y(n);function n(e,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(i=t.call(this,e,r,o)).type="datamap",i}return h(n,[{key:"schema",get:function(){var e=b(w(n.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:"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:"http://help.form.io/userguide/#datamap",weight:20,schema:n.schema()}}}]),h(n,[{key:"init",value:function(){this.components=[],this.rows=[],this.createRows(),this.visibleColumns=d({key:!0},this.valueKey,!0),this.component.valueComponent.hideLabel=!0}},{key:"getRowValues",value:function(){var e=this.dataValue;return this.builderMode?[e]:i.default.isEmpty(e)?[]:Object.keys(e).map((function(){return e}))}},{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,"key")),t[e]}},{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:"createRowComponents",value:function(e,t){var n=this,r=this.getRowKey(t),o=i.default.clone(this.options);o.events=new a.default({wildcard:!1,maxListeners:0}),o.name+="[".concat(t,"]"),o.row="".concat(t);var u={};u.__key=this.createComponent(this.keySchema,o,{__key:r}),u.__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=u[n.valueKey];i.component.key=o,i.path=n.calculateComponentPath(i),r=o}));var l=i.default.clone(this.component.valueComponent);l.key=r;var c=this.options;return c.row=o.row,u[this.valueKey]=this.createComponent(l,c,this.dataValue),u}},{key:"addChildComponent",value:function(e){this.component.valueComponent=e}},{key:"saveChildComponent",value:function(e){e.key===this.valueKey&&(this.component.valueComponent=e)}},{key:"removeChildComponent",value:function(){var e=n.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}}},{key:"defaultSchema",get:function(){return n.schema()}},{key:"emptyValue",get:function(){return{}}},{key:"dataValue",get:function(){return!this.key||!this.visible&&this.component.clearOnHide?this.emptyValue:(this.hasValue()||(this.dataValue=this.emptyValue),i.default.get(this.data,this.key))},set:function(e){f(w(n.prototype),"dataValue",e,this,!0)}},{key:"defaultValue",get:function(){var e=b(w(n.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:"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:"canAddColumn",get:function(){return!1}}]),n}(o.default);t.default=k},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(23),n(16),n(1),n(12),n(45),n(10),n(26),n(2),n(9),n(13),n(21),n(5),n(6),n(34),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(11)),o=u(n(54)),i=u(n(74)),a=u(n(254)),s=u(n(144));function u(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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,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,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(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,n){return t&&p(e.prototype,t),n&&p(e,n),e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(n,e);var t=y(n);function n(e,o,i){var a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var s=(a=t.call(this,e,o,i)).component.timezone||a.options.timezone,u=!r.default.get(a.component,"timePicker.showMeridian",!0);a.component.enableDate||(a.component.format=a.component.format.replace(/yyyy-MM-dd /g,"")),a.component.enableTime?a.component.format=u?a.component.format.replace(/hh:mm a$/g,"HH:mm"):a.component.format.replace(/HH:mm$/g,"hh:mm a"):a.component.format=a.component.format.replace(/ hh:mm a$/g,"");var l=a.component.customOptions||{};if("string"==typeof l)try{l=JSON.parse(l)}catch(e){console.warn(e.message),l={}}return a.component.widget=function(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){f(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}({type:"calendar",timezone:s,displayInTimezone:r.default.get(a.component,"displayInTimezone","viewer"),submissionTimezone:a.submissionTimezone,locale:a.options.language,useLocaleSettings:r.default.get(a.component,"useLocaleSettings",!1),allowInput:r.default.get(a.component,"allowInput",!0),mode:"single",enableTime:r.default.get(a.component,"enableTime",!0),noCalendar:!r.default.get(a.component,"enableDate",!0),format:a.component.format,hourIncrement:r.default.get(a.component,"timePicker.hourStep",1),minuteIncrement:r.default.get(a.component,"timePicker.minuteStep",5),time_24hr:u,readOnly:a.options.readOnly,minDate:r.default.get(a.component,"datePicker.minDate"),disabledDates:r.default.get(a.component,"datePicker.disable"),disableWeekends:r.default.get(a.component,"datePicker.disableWeekends"),disableWeekdays:r.default.get(a.component,"datePicker.disableWeekdays"),disableFunction:r.default.get(a.component,"datePicker.disableFunction"),maxDate:r.default.get(a.component,"datePicker.maxDate")},l),a.validators.push("date"),a}return h(n,null,[{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:"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:"http://help.form.io/userguide/#datetime",weight:40,schema:n.schema()}}}]),h(n,[{key:"performInputMapping",value:function(e){return e.widget&&e.widget.settings&&(e.widget.settings.submissionTimezone=this.submissionTimezone),e}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return!(!e||"Invalid Date"!==e.toString())||d(b(n.prototype),"isEmpty",this).call(this,e)}},{key:"formatValue",value:function(e){var t=o.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,n=a.default.convertFormatToMoment(this.component.format);return this.isEmpty(e)&&this.isEmpty(t)||o.default.utc(e).format(n)===o.default.utc(t).format(n)}},{key:"createWrapper",value:function(){return!1}},{key:"checkValidity",value:function(e,t,r){return this.refs.input&&this.refs.input.forEach((function(e){e.widget&&e.widget.enteredDate&&(t=!0)})),d(b(n.prototype),"checkValidity",this).call(this,e,t,r)}},{key:"focus",value:function(){if(this.refs.input&&this.refs.input[0]){var e=this.refs.input[0].nextSibling;e&&e.focus()}}},{key:"widget",get:function(){return this.component.widget?new s.default[this.component.widget.type](this.component.widget,this.component):null}},{key:"defaultSchema",get:function(){return n.schema()}},{key:"defaultValue",get:function(){var e=d(b(n.prototype),"defaultValue",this);return!e&&this.component.defaultDate&&(e=(e=a.default.getDateSetting(this.component.defaultDate))?e.toISOString():""),e}},{key:"emptyValue",get:function(){return""}}]),n}(i.default);t.default=g},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(16),n(39),n(1),n(29),n(14),n(40),n(30),n(19),n(12),n(10),n(2),n(9),n(13),n(65),n(21),n(5),n(6),n(792),n(37),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(11)),o=a(n(59)),i=n(18);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})(e)}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;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,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(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 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 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=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!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})(e,t,n,r)}function p(e,t,n,r,o){if(!d(e,t,n,r||e)&&o)throw new Error("failed to set property");return n}function h(e,t,n){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(n):o.value}})(e,t,n||e)}function m(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})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(l,e);var t,n,a,s=v(l);function l(){return c(this,l),s.apply(this,arguments)}return t=l,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:"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:"http://help.form.io/userguide/#day",weight:50,schema:l.schema()}}}],(n=[{key:"inputDefinition",value:function(e){var t,n;return"day"===e&&(t=1,n=31),"month"===e&&(t=1,n=12),"year"===e&&(t=r.default.get(this.component,"fields.year.minYear",1900)||1900,n=r.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:"setErrorClasses",value:function(e,t,n){h(g(l.prototype),"setErrorClasses",this).call(this,e,t,n),h(g(l.prototype),"setErrorClasses",this).call(this,[this.refs.day,this.refs.month,this.refs.year],t,n)}},{key:"removeInputError",value:function(e){h(g(l.prototype),"removeInputError",this).call(this,[this.refs.day,this.refs.month,this.refs.year]),h(g(l.prototype),"removeInputError",this).call(this,e)}},{key:"init",value:function(){h(g(l.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;var n=(0,i.getLocaleDateFormatInfo)(this.options.language);this.dayFirst=this.component.useLocaleSettings?n.dayFirst:this.component.dayFirst}},{key:"render",value:function(){return h(g(l.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=h(g(l.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),n}},{key:"validateRequired",value:function(e,t){var n=this.parts,r=n.day,o=n.month,a=n.year;return!(this.dayRequired&&!r||this.monthRequired&&!o||this.yearRequired&&!a||(0,i.boolValue)(e)&&this.isEmpty(t))}},{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),!r.default.isNaN(n)&&r.default.isNumber(n)?n:0}},{key:"getDate",value:function(e){var t,n,o,i=[],a=u(this.component.dayFirst?[0,1,2]:[1,0,2],3),s=a[0],l=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||r.default.isNaN(t))&&(t=i[s]&&!r.default.isNaN(i[s])?i[s]:0),this.showMonth&&this.refs.month&&(n=parseInt(this.refs.month.value,10)),(void 0===n||r.default.isNaN(n))&&(n=i[l]&&!r.default.isNaN(i[l])?i[l]:0),this.showYear&&this.refs.year&&(o=parseInt(this.refs.year.value)),(void 0===o||r.default.isNaN(o))&&(o=i[c]&&!r.default.isNaN(i[c])?i[c]:0),t||n||o?(t=this.showDay?t.toString().padStart(2,0):"",n=this.showMonth?n.toString().padStart(2,0):"",o=this.showYear?o.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(o):"".concat(n).concat(this.showDay&&this.showMonth||this.showMonth&&this.showYear?"/":"").concat(t).concat(this.showDay&&this.showYear?"/":"").concat(o)):null}},{key:"normalizeMinMaxDates",value:function(){return[this.component.minDate,this.component.maxDate].map((function(e){return e?e.split("-").reverse().join("/"):e}))}},{key:"getValue",value:function(){var e=h(g(l.prototype),"getValue",this).call(this);return e||this.dataValue}},{key:"getValueAt",value:function(e){var t=this.date;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(){this.dayFirst&&this.showDay||!this.dayFirst&&!this.showMonth&&this.showDay?this.refs.day.focus():this.dayFirst&&!this.showDay&&this.showMonth||!this.dayFirst&&this.showMonth?this.refs.month.focus():this.showDay||this.showDay||!this.showYear||this.refs.year.focus()}},{key:"isPartialDay",value:function(e){if(!e)return!1;var t=u(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:"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&&r.default.get(this.component,"fields.day.required",!1)}},{key:"showDay",get:function(){return!r.default.get(this.component,"fields.day.hide",!1)}},{key:"monthRequired",get:function(){return this.showMonth&&r.default.get(this.component,"fields.month.required",!1)}},{key:"showMonth",get:function(){return!r.default.get(this.component,"fields.month.hide",!1)}},{key:"yearRequired",get:function(){return this.showYear&&r.default.get(this.component,"fields.year.required",!1)}},{key:"showYear",get:function(){return!r.default.get(this.component,"fields.year.hide",!1)}},{key:"defaultSchema",get:function(){return l.schema()}},{key:"inputInfo",get:function(){var e=h(g(l.prototype),"elementInfo",this).call(this);return e.type="input",e.attr.type="hidden",e.changeEvent="input",e}},{key:"days",get:function(){if(this._days)return this._days;this._days=[{value:"",label:r.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:r.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:r.default.get(this.component,"fields.year.placeholder","")}];for(var e=r.default.get(this.component,"fields.year.minYear",1900)||1900,t=r.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:"disabled",set:function(e){p(g(l.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:"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:"date",get:function(){return this.getDate()}},{key:"validationValue",get:function(){var e=u(this.dayFirst?this.normalizeMinMaxDates():[this.component.minDate,this.component.maxDate],2);return this.component.minDate=e[0],this.component.maxDate=e[1],this.dataValue}}])&&f(t.prototype,n),a&&f(t,a),l}(o.default);t.default=w},function(e,t,n){"use strict";var r=n(15),o=n(793).start;r({target:"String",proto:!0,forced:n(794)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(33),o=n(167),i=n(53),a=Math.ceil,s=function(e){return function(t,n,s){var u,l,c=String(i(t)),f=c.length,d=void 0===s?" ":String(s),p=r(n);return p<=f||""==d?c:(u=p-f,(l=o.call(d,a(u/d.length))).length>u&&(l=l.slice(0,u)),e?c+l:l+c)}};e.exports={start:s(!1),end:s(!0)}},function(e,t,n){var r=n(210);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(23),n(16),n(39),n(31),n(1),n(14),n(40),n(30),n(68),n(66),n(19),n(61),n(12),n(45),n(10),n(26),n(2),n(9),n(13),n(5),n(44),n(6),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(11)),o=c(n(22)),i=c(n(190)),a=c(n(48)),s=c(n(796)),u=n(18),l=c(n(797));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,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){h(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,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(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 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 v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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 g(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),e}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e,t,n){return(O="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=S(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x={New:"new",Editing:"editing",Saved:"saved",Viewing:"viewing",Removed:"removed",Draft:"draft"},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&&w(e,t)}(n,e);var t=k(n);function n(){var e;v(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).type="editgrid",e}return g(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">').concat(this.t("Cancel"),'</button>\n <button ref="dialogYesButton" class="btn btn-primary">').concat(this.t("Yes, delete it"),"</button>\n </div>\n ")}},{key:"defaultSchema",get:function(){return n.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:"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){var r=t[n];e.data=r,e.components.forEach((function(e){e.data=r}))}))}},{key:"iteratableRows",get:function(){return this.editRows}},{key:"defaultValue",get:function(){var e=O(S(n.prototype),"defaultValue",this),t=Array.isArray(e)?e:[];return r.default.times(this.minLength-t.length,(function(){return t.push({})})),t}}],[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];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:n.defaultHeaderTemplate,row:n.defaultRowTemplate,footer:""}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Edit Grid",icon:"tasks",group:"data",documentation:"http://help.form.io/userguide/#editgrid",weight:30,schema:n.schema()}}},{key:"defaultHeaderTemplate",get:function(){return'<div class="row">\n {% util.eachComponent(components, function(component) { %}\n {% if (!component.hasOwnProperty(\'tableView\') || component.tableView) { %}\n <div class="col-sm-2">{{ component.label }}</div>\n {% } %}\n {% }) %}\n </div>'}},{key:"defaultRowTemplate",get:function(){return'<div class="row">\n {% util.eachComponent(components, function(component) { %}\n {% if (!component.hasOwnProperty(\'tableView\') || component.tableView) { %}\n <div class="col-sm-2">\n {{ getView(component, row[component.key]) }}\n </div>\n {% } %}\n {% }) %}\n {% if (!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>'}}]),g(n,[{key:"loadRefs",value:function(e,t){O(S(n.prototype),"loadRefs",this).call(this,e,t);"single"===t["".concat("messageContainer")]&&(this.refs["".concat("messageContainer")]=m(e.children).filter((function(e){var t,n;return"messageContainer"===(null===(t=e.attributes)||void 0===t||null===(n=t.ref)||void 0===n?void 0:n.value)}))[0])}},{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=[],O(S(n.prototype),"init",this).call(this);this.components=this.components||[];var t=this.dataValue||[];if(!t.length&&this.component.openWhenEmpty){var r={};this.editRows=[{components:this.createRowComponents(r,0),data:r,state:x.New,backup:null,error:null}],this.inlineEditMode&&this.dataValue.push(r)}else this.editRows=t.map((function(t,n){return{components:e.createRowComponents(t,n),data:t,state:x.Saved,backup:null,error:null}}));this.checkData()}},{key:"isOpen",value:function(e){return[x.New,x.Editing,x.Viewing].includes(e.state)}},{key:"render",value:function(e){var t=this;if(this.builderMode)return O(S(n.prototype),"render",this).call(this);var o=this.dataValue||[],i=u.Evaluator.noeval?l.default.header:r.default.get(this.component,"templates.header");return O(S(n.prototype),"render",this).call(this,e||this.renderTemplate("editgrid",{ref:{row:this.rowRef,addRow:this.addRowRef,saveRow:this.saveRowRef,cancelRow:this.cancelRowRef},header:this.renderString(i,{components:this.component.components,value:o}),footer:this.renderString(r.default.get(this.component,"templates.footer"),{components:this.component.components,value:o}),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:"attach",value:function(e){var t,r=this;if(this.builderMode)return O(S(n.prototype),"attach",this).call(this,e);this.loadRefs(e,(h(t={},this.addRowRef,"multiple"),h(t,this.saveRowRef,"multiple"),h(t,this.cancelRowRef,"multiple"),h(t,this.rowRef,"multiple"),t)),this.addRowElements.forEach((function(e){r.addEventListener(e,"click",(function(){return r.addRow()}))}));var o=0;return this.rowElements.forEach((function(e,t){var n=r.editRows[t];r.isOpen(n)?(r.attachComponents(e,n.components),r.addEventListener(r.saveRowElements[o],"click",(function(){return r.saveRow(t)})),r.addEventListener(r.cancelRowElements[o],"click",(function(){return r.cancelRow(t)})),o++):[{className:"removeRow",event:"click",action:function(){return r.removeRow(t)}},{className:"editRow",event:"click",action:function(){r.editRow(t).then((function(){r.component.rowDrafts&&(r.validateRow(n,!1),r.component.modal&&n.errors&&n.errors.length&&(r.alert.showErrors(n.errors,!1),n.alerts=!0))}))}}].forEach((function(t){var n=t.className,o=t.event,i=t.action,a=e.getElementsByClassName(n);Array.prototype.forEach.call(a,(function(e){r.addEventListener(e,o,i)}))}))})),o?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")),O(S(n.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:"renderRow",value:function(e,t){var o=this.dataValue||[];if(this.isOpen(e))return this.renderComponents(e.components);var i=this.flattenComponents(t),a=u.Evaluator.noeval?l.default.row:r.default.get(this.component,"templates.row",n.defaultRowTemplate);return this.renderString(a,{row:o[t]||{},data:this.data,rowIndex:t,components:this.component.components,flattenedComponents:i,getView:function(e,t){var n=i[e.key],o=n?n.getView(t||n.dataValue):"";return n&&n.widget&&"--- PROTECTED ---"!==o&&(o=r.default.isArray(o)?o.map((function(e){return n.widget.getValueAsString(e)})):n.widget.getValueAsString(o)),o},state:this.editRows[t].state})}},{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;this.getComponents().forEach((function(t){return t.data=e.dataValue[t.rowIndex]}))}},{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?O(S(n.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){if(this.builderMode)return O(S(n.prototype),"destroyComponents",this).call(this);this.getComponents(e).slice().forEach((function(e){return e.destroy()}))}},{key:"addRow",value:function(){if(!this.options.readOnly){var e={},t=this.editRows.length,n={components:this.createRowComponents(e,t),data:e,state:x.New,backup:null,error:null};return this.editRows.push(n),this.inlineEditMode&&(this.dataValue.push(e),this.triggerChange()),this.emit("editGridAddRow",{component:this.component,row:n}),this.checkRow("checkData",null,{},n.data,n.components),this.component.modal?this.addRowModal(t):this.redraw(),n}}},{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 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.cancelRow(e),t.alert&&(t.alert.clear(),t.alert=null)})),i.refs.dialogContents.appendChild(this.ce("button",{class:"btn btn-primary",onClick:function(){t.validateRow(r,!0)||t.component.rowDrafts?(r.willBeSaved=!0,i.close(),t.saveRow(e)):(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,s=this.createModal(n),u=function(e){e.preventDefault(),s.close()},l=new o.default((function(e,t){a={resolve:e,reject:t}}));return this.addEventListener(n.refs.dialogYesButton,"click",(function(e){u(e),a.resolve()})),this.addEventListener(n.refs.dialogCancelButton,"click",(function(e){u(e),a.reject()})),l}},{key:"editRow",value:function(e){var t=this.editRows[e],n=t.state===x.Editing||t.state===x.New;if(t&&!n){t.prevState=t.state,t.state=this.options.readOnly?x.Viewing:x.Editing;var r=(0,u.fastCloneDeep)(t.data);return this.inlineEditMode?t.backup=r:(t.backup=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 x.New:t.state=x.Removed,this.clearErrors(e),this.destroyComponents(e),this.inlineEditMode&&this.splice(e),this.editRows.splice(e,1);break;case x.Editing:t.state=t.prevState,this.inlineEditMode&&(this.dataValue[e]=t.backup),t.data=t.backup,t.backup=null,this.restoreRowContext(t),this.component.rowDrafts||this.clearErrors(e)}this.checkValidity(null,!0),this.redraw(),this.component.rowDrafts&&this.checkValidity(this.data,!1)}}},{key:"saveRow",value:function(e){var t=this,n=this.editRows[e];if(!this.options.readOnly){var r=this.validateRow(n,!0);if(!this.component.rowDrafts&&!r)return!1;if(this.saveEditMode){var o=this.dataValue||[];switch(n.state){case x.New:var i=o.length;o.push(n.data),e!==i&&(this.editRows.splice(e,1),this.editRows.splice(i,0,n));break;case x.Editing:o[e]=n.data}}return n.state=this.component.rowDrafts&&!r?x.Draft:x.Saved,n.backup=null,this.updateValue(),this.triggerChange(),this.component.rowDrafts&&n.components.forEach((function(e){return e.setPristine(t.pristine)})),this.checkValidity(null,!0),this.redraw(),n.alerts&&(n.alerts=!1),!0}}},{key:"beforeFocus",value:function(e){"beforeFocus"in this.parent&&this.parent.beforeFocus(this);var t=this.getRelativePath(e.path),n=(0,u.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=x.Removed,this.destroyComponents(e),t}},{key:"removeRow",value:function(e){this.options.readOnly||(this.baseRemoveRow(e),this.splice(e),this.editRows.splice(e,1),this.updateRowsComponents(e),this.updateValue(),this.triggerChange(),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(e,r,o){var i=n.editRows[t];n.inlineEditMode?n.triggerRootChange(e,r,o):(null==i?void 0:i.alerts)?n.checkData(null,p(p({},e),{},{changed:r,rowIndex:t}),n.data):i&&n.checkRow("checkData",null,p(p({},e),{},{changed:r}),i.data,i.components)};var u=n.createComponent(r.default.assign({},a,{row:s.row}),s,e);return u.rowIndex=t,u}))}},{key:"hasOpenRows",value:function(){var e=this;return this.editRows.some((function(t){return e.isOpen(t)}))}},{key:"validateRow",value:function(e,t){var n=this,r=!0,o=m(this.errors);return e.state!==x.Editing&&!t&&(e.state!==x.Draft||this.pristine||this.root.pristine||this.hasOpenRows())||e.components.forEach((function(o){n.component.rowDrafts||o.setPristine(!t),r&=o.checkValidity(null,t,e.data)})),this.component.validate&&this.component.validate.row&&("true"!==(r=this.evaluate(this.component.validate.row,{valid:r,row:e.data},"valid",!0)).toString()?(e.error=r,r=!1):e.error=null,null===r&&(r="Invalid row validation for ".concat(this.key))),e.errors=r?null:this.errors.filter((function(e){return!o.includes(e)})),this.showRowErrorAlerts(e,!!r),!!r}},{key:"showRowErrorAlerts",value:function(e,t){var n;e.alerts&&(this.alert&&((null===(n=e.errors)||void 0===n?void 0:n.length)&&!t?(this.alert.showErrors(e.errors,!1),e.alerts=!0):this.alert.clear()))}},{key:"checkValidity",value:function(e,t,n){return e=e||this.rootValue,n=n||this.data,this.checkCondition(n,e)?this.checkComponentValidity(e,t,n):(this.setCustomValidity(""),!0)}},{key:"checkComponentValidity",value:function(e,t,r){var o=this;if(!O(S(n.prototype),"checkComponentValidity",this).call(this,e,t,r))return!1;if(this.shouldSkipValidation(e,t,r))return!0;var i=!0,a=!1;if(this.editRows.forEach((function(e,n){var r=o.validateRow(e,e.alerts||t);i&=r;var s=o.refs["editgrid-".concat(o.component.key,"-row")];if(s){var u=s[n];if(u){var l=u.querySelector(".editgrid-row-error");r||(l.textContent="Invalid row. Please correct it or delete.")}}a|=t&&o.isOpen(e)})),!i)return this.setCustomValidity("Please correct invalid rows before proceeding.",t),!1;if(a&&this.saveEditMode)return this.setCustomValidity("Please save all rows before proceeding.",t),!1;var s=this.invalid||this.invalidMessage(e,t);return this.setCustomValidity(s,t),!0}},{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);this.dataValue=e,this.dataValue.forEach((function(e,r){var o=t.editRows[r];o?(o.data=e,t.restoreRowContext(o,n),o.state=x.Saved,o.backup=null,o.error=null):t.editRows[r]={components:t.createRowComponents(e,r),data:e,state:x.Saved,backup:null,error:null}}));var o=this.dataValue.length;return this.editRows[o]&&this.editRows[o].state===x.New&&(o+=1),this.editRows.slice(o).forEach((function(e,n){return t.baseRemoveRow(o+n)})),this.editRows=this.editRows.slice(0,o),this.updateOnChange(n,r),this.checkData(),(r||n.resetValue)&&this.rebuild(),r}},{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)}))}}]),n}(i.default);t.default=P,P.prototype.hasChanged=a.default.prototype.hasChanged},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(23),n(16),n(39),n(1),n(30),n(19),n(252),n(12),n(45),n(26),n(2),n(5),n(6),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(11))&&r.__esModule?r:{default:r},i=n(18);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;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,t)||u(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 s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||u(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){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 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)}}var h=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,r;return t=e,(n=[{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){switch(e){case"error":for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return 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,u=void 0===i?{}:i;this.eventListenersKeys=[],this.loadRefs(this.alert,this.refsNames);var l=(null===(t=u.click)||void 0===t?void 0:t.listeners)||[],c=(null===(n=u.keypress)||void 0===n?void 0:n.listeners)||[];u=f(f({},u),{},{click:[].concat(s(l),[function(e){var t=e.currentTarget.dataset.componentKey;o.focusOnComponent(t)}]),keypress:[].concat(s(c),[function(e){var t=e.currentTarget.dataset.componentKey;o.focusOnComponent(t)}])}),(null===(r=this.refs.messageRef)||void 0===r?void 0:r.length)&&this.refs.messageRef.forEach((function(e){Object.entries(u).forEach((function(t){var n=a(t,2),r=n[0];n[1].forEach((function(t){return o.parentComponent.addEventListener(e,r,t)})),o.eventListenersKeys.push(r)}))}))}},{key:"clear",value:function(){var e=this;try{var t;(null===(t=this.refs.messageRef)||void 0===t?void 0:t.length)&&this.refs.messageRef.forEach((function(t){e.eventListenersKeys.forEach((function(n){return e.parentComponent.removeEventListener(t,n)}))})),this.refs={},this.parentComponent.removeChildFrom(this.alert,this.container),this.alert=null}catch(e){}}},{key:"focusOnComponent",value:function(e){if(e){var t,n=null===(t=this.parentComponent.root)||void 0===t?void 0:t.getComponent(e);n&&o.default.isFunction(n.focus)&&n.focus()}}},{key:"createMessage",value:function(e,t,n,r,o){switch(e){case"error":return this.createErrorMessage(t,n,r,o)}}},{key:"createErrorMessage",value:function(e,t,n,r){var a,s,u={style:"cursor: pointer",ref:"messageRef",tabIndex:0,"aria-label":"".concat(t,". Click to navigate to the field with following error.")},l=this.parentComponent.ce("li",u);this.parentComponent.setContent(l,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);l.dataset.componentKey=d}this.parentComponent.appendTo(l,e)}},{key:"appendErrorToList",value:function(e,t){var n,r=this;if(null==e||null===(n=e.messages)||void 0===n?void 0: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)}}},{key:"refsNames",get:function(){return{messageRef:"multiple"}}},{key:"alertTypes",get:function(){return{error:"danger",success:"success",info:"info",warning:"warning"}}}])&&p(t.prototype,n),r&&p(t,r),e}();t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(798)),o=i(n(799));function i(e){return e&&e.__esModule?e:{default:e}}var a={row:r.default,header:o.default};t.default=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return 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"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return n+='<div class="row">\n ',e.util.eachComponent(e.components,(function(e){n+="\n ",e.hasOwnProperty("tableView")&&!e.tableView||(n+='\n <div class="col-sm-2">'+(null==(t=e.label)?"":t)+"</div>\n "),n+="\n "})),n+="\n</div>\n"}},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(12),n(10),n(2),n(9),n(13),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(85))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,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 u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(f,e);var t,n,r,i=c(f);function f(){return a(this,f),i.apply(this,arguments)}return t=f,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:"email",label:"Email",key:"email",inputType:"email",kickbox:{enabled:!1}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Email",group:"advanced",icon:"at",documentation:"http://help.form.io/userguide/#email",weight:10,schema:f.schema()}}}],(n=[{key:"init",value:function(){u(d(f.prototype),"init",this).call(this),this.validators.push("email")}},{key:"defaultSchema",get:function(){return f.schema()}},{key:"inputInfo",get:function(){var e=u(d(f.prototype),"inputInfo",this);return e.attr.type=this.component.mask?"password":"email",e}}])&&s(t.prototype,n),r&&s(t,r),f}(o.default);t.default=p},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(12),n(10),n(2),n(9),n(13),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(64))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,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 u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e,t,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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&&u(e,t)}(c,e);var t,n,r,i=l(c);function c(){var e;a(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))).noField=!0,e}return t=c,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:"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:"http://help.form.io/userguide/#fieldset",weight:20,schema:c.schema()}}}],(n=[{key:"defaultSchema",get:function(){return c.schema()}},{key:"className",get:function(){return"form-group ".concat(f(d(c.prototype),"className",this))}},{key:"templateName",get:function(){return"fieldset"}}])&&s(t.prototype,n),r&&s(t,r),c}(o.default);t.default=p},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(23),n(57),n(16),n(31),n(50),n(1),n(29),n(14),n(40),n(30),n(66),n(19),n(214),n(12),n(45),n(10),n(26),n(2),n(9),n(13),n(62),n(21),n(5),n(6),n(34),n(120),n(37),n(255),n(803),n(810),n(812),n(813),n(814),n(815),n(816),n(817),n(818),n(819),n(820),n(821),n(822),n(824),n(825),n(826),n(827),n(828),n(829),n(830),n(831),n(832),n(833),n(834),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(59)),o=n(18),i=u(n(835)),a=u(n(11)),s=u(n(22));function u(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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(e,t,n){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=navigator.camera||void 0;HTMLCanvasElement.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 k=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)}(c,e);var t,n,u,l=v(c);function c(){return p(this,c),l.apply(this,arguments)}return t=c,u=[{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,[{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:"http://help.form.io/userguide/#file",weight:100,schema:c.schema()}}}],(n=[{key:"init",value:function(){var e=this;m(g(c.prototype),"init",this).call(this),w=navigator.camera||void 0;var t="undefined"!=typeof FileReader,n=Boolean(window.FormData),r=!!window.XMLHttpRequest&&"upload"in new XMLHttpRequest;this.support={filereader:t,formdata:n,hasWarning:!t||!n||!r,progress:r},this.filesReady=new s.default((function(t,n){e.filesReadyResolve=t,e.filesReadyReject=n})),this.cameraMode=!1,this.statuses=[]}},{key:"loadImage",value:function(e){return this.component.privateDownload&&(e.private=!0),this.fileService.downloadFile(e).then((function(e){return e.url}))}},{key:"getValueAsString",value:function(e){return a.default.isArray(e)?a.default.map(e,"originalName").join(", "):a.default.get(e,"originalName","")}},{key:"getValue",value:function(){return this.dataValue}},{key:"render",value:function(){return m(g(c.prototype),"render",this).call(this,this.renderTemplate("file",{fileSize:this.fileSize,files:this.dataValue||[],statuses:this.statuses,disabled:this.disabled,support:this.support}))}},{key:"getVideoStream",value:function(e){return navigator.mediaDevices.getUserMedia({video:f({width:{min:640,ideal:1920},height:{min:360,ideal:1080},aspectRatio:{ideal:16/9}},e),audio:!1})}},{key:"stopVideoStream",value:function(e){e.getVideoTracks().forEach((function(e){return e.stop()}))}},{key:"getFrame",value:function(e){return new s.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 s.default((function(n){var r=e.ce("input",f({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:"deleteFile",value:function(e){if(e&&"url"===this.component.storage){var t=this.fileService;if(t&&"function"==typeof t.deleteFile)t.deleteFile(e);else{var n=this.options.formio||this.root&&this.root.formio;n&&n.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"}),this.refs.input=[];var n=m(g(c.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){return this.className="fileSelector",e.preventDefault(),r.upload(e.dataTransfer.files),!1}))}if(this.refs.fileBrowse&&this.addEventListener(this.refs.fileBrowse,"click",(function(e){e.preventDefault(),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.statuses.splice(n,1),t.redraw()}))})),this.refs.galleryButton&&w&&this.addEventListener(this.refs.galleryButton,"click",(function(e){e.preventDefault(),w.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:w.PictureSourceType.PHOTOLIBRARY})})),this.refs.cameraButton&&w&&this.addEventListener(this.refs.cameraButton,"click",(function(e){e.preventDefault(),w.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:w.PictureSourceType.CAMERA,encodingType:w.EncodingType.PNG,mediaType:w.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.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&&s.default.all(o).then((function(){t.filesReadyResolve()})).catch((function(){return t.filesReadyReject()}))}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=[];if(e.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=!a.default.isNil(e.type)&&o.test(e.type)||!a.default.isNil(e.name)&&o.test(e.name)}return r=n.excludes.reduce((function(t,n){var r=new RegExp(n,"i");return t&&(a.default.isNil(e.type)||!r.test(e.type))&&(a.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&&Array.prototype.forEach.call(e,(function(e){var n=(0,o.uniqueName)(e.name,t.component.fileNameTemplate,t.evalContext()),r={originalName:e.name,name:n,size:e.size,status:"info",message:t.t("Starting upload")};t.component.filePattern&&!t.validatePattern(e,t.component.filePattern)&&(r.status="error",r.message=t.t("File is the wrong type; it must be {{ pattern }}",{pattern:t.component.filePattern})),t.component.fileMinSize&&!t.validateMinSize(e,t.component.fileMinSize)&&(r.status="error",r.message=t.t("File is too small; it must be at least {{ size }}",{size:t.component.fileMinSize})),t.component.fileMaxSize&&!t.validateMaxSize(e,t.component.fileMaxSize)&&(r.status="error",r.message=t.t("File is too big; it must be at most {{ size }}",{size:t.component.fileMaxSize}));var i=t.interpolate(t.component.dir||""),a=t.fileService;if(a||(r.status="error",r.message=t.t("File Service not provided.")),t.statuses.push(r),t.redraw(),"error"!==r.status){t.component.privateDownload&&(e.private=!0);var s=t.component,u=s.storage,l=s.options,c=void 0===l?{}:l,f=t.interpolate(t.component.url),d=null,p=null;t.root.everyComponent((function(e){var t,n;((null===(t=e.component)||void 0===t?void 0:t.submissionAccess)||(null===(n=e.component)||void 0===n?void 0:n.defaultPermission))&&(p=e.component.submissionAccess?e.component.submissionAccess:[{type:e.component.defaultPermission,roles:[]}]).forEach((function(t){d=["admin","write","create"].includes(t.type)?e.component.key:null}))}));var h=t.component.fileKey||"file",m=d?t.currentForm.submission.data[d]._id:null;a.uploadFile(u,e,n,i,(function(e){r.status="progress",r.progress=parseInt(100*e.loaded/e.total),delete r.message,t.redraw()}),f,c,h,p,m).then((function(n){var o=t.statuses.indexOf(r);-1!==o&&t.statuses.splice(o,1),n.originalName=e.name,t.hasValue()||(t.dataValue=[]),t.dataValue.push(n),t.redraw(),t.triggerChange()})).catch((function(e){r.status="error",r.message=e,delete r.progress,t.redraw()}))}}))}},{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,i.default)(e.url,e.originalName||e.name,e.type):window.open(e.url,"_blank"))})).catch((function(e){alert(e)}))}},{key:"focus",value:function(){this.refs.fileBrowse&&this.refs.fileBrowse.focus()}},{key:"destroy",value:function(){this.stopVideo(),m(g(c.prototype),"destroy",this).call(this)}},{key:"dataReady",get:function(){return this.filesReady}},{key:"defaultSchema",get:function(){return c.schema()}},{key:"emptyValue",get:function(){return[]}},{key:"defaultValue",get:function(){var e=m(g(c.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:"cameraMode",set:function(e){this._cameraMode=e,e?this.startVideo():this.stopVideo()},get:function(){return this._cameraMode}},{key:"useWebViewCamera",get:function(){return this.imageUpload&&w}},{key:"imageUpload",get:function(){return Boolean(this.component.image)}},{key:"browseOptions",get:function(){var e={};return this.component.multiple&&(e.multiple=!0),this.imageUpload&&(e.accept="image/*"),e}}])&&h(t.prototype,n),u&&h(t,u),c}(r.default);t.default=k},function(e,t,n){n(804)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";var r=n(15),o=n(24),i=n(32),a=n(805),s=n(25),u=n(806),l=n(145),c=n(77),f=n(49),d=n(33),p=n(257),h=n(259),m=n(87),y=n(42),v=n(117),b=n(38),g=n(81),w=n(116),k=n(80).f,_=n(809),O=n(47).forEach,S=n(161),x=n(36),P=n(60),j=n(79),C=n(124),E=j.get,A=j.set,M=x.f,R=P.f,T=Math.round,D=o.RangeError,L=u.ArrayBuffer,I=u.DataView,V=s.NATIVE_ARRAY_BUFFER_VIEWS,N=s.TYPED_ARRAY_TAG,F=s.TypedArray,U=s.TypedArrayPrototype,z=s.aTypedArrayConstructor,B=s.isTypedArray,H=function(e,t){for(var n=0,r=t.length,o=new(z(e))(r);r>n;)o[n]=t[n++];return o},q=function(e,t){M(e,t,{get:function(){return E(this)[t]}})},W=function(e){var t;return e instanceof L||"ArrayBuffer"==(t=v(e))||"SharedArrayBuffer"==t},Y=function(e,t){return B(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},K=function(e,t){return Y(e,t=m(t,!0))?c(2,e[t]):R(e,t)},G=function(e,t,n){return!(Y(e,t=m(t,!0))&&b(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?M(e,t,n):(e[t]=n.value,e)};i?(V||(P.f=K,x.f=G,q(U,"buffer"),q(U,"byteOffset"),q(U,"byteLength"),q(U,"length")),r({target:"Object",stat:!0,forced:!V},{getOwnPropertyDescriptor:K,defineProperty:G}),e.exports=function(e,t,n){var i=e.match(/\d+$/)[0]/8,s=e+(n?"Clamped":"")+"Array",u="get"+e,c="set"+e,m=o[s],y=m,v=y&&y.prototype,x={},P=function(e,t){M(e,t,{get:function(){return function(e,t){var n=E(e);return n.view[u](t*i+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var o=E(e);n&&(r=(r=T(r))<0?0:r>255?255:255&r),o.view[c](t*i+o.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};V?a&&(y=t((function(e,t,n,r){return l(e,y,s),C(b(t)?W(t)?void 0!==r?new m(t,h(n,i),r):void 0!==n?new m(t,h(n,i)):new m(t):B(t)?H(y,t):_.call(y,t):new m(p(t)),e,y)})),w&&w(y,F),O(k(m),(function(e){e in y||f(y,e,m[e])})),y.prototype=v):(y=t((function(e,t,n,r){l(e,y,s);var o,a,u,c=0,f=0;if(b(t)){if(!W(t))return B(t)?H(y,t):_.call(y,t);o=t,f=h(n,i);var m=t.byteLength;if(void 0===r){if(m%i)throw D("Wrong length");if((a=m-f)<0)throw D("Wrong length")}else if((a=d(r)*i)+f>m)throw D("Wrong length");u=a/i}else u=p(t),o=new L(a=u*i);for(A(e,{buffer:o,byteOffset:f,byteLength:a,length:u,view:new I(o)});c<u;)P(e,c++)})),w&&w(y,F),v=y.prototype=g(U)),v.constructor!==y&&f(v,"constructor",y),N&&f(v,N,s),x[s]=y,r({global:!0,forced:y!=m,sham:!V},x),"BYTES_PER_ELEMENT"in y||f(y,"BYTES_PER_ELEMENT",i),"BYTES_PER_ELEMENT"in v||f(v,"BYTES_PER_ELEMENT",i),S(s)}):e.exports=function(){}},function(e,t,n){var r=n(24),o=n(20),i=n(157),a=n(25).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,u=r.Int8Array;e.exports=!a||!o((function(){u(1)}))||!o((function(){new u(-1)}))||!i((function(e){new u,new u(null),new u(1.5),new u(e)}),!0)||o((function(){return 1!==new u(new s(2),1,void 0).length}))},function(e,t,n){"use strict";var r=n(24),o=n(32),i=n(25).NATIVE_ARRAY_BUFFER,a=n(49),s=n(256),u=n(20),l=n(145),c=n(56),f=n(33),d=n(257),p=n(807),h=n(80).f,m=n(36).f,y=n(258),v=n(97),b=n(79),g=b.get,w=b.set,k=r.ArrayBuffer,_=k,O=r.DataView,S=r.RangeError,x=p.pack,P=p.unpack,j=function(e){return[255&e]},C=function(e){return[255&e,e>>8&255]},E=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},A=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},M=function(e){return x(e,23,4)},R=function(e){return x(e,52,8)},T=function(e,t){m(e.prototype,t,{get:function(){return g(this)[t]}})},D=function(e,t,n,r){var o=d(n),i=g(e);if(o+t>i.byteLength)throw S("Wrong index");var a=g(i.buffer).bytes,s=o+i.byteOffset,u=a.slice(s,s+t);return r?u:u.reverse()},L=function(e,t,n,r,o,i){var a=d(n),s=g(e);if(a+t>s.byteLength)throw S("Wrong index");for(var u=g(s.buffer).bytes,l=a+s.byteOffset,c=r(+o),f=0;f<t;f++)u[l+f]=c[i?f:t-f-1]};if(i){if(!u((function(){k(1)}))||!u((function(){new k(-1)}))||u((function(){return new k,new k(1.5),new k(NaN),"ArrayBuffer"!=k.name}))){for(var I,V=(_=function(e){return l(this,_),new k(d(e))}).prototype=k.prototype,N=h(k),F=0;N.length>F;)(I=N[F++])in _||a(_,I,k[I]);V.constructor=_}var U=new O(new _(2)),z=O.prototype.setInt8;U.setInt8(0,2147483648),U.setInt8(1,2147483649),!U.getInt8(0)&&U.getInt8(1)||s(O.prototype,{setInt8:function(e,t){z.call(this,e,t<<24>>24)},setUint8:function(e,t){z.call(this,e,t<<24>>24)}},{unsafe:!0})}else _=function(e){l(this,_,"ArrayBuffer");var t=d(e);w(this,{bytes:y.call(new Array(t),0),byteLength:t}),o||(this.byteLength=t)},O=function(e,t,n){l(this,O,"DataView"),l(e,_,"DataView");var r=g(e).byteLength,i=c(t);if(i<0||i>r)throw S("Wrong offset");if(i+(n=void 0===n?r-i:f(n))>r)throw S("Wrong length");w(this,{buffer:e,byteLength:n,byteOffset:i}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},o&&(T(_,"byteLength"),T(O,"buffer"),T(O,"byteLength"),T(O,"byteOffset")),s(O.prototype,{getInt8:function(e){return D(this,1,e)[0]<<24>>24},getUint8:function(e){return D(this,1,e)[0]},getInt16:function(e){var t=D(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=D(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return A(D(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return A(D(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return P(D(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return P(D(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){L(this,1,e,j,t)},setUint8:function(e,t){L(this,1,e,j,t)},setInt16:function(e,t){L(this,2,e,C,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){L(this,2,e,C,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){L(this,4,e,E,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){L(this,4,e,E,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){L(this,4,e,M,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){L(this,8,e,R,t,arguments.length>2?arguments[2]:void 0)}});v(_,"ArrayBuffer"),v(O,"DataView"),e.exports={ArrayBuffer:_,DataView:O}},function(e,t){var n=Math.abs,r=Math.pow,o=Math.floor,i=Math.log,a=Math.LN2;e.exports={pack:function(e,t,s){var u,l,c,f=new Array(s),d=8*s-t-1,p=(1<<d)-1,h=p>>1,m=23===t?r(2,-24)-r(2,-77):0,y=e<0||0===e&&1/e<0?1:0,v=0;for((e=n(e))!=e||e===1/0?(l=e!=e?1:0,u=p):(u=o(i(e)/a),e*(c=r(2,-u))<1&&(u--,c*=2),(e+=u+h>=1?m/c:m*r(2,1-h))*c>=2&&(u++,c/=2),u+h>=p?(l=0,u=p):u+h>=1?(l=(e*c-1)*r(2,t),u+=h):(l=e*r(2,h-1)*r(2,t),u=0));t>=8;f[v++]=255&l,l/=256,t-=8);for(u=u<<t|l,d+=t;d>0;f[v++]=255&u,u/=256,d-=8);return f[--v]|=128*y,f},unpack:function(e,t){var n,o=e.length,i=8*o-t-1,a=(1<<i)-1,s=a>>1,u=i-7,l=o-1,c=e[l--],f=127&c;for(c>>=7;u>0;f=256*f+e[l],l--,u-=8);for(n=f&(1<<-u)-1,f>>=-u,u+=t;u>0;n=256*n+e[l],l--,u-=8);if(0===f)f=1-s;else{if(f===a)return n?NaN:c?-1/0:1/0;n+=r(2,t),f-=s}return(c?-1:1)*n*r(2,f-t)}}},function(e,t,n){var r=n(56);e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},function(e,t,n){var r=n(46),o=n(33),i=n(156),a=n(155),s=n(98),u=n(25).aTypedArrayConstructor;e.exports=function(e){var t,n,l,c,f,d,p=r(e),h=arguments.length,m=h>1?arguments[1]:void 0,y=void 0!==m,v=i(p);if(null!=v&&!a(v))for(d=(f=v.call(p)).next,p=[];!(c=d.call(f)).done;)p.push(c.value);for(y&&h>2&&(m=s(m,arguments[2],2)),n=o(p.length),l=new(u(this))(n),t=0;n>t;t++)l[t]=y?m(p[t],t):p[t];return l}},function(e,t,n){"use strict";var r=n(25),o=n(811),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("copyWithin",(function(e,t){return o.call(i(this),e,t,arguments.length>2?arguments[2]:void 0)}))},function(e,t,n){"use strict";var r=n(46),o=n(90),i=n(33),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=i(n.length),u=o(e,s),l=o(t,s),c=arguments.length>2?arguments[2]:void 0,f=a((void 0===c?s:o(c,s))-l,s-u),d=1;for(l<u&&u<l+f&&(d=-1,l+=f-1,u+=f-1);f-- >0;)l in n?n[u]=n[l]:delete n[u],u+=d,l+=d;return n}},function(e,t,n){"use strict";var r=n(25),o=n(47).every,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(25),o=n(258),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("fill",(function(e){return o.apply(i(this),arguments)}))},function(e,t,n){"use strict";var r=n(25),o=n(47).filter,i=n(104),a=r.aTypedArray,s=r.aTypedArrayConstructor;(0,r.exportTypedArrayMethod)("filter",(function(e){for(var t=o(a(this),e,arguments.length>1?arguments[1]:void 0),n=i(this,this.constructor),r=0,u=t.length,l=new(s(n))(u);u>r;)l[r]=t[r++];return l}))},function(e,t,n){"use strict";var r=n(25),o=n(47).find,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(25),o=n(47).findIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(25),o=n(47).forEach,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(25),o=n(95).includes,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(25),o=n(95).indexOf,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(24),o=n(25),i=n(1),a=n(28)("iterator"),s=r.Uint8Array,u=i.values,l=i.keys,c=i.entries,f=o.aTypedArray,d=o.exportTypedArrayMethod,p=s&&s.prototype[a],h=!!p&&("values"==p.name||null==p.name),m=function(){return u.call(f(this))};d("entries",(function(){return c.call(f(this))})),d("keys",(function(){return l.call(f(this))})),d("values",m,!h),d(a,m,!h)},function(e,t,n){"use strict";var r=n(25),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=[].join;i("join",(function(e){return a.apply(o(this),arguments)}))},function(e,t,n){"use strict";var r=n(25),o=n(823),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){return o.apply(i(this),arguments)}))},function(e,t,n){"use strict";var r=n(52),o=n(56),i=n(33),a=n(83),s=Math.min,u=[].lastIndexOf,l=!!u&&1/[1].lastIndexOf(1,-0)<0,c=a("lastIndexOf");e.exports=l||c?function(e){if(l)return u.apply(this,arguments)||0;var t=r(this),n=i(t.length),a=n-1;for(arguments.length>1&&(a=s(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:u},function(e,t,n){"use strict";var r=n(25),o=n(47).map,i=n(104),a=r.aTypedArray,s=r.aTypedArrayConstructor;(0,r.exportTypedArrayMethod)("map",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(s(i(e,e.constructor)))(t)}))}))},function(e,t,n){"use strict";var r=n(25),o=n(123).left,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){return o(i(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(25),o=n(123).right,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){return o(i(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(25),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=o(this).length,n=a(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this}))},function(e,t,n){"use strict";var r=n(25),o=n(33),i=n(259),a=n(46),s=n(20),u=r.aTypedArray;(0,r.exportTypedArrayMethod)("set",(function(e){u(this);var t=i(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=a(e),s=o(r.length),l=0;if(s+t>n)throw RangeError("Wrong length");for(;l<s;)this[t+l]=r[l++]}),s((function(){new Int8Array(1).set({})})))},function(e,t,n){"use strict";var r=n(25),o=n(104),i=n(20),a=r.aTypedArray,s=r.aTypedArrayConstructor,u=r.exportTypedArrayMethod,l=[].slice;u("slice",(function(e,t){for(var n=l.call(a(this),e,t),r=o(this,this.constructor),i=0,u=n.length,c=new(s(r))(u);u>i;)c[i]=n[i++];return c}),i((function(){new Int8Array(1).slice()})))},function(e,t,n){"use strict";var r=n(25),o=n(47).some,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(25),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=[].sort;i("sort",(function(e){return a.call(o(this),e)}))},function(e,t,n){"use strict";var r=n(25),o=n(33),i=n(90),a=n(104),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=s(this),r=n.length,u=i(e,r);return new(a(n,n.constructor))(n.buffer,n.byteOffset+u*n.BYTES_PER_ELEMENT,o((void 0===t?r:i(t,r))-u))}))},function(e,t,n){"use strict";var r=n(24),o=n(25),i=n(20),a=r.Int8Array,s=o.aTypedArray,u=o.exportTypedArrayMethod,l=[].toLocaleString,c=[].slice,f=!!a&&i((function(){l.call(new a(1))}));u("toLocaleString",(function(){return l.apply(f?c.call(s(this)):s(this),arguments)}),i((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!i((function(){a.prototype.toLocaleString.call([1,2])})))},function(e,t,n){"use strict";var r=n(25).exportTypedArrayMethod,o=n(20),i=n(24).Uint8Array,a=i&&i.prototype||{},s=[].toString,u=[].join;o((function(){s.call({})}))&&(s=function(){return u.call(this)});var l=a.toString!=s;r("toString",s,l)},function(e,t,n){var r,o,i;o=[],void 0===(i="function"==typeof(r=function(){return function e(t,n,r){var o,i,a=window,s="application/octet-stream",u=r||s,l=t,c=!n&&!r&&l,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)&&(u=(l=[l,u])[0],l=l[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(l)){if(!(l.length>2096103.424&&p!==d))return navigator.msSaveBlob?navigator.msSaveBlob(g(l),h):w(l);u=(l=g(l)).type||s}else if(/([\x80-\xff])/.test(l)){for(var y=0,v=new Uint8Array(l.length),b=v.length;y<b;++y)v[y]=l.charCodeAt(y);l=new p([v],{type:u})}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=l instanceof p?l:new p([l],{type:u}),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:"+u+";base64,"+a.btoa(o))}catch(e){return w("data:"+u+","+encodeURIComponent(o))}(i=new FileReader).onload=function(e){w(this.result)},i.readAsDataURL(o)}return!0}})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(16),n(1),n(29),n(12),n(10),n(26),n(2),n(9),n(13),n(21),n(5),n(6),n(34),n(37),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(11)),o=f(n(48)),i=f(n(245)),a=f(n(166)),s=f(n(22)),u=n(18),l=f(n(41)),c=f(n(146));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,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){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(b,e);var t,n,f,d=v(b);function b(){return p(this,b),d.apply(this,arguments)}return t=b,f=[{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:"Form",type:"form",key:"form",src:"",reference:!0,form:"",path:"",tableView:!0}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Nested Form",icon:"wpforms",group:"premium",documentation:"http://help.form.io/userguide/#form",weight:110,schema:b.schema()}}}],(n=[{key:"init",value:function(){var e=this;if(m(g(b.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=l.default.getBaseUrl(),(0,u.isMongoId)(this.component.project)&&(this.formSrc+="/project"),this.formSrc+="/".concat(this.component.project),this.options.project=this.formSrc):(this.formSrc=l.default.getProjectUrl(),this.options.project=this.formSrc),this.component.form?this.formSrc+="/form/".concat(this.component.form):this.component.path&&(this.formSrc+="/".concat(this.component.path))),!this.formSrc&&this.options.formio){var t=this.options.formio.formsUrl;if(this.component.path){var n=t.split("/");n.pop(),this.formSrc="".concat(n.join("/"),"/").concat(this.component.path)}this.component.form&&(this.formSrc="".concat(t,"/").concat(this.component.form))}return(this.component.revision||0===this.component.revision)&&(this.formSrc+="/v/".concat(this.component.revision)),this.createSubForm().then((function(t){setTimeout((function(){e.root&&e.root.subWizards&&"wizard"===(null==t?void 0:t._form.display)&&(e.root.subWizards.push(e),e.emit("subWizardsUpdated"))}),0)}))}},{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(),r.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=r.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),e):e}},{key:"render",value:function(){if(this.builderMode)return m(g(b.prototype),"render",this).call(this,this.component.label||"Nested form");var e=this.subForm?this.subForm.render():this.renderTemplate("loading");return m(g(b.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(b.prototype),"attach",this).call(this,e):m(g(b.prototype),"attach",this).call(this,e).then((function(){return 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.subForm.attach(e),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 i.default(t,e,n,r),t.setOpenModalElement()}}))}))}},{key:"detach",value:function(){this.subForm&&this.subForm.detach(),m(g(b.prototype),"detach",this).call(this)}},{key:"destroy",value:function(){this.subForm&&(this.subForm.destroy(),this.subForm=null,this.subFormReady=null),m(g(b.prototype),"destroy",this).call(this)}},{key:"redraw",value:function(){return this.subForm&&(this.subForm.form=this.formObj),m(g(b.prototype),"redraw",this).call(this)}},{key:"everyComponent",value:function(){var e;this.subForm&&(e=this.subForm).everyComponent.apply(e,arguments)}},{key:"createSubForm",value:function(){var e=this;return this.subFormReady=this.loadSubForm().then((function(t){if(t)return(0,u.eachComponent)(t.components,(function(e){"button"!==e.type||"submit"!==e.action&&e.action||(e.hidden=!0)})),e.subForm&&e.subForm.destroy(),new c.default(t,e.getSubOptions()).ready.then((function(t){return e.subForm=t,e.subForm.currentForm=e,e.subForm.parent=e,e.subForm.parentVisible=e.visible,e.subForm.on("change",(function(){e.subForm&&(e.dataValue=e.subForm.getValue(),e.triggerChange({noEmit:!0}))})),e.subForm.url=e.formSrc,e.subForm.nosubmit=!0,e.subForm.root=e.root,e.restoreValue(),e.valueChanged=e.hasSetValue,e.subForm}))})),this.subFormReady}},{key:"loadSubForm",value:function(){var e=this;return this.builderMode||this.isHidden()?s.default.resolve():this.formObj&&this.formObj.components&&Array.isArray(this.formObj.components)&&this.formObj.components.length?(this.root&&this.root.form&&this.root.form.config&&!this.formObj.config&&(this.formObj.config=this.root.form.config),s.default.resolve(this.formObj)):this.formSrc?new l.default(this.formSrc).loadForm({params:{live:1}}).then((function(t){return e.formObj=t,t})):s.default.resolve()}},{key:"checkComponentValidity",value:function(e,t,n){return this.subForm?this.subForm.checkValidity(this.dataValue.data,t):m(g(b.prototype),"checkComponentValidity",this).call(this,e,t,n)}},{key:"checkComponentConditions",value:function(e,t,n){var r=m(g(b.prototype),"checkComponentConditions",this).call(this,e,t,n);return r&&this.subForm?this.subForm.checkConditions(this.dataValue.data):r}},{key:"calculateValue",value:function(e,t,n){return this.subForm?this.subForm.calculateValue(this.dataValue.data,t):m(g(b.prototype),"calculateValue",this).call(this,e,t,n)}},{key:"setPristine",value:function(e){m(g(b.prototype),"setPristine",this).call(this,e),this.subForm&&this.subForm.setPristine(e)}},{key:"getSubFormData",value:function(){return"pdf"===r.default.get(this.subForm,"form.display")?this.subForm.getSubmission():s.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().then((function(e){return t.subForm.loading=!1,t.dataValue=e.submission,t.dataValue})).catch((function(n){return e?(t.subForm.onSubmissionError(n),s.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(b.prototype),"beforePage",t).call(t,e)})):m(g(b.prototype),"beforePage",this).call(this,e)}},{key:"beforeSubmit",value:function(){var e=this,t=this.dataValue;return t&&t._id&&t.form?(this.dataValue=t,s.default.resolve(this.dataValue)):this.submitSubForm(!1).then((function(){return e.dataValue})).then((function(){return m(g(b.prototype),"beforeSubmit",e).call(e)}))}},{key:"isHidden",value:function(){return!this.visible||!m(g(b.prototype),"checkConditions",this).call(this,this.rootValue)}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=m(g(b.prototype),"setValue",this).call(this,e,t);if(this.valueChanged=!0,this.subForm)if(e&&e._id&&this.subForm.formio&&r.default.isEmpty(e.data)){var o=e.form?"".concat(this.subForm.formio.formsUrl,"/").concat(e.form):this.formSrc,i="".concat(o,"/submission/").concat(e._id);this.subForm.setUrl(i,this.options),this.subForm.loadSubmission()}else this.subForm.setValue(e,t);return n}},{key:"isEmpty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataValue;return null===e||r.default.isEqual(e,this.emptyValue)||this.areAllComponentsEmpty(e.data)}},{key:"areAllComponentsEmpty",value:function(e){var t=!0;return this.subForm?this.subForm.everyComponent((function(n){t&=n.isEmpty(r.default.get(e,n.key)||n.dataValue)})):t=!1,t}},{key:"getValue",value:function(){return this.subForm?this.subForm.getValue():this.dataValue}},{key:"updateSubFormVisibility",value:function(){this.subForm&&(this.subForm.parentVisible=this.visible)}},{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 a.default({wildcard:!1,maxListeners:0}),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(b.prototype),"setValue",this).call(this,null,{noUpdateEvent:!0,noDefault:!0}),this.unset()}},{key:"dataReady",get:function(){return this.subFormReady||s.default.resolve()}},{key:"defaultValue",get:function(){return this.subForm?m(g(b.prototype),"defaultValue",this):null}},{key:"defaultSchema",get:function(){return b.schema()}},{key:"emptyValue",get:function(){return{data:{}}}},{key:"ready",get:function(){return this.subFormReady||s.default.resolve()}},{key:"currentForm",get:function(){return this._currentForm},set:function(e){var t=this;this._currentForm=e,this.subForm&&this.subForm.getComponents().forEach((function(e){e.currentForm=t}))}},{key:"shouldSubmit",get:function(){return this.subFormReady&&(!this.component.hasOwnProperty("reference")||this.component.reference)&&!this.isHidden()}},{key:"errors",get:function(){var e=m(g(b.prototype),"errors",this);return this.subForm&&(e=e.concat(this.subForm.errors)),e}},{key:"visible",get:function(){return m(g(b.prototype),"visible",this)},set:function(e){var t=this;if(this._visible!==e){if(this._visible=e,this.clearOnHide(),!this.subForm&&e)return this.createSubForm(),this.subFormReady.then((function(){t.updateSubFormVisibility()})),void this.redraw();this.updateSubFormVisibility(),this.redraw()}}},{key:"parentVisible",get:function(){return m(g(b.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()}}}])&&h(t.prototype,n),f&&h(t,f),b}(o.default);t.default=w},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(260))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){var r,o,i;o=[],void 0===(i="function"==typeof(r=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 ('"+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 u=parseInt(i[s]||0,10),l=parseInt(a[s]||0,10);if(u>l)return 1;if(l>u)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})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={lng:"en",nsSeparator:"::",keySeparator:".|.",pluralSeparator:"._.",contextSeparator:"._.",resources:{en:{translation:{alertMessage:"{{label}}: {{message}}",complete:"Submission Complete",error:"Please fix the following errors before submitting.",submitError:"Please check the form and correct all errors before submitting.",required:"{{field}} is required",unique:"{{field}} must be unique",array:"{{field}} must be an array",array_nonempty:"{{field}} must be a non-empty array",nonarray:"{{field}} must not be an array",select:"{{field}} contains an invalid selection",pattern:"{{field}} does not match the pattern {{pattern}}",minLength:"{{field}} must have at least {{length}} characters.",maxLength:"{{field}} must have no more than {{length}} characters.",minWords:"{{field}} must have at least {{length}} words.",maxWords:"{{field}} must have no more than {{length}} words.",min:"{{field}} cannot be less than {{min}}.",max:"{{field}} cannot be greater than {{max}}.",maxDate:"{{field}} should not contain date after {{- maxDate}}",minDate:"{{field}} should not contain date before {{- minDate}}",maxYear:"{{field}} should not contain year greater than {{maxYear}}",minYear:"{{field}} should not contain year less than {{minYear}}",invalid_email:"{{field}} must be a valid email.",invalid_url:"{{field}} must be a valid url.",invalid_regex:"{{field}} does not match the pattern {{regex}}.",invalid_date:"{{field}} is not a valid date.",invalid_day:"{{field}} is not a valid day.",mask:"{{field}} does not match the mask.",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"}}}}},function(e,t,n){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAD6CAMAAAC/MqoPAAAAA3NCSVQICAjb4U/gAAAC9FBMVEX///+HiYuGhomCg4aCgIF6eX12eHokJCQkICAgICAjHSOOj5KJi46DhYd1dnltb3EkICAgICAjHSOVl5qTlZeOj5KHiYt6eX0kICAjHSOZmp2Vl5qGhokkICDOz9G+vsCztbapq66cnqGbnZ6ZmZmTlZckICCbnZ6Zmp2Vl5qTlZeOj5KMioqGhomCg4aCgIGZmp2TlZeCgIGmqauho6aen6KcnqGmqaucnqGbnZ66u76cnqGZmp2Vl5rKISjS0dLR0NHOz9HMzMzHycrHxsfFxMXCwsPCw8W+vsCen6KbnZ7GISjCwsO+v8K+vsCpq66kpqmeoaObnZ7////7+/v5+vr39/j09fXz8/P88PHx8fL37+/u7+/r7O3r6+zp6uvn5+jj5+fz4+P44eLw4eHj5OXi4+Th4uPf4OLf3+Dc3t/b3N7a29z109TY2tvv1NXv0tPX2NrW19jU1tfS09XP0dLOz9Hrx8jxxMbnxsfMzMzkxMXHycrGx8nDxcfqubvCw8XCwsPkuLrutbe/wcO+v8Lftre+vsC7vb+6u763ubu1t7riqqzeqquztbbqpqmxs7bZqKmvsbOtr7Kqra+pq67bnJ7gm56mqavXnJ3nl5ulp6qkpqmjpaeho6aeoaPbj5Gen6KcnqHXjpGbnZ7jiYzfio7SjpDdiYyZmp3LjI6ZmZnahoqVl5rXgoaTlZeSk5bSgIOPkZPOf4Lgen6Oj5LLf4KLjY+Ji46HiYvVcnaGhonNcnWDhYfKcXSCg4bca3DFcXTBcHJ+gIJ9foHRZWl6fH7MZmbOZWnGZGd6eX12eHrBY2bZXGF1dnlydHa4YWNwcXTOV1vKVlvIVlrCVlnPUFW+VVnOTlS3VFe1VFbKS1HGSE3BR0y/R0y7R0zEREq2R0rSP0WzRkmtRUjBOkC4OT6zOD3OMDaqNzrBLTO2KzCzKzCuKi/KISiqKi6lKS2+ICa6HyW7Hya2HySuHiOyHiSrHiKnHSGiHCCeHB+aGx/MBOLyAAAA/HRSTlMAERERERERERERESIiIiIiIiIiMzMzMzMzM0RERERVVVVVVVVVVVVmZmZmZmZmZmZ3d3eIiIiImZmZqqqqqrvMzMzMzMzMzMzMzMzM3d3d3e7u7v////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8PeNL3AAAACXBIWXMAAC37AAAt+wH8h0rnAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAFydJREFUeJzt3Xl8FNd9AHD31K56LfSIaOumTY80aeK06R23TXq5xXV8ZIRhzWEkgkAHKICQZCwpQpZsSSsWRQdeR2hlCWEsXFkHyELmtMEkGBvnMKZ2iV1jW2COGAOSwPzT33tv5s2bY3fn+O2slg8//DFikeT97u94b2Zn5FtuuRk342bcjJtxM8zCl5nhaWRm+lJNJuHP8Psy/H6/z7uA/1oG/CvVfL+P/vJS7qP/uQx4wVOJh9f/93q6u6LRzs0dHZH29ra21taWluZwOBRqbGxsqK+vr6urra2trq6qqqqsrKyoqFhHo5TEWiFKtKE8TD6NfgF8ZUUlfJNq+G519Q2NoVA4/Lek2lJI931algO8HeCqvKGBwOsIvFqBV+jhJXHCFF+9Huj1hN7Scs/vQvZTJ/f9Ppe3mcjVlGsyrsv1mpI1mtDo6QtVyvHV1WBvDIWbW1pb2//G58tMjRwaLvAHXE7hIA9RuVzscsqNGedsHquFf6t+rqd2kndOb2ttn/2p1OQ9w58ZCHxWlbeYyUnKNXAh4cxqEuwFMLVXVpFmh3pvbYP/Zvu9n/Olot+h3AOBzwtyqHXtgNOmXN/ignuVJmQ/56s9D98J0v5YQ2O4pa090gH2jtt/LQV2WNUCgT8Tqp3KhT7n802bcrXSGXqlPrif4tfwzFM7tHsdo3ds7oR+75j9W97LM3wzA1lfUOXNOvn6anFJ0zY5r3UTucznuVfLXrbXQrO3tEU6o13RFrDf9zmv6Zl+fyCQ9cWIblGLKdc2uVLnDFoEUUj/YcH0K9XUq3hS8nUNlN7V0xMh9ujtHtMzCH3WbcqEExY1bbWLcqHS1XxTbKE2OF/Wi3aa9ua2SLS7t6+vmdpn/4rHdGj1rNuM8jrDhGO1btbiWnUBDc4vLOJ6mnm54ysqIe3h1ki0p69/IBoi9s77ftNTuo/0+pc0s12zkREHnJpxNeGCusAYYvJXqZmneYe0h1ragT4wOBwO07x3ednwQJ8RyPpyG5/tYpvHk2vhGm8+/DLo2cwX7CTtUPGbu58ZHB7tbpTt/+ApHQr+yyabVy6vUOVrqZzPNgM8XwiNvUi2r+ajvpSkvSHUGunqGxzZNdbYGGomNd915y84lPyT7fgvGv9H4qQY/2sS/6OLN+wE+5JtHE/skPb2aN/A6NjuzfXMHu2685ed0X863WMHdPwaJe+V1fWh1s6egZGx/WNkT89q/hvOhl2qZQljiEw71vAs7S2Rrn6gHwrV1Ss1/40/vkHprOPXMPv6hlBbtG8Y6J3Vtbzmez9/Q9KL2DIn26tqG1s6egZ37T88CgOf13zvX9yI9MJChqf2dRXV9c3tXf2j+w8fq2B2VvO9/3gD0gvYIs+mHaS9DgbdMyN7Dx8LgV2oedv2VMsSxhBd6Cke8r62tKIaBl3v8NihY22lFZqat2tPtSxhDOWzTQ7YSd4h7fXh9u6BXQePRdfK9rBi/7mk0rc+Ur5CglhS/t0D6oPl5UHyYPkjO8+onyqJ8apT+rPL8xme2km314Zao/2jB48Okz9o7Hfastt9JiJnyQHjg8Gt6PTly/OVoqdpr25o6ewb2f/y6MrVJbrE3/mzHtElaafJgyvOmH2qc/qy5QwPRb+SYKHimzt6h/ceHi2kf3Rsd0eXDpg8qNix6Iq9AGp+1Zq16yrrQpGewd2HDy8vFPKuHMz8TJLpK1hvQ30LD5YrD34XlZ6Xl8cTDyVfUgrN3tY1MHbotWVGO+Tdcr87o8MHW4WSVx48s5F9dEr41FdZnIn3TePSly4V7atK1lasb4Q5N3bw2NJl+WLNh2wewDum/5QxH9E+WE4/2qj7VDcBdNUOaYeKr25o7ezfdfDo4qUmee/s+vuk019lpa998JShDTDoon11Ccw5GPGj+4/maezqxs6i3Tld+FB4cIXa2Yh0Yif4goKiVWtKK+ubN5PVrfTBxeY1b82OTWcjYCsiPScnh9pJ4iHtK9eUVtSFI72wiy9d+GCMmv9zL+hB3YMHzCaAK/rixYtzeNHnFxStXltRG470wMK+doHOXsvtf5pUOmvrch3yVdNHXcR/E7pqLyhcvXZdbai9G+glDzB7vibv9AR91+8kk75VHeYikn64BJcuJ57Y8wtXlayrhoUd9jRr5j2gz7tc85HO+34jefQzS+hHB0zp+gnghv6gal8K9oKVQG8E+tih1XONdl7z9yXc2jilH1gRYxnT0yW1AxzSH2R4Nu2WFxSVlFbBnga2c6vu5/Z846ybncjujM5jpyd0NfF5y/OLYHVrIPSDRXPuN8k7r/lEb8S6o2/Uc5NAX7RokWAHI4z4hpYobOeKskV7gaHm/y6J9I2aB4WPg/pPdUFfuJDYmT6HVPyqtRWwnesf3V8gZcfLe0fnZ5NFL39V+yD98A1VikN/eiGxL2J2kvaCVSUVcMTeN7J3sRTDLuc9cu+v49PLyzdufUP/IP2QreuIW5qnFywkwe15+TDiyXZueDf59vFr/r6fR6fHfhB9I/v0Ao0d6EUl6+gR+6hksBtqfraH9Efoh4bV3hWd4VnD5yyFOVdaRU7PbZYW5+eva2wMhRvAG2N9/2vv6OxEzRlk+gI179DsMOKh4rueGd61e//BQ4cOv/zy0WPHXvvhyGCkapVhT/uHXtF3qq2OSudFvzgnj+3nWjq6+gaGR3eN7d67d//Bg/ACHAX+D/f3hrQ1f+8veUM/w5Ju3Oi4pjM7r/iKOnJVTXdf/8DA4PDICH0FCJ/ojw2ExZqP2e6o9FNsd7skzqfapz+wYIGqJ/ZlkPbSitqGMNmyRbu6unt64SUYhAqgfEj+a0ej1WrN/1Xy6extGYmffcWii/ZFpNthVwP26rpGcrlwa1s7bF6iXeAfGByh3Q/6Y0f7annN/3bS6UrsjPepTug6e07ecjhyJVeX0Fsj6A0C8ALAQXpPX/+wrIfoq5Nr/p5f9Ii+M+6nOqKrerKpJfaCIjLMyDWUleT2EHJzCHv/hehHx0APsT9ay/JufiCDTd94Kv6nOqVzO6zfMOrgKLVoNb3OQrmAtpZcON3cGuns6u0nF5fthdg90sLsn0kanb37GoTd7alEn2o7np6no9PjOHL0St+Iki80KSV8qm9t3xzt6YehNwaxa6T7MWr/VQS65/HUPAgBv5DNupyl7CxlAXkDFl4A+bq6Wnb1NL2YdGR0dHRksC9M7Leb3DiQalnCoHSG16xx9KxNHjs5Xyjr5WuIQ80UD6kfHhzo72sl9s8Y7amWJQwjfYG8r5NPWcnn54meXGvD8C1tHWzD09/f19MKQ7DFeMNIqmUJQ6aLNS93/IPCiVpa+iq+Xu75Poje7q52sH/FcGNgqmUJ46m584x5V+0MT96Vkt9/ZxdV1taHwjDto909PT3d0U5S83+kt6daljCemivaxYbX4vkb8DKetDzJfLQrGt0caWlovMens6daljCArtrnae2LBDt5eyJfGHhV6x8jN0hFNnd2bu5ob2tuaPxLnT3VsoRB6IqdpT5G3hV7kTLs6ayHHW4kEmlvaw3VN37Kn5mZdnSrdrnoKZ50/GNkO9NG77RuDtXf7ctwdVOkfBcEvZMhn7zfvywvj7wnlJNDT5WTs0iLFpFjaz6SaIvypz6Xxf3GmKP5TQ1b9uVC0bN1Ltwi33raWP8VPwodXz5njvCbni7oE9g1Oxx6X2A4zG7Sabgr4PO7uAdapVM50OllD0y+2JWcoOXfyAcGvB27fFUpuTGQ3vNPb9G5I+DLdJF2mZ4UOQ/2Z9GuKXtrNc8anh3VN9B7EO+YGYB2d01n1e5ezsucRHa27hWI0fFx1neh5ql9HT2gZfH1QMDnottlukmfO5SDcA6Xy3blJTD0vL1+Vw5pyA89gFh/dyCQmeGajjThNEnOzpbt/CVwmvd8rZ2cy6mqrqq6Owsq3nXBY8p5qmU7fwlwap7/5IPKu7MCM100u0h3PeHEMs/WB1rNK7fAVwA94He+vHE6ptw85siDwHnNF9E7ghX8uq/j0DFmu1H+rW83NZXlavPu0L5csJew+8AJ3efPcElfhjLbtfL5z5/9mMbz87md+W3bNXsbbr+L9LrPLR1twgkZl+EQJ+cLjzvOO5vz8m1ixA70Ge7p+PL5H3ysxrP6nndR8yv5DcF3kYLHoFuUz7Umz37yYzFyXduFmlfseHTU2T7/rIb+uGHWm9vjnbPS13wJFh15tjdp5B+fzM6WYust4tWDGXo3dMl/4tCR5dkvaekfZ0tSHLudzU0+a3iw49BRJxwJeVlrkuv+cpmU2G48iNWfpVbshdR+BwodW17GxJLECv/y5SYJ345Hx5rtEBKb7z8C7VlGf1JKYI/Z74tinKxciUtH2rdLAv1HVK7QDXYLg97EzmYdGh1TLrEp9zyjg/zyjyXn9lhzHouO1+eSnGtzehy73TmPRMeVy3RS8Cep/JJKT2S3Puv+A4WOLBfoTC7SJR3dsR2LjjXb9XQm19Dj2G3N+X/HoVP5grhykwEXSy6POVjXy8zoSHYcOt5sZyEftwWlJibX0Z3YjTWPREfsc4FeJj3P5JeelKzarc95HDqyXHpcPlaVzsagY8y6f8OiY8oltoe//FITg5vQEexYdKzZzqKY0c+eVeiPG+juZx0SHW22y8F27pcV+aUyI921HYeON9vlOGmB7nbO49Ix+pzGS1r5paAZ3eWcR6WjyaUntfJLpnKXsw6TjieXvq2VfxCD7sr+r3h0lNkuxxKNXL+ZM6fbnXV4dKTZLscHovzS92PR3djR6BblengMufSShm7c0biys5rHoiP2OY3HRfmVptj0ePb4cx6Jji2XikX5FdNl3ao91qzDoaPLodkF+RXzZd2lHY+ONNuVeFakx5Vr6dZnHRodbbbLUSzIX49Pdzjn/wWJjjfblTjJ5Vdir21u7Eh03D6n0cTlV+KsbRbsseY8Dj0Jcil4VpHHXdus2o2zDpeOKJek5znd5EQFgh2TjjTblchV5FfOxV/cTOhW+h2RjjXbeZy8ooSFZtfjE9vx6HizXYkfc7qltNu99ACNji+XrlyxmXbrcx6TngR5riqfPJeLY58rpB2JngS5VCbQJ/dY/CIbdhy6dblluCQ9KcgnJ52kPWa/00mHSceVS98X5ZNHrH6ZZTsi3Qh3JZc+EOWTk3GP2a3b1SmPR0ftc4igVj553PJXxu93bkejY8uVKafIJydq3Ns1qzsWHV0uTzlVPjFu/Wtj2eeKdiQ68oQj8bpOPjFh5QDOhG6wo9KTIJf0SZ+YsLidNeLN845PR5jtJMoM8omJLTa+PrH9n5NDd9nnEmt1qn6dyycmLO5rTO336+3odCQ5bXVKD57j8gmr21kTu7i+MTs2HUsuKfKfSFsm1LC8r9HbDXv5udh0nD6XaKuzLh+SpHGVbn1fo6WbHcfg0tHk0OrygIMVrUmlT1lf4ET8HLNjOEw60myn8bpCJ5PtbS6fOm9jgVPtc8zsiHRMuaTI6RauTKVP2Vng4tu/hkzHmHAEqyzobKYfV+AQdha4uHY8OqZcGlLom+gfcwX6CZvfKma/o9Exq12SfqLs4orZn7dw+dSUrQVOHfOGvGPRceVBJennlAfGuXzqtCO50Y5Ex5VLNUrS+WmpGpU+tc2R3GDHoSPLpT3KQYu6jB9X6RcsTzrdM9La8ehYE47EuHK4piJzz6t2i5PO8Iy0djQ6pjxXkYsnZjap9Clr56qMdM2cx6IjwkGpHKJrjtTUkr962tKeLiZ9DiYdVS59T6Frspt7gdOvWpx0ce04dFy5xM/LaJO7icuvXi12b08K3aW8RpHrD1FPcPnVdy1+rzj2ZNBdyukultI36f4ieEGRWy75WPYkZd0tfVw5GWeo6jIuv3r1Ief27CT1ulu4VKzITd5z2KHSP3L03msy6a7lZGlj9CGTvzzB6Zbb3YhPzoR3L1fPyZgdogUvqPbnHNqT0+sI8lzl3PN5078uVunXNjiyJ2fCI8jVk5AxTrpv4PJrH1lc3Y23BxH79KMfUeixNuo7OP3aR2TPU1yz7YU333zz4idvvvXWi9sffXi+RftXEekYcCk4EbfeSbygyK9de++F966x+ESN97/jNR1FnrDeIYLvcroaAv2T6++bZN6Ax6PjyNV6j3MKDuzX4smvX3/f5Kv0djQ6kpzXe+xrKHI3vPJR3JyT2J7YjkVHkqv1brafgVemZsdpk2q/ppdf/zABPRuNjiVX691km5r7xAl1uMdP+vXr34ovB/s0o+cq8nf0fxPc8K66l9HLL8K69pYIv3794QRyLDqWXNqk0LXvqAY3vHJVCGPOn4ORPv/FeHS9PDt7mtGV/bvmDdWyfReumskvCtV+8Qn4xPdV+XXd8maUT7OsFyvvqO7jD+VuOz111Sh/77maYPAVsdE/3P7N7ar8rYTyaUYfUujK5nzDiakpg/yjFzbIQ3Cb+YiDeDShfJrRz8vvqLKTcrk7Lqgn4/hR+nPiMctDF83lLyaWTy96k3IBARlyNSeEE7CK+wn9mhd8xUz+lqbTzeXTi65cQTAuBbecntLLX9lg+sbDQx8a6NqtnFE+/ej8AoIj+4Q3mZj7hLmbxnc+1MB/8M1E8ulX8EMKXQ831rkuHn3xokL/gW5BN5VPuzF33igH+ukdlk69PvzEdohH9UerMeTTbHFrMpPvs34DgFnElE+vLc3bBvnpTfaukrMjn070Mr18n73rhWzKp88ePnePttxdJzyhfJpkncFV+RHXCU8snxZ0Ga7IL1gb6W7l04AeVK53x6v0xPLpQA9uOTch0neguK3IU01v4nAmv4CTcivy1NLLhPsbWLnrr6NIihz13RdHzy/3+IRebuvyV5fy1NGDQ5MGuc2Lnt3JU0ZvEm7hOr9Hplu+R92FPNX04uPqbXvntwT3yAu6B+u58D8BxXl/3d6TCw6p92oCXMqVy93mbS0u5UiXFth6cmXjXE7gkrQHccZZhaNdUGLjuQW/p96fS+FSGeKMsyH3nF5zjsuPs9YOjk+h7ePsyD2myymnl7orp1+G5HJH2MdZ73PP6XLKQX6Oj7QavHK3J/eUzm9emzjClzHlvo4dnsu9pO/hd3AJpxrfYXLD2+nY8jkGuXf0oHLX3uTbws5Ffq/hguVr//Dk3tFf53Jhnm2RG93yFZ+Ics/oe8zkTcq51yTLjX3uIb2J97lQ7Yr8HdfrmhO5R/TgOYUu7NOVu3jcN7ojuUd0Xu7qNWHK4drUVJLlpn3uGV1N+oTyUNn4FNaIcyj3hl7D5TKdnHlPtdwb+hYuJzftBWuOTHglj9XnXtPJ4drbx8eFk3EXkvyOYjy5pwUvnIZk9HfcTrgE8Lhyjyb8uE4un4VM8noep8+9oxefM+b8fEp2r2og/YSShE+yeFwv35f0988TyL2ii28rkh+ntA/hvLObPveSDtF0hF0HOr6vCeNNRbdyL+kkysrcH5lbgVuQe01HC1d9zn7oWprSXcnlH+6N80PX0lGennT3fZ6udBx5GtITwC3L049uGZ5IfqPRLU44xB+mmo7ydKNj9Tnez4xOR3la0RPAbcrTiW4Zbk1+49BtTTgk+gyP6NhyQp/hjj4zkPWllMvt9rlMn+mG7icFf1s6ylnB+13Q/YHArKTTE8Adyed9bVYg4HdOzyT0rC+mVm57tsv0LELPdEr3ZZBe/0JK6Q4mHP0fHX2V9HqGzyn9Fh9t9ltvvfVP0ivgGdNWdy6/xU8W9lnEnk548nSzZpFl3e+cnuHPDEDaqT2tIguSHsh0PuVI1jMg7ZD3tNLDs4WcB+C5u8j6LX5a8iTxhJ8eMYumnJS7G7lqT7twLQe6PyOT7GcDgZkzUs2xEDPoM/X5MmE75pJO+p3+guynSfjlZ+wWTuywlSevYapJFoPUKWzeMeQ0oIDSJzI1O5n/B5/xAXbXPcU5AAAAAElFTkSuQmCC"},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(23),n(16),n(39),n(31),n(1),n(14),n(40),n(30),n(19),n(12),n(45),n(10),n(26),n(2),n(9),n(13),n(65),n(5),n(44),n(6),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(22)),o=u(n(11)),i=u(n(110)),a=u(n(41)),s=n(18);function u(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;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,t)||d(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 f(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||d(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){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}function p(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 h(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(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 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})(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(e,t,n){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(n):o.value}})(e,t,n||e)}function _(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=P(e)););return e}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=P(e);if(t){var o=P(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}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)}(u,e);var t,n,i,a=S(u);function u(){var e,t,n;return y(this,u),arguments[0]instanceof HTMLElement||arguments[1]?(t=arguments[0],n=arguments[1]):n=arguments[0],(e=a.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=r.default.resolve(),e}return t=u,(n=[{key:"isLastPage",value:function(){var e=this.getNextPage();return o.default.isNumber(e)?0<e&&e>=this.pages.length:o.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,i=this.hasExtraPages?this.components:this.pages,a=i.filter(r?o.default.identity:function(t,n){return e._seenPages.includes(n)});return a}},{key:"getComponents",value:function(){return this.submitting?this.getPages({all:this.isLastPage()}):k(P(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=this;this.options.buttonSettings=o.default.defaults(this.options.buttonSettings,{showPrevious:!0,showNext:!0,showSubmit:!0,showCancel:!this.options.readOnly}),this.options.breadcrumbSettings=o.default.defaults(this.options.breadcrumbSettings,{clickable:!0}),this.page=0;var t=k(P(u.prototype),"init",this).call(this);return this.setComponentSchema(),this.pages&&this.pages.length&&(this.component=this.pages[this.page].component),this.on("subWizardsUpdated",(function(){e.subWizards.length&&(e.establishPages(),e.redraw())})),t}},{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){return this.currentPanel&&"none"===this.currentPanel.breadcrumb||e.isSubForm?null:this.renderTemplate("wizardHeader",e)}},{key:"render",value:function(){var e=this,t=this.renderContext;this.component.key&&t.panels.map((function(t){t.key===e.component.key&&(e.currentPanel=t)}));var n=this.prepareNavigationSettings(t),r=this.prepareHeaderSettings(t);return this.renderTemplate("wizard",m(m({},t),{},{className:k(P(u.prototype),"getClassName",this).call(this),wizardHeader:r,wizardNav:n,components:this.renderComponents([].concat(f(this.prefixComps),f(this.currentPage.components),f(this.suffixComps)))}),this.builderMode?"builder":"form")}},{key:"redrawNavigation",value:function(){if(this.element){var e,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,(w(e={},"".concat(this.wizardKey,"-cancel"),"single"),w(e,"".concat(this.wizardKey,"-previous"),"single"),w(e,"".concat(this.wizardKey,"-next"),"single"),w(e,"".concat(this.wizardKey,"-submit"),"single"),e)),this.attachNav())}}},{key:"redrawHeader",value:function(){if(this.element){var e=this.element.querySelector("#".concat(this.wizardKey,"-header"));e&&(this.detachHeader(),e.outerHTML=this.renderTemplate("wizardHeader",this.renderContext),e=this.element.querySelector("#".concat(this.wizardKey,"-header")),this.loadRefs(e,w({},"".concat(this.wizardKey,"-link"),"multiple")),this.attachHeader())}}},{key:"attach",value:function(e){var t,n=this;this.element=e,this.loadRefs(e,(w(t={},this.wizardKey,"single"),w(t,"".concat(this.wizardKey,"-cancel"),"single"),w(t,"".concat(this.wizardKey,"-previous"),"single"),w(t,"".concat(this.wizardKey,"-next"),"single"),w(t,"".concat(this.wizardKey,"-submit"),"single"),w(t,"".concat(this.wizardKey,"-link"),"multiple"),t));var r=this.attachComponents(this.refs[this.wizardKey],[].concat(f(this.prefixComps),f(this.currentPage.components),f(this.suffixComps)));return this.attachNav(),this.attachHeader(),r.then((function(){return n.emit("render",{component:n.currentPage,page:n.page})}))}},{key:"isBreadcrumbClickable",value:function(){var e=this,t=null;return this.pages.map((function(n){o.default.isEqual(e.currentPage.component,n.component)&&(t=n)})),o.default.get(t.component,"breadcrumbClickable",!0)}},{key:"attachNav",value:function(){var e=this;o.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:"attachHeader",value:function(){var e=this;this.isBreadcrumbClickable()&&this.refs["".concat(this.wizardKey,"-link")].forEach((function(t,n){e.addEventListener(t,"click",(function(t){return e.emit("wizardNavigationClicked",e.pages[n]),t.preventDefault(),e.setPage(n).then((function(){e.emit("wizardPageSelected",e.pages[n],n)}))}))}))}},{key:"detachNav",value:function(){var e=this;o.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")].forEach((function(t){e.removeEventListener(t,"click")}))}},{key:"transformPages",value:function(){var e,t=[],n={},r=[],i=[];this.allPages=[],this.components&&this.components.length&&this.components.map((function(e){"panel"===e.component.type&&(n[e.component.key||e.component.title]=e)})),null===(e=this.originalComponents)||void 0===e||e.forEach((function(e){e.key||(e.key=e.title),n[e.key]&&r.push(n[e.key])})),r.forEach((function(e){!function e(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=!1,u=[],l=(null==t?void 0:t.subForm)?null==t?void 0:t.subForm.components:(null==t?void 0:t.components)||[],c=l.filter((function(e){return!e.subForm&&e._visible}));if((0,s.eachComponent)(l,(function(t){"panel"===t.component.type&&(null==t?void 0:t.parent.wizard)&&!e(t,n,!1)&&(r&&u.push(t),a=!0),t&&t.subForm&&(a=e(t,u,r))}),!0),"panel"===t.component.type&&(!a&&r&&n.push(t),a&&c.length)){var d=o.default.clone(t);d.components=c,i.push(d)}return r&&(n.push.apply(n,f(i).concat(u)),i=[]),a}(e,t)}),[]),this.allPages=t}},{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={},i=o.default.clone(this.options);return this.components&&this.components.length&&this.components.map((function(e){"panel"===e.component.type&&(r[e.component.key||e.component.title]=e)})),this.originalComponents&&this.originalComponents.forEach((function(o){if("panel"===o.type){o.key||(o.key=o.title);var a=r[o.key],u=(0,s.checkCondition)(o,t,t,e.component,e);u&&(n.push(o),a&&e.pages.push(a)),!a&&u?((a=e.createComponent(o,i)).visible=u,e.pages.push(a),a.eachComponent((function(t){t.page=e.pages.length-1}))):a&&!u&&e.removeComponent(a)}else"button"!==o.type&&(e.pages.length?e.suffixComps.push(e.createComponent(o,i)):e.prefixComps.push(e.createComponent(o,i)))})),this.transformPages(),this.allPages&&this.allPages.length&&(this.pages=this.allPages),n}},{key:"addComponents",value:function(){this.establishPages()}},{key:"setPage",value:function(e){var t=this;return e===this.page?r.default.resolve():!this.wizard.full&&e>=0&&e<this.pages.length?(this.page=e,this.pageFieldLogic(e),this.getNextPage(),this._seenPages.includes(e)||(this._seenPages=this._seenPages.concat(e)),this.redraw().then((function(){t.checkData(t.submission.data)})),r.default.resolve()):this.wizard.full||!this.pages.length?(this.redraw(),r.default.resolve()):r.default.reject("Page not found")}},{key:"pageFieldLogic",value:function(e){this.component=this.pages[e].component,this.originalComponent=(0,s.fastCloneDeep)(this.component),this.fieldLogic(this.data),this.disabled=this.shouldDisabled}},{key:"getNextPage",value:function(){var e=this.submission.data,t=this.pages[this.page].component;if(t){var n=this.pages.length>this.page+1?this.page+1:-1;if(t.nextPage){var r=this.evaluate(t.nextPage,{next:n,data:e,page:n,form:t},"next");if(null===r)return this.currentNextPage=null,null;var o=parseInt(r,10);return!isNaN(parseInt(o,10))&&isFinite(o)?(this.currentNextPage=o,o):(this.currentNextPage=this.getPageIndexByKey(r),this.currentNextPage)}return this.currentNextPage=n,n}return this.currentNextPage=null,null}},{key:"getPreviousPage",value:function(){return this.page-1}},{key:"beforeSubmit",value:function(){var e=this.getPages();return r.default.all(e.map((function(e){return e.options.beforeSubmit=!0,e.beforeSubmit()})))}},{key:"beforePage",value:function(e){var t=this;return new r.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()}))}))}},{key:"nextPage",value:function(){var e=this;return this.options.readOnly?this.setPage(this.getNextPage()).then((function(){e.emit("nextPage",{page:e.page,submission:e.submission})})):this.checkValidity(this.submission.data,!0,this.submission.data,!0)?(this.checkData(this.submission.data),this.beforePage(!0).then((function(){return e.setPage(e.getNextPage()).then((function(){e.emit("nextPage",{page:e.page,submission:e.submission})}))}))):(this.currentPage.components.forEach((function(e){return e.setPristine(!1)})),r.default.reject(this.showErrors([],!0)))}},{key:"prevPage",value:function(){var e=this;return this.beforePage().then((function(){return e.setPage(e.getPreviousPage()).then((function(){e.emit("prevPage",{page:e.page,submission:e.submission})}))}))}},{key:"cancel",value:function(e){var t=this;return k(P(u.prototype),"cancel",this).call(this,e)?(this.setPristine(!0),this.setPage(0).then((function(){return t.redraw(),t.page}))):r.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:"setComponentSchema",value:function(){var e=this,t={};if(this.originalComponents=[],this.component.components.map((function(n){"panel"===n.type&&(n.key=(0,s.uniqueKey)(t,n.key||"panel"),t[n.key]=!0),e.originalComponents.push(o.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(o.default.clone(n))}}},{key:"setForm",value:function(e,t){if(e)return this.wizard=e,this.component.components=e.components||[],this.setComponentSchema(),k(P(u.prototype),"setForm",this).call(this,e,t)}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._submission=e,n&&n.fromSubmission&&e&&(this._data=e.data),this.establishPages(e.data);var r=this.getPages({all:!0}).reduce((function(r,o){return t.setNestedValue(o,e.data,n,r)||r}),!1);return this.pageFieldLogic(this.page),r}},{key:"isClickable",value:function(e,t){return this.page!==t&&(0,s.firstNonNil)([o.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=o.default.get(this.currentPage,"component.buttonSettings",{}),r=n.previous,i=void 0===r?this.options.buttonSettings.showPrevious:r,a=n.cancel,s=void 0===a?this.options.buttonSettings.showCancel:a,u=n.submit,l=void 0===u?this.options.buttonSettings.showSubmit:u,c=n.next,f=void 0===c?this.options.buttonSettings.showNext:c;switch(e){case"previous":return i&&this.getPreviousPage()>-1;case"next":return f&&null!==t&&-1!==t;case"cancel":return s;case"submit":return l&&!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 i,a;k(P(u.prototype),"onChange",this).call(this,e,t,n,r),this.alert&&!this.submitted&&(this.checkValidity(this.submission.data,!1,this.submission.data,!0),this.showErrors([],!0,!0));var s=this.currentNextPage;this.hasExtraPages?(i=this.pages.map((function(e){return e.component.key})),this.establishPages(),a=this.pages.map((function(e){return e.component.key}))):(i=this.currentPanels||this.pages.map((function(e){return e.component.key})),a=this.establishPages().map((function(e){return e.key})),this.currentPanels=a),(!o.default.isEqual(a,i)||e&&e.fromSubmission)&&this.redrawHeader(),s!==this.getNextPage()&&this.redrawNavigation()}},{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)&&r}),!0):(this.setCustomValidity(""),!0)}},{key:"focusOnComponent",value:function(e){var t=this,n=0,r=c(this.pages.filter((function(t,r){return!!t.getComponent(e)&&(n=r,!0)})),1)[0];return r&&r!==this.currentPage?this.setPage(n).then((function(){t.checkValidity(t.submission.data,!0,t.submission.data),t.showErrors(),k(P(u.prototype),"focusOnComponent",t).call(t,e)})):k(P(u.prototype),"focusOnComponent",this).call(this,e)}},{key:"hasExtraPages",get:function(){return!o.default.isEmpty(this.subWizards)&&!o.default.isEqual(this.pages,this.components)}},{key:"data",get:function(){return k(P(u.prototype),"data",this)},set:function(e){var t=this;this.establishPages(e),o.default.each(this.getPages({all:!0}),(function(e){e.data=t.componentContext(e)}))}},{key:"wizardKey",get:function(){return"wizard-".concat(this.id)}},{key:"form",get:function(){return this.wizard},set:function(e){g(P(u.prototype),"form",e,this,!0)}},{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:"renderContext",get:function(){return{wizardKey:this.wizardKey,isBreadcrumbClickable:this.isBreadcrumbClickable(),isSubForm:!!this.parent,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}}},{key:"currentPage",get:function(){return this.pages&&this.pages.length>=this.page?this.pages[this.page]:{components:[]}}},{key:"schema",get:function(){return this.wizard}},{key:"errors",get:function(){return this.isLastPage()?k(P(u.prototype),"errors",this):this.currentPage.errors}}])&&v(t.prototype,n),i&&v(t,i),u}(i.default);t.default=j,j.setBaseUrl=a.default.setBaseUrl,j.setApiUrl=a.default.setApiUrl,j.setAppUrl=a.default.setAppUrl},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(12),n(10),n(2),n(9),n(13),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(74))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,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 u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(f,e);var t,n,r,i=c(f);function f(){return a(this,f),i.apply(this,arguments)}return t=f,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:"hidden",tableView:!1,inputType:"hidden"}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Hidden",group:"data",icon:"user-secret",weight:0,documentation:"http://help.form.io/userguide/#hidden",schema:f.schema()}}}],(n=[{key:"validateMultiple",value:function(){return!1}},{key:"labelIsHidden",value:function(){return!0}},{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}},{key:"defaultSchema",get:function(){return f.schema()}},{key:"inputInfo",get:function(){var e=u(d(f.prototype),"elementInfo",this).call(this);return e.type="input",e.attr.type="hidden",e.changeEvent="change",e}},{key:"skipInEmail",get:function(){return!0}},{key:"emptyValue",get:function(){return""}}])&&s(t.prototype,n),r&&s(t,r),f}(o.default);t.default=p},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(14),n(12),n(10),n(2),n(9),n(13),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(48)),o=i(n(11));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})(e)}function s(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 l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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&&c(e,t)}(d,e);var t,n,i,a=f(d);function d(){return s(this,d),a.apply(this,arguments)}return t=d,i=[{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:"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:"http://help.form.io/userguide/#html-element-component",schema:d.schema()}}}],(n=[{key:"checkRefreshOn",value:function(e){l(p(d.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=o.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 l(p(d.prototype),"render",this).call(this,this.renderContent())}},{key:"attach",value:function(e){return this.loadRefs(e,{html:"single"}),l(p(d.prototype),"attach",this).call(this,e)}},{key:"defaultSchema",get:function(){return d.schema()}},{key:"content",get:function(){if(this.builderMode)return this.component.content;var e=o.default.get(this.root,"submission",{});return this.component.content?this.interpolate(this.component.content,{metadata:e.metadata||{},submission:e,data:this.rootValue,row:this.data}):""}},{key:"singleTags",get:function(){return["br","img","hr"]}}])&&u(t.prototype,n),i&&u(t,i),d}(r.default);t.default=h},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(40),n(68),n(12),n(10),n(2),n(9),n(13),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(64))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,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 u(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e,t,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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&&l(e,t)}(n,e);var t=c(n);function n(){var e;a(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).noField=!0,e.on("componentError",(function(){e.hasInvalidComponent()&&e.collapsed&&(e.collapsed=!1)})),e}return u(n,[{key:"checkValidity",value:function(e,t,r,o){return this.checkCondition(r,e)?this.getComponents().reduce((function(n,i){return i.checkValidity(e,t,r,o)&&n}),d(p(n.prototype),"checkValidity",this).call(this,e,t,r,o)):(this.setCustomValidity(""),!0)}},{key:"defaultSchema",get:function(){return n.schema()}},{key:"templateName",get:function(){return"panel"}}],[{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:"http://help.form.io/userguide/#panels",weight:30,schema:n.schema()}}}]),u(n,[{key:"hasInvalidComponent",value:function(){return this.getComponents().some((function(e){return e.error}))}}]),n}(o.default);t.default=h},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(12),n(10),n(2),n(9),n(13),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(85)),o=i(n(11));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})(e)}function s(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 l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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&&c(e,t)}(d,e);var t,n,i,a=f(d);function d(){return s(this,d),a.apply(this,arguments)}return t=d,i=[{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,[{type:"password",label:"Password",key:"password",protected:!0,tableView:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Password",icon:"asterisk",group:"basic",documentation:"http://help.form.io/userguide/#password",weight:40,schema:d.schema()}}}],(n=[{key:"defaultSchema",get:function(){return o.default.omit(d.schema(),["protected","tableView"])}},{key:"inputInfo",get:function(){var e=l(p(d.prototype),"inputInfo",this);return e.attr.type="password",e}}])&&u(t.prototype,n),i&&u(t,i),d}(r.default);t.default=h},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(10),n(2),n(9),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(85))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,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 u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(c,e);var t,n,r,i=l(c);function c(){return a(this,c),i.apply(this,arguments)}return t=c,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:"phoneNumber",label:"Phone Number",key:"phoneNumber",inputType:"tel",inputMask:"(999) 999-9999"}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Phone Number",group:"advanced",icon:"phone-square",weight:30,documentation:"http://help.form.io/userguide/#phonenumber",schema:c.schema()}}}],(n=[{key:"defaultSchema",get:function(){return c.schema()}}])&&s(t.prototype,n),r&&s(t,r),c}(o.default);t.default=d},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(19),n(12),n(10),n(2),n(9),n(13),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(48)),o=s(n(41)),i=s(n(168)),a=s(n(22));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(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,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(h,e);var t,n,s,u=p(h);function h(){return l(this,h),u.apply(this,arguments)}return t=h,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,[{type:"recaptcha",key:"recaptcha",label:"reCAPTCHA"}].concat(t))}},{key:"builderInfo",get:function(){return{title:"reCAPTCHA",group:"premium",icon:"refresh",documentation:"http://help.form.io/userguide/#recaptcha",weight:40,schema:h.schema()}}}],(n=[{key:"render",value:function(){return this.builderMode?f(m(h.prototype),"render",this).call(this,"reCAPTCHA"):f(m(h.prototype),"render",this).call(this,"",!0)}},{key:"createInput",value:function(){if(this.builderMode)this.append(this.text(this.name));else{var e=(0,i.default)(this.root.form,"settings.recaptcha.siteKey");if(e){var t="https://www.google.com/recaptcha/api.js?render=".concat(e);this.recaptchaApiReady=o.default.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,i.default)(this.root.form,"settings.recaptcha.siteKey");if(n){if(!this.recaptchaApiReady){var r="https://www.google.com/recaptcha/api.js?render=".concat((0,i.default)(this.root.form,"settings.recaptcha.siteKey"));this.recaptchaApiReady=o.default.requireLibrary("googleRecaptcha","grecaptcha",r,!0)}this.recaptchaApiReady&&(this.recaptchaVerifiedPromise=new a.default((function(r,o){t.recaptchaApiReady.then((function(){grecaptcha.ready((function(){grecaptcha.execute(n,{action:e}).then((function(e){return t.sendVerificationRequest(e)})).then((function(e){return t.setValue(e),r(e)}))}))})).catch((function(){return o()}))})))}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 f(m(h.prototype),"beforeSubmit",e).call(e)})):f(m(h.prototype),"beforeSubmit",this).call(this)}},{key:"sendVerificationRequest",value:function(e){return o.default.makeStaticRequest("".concat(o.default.projectUrl,"/recaptcha?recaptchaToken=").concat(e))}},{key:"setValue",value:function(e){var t=this.hasChanged(e,this.dataValue);return this.dataValue=e,t}},{key:"getValue",value:function(){return this.dataValue}}])&&c(t.prototype,n),s&&c(t,s),h}(r.default);t.default=y},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(12),n(10),n(2),n(9),n(13),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(263))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,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 u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(f,e);var t,n,r,i=c(f);function f(){return a(this,f),i.apply(this,arguments)}return t=f,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:"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:"http://help.form.io/userguide/#resource",schema:f.schema()}}}],(n=[{key:"init",value:function(){u(d(f.prototype),"init",this).call(this),this.component.dataSrc="resource",this.component.data={resource:this.component.resource}}},{key:"defaultSchema",get:function(){return f.schema()}}])&&s(t.prototype,n),r&&s(t,r),f}(o.default);t.default=p},function(e,t,n){"use strict";var r=n(15),o=n(123).right;r({target:"Array",proto:!0,forced:n(83)("reduceRight")},{reduceRight:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){n(15)({target:"Number",stat:!0},{isFinite:n(851)})},function(e,t,n){var r=n(24).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(12),n(10),n(2),n(9),n(13),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.KEY_CODES=void 0;var r,o=(r=n(264))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,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 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 l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?p(e):t}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)})(e)}o.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={BACK_KEY:46,DELETE_KEY:8,TAB_KEY:9,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34};t.KEY_CODES=m;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&&c(e,t)}(i,e);var t,n,r,o=f(i);function i(){var e;s(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n)))._onTabKey=e._onTabKey.bind(p(e)),e.isDirectionUsing=!1,e.shouldOpenDropDown=!0,e}return t=i,(n=[{key:"_handleButtonAction",value:function(e,t){if(!this._isSelectOneElement)return l(h(i.prototype),"_handleButtonAction",this).call(this,e,t);e&&t&&this.config.removeItems&&this.config.removeItemButton&&l(h(i.prototype),"_handleButtonAction",this).call(this,e,t)}},{key:"_onEnterKey",value:function(e){"choices__button"===e.event.target.className&&(this.shouldOpenDropDown=!1),l(h(i.prototype),"_onEnterKey",this).call(this,e)}},{key:"_onDirectionKey",value:function(){for(var e,t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];if(!this._isSelectOneElement)return(t=l(h(i.prototype),"_onDirectionKey",this)).call.apply(t,[this].concat(r));this.isDirectionUsing=!0,(e=l(h(i.prototype),"_onDirectionKey",this)).call.apply(e,[this].concat(r)),this.onSelectValue.apply(this,r),this.isDirectionUsing=!1}},{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 l(h(i.prototype),"_onKeyDown",this).call(this,e);var n=e.target,r=e.keyCode,o=e.ctrlKey,s=e.metaKey;if(n===this.input.element||this.containerOuter.element.contains(n)){var u=this._store.activeItems,c=this.input.isFocussed,f=this.dropdown.isActive,d=this.itemList.hasChildren,p=String.fromCharCode(r),y=m.BACK_KEY,v=m.DELETE_KEY,b=m.TAB_KEY,g=m.ENTER_KEY,w=m.A_KEY,k=m.ESC_KEY,_=m.UP_KEY,O=m.DOWN_KEY,S=m.PAGE_UP_KEY,x=m.PAGE_DOWN_KEY,P=o||s;!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(p)&&this.showDropdown();var j=(a(t={},w,this._onAKey),a(t,b,this._onTabKey),a(t,g,this._onEnterKey),a(t,k,this._onEscapeKey),a(t,_,this._onDirectionKey),a(t,S,this._onDirectionKey),a(t,O,this._onDirectionKey),a(t,x,this._onDirectionKey),a(t,v,this._onDeleteKey),a(t,y,this._onDeleteKey),t);j[r]&&j[r]({event:e,target:n,keyCode:r,metaKey:s,activeItems:u,hasFocusedInput:c,hasActiveDropdown:f,hasItems:d,hasCtrlDownKeyPressed:P})}}},{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=l(h(i.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=l(h(i.prototype),"hideDropdown",this)).call.apply(e,[this].concat(n))}}}])&&u(t.prototype,n),r&&u(t,r),i}(o.default);t.default=y},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(23),n(16),n(1),n(29),n(14),n(40),n(19),n(12),n(10),n(26),n(2),n(9),n(13),n(5),n(6),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(11)),o=i(n(262));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})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||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 c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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&&f(e,t)}(n,e);var t=d(n);function n(){var e;s(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).validators=e.validators.concat("minSelectedCount","maxSelectedCount"),e}return c(n,null,[{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:"http://help.form.io/userguide/#selectboxes",schema:n.schema()}}}]),c(n,[{key:"init",value:function(){u(h(n.prototype),"init",this).call(this),this.component.inputType="checkbox"}},{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?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,!0):{}),Array.isArray(e)&&r.default.each(e,(function(t){e[t]=!0})),e}},{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,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:"checkComponentValidity",value:function(e,t,r){var o=this,i=this.component.validate.minSelectedCount,a=this.component.validate.maxSelectedCount;if((a||i)&&!this.isValid(e,t)){var s=Object.keys(this.validationValue).reduce((function(e,t){return o.validationValue[t]&&e++,e}),0);if(a&&s>=a){if(this.refs.input&&this.refs.input.forEach((function(e){e.checked||(e.disabled=!0)})),a&&s>a){var l=this.component.maxSelectedCountMessage?this.component.maxSelectedCountMessage:"You can only select up to ".concat(a," items.");return this.setCustomValidity(l,t),!1}}else{if(i&&s<i){this.refs.input&&this.refs.input.forEach((function(e){e.disabled=!1}));var c=this.component.minSelectedCountMessage?this.component.minSelectedCountMessage:"You must select at least ".concat(i," items.");return this.setCustomValidity(c,t),!1}this.refs.input&&this.refs.input.forEach((function(e){e.disabled=!1}))}}return u(h(n.prototype),"checkComponentValidity",this).call(this,e,t,r)}},{key:"defaultSchema",get:function(){return n.schema()}},{key:"inputInfo",get:function(){var e=u(h(n.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 e[t.value]=!1,e}),{})}}]),n}(o.default);t.default=m},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(12),n(10),n(2),n(9),n(13),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(855)),o=a(n(74)),i=a(n(11));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})(e)}function u(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 c(e,t,n){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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&&f(e,t)}(p,e);var t,n,a,s=d(p);function p(){return u(this,p),s.apply(this,arguments)}return t=p,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:"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"}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Signature",group:"advanced",icon:"pencil",weight:120,documentation:"http://help.form.io/userguide/#signature",schema:p.schema()}}}],(n=[{key:"init",value:function(){c(h(p.prototype),"init",this).call(this),this.currentWidth=0,this.scale=1,this.component.width||(this.component.width="100%"),this.component.height||(this.component.height="200px")}},{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(p.prototype),"setValue",this).call(this,e,t);return e&&this.refs.signatureImage&&this.options.readOnly&&(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(p.prototype),"disabled",this)),this.signaturePad&&(c(h(p.prototype),"disabled",this)?(this.signaturePad.off(),this.refs.refresh&&this.refs.refresh.classList.add("disabled"),this.refs.signatureImage&&this.dataValue&&this.refs.signatureImage.setAttribute("src",this.dataValue)):(this.signaturePad.on(),this.refs.refresh&&this.refs.refresh.classList.remove("disabled")))}},{key:"checkSize",value:function(e,t){if(e||this.refs.padBody.offsetWidth!==this.currentWidth){this.scale=e?t:this.scale,this.currentWidth=this.refs.padBody.offsetWidth,this.refs.canvas.width=this.currentWidth*this.scale,this.refs.canvas.height=this.refs.padBody.offsetHeight*this.scale;var n=this.refs.canvas.getContext("2d");n.setTransform(1,0,0,1,0,0),n.scale(1/this.scale,1/this.scale),n.fillStyle=this.signaturePad.backgroundColor,n.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(p.prototype),"renderElement",this).call(this,e,t),required:i.default.get(this.component,"validate.required",!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(p.prototype),"attach",this).call(this,e);return this.refs.refresh&&this.options.readOnly&&this.refs.refresh.classList.add("disabled"),this.refs.canvas&&(this.signaturePad=new r.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",i.default.debounce((function(){return t.checkSize()}),100)),setTimeout(function e(){this.refs.padBody&&this.refs.padBody.offsetWidth?this.checkSize():setTimeout(e.bind(this),200)}.bind(this),200))),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.signaturePad&&this.signaturePad.off(),this.signaturePad=null,this.currentWidth=0,c(h(p.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})}},{key:"emptyValue",get:function(){return""}},{key:"defaultSchema",get:function(){return p.schema()}},{key:"inputInfo",get:function(){var e=c(h(p.prototype),"inputInfo",this);return e.type="input",e.attr.type="hidden",e}},{key:"className",get:function(){return"".concat(c(h(p.prototype),"className",this)," signature-pad")}},{key:"hasModalSaveButton",get:function(){return!1}}])&&l(t.prototype,n),a&&l(t,a),p}(o.default);t.default=m},function(e,t,n){
  103. /*!
  104. * Signature Pad v2.3.2
  105. * https://github.com/szimek/signature_pad
  106. *
  107. * Copyright 2017 Szymon Nowak
  108. * Released under the MIT license
  109. *
  110. * The main idea and some parts of the code (e.g. drawing variable width Bézier curve) are taken from:
  111. * http://corner.squareup.com/2012/07/smoother-signatures.html
  112. *
  113. * Implementation of interpolation using cubic Bézier curves is taken from:
  114. * http://benknowscode.wordpress.com/2012/09/14/path-interpolation-using-cubic-bezier-and-control-point-estimation-in-javascript
  115. *
  116. * Algorithm for approximated length of a Bézier curve is taken from:
  117. * http://www.lemoda.net/maths/bezier-length/index.html
  118. *
  119. */
  120. 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 u=function(){s=!1===n.leading?0:Date.now(),a=null,i=e.apply(r,o),a||(r=o=null)};return function(){var l=Date.now();s||!1!==n.leading||(s=l);var c=t-(l-s);return r=this,o=arguments,c<=0||c>t?(a&&(clearTimeout(a),a=null),s=l,i=e.apply(r,o),a||(r=o=null)):a||!1===n.trailing||(a=setTimeout(u,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,u=a-n;e+=Math.sqrt(s*s+u*u)}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;switch(e){case"image/svg+xml":return this._toSVG();default: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),u=s.curve,l=s.widths;u&&l&&this._drawCurve(u,l.start,l.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,u=(t.x+n.x)/2,l=(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+(u-c)*h,y=f+(l-f)*h,v=n.x-m,b=n.y-y;return{c1:new e(u+v,l+b),c2:new e(c+v,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,u=s*s,l=u*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*u*e.control2.x,p+=l*e.endPoint.x;var h=d*e.startPoint.y;h+=3*f*s*e.control1.y,h+=3*c*u*e.control2.y,h+=l*e.endPoint.y;var m=t+l*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],u=new e(s.x,s.y,s.time),l=s.color;if(0===a)this.penColor=l,this._reset(),this._addPoint(u);else if(a!==i.length-1){var c=this._addPoint(u),f=c.curve,d=c.widths;f&&d&&n(f,d,l)}}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" viewBox="0 0 '+o+" "+i+'" width="'+o+'" height="'+i+'">',u=a.innerHTML;if(void 0===u){var l=document.createElement("dummy"),c=a.childNodes;l.innerHTML="";for(var f=0;f<c.length;f+=1)l.appendChild(c[f].cloneNode(!0));u=l.innerHTML}return"data:image/svg+xml;base64,"+btoa(s+u+"</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}()},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(57),n(16),n(1),n(40),n(68),n(19),n(12),n(10),n(2),n(9),n(13),n(65),n(5),n(6),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(11)),o=a(n(59)),i=n(18);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})(e)}function u(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 c(e,t,n,r){return(c="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,i=p(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})(e,t,n,r)}function f(e,t,n,r,o){if(!c(e,t,n,r||e)&&o)throw new Error("failed to set property");return n}function d(e,t,n){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(n):o.value}})(e,t,n||e)}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})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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&&h(e,t)}(c,e);var t,n,a,s=m(c);function c(){return u(this,c),s.apply(this,arguments)}return t=c,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:"survey",label:"Survey",key:"survey",questions:[],values:[]}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Survey",group:"advanced",icon:"list",weight:110,documentation:"http://help.form.io/userguide/#survey",schema:c.schema()}}}],(n=[{key:"render",value:function(){return d(v(c.prototype),"render",this).call(this,this.renderTemplate("survey"))}},{key:"attach",value:function(e){var t=this;this.loadRefs(e,{input:"multiple"});var n=d(v(c.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]:{};return!!e&&(r.default.each(this.component.questions,(function(n){r.default.each(t.refs.input,(function(r){r.name===t.getInputName(n)&&(r.checked=r.value===e[n.value])}))})),this.updateValue(e,n))}},{key:"getValue",value:function(){var e=this;if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var t={};return r.default.each(this.component.questions,(function(n){r.default.each(e.refs.input,(function(r){if(r.checked&&r.name===e.getInputName(n))return t[n.value]=r.value,!1}))})),t}},{key:"validateRequired",value:function(e,t){return!(0,i.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?void 0:t.email){var o='\n <table border="1" style="width:100%">\n <thead>\n <tr>\n <th>Question</th>\n <th>Value</th>\n </tr>\n </thead>\n <tbody>\n ';return r.default.forIn(e,(function(e,t){var i=r.default.find(n.component.questions,["value",t]),a=r.default.find(n.component.values,["value",e]);i&&a&&(o+='\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 "))})),o+="</tbody></table>"}return d(v(c.prototype),"getValueAsString",this).call(this,e,t)}},{key:"defaultSchema",get:function(){return c.schema()}},{key:"emptyValue",get:function(){return{}}},{key:"defaultValue",get:function(){var e=d(v(c.prototype),"defaultValue",this);if(e&&!r.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:"disabled",set:function(e){f(v(c.prototype),"disabled",e,this,!0),r.default.each(this.refs.input,(function(e){e.disabled=!0}))},get:function(){return d(v(c.prototype),"disabled",this)}}])&&l(t.prototype,n),a&&l(t,a),c}(o.default);t.default=b},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(16),n(1),n(14),n(40),n(30),n(12),n(10),n(2),n(9),n(13),n(5),n(6),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(11)),o=a(n(86)),i=a(n(64));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})(e)}function u(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 c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e,t,n){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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&&f(e,t)}(n,e);var t=d(n);function n(){var e;u(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).noField=!0,e}return c(n,[{key:"defaultSchema",get:function(){return n.schema()}},{key:"schema",get:function(){var e=this,t=r.default.omit(h(m(n.prototype),"schema",this),"components");return t.rows=[],this.eachComponent((function(r){t.rows&&t.rows.length||(t.rows=n.emptyTable(e.component.numRows,e.component.numCols)),t.rows[r.tableRow]||(t.rows[r.tableRow]=[]),t.rows[r.tableRow][r.tableColumn]||(t.rows[r.tableRow][r.column]={components:[]}),t.rows[r.tableRow][r.tableColumn].components.push(r.schema)})),t.rows.length||(t.rows=n.emptyTable(this.component.numRows,this.component.numCols)),t}},{key:"className",get:function(){var e="table-responsive ".concat(h(m(n.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:"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),r=0;r<e;r++)t[r]=arguments[r];return i.default.schema.apply(i.default,[{label:"Table",type:"table",input:!1,key:"table",numRows:3,numCols:3,rows:n.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:"http://help.form.io/userguide/#table",schema:n.schema()}}}]),c(n,[{key:"init",value:function(){var e=this;h(m(n.prototype),"init",this).call(this);for(var t=0;t<this.component.numRows;t++){this.component.rows[t]=this.component.rows[t]||[];for(var i=0;i<this.component.numCols;i++)this.component.rows[t][i]=this.component.rows[t][i]||{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 a=[];this.table=[],r.default.each(this.component.rows,(function(t,n){e.table[n]=[],r.default.each(t,(function(t,i){e.table[n][i]=[],e.component.cloneRows&&(t.components.length?a[i]=t:a[i]&&(t.components=r.default.cloneDeep(a[i].components),o.default.uniquify(e.root._form.components,t))),r.default.each(t.components,(function(t){var r=e.createComponent(t);r.tableRow=n,r.tableColumn=i,e.table[n][i].push(r)}))}))}))}},{key:"render",value:function(){var e=this;return h(m(n.prototype),"render",this).call(this,this.renderTemplate("table",{cellClassName:this.cellClassName,tableKey:this.tableKey,tableComponents:this.table.map((function(t){return t.map((function(t){return e.renderComponents(t)}))}))}))}},{key:"attach",value:function(e){var t=this,r=this.table.reduce((function(e,n,r){return e["".concat(t.tableKey,"-").concat(r)]="multiple",e}),{});this.loadRefs(e,r);var o=h(m(n.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)}))})),o}},{key:"destroy",value:function(e){h(m(n.prototype),"destroy",this).call(this,e),delete this.table}}]),n}(i.default);t.default=y},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(108),n(16),n(1),n(14),n(68),n(12),n(10),n(2),n(9),n(13),n(5),n(6),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(11)),o=i(n(64));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})(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 u(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 c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e,t,n){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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&&f(e,t)}(n,e);var t=d(n);function n(){var e;u(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).currentTab=0,e.noField=!0,e}return c(n,[{key:"defaultSchema",get:function(){return n.schema()}},{key:"schema",get:function(){var e=this,t=h(m(n.prototype),"schema",this),o=r.default.cloneDeep(this.component.components);return t.components=o.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:"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:"Tabs",type:"tabs",input:!1,key:"tabs",persistent:!1,tableView:!1,components:[{label:"Tab 1",key:"tab1",components:[]}]}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Tabs",group:"layout",icon:"folder-o",weight:50,documentation:"http://help.form.io/userguide/#tabs",schema:n.schema()}}}]),c(n,[{key:"init",value:function(){var e=this;this.components=[],this.tabs=[],r.default.each(this.component.components,(function(t,n){e.tabs[n]=[],t.components=t.components||[],r.default.each(t.components,(function(t){var r=e.createComponent(t);r.tab=n,e.tabs[n].push(r)}))}))}},{key:"render",value:function(){var e=this;return h(m(n.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,r=this;this.loadRefs(e,(s(t={},this.tabLinkKey,"multiple"),s(t,this.tabKey,"multiple"),s(t,this.tabLikey,"multiple"),t));var o=h(m(n.prototype),"attach",this).call(this,e);return this.refs[this.tabLinkKey].forEach((function(e,t){r.addEventListener(e,"click",(function(e){e.preventDefault(),r.setTab(t)}))})),this.refs[this.tabKey].forEach((function(e,t){r.attachComponents(e,r.tabs[t],r.component.components[t].components)})),o}},{key:"detach",value:function(e){h(m(n.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,r.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",r.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.setTab(t)}}]),n}(o.default);t.default=y},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(23),n(1),n(29),n(12),n(10),n(2),n(9),n(13),n(65),n(21),n(5),n(6),n(37),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(74)),o=i(n(264));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})(e)}function s(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 l(e,t,n,r){return(l="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})(e,t,n,r)}function c(e,t,n,r,o){if(!l(e,t,n,r||e)&&o)throw new Error("failed to set property");return n}function f(e,t,n){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(n):o.value}})(e,t,n||e)}function d(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(l,e);var t,n,i,a=h(l);function l(){return s(this,l),a.apply(this,arguments)}return t=l,i=[{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,[{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:"http://help.form.io/userguide/#tags",weight:30,schema:l.schema()}}}],(n=[{key:"init",value:function(){f(y(l.prototype),"init",this).call(this)}},{key:"attachElement",value:function(e,t){var n=this;f(y(l.prototype),"attachElement",this).call(this,e,t),e&&(e.setAttribute("dir",this.i18next.dir()),this.choices&&this.choices.destroy(),this.choices=new o.default(e,{delimiter:this.delimiter,editItems:!0,maxItemCount:this.component.maxTags,removeItemButton:!0,duplicateItemsAllowed:!1}),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;e&&(t&&r===t?(n.choices.addItems=!1,n.choices.clearInput()):(n.choices.setValue([e]),n.choices.clearInput(),n.choices.hideDropdown(!0),n.updateValue(null,{modified:!0})))})))}},{key:"detach",value:function(){f(y(l.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=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=f(y(l.prototype),"setValue",this).call(this,e,t);if(this.choices){var r=this.dataValue;this.choices.removeActiveItems(),r&&("string"==typeof r&&(r=r.split(this.delimiter).filter((function(e){return e}))),this.choices.setValue(Array.isArray(r)?r:[r]))}return n}},{key:"focus",value:function(){this.refs.input&&this.refs.input.length&&this.refs.input[0].parentNode.lastChild.focus()}},{key:"emptyValue",get:function(){return"string"===this.component.storeas?"":[]}},{key:"defaultSchema",get:function(){return l.schema()}},{key:"inputInfo",get:function(){var e=f(y(l.prototype),"inputInfo",this);return e.type="input",e.attr.type="text",e.changeEvent="change",e}},{key:"delimiter",get:function(){return this.component.delimeter||","}},{key:"disabled",set:function(e){c(y(l.prototype),"disabled",e,this,!0),this.choices&&(e?this.choices.disable():this.choices.enable())},get:function(){return f(y(l.prototype),"disabled",this)}}])&&u(t.prototype,n),i&&u(t,i),l}(r.default);t.default=v},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(16),n(1),n(14),n(19),n(12),n(10),n(2),n(9),n(13),n(62),n(21),n(5),n(6),n(34),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(85)),o=s(n(11)),i=s(n(22)),a=n(18);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(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,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(h,e);var t,n,s,u=p(h);function h(){return l(this,h),u.apply(this,arguments)}return t=h,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,[{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:"http://help.form.io/userguide/#textarea",weight:20,schema:h.schema()}}}],(n=[{key:"init",value:function(){f(m(h.prototype),"init",this).call(this),this.editors=[],this.editorsReady=[],this.updateSizes=[],this.options.submitOnEnter=!1}},{key:"validateMultiple",value:function(){return!this.isJsonValue}},{key:"renderElement",value:function(e,t){var n=this.inputInfo;return n.attr=n.attr||{},n.content=e,this.options.readOnly||this.disabled?this.renderTemplate("well",{children:'<div ref="input" class="formio-editor-read-only-content"></div>',nestedKey:this.key,value:e}):this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:n,value:e,index:t})}},{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=o.default.clone(n);r[e]=t,t=r}o.default.isEqual(t,n)||o.default.isEmpty(t)&&o.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="ckeditor");var r=o.default.isEmpty(this.component.wysiwyg)?this.wysiwygDefault[this.component.editor]||this.wysiwygDefault.default:this.component.wysiwyg;return this.editorsReady[t]=new i.default((function(i){switch(n.component.editor){case"ace":r||(r={}),r.mode=n.component.as,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)),i(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 o=n.dataValue;return o=n.component.multiple&&Array.isArray(o)?o[t]:o,e.setContents(e.clipboard.convert({html:n.setConvertedValue(o,t)})),i(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 s=n.setConvertedValue(r,t),u=n.options.readOnly||n.disabled;if((0,a.getIEBrowserVersion)())e.on("instanceReady",(function(){e.setReadOnly(u),e.setData(s)}));else{var l=parseInt(n.component.rows,10);if(o.default.isFinite(l)&&o.default.has(e,"ui.view.editable.editableElement")){var c=31*l+14;e.ui.view.editable.editableElement.style.height="".concat(c,"px")}e.isReadOnly=u,e.data.set(s)}return i(e),e}));break;default:f(m(h.prototype),"attachElement",n).call(n,e,t)}})),e}},{key:"attach",value:function(e){var t=f(m(h.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,s=this.component,u=s.uploadStorage,l=s.uploadUrl,c=s.uploadOptions,f=s.uploadDir,d=s.fileKey;this.fileService.uploadFile(u,n[0],(0,a.uniqueName)(n[0].name),f||"",null,l,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:"setValueAt",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(f(m(h.prototype),"setValueAt",this).call(this,e,t,r),this.editorsReady[e]){var i=function(r){return function(o){if(n.autoModified=!0,!r.skipWysiwyg)switch(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(i(o.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(h.prototype),"setValue",this).call(this,e,n)):(n.skipWysiwyg=o.default.isEqual(e,this.getValue()),f(m(h.prototype),"setValue",this).call(this,e,n))}},{key:"setReadOnlyValue",value:function(e,t){t=t||0,(this.options.readOnly||this.disabled)&&this.refs.input&&this.refs.input[t]&&this.setContent(this.refs.input[t],this.interpolate(e))}},{key:"setConvertedValue",value:function(e,t){if(this.isJsonValue&&!o.default.isNil(e))try{e=JSON.stringify(e,null,2)}catch(e){console.warn(e)}return o.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)}o.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})):i.default.resolve(e)}},{key:"setImagesUrl",value:function(e){var t=this;return i.default.all(o.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,i=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(e,t){for(var n=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&n.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;t(),n.forEach((function(e){e.node.scrollTop=e.scrollTop}))}(e,(function(){e.style.height="",e.style.height="".concat(e.scrollHeight+n,"px")}))},s=o.default.debounce((function(){a();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o=e.offsetHeight;o<t&&"hidden"===n.overflowY?i("scroll"):"hidden"!==n.overflowY&&i("hidden"),a(),o=e.offsetHeight,r!==o&&(r=o,s())}),200),u=window.getComputedStyle(e,null);e.style.resize="none",n=parseFloat(u.borderTopWidth)+parseFloat(u.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>&nbsp;</p>",n="<p><br></p>",r=new RegExp("^".concat(t,"|").concat(t,"$|^").concat(n,"|").concat(n,"$|^").concat("<p><br>&nbsp;</p>","|").concat("<p><br>&nbsp;</p>","$"),"g");return"string"==typeof e?e.replace(r,""):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(h.prototype),"onChange",this).call(this,e,t);return this.updateSizes.forEach((function(e){return e()})),n}},{key:"hasChanged",value:function(e,t){return f(m(h.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(h.prototype),"isEmpty",this).call(this,this.trimBlanks(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(h.prototype),"detach",this).call(this)}},{key:"getValue",value:function(){return this.isPlain?this.getConvertedValue(f(m(h.prototype),"getValue",this).call(this)):this.dataValue}},{key:"focus",value:function(){switch(f(m(h.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?void 0: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()}}},{key:"defaultSchema",get:function(){return h.schema()}},{key:"inputInfo",get:function(){var e=f(m(h.prototype),"inputInfo",this);return e.type=this.component.wysiwyg?"div":"textarea",this.component.rows&&(e.attr.rows=this.component.rows),e}},{key:"autoExpand",get:function(){return this.component.autoExpand}},{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:"isJsonValue",get:function(){return this.component.as&&"json"===this.component.as}},{key:"defaultValue",get:function(){var e=f(m(h.prototype),"defaultValue",this);return"quill"!==this.component.editor||e||(e="<p><br></p>"),e}}])&&c(t.prototype,n),s&&c(t,s),h}(r.default);t.default=y},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(39),n(31),n(1),n(14),n(30),n(19),n(12),n(10),n(2),n(9),n(13),n(21),n(5),n(44),n(6),n(34),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(54)),o=i(n(85));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})(e)}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(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 l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||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){return t&&c(e.prototype,t),n&&c(e,n),e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y="HH:mm:ss",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)}(n,e);var t=p(n);function n(e,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(i=t.call(this,e,r,o)).component.inputMask=i.getInputMaskFromFormat(i.component.format),i.component.inputType=i.component.inputType||"time",i.rawData=i.component.multiple?[]:i.emptyValue,i}return f(n,null,[{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:"time",label:"Time",key:"time",inputType:"time",format:"HH:mm",dataFormat:y}].concat(t))}}]),f(n,[{key:"init",value:function(){l(m(n.prototype),"init",this).call(this),"text"===this.component.inputType&&this.validators.push("time")}},{key:"isNotCompleteInput",value:function(e){return e.includes("_")}},{key:"removeValue",value:function(e){this.rawData=Array.isArray(this.rawData)?[].concat(s(this.rawData.slice(0,e)),s(this.rawData.slice(e+1))):this.emptyValue,l(m(n.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){t&&this.setRawValue(this.getValueAsString(t),e),this.refs.input[e].value=this.getRawValue(e)}},{key:"getStringAsValue",value:function(e){return e?(0,r.default)(e,this.component.format).format(this.component.dataFormat):e}},{key:"getValueAsString",value:function(e){return(e?(0,r.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;l(m(n.prototype),"addFocusBlurEvents",this).call(this,e),this.addEventListener(e,"blur",(function(){e.value=t.getValueAsString(e.value)}))}},{key:"dataFormat",get:function(){return this.component.dataFormat||y}},{key:"defaultSchema",get:function(){return n.schema()}},{key:"defaultValue",get:function(){var e=this,t=l(m(n.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 this.rawData||this.dataValue}},{key:"inputInfo",get:function(){var e=l(m(n.prototype),"inputInfo",this);return e.attr.type=this.component.inputType,e}},{key:"skipMaskValidation",get:function(){return!0}}],[{key:"builderInfo",get:function(){return{title:"Time",icon:"clock-o",group:"advanced",documentation:"http://help.form.io/userguide/#time",weight:55,schema:n.schema()}}}]),n}(o.default);t.default=v},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(23),n(16),n(1),n(14),n(40),n(12),n(45),n(10),n(26),n(2),n(9),n(13),n(5),n(6),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(11)),o=l(n(48)),i=l(n(109)),a=l(n(64)),s=l(n(863)),u=l(n(22));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,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){p(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,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t,n){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=k(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}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 v(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),e}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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&&b(e,t)}(n,e);var t=g(n);function n(){var e;h(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).type="tree",e}return v(n,null,[{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:"Tree",key:"tree",type:"tree",clearOnHide:!0,input:!0,tree:!0,components:[]}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Tree",icon:"indent",group:"data",weight:40,schema:n.schema()}}}]),v(n,[{key:"init",value:function(){if(this.builderMode)return m(k(n.prototype),"init",this).call(this);this.components=[],this.componentOptions=d(d({},this.options),{},{parent:this,root:this.root||this}),this.setRoot(),this.viewComponentsInstantiated=!1,this._viewComponents=[]}},{key:"destroy",value:function(){m(k(n.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){return i.default.create(t,n.componentOptions,e)}));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?m(k(n.prototype),"render",this).call(this):m(k(n.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?m(k(n.prototype),"attach",this).call(this,e):(this.loadRefs(e,{root:"single"}),u.default.all([m(k(n.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(),o=u.default.resolve();return t.refs=r.default.reduce(e.children,(function(e,t){return t.hasAttribute("ref")?d(d({},e),{},p({},t.getAttribute("ref"),t)):e}),{}),t.refs.content&&(this.attachActions(t),n=this.attachComponents(t)),t.refs.childNodes&&(o=this.attachChildren(t)),u.default.all([n,o])}},{key:"attachActions",value:function(e){var t=this;this.loadRefs.call(e,e.refs.content,{addChild:"single",cancelNode:"single",editNode:"single",removeNode:"single",revertNode:"single",saveNode:"single",toggleNode:"single"}),e.refs.addChild&&this.addEventListener(e.refs.addChild,"click",(function(){t.addChild(e)})),e.refs.cancelNode&&this.addEventListener(e.refs.cancelNode,"click",(function(){t.cancelNode(e)})),e.refs.editNode&&this.addEventListener(e.refs.editNode,"click",(function(){t.editNode(e)})),e.refs.removeNode&&this.addEventListener(e.refs.removeNode,"click",(function(){t.removeNode(e)})),e.refs.revertNode&&this.addEventListener(e.refs.revertNode,"click",(function(){t.revertNode(e)})),e.refs.saveNode&&this.addEventListener(e.refs.saveNode,"click",(function(){t.saveNode(e)})),e.refs.toggleNode&&this.addEventListener(e.refs.toggleNode,"click",(function(){t.toggleNode(e)}))}},{key:"attachComponents",value:function(e){if(this.builderMode){for(var t,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return(t=m(k(n.prototype),"attachComponents",this)).call.apply(t,[this,e].concat(o))}return this.loadRefs.call(e,e.refs.content,{nodeEdit:"single"}),e.refs.nodeEdit?m(k(n.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(r.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]:{},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?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.dataValue;this.treeRoot=new s.default(null,e,{isNew:!e.data,createComponents:this.createComponents.bind(this),checkNode:this.checkNode.bind(this,this.data),removeComponents:this.removeComponents}),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,r,o){var i=this;return t.children.reduce((function(t,n){return i.checkNode(e,n,r,o)&&t}),m(k(n.prototype),"checkData",this).call(this,e,r,t.data,t.components))}},{key:"emptyValue",get:function(){return{}}},{key:"viewComponents",get:function(){return this.viewComponentsInstantiated||(this.viewComponentsInstantiated=!0,this._viewComponents=this.createComponents({})),this._viewComponents}}]),n}(a.default);t.default=_,_.prototype.hasChanged=o.default.prototype.hasChanged,_.prototype.updateValue=o.default.prototype.updateValue},function(e,t,n){"use strict";n(0),n(23),n(16),n(14),n(40),n(68),n(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(11))&&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,u=r.children,l=void 0===u?[]:u,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;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.resetData(),this.children=l.map((function(t){return new e(n,t,{checkNode:f,createComponents:d,isNew:!1,removeComponents:m})}))}var t,n,r;return t=e,(n=[{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:"addChild",value:function(){if(this.new)return null;var t=new e(this,{},{checkNode:this.checkNode,createComponents:this.createComponents,isNew:!0,removeComponents:this.removeComponents});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(){return this.changing&&(this.new?this.new=!1:(this.editing=!1,this.revertAvailable=!0),this.commitData()),this}},{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(){this.components=this.createComponents(this.data,this),this.checkNode(this)}},{key:"clearComponents",value:function(){this.removeComponents(this.components),this.components=[]}},{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}}])&&a(t.prototype,n),r&&a(t,r),e}();t.default=s},function(e,t,n){"use strict";var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,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)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(3),n(7),n(8),n(1),n(10),n(2),n(9),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;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&&s(e,t)}(l,e);var t,n,r,o=u(l);function l(){return i(this,l),o.apply(this,arguments)}return t=l,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:"https://help.form.io/userguide/form-components/#custom",weight:120,schema:l.schema()}}}],(n=[{key:"defaultSchema",get:function(){return l.schema()}}])&&a(t.prototype,n),r&&a(t,r),l}(((r=n(48))&&r.__esModule?r:{default:r}).default);t.default=f},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(12),n(10),n(2),n(9),n(13),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(85))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t,n){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||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 u(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(n,e);var t=c(n);function n(e,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(i=t.call(this,e,r,o)).validators.push("url"),i}return u(n,null,[{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:"url",label:"Url",key:"url",inputType:"url"}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Url",group:"advanced",icon:"link",documentation:"http://help.form.io/userguide/#url",weight:20,schema:n.schema()}}}]),u(n,[{key:"elementInfo",value:function(){var e=a(d(n.prototype),"elementInfo",this).call(this);return e.attr.type=this.component.mask?"password":"url",e}},{key:"defaultSchema",get:function(){return n.schema()}}]),n}(o.default);t.default=p},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(1),n(10),n(2),n(9),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(64))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,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 u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(c,e);var t,n,r,i=l(c);function c(){var e;a(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))).noField=!0,e}return t=c,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:"well",key:"well",input:!1,persistent:!1,components:[]}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Well",icon:"square-o",group:"layout",documentation:"http://help.form.io/userguide/#well",weight:60,schema:c.schema()}}}],(n=[{key:"defaultSchema",get:function(){return c.schema()}},{key:"className",get:function(){return"".concat(this.component.customClass)}},{key:"templateName",get:function(){return"well"}}])&&s(t.prototype,n),r&&s(t,r),c}(o.default);t.default=d},function(e,t,n){"use strict";n(3),n(7),n(8),n(0),n(16),n(39),n(31),n(1),n(14),n(30),n(19),n(12),n(10),n(2),n(9),n(13),n(5),n(44),n(6),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(11)),o=f(n(22)),i=f(n(41)),a=f(n(191)),s=n(18),u=n(126),l=f(n(86)),c=f(n(261));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(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 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 v(e,t,n){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=k(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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&&b(e,t)}(d,e);var t,n,a,f=g(d);function d(){var e,t,n;return m(this,d),arguments[0]instanceof HTMLElement||arguments[1]?(t=arguments[0],n=arguments[1]):n=arguments[0],n.skipInit=!0,(e=t?f.call(this,t,n):f.call(this,n)).dragDropEnabled=!1,w(e)}return t=d,(n=[{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:"builder-sidebar-".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.upload(t.refs.hiddenFileInputElement.files[0]),t.refs.hiddenFileInputElement.value=""}))),o.default.resolve()}return v(k(d.prototype),"attach",this).call(this,e).then((function(){return t.loadRefs(t.element,{iframeDropzone:"single","sidebar-container":"multiple","sidebar-loader":"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.refs["sidebar-loader"]&&this.webform.on("iframe-ready",(function(){e.refs["sidebar-loader"].remove()}),!0),this.initIframeEvents(),this.updateDropzoneDimensions(),this.initDropzoneEvents(),this.prepSidebarComponentsForDrag()}},{key:"upload",value:function(e){var t=this,n=new i.default(this.projectUrl);this.refs.dragDropText.style.display="none",this.refs.uploadProgressWrapper.style.display="inherit",n.uploadFile("url",e,e,"",(function(e){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){r.default.set(t.webform.form,"settings.pdf",{id:e.data.file,src:"".concat(e.data.filesServer).concat(e.data.path)}),t.refs.dragDropText.style.display="inherit",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 c.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){v(k(d.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(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.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,s.getElementRect)(this.webform.refs.iframeContainer);this.refs.iframeDropzone.style.height=e&&e.height?"".concat(e.height,"px"):"1000px",this.refs.iframeDropzone.style.width=e&&e.width?"".concat(e.width,"px"):"100%"}}},{key:"onDragStart",value:function(e){var 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 o=e.target.getAttribute("data-type"),i=(0,s.fastCloneDeep)(this.schemas[o]);i.key=r.default.camelCase(i.label||i.placeholder||i.type),l.default.uniquify([this.webform.component],i),this.webform._form.components.push(i),i.overlay={top:n-this.itemOffsetY+20,left:t-this.itemOffsetX,width:100,height:20},this.webform.addComponent(i,{},null,!0),this.webform.postMessage({name:"addElement",data:i}),this.emit("addComponent",i,this.webform,i.key,this.webform.component.components.length,!this.options.noNewEdit&&!i.noNewEdit),this.dropEvent=null,e.target.style.cursor="default"}}},{key:"highlightInvalidComponents",value:function(){var e=this,t=this.findRepeatablePaths();r.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)}})}))}},{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}},basic:!1,advanced:!1,layout:!1,data:!1,premium:!1,resource:!1}}},{key:"hasPDF",get:function(){return r.default.has(this.webform.form,"settings.pdf")}},{key:"projectUrl",get:function(){return this.options.projectUrl||i.default.getProjectUrl()}}])&&y(t.prototype,n),a&&y(t,a),d}(a.default);t.default=_},function(e,t,n){"use strict";var r=n(869),o=n(871);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},function(e,t,n){"use strict";var r=n(15),o=n(24),i=n(113),a=n(55),s=n(266),u=n(267),l=n(145),c=n(38),f=n(20),d=n(157),p=n(97),h=n(124);e.exports=function(e,t,n){var m=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),v=m?"set":"add",b=o[e],g=b&&b.prototype,w=b,k={},_=function(e){var t=g[e];a(g,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!c(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!c(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof b||!(y||g.forEach&&!f((function(){(new b).entries().next()})))))w=n.getConstructor(t,e,m,v),s.REQUIRED=!0;else if(i(e,!0)){var O=new w,S=O[v](y?{}:-0,1)!=O,x=f((function(){O.has(1)})),P=d((function(e){new b(e)})),j=!y&&f((function(){for(var e=new b,t=5;t--;)e[v](t,t);return!e.has(-0)}));P||((w=t((function(t,n){l(t,w,e);var r=h(new b,t,w);return null!=n&&u(n,r[v],r,m),r}))).prototype=g,g.constructor=w),(x||j)&&(_("delete"),_("has"),m&&_("get")),(j||S)&&_(v),y&&g.clear&&delete g.clear}return k[e]=w,r({global:!0,forced:w!=b},k),p(w,e),y||n.setStrong(w,e,m),w}},function(e,t,n){var r=n(20);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){"use strict";var r=n(36).f,o=n(81),i=n(256),a=n(98),s=n(145),u=n(267),l=n(153),c=n(161),f=n(32),d=n(266).fastKey,p=n(79),h=p.set,m=p.getterFor;e.exports={getConstructor:function(e,t,n,l){var c=e((function(e,r){s(e,c,t),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&u(r,e[l],e,n)})),p=m(t),y=function(e,t,n){var r,o,i=p(e),a=v(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},v=function(e,t){var n,r=p(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(c.prototype,{clear:function(){for(var e=p(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=p(this),n=v(this,e);if(n){var r=n.next,o=n.previous;delete t.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),t.first==n&&(t.first=r),t.last==n&&(t.last=o),f?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=p(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),i(c.prototype,n?{get:function(e){var t=v(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(c.prototype,"size",{get:function(){return p(this).size}}),c},setStrong:function(e,t,n){var r=t+" Iterator",o=m(t),i=m(r);l(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)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=W(n(208)),o=W(n(873)),i=W(n(884)),a=W(n(886)),s=W(n(890)),u=W(n(27)),l=W(n(892)),c=W(n(895)),f=W(n(898)),d=W(n(904)),p=W(n(908)),h=W(n(911)),m=W(n(916)),y=W(n(923)),v=W(n(928)),b=W(n(931)),g=W(n(933)),w=W(n(938)),k=W(n(942)),_=W(n(945)),O=W(n(75)),S=W(n(948)),x=W(n(952)),P=W(n(955)),j=W(n(959)),C=W(n(268)),E=W(n(964)),A=W(n(966)),M=W(n(968)),R=W(n(970)),T=W(n(974)),D=W(n(978)),L=W(n(982)),I=W(n(984)),V=W(n(986)),N=W(n(988)),F=W(n(76)),U=W(n(992)),z=W(n(995)),B=W(n(996)),H=W(n(998)),q=W(n(1001));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=u.default,r.default.container.editForm=l.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=y.default,r.default.email.editForm=v.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=S.default,r.default.panel.editForm=x.default,r.default.password.editForm=P.default,r.default.phoneNumber.editForm=j.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=L.default,r.default.tabs.editForm=I.default,r.default.tags.editForm=V.default,r.default.textarea.editForm=N.default,r.default.textfield.editForm=F.default,r.default.time.editForm=U.default,r.default.tree.editForm=z.default,r.default.unknown.editForm=B.default,r.default.url.editForm=H.default,r.default.well.editForm=q.default;var Y=r.default;t.default=Y},function(e,t,n){"use strict";n(0),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},{label:"Provider",key:"provider",weight:15,components:a.default}]].concat(t))};var r=s(n(27)),o=s(n(881)),i=s(n(882)),a=s(n(883));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(73))&&r.__esModule?r:{default:r},i=n(18);var a=[{type:"panel",title:"Simple",key:"simple-conditional",theme:"default",components:[{type:"select",input:!0,label:"This component should Display:",key:"conditional.show",dataSrc:"values",data:{values:[{label:"True",value:"true"},{label:"False",value:"false"}]}},{type:"select",input:!0,label:"When the form component:",key:"conditional.when",dataSrc:"custom",valueProperty:"value",data:{custom:function(e){return(0,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},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(73))&&r.__esModule?r:{default:r};var 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},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},function(e,t,n){"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."}},{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}}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;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}},{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}},{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){return e.instance.options.editComponent.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}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(18),o=[{weight:0,input:!0,label:"Advanced Logic",key:"logic",templates:{header:'<div class="row"> \n <div class="col-sm-6">\n <strong>{{ value.length }} 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 <div class="btn btn-default editRow">Edit</div> \n <div class="btn btn-danger removeRow">Delete</div> \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,r.getContextComponents)(e)}}},{type:"textfield",input:!0,label:"Has the value:",key:"eq",tableView:!1}]},{weight:10,type:"textarea",key:"javascript",rows:5,editor:"ace",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 }} 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 <div class="btn btn-default editRow">Edit</div> \n <div class="btn btn-danger removeRow">Delete</div> \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"}]},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}},{weight:20,input:!0,label:"Value (Javascript)",key:"value",editor:"ace",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",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}}]}]}]}];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(73)),o=i(n(105));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},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,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}]}];t.default=a},function(e,t,n){"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:"Custom styles that should be applied to this component when rendered in PDF."},{type:"textfield",input:!0,key:"overlay.page",label:"Page",placeholder:"",tooltip:"The PDF page to place this component."},{type:"textfield",input:!0,key:"overlay.left",label:"Left",placeholder:"",tooltip:"The left margin within a page to place this component."},{type:"textfield",input:!0,key:"overlay.top",label:"Top",placeholder:"",tooltip:"The top margin within a page to place this component."},{type:"textfield",input:!0,key:"overlay.width",label:"Width",placeholder:"",tooltip:"The width of the component (in pixels)."},{type:"textfield",input:!0,key:"overlay.height",label:"Height",placeholder:"",tooltip:"The height of the component (in pixels)."}]}]},function(e,t,n){"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:{}}:{}}}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=[{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 Matual Mode Label",placeholder:"Switch To Matual 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=r},function(e,t,n){"use strict";n(1),n(14),n(19),n(2),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(11)),o=i(n(41));function i(e){return e&&e.__esModule?e:{default:e}}var 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 r.default.values(o.default.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:"textfield",input:!0,key:"providerOptions.params.region",label:"Region",placeholder:"Enter Region",weight:20,tooltip:"Specify Region for Google Maps APIs.",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},function(e,t,n){"use strict";n(0),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",ignore:!0},{key:"validation",ignore:!0}]].concat(t))};var r=i(n(27)),o=i(n(885));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(86)),o=i(n(11));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"]}}},{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:"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:"Extra Small",value:"xs"},{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},function(e,t,n){"use strict";n(0),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:"validation",components:a.default}]].concat(t))};var r=s(n(27)),o=s(n(887)),i=s(n(888)),a=s(n(889));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{key:"multiple",ignore:!0}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(86)),o=i(n(11));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},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{key:"validateOn",ignore:!0},{key:"unique",ignore:!0}]},function(e,t,n){"use strict";n(0),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}]].concat(t))};var r=i(n(75)),o=i(n(891));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"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:"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},{weight:161,type:"checkbox",label:"Hide Column when Children Hidden",key:"hideOnChildrenHidden",tooltip:"Check this if you would like to hide any column when the children within that column are also hidden",input:!0}]},function(e,t,n){"use strict";n(0),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}]].concat(t))};var r=a(n(27)),o=a(n(893)),i=a(n(894));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"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}]},function(e,t,n){"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}]},function(e,t,n){"use strict";n(0),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.apply(void 0,[[{key:"display",components:o.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"logic",components:i.default}]].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};var r=a(n(27)),o=a(n(896)),i=a(n(897));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"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}]},function(e,t,n){"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}}]}]}]}]},function(e,t,n){"use strict";n(0),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}]}]].concat(t))};var r=a(n(76)),o=a(n(902)),i=a(n(903));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"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"}]}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(144)),o=i(n(11));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: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.",key:"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},function(e,t,n){"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}]},function(e,t,n){"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)."}]},function(e,t,n){"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"},{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"},{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"}]}}]},function(e,t,n){"use strict";n(0),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:i.default},{key:"data",components:o.default},{key:"validation",components:a.default}]].concat(t))};var r=s(n(27)),o=s(n(905)),i=s(n(906)),a=s(n(907));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{key:"multiple",ignore:!0}]},function(e,t,n){"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:"js",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:"Default Open Rows",key:"defaultOpen",tooltip:"Check this if you would like for the rows of the edit grid to be defaulted to opened if values exist.",weight:420,input:!0},{type:"checkbox",label:"Equal column width",key:"layoutFixed",weight:430,input:!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}]},function(e,t,n){"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:"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}]},function(e,t,n){"use strict";n(0),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:i.default},{key:"data",components:o.default}]].concat(t))};var r=a(n(27)),o=a(n(909)),i=a(n(910));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0}]},function(e,t,n){"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:"Check if you would like to show the Key before the Value column.",weight:406,input:!0},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:function(e){return!e.data.disableAddingRemovingRows}}]},function(e,t,n){"use strict";n(0),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: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}]].concat(t))};var r=u(n(27)),o=u(n(912)),i=u(n(913)),a=u(n(914)),s=u(n(915));function u(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"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:{}}]},function(e,t,n){"use strict";n(50),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(105));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:"checkbox",input:!0,key:"enableMinDateInput",label:"Use Input to add moment.js for minDate",persistent:!1,weight:0,tooltip:"Enables to use input for moment functions instead of calendar."},{type:"datetime",input:!0,key:"datePicker.minDate",label:"Use calendar to set minDate",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",label:"Minimum Date",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},weight:10},{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:"textfield",input:!0,enableTime:!1,key:"datePicker.maxDate",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}},{type:"datetime",input:!0,key:"datePicker.maxDate",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:"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",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},components:[o(n(73)).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},function(e,t,n){"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}]},function(e,t,n){"use strict";Object.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}]},function(e,t,n){"use strict";n(0),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: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:u.default},{key:"year",label:"Year",weight:3,components:l.default}]].concat(t))};var r=c(n(27)),o=c(n(917)),i=c(n(918)),a=c(n(919)),s=c(n(920)),u=c(n(921)),l=c(n(922));function c(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{key:"multiple",ignore:!0}]},function(e,t,n){"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}]},function(e,t,n){"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}]},function(e,t,n){"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}]},function(e,t,n){"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}]},function(e,t,n){"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}]},function(e,t,n){"use strict";n(0),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,[[{label:"Templates",key:"templates",weight:5,components:a.default},{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:s.default}]].concat(t))};var r=u(n(27)),o=u(n(924)),i=u(n(925)),a=u(n(926)),s=u(n(927));function u(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"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}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{key:"placeholder",ignore:!0},{type:"checkbox",label:"Open First Row when Empty",key:"openWhenEmpty",tooltip:"Check this if you would like to open up the first row when the EditGrid is empty",weight:1e3,input:!0,conditional:{json:{"!==":[{var:"data.modal"},!0]}}},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:1001,input:!0,clearOnHide:!1,calculateValue:"value = data.disableAddingRemovingRows;"},{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:"js",wysiwyg:{minLines:3}}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(105))&&r.__esModule?r:{default:r};var i=[{type:"textarea",label:"Header Template",key:"templates.header",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 header of the Edit grid.',customConditional:function(){return!o.default.noeval}},{type:"textarea",label:"Row Template",key:"templates.row",rows:5,editor:"ace",as:"handlebars",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(){return!o.default.noeval}},{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}},{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},function(e,t,n){"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},{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."}]},function(e,t,n){"use strict";n(0),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}]].concat(t))};var r=a(n(76)),o=a(n(929)),i=a(n(930));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"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}]},function(e,t,n){"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"}]}]},function(e,t,n){"use strict";n(0),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}]].concat(t))};var r=i(n(75)),o=i(n(932));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"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."}]},function(e,t,n){"use strict";n(0),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:i.default},{key:"data",components:o.default},{label:"File",key:"file",weight:5,components:a.default},{key:"validation",components:s.default}]].concat(t))};var r=u(n(27)),o=u(n(934)),i=u(n(935)),a=u(n(936)),s=u(n(937));function u(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{key:"defaultValue",ignore:!0}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{key:"placeholder",ignore:!0}]},function(e,t,n){"use strict";n(14),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(41)),o=i(n(11));function i(e){return e&&e.__esModule?e:{default:e}}var 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 o.default.map(r.default.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},{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:".pdf,.jpg",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},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{key:"unique",ignore:!0},{key:"validateOn",ignore:!0}]},function(e,t,n){"use strict";n(0),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}]].concat(t))};var r=s(n(75)),o=s(n(939)),i=s(n(940)),a=s(n(941));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{key:"hideLabel",ignore:!0},{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabIndex",ignore:!0},{key:"autofocus",ignore:!0}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{type:"select",input:!0,dataSrc:"url",data:{url:"/form?limit=4294967295&select=_id,title"},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}},{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: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."}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(73))&&r.__esModule?r:{default:r};var 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>')];t.default=i},function(e,t,n){"use strict";n(0),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",ignore:!0},{key:"conditional",ignore:!0}]].concat(t))};var r=a(n(27)),o=a(n(943)),i=a(n(944));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"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}]},function(e,t,n){"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}]},function(e,t,n){"use strict";n(0),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",ignore:!0},{key:"validation",ignore:!0},{key:"logic",components:i.default}]].concat(t))};var r=a(n(27)),o=a(n(946)),i=a(n(947));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"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",key:"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}]},function(e,t,n){"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}}]}]}]}]},function(e,t,n){"use strict";n(0),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}]].concat(t))};var r=s(n(76)),o=s(n(949)),i=s(n(950)),a=s(n(951));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"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}]},function(e,t,n){"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}]},function(e,t,n){"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}]},function(e,t,n){"use strict";n(0),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}]].concat(t))};var r=a(n(75)),o=a(n(953)),i=a(n(954));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"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:"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"]}}},{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}}],customConditional:function(e){return"wizard"===e.instance.options.editForm.display}},{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]}}}]},function(e,t,n){"use strict";var r;function o(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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(3),n(23),n(16),n(12),n(45),n(26),n(17),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=[i(i({},((r=n(73))&&r.__esModule?r:{default: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){return"wizard"===e.instance.options.editForm.display}})];t.default=s},function(e,t,n){"use strict";n(0),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:i.default},{key:"display",components:o.default},{key:"validation",components:a.default}]].concat(t))};var r=s(n(76)),o=s(n(956)),i=s(n(957)),a=s(n(958));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0}]},function(e,t,n){"use strict";Object.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."}]},function(e,t,n){"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}]},function(e,t,n){"use strict";n(0),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}]].concat(t))};var r=i(n(76)),o=i(n(960));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.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}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(86)),o=i(n(11));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:{_camelCase:[{var:"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"},{label:"String",value:"string"},{label:"Number",value:"number"},{label:"Boolean",value:"boolean"},{label:"Object",value:"object"}]}}];t.default=a},function(e,t,n){"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}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{key:"validateOn",ignore:!0},{key:"unique",ignore:!0}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,r.default)([{key:"display",components:o.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"conditional",ignore:!0},{key:"logic",ignore:!0}])};var r=i(n(27)),o=i(n(965));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{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},{key:"buttonKey",label:"Button Key",tooltip:"Specify key of button on this form that this reCAPTCHA should react to",type:"textfield",customConditional:function(e){return"buttonClick"===e.data.eventType},weight:660},{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}]},function(e,t,n){"use strict";n(0),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}]].concat(t))};var r=i(n(27)),o=i(n(967));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"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"},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"}}]}}}]},function(e,t,n){"use strict";n(0),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}]].concat(t))};var r=i(n(268)),o=i(n(969));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.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}]},function(e,t,n){"use strict";n(0),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:i.default},{key:"data",components:o.default},{key:"validation",components:a.default}]].concat(t))};var r=s(n(27)),o=s(n(971)),i=s(n(972)),a=s(n(973));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";n(240),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(18),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"},{label:"IndexedDB",value:"indexeddb"}]}},{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 raw JSON array to use as a data source.",conditional:{json:{"===":[{var:"data.dataSrc"},"json"]}}},{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:{in:[{var:"data.dataSrc"},["resource","url"]]}}},{type:"datagrid",input:!0,label:"Request Headers",key:"data.headers",tooltip:"Set any headers that should be sent along with the request to the url. This is useful for authentication.",weight:11,components:[{label:"Key",key:"key",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}],conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"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:{_camelCase:[{var:"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:!1,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.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:"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,defaultValue:100,description:"Maximum number of items to view per page of results.",tooltip:"Use this to limit the number of items to request or view.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"textarea",input:!0,key:"data.custom",label:"Custom Values",editor:"ace",rows:10,weight:14,placeholder:"values = data['mykey'];",tooltip:"Write custom code to return the 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"]]}}},{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"]]}}},{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:"Check 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:{}}];t.default=o},function(e,t,n){"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}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{weight:50,type:"checkbox",label:"Perform server validation",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"}}}]},function(e,t,n){"use strict";n(0),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:i.default},{key:"data",components:o.default},{key:"validation",components:a.default}]].concat(t))};var r=s(n(27)),o=s(n(975)),i=s(n(976)),a=s(n(977));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"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}]},function(e,t,n){"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",weight:50},{type:"textfield",input:!0,key:"height",label:"Height",tooltip:"The height of the signature area.",placeholder:"Height",weight:51},{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}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{key:"unique",ignore:!0},{key:"validateOn",ignore:!0}]},function(e,t,n){"use strict";n(0),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:i.default},{key:"data",components:o.default},{key:"validation",components:a.default}]].concat(t))};var r=s(n(27)),o=s(n(979)),i=s(n(980)),a=s(n(981));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"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"}]}}]},{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"}]}}]}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{key:"placeholder",ignore:!0}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{key:"validateOn",ignore:!0}]},function(e,t,n){"use strict";n(0),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}]].concat(t))};var r=i(n(75)),o=i(n(983));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"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:"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}]},function(e,t,n){"use strict";n(0),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}]].concat(t))};var r=i(n(75)),o=i(n(985));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"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:"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"}]}}]}]},function(e,t,n){"use strict";n(0),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}]].concat(t))};var r=i(n(27)),o=i(n(987));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"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"}]}}]},function(e,t,n){"use strict";n(0),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:a.default},{key:"layout",components:i.default}]].concat(t))};var r=s(n(76)),o=s(n(989)),i=s(n(990)),a=s(n(991));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";n(14),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(11)),o=i(n(41));function i(e){return e&&e.__esModule?e:{default:e}}var 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"]}]}}},{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 r.default.map(o.default.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:"String",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},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{key:"overlay",components:[{type:"checkbox",input:!0,key:"fixedSize",label:"Fixed size",defaultValue:!0,tooltip:"This will fixed the set sizes of the component in PDF form.",weight:415,conditional:{json:{"==":[{var:"data.editor"},""]}}}]}]},function(e,t,n){"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}]},function(e,t,n){"use strict";n(0),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}]].concat(t))};var r=a(n(27)),o=a(n(993)),i=a(n(994));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"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}]},function(e,t,n){"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"}]}},{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}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return o.default.apply(void 0,arguments)};var r,o=(r=n(27))&&r.__esModule?r:{default:r}},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(997))&&r.__esModule?r:{default:r}},function(e,t,n){"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."}]},function(e,t,n){"use strict";n(0),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}]].concat(t))};var r=a(n(76)),o=a(n(999)),i=a(n(1e3));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"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}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{key:"case",ignore:!0}]},function(e,t,n){"use strict";n(0),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}]].concat(t))};var r=i(n(75)),o=i(n(1002));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"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:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0}]},function(e,t,n){"use strict";n(3),n(7),n(8),n(23),n(108),n(16),n(31),n(50),n(1),n(14),n(66),n(12),n(10),n(2),n(9),n(13),n(5),n(44),n(6),n(17),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(191)),o=s(n(110)),i=s(n(86)),a=s(n(11));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(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,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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)}(u,e);var t,n,r,s=p(u);function u(){var e,t,n;l(this,u),arguments[0]instanceof HTMLElement||arguments[1]?(t=arguments[0],n=arguments[1]):n=arguments[0],n.skipInit=!1,(e=s.call(this,t,n))._form={components:[e.getPageConfig(1)]},e.page=0,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 r=e.options.hooks.renderComponents;e.options.hooks.renderComponents=function(e,t){var n=t.components,o=t.self;return"form"!==o.type||o.root?r(e,{components:n,self:o}):e};var o=e.options.hooks.attachComponents;return e.options.hooks.attachComponents=function(e,t,n,r){return"form"!==r.type||r.root?o(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=u,(n=[{key:"allowDrop",value:function(e){return!this.webform||!this.webform.refs||this.webform.refs.webform!==e}},{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:"builder-sidebar-".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)}))})),f(m(u.prototype),"attach",this).call(this,e)}},{key:"rebuild",value:function(){var e=this.currentPage;return this.webform.form={display:"form",type:"form",components:e?[e]:[]},this.redraw()}},{key:"addPage",value:function(){var e=this.pages.length+1,t=this.getPageConfig(e);return i.default.uniquify(this._form.components,t),this._form.components.push(t),this.emit("saveComponent",t,this._form.components),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 u))return f(m(u.prototype),"pasteComponent",this).call(this,e)}},{key:"pages",get:function(){return a.default.filter(this._form.components,{type:"panel"})}},{key:"currentPage",get:function(){var e=this.pages;return e&&e.length>=this.page?e[this.page]:null}},{key:"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()},get:function(){return this._form}},{key:"schema",get:function(){a.default.assign(this.currentPage,this.webform._form.components[0]);var e=new o.default(this.options);return e.setForm(this._form,{noEmit:!0}),e.schema}}])&&c(t.prototype,n),r&&c(t,r),u}(r.default);t.default=y},function(e,t,n){"use strict";n(3),n(7),n(8),n(1),n(61),n(10),n(2),n(9),n(5),n(6),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(41)),o=i(n(1005));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return(a=f()?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}).apply(null,arguments)}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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 l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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,i,a,s,p=(t=h,n=f(),function(){var e,r=d(t);if(n){var o=d(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return c(this,e)});function h(e,t,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),t=t||{},n=n||{},p.call(this,e,t,Object.assign(n,h.options,r.default.options&&r.default.options.builder?r.default.options.builder:{}))}return i=h,(a=[{key:"create",value:function(e){return o.default.builders[e]?new o.default.builders[e](this.element,this.options):new o.default.builders.webform(this.element,this.options)}}])&&u(i.prototype,a),s&&u(i,s),h}(i(n(146)).default);t.default=p,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(p,"options",{}),r.default.builder=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a(p,t).ready},r.default.FormBuilder=p},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(265))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";n.r(t),n.d(t,"v1",(function(){return m})),n.d(t,"v3",(function(){return x})),n.d(t,"v4",(function(){return P})),n.d(t,"v5",(function(){return E})),n.d(t,"NIL",(function(){return A})),n.d(t,"version",(function(){return M})),n.d(t,"validate",(function(){return s})),n.d(t,"stringify",(function(){return d})),n.d(t,"parse",(function(){return y}));var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),o=new Uint8Array(16);function i(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}var 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;for(var s=function(e){return"string"==typeof e&&a.test(e)},u=[],l=0;l<256;++l)u.push((l+256).toString(16).substr(1));var c,f,d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n},p=0,h=0;var m=function(e,t,n){var r=t&&n||0,o=t||new Array(16),a=(e=e||{}).node||c,s=void 0!==e.clockseq?e.clockseq:f;if(null==a||null==s){var u=e.random||(e.rng||i)();null==a&&(a=c=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=f=16383&(u[6]<<8|u[7]))}var l=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:h+1,y=l-p+(m-h)/1e4;if(y<0&&void 0===e.clockseq&&(s=s+1&16383),(y<0||l>p)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=l,h=m,f=s;var v=(1e4*(268435455&(l+=122192928e5))+m)%4294967296;o[r++]=v>>>24&255,o[r++]=v>>>16&255,o[r++]=v>>>8&255,o[r++]=255&v;var b=l/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||d(o)};var y=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};var v=function(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=y(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 d(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 S(e,t,n,r,o,i,a){return w(n^(t|~r),e,t,o,i,a)}var x=v("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=0;r<n;r+=8){var o=e[r>>5]>>>r%32&255,i=parseInt("0123456789abcdef".charAt(o>>>4&15)+"0123456789abcdef".charAt(15&o),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[b(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var s=n,u=r,l=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),r=k(r,o,i,n,e[a+15],22,1236535329),n=_(n,r,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),r=_(r,o,i,n,e[a+12],20,-1926607734),n=O(n,r,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),r=O(r,o,i,n,e[a+2],23,-995338651),n=S(n,r,o,i,e[a],6,-198630844),i=S(i,n,r,o,e[a+7],10,1126891415),o=S(o,i,n,r,e[a+14],15,-1416354905),r=S(r,o,i,n,e[a+5],21,-57434055),n=S(n,r,o,i,e[a+12],6,1700485571),i=S(i,n,r,o,e[a+3],10,-1894986606),o=S(o,i,n,r,e[a+10],15,-1051523),r=S(r,o,i,n,e[a+1],21,-2054922799),n=S(n,r,o,i,e[a+8],6,1873313359),i=S(i,n,r,o,e[a+15],10,-30611744),o=S(o,i,n,r,e[a+6],15,-1560198380),r=S(r,o,i,n,e[a+13],21,1309151649),n=S(n,r,o,i,e[a+4],6,-145523070),i=S(i,n,r,o,e[a+11],10,-1120210379),o=S(o,i,n,r,e[a+2],15,718787259),r=S(r,o,i,n,e[a+9],21,-343485551),n=g(n,s),r=g(r,u),o=g(o,l),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))}));var P=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 d(r)};function j(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function C(e,t){return e<<t|e>>>32-t}var E=v("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),u=0;u<a;++u){for(var l=new Uint32Array(16),c=0;c<16;++c)l[c]=e[64*u+4*c]<<24|e[64*u+4*c+1]<<16|e[64*u+4*c+2]<<8|e[64*u+4*c+3];s[u]=l}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],y=n[1],v=n[2],b=n[3],g=n[4],w=0;w<80;++w){var k=Math.floor(w/20),_=C(m,5)+j(k,y,v,b)+g+t[k]+d[w]>>>0;g=b,b=v,v=C(y,30)>>>0,y=m,m=_}n[0]=n[0]+m>>>0,n[1]=n[1]+y>>>0,n[2]=n[2]+v>>>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]>>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";var M=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},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,u=/Android/i,l=/(?: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,y=/\b(CriOS|Chrome)(?:.+)Mobile/i,v=/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(l),tablet:!w(l)&&w(c),device:w(l)||w(c)},android:{phone:!w(f)&&w(l)||!w(f)&&w(s),tablet:!w(f)&&!w(l)&&!w(s)&&(w(c)||w(u)),device:!w(f)&&(w(l)||w(c)||w(s)||w(u))||w(/\bokhttp\b/i)},windows:{phone:w(f),tablet:w(d),device:w(f)||w(d)},other:{blackberry:w(p),blackberry10:w(h),opera:w(m),firefox:w(v),chrome:w(y),device:w(p)||w(h)||w(m)||w(v)||w(y)},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}}]).Formio}));