!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.FormioCustom=t():e.FormioCustom=t()}(window,function(){return n=[function(e,t,n){"use strict";var r=n(15),o=n(12),u=n(146),c=n(35),f=n(46),d=n(49),p=n(250),h=n(106),m=n(184),i=n(124),a=n(30),n=n(102),y=a("isConcatSpreadable"),a=51<=n||!o(function(){var e=[];return e[y]=!1,e.concat()[0]!==e}),n=i("concat");r({target:"Array",proto:!0,arity:1,forced:!a||!n},{concat:function(e){for(var t,n,r,o=f(this),i=m(o,0),a=0,l=-1,s=arguments.length;l<s;l++)if(function(e){if(!c(e))return!1;var t=e[y];return void 0!==t?!!t:u(e)}(r=-1===l?o:arguments[l]))for(n=d(r),p(a+n),t=0;t<n;t++,a++)t in r&&h(i,a,r[t]);else p(a+1),h(i,a++,r);return i.length=a,i}})},function(e,t,n){var r=n(183),o=n(48),n=n(366);r||o(Object.prototype,"toString",n,{unsafe:!0})},function(e,t,n){n(354),n(358),n(359),n(360),n(361)},function(e,t,n){"use strict";var r=n(56),o=n(147),i=n(123),a=n(59),l=n(38).f,s=n(185),u=n(63),n=n(34),c="Array Iterator",f=a.set,d=a.getterFor(c),a=(e.exports=s(Array,"Array",function(e,t){f(this,{type:c,target:r(e),index:0,kind:t})},function(){var e=d(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=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);if(o("keys"),o("values"),o("entries"),!u&&n&&"values"!==a.name)try{l(a,"name",{value:"values"})}catch(e){}},function(e,t,n){function r(t,e){if(t){if(t[c]!==d)try{u(t,c,d)}catch(e){t[c]=d}if(t[f]||u(t,f,e),a[e])for(var n in s)if(t[n]!==s[n])try{u(t,n,s[n])}catch(e){t[n]=s[n]}}}var o,i=n(21),a=n(247),l=n(248),s=n(3),u=n(72),n=n(30),c=n("iterator"),f=n("toStringTag"),d=s.values;for(o in a)r(i[o]&&i[o].prototype,o);r(l,"DOMTokenList")},function(e,t,n){"use strict";var r=n(246).charAt,o=n(47),i=n(59),n=n(185),a="String Iterator",l=i.set,s=i.getterFor(a);n(String,"String",function(e){l(this,{type:a,string:o(e),index:0})},function(){var e=s(this),t=e.string,n=e.index;return n>=t.length?{value:void 0,done:!0}:(t=r(t,n),e.index+=t.length,{value:t,done:!1})})},function(e,t,n){"use strict";var r,o,i,a,l,s,u,c=n(15),f=n(34),d=n(21),p=n(17),h=n(37),m=n(29),y=n(71),v=n(47),b=n(38).f,n=n(234),g=d.Symbol,w=g&&g.prototype;!f||!m(g)||"description"in w&&void 0===g().description||(r={},n(d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:v(arguments[0]),t=y(w,this)?new g(e):void 0===e?g():g(e);return""===e&&(r[t]=!0),t},g),(d.prototype=w).constructor=d,o="Symbol(test)"==String(g("test")),i=p(w.toString),a=p(w.valueOf),l=/^Symbol\((.*)\)[^)]+$/,s=p("".replace),u=p("".slice),b(w,"description",{configurable:!0,get:function(){var e=a(this),t=i(e);if(h(r,e))return"";e=o?u(t,7,-1):s(t,l,"$1");return""===e?void 0:e}}),c({global:!0,constructor:!0,forced:!0},{Symbol:d}))},function(e,t,n){n(243)("iterator")},function(e,t,n){var r=n(15),o=n(57),i=n(81),a=n(353),l=n(182),s=n(41),u=n(35),c=n(82),n=n(12),f=o("Reflect","construct"),d=Object.prototype,p=[].push,h=n(function(){function e(){}return!(f(function(){},[],e)instanceof e)}),m=!n(function(){f(function(){})}),o=h||m;r({target:"Reflect",stat:!0,forced:o,sham:o},{construct:function(e,t){l(e),s(t);var n=arguments.length<3?e:l(arguments[2]);if(m&&!h)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 i(p,r,t),new(i(a,e,r))}r=n.prototype,n=c(u(r)?r:d),r=i(e,n,t);return u(r)?r:n}})},function(e,t,n){var r=n(15),o=n(12),i=n(46),a=n(91),n=n(240);r({target:"Object",stat:!0,forced:o(function(){a(1)}),sham:!n},{getPrototypeOf:function(e){return a(i(e))}})},function(e,M,T){!function(C,R){var A;
/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */!function(){var zi,Bi="Expected a function",ba="__lodash_hash_undefined__",ga="__lodash_placeholder__",Hi=128,qi=9007199254740991,wa=NaN,Wi=4294967295,ka=[["ary",Hi],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],Ki="[object Arguments]",_a="[object Array]",Yi="[object Boolean]",Gi="[object Date]",Oa="[object Error]",Sa="[object Function]",Pa="[object GeneratorFunction]",$i="[object Map]",Ji="[object Number]",Qi="[object Object]",Ea="[object Promise]",Zi="[object RegExp]",Xi="[object Set]",ea="[object String]",xa="[object Symbol]",ta="[object WeakMap]",na="[object ArrayBuffer]",ra="[object DataView]",ja="[object Float32Array]",Ca="[object Float64Array]",Ra="[object Int8Array]",Aa="[object Int16Array]",Ma="[object Int32Array]",Ta="[object Uint8Array]",Da="[object Uint8ClampedArray]",Ia="[object Uint16Array]",La="[object Uint32Array]",Va=/\b__p \+= '';/g,Na=/\b(__p \+=) '' \+/g,Fa=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ua=/&(?:amp|lt|gt|quot|#39);/g,za=/[&<>"']/g,Ba=RegExp(Ua.source),Ha=RegExp(za.source),qa=/<%-([\s\S]+?)%>/g,Wa=/<%([\s\S]+?)%>/g,Ka=/<%=([\s\S]+?)%>/g,Ya=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ga=/^\w*$/,$a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ja=/[\\^$.*+?()[\]{}|]/g,Qa=RegExp(Ja.source),Za=/^\s+/,i=/\s/,Xa=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,el=/\{\n\/\* \[wrapped with (.+)\] \*/,tl=/,? & /,nl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,rl=/[()=,{}\[\]\/\s]/,ol=/\\(\\)?/g,il=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,al=/\w*$/,ll=/^[-+]0x[0-9a-f]+$/i,sl=/^0b[01]+$/i,ul=/^\[object .+?Constructor\]$/,cl=/^0o[0-7]+$/i,fl=/^(?:0|[1-9]\d*)$/,dl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,pl=/($^)/,hl=/['\n\r\u2028\u2029\\]/g,a="\\ud800-\\udfff",l="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",e="\\u2700-\\u27bf",t="a-z\\xdf-\\xf6\\xf8-\\xff",n="A-Z\\xc0-\\xd6\\xd8-\\xde",s="\\ufe0e\\ufe0f",r="\\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",u="['’]",o="["+a+"]",c="["+r+"]",f="["+l+"]",d="["+e+"]",p="["+t+"]",r="[^"+a+r+"\\d+"+e+t+n+"]",e="\\ud83c[\\udffb-\\udfff]",t="[^"+a+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",n="["+n+"]",y="\\u200d",v="(?:"+p+"|"+r+")",r="(?:"+n+"|"+r+")",b="(?:['’](?:d|ll|m|re|s|t|ve))?",g="(?:['’](?:D|LL|M|RE|S|T|VE))?",w="(?:"+f+"|"+e+")"+"?",k="["+s+"]?",k=k+w+("(?:"+y+"(?:"+[t,h,m].join("|")+")"+k+w+")*"),w="(?:"+[d,h,m].join("|")+")"+k,d="(?:"+[t+f+"?",f,h,m,o].join("|")+")",ml=RegExp(u,"g"),yl=RegExp(f,"g"),_=RegExp(e+"(?="+e+")|"+d+k,"g"),vl=RegExp([n+"?"+p+"+"+b+"(?="+[c,n,"$"].join("|")+")",r+"+"+g+"(?="+[c,n+v,"$"].join("|")+")",n+"?"+v+"+"+b,n+"+"+g,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",w].join("|"),"g"),O=RegExp("["+y+a+l+s+"]"),bl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gl=["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"],wl=-1,oa={},ia=(oa[ja]=oa[Ca]=oa[Ra]=oa[Aa]=oa[Ma]=oa[Ta]=oa[Da]=oa[Ia]=oa[La]=!0,oa[Ki]=oa[_a]=oa[na]=oa[Yi]=oa[ra]=oa[Gi]=oa[Oa]=oa[Sa]=oa[$i]=oa[Ji]=oa[Qi]=oa[Zi]=oa[Xi]=oa[ea]=oa[ta]=!1,{}),S=(ia[Ki]=ia[_a]=ia[na]=ia[ra]=ia[Yi]=ia[Gi]=ia[ja]=ia[Ca]=ia[Ra]=ia[Aa]=ia[Ma]=ia[$i]=ia[Ji]=ia[Qi]=ia[Zi]=ia[Xi]=ia[ea]=ia[xa]=ia[Ta]=ia[Da]=ia[Ia]=ia[La]=!0,ia[Oa]=ia[Sa]=ia[ta]=!1,{"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"}),kl=parseFloat,_l=parseInt,t="object"==typeof C&&C&&C.Object===Object&&C,h="object"==typeof self&&self&&self.Object===Object&&self,aa=t||h||Function("return this")(),m=M&&!M.nodeType&&M,P=m&&"object"==typeof R&&R&&!R.nodeType&&R,Ol=P&&P.exports===m,E=Ol&&t.process,o=function(){try{var e=P&&P.require&&P.require("util").types;return e?e:E&&E.binding&&E.binding("util")}catch(e){}}(),Sl=o&&o.isArrayBuffer,Pl=o&&o.isDate,El=o&&o.isMap,xl=o&&o.isRegExp,jl=o&&o.isSet,Cl=o&&o.isTypedArray;function la(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 Rl(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 sa(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Al(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ml(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 ua(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 Tl(e,t){return!!(null==e?0:e.length)&&-1<da(e,t,0)}function Dl(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 ca(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 fa(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Il(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 Ll(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 Vl(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 x=Hl("length");function Nl(e,r,t){var o;return t(e,function(e,t,n){if(r(e,t,n))return o=t,!1}),o}function Fl(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 da(e,t,n){if(t!=t)return Fl(e,zl,n);for(var r=e,o=t,i=n-1,a=r.length;++i<a;)if(r[i]===o)return i;return-1}function Ul(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function zl(e){return e!=e}function Bl(e,t){var n=null==e?0:e.length;return n?Wl(e,t)/n:wa}function Hl(t){return function(e){return null==e?zi:e[t]}}function j(t){return function(e){return null==t?zi:t[e]}}function ql(e,r,o,i,t){return t(e,function(e,t,n){o=i?(i=!1,e):r(o,e,t,n)}),o}function Wl(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);i!==zi&&(n=n===zi?i:n+i)}return n}function Kl(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Yl(e){return e&&e.slice(0,os(e)+1).replace(Za,"")}function pa(t){return function(e){return t(e)}}function Gl(t,e){return ca(e,function(e){return t[e]})}function $l(e,t){return e.has(t)}function Jl(e,t){for(var n=-1,r=e.length;++n<r&&-1<da(t,e[n],0););return n}function Ql(e,t){for(var n=e.length;n--&&-1<da(t,e[n],0););return n}var Zl=j({"À":"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","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),Xl=j({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function es(e){return"\\"+S[e]}function ha(e){return O.test(e)}function ts(e){var n=-1,r=Array(e.size);return e.forEach(function(e,t){r[++n]=[t,e]}),r}function ns(t,n){return function(e){return t(n(e))}}function ma(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==ga||(e[n]=ga,i[o++]=n)}return i}function rs(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function ya(e){return(ha(e)?function(e){var t=_.lastIndex=0;for(;_.test(e);)++t;return t}:x)(e)}function va(e){return ha(e)?e.match(_)||[]:e.split("")}function os(e){for(var t=e.length;t--&&i.test(e.charAt(t)););return t}var is=j({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var as=function o(e){var _=(e=null==e?aa:as.defaults(aa.Object(),e,as.pick(aa,gl))).Array,i=e.Date,M=e.Error,T=e.Function,D=e.Math,m=e.Object,I=e.RegExp,B=e.String,O=e.TypeError,H=_.prototype,q=T.prototype,W=m.prototype,K=e["__core-js_shared__"],Y=q.toString,L=W.hasOwnProperty,G=0,$=(q=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"",J=W.toString,Q=Y.call(m),Z=aa._,X=I("^"+Y.call(L).replace(Ja,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=Ol?e.Buffer:zi,t=e.Symbol,ee=e.Uint8Array,te=q?q.allocUnsafe:zi,ne=ns(m.getPrototypeOf,m),re=m.create,oe=W.propertyIsEnumerable,ie=H.splice,ae=t?t.isConcatSpreadable:zi,le=t?t.iterator:zi,se=t?t.toStringTag:zi,ue=function(){try{var e=Zn(m,"defineProperty");return e({},"",{}),e}catch(e){}}(),ce=e.clearTimeout!==aa.clearTimeout&&e.clearTimeout,fe=i&&i.now!==aa.Date.now&&i.now,de=e.setTimeout!==aa.setTimeout&&e.setTimeout,pe=D.ceil,he=D.floor,me=m.getOwnPropertySymbols,q=q?q.isBuffer:zi,ye=e.isFinite,ve=H.join,be=ns(m.keys,m),S=D.max,P=D.min,ge=i.now,we=e.parseInt,ke=D.random,_e=H.reverse,i=Zn(e,"DataView"),Oe=Zn(e,"Map"),Se=Zn(e,"Promise"),Pe=Zn(e,"Set"),e=Zn(e,"WeakMap"),Ee=Zn(m,"create"),xe=e&&new e,je={},Ce=Or(i),Re=Or(Oe),Ae=Or(Se),Me=Or(Pe),Te=Or(e),t=t?t.prototype:zi,De=t?t.valueOf:zi,Ie=t?t.toString:zi;function h(e){if(z(e)&&!U(e)&&!(e instanceof v)){if(e instanceof y)return e;if(L.call(e,"__wrapped__"))return Sr(e)}return new y(e)}var Le=function(e){if(!k(e))return{};if(re)return re(e);Ve.prototype=e;e=new Ve;return Ve.prototype=zi,e};function Ve(){}function Ne(){}function y(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=zi}function v(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Wi,this.__views__=[]}function Fe(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 Ue(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 ze(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 Be(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ze;++t<n;)this.add(e[t])}function V(e){e=this.__data__=new Ue(e);this.size=e.size}function He(e,t){var n,r=U(e),o=!r&&bo(e),i=!r&&!o&&wo(e),a=!r&&!o&&!i&&Ao(e),l=r||o||i||a,s=l?Kl(e.length,B):[],u=s.length;for(n in e)!t&&!L.call(e,n)||l&&("length"==n||i&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||or(n,u))||s.push(n);return s}function qe(e){var t=e.length;return t?e[Nt(0,t-1)]:zi}function We(e,t){return gr(E(e),et(t,0,e.length))}function Ke(e){return gr(E(e))}function Ye(e,t,n){(n===zi||F(e[t],n))&&(n!==zi||t in e)||Ze(e,t,n)}function Ge(e,t,n){var r=e[t];L.call(e,t)&&F(r,n)&&(n!==zi||t in e)||Ze(e,t,n)}function $e(e,t){for(var n=e.length;n--;)if(F(e[n][0],t))return n;return-1}function Je(e,r,o,i){return ot(e,function(e,t,n){r(i,e,o(e),n)}),i}function Qe(e,t){return e&&yn(t,C(t),e)}function Ze(e,t,n){"__proto__"==t&&ue?ue(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Xe(e,t){for(var n=-1,r=t.length,o=_(r),i=null==e;++n<r;)o[n]=i?zi:Wo(e,t[n]);return o}function et(e,t,n){return e==e&&(n!==zi&&(e=e<=n?e:n),t!==zi&&(e=t<=e?e:t)),e}function b(n,r,o,e,t,i){var a,l=1&r,s=2&r,u=4&r;if((a=o?t?o(n,e,t,i):o(n):a)===zi){if(!k(n))return n;var c,e=U(n);if(e){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&L.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(n),!l)return E(n,a)}else{var f=N(n),d=f==Sa||f==Pa;if(wo(n))return cn(n,l);if(f==Qi||f==Ki||d&&!t){if(a=s||d?{}:nr(n),!l)return s?(p=d=n,p=(c=a)&&yn(p,R(p),c),yn(d,er(d),p)):(d=Qe(a,c=n),yn(c,Xn(c),d))}else{if(!ia[f])return t?n:{};a=function(e,t,n){var r=e.constructor;switch(t){case na:return fn(e);case Yi:case Gi:return new r(+e);case ra:return function(e,t){t=t?fn(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}(e,n);case ja:case Ca:case Ra:case Aa:case Ma:case Ta:case Da:case Ia:case La:return dn(e,n);case $i:return new r;case Ji:case ea:return new r(e);case Zi:return function(e){var t=new e.constructor(e.source,al.exec(e));return t.lastIndex=e.lastIndex,t}(e);case Xi:return new r;case xa:return function(e){return De?m(De.call(e)):{}}(e)}}(n,f,l)}}var p=(i=i||new V).get(n);if(p)return p;i.set(n,a),Co(n)?n.forEach(function(e){a.add(b(e,r,o,e,n,i))}):Po(n)&&n.forEach(function(e,t){a.set(t,b(e,r,o,t,n,i))});var h=e?zi:(u?s?Kn:Wn:s?R:C)(n);sa(h||n,function(e,t){h&&(e=n[t=e]),Ge(a,t,b(e,r,o,t,n,i))})}return a}function tt(e,t,n){var r=n.length;if(null==e)return!r;for(e=m(e);r--;){var o=n[r],i=t[o],a=e[o];if(a===zi&&!(o in e)||!i(a))return!1}return!0}function nt(e,t,n){if("function"!=typeof e)throw new O(Bi);return mr(function(){e.apply(zi,n)},t)}function rt(e,t,n,r){var o=-1,i=Tl,a=!0,l=e.length,s=[],u=t.length;if(l){n&&(t=ca(t,pa(n))),r?(i=Dl,a=!1):200<=t.length&&(i=$l,a=!1,t=new Be(t));e:for(;++o<l;){var c=e[o],f=null==n?c:n(c),c=r||0!==c?c:0;if(a&&f==f){for(var d=u;d--;)if(t[d]===f)continue e;s.push(c)}else i(t,f,r)||s.push(c)}}return s}h.templateSettings={escape:qa,evaluate:Wa,interpolate:Ka,variable:"",imports:{_:h}},(h.prototype=Ne.prototype).constructor=h,(y.prototype=Le(Ne.prototype)).constructor=y,(v.prototype=Le(Ne.prototype)).constructor=v,Fe.prototype.clear=function(){this.__data__=Ee?Ee(null):{},this.size=0},Fe.prototype.delete=function(e){return e=this.has(e)&&delete this.__data__[e],this.size-=e?1:0,e},Fe.prototype.get=function(e){var t,n=this.__data__;return Ee?(t=n[e])===ba?zi:t:L.call(n,e)?n[e]:zi},Fe.prototype.has=function(e){var t=this.__data__;return Ee?t[e]!==zi:L.call(t,e)},Fe.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ee&&t===zi?ba:t,this},Ue.prototype.clear=function(){this.__data__=[],this.size=0},Ue.prototype.delete=function(e){var t=this.__data__;return!((e=$e(t,e))<0)&&(e==t.length-1?t.pop():ie.call(t,e,1),--this.size,!0)},Ue.prototype.get=function(e){var t=this.__data__;return(e=$e(t,e))<0?zi:t[e][1]},Ue.prototype.has=function(e){return-1<$e(this.__data__,e)},Ue.prototype.set=function(e,t){var n=this.__data__,r=$e(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ze.prototype.clear=function(){this.size=0,this.__data__={hash:new Fe,map:new(Oe||Ue),string:new Fe}},ze.prototype.delete=function(e){return e=Jn(this,e).delete(e),this.size-=e?1:0,e},ze.prototype.get=function(e){return Jn(this,e).get(e)},ze.prototype.has=function(e){return Jn(this,e).has(e)},ze.prototype.set=function(e,t){var n=Jn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Be.prototype.add=Be.prototype.push=function(e){return this.__data__.set(e,ba),this},Be.prototype.has=function(e){return this.__data__.has(e)},V.prototype.clear=function(){this.__data__=new Ue,this.size=0},V.prototype.delete=function(e){var t=this.__data__,e=t.delete(e);return this.size=t.size,e},V.prototype.get=function(e){return this.__data__.get(e)},V.prototype.has=function(e){return this.__data__.has(e)},V.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ue){var r=n.__data__;if(!Oe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ze(r)}return n.set(e,t),this.size=n.size,this};var ot=gn(ft),it=gn(dt,!0);function at(e,r){var o=!0;return ot(e,function(e,t,n){return o=!!r(e,t,n)}),o}function lt(e,t,n){for(var r=-1,o=e.length;++r<o;){var i,a,l=e[r],s=t(l);null!=s&&(i===zi?s==s&&!g(s):n(s,i))&&(i=s,a=l)}return a}function st(e,r){var o=[];return ot(e,function(e,t,n){r(e,t,n)&&o.push(e)}),o}function s(e,t,n,r,o){var i=-1,a=e.length;for(n=n||rr,o=o||[];++i<a;){var l=e[i];0<t&&n(l)?1<t?s(l,t-1,n,r,o):fa(o,l):r||(o[o.length]=l)}return o}var ut=wn(),ct=wn(!0);function ft(e,t){return e&&ut(e,t,C)}function dt(e,t){return e&&ct(e,t,C)}function pt(t,e){return ua(e,function(e){return _o(t[e])})}function ht(e,t){for(var n=0,r=(t=an(t,e)).length;null!=e&&n<r;)e=e[_r(t[n++])];return n&&n==r?e:zi}function mt(e,t,n){t=t(e);return U(e)?t:fa(t,n(e))}function n(e){{if(null==e)return e===zi?"[object Undefined]":"[object Null]";if(se&&se in m(e)){var t=e,n=L.call(t,se),r=t[se];try{t[se]=zi;var o=!0}catch(e){}var i=J.call(t);return o&&(n?t[se]=r:delete t[se]),i}return J.call(e)}}function yt(e,t){return t<e}function vt(e,t){return null!=e&&L.call(e,t)}function bt(e,t){return null!=e&&t in m(e)}function gt(e,t,n){for(var r=n?Dl:Tl,o=e[0].length,i=e.length,a=i,l=_(i),s=1/0,u=[];a--;){var c=e[a];a&&t&&(c=ca(c,pa(t))),s=P(c.length,s),l[a]=!n&&(t||120<=o&&120<=c.length)?new Be(a&&c):zi}var c=e[0],f=-1,d=l[0];e:for(;++f<o&&u.length<s;){var p=c[f],h=t?t(p):p,p=n||0!==p?p:0;if(!(d?$l(d,h):r(u,h,n))){for(a=i;--a;){var m=l[a];if(!(m?$l(m,h):r(e[a],h,n)))continue e}d&&d.push(h),u.push(p)}}return u}function wt(e,t,n){t=null==(e=dr(e,t=an(t,e)))?e:e[_r(r(t))];return null==t?zi:la(t,e,n)}function kt(e){return z(e)&&n(e)==Ki}function _t(e,t,n,r,o){{if(e===t)return!0;if(null==e||null==t||!z(e)&&!z(t))return e!=e&&t!=t;var i=_t,a=U(e),l=U(t),s=a?_a:N(e),l=l?_a:N(t),u=(s=s==Ki?Qi:s)==Qi,c=(l=l==Ki?Qi:l)==Qi,l;if((l=s==l)&&wo(e)){if(!wo(t))return!1;u=!(a=!0)}if(l&&!u){o=o||new V;if(a||Ao(e))return Hn(e,t,n,r,i,o);else{var f=e;var d=t;var p=s;var h=n;var m=r;var y=i;var v=o;switch(p){case ra:if(f.byteLength!=d.byteLength||f.byteOffset!=d.byteOffset)return!1;f=f.buffer,d=d.buffer;case na:return f.byteLength==d.byteLength&&y(new ee(f),new ee(d))?!0:!1;case Yi:case Gi:case Ji:return F(+f,+d);case Oa:return f.name==d.name&&f.message==d.message;case Zi:case ea:return f==d+"";case $i:var b=ts;case Xi:var g=1&h;if(b=b||rs,f.size!=d.size&&!g)return!1;g=v.get(f);if(g)return g==d;h|=2,v.set(f,d);g=Hn(b(f),b(d),h,m,y,v);return v.delete(f),g;case xa:if(De)return De.call(f)==De.call(d)}return!1;return}}if(!(1&n)){a=u&&L.call(e,"__wrapped__"),s=c&&L.call(t,"__wrapped__");if(a||s)return u=a?e.value():e,c=s?t.value():t,o=o||new V,i(u,c,n,r,o)}if(l){o=o||new V;var w=e,k=t,_=n,O=r,S=i,P=o,E=1&_,x=Wn(w),j=x.length,a=Wn(k).length;if(j!=a&&!E)return!1;for(var C=j;C--;){var R=x[C];if(!(E?R in k:L.call(k,R)))return!1}a=P.get(w),s=P.get(k);if(a&&s)return a==k&&s==w;for(var A=!0,M=(P.set(w,k),P.set(k,w),E);++C<j;){R=x[C];var T,D=w[R],I=k[R];if(!((T=O?E?O(I,D,R,k,w,P):O(D,I,R,w,k,P):T)===zi?D===I||S(D,I,_,O,P):T)){A=!1;break}M=M||"constructor"==R}return A&&!M&&(a=w.constructor,s=k.constructor,a!=s&&"constructor"in w&&"constructor"in k&&!("function"==typeof a&&a instanceof a&&"function"==typeof s&&s instanceof s)&&(A=!1)),P.delete(w),P.delete(k),A}return!1}}function Ot(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=m(e);o--;){var l=n[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<i;){var s=(l=n[o])[0],u=e[s],c=l[1];if(a&&l[2]){if(u===zi&&!(s in e))return!1}else{var f,d=new V;if(!((f=r?r(u,c,s,e,t,d):f)===zi?_t(c,u,3,r,d):f))return!1}}return!0}function St(e){return!(!k(e)||(t=e,$&&$ in t))&&(_o(e)?X:ul).test(Or(e));var t}function Pt(e){return"function"==typeof e?e:null==e?A:"object"==typeof e?U(e)?At(e[0],e[1]):Rt(e):ji(e)}function Et(e){if(!sr(e))return be(e);var t,n=[];for(t in m(e))L.call(e,t)&&"constructor"!=t&&n.push(t);return n}function xt(e){if(!k(e)){var t=e,n=[];if(null!=t)for(var r in m(t))n.push(r);return n}var o,i=sr(e),a=[];for(o in e)("constructor"!=o||!i&&L.call(e,o))&&a.push(o);return a}function jt(e,t){return e<t}function Ct(e,r){var o=-1,i=c(e)?_(e.length):[];return ot(e,function(e,t,n){i[++o]=r(e,t,n)}),i}function Rt(t){var n=Qn(t);return 1==n.length&&n[0][2]?cr(n[0][0],n[0][1]):function(e){return e===t||Ot(e,t,n)}}function At(n,r){return ir(n)&&ur(r)?cr(_r(n),r):function(e){var t=Wo(e,n);return t===zi&&t===r?Ko(e,n):_t(r,t,3)}}function Mt(m,y,v,b,g){m!==y&&ut(y,function(e,t){var n,r,o,i,a,l,s,u,c,f,d,p,h;g=g||new V,k(e)?(r=y,i=v,a=Mt,l=b,s=g,d=pr(n=m,o=t),p=pr(r,o),(h=s.get(p))?Ye(n,o,h):(h=l?l(d,p,o+"",n,r,s):zi,(r=h===zi)&&(u=U(p),c=!u&&wo(p),f=!u&&!c&&Ao(p),h=p,u||c||f?h=U(d)?d:w(d)?E(d):c?cn(p,!(r=!1)):f?dn(p,!(r=!1)):[]:xo(p)||bo(p)?bo(h=d)?h=Vo(d):k(d)&&!_o(d)||(h=nr(p)):r=!1),r&&(s.set(p,h),a(h,p,i,l,s),s.delete(p)),Ye(n,o,h))):(u=b?b(pr(m,t),e,t+"",m,y,g):zi,Ye(m,t,u=u===zi?e:u))},R)}function Tt(e,t){var n=e.length;if(n)return or(t+=t<0?n:0,n)?e[t]:zi}function Dt(e,r,c){r=r.length?ca(r,function(t){return U(t)?function(e){return ht(e,1===t.length?t[0]:t)}:t}):[A];var o=-1;r=ca(r,pa(f()));var t=Ct(e,function(t,e,n){return{criteria:ca(r,function(e){return e(t)}),index:++o,value:t}}),e=function(e,t){for(var n=c,r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;++r<a;){var s=pn(o[r],i[r]);if(s){if(l<=r)return s;var u=n[r];return s*("desc"==u?-1:1)}}return e.index-t.index},n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function It(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=ht(e,a);n(l,a)&&Bt(i,an(a,e),l)}return i}function Lt(e,t,n,r){var o=r?Ul:da,i=-1,a=t.length,l=e;for(e===t&&(t=E(t)),n&&(l=ca(e,pa(n)));++i<a;)for(var s=0,u=t[i],c=n?n(u):u;-1<(s=o(l,c,s,r));)l!==e&&ie.call(l,s,1),ie.call(e,s,1);return e}function Vt(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o,i=t[n];n!=r&&i===o||(or(o=i)?ie.call(e,i,1):Qt(e,i))}}function Nt(e,t){return e+he(ke()*(t-e+1))}function Ft(e,t){var n="";if(!(!e||t<1||qi<t))for(;t%2&&(n+=e),(t=he(t/2))&&(e+=e),t;);return n}function a(e,t){return yr(fr(e,t,A),e+"")}function Ut(e){return qe(ri(e))}function zt(e,t){e=ri(e);return gr(e,et(t,0,e.length))}function Bt(e,t,n,r){if(k(e))for(var o=-1,i=(t=an(t,e)).length,a=i-1,l=e;null!=l&&++o<i;){var s,u=_r(t[o]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;o!=a&&(s=l[u],(c=r?r(s,u,l):zi)===zi&&(c=k(s)?s:or(t[o+1])?[]:{})),Ge(l,u,c),l=l[u]}return e}var Ht=xe?function(e,t){return xe.set(e,t),e}:A,t=ue?function(e,t){return ue(e,"toString",{configurable:!0,enumerable:!1,value:vi(t),writable:!0})}:A;function qt(e){return gr(ri(e))}function l(e,t,n){for(var r=-1,o=e.length,i=((n=o<n?o:n)<0&&(n+=o),o=n<(t=t<0?o<-t?0:o+t:t)?0:n-t>>>0,t>>>=0,_(o));++r<o;)i[r]=e[r+t];return i}function Wt(e,r){var o;return ot(e,function(e,t,n){return!(o=r(e,t,n))}),!!o}function Kt(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&&!g(a)&&(n?a<=t:a<t)?r=1+i:o=i}return o}return Yt(e,t,A,n)}function Yt(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,l=null===t,s=g(t),u=t===zi;o<i;){var c=he((o+i)/2),f=n(e[c]),d=f!==zi,p=null===f,h=f==f,m=g(f),h=a?r||h:u?h&&(r||d):l?h&&d&&(r||!p):s?h&&d&&!p&&(r||!m):!p&&!m&&(r?f<=t:f<t);h?o=c+1:i=c}return P(i,4294967294)}function Gt(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a,l=e[n],s=t?t(l):l;n&&F(s,a)||(a=s,i[o++]=0===l?0:l)}return i}function $t(e){return"number"==typeof e?e:g(e)?wa:+e}function u(e){if("string"==typeof e)return e;if(U(e))return ca(e,u)+"";if(g(e))return Ie?Ie.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Jt(e,t,n){var r=-1,o=Tl,i=e.length,a=!0,l=[],s=l;if(n)a=!1,o=Dl;else if(200<=i){var u=t?null:Vn(e);if(u)return rs(u);a=!1,o=$l,s=new Be}else s=t?[]:l;e:for(;++r<i;){var c=e[r],f=t?t(c):c,c=n||0!==c?c:0;if(a&&f==f){for(var d=s.length;d--;)if(s[d]===f)continue e;t&&s.push(f),l.push(c)}else o(s,f,n)||(s!==l&&s.push(f),l.push(c))}return l}function Qt(e,t){return null==(e=dr(e,t=an(t,e)))||delete e[_r(r(t))]}function Zt(e,t,n,r){return Bt(e,t,n(ht(e,t)),r)}function Xt(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?l(e,r?0:i,r?i+1:o):l(e,r?i+1:0,r?o:i)}function en(e,t){var n=e;return Il(t,function(e,t){return t.func.apply(t.thisArg,fa([e],t.args))},n=e instanceof v?e.value():n)}function tn(e,t,n){var r=e.length;if(r<2)return r?Jt(e[0]):[];for(var o=-1,i=_(r);++o<r;)for(var a=e[o],l=-1;++l<r;)l!=o&&(i[o]=rt(i[o]||a,e[l],t,n));return Jt(s(i,1),t,n)}function nn(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var l=r<i?t[r]:zi;n(a,e[r],l)}return a}function rn(e){return w(e)?e:[]}function on(e){return"function"==typeof e?e:A}function an(e,t){return U(e)?e:ir(e,t)?[e]:kr(p(e))}var ln=a;function sn(e,t,n){var r=e.length;return n=n===zi?r:n,!t&&r<=n?e:l(e,t,n)}var un=ce||function(e){return aa.clearTimeout(e)};function cn(e,t){if(t)return e.slice();t=e.length,t=te?te(t):new e.constructor(t);return e.copy(t),t}function fn(e){var t=new e.constructor(e.byteLength);return new ee(t).set(new ee(e)),t}function dn(e,t){t=t?fn(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function pn(e,t){if(e!==t){var n=e!==zi,r=null===e,o=e==e,i=g(e),a=t!==zi,l=null===t,s=t==t,u=g(t);if(!l&&!u&&!i&&t<e||i&&a&&s&&!l&&!u||r&&a&&s||!n&&s||!o)return 1;if(!r&&!i&&!u&&e<t||u&&n&&o&&!r&&!i||l&&n&&o||!a&&o||!s)return-1}return 0}function hn(e,t,n,r){for(var o=-1,i=e.length,a=n.length,l=-1,s=t.length,u=S(i-a,0),c=_(s+u),f=!r;++l<s;)c[l]=t[l];for(;++o<a;)(f||o<i)&&(c[n[o]]=e[o]);for(;u--;)c[l++]=e[o++];return c}function mn(e,t,n,r){for(var o=-1,i=e.length,a=-1,l=n.length,s=-1,u=t.length,c=S(i-l,0),f=_(c+u),d=!r;++o<c;)f[o]=e[o];for(var p=o;++s<u;)f[p+s]=t[s];for(;++a<l;)(d||o<i)&&(f[p+n[a]]=e[o++]);return f}function E(e,t){var n=-1,r=e.length;for(t=t||_(r);++n<r;)t[n]=e[n];return t}function yn(e,t,n,r){for(var o=!n,i=(n=n||{},-1),a=t.length;++i<a;){var l=t[i],s=r?r(n[l],e[l],l,n,e):zi;(o?Ze:Ge)(n,l,s=s===zi?e[l]:s)}return n}function vn(o,i){return function(e,t){var n=U(e)?Rl:Je,r=i?i():{};return n(e,o,f(t,2),r)}}function bn(l){return a(function(e,t){var n=-1,r=t.length,o=1<r?t[r-1]:zi,i=2<r?t[2]:zi,o=3<l.length&&"function"==typeof o?(r--,o):zi;for(i&&d(t[0],t[1],i)&&(o=r<3?zi:o,r=1),e=m(e);++n<r;){var a=t[n];a&&l(e,a,n,o)}return e})}function gn(i,a){return function(e,t){if(null!=e){if(!c(e))return i(e,t);for(var n=e.length,r=a?n:-1,o=m(e);(a?r--:++r<n)&&!1!==t(o[r],r,o););}return e}}function wn(s){return function(e,t,n){for(var r=-1,o=m(e),i=n(e),a=i.length;a--;){var l=i[s?a:++r];if(!1===t(o[l],l,o))break}return e}}function kn(r){return function(e){var t=ha(e=p(e))?va(e):zi,n=t?t[0]:e.charAt(0),t=t?sn(t,1).join(""):e.slice(1);return n[r]()+t}}function _n(t){return function(e){return Il(hi(ai(e).replace(ml,"")),t,"")}}function On(r){return function(){var e=arguments;switch(e.length){case 0:return new r;case 1:return new r(e[0]);case 2:return new r(e[0],e[1]);case 3:return new r(e[0],e[1],e[2]);case 4:return new r(e[0],e[1],e[2],e[3]);case 5:return new r(e[0],e[1],e[2],e[3],e[4]);case 6:return new r(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new r(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var t=Le(r.prototype),n=r.apply(t,e);return k(n)?n:t}}function Sn(i,a,l){var s=On(i);return function e(){for(var t=arguments.length,n=_(t),r=t,o=$n(e);r--;)n[r]=arguments[r];o=t<3&&n[0]!==o&&n[t-1]!==o?[]:ma(n,o);return(t-=o.length)<l?In(i,a,xn,e.placeholder,zi,n,o,zi,zi,l-t):la(this&&this!==aa&&this instanceof e?s:i,this,n)}}function Pn(i){return function(e,t,n){var r,o=m(e),t=(c(e)||(r=f(t,3),e=C(e),t=function(e){return r(o[e],e,o)}),i(e,t,n));return-1<t?o[r?e[t]:t]:zi}}function En(s){return qn(function(o){var i=o.length,e=i,t=y.prototype.thru;for(s&&o.reverse();e--;){var n=o[e];if("function"!=typeof n)throw new O(Bi);t&&!l&&"wrapper"==Gn(n)&&(l=new y([],!0))}for(e=l?e:i;++e<i;)var r=Gn(n=o[e]),a="wrapper"==r?Yn(n):zi,l=a&&ar(a[0])&&424==a[1]&&!a[4].length&&1==a[9]?l[Gn(a[0])].apply(l,a[3]):1==n.length&&ar(n)?l[r]():l.thru(n);return function(){var e=arguments,t=e[0];if(l&&1==e.length&&U(t))return l.plant(t).value();for(var n=0,r=i?o[n].apply(this,e):t;++n<i;)r=o[n].call(this,r);return r}})}function xn(a,l,s,u,c,f,d,p,h,m){var y=l&Hi,v=1&l,b=2&l,g=24&l,w=512&l,k=b?zi:On(a);return function e(){for(var t=_(i=arguments.length),n=i;n--;)t[n]=arguments[n];if(g&&(o=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(t,r=$n(e))),u&&(t=hn(t,u,c,g)),f&&(t=mn(t,f,d,g)),i-=o,g&&i<m)return o=ma(t,r),In(a,l,xn,e.placeholder,s,t,o,p,h,m-i);var r=v?s:this,o=b?r[a]:a,i=t.length;return p?t=function(e,t){for(var n=e.length,r=P(t.length,n),o=E(e);r--;){var i=t[r];e[r]=or(i,n)?o[i]:zi}return e}(t,p):w&&1<i&&t.reverse(),y&&h<i&&(t.length=h),(o=this&&this!==aa&&this instanceof e?k||On(o):o).apply(r,t)}}function jn(n,a){return function(e,t){return e=e,r=n,o=a(t),i={},ft(e,function(e,t,n){r(i,o(e),t,n)}),i;var r,o,i}}function Cn(r,o){return function(e,t){var n;if(e===zi&&t===zi)return o;if(e!==zi&&(n=e),t!==zi){if(n===zi)return t;t="string"==typeof e||"string"==typeof t?(e=u(e),u(t)):(e=$t(e),$t(t)),n=r(e,t)}return n}}function Rn(r){return qn(function(e){return e=ca(e,pa(f())),a(function(t){var n=this;return r(e,function(e){return la(e,n,t)})})})}function An(e,t){var n=(t=t===zi?" ":u(t)).length;if(n<2)return n?Ft(t,e):t;n=Ft(t,pe(e/ya(t)));return ha(t)?sn(va(n),0,e).join(""):n.slice(0,e)}function Mn(l,e,s,u){var c=1&e,f=On(l);return function e(){for(var t=-1,n=arguments.length,r=-1,o=u.length,i=_(o+n),a=this&&this!==aa&&this instanceof e?f:l;++r<o;)i[r]=u[r];for(;n--;)i[r++]=arguments[++t];return la(a,c?s:this,i)}}function Tn(u){return function(e,t,n){n&&"number"!=typeof n&&d(e,t,n)&&(t=n=zi),e=Io(e),t===zi?(t=e,e=0):t=Io(t),n=n===zi?e<t?1:-1:Io(n);for(var r=e,o=n,i=u,a=-1,l=S(pe((t-r)/(o||1)),0),s=_(l);l--;)s[i?l:++a]=r,r+=o;return s}}function Dn(n){return function(e,t){return"string"==typeof e&&"string"==typeof t||(e=j(e),t=j(t)),n(e,t)}}function In(e,t,n,r,o,i,a,l,s,u){var c=8&t,o=(4&(t=(t|(c?32:64))&~(c?64:32))||(t&=-4),[e,t,o,c?i:zi,c?a:zi,c?zi:i,c?zi:a,l,s,u]),i=n.apply(zi,o);return ar(e)&&hr(i,o),i.placeholder=r,vr(i,e,t)}function Ln(e){var r=D[e];return function(e,t){var n;return e=j(e),(t=null==t?0:P(x(t),292))&&ye(e)?(n=(p(e)+"e").split("e"),+((n=(p(r(n[0]+"e"+(+n[1]+t)))+"e").split("e"))[0]+"e"+(+n[1]-t))):r(e)}}var Vn=Pe&&1/rs(new Pe([,-0]))[1]==1/0?function(e){return new Pe(e)}:Si;function Nn(i){return function(e){var t,n,r,o=N(e);return o==$i?ts(e):o==Xi?(o=e,t=-1,n=Array(o.size),o.forEach(function(e){n[++t]=[e,e]}),n):ca(i(r=e),function(e){return[e,r[e]]})}}function Fn(e,t,n,r,o,i,a,l){var s=2&t;if(!s&&"function"!=typeof e)throw new O(Bi);var u,c,f,d,p,h,m,y,v,b,g=r?r.length:0,w=(g||(t&=-97,r=o=zi),a=a===zi?a:S(x(a),0),l=l===zi?l:x(l),g-=o?o.length:0,64&t&&(k=r,u=o,r=o=zi),s?zi:Yn(e)),k=[e,t,n,r,o,k,u,i,a,l];return w&&(u=w,a=(i=k)[1],f=u[1],p=(d=a|f)<131,h=f==Hi&&8==a||f==Hi&&256==a&&i[7].length<=u[8]||384==f&&u[7].length<=u[8]&&8==a,(p||h)&&(1&f&&(i[2]=u[2],d|=1&a?0:4),(p=u[3])&&(c=i[3],i[3]=c?hn(c,p,u[4]):p,i[4]=c?ma(i[3],ga):u[4]),(p=u[5])&&(c=i[5],i[5]=c?mn(c,p,u[6]):p,i[6]=c?ma(i[5],ga):u[6]),(p=u[7])&&(i[7]=p),f&Hi&&(i[8]=null==i[8]?u[8]:P(i[8],u[8])),null==i[9]&&(i[9]=u[9]),i[0]=u[0],i[1]=d)),e=k[0],t=k[1],n=k[2],r=k[3],o=k[4],!(l=k[9]=k[9]===zi?s?0:e.length:S(k[9]-g,0))&&24&t&&(t&=-25),h=t&&1!=t?8==t||16==t?Sn(e,t,l):32!=t&&33!=t||o.length?xn.apply(zi,k):Mn(e,t,n,r):(y=n,v=1&t,b=On(m=e),function e(){return(this&&this!==aa&&this instanceof e?b:m).apply(v?y:this,arguments)}),vr((w?Ht:hr)(h,k),e,t)}function Un(e,t,n,r){return e===zi||F(e,W[n])&&!L.call(r,n)?t:e}function zn(e,t,n,r,o,i){return k(e)&&k(t)&&(i.set(t,e),Mt(e,t,zi,zn,i),i.delete(t)),e}function Bn(e){return xo(e)?zi:e}function Hn(e,t,n,r,o,i){var a=1&n,l=e.length,s=t.length;if(l!=s&&!(a&&l<s))return!1;var s=i.get(e),u=i.get(t);if(s&&u)return s==t&&u==e;var c=-1,f=!0,d=2&n?new Be:zi;for(i.set(e,t),i.set(t,e);++c<l;){var p,h=e[c],m=t[c];if((p=r?a?r(m,h,c,t,e,i):r(h,m,c,e,t,i):p)!==zi){if(p)continue;f=!1;break}if(d){if(!Vl(t,function(e,t){return!$l(d,t)&&(h===e||o(h,e,n,r,i))&&d.push(t)})){f=!1;break}}else if(h!==m&&!o(h,m,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function qn(e){return yr(fr(e,zi,xr),e+"")}function Wn(e){return mt(e,C,Xn)}function Kn(e){return mt(e,R,er)}var Yn=xe?function(e){return xe.get(e)}:Si;function Gn(e){for(var t=e.name+"",n=je[t],r=L.call(je,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function $n(e){return(L.call(h,"placeholder")?h:e).placeholder}function f(){var e=(e=h.iteratee||wi)===wi?Pt:e;return arguments.length?e(arguments[0],arguments[1]):e}function Jn(e,t){var n,r,e=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?e["string"==typeof t?"string":"hash"]:e.map}function Qn(e){for(var t=C(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,ur(o)]}return t}function Zn(e,t){t=t;e=null==(e=e)?zi:e[t];return St(e)?e:zi}var Xn=me?function(t){return null==t?[]:(t=m(t),ua(me(t),function(e){return oe.call(t,e)}))}:Ai,er=me?function(e){for(var t=[];e;)fa(t,Xn(e)),e=ne(e);return t}:Ai,N=n;function tr(e,t,n){for(var r=-1,o=(t=an(t,e)).length,i=!1;++r<o;){var a=_r(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&So(o)&&or(a,o)&&(U(e)||bo(e))}function nr(e){return"function"!=typeof e.constructor||sr(e)?{}:Le(ne(e))}function rr(e){return U(e)||bo(e)||!!(ae&&e&&e[ae])}function or(e,t){var n=typeof e;return!!(t=null==t?qi:t)&&("number"==n||"symbol"!=n&&fl.test(e))&&-1<e&&e%1==0&&e<t}function d(e,t,n){var r;if(k(n))return r=typeof t,("number"==r?c(n)&&or(t,n.length):"string"==r&&t in n)&&F(n[t],e)}function ir(e,t){var n;if(!U(e))return n=typeof e,"number"==n||"symbol"==n||"boolean"==n||null==e||g(e)||(Ga.test(e)||!Ya.test(e)||null!=t&&e in m(t))}function ar(e){var t=Gn(e),n=h[t];if("function"==typeof n&&t in v.prototype){if(e===n)return 1;t=Yn(n);return t&&e===t[0]}}(i&&N(new i(new ArrayBuffer(1)))!=ra||Oe&&N(new Oe)!=$i||Se&&N(Se.resolve())!=Ea||Pe&&N(new Pe)!=Xi||e&&N(new e)!=ta)&&(N=function(e){var t=n(e),e=t==Qi?e.constructor:zi,e=e?Or(e):"";if(e)switch(e){case Ce:return ra;case Re:return $i;case Ae:return Ea;case Me:return Xi;case Te:return ta}return t});var lr=K?_o:Mi;function sr(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||W)}function ur(e){return e==e&&!k(e)}function cr(t,n){return function(e){return null!=e&&(e[t]===n&&(n!==zi||t in m(e)))}}function fr(i,a,l){return a=S(a===zi?i.length-1:a,0),function(){for(var e=arguments,t=-1,n=S(e.length-a,0),r=_(n);++t<n;)r[t]=e[a+t];for(var t=-1,o=_(a+1);++t<a;)o[t]=e[t];return o[a]=l(r),la(i,this,o)}}function dr(e,t){return t.length<2?e:ht(e,l(t,0,-1))}function pr(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var hr=br(Ht),mr=de||function(e,t){return aa.setTimeout(e,t)},yr=br(t);function vr(e,t,n){var r,o,t=t+"";return yr(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(1<n?"& ":"")+t[r],t=t.join(2<n?", ":" "),e.replace(Xa,"{\n/* [wrapped with "+t+"] */\n")}(t,(r=(e=(e=t).match(el))?e[1].split(tl):[],o=n,sa(ka,function(e){var t="_."+e[0];o&e[1]&&!Tl(r,t)&&r.push(t)}),r.sort())))}function br(n){var r=0,o=0;return function(){var e=ge(),t=16-(e-o);if(o=e,0<t){if(800<=++r)return arguments[0]}else r=0;return n.apply(zi,arguments)}}function gr(e,t){var n=-1,r=e.length,o=r-1;for(t=t===zi?r:t;++n<t;){var i=Nt(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}wr=(ce=co(ce=function(e){var o=[];return 46===e.charCodeAt(0)&&o.push(""),e.replace($a,function(e,t,n,r){o.push(n?r.replace(ol,"$1"):t||e)}),o},function(e){return 500===wr.size&&wr.clear(),e})).cache;var wr,kr=ce;function _r(e){if("string"==typeof e||g(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Or(e){if(null!=e){try{return Y.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Sr(e){if(e instanceof v)return e.clone();var t=new y(e.__wrapped__,e.__chain__);return t.__actions__=E(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}i=a(function(e,t){return w(e)?rt(e,s(t,1,w,!0)):[]}),Se=a(function(e,t){var n=r(t);return w(n)&&(n=zi),w(e)?rt(e,s(t,1,w,!0),f(n,2)):[]}),e=a(function(e,t){var n=r(t);return w(n)&&(n=zi),w(e)?rt(e,s(t,1,w,!0),zi,n):[]});function Pr(e,t,n){var r=null==e?0:e.length;if(!r)return-1;n=null==n?0:x(n);return n<0&&(n=S(r+n,0)),Fl(e,f(t,3),n)}function Er(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==zi&&(o=x(n),o=n<0?S(r+o,0):P(o,r-1)),Fl(e,f(t,3),o,!0)}function xr(e){return(null==e?0:e.length)?s(e,1):[]}function jr(e){return e&&e.length?e[0]:zi}K=a(function(e){var t=ca(e,rn);return t.length&&t[0]===e[0]?gt(t):[]}),de=a(function(e){var t=r(e),n=ca(e,rn);return t===r(n)?t=zi:n.pop(),n.length&&n[0]===e[0]?gt(n,f(t,2)):[]}),t=a(function(e){var t=r(e),n=ca(e,rn);return(t="function"==typeof t?t:zi)&&n.pop(),n.length&&n[0]===e[0]?gt(n,zi,t):[]});function r(e){var t=null==e?0:e.length;return t?e[t-1]:zi}ce=a(Cr);function Cr(e,t){return e&&e.length&&t&&t.length?Lt(e,t):e}var Rr=qn(function(e,t){var n=null==e?0:e.length,r=Xe(e,t);return Vt(e,ca(t,function(e){return or(e,n)?+e:e}).sort(pn)),r});function Ar(e){return null==e?e:_e.call(e)}var Mr=a(function(e){return Jt(s(e,1,w,!0))}),Tr=a(function(e){var t=r(e);return w(t)&&(t=zi),Jt(s(e,1,w,!0),f(t,2))}),Dr=a(function(e){var t="function"==typeof(t=r(e))?t:zi;return Jt(s(e,1,w,!0),zi,t)});function Ir(t){if(!t||!t.length)return[];var n=0;return t=ua(t,function(e){return w(e)&&(n=S(e.length,n),1)}),Kl(n,function(e){return ca(t,Hl(e))})}function Lr(e,t){if(!e||!e.length)return[];e=Ir(e);return null==t?e:ca(e,function(e){return la(t,zi,e)})}var Vr=a(function(e,t){return w(e)?rt(e,t):[]}),Nr=a(function(e){return tn(ua(e,w))}),Fr=a(function(e){var t=r(e);return w(t)&&(t=zi),tn(ua(e,w),f(t,2))}),Ur=a(function(e){var t="function"==typeof(t=r(e))?t:zi;return tn(ua(e,w),zi,t)}),zr=a(Ir);var Br=a(function(e){var t=e.length,t="function"==typeof(t=1<t?e[t-1]:zi)?(e.pop(),t):zi;return Lr(e,t)});function Hr(e){e=h(e);return e.__chain__=!0,e}function qr(e,t){return t(e)}var Wr=qn(function(t){function e(e){return Xe(e,t)}var n=t.length,r=n?t[0]:0,o=this.__wrapped__;return!(1<n||this.__actions__.length)&&o instanceof v&&or(r)?((o=o.slice(r,+r+(n?1:0))).__actions__.push({func:qr,args:[e],thisArg:zi}),new y(o,this.__chain__).thru(function(e){return n&&!e.length&&e.push(zi),e})):this.thru(e)});var Kr=vn(function(e,t,n){L.call(e,n)?++e[n]:Ze(e,n,1)});var Yr=Pn(Pr),Gr=Pn(Er);function $r(e,t){return(U(e)?sa:ot)(e,f(t,3))}function Jr(e,t){return(U(e)?Al:it)(e,f(t,3))}var Qr=vn(function(e,t,n){L.call(e,n)?e[n].push(t):Ze(e,n,[t])});var Zr=a(function(e,t,n){var r=-1,o="function"==typeof t,i=c(e)?_(e.length):[];return ot(e,function(e){i[++r]=o?la(t,e,n):wt(e,t,n)}),i}),Xr=vn(function(e,t,n){Ze(e,n,t)});function eo(e,t){return(U(e)?ca:Ct)(e,f(t,3))}var to=vn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var no=a(function(e,t){if(null==e)return[];var n=t.length;return 1<n&&d(e,t[0],t[1])?t=[]:2<n&&d(t[0],t[1],t[2])&&(t=[t[0]]),Dt(e,s(t,1),[])}),ro=fe||function(){return aa.Date.now()};function oo(e,t,n){return t=n?zi:t,t=e&&null==t?e.length:t,Fn(e,Hi,zi,zi,zi,zi,t)}function io(e,t){var n;if("function"!=typeof t)throw new O(Bi);return e=x(e),function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=zi),n}}var ao=a(function(e,t,n){var r,o=1;return n.length&&(r=ma(n,$n(ao)),o|=32),Fn(e,o,t,n,r)}),lo=a(function(e,t,n){var r,o=3;return n.length&&(r=ma(n,$n(lo)),o|=32),Fn(t,o,e,n,r)});function so(r,n,e){var o,i,a,l,s,u,c=0,f=!1,d=!1,t=!0;if("function"!=typeof r)throw new O(Bi);function p(e){var t=o,n=i;return o=i=zi,c=e,l=r.apply(n,t)}function h(e){var t=e-u;return u===zi||n<=t||t<0||d&&a<=e-c}function m(){var e,t=ro();if(h(t))return y(t);s=mr(m,(e=n-((t=t)-u),d?P(e,a-(t-c)):e))}function y(e){return s=zi,t&&o?p(e):(o=i=zi,l)}function v(){var e=ro(),t=h(e);if(o=arguments,i=this,u=e,t){if(s===zi)return c=e=u,s=mr(m,n),f?p(e):l;if(d)return un(s),s=mr(m,n),p(u)}return s===zi&&(s=mr(m,n)),l}return n=j(n)||0,k(e)&&(f=!!e.leading,d="maxWait"in e,a=d?S(j(e.maxWait)||0,n):a,t="trailing"in e?!!e.trailing:t),v.cancel=function(){s!==zi&&un(s),c=0,o=u=i=s=zi},v.flush=function(){return s===zi?l:y(ro())},v}var fe=a(function(e,t){return nt(e,1,t)}),uo=a(function(e,t,n){return nt(e,j(t)||0,n)});function co(r,o){if("function"!=typeof r||null!=o&&"function"!=typeof o)throw new O(Bi);function i(){var e=arguments,t=o?o.apply(this,e):e[0],n=i.cache;return n.has(t)?n.get(t):(e=r.apply(this,e),i.cache=n.set(t,e)||n,e)}return i.cache=new(co.Cache||ze),i}function fo(t){if("function"!=typeof t)throw new O(Bi);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}co.Cache=ze;var ln=ln(function(r,o){var i=(o=1==o.length&&U(o[0])?ca(o[0],pa(f())):ca(s(o,1),pa(f()))).length;return a(function(e){for(var t=-1,n=P(e.length,i);++t<n;)e[t]=o[t].call(this,e[t]);return la(r,this,e)})}),po=a(function(e,t){var n=ma(t,$n(po));return Fn(e,32,zi,t,n)}),ho=a(function(e,t){var n=ma(t,$n(ho));return Fn(e,64,zi,t,n)}),mo=qn(function(e,t){return Fn(e,256,zi,zi,zi,t)});function F(e,t){return e===t||e!=e&&t!=t}var yo=Dn(yt),vo=Dn(function(e,t){return t<=e}),bo=kt(function(){return arguments}())?kt:function(e){return z(e)&&L.call(e,"callee")&&!oe.call(e,"callee")},U=_.isArray,go=Sl?pa(Sl):function(e){return z(e)&&n(e)==na};function c(e){return null!=e&&So(e.length)&&!_o(e)}function w(e){return z(e)&&c(e)}var wo=q||Mi,q=Pl?pa(Pl):function(e){return z(e)&&n(e)==Gi};function ko(e){if(!z(e))return!1;var t=n(e);return t==Oa||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!xo(e)}function _o(e){if(!k(e))return!1;e=n(e);return e==Sa||e==Pa||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Oo(e){return"number"==typeof e&&e==x(e)}function So(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=qi}function k(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function z(e){return null!=e&&"object"==typeof e}var Po=El?pa(El):function(e){return z(e)&&N(e)==$i};function Eo(e){return"number"==typeof e||z(e)&&n(e)==Ji}function xo(e){if(!z(e)||n(e)!=Qi)return!1;e=ne(e);if(null===e)return!0;e=L.call(e,"constructor")&&e.constructor;return"function"==typeof e&&e instanceof e&&Y.call(e)==Q}var jo=xl?pa(xl):function(e){return z(e)&&n(e)==Zi};var Co=jl?pa(jl):function(e){return z(e)&&N(e)==Xi};function Ro(e){return"string"==typeof e||!U(e)&&z(e)&&n(e)==ea}function g(e){return"symbol"==typeof e||z(e)&&n(e)==xa}var Ao=Cl?pa(Cl):function(e){return z(e)&&So(e.length)&&!!oa[n(e)]};var Mo=Dn(jt),To=Dn(function(e,t){return e<=t});function Do(e){if(!e)return[];if(c(e))return(Ro(e)?va:E)(e);if(le&&e[le]){for(var t,n=e[le](),r=[];!(t=n.next()).done;)r.push(t.value);return r}var o=N(e);return(o==$i?ts:o==Xi?rs:ri)(e)}function Io(e){return e?(e=j(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function x(e){var e=Io(e),t=e%1;return e==e?t?e-t:e:0}function Lo(e){return e?et(x(e),0,Wi):0}function j(e){if("number"==typeof e)return e;if(g(e))return wa;if("string"!=typeof(e=k(e)?k(t="function"==typeof e.valueOf?e.valueOf():e)?t+"":t:e))return 0===e?e:+e;e=Yl(e);var t=sl.test(e);return t||cl.test(e)?_l(e.slice(2),t?2:8):ll.test(e)?wa:+e}function Vo(e){return yn(e,R(e))}function p(e){return null==e?"":u(e)}var No=bn(function(e,t){if(sr(t)||c(t))yn(t,C(t),e);else for(var n in t)L.call(t,n)&&Ge(e,n,t[n])}),Fo=bn(function(e,t){yn(t,R(t),e)}),Uo=bn(function(e,t,n,r){yn(t,R(t),e,r)}),zo=bn(function(e,t,n,r){yn(t,C(t),e,r)}),Bo=qn(Xe);var Ho=a(function(e,t){e=m(e);var n=-1,r=t.length,o=2<r?t[2]:zi;for(o&&d(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=R(i),l=-1,s=a.length;++l<s;){var u=a[l],c=e[u];(c===zi||F(c,W[u])&&!L.call(e,u))&&(e[u]=i[u])}return e}),qo=a(function(e){return e.push(zi,zn),la(Qo,zi,e)});function Wo(e,t,n){e=null==e?zi:ht(e,t);return e===zi?n:e}function Ko(e,t){return null!=e&&tr(e,t,bt)}var Yo=jn(function(e,t,n){e[t=null!=t&&"function"!=typeof t.toString?J.call(t):t]=n},vi(A)),Go=jn(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=J.call(t)),L.call(e,t)?e[t].push(n):e[t]=[n]},f),$o=a(wt);function C(e){return(c(e)?He:Et)(e)}function R(e){return c(e)?He(e,!0):xt(e)}var Jo=bn(function(e,t,n){Mt(e,t,n)}),Qo=bn(function(e,t,n,r){Mt(e,t,n,r)}),Zo=qn(function(t,e){var n={};if(null!=t)for(var r=!1,o=(e=ca(e,function(e){return e=an(e,t),r=r||1<e.length,e}),yn(t,Kn(t),n),r&&(n=b(n,7,Bn)),e.length);o--;)Qt(n,e[o]);return n});var Xo=qn(function(e,t){return null==e?{}:It(n=e,t,function(e,t){return Ko(n,t)});var n});function ei(e,n){if(null==e)return{};var t=ca(Kn(e),function(e){return[e]});return n=f(n),It(e,t,function(e,t){return n(e,t[0])})}var ti=Nn(C),ni=Nn(R);function ri(e){return null==e?[]:Gl(e,C(e))}var oi=_n(function(e,t,n){return t=t.toLowerCase(),e+(n?ii(t):t)});function ii(e){return pi(p(e).toLowerCase())}function ai(e){return(e=p(e))&&e.replace(dl,Zl).replace(yl,"")}var li=_n(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),si=_n(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),ui=kn("toLowerCase");var ci=_n(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var fi=_n(function(e,t,n){return e+(n?" ":"")+pi(t)});var di=_n(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),pi=kn("toUpperCase");function hi(e,t,n){return e=p(e),(t=n?zi:t)===zi?(n=e,bl.test(n)?e.match(vl)||[]:e.match(nl)||[]):e.match(t)||[]}var mi=a(function(e,t){try{return la(e,zi,t)}catch(e){return ko(e)?e:new M(e)}}),yi=qn(function(t,e){return sa(e,function(e){e=_r(e),Ze(t,e,ao(t[e],t))}),t});function vi(e){return function(){return e}}var bi=En(),gi=En(!0);function A(e){return e}function wi(e){return Pt("function"==typeof e?e:b(e,1))}var ki=a(function(t,n){return function(e){return wt(e,t,n)}}),_i=a(function(t,n){return function(e){return wt(t,e,n)}});function Oi(r,t,e){var n=C(t),o=pt(t,n),i=(null!=e||k(t)&&(o.length||!n.length)||(e=t,t=r,r=this,o=pt(t,C(t))),!(k(e)&&"chain"in e&&!e.chain)),a=_o(r);return sa(o,function(e){var n=t[e];r[e]=n,a&&(r.prototype[e]=function(){var e,t=this.__chain__;return i||t?(((e=r(this.__wrapped__)).__actions__=E(this.__actions__)).push({func:n,args:arguments,thisArg:r}),e.__chain__=t,e):n.apply(r,fa([this.value()],arguments))})}),r}function Si(){}var Pi=Rn(ca),Ei=Rn(Ml),xi=Rn(Vl);function ji(e){return ir(e)?Hl(_r(e)):(t=e,function(e){return ht(e,t)});var t}var Ci=Tn(),Ri=Tn(!0);function Ai(){return[]}function Mi(){return!1}var Ti=Cn(function(e,t){return e+t},0),Di=Ln("ceil"),Ii=Cn(function(e,t){return e/t},1),Li=Ln("floor");var Vi,Ni=Cn(function(e,t){return e*t},1),Fi=Ln("round"),Ui=Cn(function(e,t){return e-t},0);return h.after=function(e,t){if("function"!=typeof t)throw new O(Bi);return e=x(e),function(){if(--e<1)return t.apply(this,arguments)}},h.ary=oo,h.assign=No,h.assignIn=Fo,h.assignInWith=Uo,h.assignWith=zo,h.at=Bo,h.before=io,h.bind=ao,h.bindAll=yi,h.bindKey=lo,h.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return U(e)?e:[e]},h.chain=Hr,h.chunk=function(e,t,n){t=(n?d(e,t,n):t===zi)?1:S(x(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=_(pe(r/t));o<r;)a[i++]=l(e,o,o+=t);return a},h.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},h.concat=function(){var e=arguments.length;if(!e)return[];for(var t=_(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return fa(U(n)?E(n):[n],s(t,1))},h.cond=function(r){var o=null==r?0:r.length,t=f();return r=o?ca(r,function(e){if("function"!=typeof e[1])throw new O(Bi);return[t(e[0]),e[1]]}):[],a(function(e){for(var t=-1;++t<o;){var n=r[t];if(la(n[0],this,e))return la(n[1],this,e)}})},h.conforms=function(e){return t=b(e,1),n=C(t),function(e){return tt(e,t,n)};var t,n},h.constant=vi,h.countBy=Kr,h.create=function(e,t){return e=Le(e),null==t?e:Qe(e,t)},h.curry=function e(t,n,r){t=Fn(t,8,zi,zi,zi,zi,zi,n=r?zi:n);return t.placeholder=e.placeholder,t},h.curryRight=function e(t,n,r){t=Fn(t,16,zi,zi,zi,zi,zi,n=r?zi:n);return t.placeholder=e.placeholder,t},h.debounce=so,h.defaults=Ho,h.defaultsDeep=qo,h.defer=fe,h.delay=uo,h.difference=i,h.differenceBy=Se,h.differenceWith=e,h.drop=function(e,t,n){var r=null==e?0:e.length;return r?l(e,(t=n||t===zi?1:x(t))<0?0:t,r):[]},h.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?l(e,0,(t=r-(t=n||t===zi?1:x(t)))<0?0:t):[]},h.dropRightWhile=function(e,t){return e&&e.length?Xt(e,f(t,3),!0,!0):[]},h.dropWhile=function(e,t){return e&&e.length?Xt(e,f(t,3),!0):[]},h.fill=function(e,t,n,r){if(!(s=null==e?0:e.length))return[];n&&"number"!=typeof n&&d(e,t,n)&&(n=0,r=s);var o=e,i=t,a=n,l=r,s=o.length;for((a=x(a))<0&&(a=s<-a?0:s+a),(l=l===zi||s<l?s:x(l))<0&&(l+=s),l=l<a?0:Lo(l);a<l;)o[a++]=i;return o},h.filter=function(e,t){return(U(e)?ua:st)(e,f(t,3))},h.flatMap=function(e,t){return s(eo(e,t),1)},h.flatMapDeep=function(e,t){return s(eo(e,t),1/0)},h.flatMapDepth=function(e,t,n){return n=n===zi?1:x(n),s(eo(e,t),n)},h.flatten=xr,h.flattenDeep=function(e){return(null==e?0:e.length)?s(e,1/0):[]},h.flattenDepth=function(e,t){return(null==e?0:e.length)?s(e,t=t===zi?1:x(t)):[]},h.flip=function(e){return Fn(e,512)},h.flow=bi,h.flowRight=gi,h.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},h.functions=function(e){return null==e?[]:pt(e,C(e))},h.functionsIn=function(e){return null==e?[]:pt(e,R(e))},h.groupBy=Qr,h.initial=function(e){return(null==e?0:e.length)?l(e,0,-1):[]},h.intersection=K,h.intersectionBy=de,h.intersectionWith=t,h.invert=Yo,h.invertBy=Go,h.invokeMap=Zr,h.iteratee=wi,h.keyBy=Xr,h.keys=C,h.keysIn=R,h.map=eo,h.mapKeys=function(e,r){var o={};return r=f(r,3),ft(e,function(e,t,n){Ze(o,r(e,t,n),e)}),o},h.mapValues=function(e,r){var o={};return r=f(r,3),ft(e,function(e,t,n){Ze(o,t,r(e,t,n))}),o},h.matches=function(e){return Rt(b(e,1))},h.matchesProperty=function(e,t){return At(e,b(t,1))},h.memoize=co,h.merge=Jo,h.mergeWith=Qo,h.method=ki,h.methodOf=_i,h.mixin=Oi,h.negate=fo,h.nthArg=function(t){return t=x(t),a(function(e){return Tt(e,t)})},h.omit=Zo,h.omitBy=function(e,t){return ei(e,fo(f(t)))},h.once=function(e){return io(2,e)},h.orderBy=function(e,t,n,r){return null==e?[]:Dt(e,t=U(t)?t:null==t?[]:[t],n=U(n=r?zi:n)?n:null==n?[]:[n])},h.over=Pi,h.overArgs=ln,h.overEvery=Ei,h.overSome=xi,h.partial=po,h.partialRight=ho,h.partition=to,h.pick=Xo,h.pickBy=ei,h.property=ji,h.propertyOf=function(t){return function(e){return null==t?zi:ht(t,e)}},h.pull=ce,h.pullAll=Cr,h.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Lt(e,t,f(n,2)):e},h.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Lt(e,t,zi,n):e},h.pullAt=Rr,h.range=Ci,h.rangeRight=Ri,h.rearg=mo,h.reject=function(e,t){return(U(e)?ua:st)(e,fo(f(t,3)))},h.remove=function(e,t){var n=[];if(e&&e.length){var r=-1,o=[],i=e.length;for(t=f(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}Vt(e,o)}return n},h.rest=function(e,t){if("function"!=typeof e)throw new O(Bi);return a(e,t=t===zi?t:x(t))},h.reverse=Ar,h.sampleSize=function(e,t,n){return t=(n?d(e,t,n):t===zi)?1:x(t),(U(e)?We:zt)(e,t)},h.set=function(e,t,n){return null==e?e:Bt(e,t,n)},h.setWith=function(e,t,n,r){return r="function"==typeof r?r:zi,null==e?e:Bt(e,t,n,r)},h.shuffle=function(e){return(U(e)?Ke:qt)(e)},h.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n=n&&"number"!=typeof n&&d(e,t,n)?(t=0,r):(t=null==t?0:x(t),n===zi?r:x(n)),l(e,t,n)):[]},h.sortBy=no,h.sortedUniq=function(e){return e&&e.length?Gt(e):[]},h.sortedUniqBy=function(e,t){return e&&e.length?Gt(e,f(t,2)):[]},h.split=function(e,t,n){return n&&"number"!=typeof n&&d(e,t,n)&&(t=n=zi),(n=n===zi?Wi:n>>>0)?(e=p(e))&&("string"==typeof t||null!=t&&!jo(t))&&!(t=u(t))&&ha(e)?sn(va(e),0,n):e.split(t,n):[]},h.spread=function(n,r){if("function"!=typeof n)throw new O(Bi);return r=null==r?0:S(x(r),0),a(function(e){var t=e[r],e=sn(e,0,r);return t&&fa(e,t),la(n,this,e)})},h.tail=function(e){var t=null==e?0:e.length;return t?l(e,1,t):[]},h.take=function(e,t,n){return e&&e.length?l(e,0,(t=n||t===zi?1:x(t))<0?0:t):[]},h.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?l(e,(t=r-(t=n||t===zi?1:x(t)))<0?0:t,r):[]},h.takeRightWhile=function(e,t){return e&&e.length?Xt(e,f(t,3),!1,!0):[]},h.takeWhile=function(e,t){return e&&e.length?Xt(e,f(t,3)):[]},h.tap=function(e,t){return t(e),e},h.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new O(Bi);return k(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),so(e,t,{leading:r,maxWait:t,trailing:o})},h.thru=qr,h.toArray=Do,h.toPairs=ti,h.toPairsIn=ni,h.toPath=function(e){return U(e)?ca(e,_r):g(e)?[e]:E(kr(p(e)))},h.toPlainObject=Vo,h.transform=function(e,r,o){var t,n=U(e),i=n||wo(e)||Ao(e);return r=f(r,4),null==o&&(t=e&&e.constructor,o=i?n?new t:[]:k(e)&&_o(t)?Le(ne(e)):{}),(i?sa:ft)(e,function(e,t,n){return r(o,e,t,n)}),o},h.unary=function(e){return oo(e,1)},h.union=Mr,h.unionBy=Tr,h.unionWith=Dr,h.uniq=function(e){return e&&e.length?Jt(e):[]},h.uniqBy=function(e,t){return e&&e.length?Jt(e,f(t,2)):[]},h.uniqWith=function(e,t){return t="function"==typeof t?t:zi,e&&e.length?Jt(e,zi,t):[]},h.unset=function(e,t){return null==e||Qt(e,t)},h.unzip=Ir,h.unzipWith=Lr,h.update=function(e,t,n){return null==e?e:Zt(e,t,on(n))},h.updateWith=function(e,t,n,r){return r="function"==typeof r?r:zi,null==e?e:Zt(e,t,on(n),r)},h.values=ri,h.valuesIn=function(e){return null==e?[]:Gl(e,R(e))},h.without=Vr,h.words=hi,h.wrap=function(e,t){return po(on(t),e)},h.xor=Nr,h.xorBy=Fr,h.xorWith=Ur,h.zip=zr,h.zipObject=function(e,t){return nn(e||[],t||[],Ge)},h.zipObjectDeep=function(e,t){return nn(e||[],t||[],Bt)},h.zipWith=Br,h.entries=ti,h.entriesIn=ni,h.extend=Fo,h.extendWith=Uo,Oi(h,h),h.add=Ti,h.attempt=mi,h.camelCase=oi,h.capitalize=ii,h.ceil=Di,h.clamp=function(e,t,n){return n===zi&&(n=t,t=zi),n!==zi&&(n=(n=j(n))==n?n:0),t!==zi&&(t=(t=j(t))==t?t:0),et(j(e),t,n)},h.clone=function(e){return b(e,4)},h.cloneDeep=function(e){return b(e,5)},h.cloneDeepWith=function(e,t){return b(e,5,t="function"==typeof t?t:zi)},h.cloneWith=function(e,t){return b(e,4,t="function"==typeof t?t:zi)},h.conformsTo=function(e,t){return null==t||tt(e,t,C(t))},h.deburr=ai,h.defaultTo=function(e,t){return null==e||e!=e?t:e},h.divide=Ii,h.endsWith=function(e,t,n){e=p(e),t=u(t);var r=e.length,r=n=n===zi?r:et(x(n),0,r);return 0<=(n-=t.length)&&e.slice(n,r)==t},h.eq=F,h.escape=function(e){return(e=p(e))&&Ha.test(e)?e.replace(za,Xl):e},h.escapeRegExp=function(e){return(e=p(e))&&Qa.test(e)?e.replace(Ja,"\\$&"):e},h.every=function(e,t,n){return(U(e)?Ml:at)(e,f(t=n&&d(e,t,n)?zi:t,3))},h.find=Yr,h.findIndex=Pr,h.findKey=function(e,t){return Nl(e,f(t,3),ft)},h.findLast=Gr,h.findLastIndex=Er,h.findLastKey=function(e,t){return Nl(e,f(t,3),dt)},h.floor=Li,h.forEach=$r,h.forEachRight=Jr,h.forIn=function(e,t){return null==e?e:ut(e,f(t,3),R)},h.forInRight=function(e,t){return null==e?e:ct(e,f(t,3),R)},h.forOwn=function(e,t){return e&&ft(e,f(t,3))},h.forOwnRight=function(e,t){return e&&dt(e,f(t,3))},h.get=Wo,h.gt=yo,h.gte=vo,h.has=function(e,t){return null!=e&&tr(e,t,vt)},h.hasIn=Ko,h.head=jr,h.identity=A,h.includes=function(e,t,n,r){return e=c(e)?e:ri(e),n=n&&!r?x(n):0,r=e.length,n<0&&(n=S(r+n,0)),Ro(e)?n<=r&&-1<e.indexOf(t,n):!!r&&-1<da(e,t,n)},h.indexOf=function(e,t,n){var r=null==e?0:e.length;return r?(n=null==n?0:x(n),da(e,t,n=n<0?S(r+n,0):n)):-1},h.inRange=function(e,t,n){return t=Io(t),n===zi?(n=t,t=0):n=Io(n),(e=e=j(e))>=P(t=t,n=n)&&e<S(t,n)},h.invoke=$o,h.isArguments=bo,h.isArray=U,h.isArrayBuffer=go,h.isArrayLike=c,h.isArrayLikeObject=w,h.isBoolean=function(e){return!0===e||!1===e||z(e)&&n(e)==Yi},h.isBuffer=wo,h.isDate=q,h.isElement=function(e){return z(e)&&1===e.nodeType&&!xo(e)},h.isEmpty=function(e){if(null!=e){if(c(e)&&(U(e)||"string"==typeof e||"function"==typeof e.splice||wo(e)||Ao(e)||bo(e)))return!e.length;var t,n=N(e);if(n==$i||n==Xi)return!e.size;if(sr(e))return!Et(e).length;for(t in e)if(L.call(e,t))return!1}return!0},h.isEqual=function(e,t){return _t(e,t)},h.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:zi)?n(e,t):zi;return r===zi?_t(e,t,zi,n):!!r},h.isError=ko,h.isFinite=function(e){return"number"==typeof e&&ye(e)},h.isFunction=_o,h.isInteger=Oo,h.isLength=So,h.isMap=Po,h.isMatch=function(e,t){return e===t||Ot(e,t,Qn(t))},h.isMatchWith=function(e,t,n){return n="function"==typeof n?n:zi,Ot(e,t,Qn(t),n)},h.isNaN=function(e){return Eo(e)&&e!=+e},h.isNative=function(e){if(lr(e))throw new M("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return St(e)},h.isNil=function(e){return null==e},h.isNull=function(e){return null===e},h.isNumber=Eo,h.isObject=k,h.isObjectLike=z,h.isPlainObject=xo,h.isRegExp=jo,h.isSafeInteger=function(e){return Oo(e)&&-qi<=e&&e<=qi},h.isSet=Co,h.isString=Ro,h.isSymbol=g,h.isTypedArray=Ao,h.isUndefined=function(e){return e===zi},h.isWeakMap=function(e){return z(e)&&N(e)==ta},h.isWeakSet=function(e){return z(e)&&"[object WeakSet]"==n(e)},h.join=function(e,t){return null==e?"":ve.call(e,t)},h.kebabCase=li,h.last=r,h.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;if(n!==zi&&(o=(o=x(n))<0?S(r+o,0):P(o,r-1)),t!=t)return Fl(e,zl,o,!0);for(var i=e,a=t,l=o+1;l--;)if(i[l]===a)return l;return l},h.lowerCase=si,h.lowerFirst=ui,h.lt=Mo,h.lte=To,h.max=function(e){return e&&e.length?lt(e,A,yt):zi},h.maxBy=function(e,t){return e&&e.length?lt(e,f(t,2),yt):zi},h.mean=function(e){return Bl(e,A)},h.meanBy=function(e,t){return Bl(e,f(t,2))},h.min=function(e){return e&&e.length?lt(e,A,jt):zi},h.minBy=function(e,t){return e&&e.length?lt(e,f(t,2),jt):zi},h.stubArray=Ai,h.stubFalse=Mi,h.stubObject=function(){return{}},h.stubString=function(){return""},h.stubTrue=function(){return!0},h.multiply=Ni,h.nth=function(e,t){return e&&e.length?Tt(e,x(t)):zi},h.noConflict=function(){return aa._===this&&(aa._=Z),this},h.noop=Si,h.now=ro,h.pad=function(e,t,n){e=p(e);var r=(t=x(t))?ya(e):0;return!t||t<=r?e:An(he(t=(t-r)/2),n)+e+An(pe(t),n)},h.padEnd=function(e,t,n){e=p(e);var r=(t=x(t))?ya(e):0;return t&&r<t?e+An(t-r,n):e},h.padStart=function(e,t,n){e=p(e);var r=(t=x(t))?ya(e):0;return t&&r<t?An(t-r,n)+e:e},h.parseInt=function(e,t,n){return t=n||null==t?0:t&&+t,we(p(e).replace(Za,""),t||0)},h.random=function(e,t,n){var r;return n&&"boolean"!=typeof n&&d(e,t,n)&&(t=n=zi),n===zi&&("boolean"==typeof t?(n=t,t=zi):"boolean"==typeof e&&(n=e,e=zi)),e===zi&&t===zi?(e=0,t=1):(e=Io(e),t===zi?(t=e,e=0):t=Io(t)),t<e&&(r=e,e=t,t=r),n||e%1||t%1?(r=ke(),P(e+r*(t-e+kl("1e-"+((r+"").length-1))),t)):Nt(e,t)},h.reduce=function(e,t,n){var r=U(e)?Il:ql,o=arguments.length<3;return r(e,f(t,4),n,o,ot)},h.reduceRight=function(e,t,n){var r=U(e)?Ll:ql,o=arguments.length<3;return r(e,f(t,4),n,o,it)},h.repeat=function(e,t,n){return t=(n?d(e,t,n):t===zi)?1:x(t),Ft(p(e),t)},h.replace=function(){var e=arguments,t=p(e[0]);return e.length<3?t:t.replace(e[1],e[2])},h.result=function(e,t,n){var r=-1,o=(t=an(t,e)).length;for(o||(o=1,e=zi);++r<o;){var i=null==e?zi:e[_r(t[r])];i===zi&&(r=o,i=n),e=_o(i)?i.call(e):i}return e},h.round=Fi,h.runInContext=o,h.sample=function(e){return(U(e)?qe:Ut)(e)},h.size=function(e){if(null==e)return 0;if(c(e))return Ro(e)?ya(e):e.length;var t=N(e);return t==$i||t==Xi?e.size:Et(e).length},h.snakeCase=ci,h.some=function(e,t,n){return(U(e)?Vl:Wt)(e,f(t=n&&d(e,t,n)?zi:t,3))},h.sortedIndex=function(e,t){return Kt(e,t)},h.sortedIndexBy=function(e,t,n){return Yt(e,t,f(n,2))},h.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Kt(e,t);if(r<n&&F(e[r],t))return r}return-1},h.sortedLastIndex=function(e,t){return Kt(e,t,!0)},h.sortedLastIndexBy=function(e,t,n){return Yt(e,t,f(n,2),!0)},h.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Kt(e,t,!0)-1;if(F(e[n],t))return n}return-1},h.startCase=fi,h.startsWith=function(e,t,n){return e=p(e),n=null==n?0:et(x(n),0,e.length),t=u(t),e.slice(n,n+t.length)==t},h.subtract=Ui,h.sum=function(e){return e&&e.length?Wl(e,A):0},h.sumBy=function(e,t){return e&&e.length?Wl(e,f(t,2)):0},h.template=function(a,e,t){var l,s,n=h.templateSettings;t&&d(a,e,t)&&(e=zi),a=p(a),e=Uo({},e,n,Un);var r=C(t=Uo({},e.imports,n.imports,Un)),o=Gl(t,r),u=0,n=e.interpolate||pl,c="__p += '",t=I((e.escape||pl).source+"|"+n.source+"|"+(n===Ka?il:pl).source+"|"+(e.evaluate||pl).source+"|$","g"),i="//# sourceURL="+(L.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++wl+"]")+"\n";if(a.replace(t,function(e,t,n,r,o,i){return n=n||r,c+=a.slice(u,i).replace(hl,es),t&&(l=!0,c+="' +\n__e("+t+") +\n'"),o&&(s=!0,c+="';\n"+o+";\n__p += '"),n&&(c+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=i+e.length,e}),c+="';\n",n=L.call(e,"variable")&&e.variable){if(rl.test(n))throw new M("Invalid `variable` option passed into `_.template`")}else c="with (obj) {\n"+c+"\n}\n";if(c=(s?c.replace(Va,""):c).replace(Na,"$1").replace(Fa,"$1;"),c="function("+(n||"obj")+") {\n"+(n?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+c+"return __p\n}",(t=mi(function(){return T(r,i+"return "+c).apply(zi,o)})).source=c,ko(t))throw t;return t},h.times=function(e,t){if((e=x(e))<1||qi<e)return[];for(var n=Wi,r=P(e,Wi),r=(t=f(t),e-=Wi,Kl(r,t));++n<e;)t(n);return r},h.toFinite=Io,h.toInteger=x,h.toLength=Lo,h.toLower=function(e){return p(e).toLowerCase()},h.toNumber=j,h.toSafeInteger=function(e){return e?et(x(e),-qi,qi):0===e?e:0},h.toString=p,h.toUpper=function(e){return p(e).toUpperCase()},h.trim=function(e,t,n){return(e=p(e))&&(n||t===zi)?Yl(e):e&&(t=u(t))?(n=va(e),e=va(t),sn(n,Jl(n,e),Ql(n,e)+1).join("")):e},h.trimEnd=function(e,t,n){return(e=p(e))&&(n||t===zi)?e.slice(0,os(e)+1):e&&(t=u(t))?sn(n=va(e),0,Ql(n,va(t))+1).join(""):e},h.trimStart=function(e,t,n){return(e=p(e))&&(n||t===zi)?e.replace(Za,""):e&&(t=u(t))?sn(n=va(e),Jl(n,va(t))).join(""):e},h.truncate=function(e,t){var n,r=30,o="...",t=(k(t)&&(n="separator"in t?t.separator:n,r="length"in t?x(t.length):r,o="omission"in t?u(t.omission):o),(e=p(e)).length);if((t=ha(e)?(i=va(e)).length:t)<=r)return e;if((t=r-ya(o))<1)return o;var i,r=i?sn(i,0,t).join(""):e.slice(0,t);if(n!==zi)if(i&&(t+=r.length-t),jo(n)){if(e.slice(t).search(n)){var a,l=r;for((n=n.global?n:I(n.source,p(al.exec(n))+"g")).lastIndex=0;a=n.exec(l);)var s=a.index;r=r.slice(0,s===zi?t:s)}}else e.indexOf(u(n),t)==t||-1<(i=r.lastIndexOf(n))&&(r=r.slice(0,i));return r+o},h.unescape=function(e){return(e=p(e))&&Ba.test(e)?e.replace(Ua,is):e},h.uniqueId=function(e){var t=++G;return p(e)+t},h.upperCase=di,h.upperFirst=pi,h.each=$r,h.eachRight=Jr,h.first=jr,Oi(h,(Vi={},ft(h,function(e,t){L.call(h.prototype,t)||(Vi[t]=e)}),Vi),{chain:!1}),h.VERSION="4.17.21",sa(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){h[e].placeholder=h}),sa(["drop","take"],function(n,r){v.prototype[n]=function(e){e=e===zi?1:S(x(e),0);var t=this.__filtered__&&!r?new v(this):this.clone();return t.__filtered__?t.__takeCount__=P(e,t.__takeCount__):t.__views__.push({size:P(e,Wi),type:n+(t.__dir__<0?"Right":"")}),t},v.prototype[n+"Right"]=function(e){return this.reverse()[n](e).reverse()}}),sa(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;v.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:f(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),sa(["head","last"],function(e,t){var n="take"+(t?"Right":"");v.prototype[e]=function(){return this[n](1).value()[0]}}),sa(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");v.prototype[e]=function(){return this.__filtered__?new v(this):this[n](1)}}),v.prototype.compact=function(){return this.filter(A)},v.prototype.find=function(e){return this.filter(e).head()},v.prototype.findLast=function(e){return this.reverse().find(e)},v.prototype.invokeMap=a(function(t,n){return"function"==typeof t?new v(this):this.map(function(e){return wt(e,t,n)})}),v.prototype.reject=function(e){return this.filter(fo(f(e)))},v.prototype.slice=function(e,t){e=x(e);var n=this;return n.__filtered__&&(0<e||t<0)?new v(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==zi?(t=x(t))<0?n.dropRight(-t):n.take(t-e):n)},v.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},v.prototype.toArray=function(){return this.take(Wi)},ft(v.prototype,function(u,e){var c=/^(?:filter|find|map|reject)|While$/.test(e),f=/^(?:head|last)$/.test(e),d=h[f?"take"+("last"==e?"Right":""):e],p=f||/^find/.test(e);d&&(h.prototype[e]=function(){function e(e){return e=d.apply(h,fa([e],r)),f&&l?e[0]:e}var t,n=this.__wrapped__,r=f?[1]:arguments,o=n instanceof v,i=r[0],a=o||U(n),l=(a&&c&&"function"==typeof i&&1!=i.length&&(o=a=!1),this.__chain__),i=!!this.__actions__.length,s=p&&!l,o=o&&!i;return!p&&a?(n=o?n:new v(this),(t=u.apply(n,r)).__actions__.push({func:qr,args:[e],thisArg:zi}),new y(t,l)):s&&o?u.apply(this,r):(t=this.thru(e),s?f?t.value()[0]:t.value():t)})}),sa(["pop","push","shift","sort","splice","unshift"],function(e){var n=H[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);h.prototype[e]=function(){var e,t=arguments;return o&&!this.__chain__?(e=this.value(),n.apply(U(e)?e:[],t)):this[r](function(e){return n.apply(U(e)?e:[],t)})}}),ft(v.prototype,function(e,t){var n,r=h[t];r&&(n=r.name+"",L.call(je,n)||(je[n]=[]),je[n].push({name:t,func:r}))}),je[xn(zi,2).name]=[{name:"wrapper",func:zi}],v.prototype.clone=function(){var e=new v(this.__wrapped__);return e.__actions__=E(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=E(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=E(this.__views__),e},v.prototype.reverse=function(){var e;return this.__filtered__?((e=new v(this)).__dir__=-1,e.__filtered__=!0):(e=this.clone()).__dir__*=-1,e},v.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=U(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=P(t,e+a);break;case"takeRight":e=S(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=(i=i.end)-a,s=r?i:a-1,u=this.__iteratees__,c=u.length,f=0,d=P(l,this.__takeCount__);if(!n||!r&&o==l&&d==l)return en(e,this.__actions__);var p=[];e:for(;l--&&f<d;){for(var h=-1,m=e[s+=t];++h<c;){var y=u[h],v=y.iteratee,y=y.type,v=v(m);if(2==y)m=v;else if(!v){if(1==y)continue e;break e}}p[f++]=m}return p},h.prototype.at=Wr,h.prototype.chain=function(){return Hr(this)},h.prototype.commit=function(){return new y(this.value(),this.__chain__)},h.prototype.next=function(){this.__values__===zi&&(this.__values__=Do(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?zi:this.__values__[this.__index__++]}},h.prototype.plant=function(e){for(var t,n=this;n instanceof Ne;)var r=Sr(n),o=(r.__index__=0,r.__values__=zi,t?o.__wrapped__=r:t=r,r),n=n.__wrapped__;return o.__wrapped__=e,t},h.prototype.reverse=function(){var e=this.__wrapped__;return e instanceof v?(e=e,(e=(e=this.__actions__.length?new v(this):e).reverse()).__actions__.push({func:qr,args:[Ar],thisArg:zi}),new y(e,this.__chain__)):this.thru(Ar)},h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=function(){return en(this.__wrapped__,this.__actions__)},h.prototype.first=h.prototype.head,le&&(h.prototype[le]=function(){return this}),h}();aa._=as,(A=function(){return as}.call(M,T,M,R))!==zi&&(R.exports=A)}.call(this)}.call(this,T(54),T(253)(e))},function(e,t,n){var r=n(15),o=n(12),i=n(56),a=n(65).f,n=n(34),o=o(function(){a(1)});r({target:"Object",stat:!0,forced:!n||o,sham:!n},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(15),i=n(27),a=n(35),l=n(41),s=n(239),u=n(65),c=n(91);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,o=arguments.length<3?t:arguments[2];return l(t)===o?t[n]:(r=u.f(t,n))?s(r)?r.value:void 0===r.get?void 0:i(r.get,o):a(r=c(t))?e(r,n,o):void 0}})},function(e,t,n){function r(t){if(t&&t.forEach!==s)try{u(t,"forEach",s)}catch(e){t.forEach=s}}var o,i=n(21),a=n(247),l=n(248),s=n(367),u=n(72);for(o in a)a[o]&&r(i[o]&&i[o].prototype);r(l)},function(e,t,n){var u=n(21),c=n(65).f,f=n(72),d=n(48),p=n(180),h=n(234),m=n(121);e.exports=function(e,t){var n,r,o,i=e.target,a=e.global,l=e.stat,s=a?u:l?u[i]||p(i,{}):(u[i]||{}).prototype;if(s)for(n in t){if(r=t[n],o=e.dontCallGetSet?(o=c(s,n))&&o.value:s[n],!m(a?n:i+(l?".":"#")+n,e.forced)&&void 0!==o){if(typeof r==typeof o)continue;h(r,o)}(e.sham||o&&o.sham)&&f(r,"sham",!0),d(s,n,r,e)}}},function(e,t,n){"use strict";var r=n(15),n=n(151);r({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},function(e,t,n){var n=n(116),r=Function.prototype,o=r.bind,i=r.call,a=n&&o.bind(i,i);e.exports=n?function(e){return e&&a(e)}:function(e){return e&&function(){return i.apply(e,arguments)}}},function(e,t,n){"use strict";var r=n(15),o=n(52).map;r({target:"Array",proto:!0,forced:!n(124)("map")},{map:function(e){return o(this,e,1<arguments.length?arguments[1]:void 0)}})},function(L,t,e){"use strict";e(2),e(6),e(7),e(5),e(42),e(23),Object.defineProperty(t,"__esModule",{value:!0});var n={evaluate:!0,getRandomComponentId:!0,getPropertyValue:!0,getElementRect:!0,boolValue:!0,isMongoId:!0,checkCalculated:!0,checkSimpleConditional:!0,checkCustomConditional:!0,checkJsonConditional:!0,checkCondition:!0,checkTrigger:!0,setActionProperty:!0,unescapeHTML:!0,convertStringToHTMLElement:!0,uniqueName:!0,guid:!0,getDateSetting:!0,isValidDate:!0,currentTimezone:!0,offsetDate:!0,zonesLoaded:!0,shouldLoadZones:!0,loadZones:!0,momentDate:!0,formatDate:!0,formatOffset:!0,getLocaleDateFormatInfo:!0,convertFormatToFlatpickr:!0,convertFormatToMoment:!0,convertFormatToMask:!0,getInputMask:!0,unmaskValue:!0,matchInputMask:!0,getNumberSeparators:!0,getNumberDecimalLimit:!0,getCurrencyAffixes:!0,fieldData:!0,delay:!0,iterateKey:!0,uniqueKey:!0,bootstrapVersion:!0,unfold:!0,firstNonNil:!0,withSwitch:!0,observeOverload:!0,getContextComponents:!0,getContextButtons:!0,translateHTMLTemplate:!0,sanitize:!0,fastCloneDeep:!0,interpolate:!0,isInputComponent:!0,getArrayFromComponentPath:!0,hasInvalidComponent:!0,getStringFromComponentPath:!0,round:!0,getIEBrowserVersion:!0,getBrowserInfo:!0,getComponentPathWithoutIndicies:!0,getComponentPath:!0,getDataParentComponent:!0,isPromise:!0,isInsideScopingComponent:!0,getFocusableElements:!0,_:!0,jsonLogic:!0,moment:!0,Evaluator:!0},c=(Object.defineProperty(t,"Evaluator",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"_",{enumerable:!0,get:function(){return c.default}}),t.boolValue=function(e){return c.default.isBoolean(e)?e:c.default.isString(e)?"true"===e.toLowerCase():!!e},t.bootstrapVersion=function(e){if(e.bootstrap)return e.bootstrap;return"function"!=typeof $||"function"!=typeof $().collapse?0:parseInt($.fn.collapse.Constructor.VERSION.split(".")[0],10)},t.checkCalculated=function(e,t,n){e.calculateValue&&c.default.set(n,e.key,b(e.calculateValue,{value:void 0,data:t?t.data:n,row:n,util:this,component:e},"value"))},t.checkCondition=function(e,t,n,r,o){var i=e.customConditional,a=e.conditional;{if(i)return k(0,i,t,n,r,"show",!0,o);if(a&&a.when)return t=O(e,t,o),w(0,a,t,n);if(a&&a.json)return _(e,a.json,t,n,r,!0)}return!0},t.checkCustomConditional=k,t.checkJsonConditional=_,t.checkSimpleConditional=w,t.checkTrigger=function(e,t,n,r,o,i){if(t[t.type])switch(t.type){case"simple":return n=O(e,n,i,t.simple),w(0,t.simple,n,r);case"javascript":return k(0,t.javascript,n,r,o,"result",!1,i);case"json":return _(e,t.json,n,r,o,!1)}return!1},t.convertFormatToFlatpickr=function(e){return e.replace(/Z/g,"").replace(/y/g,"Y").replace("YYYY","Y").replace("YY","y").replace("MMMM","F").replace(/M/g,"n").replace("nnn","M").replace("nn","m").replace(/d/g,"j").replace(/jj/g,"d").replace("EEEE","l").replace("EEE","D").replace("HH","H").replace("hh","G").replace("mm","i").replace("ss","S").replace(/a/g,"K")},t.convertFormatToMask=function(e){return e.replace(/M{4}/g,"MM").replace(/M{3}/g,"***").replace(/e/g,"Q").replace(/[ydhmsHMG]/g,"9").replace(/a/g,"AA")},t.convertFormatToMoment=C,t.convertStringToHTMLElement=function(e,t){return(new window.DOMParser).parseFromString(e,"text/html").body.querySelector(t)},t.currentTimezone=P,t.delay=function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length,r=new Array(2<n?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 l(){return a(),e.apply(void 0,r)}return l.timer=i,l.cancel=a,l},t.evaluate=b,t.fastCloneDeep=function(e){return e&&JSON.parse(JSON.stringify(e))},t.fieldData=function(e,t){if(!e)return"";if(!t||!t.key)return e;{if(t.key.includes(".")){for(var n=e,r=t.key.split("."),o="",i=0;i<r.length;i++){if(o=r[i],!(n=n.hasOwnProperty("_id")?n.data:n).hasOwnProperty(o))return;o===r[r.length-1]&&t.multiple&&!Array.isArray(n[o])&&(n[o]=[n[o]]),n=n[o]}return n}return t.multiple&&!Array.isArray(e[t.key])&&(e[t.key]=[e[t.key]]),"checkbox"===t.type&&"radio"===t.inputType?e[t.name]===t.value:e[t.key]}},t.firstNonNil=void 0,t.formatDate=function(e,t,n,r){e=(0,o.default)(e,r||void 0);if(n===P())return t.match(/\s(z$|z\s)/)?(j(),o.default.zonesLoaded?e.tz(n).format(C(t)):e.format(C(t.replace(/\s(z$|z\s)/,"")))):e.format(C(t));if("UTC"===n)return r=E(e.toDate(),"UTC"),"".concat((0,o.default)(r.date).format(C(t))," UTC");return j(),o.default.zonesLoaded&&n?e.tz(n).format("".concat(C(t)," z")):e.format(C(t))},t.formatOffset=function(e,t,n,r){if(r===P())return e(t,n);if("UTC"===r)return"".concat(e(E(t,"UTC").date,n)," UTC");return j(),o.default.zonesLoaded?(r=E(t,r),"".concat(e(r.date,n)," ").concat(r.abbr)):e(t,n)},t.getArrayFromComponentPath=function(e){return e&&c.default.isString(e)?e.replace(/[[\]]/g,".").replace(/\.\./g,".").replace(/(^\.)|(\.$)/g,"").split(".").map(function(e){return c.default.defaultTo(c.default.toNumber(e),e)}):c.default.isArray(e)?e:[e]},t.getBrowserInfo=T,t.getComponentPath=D,t.getComponentPathWithoutIndicies=function(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"").replace(/\[\d+\]/,"")},t.getContextButtons=function(e){var t=[];return e.utils.eachComponent(e.instance.options.editForm.components,function(e){"button"===e.type&&t.push({label:"".concat(e.key," (").concat(e.label,")"),value:e.key})}),t},t.getContextComponents=function(n){var r=[];return n.utils.eachComponent(n.instance.options.editForm.components,function(e,t){e.key!==n.data.key&&r.push({label:"".concat(e.label||e.key," (").concat(t,")"),value:t})}),r},t.getCurrencyAffixes=function(e){var t=e.currency,t=void 0===t?"USD":t,n=e.decimalLimit,r=e.decimalSeparator,e=e.lang,o="(.*)?".concat(100..toLocaleString(e));n&&(o+="".concat("."===r?"\\.":r).concat(0..toLocaleString(e),"{").concat(n,"}"));o+="(.*)?";e=100..toLocaleString(e,{style:"currency",currency:t,useGrouping:!0,maximumFractionDigits:n||0,minimumFractionDigits:n||0}).replace(".",r).match(new RegExp(o));return{prefix:(null==e?void 0:e[1])||"",suffix:(null==e?void 0:e[2])||""}},t.getDataParentComponent=I,t.getDateSetting=function(e){if(c.default.isNil(e)||c.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,o.default)(e):null;if(t&&t.isValid())return t.toDate();t=null;try{var n=d.default.evaluator("return ".concat(e,";"),"moment")(o.default);"string"==typeof n?t=(0,o.default)(n):"function"==typeof n.toDate?t=(0,o.default)(n.toDate().toUTCString()):n instanceof Date&&(t=(0,o.default)(n))}catch(e){return null}return t&&t.isValid()?t.toDate():null},t.getElementRect=function(e){e=window.getComputedStyle(e,null);return{x:g(e,"left"),y:g(e,"top"),width:g(e,"width"),height:g(e,"height")}},t.getFocusableElements=function(e){return e.querySelectorAll("button:not([disabled]), input:not([disabled]), select:not([disabled]),\n    textarea:not([disabled]), button:not([disabled]), [href]")},t.getIEBrowserVersion=function(){var e=T(),t=e.ie,e=e.version;return t?e:null},t.getInputMask=function(e,t){if(e instanceof Array)return e;var n=[];n.numeric=!0;for(var r=0;r<e.length;r++)switch(e[r]){case"9":n.push(/\d/);break;case"A":n.numeric=!1,n.push(/[a-zA-Z]/);break;case"a":n.numeric=!1,n.push(/[a-z]/);break;case"*":n.numeric=!1,n.push(/[a-zA-Z0-9]/);break;case t:n.numeric=!1,n.push(" ");break;default:n.numeric=!1,n.push(e[r])}return n},t.getLocaleDateFormatInfo=function(e){var t={},e=new Date(2017,11,21).toLocaleDateString(e);return t.dayFirst=e.slice(0,2)===21..toString(),t},t.getNumberDecimalLimit=function(e,t){if(c.default.has(e,"decimalLimit"))return c.default.get(e,"decimalLimit");t=t||20,e=c.default.get(e,"validate.step","any");"any"===e||1<(e=e.toString().split(".")).length&&(t=e[1].length);return t},t.getNumberSeparators=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"en",e=12345.6789.toLocaleString(e).match(/..(.)...(.)../);return e?{delimiter:1<e.length?e[1]:",",decimalSeparator:2<e.length?e[2]:"."}:{delimiter:",",decimalSeparator:"."}},t.getPropertyValue=g,t.getRandomComponentId=function(){return"e".concat(Math.random().toString(36).substring(7))},t.getStringFromComponentPath=function(e){if(!c.default.isArray(e))return e;var n="";return e.forEach(function(e,t){c.default.isNumber(e)?n+="[".concat(e,"]"):n+=0===t?e:".".concat(e)}),n},t.guid=S,t.hasInvalidComponent=function t(e){return e.getComponents().some(function(e){return c.default.isArray(e.components)?t(e):e.error})},t.interpolate=void 0,t.isInputComponent=function(e){if(!1===e.input||!0===e.input)return e.input;switch(e.type){case"htmlelement":case"content":case"columns":case"fieldset":case"panel":case"table":case"tabs":case"well":case"button":return!1;default:return!0}},t.isInsideScopingComponent=function e(t){var n=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];if(!n&&null!=t&&t.hasScopedChildren)return!0;n=I(t);{if(null!=n&&n.hasScopedChildren)return!0;if(null!=n&&n.parent)return e(n.parent,!1)}return!1},t.isMongoId=function(e){return e.toString().match(/^[0-9a-fA-F]{24}$/)},t.isPromise=function(e){return e&&e.then&&"function"==typeof e.then&&"[object Promise]"===Object.prototype.toString.call(e)},t.isValidDate=function(e){return c.default.isDate(e)&&!c.default.isNaN(e.getDate())},t.iterateKey=R,Object.defineProperty(t,"jsonLogic",{enumerable:!0,get:function(){return a.default}}),t.loadZones=j,t.matchInputMask=function(e,t){if(t){if(e.length>t.length)return!1;for(var n=0;n<t.length;n++){var r=e[n]||"",o=t[n];if(!(c.default.isRegExp(o)&&o.test(r)||o===r))return!1}}return!0},Object.defineProperty(t,"moment",{enumerable:!0,get:function(){return o.default}}),t.momentDate=function(e,t,n){e=(0,o.default)(e);"UTC"===n&&(n="Etc/UTC");if((n!==P()||t&&t.match(/\s(z$|z\s)/))&&o.default.zonesLoaded)return e.tz(n);return e},t.observeOverload=function(e){function t(){return a=0}var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=n.limit,o=void 0===r?50:r,r=n.delay,i=void 0===r?500:r,a=0,l=0;return function(){if(0!==l&&(clearTimeout(l),l=0),l=setTimeout(t,i),o<=(a+=1))return clearTimeout(l),t(),e()}},t.offsetDate=E,t.round=function(e,t){if(c.default.isNumber(e))return e.toFixed(t);return e},t.sanitize=function(e,t){if("function"!=typeof u.default.sanitize)return e;var n={ADD_ATTR:["ref","target"],USE_PROFILES:{html:!0}};t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addAttr)&&0<t.sanitizeConfig.addAttr.length&&t.sanitizeConfig.addAttr.forEach(function(e){n.ADD_ATTR.push(e)});t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addTags)&&0<t.sanitizeConfig.addTags.length&&(n.ADD_TAGS=t.sanitizeConfig.addTags);t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedTags)&&0<t.sanitizeConfig.allowedTags.length&&(n.ALLOWED_TAGS=t.sanitizeConfig.allowedTags);t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedAttrs)&&0<t.sanitizeConfig.allowedAttrs.length&&(n.ALLOWED_ATTR=t.sanitizeConfig.allowedAttrs);t.sanitizeConfig&&t.sanitizeConfig.allowedUriRegex&&(n.ALLOWED_URI_REGEXP=t.sanitizeConfig.allowedUriRegex);t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addUriSafeAttr)&&0<t.sanitizeConfig.addUriSafeAttr.length&&(n.ADD_URI_SAFE_ATTR=t.sanitizeConfig.addUriSafeAttr);return u.default.sanitize(e,n)},t.setActionProperty=function(e,t,n,r,o,i){var a=t.property.value;switch(t.property.type){case"boolean":var l=c.default.get(e,a,!1).toString(),s=t.state.toString();l!==s&&c.default.set(e,a,"true"===s);break;case"string":var l={data:o,row:r,component:e,result:n},s=t.property.component?t[t.property.component]:t.text,u=c.default.get(e,a,""),s=(i&&i.interpolate?i:d.default).interpolate(s,l);s!==u&&c.default.set(e,a,s)}return e},t.shouldLoadZones=x,t.translateHTMLTemplate=function(e,t){if(!/<[^>]*>/.test(e))return t(e);var n=document.createElement("div");if(n.innerHTML=e,n.innerText&&n.children.length)return function t(e,n){var r=e.children.length&&h(e.children);var o=r&&r.every(function(t){return 0===t.children.length&&V.some(function(e){return t.nodeName===e})});!r||o?e.innerHTML=M(e,n):r.forEach(function(e){return t(e,n)})}(n,t),n.innerHTML;return e},t.unescapeHTML=function(e){return"undefined"!=typeof window&&"DOMParser"in window?(new window.DOMParser).parseFromString(e,"text/html").documentElement.textContent:e},t.unfold=A,t.uniqueKey=function(e,t){var n=t;for(;e.hasOwnProperty(n);)n=R(n);return n},t.uniqueName=function(e,t,n){(t=t||"{{fileName}}-{{guid}}").includes("{{guid}}")||(t="".concat(t,"-{{guid}}"));var e=e.split("."),r=e.slice(0,e.length-1).join("."),e=1<e.length?".".concat(c.default.last(e)):"";return r=r.substr(0,100),n=Object.assign(n||{},{fileName:r,guid:S()}),"".concat(d.default.interpolate(t,n)).concat(e).replace(/[^0-9a-zA-Z.\-_ ]/g,"-")},t.unmaskValue=function(e,t,n){if(!t||!e||e.length>t.length)return e;for(var r=e.split(""),o=0;o<t.length;o++){var i=e[o]||"",a=t[o];c.default.isRegExp(a)||i!==a||(r[o]="")}return r=r.join("").replace(n,"")},t.withSwitch=function(e,t){var n=e,r=t;return[function(){return n},function(){var e=n;n=r,r=e}]},t.zonesLoaded=function(){return o.default.zonesLoaded},e(1),e(14),e(16),e(26),e(3),e(4),e(25),e(93),e(40),e(45),e(18),e(0),e(126),e(43),e(39),e(32),e(67),e(20),e(60),e(76),e(50),e(51),e(263),p(e(10))),r=p(e(158)),a=p(e(380)),o=p(e(381)),i=p(e(382)),l=e(385),s=p(e(24)),u=p(e(386)),f=e(161),d=(Object.keys(f).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})}),p(e(96)));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function 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)}e=d.default.interpolate;t.interpolate=e;var v=(0,r.default)({Promise:s.default}).fetch;function b(t,r,e,n){var o=null,i=r.component||{key:"unknown"},i=(!r.form&&r.instance&&(r.form=c.default.get(r.instance,"root._form",{})),i.key);if("string"==typeof t){e&&(t+=";return ".concat(e)),n&&(t=t.replace(/({{\s+(.*)\s+}})/,function(e,t,n){return 0===n.indexOf("data.")?c.default.get(r.data,n.replace("data.","")):0===n.indexOf("row.")?c.default.get(r.row,n.replace("row.","")):c.default.get(r.data,n)}));try{t=d.default.evaluator(t,r),r=c.default.values(r)}catch(e){console.warn("An error occured within the custom function for ".concat(i),e),o=null,t=!1}}if("function"==typeof t)try{o=d.default.evaluate(t,r)}catch(e){o=null,console.warn("An error occured within custom function for ".concat(i),e)}else if("object"===y(t))try{o=a.default.apply(t,r)}catch(e){o=null,console.warn("An error occured within custom function for ".concat(i),e)}else t&&console.warn("Unknown function type for ".concat(i));return o}function g(e,t){e=(e=e.getPropertyValue(t))?e.replace(/[^0-9.]/g,""):"0";return parseFloat(e)}function w(e,t,n,r){var o=null,n=(n&&(o=(0,f.getValue)({data:n},t.when)),r&&c.default.isNil(o)&&(o=(0,f.getValue)({data:r},t.when)),c.default.isNil(o)&&(o=""),String(t.eq)),r=String(t.show);return c.default.isObject(o)&&c.default.has(o,t.eq)?String(o[t.eq])===r:Array.isArray(o)&&o.map(String).includes(n)?"true"===r:String(o)===n==("true"===r)}function k(e,t,n,r,o,i,a,l){"string"==typeof t&&(t="var ".concat(i," = true; ").concat(t,"; return ").concat(i,";"));i=l&&l.evaluate?l.evaluate(t,{row:n,data:r,form:o}):b(t,{row:n,data:r,form:o});return null===i?a:i}function _(t,e,n,r,o,i){try{return a.default.apply(e,{data:r,row:n,form:o,_:c.default})}catch(e){return console.warn("An error occurred in jsonLogic advanced condition for ".concat(t.key),e),i}}function O(e,t,n,r){var r=r||e.conditional,e=(n||(n=c.default.cloneDeep(e),(e=n).path=D(e),(e=I(e))&&"object"===y(e)&&(e.path=D(e))),I(n)),n=e?D(e):null;return e&&null!=(e=r.when)&&e.startsWith(n)&&(c.default.set(r={},n,t),t=r),t}function S(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function P(){return o.default.currentTimezone||(o.default.currentTimezone=i.default.determine().name()),o.default.currentTimezone}function E(e,t){if("UTC"===t)return{date:new Date(e.getTime()+6e4*e.getTimezoneOffset()),abbr:"UTC"};t=(0,o.default)(e).tz(t);return{date:new Date(e.getTime()+6e4*(t.utcOffset()+e.getTimezoneOffset())),abbr:t.format("z")}}function x(e){return e!==P()&&"UTC"!==e}function j(e){return e&&!x(e)?new s.default(c.default.noop):o.default.zonesPromise||(o.default.zonesPromise=v("https://cdn.form.io/moment-timezone/data/packed/latest.json").then(function(e){return e.json().then(function(e){o.default.tz.load(e),o.default.zonesLoaded=!0,document&&document.createEvent&&document.body&&document.body.dispatchEvent&&((e=document.createEvent("Event")).initEvent("zonesLoaded",!0,!0),document.body.dispatchEvent(e))})}))}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 R(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),c.default[e])}),a.default.add_operation("getDate",function(e){return(0,o.default)(e).toISOString()}),a.default.add_operation("relativeMinDate",function(e){return(0,o.default)().subtract(e,"days").toISOString()}),a.default.add_operation("relativeMaxDate",function(e){return(0,o.default)().add(e,"days").toISOString()});e=c.default.flow([c.default.partialRight(c.default.map,A),c.default.partialRight(c.default.find,function(e){return!c.default.isUndefined(e)})]);t.firstNonNil=e;var V=["#text","A","B","EM","I","SMALL","STRONG","SUB","SUP","INS","DEL","MARK","CODE"];function M(e,n){if(!e.innerText)return e.innerHTML;var t=e.innerText.replace(d.default.templateSettings.interpolate,"").replace(/\s\s+/g," ").trim(),r=n(t);if(t===r)return e.innerHTML;var o=e.innerHTML.match(/<a[^>]*>(.*?)<\/a>/g);if(o&&o.length){if(1===o.length&&o[0].length===e.innerHTML.length)return e.innerHTML.replace(t,r);o=o.map(function(e){var t=document.createElement("a");return t.innerHTML=e,M(t,n)});return"".concat(r," (").concat(o.join(", "),")")}return e.innerText.replace(t,r)}function T(){var e,t={};return"undefined"!=typeof window&&(e=window.navigator.userAgent.toLowerCase(),(e={browser:(e=/(edge|edg)\/([\w.]+)/.exec(e)||/(opr)[/]([\w.]+)/.exec(e)||/(yabrowser)[ /]([\w.]+)/.exec(e)||/(chrome)[ /]([\w.]+)/.exec(e)||/(iemobile)[/]([\w.]+)/.exec(e)||/(version)(applewebkit)[ /]([\w.]+).*(safari)[ /]([\w.]+)/.exec(e)||/(webkit)[ /]([\w.]+).*(version)[ /]([\w.]+).*(safari)[ /]([\w.]+)/.exec(e)||/(webkit)[ /]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ /]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0<=e.indexOf("trident")&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[])[5]||e[3]||e[1]||"",version:e[4]||e[2]||"0"}).browser&&(t[e.browser]=!0,t.version=parseInt(e.version,10)),(t.chrome||t.opr||t.safari||t.edg||t.yabrowser)&&(t.isWebkit=!0),(t.rv||t.iemobile)&&(t.ie=!0),t.edg&&(t.edge=!0),t.opr&&(t.opera=!0)),t}function D(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return e&&e.key&&"wizard"!==(null==e||null==(t=e._form)?void 0:t.display)?(n=e.isInputComponent||!0===e.input?"".concat(e.key).concat(n?".":"").concat(n):n,D(e.parent,n)):n}function I(e){if(e)return e=e.parent,e&&(e.isInputComponent||e.input)?e:I(e)}},function(e,t,n){var r=n(34),o=n(104).EXISTS,i=n(17),n=n(38).f,a=Function.prototype,l=i(a.toString),s=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=i(s.exec);r&&!o&&n(a,"name",{configurable:!0,get:function(){try{return u(s,l(this))[1]}catch(e){return""}}})},function(n,e,t){!function(e){function t(e){return e&&e.Math==Math&&e}n.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||function(){return this}()||Function("return this")()}.call(this,t(54))},function(e,t,n){"use strict";var r=n(15),o=n(52).filter;r({target:"Array",proto:!0,forced:!n(124)("filter")},{filter:function(e){return o(this,e,1<arguments.length?arguments[1]:void 0)}})},function(e,t,n){var r=n(15),o=n(46),i=n(122);r({target:"Object",stat:!0,forced:n(12)(function(){i(1)})},{keys:function(e){return i(o(e))}})},function(o,i,a){!function(e,g){var t,n,r;
/*! Native Promise Only
    v0.8.1 (c) Kyle Simpson
    MIT License: http://getify.mit-license.org
*/
r=function(){"use strict";var t,n,r,o,i,e=Object.prototype.toString,a=void 0!==g?function(e){return g(e)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(e){t=function(e,t,n){return e[t]=n,e}}function l(e,t){this.fn=e,this.self=t,this.next=void 0}function s(e,t){v.add(e,t),n=n||a(v.drain)}function u(e){var t,n=typeof e;return"function"==typeof(t=null==e||"object"!=n&&"function"!=n?t:e.then)&&t}function c(){for(var e=0;e<this.chain.length;e++){n=t=i=o=r=void 0;var t,n,r=this,o=1===this.state?this.chain[e].success:this.chain[e].failure,i=this.chain[e];try{!1===o?i.reject(r.msg):(t=!0===o?r.msg:o.call(void 0,r.msg))===i.promise?i.reject(TypeError("Promise-chain cycle")):(n=u(t))?n.call(t,i.resolve,i.reject):i.resolve(t)}catch(e){i.reject(e)}}this.chain.length=0}function f(e){var n,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(n=u(e))?s(function(){var t=new h(r);try{n.call(e,function(){f.apply(t,arguments)},function(){d.apply(t,arguments)})}catch(e){d.call(t,e)}}):(r.msg=e,r.state=1,0<r.chain.length&&s(c,r))}catch(e){d.call(new h(r),e)}}}function d(e){var t=this;t.triggered||(t.triggered=!0,(t=t.def?t.def:t).msg=e,t.state=2,0<t.chain.length&&s(c,t))}function p(e,n,r,o){for(var t=0;t<n.length;t++)!function(t){e.resolve(n[t]).then(function(e){r(t,e)},o)}(t)}function h(e){this.def=e,this.triggered=!1}function m(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function y(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var r=new m(this);this.then=function(e,t){var n={success:"function"!=typeof e||e,failure:"function"==typeof t&&t};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),r.chain.push(n),0!==r.state&&s(c,r),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){f.call(r,e)},function(e){d.call(r,e)})}catch(e){d.call(r,e)}}var v={add:function(e,t){i=new l(e,t),o?o.next=i:r=i,o=i,i=void 0},drain:function(){var e=r;for(r=o=n=void 0;e;)e.fn.call(e.self),e=e.next}},b=t({},"constructor",y,!1);return t(y.prototype=b,"__NPO__",0,!1),t(y,"resolve",function(n){return n&&"object"==typeof n&&1===n.__NPO__?n:new this(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");e(n)})}),t(y,"reject",function(n){return new this(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");t(n)})}),t(y,"all",function(t){var a=this;return"[object Array]"!=e.call(t)?a.reject(TypeError("Not an array")):0===t.length?a.resolve([]):new a(function(n,e){if("function"!=typeof n||"function"!=typeof e)throw TypeError("Not a function");var r=t.length,o=Array(r),i=0;p(a,t,function(e,t){o[e]=t,++i===r&&n(o)},e)})}),t(y,"race",function(t){var r=this;return"[object Array]"!=e.call(t)?r.reject(TypeError("Not an array")):new r(function(n,e){if("function"!=typeof n||"function"!=typeof e)throw TypeError("Not a function");p(r,t,function(e,t){n(t)},e)})}),y},(n=void 0!==e?e:this)[t="Promise"]=n[t]||r(),o.exports?o.exports=n[t]:void 0!==(e=function(){return n[t]}.call(i,a,i,o))&&(o.exports=e)}.call(this,a(54),a(373).setImmediate)},function(e,t,n){"use strict";var r=n(104).PROPER,o=n(48),i=n(41),a=n(47),l=n(12),s=n(254),n="toString",u=RegExp.prototype[n],l=l(function(){return"/a/b"!=u.call({source:"a",flags:"b"})}),r=r&&u.name!=n;(l||r)&&o(RegExp.prototype,n,function(){var e=i(this);return"/"+a(e.source)+"/"+a(s(e))},{unsafe:!0})},function(e,t,n){"use strict";var _=n(81),o=n(27),r=n(17),i=n(153),a=n(12),O=n(41),S=n(29),P=n(66),E=n(73),x=n(47),l=n(62),j=n(190),s=n(87),C=n(371),R=n(154),u=n(30)("replace"),A=Math.max,M=Math.min,T=r([].concat),D=r([].push),I=r("".indexOf),L=r("".slice),n="$0"==="a".replace(/./,"$0"),c=!!/./[u]&&""===/./[u]("a","$0");i("replace",function(e,g,w){var k=c?"$":"$0";return[function(e,t){var n=l(this),r=null==e?void 0:s(e,u);return r?o(r,e,n,t):o(g,x(n),e,t)},function(e,t){var n=O(this),r=x(e);if("string"==typeof t&&-1===I(t,k)&&-1===I(t,"$<")){e=w(g,n,r,t);if(e.done)return e.value}for(var o,i=S(t),a=(i||(t=x(t)),n.global),l=(a&&(o=n.unicode,n.lastIndex=0),[]);null!==(d=R(n,r))&&(D(l,d),a);)""===x(d[0])&&(n.lastIndex=j(r,E(n.lastIndex),o));for(var s,u="",c=0,f=0;f<l.length;f++){for(var d,p=x((d=l[f])[0]),h=A(M(P(d.index),r.length),0),m=[],y=1;y<d.length;y++)D(m,void 0===(s=d[y])?s:String(s));var v=d.groups,b=i?(b=T([p],m,h,r),void 0!==v&&D(b,v),x(_(t,void 0,b))):C(p,r,h,m,v,t);c<=h&&(u+=L(r,c,h)+b,c=h+p.length)}return u+L(r,c)}]},!!a(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!n||c)},function(e,t,n){var n=n(116),r=Function.prototype.call;e.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=l(n(53)),r=l(n(74)),i=l(n(115)),a=l(n(10));function l(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)}}function u(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}n=function(){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function")}var e,t,n;return e=r,n=[{key:"EditFormUtils",get:function(){return r._editFormUtils},set:function(e){r._editFormUtils=e}},{key:"baseEditForm",get:function(){return r._baseEditForm},set:function(e){r._baseEditForm=e}},{key:"recalculateComponents",value:function(){window&&window.Formio&&window.Formio.AllComponents&&r.setComponents(window.Formio.AllComponents)}},{key:"components",get:function(){return r._components=r._components?r._components:{}}},{key:"setComponents",value:function(e){e.base&&(e.base.tableView=function(e,t){return r.create(t.component,t.options||{},t.data||{},!0).getView(e)}),a.default.assign(r.components,e)}},{key:"addComponent",value:function(e,t){return r.setComponent(e,t)}},{key:"setComponent",value:function(e,t){r.components[e]=t}},{key:"create",value:function(e,t,n){return new(e.type&&r.components.hasOwnProperty(e.type)?r.components[e.type]:e.arrayTree?r.components.datagrid:e.tree?r.components.nesteddata:Array.isArray(e.components)?r.components.nested:t&&t.server?r.components.hidden:o.default)(e,t,n)}}],(t=null)&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),r}();u(t.default=n,"_editFormUtils",r.default),u(n,"_baseEditForm",i.default)},function(e,t){e.exports=function(e){return"function"==typeof e}},function(e,t,n){var r=n(21),o=n(103),i=n(37),a=n(119),l=n(101),s=n(229),u=o("wks"),c=r.Symbol,f=c&&c.for,d=s?c:c&&c.withoutSetter||a;e.exports=function(e){var t;return i(u,e)&&(l||"string"==typeof u[e])||(t="Symbol."+e,l&&i(c,e)?u[e]=c[e]:u[e]=(s&&f?f:d)(t)),u[e]}},function(e,t,n){var r=n(15),o=n(34),s=n(235),u=n(56),c=n(65),f=n(106);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=u(e),o=c.f,i=s(r),a={},l=0;i.length>l;)void 0!==(n=o(r,t=i[l++]))&&f(a,t,n);return a}})},function(e,t,n){"use strict";var r=n(15),u=n(146),c=n(144),f=n(35),d=n(89),p=n(49),h=n(56),m=n(106),o=n(30),i=n(124),y=n(105),n=i("slice"),v=o("species"),b=Array,g=Math.max;r({target:"Array",proto:!0,forced:!n},{slice:function(e,t){var n,r,o,i=h(this),a=p(i),l=d(e,a),s=d(void 0===t?a:t,a);if(u(i)&&(n=i.constructor,(n=c(n)&&(n===b||u(n.prototype))||f(n)&&null===(n=n[v])?void 0:n)===b||void 0===n))return y(i,l,s);for(r=new(void 0===n?b:n)(g(s-l,0)),o=0;l<s;l++,o++)l in i&&m(r,o,i[l]);return r.length=o,r}})},function(e,I,t){"use strict";function n(e){var t,e=g(e);if(f(e))return(t=S(e))&&d(t,A)?t[A]:n(e)}function r(e){return!!f(e)&&(e=p(e),d(T,e)||d(D,e))}var o,i,a,l=t(311),s=t(34),u=t(21),c=t(29),f=t(35),d=t(37),p=t(90),h=t(88),m=t(72),y=t(48),v=t(38).f,b=t(71),g=t(91),w=t(108),k=t(30),_=t(119),t=t(59),O=t.enforce,S=t.get,t=u.Int8Array,P=t&&t.prototype,E=u.Uint8ClampedArray,E=E&&E.prototype,x=t&&g(t),j=P&&g(P),t=Object.prototype,C=u.TypeError,k=k("toStringTag"),R=_("TYPED_ARRAY_TAG"),A="TypedArrayConstructor",M=l&&!!w&&"Opera"!==p(u.opera),_=!1,T={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},D={BigInt64Array:8,BigUint64Array:8};for(o in T)(a=(i=u[o])&&i.prototype)?O(a)[A]=i:M=!1;for(o in D)(a=(i=u[o])&&i.prototype)&&(O(a)[A]=i);if((!M||!c(x)||x===Function.prototype)&&(x=function(){throw C("Incorrect invocation")},M))for(o in T)u[o]&&w(u[o],x);if((!M||!j||j===t)&&(j=x.prototype,M))for(o in T)u[o]&&w(u[o].prototype,j);if(M&&g(E)!==j&&w(E,j),s&&!d(j,k))for(o in _=!0,v(j,k,{get:function(){return f(this)?this[R]:void 0}}),T)u[o]&&m(u[o],R,o);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:_&&R,aTypedArray:function(e){if(r(e))return e;throw C("Target is not a typed array")},aTypedArrayConstructor:function(e){if(!c(e)||w&&!b(x,e))throw C(h(e)+" is not a typed array constructor");return e},exportTypedArrayMethod:function(t,n,e,r){if(s){if(e)for(var o in T){o=u[o];if(o&&d(o.prototype,t))try{delete o.prototype[t]}catch(e){try{o.prototype[t]=n}catch(e){}}}j[t]&&!e||y(j,t,!e&&M&&P[t]||n,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(s){if(w){if(n)for(r in T)if((o=u[r])&&d(o,e))try{delete o[e]}catch(e){}if(x[e]&&!n)return;try{return y(x,e,!n&&M&&x[e]||t)}catch(e){}}for(r in T)!(o=u[r])||o[e]&&!n||y(o,e,t)}},getTypedArrayConstructor:n,isView:function(e){if(!f(e))return!1;e=p(e);return"DataView"===e||d(T,e)||d(D,e)},isTypedArray:r,TypedArray:x,TypedArrayPrototype:j}},function(e,t,n){n=n(12);e.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t,n){var r=n(29);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},function(e,E,x){"use strict";!function(r){x(32),x(20),x(42),Object.defineProperty(E,"__esModule",{value:!0}),E.default=E.GlobalFormio=void 0,x(16),x(93),x(152),x(43),x(0),x(60),x(25),x(26),x(39),x(40),x(45),x(67),x(1),x(14),x(76),x(22),x(109),x(18),x(2),x(6),x(7),x(3),x(5),x(4);var c=a(x(24)),e=a(x(158)),t=a(x(196)),o=a(x(413)),y=a(x(279)),p=a(x(433)),h=a(x(95)),n=a(x(287)),l=a(x(439)),v=x(19),i=a(x(441));function a(e){return e&&e.__esModule?e:{default:e}}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||s(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){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}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 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){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)}x(442);function g(e){return null==e}function w(e){return e&&"object"===d(e)}var e=(0,e.default)({Promise:c.default}),m=e.fetch,k=e.Headers;function _(e){var t=(0,n.default)(e);return Array.isArray(e)&&(t.skip=e.skip,t.limit=e.limit,t.serverCount=e.serverCount),t}var O,e=function(){function m(r){var o=this,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},t=this,n=m;if(!(t instanceof n))throw new TypeError("Cannot call a class as a function");if(!(this instanceof m))return new m(r);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=r,(this.options=e).hasOwnProperty("base")?this.base=e.base:m.baseUrl?this.base=m.baseUrl:"undefined"!=typeof window&&(this.base=window.location.href.match(/http[s]?:\/\/api./)[0]),r){e.hasOwnProperty("project")&&(this.projectUrl=e.project);var t=this.projectUrl||m.projectUrl,n=/(^|\/)(project)($|\/[^/]+)/,e=-1!==r.search(n),i=(t&&this.base===t&&!e&&(this.noProject=!0,this.projectUrl=this.base),0!==r.indexOf("http")&&0!==r.indexOf("//")&&(r=this.base+r),this.getUrlParts(r)),a=[],l=i[1]+i[2],s=(r=3<i.length?i[3]:"").split("?"),u=(1<s.length&&(r=s[0],this.query="?".concat(s[1])),function(e,t){o["".concat(e,"sUrl")]="".concat(t,"/").concat(e);var n=new RegExp("/".concat(e,"/([^/]+)"));return-1!==r.search(n)&&(a=r.match(n),o["".concat(e,"Url")]=a?t+a[0]:"",o["".concat(e,"Id")]=1<a.length?a[1]:"",t+=a[0]),t}),s=function e(t,n,r){for(var o in t)t.hasOwnProperty(o)&&(o=t[o],Array.isArray(o)?e(o,n,!0):(o=u(o,n),n=r?n:o))},c=(this.projectUrl&&this.projectUrl!==this.base||(this.projectUrl||e||"Subdirectories"!==m.pathType?this.projectUrl=l:(c="^".concat(l.replace(/\//g,"\\/"),".[^/]+"),t=t.match(new RegExp(c)),this.projectUrl=t?t[0]:l)),!1);if(m.pathType&&(c="Subdomains"!==m.pathType),this.noProject||(e?(s(["project"],l),r=r.replace(n,"")):l===this.base?3<i.length&&1<r.split("/").length&&((t=r.split("/")).shift(),this.projectId=t.shift(),r="/".concat(t.join("/")),this.projectUrl="".concat(l,"/").concat(this.projectId)):2<i.length&&(2<i[2].split(".").length||l.includes("localhost"))&&!c&&(this.projectUrl=l,this.projectId=i[2].split(".")[0]),this.projectsUrl=this.projectsUrl||"".concat(this.base,"/project")),s(["role"],this.projectUrl),/(^|\/)(form)($|\/)/.test(r))s(["form",["submission","action","v"]],this.projectUrl);else{var f,d,e=new RegExp("/(submission|action|v)($|/.*)"),p=r.match(e),h=(this.pathType=p&&1<p.length?p[1]:"",r=(r=r.replace(e,"")).replace(/\/$/,""),this.formsUrl="".concat(this.projectUrl,"/form"),this.formUrl=r?this.projectUrl+r:"",this.formId=r.replace(/^\/+|\/+$/g,""),["submission","action","v"]);for(f in h)h.hasOwnProperty(f)&&(d=h[f],this["".concat(d,"sUrl")]="".concat(this.projectUrl+r,"/").concat(d),this.pathType===d&&2<p.length&&p[2]&&(this["".concat(d,"Id")]=p[2].replace(/^\/+|\/+$/g,""),this["".concat(d,"Url")]=this.projectUrl+r+p[0]))}m.projectUrlSet||(m.projectUrl=this.projectUrl)}else this.projectUrl=m.projectUrl||"".concat(this.base,"/project"),this.projectsUrl="".concat(this.base,"/project"),this.projectId=!1,this.query=""}var e,t,n;return e=m,n=[{key:"loadProjects",value:function(e,t){return w(e=e||"")&&(e="?".concat(m.serialize(e.params))),m.makeStaticRequest("".concat(m.baseUrl,"/project").concat(e),"GET",null,t)}},{key:"getUrlParts",value:function(e,t){var t=t&&t.base?t.base:m.baseUrl,n="^(http[s]?:\\/\\/)";return t&&0===e.indexOf(t)?n+="(".concat(t.replace(/^http[s]?:\/\//,""),")"):n+="([^/]+)",n+="($|\\/.*)",e.match(new RegExp(n))}},{key:"serialize",value:function(e,t){var n,r,o=[];for(n in e)e.hasOwnProperty(n)&&o.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent((r=e[n],t?t(r):r))));return o.join("&")}},{key:"getRequestArgs",value:function(e,t,n,r,o,i){n={url:n,method:r=(r||"GET").toUpperCase(),data:o||null,opts:i=i&&w(i)?i:{}};return t&&(n.type=t),e&&(n.formio=e),n}},{key:"makeStaticRequest",value:function(e,t,n,r){var o=m.getRequestArgs(null,"",e,t,n,r),e=m.pluginWait("preRequest",o).then(function(){return m.pluginGet("staticRequest",o).then(function(e){return g(e)?m.request(o.url,o.method,o.data,o.opts.header,o.opts):e})});return m.pluginAlter("wrapStaticRequestPromise",e,o)}},{key:"makeRequest",value:function(e,t,n,r,o,i){if(!e)return m.makeStaticRequest(n,r,o,i);var a=m.getRequestArgs(e,t,n,r,o,i),t=(a.opts=a.opts||{},a.opts.formio=e,a.opts.headers||(a.opts.headers={}),a.opts.headers=(0,l.default)(a.opts.headers,{Accept:"application/json","Content-type":"application/json"}),m.pluginWait("preRequest",a).then(function(){return m.pluginGet("request",a).then(function(e){return g(e)?m.request(a.url,a.method,a.data,a.opts.header,a.opts):e})}));return m.pluginAlter("wrapRequestPromise",t,a)}},{key:"request",value:function(n,r,i,e,a){if(!n)return c.default.reject("No url provided");var l=m,t=(r=(r||"GET").toUpperCase(),(a=d(a)===d(!0)?{ignoreCache:a}:a)&&w(a)||(a={}),btoa(encodeURI(n)));if(!a.ignoreCache&&"GET"===r&&l.cache.hasOwnProperty(t))return c.default.resolve(_(l.cache[t]));var e=e||new k(a.headers||{Accept:"application/json","Content-type":"application/json"}),o=l.getToken(a),s=(o&&!a.noToken&&e.append("x-jwt-token",o),{}),o=(e.forEach(function(e,t){s[t]=e}),{method:r,headers:s,mode:"cors"}),u=(i&&(o.body=JSON.stringify(i)),((o=l.pluginAlter("requestOptions",o,n)).namespace||l.namespace)&&(a.namespace=o.namespace||l.namespace),o.headers["x-jwt-token"]);return l.pluginAlter("wrapFetchRequestPromise",l.fetch(n,o),{url:n,method:r,data:i,opts:a}).then(function(o){if(!(o=l.pluginAlter("requestResponse",o,l,i)).ok){if(440===o.status)l.setToken(null,a),l.events.emit("formio.sessionExpired",o.body);else if(401===o.status)l.events.emit("formio.unauthorized",o.body);else if(416===o.status)l.events.emit("formio.rangeIsNotSatisfiable",o.body);else if(504===o.status)return c.default.reject(new Error("Network request failed"));return(o.headers.get("content-type").includes("application/json")?o.json():o.text()).then(function(e){return c.default.reject(e)})}var e=o.headers.get("x-jwt-token"),t=!1;return"GET"!==r||u||!e||a.external||n.includes("token=")||n.includes("x-jwt-token=")||(console.warn("Token was introduced in request."),t=!0),200<=o.status&&o.status<300&&e&&""!==e&&!t&&l.setToken(e,a),204===o.status?{}:(o.headers.get("content-type").includes("application/json")?o.json():o.text()).then(function(e){var t,n=o.headers.get("content-range");if(n&&w(e)&&("*"!==(n=n.split("/"))[0]&&(t=n[0].split("-"),e.skip=Number(t[0]),e.limit=t[1]-t[0]+1),e.serverCount="*"===n[1]?n[1]:Number(n[1])),!a.getHeaders)return e;var r={};return o.headers.forEach(function(e,t){r[t]=e}),{result:e,headers:r}})}).then(function(e){return a.getHeaders?e:("GET"===r&&(l.cache[t]=e),_(e))}).catch(function(e){return"Bad Token"===e&&(l.setToken(null,a),l.events.emit("formio.badToken",e)),e.message&&((e=new Error("Could not connect to API server (".concat(e.message,"): ").concat(n))).networkError=!0),"GET"===r&&delete l.cache[t],c.default.reject(e)})}},{key:"token",get:function(){return(m.tokens=m.tokens?m.tokens:{}).formioToken||""},set:function(e){(m.tokens=m.tokens?m.tokens:{}).formioToken=e||""}},{key:"setToken",value:function(){var t=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"")||"",e="string"==typeof(e=1<arguments.length?arguments[1]:void 0)?{namespace:e}:e||{},n="".concat(e.namespace||m.namespace||"formio","Token");if(m.tokens||(m.tokens={}),!t){e.fromUser||(e.fromToken=!0,m.setUser(null,e));try{localStorage.removeItem(n)}catch(e){o.default.erase(n,{path:"/"})}return m.tokens[n]=t,c.default.resolve(null)}if(m.tokens[n]!==t){m.tokens[n]=t;try{localStorage.setItem(n,t)}catch(e){o.default.set(n,t,{path:"/"})}}return this.currentUserResolved?m.currentUser(e.formio,e):c.default.resolve(null)}},{key:"getToken",value:function(e){var t="".concat((e="string"==typeof e?{namespace:e}:e||{}).namespace||m.namespace||"formio","Token"),n=e.decode?"".concat(t,"Decoded"):t;if((m.tokens=m.tokens?m.tokens:{})[n])return m.tokens[n];try{return m.tokens[t]=localStorage.getItem(t)||"",e.decode?(m.tokens[n]=m.tokens[t]?(0,i.default)(m.tokens[t]):{},m.tokens[n]):m.tokens[t]}catch(e){return m.tokens[t]=o.default.get(t),m.tokens[t]}}},{key:"setUser",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n="".concat(e.namespace||m.namespace||"formio","User");if(!t){e.fromToken||(e.fromUser=!0,m.setToken(null,e)),m.events.emit("formio.user",null);try{return localStorage.removeItem(n)}catch(e){return o.default.erase(n,{path:"/"})}}try{localStorage.setItem(n,JSON.stringify(t))}catch(e){o.default.set(n,JSON.stringify(t),{path:"/"})}m.events.emit("formio.user",t)}},{key:"getUser",value:function(t){t="".concat((t=t||{}).namespace||m.namespace||"formio","User");try{return JSON.parse(localStorage.getItem(t)||null)}catch(e){return JSON.parse(o.default.get(t))}}},{key:"setBaseUrl",value:function(e){m.baseUrl=e,m.projectUrlSet||(m.projectUrl=e)}},{key:"getBaseUrl",value:function(){return m.baseUrl}},{key:"setApiUrl",value:function(e){return m.setBaseUrl(e)}},{key:"getApiUrl",value:function(){return m.getBaseUrl()}},{key:"setAppUrl",value:function(e){console.warn("Formio.setAppUrl() is deprecated. Use Formio.setProjectUrl instead."),m.projectUrl=e,m.projectUrlSet=!0}},{key:"setProjectUrl",value:function(e){m.projectUrl=e,m.projectUrlSet=!0}},{key:"setAuthUrl",value:function(e){m.authUrl=e}},{key:"getAppUrl",value:function(){return console.warn("Formio.getAppUrl() is deprecated. Use Formio.getProjectUrl instead."),m.projectUrl}},{key:"getProjectUrl",value:function(){return m.projectUrl}},{key:"clearCache",value:function(){m.cache={}}},{key:"noop",value:function(){}},{key:"identity",value:function(e){return e}},{key:"deregisterPlugin",value:function(t){return m.plugins.length!==(m.plugins=m.plugins.filter(function(e){return e!==t&&e.__name!==t||((e.deregister||m.noop).call(t,m),!1)})).length}},{key:"registerPlugin",value:function(e,t){var n=m;n.plugins.push(e),n.plugins.sort(function(e,t){return(t.priority||0)-(e.priority||0)}),e.__name=t,(e.init||n.noop).call(e,n)}},{key:"getPlugin",value:function(e){var t,n=function(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t};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 o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}(m.plugins);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.__name===e)return r}}catch(e){n.e(e)}finally{n.f()}return null}},{key:"pluginWait",value:function(n){for(var e=arguments.length,r=new Array(1<e?e-1:0),t=1;t<e;t++)r[t-1]=arguments[t];return c.default.all(m.plugins.map(function(e){var t;return(t=e[n]||m.noop).call.apply(t,[e].concat(r))}))}},{key:"pluginGet",value:function(o){for(var e=arguments.length,i=new Array(1<e?e-1:0),t=1;t<e;t++)i[t-1]=arguments[t];return function t(n){var e,r=m.plugins[n];return r?c.default.resolve((e=r[o]||m.noop).call.apply(e,[r].concat(i))).then(function(e){return g(e)?t(n+1):e}):c.default.resolve(null)}(0)}},{key:"pluginAlter",value:function(n,e){for(var t=arguments.length,r=new Array(2<t?t-2:0),o=2;o<t;o++)r[o-2]=arguments[o];return m.plugins.reduce(function(e,t){return(t[n]||m.identity).apply(void 0,[e].concat(r))},e)}},{key:"accessInfo",value:function(e){var t=(e||m).projectUrl;return m.makeRequest(e,"accessInfo","".concat(t,"/access"))}},{key:"projectRoles",value:function(e){var t=(e||m).projectUrl;return m.makeRequest(e,"projectRoles","".concat(t,"/role"))}},{key:"currentUser",value:function(e,t){var n=this,r=(r=m.authUrl)||(e?e.projectUrl:m.projectUrl||m.baseUrl),o=(r+="/current",m.getUser(t));if(o)return m.pluginAlter("wrapStaticRequestPromise",c.default.resolve(o),{url:r,method:"GET",options:t});o=m.getToken(t);return t&&t.external||o?(this.currentUserResolved=!1,m.makeRequest(e,"currentUser",r,"GET",null,t).then(function(e){return n.currentUserResolved=!0,m.setUser(e,t),e})):m.pluginAlter("wrapStaticRequestPromise",c.default.resolve(null),{url:r,method:"GET",options:t})}},{key:"logout",value:function(e,t){(t=t||{}).formio=e;var n=m.authUrl||(e?e.projectUrl:m.baseUrl);return m.makeRequest(e,"logout","".concat(n,"/logout")).then(function(e){return m.setToken(null,t),m.setUser(null,t),m.clearCache(),e}).catch(function(e){throw m.setToken(null,t),m.setUser(null,t),m.clearCache(),e})}},{key:"pageQuery",value:function(){var t={paths:[]},e=location.hash.substr(1).replace(/\?/g,"&").split("&"),n=[];return location.search.substr(1).split("&").forEach(function(e){1<(n=e.split("=")).length&&(t[n[0]]=n[1]&&decodeURIComponent(n[1]))}),e.forEach(function(e){1<(n=e.split("=")).length?t[n[0]]=n[1]&&decodeURIComponent(n[1]):0===e.indexOf("/")&&(t.paths=e.substr(1).split("/"))}),t}},{key:"oAuthCurrentUser",value:function(e,t){return m.currentUser(e,{external:!0,headers:{Authorization:"Bearer ".concat(t)}})}},{key:"samlInit",value:function(e){e=e||{};var t,n=m.pageQuery();return n.saml?(m.setUser(null),n=m.setToken(n.saml),t=(t=window.location.toString()).substring(0,t.indexOf("?")),window.location.hash&&(t+=window.location.hash),window.history.replaceState({},document.title,t),n):(e.relay||(e.relay=window.location.href),window.location.href="".concat(m.authUrl||m.projectUrl,"/saml/sso?relay=").concat(encodeURI(e.relay)),!1)}},{key:"oktaInit",value:function(o){var e;return o=o||{},void 0!==("undefined"==typeof OktaAuth?"undefined":d(OktaAuth))&&(o.OktaAuth=OktaAuth),void 0===d(o.OktaAuth)?(e="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.",console.warn(e),c.default.reject(e)):new c.default(function(t,n){var e=o.OktaAuth,r=(delete o.OktaAuth,new e(o));r.tokenManager.get("accessToken").then(function(e){e?t(m.oAuthCurrentUser(o.formio,e.accessToken)):location.hash?r.token.parseFromUrl().then(function(e){r.tokenManager.add("accessToken",e),t(m.oAuthCurrentUser(o.formio,e.accessToken))}).catch(function(e){console.warn(e),n(e)}):(r.token.getWithRedirect({responseType:"token",scopes:o.scopes}),t(!1))}).catch(function(e){n(e)})})}},{key:"ssoInit",value:function(e,t){switch(e){case"saml":return m.samlInit(t);case"okta":return m.oktaInit(t);default:return console.warn("Unknown SSO type"),c.default.reject("Unknown SSO type")}}},{key:"requireLibrary",value:function(a,t,e,n,l){m.libraries.hasOwnProperty(a)||(m.libraries[a]={},m.libraries[a].ready=new c.default(function(e,t){m.libraries[a].resolve=e,m.libraries[a].reject=t}),o="".concat(a,"Callback"),n||window[o]||(window[o]=function(){return m.libraries[a].resolve()}),(o=(0,h.default)(window,t))?m.libraries[a].resolve(o):((e=Array.isArray(e)?e:[e]).forEach(function(e){var t={},n="";switch((e="string"==typeof 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]);l&&r.addEventListener("load",function(){return l(m.libraries[a].ready)});var i=document.head;i&&i.appendChild(r)}),n&&(r=setInterval(function(){var e=(0,h.default)(window,t);e&&(clearInterval(r),m.libraries[a].resolve(e))},200))));var r,o=m.libraries[a].ready;return l?l(o):o}},{key:"libraryReady",value:function(e){return m.libraries.hasOwnProperty(e)&&m.libraries[e].ready?m.libraries[e].ready:c.default.reject("".concat(e," library was not required."))}},{key:"addToGlobal",value:function(e){"object"!==d(e)||e.Formio||(e.Formio=m)}},{key:"setPathType",value:function(e){"string"==typeof e&&(m.pathType=e)}},{key:"getPathType",value:function(){return m.pathType}},{key:"rulesEntities",get:function(){return{ValueSources:m.ValueSources,Conjunctions:m.Conjunctions,Operators:m.Operators,Transformers:m.Transformers,QuickRules:m.QuickRules,Rules:m.Rules}}},{key:"GlobalFormio",get:function(){return void 0!==r&&r.Formio?r.Formio:"undefined"!=typeof window&&window.Formio?window.Formio:m}}],(t=[{key:"delete",value:function(e,t){var n="".concat(e,"Id"),r="".concat(e,"Url");return this[n]?(m.cache={},this.makeRequest(e,this[r],"delete",null,t)):c.default.reject("Nothing to delete")}},{key:"index",value:function(e,t,n){var r="".concat(e,"Url");return(t=t||"")&&w(t)&&(t="?".concat(m.serialize(t.params))),this.makeRequest(e,this[r]+t,"get",null,n)}},{key:"save",value:function(e,t,n){var r="".concat(e,"Id"),o="".concat(e,"Url"),i=this[r]||t._id?"put":"post",o=this[r]?this[o]:this["".concat(e,"sUrl")];return this[r]||!t._id||"put"!=i||o.includes(t._id)||(o+="/".concat(t._id)),m.cache={},this.makeRequest(e,o+this.query,i,t,n)}},{key:"load",value:function(e,t,n){var r="".concat(e,"Id"),o="".concat(e,"Url");if(t=(t=t&&w(t)?m.serialize(t.params):t)?(this.query?"".concat(this.query,"&"):"?").concat(t):this.query,!this[r])return c.default.reject("Missing ".concat(r));r=this[o]+t;return"form"!==e||isNaN(parseInt(this.vId))||0===parseInt(this.vId)||(r=(r+=r.match(/\?/)?"&":"?")+"formRevision=".concat(this.vId)),this.makeRequest(e,r,"get",null,n)}},{key:"makeRequest",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m.makeRequest.apply(m,[this].concat(t))}},{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(e,n){var r=this;return this.load("form",e,n).then(function(t){return!t.revisions||isNaN(parseInt(r.vId))||"current"===t.revisions&&r.submissionId||t._vid==r.vId||t.revisionId===r.vId?t:(e=(e=e&&w(e)?m.serialize(e.params):e)?(r.query?"".concat(r.query,"&"):"?").concat(e):r.query,r.makeRequest("form",r.vUrl+e,"get",null,n).then(function(e){return t._vid=e._vid,t.components=e.components,t.settings=e.settings,t.revisionId=e.revisionId,Object.assign({},t)}).catch(function(){return Object.assign({},t)}))})}},{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._frid||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)?c.default.resolve(this.projectId):this.loadProject().then(function(e){return e._id}):c.default.resolve("")}},{key:"getFormId",value:function(){return this.formId?this.isObjectId(this.formId)?c.default.resolve(this.formId):this.loadForm().then(function(e){return e._id}):c.default.resolve("")}},{key:"currentUser",value:function(e){return m.currentUser(this,e)}},{key:"accessInfo",value:function(){return m.accessInfo(this)}},{key:"getToken",value:function(e){return m.getToken(Object.assign({formio:this},this.options,e))}},{key:"setToken",value:function(e,t){return m.setToken(e,Object.assign({formio:this},this.options,t))}},{key:"getTempToken",value:function(e,t,n){if(!m.getToken(n))return c.default.reject("You must be authenticated to generate a temporary auth token.");n=m.authUrl||this.projectUrl;return this.makeRequest("tempToken","".concat(n,"/token"),"GET",null,{ignoreCache:!0,header:new k({"x-expire":e,"x-allow":t})})}},{key:"getDownloadUrl",value:function(e){var n=this;if(!this.submissionId)return c.default.resolve("");if(!e)return this.loadForm().then(function(e){return e?n.getDownloadUrl(e):""});var r="/project/".concat(e.project),e=(r=(r+="/form/".concat(e._id))+"/submission/".concat(this.submissionId),e.submissionRevisions&&e.settings.changeLog?"/download/changelog":"/download"),o=this.base+(r+=e);return new c.default(function(t,e){n.getTempToken(3600,"GET:".concat(r)).then(function(e){o+="?token=".concat(e.key),t(o)},function(){t(o)}).catch(e)})}},{key:"uploadFile",value:function(n,r,o,i,a,l,s,u,c,f,d,p){var h=this,e={provider:n,method:"upload",file:r,fileName:o,dir:i},t=(u=u||"file",m.pluginWait("preRequest",e).then(function(){return m.pluginGet("fileRequest",e).then(function(e){if(n&&g(e)){var t=y.default.getProvider("storage",n);if(t)return t=new t(h),d&&d(),t.uploadFile(r,o,i,a,l,s,u,c,f,p);throw"Storage provider not found"}return e||{url:""}})}));return m.pluginAlter("wrapFileRequestPromise",t,e)}},{key:"downloadFile",value:function(n,r){var o=this,e={method:"download",file:n},t=m.pluginWait("preRequest",e).then(function(){return m.pluginGet("fileRequest",e).then(function(e){if(n.storage&&g(e)){var t=y.default.getProvider("storage",n.storage);if(t)return new t(o).downloadFile(n,r);throw"Storage provider not found"}return e||{url:""}})});return m.pluginAlter("wrapFileRequestPromise",t,e)}},{key:"deleteFile",value:function(n,r){var o=this,e={method:"delete",file:n},t=m.pluginWait("preRequest",e).then(function(){return m.pluginGet("fileRequest",e).then(function(e){if(n.storage&&g(e)){var t=y.default.getProvider("storage",n.storage);if(t)return new t(o).deleteFile(n,r);throw"Storage provider not found"}return e||{url:""}})});return m.pluginAlter("wrapFileRequestPromise",t,e)}},{key:"userPermissions",value:function(e,t,n){return c.default.all([void 0!==t?c.default.resolve(t):this.loadForm(),void 0!==e?c.default.resolve(e):this.currentUser(),void 0===n&&this.submissionId?this.loadSubmission():c.default.resolve(n),this.accessInfo()]).then(function(e){var t,n=e.shift(),r=e.shift()||{_id:!1,roles:[]},o=e.shift(),i=e.shift(),a={create:"create",read:"read",update:"edit",delete:"delete"},l={user:r,form:n,access:i,create:!1,read:!1,edit:!1,delete:!1};for(t in i.roles)if(i.roles.hasOwnProperty(t)){var s=i.roles[t];if(s.default&&!1===r._id)r.roles.push(s._id);else if(s.admin&&-1!==r.roles.indexOf(s._id))return l.create=!0,l.read=!0,l.delete=!0,l.edit=!0,l}if(n&&n.submissionAccess)for(var u=0;u<n.submissionAccess.length;u++){var c=n.submissionAccess[u],f=b(c.type.split("_"),2),d=f[0],f=f[1];["create","read","update","delete"].includes(d)&&(0,p.default)(c.roles,r.roles).length&&(l[a[d]]="all"===f||!o||r._id===o.owner)}return o&&(0,v.eachComponent)(n.components,function(t,e){t&&t.defaultPermission&&(e=(0,h.default)(o.data,e),(Array.isArray(e)?e:[e]).forEach(function(e){e&&e._id&&-1<r.roles.indexOf(e._id)&&("read"===t.defaultPermission&&(l[a.read]=!0),"create"===t.defaultPermission&&(l[a.create]=!0,l[a.read]=!0),"write"===t.defaultPermission&&(l[a.create]=!0,l[a.read]=!0,l[a.update]=!0),"admin"===t.defaultPermission&&(l[a.create]=!0,l[a.read]=!0,l[a.update]=!0,l[a.delete]=!0))}))}),l})}},{key:"canSubmit",value:function(){var t=this;return this.userPermissions().then(function(e){return!e.create&&m.getUser()?t.userPermissions(null).then(function(e){return!!e.create&&(m.setUser(null),!0)}):e.create})}},{key:"getUrlParts",value:function(e){return m.getUrlParts(e,this)}}])&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),m}(),S=(O=!0,(P="currentUserResolved")in(S=e)?Object.defineProperty(S,P,{value:O,enumerable:!0,configurable:!0,writable:!0}):S[P]=O,e.libraries={},e.Promise=c.default,e.fetch=m,e.Headers=k,e.baseUrl="https://api.form.io",e.projectUrl=e.baseUrl,e.authUrl="",e.projectUrlSet=!1,e.plugins=[],e.cache={},e.Providers=y.default,e.version="4.14.8",e.pathType="",e.events=new t.default,void 0!==r&&e.addToGlobal(r),"undefined"!=typeof window&&e.addToGlobal(window),e.GlobalFormio),P=(E.GlobalFormio=S,e);E.default=P}.call(this,x(54))},function(e,t,n){var r=n(17),o=n(46),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},function(e,t,n){var r=n(34),o=n(230),i=n(231),a=n(41),l=n(118),s=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";t.f=r?i?function(e,t,n){var r;return a(e),t=l(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]&&((r=c(e,t))&&r[p]&&(e[t]=n.value,n={configurable:(d in n?n:r)[d],enumerable:(f in n?n:r)[f],writable:!1})),u(e,t,n)}:u:function(e,t,n){if(a(e),t=l(t),a(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw s("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";var r=n(15),o=n(17),i=n(117),a=n(56),n=n(150),l=o([].join),o=i!=Object,i=n("join",",");r({target:"Array",proto:!0,forced:o||!i},{join:function(e){return l(a(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(15),o=n(142).includes,i=n(12),n=n(147);r({target:"Array",proto:!0,forced:i(function(){return!Array(1).includes()})},{includes:function(e){return o(this,e,1<arguments.length?arguments[1]:void 0)}}),n("includes")},function(e,t,n){var r=n(35),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},function(e,t,n){var r=n(15),o=n(364);r({target:"Array",stat:!0,forced:!n(149)(function(e){Array.from(e)})},{from:o})},function(e,t,n){"use strict";var c=n(81),f=n(27),r=n(17),o=n(153),d=n(191),v=n(41),p=n(62),b=n(155),g=n(190),w=n(73),k=n(47),i=n(87),_=n(145),O=n(154),S=n(151),a=n(189),n=n(12),P=a.UNSUPPORTED_Y,E=Math.min,x=[].push,j=r(/./.exec),C=r(x),R=r("".slice);o("split",function(o,h,m){var y="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var n=k(p(this)),r=void 0===t?4294967295:t>>>0;if(0==r)return[];if(void 0===e)return[n];if(!d(e))return f(h,n,e,r);for(var o,i,a,l=[],t=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),s=0,u=new RegExp(e.source,t+"g");(o=f(S,u,n))&&!(s<(i=u.lastIndex)&&(C(l,R(n,s,o.index)),1<o.length&&o.index<n.length&&c(x,l,_(o,1)),a=o[0].length,s=i,r<=l.length));)u.lastIndex===o.index&&u.lastIndex++;return s===n.length?!a&&j(u,"")||C(l,""):C(l,R(n,s)),r<l.length?_(l,0,r):l}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:f(h,this,e,t)}:h;return[function(e,t){var n=p(this),r=null==e?void 0:i(e,o);return r?f(r,e,n,t):f(y,k(n),e,t)},function(e,t){var n=v(this),r=k(e),e=m(y,n,r,t,y!==h);if(e.done)return e.value;var e=b(n,RegExp),o=n.unicode,i=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(P?"g":"y"),a=new e(P?"^(?:"+n.source+")":n,i),l=void 0===t?4294967295:t>>>0;if(0==l)return[];if(0===r.length)return null===O(a,r)?[r]:[];for(var s=0,u=0,c=[];u<r.length;){a.lastIndex=P?0:u;var f,d=O(a,P?R(r,u):r);if(null===d||(f=E(w(a.lastIndex+(P?u:0)),r.length))===s)u=g(r,u,o);else{if(C(c,R(r,s,u)),c.length===l)return c;for(var p=1;p<=d.length-1;p++)if(C(c,d[p]),c.length===l)return c;u=s=f}}return C(c,R(r,s)),c}]},!!n(function(){var e=/(?:)/,t=e.exec,e=(e.exec=function(){return t.apply(this,arguments)},"ab".split(e));return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),P)},function(e,t,n){"use strict";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)}}e.exports=function(){function r(e,t,n){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");this.component=e,this.settings=t,this.config=n}var e,t,n;return e=r,(t=[{key:"check",value:function(){}}])&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),r}()},function(e,t,n){"use strict";var r=n(15),o=n(17),i=n(255),a=n(62),l=n(47),n=n(256),s=o("".indexOf);r({target:"String",proto:!0,forced:!n("includes")},{includes:function(e){return!!~s(l(a(this)),l(i(e)),1<arguments.length?arguments[1]:void 0)}})},function(e,t,n){var r=n(62),o=Object;e.exports=function(e){return o(r(e))}},function(e,t,n){var r=n(90),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},function(e,t,n){var a=n(29),l=n(38),s=n(232),u=n(180);e.exports=function(e,t,n,r){var o=(r=r||{}).enumerable,i=void 0!==r.name?r.name:t;if(a(n)&&s(n,i,r),r.global)o?e[t]=n:u(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:l.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}},function(e,t,n){var r=n(73);e.exports=function(e){return r(e.length)}},function(e,t,n){"use strict";var r=n(15),o=n(52).find,n=n(147),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),r({target:"Array",proto:!0,forced:i},{find:function(e){return o(this,e,1<arguments.length?arguments[1]:void 0)}}),n("find")},function(e,t,n){"use strict";var r=n(15),o=n(192).trim;r({target:"String",proto:!0,forced:n(379)("trim")},{trim:function(){return o(this)}})},function(e,t,n){function r(d){var p=1==d,h=2==d,m=3==d,y=4==d,v=6==d,b=7==d,g=5==d||v;return function(e,t,n,r){for(var o,i,a=_(e),l=k(a),s=w(t,n),u=O(l),c=0,t=r||S,f=p?t(e,u):h||b?t(e,0):void 0;c<u;c++)if((g||c in l)&&(i=s(o=l[c],c,a),d))if(p)f[c]=i;else if(i)switch(d){case 3:return!0;case 5:return o;case 6:return c;case 2:P(f,o)}else switch(d){case 4:return!1;case 7:P(f,o)}return v?-1:m||y?y:f}}var w=n(92),o=n(17),k=n(117),_=n(46),O=n(49),S=n(184),P=o([].push);e.exports={forEach:r(0),map:r(1),filter:r(2),some:r(3),every:r(4),find:r(5),findIndex:r(6),filterReject:r(7)}},function(L,e,t){"use strict";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)}t(8),t(13),t(11),t(2),t(6),t(7),t(3),t(4),t(23),t(31),t(94),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t(67),t(20),t(169),t(1),t(14),t(0),t(40),t(16),t(43),t(45),t(26),t(126),t(39),t(25),t(18),t(68),t(22),t(42),t(5),t(32),t(9);var r=t(130),c=u(t(24)),i=u(t(336)),f=u(t(10)),o=u(t(1143)),d=t(36),p=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};t=s(t);if(t&&t.has(e))return t.get(e);var n,r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(n in e){var i;"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&((i=o?Object.getOwnPropertyDescriptor(e,n):null)&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n])}r.default=e,t&&t.set(e,r);return r}(t(19)),h=u(t(448)),n=u(t(170)),l=u(t(213)),m=u(t(171)),y=u(t(293)),v=t(478),b=u(t(299));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function u(e){return e&&e.__esModule?e:{default:e}}function g(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function w(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?g(Object(o),!0).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):g(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}function k(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=O(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t};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 o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function _(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O(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 O(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}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 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 E(){return(E="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=R(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=R(n),t=(e=r?(e=R(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return C(t)}}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var A=p.getBrowserInfo().ie,M=A?"https://cdn.ckeditor.com/4.14.1/standard/ckeditor.js":"https://cdn.form.io/ckeditor/19.0.0/ckeditor.js",T=A?"https://cdn.quilljs.com/1.3.7":"https://cdn.quilljs.com/2.0.0-dev.3",D=(D=d.GlobalFormio.Templates)||t(216).default,I=function(e){var t=u;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&x(t,e);var n,s=j(u);function u(e,t,n){var o;if(!(this instanceof u))throw new TypeError("Cannot call a class as a function");o=s.call(this,Object.assign({renderMode:"form",attachMode:"full",noDefaults:!1},t||{})),e&&e.id&&(o.id=e.id),o._hasCondition=null,o.refs={},e&&o.options.components&&o.options.components[e.type]&&f.default.merge(e,o.options.components[e.type]),o.validator=h.default,o.path="",o.component=o.mergeSchema(e||{}),o.component.id=o.id,o.originalComponent=(0,p.fastCloneDeep)(o.component),o.attached=!1,o.rendered=!1,o._data=n||{},o.error="",o.tooltip="",o.row=o.options.row,o._disabled=!!(0,p.boolValue)(o.component.disabled)&&o.component.disabled,o.root=o.options.root,o.localRoot=o.options.localRoot,o.pristine=!0,o.parent=o.options.parent,o.options.name=o.options.name||"data",o.validators=["required","minLength","maxLength","minWords","maxWords","custom","pattern","json","mask"],o._path="",o._parentPath=o.options.parentPath||"",o.resetCaches(),o._parentVisible=!o.options.hasOwnProperty("parentVisible")||o.options.parentVisible,o._visible=o._parentVisible&&o.conditionallyVisible(null,n),o._parentDisabled=!1;var i=[],a=null,l=[],r=f.default.debounce(function(){o.root&&(o.root.changing=!1),l=[];for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];!t[1]&&a&&(t[1]=a),f.default.isEmpty(t[0])&&a&&(t[0]=a.flags),a=null,t[3]=i;var r=o.onChange.apply(o,t);return i=[],r},100);return o.triggerChange=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1]&&(a=t[1],i.push(a)),o.root&&(o.root.changing=!0),t.length&&(l=t),r.apply(void 0,_(l))},o.triggerRedraw=f.default.debounce(o.redraw.bind(C(o)),100),o.tooltips=[],o.addons=[],o.invalid=!1,o.component&&(o.type=o.component.type,o.allowData&&o.key&&(o.options.name+="[".concat(o.key,"]"),!o.visible&&o.component.clearOnHide||(o.hasValue()?o.dataValue=o.dataValue:o.shouldAddDefaultValue&&(o.dataValue=o.defaultValue))),o.info=o.elementInfo()),o.hook("component"),o.options.skipInit||o.init(),o}return t=u,e=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.default.merge.apply(f.default,[{input:!0,key:"",placeholder:"",prefix:"",customClass:"",suffix:"",multiple:!1,defaultValue:null,protected:!1,unique:!1,persistent:!0,hidden:!1,clearOnHide:!0,refreshOn:"",redrawOn:"",tableView:!1,modalEdit:!1,label:"",dataGridLabel:!1,labelPosition:"top",description:"",errorLabel:"",tooltip:"",hideLabel:!1,tabindex:"",disabled:!1,autofocus:!1,dbIndex:!1,customDefaultValue:"",calculateValue:"",calculateServer:!1,widget:null,attributes:{},validateOn:"change",validate:{required:!1,custom:"",customPrivate:!1,strictDateValidation:!1,multiple:!1,unique:!1},conditional:{show:null,when:null,eq:""},overlay:{style:"",left:"",top:"",width:"",height:""},allowCalculateOverride:!1,encrypted:!1,showCharCount:!1,showWordCount:!1,properties:{},allowMultipleMasks:!1,addons:[]}].concat(t))}},{key:"Validator",get:function(){return h.default}},{key:"tableView",value:function(e,t){}}],(n=[{key:"data",get:function(){return this._data},set:function(e){this._data=e}},{key:"mergeSchema",value:function(){return f.default.defaultsDeep(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},this.defaultSchema)}},{key:"ready",get:function(){return c.default.resolve(this)}},{key:"labelInfo",get:function(){var e={},t=(e.hidden=this.labelIsHidden(),e.className="",e.labelPosition=this.component.labelPosition,e.tooltipClass="".concat(this.iconClass("question-sign")," text-muted"),this.parent&&this.parent.form&&"pdf"===this.parent.form.display&&this.options.readOnly);return this.hasInput&&this.component.validate&&(0,p.boolValue)(this.component.validate.required)&&!t&&(e.className+=" field-required"),e.hidden&&(e.className+=" control-label--hidden"),this.info.attr.id&&(e.for=this.info.attr.id),e}},{key:"init",value:function(){var e,t=this;this.disabled=this.shouldDisabled,this._visible=this.conditionallyVisible(null,null),null!=(e=this.component.addons)&&e.length&&this.component.addons.forEach(function(e){return t.createAddon(e)})}},{key:"createAddon",value:function(e){var t,n,r,o=e.name;if(o)return e=(null==(e=e.settings)?void 0:e.data)||{},t=y.default[o],n=null,t&&(!(null!=(r=t.info.supportedComponents)&&r.length)||-1!==r.indexOf(this.component.type)?(n=new t(e,this),this.addons.push(n)):console.warn("Addon ".concat(o," does not support component of type ").concat(this.component.type,"."))),n}},{key:"destroy",value:function(){E(R(u.prototype),"destroy",this).call(this),this.detach(),this.addons.forEach(function(e){return e.destroy()})}},{key:"shouldDisabled",get:function(){return this.options.readOnly||this.component.disabled||this.options.hasOwnProperty("disabled")&&this.options.disabled[this.key]}},{key:"isInputComponent",get:function(){return!this.component.hasOwnProperty("input")||this.component.input}},{key:"allowData",get:function(){return this.hasInput}},{key:"hasInput",get:function(){return this.isInputComponent||this.refs.input&&this.refs.input.length}},{key:"defaultSchema",get:function(){return u.schema()}},{key:"key",get:function(){return f.default.get(this.component,"key","")}},{key:"parentVisible",get:function(){return this._parentVisible},set:function(e){this._parentVisible=e}},{key:"parentDisabled",get:function(){return this._parentDisabled},set:function(e){this._parentDisabled=e}},{key:"visible",get:function(){return!!(this.builderMode||this.previewMode||this.options.showHiddenFields)||(!this.options.hide||!this.options.hide[this.component.key])&&(!(!this.options.show||!this.options.show[this.component.key])||this._visible&&this._parentVisible)},set:function(e){this._visible!==e&&(this._visible=e,this.clearOnHide(),this.redraw())}},{key:"currentForm",get:function(){return this._currentForm},set:function(e){this._currentForm=e}},{key:"fullMode",get:function(){return"full"===this.options.attachMode}},{key:"builderMode",get:function(){return"builder"===this.options.attachMode}},{key:"calculatedPath",get:function(){return console.error("component.calculatedPath was deprecated, use component.path instead."),this.path}},{key:"labelPosition",get:function(){return this.component.labelPosition}},{key:"labelWidth",get:function(){var e=this.component.labelWidth;return 0<=e?e:30}},{key:"labelMargin",get:function(){var e=this.component.labelMargin;return 0<=e?e:3}},{key:"isAdvancedLabel",get:function(){return["left-left","left-right","right-left","right-right"].includes(this.labelPosition)}},{key:"labelPositions",get:function(){return this.labelPosition.split("-")}},{key:"skipInEmail",get:function(){return!1}},{key:"rightDirection",value:function(e){return"right"===e}},{key:"getLabelInfo",value:function(){var e,t=this.rightDirection(this.labelPositions[0]),n="left"===this.labelPositions[0],r=this.rightDirection(this.labelPositions[1]),o="";return this.component.hideLabel&&(e=this.labelWidth+this.labelMargin,o=t?"margin-right: ".concat(e,"%"):"",o=n?"margin-left: ".concat(e,"%"):""),{isRightPosition:t,isRightAlign:r,labelStyles:"\n      flex: ".concat(this.labelWidth,";\n      ").concat(t?"margin-left":"margin-right",": ").concat(this.labelMargin,"%;\n    "),contentStyles:"\n      flex: ".concat(100-this.labelWidth-this.labelMargin,";\n      ").concat(o,";\n      ").concat(this.component.hideLabel?"max-width: ".concat(100-this.labelWidth-this.labelMargin):"",";\n    ")}}},{key:"getModifiedSchema",value:function(e,r,o){var i=this,a={};return r?(f.default.each(e,function(e,t){var n;!f.default.isArray(e)&&f.default.isObject(e)&&r.hasOwnProperty(t)?(n=i.getModifiedSchema(e,r[t],!0),f.default.isEmpty(n)||(a[t]=n)):f.default.isArray(e)?0===e.length||f.default.isEqual(e,r[t])||(a[t]=e):(!o&&"type"===t||!o&&"key"===t||!o&&"label"===t||!o&&"input"===t||!o&&"tableView"===t||""!==e&&!r.hasOwnProperty(t)||""!==e&&e!==r[t]||r[t]&&e!==r[t])&&(a[t]=e)}),a):e}},{key:"schema",get:function(){return(0,p.fastCloneDeep)(this.getModifiedSchema(f.default.omit(this.component,"id"),this.defaultSchema))}},{key:"isInDataGrid",get:function(){return this.inDataGrid}},{key:"t",value:function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"";if(e in b.default&&n._userInput)return e;n.data=this.rootValue,n.row=this.data,n.component=this.component;for(var r=arguments.length,o=new Array(2<r?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return(t=E(R(u.prototype),"t",this)).call.apply(t,[this,e,n].concat(o))}},{key:"labelIsHidden",value:function(){return!this.component.label||(!this.isInDataGrid&&this.component.hideLabel||this.isInDataGrid&&!this.component.dataGridLabel||this.options.inputsOnly)&&!this.builderMode}},{key:"transform",get:function(){return D.current.hasOwnProperty("transform")?D.current.transform.bind(D.current):function(e,t){return t}}},{key:"getTemplate",value:function(e,t){t=Array.isArray(t)?t:[t],e=Array.isArray(e)?e:[e],t.includes("form")||t.push("form");var n=null;if(this.options.templates&&(n=this.checkTemplate(this.options.templates,e,t)))return n;var r=this.options.template?D.templates[this.options.template]:D.current;if(n=this.checkTemplate(r,e,t))return n;r=e[e.length-1],n=D.defaultTemplates[r];if(!n)return"Unknown template: ".concat(r);e=this.checkTemplateMode(n,t);return e||n.form}},{key:"checkTemplate",value:function(e,t,n){var r,o=k(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=k(t);try{for(r.s();!(n=r.n()).done;){var o=e[n.value];if(o)return o}}catch(e){r.e(e)}finally{r.f()}return null}},{key:"getFormattedTooltip",value:function(e){e=this.interpolate(e||"").replace(/(?:\r\n|\r|\n)/g,"<br />");return e?this.t(e,{_userInput:!0}).replace(/"/g,"&quot;"):""}},{key:"isHtmlRenderMode",value:function(){return"html"===this.options.renderMode}},{key:"renderTemplate",value:function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=(2<arguments.length?arguments[2]:void 0)||this.options.renderMode||"form",o=(n.component=this.component,n.self=this,n.options=this.options,n.readOnly=this.options.readOnly,n.iconClass=this.iconClass.bind(this),n.size=this.size.bind(this),n.t=this.t.bind(this),n.transform=this.transform,n.id=n.id||this.id,n.key=n.key||this.key,n.value=n.value||this.dataValue,n.disabled=this.disabled,n.builder=this.builderMode,n.render=function(){return console.warn("Form.io 'render' template function is deprecated.\n      If you need to render template (template A) inside of another template (template B),\n      pass pre-compiled template A (use this.renderTemplate('template_A_name') as template context variable for template B"),t.renderTemplate.apply(t,arguments)},n.label=this.labelInfo,n.tooltip=this.getFormattedTooltip(this.component.tooltip),["".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(o,r),n),n,r)}},{key:"sanitize",value:function(e,t,n){return!this.shouldSanitizeValue&&!t||this.options.pdf&&!t?e:p.sanitize(e,{sanitizeConfig:f.default.merge((null==(t=this.options)?void 0:t.sanitizeConfig)||{},n||{})})}},{key:"renderString",value:function(e,t){return e?this.interpolate(e,t):""}},{key:"performInputMapping",value:function(e){return e}},{key:"widget",get:function(){var e,t=this.component.widget;return t&&null!=(e=this.root)&&e.shadowRoot&&(t.shadowRoot=this.root.shadowRoot),t&&m.default[t.type]?new m.default[t.type](t,this.component,this):null}},{key:"getBrowserLanguage",value:function(){var e,t=window.navigator,n=["language","browserLanguage","systemLanguage","userLanguage"];if(Array.isArray(t.languages))for(var r=0;r<t.languages.length;r++)if((e=t.languages[r])&&e.length)return e.split(";")[0];for(var o=0;o<n.length;o++)if((e=t[n[o]])&&e.length)return e.split(";")[0];return null}},{key:"beforePage",value:function(){return c.default.resolve(!0)}},{key:"beforeNext",value:function(){return this.beforePage(!0)}},{key:"beforeSubmit",value:function(){return c.default.resolve(!0)}},{key:"submissionTimezone",get:function(){return this.options.submissionTimezone=this.options.submissionTimezone||f.default.get(this.root,"options.submissionTimezone"),this.options.submissionTimezone}},{key:"loadRefs",value:function(e,t){for(var n in t){var r=t[n],o="string"==typeof r,i=(o&&r.includes("scope")?':scope > [ref="':'[ref="').concat(n,'"]');o&&r.startsWith("single")?this.refs[n]=e.querySelector(i):this.refs[n]=e.querySelectorAll(i)}}},{key:"setOpenModalElement",value:function(e){this.componentModal.setOpenModalElement(e||this.getModalPreviewTemplate())}},{key:"getModalPreviewTemplate",value:function(){var e="password"===this.component.type?this.dataValue.replace(/./g,"•"):this.dataValue,t=this.error?{level:"error",message:this.error.message}:"";return this.renderTemplate("modalPreview",{previewText:this.getValueAsString(e,{modalPreview:!0})||this.t("Click to set value"),messages:t&&this.renderTemplate("message",t)})}},{key:"build",value:function(e){return e=e||this.element,this.empty(e),this.setContent(e,this.render()),this.attach(e)}},{key:"hasModalSaveButton",get:function(){return!0}},{key:"render",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"Unknown component: ".concat(this.component.type),t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=this.visible;return this.rendered=!0,this.builderMode||this.previewMode||!this.component.modalEdit?this.renderTemplate("component",{visible:n,id:this.id,classes:this.className,styles:this.customStyle,children:e},t):l.default.render(this,{visible:n,showSaveButton:this.hasModalSaveButton,id:this.id,classes:this.className,styles:this.customStyle,children:e},t)}},{key:"attachTooltips",value:function(e){var o=this;null!=e&&e.forEach(function(e,t){var n,r;e&&(n=e.getAttribute("data-tooltip"),r=e.getAttribute("data-title"),r=o.interpolate(r||n).replace(/(?:\r\n|\r|\n)/g,"<br />"),o.tooltips[t]=(0,i.default)(e,{allowHTML:!0,trigger:"mouseenter click focus",placement:"right",zIndex:1e4,interactive:!0,content:o.t(r,{_userInput:!0})}))})}},{key:"createComponentModal",value:function(e,t,n){return new l.default(this,e,t,n)}},{key:"attach",value:function(t){this.builderMode||this.previewMode||!this.component.modalEdit||(e=(r=!!this.componentModal&&this.componentModal.isOpened)?this.componentModal.currentValue:this.dataValue,n=this.componentModal&&r?this.componentModal.openModalTemplate:null,this.componentModal=this.createComponentModal(t,r,e),this.setOpenModalElement(n)),this.attached=!0,((this.element=t).component=this).element.id&&(this.id=this.element.id,this.component.id=this.id),this.loadRefs(t,{messageContainer:"single",tooltip:"multiple"}),this.attachTooltips(this.refs.tooltip),this.attachLogic(),this.autofocus(),this.hook("attachComponent",t,this);var e,n,r=this.component.type;return r&&this.hook("attach".concat(r.charAt(0).toUpperCase()+r.substring(1,r.length)),t,this),this.restoreFocus(),this.addons.forEach(function(e){return e.attach(t)}),c.default.resolve()}},{key:"restoreFocus",value:function(){var e;(null==(e=this.root)||null==(e=e.focusedComponent)?void 0:e.path)===this.path&&(this.loadRefs(this.element,{input:"multiple"}),this.focus(null==(e=this.root.currentSelection)?void 0:e.index),this.restoreCaretPosition())}},{key:"addShortcut",value:function(e,t){e&&this.root&&this.root!==this&&(t=t||this.component.shortcut,this.root.addShortcut(e,t))}},{key:"removeShortcut",value:function(e,t){e&&this.root!==this&&(t=t||this.component.shortcut,this.root.removeShortcut(e,t))}},{key:"detach",value:function(){this.refs={},this.removeEventListeners(),this.detachLogic(),this.tooltip&&this.tooltip.destroy()}},{key:"checkRefresh",value:function(e,t,n){var r=f.default.get(t,"instance.path",!1);r&&this.path===r||("data"===e?this.refresh(this.data,t,n):r&&(0,p.getComponentPath)(t.instance)===e&&t&&t.instance&&this.inContext(t.instance)&&this.refresh(t.value,t,n))}},{key:"checkRefreshOn",value:function(e){var t,n=this,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};e=e||[],r.noRefresh||(!e.length&&r.changed&&(e=[r.changed]),(t=r.fromBlur?this.component.refreshOnBlur:this.component.refreshOn||this.component.redrawOn)&&(Array.isArray(t)?t.forEach(function(t){return e.forEach(function(e){return n.checkRefresh(t,e,r)})}):e.forEach(function(e){return n.checkRefresh(t,e,r)})))}},{key:"refresh",value:function(e){this.hasOwnProperty("refreshOnValue")?this.refreshOnChanged=!f.default.isEqual(e,this.refreshOnValue):this.refreshOnChanged=!0,this.refreshOnValue=(0,p.fastCloneDeep)(e),this.refreshOnChanged&&(this.component.clearOnRefresh&&this.setValue(null),this.triggerRedraw())}},{key:"inContext",value:function(e){if(e.data===this.data)return!0;for(var t=this.parent;t;){if(t.data===e.data)return!0;t=t.parent}return!1}},{key:"viewOnly",get:function(){return this.options.readOnly&&this.options.viewAsHtml}},{key:"createViewOnlyElement",value:function(){return this.element=this.ce("dl",{id:this.id}),this.element&&(this.element.component=this),this.element}},{key:"defaultViewOnlyValue",get:function(){return"-"}},{key:"getWidgetValueAsString",value:function(e,n){var r,o=this,t=!this.refs.input||!this.refs.input[0]||!this.refs.input[0].widget;return!e||t?this.widget&&e?this.widget.getValueAsString(e):e:Array.isArray(e)?(r=[],e.forEach(function(e,t){t=o.refs.input[t]&&o.refs.input[t].widget;t&&r.push(t.getValueAsString(e,n))}),r):this.refs.input[0].widget.getValueAsString(e,n)}},{key:"getValueAsString",value:function(e,t){if(!e)return"";if(e=this.getWidgetValueAsString(e,t),Array.isArray(e))return e.join(", ");if(f.default.isPlainObject(e))return JSON.stringify(e);if(null==e)return"";t=e.toString();return this.sanitize(t)}},{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=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(f.default.isObject(e)){if(this.valueProperty)return f.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){function r(e){n?n().then(function(){return a(e)}).catch(function(){}):a(e)}var o=this,i=this.ce("div",t||{}),a=(this.setContent(i,this.renderTemplate("dialog")),i.refs={},this.loadRefs.call(i,i,{dialogOverlay:"single",dialogContents:"single",dialogClose:"single"}),i.refs.dialogContents.appendChild(e),document.body.appendChild(i),document.body.classList.add("modal-open"),i.close=function(){document.body.classList.remove("modal-open"),i.dispatchEvent(new CustomEvent("close"))},this.addEventListener(i,"close",function(){return o.removeChildFrom(i,document.body)}),function(e){e.preventDefault(),i.close()});return this.addEventListener(i.refs.dialogOverlay,"click",r),this.addEventListener(i.refs.dialogClose,"click",r),i}},{key:"optimizeRedraw",get:function(){return!(!this.options.optimizeRedraw||!this.element||this.visible)&&(this.addClass(this.element,"formio-removed"),!0)}},{key:"className",get:function(){var e=this.hasInput?"form-group has-feedback ":"";return e+="formio-component formio-component-".concat(this.component.type," "),this.key&&"form"!==this.key&&(e+="formio-component-".concat(this.key," ")),this.component.multiple&&(e+="formio-component-multiple "),this.component.customClass&&(e+=this.component.customClass),this.hasInput&&this.component.validate&&(0,p.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 n="";return f.default.each(this.component.style,function(e,t){""!==e&&(n+="".concat(t,":").concat(e,";"))}),n}},{key:"isMobile",get:function(){return(0,o.default)()}},{key:"getElement",value:function(){return this.element}},{key:"evalContext",value:function(e){return E(R(u.prototype),"evalContext",this).call(this,Object.assign({component:this.component,row:this.data,rowIndex:this.rowIndex,data:this.rootValue,iconClass:this.iconClass.bind(this),t:this.t.bind(this),submission:this.root?this.root._submission:{data:this.rootValue},form:this.root?this.root._form:{},options:this.options},e))}},{key:"setPristine",value:function(e){this.pristine=e}},{key:"isPristine",get:function(){return this.pristine}},{key:"setDirty",value:function(e){this.dirty=e}},{key:"isDirty",get:function(){return this.dirty}},{key:"removeValue",value:function(e){this.splice(e),this.redraw(),this.restoreValue(),this.triggerRootChange()}},{key:"iconClass",value:function(e,t){var n=this.options.iconset||D.current.defaultIconset||"fa";return D.current.hasOwnProperty("iconClass")?D.current.iconClass(n,e,t):"fa"===this.options.iconset?D.defaultTemplates.iconClass(n,e,t):e}},{key:"size",value:function(e){return D.current.hasOwnProperty("size")?D.current.size(e):e}},{key:"name",get:function(){return this.t(this.component.label||this.component.placeholder||this.key,{_userInput:!0})}},{key:"errorLabel",get:function(){return this.t(this.component.errorLabel||this.component.label||this.component.placeholder||this.key)}},{key:"errorMessage",value:function(e){return this.component.errors&&this.component.errors[e]?this.component.errors[e]:e}},{key:"setContent",value:function(e,t,n,r){return e instanceof HTMLElement&&(e.innerHTML=this.sanitize(t,n,r),!0)}},{key:"restoreCaretPosition",value:function(){var e,t,n;null!=(t=this.root)&&t.currentSelection&&null!=(t=this.refs.input)&&t.length&&(n=(t=this.root.currentSelection).selection,t=t.index,t=this.refs.input[t],e=/text|search|password|tel|url/i.test(t.type||""),t?e&&t.setSelectionRange.apply(t,_(n)):(n=(null==(n=(t=this.refs.input[this.refs.input.length]).value)?void 0:n.length)||0,e&&t.setSelectionRange(n,n)))}},{key:"redraw",value:function(){if(!this.element||!this.element.parentNode||this.optimizeRedraw)return c.default.resolve();this.detach(),this.emit("redraw");var e=this.element.parentNode,t=Array.prototype.indexOf.call(e.children,this.element);return this.element.outerHTML=this.sanitize(this.render()),this.element=e.children[t],this.attach(this.element)}},{key:"rebuild",value:function(){return this.destroy(),this.init(),this.visible=this.conditionallyVisible(null,null),this.redraw()}},{key:"removeEventListeners",value:function(){E(R(u.prototype),"removeEventListeners",this).call(this),this.tooltips.forEach(function(e){return e.destroy()}),this.tooltips=[]}},{key:"hasClass",value:function(e,t){if(e)return E(R(u.prototype),"hasClass",this).call(this,e,this.transform("class",t))}},{key:"addClass",value:function(e,t){if(e)return E(R(u.prototype),"addClass",this).call(this,e,this.transform("class",t))}},{key:"removeClass",value:function(e,t){if(e)return E(R(u.prototype),"removeClass",this).call(this,e,this.transform("class",t))}},{key:"hasCondition",value:function(){return null===this._hasCondition&&(this._hasCondition=p.hasCondition(this.component)),this._hasCondition}},{key:"conditionallyVisible",value:function(e,t){return e=e||this.rootValue,t=t||this.data,this.builderMode||this.previewMode||!this.hasCondition()?!this.component.hidden:(e=e||(this.root?this.root.data:{}),this.checkCondition(t,e))}},{key:"checkCondition",value:function(e,t){return p.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,n=n||this.data,!this.builderMode&!this.previewMode&&this.fieldLogic(e,n)&&this.redraw();e=this.conditionallyVisible(e,n);return this.visible!==e&&(this.visible=e),e}},{key:"checkConditions",value:function(e,t,n){return e=e||this.rootValue,n=n||this.data,this.checkComponentConditions(e,t=t||{},n)}},{key:"logic",get:function(){return this.component.logic||[]}},{key:"fieldLogic",value:function(r,o){var i,e,a=this,t=(r=r||this.rootValue,o=o||this.data,this.logic);if(0!==t.length)return i=(0,p.fastCloneDeep)(this.originalComponent),t=t.reduce(function(e,t){var n=p.checkTrigger(i,t.trigger,o,r,a.root?a.root._form:{},a);return!!n&&a.applyActions(i,t.actions,n,o,r)||e},!1),f.default.isEqual(this.component,i)||(this.component=i,t=!0,e=this.shouldDisabled,this.disabled!==e&&(this.disabled=e)),t}},{key:"isIE",value:function(){if("undefined"==typeof window)return!1;var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(0<t)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(0<e.indexOf("Trident/"))return t=e.indexOf("rv:"),parseInt(e.substring(t+3,e.indexOf(".",t)),10);t=e.indexOf("Edge/");return 0<t&&parseInt(e.substring(t+5,e.indexOf(".",t)),10)}},{key:"defineActionValue",value:function(e,t){return this.evaluate(e.value,t,"value")}},{key:"applyActions",value:function(o,e,i,a,l){var s=this;return l=l||this.rootValue,a=a||this.data,e.reduce(function(e,t){switch(t.type){case"property":p.setActionProperty(o,t,i,a,l,s);var n=t.property.value;f.default.isEqual(f.default.get(s.component,n),f.default.get(o,n))||(e=!0);break;case"value":var n=s.getValue(),r=s.defineActionValue(t,{value:f.default.clone(n),data:l,row:a,component:o,result:i});f.default.isEqual(n,r)||(s.setValue(r),s.viewOnly&&(s.dataValue=r),e=!0);break;case"mergeComponentSchema":n=s.evaluate(t.schemaDefinition,{value:f.default.clone(s.getValue()),data:l,row:a,component:o,result:i},"schema");f.default.assign(o,n),f.default.isEqual(s.component,o)||(e=!0);break;case"customAction":r=s.getValue(),n=s.evaluate(t.customAction,{value:f.default.clone(r),data:l,row:a,input:r,component:o,result:i},"value");f.default.isEqual(r,n)||(s.setValue(n),s.viewOnly&&(s.dataValue=n),e=!0)}return e},!1)}},{key:"addInputError",value:function(e,t,n){this.addMessages(e),this.setErrorClasses(n,t,!!e)}},{key:"removeInputError",value:function(e){this.setErrorClasses(e,!0,!1)}},{key:"addMessages",value:function(e){var t=this;e&&("string"==typeof e&&(e={messages:e,level:"error"}),Array.isArray(e)||(e=[e]),e=f.default.uniqBy(e,function(e){return e.message}),this.refs.messageContainer&&this.setContent(this.refs.messageContainer,e.map(function(e){return t.renderTemplate("message",e)}).join("")))}},{key:"setErrorClasses",value:function(e,t,n,r){var o=this,i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:this.element;this.clearErrorClasses(),e.forEach(function(e){o.setElementInvalid(o.performInputMapping(e),!1)}),this.setInputWidgetErrorClasses(e,n),n&&(e.forEach(function(e){o.setElementInvalid(o.performInputMapping(e),!0)}),t&&this.options.highlightErrors?this.addClass(i,this.options.componentErrorClass):this.addClass(i,"has-error")),r&&this.addClass(i,"has-message")}},{key:"setElementInvalid",value:function(e,t){e&&(t?this.addClass(e,"is-invalid"):this.removeClass(e,"is-invalid"),e.setAttribute("aria-invalid",t?"true":"false"))}},{key:"clearOnHide",value:function(){this.rootPristine&&!this.options.server&&!(0,p.isInsideScopingComponent)(this)||!1===this.component.clearOnHide||this.options.readOnly||this.options.showHiddenFields||(this.visible?!this.hasValue()&&this.shouldAddDefaultValue&&this.setValue(this.defaultValue,{noUpdateEvent:!0}):this.deleteValue())}},{key:"triggerRootChange",value:function(){var e;this.options.onChange?(e=this.options).onChange.apply(e,arguments):this.root&&(e=this.root).triggerChange.apply(e,arguments)}},{key:"onChange",value:function(e,t){(e=e||{}).modified&&(e.noPristineChangeOnModified||(this.pristine=!1),this.addClass(this.getElement(),"formio-modified")),"blur"!==this.component.validateOn||this.errors.length||(e.noValidate=!0),this.component.onChange&&this.evaluate(this.component.onChange,{flags:e});var n={instance:this,component:this.component,value:this.dataValue,flags:e},r=(this.emit("componentChange",n),!1);return e.modified&&(r=!0,delete e.modified),t||this.triggerRootChange(e,n,r),n}},{key:"wysiwygDefault",get:function(){return{quill:{theme:"snow",placeholder:this.t(this.component.placeholder,{_userInput:!0}),modules:{toolbar:[[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{font:[]}],["bold","italic","underline","strike",{script:"sub"},{script:"super"},"clean"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["blockquote","code-block"],["link","image","video","formula","source"]]}},ace:{theme:"ace/theme/xcode",maxLines:12,minLines:12,tabSize:2,mode:"ace/mode/javascript",placeholder:this.t(this.component.placeholder,{_userInput:!0})},ckeditor:{image:{toolbar:["imageTextAlternative","|","imageStyle:full","imageStyle:alignLeft","imageStyle:alignCenter","imageStyle:alignRight"],styles:["full","alignLeft","alignCenter","alignRight"]},extraPlugins:[]},default:{}}}},{key:"addCKE",value:function(t,n,r){return(n=f.default.isEmpty(n)?{}:n).base64Upload=!this.component.isUploadEnabled,n.mediaEmbed={previewsInData:!0},n=f.default.merge(this.wysiwygDefault.ckeditor,f.default.get(this.options,"editors.ckeditor.settings",{}),n),this.component.isUploadEnabled&&n.extraPlugins.push((0,v.getFormioUploadAdapterPlugin)(this.fileService,this)),d.GlobalFormio.requireLibrary("ckeditor",A?"CKEDITOR":"ClassicEditor",f.default.get(this.options,"editors.ckeditor.src",M),!0).then(function(){return t.parentNode?A?((e=CKEDITOR.replace(t)).on("change",function(){return r(e.getData())}),c.default.resolve(e)):ClassicEditor.create(t,n).then(function(e){return e.model.document.on("change",function(){return r(e.data.get())}),e}):c.default.reject();var e})}},{key:"addQuill",value:function(o,i,a){var l=this;return i=f.default.isEmpty(i)?this.wysiwygDefault.quill:i,i=w(w({},i=f.default.merge(this.wysiwygDefault.quill,f.default.get(this.options,"editors.quill.settings",{}),i)),{},{modules:w({table:!0},i.modules)}),d.GlobalFormio.requireLibrary("quill-css-".concat(i.theme),"Quill",[{type:"styles",src:"".concat(T,"/quill.").concat(i.theme,".css")}],!0),d.GlobalFormio.requireLibrary("quill","Quill",f.default.get(this.options,"editors.quill.src","".concat(T,"/quill.min.js")),!0).then(function(){return d.GlobalFormio.requireLibrary("quill-table","Quill","https://cdn.form.io/quill/quill-table.js",!0).then(function(){if(!o.parentNode)return c.default.reject();l.quill=new Quill(o,A?w(w({},i),{},{modules:{}}):i);for(var t=document.createElement("textarea"),e=(t.setAttribute("class","quill-source-code"),l.quill.addContainer("ql-custom").appendChild(t),o.parentNode.querySelector(".ql-source")),n=(e&&l.addEventListener(e,"click",function(e){e.preventDefault(),"inherit"===t.style.display&&l.quill.setContents(l.quill.clipboard.convert(t.value)),t.style.display="none"===t.style.display?"inherit":"none"}),l.addEventListener(o,"click",function(){return l.quill.focus()}),document.querySelectorAll(".ql-formats > button")),r=0;r<n.length;r++)n[r].setAttribute("tabindex","-1");return l.quill.on("text-change",function(){t.value=l.quill.root.innerHTML,a(t)}),l.quill})})}},{key:"shouldSanitizeValue",get:function(){var e;return!1!==(null==(e=this.options)?void 0:e.sanitize)}},{key:"addAce",value:function(t,n,r){var e;return n&&"snow"!==n.theme||(e=n?n.mode:"",n={},e&&(n.mode=e)),n=f.default.merge(this.wysiwygDefault.ace,f.default.get(this.options,"editors.ace.settings",{}),n||{}),d.GlobalFormio.requireLibrary("ace","ace",f.default.get(this.options,"editors.ace.src","https://cdn.form.io/ace/1.4.10/ace.js"),!0).then(function(e){return(e=e.edit(t)).removeAllListeners("change"),e.setOptions(n),e.getSession().setMode(n.mode),e.on("change",function(){return r(e.getValue())}),n.isUseWorkerDisabled&&e.session.setUseWorker(!1),e})}},{key:"tree",get:function(){return this.component.tree||!1}},{key:"emptyValue",get:function(){return null}},{key:"hasValue",value:function(e){return f.default.has(e||this.data,this.key)}},{key:"rootValue",get:function(){return(this.root||this).data}},{key:"rootPristine",get:function(){return f.default.get(this,"root.pristine",!1)}},{key:"dataValue",get:function(){return!this.key||!this.visible&&this.component.clearOnHide&&!this.rootPristine?this.emptyValue:!this.hasValue()&&this.shouldAddDefaultValue?(e=this.component.multiple?[]:this.emptyValue,this.rootPristine||(this.dataValue=e),e):f.default.get(this._data,this.key);var e},set:function(e){this.allowData&&this.key&&(this.visible||!this.component.clearOnHide||this.rootPristine)&&(null==(e=null!=e?this.hook("setDataValue",e,this.key,this._data):e)?this.unset():f.default.set(this._data,this.key,e))}},{key:"splice",value:function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};this.hasValue()&&(t=this.dataValue||[],f.default.isArray(t)&&t.hasOwnProperty(e)&&(t.splice(e,1),this.dataValue=t,this.triggerChange(n)))}},{key:"unset",value:function(){f.default.unset(this._data,this.key)}},{key:"deleteValue",value:function(){this.setValue(null,{noUpdateEvent:!0,noDefault:!0}),this.unset()}},{key:"getCustomDefaultValue",value:function(e){return e=this.component.customDefaultValue&&!this.options.preview?this.evaluate(this.component.customDefaultValue,{value:""},"value"):e}},{key:"shouldAddDefaultValue",get:function(){return!this.options.noDefaults||this.component.defaultValue&&!this.isEmpty(this.component.defaultValue)||this.component.customDefaultValue}},{key:"defaultValue",get:function(){function e(e){var t;return"string"==typeof e?(t=n.placeholderChar,e=(0,r.conformToMask)(e,n.defaultMask,{placeholderChar:t}).conformedValue,p.matchInputMask(e,n.defaultMask)||(e="")):e="",e}var n=this,t=this.emptyValue;this.component.defaultValue&&(t=this.component.defaultValue),t=this.getCustomDefaultValue(t);return this.defaultMask&&(t=Array.isArray(t)?t.map(e):e(t)),f.default.cloneDeep(t)}},{key:"getValue",value:function(){if(!this.hasInput||this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var e,t=[];for(e in this.refs.input)if(this.refs.input.hasOwnProperty(e)){if(!this.component.multiple)return this.getValueAt(e);t.push(this.getValueAt(e))}return 0!==t.length||this.component.multiple?t:""}},{key:"getValueAt",value:function(e){e=this.performInputMapping(this.refs.input[e]);return e?e.value:void 0}},{key:"setValue",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this.updateValue(e,t);if(e=this.dataValue,this.hasInput){var r=Array.isArray(e),o=this.refs.fileLink||this.refs.input;if(r&&Array.isArray(this.defaultValue)&&this.refs.hasOwnProperty("input")&&o&&o.length!==e.length&&this.visible&&this.redraw(),this.isHtmlRenderMode()&&t&&t.fromSubmission&&n)this.redraw();else for(var i in this.refs.input)this.refs.input.hasOwnProperty(i)&&this.setValueAt(i,r?e[i]:e,t)}return n}},{key:"setValueAt",value:function(e,t){(2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).noDefault||null!=t||this.component.multiple||(t=this.defaultValue);var e=this.performInputMapping(this.refs.input[e]),n=this.refs.valueMaskInput;null!=n&&n.mask&&n.mask.textMaskInputElement.update(t),e.mask?e.mask.textMaskInputElement.update(t):e.widget&&e.widget.setValue?e.widget.setValue(t):e.value=t}},{key:"hasSetValue",get:function(){return this.hasValue()&&!this.isEmpty(this.dataValue)}},{key:"setDefaultValue",value:function(){var e;this.defaultValue&&this.shouldAddDefaultValue&&(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 e=this.component.multiple&&!Array.isArray(e)?e?[e]:[]:e}},{key:"updateComponentValue",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=t.resetValue||null!=e?e:this.getValue(),n=this.normalizeValue(n,t),r=this.dataValue,o=void 0!==n&&this.hasChanged(n,r);return o&&(this.dataValue=n,o=this.dataValue!==r,this.updateOnChange(t,o)),this.componentModal&&t&&t.fromSubmission&&this.componentModal.setValue(e),o}},{key:"updateValue",value:function(){return this.updateComponentValue.apply(this,arguments)}},{key:"getIcon",value:function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"icon";return this.renderTemplate("icon",{className:this.iconClass(e),ref:r,styles:n,content:t})}},{key:"resetValue",value:function(){this.unset(),this.setValue(this.emptyValue,{noUpdateEvent:!0,noValidate:!0,resetValue:!0})}},{key:"hasChanged",value:function(e,t){return(null!=e||null!=t&&!this.isEmpty(t))&&(!(null==e||!this.allowData||this.hasValue())||!f.default.isEqual(e,t))}},{key:"updateOnChange",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return!(e.noUpdateEvent||!(1<arguments.length&&void 0!==arguments[1]&&arguments[1]))&&(this.triggerChange(e),!0)}},{key:"convertNumberOrBoolToString",value:function(e){return"number"==typeof e||"boolean"==typeof e?e.toString():e}},{key:"doValueCalculation",value:function(e,t,n){return this.evaluate(this.component.calculateValue,{value:e,data:t,row:n||this.data},"value")}},{key:"calculateComponentValue",value:function(e,t,n){var r=this.component.clearOnHide,r=!this.visible&&r,o=f.default.get(this.component,"allowCalculateOverride",!1);if(this.options.readOnly&&!this.options.pdf||!this.component.calculateValue&&!this.component.calculateValueVariable||r||this.options.server&&!this.component.calculateServer||t.dataSourceInitialLoading&&o)return!1;r=this.dataValue,e=this.doValueCalculation(r,e,n,t),f.default.isNil(e)&&(e=this.emptyValue),n=!f.default.isEqual(r,e);if(o){o=t.fromSubmission&&!0===this.component.persistent;if(this.isEmpty(r))this.calculationLocked=!1;else if(this.calculationLocked||o)return!(this.calculationLocked=!0);var i=void 0===this.calculatedValue,a=(i&&(this.calculatedValue=null),this.normalizeValue(this.convertNumberOrBoolToString(e))),l=this.normalizeValue(this.convertNumberOrBoolToString(this.calculatedValue)),s=this.normalizeValue(this.convertNumberOrBoolToString(r)),a=!f.default.isEqual(l,a),s=!f.default.isEqual(s,l);if(a&&s&&!i)return!1;if(l&&s&&!a)return!1;if(t.isReordered||!a)return!1;if(o)return this.calculatedValue=e,!1;if(i&&!this.isEmpty(r)&&n&&a)return!0}return this.calculatedValue=e,!!n&&(t.noPristineChangeOnModified||(this.pristine=!1),t.triggeredComponentId=this.id,this.setValue(e,t))}},{key:"calculateValue",value:function(e,t,n){return e=e||this.rootValue,n=n||this.data,this.calculateComponentValue(e,t=t||{},n)}},{key:"label",get:function(){return this.component.label},set:function(e){this.component.label=e,this.labelElement&&(this.labelElement.innerText=e)}},{key:"getRoot",value:function(){return this.root}},{key:"invalidMessage",value:function(e,t,n,r){return n||this.checkCondition(r,e)?this.invalid||(!this.hasInput||!t&&this.pristine?"":f.default.map(h.default.checkComponent(this,e),"message").join("\n\n")):""}},{key:"isValid",value:function(e,t){return!this.invalidMessage(e,t)}},{key:"setComponentValidity",value:function(e,t,n){var r=!!e.filter(function(e){return"error"===e.level&&!e.fromServer}).length;return!e.length||n&&!this.error||this.isEmpty(this.defaultValue)&&!t&&this.pristine?n||this.setCustomValidity(""):this.setCustomValidity(e,t),!r}},{key:"checkComponentValidity",value:function(e,t,n){var r=this,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},i=(e=e||this.rootValue,n=n||this.data,o.async),i=void 0!==i&&i,o=o.silentCheck,a=void 0!==o&&o;if(this.shouldSkipValidation(e,t,n))return this.setCustomValidity(""),!i||c.default.resolve(!0);o=h.default.checkComponent(this,e,n,!0,i),e=o;return null!=(n=this.serverErrors)&&n.length&&(e=o.concat(this.serverErrors)),i?e.then(function(e){return r.setComponentValidity(e,t,a)}):this.setComponentValidity(e,t,a)}},{key:"checkValidity",value:function(e,t,n,r){e=e||this.rootValue,n=n||this.data;e=this.checkComponentValidity(e,t,n,{silentCheck:r});return this.checkModal(),e}},{key:"checkAsyncValidity",value:function(e,t,n,r){return c.default.resolve(this.checkComponentValidity(e,t,n,{async:!0,silentCheck:r}))}},{key:"checkData",value:function(e,t,n){if(e=e||this.rootValue,t=t||{},n=n||this.data,this.resetCaches(),t.fromBlur||this.checkRefreshOn(t.changes,t),t.noCheck)return!0;if(this.checkComponentConditions(e,t,n),this.id!==t.triggeredComponentId&&this.calculateComponentValue(e,t,n),t.noValidate&&!t.validateOnInit&&!t.fromIframe)return t.fromSubmission&&this.rootPristine&&this.pristine&&this.error&&t.changed&&this.checkComponentValidity(e,!!this.options.alwaysDirty,n,!0),!0;var r=!1;if((this.options.alwaysDirty||t.dirty)&&(r=!0),t.fromSubmission&&this.hasValue(e)&&(r=!0),this.setDirty(r),"blur"===this.component.validateOn&&t.fromSubmission)return!0;e=this.checkComponentValidity(e,r,n,t);return this.checkModal(),e}},{key:"checkModal",value:function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];this.component.modalEdit&&this.componentModal&&(t&&!e?this.setErrorClasses([this.refs.openModal],t,!e,!!this.errors.length,this.refs.openModalWrapper):this.clearErrorClasses(this.refs.openModalWrapper))}},{key:"validationValue",get:function(){return this.dataValue}},{key:"isEmpty",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.dataValue,t=!(!f.default.isArray(e)||1!==e.length)&&f.default.isEqual(e[0],this.emptyValue);return null==e||0===e.length||f.default.isEqual(e,this.emptyValue)||t}},{key:"isEqual",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.dataValue;return this.isEmpty(e)&&this.isEmpty(t)||f.default.isEqual(e,t)}},{key:"validateMultiple",value:function(){return!0}},{key:"errors",get:function(){return this.error?[this.error]:[]}},{key:"clearErrorClasses",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.element;this.removeClass(e,this.options.componentErrorClass),this.removeClass(e,"alert alert-danger"),this.removeClass(e,"has-error"),this.removeClass(e,"has-message")}},{key:"setInputWidgetErrorClasses",value:function(e,t){this.isInputComponent&&this.component.widget&&null!=e&&e.length&&e.forEach(function(e){null!=e&&e.widget&&e.widget.setErrorClasses&&e.widget.setErrorClasses(t)})}},{key:"setCustomValidity",value:function(r,e,t){var n=this,o=this.isInputComponent?this.refs.input||[]:null,i=("string"==typeof r&&r&&(r={level:"error",message:r}),!!(r=Array.isArray(r)?r:r?[r]:[]).filter(function(e){return"error"===e.level}).length),a=o;this.component.multiple&&((o=Array.from(o)).forEach(function(e){n.setElementInvalid(n.performInputMapping(e),!1)}),a=o.filter(function(t){var e,n;return null==(e=(n=r).some)?void 0:e.call(n,function(e){return(null==e||null==(e=e.context)?void 0:e.input)===t})})),r.length?(this.refs.messageContainer&&this.empty(this.refs.messageContainer),this.error={component:this.component,message:r[0].message,messages:r,external:!!t},this.emit("componentError",this.error),this.addMessages(r,e,a),a&&this.setErrorClasses(a,e,i,!!r.length)):(!this.error||this.error&&this.error.external===!!t)&&(this.refs.messageContainer&&this.empty(this.refs.messageContainer),this.refs.modalMessageContainer&&this.empty(this.refs.modalMessageContainer),this.error=null,a&&this.setErrorClasses(a,e,i,!!r.length),this.clearErrorClasses())}},{key:"isValueHidden",value:function(){return(!this.component.protected||!this.root.editing)&&(!(!this.root||!this.root.hasOwnProperty("editing"))&&(!(!this.root||!this.root.editing)&&(this.component.protected||!this.component.persistent||"client-only"===this.component.persistent)))}},{key:"shouldSkipValidation",value:function(e,t,n){var r=this;return[function(){return r.options.readOnly},function(){return!r.hasInput},function(){return r.isValueHidden()},function(){return!r.visible},function(){return!r.checkCondition(n,e)}].some(function(e){return e()})}},{key:"whenReady",value:function(){return console.warn("The whenReady() method has been deprecated. Please use the dataReady property instead."),this.dataReady}},{key:"dataReady",get:function(){return c.default.resolve()}},{key:"asString",value:function(e){return e=e||this.getValue(),(Array.isArray(e)?e:[e]).map(f.default.toString).join(", ")}},{key:"disabled",get:function(){return this._disabled||this.parentDisabled},set:function(e){this._disabled=e}},{key:"setDisabled",value:function(e,t){e&&((e.disabled=t)?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(n,e,t,r){var o=this;f.default.each(t,function(e){var t={value:e.value},t=(void 0!==r&&e.value===r&&(t.selected="selected"),o.ce("option",t));t.appendChild(o.text(e.label)),n.appendChild(t)})}},{key:"setSelectValue",value:function(e,t){var n=e.querySelectorAll("option");f.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),t=this.isInputComponent?this.path:this.path.slice(0).replace(t,"");return e.replace(t,"")}},{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 t=this;this.logic.forEach(function(e){"event"===e.trigger.type&&(e=t.interpolate(e.trigger.event),t.off(e))})}},{key:"attachLogic",value:function(){var a=this;this.builderMode||this.logic.forEach(function(i){var e;"event"===i.trigger.type&&(e=a.interpolate(i.trigger.event),a.on(e,function(){for(var e,t=(0,p.fastCloneDeep)(a.originalComponent),n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];a.applyActions(t,i.actions,r)&&!f.default.isEqual(a.component,t)&&(a.component=t,t=a.conditionallyVisible(null,null),e=a.shouldDisabled,a.visible!==t&&(a.visible=t),a.disabled!==e&&(a.disabled=e),a.redraw())},!0))})}},{key:"elementInfo",value:function(){var e={name:this.options.name,type:this.component.inputType||"text",class:"form-control",lang:this.options.language};return this.component.placeholder&&(e.placeholder=this.t(this.component.placeholder,{_userInput:!0})),this.component.tabindex&&(e.tabindex=this.component.tabindex),this.disabled&&(e.disabled="disabled"),f.default.defaults(e,this.component.attributes),{type:"input",component:this.component,changeEvent:"change",attr:e}}},{key:"autofocus",value:function(){var e=this;!this.component.autofocus||this.builderMode||this.options.preview||this.on("render",function(){return e.focus()},!0)}},{key:"scrollIntoView",value:function(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.element;t&&(e=(t=t.getBoundingClientRect()).left,t=t.top,window.scrollTo(e+window.scrollX,t+window.scrollY))}},{key:"focus",value:function(e){var t;"beforeFocus"in this.parent&&this.parent.beforeFocus(this),null!=(t=this.refs.input)&&t.length&&(t="number"==typeof e&&this.refs.input[e]?this.refs.input[e]:this.refs.input[this.refs.input.length-1],"calendar"===(null==(e=this.component.widget)?void 0:e.type)?(e=t.nextSibling)&&e.focus():t.focus()),this.refs.openModal&&this.refs.openModal.focus(),this.parent.refs.openModal&&this.parent.refs.openModal.focus()}},{key:"fileService",get:function(){if(this.options.fileService)return this.options.fileService;if(this.options.formio)return this.options.formio;if(this.root&&this.root.formio)return this.root.formio;var e=new d.GlobalFormio;return this.root&&this.root._form&&this.root._form._id&&(e.formUrl="".concat(e.projectUrl,"/form/").concat(this.root._form._id)),e}},{key:"resetCaches",value:function(){}},{key:"previewMode",get:function(){return!1}}])&&P(t.prototype,n),e&&P(t,e),Object.defineProperty(t,"prototype",{writable:!1}),u}(n.default);(e.default=I).externalLibraries={},I.requireLibrary=function(n,r,e,t){var o;return I.externalLibraries.hasOwnProperty(n)||(I.externalLibraries[n]={},I.externalLibraries[n].ready=new c.default(function(e,t){I.externalLibraries[n].resolve=e,I.externalLibraries[n].reject=t}),o="".concat(n,"Callback"),t||window[o]||(window[o]=function(){this.resolve()}.bind(I.externalLibraries[n])),(o=f.default.get(window,r))?I.externalLibraries[n].resolve(o):((e=Array.isArray(e)?e:[e]).forEach(function(e){var t={},n="";switch((e="string"==typeof 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,o=document.createElement(n);for(r in t)o.setAttribute(r,t[r]);document.getElementsByTagName("head")[0].appendChild(o)}),t&&setTimeout(function e(){var t=f.default.get(window,r);t?I.externalLibraries[n].resolve(t):setTimeout(e,200)},200))),I.externalLibraries[n].ready},I.libraryReady=function(e){return I.externalLibraries.hasOwnProperty(e)&&I.externalLibraries[e].ready?I.externalLibraries[e].ready:c.default.reject("".concat(e," library was not required."))}},function(e,t){var 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){"use strict";e.exports=n(340)},function(e,t,n){var r=n(117),o=n(62);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(21),o=n(29);e.exports=function(e,t){return arguments.length<2?(n=r[e],o(n)?n:void 0):r[e]&&r[e][t];var n}},function(e,t,n){var r=n(29),o=n(88),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a function")}},function(e,t,n){var r,o,i,a,l,s,u,c,f=n(233),d=n(21),p=n(17),h=n(35),m=n(72),y=n(37),v=n(179),b=n(141),n=n(120),g="Object already initialized",w=d.TypeError,d=d.WeakMap;u=f||v.state?(r=v.state||(v.state=new d),o=p(r.get),i=p(r.has),a=p(r.set),l=function(e,t){if(i(r,e))throw new w(g);return t.facade=e,a(r,e,t),t},s=function(e){return o(r,e)||{}},function(e){return i(r,e)}):(n[c=b("state")]=!0,l=function(e,t){if(y(e,c))throw new w(g);return t.facade=e,m(e,c,t),t},s=function(e){return y(e,c)?e[c]:{}},function(e){return y(e,c)}),e.exports={set:l,get:s,has:u,enforce:function(e){return u(e)?s(e):l(e,{})},getterFor:function(t){return function(e){if(h(e)&&(e=s(e)).type===t)return e;throw w("Incompatible receiver, "+t+" required")}}}},function(L,V,e){var t=e(34),n=e(21),r=e(17),o=e(121),u=e(156),c=e(72),i=e(80).f,f=e(71),d=e(191),p=e(47),h=e(254),a=e(189),l=e(370),s=e(48),m=e(12),y=e(37),v=e(59).enforce,b=e(157),g=e(30),w=e(251),k=e(252),_=g("match"),O=n.RegExp,S=O.prototype,P=n.SyntaxError,E=r(S.exec),x=r("".charAt),j=r("".replace),C=r("".indexOf),N=r("".slice),F=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,R=/a/g,A=/a/g,e=new O(R)!==R,M=a.MISSED_STICKY,U=a.UNSUPPORTED_Y,g=t&&(!e||M||w||k||m(function(){return A[_]=!1,O(R)!=R||O(A)==A||"/a/i"!=O(R,"i")}));if(o("RegExp",g)){function T(e,t){var n,r,o=f(S,this),i=d(e),a=void 0===t,l=[],s=e;if(!o&&i&&a&&e.constructor===T)return e;if((i||f(S,e))&&(e=e.source,a&&(t=h(s))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),s=e,i=t=w&&"dotAll"in R&&(n=!!t&&-1<C(t,"s"))?j(t,/s/g,""):t,M&&"sticky"in R&&(r=!!t&&-1<C(t,"y"))&&U&&(t=j(t,/y/g,"")),k&&(e=(a=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},l=!1,s=!1,u=0,c="";r<=n;r++){if("\\"===(t=x(e,r)))t+=x(e,++r);else if("]"===t)l=!1;else if(!l)switch(!0){case"["===t:l=!0;break;case"("===t:E(F,N(e,r+1))&&(r+=2,s=!0),o+=t,u++;continue;case">"===t&&s:if(""===c||y(a,c))throw new P("Invalid capture group name");a[c]=!0,s=!(i[i.length]=[c,u]),c="";continue}s?c+=t:o+=t}return[o,i]}(e))[0],l=a[1]),a=u(O(e,t),o?this:S,T),(n||r||l.length)&&(t=v(a),n&&(t.dotAll=!0,t.raw=T(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"===(t=x(e,r))?o+=t+x(e,++r):i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]";return o}(e),i)),r&&(t.sticky=!0),l.length&&(t.groups=l)),e!==s)try{c(a,"source",""===s?"(?:)":s)}catch(e){}return a}for(var D=i(O),I=0;D.length>I;)l(T,O,D[I++]);(S.constructor=T).prototype=S,s(n,"RegExp",T,{constructor:!0})}b("RegExp")},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function a(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?i(Object(o),!0).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}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 s(){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=f(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=f(n),t=(e=r?(e=f(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(1),n(8),n(13),n(11),n(23),n(2),n(22),n(14),n(31),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(9);n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e);var n,r=c(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"render",value:function(e){return this.noField?s(f(o.prototype),"render",this).call(this,e):this.isAdvancedLabel?s(f(o.prototype),"render",this).call(this,this.renderTemplate("field",a(a({},this.getLabelInfo()),{},{labelMarkup:this.renderTemplate("label"),element:e}),"align")):s(f(o.prototype),"render",this).call(this,this.renderTemplate("field",{labelMarkup:this.renderTemplate("label"),element:e}))}}])&&l(t.prototype,e),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(((n=n(53))&&n.__esModule?n:{default:n}).default);t.default=n},function(e,t){var n=TypeError;e.exports=function(e){if(null==e)throw n("Can't call method on "+e);return e}},function(e,t){e.exports=!1},function(e,t,n){!function(ca){var fa;//! moment.js
//! version : 2.29.4
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
ca.exports=function(){"use strict";var L,V;function f(){return L.apply(null,arguments)}function N(e){L=e}function a(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function F(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function U(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;else{var t;for(t in e)if(s(e,t))return false;return true}}function l(e){return e===void 0}function u(e){return typeof e==="number"||Object.prototype.toString.call(e)==="[object Number]"}function z(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function B(e,t){var n=[],r,o=e.length;for(r=0;r<o;++r)n.push(t(e[r],r));return n}function H(e,t){for(var n in t)if(s(t,n))e[n]=t[n];if(s(t,"toString"))e.toString=t.toString;if(s(t,"valueOf"))e.valueOf=t.valueOf;return e}function c(e,t,n,r){return Zn(e,t,n,r,true).utc()}function q(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function d(e){if(e._pf==null)e._pf=q();return e._pf}if(Array.prototype.some)V=Array.prototype.some;else V=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return true;return false};function W(e){if(e._isValid==null){var t=d(e),n=V.call(t.parsedDateParts,function(e){return e!=null}),r=!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&&n);if(e._strict)r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined;if(Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r}return e._isValid}function K(e){var t=c(NaN);if(e!=null)H(d(t),e);else d(t).userInvalidated=true;return t}var Y=f.momentProperties=[],G=false;function $(e,t){var n,r,o,i=Y.length;if(!l(t._isAMomentObject))e._isAMomentObject=t._isAMomentObject;if(!l(t._i))e._i=t._i;if(!l(t._f))e._f=t._f;if(!l(t._l))e._l=t._l;if(!l(t._strict))e._strict=t._strict;if(!l(t._tzm))e._tzm=t._tzm;if(!l(t._isUTC))e._isUTC=t._isUTC;if(!l(t._offset))e._offset=t._offset;if(!l(t._pf))e._pf=d(t);if(!l(t._locale))e._locale=t._locale;if(i>0)for(n=0;n<i;n++){r=Y[n];o=t[r];if(!l(o))e[r]=o}return e}function J(e){$(this,e);this._d=new Date(e._d!=null?e._d.getTime():NaN);if(!this.isValid())this._d=new Date(NaN);if(G===false){G=true;f.updateOffset(this);G=false}}function p(e){return e instanceof J||e!=null&&e._isAMomentObject!=null}function Q(e){if(f.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn)console.warn("Deprecation warning: "+e)}function e(i,a){var l=true;return H(function(){if(f.deprecationHandler!=null)f.deprecationHandler(null,i);if(l){var e=[],t,n,r,o=arguments.length;for(n=0;n<o;n++){t="";if(typeof arguments[n]==="object"){t+="\n["+n+"] ";for(r in arguments[0])if(s(arguments[0],r))t+=r+": "+arguments[0][r]+", ";t=t.slice(0,-2)}else t=arguments[n];e.push(t)}Q(i+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack);l=false}return a.apply(this,arguments)},a)}var Z={},X;function ee(e,t){if(f.deprecationHandler!=null)f.deprecationHandler(e,t);if(!Z[e]){Q(t);Z[e]=true}}function h(e){return typeof Function!=="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function te(e){var t,n;for(n in e)if(s(e,n)){t=e[n];if(h(t))this[n]=t;else this["_"+n]=t}this._config=e;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function ne(e,t){var n=H({},e),r;for(r in t)if(s(t,r))if(F(e[r])&&F(t[r])){n[r]={};H(n[r],e[r]);H(n[r],t[r])}else if(t[r]!=null)n[r]=t[r];else delete n[r];for(r in e)if(s(e,r)&&!s(t,r)&&F(e[r]))n[r]=H({},n[r]);return n}function re(e){if(e!=null)this.set(e)}if(f.suppressDeprecationWarnings=false,f.deprecationHandler=null,Object.keys)X=Object.keys;else X=function(e){var t,n=[];for(t in e)if(s(e,t))n.push(t);return n};var oe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ie(e,t,n){var r=this._calendar[e]||this._calendar["sameElse"];return h(r)?r.call(t,n):r}function i(e,t,n){var r=""+Math.abs(e),o=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var ae=/(\[[^\[]*\])|(\\)?([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,le=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,se={},ue={};function r(e,t,n,r){var o=r;if(typeof r==="string")o=function(){return this[r]()};if(e)ue[e]=o;if(t)ue[t[0]]=function(){return i(o.apply(this,arguments),t[1],t[2])};if(n)ue[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)}}function ce(e){if(e.match(/\[[\s\S]/))return e.replace(/^\[|\]$/g,"");return e.replace(/\\/g,"")}function fe(r){var o=r.match(ae),e,i;for(e=0,i=o.length;e<i;e++)if(ue[o[e]])o[e]=ue[o[e]];else o[e]=ce(o[e]);return function(e){var t="",n;for(n=0;n<i;n++)t+=h(o[n])?o[n].call(e,r):o[n];return t}}function de(e,t){if(!e.isValid())return e.localeData().invalidDate();t=pe(t,e.localeData());se[t]=se[t]||fe(t);return se[t](e)}function pe(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}le.lastIndex=0;while(n>=0&&le.test(e)){e=e.replace(le,r);le.lastIndex=0;n-=1}return e}var he={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"};function me(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];if(t||!n)return t;this._longDateFormat[e]=n.match(ae).map(function(e){if(e==="MMMM"||e==="MM"||e==="DD"||e==="dddd")return e.slice(1);return e}).join("");return this._longDateFormat[e]}var ye="Invalid date";function ve(){return this._invalidDate}var be="%d",ge=/\d{1,2}/;function we(e){return this._ordinal.replace("%d",e)}var ke={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"};function _e(e,t,n,r){var o=this._relativeTime[n];return h(o)?o(e,t,n,r):o.replace(/%d/i,e)}function Oe(e,t){var n=this._relativeTime[e>0?"future":"past"];return h(n)?n(t):n.replace(/%s/i,t)}var Se={};function t(e,t){var n=e.toLowerCase();Se[n]=Se[n+"s"]=Se[t]=e}function m(e){return typeof e==="string"?Se[e]||Se[e.toLowerCase()]:undefined}function Pe(e){var t={},n,r;for(r in e)if(s(e,r)){n=m(r);if(n)t[n]=e[r]}return t}var Ee={};function n(e,t){Ee[e]=t}function xe(e){var t=[],n;for(n in e)if(s(e,n))t.push({unit:n,priority:Ee[n]});t.sort(function(e,t){return e.priority-t.priority});return t}function je(e){return e%4===0&&e%100!==0||e%400===0}function y(e){if(e<0)return Math.ceil(e)||0;else return Math.floor(e)}function v(e){var t=+e,n=0;if(t!==0&&isFinite(t))n=y(t);return n}function Ce(t,n){return function(e){if(e!=null){Ae(this,t,e);f.updateOffset(this,n);return this}else return Re(this,t)}}function Re(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ae(e,t,n){if(e.isValid()&&!isNaN(n))if(t==="FullYear"&&je(e.year())&&e.month()===1&&e.date()===29){n=v(n);e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),it(n,e.month()))}else e._d["set"+(e._isUTC?"UTC":"")+t](n)}function Me(e){e=m(e);if(h(this[e]))return this[e]();return this}function Te(e,t){if(typeof e==="object"){e=Pe(e);var n=xe(e),r,o=n.length;for(r=0;r<o;r++)this[n[r].unit](e[n[r].unit])}else{e=m(e);if(h(this[e]))return this[e](t)}return this}var De=/\d/,o=/\d\d/,Ie=/\d{3}/,Le=/\d{4}/,Ve=/[+-]?\d{6}/,b=/\d\d?/,Ne=/\d\d\d\d?/,Fe=/\d\d\d\d\d\d?/,Ue=/\d{1,3}/,ze=/\d{1,4}/,Be=/[+-]?\d{1,6}/,He=/\d+/,qe=/[+-]?\d+/,We=/Z|[+-]\d\d:?\d\d/gi,Ke=/Z|[+-]\d\d(?::?\d\d)?/gi,Ye=/[+-]?\d+(\.\d{1,3})?/,Ge=/[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,$e;function g(e,n,r){$e[e]=h(n)?n:function(e,t){return e&&r?r:n}}function Je(e,t){if(!s($e,e))return new RegExp(Qe(e));return $e[e](t._strict,t._locale)}function Qe(e){return w(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o}))}function w(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var $e={},Ze={};function k(e,n){var t,r=n,o;if(typeof e==="string")e=[e];if(u(n))r=function(e,t){t[n]=v(e)};o=e.length;for(t=0;t<o;t++)Ze[e[t]]=r}function Xe(e,o){k(e,function(e,t,n,r){n._w=n._w||{};o(e,n._w,n,r)})}function et(e,t,n){if(t!=null&&s(Ze,e))Ze[e](t,n._a,n,e)}var _=0,O=1,S=2,P=3,E=4,x=5,tt=6,nt=7,rt=8,j;function ot(e,t){return(e%t+t)%t}if(Array.prototype.indexOf)j=Array.prototype.indexOf;else j=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function it(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=ot(t,12);e+=(t-n)/12;return n===1?je(e)?29:28:31-n%7%2}r("M",["MM",2],"Mo",function(){return this.month()+1}),r("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),r("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),n("month",8),g("M",b),g("MM",b,o),g("MMM",function(e,t){return t.monthsShortRegex(e)}),g("MMMM",function(e,t){return t.monthsRegex(e)}),k(["M","MM"],function(e,t){t[O]=v(e)-1}),k(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);if(o!=null)t[O]=o;else d(n).invalidMonth=e});var at="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),lt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),st=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ut=Ge,ct=Ge;function ft(e,t){if(!e)return a(this._months)?this._months:this._months["standalone"];return a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||st).test(t)?"format":"standalone"][e.month()]}function dt(e,t){if(!e)return a(this._monthsShort)?this._monthsShort:this._monthsShort["standalone"];return a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[st.test(t)?"format":"standalone"][e.month()]}function pt(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[];for(r=0;r<12;++r){i=c([2e3,r]);this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase();this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase()}}if(n)if(t==="MMM"){o=j.call(this._shortMonthsParse,a);return o!==-1?o:null}else{o=j.call(this._longMonthsParse,a);return o!==-1?o:null}else if(t==="MMM"){o=j.call(this._shortMonthsParse,a);if(o!==-1)return o;o=j.call(this._longMonthsParse,a);return o!==-1?o:null}else{o=j.call(this._longMonthsParse,a);if(o!==-1)return o;o=j.call(this._shortMonthsParse,a);return o!==-1?o:null}}function ht(e,t,n){var r,o,i;if(this._monthsParseExact)return pt.call(this,e,t,n);if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[]}for(r=0;r<12;r++){o=c([2e3,r]);if(n&&!this._longMonthsParse[r]){this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i");this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")}if(!n&&!this._monthsParse[r]){i="^"+this.months(o,"")+"|^"+this.monthsShort(o,"");this._monthsParse[r]=new RegExp(i.replace(".",""),"i")}if(n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;else if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;else if(!n&&this._monthsParse[r].test(e))return r}}function mt(e,t){var n;if(!e.isValid())return e;if(typeof t==="string")if(/^\d+$/.test(t))t=v(t);else{t=e.localeData().monthsParse(t);if(!u(t))return e}n=Math.min(e.date(),it(e.year(),t));e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n);return e}function yt(e){if(e!=null){mt(this,e);f.updateOffset(this,true);return this}else return Re(this,"Month")}function vt(){return it(this.year(),this.month())}function bt(e){if(this._monthsParseExact){if(!s(this,"_monthsRegex"))wt.call(this);if(e)return this._monthsShortStrictRegex;else return this._monthsShortRegex}else{if(!s(this,"_monthsShortRegex"))this._monthsShortRegex=ut;return this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex}}function gt(e){if(this._monthsParseExact){if(!s(this,"_monthsRegex"))wt.call(this);if(e)return this._monthsStrictRegex;else return this._monthsRegex}else{if(!s(this,"_monthsRegex"))this._monthsRegex=ct;return this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex}}function wt(){function e(e,t){return t.length-e.length}var t=[],n=[],r=[],o,i;for(o=0;o<12;o++){i=c([2e3,o]);t.push(this.monthsShort(i,""));n.push(this.months(i,""));r.push(this.months(i,""));r.push(this.monthsShort(i,""))}t.sort(e);n.sort(e);r.sort(e);for(o=0;o<12;o++){t[o]=w(t[o]);n[o]=w(n[o])}for(o=0;o<24;o++)r[o]=w(r[o]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function kt(e){return je(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?i(e,4):"+"+e}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,true],0,"year"),t("year","y"),n("year",1),g("Y",qe),g("YY",b,o),g("YYYY",ze,Le),g("YYYYY",Be,Ve),g("YYYYYY",Be,Ve),k(["YYYYY","YYYYYY"],_),k("YYYY",function(e,t){t[_]=e.length===2?f.parseTwoDigitYear(e):v(e)}),k("YY",function(e,t){t[_]=f.parseTwoDigitYear(e)}),k("Y",function(e,t){t[_]=parseInt(e,10)}),f.parseTwoDigitYear=function(e){return v(e)+(v(e)>68?1900:2e3)};var _t=Ce("FullYear",true);function Ot(){return je(this.year())}function St(e,t,n,r,o,i,a){var l;if(e<100&&e>=0){l=new Date(e+400,t,n,r,o,i,a);if(isFinite(l.getFullYear()))l.setFullYear(e)}else l=new Date(e,t,n,r,o,i,a);return l}function Pt(e){var t,n;if(e<100&&e>=0){n=Array.prototype.slice.call(arguments);n[0]=e+400;t=new Date(Date.UTC.apply(null,n));if(isFinite(t.getUTCFullYear()))t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Et(e,t,n){var r=7+t-n,o=(7+Pt(e,0,r).getUTCDay()-t)%7;return-o+r-1}function xt(e,t,n,r,o){var i=(7+n-r)%7,a=Et(e,r,o),l=1+7*(t-1)+i+a,s,u;if(l<=0){s=e-1;u=kt(s)+l}else if(l>kt(e)){s=e+1;u=l-kt(e)}else{s=e;u=l}return{year:s,dayOfYear:u}}function jt(e,t,n){var r=Et(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1,i,a;if(o<1){a=e.year()-1;i=o+C(a,t,n)}else if(o>C(e.year(),t,n)){i=o-C(e.year(),t,n);a=e.year()+1}else{a=e.year();i=o}return{week:i,year:a}}function C(e,t,n){var r=Et(e,t,n),o=Et(e+1,t,n);return(kt(e)-r+o)/7}function Ct(e){return jt(e,this._week.dow,this._week.doy).week}r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),n("week",5),n("isoWeek",5),g("w",b),g("ww",b,o),g("W",b),g("WW",b,o),Xe(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=v(e)});var Rt={dow:0,doy:6};function At(){return this._week.dow}function Mt(){return this._week.doy}function Tt(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Dt(e){var t=jt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}function It(e,t){if(typeof e!=="string")return e;if(!isNaN(e))return parseInt(e,10);e=t.weekdaysParse(e);if(typeof e==="number")return e;return null}function Lt(e,t){if(typeof e==="string")return t.weekdaysParse(e)%7||7;return isNaN(e)?null:e}function Vt(e,t){return e.slice(t,7).concat(e.slice(0,t))}r("d",0,"do","day"),r("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),r("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),r("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),g("d",b),g("e",b),g("E",b),g("dd",function(e,t){return t.weekdaysMinRegex(e)}),g("ddd",function(e,t){return t.weekdaysShortRegex(e)}),g("dddd",function(e,t){return t.weekdaysRegex(e)}),Xe(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);if(o!=null)t.d=o;else d(n).invalidWeekday=e}),Xe(["d","e","E"],function(e,t,n,r){t[r]=v(e)});var Nt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ft="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ut="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),zt=Ge,Bt=Ge,Ht=Ge;function qt(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&e!==true&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===true?Vt(n,this._week.dow):e?n[e.day()]:n}function Wt(e){return e===true?Vt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Kt(e){return e===true?Vt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Yt(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(r=0;r<7;++r){i=c([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()}}if(n)if(t==="dddd"){o=j.call(this._weekdaysParse,a);return o!==-1?o:null}else if(t==="ddd"){o=j.call(this._shortWeekdaysParse,a);return o!==-1?o:null}else{o=j.call(this._minWeekdaysParse,a);return o!==-1?o:null}else if(t==="dddd"){o=j.call(this._weekdaysParse,a);if(o!==-1)return o;o=j.call(this._shortWeekdaysParse,a);if(o!==-1)return o;o=j.call(this._minWeekdaysParse,a);return o!==-1?o:null}else if(t==="ddd"){o=j.call(this._shortWeekdaysParse,a);if(o!==-1)return o;o=j.call(this._weekdaysParse,a);if(o!==-1)return o;o=j.call(this._minWeekdaysParse,a);return o!==-1?o:null}else{o=j.call(this._minWeekdaysParse,a);if(o!==-1)return o;o=j.call(this._weekdaysParse,a);if(o!==-1)return o;o=j.call(this._shortWeekdaysParse,a);return o!==-1?o:null}}function Gt(e,t,n){var r,o,i;if(this._weekdaysParseExact)return Yt.call(this,e,t,n);if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[]}for(r=0;r<7;r++){o=c([2e3,1]).day(r);if(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")}if(!this._weekdaysParse[r]){i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,"");this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")}if(n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;else if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;else if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;else if(!n&&this._weekdaysParse[r].test(e))return r}}function $t(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();if(e!=null){e=It(e,this.localeData());return this.add(e-t,"d")}else return t}function Jt(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Qt(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Lt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Zt(e){if(this._weekdaysParseExact){if(!s(this,"_weekdaysRegex"))tn.call(this);if(e)return this._weekdaysStrictRegex;else return this._weekdaysRegex}else{if(!s(this,"_weekdaysRegex"))this._weekdaysRegex=zt;return this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex}}function Xt(e){if(this._weekdaysParseExact){if(!s(this,"_weekdaysRegex"))tn.call(this);if(e)return this._weekdaysShortStrictRegex;else return this._weekdaysShortRegex}else{if(!s(this,"_weekdaysShortRegex"))this._weekdaysShortRegex=Bt;return this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}}function en(e){if(this._weekdaysParseExact){if(!s(this,"_weekdaysRegex"))tn.call(this);if(e)return this._weekdaysMinStrictRegex;else return this._weekdaysMinRegex}else{if(!s(this,"_weekdaysMinRegex"))this._weekdaysMinRegex=Ht;return this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}}function tn(){function e(e,t){return t.length-e.length}var t=[],n=[],r=[],o=[],i,a,l,s,u;for(i=0;i<7;i++){a=c([2e3,1]).day(i);l=w(this.weekdaysMin(a,""));s=w(this.weekdaysShort(a,""));u=w(this.weekdays(a,""));t.push(l);n.push(s);r.push(u);o.push(l);o.push(s);o.push(u)}t.sort(e);n.sort(e);r.sort(e);o.sort(e);this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function nn(){return this.hours()%12||12}function rn(){return this.hours()||24}function on(e,t){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function an(e,t){return t._meridiemParse}function ln(e){return(e+"").toLowerCase().charAt(0)==="p"}r("H",["HH",2],0,"hour"),r("h",["hh",2],0,nn),r("k",["kk",2],0,rn),r("hmm",0,0,function(){return""+nn.apply(this)+i(this.minutes(),2)}),r("hmmss",0,0,function(){return""+nn.apply(this)+i(this.minutes(),2)+i(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+i(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+i(this.minutes(),2)+i(this.seconds(),2)}),on("a",true),on("A",false),t("hour","h"),n("hour",13),g("a",an),g("A",an),g("H",b),g("h",b),g("k",b),g("HH",b,o),g("hh",b,o),g("kk",b,o),g("hmm",Ne),g("hmmss",Fe),g("Hmm",Ne),g("Hmmss",Fe),k(["H","HH"],P),k(["k","kk"],function(e,t,n){var r=v(e);t[P]=r===24?0:r}),k(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e);n._meridiem=e}),k(["h","hh"],function(e,t,n){t[P]=v(e);d(n).bigHour=true}),k("hmm",function(e,t,n){var r=e.length-2;t[P]=v(e.substr(0,r));t[E]=v(e.substr(r));d(n).bigHour=true}),k("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[P]=v(e.substr(0,r));t[E]=v(e.substr(r,2));t[x]=v(e.substr(o));d(n).bigHour=true}),k("Hmm",function(e,t,n){var r=e.length-2;t[P]=v(e.substr(0,r));t[E]=v(e.substr(r))}),k("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[P]=v(e.substr(0,r));t[E]=v(e.substr(r,2));t[x]=v(e.substr(o))});var sn,un=Ce("Hours",true);function cn(e,t,n){if(e>11)return n?"pm":"PM";else return n?"am":"AM"}var fn={calendar:oe,longDateFormat:he,invalidDate:ye,ordinal:be,dayOfMonthOrdinalParse:ge,relativeTime:ke,months:at,monthsShort:lt,week:Rt,weekdays:Nt,weekdaysMin:Ut,weekdaysShort:Ft,meridiemParse:/[ap]\.?m?\.?/i},R={},dn={},pn;function hn(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 mn(e){return e?e.toLowerCase().replace("_","-"):e}function yn(e){var t=0,n,r,o,i;while(t<e.length){i=mn(e[t]).split("-");n=i.length;r=mn(e[t+1]);r=r?r.split("-"):null;while(n>0){o=bn(i.slice(0,n).join("-"));if(o)return o;if(r&&r.length>=n&&hn(i,r)>=n-1)break;n--}t++}return pn}function vn(e){return e.match("^[^/\\\\]*$")!=null}function bn(t){var e=null,n;if(R[t]===undefined&&typeof ca!=="undefined"&&ca&&ca.exports&&vn(t))try{e=pn._abbr;n=fa;!function e(){var t=new Error("Cannot find module 'undefined'");t.code="MODULE_NOT_FOUND";throw t}();gn(e)}catch(e){R[t]=null}return R[t]}function gn(e,t){var n;if(e){if(l(t))n=_n(e);else n=wn(e,t);if(n)pn=n;else if(typeof console!=="undefined"&&console.warn)console.warn("Locale "+e+" not found. Did you forget to load it?")}return pn._abbr}function wn(e,t){if(t!==null){var n,r=fn;t.abbr=e;if(R[e]!=null){ee("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=R[e]._config}else if(t.parentLocale!=null)if(R[t.parentLocale]!=null)r=R[t.parentLocale]._config;else{n=bn(t.parentLocale);if(n!=null)r=n._config;else{if(!dn[t.parentLocale])dn[t.parentLocale]=[];dn[t.parentLocale].push({name:e,config:t});return null}}R[e]=new re(ne(r,t));if(dn[e])dn[e].forEach(function(e){wn(e.name,e.config)});gn(e);return R[e]}else{delete R[e];return null}}function kn(e,t){if(t!=null){var n,r,o=fn;if(R[e]!=null&&R[e].parentLocale!=null)R[e].set(ne(R[e]._config,t));else{r=bn(e);if(r!=null)o=r._config;t=ne(o,t);if(r==null)t.abbr=e;n=new re(t);n.parentLocale=R[e];R[e]=n}gn(e)}else if(R[e]!=null)if(R[e].parentLocale!=null){R[e]=R[e].parentLocale;if(e===gn())gn(e)}else if(R[e]!=null)delete R[e];return R[e]}function _n(e){var t;if(e&&e._locale&&e._locale._abbr)e=e._locale._abbr;if(!e)return pn;if(!a(e)){t=bn(e);if(t)return t;e=[e]}return yn(e)}function On(){return X(R)}function Sn(e){var t,n=e._a;if(n&&d(e).overflow===-2){t=n[O]<0||n[O]>11?O:n[S]<1||n[S]>it(n[_],n[O])?S:n[P]<0||n[P]>24||n[P]===24&&(n[E]!==0||n[x]!==0||n[tt]!==0)?P:n[E]<0||n[E]>59?E:n[x]<0||n[x]>59?x:n[tt]<0||n[tt]>999?tt:-1;if(d(e)._overflowDayOfYear&&(t<_||t>S))t=S;if(d(e)._overflowWeeks&&t===-1)t=nt;if(d(e)._overflowWeekday&&t===-1)t=rt;d(e).overflow=t}return e}var Pn=/^\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)?)?$/,En=/^\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)?)?$/,xn=/Z|[+-]\d\d(?::?\d\d)?/,jn=[["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/,false],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,false],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,false],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,false],["YYYY",/\d{4}/,false]],Cn=[["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/]],Rn=/^\/?Date\((-?\d+)/i,An=/^(?:(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}))$/,Mn={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Tn(e){var t,n,r=e._i,o=Pn.exec(r)||En.exec(r),i,a,l,s,u=jn.length,c=Cn.length;if(o){d(e).iso=true;for(t=0,n=u;t<n;t++)if(jn[t][1].exec(o[1])){a=jn[t][0];i=jn[t][2]!==false;break}if(a==null){e._isValid=false;return}if(o[3]){for(t=0,n=c;t<n;t++)if(Cn[t][1].exec(o[3])){l=(o[2]||" ")+Cn[t][0];break}if(l==null){e._isValid=false;return}}if(!i&&l!=null){e._isValid=false;return}if(o[4])if(xn.exec(o[4]))s="Z";else{e._isValid=false;return}e._f=a+(l||"")+(s||"");Wn(e)}else e._isValid=false}function Dn(e,t,n,r,o,i){var a=[In(e),lt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];if(i)a.push(parseInt(i,10));return a}function In(e){var t=parseInt(e,10);if(t<=49)return 2e3+t;else if(t<=999)return 1900+t;return t}function Ln(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Vn(e,t,n){if(e){var r=Ft.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(r!==o){d(n).weekdayMismatch=true;n._isValid=false;return false}}return true}function Nn(e,t,n){if(e)return Mn[e];else if(t)return 0;else{var r=parseInt(n,10),o=r%100,i=(r-o)/100;return i*60+o}}function Fn(e){var t=An.exec(Ln(e._i)),n;if(t){n=Dn(t[4],t[3],t[2],t[5],t[6],t[7]);if(!Vn(t[1],n,e))return;e._a=n;e._tzm=Nn(t[8],t[9],t[10]);e._d=Pt.apply(null,e._a);e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm);d(e).rfc2822=true}else e._isValid=false}function Un(e){var t=Rn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}Tn(e);if(e._isValid===false)delete e._isValid;else return;Fn(e);if(e._isValid===false)delete e._isValid;else return;if(e._strict)e._isValid=false;else f.createFromInputFallback(e)}function zn(e,t,n){if(e!=null)return e;if(t!=null)return t;return n}function Bn(e){var t=new Date(f.now());if(e._useUTC)return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()];return[t.getFullYear(),t.getMonth(),t.getDate()]}function Hn(e){var t,n,r=[],o,i,a;if(e._d)return;o=Bn(e);if(e._w&&e._a[S]==null&&e._a[O]==null)qn(e);if(e._dayOfYear!=null){a=zn(e._a[_],o[_]);if(e._dayOfYear>kt(a)||e._dayOfYear===0)d(e)._overflowDayOfYear=true;n=Pt(a,0,e._dayOfYear);e._a[O]=n.getUTCMonth();e._a[S]=n.getUTCDate()}for(t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=o[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];if(e._a[P]===24&&e._a[E]===0&&e._a[x]===0&&e._a[tt]===0){e._nextDay=true;e._a[P]=0}e._d=(e._useUTC?Pt:St).apply(null,r);i=e._useUTC?e._d.getUTCDay():e._d.getDay();if(e._tzm!=null)e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm);if(e._nextDay)e._a[P]=24;if(e._w&&typeof e._w.d!=="undefined"&&e._w.d!==i)d(e).weekdayMismatch=true}function qn(e){var t,n,r,o,i,a,l,s,u;t=e._w;if(t.GG!=null||t.W!=null||t.E!=null){i=1;a=4;n=zn(t.GG,e._a[_],jt(A(),1,4).year);r=zn(t.W,1);o=zn(t.E,1);if(o<1||o>7)s=true}else{i=e._locale._week.dow;a=e._locale._week.doy;u=jt(A(),i,a);n=zn(t.gg,e._a[_],u.year);r=zn(t.w,u.week);if(t.d!=null){o=t.d;if(o<0||o>6)s=true}else if(t.e!=null){o=t.e+i;if(t.e<0||t.e>6)s=true}else o=i}if(r<1||r>C(n,i,a))d(e)._overflowWeeks=true;else if(s!=null)d(e)._overflowWeekday=true;else{l=xt(n,r,o,i,a);e._a[_]=l.year;e._dayOfYear=l.dayOfYear}}function Wn(e){if(e._f===f.ISO_8601){Tn(e);return}if(e._f===f.RFC_2822){Fn(e);return}e._a=[];d(e).empty=true;var t=""+e._i,n,r,o,i,a,l=t.length,s=0,u,c;o=pe(e._f,e._locale).match(ae)||[];c=o.length;for(n=0;n<c;n++){i=o[n];r=(t.match(Je(i,e))||[])[0];if(r){a=t.substr(0,t.indexOf(r));if(a.length>0)d(e).unusedInput.push(a);t=t.slice(t.indexOf(r)+r.length);s+=r.length}if(ue[i]){if(r)d(e).empty=false;else d(e).unusedTokens.push(i);et(i,r,e)}else if(e._strict&&!r)d(e).unusedTokens.push(i)}d(e).charsLeftOver=l-s;if(t.length>0)d(e).unusedInput.push(t);if(e._a[P]<=12&&d(e).bigHour===true&&e._a[P]>0)d(e).bigHour=undefined;d(e).parsedDateParts=e._a.slice(0);d(e).meridiem=e._meridiem;e._a[P]=Kn(e._locale,e._a[P],e._meridiem);u=d(e).era;if(u!==null)e._a[_]=e._locale.erasConvertYear(u,e._a[_]);Hn(e);Sn(e)}function Kn(e,t,n){var r;if(n==null)return t;if(e.meridiemHour!=null)return e.meridiemHour(t,n);else if(e.isPM!=null){r=e.isPM(n);if(r&&t<12)t+=12;if(!r&&t===12)t=0;return t}else return t}function Yn(e){var t,n,r,o,i,a,l=false,s=e._f.length;if(s===0){d(e).invalidFormat=true;e._d=new Date(NaN);return}for(o=0;o<s;o++){i=0;a=false;t=$({},e);if(e._useUTC!=null)t._useUTC=e._useUTC;t._f=e._f[o];Wn(t);if(W(t))a=true;i+=d(t).charsLeftOver;i+=d(t).unusedTokens.length*10;d(t).score=i;if(!l){if(r==null||i<r||a){r=i;n=t;if(a)l=true}}else if(i<r){r=i;n=t}}H(e,n||t)}function Gn(e){if(e._d)return;var t=Pe(e._i),n=t.day===undefined?t.date:t.day;e._a=B([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)});Hn(e)}function $n(e){var t=new J(Sn(Jn(e)));if(t._nextDay){t.add(1,"d");t._nextDay=undefined}return t}function Jn(e){var t=e._i,n=e._f;e._locale=e._locale||_n(e._l);if(t===null||n===undefined&&t==="")return K({nullInput:true});if(typeof t==="string")e._i=t=e._locale.preparse(t);if(p(t))return new J(Sn(t));else if(z(t))e._d=t;else if(a(n))Yn(e);else if(n)Wn(e);else Qn(e);if(!W(e))e._d=null;return e}function Qn(e){var t=e._i;if(l(t))e._d=new Date(f.now());else if(z(t))e._d=new Date(t.valueOf());else if(typeof t==="string")Un(e);else if(a(t)){e._a=B(t.slice(0),function(e){return parseInt(e,10)});Hn(e)}else if(F(t))Gn(e);else if(u(t))e._d=new Date(t);else f.createFromInputFallback(e)}function Zn(e,t,n,r,o){var i={};if(t===true||t===false){r=t;t=undefined}if(n===true||n===false){r=n;n=undefined}if(F(e)&&U(e)||a(e)&&e.length===0)e=undefined;i._isAMomentObject=true;i._useUTC=i._isUTC=o;i._l=n;i._i=e;i._f=t;i._strict=r;return $n(i)}function A(e,t,n,r){return Zn(e,t,n,r,false)}f.createFromInputFallback=e("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), "+"which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are "+"discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),f.ISO_8601=function(){},f.RFC_2822=function(){};var Xn=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=A.apply(null,arguments);if(this.isValid()&&e.isValid())return e<this?this:e;else return K()}),er=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=A.apply(null,arguments);if(this.isValid()&&e.isValid())return e>this?this:e;else return K()});function tr(e,t){var n,r;if(t.length===1&&a(t[0]))t=t[0];if(!t.length)return A();n=t[0];for(r=1;r<t.length;++r)if(!t[r].isValid()||t[r][e](n))n=t[r];return n}function nr(){var e=[].slice.call(arguments,0);return tr("isBefore",e)}function rr(){var e=[].slice.call(arguments,0);return tr("isAfter",e)}var or=function(){return Date.now?Date.now():+new Date},ir=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ar(e){var t,n=false,r,o=ir.length;for(t in e)if(s(e,t)&&!(j.call(ir,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return false;for(r=0;r<o;++r)if(e[ir[r]]){if(n)return false;if(parseFloat(e[ir[r]])!==v(e[ir[r]]))n=true}return true}function lr(){return this._isValid}function sr(){return M(NaN)}function ur(e){var t=Pe(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,l=t.hour||0,s=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=ar(t);this._milliseconds=+c+u*1e3+s*6e4+l*1e3*60*60;this._days=+a+i*7;this._months=+o+r*3+n*12;this._data={};this._locale=_n();this._bubble()}function cr(e){return e instanceof ur}function fr(e){if(e<0)return Math.round(-1*e)*-1;else return Math.round(e)}function dr(e,t,n){var r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0,a;for(a=0;a<r;a++)if(n&&e[a]!==t[a]||!n&&v(e[a])!==v(t[a]))i++;return i+o}function pr(e,n){r(e,0,0,function(){var e=this.utcOffset(),t="+";if(e<0){e=-e;t="-"}return t+i(~~(e/60),2)+n+i(~~e%60,2)})}pr("Z",":"),pr("ZZ",""),g("Z",Ke),g("ZZ",Ke),k(["Z","ZZ"],function(e,t,n){n._useUTC=true;n._tzm=mr(Ke,e)});var hr=/([\+\-]|\d\d)/gi;function mr(e,t){var n=(t||"").match(e),r,o,i;if(n===null)return null;r=n[n.length-1]||[];o=(r+"").match(hr)||["-",0,0];i=+(o[1]*60)+v(o[2]);return i===0?0:o[0]==="+"?i:-i}function yr(e,t){var n,r;if(t._isUTC){n=t.clone();r=(p(e)||z(e)?e.valueOf():A(e).valueOf())-n.valueOf();n._d.setTime(n._d.valueOf()+r);f.updateOffset(n,false);return n}else return A(e).local()}function vr(e){return-Math.round(e._d.getTimezoneOffset())}function br(e,t,n){var r=this._offset||0,o;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e==="string"){e=mr(Ke,e);if(e===null)return this}else if(Math.abs(e)<16&&!n)e=e*60;if(!this._isUTC&&t)o=vr(this);this._offset=e;this._isUTC=true;if(o!=null)this.add(o,"m");if(r!==e)if(!t||this._changeInProgress)Ir(this,M(e-r,"m"),1,false);else if(!this._changeInProgress){this._changeInProgress=true;f.updateOffset(this,true);this._changeInProgress=null}return this}else return this._isUTC?r:vr(this)}function gr(e,t){if(e!=null){if(typeof e!=="string")e=-e;this.utcOffset(e,t);return this}else return-this.utcOffset()}function wr(e){return this.utcOffset(0,e)}function kr(e){if(this._isUTC){this.utcOffset(0,e);this._isUTC=false;if(e)this.subtract(vr(this),"m")}return this}function _r(){if(this._tzm!=null)this.utcOffset(this._tzm,false,true);else if(typeof this._i==="string"){var e=mr(We,this._i);if(e!=null)this.utcOffset(e);else this.utcOffset(0,true)}return this}function Or(e){if(!this.isValid())return false;e=e?A(e).utcOffset():0;return(this.utcOffset()-e)%60===0}function Sr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Pr(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e={},t;$(e,this);e=Jn(e);if(e._a){t=e._isUTC?c(e._a):A(e._a);this._isDSTShifted=this.isValid()&&dr(e._a,t.toArray())>0}else this._isDSTShifted=false;return this._isDSTShifted}function Er(){return this.isValid()?!this._isUTC:false}function xr(){return this.isValid()?this._isUTC:false}function jr(){return this.isValid()?this._isUTC&&this._offset===0:false}f.updateOffset=function(){};var Cr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Rr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function M(e,t){var n=e,r=null,o,i,a;if(cr(e))n={ms:e._milliseconds,d:e._days,M:e._months};else if(u(e)||!isNaN(+e)){n={};if(t)n[t]=+e;else n.milliseconds=+e}else if(r=Cr.exec(e)){o=r[1]==="-"?-1:1;n={y:0,d:v(r[S])*o,h:v(r[P])*o,m:v(r[E])*o,s:v(r[x])*o,ms:v(fr(r[tt]*1e3))*o}}else if(r=Rr.exec(e)){o=r[1]==="-"?-1:1;n={y:Ar(r[2],o),M:Ar(r[3],o),w:Ar(r[4],o),d:Ar(r[5],o),h:Ar(r[6],o),m:Ar(r[7],o),s:Ar(r[8],o)}}else if(n==null)n={};else if(typeof n==="object"&&("from"in n||"to"in n)){a=Tr(A(n.from),A(n.to));n={};n.ms=a.milliseconds;n.M=a.months}i=new ur(n);if(cr(e)&&s(e,"_locale"))i._locale=e._locale;if(cr(e)&&s(e,"_isValid"))i._isValid=e._isValid;return i}function Ar(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Mr(e,t){var n={};n.months=t.month()-e.month()+(t.year()-e.year())*12;if(e.clone().add(n.months,"M").isAfter(t))--n.months;n.milliseconds=+t-+e.clone().add(n.months,"M");return n}function Tr(e,t){var n;if(!(e.isValid()&&t.isValid()))return{milliseconds:0,months:0};t=yr(t,e);if(e.isBefore(t))n=Mr(e,t);else{n=Mr(t,e);n.milliseconds=-n.milliseconds;n.months=-n.months}return n}function Dr(o,i){return function(e,t){var n,r;if(t!==null&&!isNaN(+t)){ee(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). "+"See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");r=e;e=t;t=r}n=M(e,t);Ir(this,n,o);return this}}function Ir(e,t,n,r){var o=t._milliseconds,i=fr(t._days),a=fr(t._months);if(!e.isValid())return;r=r==null?true:r;if(a)mt(e,Re(e,"Month")+a*n);if(i)Ae(e,"Date",Re(e,"Date")+i*n);if(o)e._d.setTime(e._d.valueOf()+o*n);if(r)f.updateOffset(e,i||a)}M.fn=ur.prototype,M.invalid=sr;var Lr=Dr(1,"add"),Vr=Dr(-1,"subtract");function Nr(e){return typeof e==="string"||e instanceof String}function Fr(e){return p(e)||z(e)||Nr(e)||u(e)||zr(e)||Ur(e)||e===null||e===undefined}function Ur(e){var t=F(e)&&!U(e),n=false,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,i,a=r.length;for(o=0;o<a;o+=1){i=r[o];n=n||s(e,i)}return t&&n}function zr(t){var e=a(t),n=false;if(e)n=t.filter(function(e){return!u(e)&&Nr(t)}).length===0;return e&&n}function Br(e){var t=F(e)&&!U(e),n=false,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o,i;for(o=0;o<r.length;o+=1){i=r[o];n=n||s(e,i)}return t&&n}function Hr(e,t){var n=e.diff(t,"days",true);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function qr(e,t){if(arguments.length===1)if(!arguments[0]){e=undefined;t=undefined}else if(Fr(arguments[0])){e=arguments[0];t=undefined}else if(Br(arguments[0])){t=arguments[0];e=undefined}var n=e||A(),r=yr(n,this).startOf("day"),o=f.calendarFormat(this,r)||"sameElse",i=t&&(h(t[o])?t[o].call(this,n):t[o]);return this.format(i||this.localeData().calendar(o,this,A(n)))}function Wr(){return new J(this)}function Kr(e,t){var n=p(e)?e:A(e);if(!(this.isValid()&&n.isValid()))return false;t=m(t)||"millisecond";if(t==="millisecond")return this.valueOf()>n.valueOf();else return n.valueOf()<this.clone().startOf(t).valueOf()}function Yr(e,t){var n=p(e)?e:A(e);if(!(this.isValid()&&n.isValid()))return false;t=m(t)||"millisecond";if(t==="millisecond")return this.valueOf()<n.valueOf();else return this.clone().endOf(t).valueOf()<n.valueOf()}function Gr(e,t,n,r){var o=p(e)?e:A(e),i=p(t)?t:A(t);if(!(this.isValid()&&o.isValid()&&i.isValid()))return false;r=r||"()";return(r[0]==="("?this.isAfter(o,n):!this.isBefore(o,n))&&(r[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))}function $r(e,t){var n=p(e)?e:A(e),r;if(!(this.isValid()&&n.isValid()))return false;t=m(t)||"millisecond";if(t==="millisecond")return this.valueOf()===n.valueOf();else{r=n.valueOf();return this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf()}}function Jr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Qr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Zr(e,t,n){var r,o,i;if(!this.isValid())return NaN;r=yr(e,this);if(!r.isValid())return NaN;o=(r.utcOffset()-this.utcOffset())*6e4;t=m(t);switch(t){case"year":i=Xr(this,r)/12;break;case"month":i=Xr(this,r);break;case"quarter":i=Xr(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:y(i)}function Xr(e,t){if(e.date()<t.date())return-Xr(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),o,i;if(t-r<0){o=e.clone().add(n-1,"months");i=(t-r)/(r-o)}else{o=e.clone().add(n+1,"months");i=(t-r)/(o-r)}return-(n+i)||0}function eo(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function to(e){if(!this.isValid())return null;var t=e!==true,n=t?this.clone().utc():this;if(n.year()<0||n.year()>9999)return de(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(h(Date.prototype.toISOString))if(t)return this.toDate().toISOString();else return new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",de(n,"Z"));return de(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function no(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,o,i;if(!this.isLocal()){e=this.utcOffset()===0?"moment.utc":"moment.parseZone";t="Z"}n="["+e+'("]';r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";o="-MM-DD[T]HH:mm:ss.SSS";i=t+'[")]';return this.format(n+r+o+i)}function ro(e){if(!e)e=this.isUtc()?f.defaultFormatUtc:f.defaultFormat;var t=de(this,e);return this.localeData().postformat(t)}function oo(e,t){if(this.isValid()&&(p(e)&&e.isValid()||A(e).isValid()))return M({to:this,from:e}).locale(this.locale()).humanize(!t);else return this.localeData().invalidDate()}function io(e){return this.from(A(),e)}function ao(e,t){if(this.isValid()&&(p(e)&&e.isValid()||A(e).isValid()))return M({from:this,to:e}).locale(this.locale()).humanize(!t);else return this.localeData().invalidDate()}function lo(e){return this.to(A(),e)}function so(e){var t;if(e===undefined)return this._locale._abbr;else{t=_n(e);if(t!=null)this._locale=t;return this}}f.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",f.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var uo=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){if(e===undefined)return this.localeData();else return this.locale(e)});function co(){return this._locale}var fo=1e3,po=60*fo,ho=60*po,mo=(365*400+97)*24*ho;function yo(e,t){return(e%t+t)%t}function vo(e,t,n){if(e<100&&e>=0)return new Date(e+400,t,n)-mo;else return new Date(e,t,n).valueOf()}function bo(e,t,n){if(e<100&&e>=0)return Date.UTC(e+400,t,n)-mo;else return Date.UTC(e,t,n)}function go(e){var t,n;e=m(e);if(e===undefined||e==="millisecond"||!this.isValid())return this;n=this._isUTC?bo:vo;switch(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-=yo(t+(this._isUTC?0:this.utcOffset()*po),ho);break;case"minute":t=this._d.valueOf();t-=yo(t,po);break;case"second":t=this._d.valueOf();t-=yo(t,fo);break}this._d.setTime(t);f.updateOffset(this,true);return this}function wo(e){var t,n;e=m(e);if(e===undefined||e==="millisecond"||!this.isValid())return this;n=this._isUTC?bo:vo;switch(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+=ho-yo(t+(this._isUTC?0:this.utcOffset()*po),ho)-1;break;case"minute":t=this._d.valueOf();t+=po-yo(t,po)-1;break;case"second":t=this._d.valueOf();t+=fo-yo(t,fo)-1;break}this._d.setTime(t);f.updateOffset(this,true);return this}function ko(){return this._d.valueOf()-(this._offset||0)*6e4}function _o(){return Math.floor(this.valueOf()/1e3)}function Oo(){return new Date(this.valueOf())}function So(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Po(){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()}}function Eo(){return this.isValid()?this.toISOString():null}function xo(){return W(this)}function jo(){return H({},d(this))}function Co(){return d(this).overflow}function Ro(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ao(e,t){var n,r,o,i=this._eras||_n("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":o=f(i[n].since).startOf("day");i[n].since=o.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=+Infinity;break;case"string":o=f(i[n].until).startOf("day").valueOf();i[n].until=o.valueOf();break}}return i}function Mo(e,t,n){var r,o,i=this.eras(),a,l,s;e=e.toUpperCase();for(r=0,o=i.length;r<o;++r){a=i[r].name.toUpperCase();l=i[r].abbr.toUpperCase();s=i[r].narrow.toUpperCase();if(n)switch(t){case"N":case"NN":case"NNN":if(l===e)return i[r];break;case"NNNN":if(a===e)return i[r];break;case"NNNNN":if(s===e)return i[r];break}else if([a,l,s].indexOf(e)>=0)return i[r]}}function To(e,t){var n=e.since<=e.until?+1:-1;if(t===undefined)return f(e.since).year();else return f(e.since).year()+(t-e.offset)*n}function Do(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){n=this.clone().startOf("day").valueOf();if(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""}function Io(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){n=this.clone().startOf("day").valueOf();if(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""}function Lo(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){n=this.clone().startOf("day").valueOf();if(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""}function Vo(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e){n=o[e].since<=o[e].until?+1:-1;r=this.clone().startOf("day").valueOf();if(o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-f(o[e].since).year())*n+o[e].offset}return this.year()}function No(e){if(!s(this,"_erasNameRegex"))Wo.call(this);return e?this._erasNameRegex:this._erasRegex}function Fo(e){if(!s(this,"_erasAbbrRegex"))Wo.call(this);return e?this._erasAbbrRegex:this._erasRegex}function Uo(e){if(!s(this,"_erasNarrowRegex"))Wo.call(this);return e?this._erasNarrowRegex:this._erasRegex}function zo(e,t){return t.erasAbbrRegex(e)}function Bo(e,t){return t.erasNameRegex(e)}function Ho(e,t){return t.erasNarrowRegex(e)}function qo(e,t){return t._eraYearOrdinalRegex||He}function Wo(){var e=[],t=[],n=[],r=[],o,i,a=this.eras();for(o=0,i=a.length;o<i;++o){t.push(w(a[o].name));e.push(w(a[o].abbr));n.push(w(a[o].narrow));r.push(w(a[o].name));r.push(w(a[o].abbr));r.push(w(a[o].narrow))}this._erasRegex=new RegExp("^("+r.join("|")+")","i");this._erasNameRegex=new RegExp("^("+t.join("|")+")","i");this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i");this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function Ko(e,t){r(0,[e,e.length],0,t)}function Yo(e){return Xo.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Go(e){return Xo.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function $o(){return C(this.year(),1,4)}function Jo(){return C(this.isoWeekYear(),1,4)}function Qo(){var e=this.localeData()._week;return C(this.year(),e.dow,e.doy)}function Zo(){var e=this.localeData()._week;return C(this.weekYear(),e.dow,e.doy)}function Xo(e,t,n,r,o){var i;if(e==null)return jt(this,r,o).year;else{i=C(e,r,o);if(t>i)t=i;return ei.call(this,e,t,n,r,o)}}function ei(e,t,n,r,o){var i=xt(e,t,n,r,o),a=Pt(i.year,0,i.dayOfYear);this.year(a.getUTCFullYear());this.month(a.getUTCMonth());this.date(a.getUTCDate());return this}function ti(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),g("N",zo),g("NN",zo),g("NNN",zo),g("NNNN",Bo),g("NNNNN",Ho),k(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);if(o)d(n).era=o;else d(n).invalidEra=e}),g("y",He),g("yy",He),g("yyy",He),g("yyyy",He),g("yo",qo),k(["y","yy","yyy","yyyy"],_),k(["yo"],function(e,t,n,r){var o;if(n._locale._eraYearOrdinalRegex)o=e.match(n._locale._eraYearOrdinalRegex);if(n._locale.eraYearOrdinalParse)t[_]=n._locale.eraYearOrdinalParse(e,o);else t[_]=parseInt(e,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ko("gggg","weekYear"),Ko("ggggg","weekYear"),Ko("GGGG","isoWeekYear"),Ko("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),g("G",qe),g("g",qe),g("GG",b,o),g("gg",b,o),g("GGGG",ze,Le),g("gggg",ze,Le),g("GGGGG",Be,Ve),g("ggggg",Be,Ve),Xe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=v(e)}),Xe(["gg","GG"],function(e,t,n,r){t[r]=f.parseTwoDigitYear(e)}),r("Q",0,"Qo","quarter"),t("quarter","Q"),n("quarter",7),g("Q",De),k("Q",function(e,t){t[O]=(v(e)-1)*3}),r("D",["DD",2],"Do","date"),t("date","D"),n("date",9),g("D",b),g("DD",b,o),g("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),k(["D","DD"],S),k("Do",function(e,t){t[S]=v(e.match(b)[0])});var ni=Ce("Date",true);function ri(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}r("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),n("dayOfYear",4),g("DDD",Ue),g("DDDD",Ie),k(["DDD","DDDD"],function(e,t,n){n._dayOfYear=v(e)}),r("m",["mm",2],0,"minute"),t("minute","m"),n("minute",14),g("m",b),g("mm",b,o),k(["m","mm"],E);var oi=Ce("Minutes",false),ii=(r("s",["ss",2],0,"second"),t("second","s"),n("second",15),g("s",b),g("ss",b,o),k(["s","ss"],x),Ce("Seconds",false)),ai,li;for(r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return this.millisecond()*10}),r(0,["SSSSS",5],0,function(){return this.millisecond()*100}),r(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),r(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),r(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),r(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),t("millisecond","ms"),n("millisecond",16),g("S",Ue,De),g("SS",Ue,o),g("SSS",Ue,Ie),ai="SSSS";ai.length<=9;ai+="S")g(ai,He);function si(e,t){t[tt]=v(("0."+e)*1e3)}for(ai="S";ai.length<=9;ai+="S")k(ai,si);function ui(){return this._isUTC?"UTC":""}function ci(){return this._isUTC?"Coordinated Universal Time":""}li=Ce("Milliseconds",false),r("z",0,0,"zoneAbbr"),r("zz",0,0,"zoneName");var T=J.prototype;if(T.add=Lr,T.calendar=qr,T.clone=Wr,T.diff=Zr,T.endOf=wo,T.format=ro,T.from=oo,T.fromNow=io,T.to=ao,T.toNow=lo,T.get=Me,T.invalidAt=Co,T.isAfter=Kr,T.isBefore=Yr,T.isBetween=Gr,T.isSame=$r,T.isSameOrAfter=Jr,T.isSameOrBefore=Qr,T.isValid=xo,T.lang=uo,T.locale=so,T.localeData=co,T.max=er,T.min=Xn,T.parsingFlags=jo,T.set=Te,T.startOf=go,T.subtract=Vr,T.toArray=So,T.toObject=Po,T.toDate=Oo,T.toISOString=to,T.inspect=no,typeof Symbol!=="undefined"&&Symbol.for!=null)T[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"};function fi(e){return A(e*1e3)}function di(){return A.apply(null,arguments).parseZone()}function pi(e){return e}T.toJSON=Eo,T.toString=eo,T.unix=_o,T.valueOf=ko,T.creationData=Ro,T.eraName=Do,T.eraNarrow=Io,T.eraAbbr=Lo,T.eraYear=Vo,T.year=_t,T.isLeapYear=Ot,T.weekYear=Yo,T.isoWeekYear=Go,T.quarter=T.quarters=ti,T.month=yt,T.daysInMonth=vt,T.week=T.weeks=Tt,T.isoWeek=T.isoWeeks=Dt,T.weeksInYear=Qo,T.weeksInWeekYear=Zo,T.isoWeeksInYear=$o,T.isoWeeksInISOWeekYear=Jo,T.date=ni,T.day=T.days=$t,T.weekday=Jt,T.isoWeekday=Qt,T.dayOfYear=ri,T.hour=T.hours=un,T.minute=T.minutes=oi,T.second=T.seconds=ii,T.millisecond=T.milliseconds=li,T.utcOffset=br,T.utc=wr,T.local=kr,T.parseZone=_r,T.hasAlignedHourOffset=Or,T.isDST=Sr,T.isLocal=Er,T.isUtcOffset=xr,T.isUtc=jr,T.isUTC=jr,T.zoneAbbr=ui,T.zoneName=ci,T.dates=e("dates accessor is deprecated. Use date instead.",ni),T.months=e("months accessor is deprecated. Use month instead",yt),T.years=e("years accessor is deprecated. Use year instead",_t),T.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),T.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Pr);var D=re.prototype;function hi(e,t,n,r){var o=_n(),i=c().set(r,t);return o[n](i,e)}function mi(e,t,n){if(u(e)){t=e;e=undefined}e=e||"";if(t!=null)return hi(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=hi(e,r,n,"month");return o}function yi(e,t,n,r){if(typeof e==="boolean"){if(u(t)){n=t;t=undefined}t=t||""}else{t=e;n=t;e=false;if(u(t)){n=t;t=undefined}t=t||""}var o=_n(),i=e?o._week.dow:0,a,l=[];if(n!=null)return hi(t,(n+i)%7,r,"day");for(a=0;a<7;a++)l[a]=hi(t,(a+i)%7,r,"day");return l}function vi(e,t){return mi(e,t,"months")}function bi(e,t){return mi(e,t,"monthsShort")}function gi(e,t,n){return yi(e,t,n,"weekdays")}function wi(e,t,n){return yi(e,t,n,"weekdaysShort")}function ki(e,t,n){return yi(e,t,n,"weekdaysMin")}D.calendar=ie,D.longDateFormat=me,D.invalidDate=ve,D.ordinal=we,D.preparse=pi,D.postformat=pi,D.relativeTime=_e,D.pastFuture=Oe,D.set=te,D.eras=Ao,D.erasParse=Mo,D.erasConvertYear=To,D.erasAbbrRegex=Fo,D.erasNameRegex=No,D.erasNarrowRegex=Uo,D.months=ft,D.monthsShort=dt,D.monthsParse=ht,D.monthsRegex=gt,D.monthsShortRegex=bt,D.week=Ct,D.firstDayOfYear=Mt,D.firstDayOfWeek=At,D.weekdays=qt,D.weekdaysMin=Kt,D.weekdaysShort=Wt,D.weekdaysParse=Gt,D.weekdaysRegex=Zt,D.weekdaysShortRegex=Xt,D.weekdaysMinRegex=en,D.isPM=ln,D.meridiem=cn,gn("en",{eras:[{since:"0001-01-01",until:+Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=v(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),f.lang=e("moment.lang is deprecated. Use moment.locale instead.",gn),f.langData=e("moment.langData is deprecated. Use moment.localeData instead.",_n);var _i=Math.abs;function Oi(){var e=this._data;this._milliseconds=_i(this._milliseconds);this._days=_i(this._days);this._months=_i(this._months);e.milliseconds=_i(e.milliseconds);e.seconds=_i(e.seconds);e.minutes=_i(e.minutes);e.hours=_i(e.hours);e.months=_i(e.months);e.years=_i(e.years);return this}function Si(e,t,n,r){var o=M(t,n);e._milliseconds+=r*o._milliseconds;e._days+=r*o._days;e._months+=r*o._months;return e._bubble()}function Pi(e,t){return Si(this,e,t,1)}function Ei(e,t){return Si(this,e,t,-1)}function xi(e){if(e<0)return Math.floor(e);else return Math.ceil(e)}function ji(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,o,i,a,l,s;if(!(e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0)){e+=xi(Ri(n)+t)*864e5;t=0;n=0}r.milliseconds=e%1e3;o=y(e/1e3);r.seconds=o%60;i=y(o/60);r.minutes=i%60;a=y(i/60);r.hours=a%24;t+=y(a/24);s=y(Ci(t));n+=s;t-=xi(Ri(s));l=y(n/12);n%=12;r.days=t;r.months=n;r.years=l;return this}function Ci(e){return e*4800/146097}function Ri(e){return e*146097/4800}function Ai(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;e=m(e);if(e==="month"||e==="quarter"||e==="year"){t=this._days+r/864e5;n=this._months+Ci(t);switch(e){case"month":return n;case"quarter":return n/3;case"year":return n/12}}else{t=this._days+Math.round(Ri(this._months));switch(e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}}function Mi(){if(!this.isValid())return NaN;return this._milliseconds+this._days*864e5+this._months%12*2592e6+v(this._months/12)*31536e6}function Ti(e){return function(){return this.as(e)}}var Di=Ti("ms"),Ii=Ti("s"),Li=Ti("m"),Vi=Ti("h"),Ni=Ti("d"),Fi=Ti("w"),Ui=Ti("M"),zi=Ti("Q"),Bi=Ti("y");function Hi(){return M(this)}function qi(e){e=m(e);return this.isValid()?this[e+"s"]():NaN}function Wi(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ki=Wi("milliseconds"),Yi=Wi("seconds"),Gi=Wi("minutes"),$i=Wi("hours"),Ji=Wi("days"),Qi=Wi("months"),Zi=Wi("years");function Xi(){return y(this.days()/7)}var ea=Math.round,ta={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function na(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function ra(e,t,n,r){var o=M(e).abs(),i=ea(o.as("s")),a=ea(o.as("m")),l=ea(o.as("h")),s=ea(o.as("d")),u=ea(o.as("M")),c=ea(o.as("w")),f=ea(o.as("y")),d=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||l<=1&&["h"]||l<n.h&&["hh",l]||s<=1&&["d"]||s<n.d&&["dd",s];if(n.w!=null)d=d||c<=1&&["w"]||c<n.w&&["ww",c];d=d||u<=1&&["M"]||u<n.M&&["MM",u]||f<=1&&["y"]||["yy",f];d[2]=t;d[3]=+e>0;d[4]=r;return na.apply(null,d)}function oa(e){if(e===undefined)return ea;if(typeof e==="function"){ea=e;return true}return false}function ia(e,t){if(ta[e]===undefined)return false;if(t===undefined)return ta[e];ta[e]=t;if(e==="s")ta.ss=t-1;return true}function aa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=false,r=ta,o,i;if(typeof e==="object"){t=e;e=false}if(typeof e==="boolean")n=e;if(typeof t==="object"){r=Object.assign({},ta,t);if(t.s!=null&&t.ss==null)r.ss=t.s-1}o=this.localeData();i=ra(this,!n,r,o);if(n)i=o.pastFuture(+this,i);return o.postformat(i)}var la=Math.abs;function sa(e){return(e>0)-(e<0)||+e}function ua(){if(!this.isValid())return this.localeData().invalidDate();var e=la(this._milliseconds)/1e3,t=la(this._days),n=la(this._months),r,o,i,a,l=this.asSeconds(),s,u,c,f;if(!l)return"P0D";r=y(e/60);o=y(r/60);e%=60;r%=60;i=y(n/12);n%=12;a=e?e.toFixed(3).replace(/\.?0+$/,""):"";s=l<0?"-":"";u=sa(this._months)!==sa(l)?"-":"";c=sa(this._days)!==sa(l)?"-":"";f=sa(this._milliseconds)!==sa(l)?"-":"";return s+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(t?c+t+"D":"")+(o||r||e?"T":"")+(o?f+o+"H":"")+(r?f+r+"M":"")+(e?f+a+"S":"")}var I=ur.prototype;return I.isValid=lr,I.abs=Oi,I.add=Pi,I.subtract=Ei,I.as=Ai,I.asMilliseconds=Di,I.asSeconds=Ii,I.asMinutes=Li,I.asHours=Vi,I.asDays=Ni,I.asWeeks=Fi,I.asMonths=Ui,I.asQuarters=zi,I.asYears=Bi,I.valueOf=Mi,I._bubble=ji,I.clone=Hi,I.get=qi,I.milliseconds=Ki,I.seconds=Yi,I.minutes=Gi,I.hours=$i,I.days=Ji,I.weeks=Xi,I.months=Qi,I.years=Zi,I.humanize=aa,I.toISOString=ua,I.toString=ua,I.toJSON=ua,I.locale=so,I.localeData=co,I.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ua),I.lang=uo,r("X",0,0,"unix"),r("x",0,0,"valueOf"),g("x",qe),g("X",Ye),k("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),k("x",function(e,t,n){n._d=new Date(v(e))}),
//! moment.js
f.version="2.29.4",N(A),f.fn=T,f.min=nr,f.max=rr,f.now=or,f.utc=c,f.unix=fi,f.months=vi,f.isDate=z,f.locale=gn,f.invalid=K,f.duration=M,f.isMoment=p,f.weekdays=gi,f.parseZone=di,f.localeData=_n,f.isDuration=cr,f.monthsShort=bi,f.weekdaysMin=ki,f.defineLocale=wn,f.updateLocale=kn,f.locales=On,f.weekdaysShort=wi,f.normalizeUnits=m,f.relativeTimeRounding=oa,f.relativeTimeThreshold=ia,f.calendarFormat=Hr,f.prototype=T,f.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"},f}()}.call(this,n(253)(e))},function(e,t,n){var r=n(34),o=n(27),i=n(138),a=n(86),l=n(56),s=n(118),u=n(37),c=n(230),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=l(e),t=s(t),c)try{return f(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},function(e,t,n){var r=n(352);e.exports=function(e){e=+e;return e!=e||0==e?0:r(e)}},function(e,t,n){var r=n(15),n=n(372);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==n},{assign:n})},function(e,t,n){"use strict";var r=n(15),f=n(46),d=n(89),p=n(66),h=n(49),m=n(250),y=n(184),v=n(106),b=n(194),n=n(124)("splice"),g=Math.max,w=Math.min;r({target:"Array",proto:!0,forced:!n},{splice:function(e,t){var n,r,o,i,a,l,s=f(this),u=h(s),c=d(e,u),e=arguments.length;for(0===e?n=r=0:r=1===e?(n=0,u-c):(n=e-2,w(g(p(t),0),u-c)),m(u+n-r),o=y(s,r),i=0;i<r;i++)(a=c+i)in s&&v(o,i,s[a]);if(n<(o.length=r)){for(i=c;i<u-r;i++)l=i+n,(a=i+r)in s?s[l]=s[a]:b(s,l);for(i=u;u-r+n<i;i--)b(s,i-1)}else if(r<n)for(i=u-r;c<i;i--)l=i+n-1,(a=i+r-1)in s?s[l]=s[a]:b(s,l);for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=u-r+n,o}})},function(e,t,n){"use strict";var r=n(15),o=n(52).findIndex,n=n(147),i="findIndex",a=!0;i in[]&&Array(1)[i](function(){a=!1}),r({target:"Array",proto:!0,forced:a},{findIndex:function(e){return o(this,e,1<arguments.length?arguments[1]:void 0)}}),n(i)},function(e,t,n){var r=n(15),l=n(27),s=n(41),u=n(35),c=n(239),o=n(12),f=n(38),d=n(65),p=n(91),h=n(86);r({target:"Reflect",stat:!0,forced:o(function(){function e(){}var t=f.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)})},{set:function e(t,n,r){var o,i=arguments.length<4?t:arguments[3],a=d.f(s(t),n);if(!a){if(u(o=p(t)))return e(o,n,r,i);a=h(0)}if(c(a)){if(!1===a.writable||!u(i))return!1;if(o=d.f(i,n)){if(o.get||o.set||!1===o.writable)return!1;o.value=r,f.f(i,n,o)}else f.f(i,n,h(0,r))}else{if(void 0===(o=a.set))return!1;l(o,i,r)}return!0}})},function(e,t,n){n=n(17);e.exports=n({}.isPrototypeOf)},function(e,t,n){var r=n(34),o=n(38),i=n(86);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){var r=n(66),o=Math.min;e.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(22),n(1),n(68);var o=r(n(10)),s=r(n(96));function r(e){return e&&e.__esModule?e:{default:e}}var i={sortAndFilterComponents:function(e){return o.default.filter(o.default.sortBy(e,"weight"),function(e){return!e.ignore})},unifyComponents:function(n,r){return n.key&&r.key?!n.skipMerge&&!r.skipMerge&&(n.key===r.key&&(o.default.each(n,function(e,t){!n.overrideEditForm&&r.hasOwnProperty(t)||(r[t]=e)}),o.default.each(r,function(e,t){!r.overrideEditForm&&n.hasOwnProperty(t)||(n[t]=e)}),n.components&&(r.components=i.sortAndFilterComponents(o.default.unionWith(n.components,r.components,i.unifyComponents))),!0)):o.default.isEqual(n,r)},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,o,i){var a=6<arguments.length&&void 0!==arguments[6]?arguments[6]:"",l=7<arguments.length?arguments[7]:void 0,a=[this.logicVariablesTable(a),{type:"panel",title:"JavaScript",collapsible:!0,collapsed:!1,style:{"margin-bottom":"10px"},key:"".concat(t,"-js"),customConditional:function(){return!s.default.noeval||s.default.protectedEval},components:[{type:"textarea",key:t,rows:5,editor:"ace",hideLabel:!0,as:"javascript",input:!0},{type:"htmlelement",tag:"div",content:"<p>Enter custom javascript code.</p>".concat(o)}]},{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>'+i},{type:"textarea",key:n,rows:5,editor:"ace",hideLabel:!0,as:"json",input:!0}]}];return l&&a.splice(2,1),{type:"panel",title:e,theme:"default",collapsible:!0,collapsed:!0,key:"".concat(t,"Panel"),weight:r,components:a}}};t.default=i},function(e,t,n){e.exports=n(346)()},function(e,t,n){"use strict";var r=n(34),o=n(21),i=n(17),a=n(121),l=n(48),s=n(37),u=n(156),c=n(71),f=n(100),d=n(178),p=n(12),h=n(80).f,m=n(65).f,y=n(38).f,v=n(257),b=n(192).trim,n="Number",g=o[n],w=g.prototype,k=o.TypeError,_=i("".slice),O=i("".charCodeAt),S=function(e){var t,n,r,o,i,a,l,s=d(e,"number");if(f(s))throw k("Cannot convert a Symbol value to a number");if("string"==typeof s&&2<s.length)if(s=b(s),43===(e=O(s,0))||45===e){if(88===(t=O(s,2))||120===t)return NaN}else if(48===e){switch(O(s,1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+s}for(i=(o=_(s,2)).length,a=0;a<i;a++)if((l=O(o,a))<48||r<l)return NaN;return parseInt(o,n)}return+s};if(a(n,!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var P,E=function(e){var e=arguments.length<1?0:g(function(e){e=d(e,"number");return"bigint"==typeof e?e:S(e)}(e)),t=this;return c(w,t)&&p(function(){v(t)})?u(Object(e),t,E):e},x=r?h(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),j=0;x.length>j;j++)s(g,P=x[j])&&!s(E,P)&&y(E,P,m(g,P));l(o,n,(E.prototype=w).constructor=E,{constructor:!0})}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(70),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(18),n(1),n(14),n(40),n(45),n(302),n(76),n(0),n(69),n(68),n(32),n(22),n(9);var c=r(n(10)),i=r(n(61)),l=r(n(28)),s=r(n(24)),f=n(19);function r(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)}}function a(e,t,n,r){return(a="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,e=m(e,t);if(e){if((o=Object.getOwnPropertyDescriptor(e,t)).set)return o.set.call(r,n),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(r,t)){if(!o.writable)return!1;o.value=n,Object.defineProperty(r,t,o)}else p(r,t,n);return!0})(e,t,n,r)}function d(e,t,n,r,o){if(!a(e,t,n,r||e)&&o)throw new Error("failed to set property")}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=m(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function m(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=b(n),t=(e=r?(e=b(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e);var n,r=v(a);function a(e,t,n){if(this instanceof a)return(e=r.call(this,e,t,n)).type="components",e._collapsed=!!e.component.collapsed,e;throw new TypeError("Cannot call a class as a function")}return t=a,e=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{tree:!1,lazyLoad:!1}].concat(t))}}],(n=[{key:"defaultSchema",get:function(){return a.schema()}},{key:"schema",get:function(){var e=h(b(a.prototype),"schema",this),t=c.default.uniqBy(this.getComponents(),"component.key");return e.components=c.default.map(t,"schema"),e}},{key:"collapsed",get:function(){return this._collapsed},set:function(e){this._collapsed=e,this.collapse(e)}},{key:"collapse",value:function(e){var t=this.redraw();return e||this.pristine||this.checkValidity(this.data,!0),t}},{key:"visible",get:function(){return h(b(a.prototype),"visible",this)},set:function(e){var t=this._visible!==e,n=(this._visible=e,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){e.parentVisible=n;var t=e.conditionallyVisible();r||t?e.visible=!0:!o&&n&&t||(e.visible=!1),e.visible||(e.error="")}),t&&(this.clearOnHide(),this.redraw())}},{key:"parentVisible",get:function(){return h(b(a.prototype),"parentVisible",this)},set:function(e){var t=this;d(b(a.prototype),"parentVisible",e,this,!0),this.components.forEach(function(e){return e.parentVisible=t.visible})}},{key:"disabled",get:function(){return h(b(a.prototype),"disabled",this)},set:function(t){d(b(a.prototype),"disabled",t,this,!0),this.components.forEach(function(e){return e.parentDisabled=t})}},{key:"parentDisabled",get:function(){return h(b(a.prototype),"parentDisabled",this)},set:function(e){var t=this;d(b(a.prototype),"parentDisabled",e,this,!0),this.components.forEach(function(e){e.parentDisabled=t.disabled})}},{key:"ready",get:function(){return s.default.all(this.getComponents().map(function(e){return e.ready}))}},{key:"currentForm",get:function(){return h(b(a.prototype),"currentForm",this)},set:function(t){d(b(a.prototype),"currentForm",t,this,!0),this.getComponents().forEach(function(e){e.currentForm=t})}},{key:"rowIndex",get:function(){return this._rowIndex},set:function(t){this._rowIndex=t,this.eachComponent(function(e){e.rowIndex=t})}},{key:"componentContext",value:function(){return this._data}},{key:"data",get:function(){return this._data},set:function(e){var t=this;this._data=e,this.eachComponent(function(e){e.data=t.componentContext(e)})}},{key:"getComponents",value:function(){return this.components||[]}},{key:"everyComponent",value:function(n,r){var o=this.getComponents();c.default.each(o,function(e,t){return!1!==n(e,o,t)&&(("function"!=typeof e.everyComponent||!1!==e.everyComponent(n,r))&&void 0)})}},{key:"hasComponent",value:function(t){var n=!1;return this.everyComponent(function(e){if(e===t)return!(n=!0)}),n}},{key:"flattenComponents",value:function(){var t={};return this.everyComponent(function(e){t[e.component.flattenAs||e.key]=e}),t}},{key:"eachComponent",value:function(n){c.default.each(this.getComponents(),function(e,t){if(!1===n(e,t))return!1})}},{key:"getComponent",value:function(e,r,o){o=o||(0,f.getStringFromComponentPath)(e),e=(0,f.getArrayFromComponentPath)(e);var i=o,e=c.default.clone(e),a=e.shift(),l=e,s=null,u=null;return c.default.isNumber(a)&&(a=l.shift()),c.default.isString(a)&&(this.everyComponent(function(e,t){var n=!e.hasInput||!e.path||i.includes(e.path);if(e.component.key===a&&(u=e,n))return s=e,0<l.length&&"getComponent"in e?s=e.getComponent(l,r,o):r&&r(e,t),!1}),s=s||u),s}},{key:"getComponentById",value:function(n,r){var o=null;return this.everyComponent(function(e,t){if(e.id===n)return o=e,r&&r(e,t),!1}),o}},{key:"calculateComponentPath",value:function(e){if(e.component.key){for(var t=this;t&&!t.allowData&&t.parent;)t=t.parent;var n=e.row?"[".concat(Number.parseInt(e.row),"]"):"",n=t.path?"".concat(t.path).concat(n,"."):"";return(n+=e._parentPath&&e.component.shouldIncludeSubFormPath?e._parentPath:"")+e.component.key}}},{key:"createComponent",value:function(e,t,n,r){var o;if(e)return t=t||this.options,n=n||this.data,t.parent=this,t.parentVisible=this.visible,t.root=(null==(o=t)?void 0:o.root)||this.root||this,t.localRoot=this.localRoot,t.skipInit=!0,!this.isInputComponent&&this.component.shouldIncludeSubFormPath&&(e.shouldIncludeSubFormPath=!0),o=l.default.create(e,t,n,!0),t=this.calculateComponentPath(o),t&&(o.path=t),o.init(),e.internal||(r&&-1!==(n=c.default.findIndex(this.components,{id:r.id}))?this.components.splice(n,0,o):this.components.push(o)),o}},{key:"getContainer",value:function(){return this.element}},{key:"componentComponents",get:function(){return this.component.components||[]}},{key:"nestedKey",get:function(){return"nested-".concat(this.key)}},{key:"templateName",get:function(){return"container"}},{key:"init",value:function(){return this.components=this.components||[],this.addComponents(),h(b(a.prototype),"init",this).call(this)}},{key:"addComponents",value:function(t,e){var n=this;t=t||this.data,(e=e||this.options).components?this.components=e.components:(this.hook("addComponents",this.componentComponents,this)||[]).forEach(function(e){return n.addComponent(e,t)})}},{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);r=this.createComponent(e,this.options,t,n||null);return r}},{key:"beforeFocus",value:function(){this.parent&&"beforeFocus"in this.parent&&this.parent.beforeFocus(this)}},{key:"render",value:function(e){return h(b(a.prototype),"render",this).call(this,e||this.renderTemplate(this.templateName,{children:this.visible?this.renderComponents():"",nestedKey:this.nestedKey,collapsed:!this.options.pdf&&this.collapsed}))}},{key:"renderComponents",value:function(e){var t=(e=e||this.getComponents()).map(function(e){return e.render()});return this.renderTemplate("components",{children:t,components:e})}},{key:"attach",value:function(e){var t=this,n=h(b(a.prototype),"attach",this).call(this,e),e=(this.loadRefs(e,p({header:"single",collapsed:this.collapsed},this.nestedKey,"single")),s.default.resolve());return this.refs[this.nestedKey]&&(e=this.attachComponents(this.refs[this.nestedKey])),this.component.collapsible&&this.refs.header&&(this.addEventListener(this.refs.header,"click",function(){t.collapsed=!t.collapsed}),this.addEventListener(this.refs.header,"keydown",function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),t.collapsed=!t.collapsed)})),s.default.all([n,e])}},{key:"attachComponents",value:function(e,t,n){if(t=t||this.components,n=n||this.component.components,!(e=this.hook("attachComponents",e,t,n,this)))return new s.default(function(){});var r=0,o=[];return Array.prototype.slice.call(e.children).forEach(function(e){!e.getAttribute("data-noattach")&&t[r]&&(o.push(t[r].attach(e)),r++)}),s.default.all(o)}},{key:"removeComponent",value:function(e,t){t=t||this.components,e.destroy(),c.default.remove(t,{id:e.id})}},{key:"removeComponentByKey",value:function(e,n){var r=this;if(!this.getComponent(e,function(e,t){r.removeComponent(e,t),n&&n(e,t)}))return n&&n(null),null}},{key:"removeComponentById",value:function(e,n){var r=this;if(!this.getComponentById(e,function(e,t){r.removeComponent(e,t),n&&n(e,t)}))return n&&n(null),null}},{key:"updateValue",value:function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return this.components.reduce(function(e,t){return t.updateValue(null,n)||e},h(b(a.prototype),"updateValue",this).call(this,e,n))}},{key:"shouldSkipValidation",value:function(e,t,n){return!this.component.input||h(b(a.prototype),"shouldSkipValidation",this).call(this,e,t,n)}},{key:"checkData",value:function(n,r,o,e){if(this.builderMode)return!0;n=n||this.rootValue,r=r||{},o=o||this.data;e=(e=e&&c.default.isArray(e)?e:this.getComponents()).reduce(function(e,t){return t.checkData(n,r,o)&&e},h(b(a.prototype),"checkData",this).call(this,n,r,o));return this.checkModal(e,this.isDirty),e}},{key:"checkConditions",value:function(t,n,e){e=h(b(a.prototype),"checkConditions",this).call(this,t,n,e);return this.getComponents().forEach(function(e){return e.checkConditions(t,n,e.data)}),e}},{key:"clearOnHide",value:function(t){h(b(a.prototype),"clearOnHide",this).call(this,t),this.component.clearOnHide&&(this.allowData&&!this.hasValue()&&(this.dataValue=this.defaultValue),this.hasValue()&&this.restoreComponentsContext()),this.getComponents().forEach(function(e){return e.clearOnHide(t)})}},{key:"restoreComponentsContext",value:function(){var t=this;this.getComponents().forEach(function(e){return e.data=t.dataValue})}},{key:"beforePage",value:function(t){return s.default.all(this.getComponents().map(function(e){return e.beforePage(t)}))}},{key:"beforeSubmit",value:function(){return s.default.all(this.getComponents().map(function(e){return e.beforeSubmit()}))}},{key:"calculateValue",value:function(n,r,o){return!!this.conditionallyVisible()&&this.getComponents().reduce(function(e,t){return t.calculateValue(n,r,o)||e},h(b(a.prototype),"calculateValue",this).call(this,n,r,o))}},{key:"isLastPage",value:function(){return this.pages.length-1===this.page}},{key:"isValid",value:function(n,r){return this.getComponents().reduce(function(e,t){return t.isValid(n,r)&&e},h(b(a.prototype),"isValid",this).call(this,n,r))}},{key:"checkValidity",value:function(n,r,o,i){if(!this.checkCondition(o,n))return this.setCustomValidity(""),!0;var e=this.getComponents().reduce(function(e,t){return t.checkValidity(n,r,o,i)&&e},h(b(a.prototype),"checkValidity",this).call(this,n,r,o,i));return this.checkModal(e,r),e}},{key:"checkAsyncValidity",value:function(n,r,o,i){var e=this;return this.ready.then(function(){var t=[h(b(a.prototype),"checkAsyncValidity",e).call(e,n,r,o,i)];return e.eachComponent(function(e){return t.push(e.checkAsyncValidity(n,r,o,i))}),s.default.all(t).then(function(e){return e.reduce(function(e,t){return e&&t},!0)})})}},{key:"setPristine",value:function(t){h(b(a.prototype),"setPristine",this).call(this,t),this.getComponents().forEach(function(e){return e.setPristine(t)})}},{key:"isPristine",get:function(){return this.pristine&&this.getComponents().every(function(e){return e.isPristine})}},{key:"isDirty",get:function(){return this.dirty&&this.getComponents().every(function(e){return e.isDirty})}},{key:"detach",value:function(){this.components.forEach(function(e){e.detach()}),h(b(a.prototype),"detach",this).call(this)}},{key:"clear",value:function(){this.components.forEach(function(e){e.clear()}),h(b(a.prototype),"clear",this).call(this)}},{key:"destroy",value:function(){this.destroyComponents(),h(b(a.prototype),"destroy",this).call(this)}},{key:"destroyComponents",value:function(){var t=this;this.getComponents().slice().forEach(function(e){return t.removeComponent(e,t.components)}),this.components=[]}},{key:"errors",get:function(){var e=this.error?[this.error]:[];return this.getComponents().reduce(function(e,t){return e.concat(t.errors||[])},e).filter(function(e){return"hidden"!==e.level})}},{key:"getValue",value:function(){return this.data}},{key:"resetValue",value:function(){h(b(a.prototype),"resetValue",this).call(this),this.getComponents().forEach(function(e){return e.resetValue()}),this.setPristine(!0)}},{key:"dataReady",get:function(){return s.default.all(this.getComponents().map(function(e){return e.dataReady}))}},{key:"setNestedValue",value:function(e,t){var n=2<arguments.length&&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(c.default.get(t,e.key),n):this.rootPristine&&!e.visible||!e.shouldAddDefaultValue?void 0:(n.noValidate=!n.dirty,n.resetValue=!0,e.setValue(e.defaultValue,n)))}},{key:"setValue",value:function(n){var r=this,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return!!n&&(n.submitAsDraft&&!n.submit&&(o.noValidate=!0),this.getComponents().reduce(function(e,t){return r.setNestedValue(t,n,o,e)||e},!1))}},{key:"lazyLoad",get:function(){var e;return null!=(e=this.component.lazyLoad)&&e}}])&&u(t.prototype,n),e&&u(t,e),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.default);t.default=n},function(e,t,n){var n=n(17),r=n({}.toString),o=n("".slice);e.exports=function(e){return o(r(e),8,-1)}},function(e,t,n){n=n(57);e.exports=n("navigator","userAgent")||""},function(e,t,n){var r=n(236),o=n(181).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var n=n(116),r=Function.prototype,o=r.apply,i=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?i.bind(o):function(){return i.apply(o,arguments)})},function(e,t,n){function r(){}function o(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t}var i,a=n(41),l=n(237),s=n(181),u=n(120),c=n(238),f=n(139),n=n(141),d="prototype",p="script",h=n("IE_PROTO"),m=function(e){return"<"+p+">"+e+"</"+p+">"},y=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}y="undefined"==typeof document||document.domain&&i?o(i):(e=f("iframe"),t="java"+p+":",e.style.display="none",c.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F);for(var e,t,n=s.length;n--;)delete y[d][s[n]];return y()};u[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(r[d]=a(e),n=new r,r[d]=null,n[h]=e):n=y(),void 0===t?n:l.f(n,t)}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(20),n(18),n(50),n(1),n(16),n(43),n(51),n(26),n(0),n(9);var i=r(n(305)),a=n(19),l=r(n(171)),s=r(n(24)),u=r(n(10));function r(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=m(n),t=(e=r?(e=m(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return h(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)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e);var n,r=p(o);function o(e,t,n){if(this instanceof o)return(e=r.call(this,e,t,n)).triggerUpdateValueAt=u.default.debounce(e.updateValueAt.bind(h(e)),100),e;throw new TypeError("Cannot call a class as a function")}return t=o,e=[{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,[{widget:{type:"input"}}].concat(t))}}],(n=[{key:"inputInfo",get:function(){var e={name:this.options.name,type:this.component.inputType||"text",class:"form-control",lang:this.options.language};return this.component.inputMode&&(e.inputmode=this.component.inputMode),this.component.placeholder&&(e.placeholder=this.t(this.component.placeholder,{_userInput:!0})),this.component.tabindex&&(e.tabindex=this.component.tabindex),this.disabled&&(e.disabled="disabled"),this.component.autocomplete&&(e.autocomplete=this.component.autocomplete),u.default.defaults(e,this.component.attributes),{id:this.key,type:"input",changeEvent:"input",content:"",attr:e}}},{key:"maskOptions",get:function(){return u.default.map(this.component.inputMasks,function(e){return{label:e.label,value:e.label}})}},{key:"isMultipleMasksField",get:function(){return this.component.allowMultipleMasks&&!!this.component.inputMasks&&!!this.component.inputMasks.length}},{key:"getMaskByName",value:function(t){var e=u.default.find(this.component.inputMasks,function(e){return e.label===t});return e?e.mask:void 0}},{key:"setInputMask",value:function(e,t){t=t||this.component.displayMask||this.component.inputMask;return f(m(o.prototype),"setInputMask",this).call(this,e,t,!this.component.placeholder)}},{key:"getMaskOptions",value:function(){return this.component.inputMasks.map(function(e){return{label:e.label,value:e.label}})}},{key:"getWordCount",value:function(e){return e?e.trim().split(/\s+/).length:0}},{key:"remainingWords",get:function(){return u.default.parseInt(u.default.get(this.component,"validate.maxWords"),10)-this.getWordCount(this.dataValue)}},{key:"prefix",get:function(){return this.component.prefix}},{key:"suffix",get:function(){if(this.component.widget&&"calendar"===this.component.widget.type){var e=this.renderTemplate("icon",{ref:"icon",className:this.iconClass(this.component.enableDate||this.component.widget.enableDate?"calendar":"clock-o"),styles:"",content:""}).trim();if(this.component.prefix!==e)return(0,a.convertStringToHTMLElement)(e,'[ref="icon"]')}return this.component.suffix}},{key:"renderElement",value:function(e,t){e&&"string"==typeof e&&(e=e.replace(/"/g,"&quot;"));var n=this.inputInfo,r=(n.attr=n.attr||{},n.attr.value=this.getValueAsString(this.formatValue(this.parseValue(e))).replace(/"/g,"&quot;"),this.component.inputMask),o=this.component.displayMask,r=r&&o&&r!==o;return this.isMultipleMasksField&&(n.attr.class+=" formio-multiple-mask-input"),this.isMultipleMasksField?this.renderTemplate("multipleMasksInput",{input:n,value:e,index:t,selectOptions:this.getMaskOptions()||[]},this.isHtmlRenderMode()?"html":null):this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:n,value:this.formatValue(this.parseValue(e)),hasValueMaskInput:r,index:t},this.isHtmlRenderMode()?"html":null)}},{key:"setCounter",value:function(e,t,n,r){r?(0<(r=r-n)?this.removeClass(t,"text-danger"):this.addClass(t,"text-danger"),this.setContent(t,this.t("{{ remaining }} ".concat(e," remaining."),{remaining:r}))):this.setContent(t,this.t("{{ count }} ".concat(e),{count:n}))}},{key:"updateValueAt",value:function(e,t,n){var r;u.default.get(this.component,"showWordCount",!1)&&this.refs.wordcount&&this.refs.wordcount[n]&&(r=u.default.parseInt(u.default.get(this.component,"validate.maxWords",0),10),this.setCounter(this.t("words"),this.refs.wordcount[n],this.getWordCount(e),r)),u.default.get(this.component,"showCharCount",!1)&&this.refs.charcount&&this.refs.charcount[n]&&(r=u.default.parseInt(u.default.get(this.component,"validate.maxLength",0),10),this.setCounter(this.t("characters"),this.refs.charcount[n],e.length,r))}},{key:"getValueAt",value:function(e){e=this.performInputMapping(this.refs.input[e]);return e&&e.widget?e.widget.getValue():e?e.value:void 0}},{key:"updateValue",value:function(e,t,n){t=t||{};e=f(m(o.prototype),"updateValue",this).call(this,e,t);return this.triggerUpdateValueAt(this.dataValue,t,n),e}},{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(m(o.prototype),"attach",this).call(this,e)}},{key:"getWidget",value:function(e){return e=e||0,this.refs.input&&this.refs.input[e]?this.refs.input[e].widget:null}},{key:"attachElement",value:function(e,t){var n=this,r=(f(m(o.prototype),"attachElement",this).call(this,e,t),e.widget&&e.widget.destroy(),s.default.resolve());return e.widget=this.createWidget(t),e.widget&&(r=e.widget.attach(e),this.refs.prefix&&this.refs.prefix[t]&&e.widget.addPrefix(this.refs.prefix[t]),this.refs.suffix&&this.refs.suffix[t]&&e.widget.addSuffix(this.refs.suffix[t])),this.addFocusBlurEvents(e),this.options.submitOnEnter&&this.addEventListener(e,"keypress",function(e){13===(e.keyCode||e.which)&&(e.preventDefault(),e.stopPropagation(),n.emit("submitButton"))}),r}},{key:"createWidget",value:function(e){var t=this;if(!this.component.widget)return null;var n="string"==typeof this.component.widget?{type:this.component.widget}:this.component.widget;if(null!=(r=this.root)&&r.shadowRoot&&(n.shadowRoot=null==(r=this.root)?void 0:r.shadowRoot),!l.default.hasOwnProperty(n.type))return null;var r=new l.default[n.type](n,this.component,this,e);return r.on("update",function(){return t.updateValue(t.getValue(),{modified:!0},e)},!0),r.on("redraw",function(){return t.redraw()},!0),r}},{key:"detach",value:function(){if(f(m(o.prototype),"detach",this).call(this),this.refs&&this.refs.input)for(var e=0;e<=this.refs.input.length;e++){var t=this.getWidget(e);t&&t.destroy()}this.refs.input=[]}},{key:"addFocusBlurEvents",value:function(e){var t=this;this.addEventListener(e,"focus",function(){t.root.focusedComponent!==t?(t.root.pendingBlur&&t.root.pendingBlur(),(t.root.focusedComponent=t).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,a.delay)(function(){t.emit("blur",t),"blur"===t.component.validateOn&&t.root.triggerChange({fromBlur:!0},{instance:t,component:t.component,value:t.dataValue,flags:{fromBlur:!0}}),t.root.focusedComponent=null,t.root.pendingBlur=null})})}}])&&c(t.prototype,n),e&&c(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(i.default);t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"data",ignore:!0},{key:"validation",ignore:!0}]].concat(t))},n(0);var r=(t=n(28))&&t.__esModule?t:{default:t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=l(n(28)),o=l(n(959)),i=l(n(960)),a=l(n(961));function l(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,n){var r=n(58);e.exports=function(e,t){e=e[t];return null==e?void 0:r(e)}},function(e,t){var n=String;e.exports=function(e){try{return n(e)}catch(e){return"Object"}}},function(e,t,n){var r=n(66),o=Math.max,i=Math.min;e.exports=function(e,t){e=r(e);return e<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(183),o=n(29),i=n(78),a=n(30)("toStringTag"),l=Object,s="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=l(e),a))?t:s?i(e):"Object"==(t=i(e))&&o(e.callee)?"Arguments":t}},function(e,t,n){var r=n(37),o=n(29),i=n(46),a=n(141),n=n(240),l=a("IE_PROTO"),s=Object,u=s.prototype;e.exports=n?s.getPrototypeOf:function(e){e=i(e);if(r(e,l))return e[l];var t=e.constructor;return o(t)&&e instanceof t?t.prototype:e instanceof s?u:null}},function(e,t,n){var r=n(17),o=n(58),i=n(116),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var o=n(27),r=n(153),u=n(41),c=n(73),f=n(47),i=n(62),a=n(87),d=n(190),p=n(154);r("match",function(r,l,s){return[function(e){var t=i(this),n=null==e?void 0:a(e,r);return n?o(n,e,t):new RegExp(e)[r](f(t))},function(e){var t=u(this),n=f(e),e=s(l,t,n);if(e.done)return e.value;if(!t.global)return p(t,n);for(var r=t.unicode,o=[],i=t.lastIndex=0;null!==(a=p(t,n));){var a=f(a[0]);""===(o[i]=a)&&(t.lastIndex=d(n,c(t.lastIndex),r)),i++}return 0===i?null:o}]})},function(e,t,n){n(375)},function(e,t,n){var r=n(264);e.exports=function(e,t,n){return void 0===(e=null==e?void 0:r(e,t))?n:e}},function(e,t,n){"use strict";n(42),n(32),n(20),n(8),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(3),n(1),n(4),n(0),n(16),n(26),n(18),n(43),n(51),n(14),n(23),n(2),n(6),n(7),n(5);var u=o(n(10)),r=o(n(412));function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return(i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),1}catch(e){}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);t=new(Function.bind.apply(e,r));return n&&a(t,n.prototype),t}).apply(null,arguments)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function 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 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)}var f={noeval:!1,protectedEval:!1,cache:{},templateSettings:{evaluate:/\{%([\s\S]+?)%\}/g,interpolate:/\{\{([\s\S]+?)\}\}/g,escape:/\{\{\{([\s\S]+?)\}\}\}/g},evaluator:function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return f.noeval?(console.warn("No evaluations allowed for this renderer."),u.default.noop):("object"===c(n[0])&&(n=u.default.keys(n[0])),i(Function,l(n).concat([e])))},template:function(t,e){e=e||(0,r.default)(t);try{return t=t.replace(/ctx\./g,""),f.cache[e]=u.default.template(t,f.templateSettings)}catch(e){console.warn("Error while processing template",e,t)}},interpolate:function(t,l,e){var s=u.default.isObject(e)?e:{noeval:e};if("function"==typeof t)try{return t(l)}catch(e){return console.warn("Error interpolating template",e,l),e.message}t=String(t);var n,e=(0,r.default)(t);if(f.cache[e])n=f.cache[e];else{if(f.noeval||s.noeval)return t.replace(/({{\s*(.*?)\s*}})/g,function(e,t,n){for(var r=n.split("||").map(function(e){return e.trim()}),o="",i="",a=0;a<r.length&&(i=r[a],!(o=u.default.get(l,i)));a++);return s.data&&u.default.set(s.data,i,o),o});n=f.template(t,e)}if("function"==typeof n)try{return n(l)}catch(e){return console.warn("Error interpolating template",e,t,l),e.message}return n},evaluate:function(e,t){return Array.isArray(t)?e.apply(void 0,l(t)):e(t)},registerEvaluator:function(t){Object.keys(t).forEach(function(e){f[e]=t[e]})}};t.default=f},function(e,t,n){"use strict";n(13),n(11),n(8),n(23),n(2),n(22),n(14),n(31),n(6),n(7),n(3),n(5),n(4),n(94),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(18),n(51),n(1),n(25),n(16),n(26),n(0),n(9);var r=o(n(83)),s=n(130),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};t=a(t);if(t&&t.has(e))return t.get(e);var n,r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(n in e){var i;"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&((i=o?Object.getOwnPropertyDescriptor(e,n):null)&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n])}r.default=e,t&&t.set(e,r);return r}(n(19)),i=o(n(24));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function o(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 l(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function f(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?l(Object(o),!0).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=y(n),t=(e=r?(e=y(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function m(){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=y(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=l;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e);var n,o=h(l);function l(e,t,n){var r;if(!(this instanceof l))throw new TypeError("Cannot call a class as a function");n=(null==(t=(e=o.call(this,e,t,n)).component.widget)?void 0:t.timezone)||e.options.timezone,t=(null==(t=e.component.widget)?void 0:t.displayInTimezone)||"viewer";return"calendar"===(null==(r=e.component.widget)?void 0:r.type)&&(e.component.widget=f(f({},e.component.widget),{},{readOnly:e.options.readOnly,timezone:n,displayInTimezone:t,locale:e.options.language,saveAs:"text"})),e}return t=l,e=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.schema.apply(r.default,[{label:"Text Field",key:"textField",type:"textfield",mask:!1,inputType:"text",inputFormat:"plain",inputMask:"",displayMask:"",tableView:!0,spellcheck:!0,truncateMultipleSpaces:!1,validate:{minLength:"",maxLength:"",pattern:""}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Text Field",icon:"terminal",group:"basic",documentation:"/userguide/#textfield",weight:0,schema:l.schema()}}}],(n=[{key:"defaultSchema",get:function(){return l.schema()}},{key:"inputInfo",get:function(){var e=m(y(l.prototype),"inputInfo",this);return e.type="input",this.component.hasOwnProperty("spellcheck")&&(e.attr.spellcheck=this.component.spellcheck),this.component.mask?e.attr.type="password":e.attr.type="password"===this.component.inputType?"password":"text",e.changeEvent="input",e}},{key:"emptyValue",get:function(){return""}},{key:"attach",value:function(e){return this.loadRefs(e,{valueMaskInput:"single"}),m(y(l.prototype),"attach",this).call(this,e)}},{key:"maskValue",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return(e=e&&"object"===c(e)?e:{value:e,maskName:this.component.inputMasks[0].label}).value||(t=t.noDefault?this.emptyValue:this.defaultValue,e.value=Array.isArray(t)?t[0]:t),e}},{key:"normalizeValue",value:function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return this.isMultipleMasksField?Array.isArray(e)?m(y(l.prototype),"normalizeValue",this).call(this,e.map(function(e){return t.maskValue(e,n)})):m(y(l.prototype),"normalizeValue",this).call(this,this.maskValue(e,n)):m(y(l.prototype),"normalizeValue",this).call(this,e)}},{key:"setValueAt",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(!this.isMultipleMasksField)return m(y(l.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,i=this.refs.select?this.refs.select[e]:null,a=this.getMaskPattern(t.maskName);if(!(o&&i&&a))return m(y(l.prototype),"setValueAt",this).call(this,e,r,n);e=this.placeholderChar;o.value=(0,s.conformToMask)(r,u.getInputMask(a),{placeholderChar:e}).conformedValue,i.value=t.maskName}},{key:"unmaskValue",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.component.displayMask,t=u.getInputMask(t,this.placeholderChar);return u.unmaskValue(e,t,this.placeholderChar)}},{key:"getValueAt",value:function(e){var t;if(!this.isMultipleMasksField)return t=m(y(l.prototype),"getValueAt",this).call(this,e),n=this.component.inputMask,r=this.component.displayMask,n&&!r||r===n?t:r&&!n?this.unmaskValue(t,r):null!=(n=this.refs.valueMaskInput)&&n.mask?(this.refs.valueMaskInput.mask.textMaskInputElement.update(t),null==(r=this.refs.valueMaskInput)?void 0:r.value):t;var n=this.refs.mask?this.refs.mask[e]:null,r=this.refs.select?this.refs.select[e]:null;return{value:n?n.value:void 0,maskName:r?r.value:void 0}}},{key:"isHtmlRenderMode",value:function(){return m(y(l.prototype),"isHtmlRenderMode",this).call(this)||(this.options.readOnly||this.disabled)&&"html"===this.component.inputFormat&&"textfield"===this.type}},{key:"isEmpty",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.dataValue;return this.isMultipleMasksField?m(y(l.prototype),"isEmpty",this).call(this,e)||(this.component.multiple?0===e.length:!e.maskName||!e.value):m(y(l.prototype),"isEmpty",this).call(this,(e||"").toString().trim())}},{key:"truncateMultipleSpaces",value:function(e){return e&&e.trim().replace(/\s{2,}/g," ")}},{key:"validationValue",get:function(){var e=m(y(l.prototype),"validationValue",this);return e&&this.component.truncateMultipleSpaces?this.truncateMultipleSpaces(e):e}},{key:"beforeSubmit",value:function(){var e=this,t=this.dataValue;return this.component.truncateMultipleSpaces&&t?(t=this.truncateMultipleSpaces(t),this.dataValue=t,i.default.resolve(t).then(function(){return m(y(l.prototype),"beforeSubmit",e).call(e)})):i.default.resolve(t)}}])&&d(t.prototype,n),e&&d(t,e),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.default);t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(40),n(18),n(3),n(1),n(4),n(14),n(0);var r,o=(r=n(10))&&r.__esModule?r:{default:r},i=n(19);t.default={uniquify:function(e,t){var n=!1,r={};return(0,i.eachComponent)(e,function(e){if(r[e.key]=!0,["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree)return!0},!0),(0,i.eachComponent)([t],function(e){var t;if(e.key)return t=(0,i.uniqueKey)(r,e.key),t!==e.key&&(e.key=t,n=!0),r[t]=!0,!!(["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree)||void 0},!0),n},additionalShortcuts:{button:["Enter","Esc"]},getAlphaShortcuts:function(){return o.default.range("A".charCodeAt(),"Z".charCodeAt()+1).map(function(e){return String.fromCharCode(e)})},getAdditionalShortcuts:function(e){return this.additionalShortcuts[e]||[]},getBindedShortcuts:function(e,t){var n=[];return(0,i.eachComponent)(e,function(e){e!==t&&(e.shortcut&&n.push(e.shortcut),e.values&&e.values.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}}):[]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1122);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})})},function(e,t,n){var r=n(57),o=n(29),i=n(71),n=n(229),a=Object;e.exports=n?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,a(e))}},function(e,t,n){var r=n(102),n=n(12);e.exports=!!Object.getOwnPropertySymbols&&!n(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},function(e,t,n){var r,o,i=n(21),n=n(79),a=i.process,i=i.Deno,a=a&&a.versions||i&&i.version,i=a&&a.v8;!(o=i?0<(r=i.split("."))[0]&&r[0]<4?1:+(r[0]+r[1]):o)&&n&&(!(r=n.match(/Edge\/(\d+)/))||74<=r[1])&&(r=n.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},function(e,t,n){var r=n(63),o=n(179);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e,t,n){var r=n(34),n=n(37),o=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,n=n(o,"name"),a=n&&"something"===function(){}.name,r=n&&(!r||i(o,"name").configurable);e.exports={EXISTS:n,PROPER:a,CONFIGURABLE:r}},function(e,t,n){n=n(17);e.exports=n([].slice)},function(e,t,n){"use strict";var r=n(118),o=n(38),i=n(86);e.exports=function(e,t,n){t=r(t);t in e?o.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){var r=n(38).f,o=n(37),i=n(30)("toStringTag");e.exports=function(e,t,n){(e=e&&!n?e.prototype:e)&&!o(e,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(17),i=n(41),a=n(363);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,e={};try{(n=o(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return i(e),a(t),r?n(e,t):e.__proto__=t,e}}():void 0)},function(e,t,n){"use strict";var r=n(15),o=n(17),l=n(58),s=n(46),u=n(49),c=n(194),f=n(47),i=n(12),d=n(258),a=n(150),p=n(259),h=n(260),m=n(102),y=n(195),v=[],b=o(v.sort),g=o(v.push),n=i(function(){v.sort(void 0)}),o=i(function(){v.sort(null)}),a=a("sort"),w=!i(function(){if(m)return m<70;if(!(p&&3<p)){if(h)return!0;if(y)return y<603;for(var e,t,n,r="",o=65;o<76;o++){switch(e=String.fromCharCode(o),o){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(n=0;n<47;n++)v.push({k:e+n,v:t})}for(v.sort(function(e,t){return t.v-e.v}),n=0;n<v.length;n++)e=v[n].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}});r({target:"Array",proto:!0,forced:n||!o||!a||!w},{sort:function(e){void 0!==e&&l(e);var t=s(this);if(w)return void 0===e?b(t):b(t,e);for(var n,r,o=[],i=u(t),a=0;a<i;a++)a in t&&g(o,t[a]);for(d(o,(r=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==r?+r(e,t)||0:f(e)>f(t)?1:-1})),n=o.length,a=0;a<n;)t[a]=o[a++];for(;a<i;)c(t,a++);return t}})},function(e,t,n){var r=n(71),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw o("Incorrect invocation")}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){e.exports=function(e){return e}},function(e,t,n){n=n(21);e.exports=n.Promise},function(e,t,n){"use strict";n(9),n(8),n(13),n(11),n(23),n(2),n(31),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(16),n(43),n(67),n(1),n(14),n(0),n(22),n(40),n(45),n(18),n(20);var u=a(n(10)),r=a(n(64)),l=a(n(906)),c=a(n(196)),f=a(n(337)),d=a(n(907)),p=n(36),h=a(n(24)),o=a(n(28)),i=a(n(134)),m=n(19),y=n(161);function a(e){return e&&e.__esModule?e:{default:e}}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach(function(e){P(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(){return(w="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=S(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=S(n),t=(e=r?(e=S(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return O(t)}}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function P(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}p.GlobalFormio.forms={},p.GlobalFormio.registerComponent=o.default.setComponent;n=function(e){var t=s;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&k(t,e);var n,a=_(s);function s(){var o,e,t=this,n=s;if(!(t instanceof n))throw new TypeError("Cannot call a class as a function");t=arguments[0]instanceof HTMLElement||arguments[1]?(e=arguments[0],arguments[1]):arguments[0],P(O(o=a.call(this,null,(n=t,(n=u.default.defaults(n,{submitOnEnter:!1,iconset:"fontawesome"===(r=(n&&n.icons?n:p.GlobalFormio).icons)?"fa":r||"",i18next:f.default,saveDraft:!1,alwaysDirty:!1,saveDraftThrottle:5e3,display:"form"})).events||(n.events=new c.default),n))),"executeShortcuts",function(t){var n,r,e=t.target;o.keyboardCatchableElement(e)&&(n=t.ctrlKey||t.metaKey,e=t.keyCode,r="",65<=e&&e<=90?r=String.fromCharCode(e):13===e?r="Enter":27===e&&(r="Esc"),u.default.each(o.shortcuts,function(e){e.ctrl&&!n||e.shortcut===r&&(e.element.click(),t.preventDefault())}))}),o.element=e,p.GlobalFormio.forms[o.id]=O(o),o.options.baseUrl&&p.GlobalFormio.setBaseUrl(o.options.baseUrl);var r,i=d.default;return t&&t.i18n&&!t.i18nReady&&(t.i18n.resources?i=t.i18n:u.default.each(t.i18n,function(e,t){"options"===t?u.default.merge(i,e):i.resources[t]?u.default.assign(i.resources[t].translation,e):i.resources[t]={translation:u.default.assign((0,m.fastCloneDeep)(d.default.resources.en.translation),e)}}),t.i18n=i,t.i18nReady=!0),t&&t.i18n?o.options.i18n=t.i18n:o.options.i18n=i,o.options.language&&(o.options.i18n.lng=o.options.language),o.type="form",o._src="",o._loading=!1,o._form={},o.draftEnabled=!1,o.savingDraft=!0,o.options.saveDraftThrottle?o.triggerSaveDraft=u.default.throttle(o.saveDraft.bind(O(o)),o.options.saveDraftThrottle):o.triggerSaveDraft=o.saveDraft.bind(O(o)),o.customErrors=[],o.nosubmit=!1,o.submitted=!1,o.submitting=!1,o.formio=null,o.loader=null,o.alert=null,o.onSubmission=null,o.submissionSet=!1,o.formReady=new h.default(function(e,t){o.formReadyResolve=e,o.formReadyReject=t}),o.submissionReady=new h.default(function(e,t){o.submissionReadyResolve=e,o.submissionReadyReject=t}),o.shortcuts=[],o.localize().then(function(){o.language=o.options.language}),o.options.saveDraft&&!o.options.skipDraftRestore&&(r=p.GlobalFormio.getUser())&&!o.submissionSet&&o.restoreDraft(r._id),o.component.clearOnHide=!1,o.root=O(o),o.localRoot=O(o),o}return t=s,(e=[{key:"language",get:function(){return this.options.language},set:function(e){var t=this;if(this.options.language=e,this.i18next.language!==e)try{this.i18next.changeLanguage(e,function(e){e||(t.redraw(),t.emit("languageChanged"))})}catch(e){}}},{key:"componentComponents",get:function(){return this.form.components}},{key:"shadowRoot",get:function(){return this.options.shadowRoot}},{key:"addLanguage",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],t=u.default.assign((0,m.fastCloneDeep)(d.default.resources.en.translation),t);this.i18next.addResourceBundle(e,"translation",t,!0,!0),n&&(this.language=e)}},{key:"localize",value:function(){var r=this;return this.i18next.initialized?h.default.resolve(this.i18next):(this.i18next.initialized=!0,new h.default(function(t,n){try{r.i18next.init(b(b({},r.options.i18n),{compatibilityJSON:"v3"}),function(e){if(r.options.language=r.i18next.language.split(";")[0],e)return n(e);t(r.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){t&&/^([A-Z]|Enter|Esc)$/i.test(t)&&("Enter"===(t=u.default.capitalize(t))||"Esc"===t?"BUTTON"===e.tagName&&this.shortcuts.push({shortcut:t,element:e}):this.shortcuts.push({ctrl:!0,shortcut:t,element:e}))}},{key:"removeShortcut",value:function(e,t){t&&/^([A-Z]|Enter|Esc)$/i.test(t)&&u.default.remove(this.shortcuts,{shortcut:t,element:e})}},{key:"src",get:function(){return this._src},set:function(e){this.setSrc(e)}},{key:"loadSubmission",value:function(){var t=this;return this.loadingSubmission=!0,this.formio.submissionId?this.onSubmission=this.formio.loadSubmission().then(function(e){return t.setSubmission(e)},function(e){return t.submissionReadyReject(e)}).catch(function(e){return t.submissionReadyReject(e)}):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){e=n.setForm(e);return n.loadSubmission(),e}).catch(function(e){console.warn(e),n.formReadyReject(e)})):h.default.resolve()}},{key:"url",get:function(){return this._src},set:function(e){this.setUrl(e)}},{key:"setUrl",value:function(e,t){return!(!e||"string"!=typeof e||e===this._src)&&(this._src=e,this.nosubmit=!0,this.formio=this.options.formio=new p.GlobalFormio(e,t),"form"===this.type&&(this.options.src=e),!0)}},{key:"ready",get:function(){var e=this;return this.formReady.then(function(){return w(S(s.prototype),"ready",e).then(function(){return!e.loadingSubmission||e.submissionReady})})}},{key:"loading",get:function(){return this._loading},set:function(e){var t;if(this._loading!==e&&(this._loading=e,!this.loader&&e&&(this.loader=this.ce("div",{class:"loader-wrapper"}),t=this.ce("div",{class:"loader text-center"}),this.loader.appendChild(t)),this.loader))try{e?this.prependTo(this.loader,this.wrapper):this.removeChildFrom(this.loader,this.wrapper)}catch(e){}}},{key:"setForm",value:function(e,t){var n,r,o=this,i=this._form&&(null==(i=this._form.components)?void 0:i.length);try{if(i&&JSON.stringify(this._form)===JSON.stringify(e))return h.default.resolve();if(this._form=null!=t&&t.keepAsReference?e:u.default.cloneDeep(e),this.onSetForm&&this.onSetForm(u.default.cloneDeep(this._form),e),null!=(n=this.parent)&&null!=(r=n.component)&&r.modalEdit)return h.default.resolve()}catch(e){return console.warn(e),h.default.resolve()}if(e&&e.settings&&e.settings.components&&(this.options.components=e.settings.components),e&&e.properties&&(this.options.properties=e.properties),"schema"in e&&0<(0,l.default)(e.schema,"1.x")&&this.ready.then(function(){o.setAlert("alert alert-danger","Form schema is for a newer version, please upgrade your renderer. Some functionality may not work.")}),e&&e.module){i=null;if("string"==typeof e.module)try{i=this.evaluate("return ".concat(e.module))}catch(e){console.warn(e)}else i=e.module;i&&(p.GlobalFormio.use(i),i.options&&i.options.form&&(this.options=Object.assign(this.options,i.options.form)))}return this.initialized=!1,(this.rebuild()||h.default.resolve()).then(function(){return o.emit("formLoad",e),o.triggerRecaptcha(),setTimeout(function(){o.onChange(t),o.formReadyResolve()},0),o.formReady})}},{key:"form",get:function(){return this._form||(this._form={components:[]}),this._form},set:function(e){this.setForm(e)}},{key:"submission",get:function(){return this.getValue()},set:function(e){this.setSubmission(e)}},{key:"setSubmission",value:function(t){var n=this,r=b(b({},r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}),{},{fromSubmission:!u.default.has(r,"fromSubmission")||r.fromSubmission});return this.onSubmission=this.formReady.then(function(e){return e&&(r=b(b({},r),e)),n.submissionSet=!0,n.triggerChange(r),n.setValue(t,r),n.submissionReadyResolve(t)},function(e){return n.submissionReadyReject(e)}).catch(function(e){return n.submissionReadyReject(e)})}},{key:"saveDraft",value:function(){var e,t=this;this.draftEnabled&&(this.formio?p.GlobalFormio.getUser()?((e=(0,m.fastCloneDeep)(this.submission)).state="draft",this.savingDraft||(this.emit("saveDraftBegin"),this.savingDraft=!0,this.formio.saveSubmission(e).then(function(e){t.submission._id=e._id,t.savingDraft=!1,t.emit("saveDraft",e)}))):console.warn(this.t("saveDraftAuthError")):console.warn(this.t("saveDraftInstanceError")))}},{key:"restoreDraft",value:function(e){var n=this;this.formio?(this.savingDraft=!0,this.formio.loadSubmissions({params:{state:"draft",owner:e}}).then(function(e){var t;if(0<e.length&&!n.options.skipDraftRestore)return t=(0,m.fastCloneDeep)(e[0]),n.setSubmission(t).then(function(){n.draftEnabled=!0,n.savingDraft=!1,n.emit("restoreDraft",t)});n.draftEnabled=!0,n.savingDraft=!1,n.emit("restoreDraft",null)})):console.warn(this.t("restoreDraftInstanceError"))}},{key:"schema",get:function(){var t=(0,m.fastCloneDeep)(u.default.omit(this._form,["components"]));return t.components=[],this.eachComponent(function(e){return t.components.push(e.schema)}),t}},{key:"mergeData",value:function(e,t){u.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=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=(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),w(S(s.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 t=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(e){t.submit(!1,e).catch(function(e){return!1!==e&&console.log(e)})},!0),this.on("checkValidity",function(e){return t.checkValidity(e,!0,e)},!0),this.on("requestUrl",function(e){return t.submitUrl(e.url,e.headers)},!0),this.on("resetForm",function(){return t.resetValue()},!0),this.on("deleteSubmission",function(){return t.deleteSubmission()},!0),this.on("refreshData",function(){return t.updateValue()},!0),this.executeFormController(),this.formReady}},{key:"executeFormController",value:function(){var e=this;if(!this.form||!this.form.controller||(!this.visible||this.component.hidden)&&this.component.clearOnHide&&!this.rootPristine)return!1;this.formReady.then(function(){setTimeout(function(){e.evaluate(e.form.controller,{components:e.components})})})}},{key:"destroy",value:function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];return this.off("submitButton"),this.off("checkValidity"),this.off("requestUrl"),this.off("resetForm"),this.off("deleteSubmission"),this.off("refreshData"),e&&(this.emit("formDelete",this.id),delete p.GlobalFormio.forms[this.id]),w(S(s.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,w(S(s.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 w(S(s.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)):h.default.resolve()}},{key:"attach",value:function(e){var t=this,n=(this.element=e,this.loadRefs(e,{webform:"single"}),this.attachComponents(this.refs.webform));return this.addEventListener(document,"keydown",this.executeShortcuts),(this.currentForm=this).hook("attachWebform",e,this),n.then(function(){return t.emit("render",t.element),t.setValue(t._submission,{noUpdateEvent:!0})})}},{key:"hasRequiredFields",value:function(){var t=!1;return(0,y.eachComponent)(this.form.components,function(e){if(e.validate.required)return t=!0},!0),t}},{key:"resetValue",value:function(){u.default.each(this.getComponents(),function(e){return e.resetValue()}),this.setPristine(!0),this.onChange()}},{key:"setAlert",value:function(e,t,n){var r=this;if(!e&&this.submitted)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);else 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&&(n={class:n&&n.classes||"alert alert-".concat(e),id:"error-list-".concat(this.id)},t={message:t instanceof HTMLElement?t.outerHTML:t,attrs:n,type:e},this.alert=(0,m.convertStringToHTMLElement)(this.renderTemplate("alert",t),"#".concat(n.id))),this.alert&&(this.loadRefs(this.alert,{errorRef:"multiple"}),this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach(function(e){r.addEventListener(e,"click",function(e){e=e.currentTarget.dataset.componentKey;r.focusOnComponent(e)}),r.addEventListener(e,"keydown",function(e){13===e.keyCode&&(e.preventDefault(),e=e.currentTarget.dataset.componentKey,r.focusOnComponent(e))})}),this.prepend(this.alert))}}},{key:"focusOnComponent",value:function(e){e&&(e=this.getComponent(e))&&e.focus()}},{key:"showErrors",value:function(e,t,n){var a,l=this,r=(this.loading=!1,this.errors);{if(e?Array.isArray(e)?r=r.concat(e):r.push(e):r=w(S(s.prototype),"errors",this),(r=r.concat(this.customErrors)).length)return r.forEach(function(n){var e=n.components,e=void 0===e?[]:e;n.component&&e.push(n.component),n.path&&e.push(n.path),e.forEach(function(e){var t=l._parentPath+(0,m.getStringFromComponentPath)(e),e=l.getComponent(e,u.default.identity,t);n.fromServer&&(e.serverErrors?e.serverErrors.push(n):e.serverErrors=[n]),u.default.compact(Array.isArray(e)?e:[e]).forEach(function(e){return e.setCustomValidity(n.message,!0)})})}),a=[],r.forEach(function(n){var o,i,e;n&&(o=function(e,t){t=!u.default.isUndefined(t)&&n.messages&&n.messages[t],t=t&&t.formattedKeyOrPath||t.path||n.component&&n.component.key||n.fromServer&&n.path,t=t?(0,m.getStringFromComponentPath)(t):"",t=l._parentPath+t;return"string"==typeof n||n.formattedKeyOrPath||(n.formattedKeyOrPath=t),{message:(0,m.unescapeHTML)(e),keyOrPath:t}},n.messages=u.default.uniqBy(n.messages,function(e){return e.message}),n.messages&&n.messages.length?(i=n.component,n.messages.forEach(function(e,t){var n=e.message,r=e.context,e=e.fromServer,r=null!=r&&r.hasLabel||e?l.t("alertMessage",{message:l.t(n)}):l.t("alertMessageWithLabel",{label:l.t(i.label),message:l.t(n)});a.push(o(r,t))})):n&&(e=u.default.isObject(n)?l.t("alertMessage",{message:l.t(n.message||"")}):l.t("alertMessage",{message:l.t(n)}),a.push(o(e))))}),e=this.renderTemplate("errorsList",{errors:a}),this.root.setAlert("danger",e),t&&this.emit("error",r),r;this.setAlert(!1)}}},{key:"onSubmit",value:function(e,t){var n;return this.loading=!1,this.submitting=!1,this.setPristine(!0),this.setValue((0,m.fastCloneDeep)(e),{noValidate:!0,noCheck:!0}),this.setAlert("success","<p>".concat(this.t("complete"),"</p>")),this.draftEnabled&&null!=(n=this.triggerSaveDraft)&&n.cancel&&this.triggerSaveDraft.cancel(),this.emit("submit",e,t),t&&this.emit("submitDone",e),e}},{key:"normalizeError",value:function(e){return e=e&&"string"==typeof(e="object"===v(e)&&"details"in e?e.details:e)?{message:e}:e}},{key:"onSubmissionError",value:function(e){if(e=this.normalizeError(e),this.submitting=!1,this.setPristine(!1),this.emit("submitError",e),e&&e.silent)return this.emit("change",{isValid:!0},{silent:!0}),!1;e=this.showErrors(e,!0);return this.root&&this.root.alert&&this.scrollIntoView(this.root.alert),e}},{key:"onChange",value:function(e,t,n,r){e=e||{};var o=!1,i=(t&&t.component&&(this.customErrors=this.customErrors.filter(function(e){return e.component&&e.component!==t.component.key})),w(S(s.prototype),"onChange",this).call(this,e,!0),u.default.clone(this.submission));e.changed=i.changed=t,e.changes=r,n&&this.pristine&&(this.pristine=!1),i.isValid=this.checkData(i.data,e),this.loading=!1,this.submitted&&this.showErrors(),n&&this.options.saveDraft&&this.triggerSaveDraft(),e&&e.noEmit||(this.emit("change",i,e,n),o=!0),o&&!this.initialized&&(this.emit("initialized"),this.initialized=!0)}},{key:"checkData",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=w(S(s.prototype),"checkData",this).call(this,e,t);return(u.default.isEmpty(t)||t.noValidate)&&this.submitted&&this.showErrors(),e}},{key:"deleteSubmission",value:function(){var e=this;return this.formio.deleteSubmission().then(function(){e.emit("submissionDeleted",e.submission),e.resetValue()})}},{key:"cancel",value:function(e){return this.hook("beforeCancel",!0)&&(e||confirm(this.t("confirmCancel")))?(this.resetValue(),!0):(this.emit("cancelSubmit"),!1)}},{key:"setMetadata",value:function(e){e.metadata=e.metadata||{},u.default.defaults(e.metadata,{timezone:u.default.get(this,"_submission.metadata.timezone",(0,m.currentTimezone)()),offset:parseInt(u.default.get(this,"_submission.metadata.offset",(0,r.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 a=this,l=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.clearServerErrors(),new h.default(function(n,r){if(a.options.readOnly)return n({submission:a.submission,saved:!1});var o=(0,m.fastCloneDeep)(a.submission||{}),i=(a.setMetadata(o),o.state=l.state||"submitted","draft"===o.state);a.hook("beforeSubmit",b(b({},o),{},{component:l.component}),function(e,t){return e?r(e):(o._vnote=t&&t._vnote?t._vnote:"",i||o.data?i||a.checkValidity(o.data,!0)?(a.everyComponent(function(e){"client-only"===e.component.persistent&&u.default.unset(o.data,e.path)}),void a.hook("customValidation",b(b({},o),{},{component:l.component}),function(e){return e?("string"==typeof e&&(e={message:e}),e=Array.isArray(e)?e:[e],a.customErrors=e,r()):(a.loading=!0,a._form&&a._form.action?(e=o.data._id&&a._form.action.includes(o.data._id)?"PUT":"POST",p.GlobalFormio.makeStaticRequest(a._form.action,e,o,a.formio?a.formio.options:{}).then(function(e){return n({submission:e,saved:!0})}).catch(function(e){return a.setServerErrors(e),r(e)})):(e=a.formio,a.nosubmit||!e?n({submission:o,saved:!1}):void e[e.actionUrl?"saveAction":"saveSubmission"](o).then(function(e){return n({submission:e,saved:!0})}).catch(function(e){return a.setServerErrors(e),r(e)})))})):r():r("Invalid Submission"))})})}},{key:"setServerErrors",value:function(e){e.details&&(this.serverErrors=e.details.filter(function(e){return e.level?"error"===e.level:e}).map(function(e){return e.fromServer=!0,e}))}},{key:"executeSubmit",value:function(e){var n=this;return this.submitted=!0,this.submitting=!0,this.submitForm(e).then(function(e){var t=e.submission,e=e.saved;return n.onSubmit(t,e)}).then(function(e){return n.submissionInProcess=!1,e}).catch(function(e){return n.submissionInProcess=!1,h.default.reject(n.onSubmissionError(e))})}},{key:"clearServerErrors",value:function(){var e,n=this;null!=(e=this.serverErrors)&&e.forEach(function(e){var t;e.path&&(t=(0,m.getArrayFromComponentPath)(e.path),(t=n.getComponent(t,u.default.identity,e.formattedKeyOrPath))&&(t.serverErrors=[]))}),this.serverErrors=[]}},{key:"submit",value:function(e,t){var n=this;return this.submissionInProcess=!0,e?this.executeSubmit(t):this.beforeSubmit(t).then(function(){return n.executeSubmit(t)})}},{key:"submitUrl",value:function(e,t){var n,r,o=this;return e?(n=this.submission||{},e=e,r={method:"POST",headers:{}},t&&0<t.length&&t.map(function(e){""!==e.header&&""!==e.value&&(r.headers[e.header]=o.interpolate(e.value,n))}),e&&r?void p.GlobalFormio.makeStaticRequest(e,r.method,n,{headers:r.headers}).then(function(){o.emit("requestDone"),o.setAlert("success","<p> Success </p>")}).catch(function(e){o.showErrors("".concat(e.statusText||""," ").concat(e.status||e)),o.emit("error","".concat(e.statusText||""," ").concat(e.status||e)),console.error("".concat(e.statusText||""," ").concat(e.status||e)),o.setAlert("danger","<p> ".concat(e.statusText||""," ").concat(e.status||e," </p>"))}):(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."))):console.warn("Missing URL argument")}},{key:"triggerRecaptcha",value:function(){var e;this&&this.components&&(0<(e=(0,m.searchComponents)(this.components,{"component.type":"recaptcha","component.eventType":"formLoad"})).length&&e[0].verify("".concat(this.form.name||"form","Load")))}},{key:"nosubmit",get:function(){return this._nosubmit||!1},set:function(e){this._nosubmit=!!e,this.emit("nosubmit",this._nosubmit)}},{key:"conditions",get:function(){var e;return null!=(e=null==(e=this.schema.settings)?void 0:e.conditions)?e:[]}},{key:"variables",get:function(){var e;return null!=(e=null==(e=this.schema.settings)?void 0:e.variables)?e:[]}}])&&g(t.prototype,e),n&&g(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(i.default);(t.default=n).setBaseUrl=p.GlobalFormio.setBaseUrl,n.setApiUrl=p.GlobalFormio.setApiUrl,n.setAppUrl=p.GlobalFormio.setAppUrl},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=o.default.cloneDeep([{type:"tabs",key:"tabs",components:[{label:"Display",key:"display",weight:0,components:u.default},{label:"Data",key:"data",weight:10,components:l.default},{label:"Validation",key:"validation",weight:20,components:f.default},{label:"API",key:"api",weight:30,components:s.default},{label:"Conditional",key:"conditional",weight:40,components:a.default},{label:"Logic",key:"logic",weight:50,components:c.default},{label:"Layout",key:"layout",weight:60,components:d.default},{label:"Addons",key:"addons",weight:70,components:i.default}]}]).concat(t.map(function(e){return{type:"tabs",key:"tabs",components:o.default.cloneDeep(e)}}));return{components:o.default.unionWith(r,p.default.unifyComponents).concat({type:"hidden",key:"type"})}},n(0),n(18);var o=r(n(10)),i=r(n(303)),a=r(n(838)),l=r(n(839)),s=r(n(840)),u=r(n(841)),c=r(n(842)),f=r(n(843)),d=r(n(844)),p=r(n(74));function r(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){n=n(12);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},function(e,t,n){var r=n(17),o=n(12),i=n(78),a=Object,l=r("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?l(e,""):a(e)}:a},function(e,t,n){var r=n(178),o=n(100);e.exports=function(e){e=r(e,"string");return o(e)?e:e+""}},function(e,t,n){var n=n(17),r=0,o=Math.random(),i=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++r+o,36)}},function(e,t){e.exports={}},function(e,t,n){function r(e,t){return(e=s[l(e)])==c||e!=u&&(i(t)?o(t):!!t)}var o=n(12),i=n(29),a=/#|\.prototype\./,l=r.normalize=function(e){return String(e).replace(a,".").toLowerCase()},s=r.data={},u=r.NATIVE="N",c=r.POLYFILL="P";e.exports=r},function(e,t,n){var r=n(236),o=n(181);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports={}},function(e,t,n){var r=n(12),o=n(30),i=n(102),a=o("species");e.exports=function(t){return 51<=i||!r(function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},function(e,t,n){function v(e,t){this.stopped=e,this.result=t}var b=n(92),g=n(27),w=n(41),k=n(88),_=n(186),O=n(49),S=n(71),P=n(187),E=n(148),x=n(249),j=TypeError,C=v.prototype;e.exports=function(e,t,n){function r(e){return i&&x(i,"normal",e),new v(!0,e)}function o(e){return d?(w(e),m?y(e[0],e[1],r):y(e[0],e[1])):m?y(e,r):y(e)}var i,a,l,s,u,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),y=b(t,f);if(p)i=e.iterator;else if(h)i=e;else{if(!(n=E(e)))throw j(k(e)+" is not iterable");if(_(n)){for(a=0,l=O(e);a<l;a++)if((s=o(e[a]))&&S(C,s))return s;return new v(!1)}i=P(e,n)}for(u=(p?e:i).next;!(c=g(u,i)).done;){try{s=o(c.value)}catch(e){x(i,"throw",e)}if("object"==typeof s&&s&&S(C,s))return s}return new v(!1)}},function(e,t,n){"use strict";var r=n(15),o=n(17),i=n(65).f,a=n(73),l=n(47),s=n(255),u=n(62),c=n(256),n=n(63),f=o("".startsWith),d=o("".slice),p=Math.min,o=c("startsWith");r({target:"String",proto:!0,forced:!!(n||o||(!(c=i(String.prototype,"startsWith"))||c.writable))&&!o},{startsWith:function(e){var t=l(u(this)),n=(s(e),a(p(1<arguments.length?arguments[1]:void 0,t.length))),e=l(e);return f?f(t,e,n):d(t,n,n+e.length)===e}})},function(e,t,n){var r=n(111);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return r(e)?e:[e]}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){function r(e){if(i[e])return i[e].exports;var t=i[e]={exports:{},id:e,loaded:!1};return o[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}var o,i;e.exports=(o=[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){function t(e){e=e.target.value,o.update(e),"function"==typeof r&&r(e)}var n=e.inputElement,r=e.afterUpdate,o=(0,a.default)(e);return n.addEventListener("input",t),o.update(n.value),{textMaskInputElement:o,destroy:function(){n.removeEventListener("input",t)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.conformToMask=void 0,t.maskInput=o;var i=n(2),n=(Object.defineProperty(t,"conformToMask",{enumerable:!0,get:function(){return r(i).default}}),n(5)),a=r(n);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 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},I=(t.default=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:N,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:V,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(!(0,I.isArray)(t)){if((void 0===t?"undefined":D(t))!==L.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");t=t(e,n),t=(0,I.processCaretTraps)(t).maskWithoutCaretTraps}var r=void 0===(l=n.guide)||l,o=void 0===(l=n.previousConformedValue)?N:l,i=void 0===(l=n.placeholderChar)?L.placeholderChar:l,a=void 0===(l=n.placeholder)?(0,I.convertMaskToPlaceholder)(t,i):l,l=n.currentCaretPosition,s=n.keepCharPositions,u=!1===r&&void 0!==o,n=e.length,c=o.length,f=a.length,d=t.length,p=n-c,h=0<p,m=l+(h?-p:0),y=m+Math.abs(p);if(!0===s&&!h){for(var v=N,b=m;b<y;b++)a[b]===i&&(v+=i);e=e.slice(0,m)+v+e.slice(m,n)}for(var g=e.split(N).map(function(e,t){return{char:e,isNew:m<=t&&t<y}}),w=n-1;0<=w;w--){var k=g[w].char;k!==i&&k===a[m<=w&&c===d?w-p:w]&&g.splice(w,1)}var _=N,O=!1;e:for(var S=0;S<f;S++){var P=a[S];if(P===i){if(0<g.length)for(;0<g.length;){var E=g.shift(),x=E.char,E=E.isNew;if(x===i&&!0!=u){_+=i;continue e}if(t[S].test(x)){if(!0===s&&!1!==E&&o!==N&&!1!==r&&h){for(var j=g.length,C=null,R=0;R<j;R++){var A=g[R];if(A.char!==i&&!1===A.isNew)break;if(A.char===i){C=R;break}}null!==C?(_+=x,g.splice(C,1)):S--}else _+=x;continue e}O=!0}!1==u&&(_+=a.substr(S,f));break}_+=P}if(u&&!1==h){for(var M=null,T=0;T<_.length;T++)a[T]===i&&(M=T);_=null!==M?_.substr(0,M+1):N}return{conformedValue:_,meta:{someCharsRejected:O}}},n(3)),L=n(1),V=[],N=""},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=0<arguments.length&&void 0!==arguments[0]?arguments[0]:i,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:o.placeholderChar;if(!r(e))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(t))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(t)+"\n\nThe mask that was received is: "+JSON.stringify(e));return e.map(function(e){return e instanceof RegExp?t:e}).join("")},t.isArray=r,t.isString=function(e){return"string"==typeof e||e instanceof String},t.isNumber=function(e){return"number"==typeof e&&void 0===e.length&&!isNaN(e)},t.isNil=function(e){return null==e},t.processCaretTraps=function(e){for(var t,n=[];-1!==(t=e.indexOf(a));)n.push(t),e.splice(t,1);return{maskWithoutCaretTraps:e,indexes:n}};var o=n(1),i=[],a="[]"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=void 0===(t=e.previousConformedValue)?E:t,n=void 0===(n=e.previousPlaceholder)?E:n,r=void 0===(r=e.currentCaretPosition)?0:r,o=e.conformedValue,i=e.rawValue,a=e.placeholderChar,l=e.placeholder,s=void 0===(s=e.indexesOfPipedChars)?P:s,u=void 0===(e=e.caretTrapIndexes)?P:e;if(0===r||!i.length)return 0;var e=i.length,c=t.length,f=l.length,d=o.length,p=0<(e=e-c);if(1<e&&!p&&!(0===c))return r;var h=0,c=void 0,m=void 0;if(p&&(t===o||o===l))h=r-e;else{var y=o.toLowerCase(),t=i.toLowerCase().substr(0,r).split(E).filter(function(e){return-1!==y.indexOf(e)}),m=t[t.length-1],e=n.substr(0,t.length).split(E).filter(function(e){return e!==a}).length,v=l.substr(0,t.length).split(E).filter(function(e){return e!==a}).length,n=void 0!==n[t.length-1]&&void 0!==l[t.length-2]&&n[t.length-1]!==a&&n[t.length-1]!==l[t.length-1]&&n[t.length-1]===l[t.length-2];!p&&(v!==e||n)&&0<e&&-1<l.indexOf(m)&&void 0!==i[r]&&(c=!0,m=i[r]);for(var v=s.map(function(e){return y[e]}).filter(function(e){return e===m}).length,n=t.filter(function(e){return e===m}).length,b=l.substr(0,l.indexOf(a)).split(E).filter(function(e,t){return e===m&&i[t]!==e}).length+n+v+(c?1:0),g=0,w=0;w<d;w++){h=w+1;if(y[w]===m&&g++,b<=g)break}}if(p){for(var k=h,_=h;_<=f;_++)if(l[_]===a&&(k=_),l[_]===a||-1!==u.indexOf(_)||_===f)return k}else if(c){for(var O=h-1;0<=O;O--)if(o[O]===m||-1!==u.indexOf(O)||0===O)return O}else for(var S=h;0<=S;S--)if(l[S-1]===a||-1!==u.indexOf(S)||0===S)return S};var P=[],E=""},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},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};t.default=function(v){var b={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:b,update:function(e){var t,n,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:v,o=r.inputElement,i=r.mask,a=r.guide,l=r.pipe,s=r.placeholderChar,s=void 0===s?S.placeholderChar:s,u=r.keepCharPositions,u=void 0!==u&&u,r=r.showMask,r=void 0!==r&&r;if((e=void 0===e?o.value:e)!==b.previousConformedValue){(void 0===i?"undefined":w(i))===x&&void 0!==i.pipe&&void 0!==i.mask&&(l=i.pipe,i=i.mask);var c=void 0,f=void 0;if(i instanceof Array&&(c=(0,O.convertMaskToPlaceholder)(i,s)),!1!==i){var e=function(e){if((0,O.isString)(e))return e;if((0,O.isNumber)(e))return String(e);if(null==e)return P;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))}(e),d=o.selectionEnd,p=b.previousConformedValue,h=b.previousPlaceholder,m=void 0;if((void 0===i?"undefined":w(i))===S.strFunction){if(!1===(f=i(e,{currentCaretPosition:d,previousConformedValue:p,placeholderChar:s})))return;var y=(0,O.processCaretTraps)(f),f=y.maskWithoutCaretTraps,m=y.indexes,c=(0,O.convertMaskToPlaceholder)(f,s)}else f=i;y={previousConformedValue:p,guide:a,placeholderChar:s,pipe:l,placeholder:c,currentCaretPosition:d,keepCharPositions:u},i=(0,_.default)(e,f,y).conformedValue,a=(void 0===l?"undefined":w(l))===S.strFunction,u={},f=(a&&(!1===(u=l(i,g({rawValue:e},y)))?u={value:p,rejected:!0}:(0,O.isString)(u)&&(u={value:u})),a?u.value:i),l=(0,k.default)({previousConformedValue:p,previousPlaceholder:h,conformedValue:f,placeholder:c,rawValue:e,currentCaretPosition:d,placeholderChar:s,indexesOfPipedChars:u.indexesOfPipedChars,caretTrapIndexes:m}),y=f===c&&0===l?r?c:P:f;b.previousConformedValue=y,b.previousPlaceholder=c,o.value!==y&&(o.value=y,t=o,n=l,(v.shadowRoot||document).activeElement===t&&(j?C(function(){return t.setSelectionRange(n,n,E)},0):t.setSelectionRange(n,n,E)))}}}}};var k=r(n(4)),_=r(n(2)),O=n(3),S=n(1),P="",E="none",x="object",j="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),C="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout}],i={},r.m=o,r.c=i,r.p="",r(0))},function(e,t,n){n(15)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(21),o=n(113),i=n(29),a=n(121),l=n(140),s=n(30),u=n(486),c=n(296),f=n(63),d=n(102),p=o&&o.prototype,h=s("species"),m=!1,y=i(r.PromiseRejectionEvent),n=a("Promise",function(){var e=l(o),t=e!==String(o);if(!t&&66===d)return!0;if(f&&(!p.catch||!p.finally))return!0;if(!d||d<51||!/native code/.test(e)){function n(e){e(function(){},function(){})}e=new o(function(e){e(1)});if((e.constructor={})[h]=n,!(m=e.then(function(){})instanceof n))return!0}return!t&&(u||c)&&!y});e.exports={CONSTRUCTOR:n,REJECTION_EVENT:y,SUBCLASSING:m}},function(e,t,n){"use strict";function r(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=e,r=t}),this.resolve=o(n),this.reject=o(r)}var o=n(58);e.exports.f=function(e){return new r(e)}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(23),n(2),n(22),n(31),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(60),n(16),n(25),n(1),n(14),n(26),n(9);var i=l(n(53)),r=l(n(77)),a=l(n(10));function l(e){return e&&e.__esModule?e:{default:e}}function s(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function u(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?s(Object(o),!0).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=h(n),t=(e=r?(e=h(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e);var n,r=p(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"hasChanged",value:function(e,t){return null!=e&&!this.hasValue()||!a.default.isEqual(e,t)}},{key:"allowData",get:function(){return!0}},{key:"getValueAsString",value:function(e,t){var n;return null!=t&&t.email?(n='\n        <table border="1" style="width:100%">\n          <tbody>\n      ',this.everyComponent(function(e){e.isInputComponent&&e.visible&&!e.skipInEmail&&(n+='\n            <tr>\n              <th style="padding: 5px 10px;">'.concat(e.label,'</th>\n              <td style="width:100%;padding:5px 10px;">').concat(e.getView(e.dataValue,t),"</td>\n            </tr>\n          "))},u(u({},t),{},{fromRoot:!0})),n+="\n          </tbody>\n        </table>\n      "):a.default.isEmpty(e)?"":null!=t&&t.modalPreview?(delete t.modalPreview,this.getDataValueAsTable(e,t)):"[Complex Data]"}},{key:"getDataValueAsTable",value:function(e,n){var r='\n      <table border="1" style="width:100%">\n        <tbody>\n    ',o=new RegExp("<(.*?)>");return this.components.forEach(function(e){var t;e.isInputComponent&&e.visible&&!e.skipInEmail&&(t=e.getView(e.dataValue,n),r+='\n          <tr>\n            <th style="padding: 5px 10px;">'.concat(e.label,'</th>\n            <td style="width:100%;padding:5px 10px;">').concat(e.component&&"html"===e.component.inputFormat&&o.test(t)?t:'<input type="text" value="'.concat(t.replace(/"/g,"&quot;"),'" readonly/>'),"</td>\n          </tr>\n        "))},u(u({},n),{},{fromRoot:!0})),r+="\n        </tbody>\n      </table>\n    "}},{key:"everyComponent",value:function(e,t){if(null!=t&&t.email){if(!t.fromRoot)return;delete t.fromRoot}return f(h(o.prototype),"everyComponent",this).call(this,e,t)}},{key:"getValue",value:function(){return this.dataValue}},{key:"updateValue",value:function(e){return i.default.prototype.updateValue.call(this,e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{})}}])&&c(t.prototype,e),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.default);t.default=n},function(e,t,n){"use strict";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)}n(8),n(3),n(5),n(94),n(4),n(11),n(2),n(6),n(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(67),n(1),n(25),n(0),n(9);var r=f(n(170)),i=n(36),o=f(n(905)),l=f(n(300)),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};t=s(t);if(t&&t.has(e))return t.get(e);var n,r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(n in e){var i;"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&((i=o?Object.getOwnPropertyDescriptor(e,n):null)&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n])}r.default=e,t&&t.set(e,r);return r}(n(19)),c=f(n(24));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return(d=y()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);t=new(Function.bind.apply(e,r));return n&&h(t,n.prototype),t}).apply(null,arguments)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(n){var r=y();return function(){var e,t=v(n),t=(e=r?(e=v(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){var t=s;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e);var n,r=m(s);function s(){var n,e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");e=(arguments.length<=0?void 0:arguments[0])instanceof HTMLElement?arguments.length<=2?void 0:arguments[2]:arguments.length<=1?void 0:arguments[1];return i.GlobalFormio.options&&i.GlobalFormio.options.form&&(e=Object.assign(e,i.GlobalFormio.options.form)),(n=r.call(this,e)).ready=new c.default(function(e,t){n.readyResolve=e,n.readyReject=t}),n.instance=null,(arguments.length<=0?void 0:arguments[0])instanceof HTMLElement?(n.element=arguments.length<=0?void 0:arguments[0],n.options=(arguments.length<=2?void 0:arguments[2])||{},n.options.events=n.events,n.setForm(arguments.length<=1?void 0:arguments[1]).then(function(){return n.readyResolve(n.instance)}).catch(n.readyReject)):arguments.length<=0||!arguments[0]?(n.element=null,n.options={},n.options.events=n.events):(n.element=null,n.options=(arguments.length<=1?void 0:arguments[1])||{},n.options.events=n.events,n.setForm(arguments.length<=0?void 0:arguments[0]).then(function(){return n.readyResolve(n.instance)}).catch(n.readyReject)),n.display="",n}return t=s,e=[{key:"embed",value:function(a){var l=this;return new c.default(function(t){a&&a.src||t();var n=l.id||"formio-".concat(Math.random().toString(36).substring(7)),e=a.class||"formio-form-wrapper",r=a.styles?'<link rel="stylesheet" href="'.concat(a.styles,'">'):"",o=(r+='<div id="'.concat(n,'" class="').concat(e,'"></div>'),document.write(r),0),i=setInterval(function(){o++;var e=document.getElementById(n);(e||10<o)&&(t(new s(e,a.src).ready),clearInterval(i))},10)})}}],(n=[{key:"create",value:function(e){return this.options&&(this.options.flatten||"flat"===this.options.renderMode)&&(e="form"),this.display=e,new(o.default.displays[e]||o.default.displays.webform)(this.element,this.options)}},{key:"form",get:function(){return this._form},set:function(e){return this.setForm(e)}},{key:"errorForm",value:function(e){return{components:[{label:"HTML",tag:"div",className:"error error-message alert alert-danger ui red message",attrs:[{attr:"role",value:"alert"}],key:"errorMessage",type:"htmlelement",input:!1,content:"string"==typeof e?e:e.message}]}}},{key:"setForm",value:function(n){var e,r,o=this;return("string"==typeof(n=n||this.form)?(e=new i.GlobalFormio(n),this.getSubmission(e).catch(function(e){r=e}).then(function(t){return e.loadForm().catch(function(e){r=e}).then(function(e){if(r&&(e=o.errorForm(r)),o.instance=o.instance||o.create(e.display),o.instance.url=n,o.instance.nosubmit=!1,o._form=o.instance.form=e,t&&(o.instance.submission=t),r)throw r;return o.instance})})):(this.instance=this.instance||this.create(n.display),this._form=this.instance.form=n,this.instance.ready)).then(function(){return o.element=o.instance.element,o.instance})}},{key:"getSubmission",value:function(e){return e.submissionId?e.loadSubmission():c.default.resolve()}},{key:"setDisplay",value:function(e){return this.display===e&&this.instance?c.default.resolve(this.instance):(this.form.display=e,this.instance.destroy(),this.instance=this.create(e),this.setForm(this.form))}},{key:"empty",value:function(){if(this.element)for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}},{key:"sanitize",value:function(e,t){return!1!==this.options.sanitize||t?u.sanitize(e,this.options):e}},{key:"setContent",value:function(e,t,n){return e instanceof HTMLElement&&(e.innerHTML=this.sanitize(t,n),!0)}},{key:"build",value:function(){var t=this;if(!this.instance)return c.default.reject("Form not ready. Use form.ready promise");if(!this.element)return c.default.reject("No DOM element for form.");var e=this.options&&this.options.template?this.options.template:"bootstrap",e=l.default[e].loader||l.default.bootstrap.loader;return this.setContent(this.element,e.form),this.render().then(function(e){return t.setContent(t.element,e),t.attach(t.element).then(function(){return t.instance})}).then(function(e){return t.emit("build",e),e})}},{key:"render",value:function(){var t=this;return this.instance?c.default.resolve(this.instance.render()).then(function(e){return t.emit("render",e),e}):c.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})):c.default.reject("Form not ready. Use form.ready promise")}}])&&p(t.prototype,n),e&&p(t,e),Object.defineProperty(t,"prototype",{writable:!1}),s}(r.default);t.default=b,i.GlobalFormio.embedForm=function(e){return b.embed(e)},i.GlobalFormio.createForm=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(b,t).ready},i.GlobalFormio.Form=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PageSizes=t.PageSize=t.Operations=t.Operation=t.Columns=t.Column=t.AllItemsPerPage=void 0;var n=n(75),n=(n=n)&&n.__esModule?n:{default:n};t.AllItemsPerPage="all";var r=t.Column=n.default.shape({key:n.default.string.isRequired,sort:n.default.oneOfType([n.default.bool,n.default.string,n.default.func]),title:n.default.string,value:n.default.func,width:n.default.number}),r=(t.Columns=n.default.arrayOf(r),t.Operation=n.default.shape({action:n.default.string.isRequired,buttonType:n.default.string,icon:n.default.string,permissionsResolver:n.default.func,title:n.default.string})),r=(t.Operations=n.default.arrayOf(r),t.PageSize=n.default.oneOfType([n.default.number,n.default.shape({label:n.default.string,value:n.default.number}),n.default.oneOf(["all"])]));t.PageSizes=n.default.arrayOf(r)},function(L,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=I(t(350)),r=I(t(845)),o=I(t(846)),i=I(t(847)),a=I(t(53)),l=I(t(213)),s=I(t(304)),u=I(t(848)),c=I(t(849)),f=I(t(308)),d=I(t(851)),p=I(t(852)),h=I(t(853)),m=I(t(857)),y=I(t(862)),v=I(t(863)),b=I(t(864)),g=I(t(316)),w=I(t(908)),k=I(t(83)),_=I(t(305)),O=I(t(61)),S=I(t(909)),P=I(t(77)),E=I(t(134)),x=I(t(217)),j=I(t(307)),C=I(t(910)),R=I(t(911)),A=I(t(912)),M=I(t(320)),T=I(t(913)),D=I(t(916)),V=I(t(920)),N=I(t(321)),F=I(t(921)),U=I(t(923)),z=I(t(924)),B=I(t(925)),H=I(t(926)),q=I(t(927)),W=I(t(97)),K=I(t(928)),Y=I(t(929)),G=I(t(931)),$=I(t(932)),t=I(t(933));function I(e){return e&&e.__esModule?e:{default:e}}n={address:n.default,base:a.default,component:a.default,componentmodal:l.default,button:r.default,checkbox:o.default,columns:i.default,container:s.default,content:u.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:P.default,nesteddata:E.default,nestedarray:x.default,number:j.default,panel:C.default,password:R.default,phoneNumber:A.default,radio:M.default,recaptcha:T.default,resource:D.default,select:N.default,selectboxes:V.default,signature:F.default,survey:U.default,table:z.default,tabs:B.default,tags:H.default,textarea:q.default,textfield:W.default,time:K.default,tree:Y.default,unknown:G.default,url:$.default,well:t.default};e.default=n},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){e=o(this,e);return!!e&&e.enumerable}:r},function(e,t,n){var r=n(21),n=n(35),o=r.document,i=n(o)&&n(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(17),o=n(29),n=n(179),i=r(Function.toString);o(n.inspectSource)||(n.inspectSource=function(e){return i(e)}),e.exports=n.inspectSource},function(e,t,n){var r=n(103),o=n(119),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t,n){function r(l){return function(e,t,n){var r,o=s(e),i=c(o),a=u(n,i);if(l&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((l||a in o)&&o[a]===t)return l||a||0;return!l&&-1}}var s=n(56),u=n(89),c=n(49);e.exports={includes:r(!0),indexOf:r(!1)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){function r(){}function o(e){if(!s(e))return!1;try{return p(r,d,e),!0}catch(e){return!1}}function i(e){if(!s(e))return!1;switch(u(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return y||!!m(h,f(e))}catch(e){return!0}}var a=n(17),l=n(12),s=n(29),u=n(90),c=n(57),f=n(140),d=[],p=c("Reflect","construct"),h=/^\s*(?:class|function)\b/,m=a(h.exec),y=!h.exec(r);i.sham=!0,e.exports=!p||l(function(){var e;return o(o.call)||!o(Object)||!o(function(){e=!0})||e})?i:o},function(e,t,n){var s=n(89),u=n(49),c=n(106),f=Array,d=Math.max;e.exports=function(e,t,n){for(var r=u(e),o=s(t,r),i=s(void 0===n?r:n,r),a=f(d(i-o,0)),l=0;o<i;o++,l++)c(a,l,e[o]);return a.length=l,a}},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(30),o=n(82),n=n(38).f,i=r("unscopables"),a=Array.prototype;null==a[i]&&n(a,i,{configurable:!0,value:o(null)}),e.exports=function(e){a[i][e]=!0}},function(e,t,n){var r=n(90),o=n(87),i=n(123),a=n(30)("iterator");e.exports=function(e){if(null!=e)return o(e,a)||o(e,"@@iterator")||i[r(e)]}},function(e,t,n){var o=n(30)("iterator"),i=!1;try{var r=0,a={next:function(){return{done:!!r++}},return:function(){i=!0}};a[o]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var r={};r[o]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(12);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){return 1},1)})}},function(e,t,n){"use strict";var h=n(27),r=n(17),m=n(47),y=n(188),o=n(189),i=n(103),v=n(82),b=n(59).get,a=n(251),n=n(252),g=i("native-string-replace",String.prototype.replace),w=RegExp.prototype.exec,k=w,_=r("".charAt),O=r("".indexOf),S=r("".replace),P=r("".slice),E=(i=/b*/g,h(w,r=/a/,"a"),h(w,i,"a"),0!==r.lastIndex||0!==i.lastIndex),x=o.BROKEN_CARET,j=void 0!==/()??/.exec("")[1];(E||j||x||a||n)&&(k=function(e){var t,n,r,o,i,a,l=this,s=b(l),e=m(e),u=s.raw;if(u)return u.lastIndex=l.lastIndex,f=h(k,u,e),l.lastIndex=u.lastIndex,f;var c=s.groups,u=x&&l.sticky,f=h(y,l),s=l.source,d=0,p=e;if(u&&(f=S(f,"y",""),-1===O(f,"g")&&(f+="g"),p=P(e,l.lastIndex),0<l.lastIndex&&(!l.multiline||l.multiline&&"\n"!==_(e,l.lastIndex-1))&&(s="(?: "+s+")",p=" "+p,d++),t=new RegExp("^(?:"+s+")",f)),j&&(t=new RegExp("^"+s+"$(?!\\s)",f)),E&&(n=l.lastIndex),r=h(w,u?t:l,p),u?r?(r.input=P(r.input,d),r[0]=P(r[0],d),r.index=l.lastIndex,l.lastIndex+=r[0].length):l.lastIndex=0:E&&r&&(l.lastIndex=l.global?r.index+r[0].length:n),j&&r&&1<r.length&&h(g,r[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r&&c)for(r.groups=i=v(null),o=0;o<c.length;o++)i[(a=c[o])[0]]=r[a[1]];return r}),e.exports=k},function(e,t,n){"use strict";var a=n(27),r=n(153),l=n(41),s=n(62),u=n(368),c=n(47),f=n(87),d=n(154);r("search",function(r,o,i){return[function(e){var t=s(this),n=null==e?void 0:f(e,r);return n?a(n,e,t):new RegExp(e)[r](c(t))},function(e){var t=l(this),e=c(e),n=i(o,t,e);if(n.done)return n.value;n=t.lastIndex,u(n,0)||(t.lastIndex=0),e=d(t,e);return u(t.lastIndex,n)||(t.lastIndex=n),null===e?-1:e.index}]})},function(e,t,n){"use strict";n(16);var s=n(17),u=n(48),c=n(151),f=n(12),d=n(30),p=n(72),h=d("species"),m=RegExp.prototype;e.exports=function(n,e,t,r){var a,o=d(n),l=!f(function(){var e={};return e[o]=function(){return 7},7!=""[n](e)}),i=l&&!f(function(){var e=!1,t=/a/;return"split"===n&&((t={constructor:{}}).constructor[h]=function(){return t},t.flags="",t[o]=/./[o]),t.exec=function(){return e=!0,null},t[o](""),!e});l&&i&&!t||(a=s(/./[o]),i=e(o,""[n],function(e,t,n,r,o){var e=s(e),i=t.exec;return i===c||i===m.exec?l&&!o?{done:!0,value:a(t,n,r)}:{done:!0,value:e(n,t,r)}:{done:!1}}),u(String.prototype,n,i[0]),u(m,o,i[1])),r&&p(m[o],"sham",!0)}},function(e,t,n){var r=n(27),o=n(41),i=n(29),a=n(78),l=n(151),s=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n))return null!==(n=r(n,e,t))&&o(n),n;if("RegExp"===a(e))return r(l,e,t);throw s("RegExp#exec called on incompatible receiver")}},function(e,t,n){var r=n(41),o=n(182),i=n(30)("species");e.exports=function(e,t){var e=r(e).constructor;return void 0===e||null==(e=r(e)[i])?t:o(e)}},function(e,t,n){var r=n(29),o=n(35),i=n(108);e.exports=function(e,t,n){return i&&r(t=t.constructor)&&t!==n&&o(t=t.prototype)&&t!==n.prototype&&i(e,t),e}},function(e,t,n){"use strict";var r=n(57),o=n(38),i=n(30),a=n(34),l=i("species");e.exports=function(e){var e=r(e),t=o.f;a&&e&&!e[l]&&t(e,l,{configurable:!0,get:function(){return this}})}},function(r,o,i){!function(e){var n;!function(t){"use strict";function e(e){var P,E=e&&e.Promise||t.Promise,x=e&&e.XMLHttpRequest||t.XMLHttpRequest;return P=Object.create(t,{fetch:{value:void 0,writable:!0}}),function(s){"use strict";var u=typeof P!=="undefined"&&P||typeof self!=="undefined"&&self||typeof u!=="undefined"&&u,c={searchParams:"URLSearchParams"in u,iterable:"Symbol"in u&&"iterator"in Symbol,blob:"FileReader"in u&&"Blob"in u&&function(){try{new Blob;return true}catch(e){return false}}(),formData:"FormData"in u,arrayBuffer:"ArrayBuffer"in u};function t(e){return e&&DataView.prototype.isPrototypeOf(e)}if(c.arrayBuffer){var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"];var r=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1}}function o(e){if(typeof e!=="string")e=String(e);if(/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function f(e){if(typeof e!=="string")e=String(e);return e}function e(t){var e={next:function(){var e=t.shift();return{done:e===undefined,value:e}}};if(c.iterable)e[Symbol.iterator]=function(){return e};return e}function d(t){this.map={};if(t instanceof d)t.forEach(function(e,t){this.append(t,e)},this);else if(Array.isArray(t))t.forEach(function(e){this.append(e[0],e[1])},this);else if(t)Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}if(d.prototype.append=function(e,t){e=o(e);t=f(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype["delete"]=function(e){delete this.map[o(e)]},d.prototype.get=function(e){e=o(e);return this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(o(e))},d.prototype.set=function(e,t){this.map[o(e)]=f(t)},d.prototype.forEach=function(e,t){for(var n in this.map)if(this.map.hasOwnProperty(n))e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var n=[];this.forEach(function(e,t){n.push(t)});return e(n)},d.prototype.values=function(){var t=[];this.forEach(function(e){t.push(e)});return e(t)},d.prototype.entries=function(){var n=[];this.forEach(function(e,t){n.push([t,e])});return e(n)},c.iterable)d.prototype[Symbol.iterator]=d.prototype.entries;function i(e){if(e.bodyUsed)return E.reject(new TypeError("Already read"));e.bodyUsed=true}function a(n){return new E(function(e,t){n.onload=function(){e(n.result)};n.onerror=function(){t(n.error)}})}function l(e){var t=new FileReader;var n=a(t);t.readAsArrayBuffer(e);return n}function p(e){var t=new FileReader;var n=a(t);t.readAsText(e);return n}function h(e){var t=new Uint8Array(e);var n=new Array(t.length);for(var r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function m(e){if(e.slice)return e.slice(0);else{var t=new Uint8Array(e.byteLength);t.set(new Uint8Array(e));return t.buffer}}function y(){this.bodyUsed=false;this._initBody=function(e){this.bodyUsed=this.bodyUsed;this._bodyInit=e;if(!e)this._bodyText="";else if(typeof e==="string")this._bodyText=e;else if(c.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(c.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(c.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(c.arrayBuffer&&c.blob&&t(e)){this._bodyArrayBuffer=m(e.buffer);this._bodyInit=new Blob([this._bodyArrayBuffer])}else if(c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||r(e)))this._bodyArrayBuffer=m(e);else this._bodyText=e=Object.prototype.toString.call(e);if(!this.headers.get("content-type"))if(typeof e==="string")this.headers.set("content-type","text/plain;charset=UTF-8");else if(this._bodyBlob&&this._bodyBlob.type)this.headers.set("content-type",this._bodyBlob.type);else if(c.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8")};if(c.blob){this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return E.resolve(this._bodyBlob);else if(this._bodyArrayBuffer)return E.resolve(new Blob([this._bodyArrayBuffer]));else if(this._bodyFormData)throw new Error("could not read FormData body as blob");else return E.resolve(new Blob([this._bodyText]))};this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=i(this);if(e)return e;if(ArrayBuffer.isView(this._bodyArrayBuffer))return E.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength));else return E.resolve(this._bodyArrayBuffer)}else return this.blob().then(l)}}this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return p(this._bodyBlob);else if(this._bodyArrayBuffer)return E.resolve(h(this._bodyArrayBuffer));else if(this._bodyFormData)throw new Error("could not read FormData body as text");else return E.resolve(this._bodyText)};if(c.formData)this.formData=function(){return this.text().then(w)};this.json=function(){return this.text().then(JSON.parse)};return this}var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e){var t=e.toUpperCase();return v.indexOf(t)>-1?t:e}function g(e,t){if(!(this instanceof g))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var n=t.body;if(e instanceof g){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url;this.credentials=e.credentials;if(!t.headers)this.headers=new d(e.headers);this.method=e.method;this.mode=e.mode;this.signal=e.signal;if(!n&&e._bodyInit!=null){n=e._bodyInit;e.bodyUsed=true}}else this.url=String(e);this.credentials=t.credentials||this.credentials||"same-origin";if(t.headers||!this.headers)this.headers=new d(t.headers);this.method=b(t.method||this.method||"GET");this.mode=t.mode||this.mode||null;this.signal=t.signal||this.signal;this.referrer=null;if((this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n);if(this.method==="GET"||this.method==="HEAD")if(t.cache==="no-store"||t.cache==="no-cache"){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function w(e){var o=new FormData;e.trim().split("&").forEach(function(e){if(e){var t=e.split("=");var n=t.shift().replace(/\+/g," ");var r=t.join("=").replace(/\+/g," ");o.append(decodeURIComponent(n),decodeURIComponent(r))}});return o}function k(e){var o=new d;var t=e.replace(/\r?\n[\t ]+/g," ");t.split("\r").map(function(e){return e.indexOf("\n")===0?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":");var n=t.shift().trim();if(n){var r=t.join(":").trim();o.append(n,r)}});return o}function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(!t)t={};this.type="default";this.status=t.status===undefined?200:t.status;this.ok=this.status>=200&&this.status<300;this.statusText="statusText"in t?t.statusText:"";this.headers=new d(t.headers);this.url=t.url||"";this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},y.call(g.prototype),y.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:0,statusText:""});e.type="error";return e};var O=[301,302,303,307,308];_.redirect=function(e,t){if(O.indexOf(t)===-1)throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})},s.DOMException=u.DOMException;try{new s.DOMException}catch(e){s.DOMException=function(e,t){this.message=e;this.name=t;var n=Error(e);this.stack=n.stack};s.DOMException.prototype=Object.create(Error.prototype);s.DOMException.prototype.constructor=s.DOMException}function S(a,l){return new E(function(n,e){var t=new g(a,l);if(t.signal&&t.signal.aborted)return e(new s.DOMException("Aborted","AbortError"));var r=new x;function o(){r.abort()}r.onload=function(){var e={status:r.status,statusText:r.statusText,headers:k(r.getAllResponseHeaders()||"")};e.url="responseURL"in r?r.responseURL:e.headers.get("X-Request-URL");var t="response"in r?r.response:r.responseText;setTimeout(function(){n(new _(t,e))},0)};r.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)};r.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)};r.onabort=function(){setTimeout(function(){e(new s.DOMException("Aborted","AbortError"))},0)};function i(t){try{return t===""&&u.location.href?u.location.href:t}catch(e){return t}}r.open(t.method,i(t.url),true);if(t.credentials==="include")r.withCredentials=true;else if(t.credentials==="omit")r.withCredentials=false;if("responseType"in r)if(c.blob)r.responseType="blob";else if(c.arrayBuffer&&t.headers.get("Content-Type")&&t.headers.get("Content-Type").indexOf("application/octet-stream")!==-1)r.responseType="arraybuffer";if(l&&typeof l.headers==="object"&&!(l.headers instanceof d))Object.getOwnPropertyNames(l.headers).forEach(function(e){r.setRequestHeader(e,f(l.headers[e]))});else t.headers.forEach(function(e,t){r.setRequestHeader(t,e)});if(t.signal){t.signal.addEventListener("abort",o);r.onreadystatechange=function(){if(r.readyState===4)t.signal.removeEventListener("abort",o)}}r.send(typeof t._bodyInit==="undefined"?null:t._bodyInit)})}if(S.polyfill=true,!u.fetch){u.fetch=S;u.Headers=d;u.Request=g;u.Response=_}s.Headers=d,s.Request=g,s.Response=_,s.fetch=S,Object.defineProperty(s,"__esModule",{value:true})}(o),{fetch:P.fetch,Headers:P.Headers,Request:P.Request,Response:P.Response,DOMException:P.DOMException}}void 0!==(n=function(){return e}.call(o,i,o,r))&&(r.exports=n)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==e?e:this)}.call(this,i(54))},function(e,t,n){var o=n(48);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},function(e,t,n){function r(e){u(e,y,{value:{objectID:"O"+v++,weakData:{}}})}var a=n(15),l=n(17),o=n(120),i=n(35),s=n(37),u=n(38).f,c=n(80),f=n(241),d=n(261),p=n(119),h=n(377),m=!1,y=p("meta"),v=0,b=e.exports={enable:function(){b.enable=function(){},m=!0;var o=c.f,i=l([].splice),e={};e[y]=1,o(e).length&&(c.f=function(e){for(var t=o(e),n=0,r=t.length;n<r;n++)if(t[n]===y){i(t,n,1);break}return t},a({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,y)){if(!d(e))return"F";if(!t)return"E";r(e)}return e[y].objectID},getWeakData:function(e,t){if(!s(e,y)){if(!d(e))return!0;if(!t)return!1;r(e)}return e[y].weakData},onFreeze:function(e){return h&&m&&d(e)&&!s(e,y)&&r(e),e}};o[y]=!0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyFormChanges=function(a,e){var l=[];return e.forEach(function(o){var i=!1;switch(o.op){case"add":var n=o.component;k(a.components,o.container,null,function(e){o.container||(e=a),k(a.components,o.key,null,function(e,t){n=e,_(a.components,t)}),i=!0,(0,s.default)(e,o.path).splice(o.index,0,n)});break;case"remove":k(a.components,o.key,null,function(e,t){i=!0,(0,s.default)(a.components,t).key!==e.key&&t.pop(),_(a.components,t)});break;case"edit":k(a.components,o.key,null,function(e,t){i=!0;try{var n=(0,s.default)(a.components,t),r=(0,m.applyPatch)(e,o.patches).newDocument;n.key!==r.key&&t.pop(),(0,u.default)(a.components,t,r)}catch(e){l.push(o)}})}i||l.push(o)}),{form:a,failed:l}},t.eachComponent=b,t.escapeRegExCharacters=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},t.findComponent=k,t.findComponents=function(e,t){return console.warn("formio.js/utils findComponents is deprecated. Use searchComponents instead."),w(e,t)},t.flattenComponents=function(e,t){var n={};return b(e,function(e,t){n[t]=e},t),n},t.formatAsCurrency=function(e){e=O(e);if((0,r.default)(e))return"";e=(0,f.default)(e,2).toString().split(".");return e[0]=(0,d.default)(Array.from(e[0]).reverse(),3).reverse().map(function(e){return e.reverse().join("")}).join(","),e[1]=(0,h.default)(e[1],2,"0"),e.join(".")},t.generateFormChange=function(e,t){var n;switch(e){case"add":n={op:"add",key:t.component.key,container:t.parent.key,path:t.path,index:t.index,component:t.component};break;case"edit":(n={op:"edit",key:t.originalComponent.key,patches:(0,m.compare)(t.originalComponent,t.component)}).patches.length||(n=null);break;case"remove":n={op:"remove",key:t.component.key}}return n},t.getComponent=function(e,n,t){var r;return b(e,function(e,t){if(t===n||e.path===n)return r=e,!0},t),r},t.getStrings=function(e){var t=["label","title","legend","tooltip","description","placeholder","prefix","suffix","errorLabel","content","html"],r=[];return b(e.components,function(n){var e;t.forEach(function(e){n.hasOwnProperty(e)&&n[e]&&r.push({key:n.key,type:n.type,property:e,string:n[e]})}),(!n.dataSrc||"values"===n.dataSrc)&&n.hasOwnProperty("values")&&Array.isArray(n.values)&&n.values.length&&n.values.forEach(function(e,t){r.push({key:n.key,property:"value[".concat(t,"].label"),string:n.values[t].label})}),"day"===n.type&&(["day","month","year","Day","Month","Year","january","february","march","april","may","june","july","august","september","october","november","december"].forEach(function(e){r.push({key:n.key,property:"day",string:e})}),n.fields.day.placeholder&&r.push({key:n.key,property:"fields.day.placeholder",string:n.fields.day.placeholder}),n.fields.month.placeholder&&r.push({key:n.key,property:"fields.month.placeholder",string:n.fields.month.placeholder}),n.fields.year.placeholder&&r.push({key:n.key,property:"fields.year.placeholder",string:n.fields.year.placeholder})),"editgrid"===n.type&&(e=n.addAnother||"Add Another",n.addAnother&&r.push({key:n.key,property:"addAnother",string:e})),"select"===n.type&&["loading...","Type to search"].forEach(function(e){r.push({key:n.key,property:"select",string:e})})},!0),r},t.getValue=function(e,r){return function t(e){if((0,c.default)(e)){if((0,o.default)(e,r))return y.default.get(e,r);var n=null;return(0,i.default)(e,function(e){e=t(e);if(!(0,l.default)(e))return n=e,!1}),n}return null}(e.data)},t.hasCondition=function(e){return Boolean(e.customConditional||e.conditional&&(e.conditional.when||e.conditional.json||e.conditional.condition))},t.isLayoutComponent=function(e){return Boolean(e.columns&&Array.isArray(e.columns)||e.rows&&Array.isArray(e.rows)||e.components&&Array.isArray(e.components))},t.matchComponent=g,t.parseFloatExt=O,t.removeComponent=_,t.searchComponents=w,n(1),n(14),n(0),n(40),n(32),n(68),n(16),n(26),n(43),n(25),n(39),n(18),n(42),n(5),n(3),n(4);var s=v(n(95)),u=v(n(265)),o=v(n(389)),p=v(n(391)),i=v(n(392)),a=v(n(162)),r=v(n(397)),l=v(n(399)),c=v(n(273)),f=v(n(401)),d=v(n(404)),h=v(n(405)),m=n(1142),y=v(n(10));function v(e){return e&&e.__esModule?e:{default:e}}function b(s,u,c,f,d,e){if(s){if(f=f||"",e){if(s.noRecurse)return void delete s.noRecurse;s.noRecurse=!0}s.forEach(function(t){var e,n,r,o,i,a,l;t&&(e=t.columns&&Array.isArray(t.columns),n=t.rows&&Array.isArray(t.rows),r=t.components&&Array.isArray(t.components),o=!1,i=t.key?f?"".concat(f,".").concat(t.key):t.key:"",d&&(t.parent=(0,p.default)(d),delete t.parent.components,delete t.parent.componentMap,delete t.parent.columns,delete t.parent.rows),a=e||n||r&&!t.input||-1<["htmlelement","content"].indexOf(t.type),!c&&!t.tree&&a||(o=u(t,i,s)),l=function(){return t.key&&!["panel","table","well","columns","fieldset","tabs","form"].includes(t.type)&&(["datagrid","container","editgrid","address","dynamicWizard","datatable"].includes(t.type)||t.tree)?i:t.key&&"form"===t.type?"".concat(i,".data"):f},o||(e?t.columns.forEach(function(e){return b(e.components,u,c,l(),d?t:null)},!0):n?t.rows.forEach(function(e){Array.isArray(e)&&e.forEach(function(e){return b(e.components,u,c,l(),d?t:null)},!0)}):r&&b(t.components,u,c,l(),d?t:null,!0)))}),s.noRecurse&&delete s.noRecurse}}function g(n,e){var r;return(0,a.default)(e)?n.key===e||n.path===e:((r=!1,i.default)(e,function(e,t){if(!(r=(0,s.default)(n,t)===e))return!1}),r)}function w(e,t){var n=[];return b(e,function(e){g(e,t)&&n.push(e)},!0),n}function k(n,i,r,a){if(n){if(r=r||[],!i)return a(n);n.forEach(function(e,t){var o=r.slice();o.push(t),e&&(e.hasOwnProperty("columns")&&Array.isArray(e.columns)&&(o.push("columns"),e.columns.forEach(function(e,t){var n=o.slice();n.push(t),n.push("components"),k(e.components,i,n,a)})),e.hasOwnProperty("rows")&&Array.isArray(e.rows)&&(o.push("rows"),e.rows.forEach(function(e,t){var r=o.slice();r.push(t),e.forEach(function(e,t){var n=r.slice();n.push(t),n.push("components"),k(e.components,i,n,a)})})),e.hasOwnProperty("components")&&Array.isArray(e.components)&&(o.push("components"),k(e.components,i,o,a)),e.key===i&&a(e,o,n))})}}function _(e,t){var n=t.pop();(e=0!==t.length?(0,s.default)(e,t):e).splice(n,1)}function O(e){return parseFloat((0,a.default)(e)?e.replace(/[^\de.+-]/gi,""):e)}},function(e,t,n){var r=n(163),o=n(111),i=n(129);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){"use strict";n(2),n(6),n(1),n(7),n(3),n(5),n(4),n(32),n(20),n(42),n(16),Object.defineProperty(t,"__esModule",{value:!0}),t.AddressProvider=void 0,n(39),n(18),n(0);var o=(s=n(10))&&s.__esModule?s:{default:s},i=n(36);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(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 r(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){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 r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=this,n=r;if(!(t instanceof n))throw new TypeError("Cannot call a class as a function");this.beforeMergeOptions(e),this.options=o.default.merge({},this.defaultOptions,e)}var e,t,n;return e=r,n=[{key:"name",get:function(){return"address"}},{key:"displayName",get:function(){return"Address"}}],(t=[{key:"beforeMergeOptions",value:function(){}},{key:"defaultOptions",get:function(){return{}}},{key:"queryProperty",get:function(){return"query"}},{key:"responseProperty",get:function(){return null}},{key:"displayValueProperty",get:function(){return null}},{key:"serialize",value:function(e){return o.default.toPairs(e).map(function(e){var e=a(e,2),t=e[0],e=e[1];return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e))}).join("&")}},{key:"getRequestOptions",value:function(){return o.default.merge({},this.options,0<arguments.length&&void 0!==arguments[0]?arguments[0]:{})}},{key:"getRequestUrl",value:function(){throw new Error("Method AddressProvider#getRequestUrl(options) is abstract.")}},{key:"makeRequest",value:function(){return i.GlobalFormio.makeStaticRequest(this.getRequestUrl(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}),"GET",null,{noToken:!0})}},{key:"search",value:function(e){var t=this,n=this.getRequestOptions(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{});return(n.params=n.params||{})[this.queryProperty]=e,this.makeRequest(n).then(function(e){return t.responseProperty?o.default.get(e,t.responseProperty,[]):e})}},{key:"getDisplayValue",value:function(e){return this.displayValueProperty?o.default.get(e,this.displayValueProperty,""):String(e)}}])&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),r}();t.AddressProvider=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setXhrHeaders=t.default=void 0,n(39),n(18),n(22),n(1),n(51),n(0);var r=i(n(24)),o=i(n(423));function i(e){return e&&e.__esModule?e:{default:e}}function h(e,t){var n=e.options.headers;if(n){var r,o={"Content-Disposition":!0,Authorization:!0};for(r in n)o[r]&&t.setRequestHeader(r,n[r])}}t.setXhrHeaders=h;var m={trim:function(e){return(0,o.default)(e,"/")},path:function(e){return e.filter(function(e){return!!e}).map(m.trim).join("/")},upload:function(i,t,a,l,s,u,c,f,d,p){return new r.default(function(n,r){var o=new XMLHttpRequest,e=(o.onerror=function(e){e.networkError=!0,r(e)},o.onabort=r,o.onload=function(){var e,t;200<=o.status&&o.status<300?(e=JSON.parse(o.response),t=new XMLHttpRequest,"function"==typeof c&&(t.upload.onprogress=c),"function"==typeof p&&p(function(){return t.abort()}),t.openAndSetHeaders=function(){t.open.apply(t,arguments),h(i,t)},t.onerror=function(e){e.networkError=!0,r(e)},t.onabort=function(e){e.networkError=!0,r(e)},t.onload=function(){200<=t.status&&t.status<300?n(e):r(t.response||"Unable to upload file")},t.onabort=r,t.send(a(t,e))):r(o.response||"Unable to sign file")},o.open("POST","".concat(i.formUrl,"/storage/").concat(t)),o.setRequestHeader("Accept","application/json"),o.setRequestHeader("Content-Type","application/json; charset=UTF-8"),i.getToken());e&&o.setRequestHeader("x-jwt-token",e),o.send(JSON.stringify({name:m.path([u,s]),size:l.size,type:l.type,groupPermissions:f,groupId:d}))})}};t.default=m},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){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(21),o=n(34),i=n(447),a=n(188),n=n(12),l=r.RegExp,s=l.prototype;o&&n(function(){var t=!0;try{l(".","d")}catch(e){t=!1}var e,n={},r="",o=t?"dgimsy":"gimsy",i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(e in t&&(i.hasIndices="d"),i)!function(e,t){Object.defineProperty(n,e,{get:function(){return r+=t,!0}})}(e,i[e]);return Object.getOwnPropertyDescriptor(s,"flags").get.call(n)!==o||r!==o})&&i(s,"flags",{configurable:!0,get:a})},function(e,t,n){"use strict";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)}n(3),n(5),n(94),n(4),n(11),n(2),n(6),n(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(67),n(0),n(1),n(14),n(25),n(39),n(18),n(60),n(16),n(26),n(40),n(45),n(32);var o=r(n(196)),i=n(36),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};t=d(t);if(t&&t.has(e))return t.get(e);var n,r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(n in e){var i;"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&((i=o?Object.getOwnPropertyDescriptor(e,n):null)&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n])}r.default=e,t&&t.set(e,r);return r}(n(19)),s=r(n(337)),u=r(n(10)),c=r(n(64)),f=r(n(130));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function r(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)}}n=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this.options=Object.assign({language:"en",highlightErrors:!0,componentErrorClass:"formio-error-wrapper",componentWarningClass:"formio-warning-wrapper",row:"",namespace:"formio"},e||{}),this.id=l.getRandomComponentId(),this.eventHandlers=[],this.i18next=this.options.i18next||s.default,this.events=e&&e.events?e.events:new o.default,this.defaultMask=null,this.helplinks=this.helplinks="false"!==this.options.helplinks&&(this.options.helplinks||"https://help.form.io")}var e,n,r;return e=t,(n=[{key:"on",value:function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]&&arguments[3];if(this.events)return e="".concat(this.options.namespace,".").concat(e),t.id=this.id,t.key=this.key,t.internal=n,this.events[r?"once":"on"](e,t)}},{key:"once",value:function(e,t,n){return this.on(e,t,n,!0)}},{key:"onAny",value:function(e){if(this.events)return this.events.onAny(e)}},{key:"offAny",value:function(e){if(this.events)return this.events.offAny(e)}},{key:"off",value:function(e,t){var n,r=this;this.events&&(n="".concat(this.options.namespace,".").concat(e),this.events.listeners(n).forEach(function(e){!e||e.id!==r.id||t&&t!==e||r.events.off(n,e)}))}},{key:"emit",value:function(e){if(this.events){for(var t,n=arguments.length,r=new Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.events).emit.apply(t,["".concat(this.options.namespace,".").concat(e)].concat(r))}}},{key:"hasEventHandler",value:function(e){var t=this;if(!this.events)return!1;e="".concat(this.options.namespace,".").concat(e);return this.events.listeners(e).some(function(e){return!!e&&(e.id===t.id||e.key===t.key)})}},{key:"addEventListener",value:function(e,t,n,r){if(e)return r||this.eventHandlers.push({id:this.id,obj:e,type:t,func:n}),"addEventListener"in e?e.addEventListener(t,n,!1):"attachEvent"in e&&e.attachEvent("on".concat(t),n),this}},{key:"removeEventListener",value:function(n,r){var o=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,a=[];if(n)return this.eventHandlers.forEach(function(e,t){e.id!==o.id||!n.removeEventListener||e.type!==r||i&&e.func!==i||(n.removeEventListener(r,e.func),a.push(t))}),a.length&&u.default.pullAt(this.eventHandlers,a),this}},{key:"removeEventListeners",value:function(){var t=this;this.eventHandlers.forEach(function(e){t.id===e.id&&e.type&&e.obj&&e.obj.removeEventListener&&e.obj.removeEventListener(e.type,e.func)}),this.eventHandlers=[]}},{key:"removeAllEvents",value:function(n){var r=this;u.default.each(this.events._events,function(e,t){u.default.each(e,function(e){e&&r.id===e.id&&(n||e.internal)&&r.events.off(t,e)})})}},{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(t,n){if(n)if(n.firstChild)try{n.insertBefore(t,n.firstChild)}catch(e){console.warn(e),n.appendChild(t)}else n.appendChild(t);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=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,e=document.createElement(e);return t&&this.attr(e,t),this.appendChild(e,n),e}},{key:"appendChild",value:function(t,e){var n=this;return Array.isArray(e)?e.forEach(function(e){return n.appendChild(t,e)}):e instanceof HTMLElement||e instanceof Text?t.appendChild(e):e&&t.appendChild(this.text(e.toString())),this}},{key:"maskPlaceholder",value:function(e){var t=this;return e.map(function(e){return e instanceof RegExp?t.placeholderChar:e}).join("")}},{key:"placeholderChar",get:function(){var e;return(null==(e=this.component)?void 0:e.inputMaskPlaceholderChar)||"_"}},{key:"setInputMask",value:function(e,t,n){if(e&&t){t=l.getInputMask(t,this.placeholderChar);this.defaultMask=t;try{e.mask&&e.mask.destroy(),e.mask=(0,f.default)({inputElement:e,mask:t,placeholderChar:this.placeholderChar,shadowRoot:this.root?this.root.shadowRoot:null})}catch(e){console.warn(e)}t.numeric&&e.setAttribute("pattern","\\d*"),n&&e.setAttribute("placeholder",this.maskPlaceholder(t))}}},{key:"t",value:function(e){for(var t,n=arguments.length,r=new Array(1<n?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(n,e){var r=this;n&&u.default.each(e,function(e,t){void 0!==e&&(0===t.indexOf("on")?r.addEventListener(n,t.substr(2).toLowerCase(),e):n.setAttribute(t,e))})}},{key:"hasClass",value:function(e,t){return!!e&&(t=" ".concat(t," "),-1<" ".concat(e.className," ").replace(/[\n\t\r]/g," ").indexOf(t))}},{key:"addClass",value:function(e,t){var n;return e&&e instanceof HTMLElement&&(null!=(n=e.getAttribute("class"))&&n.includes(t)||e.setAttribute("class","".concat(n," ").concat(t))),this}},{key:"removeClass",value:function(e,t){var n;return e&&t&&e instanceof HTMLElement&&((n=e.getAttribute("class"))&&(n=n.replace(new RegExp(" ".concat(t),"g"),""),e.setAttribute("class",n))),this}},{key:"empty",value:function(e){if(e)for(;e.firstChild;)e.removeChild(e.firstChild)}},{key:"evalContext",value:function(e){var t;return Object.assign({_:u.default,utils:l,util:l,user:i.GlobalFormio.getUser(),moment:c.default,instance:this,self:this,token:i.GlobalFormio.getToken({decode:!0}),config:this.root&&this.root.form&&this.root.form.config?this.root.form.config:null!=(t=this.options)&&t.formConfig?this.options.formConfig:{}},e,u.default.get(this.root,"options.evalContext",{}))}},{key:"interpolate",value:function(e,t){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return"function"!=typeof e&&this.component.content&&!l.Evaluator.templateSettings.interpolate.test(e)&&(e=l.translateHTMLTemplate(String(e),function(e){return n.t(e)})),l.interpolate(e,this.evalContext(t),r)}},{key:"evaluate",value:function(e,t,n,r){return l.evaluate(e,this.evalContext(t),n,r)}},{key:"hook",value:function(){var e=arguments[0];return this.options&&this.options.hooks&&this.options.hooks[e]?this.options.hooks[e].apply(this,Array.prototype.slice.call(arguments,1)):(e="function"==typeof arguments[arguments.length-1]?arguments[arguments.length-1]:null)?e(null,arguments[1]):arguments[1]}}])&&p(e.prototype,n),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(292)),n=o(n(473));function o(e){return e&&e.__esModule?e:{default:e}}r={input:r.default,calendar:n.default};t.default=r},function(e,t,n){var r=n(78),n=n(21);e.exports="process"==r(n.process)},function(e,t,n){var r=n(33),o=n(155),i=r.aTypedArrayConstructor,a=r.getTypedArrayConstructor;e.exports=function(e){return i(o(e,a(e)))}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(2),n(31),n(6),n(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(18),n(109),n(22),n(1),n(16),n(26),n(40),n(45),n(20),n(23),n(0),n(14),n(32),n(93),n(39),n(42),n(5),n(50),n(69),n(68),n(3),n(936),n(4),n(126),n(169),n(9);var y=a(n(114)),r=a(n(53)),i=a(n(336)),v=a(n(24)),b=a(n(28)),g=n(36),w=n(19),k=n(161),_=a(n(98)),O=a(n(10));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function 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(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function S(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach(function(e){P(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=x(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=x(n),t=(e=r?(e=x(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return E(t)}}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(939);var j,C=(C=g.GlobalFormio.Templates)||n(216).default,n=("undefined"!=typeof window&&(j=n(310)),function(e){var t=m;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e);var n,h=p(m);function m(){var i,e=this,t=m;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");(e=arguments[0]instanceof HTMLElement||arguments[1]?(p=arguments[0],arguments[1]):arguments[0]).skipInit=!1,e.display=e.display||"form",(i=h.call(this,null,e)).element=p,i.builderHeight=0,i.schemas={},i.repeatablePaths=[],i.sideBarScroll=O.default.get(i.options,"sideBarScroll",!0),i.sideBarScrollOffset=O.default.get(i.options,"sideBarScrollOffset",0),i.dragDropEnabled=!0,i.builder=O.default.defaultsDeep({},i.options.builder,i.defaultGroups),O.default.each(i.defaultGroups,function(e,t){!1===e&&(i.builder[t]=!1)}),i.groups={},i.groupOrder=[];var n,r,o;for(n in i.builder)!function(t){i.builder[t]&&(i.builder[t].key=t,i.groups[t]=i.builder[t],i.groups[t].components=i.groups[t].components||{},i.groups[t].componentOrder=i.groups[t].componentOrder||[],i.groups[t].subgroups=Object.keys(i.groups[t].groups||{}).map(function(e){return i.groups[t].groups[e].componentOrder=Object.keys(i.groups[t].groups[e].components).map(function(e){return e}),i.groups[t].groups[e]}),i.groupOrder.push(i.groups[t]))}(n);for(r in i.groupOrder=i.groupOrder.filter(function(e){return e&&!e.ignore}).sort(function(e,t){return e.weight-t.weight}).map(function(e){return e.key}),b.default.components){var a,l=b.default.components[r];l.builderInfo&&l.builderInfo.schema&&(i.schemas[r]=l.builderInfo.schema,l.type=r,(a=l.builderInfo).key=l.type,i.addBuilderComponentInfo(a))}for(o in i.groups){var s,u=i.groups[o];for(s in u.components){var c="resource"===o?"component-".concat(s):s,f=u.components[c];(f=!0===f&&b.default.components[s]&&b.default.components[s].builderInfo?b.default.components[s].builderInfo:f)&&f.schema?(i.schemas[s]=f.schema,u.components[c]=f,u.components[c].key=s):delete u.components[c]}i.orderComponents(u)}i.options.hooks=i.options.hooks||{},i.options.hooks.renderComponent=function(e,t){var n=t.component,t=t.self;return"form"!==t.type||t.key?i.options.disabled&&i.options.disabled.includes(t.key)||t.parent.noDragDrop?e:i.renderTemplate("builderComponent",{html:e,disableBuilderActions:null==t||null==(t=t.component)?void 0:t.disableBuilderActions,childComponent:n}):i.hook("renderComponentFormTemplate",e.replace("formio-component-form",""))},i.options.hooks.renderComponents=function(e,t){var n=t.components,t=t.self;return"datagrid"===t.type&&0<n.length||t.noDragDrop?e:((!n||!n.length&&!n.nodrop||"form"===t.type&&n.length<=1&&(0===n.length||"button"===n[0].type))&&(e=i.renderTemplate("builderPlaceholder",{position:0})+e),i.renderTemplate("builderComponents",{key:t.key,type:t.type,html:e}))},i.options.hooks.renderInput=function(e,t){t=t.self;return"hidden"===t.type?e+t.name:e},i.options.hooks.renderLoading=function(e,t){t=t.self;return"form"===t.type&&t.key?t.name:e},i.options.hooks.attachComponents=function(e,t,n,r){if(e){if(r.noDragDrop)return e;var o=e.querySelector('[ref="'.concat(r.component.key,'-container"]'))||e;return o.formioContainer=n,o.formioComponent=r,i.dragula&&i.allowDrop(e)&&i.dragula.containers.push(o),("datagrid"===r.type||"datamap"===r.type)&&0<t.length?e:e.children[0]}},i.options.hooks.attachDatagrid=function(e,t){t.loadRefs(e,P({},"".concat(t.key,"-container"),"single"));e=t.refs["".concat(t.key,"-container")];e&&t.attachComponents(e.parentNode,[],t.component.components)},i.options.hooks.attachComponent=i.attachComponent.bind(E(i));var d,t={params:{type:"resource",limit:1e6,select:"_id,title,name,components"}},e=(i.options&&i.options.resourceTag?t.params.tags=[i.options.resourceTag]:i.options&&i.options.hasOwnProperty("resourceTag")||(t.params.tags=["builder"]),new g.GlobalFormio(g.GlobalFormio.projectUrl)),p=i.options.builder&&!1===i.options.builder.resource;return e.loadProject().then(function(e){var t,n;e&&(O.default.get(e,"settings.addConfigToForms",!1)||O.default.get(e,"addConfigToForms",!1))&&(e=e.config||{},i.options.formConfig=e,t="webform._form.config",n=O.default.get(E(i),t),i.webform&&!n&&O.default.set(E(i),t,e))}).catch(function(e){console.warn("Could not load project settings: ".concat(e.message||e))}),e.noProject||p||(d=i.options.builder&&i.options.builder.resource,e.loadForms(t).then(function(e){e.length&&(i.builder.resource={title:d?d.title:"Existing Resource Fields",key:"resource",weight:d?d.weight:50,subgroups:[],components:[],componentOrder:[]},i.groups.resource={title:d?d.title:"Existing Resource Fields",key:"resource",weight:d?d.weight:50,subgroups:[],components:[],componentOrder:[]},i.groupOrder.includes("resource")||i.groupOrder.push("resource"),i.addExistingResourceFields(e))})),i.options.attachMode="builder",i.webform=i.webform||i.createForm(i.options),i.pathComponentsMapping={},i.arrayDataComponentPaths=[],i.nestedDataComponents=[],i.arrayDataComponents=[],i}return t=m,(e=[{key:"allowDrop",value:function(){return!0}},{key:"addExistingResourceFields",value:function(e){var i=this;O.default.each(e,function(n,e){var r="resource-".concat(n.name),o={key:r,title:n.title,components:[],componentOrder:[],default:0===e};(0,k.eachComponent)(n.components,function(e){var t;"button"===e.type||i.options&&i.options.resourceFilter&&(!e.tags||-1===e.tags.indexOf(i.options.resourceFilter))||(!(t=e.label)&&e.key&&(t=O.default.upperFirst(e.key)),o.componentOrder.push("component-".concat(e.key)),o.components["component-".concat(e.key)]=O.default.merge((0,w.fastCloneDeep)((b.default.components[e.type]||b.default.components.unknown).builderInfo),{key:e.key,title:t,group:"resource",subgroup:r},{schema:S(S({},e),{},{label:e.label,key:e.key,lockKey:!0,source:i.options.noSource?void 0:n._id,isNew:!0})}))},!0),i.groups.resource.subgroups.push(o)}),this.triggerRedraw()}},{key:"attachTooltip",value:function(e,t){return(0,i.default)(e,{allowHTML:!0,trigger:"mouseenter focus",placement:"top",delay:[200,0],zIndex:1e4,content:t})}},{key:"attachComponent",value:function(e,t){var n,r=this,o=((e.formioComponent=t).loadRefs(e,{removeComponent:"single",editComponent:"single",moveComponent:"single",copyComponent:"single",pasteComponent:"single",editJson:"single"}),t.refs.copyComponent&&(this.attachTooltip(t.refs.copyComponent,this.t("Copy")),t.addEventListener(t.refs.copyComponent,"click",function(){return r.copyComponent(t)})),t.refs.pasteComponent&&(n=this.attachTooltip(t.refs.pasteComponent,this.t("Paste below")),t.addEventListener(t.refs.pasteComponent,"click",function(){n.hide(),r.pasteComponent(t)})),t.refs.moveComponent&&this.attachTooltip(t.refs.moveComponent,this.t("Move")),this.getParentElement(e));return t.refs.editComponent&&(this.attachTooltip(t.refs.editComponent,this.t("Edit")),t.addEventListener(t.refs.editComponent,"click",function(){return r.editComponent(t.schema,o,!1,!1,t.component,{inDataGrid:t.isInDataGrid})})),t.refs.editJson&&(this.attachTooltip(t.refs.editJson,this.t("Edit JSON")),t.addEventListener(t.refs.editJson,"click",function(){return r.editComponent(t.schema,o,!1,!0,t.component)})),t.refs.removeComponent&&(this.attachTooltip(t.refs.removeComponent,this.t("Remove")),t.addEventListener(t.refs.removeComponent,"click",function(){return r.removeComponent(t.schema,o,t.component)})),e}},{key:"createForm",value:function(e){return this.webform=new y.default(this.element,e),this.element&&(this.loadRefs(this.element,{form:"single"}),this.refs.form&&(this.webform.element=this.refs.form)),this.webform}},{key:"ready",get:function(){return this.webform.ready}},{key:"defaultGroups",get:function(){return{basic:{title:"Basic",weight:0,default:!0},advanced:{title:"Advanced",weight:10},layout:{title:"Layout",weight:20},data:{title:"Data",weight:30},premium:{title:"Premium",weight:40}}}},{key:"redraw",value:function(){return y.default.prototype.redraw.call(this)}},{key:"form",get:function(){return this.webform.form},set:function(e){this.setForm(e)}},{key:"schema",get:function(){return this.webform.schema}},{key:"container",get:function(){return this.webform.form.components}},{key:"findNamespaceRoot",value:function(e){var t=(0,w.getArrayFromComponentPath)(e.path),t=this.webform.getComponent(t),t=Array.isArray(t)?t[0]:t,n=this.recurseNamespace(t);if(!n||this.form.key===n)return this.form.components;var r=e.component;if(n===e.key)return[].concat(l(r.components),[r]);e=(0,k.getComponent)(this.form.components,n,!0);return(e||t).components}},{key:"recurseNamespace",value:function(e){return e?["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree?e.key:this.recurseNamespace(e.parent):null}},{key:"render",value:function(){var n=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 n.renderTemplate("builderSidebarGroup",{group:n.groups[t],groupKey:t,groupId:"builder-sidebar-".concat(n.id),subgroups:n.groups[t].subgroups.map(function(e){return n.renderTemplate("builderSidebarGroup",{group:e,groupKey:e.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)}),f(x(m.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&&C.current.handleBuilderSidebarScroll&&C.current.handleBuilderSidebarScroll.call(t,t),"undefined"!=typeof window&&window.sessionStorage&&window.sessionStorage.getItem("formio.clipboard")&&t.addClass(t.refs.form,"builder-paste-mode"),(0,w.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,l){t.addEventListener(e,"click",function(){var i=e.getAttribute("data-parent").slice("#builder-sidebar-".length),a=e.getAttribute("data-target").slice("#group-".length);t.refs["sidebar-group"].forEach(function(e,t){var n="true"===e.getAttribute("data-default"),r=e.getAttribute("id").slice("group-".length),o=e.getAttribute("data-parent").slice("#builder-sidebar-".length);e.style.display=n&&o===a||r===i||t===l?"inherit":"none"})},!0)})),t.addEventListener(t.refs["sidebar-search"],"input",O.default.debounce(function(e){e=e.target.value;t.searchFields(e)},300)),t.dragDropEnabled&&t.initDragula(),t.refs.form)return t.webform.attach(t.refs.form)})}},{key:"searchFields",value:function(){var n,r,e,t,s=this,o=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),i=this.refs.sidebar,a=this.refs["sidebar-groups"];i&&a&&(n=function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",e=O.default.toPlainObject(e),r=e.subgroups,r=void 0===r?[]:r,o=e.components,i=[];for(t in o){var a=o[t].title.toLowerCase().match(n),l=o[t].key.toLowerCase().match(n);(a||l)&&i.push(o[t])}return s.orderComponents(e,i),n&&(e.default=!0),e.componentOrder.length||r.length?e:null},r=function(e,t){return O.default.clone(e).map(function(e){return n(e,t)}).filter(function(e){return!O.default.isNull(e)})},a.innerHTML=(e=this.groupOrder,t=o,O.default.cloneDeep(e).filter(function(e){return n(s.groups[e],t)}).map(function(e){return s.renderTemplate("builderSidebarGroup",(t=e,{group:n(s.groups[t],o),groupKey:t,groupId:i.id||a.id,subgroups:r(s.groups[t].subgroups,o).map(function(e){return s.renderTemplate("builderSidebarGroup",{group:e,groupKey:e.key,groupId:"group-container-".concat(t),subgroups:[]})})}));var t}).join("")),this.loadRefs(this.element,{"sidebar-groups":"single","sidebar-anchor":"multiple","sidebar-group":"multiple","sidebar-container":"multiple"}),this.updateDragAndDrop())}},{key:"orderComponents",value:function(e,t){var n=t||e.components,r=0===e.key.indexOf("resource-");n&&(e.componentOrder=Object.keys(n).map(function(e){return n[e]}).filter(function(e){return e&&!e.ignore&&!e.ignoreForForm}).sort(function(e,t){return e.weight-t.weight}).map(function(e){return r?"component-".concat(e.key):e.key}))}},{key:"updateDragAndDrop",value:function(){if(this.dragDropEnabled&&this.initDragula(),this.refs.form)return this.webform.attach(this.refs.form)}},{key:"initDragula",value:function(){var o=this,n=this.options,e=(this.dragula&&this.dragula.destroy(),Array.prototype.slice.call(this.refs["sidebar-container"]).filter(function(e){return"group-container-resource"!==e.id}));j&&(this.dragula=j(e,{moves:function(e){var t=!0;return Array.from(e.classList).filter(function(e){return 0===e.indexOf("formio-component-")}).forEach(function(e){e=e.slice("formio-component-".length);n.disabled&&n.disabled.includes(e)&&(t=!1)}),t=e.classList.contains("no-drag")?!1:t},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(e,t,n,r){return o.onDrop(e,t,n,r)}))}},{key:"detach",value:function(){this.dragula&&this.dragula.destroy(),this.dragula=null,this.sideBarScroll&&C.current.clearBuilderSidebarScroll&&C.current.clearBuilderSidebarScroll.call(this,this),f(x(m.prototype),"detach",this).call(this)}},{key:"getComponentInfo",value:function(e,t){var n;if(this.schemas.hasOwnProperty(e))n=(0,w.fastCloneDeep)(this.schemas[e]);else if(this.groups.hasOwnProperty(t)){var r=this.groups[t].components;r.hasOwnProperty(e)&&(n=(0,w.fastCloneDeep)(r[e].schema))}else if("resource"===t.slice(0,t.indexOf("-"))){r=this.groups.resource.subgroups,r=O.default.find(r,{key:t});r&&r.components.hasOwnProperty("component-".concat(e))&&(n=(0,w.fastCloneDeep)(r.components["component-".concat(e)].schema))}else if("searchFields"===t)for(var o=this.groups.resource.subgroups,i=0;i<o.length;i++){var a=o[i];if(a.components.hasOwnProperty("component-".concat(e))){n=(0,w.fastCloneDeep)(a.components["component-".concat(e)].schema);break}}return n&&(n.key=this.generateKey(n)),n}},{key:"getComponentsPath",value:function(t,e){var n,r,o="components";switch(e.type){case"table":n=O.default.findIndex(e.rows,function(e){return e.some(function(e){return e.components.some(function(e){return e.key===t.key})})}),r=O.default.findIndex(e.rows[n],function(e){return e.components.some(function(e){return e.key===t.key})}),o="rows[".concat(n,"][").concat(r,"].components");break;case"columns":n=O.default.findIndex(e.columns,function(e){return e.components.some(function(e){return e.key===t.key})}),o="columns[".concat(n,"].components");break;case"tabs":r=O.default.findIndex(e.components,function(e){return e.components.some(function(e){return e.key===t.key})}),o="components[".concat(r,"].components")}return o}},{key:"onDrop",value:function(e,t,n,r){var o=this;if(t&&!e.contains(t)){var i,a,l,s,u=e.getAttribute("data-key"),c=e.getAttribute("data-type"),f=e.getAttribute("data-group");if(u&&f?(!(i=this.getComponentInfo(u,f))&&c&&(i=this.getComponentInfo(c,f)),a=!0):n.formioContainer&&-1!==(s=O.default.findIndex(n.formioContainer,{key:e.formioComponent.component.key}))&&(i=(i=n.formioContainer.splice(O.default.findIndex(n.formioContainer,{key:e.formioComponent.component.key}),1))[0]),i){var c="resource"===f?"component-".concat(u):u,d=(null==(u=this.groups[f])?void 0:u.components[c])||{};if(d.disableSiblings){var p=!1;if((0,k.eachComponent)(this.webform.components,function(e){e.type===d.schema.type&&(p=!0)},!0),p)return this.webform.redraw(),void this.webform.setAlert("danger","You cannot add more than one ".concat(d.key," component to one page."))}t!==n&&_.default.uniquify(this.findNamespaceRoot(t.formioComponent),i);var h=t.formioComponent,f=(t.formioContainer&&(r?-1!==(s=r.getAttribute("data-noattach")?r.getAttribute("data-position"):-1===(s=O.default.findIndex(t.formioContainer,{key:O.default.get(r,"formioComponent.component.key")}))?0:s)&&t.formioContainer.splice(s,0,i):t.formioContainer.push(i),l=this.getComponentsPath(i,h.component),-1===(s=O.default.findIndex(O.default.get(h.schema,l),{key:i.key}))&&(s=0)),h&&h.addChildComponent&&h.addChildComponent(i,e,t,n,r),"datagrid"===h.type);return!a||this.options.noNewEdit||i.noNewEdit||this.editComponent(i,t,a,null,null,{inDataGrid:f}),((t!==n?n.formioContainer&&n.contains(t)?n.formioComponent.rebuild():(t.contains(n)||n.formioContainer&&n.formioComponent.rebuild(),t.formioComponent.rebuild()):t.formioComponent.rebuild())||v.default.resolve()).then(function(){o.emit("addComponent",i,h,l,s,a&&!o.options.noNewEdit&&!i.noNewEdit),a&&!o.options.noNewEdit&&!i.noNewEdit||o.emit("change",o.form)})}}}},{key:"setForm",value:function(e){var t,n=this;return 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?(t=!this.webform.form.components||e.components.length!==this.webform.form.components.length,this.webform.setForm(e,{keepAsReference:!0}).then(function(){return n.refs.form&&(n.builderHeight=n.refs.form.offsetHeight),t?n.rebuild().then(function(){return n.form}):n.form})):v.default.resolve(e)}},{key:"populateRecaptchaSettings",value:function(e){var t=!1;this.form.components&&((0,k.eachComponent)(e.components,function(e){if(!t)return"recaptcha"===e.type?!(t=!0):void 0}),t?O.default.set(e,"settings.recaptcha.isEnabled",!0):O.default.get(e,"settings.recaptcha.isEnabled")&&O.default.set(e,"settings.recaptcha.isEnabled",!1))}},{key:"removeComponent",value:function(t,e,n){var r,o,i,a,l=this;if(e)return o=!0,r=!t.skipRemoveConfirm&&(Array.isArray(t.components)&&t.components.length||Array.isArray(t.rows)&&t.rows.length||Array.isArray(t.columns)&&t.columns.length),(this.options.alwaysConfirmComponentRemoval||r)&&(o=window.confirm(this.t(r?"Removing this component will also remove all of its children. Are you sure you want to do this?":"Are you sure you want to remove this component?"))),n=n||e.formioContainer.find(function(e){return e.id===t.id}),i=e.formioContainer?e.formioContainer.indexOf(n):0,o&&-1!==i&&(a=this.getComponentsPath(t,e.formioComponent.component),e.formioContainer?e.formioContainer.splice(i,1):e.formioComponent&&e.formioComponent.removeChildComponent&&e.formioComponent.removeChildComponent(t),(e.formioComponent.rebuild()||v.default.resolve()).then(function(){l.emit("removeComponent",t,e.formioComponent.schema,a,i),l.emit("change",l.form)})),o}},{key:"replaceDoubleQuotes",value:function(t){if(t)return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:[]).forEach(function(e){t[e]&&(t[e]=t[e].replace(/"/g,"'"))}),t}},{key:"updateComponent",value:function(e,t){var n,r,o,i,a,l=this,s=(this.preview&&(this.preview.form={components:[O.default.omit(S({},e),["hidden","conditional","calculateValue","logic","autofocus","customConditional"])],config:this.options.formConfig||{}},n=["label","tooltip","placeholder"],this.preview.form.components.forEach(function(e){return l.replaceDoubleQuotes(e,n)}),(a=this.componentEdit.querySelector('[ref="preview"]'))&&(this.setContent(a,this.preview.render()),this.preview.attach(a))),(0,k.getComponent)(this.editForm.components,"defaultValue",!0));s&&"hidden"!==e.type&&(t&&(t.component&&"defaultValue"===t.component.key||t.instance&&s.hasComponent&&s.hasComponent(t.instance))?(a=t.instance._data.key,(r=(0,w.getArrayFromComponentPath)(t.instance.path)).shift(),r.length&&(r.unshift(e.key),a=(0,w.getStringFromComponentPath)(r)),O.default.set(this.preview._data,a,t.value),O.default.set(this.webform._data,a,t.value)):(O.default.assign(s.component,O.default.omit(S({},e),["key","label","placeholder","tooltip","hidden","autofocus","validate","disabled","defaultValue","customDefaultValue","calculateValue","conditional","customConditional","id"])),r=s.parent,i=o=-1,r.tabs.some(function(e,n){e.some(function(e,t){return e.id===s.id&&(o=n,i=t,!0)})}),-1!==o&&-1!==i&&t&&t.value&&(a=r.tabs[o][i+1],r.removeComponent(s),t=r.addComponent(s.component,s.data,a),O.default.pull(t.validators,"required"),r.tabs[o].splice(i,1,t),t.checkValidity=function(){return!0},t.build(s.element)))),this.emit("updateComponent",e)}},{key:"findRepeatablePaths",value:function(){var n=[],r=new Map;return(0,k.eachComponent)(this.form.components,function(e,t){e.key&&(r.has(e.key)?r.get(e.key).includes(t)?n.push(t):r.set(e.key,[].concat(l(r.get(e.key)),[t])):r.set(e.key,[t]))},!0),n}},{key:"highlightInvalidComponents",value:function(){var n=this.findRepeatablePaths(),r=!1;this.webform.everyComponent(function(e){var t=e.path;n.includes(t)?(e.setCustomValidity("API Key is not unique: ".concat(e.key)),r=!0):null!=(t=e.error)&&null!=(t=t.message)&&t.startsWith("API Key is not unique")&&e.setCustomValidity("")}),this.emit("builderFormValidityChange",r)}},{key:"saveComponent",value:function(t,e,n,r){var o,i,a,l,s,u=this,c=(this.editForm.detach(),e?e.formioContainer:this.container),f=e?e.formioComponent:this,d=(this.dialog.close(),c?this.getComponentsPath(t,f.component):""),p=(r=r||e.formioContainer.find(function(e){return e.id===t.id}),c?c.indexOf(r):0);return-1!==p?(o=(o=this.editForm.submission.data).componentJson||o,this.replaceDoubleQuotes(o,["label","tooltip","placeholder"]),this.hook("beforeSaveComponentSettings",o),i=null,f.getComponents().forEach(function(e){e.component.key===r.key&&(i=e)}),a=i.component,l=i.schema,s=this.isParentSaveChildMethod(e.formioComponent),c&&!s?(c[p]=o,i&&(i.component=o)):s&&e.formioComponent.saveChildComponent(o),(f.rebuild()||v.default.resolve()).then(function(){var e=c?c[p]:i?i.schema:[];u.emitSaveComponentEvent(e,a,f.schema,d,p,n,l),u.emit("change",u.form),u.highlightInvalidComponents()})):(this.highlightInvalidComponents(),v.default.resolve())}},{key:"emitSaveComponentEvent",value:function(e,t,n,r,o,i,a){this.emit("saveComponent",e,t,n,r,o,i,a)}},{key:"editComponent",value:function(n,r,o,i,t){var a,l,e,s,u,c,f,d=this,p=5<arguments.length&&void 0!==arguments[5]?arguments[5]:{};n.key&&(l=(a=!1,w.fastCloneDeep)(n),f=void 0===(e=b.default.components[l.type]),i=i||f,e=f?b.default.components.unknown:e,this.dialog&&(this.dialog.close(),this.highlightInvalidComponents()),s=O.default.clone(O.default.get(this,"options.editForm",{})),this.editForm&&this.editForm.destroy(),u=O.default.get(this.options,"editForm.".concat(l.type),{}),s.editForm=this.form,s.editComponent=n,s.flags=p,this.hook("editComponentParentInstance",s,r),this.editForm=new y.default(S(S({},O.default.omit(this.options,["hooks","builder","events","attachMode","skipInit"])),{},{language:this.options.language},s)),this.hook("editFormProperties",r),this.editForm.form=i&&!f?{components:[{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"componentJson",label:"Component JSON",tooltip:"Edit the JSON for this component."},{type:"checkbox",key:"showFullSchema",label:"Full Schema"}]}:e.editForm(O.default.cloneDeep(u)),this.hook("instanceOptionsPreview",p={}),c=new e(l,p),f=this.hook("builderComponentSchema",n,c),this.editForm.submission=i?{data:{componentJson:f,showFullSchema:this.options.showFullJsonSchema}}:{data:c.component},this.preview&&this.preview.destroy(),e.builderInfo.hasOwnProperty("preview")&&!e.builderInfo.preview||(this.preview=new y.default(O.default.omit(S(S({},this.options),{},{preview:!0}),["hooks","builder","events","attachMode","calculateValue"])),this.hook("previewFormSettitngs",f,i)),this.componentEdit=this.ce("div",{class:"component-edit-container"}),this.setContent(this.componentEdit,this.renderTemplate("builderEditForm",{componentInfo:e.builderInfo,editForm:this.editForm.render(),preview:!!this.preview&&this.preview.render(),helplinks:this.helplinks})),this.dialog=this.createModal(this.componentEdit,O.default.get(this.options,"dialogAttr",{})),this.editForm.attach(this.componentEdit.querySelector('[ref="editForm"]')),this.hook("editFormWrapper"),this.updateComponent(l),this.editForm.on("change",function(t){var e;t.changed&&(t.changed.component&&"showFullSchema"===t.changed.component.key?(e=t.changed.value,d.editForm.submission={data:{componentJson:e?c.component:n,showFullSchema:e}}):((t.changed.component&&"key"===t.changed.component.key||i)&&(l.keyModified=!0),t.changed.component&&["label","title"].includes(t.changed.component.key)&&o&&(t.data.keyModified||d.editForm.everyComponent(function(e){if("key"===e.key&&"tabs"===e.parent.component.key)return e.setValue(d.updateComponentKey(t.data)),!1}),d.form&&(e=(e=d.findNamespaceRoot(r.formioComponent)).filter(function(e){return s.editComponent.id!==e.id}),_.default.uniquify(e,t.data))),d.updateComponent(t.data.componentJson||t.data,t.changed)))}),this.componentEdit.querySelectorAll('[ref="cancelButton"]').forEach(function(e){d.addEventListener(e,"click",function(e){e.preventDefault(),d.editForm.detach(),d.emit("cancelComponent",n),d.dialog.close(),d.highlightInvalidComponents()})}),this.componentEdit.querySelectorAll('[ref="removeButton"]').forEach(function(e){d.addEventListener(e,"click",function(e){e.preventDefault(),a=!0,d.editForm.detach(),d.removeComponent(n,r,t),d.dialog.close(),d.highlightInvalidComponents()})}),this.componentEdit.querySelectorAll('[ref="saveButton"]').forEach(function(e){d.addEventListener(e,"click",function(e){if(e.preventDefault(),!d.editForm.checkValidity(d.editForm.data,!0,d.editForm.data))return d.editForm.setPristine(!1),d.editForm.showErrors(),!1;a=!0,d.saveComponent(n,r,o,t)})}),this.addEventListener(this.dialog,"close",function e(){d.editForm.destroy(!0),d.preview&&(d.preview.destroy(!0),d.preview=null),o&&!a&&(d.removeComponent(n,r,t),d.highlightInvalidComponents()),d.removeEventListener(d.dialog,"close",e),d.dialog=null}),this.emit("editComponent",n))}},{key:"updateComponentKey",value:function(e){return O.default.camelCase(e.title||e.label||e.placeholder||e.type).replace(/^[0-9]*/,"")}},{key:"copyComponent",value:function(e){if(!window.sessionStorage)return console.warn("Session storage is not supported in this browser.");this.addClass(this.refs.form,"builder-paste-mode"),window.sessionStorage.setItem("formio.clipboard",JSON.stringify(e.schema))}},{key:"pasteComponent",value:function(e){if(!window.sessionStorage)return console.warn("Session storage is not supported in this browser.");var t,n,r,o,i;this.removeClass(this.refs.form,"builder-paste-mode"),window.sessionStorage&&(t=window.sessionStorage.getItem("formio.clipboard"))&&(t=JSON.parse(t),(n=this.getParentElement(e.element))&&(_.default.uniquify(this.findNamespaceRoot(n.formioComponent),t),r="",o=0,i=this.isParentSaveChildMethod(n.formioComponent),n.formioContainer&&!i?(o=n.formioContainer.indexOf(e.component),r=this.getComponentsPath(t,n.formioComponent.component),n.formioContainer.splice(o+1,0,t)):i&&n.formioComponent.saveChildComponent(t,!1),n.formioComponent.rebuild(),this.emitSaveComponentEvent(t,t,n.formioComponent.component,r,o+1,!0,t)),this.emit("change",this.form))}},{key:"isParentSaveChildMethod",value:function(e){return!(!e||!e.saveChildComponent)}},{key:"getParentElement",value:function(e){for(var t=e;(t=t.parentNode)&&!t.formioComponent;);return t}},{key:"addBuilderComponentInfo",value:function(e){var t;if(e&&e.group&&this.groups[e.group])return e=O.default.clone(e),t=this.groups[e.group],t.components.hasOwnProperty(e.key)||(t.components[e.key]=e),e}},{key:"init",value:function(){return this.webform&&this.webform.init(),f(x(m.prototype),"init",this).call(this)}},{key:"clear",value:function(){this.webform.initialized&&this.webform.clear()}},{key:"destroy",value:function(e){this.webform.initialized&&this.webform.destroy(e),f(x(m.prototype),"destroy",this).call(this,e)}},{key:"addBuilderGroup",value:function(e,t){this.groups[e]?this.updateBuilderGroup(e,t):(this.groups[e]=t,this.groupOrder.push(e),this.triggerRedraw())}},{key:"updateBuilderGroup",value:function(e,t){this.groups[e]&&(this.groups[e]=t,this.triggerRedraw())}},{key:"generateKey",value:function(e){return O.default.camelCase(e.key||e.title||e.label||e.placeholder||e.type)}}])&&c(t.prototype,e),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),m}(r.default));t.default=n},function(e,t,n){var r=n(199);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultPageSizes=void 0;n=n(136);t.defaultPageSizes=[10,25,50,100,n.AllItemsPerPage]},function(e,t){var n,r,e=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return(n=setTimeout)(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}var l,s=[],u=!1,c=-1;function f(){u&&l&&(u=!1,l.length?s=l.concat(s):c=-1,s.length&&d())}function d(){if(!u){for(var e=a(f),t=(u=!0,s.length);t;){for(l=s,s=[];++c<t;)l&&l[c].run();c=-1,t=s.length}l=null,u=!1,!function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return(r=clearTimeout)(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}e.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new p(e,t)),1!==s.length||u||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=h,e.addListener=h,e.once=h,e.off=h,e.removeListener=h,e.removeAllListeners=h,e.emit=h,e.prependListener=h,e.prependOnceListener=h,e.listeners=function(e){return[]},e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}},function(e,t,n){var r=n(27),o=n(35),i=n(100),a=n(87),l=n(351),n=n(30),s=TypeError,u=n("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n=a(e,u);if(n){if(n=r(n,e,t=void 0===t?"default":t),!o(n)||i(n))return n;throw s("Can't convert object to primitive value")}return l(e,t=void 0===t?"number":t)}},function(e,t,n){var r=n(21),n=n(180),o="__core-js_shared__",r=r[o]||n(o,{});e.exports=r},function(e,t,n){var r=n(21),o=Object.defineProperty;e.exports=function(t,n){try{o(r,t,{value:n,configurable:!0,writable:!0})}catch(e){r[t]=n}return n}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var r=n(144),o=n(88),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a constructor")}},function(e,t,n){var r={};r[n(30)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){var r=n(357);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},function(e,t,n){"use strict";function m(){return this}var y=n(15),v=n(27),b=n(63),r=n(104),g=n(29),w=n(362),k=n(91),_=n(108),O=n(107),S=n(72),P=n(48),o=n(30),E=n(123),n=n(245),x=r.PROPER,j=r.CONFIGURABLE,C=n.IteratorPrototype,R=n.BUGGY_SAFARI_ITERATORS,A=o("iterator"),M="values";e.exports=function(e,t,n,r,o,i,a){w(n,t,r);function l(e){if(e===o&&p)return p;if(!R&&e in f)return f[e];switch(e){case"keys":case M:case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}var s,u,r=t+" Iterator",c=!1,f=e.prototype,d=f[A]||f["@@iterator"]||o&&f[o],p=!R&&d||l(o),h="Array"==t&&f.entries||d;if(h&&(h=k(h.call(new e)))!==Object.prototype&&h.next&&(b||k(h)===C||(_?_(h,C):g(h[A])||P(h,A,m)),O(h,r,!0,!0),b&&(E[r]=m)),x&&o==M&&d&&d.name!==M&&(!b&&j?S(f,"name",M):(c=!0,p=function(){return v(d,this)})),o)if(s={values:l(M),keys:i?p:l("keys"),entries:l("entries")},a)for(u in s)!R&&!c&&u in f||P(f,u,s[u]);else y({target:t,proto:!0,forced:R||c},s);return b&&!a||f[A]===p||P(f,A,p,{name:o}),E[t]=p,s}},function(e,t,n){var r=n(30),o=n(123),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(27),o=n(58),i=n(41),a=n(88),l=n(148),s=TypeError;e.exports=function(e,t){var n=arguments.length<2?l(e):t;if(o(n))return i(r(n,e));throw s(a(e)+" is not iterable")}},function(e,t,n){"use strict";var r=n(41);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(12),o=n(21).RegExp,n=r(function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),i=n||r(function(){return!o("a","y").sticky}),r=n||r(function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")});e.exports={BROKEN_CARET:r,MISSED_STICKY:i,UNSUPPORTED_Y:n}},function(e,t,n){"use strict";var r=n(246).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r=n(35),o=n(78),i=n(30)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){function r(t){return function(e){e=a(i(e));return 1&t&&(e=l(e,s,"")),e=2&t?l(e,u,""):e}}var o=n(17),i=n(62),a=n(47),n=n(193),l=o("".replace),o="["+n+"]",s=RegExp("^"+o+o+"*"),u=RegExp(o+o+"*$");e.exports={start:r(1),end:r(2),trim:r(3)}},function(e,t){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},function(e,t,n){"use strict";var r=n(88),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+r(t)+" of "+r(e))}},function(e,t,n){n=n(79).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},function(e,t,n){"use strict";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)}n(9),n(1),n(13),n(11),n(8),n(3),n(5),n(94),n(4),n(2),n(6),n(7),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0);var r=n(197),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};t=l(t);if(t&&t.has(e))return t.get(e);var n,r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(n in e){var i;"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&((i=o?Object.getOwnPropertyDescriptor(e,n):null)&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n])}r.default=e,t&&t.set(e,r);return r}(n(19));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(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)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=h(n),t=(e=r?(e=h(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return d(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(){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)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}n=function(e){var t=u;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e);var n,r,s=f(u);function u(){var o,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=this,n=u;if(!(t instanceof n))throw new TypeError("Cannot call a class as a function");var i,t=e.loadLimit,r=void 0===t?1e3:t,n=e.eventsSafeInterval,a=void 0===n?300:n,l=(m(d(i=s.call(this)),"onAny",function(e){i.on("any",e)}),m(d(i),"offAny",function(e){i.off("any",e)}),c.observeOverload(function(){console.warn("There were more than ".concat(r," events emitted in ").concat(a," ms. It might be caused by events' infinite loop"),i.id)},{limit:r,delay:a}));return i.emit=function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=p((o=d(i),h(u.prototype)),"emit",o)).call.apply(e,[o].concat(n)),(e=p((o=d(i),h(u.prototype)),"emit",o)).call.apply(e,[o,"any"].concat(n)),l()},i}return t=u,n&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(r.EventEmitter);t.default=n},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,p="~";function o(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,n,r,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");n=new i(n,r||e,o),r=p?p+t:t;return e._events[r]?e._events[r].fn?e._events[r]=[e._events[r],n]:e._events[r].push(n):(e._events[r]=n,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function l(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(p=!1)),l.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(p?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},l.prototype.listeners=function(e){var e=p?p+e:e,t=this._events[e];if(!t)return[];if(t.fn)return[t.fn];for(var n=0,r=t.length,o=new Array(r);n<r;n++)o[n]=t[n].fn;return o},l.prototype.listenerCount=function(e){e=p?p+e:e,e=this._events[e];return e?e.fn?1:e.length:0},l.prototype.emit=function(e,t,n,r,o,i){var a=p?p+e:e;if(!this._events[a])return!1;var l,s=this._events[a],u=arguments.length;if(s.fn){switch(s.once&&this.removeListener(e,s.fn,void 0,!0),u){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,t),!0;case 3:return s.fn.call(s.context,t,n),!0;case 4:return s.fn.call(s.context,t,n,r),!0;case 5:return s.fn.call(s.context,t,n,r,o),!0;case 6:return s.fn.call(s.context,t,n,r,o,i),!0}for(d=1,l=new Array(u-1);d<u;d++)l[d-1]=arguments[d];s.fn.apply(s.context,l)}else for(var c,f=s.length,d=0;d<f;d++)switch(s[d].once&&this.removeListener(e,s[d].fn,void 0,!0),u){case 1:s[d].fn.call(s[d].context);break;case 2:s[d].fn.call(s[d].context,t);break;case 3:s[d].fn.call(s[d].context,t,n);break;case 4:s[d].fn.call(s[d].context,t,n,r);break;default:if(!l)for(c=1,l=new Array(u-1);c<u;c++)l[c-1]=arguments[c];s[d].fn.apply(s[d].context,l)}return!0},l.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,n,r){e=p?p+e:e;if(this._events[e])if(t){var o=this._events[e];if(o.fn)o.fn!==t||r&&!o.once||n&&o.context!==n||s(this,e);else{for(var i=0,a=[],l=o.length;i<l;i++)(o[i].fn!==t||r&&!o[i].once||n&&o[i].context!==n)&&a.push(o[i]);a.length?this._events[e]=1===a.length?a[0]:a:s(this,e)}}else s(this,e);return this},l.prototype.removeAllListeners=function(e){return e?(e=p?p+e:e,this._events[e]&&s(this,e)):(this._events=new o,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=p,e.exports=l.EventEmitter=l},function(e,t,n){"use strict";var o=n(66),i=n(47),a=n(62),l=RangeError;e.exports=function(e){var t=i(a(this)),n="",r=o(e);if(r<0||r==1/0)throw l("Wrong number of repetitions");for(;0<r;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e){return e}},function(e,t,n){n=n(203)(Object.keys,Object);e.exports=n},function(e,t){e.exports=function(t,n){return function(e){return t(n(e))}}},function(e,t,n){var n=n(403),r="object"==typeof self&&self&&self.Object===Object&&self,n=n||r||Function("return this")();e.exports=n},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var o=n(275);e.exports=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&r<=n?e:o(e,t,n)}},function(e,t,n){var r=n(410),o=n(164),i=n(411);e.exports=function(e){return(o(e)?i:r)(e)}},function(e,t,n){var r=n(111);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return r(e)?e:[e]}},function(e,t,n){var r=n(167);e.exports=function(e,t){return!!(null==e?0:e.length)&&-1<r(e,t,0)}},function(e,t,n){var r=n(435),o=n(284),i=n(285);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){var r=n(163),o=n(128);e.exports=function(e){return!!o(e)&&("[object Function]"==(e=r(e))||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e)}},function(e,t,n){"use strict";n(23),n(2),n(22),n(1),n(11),n(14),n(31),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0);var r=(o=n(10))&&o.__esModule?o:{default:o},i=n(19);function a(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function l(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?a(Object(o),!0).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}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 o=function(){function o(e,t,n,r){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.isOpened=n,this.component=e,this.element=t,this.currentValue=(0,i.fastCloneDeep)(null!=r?r:this.component.getValue()),this.dataLoaded=!1,this.init()}var e,t,n;return e=o,n=[{key:"render",value:function(e,t,n){n=e.renderTemplate("component",t,n);return e.renderTemplate("componentModal",l(l({},t),{},{children:n,isOpened:this}))}}],(t=[{key:"refs",get:function(){return this.component.refs}},{key:"init",value:function(){var t=this;this.openModalListener=this.openModalHandler.bind(this),this.showDialogListener=function(e){t.isValueChanged()&&!t.component.disabled?t.showDialog():t.closeModalHandler(e)},this.closeModalListener=this.closeModalHandler.bind(this),this.saveModalListener=this.saveModalValueHandler.bind(this),this.closeDialogListener=this.closeDialog.bind(this),this.saveDialogListener=this.saveDialog.bind(this),this.loadRefs()}},{key:"setValue",value:function(e){this.dataLoaded||(this.currentValue=(0,i.fastCloneDeep)(e),this.dataLoaded=!0,this.updateView())}},{key:"setOpenModalElement",value:function(e){var t;null!=(t=this.component)&&t.visible&&(this.openModalTemplate=e,this.component.setContent(this.refs.openModalWrapper,e),this.loadRefs(),this.setEventListeners(),this.isOpened&&(this.refs.modalWrapper.classList.add("formio-dialog-disabled-animation"),this.openModal()))}},{key:"templateRefs",get:function(){return{modalOverlay:"single",modalContents:"single",modalClose:"single",openModalWrapper:"single",openModal:"single",modalSave:"single",modalWrapper:"single"}}},{key:"loadRefs",value:function(){this.component.loadRefs(this.element,this.templateRefs)}},{key:"removeEventListeners",value:function(){this.component.removeEventListener(this.refs.openModal,"click",this.openModalListener),this.component.removeEventListener(this.refs.modalOverlay,"click",this.refs.modalSave?this.showDialogListener:this.saveModalListener),this.component.removeEventListener(this.refs.modalClose,"click",this.showDialogListener),this.component.removeEventListener(this.refs.modalSave,"click",this.saveModalListener)}},{key:"setEventListeners",value:function(){this.removeEventListeners(),this.component.addEventListener(this.refs.openModal,"click",this.openModalListener),this.component.addEventListener(this.refs.modalOverlay,"click",this.refs.modalSave?this.showDialogListener:this.saveModalListener),this.component.addEventListener(this.refs.modalClose,"click",this.showDialogListener),this.component.addEventListener(this.refs.modalSave,"click",this.saveModalListener)}},{key:"isValueChanged",value:function(){var e=this.component.getValue(),t=this.currentValue;return e&&e.data&&e.metadata&&(e=this.component.getValue().data,t=this.currentValue.data),!r.default.isEqual((0,i.fastCloneDeep)(e),t)}},{key:"setOpenEventListener",value:function(){var e;this.component.removeEventListener(this.refs.openModal,"click",this.openModalListener),this.component.loadRefs(null!=(e=this.refs.openModalWrapper)?e:this.element,{openModal:"single"}),this.component.addEventListener(this.refs.openModal,"click",this.openModalListener)}},{key:"openModalHandler",value:function(e){e.preventDefault(),this.openModal()}},{key:"positionOverElement",value:function(){var e=0<(e=this.element.getBoundingClientRect().top-this.refs.modalContents.getBoundingClientRect().height-10)?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=r.default.isEqual(this.currentValue,this.component.defaultValue)?this.openModalTemplate:this.component.getModalPreviewTemplate();this.component.setContent(this.refs.openModalWrapper,e),this.setOpenEventListener()}},{key:"closeModal",value:function(){this.refs.modalWrapper.classList.remove("formio-dialog-disabled-animation"),this.refs.modalWrapper.classList.add("component-rendering-hidden"),this.isOpened=!1,this.updateView()}},{key:"closeModalHandler",value:function(e){e.preventDefault(),this.component.disabled||this.component.setValue(r.default.cloneDeep(this.currentValue),{resetValue:!0}),this.closeModal()}},{key:"showDialog",value:function(){this.dialogElement=this.component.ce("div");var e='\n      <h3 ref="dialogHeader">'.concat(this.component.t("Do you want to clear changes?"),'</h3>\n      <div style="display:flex; justify-content: flex-end;">\n        <button ref="dialogCancelButton" class="btn btn-secondary">').concat(this.component.t("Cancel"),'</button>\n        <button ref="dialogYesButton" class="btn btn-danger">').concat(this.component.t("Yes, delete it"),"</button>\n      </div>\n    ");this.dialogElement.innerHTML=e,this.dialogElement.refs={},this.component.loadRefs.call(this.dialogElement,this.dialogElement,{dialogHeader:"single",dialogCancelButton:"single",dialogYesButton:"single"}),this.dialog=this.component.createModal(this.dialogElement),this.component.addEventListener(this.dialogElement.refs.dialogYesButton,"click",this.saveDialogListener),this.component.addEventListener(this.dialogElement.refs.dialogCancelButton,"click",this.closeDialogListener)}},{key:"closeDialog",value:function(e){e.preventDefault(),this.dialog.close(),this.component.removeEventListener(this.dialogElement.refs.dialogYesButton,"click",this.saveDialogListener),this.component.removeEventListener(this.dialogElement.refs.dialogCancelButton,"click",this.closeDialogListener)}},{key:"saveDialog",value:function(e){this.closeDialog(e),this.closeModalHandler(e)}},{key:"saveModalValueHandler",value:function(e){e.preventDefault(),this.currentValue=(0,i.fastCloneDeep)(null!=(e=this.component.dataValue)?e:this.component.getValue()),this.closeModal()}}])&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}();t.default=o},function(e,t,n){n(479),n(487),n(488),n(489),n(490),n(491)},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(300)),i=r(n(10));function r(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)}}n=function(){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function")}var e,t,r;return e=n,r=[{key:"templates",get:function(){return n._templates=n._templates?n._templates:o.default}},{key:"addTemplate",value:function(e,t){n.templates[e]=t}},{key:"extendTemplate",value:function(e,t){n.templates[e]=i.default.merge({},n.templates[e],t)}},{key:"setTemplate",value:function(e,t){n.addTemplate(e,t)}},{key:"current",get:function(){return n._current||n.defaultTemplates},set:function(e){n._current=i.default.merge({},n.current,e)}},{key:"defaultTemplates",get:function(){return n.templates.bootstrap}},{key:"framework",get:function(){return n._framework},set:function(e){n.templates.hasOwnProperty(e)&&(n._framework=e,n._current=n.templates[e])}}],(t=null)&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(1),n(0),n(14),n(9);var c=r(n(10)),i=r(n(53)),a=r(n(134));function r(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(){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=d(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=d(n),t=(e=r?(e=d(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e);var n,r=f(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,e=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.default.schema.apply(a.default,[{disableAddingRemovingRows:!1}].concat(t))}}],(n=[{key:"componentContext",value:function(e){return this.iteratableRows[e.rowIndex].data}},{key:"iteratableRows",get:function(){throw new Error("Getter #iteratableRows() is not implemented")}},{key:"rowIndex",get:function(){return s(d(o.prototype),"rowIndex",this)},set:function(e){this._rowIndex=e}},{key:"init",value:function(){s(d(o.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,i.default.prototype.checkData.call(this,e,t,n))}},{key:"checkRows",value:function(r,o,i,e,a){var l=this;return this.iteratableRows.reduce(function(e,t,n){return(null!=i&&i.rowIndex&&(null==i?void 0:i.rowIndex)!==n||l.checkRow(r,o,i,t.data,t.components,a))&&e},e)}},{key:"checkRow",value:function(n,r,o,i,e,a){null!=o&&o.isolateRow&&(a=!0,o.noRefresh=!0);e=c.default.reduce(e,function(e,t){return t[n](r,o,i,a)&&e},!0);return null!=o&&o.noRefresh&&delete o.noRefresh,e}},{key:"hasAddButton",value:function(){var e=c.default.get(this.component,"validate.maxLength"),t=c.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,n,r){var o=(e=Array.isArray(e)?e:[e]).shift(),i=e,a=[],l=null,s=null,u=null;return c.default.isNumber(o)&&(u=o,o=i.shift()),c.default.isString(o)&&(this.everyComponent(function(e,t){e.component.key===o&&(l=e,0<i.length&&"getComponent"in e?s=e.getComponent(i,n,r):n&&n(e,t),a=null!==u?s:a.concat(s||l))},u),a&&0!==a.length||!l||(a=null!==u?l:[l])),a}},{key:"everyComponent",value:function(n,e,r){var t,o;c.default.isObject(e)&&(r=e,e=null),null!=(t=r)&&t.email||(o=this.getComponents(e),c.default.each(o,function(e,t){return!1!==n(e,o,t)&&(("function"!=typeof e.everyComponent||!1!==e.everyComponent(n,r))&&void 0)}))}},{key:"getValueAsString",value:function(e,t){var n,r;return null!=t&&t.email?(r='\n        <table border="1" style="width:100%">\n          <thead>\n            <tr>\n      ',null!=(n=this.component.components)&&n.forEach(function(e){e=e.label||e.key;r+='<th style="padding: 5px 10px;">'.concat(e,"</th>")}),r+="\n          </tr>\n        </thead>\n        <tbody>\n      ",this.iteratableRows.forEach(function(e){e=e.components;r+="<tr>",c.default.each(e,function(e){r+='<td style="padding:5px 10px;">',e.isInputComponent&&e.visible&&!e.skipInEmail&&(r+=e.getView(e.dataValue,t)),r+="</td>"}),r+="</tr>"}),r+="\n          </tbody>\n        </table>\n      "):e&&e.length?s(d(o.prototype),"getValueAsString",this).call(this,e,t):""}},{key:"getComponents",value:function(e){return void 0!==e?this.iteratableRows[e]?this.iteratableRows[e].components:[]:s(d(o.prototype),"getComponents",this).call(this)}}])&&l(t.prototype,n),e&&l(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(a.default);t.default=n},function(e,n,r){"use strict";!function(e){r(94),r(11),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,r(2),r(6),r(1),r(7),r(3),r(5),r(4);var t=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};t=a(t);if(t&&t.has(e))return t.get(e);var n,r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(n in e){var i;"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&((i=o?Object.getOwnPropertyDescriptor(e,n):null)&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n])}r.default=e,t&&t.set(e,r);return r}(r(19));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function 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)}"object"===(void 0===e?"undefined":l(e))&&(e.FormioUtils=t),n.default=t}.call(this,r(54))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stopPropagationWrapper=t.getComponentDefaultColumn=void 0,t.setColumnsWidth=function(e){{var t,n,r;6<e.length?e.forEach(function(e){e.width=2}):(t=e.length,n=Math.floor(12/t),r=12-n*t,e.forEach(function(e,t){e.width=t<r?n+1:n}))}};var r=n(333),n=n(95),o=(n=n)&&n.__esModule?n:{default:n};t.getComponentDefaultColumn=function(e){return{component:r.Components.create(e,null,null,!0),key:"data."+e.key,sort:!0,title:e.label||e.title||e.key,value:function(e){e=(0,o.default)(e,this.key,null);if(null===e)return"";var t=this.component.asString(e);return e!==t?{content:t,isHtml:!0}:e}}};t.stopPropagationWrapper=function(t){return function(e){e.stopPropagation(),t()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(95)),o=s(n(128)),b=s(n(162)),i=s(n(75)),g=s(n(55)),a=n(176),l=n(136),w=s(n(1112));function s(e){return e&&e.__esModule?e:{default:e}}function k(e){return(0,o.default)(e)?e:e===l.AllItemsPerPage?{label:"All",value:999999}:{label:e,value:e}}var _=function(e){var t=e.pages,e=e.onPage;return t&&e},O=function(e){var t=e.firstItem,n=e.lastItem,e=e.total;return t&&n&&e};function u(e){var n=e.Cell,t=e.activePage,r=e.columns,o=e.emptyText,i=e.firstItem,a=e.items,l=e.lastItem,s=e.onAction,u=e.onPage,c=e.onPageSizeChanged,f=e.onSort,d=e.pageNeighbours,p=e.pageSize,h=e.pageSizes,m=e.pages,y=e.sortOrder,v=e.total,h=h.map(k);return g.default.createElement("div",null,a.length?g.default.createElement("ul",{className:"list-group list-group-striped"},g.default.createElement("li",{className:"list-group-item list-group-header hidden-xs hidden-md"},g.default.createElement("div",{className:"row"},r.map(function(e){var t=e.key,n=e.sort,n=void 0!==n&&n,r=e.title,r=void 0===r?"":r,o={key:t,className:"col col-md-"+e.width};if(!r)return g.default.createElement("div",o);if(!n)return g.default.createElement("div",o,g.default.createElement("strong",null,r));n=(0,b.default)(n)?n:t,t="";return y===n?t="glyphicon glyphicon-triangle-top fa fa-caret-up":y==="-"+n&&(t="glyphicon glyphicon-triangle-bottom fa fa-caret-down"),g.default.createElement("div",o,g.default.createElement("span",{style:{cursor:"pointer"},onClick:function(){return f(e)}},g.default.createElement("strong",null,r," ",g.default.createElement("span",{className:t}))))}))),a.map(function(t){return g.default.createElement("li",{className:"list-group-item",key:t._id},g.default.createElement("div",{className:"row",onClick:function(){return s(t,"row")}},r.map(function(e){return g.default.createElement("div",{key:e.key,className:"col col-md-"+e.width},g.default.createElement(n,{row:t,column:e}))})))}),_(a=e)||O(a)?g.default.createElement("li",{className:"list-group-item"},g.default.createElement("div",{className:"row align-items-center"},_(e)?g.default.createElement("div",{className:"col-auto"},g.default.createElement("div",{className:"row align-items-center"},g.default.createElement("div",{className:"col-auto"},g.default.createElement(w.default,{pages:m,activePage:t,pageNeighbours:d,prev:"Previous",next:"Next",onSelect:u})),(m=(a=e).pageSize,t=e.pageSizes,a=e.onPageSizeChanged,m&&t&&t.length&&a?g.default.createElement("div",{className:"col-auto"},g.default.createElement("div",{className:"row align-items-center"},g.default.createElement("div",{className:"col-auto"},g.default.createElement("select",{className:"form-control",value:p,onChange:function(e){return c(e.target.value)}},h.map(function(e){var t=e.label,e=e.value;return g.default.createElement("option",{key:e,value:e},t)}))),g.default.createElement("span",{className:"col-auto"},"items per page"))):null))):null,O(e)?g.default.createElement("div",{className:"col-auto ml-auto"},g.default.createElement("span",{className:"item-counter pull-right"},g.default.createElement("span",{className:"page-num"},i," - ",l)," / ",v," total")):null)):null):g.default.createElement("div",null,o))}u.propTypes={Cell:i.default.func,activePage:i.default.number,columns:i.default.array.isRequired,emptyText:i.default.string,firstItem:i.default.number,items:i.default.array.isRequired,lastItem:i.default.number,onAction:i.default.func,onPage:i.default.func,onPageSizeChanged:i.default.func,onSort:i.default.func,pageNeighbours:i.default.number,pageSize:i.default.number,pageSizes:l.PageSizes,pages:i.default.number,sortOrder:i.default.string,total:i.default.number},u.defaultProps={Cell:function(e){var t=e.column,e=e.row;return g.default.createElement("span",null,(0,r.default)(e,t.key,""))},activePage:1,emptyText:"No data found",firstItem:0,lastItem:0,onAction:function(){},onPage:function(){},onPageSizeChanged:function(){},onSort:function(){},pageNeighbours:1,pageSize:0,pageSizes:a.defaultPageSizes,pages:0,sortOrder:"",total:0},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.USER_REQUEST="USER_REQUEST",t.USER_REQUEST_SUCCESS="USER_REQUEST_SUCCESS",t.USER_REQUEST_FAILURE="USER_REQUEST_FAILURE",t.USER_LOGOUT="USER_LOGOUT",t.USER_SUBMISSION_ACCESS="USER_SUBMISSION_ACCESS",t.USER_FORM_ACCESS="USER_FORM_ACCESS",t.USER_PROJECT_ACCESS="USER_PROJECT_ACCESS",t.USER_ROLES="USER_ROLES"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.FORM_CLEAR_ERROR="FORM_CLEAR_ERROR",t.FORM_REQUEST="FORM_REQUEST",t.FORM_SUCCESS="FORM_SUCCESS",t.FORM_FAILURE="FORM_FAILURE",t.FORM_SAVE="FORM_SAVE",t.FORM_RESET="FORM_RESET"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.FORMS_RESET="FORMS_RESET",t.FORMS_REQUEST="FORMS_REQUEST",t.FORMS_SUCCESS="FORMS_SUCCESS",t.FORMS_FAILURE="FORMS_FAILURE"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SUBMISSION_CLEAR_ERROR="SUBMISSION_CLEAR_ERROR",t.SUBMISSION_REQUEST="SUBMISSION_REQUEST",t.SUBMISSION_SAVE="SUBMISSION_SAVE",t.SUBMISSION_SUCCESS="SUBMISSION_SUCCESS",t.SUBMISSION_FAILURE="SUBMISSION_FAILURE",t.SUBMISSION_RESET="SUBMISSION_RESET"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SUBMISSIONS_RESET="SUBMISSIONS_RESET",t.SUBMISSIONS_REQUEST="SUBMISSIONS_REQUEST",t.SUBMISSIONS_SUCCESS="SUBMISSIONS_SUCCESS",t.SUBMISSIONS_FAILURE="SUBMISSIONS_FAILURE"},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(341)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Templates=t.Utils=t.Formio=t.Components=t.WizardBuilder=t.Wizard=t.WebformBuilder=t.Webform=void 0;var r=n(344),o=(Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}),n(176)),i=(Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}),n(1115)),a=(Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}),n(136)),l=(Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})}),n(219)),s=(Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})}),n(333));Object.defineProperty(t,"Components",{enumerable:!0,get:function(){return s.Components}}),Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return s.Formio}}),Object.defineProperty(t,"Utils",{enumerable:!0,get:function(){return s.Utils}}),Object.defineProperty(t,"Templates",{enumerable:!0,get:function(){return s.Templates}});var u=d(n(114)),c=d(n(174)),f=d(n(319)),n=d(n(332));function d(e){return e&&e.__esModule?e:{default:e}}t.Webform=u.default,t.WebformBuilder=c.default,t.Wizard=f.default,t.WizardBuilder=n.default},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(Object.assign){var e=new String("abc");if(e[5]="de","5"!==Object.getOwnPropertyNames(e)[0]){for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r,o=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"===o.join(""))return r={},"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")?1:void 0}}}catch(e){}}()?Object.assign:function(e,t){for(var n,r=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))u.call(n,i)&&(r[i]=n[i]);if(s)for(var a=s(n),l=0;l<a.length;l++)c.call(n,a[l])&&(r[a[l]]=n[a[l]])}return r}},function(e,t,n){n=n(101);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(34),o=n(12),i=n(139);e.exports=!r&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(34),n=n(12);e.exports=r&&n(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},function(e,t,n){var r=n(12),o=n(29),i=n(37),a=n(34),l=n(104).CONFIGURABLE,s=n(140),n=n(59),u=n.enforce,c=n.get,f=Object.defineProperty,d=a&&!r(function(){return 8!==f(function(){},"length",{value:8}).length}),p=String(String).split("String"),n=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||l&&e.name!==t)&&(a?f(e,"name",{value:t,configurable:!0}):e.name=t),d&&n&&i(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}n=u(e);return i(n,"source")||(n.source=p.join("string"==typeof t?t:"")),e};Function.prototype.toString=n(function(){return o(this)&&c(this).source||s(this)},"toString")},function(e,t,n){var r=n(21),o=n(29),n=n(140),r=r.WeakMap;e.exports=o(r)&&/native code/.test(n(r))},function(e,t,n){var s=n(37),u=n(235),c=n(65),f=n(38);e.exports=function(e,t,n){for(var r=u(t),o=f.f,i=c.f,a=0;a<r.length;a++){var l=r[a];s(e,l)||n&&s(n,l)||o(e,l,i(t,l))}}},function(e,t,n){var r=n(57),o=n(17),i=n(80),a=n(143),l=n(41),s=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(l(e)),n=a.f;return n?s(t,n(e)):t}},function(e,t,n){var r=n(17),a=n(37),l=n(56),s=n(142).indexOf,u=n(120),c=r([].push);e.exports=function(e,t){var n,r=l(e),o=0,i=[];for(n in r)!a(u,n)&&a(r,n)&&c(i,n);for(;t.length>o;)!a(r,n=t[o++])||~s(i,n)||c(i,n);return i}},function(e,t,n){var r=n(34),o=n(231),l=n(38),s=n(41),u=n(56),c=n(122);t.f=r&&!o?Object.defineProperties:function(e,t){s(e);for(var n,r=u(t),o=c(t),i=o.length,a=0;a<i;)l.f(e,n=o[a++],r[n]);return e}},function(e,t,n){n=n(57);e.exports=n("document","documentElement")},function(e,t,n){var r=n(37);e.exports=function(e){return void 0!==e&&(r(e,"value")||r(e,"writable"))}},function(e,t,n){n=n(12);e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,n){var r=n(78),o=n(56),i=n(80).f,a=n(145),l="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){if(!l||"Window"!=r(e))return i(o(e));try{return i(e)}catch(e){return a(l)}}},function(e,t,n){n=n(30);t.f=n},function(e,t,n){var r=n(355),o=n(37),i=n(242),a=n(38).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){n=n(101);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},function(e,t,n){"use strict";var r,o,i=n(12),a=n(29),l=n(82),s=n(91),u=n(48),c=n(30),n=n(63),f=c("iterator"),c=!1;[].keys&&("next"in(o=[].keys())?(s=s(s(o)))!==Object.prototype&&(r=s):c=!0),null==r||i(function(){var e={};return r[f].call(e)!==e})?r={}:n&&(r=l(r)),a(r[f])||u(r,f,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:c}},function(e,t,n){function r(o){return function(e,t){var n,e=a(l(e)),t=i(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=u(e,t))<55296||56319<n||t+1===r||(r=u(e,t+1))<56320||57343<r?o?s(e,t):n:o?c(e,t,t+2):r-56320+(n-55296<<10)+65536}}var o=n(17),i=n(66),a=n(47),l=n(62),s=o("".charAt),u=o("".charCodeAt),c=o("".slice);e.exports={codeAt:r(!1),charAt:r(!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){n=n(139)("span").classList,n=n&&n.constructor&&n.constructor.prototype;e.exports=n===Object.prototype?void 0:n},function(e,t,n){var i=n(27),a=n(41),l=n(87);e.exports=function(e,t,n){var r,o;a(e);try{if(!(r=l(e,"return"))){if("throw"===t)throw n;return n}r=i(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return a(r),n}},function(e,t){var n=TypeError;e.exports=function(e){if(9007199254740991<e)throw n("Maximum allowed index exceeded");return e}},function(e,t,n){var r=n(12),o=n(21).RegExp;e.exports=r(function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})},function(e,t,n){var r=n(12),o=n(21).RegExp;e.exports=r(function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})},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){var r=n(27),o=n(37),i=n(71),a=n(188),l=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in l||o(e,"flags")||!i(l,e)?t:r(a,e)}},function(e,t,n){var r=n(191),o=TypeError;e.exports=function(e){if(r(e))throw o("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(30)("match");e.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,"/./"[t](n)}catch(e){}}return!1}},function(e,t,n){n=n(17);e.exports=n(1..valueOf)},function(e,t,n){function b(e,t){var n=e.length,r=w(n/2);if(n<8){for(var o,i,a=e,l=t,s=a.length,u=1;u<s;){for(o=a[i=u];i&&0<l(a[i-1],o);)a[i]=a[--i];i!==u++&&(a[i]=o)}return a}for(var c=e,f=b(g(e,0,r),t),d=b(g(e,r),t),p=t,h=f.length,m=d.length,y=0,v=0;y<h||v<m;)c[y+v]=y<h&&v<m?p(f[y],d[v])<=0?f[y++]:d[v++]:y<h?f[y++]:d[v++];return c}var g=n(145),w=Math.floor;e.exports=b},function(e,t,n){n=n(79).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},function(e,t,n){n=n(79);e.exports=/MSIE|Trident/.test(n)},function(e,t,n){var r=n(12),o=n(35),i=n(78),a=n(376),l=Object.isExtensible,n=r(function(){l(1)});e.exports=n||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!=i(e))&&(!l||l(e)))}:l},function(e,t,n){"use strict";var y=n(15),v=n(21),b=n(17),g=n(121),w=n(48),k=n(160),_=n(125),O=n(110),S=n(29),P=n(35),E=n(12),x=n(149),j=n(107),C=n(156);e.exports=function(e,t,n){function r(e){var n=b(p[e]);w(p,e,"add"==e?function(e){return n(this,0===e?0:e),this}:"delete"==e?function(e){return!(c&&!P(e))&&n(this,0===e?0:e)}:"get"==e?function(e){return c&&!P(e)?void 0:n(this,0===e?0:e)}:"has"==e?function(e){return!(c&&!P(e))&&n(this,0===e?0:e)}:function(e,t){return n(this,0===e?0:e,t),this})}var o,i,a,l,s,u=-1!==e.indexOf("Map"),c=-1!==e.indexOf("Weak"),f=u?"set":"add",d=v[e],p=d&&d.prototype,h=d,m={};return g(e,!S(d)||!(c||p.forEach&&!E(function(){(new d).entries().next()})))?(h=n.getConstructor(t,e,u,f),k.enable()):g(e,!0)&&(i=(o=new h)[f](c?{}:-0,1)!=o,a=E(function(){o.has(1)}),l=x(function(e){new d(e)}),s=!c&&E(function(){for(var e=new d,t=5;t--;)e[f](t,t);return!e.has(-0)}),l||(((h=t(function(e,t){O(e,p);e=C(new d,e,h);return null!=t&&_(t,e[f],{that:e,AS_ENTRIES:u}),e})).prototype=p).constructor=h),(a||s)&&(r("delete"),r("has"),u&&r("get")),(s||i)&&r(f),c&&p.clear&&delete p.clear),m[e]=h,y({global:!0,constructor:!0,forced:h!=d},m),j(h,e),c||n.setStrong(h,e,u),h}},function(e,t,n){"use strict";function l(e,t,n){return 0===t?n:t%2==1?l(e,t-1,n*e):l(e*e,t/2,n)}function s(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=a(o/1e7)}function u(e,t){for(var n=6,r=0;0<=--n;)r+=e[n],e[n]=a(r/t),r=r%t*1e7}function c(e){for(var t,n=6,r="";0<=--n;)""===r&&0!==n&&0===e[n]||(t=h(e[n]),r=""===r?t:r+m("0",7-t.length)+t);return r}var r=n(15),o=n(17),f=n(66),d=n(257),i=n(198),n=n(12),p=RangeError,h=String,a=Math.floor,m=o(i),y=o("".slice),v=o(1..toFixed);r({target:"Number",proto:!0,forced:n(function(){return"0.000"!==v(8e-5,3)||"1"!==v(.9,0)||"1.25"!==v(1.255,2)||"1000000000000000128"!==v(0xde0b6b3a7640080,0)})||!n(function(){v({})})},{toFixed:function(e){var t,n,r=d(this),e=f(e),o=[0,0,0,0,0,0],i="",a="0";if(e<0||20<e)throw p("Incorrect fraction digits");if(r!=r)return"NaN";if(r<=-1e21||1e21<=r)return h(r);if(r<0&&(i="-",r=-r),1e-21<r)if(r=(t=function(e){for(var t=0,n=e;4096<=n;)t+=12,n/=4096;for(;2<=n;)t+=1,n/=2;return t}(r*l(2,69,1))-69)<0?r*l(2,-t,1):r/l(2,t,1),r*=4503599627370496,0<(t=52-t)){for(s(o,0,r),n=e;7<=n;)s(o,1e7,0),n-=7;for(s(o,l(10,n,1),0),n=t-1;23<=n;)u(o,1<<23),n-=23;u(o,1<<n),s(o,1,1),u(o,2),a=c(o)}else s(o,0,r),s(o,1<<-t,0),a=c(o)+m("0",e);return a=0<e?i+((r=a.length)<=e?"0."+m("0",e-r)+a:y(a,0,r-e)+"."+y(a,r-e)):i+a}})},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(266);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},function(e,t,n){var f=n(267),d=n(127),p=n(269),h=n(128),m=n(200);e.exports=function(e,t,n,r){if(h(e))for(var o=-1,i=(t=d(t,e)).length,a=i-1,l=e;null!=l&&++o<i;){var s,u=m(t[o]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;o!=a&&(s=l[u],void 0===(c=r?r(s,u,l):void 0)&&(c=h(s)?s:p(t[o+1])?[]:{})),f(l,u,c),l=l[u]}return e}},function(e,t,n){var o=n(268),i=n(199),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var r=e[t];a.call(e,t)&&i(r,n)&&(void 0!==n||t in e)||o(e,t,n)}},function(e,t,n){var r=n(387);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){var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&-1<e&&e%1==0&&e<t}},function(e,t,n){var l=n(127),s=n(271),u=n(111),c=n(269),f=n(272),d=n(200);e.exports=function(e,t,n){for(var r=-1,o=(t=l(t,e)).length,i=!1;++r<o;){var a=d(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&f(o)&&c(a,o)&&(u(e)||s(e))}},function(e,t){e.exports=function(){return!1}},function(e,t){e.exports=function(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(163),o=n(400),i=n(129),n=Function.prototype,a=Object.prototype,l=n.toString,s=a.hasOwnProperty,u=l.call(Object);e.exports=function(e){return!(!i(e)||"[object Object]"!=r(e))&&(null===(e=o(e))||"function"==typeof(e=s.call(e,"constructor")&&e.constructor)&&e instanceof e&&l.call(e)==u)}},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=e.length,i=((n=o<n?o:n)<0&&(n+=o),o=n<(t=t<0?o<-t?0:o+t:t)?0:n-t>>>0,t>>>=0,Array(o));++r<o;)i[r]=e[r+t];return i}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(408),o=n(164),i=n(409);e.exports=function(e){return(o(e)?i:r)(e)}},function(e,t){e.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n=((n=n(414))&&n.__esModule?n:{default:n}).default;t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAddressProvider=void 0,n(51),n(1),n(14),n(9);var a=n(36),l=i(n(10)),r=n(165),s=i(n(24));function i(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)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=d(n),t=(e=r?(e=d(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e);var n,o=f(i);function i(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=this,r=i;if(!(n instanceof r))throw new TypeError("Cannot call a class as a function");(n=o.call(this,t)).setAutocompleteOptions();r="https://maps.googleapis.com/maps/api/js?v=quarterly&libraries=places&callback=googleMapsCallback";return null!=(e=t.params)&&e.key&&(r+="&key=".concat(t.params.key)),a.GlobalFormio.requireLibrary(n.getLibraryName(),"google.maps.places",r),n}return t=i,e=[{key:"name",get:function(){return"google"}},{key:"displayName",get:function(){return"Google Maps"}}],(n=[{key:"displayValueProperty",get:function(){return"formattedPlace"}},{key:"alternativeDisplayValueProperty",get:function(){return"formatted_address"}},{key:"autocompleteOptions",get:function(){return this._autocompleteOptions},set:function(e){this._autocompleteOptions=e}},{key:"setAutocompleteOptions",value:function(){var e=l.default.get(this.options,"params.autocompleteOptions",{});l.default.isObject(e)||(e={}),this.addRequiredProviderOptions(e),this.autocompleteOptions=e}},{key:"beforeMergeOptions",value:function(e){this.convertRegionToAutocompleteOption(e)}},{key:"getLibraryName",value:function(){return"googleMaps"}},{key:"convertRegionToAutocompleteOption",value:function(e){var t=e,n=l.default.get(t,"params.region","");n&&!l.default.has(e,"params.autocompleteOptions")&&(n=n.toUpperCase().trim(),l.default.set(t,"params.autocompleteOptions.componentRestrictions.country",[n=(e={UK:"GB"})[n]?e[n]:n]))}},{key:"getRequiredAddressProperties",value:function(){return["address_components","formatted_address","geometry","place_id","plus_code","types"]}},{key:"addRequiredProviderOptions",value:function(e){var n=this.getRequiredAddressProperties();l.default.isArray(e.fields)&&0<e.fields.length&&e.fields.forEach(function(t){n.some(function(e){return t===e})||n.push(t)}),e.fields=n}},{key:"filterPlace",value:function(t){t=t||{};var n={};return this.autocompleteOptions&&this.autocompleteOptions.fields.forEach(function(e){t[e]&&(n[e]=t[e])}),n}},{key:"attachAutocomplete",value:function(n,r,o){var i=this;a.GlobalFormio.libraryReady(this.getLibraryName()).then(function(){var t=new google.maps.places.Autocomplete(n,i.autocompleteOptions);t.addListener("place_changed",function(){var e=i.filterPlace(t.getPlace());e.formattedPlace=l.default.get(t,"gm_accessors_.place.se.formattedPrediction",e[i.alternativeDisplayValueProperty]),o(e,n,r)})})}},{key:"search",value:function(){return s.default.resolve()}},{key:"makeRequest",value:function(){return s.default.resolve()}},{key:"getDisplayValue",value:function(e){var t=l.default.has(e,this.displayValueProperty)?this.displayValueProperty:this.alternativeDisplayValueProperty;return l.default.get(e,t,"")}}])&&u(t.prototype,n),e&&u(t,e),Object.defineProperty(t,"prototype",{writable:!1}),i}(r.AddressProvider);t.GoogleAddressProvider=n},function(e,t,n){var r=n(167);e.exports=function(e,t){return!!(null==e?0:e.length)&&-1<r(e,t,0)}},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(t){return function(e){return t(e)}}},function(e,t,n){var s=n(436),u=Math.max;e.exports=function(i,a,l){return a=u(void 0===a?i.length-1:a,0),function(){for(var e=arguments,t=-1,n=u(e.length-a,0),r=Array(n);++t<n;)r[t]=e[a+t];for(var t=-1,o=Array(a+1);++t<a;)o[t]=e[t];return o[a]=l(r),s(i,this,o)}}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(438),o=n(129);e.exports=function(e){return o(e)&&r(e)}},function(e,t,n){var r=n(201);e.exports=function(e){return r(e,5)}},function(e,t,n){"use strict";var r=n(63),o=n(21),i=n(12),a=n(195);e.exports=r||!i(function(){var e;a&&a<535||(e=Math.random(),__defineSetter__.call(null,e,function(){}),delete o[e])})},function(e,t,n){var r=n(15),o=n(290).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){function r(l){return function(e){for(var t,n=c(e),r=u(n),o=r.length,i=0,a=[];i<o;)t=r[i++],s&&!f(n,t)||d(a,l?[t,n[t]]:n[t]);return a}}var s=n(34),o=n(17),u=n(122),c=n(56),f=o(n(138).f),d=o([].push);e.exports={entries:r(!0),values:r(!1)}},function(e,t,n){"use strict";n(23),n(2),n(22),n(1),n(11),n(14),n(31),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n=(n=n(450))&&n.__esModule?n:{default:n};function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){a(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}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){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var l=function(){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function")}var e,t,r;return e=n,r=[{key:"addRule",value:function(e,t){n.rules[e]=t}},{key:"addRules",value:function(e){n.rules=o(o({},n.rules),e)}},{key:"getRule",value:function(e){return n.rules[e]}},{key:"getRules",value:function(){return n.rules}}],(t=null)&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();a(t.default=l,"rules",n.default)},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(9);var l=i(n(10)),r=i(n(170)),s=i(n(24));function i(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)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=a(n),t=(e=r?(e=a(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e);var n,i=f(a);function a(e,t,n,r){var o;if(this instanceof a)return(o=i.call(this,e)).valueIndex=r||0,o.componentInstance=n,o.namespace="formio.widget",o.component=t||{},o.settings=l.default.merge({},o.defaultSettings,e||{}),o;throw new TypeError("Cannot call a class as a function")}return t=a,e=[{key:"defaultSettings",get:function(){return{type:"input"}}}],(n=[{key:"attach",value:function(e){return this._input=e,s.default.resolve()}},{key:"defaultSettings",get:function(){return{}}},{key:"disabled",set:function(e){e?this._input.setAttribute("disabled","disabled"):this._input.removeAttribute("disabled")}},{key:"input",get:function(){return this._input}},{key:"getValue",value:function(){return this._input.value}},{key:"getValueAsString",value:function(e){return e}},{key:"validationValue",value:function(e){return e}},{key:"addPrefix",value:function(){return null}},{key:"addSuffix",value:function(){return null}},{key:"setValue",value:function(e){this._input.value=e}}])&&u(t.prototype,n),e&&u(t,e),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.default);t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.editForms=t.default=void 0,n(18),n(20);n=(n=n(474))&&n.__esModule?n:{default:n};var r=[n.default.info].map(function(e){var t=e.components,n=e.name;return{type:"form",key:"settings",display:"form",input:!0,components:t,defaultValue:{data:e.defaultSettings},customConditional:function(e){return e.row.name.value===n}}}),r=(t.editForms=r,{passwordStrength:n.default});t.default=r},function(e,t,n){var r,o,i=n(21),a=n(81),l=n(92),s=n(29),u=n(37),c=n(12),f=n(238),d=n(105),p=n(139),h=n(480),m=n(295),n=n(172),y=i.setImmediate,v=i.clearImmediate,b=i.process,g=i.Dispatch,w=i.Function,k=i.MessageChannel,_=i.String,O=0,S={},P="onreadystatechange";try{r=i.location}catch(e){}function E(e){return function(){C(e)}}function x(e){C(e.data)}function j(e){i.postMessage(_(e),r.protocol+"//"+r.host)}var C=function(e){var t;u(S,e)&&(t=S[e],delete S[e],t())};y&&v||(y=function(e){h(arguments.length,1);var t=s(e)?e:w(e),n=d(arguments,1);return S[++O]=function(){a(t,void 0,n)},o(O),O},v=function(e){delete S[e]},n?o=function(e){b.nextTick(E(e))}:g&&g.now?o=function(e){g.now(E(e))}:k&&!m?(m=(n=new k).port2,n.port1.onmessage=x,o=l(m.postMessage,m)):i.addEventListener&&s(i.postMessage)&&!i.importScripts&&r&&"file:"!==r.protocol&&!c(j)?(o=j,i.addEventListener("message",x,!1)):o=P in p("script")?function(e){f.appendChild(p("script"))[P]=function(){f.removeChild(this),C(e)}}:function(e){setTimeout(E(e),0)}),e.exports={set:y,clear:v}},function(e,t,n){n=n(79);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},function(e,t){e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},function(e,t,n){var r=n(113),o=n(149),n=n(132).CONSTRUCTOR;e.exports=n||!o(function(e){r.all(e).then(void 0,function(){})})},function(e,t,n){var r=n(41),o=n(35),i=n(133);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;e=i.f(e);return(0,e.resolve)(t),e.promise}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={unsavedRowsError:"Please save all rows before proceeding.",invalidRowsError:"Please correct invalid rows before proceeding.",invalidRowError:"Invalid row. Please correct it or delete.",alertMessageWithLabel:"{{label}}: {{message}}",alertMessage:"{{message}}",complete:"Submission Complete",error:"Please fix the following errors before submitting.",errorListHotkey:"Press Ctrl + Alt + X to go back to the error list.",errorsListNavigationMessage:"Click to navigate to the field with following error.",submitError:"Please check the form and correct all errors before submitting.",required:"{{field}} is required",unique:"{{field}} must be unique",array:"{{field}} must be an array",array_nonempty:"{{field}} must be a non-empty array",nonarray:"{{field}} must not be an array",select:"{{field}} contains an invalid selection",pattern:"{{field}} does not match the pattern {{pattern}}",minLength:"{{field}} must have at least {{length}} characters.",maxLength:"{{field}} must have no more than {{length}} characters.",minWords:"{{field}} must have at least {{length}} words.",maxWords:"{{field}} must have no more than {{length}} words.",min:"{{field}} cannot be less than {{min}}.",max:"{{field}} cannot be greater than {{max}}.",maxDate:"{{field}} should not contain date after {{- maxDate}}",minDate:"{{field}} should not contain date before {{- minDate}}",maxYear:"{{field}} should not contain year greater than {{maxYear}}",minYear:"{{field}} should not contain year less than {{minYear}}",invalid_email:"{{field}} must be a valid email.",invalid_url:"{{field}} must be a valid url.",invalid_regex:"{{field}} does not match the pattern {{regex}}.",invalid_date:"{{field}} is not a valid date.",invalid_day:"{{field}} is not a valid day.",mask:"{{field}} does not match the mask.",valueIsNotAvailable:"{{ field }} is an invalid value.",stripe:"{{stripe}}",month:"Month",day:"Day",year:"Year",january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December",next:"Next",previous:"Previous",cancel:"Cancel",submit:"Submit Form",confirmCancel:"Are you sure you want to cancel?",saveDraftInstanceError:"Cannot save draft because there is no formio instance.",saveDraftAuthError:"Cannot save draft unless a user is authenticated.",restoreDraftInstanceError:"Cannot restore draft because there is no formio instance.",time:"Invalid time"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(493)),o=i(n(637)),n=i(n(725));function i(e){return e&&e.__esModule?e:{default:e}}r={bootstrap:r.default,bootstrap3:o.default.templates.bootstrap3,semantic:n.default.templates.semantic};t.default=r},function(e,j,t){"use strict";t.r(j),function(e){var r="undefined"!=typeof Map?Map:(Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(e){e=o(this.__entries__,e),e=this.__entries__[e];return e&&e[1]},t.prototype.set=function(e,t){var n=o(this.__entries__,e);~n?this.__entries__[n][1]=t:this.__entries__.push([e,t])},t.prototype.delete=function(e){var t=this.__entries__,e=o(t,e);~e&&t.splice(e,1)},t.prototype.has=function(e){return!!~o(this.__entries__,e)},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);function o(e,n){var r=-1;return e.some(function(e,t){return e[0]===n&&(r=t,!0)}),r}function t(){this.__entries__=[]}var n="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),s="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},u=2;var a=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,c=(f.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},f.prototype.removeObserver=function(e){var t=this.observers_,e=t.indexOf(e);~e&&t.splice(e,1),!t.length&&this.connected_&&this.disconnect_()},f.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},f.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),0<e.length},f.prototype.connect_=function(){n&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},f.prototype.disconnect_=function(){n&&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)},f.prototype.onTransitionEnd_=function(e){var e=e.propertyName,t=void 0===e?"":e;a.some(function(e){return!!~t.indexOf(e)})&&this.refresh()},f.getInstance=function(){return this.instance_||(this.instance_=new f),this.instance_},f.instance_=null,f);function f(){function e(){i&&(i=!1,r()),a&&n()}function t(){s(e)}function n(){var e=Date.now();if(i){if(e-l<u)return;a=!0}else a=!(i=!0),setTimeout(t,o);l=e}var r,o,i,a,l;this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=(r=this.refresh.bind(this),a=i=!(o=20),l=0,n)}var d=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},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},h=w(0,0,0,0);function m(e){return parseFloat(e)||0}function y(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return e.reduce(function(e,t){return e+m(n["border-"+t+"-width"])},0)}function v(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return h;var r=p(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]=m(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=m(r.width),s=m(r.height);return"border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=y(r,"left","right")+i),Math.round(s+a)!==n&&(s-=y(r,"top","bottom")+a)),e!==p(e).document.documentElement&&(r=Math.round(l+i)-t,e=Math.round(s+a)-n,1!==Math.abs(r)&&(l-=r),1!==Math.abs(e)&&(s-=e)),w(o.left,o.top,l,s)}var b="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return n?b(e)?w(0,0,(t=(t=e).getBBox()).width,t.height):v(e):h;var t}function w(e,t,n,r){return{x:e,y:t,width:n,height:r}}_.prototype.isActive=function(){var e=g(this.target);return(this.contentRect_=e).width!==this.broadcastWidth||e.height!==this.broadcastHeight},_.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e};var k=_;function _(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=w(0,0,0,0),this.target=e}var O=function(e,t){n=(t=t).x,r=t.y,i=t.width,t=t.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(o.prototype),d(o,{x:n,y:r,width:i,height:t,top:r,right:n+i,bottom:t+r,left:n});var n,r,o,i=o;d(this,{target:e,contentRect:i})},S=(P.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 p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new k(e)),this.controller_.addObserver(this),this.controller_.refresh())}},P.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 p(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))}},P.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},P.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},P.prototype.broadcastActive=function(){var e,t;this.hasActive()&&(e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new O(e.target,e.broadcastRect())}),this.callback_.call(e,t,e),this.clearActive())},P.prototype.clearActive=function(){this.activeObservations_.splice(0)},P.prototype.hasActive=function(){return 0<this.activeObservations_.length},P);function P(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}var E=new("undefined"!=typeof WeakMap?WeakMap:r),x=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=c.getInstance(),t=new S(t,n,this);E.set(this,t)},e=(["observe","unobserve","disconnect"].forEach(function(t){x.prototype[t]=function(){var e;return(e=E.get(this))[t].apply(e,arguments)}}),void 0!==i.ResizeObserver?i.ResizeObserver:x);j.default=e}.call(this,t(54))},function(e,t,n){var r=n(15),n=n(837);r({target:"Number",stat:!0,forced:Number.parseInt!=n},{parseInt:n})},function(e,t,n){"use strict";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)}n(2),n(6),n(7),n(3),n(5),n(4),n(42),n(32),n(20),n(16),n(94),n(11),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(22),n(1),n(23),n(40),n(45),n(18);var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};t=l(t);if(t&&t.has(e))return t.get(e);var n,r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(n in e){var i;"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&((i=o?Object.getOwnPropertyDescriptor(e,n):null)&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n])}r.default=e,t&&t.set(e,r);return r}(n(293));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n=[{type:"editgrid",addAnother:"Add Addon",saveRow:"Save Addon",weight:28,input:!0,key:"addons",label:"Addons",components:[{label:"Name",tableView:!0,key:"name",type:"select",dataSrc:"custom",data:{custom:function(e){var e=e.instance,t=null==e||null==(e=e.root)||null==(e=e.data)?void 0:e.type;return Object.keys(r.default).filter(function(e){return!(null==(e=r.default[e])||null==(e=e.info)||null==(e=e.supportedComponents)||!e.includes(t))}).map(function(e){return{value:e,label:r.default[e].info.label||e}})}},input:!0}].concat(function(e){if(Array.isArray(e))return o(e)}(n=r.editForms)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}];t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(1),n(14),n(9);var l=i(n(10)),r=n(19),s=i(n(53)),u=i(n(61)),c=i(n(134));function i(e){return e&&e.__esModule?e:{default:e}}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=m(n),t=(e=r?(e=m(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e);var n,i=h(a);function a(){var e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r))).type="container",e}return t=a,e=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c.default.schema.apply(c.default,[{label:"Container",type:"container",key:"container",clearOnHide:!0,input:!0,tree:!0,hideLabel:!0,components:[]}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Container",icon:"folder-open",group:"data",documentation:"/userguide/#container",weight:10,schema:a.schema()}}}],(n=[{key:"addComponents",value:function(e,t){return d(m(a.prototype),"addComponents",this).call(this,this.dataValue,t)}},{key:"defaultSchema",get:function(){return a.schema()}},{key:"emptyValue",get:function(){return{}}},{key:"templateName",get:function(){return"container"}},{key:"componentContext",value:function(){return this.dataValue}},{key:"setValue",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=!1,r=this.hasValue();return r&&l.default.isEmpty(this.dataValue)&&(t.noValidate=!0),e&&l.default.isObject(e)&&r||(n=!0,this.dataValue=this.defaultValue),n=d(m(a.prototype),"setValue",this).call(this,e,t)||n,this.updateOnChange(t,n),n}},{key:"checkData",value:function(n,r,e,t){var o=this;return n=n||this.rootValue,r=r||{},e=e||this.data,(t=t&&l.default.isArray(t)?t:this.getComponents()).reduce(function(e,t){return t.checkData(n,r,o.dataValue)&&e},s.default.prototype.checkData.call(this,n,r,e))}},{key:"focus",value:function(){var e=(0,r.getFocusableElements)(this.element);e&&e[0]&&e[0].focus()}},{key:"checkConditions",value:function(t,n,e){var r=this,e=u.default.prototype.checkConditions.call(this,t,n,e);return this.getComponents().forEach(function(e){return e.checkConditions(t,n,r.dataValue)}),e}}])&&f(t.prototype,n),e&&f(t,e),Object.defineProperty(t,"prototype",{writable:!1}),a}(c.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(70),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(39),n(18),n(1),n(14),n(50),n(0),n(9);var r=l(n(61)),i=l(n(24)),a=l(n(10));function l(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)}}function u(e,t,n,r){return(u="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,e=f(e,t);if(e){if((o=Object.getOwnPropertyDescriptor(e,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 e=n,!((o=t)in(n=r)?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e);return!0})(e,t,n,r)}function c(){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=f(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=h(n),t=(e=r?(e=h(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e);var n,r=p(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"dataValue",get:function(){var e=c(h(o.prototype),"dataValue",this);return!e&&this.component.multiple?[]:e},set:function(e){var t=h(o.prototype),n=!0;if(!u(t,"dataValue",e,this||t)&&n)throw new Error("failed to set property")}},{key:"defaultValue",get:function(){var e=c(h(o.prototype),"defaultValue",this);return e=this.component.multiple?a.default.isArray(e)?e.length?e:[c(h(o.prototype),"emptyValue",this)]:[e]:e}},{key:"addAnother",get:function(){return this.t(this.component.addAnother||"Add Another")}},{key:"useWrapper",value:function(){return this.component.hasOwnProperty("multiple")&&this.component.multiple}},{key:"render",value:function(){if(!this.useWrapper())return c(h(o.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]:[]),c(h(o.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 n=this,t=c(h(o.prototype),"attach",this).call(this,e),r=(this.loadRefs(e,{addButton:"multiple",input:"multiple",removeRow:"multiple",mask:"multiple",select:"multiple"}),[]);return this.refs.input.forEach(function(e,t){r.push(n.attachElement.call(n,e,t))}),this.component.multiple?(this.refs.removeRow.forEach(function(e,t){n.addEventListener(e,"click",function(e){e.preventDefault(),n.removeValue(t)})}),this.refs.addButton.forEach(function(e){n.addEventListener(e,"click",function(e){e.preventDefault(),n.addValue()})}),t.then(function(){return i.default.all(r)})):i.default.all(r)}},{key:"detach",value:function(){this.refs.input&&this.refs.input.length&&this.refs.input.forEach(function(e){e.mask&&e.mask.destroy(),e.widget&&e.widget.destroy()}),this.refs.mask&&this.refs.mask.length&&this.refs.mask.forEach(function(e){e.mask&&e.mask.destroy()}),c(h(o.prototype),"detach",this).call(this)}},{key:"attachElement",value:function(r,o){var e,t,i=this;this.addEventListener(r,this.inputInfo.changeEvent,function(){var e,t,n=a.default.get(i.component,"case","mixed");"mixed"!==n&&(e=r.selectionStart,t=r.selectionEnd,"uppercase"===n&&r.value&&(r.value=r.value.toUpperCase()),"lowercase"===n&&r.value&&(r.value=r.value.toLowerCase()),r.selectionStart&&r.selectionEnd&&(r.selectionStart=e,r.selectionEnd=t));try{i.saveCaretPosition(r,o)}catch(e){console.warn("An error occurred while trying to save caret position",e)}if(!r.mask)return i.updateValue(null,{modified:"hidden"!==i.component.type},o);setTimeout(function(){return i.updateValue(null,{modified:"hidden"!==i.component.type},o)},1)}),this.attachMultiMask(o)||(this.setInputMask(r),e=this.component.inputMask,t=this.component.displayMask,e&&t&&t!==e&&this.refs.valueMaskInput&&this.setInputMask(this.refs.valueMaskInput,e))}},{key:"saveCaretPosition",value:function(e,t){var n;(null==(n=this.root)||null==(n=n.focusedComponent)?void 0:n.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(t){var e;return this.multiMasks||(this.multiMasks={}),this.multiMasks[t]||(e=this.component.inputMasks.find(function(e){return e.label===t}),this.multiMasks[t]=(e||this.component.inputMasks[0]).mask),this.multiMasks[t]}},{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.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()}}])&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.default);t.default=n},function(e,t,n){function r(e){if(i[e])return i[e].exports;var t=i[e]={exports:{},id:e,loaded:!1};return o[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}var o,i;e.exports=(o=[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),i=(Object.defineProperty(t,"createAutoCorrectedDatePipe",{enumerable:!0,get:function(){return r(o).default}}),n(2)),a=(Object.defineProperty(t,"createNumberMask",{enumerable:!0,get:function(){return r(i).default}}),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 u=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"mm dd yyyy",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},t=e.minYear,c=void 0===t?1:t,f=void 0===(t=e.maxYear)?9999:t,o=u.split(/[^dmyHMS]+/).sort(function(e,t){return n.indexOf(e)-n.indexOf(t)});return function(i){var n=[],a={dd:31,mm:12,yy:99,yyyy:f,HH:23,MM:59,SS:59},l={dd:1,mm:1,yy:0,yyyy:c,HH:0,MM:0,SS:0},r=i.split(""),s=(o.forEach(function(e){var t=u.indexOf(e),e=parseInt(a[e].toString().substr(0,1),10);parseInt(r[t],10)>e&&(r[t+1]=r[t],r[t]=0,n.push(t))}),0);return!o.some(function(e){var t=u.indexOf(e),n=e.length,t=i.substr(t,n).replace(/\D/g,""),r=parseInt(t,10),o=("mm"===e&&(s=r||0),"dd"===e?d[s]:a[e]);return"yyyy"!==e||1===c&&9999===f?o<r||t.length===n&&r<l[e]:(o=parseInt(a[e].toString().substring(0,t.length),10),r<parseInt(l[e].toString().substring(0,t.length),10)||o<r)})&&{value:r.join(""),indexesOfPipedChars:n}}};var d=[31,31,29,31,30,31,30,31,31,30,31,30,31],n=["yyyy","yy","mm","dd","HH","MM","SS"]},function(e,t){"use strict";function _(e){return e.split(S).map(function(e){return C.test(e)?C:e})}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},r=(t.default=function(){function e(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:S,t=e.length;if(e===S||e[0]===s[0]&&1===t)return s.split(S).concat([C]).concat(u.split(S));if(e===p&&d)return s.split(S).concat(["0",p,C]).concat(u.split(S));var n=e[0]===P&&y,r=(e=n?e.toString().substr(1):e).lastIndexOf(p),o=-1!==r,i=void 0,a=void 0,l=void 0;return e.slice(-1*w)===u&&(e=e.slice(0,-1*w)),o&&(d||m)?(i=e.slice(e.slice(0,g)===s?g:0,r),a=_((a=e.slice(r+1,t)).replace(x,S))):i=e.slice(0,g)===s?e.slice(g):e,b&&(void 0===b?"undefined":O(b))===j&&(t=(i.match(new RegExp("."===f?"[.]":""+f,"g"))||[]).length,i=i.slice(0,b+t*k)),i=i.replace(x,S),v||(i=i.replace(/^0+(0$|[^0])/,"$1")),l=_(i=c?(t=f,i.replace(/\B(?=(\d{3})+(?!\d))/g,t)):i),(o&&d||!0===m)&&(e[r-1]!==p&&l.push(R),l.push(p,R),a&&((void 0===h?"undefined":O(h))===j&&(a=a.slice(0,h)),l=l.concat(a)),!0===m&&e[r-1]===p&&l.push(C)),0<g&&(l=s.split(S).concat(l)),n&&(l.length===g&&l.push(C),l=[E].concat(l)),l=0<u.length?l.concat(u.split(S)):l}var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=t.prefix,s=void 0===n?r:n,u=void 0===(n=t.suffix)?S:n,c=void 0===(n=t.includeThousandsSeparator)||n,f=void 0===(n=t.thousandsSeparatorSymbol)?o:n,d=void 0!==(n=t.allowDecimal)&&n,p=void 0===(n=t.decimalSymbol)?i:n,h=void 0===(n=t.decimalLimit)?2:n,m=void 0!==(n=t.requireDecimal)&&n,y=void 0!==(n=t.allowNegative)&&n,v=void 0!==(n=t.allowLeadingZeroes)&&n,b=void 0===(n=t.integerLimit)?null:n,g=s&&s.length||0,w=u&&u.length||0,k=f&&f.length||0;return e.instanceOf="createNumberMask",e},"$"),S="",o=",",i=".",P="-",E=/-/,x=/\D+/g,j="number",C=/\d/,R="[]"},function(e,t,n){"use strict";function d(e,t,n){var r=[];return e[t]===n?r.push(n):r.push(o,n),r.push(o),r}function p(e,t){return e.split(y).map(function(e){return e===b?e:t?i:r})}Object.defineProperty(t,"__esModule",{value:!0});var n=n(4),n=(n=n)&&n.__esModule?n:{default:n},h="*",m=".",y="",v="@",o="[]",b=" ",g="g",r=/[^\s]/,i=/[^.\s]/,w=/\s/g;t.default={mask:function(e,t){e=e.replace(w,y);var n,r,o,i=t.placeholderChar,t=t.currentCaretPosition,a=e.indexOf(v),l=(l=e.lastIndexOf(m))<a?-1:l,s=d(e,a+1,v),u=d(e,l-1,m),c=(c=e,-1===(f=a)?c:c.slice(0,f)),f=(f=e,n=l,r=i,o=y,(o=(o=-1!==(a=a)?-1===n?f.slice(a+1,f.length):f.slice(a+1,n):o).replace(new RegExp("[\\s"+r+"]",g),y))===v?h:o.length<1?b:o[o.length-1]===m?o.slice(0,o.length-1):o),i=(a=e,n=i,r=t,o=y,0===(o=(o=-1!==(e=l)?a.slice(e+1,a.length):o).replace(new RegExp("[\\s"+n+".]",g),y)).length?a[e-1]===m&&r!==a.length?h:y:o),c=p(c),f=p(f),i=p(i,!0);return c.concat(s).concat(f).concat(u).concat(i)},pipe:n.default}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r=t.currentCaretPosition,o=t.rawValue,i=t.previousConformedValue,t=t.placeholderChar,a=(n=0,(e=e.replace(s,function(){return 1===++n?l:u})).indexOf(c));return null===o.match(new RegExp("[^@\\s."+t+"]"))?u:!(-1!==e.indexOf(d)||-1!==a&&r!==a+1||-1===o.indexOf(l)&&i!==u&&-1!==o.indexOf(f))&&(t=e.indexOf(l),e=1<(e.slice(t+1,e.length).match(h)||p).length&&e.substr(-1)===f&&r!==o.length?e.slice(0,e.length-1):e)};var l="@",s=/@/g,u="",c="@.",f=".",d="..",p=[],h=/\./g}],i={},r.m=o,r.c=i,r.p="",r(0))},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(16),n(26),n(39),n(43),n(40),n(45),n(850),n(1),n(25),n(18),n(9);var r=n(130),s=a(n(10)),i=n(306),u=a(n(83)),c=n(19);function a(e){return e&&e.__esModule?e:{default:e}}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=m(n),t=(e=r?(e=m(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=l;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e);var n,a=h(l);function l(){var e=this,t=l;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];(e=a.call.apply(a,[this].concat(r))).validators=e.validators.concat(["min","max"]);var t=(0,c.getNumberSeparators)(e.options.language||navigator.language),i=(e.decimalSeparator=e.options.decimalSeparator=e.options.decimalSeparator||(null==(i=e.options.properties)?void 0:i.decimalSeparator)||t.decimalSeparator,e.component.delimiter?(e.options.hasOwnProperty("thousandsSeparator")&&console.warn("Property 'thousandsSeparator' is deprecated. Please use i18n to specify delimiter."),e.delimiter=(null==(i=e.options.properties)?void 0:i.thousandsSeparator)||e.options.thousandsSeparator||t.delimiter):e.delimiter="",s.default.get(e.component,"requireDecimal",!1));return e.decimalLimit=(0,c.getNumberDecimalLimit)(e.component,i?2:20),s.default.has(e.options,"languageOverride.".concat(e.options.language))&&(t=s.default.get(e.options,"languageOverride.".concat(e.options.language)),e.decimalSeparator=t.decimalSeparator,e.delimiter=t.delimiter),e.numberMask=e.createNumberMask(),e}return t=l,e=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.default.schema.apply(u.default,[{type:"number",label:"Number",key:"number",validate:{min:"",max:"",step:"any",integer:""}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Number",icon:"hashtag",group:"basic",documentation:"/userguide/#number",weight:30,schema:l.schema()}}}],(n=[{key:"createNumberMask",value:function(){return(0,i.createNumberMask)({prefix:"",suffix:"",requireDecimal:s.default.get(this.component,"requireDecimal",!1),thousandsSeparatorSymbol:s.default.get(this.component,"thousandsSeparator",this.delimiter),decimalSymbol:s.default.get(this.component,"decimalSymbol",this.decimalSeparator),decimalLimit:s.default.get(this.component,"decimalLimit",this.decimalLimit),allowNegative:s.default.get(this.component,"allowNegative",!0),allowDecimal:this.isDecimalAllowed()})}},{key:"defaultSchema",get:function(){return l.schema()}},{key:"defaultValue",get:function(){var e=d(m(l.prototype),"defaultValue",this);return e||0!==this.component.defaultValue||(e=this.component.defaultValue),e=!this.component.multiple&&s.default.isArray(e)?e[0]||0===e[0]?e[0]:null:e}},{key:"isDecimalAllowed",value:function(){return s.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=(t+=this.decimalSeparator||"")+(this.delimiter||"");e.setAttribute("pattern",t+="]*"),e.mask=(0,r.maskInput)({inputElement:e,mask:this.numberMask,shadowRoot:this.root?this.root.shadowRoot:null})}},{key:"inputInfo",get:function(){var e=d(m(l.prototype),"inputInfo",this);return this.component.mask?e.attr.type="password":e.attr.type="text",e.attr.inputmode=this.isDecimalAllowed()?"decimal":"numeric",e.changeEvent="input",e}},{key:"getValueAt",value:function(e){if(!this.refs.input.length||!this.refs.input[e])return null;e=this.refs.input[e].value;return e&&"-_"!==e?this.parseNumber(e):null}},{key:"setValueAt",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return d(m(l.prototype),"setValueAt",this).call(this,e,this.formatValue(this.parseValue(t)),n)}},{key:"parseValue",value:function(e){"string"==typeof e&&(e=e.split(this.delimiter).join("").replace(this.decimalSeparator,"."));e=parseFloat(e);return e=s.default.isNaN(e)?null:String(e).replace(".",this.decimalSeparator)}},{key:"formatValue",value:function(e){return this.component.requireDecimal&&e&&!e.includes(this.decimalSeparator)?"".concat(e).concat(this.decimalSeparator).concat(s.default.repeat("0",this.decimalLimit)):this.component.requireDecimal&&e&&e.includes(this.decimalSeparator)?"".concat(e).concat(s.default.repeat("0",this.decimalLimit-e.split(this.decimalSeparator)[1].length)):e}},{key:"focus",value:function(){var e=this.refs.input[0];e&&(d(m(l.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;d(m(l.prototype),"addFocusBlurEvents",this).call(this,e),this.addEventListener(e,"blur",function(){e.value=t.getValueAsString(t.formatValue(t.parseValue(e.value)))})}}])&&f(t.prototype,n),e&&f(t,e),Object.defineProperty(t,"prototype",{writable:!1}),l}(u.default);t.default=n},function(e,t,n){"use strict";n(8),n(13),n(11),n(70),n(2),n(6),n(7),n(3),n(5),n(4),n(42),n(31),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(18),n(1),n(32),n(40),n(25),n(22),n(14),n(289),n(68),n(50),n(23),n(20),n(16),n(26),n(69),n(309),n(9);var l,c=o(n(10)),r=o(n(217)),s=n(19);function o(e){return e&&e.__esModule?e:{default:e}}function i(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach(function(e){k(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function f(e,t){return p(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||y(e,t)||d()}function d(){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){if(Array.isArray(e))return e}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e){return function(e){if(Array.isArray(e))return a(e)}(e)||v(e)||y(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){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function v(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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,r){return(g="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,e=O(e,t);if(e){if((o=Object.getOwnPropertyDescriptor(e,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")}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(){return(_="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=O(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function O(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=E(e)););return e}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=E(n),t=(e=r?(e=E(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}"undefined"!=typeof window&&(l=n(310));n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&S(t,e);var n,i=P(a);function a(){var e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r))).type="datagrid",e.tabIndex=0,e}return t=a,e=[{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 Grid",key:"dataGrid",type:"datagrid",clearOnHide:!0,input:!0,tree:!0,components:[]}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Data Grid",icon:"th",group:"data",documentation:"/userguide/#datagrid",weight:30,schema:a.schema()}}}],(n=[{key:"init",value:function(){this.components=this.components||[],this.rows=[],this.columns=m(this.component.components),!this.initRows&&c.default.isEqual(this.dataValue,this.emptyValue)||this.createRows(!0),this.visibleColumns={},this.prevHasAddButton=this.hasAddButton(),this.checkColumns()}},{key:"dataValue",get:function(){var e=_(E(a.prototype),"dataValue",this);return e&&Array.isArray(e)?e:this.emptyValue},set:function(e){w(E(a.prototype),"dataValue",e,this,!0)}},{key:"defaultSchema",get:function(){return a.schema()}},{key:"initEmpty",get:function(){return this.component.initEmpty||this.component.noFirstRow}},{key:"initRows",get:function(){return this.builderMode||"defaultValue"===this.path||!this.initEmpty}},{key:"emptyValue",get:function(){return this.initEmpty?[]:[{}]}},{key:"addAnotherPosition",get:function(){return c.default.get(this.component,"addAnotherPosition","bottom")}},{key:"minLength",get:function(){return this.hasRowGroups()?c.default.sum(this.getGroupSizes()):c.default.get(this.component,"validate.minLength",0)}},{key:"defaultValue",get:function(){var e=this.builderMode,t=this.initEmpty;if(e||t&&!this.dataValue.length)return t&&!e?[]:[{}];for(var t=_(E(a.prototype),"defaultValue",this),n=Array.isArray(t)?t:t&&"object"===h(t)?[t]:this.emptyValue,r=n.length;r<this.minLength;r++)n.push({});return n}},{key:"disabled",get:function(){return _(E(a.prototype),"disabled",this)},set:function(t){w(E(a.prototype),"disabled",t,this,!0),c.default.each(this.refs["".concat(this.datagridKey,"-addRow")],function(e){e.disabled=t}),c.default.each(this.refs["".concat(this.datagridKey,"-removeRow")],function(e){e.disabled=t})}},{key:"datagridKey",get:function(){return"datagrid-".concat(this.key)}},{key:"allowReorder",get:function(){return!this.options.readOnly&&c.default.get(this.component,"reorder",!1)}},{key:"iteratableRows",get:function(){var n=this;return this.rows.map(function(e,t){return{components:e,data:n.dataValue[t]}})}},{key:"getRowChunks",value:function(e,t){e=e.reduce(function(e,t){var e=f(e,2),n=e[0],e=e[1],t=n+t;return[t,[].concat(m(e),[[n,t]])]},[0,[]]);return f(e,2)[1].map(function(e){return c.default.slice.apply(c.default,[t].concat(m(e)))})}},{key:"getGroups",value:function(){var e=c.default.get(this.component,"rowGroups",[]),r=c.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,t,n){return u(u({},e),{},k({},r[n],t))},{})}},{key:"getGroupSizes",value:function(){return c.default.map(c.default.get(this.component,"rowGroups",[]),"numberOfRows")}},{key:"hasRowGroups",value:function(){return c.default.get(this,"component.enableRowGroups",!1)&&!this.builderMode}},{key:"totalRowsNumber",value:function(e){return c.default.sum(c.default.map(e,"numberOfRows"))}},{key:"setStaticValue",value:function(e){this.dataValue=c.default.range(e).map(function(){return{}})}},{key:"hasExtraColumn",value:function(){return this.hasRemoveButtons()||this.canAddColumn}},{key:"hasRemoveButtons",value:function(){return!this.builderMode&&!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&this.dataValue.length>c.default.get(this.component,"validate.minLength",0)}},{key:"hasTopSubmit",value:function(){return this.hasAddButton()&&["top","both"].includes(this.addAnotherPosition)}},{key:"hasBottomSubmit",value:function(){return this.hasAddButton()&&["bottom","both"].includes(this.addAnotherPosition)}},{key:"canAddColumn",get:function(){return this.builderMode}},{key:"render",value:function(){var e=this.getColumns(),t=0,n=this.hasRemoveButtons(),t=(this.component.reorder&&t++,n&&t++,this.canAddColumn&&t++,Math.floor(12/(e.length+t)));return _(E(a.prototype),"render",this).call(this,this.renderTemplate("datagrid",{rows:this.getRows(),columns:e,groups:this.hasRowGroups()?this.getGroups():[],visibleColumns:this.visibleColumns,hasToggle:c.default.get(this,"component.groupToggle",!1),hasHeader:this.hasHeader(),hasExtraColumn:this.hasExtraColumn(),hasAddButton:this.hasAddButton(),hasRemoveButtons:n,hasTopSubmit:this.hasTopSubmit(),hasBottomSubmit:this.hasBottomSubmit(),hasGroups:this.hasRowGroups(),numColumns:e.length+(this.hasExtraColumn()?1:0),datagridKey:this.datagridKey,allowReorder:this.allowReorder,builder:this.builderMode,canAddColumn:this.canAddColumn,tabIndex:this.tabIndex,placeholder:this.renderTemplate("builderPlaceholder",{position:this.componentComponents.length}),colWidth:t.toString()}))}},{key:"getRows",value:function(){return this.rows.map(function(e){var n={};return c.default.each(e,function(e,t){n[t]=e.render()}),n})}},{key:"getColumns",value:function(){var t=this;return this.columns.filter(function(e){return!t.visibleColumns.hasOwnProperty(e.key)||t.visibleColumns[e.key]})}},{key:"hasHeader",value:function(){return this.component.components.reduce(function(e,t){return e||(t.label||t.title)&&!t.hideLabel},!1)}},{key:"loadRefs",value:function(e,t){_(E(a.prototype),"loadRefs",this).call(this,e,t),"single"===t.messageContainer&&(t=c.default.last(e.querySelectorAll("[ref=messageContainer]")),this.refs.messageContainer=t||this.refs.messageContainer)}},{key:"attach",value:function(e){var t,r=this,o=(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"),k(t,"messageContainer","single"),t)),this.allowReorder&&(this.refs["".concat(this.datagridKey,"-row")].forEach(function(e,t){e.dragInfo={index:t}}),l&&(this.dragula=l([this.refs["".concat(this.datagridKey,"-tbody")]],{moves:function(e,t,n){var r=n.getAttribute("data-key");if(t.getAttribute("data-key")===r)return n.classList.contains("formio-drag-button")}}).on("drop",this.onReorder.bind(this)),this.dragula.on("cloned",function(r,e){r&&r.children&&e&&e.children&&e.children.forEach(function(e,t){var n=getComputedStyle(e,null);""!==n.cssText?r.children[t].style.cssText=n.cssText:(e=Object.values(n).reduce(function(e,t){return"".concat(e).concat(t,":").concat(n.getPropertyValue(t),";")},""),r.children[t].style.cssText=e)})}))),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)})})),this.getColumns()),i=o.length;return this.rows.forEach(function(e,t){var n=0;o.forEach(function(e){r.attachComponents(r.refs[r.datagridKey][t*i+n],[r.rows[t][e.key]],r.getComponentsContainer()),n++})}),_(E(a.prototype),"attach",this).call(this,e)}},{key:"getComponentsContainer",value:function(){return this.component.components}},{key:"onReorder",value:function(e,t,n,r){var o,i,a;!e.dragInfo||r&&!r.dragInfo?console.warn("There is no Drag Info available for either dragged or sibling element"):(o=(e=e.dragInfo.index)<(r=r?r.dragInfo.index:this.dataValue.length),a=(i=(0,s.fastCloneDeep)(this.dataValue))[e],i.splice(r,0,a),i.splice(o?e:e+1,1),this.setValue(i,{isReordered:!0}),this.rebuild())}},{key:"focusOnNewRowElement",value:function(t){Object.keys(t).find(function(e){e=(0,s.getFocusableElements)(t[e].element);return!(!e||!e[0])&&(e[0].focus(),!0)})}},{key:"addRow",value:function(){var e,t=this,n=this.rows.length,r=(this.dataValue.length===n&&this.dataValue.push({}),this.dataValue),o=this.defaultValue;this.initEmpty&&o[n]?(e=o[n],r[n]=e):e=r[n],this.rows[n]=this.createRowComponents(e,n),this.emit("dataGridAddRow",{component:this.component,row:e}),this.checkConditions(),this.triggerChange(),this.redraw().then(function(){t.focusOnNewRowElement(t.rows[n])})}},{key:"updateComponentsRowIndex",value:function(e,r){var o=this;e.forEach(function(e,t){var n;null!=(n=e.options)&&n.name&&(n="[".concat(o.key,"][").concat(r,"]"),e.options.name=e.options.name.replace("[".concat(o.key,"][").concat(e.rowIndex,"]"),n)),e.rowIndex=r,e.row="".concat(r,"-").concat(t),e.path=o.calculateComponentPath(e)})}},{key:"updateRowsComponents",value:function(n){var r=this;this.rows.slice(n).forEach(function(e,t){r.updateComponentsRowIndex(Object.values(e),n+t)})}},{key:"removeRow",value:function(e){this.splice(e,{isReordered:!0}),this.emit("dataGridDeleteRow",{index:e});var t=f(this.rows.splice(e,1),1)[0];this.removeRowComponents(t),this.updateRowsComponents(e),this.setValue(this.dataValue,{isReordered:!0}),this.redraw()}},{key:"removeRowComponents",value:function(e){var t=this;c.default.each(e,function(e){return t.removeComponent(e)})}},{key:"getRowValues",value:function(){return this.dataValue}},{key:"setRowComponentsData",value:function(e,t){c.default.each(this.rows[e],function(e){e.data=t})}},{key:"createRows",value:function(e,n){var r=this,o=!1,t=this.getRowValues(),t=(t.forEach(function(e,t){!n&&r.rows[t]?r.setRowComponentsData(t,e):(r.rows[t]&&r.removeRowComponents(r.rows[t]),r.rows[t]=r.createRowComponents(e,t),o=!0)}),this.rows.splice(t.length)),i=!!t.length;return i&&t.forEach(function(e){return r.removeRowComponents(e)}),e||!o&&!i||this.redraw(),o}},{key:"createRowComponents",value:function(r,o){var i=this,a={};return this.tabIndex=0,this.component.components.map(function(e,t){var n=c.default.clone(i.options),n=(n.name+="[".concat(o,"]"),n.row="".concat(o,"-").concat(t),t=i.builderMode?(e.id=e.id+o,e):u(u({},e),{},{id:e.id+o}),i.createComponent(t,n,r));n.parentDisabled=!!i.disabled,n.rowIndex=o,n.inDataGrid=!0,t.tabindex&&parseInt(t.tabindex)>i.tabIndex&&(i.tabIndex=parseInt(t.tabindex)),a[e.key]=n}),a}},{key:"checkValidity",value:function(e,t,n,r){if(e=e||this.rootValue,n=n||this.data,!this.checkCondition(n,e))return this.setCustomValidity(""),!0;if(!this.checkComponentValidity(e,t,n,{silentCheck:r}))return!1;n=this.checkRows("checkValidity",e,t,!0,r);return this.checkModal(n,t),n}},{key:"checkColumns",value:function(o){var i=this,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},t=(o=o||this.rootValue,!1);if(!this.rows||!this.rows.length)return{rebuild:!1,show:!1};if(this.builderMode)return{rebuild:!1,show:!0};var l={},s=!1,u=this.dataValue,e=(this.rows.forEach(function(e,r){c.default.each(e,function(e,t){var n;e&&"function"==typeof e.checkConditions&&(n=void 0===l[t],l[t]=!!l[t]||e.checkConditions(o,a,u[r])&&"hidden"!==e.type,e.component.logic&&n&&(n=c.default.findIndex(i.columns,["key",t]),c.default.isEqual(i.columns[n],e.component)||(s=!0,i.columns[n]=e.component)))})}),!c.default.isEqual(l,this.visibleColumns)||s);return c.default.each(l,function(e){t|=e}),this.visibleColumns=l,{rebuild:e,show:t}}},{key:"checkComponentConditions",value:function(e,t,n){var r=this.visible;if(!_(E(a.prototype),"checkComponentConditions",this).call(this,e,t,n))return!1;n=this.checkColumns(e,t),e=n.rebuild,t=n.show;return!e&&r||this.createRows(!1,e),t}},{key:"setValue",value:function(n){var r=this,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!n)return this.dataValue=this.defaultValue,this.createRows(),!1;!(n=Array.isArray(n)?n:"object"===h(n)?[n]:(this.createRows(),[{}]))||n.length||this.initEmpty||n.push({});var e=o.fromSubmission&&!c.default.isEqual(n,this.emptyValue),t=this.hasChanged(n,this.dataValue);return this.dataValue=n,(this.initRows||e)&&!this.createRows()&&t&&this.redraw(),this.componentModal&&e&&this.componentModal.setValue(n),this.rows.forEach(function(e,t){n.length<=t||c.default.each(e,function(e){e.rowIndex=t,r.setNestedValue(e,n[t],o)})}),this.updateOnChange(o,t),t}},{key:"restoreComponentsContext",value:function(){var n=this;this.rows.forEach(function(e,t){return c.default.forIn(e,function(e){return e.data=n.dataValue[t]})})}},{key:"getComponent",value:function(e,r){e=Array.isArray(e)?e:[e];var t,e=p(e=e)||v(e)||y(e)||d(),o=e[0],i=e.slice(1),a=[];return c.default.isNumber(o)&&i.length?(t=i.pop(),(a=this.rows[o][t])||Object.entries(this.rows[o]).forEach(function(e){var e=f(e,2)[1];"getComponent"in e&&((e=e.getComponent([t],r))&&(a=e))}),a&&c.default.isFunction(r)&&r(a,this.getComponents()),i.length&&"getComponent"in a?a.getComponent(i,r):a):c.default.isString(o)?(this.everyComponent(function(e,t){var n;e.component.key===o&&(n=e,0<i.length&&"getComponent"in e?n=e.getComponent(i,r):r&&r(e,t),a=a.concat(n))}),0<a.length?a:null):a}},{key:"toggleGroup",value:function(e,t){e.classList.toggle("collapsed"),c.default.each(this.refs.chunks[t],function(e){e.classList.toggle("hidden")})}}])&&b(t.prototype,n),e&&b(t,e),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.default);t.default=n},function(e,t,n){var r=n(15),o=n(290).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},function(e,t,n){!function(r){e.exports=function r(o,i,a){function l(t,e){if(!i[t]){var n;if(!o[t])throw(n=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",n;n=i[t]={exports:{}},o[t][0].call(n.exports,function(e){return l(o[t][1][e]||e)},n,n.exports,r,o,i,a)}return i[t].exports}for(var e=0;e<a.length;e++)l(a[e]);return l}({1:[function(e,t,n){"use strict";var r={},o="(?:^|\\s)",i="(?:\\s|$)";function a(e){var t=r[e];return t?t.lastIndex=0:r[e]=t=new RegExp(o+e+i,"g"),t}t.exports={add:function(e,t){var n=e.className;n.length?a(t).test(n)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(a(t)," ").trim()}}},{}],2:[function(e,t,n){!function(o){"use strict";var N=e("contra/emitter"),F=e("crossvent"),U=e("./classes"),z=document,B=z.documentElement;function H(e,t,n,r){o.navigator.pointerEnabled?F[t](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[n],r):o.navigator.msPointerEnabled?F[t](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[n],r):(F[t](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[n],r),F[t](e,n,r))}function q(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;e=e.button;return void 0!==e?1&e?1:2&e?3:4&e?2:0:void 0}function W(e,t){return void 0!==o[t]?o[t]:(B.clientHeight?B:z.body)[e]}function K(e,t,n){var r=(e=e||{}).className||"";return e.className+=" gu-hide",t=z.elementFromPoint(t,n),e.className=r,t}function Y(){return!1}function G(){return!0}function $(e){return e.width||e.right-e.left}function J(e){return e.height||e.bottom-e.top}function Q(e){return e.parentNode===z?null:e.parentNode}function Z(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||function e(t){if(!t)return!1;if("false"===t.contentEditable)return!1;if("true"===t.contentEditable)return!0;return e(Q(t))}(e)}function X(t){return t.nextElementSibling||function(){var e=t;for(;e=e.nextSibling,e&&1!==e.nodeType;);return e}()}function ee(e,t){var t=(t=t).targetTouches&&t.targetTouches.length?t.targetTouches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,n={pageX:"clientX",pageY:"clientY"};return t[e=e in n&&!(e in t)&&n[e]in t?n[e]:e]}t.exports=function(e,t){1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var u,c,f,d,p,r,o,h,m,y,n,i,v=null,b=t||{},g=(void 0===b.moves&&(b.moves=G),void 0===b.accepts&&(b.accepts=G),void 0===b.invalid&&(b.invalid=function(){return!1}),void 0===b.containers&&(b.containers=e||[]),void 0===b.isContainer&&(b.isContainer=Y),void 0===b.copy&&(b.copy=!1),void 0===b.copySortSource&&(b.copySortSource=!1),void 0===b.revertOnSpill&&(b.revertOnSpill=!1),void 0===b.removeOnSpill&&(b.removeOnSpill=!1),void 0===b.direction&&(b.direction="vertical"),void 0===b.ignoreInputTextSelection&&(b.ignoreInputTextSelection=!0),void 0===b.mirrorContainer&&(b.mirrorContainer=z.body),N({containers:b.containers,start:function(e){e=_(e);e&&O(e)},end:S,cancel:C,remove:j,destroy:function(){l(!0),E({})},canMove:function(e){return!!_(e)},dragging:!1}));return!0===b.removeOnSpill&&g.on("over",function(e){U.rm(e,"gu-hide")}).on("out",function(e){g.dragging&&U.add(e,"gu-hide")}),l(),g;function a(e){return-1!==g.containers.indexOf(e)||b.isContainer(e)}function l(e){e=e?"remove":"add";H(B,e,"mousedown",L),H(B,e,"mouseup",E)}function s(e){H(B,e?"remove":"add","mousemove",V)}function w(e){e=e?"remove":"add";F[e](B,"selectstart",k),F[e](B,"click",k)}function k(e){i&&e.preventDefault()}function L(e){var t,n;r=e.clientX,o=e.clientY,1!==q(e)||e.metaKey||e.ctrlKey||(n=_(t=e.target))&&(i=n,s(),"mousedown"===e.type&&(Z(t)?t.focus():e.preventDefault()))}function V(e){if(i)if(0===q(e))E({});else if(!(void 0!==e.clientX&&Math.abs(e.clientX-r)<=(b.slideFactorX||0)&&void 0!==e.clientY&&Math.abs(e.clientY-o)<=(b.slideFactorY||0))){if(b.ignoreInputTextSelection){var t=ee("clientX",e)||0,n=ee("clientY",e)||0;if(Z(z.elementFromPoint(t,n)))return}var t=i,n=(s(!0),w(),S(),O(t),function(e){e=e.getBoundingClientRect();return{left:e.left+W("scrollLeft","pageXOffset"),top:e.top+W("scrollTop","pageYOffset")}}(f));d=ee("pageX",e)-n.left,p=ee("pageY",e)-n.top,U.add(y||f,"gu-transit"),u||(t=f.getBoundingClientRect(),(u=f.cloneNode(!0)).style.width=$(t)+"px",u.style.height=J(t)+"px",U.rm(u,"gu-transit"),U.add(u,"gu-mirror"),b.mirrorContainer.appendChild(u),H(B,"add","mousemove",T),U.add(b.mirrorContainer,"gu-unselectable"),g.emit("cloned",u,f,"mirror")),T(e)}}function _(e){if(!(g.dragging&&u||a(e))){for(var t=e;Q(e)&&!1===a(Q(e));){if(b.invalid(e,t))return;if(!(e=Q(e)))return}var n=Q(e);if(n)if(!b.invalid(e,t))if(b.moves(e,n,t,X(e)))return{item:e,source:n}}}function O(e){var t,n;t=e.item,n=e.source,("boolean"==typeof b.copy?b.copy:b.copy(t,n))&&(y=e.item.cloneNode(!0),g.emit("cloned",y,e.item,"copy")),c=e.source,f=e.item,h=m=X(e.item),g.dragging=!0,g.emit("drag",f,c)}function S(){var e;g.dragging&&x(e=y||f,Q(e))}function P(){s(!(i=!1)),w(!0)}function E(e){var t,n;P(),g.dragging&&(t=y||f,n=ee("clientX",e)||0,e=ee("clientY",e)||0,(n=M(K(u,n,e),n,e))&&(y&&b.copySortSource||!y||n!==c)?x(t,n):(b.removeOnSpill?j:C)())}function x(e,t){var n=Q(e);y&&b.copySortSource&&t===c&&n.removeChild(f),A(t)?g.emit("cancel",e,c,c):g.emit("drop",e,t,c,m),R()}function j(){var e,t;g.dragging&&((t=Q(e=y||f))&&t.removeChild(e),g.emit(y?"cancel":"remove",e,t,c),R())}function C(e){var t,n,r;g.dragging&&(e=0<arguments.length?e:b.revertOnSpill,!1===(r=A(n=Q(t=y||f)))&&e&&(y?n&&n.removeChild(y):c.insertBefore(t,h)),r||e?g.emit("cancel",t,c,c):g.emit("drop",t,n,c,m),R())}function R(){var e=y||f;P(),u&&(U.rm(b.mirrorContainer,"gu-unselectable"),H(B,"remove","mousemove",T),Q(u).removeChild(u),u=null),e&&U.rm(e,"gu-transit"),n&&clearTimeout(n),g.dragging=!1,v&&g.emit("out",e,v,c),g.emit("dragend",e),c=f=y=h=m=n=v=null}function A(e,t){t=void 0!==t?t:u?m:X(y||f);return e===c&&t===h}function M(t,n,r){for(var o=t;o&&!function(){if(!1===a(o))return;var e=D(o,t),e=I(o,e,n,r);if(A(o,e))return 1;return b.accepts(f,o,c,e)}();)o=Q(o);return o}function T(e){if(u){e.preventDefault();var t=ee("clientX",e)||0,e=ee("clientY",e)||0,n=t-d,r=e-p,o=(u.style.left=n+"px",u.style.top=r+"px",y||f),n=K(u,t,e),r=M(n,t,e),i=null!==r&&r!==v,a=(!i&&null!==r||(v&&s("out"),v=r,i&&s("over")),Q(o));if(r===c&&y&&!b.copySortSource)a&&a.removeChild(o);else{var l,n=D(r,n);if(null!==n)l=I(r,n,t,e);else{if(!0!==b.revertOnSpill||y)return void(y&&a&&a.removeChild(o));l=h,r=c}(null===l&&i||l!==o&&l!==X(o))&&(m=l,r.insertBefore(o,l),g.emit("shadow",o,r,c))}}function s(e){g.emit(e,o,v,c)}}function D(e,t){for(var n=t;n!==e&&Q(n)!==e;)n=Q(n);return n===B?null:n}function I(o,t,i,a){var l="horizontal"===b.direction;return(t!==o?function(){var e=t.getBoundingClientRect();if(l)return n(i>e.left+$(e)/2);return n(a>e.top+J(e)/2)}:function(){var e,t,n,r=o.children.length;for(e=0;e<r;e++){if(t=o.children[e],n=t.getBoundingClientRect(),l&&n.left+n.width/2>i)return t;if(!l&&n.top+n.height/2>a)return t}return null})();function n(e){return e?X(t):t}}}}.call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./classes":1,"contra/emitter":5,crossvent:6}],3:[function(e,t,n){t.exports=function(e,t){return Array.prototype.slice.call(e,t)}},{}],4:[function(e,t,n){"use strict";var r=e("ticky");t.exports=function(e,t,n){e&&r(function(){e.apply(n||null,t||[])})}},{ticky:10}],5:[function(e,t,n){"use strict";var l=e("atoa"),s=e("./debounce");t.exports=function(o,e){var i=e||{},a={};return(o=void 0===o?{}:o).on=function(e,t){return a[e]?a[e].push(t):a[e]=[t],o},o.once=function(e,t){return t._once=!0,o.on(e,t),o},o.off=function(e,t){var n=arguments.length;if(1===n)delete a[e];else if(0===n)a={};else{n=a[e];if(!n)return o;n.splice(n.indexOf(t),1)}return o},o.emit=function(){var e=l(arguments);return o.emitterSnapshot(e.shift()).apply(this,e)},o.emitterSnapshot=function(r){var e=(a[r]||[]).slice(0);return function(){var t=l(arguments),n=this||o;if("error"!==r||!1===i.throws||e.length)return e.forEach(function(e){i.async?s(e,t,n):e.apply(n,t),e._once&&o.off(r,e)}),o;throw 1===t.length?t[0]:t}},o}},{"./debounce":4,atoa:3}],6:[function(n,u,e){!function(o){"use strict";var r=n("custom-event"),i=n("./eventmap"),a=o.document,e=function(e,t,n,r){return e.addEventListener(t,n,r)},t=function(e,t,n,r){return e.removeEventListener(t,n,r)},l=[];function s(e,t,n){e=function(e,t,n){var r,o;for(r=0;r<l.length;r++)if((o=l[r]).element===e&&o.type===t&&o.fn===n)return r}(e,t,n);if(e)return t=l[e].wrapper,l.splice(e,1),t}o.addEventListener||(e=function(e,t,n){return e.attachEvent("on"+t,function(e,t,n){var r=s(e,t,n)||function(n,r){return function(e){var t=e||o.event;t.target=t.target||t.srcElement,t.preventDefault=t.preventDefault||function(){t.returnValue=!1},t.stopPropagation=t.stopPropagation||function(){t.cancelBubble=!0},t.which=t.which||t.keyCode,r.call(n,t)}}(e,n);return l.push({wrapper:r,element:e,type:t,fn:n}),r}(e,t,n))},t=function(e,t,n){n=s(e,t,n);if(n)return e.detachEvent("on"+t,n)}),u.exports={add:e,remove:t,fabricate:function(e,t,n){n=-1===i.indexOf(t)?new r(t,{detail:n}):function(){var e;a.createEvent?(e=a.createEvent("Event")).initEvent(t,!0,!0):a.createEventObject&&(e=a.createEventObject());return e}();e.dispatchEvent?e.dispatchEvent(n):e.fireEvent("on"+t,n)}}}.call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./eventmap":7,"custom-event":8}],7:[function(e,o,t){!function(e){"use strict";var t=[],n="",r=/^on/;for(n in e)r.test(n)&&t.push(n.slice(2));o.exports=t}.call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(e,n,t){!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){}}()?t:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}}.call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(e,t,n){var r,o,t=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}function l(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return(r=setTimeout)(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}var s,u=[],c=!1,f=-1;function d(){c&&s&&(c=!1,s.length?u=s.concat(u):f=-1,u.length&&p())}function p(){if(!c){for(var e=l(d),t=(c=!0,u.length);t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,c=!1,!function(t){if(o===clearTimeout)return clearTimeout(t);if((o===a||!o)&&clearTimeout)return(o=clearTimeout)(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}t.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=m,t.addListener=m,t.once=m,t.off=m,t.removeListener=m,t.removeAllListeners=m,t.emit=m,t.prependListener=m,t.prependOnceListener=m,t.listeners=function(e){return[]},t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},{}],10:[function(e,n,t){!function(t){var e="function"==typeof t?function(e){t(e)}:function(e){setTimeout(e,0)};n.exports=e}.call(this,e("timers").setImmediate)},{timers:11}],11:[function(s,e,u){!function(e,t){var r=s("process/browser.js").nextTick,n=Function.prototype.apply,o=Array.prototype.slice,i={},a=0;function l(e,t){this._id=e,this._clearFn=t}u.setTimeout=function(){return new l(n.call(setTimeout,window,arguments),clearTimeout)},u.setInterval=function(){return new l(n.call(setInterval,window,arguments),clearInterval)},u.clearTimeout=u.clearInterval=function(e){e.close()},l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(window,this._id)},u.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},u.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},u._unrefActive=u.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},u.setImmediate="function"==typeof e?e:function(e){var t=a++,n=!(arguments.length<2)&&o.call(arguments,1);return i[t]=!0,r(function(){i[t]&&(n?e.apply(null,n):e.call(null),u.clearImmediate(t))}),t},u.clearImmediate="function"==typeof t?t:function(e){delete i[e]}}.call(this,s("timers").setImmediate,s("timers").clearImmediate)},{"process/browser.js":9,timers:11}]},{},[2])(2)}.call(this,n(54))},function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){var r=n(66),o=n(73),i=RangeError;e.exports=function(e){if(void 0===e)return 0;var e=r(e),t=o(e);if(e!==t)throw i("Wrong length or index");return t}},function(e,t,n){"use strict";var a=n(46),l=n(89),s=n(49);e.exports=function(e){for(var t=a(this),n=s(t),r=arguments.length,o=l(1<r?arguments[1]:void 0,n),r=2<r?arguments[2]:void 0,i=void 0===r?n:l(r,n);o<i;)t[o++]=e;return t}},function(e,t,n){var r=n(872),o=RangeError;e.exports=function(e,t){e=r(e);if(e%t)throw o("Wrong offset");return e}},function(e,t,n){function r(u){return function(e,t,n,r){c(t);var o=f(e),i=d(o),a=p(o),l=u?a-1:0,s=u?-1:1;if(n<2)for(;;){if(l in i){r=i[l],l+=s;break}if(l+=s,u?l<0:a<=l)throw h("Reduce of empty array with no initial value")}for(;u?0<=l:l<a;l+=s)l in i&&(r=t(r,i[l],l,o));return r}}var c=n(58),f=n(46),d=n(117),p=n(49),h=TypeError;e.exports={left:r(!1),right:r(!0)}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(16),n(26),n(302),n(76),n(23),n(1),n(14),n(69),n(9);var l=r(n(10)),i=r(n(53)),s=r(n(213)),u=r(n(197)),c=r(n(24)),f=n(19),d=n(36),p=r(n(135));function r(e){return e&&e.__esModule?e:{default: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(){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=b(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=b(n),t=(e=r?(e=b(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e);var n,r=v(a);function a(){var e=this,t=a;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=a,e=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{label:"Form",type:"form",key:"form",src:"",reference:!0,form:"",path:"",tableView:!0}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Nested Form",icon:"wpforms",group:"premium",documentation:"/userguide/#form",weight:110,schema:a.schema()}}}],(n=[{key:"init",value:function(){var e,t;return m(b(a.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=d.GlobalFormio.getBaseUrl(),(0,f.isMongoId)(this.component.project)&&(this.formSrc+="/project"),this.formSrc+="/".concat(this.component.project)):this.formSrc=d.GlobalFormio.getProjectUrl(),this.options.project=this.formSrc,this.component.form?(0,f.isMongoId)(this.component.form)?this.formSrc+="/form/".concat(this.component.form):this.formSrc+="/".concat(this.component.form):this.component.path&&(this.formSrc+="/".concat(this.component.path))),!this.formSrc&&this.options.formio&&(e=this.options.formio.formsUrl,this.component.form&&(0,f.isMongoId)(this.component.form)?this.formSrc="".concat(e,"/").concat(this.component.form):(t=this.component.path||this.component.form,this.formSrc="".concat(e.replace(/\/form$/,""),"/").concat(t))),this.builderMode&&this.component.hasOwnProperty("formRevision")&&(this.component.revision=this.component.formRevision,delete this.component.formRevision),(this.component.revision||0===this.component.revision||this.component.formRevision||0===this.component.formRevision||this.component.revisionId)&&this.setFormRevision(this.component.revisionId||this.component.revision||this.component.formRevision),this.createSubForm()}},{key:"dataReady",get:function(){return this.subFormReady||c.default.resolve()}},{key:"defaultValue",get:function(){return this.subForm?m(b(a.prototype),"defaultValue",this):null}},{key:"defaultSchema",get:function(){return a.schema()}},{key:"emptyValue",get:function(){return{data:{}}}},{key:"ready",get:function(){return this.subFormReady||c.default.resolve()}},{key:"useOriginalRevision",get:function(){var e;return(null==(e=this.component)?void 0:e.useOriginalRevision)&&!(null==(e=this.formObj)||!e.revisions)}},{key:"setFormRevision",value:function(e){this.formSrc=this.formSrc.replace(/\/v\/[0-9a-z]+/,"");var t=Number.parseInt(e);isNaN(t)?this.subFormRevision=void 0:(this.subFormRevision=e,this.formSrc+="/v/".concat(e))}},{key:"getComponent",value:function(e,t){"data"===(e=(0,f.getArrayFromComponentPath)(e))[0]&&e.shift();var n="".concat(this.path,".data.").concat((0,f.getStringFromComponentPath)(e));if(this.subForm)return this.subForm.getComponent(e,t,n)}},{key:"getSubOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return e.parentPath="".concat(this.path,".data."),e.events=this.createEmitter(),l.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=l.default.clone(this.options.buttonSettings)),this.options.viewAsHtml&&(e.viewAsHtml=this.options.viewAsHtml),this.options.language&&(e.language=this.options.language),this.options.template&&(e.template=this.options.template),this.options.templates&&(e.templates=this.options.templates),this.options.renderMode&&(e.renderMode=this.options.renderMode),this.options.attachMode&&(e.attachMode=this.options.attachMode),this.options.iconset&&(e.iconset=this.options.iconset),this.options.fileService&&(e.fileService=this.options.fileService),this.options.onChange&&(e.onChange=this.options.onChange)),e}},{key:"render",value:function(){if(this.builderMode)return m(b(a.prototype),"render",this).call(this,this.component.label||"Nested form");var e=this.subForm?this.subForm.render():this.renderTemplate("loading");return m(b(a.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(n){var r=this;return this.builderMode?m(b(a.prototype),"attach",this).call(this,n):m(b(a.prototype),"attach",this).call(this,n).then(function(){return!r.isSubFormLazyLoad()||r.hasLoadedForm||r.subFormLoading||r.createSubForm(!0),r.subFormReady.then(function(){var e,t;r.empty(n),r.options.builder?r.setContent(n,r.ce("div",{class:"text-muted text-center p-2"},r.text(r.formObj.title))):(r.setContent(n,r.render()),r.subForm&&(r.isNestedWizard&&(n=r.root.element),r.subForm.attach(n),r.valueChanged=r.hasSetValue,r.valueChanged||"submitted"===r.dataValue.state?r.restoreValue():r.setDefaultValue()),!r.builderMode&&r.component.modalEdit&&(t=(e=!!r.componentModal&&r.componentModal.isOpened)?r.componentModal.currentValue:r.dataValue,r.componentModal=new s.default(r,n,e,t),r.setOpenModalElement()))})})}},{key:"detach",value:function(){this.subForm&&this.subForm.detach(),m(b(a.prototype),"detach",this).call(this)}},{key:"currentForm",get:function(){return this._currentForm},set:function(e){var t=this;this._currentForm=e,this.subForm&&this.subForm.getComponents().forEach(function(e){e.currentForm=t})}},{key:"hasLoadedForm",get:function(){return this.formObj&&this.formObj.components&&Array.isArray(this.formObj.components)&&this.formObj.components.length}},{key:"isRevisionChanged",get:function(){return l.default.isNumber(this.subFormRevision)&&l.default.isNumber(this.formObj._vid)&&this.formObj._vid!==this.subFormRevision}},{key:"destroy",value:function(){this.subForm&&(this.subForm.destroy(),this.subForm=null,this.subFormReady=null),m(b(a.prototype),"destroy",this).call(this)}},{key:"redraw",value:function(){return this.subForm&&(this.subForm.form=this.formObj,this.setSubFormDisabled(this.subForm)),m(b(a.prototype),"redraw",this).call(this)}},{key:"everyComponent",value:function(){var e;this.subForm&&(e=this.subForm).everyComponent.apply(e,arguments)}},{key:"setSubFormDisabled",value:function(e){e.disabled=this.disabled}},{key:"updateSubWizards",value:function(e){var t,n=this;this.isNestedWizard&&null!=(t=this.root)&&t.subWizards&&"wizard"===(null==e||null==(t=e._form)?void 0:t.display)&&(-1!==(t=this.root.subWizards.findIndex(function(e){return e.component.form===n.component.form}))?this.root.subWizards[t]=this:this.root.subWizards.push(this),this.emit("subWizardsUpdated",e))}},{key:"createSubForm",value:function(e){var t=this;return this.subFormReady=this.loadSubForm(e).then(function(e){if(e)return(0,f.eachComponent)(e.components,function(e){t.hideSubmitButton(e)}),t.subForm&&t.subForm.destroy(),new p.default(e,t.getSubOptions()).ready.then(function(e){return t.subForm=e,((t.subForm.currentForm=t).subForm.parent=t).subForm.parentVisible=t.visible,t.subForm.on("change",function(){t.subForm&&(t.dataValue=t.subForm.getValue(),t.triggerChange({noEmit:!0}))}),t.subForm.url=t.formSrc,t.subForm.nosubmit=!0,t.subForm.root=t.root,t.subForm.localRoot=t.isNestedWizard?t.localRoot:t.subForm,t.restoreValue(),t.valueChanged=t.hasSetValue,t.onChange(),t.subForm})}).then(function(e){return t.updateSubWizards(e),e}),this.subFormReady}},{key:"hideSubmitButton",value:function(e){"button"!==e.type||"submit"!==e.action&&e.action||(e.hidden=!0)}},{key:"loadSubForm",value:function(e){var t=this;return this.builderMode||this.isHidden()||this.isSubFormLazyLoad()&&!e?c.default.resolve():this.hasLoadedForm&&!this.isRevisionChanged?(this.root&&this.root.form&&this.root.form.config&&!this.formObj.config&&(this.formObj.config=this.root.form.config),c.default.resolve(this.formObj)):this.formSrc?(this.subFormLoading=!0,new d.GlobalFormio(this.formSrc).loadForm({params:{live:1}}).then(function(e){return t.formObj=e,t.subFormLoading=!1,e}).catch(function(e){return console.log(e),null})):c.default.resolve()}},{key:"subFormData",get:function(){var e;return(null==(e=this.dataValue)?void 0:e.data)||{}}},{key:"checkComponentValidity",value:function(e,t,n,r){var o=(r=r||{}).silentCheck||!1;return this.subForm?this.subForm.checkValidity(this.subFormData,t,null,o):m(b(a.prototype),"checkComponentValidity",this).call(this,e,t,n,r)}},{key:"checkComponentConditions",value:function(e,t,n){var r=this,e=m(b(a.prototype),"checkComponentConditions",this).call(this,e,t,n);if(e){if(this.subForm)return this.subForm.checkConditions(this.subFormData);this.subFormReady&&this.subFormReady.then(function(){if(r.subForm)return r.subForm.checkConditions(r.subFormData)})}return e}},{key:"calculateValue",value:function(e,t,n){return this.subForm?this.subForm.calculateValue(this.subFormData,t):m(b(a.prototype),"calculateValue",this).call(this,e,t,n)}},{key:"setPristine",value:function(e){m(b(a.prototype),"setPristine",this).call(this,e),this.subForm&&this.subForm.setPristine(e)}},{key:"shouldSubmit",get:function(){return this.subFormReady&&(!this.component.hasOwnProperty("reference")||this.component.reference)&&!this.isHidden()}},{key:"getSubFormData",value:function(){return"pdf"===l.default.get(this.subForm,"form.display")?this.subForm.getSubmission():c.default.resolve(this.dataValue)}},{key:"submitSubForm",value:function(t){var n=this;return this.shouldSubmit?this.subFormReady.then(function(){return n.subForm?(n.subForm.nosubmit=!1,n.subForm.submitForm().then(function(e){return n.subForm.loading=!1,n.subForm.showAllErrors=!1,n.dataValue=e.submission,n.dataValue}).catch(function(e){return n.subForm.showAllErrors=!0,t?(n.subForm.onSubmissionError(e),c.default.reject(e)):{}})):n.dataValue}):this.getSubFormData()}},{key:"beforePage",value:function(e){var t=this;return e?this.submitSubForm(!0).then(function(){return m(b(a.prototype),"beforePage",t).call(t,e)}):m(b(a.prototype),"beforePage",this).call(this,e)}},{key:"beforeSubmit",value:function(){var e,t=this,n=this.dataValue;return!(n&&n._id&&n.form)||null!=(e=this.subForm)&&e.wizard?this.submitSubForm(!1).then(function(){return t.dataValue}).then(function(){return m(b(a.prototype),"beforeSubmit",t).call(t)}):(this.dataValue=n,c.default.resolve(this.dataValue))}},{key:"isSubFormLazyLoad",value:function(){var e;return"wizard"===(null==(e=this.root)||null==(e=e._form)?void 0:e.display)&&this.component.lazyLoad}},{key:"isHidden",value:function(){return!this.visible||!m(b(a.prototype),"checkConditions",this).call(this,this.rootValue)}},{key:"setValue",value:function(e){var t,n,r=this,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=m(b(a.prototype),"setValue",this).call(this,e,o);return this.valueChanged=!0,this.subForm&&(n=e._frid?"_frid":"_vid",this.useOriginalRevision&&l.default.isNumber(e[n])&&l.default.isNumber(null==(t=this.subForm.form)?void 0:t[n])&&e._fvid!==this.subForm.form[n]?(this.setFormRevision(e._frid||e._fvid),this.createSubForm().then(function(){r.attach(r.element)})):this.setSubFormValue(e,o)),i}},{key:"setSubFormValue",value:function(e,t){var n;e&&e._id&&this.subForm.formio&&l.default.isEmpty(e.data)?(n=e.form||this.formObj.form||this.component.form,n="".concat(this.subForm.formio.formsUrl,"/").concat(n,"/submission/").concat(e._id),this.subForm.setUrl(n,this.options),this.subForm.loadSubmission()):this.subForm.setValue(e,t)}},{key:"isEmpty",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.dataValue;return null===e||l.default.isEqual(e,this.emptyValue)||this.areAllComponentsEmpty(e.data)&&!e._id}},{key:"areAllComponentsEmpty",value:function(n){var r=!0;return this.subForm?this.subForm.everyComponent(function(e){var t=l.default.get(n,e.key);r&=e.isEmpty(t)}):r=!1,r}},{key:"getValue",value:function(){return this.subForm?this.subForm.getValue():this.dataValue}},{key:"errors",get:function(){var e=m(b(a.prototype),"errors",this);return e=this.subForm?e.concat(this.subForm.errors):e}},{key:"updateSubFormVisibility",value:function(){this.subForm&&(this.subForm.parentVisible=this.visible)}},{key:"isNestedWizard",get:function(){var e;return"wizard"===(null==(e=this.subForm)||null==(e=e._form)?void 0:e.display)&&"wizard"===(null==(e=this.parent)||null==(e=e.parent)||null==(e=e._form)?void 0:e.display)}},{key:"visible",get:function(){return m(b(a.prototype),"visible",this)},set:function(e){var t=this,n=this.isNestedWizard;if(this._visible!==e){if(this._visible=e,!this.subForm&&e)return this.createSubForm(),this.subFormReady.then(function(){t.updateSubFormVisibility(),t.clearOnHide()}),void this.redraw();this.updateSubFormVisibility(),this.clearOnHide(),n?this.rebuild():this.redraw()}!e&&n&&this.root.redraw()}},{key:"parentVisible",get:function(){return m(b(a.prototype),"parentVisible",this)},set:function(e){var t=this;this._parentVisible!==e&&(this._parentVisible=e,this.clearOnHide(),!this.subForm&&e?(this.createSubForm(),this.subFormReady.then(function(){t.updateSubFormVisibility()})):this.updateSubFormVisibility(),this.redraw())}},{key:"isInternalEvent",value:function(e){switch(e){case"focus":case"blur":case"componentChange":case"componentError":case"error":case"formLoad":case"languageChanged":case"render":case"checkValidity":case"initialized":case"submit":case"submitButton":case"nosubmit":case"updateComponent":case"submitDone":case"submissionDeleted":case"requestDone":case"nextPage":case"prevPage":case"wizardNavigationClicked":case"updateWizardNav":case"restoreDraft":case"saveDraft":case"saveComponent":case"pdfUploaded":return!0;default:return!1}}},{key:"createEmitter",value:function(){var e=new u.default,i=e.emit,a=this;return e.emit=function(e){for(var t=e.replace("".concat(a.options.namespace,"."),""),n=arguments.length,r=new Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];i.call.apply(i,[this,e].concat(r)),a.isInternalEvent(t)||a.emit.apply(a,[t].concat(r))},e}},{key:"deleteValue",value:function(){m(b(a.prototype),"setValue",this).call(this,null,{noUpdateEvent:!0,noDefault:!0}),this.unset()}}])&&h(t.prototype,n),e&&h(t,e),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.default);t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(10)),r=a(n(318)),i=a(n(114)),n=a(n(319));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function")}var e,t,r;return e=n,r=[{key:"addDisplay",value:function(e,t){n.displays[e]=t}},{key:"addDisplays",value:function(e){n.displays=o.default.merge(n.displays,e)}},{key:"getDisplay",value:function(e){return n.displays[e]}},{key:"getDisplays",value:function(){return n.displays}}],(t=null)&&l(e.prototype,t),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();t.default=s,t=s,s="displays",r={pdf:r.default,webform:i.default,wizard:n.default},s in t?Object.defineProperty(t,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[s]=r},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(23),n(2),n(22),n(14),n(31),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(1),n(214),n(50),n(39),n(20),n(51),n(9);var a=i(n(24)),l=n(36),r=i(n(114)),s=n(19);function i(e){return e&&e.__esModule?e:{default:e}}function u(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function c(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?u(Object(o),!0).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):u(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=m(n),t=(e=r?(e=m(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e);var n,r=h(i);function i(e,t){if(this instanceof i)return t.display="pdf",(e=r.call(this,e,t)).components=[],e;throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"init",value:function(){var n=this;d(m(i.prototype),"init",this).call(this),this.on("iframe-submission",function(e){return n.setValue(e,{fromIframe:!0})},!0),this.on("iframe-change",function(e){return n.setValue(e,{fromIframe:!0})},!0),this.on("iframe-getIframePositions",function(e){var t=document.getElementById("iframe-".concat(e.formId));t&&(t=t.getBoundingClientRect(),n.postMessage({name:"iframePositions",data:{formId:e.formId,iframe:{top:t.top},scrollY:window.scrollY||window.pageYOffset}}))}),this.on("iframe-ready",function(){return n.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?a.default.resolve():d(m(i.prototype),"redraw",this).call(this)}},{key:"rebuild",value:function(){return this.builderMode&&this.component.components?(this.destroyComponents(),this.addComponents(),a.default.resolve()):(this.postMessage({name:"redraw"}),d(m(i.prototype),"rebuild",this).call(this))}},{key:"attachComponents",value:function(e,t,n){return t=t||this.components,n=n||this.component.components,e=this.hook("attachComponents",e,t,n,this),Promise.resolve()}},{key:"attach",value:function(t){var n=this;return d(m(i.prototype),"attach",this).call(this,t).then(function(){n.loadRefs(t,{button:"single",buttonMessageContainer:"single",buttonMessage:"single",zoomIn:"single",zoomOut:"single",iframeContainer:"single"}),n.submitButton.refs=c({},n.refs),n.submitButton.attachButton(),n.iframeReady=new a.default(function(e,t){n.iframeReadyResolve=e,n.iframeReadyReject=t}),n.iframeElement=n.ce("iframe",{src:n.getSrc(),id:"iframe-".concat(n.id),seamless:!0,class:"formio-iframe"}),n.iframeElement.formioContainer=n.component.components,(n.iframeElement.formioComponent=n).empty(n.refs.iframeContainer),n.appendChild(n.refs.iframeContainer,n.iframeElement),n.form.base=l.GlobalFormio.getBaseUrl(),n.form.projectUrl=l.GlobalFormio.getProjectUrl(),n.postMessage({name:"form",data:n.form});var e=n.components.find(function(e){return e.element===n.refs.button}),e=(e&&n.refs.button.classList.toggle("hidden",!e.visible),n.addEventListener(n.refs.zoomIn,"click",function(e){e.preventDefault(),n.postMessage({name:"zoomIn"})}),n.addEventListener(n.refs.zoomOut,"click",function(e){e.preventDefault(),n.postMessage({name:"zoomOut"})}),(0,s.fastCloneDeep)(n.form));n.formio&&(e.projectUrl=n.formio.projectUrl,e.url=n.formio.formUrl,e.base=n.formio.base,n.postMessage({name:"token",data:n.formio.getToken()})),n.emit("attach")})}},{key:"getSubmission",value:function(){var t=this;return new a.default(function(e){t.once("iframe-submission",e),t.postMessage({name:"getSubmission"})})}},{key:"submitForm",value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.postMessage({name:"getErrors"}),this.getSubmission().then(function(){return d(m(i.prototype),"submitForm",e).call(e,t)})}},{key:"getSrc",value:function(){if(!this._form||!this._form.settings||!this._form.settings.pdf)return"";var e="".concat(this._form.settings.pdf.src,".html"),t=["id=".concat(this.id)];return(this.options.showCheckboxBackground||this._form.settings.showCheckboxBackground)&&t.push("checkboxbackground=1"),this.options.readOnly&&t.push("readonly=1"),this.options.zoom&&t.push("zoom=".concat(this.options.zoom)),this.builderMode&&t.push("builder=1"),t.length&&(e+="?".concat(t.join("&"))),e}},{key:"setForm",value:function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return d(m(i.prototype),"setForm",this).call(this,e,n).then(function(){t.formio&&(e.projectUrl=t.formio.projectUrl,e.url=t.formio.formUrl,e.base=t.formio.base,t.postMessage({name:"token",data:t.formio.getToken()})),t.postMessage({name:"form",data:t.form})})}},{key:"setValue",value:function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=d(m(i.prototype),"setValue",this).call(this,e,n);return n&&n.fromIframe||this.once("iframe-ready",function(){r&&t.postMessage({name:"submission",data:e})}),r}},{key:"postMessage",value:function(e){var t=this;this.iframeReady&&(e.type||(e.type="iframe-data"),this.iframeReady.then(function(){!t.iframeElement||!t.iframeElement.contentWindow||"form"===e.name&&t.iframeFormSetUp||(t.iframeElement.contentWindow.postMessage(JSON.stringify(e),"*"),t.iframeFormSetUp="form"===e.name)}))}},{key:"focusOnComponent",value:function(e){this.postMessage({name:"focusErroredField",data:e})}},{key:"clear",value:function(){}},{key:"showErrors",value:function(e,t){var n=document.getElementById("submit-error"),r=this.t("submitError"),o=(null==(o=this.refs.buttonMessage)?void 0:o.textContent.trim())===r;n||!this.errors.length||o||(o=this.ce("p",{class:"help-block"}),this.setContent(o,r),o.addEventListener("click",function(){window.scrollTo(0,0)}),r=this.ce("div",{id:"submit-error",class:"has-error"}),this.appendTo(o,r),this.appendTo(r,this.element)),!this.errors.length&&n&&n.remove(),d(m(i.prototype),"showErrors",this).call(this,e,t)}},{key:"isSubmitButtonHidden",value:function(){var t=!1;return(0,s.eachComponent)(this.component.components,function(e){"button"!==e.type||"submit"!==e.action&&e.action||(t=e.hidden||!1)}),t}}])&&f(t.prototype,e),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(r.default);t.default=n,"undefined"!=typeof window&&window.addEventListener("message",function(e){var t=null;try{t=JSON.parse(e.data)}catch(e){t=null}t&&t.name&&t.formId&&l.GlobalFormio.forms.hasOwnProperty(t.formId)&&l.GlobalFormio.forms[t.formId].emit("iframe-".concat(t.name),t.data)})},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(2),n(31),n(6),n(7),n(3),n(5),n(4),n(42),n(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(22),n(1),n(40),n(45),n(14),n(50),n(20),n(16),n(43),n(18),n(23),n(0),n(69),n(9);var i=l(n(24)),f=l(n(10)),r=l(n(114)),a=n(36),d=n(19);function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(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 p(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||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 c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}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 h(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach(function(e){y(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function y(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}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(){return(b="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)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=k(n),t=(e=r?(e=k(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=l;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e);var n,r=w(l);function l(){var e,t=this,n=l;if(t instanceof n)return(t=arguments[0]instanceof HTMLElement||arguments[1]?(e=arguments[0],arguments[1]||{}):arguments[0]||{}).display="wizard",(n=r.call(this,e,t)).pages=[],n.prefixComps=[],n.suffixComps=[],n.components=[],n.originalComponents=[],n.page=0,n.currentPanel=null,n.currentPanels=null,n.currentNextPage=0,n._seenPages=[0],n.subWizards=[],n.allPages=[],n.lastPromise=i.default.resolve(),n.enabledIndex=0,n.editMode=!1,n.originalOptions=f.default.cloneDeep(n.options),n;throw new TypeError("Cannot call a class as a function")}return t=l,(e=[{key:"isLastPage",value:function(){var e=this.getNextPage();return f.default.isNumber(e)?-1===e:f.default.isNull(e)}},{key:"getPages",value:function(){var n=this,e=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).all;return(this.hasExtraPages?this.components:this.pages).filter(void 0!==e&&e?f.default.identity:function(e,t){return n._seenPages.includes(t)})}},{key:"hasExtraPages",get:function(){return!f.default.isEmpty(this.subWizards)}},{key:"data",get:function(){return b(k(l.prototype),"data",this)},set:function(e){var t=this;this._data=e,f.default.each(this.getPages({all:!0}),function(e){e.data=t.componentContext(e)})}},{key:"localData",get:function(){var e;return(null==(e=this.pages[this.page])||null==(e=e.root)?void 0:e.submission.data)||this.submission.data}},{key:"checkConditions",value:function(e,t,n){t=b(k(l.prototype),"checkConditions",this).call(this,e,t,n);return this.establishPages(e),t}},{key:"getComponents",value:function(){return this.submitting?this.getPages({all:this.isLastPage()}):b(k(l.prototype),"getComponents",this).call(this)}},{key:"resetValue",value:function(){this.getPages({all:!0}).forEach(function(e){return e.resetValue()}),this.setPristine(!0)}},{key:"init",value:function(){var e,n=this,t=(this.options.buttonSettings=f.default.defaults(this.options.buttonSettings,{showPrevious:!0,showNext:!0,showSubmit:!0,showCancel:!this.options.readOnly}),this.isSecondInit||(this.isClickableDefined=null==(t=this.options)||null==(t=t.breadcrumbSettings)?void 0:t.hasOwnProperty("clickable"),this.isSecondInit=!0),this.options.breadcrumbSettings=f.default.defaults(this.options.breadcrumbSettings,{clickable:!0}),this.options.allowPrevious=this.options.allowPrevious||!1,this.page=0,b(k(l.prototype),"init",this).call(this));return this.setComponentSchema(),null!=(e=this.pages)&&e[this.page]&&(this.component=this.pages[this.page].component),this.on("subWizardsUpdated",function(t){var e=n.subWizards.find(function(e){return(null==t?void 0:t.id)&&(null==(e=e.subForm)?void 0:e.id)===(null==t?void 0:t.id)});n.subWizards.length&&e&&(e.subForm.setValue(t._submission,{},!0),n.establishPages(),n.redraw())}),t}},{key:"wizardKey",get:function(){return"wizard-".concat(this.id)}},{key:"wizard",get:function(){return this.form},set:function(e){this.setForm(e)}},{key:"buttons",get:function(){var t=this,n={};return[{name:"cancel",method:"cancel"},{name:"previous",method:"prevPage"},{name:"next",method:"nextPage"},{name:"submit",method:"submit"}].forEach(function(e){t.hasButton(e.name)&&(n[e.name]=e)}),n}},{key:"buttonOrder",get:function(){var e;return null!=(e=null==(e=this.options.properties)||null==(e=e.wizardButtonOrder)?void 0:e.toLowerCase().split(", "))?e:["cancel","previous","next","submit"]}},{key:"renderContext",get:function(){var e;return{wizardKey:this.wizardKey,isBreadcrumbClickable:this.isBreadcrumbClickable(),isSubForm:!!this.parent&&"wizard"===!(null!=(e=this.root)&&null!=(e=e.component)&&e.type),panels:this.allPages.length?this.allPages.map(function(e){return e.component}):this.pages.map(function(e){return e.component}),buttons:this.buttons,currentPage:this.page,buttonOrder:this.buttonOrder}}},{key:"prepareNavigationSettings",value:function(t){var n=this.currentPanel;return n&&n.buttonSettings&&Object.keys(n.buttonSettings).forEach(function(){Object.keys(t.buttons).forEach(function(e){(void 0!==n.buttonSettings[e]&&!n.buttonSettings[e]||t.isSubForm)&&(t.buttons[e]=null)})}),this.renderTemplate("wizardNav",t)}},{key:"prepareHeaderSettings",value:function(e,t){return this.currentPanel&&"none"===this.currentPanel.breadcrumb||e.isSubForm?null:this.renderTemplate(t,e)}},{key:"render",value:function(){var t=this,n=this.renderContext,e=(this.component.key&&n.panels.map(function(e){e.key===t.component.key&&(t.currentPanel=e,n.wizardPageTooltip=t.getFormattedTooltip(e.tooltip))}),this.prepareNavigationSettings(n)),r="wizardHeader".concat(f.default.get(this.form,"settings.wizardHeaderType","")),o=f.default.get(this.form,"settings.wizardHeaderLocation","left"),i=this.prepareHeaderSettings(n,r);return this.renderTemplate("wizard",m(m({},n),{},{className:b(k(l.prototype),"getClassName",this).call(this),wizardHeader:i,wizardHeaderType:r,wizardHeaderLocation:o,wizardNav:e,components:this.renderComponents([].concat(p(this.prefixComps),p(this.currentPage.components),p(this.suffixComps)))}),this.builderMode?"builder":"form")}},{key:"redrawNavigation",value:function(){var e;this.element&&(e=this.element.querySelector("#".concat(this.wizardKey,"-nav")))&&(this.detachNav(),e.outerHTML=this.renderTemplate("wizardNav",this.renderContext),e=this.element.querySelector("#".concat(this.wizardKey,"-nav")),this.loadRefs(e,(y(e={},"".concat(this.wizardKey,"-cancel"),"single"),y(e,"".concat(this.wizardKey,"-previous"),"single"),y(e,"".concat(this.wizardKey,"-next"),"single"),y(e,"".concat(this.wizardKey,"-submit"),"single"),e)),this.attachNav())}},{key:"redrawHeader",value:function(){var e;this.element&&(e=this.element.querySelector("#".concat(this.wizardKey,"-header")))&&(this.detachHeader(),e.outerHTML=this.renderTemplate("wizardHeader".concat(f.default.get(this.form,"settings.wizardHeaderType","")),this.renderContext),e=this.element.querySelector("#".concat(this.wizardKey,"-header")),this.loadRefs(e,(y(e={},"".concat(this.wizardKey,"-link"),"multiple"),y(e,"".concat(this.wizardKey,"-tooltip"),"multiple"),e)),this.attachHeader())}},{key:"attach",value:function(e){var t=this,n=(this.element=e,this.loadRefs(e,(y(n={},this.wizardKey,"single"),y(n,"".concat(this.wizardKey,"-header"),"single"),y(n,"".concat(this.wizardKey,"-cancel"),"single"),y(n,"".concat(this.wizardKey,"-previous"),"single"),y(n,"".concat(this.wizardKey,"-next"),"single"),y(n,"".concat(this.wizardKey,"-submit"),"single"),y(n,"".concat(this.wizardKey,"-link"),"multiple"),y(n,"".concat(this.wizardKey,"-tooltip"),"multiple"),n)),!this.options.readOnly&&!this.editMode||this.enabledIndex||(this.enabledIndex=(null==(n=this.pages)?void 0:n.length)-1),this.hook("attachWebform",e,this),this.attachComponents(this.refs[this.wizardKey],[].concat(p(this.prefixComps),p(this.currentPage.components),p(this.suffixComps))));return this.attachNav(),this.attachHeader(),n.then(function(){t.emit("render",{component:t.currentPage,page:t.page}),t.component.scrollToTop&&t.scrollPageToTop()})}},{key:"scrollPageToTop",value:function(){var e=null!=(e=this.refs["".concat(this.wizardKey,"-header")])?e:this.refs[this.wizardKey];e&&("scrollIntoView"in e?e.scrollIntoView(!0):this.scrollIntoView(e))}},{key:"isBreadcrumbClickable",value:function(){var t=this,n=null;return this.pages.map(function(e){f.default.isEqual(t.currentPage.component,e.component)&&(n=e)}),this.isClickableDefined?this.options.breadcrumbSettings.clickable:f.default.get(n,"component.breadcrumbClickable",!0)}},{key:"isAllowPrevious",value:function(){var t=this,n=null;return this.pages.map(function(e){f.default.isEqual(t.currentPage.component,e.component)&&(n=e)}),f.default.get(n.component,"allowPrevious",this.options.allowPrevious)}},{key:"handleNaviageteOnEnter",value:function(e){var t;13===e.keyCode&&(e=new CustomEvent("click"),(t=this.refs["".concat(this.wizardKey,"-").concat(this.buttons.next.name)])&&t.dispatchEvent(e))}},{key:"handleSaveOnEnter",value:function(e){var t;13===e.keyCode&&(e=new CustomEvent("click"),(t=this.refs["".concat(this.wizardKey,"-").concat(this.buttons.submit.name)])&&t.dispatchEvent(e))}},{key:"attachNav",value:function(){var r=this;this.component.navigateOnEnter&&this.addEventListener(document,"keyup",this.handleNaviageteOnEnter.bind(this)),this.component.saveOnEnter&&this.addEventListener(document,"keyup",this.handleSaveOnEnter.bind(this)),f.default.each(this.buttons,function(t){var n=r.refs["".concat(r.wizardKey,"-").concat(t.name)];r.addEventListener(n,"click",function(e){e.preventDefault(),n.setAttribute("disabled","disabled"),r.setLoading(n,!0),r[t.method]().then(function(){n.removeAttribute("disabled"),r.setLoading(n,!1)}).catch(function(){n.removeAttribute("disabled"),r.setLoading(n,!1)})})})}},{key:"emitWizardPageSelected",value:function(e){this.emit("wizardPageSelected",this.pages[e],e)}},{key:"attachHeader",value:function(){var e,n=this,r=this.isAllowPrevious();this.attachTooltips(this.refs["".concat(this.wizardKey,"-tooltip")],this.currentPanel.tooltip),(this.isBreadcrumbClickable()||r)&&null!=(e=this.refs["".concat(this.wizardKey,"-link")])&&e.forEach(function(e,t){(!r||t<=n.enabledIndex)&&n.addEventListener(e,"click",function(e){return n.emit("wizardNavigationClicked",n.pages[t]),e.preventDefault(),n.setPage(t).then(function(){n.emitWizardPageSelected(t)})})})}},{key:"detachNav",value:function(){var t=this;this.component.navigateOnEnter&&this.removeEventListener(document,"keyup",this.handleNaviageteOnEnter.bind(this)),this.component.saveOnEnter&&this.removeEventListener(document,"keyup",this.handleSaveOnEnter.bind(this)),f.default.each(this.buttons,function(e){t.removeEventListener(t.refs["".concat(t.wizardKey,"-").concat(e.name)],"click")})}},{key:"detachHeader",value:function(){var t=this;this.refs["".concat(this.wizardKey,"-link")]&&this.refs["".concat(this.wizardKey,"-link")].forEach(function(e){t.removeEventListener(e,"click")})}},{key:"transformPages",value:function(){function s(e,t){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],r=[],o=["datagrid","editgrid","dynamicWizard"],i=(a=null!=e&&e.subForm?u.getSortedComponents(e.subForm):(null==e?void 0:e.components)||[]).filter(function(e){return e._visible}).filter(function(e){return!o.includes(e.component.type)&&("form"!==e.type||e.isNestedWizard)}),a=a.filter(function(e){return"wizard"!==(null==(e=e.subForm)?void 0:e._form.display)}),l=!1;return(0,d.eachComponent)(i,function(e){e&&e.component&&("panel"===e.component.type&&null!=e&&e.parent.wizard&&!s(e,t,!1)&&(n&&(u.setRootPanelId(e),r.push(e)),l=!0),e.isNestedWizard&&e.subForm&&(e=s(e,r,n),l=l||e))},!0),"panel"===e.component.type&&(!l&&n&&(u.setRootPanelId(e),t.push(e)),l&&a.length&&((i=f.default.clone(e)).components=a,u.setRootPanelId(i),c.push(i))),n&&(t.push.apply(t,p(c).concat(r)),c=[]),l}var u=this,t=[],e=this.getSortedComponents(this),c=[];this.allPages=[];e.forEach(function(e){e.visible&&s(e,t)},[]),this.localRoot&&this.id===this.localRoot.id&&t.forEach(function(e,t){e.eachComponent(function(e){e.page=t})}),this.allPages=t}},{key:"getSortedComponents",value:function(e){var t=e.components,e=e.originalComponents,n=[],r=[];return t&&t.length&&t.map(function(e){"panel"===e.component.type&&(r[e.component.key||e.component.title]=e)}),null!=e&&e.forEach(function(e){e.key||(e.key=e.title),r[e.key]&&n.push(r[e.key])}),n}},{key:"findRootPanel",value:function(e){var t;return null!=(t=e.parent)&&t.parent?this.findRootPanel(e.parent):e}},{key:"setRootPanelId",value:function(e){var t;e.rootPanelId&&e.rootPanelId!==e.id||(t=null!=(t=e.parent)&&t.parent?this.findRootPanel(e.parent):e,e.rootPanelId=t.id)}},{key:"establishPages",value:function(){var i=this,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.data,l=(this.pages=[],this.prefixComps=[],this.suffixComps=[],[]),s={},u=m(m({},f.default.clone(this.options)),this.parent?{root:this}:{});return this.components&&this.components.length&&this.components.forEach(function(e){"panel"===e.component.type&&(s[e.component.key||e.component.title]=e)}),this.originalComponents&&this.originalComponents.forEach(function(e){var t,n,r,o;"panel"===e.type?(e.key||(e.key=e.title),t=s[e.key],n=!!i.options.show&&i.options.show[e.key],r=!!i.options.hide&&i.options.hide[e.key],o=t?t.visible:(0,d.checkCondition)(e,a,a,i.component,i)&&!e.hidden,n?o=!0:r&&(o=!1),o&&(l.push(e),t&&i.pages.push(t)),!t&&o&&((t=i.createComponent(e,u)).visible=o,i.pages.push(t),t.eachComponent(function(e){e.page=i.pages.length-1}))):"button"!==e.type&&(i.pages.length?i.suffixComps:i.prefixComps).push(i.createComponent(e,u))}),this.pages.length&&this.emit("pagesChanged"),this.transformPages(),this.allPages&&this.allPages.length&&this.updatePages(),l}},{key:"updatePages",value:function(){this.pages=this.allPages}},{key:"addComponents",value:function(){this.establishPages()}},{key:"setPage",value:function(e){var t,n,r=this;return e===this.page?i.default.resolve():0<=e&&e<this.pages.length?(this.page=e,this.pageFieldLogic(e),this.getNextPage(),t=e,this.hasExtraPages&&(n=this.pages[e],(e=this.components[e])&&(null==n?void 0:n.id)===e.id||(t=this.components.findIndex(function(e){return e.id===(null==(e=r.pages)||null==(e=e[t])?void 0:e.rootPanelId)}))),this._seenPages.includes(t)||(this._seenPages=this._seenPages.concat(t)),this.redraw().then(function(){r.checkData(r.submission.data)}),i.default.resolve()):this.pages.length?i.default.reject("Page not found"):(this.redraw(),i.default.resolve())}},{key:"pageFieldLogic",value:function(e){var t;null!=(t=this.pages)&&t[e]&&(this.component=this.pages[e].component,this.originalComponent=(0,d.fastCloneDeep)(this.component),this.fieldLogic(this.data),this.disabled=this.shouldDisabled)}},{key:"currentPage",get:function(){return this.pages&&this.pages.length>=this.page?this.pages[this.page]:{components:[]}}},{key:"getNextPage",value:function(){if(null!=(e=this.pages)&&e[this.page]){var e=this.submission.data,t=this.pages[this.page].component;if(t){var n=this.pages.length>this.page+1&&!this.showAllErrors?this.page+1:-1;if(t.nextPage){e=this.evaluate(t.nextPage,{next:n,data:e,page:n,form:t},"next");if(null===e)return this.currentNextPage=null;t=parseInt(e,10);return!isNaN(parseInt(t,10))&&isFinite(t)?this.currentNextPage=t:(this.currentNextPage=this.getPageIndexByKey(e),this.currentNextPage)}return this.currentNextPage=n}this.currentNextPage=null}return null}},{key:"getPreviousPage",value:function(){return this.page-1}},{key:"beforeSubmit",value:function(){var e=this.getPages();return i.default.all(e.map(function(e){return e.options.beforeSubmit=!0,e.beforeSubmit()}))}},{key:"beforePage",value:function(r){var o=this;return new i.default(function(t,n){o.hook(r?"beforeNext":"beforePrev",o.currentPage,o.submission,function(e){e&&(o.showErrors(e,!0),n(e));e=o.currentPage;e?e.beforePage(r).then(t).catch(n):t()})})}},{key:"emitNextPage",value:function(){this.emit("nextPage",{page:this.page,submission:this.submission})}},{key:"nextPage",value:function(){var e=this;return this.options.readOnly?this.beforePage(!0).then(function(){return e.setPage(e.getNextPage()).then(function(){e.emitNextPage()})}):this.checkValidity(this.localData,!0,this.localData,!0)?(this.checkData(this.submission.data),this.beforePage(!0).then(function(){return e.setPage(e.getNextPage()).then(function(){!e.options.readOnly&&!e.editMode&&e.enabledIndex<e.page&&(e.enabledIndex=e.page,e.redraw()),e.emitNextPage()})})):(this.currentPage.components.forEach(function(e){return e.setPristine(!1)}),i.default.reject(this.showErrors([],!0)))}},{key:"emitPrevPage",value:function(){this.emit("prevPage",{page:this.page,submission:this.submission})}},{key:"prevPage",value:function(){var e=this;return this.beforePage().then(function(){return e.setPage(e.getPreviousPage()).then(function(){e.emitPrevPage()})})}},{key:"cancel",value:function(e){var t=this;return!this.options.readOnly&&b(k(l.prototype),"cancel",this).call(this,e)?(this.setPristine(!0),this.setPage(0).then(function(){return t.enabledIndex&&(t.enabledIndex=0),t.onChange(),t.redraw(),t.page})):i.default.resolve()}},{key:"getPageIndexByKey",value:function(n){var r=this.page;return this.pages.forEach(function(e,t){if(e.component.key===n)return r=t,!1}),r}},{key:"schema",get:function(){return this.wizard}},{key:"setComponentSchema",value:function(){var e,t=this,n={};this.originalComponents=[],this.component.components.map(function(e){"panel"===e.type&&(e.key=(0,d.uniqueKey)(n,e.key||"panel"),n[e.key]=!0,t.wizard.full?(t.options.show=t.options.show||{},t.options.show[e.key]=!0):t.wizard.hasOwnProperty("full")&&!f.default.isEqual(t.originalOptions.show,t.options.show)&&(t.options.show=m({},t.originalOptions.show||{}))),t.originalComponents.push(f.default.clone(e))}),Object.keys(n).length||(e={type:"panel",title:"Page 1",label:"Page 1",key:"page1",components:this.component.components},this.component.components=[e],this.originalComponents.push(f.default.clone(e)))}},{key:"setForm",value:function(e,t){if(e)return b(k(l.prototype),"setForm",this).call(this,e,t)}},{key:"onSetForm",value:function(e,t){this.component.components=(this._parentPath?t:e).components||[],this.setComponentSchema()}},{key:"setEditMode",value:function(e){this.editMode||!e._id||this.options.readOnly||(this.editMode=!0,this.redraw())}},{key:"setValue",value:function(n){var r=this,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=2<arguments.length?arguments[2]:void 0,e=(this._submission=n,o&&o.fromSubmission&&(this.options.readOnly||this.editMode)&&!this.isHtmlRenderMode()&&(this._data=n.data),e||this.establishPages(n.data),this.getPages({all:!0}).reduce(function(e,t){return r.setNestedValue(t,n.data,o,e)||e},!1));return e&&this.pageFieldLogic(this.page),this.setEditMode(n),e}},{key:"isClickable",value:function(e,t){return this.page!==t&&(0,d.firstNonNil)([f.default.get(e,"breadcrumbClickable"),this.options.breadcrumbSettings.clickable])}},{key:"hasButton",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getNextPage(),n=f.default.get(this.currentPage,"component.buttonSettings",{}),r=n.previous,o=void 0===r?this.options.buttonSettings.showPrevious:r,r=n.cancel,i=void 0===r?this.options.buttonSettings.showCancel:r,r=n.submit,a=void 0===r?this.options.buttonSettings.showSubmit:r,r=n.next,l=void 0===r?this.options.buttonSettings.showNext:r;switch(e){case"previous":return o&&-1<this.getPreviousPage();case"next":return l&&null!==t&&-1!==t;case"cancel":return i&&!this.options.readOnly;case"submit":return a&&!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&&0<e.components.length?this.pageId(e.components[0]):e.title}},{key:"onChange",value:function(e,t,n,r){var o,i,a=this,t=(b(k(l.prototype),"onChange",this).call(this,e,t,n,r),this.alert&&!this.submitted&&(this.checkValidity(this.localData,!1,this.localData,!0),this.showErrors([],!0,!0)),this.currentNextPage);this.hasExtraPages?(o=this.pages.map(function(e){return e.component.key}),this.establishPages(),i=this.pages.map(function(e){return e.component.key})):(o=this.currentPanels||this.pages.map(function(e){return e.component.key}),i=this.establishPages().map(function(e){return e.key}),this.currentPanels=i,null!=(n=this.currentPanel)&&n.key&&null!=(r=this.currentPanels)&&r.length&&this.setPage(this.currentPanels.findIndex(function(e){return e===a.currentPanel.key}))),(!f.default.isEqual(i,o)||e&&e.fromSubmission)&&this.redrawHeader(),t!==this.getNextPage()&&this.redrawNavigation()}},{key:"redraw",value:function(){var e;return null!=(e=this.parent)&&null!=(e=e.component)&&e.modalEdit?this.parent.redraw():b(k(l.prototype),"redraw",this).call(this)}},{key:"checkValidity",value:function(n,r,o,e){return this.checkCondition(o,n)?(!e||this.isLastPage()?this.getComponents():this.currentPage.components).reduce(function(e,t){return t.checkValidity(n,r,o)&&e},!0):(this.setCustomValidity(""),!0)}},{key:"errors",get:function(){return this.isLastPage()?b(k(l.prototype),"errors",this):this.currentPage.errors}},{key:"focusOnComponent",value:function(r){var e=this,o=0,t=s(this.pages.filter(function(e,t){var n=!1;return e.getComponent(r,function(e){e.path===r&&(o=t,n=!0)}),n}),1)[0];return t&&t!==this.currentPage?this.setPage(o).then(function(){e.checkValidity(e.submission.data,!0,e.submission.data),e.showErrors(),b(k(l.prototype),"focusOnComponent",e).call(e,r)}):b(k(l.prototype),"focusOnComponent",this).call(this,r)}}])&&v(t.prototype,e),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.default);(t.default=n).setBaseUrl=a.GlobalFormio.setBaseUrl,n.setApiUrl=a.GlobalFormio.setApiUrl,n.setAppUrl=a.GlobalFormio.setAppUrl},function(e,t,n){"use strict";n(8),n(13),n(11),n(2),n(6),n(7),n(5),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(20),n(0),n(3),n(1),n(4),n(14),n(25),n(69),n(50),n(9);var i=r(n(10)),a=r(n(61)),l=n(19);function r(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 c(){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=p(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=p(n),t=(e=r?(e=p(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e);var n,r=d(o);function o(e,t,n){if(this instanceof o)return(e=r.call(this,e,t,n)).previousValue=e.dataValue||null,e;throw new TypeError("Cannot call a class as a function")}return t=o,e=[{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:"radio",inputType:"radio",label:"Radio",key:"radio",values:[{label:"",value:""}],validate:{onlyAvailableItems:!1},fieldSet:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Radio",group:"basic",icon:"dot-circle-o",weight:80,documentation:"/userguide/#radio",schema:o.schema()}}}],(n=[{key:"defaultSchema",get:function(){return o.schema()}},{key:"defaultValue",get:function(){var e=c(p(o.prototype),"defaultValue",this);return e=e||!1!==this.component.defaultValue?e:this.component.defaultValue}},{key:"inputInfo",get:function(){var e,t=c(p(o.prototype),"elementInfo",this).call(this);return t.type="input",t.changeEvent="click",t.attr.class="form-check-input",t.attr.name=t.attr.name+="[".concat(null==(e=this.root)?void 0:e.id,"-").concat(this.id,"]"),t}},{key:"emptyValue",get:function(){return""}},{key:"isRadio",get:function(){return"radio"===this.component.inputType}},{key:"optionSelectedClass",get:function(){return"radio-selected"}},{key:"init",value:function(){c(p(o.prototype),"init",this).call(this),this.validators=this.validators.concat(["select","onlyAvailableItems"])}},{key:"render",value:function(){return c(p(o.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 r=this;return this.loadRefs(e,{input:"multiple",wrapper:"multiple"}),this.refs.input.forEach(function(t,e){var n;r.addEventListener(t,r.inputInfo.changeEvent,function(){r.updateValue(null,{modified:!0})}),r.addShortcut(t,r.component.values[e].shortcut),r.isRadio&&(n=r.dataValue,i.default.isString(r.dataValue)||(n=i.default.toString(r.dataValue)),t.checked=n===t.value,r.addEventListener(t,"keyup",function(e){" "===e.key&&n===t.value&&(e.preventDefault(),r.updateValue(null,{modified:!0}))}))}),this.setSelectedClasses(),c(p(o.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(e){var n=this;e&&this.refs.input&&this.refs.input.forEach(function(e,t){n.removeShortcut(e,n.component.values[t].shortcut)}),c(p(o.prototype),"detach",this).call(this)}},{key:"getValue",value:function(){if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var t=this.dataValue;return this.refs.input.forEach(function(e){e.checked&&(t=e.value)}),t}},{key:"validateValueAvailability",value:function(e,t){var n=this;if(!(0,l.boolValue)(e)||!t)return!0;e=this.component.values;return!!e&&-1!==e.findIndex(function(e){e=e.value;return n.normalizeValue(e)===t})}},{key:"getValueAsString",value:function(t){i.default.isString(t)||(t=i.default.toString(t));var e=i.default.find(this.component.values,function(e){return e.value===t});return i.default.get(e,"label","")}},{key:"setValueAt",value:function(e,t){var n;this.refs.input&&this.refs.input[e]&&null!=t&&(n=this.refs.input[e].value,this.refs.input[e].checked=n===t.toString())}},{key:"setSelectedClasses",value:function(){var n,r=this;this.refs.wrapper&&(n=this.dataValue,this.refs.wrapper.forEach(function(e,t){t=r.refs.input[t];("checkbox"===t.type?n[t.value]:t.value.toString()===n.toString())?(r.addClass(e,r.optionSelectedClass),t.setAttribute("checked","true")):(r.removeClass(e,r.optionSelectedClass),t.removeAttribute("checked"))}))}},{key:"updateValue",value:function(e,t){e=c(p(o.prototype),"updateValue",this).call(this,e,t);return e&&this.setSelectedClasses(),t&&t.modified&&this.isRadio&&(this.currentValue=this.dataValue,t&&t.noUpdateEvent||this.previousValue!==this.currentValue||(this.resetValue(),this.triggerChange(t)),this.previousValue=this.dataValue),e}},{key:"normalizeValue",value:function(e){var t=this.component.dataType||"auto";if(e===this.emptyValue)return e;switch(t){case"auto":"false"===(e="true"===(e=!isNaN(parseFloat(e))&&isFinite(e)?+e:e)?!0:e)&&(e=!1);break;case"number":e=+e;break;case"string":e="object"===s(e)?JSON.stringify(e):String(e);break;case"boolean":e=!(!e||"false"===e.toString())}return c(p(o.prototype),"normalizeValue",this).call(this,e)}}])&&u(t.prototype,n),e&&u(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(a.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(70),n(2),n(6),n(7),n(5),n(42),n(32),n(20),n(31),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(16),n(26),n(43),n(50),n(1),n(51),n(18),n(39),n(93),n(14),n(109),n(40),n(45),n(22),n(25),n(3),n(4),n(126),n(67),n(23),n(76),n(131),n(917),n(69),n(9);var l,c=r(n(10)),f=n(36),i=r(n(61)),s=r(n(135)),u=r(n(24)),d=n(19);function r(e){return e&&e.__esModule?e:{default:e}}function a(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){g(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function h(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function 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,r){return(v="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,e=k(e,t);if(e){if((o=Object.getOwnPropertyDescriptor(e,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 g(r,t,n);return!0})(e,t,n,r)}function b(e,t,n,r,o){if(!v(e,t,n,r||e)&&o)throw new Error("failed to set property")}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(){return(w="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=k(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function k(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=S(e)););return e}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=S(n),t=(e=r?(e=S(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}"undefined"!=typeof window&&(l=n(919).default);n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_(t,e);var n,r=O(a);function a(){var e=this,t=a;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=a,e=[{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:"select",label:"Select",key:"select",idPath:"id",data:{values:[{label:"",value:""}],json:"",url:"",resource:"",custom:""},clearOnRefresh:!1,limit:100,dataSrc:"values",valueProperty:"",lazyLoad:!0,filter:"",searchEnabled:!0,searchDebounce:.3,searchField:"",minSearch:0,readOnlyValue:!1,authenticate:!1,ignoreCache:!1,template:"<span>{{ item.label }}</span>",selectFields:"",selectThreshold:.3,uniqueOptions:!1,tableView:!0,fuseOptions:{include:"score",threshold:.3},validate:{onlyAvailableItems:!1},indexeddb:{filter:{}},customOptions:{},useExactSearch:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Select",group:"basic",icon:"th-list",weight:70,documentation:"/userguide/#select",schema:a.schema()}}}],(n=[{key:"init",value:function(){var r=this,o=(w(S(a.prototype),"init",this).call(this),this.templateData={},this.validators=this.validators.concat(["select","onlyAvailableItems"]),[]),i=c.default.debounce(function(){o=[];for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.updateItems.apply(r,t)},100);this.triggerUpdate=function(){"function"==typeof r.itemsLoadedResolve&&r.itemsLoadedResolve(),r.itemsLoaded=new u.default(function(e){r.itemsLoadedResolve=e});for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length&&(o=t),i.apply(void 0,h(o))},this.selectOptions=[],this.itemsFromUrl&&(this.isFromSearch=!1,this.searchServerCount=null,this.defaultServerCount=null,this.isScrollLoading=!1,this.searchDownloadedResources=[],this.defaultDownloadedResources=[]),this.activated=!1,this.itemsLoaded=new u.default(function(e){r.itemsLoadedResolve=e}),this.isHtmlRenderMode()&&this.activate(),this.getTemplateKeys()}},{key:"dataReady",get:function(){return this.root&&this.root.submissionSet&&!this.attached?u.default.resolve():this.itemsLoaded}},{key:"defaultSchema",get:function(){return a.schema()}},{key:"emptyValue",get:function(){return this.component.multiple?[]:"json"===this.component.dataSrc&&this.component.data.json?(e=this.component.data.json[0],(e=this.valueProperty?c.default.get(e,this.valueProperty):e)&&"string"==typeof e?"":{}):this.valueProperty?"":{};var e}},{key:"valueProperty",get:function(){return this.component.valueProperty||("values"===this.component.dataSrc?"value":"")}},{key:"inputInfo",get:function(){var e=w(S(a.prototype),"elementInfo",this).call(this);return e.type="select",e.changeEvent="change",e}},{key:"isSelectResource",get:function(){return"resource"===this.component.dataSrc}},{key:"isSelectURL",get:function(){return"url"===this.component.dataSrc}},{key:"itemsFromUrl",get:function(){return this.isSelectResource||this.isSelectURL}},{key:"isInfiniteScrollProvided",get:function(){return this.itemsFromUrl}},{key:"shouldDisabled",get:function(){return w(S(a.prototype),"shouldDisabled",this)||this.parentDisabled}},{key:"isEntireObjectDisplay",value:function(){return"resource"===this.component.dataSrc&&"data"===this.valueProperty}},{key:"getSelectTemplate",value:function(e,t){if(!this.component.template)return e.label;var n={noeval:this.itemsFromUrl,data:{}},e=this.sanitize(this.component.template?this.interpolate(this.component.template,{item:e}):e.label,this.shouldSanitizeValue);return t&&!c.default.isObject(t)&&n.data.item&&(this.templateData[t]=n.data.item),e}},{key:"selectValueAndLabel",value:function(e){var t=this.getOptionValue(this.itemValue(e));return{value:t,label:this.itemTemplate(e,t)}}},{key:"itemTemplate",value:function(e,t){if(!c.default.isNumber(e)&&c.default.isEmpty(e))return"";if(this.options.readOnly&&this.component.readOnlyValue)return this.itemValue(e);if(e&&!this.component.template)return n="string"==typeof(n=e.label||e)?this.t(n,{_userInput:!0}):n,this.sanitize(n,this.shouldSanitizeValue);if("string"==typeof e||"number"==typeof e){var n=this.selectData;if(!n)return this.sanitize(this.t(e,{_userInput:!0}),this.shouldSanitizeValue);e=n}e.data&&(n=/item\.data\.\w*/g.test(this.component.template),e.data=this.isEntireObjectDisplay()&&c.default.isObject(e.data)&&!n?JSON.stringify(e.data):e.data);n=this.sanitize(this.getSelectTemplate(e,t),this.shouldSanitizeValue);if(!n)return this.sanitize(JSON.stringify(e),this.shouldSanitizeValue);t=n.replace(/<\/?[^>]+(>|$)/g,""),e=null==(e=this.i18next)?void 0:e.translator;return!t||e&&!this.t(t,{_userInput:!0})?void 0:e?n.replace(t,this.t(t,{_userInput:!0})):t}},{key:"addOption",value:function(e,t){var n,r,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:(0,d.getRandomComponentId)();c.default.isNil(t)||(n=this.component.idPath?this.component.idPath.split(".").reduceRight(function(e,t){return g({},t,e)},i):{},r=p({value:this.getOptionValue(e),label:t},n),this.component.uniqueOptions&&this.selectOptions.find(function(e){return c.default.isEqual(e.value,r.value)})||(e&&this.selectOptions.push(r),this.refs.selectContainer&&"html5"===this.component.widget&&(r.value&&c.default.isObject(r.value)&&c.default.isEmpty(r.value)&&(r.value=""),(t=document.createElement("div")).innerHTML=this.sanitize(this.renderTemplate("selectOption",{selected:c.default.isEqual(this.getOptionValue(this.dataValue),r.value),option:r,attrs:o,id:i,useId:""===this.valueProperty&&c.default.isObject(e)&&i}),this.shouldSanitizeValue).trim(),r.element=t.firstChild,this.refs.selectContainer.appendChild(r.element))))}},{key:"addValueOptions",value:function(e){e=e||[];var t,n=!1;return this.selectOptions.length||(t=Array.isArray(this.dataValue)?this.dataValue:[this.dataValue],(n=this.addCurrentChoices(t,e))||this.component.multiple||this.addPlaceholder()),n}},{key:"disableInfiniteScroll",value:function(){this.downloadedResources&&(this.downloadedResources.serverCount=this.downloadedResources.length,this.serverCount=this.downloadedResources.length)}},{key:"setItems",value:function(t,e){var n,r,o,i,a=this;if("string"==typeof t)try{t=JSON.parse(t)}catch(e){console.warn(e.message),t=[]}this.component.onSetItems&&"function"==typeof this.component.onSetItems&&(i=this.component.onSetItems(this,t))&&(t=i),!this.choices&&this.refs.selectContainer&&this.empty(this.refs.selectContainer),this.component.selectValues&&(t=c.default.get(t,this.component.selectValues,t)||[]),this.itemsFromUrl&&(n=!!this.isSelectURL&&c.default.isEqual(t,this.downloadedResources),i=this.component.limit>t.length,r=n&&this.downloadedResources&&this.downloadedResources.length===t.length,i?this.disableInfiniteScroll():r?this.selectOptions=[]:this.serverCount=t.serverCount),this.isScrollLoading&&t?(n||(this.downloadedResources=this.downloadedResources?this.downloadedResources.concat(t):t),this.downloadedResources.serverCount=t.serverCount||this.downloadedResources.serverCount):(this.downloadedResources=t||[],this.selectOptions=[],!c.default.isEmpty(this.dataValue)&&this.component.idPath&&(o=c.default.get(this.dataValue,this.component.idPath,null),(i=!c.default.isNil(o)&&t.find(function(e){return c.default.get(e,a.component.idPath)===o}))&&this.setValue(i))),e||this.addValueOptions(t),"html5"!==this.component.widget||this.component.placeholder||this.addOption(null,""),c.default.each(t,function(e,t){var n;a.root&&a.root.options.editForm&&a.root.options.editForm._id&&a.root.options.editForm._id===e._id||(n=a.selectValueAndLabel(e),a.addOption(n.value,n.label,{},c.default.get(e,a.component.idPath,String(t))))}),this.choices?this.choices.setChoices(this.selectOptions,"value","label",!0):this.loading,this.isScrollLoading=!1,this.loading=!1,e&&(null==(r=this.choices)||null==(n=r.input)?void 0:n.isFocussed)||(this.isEmpty()?this.shouldAddDefaultValue&&!this.options.readOnly&&(i=this.defaultValue,this.isEmpty(i)||this.setValue(i)):this.setValue(this.dataValue,{noUpdateEvent:!0})),this.itemsLoadedResolve()}},{key:"getSingleItemValueForHTMLMode",value:function(t){var e=null==(e=this.selectOptions)?void 0:e.find(function(e){e=e.value;return c.default.isEqual(e,t)});return e&&e.label||t}},{key:"itemValueForHTMLMode",value:function(e){var t=this;return this.isHtmlRenderMode()?Array.isArray(e)?e.map(function(e){return Array.isArray(e)?t.itemValueForHTMLMode(e):t.getSingleItemValueForHTMLMode(e)}).join(", "):this.getSingleItemValueForHTMLMode(e):w(S(a.prototype),"itemValueForHTMLMode",this).call(this,e)}},{key:"defaultValue",get:function(){var e=w(S(a.prototype),"defaultValue",this);return e=e||!1!==this.component.defaultValue&&0!==this.component.defaultValue?e:this.component.defaultValue}},{key:"getTemplateKeys",value:function(){var e,t=this;this.templateKeys=[],this.options.readOnly&&this.component.template&&((e=this.component.template.match(/({{\s*(.*?)\s*}})/g))&&e.forEach(function(e){e=e.match(/{{\s*item\.(.*?)\s*}}/);e&&1<e.length&&t.templateKeys.push(e[1])}))}},{key:"loadingError",get:function(){return!this.component.refreshOn&&!this.component.refreshOnBlur&&this.networkError}},{key:"selectData",get:function(){var e=c.default.get(this.root,"submission.metadata.selectData",{});return c.default.get(e,this.path)}},{key:"shouldLoad",get:function(){return!this.loadingError&&(!(this.options.readOnly&&("pdf"!==this.options.display||!this.options.readOnly))||(!this.templateKeys||!this.templateKeys.length||(n=this.dataValue,r=this.selectData,this.templateKeys.reduce(function(e,t){t=c.default.has(n,t)||c.default.has(r,t);return e||!t},!1))));var n,r}},{key:"loadItems",value:function(e,t,n,r,o,i){var a=this;if(r=r||{},!this.shouldLoad||!this.itemsFromUrl&&this.options.readOnly)this.isScrollLoading=!1,this.loading=!1,this.itemsLoadedResolve();else{var l=parseInt(this.component.minSearch,10);if(this.component.searchField&&0<l&&(!t||t.length<l))return this.setItems([]);"GET"===(o=o||"GET").toUpperCase()&&(i=null);var l=this.component.limit||100,s=this.isScrollLoading?this.selectOptions.length:0,u=this.component.disableLimit?{}:{limit:l,skip:s};e=this.interpolate(e,{formioBase:f.GlobalFormio.getBaseUrl(),search:t,limit:l,skip:s,page:Math.abs(Math.floor(s/l))}),this.component.searchField&&t&&(Array.isArray(t)?u["".concat(this.component.searchField)]=t.join(","):u["".concat(this.component.searchField)]=t),this.component.selectFields&&(u.select=this.component.selectFields),this.component.sort&&(u.sort=this.component.sort),c.default.isEmpty(u)||(e+=(e.includes("?")?"&":"?")+f.GlobalFormio.serialize(u,function(e){return a.interpolate(e)})),this.component.filter&&(e+=(e.includes("?")?"&":"?")+this.interpolate(this.component.filter)),r.ignoreCache=this.component.ignoreCache,r.header=n,this.loading=!0,f.GlobalFormio.makeRequest(this.options.formio,"select",e,o,i,r).then(function(e){a.loading=!1,a.error=null,a.setItems(e,!!t)}).catch(function(e){a.itemsFromUrl&&(a.setItems([]),a.disableInfiniteScroll()),a.isScrollLoading=!1,a.handleLoadingError(e)})}}},{key:"handleLoadingError",value:function(e){this.loading=!1,e.networkError&&(this.networkError=!0),this.itemsLoadedResolve(),this.emit("componentError",{component:this.component,message:e.toString()}),console.warn("Unable to load resources for ".concat(this.key))}},{key:"requestHeaders",get:function(){var t=this,n=new f.GlobalFormio.Headers;if(this.component.data&&this.component.data.headers)try{c.default.each(this.component.data.headers,function(e){e.key&&n.set(e.key,t.interpolate(e.value))})}catch(e){console.warn(e.message)}return n}},{key:"getCustomItems",value:function(){var e=this.evaluate(this.component.data.custom,{values:[]},"values");return this.asyncValues=(0,d.isPromise)(e),e}},{key:"asyncCustomValues",value:function(){return c.default.isBoolean(this.asyncValues)||this.getCustomItems(),this.asyncValues}},{key:"updateCustomItems",value:function(e){var t=this;this.asyncCustomValues()?e||this.active?(this.loading=!0,this.getCustomItems().then(function(e){t.loading=!1,t.setItems(e||[])}).catch(function(e){t.handleLoadingError(e)})):this.itemsLoadedResolve():this.setItems(this.getCustomItems()||[])}},{key:"isEmpty",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.dataValue;return w(S(a.prototype),"isEmpty",this).call(this,e)||void 0===e}},{key:"refresh",value:function(e,t){t=t.instance;this.component.clearOnRefresh&&t&&!t.pristine&&this.setValue(this.emptyValue),this.updateItems(null,!0)}},{key:"additionalResourcesAvailable",get:function(){return c.default.isNil(this.serverCount)||this.serverCount>this.downloadedResources.length}},{key:"serverCount",get:function(){return this.isFromSearch?this.searchServerCount:this.defaultServerCount},set:function(e){this.isFromSearch?this.searchServerCount=e:this.defaultServerCount=e}},{key:"downloadedResources",get:function(){return this.isFromSearch?this.searchDownloadedResources:this.defaultDownloadedResources},set:function(e){this.isFromSearch?this.searchDownloadedResources=e:this.defaultDownloadedResources=e}},{key:"updateItems",value:function(e,t){var n,o=this;if(this.component.data)if(this.visible)switch(this.component.dataSrc){case"values":this.setItems(this.component.data.values);break;case"json":this.setItems(this.component.data.json);break;case"custom":this.updateCustomItems(t);break;case"resource":if(!this.component.data.resource||!t&&!this.active)return void this.itemsLoadedResolve();var r=this.options.formio?this.options.formio.formsUrl:"".concat(f.GlobalFormio.getProjectUrl(),"/form");if(r+="/".concat(this.component.data.resource,"/submission"),t||this.additionalResourcesAvailable||!this.serverCount)try{this.loadItems(r,e,this.requestHeaders)}catch(e){console.warn("Unable to load resources for ".concat(this.key))}else this.setItems(this.downloadedResources);break;case"url":if(!t&&!this.active&&!this.calculatedValue)return void this.itemsLoadedResolve();var i,a,r=this.component.data.url,l=(r.startsWith("/")&&(r=(!r.startsWith("/project")&&f.GlobalFormio.getProjectUrl()||f.GlobalFormio.getBaseUrl())+r),this.component.data.method?a="POST"===(i=this.component.data.method).toUpperCase()?this.component.data.body:null:i="GET",this.component.authenticate?{}:{noToken:!0});this.loadItems(r,e,this.requestHeaders,l,i,a);break;case"indexeddb":if("undefined"==typeof window)return;window.indexedDB||window.alert("Your browser doesn't support current version of indexedDB"),this.component.indexeddb&&this.component.indexeddb.database&&this.component.indexeddb.table&&((n=window.indexedDB.open(this.component.indexeddb.database)).onupgradeneeded=function(e){var n;o.component.customOptions&&((n=e.target.result).createObjectStore(o.component.indexeddb.table,{keyPath:"myKey",autoIncrement:!0}).transaction.oncomplete=function(){var t=n.transaction(o.component.indexeddb.table,"readwrite");o.component.customOptions.forEach(function(e){t.objectStore(o.component.indexeddb.table).put(e)})})},n.onerror=function(){window.alert(n.errorCode)},n.onsuccess=function(e){var r=e.target.result.transaction(o.component.indexeddb.table,"readwrite").objectStore(o.component.indexeddb.table);new u.default(function(t){var n=[];r.getAll().onsuccess=function(e){e.target.result.forEach(function(e){n.push(e)}),t(n)}}).then(function(e){c.default.isEmpty(o.component.indexeddb.filter)||(e=c.default.filter(e,o.component.indexeddb.filter)),o.setItems(e)})})}else this.itemsLoadedResolve();else console.warn("Select component ".concat(this.key," does not have data configuration.")),this.itemsLoadedResolve()}},{key:"addPlaceholder",value:function(){this.component.placeholder&&this.addOption("",this.component.placeholder,{placeholder:!0})}},{key:"activate",value:function(){!this.loading&&this.active||this.setLoadingItem(),this.active||(this.activated=!0,this.triggerUpdate())}},{key:"setLoadingItem",value:function(){this.choices?0<arguments.length&&void 0!==arguments[0]&&arguments[0]?this.choices.setChoices([{value:"".concat(this.id,"-loading"),label:"Loading...",disabled:!0}],"value","label"):this.choices.setChoices([{value:"",label:'<i class="'.concat(this.iconClass("refresh"),'" style="font-size:1.3em;"></i>'),disabled:!0}],"value","label",!0):"url"!==this.component.dataSrc&&"resource"!==this.component.dataSrc||this.addOption("",this.t("loading..."))}},{key:"active",get:function(){return!this.component.lazyLoad||this.activated}},{key:"render",value:function(){var e=this.inputInfo;return e.attr=e.attr||{},e.multiple=this.component.multiple,w(S(a.prototype),"render",this).call(this,this.wrapElement(this.renderTemplate("select",{input:e,selectOptions:"",index:null})))}},{key:"wrapElement",value:function(e){return this.component.addResource&&!this.options.readOnly?this.renderTemplate("resourceAdd",{element:e}):e}},{key:"choicesOptions",value:function(){var e=!this.component.hasOwnProperty("searchEnabled")||this.component.searchEnabled,t=this.t(this.component.placeholder,{_userInput:!0}),n=this.component.customOptions||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){console.warn(e.message),n={}}var r={maxPatternLength:1e3,distance:1e3};return p({removeItemButton:!this.component.disabled&&c.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:c.default.get(this,"component.searchFields",["label"]),shadowRoot:this.root?this.root.shadowRoot:null,fuseOptions:this.component.useExactSearch?p({tokenize:!0,matchAllTokens:!0},r):Object.assign({},c.default.get(this,"component.fuseOptions",{}),p({include:"score",threshold:c.default.get(this,"component.selectThreshold",.3)},r)),valueComparer:c.default.isEqual,resetScrollPosition:!1},n)}},{key:"attach",value:function(e){var t,n,r,o=this,i=w(S(a.prototype),"attach",this).call(this,e),e=(this.loadRefs(e,{selectContainer:"single",addResource:"single",autocompleteInput:"single"}),this.refs.autocompleteInput),e=(e&&this.addEventListener(e,"change",function(e){o.setValue(e.target.value)}),this.refs.selectContainer);if(e){if(this.addEventListener(e,this.inputInfo.changeEvent,function(){return o.updateValue(null,{modified:!0})}),this.attachRefreshOnBlur(),"html5"!==this.component.widget)return t=e.tabIndex,this.addPlaceholder(),e.setAttribute("dir",this.i18next.dir()),null!=(r=this.choices)&&null!=(r=r.containerOuter)&&null!=(r=r.element)&&r.parentNode&&this.choices.destroy(),n=this.choicesOptions(),l&&(this.choices=new l(e,n),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"),n.searchEnabled&&this.addEventListener(this.choices.containerOuter.element,"focus",function(){return o.focusableElement.focus()})),this.itemsFromUrl&&(this.scrollList=this.choices.choiceList.element,this.addEventListener(this.scrollList,"scroll",function(){return o.onScroll()}))),this.focusableElement.setAttribute("tabIndex",t),this.component.searchField&&(this.choices&&this.choices.input&&this.choices.input.element&&this.addEventListener(this.choices.input.element,"input",function(e){o.isFromSearch=!!e.target.value,e.target.value?(o.serverCount=null,o.downloadedResources=[]):o.triggerUpdate()}),this.addEventListener(e,"choice",function(){o.component.multiple&&"resource"===o.component.dataSrc&&o.isFromSearch&&o.triggerUpdate(),o.isFromSearch=!1}),r=this.component.searchField&&(this.isSelectResource||this.isSelectURL)?1e3*(0===this.component.searchDebounce?0:this.component.searchDebounce||this.defaultSchema.searchDebounce):0,this.addEventListener(e,"search",c.default.debounce(function(e){o.triggerUpdate(e.detail.value)},r)),this.addEventListener(e,"stopSearch",function(){return o.triggerUpdate()}),this.addEventListener(e,"hideDropdown",function(){o.choices&&o.choices.input&&o.choices.input.element&&(o.choices.input.element.value=""),o.updateItems(null,!0)})),this.addEventListener(e,"showDropdown",function(){return o.update()}),this.choices&&n.placeholderValue&&this.choices._isSelectOneElement&&(this.addPlaceholderItem(n.placeholderValue),this.addEventListener(e,"removeItem",function(){o.addPlaceholderItem(n.placeholderValue)})),this.addValueOptions(),this.setChoicesValue(this.dataValue),this.isSelectResource&&this.refs.addResource&&this.addEventListener(this.refs.addResource,"click",function(e){e.preventDefault();var e=o.ce("div"),t=o.createModal(e),n=c.default.get(o.root,"formio.projectUrl",f.GlobalFormio.getProjectUrl()),n="".concat(n,"/form/").concat(o.component.data.resource);new s.default(e,n,{}).ready.then(function(e){e.on("submit",function(e){e=o.valueProperty?c.default.get(e,o.valueProperty):e;o.component.multiple&&(e=[].concat(h(o.dataValue),[e])),o.setValue(e),o.triggerUpdate(),t.close()})})}),this.disabled=this.shouldDisabled,this.triggerUpdate(),i;this.triggerUpdate(null,!0),this.visible&&this.setItems(this.selectOptions||[]),this.focusableElement=e,this.addEventListener(e,"focus",function(){return o.update()}),this.addEventListener(e,"keydown",function(e){e=e.key;["Backspace","Delete"].includes(e)&&o.setValue(o.emptyValue)})}}},{key:"isLoadingAvailable",get:function(){return!this.isScrollLoading&&this.additionalResourcesAvailable}},{key:"onScroll",value:function(){this.isLoadingAvailable&&(this.isScrollLoading=!0,this.setLoadingItem(!0),this.triggerUpdate(this.choices.input.element.value))}},{key:"attachRefreshOnBlur",value:function(){var t=this;this.component.refreshOnBlur&&this.on("blur",function(e){t.checkRefreshOn([{instance:e,value:e.dataValue}],{fromBlur:!0})})}},{key:"addPlaceholderItem",value:function(e){this.choices._store.activeItems.length||this.choices._addItem({value:e,label:e,choiceId:0,groupId:-1,customProperties:null,placeholder:!0,keyCode:null})}},{key:"update",value:function(){"custom"===this.component.dataSrc&&this.updateCustomItems(),this.activate()}},{key:"disabled",get:function(){return w(S(a.prototype),"disabled",this)},set:function(e){b(S(a.prototype),"disabled",e,this,!0),this.choices&&(e?(this.setDisabled(this.choices.containerInner.element,!0),this.focusableElement.removeAttribute("tabIndex"),this.choices.disable()):(this.setDisabled(this.choices.containerInner.element,!1),this.focusableElement.setAttribute("tabIndex",this.component.tabindex||0),this.choices.enable()))}},{key:"visible",get:function(){return w(S(a.prototype),"visible",this)},set:function(e){e&&!this._visible!=!e&&this.triggerUpdate(),b(S(a.prototype),"visible",e,this,!0)}},{key:"addCurrentChoices",value:function(e,o,i){var a=this;if(!e)return!1;var l=[],e=e.reduce(function(e,t){if(!t||c.default.isEmpty(t))return e;var n=!1,r=o===a.selectOptions;return o&&o.length&&c.default.each(o,function(e){if(e._id&&t._id&&e._id===t._id)return!(n=!0);e=i?e.value:a.itemValue(e,r);return!(n|=c.default.isEqual(e,t))}),n?n||e:(l.push(a.selectValueAndLabel(t)),!0)},!1);return l.length&&(this.choices&&this.choices.setChoices(l,"value","label"),l.map(function(e){a.addOption(e.value,e.label)})),e}},{key:"getValueAsString",value:function(e){return this.component.multiple&&Array.isArray(e)?e.map(this.asString.bind(this)).join(", "):this.asString(e)}},{key:"getValue",value:function(){if(this.viewOnly||this.loading||!this.component.lazyLoad&&!this.selectOptions.length||!this.element)return this.dataValue;var e=this.emptyValue;if(this.choices)e=this.choices.getValue(!0),!this.component.multiple&&this.component.placeholder&&e===this.t(this.component.placeholder,{_userInput:!0})&&(e=this.emptyValue);else if(this.refs.selectContainer){if(e=this.refs.selectContainer.value,""===this.valueProperty){if(""===e)return{};var t=this.selectOptions[e];t&&c.default.isObject(t.value)&&(e=t.value)}}else e=this.dataValue;return e=null==e?"":e}},{key:"redraw",value:function(){var e=w(S(a.prototype),"redraw",this).call(this);return this.triggerUpdate(),e}},{key:"normalizeSingleValue",value:function(n,e){if(!c.default.isNil(n)){var t=c.default.isObject(n);if(t&&0===Object.keys(n).length)return n;n&&!t&&this.templateData[n]&&null!=(t=this.root)&&t.submission&&((t=this.root.submission).metadata||(t.metadata={}),t.metadata.selectData||(t.metadata.selectData={}),c.default.set(t.metadata.selectData,this.path,this.templateData[n]));var r=this.isEntireObjectDisplay(),t=this.component.dataType||"auto",o={value:n,number:function(){var e=Number(this.value),t=n.toString()===e.toString();return!Number.isNaN(e)&&Number.isFinite(e)&&""!==n&&t&&(this.value=e),this},boolean:function(){return!c.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 c.default.isObject(this.value)&&r&&!e&&(this.value=JSON.stringify(this.value)),this},auto:function(){return c.default.isObject(this.value)?this.value=this.object().value:this.value=this.string().number().boolean().value,this}};try{return o[t]().value}catch(e){return console.warn("Failed to normalize value",e),n}}}},{key:"normalizeValue",value:function(e){var t=this;return this.component.multiple&&Array.isArray(e)?e.map(function(e){return t.normalizeSingleValue(e,!0)}):w(S(a.prototype),"normalizeValue",this).call(this,this.normalizeSingleValue(e,!0))}},{key:"setValue",value:function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=this.dataValue;if("html5"===this.component.widget&&(c.default.isEqual(e,r)||c.default.isEqual(r,{})&&c.default.isEqual(n,{})))return!1;var o=this.updateValue(e,n),i=(e=this.dataValue,!this.isEmpty(r)),r=!this.isEmpty(e);return this.component.multiple&&Array.isArray(e)?e=e.map(function(e){return"boolean"==typeof e||"number"==typeof e?e.toString():e}):"boolean"!=typeof e&&"number"!=typeof e||(e=e.toString()),this.isHtmlRenderMode()&&n&&n.fromSubmission&&o?this.itemsLoaded.then(function(){t.redraw()}):this.loading||(this.isInitApiCallNeeded(r)?(this.loading=!0,this.lazyLoadInit=!0,r=this.component.searchField||this.component.valueProperty,this.triggerUpdate(c.default.get(e.data||e,r,e),!0)):this.itemsLoaded.then(function(){t.addValueOptions(),t.setChoicesValue(e,i,n)})),o}},{key:"isInitApiCallNeeded",value:function(e){return this.component.lazyLoad&&!this.lazyLoadInit&&!this.active&&!this.selectOptions.length&&e&&this.shouldLoad&&this.visible&&(this.component.searchField||this.component.valueProperty)}},{key:"setChoicesValue",value:function(e,t){var n,r,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=!this.isEmpty(e)||o.fromSubmission;t=void 0===t||t,this.choices?i?(this.choices.removeActiveItems(),r=Array.isArray(e)?e:[e],this.addCurrentChoices(r,this.selectOptions,!0)||this.choices.setChoices(this.selectOptions,"value","label",!0),this.choices.setChoiceByValue(e)):(t||o.resetValue)&&this.choices.removeActiveItems():i?(n=Array.isArray(e)?e:[e],!c.default.isEqual(this.dataValue,this.defaultValue)&&this.selectOptions.length<2&&(t=(r=this.selectValueAndLabel(this.dataValue)).value,o=r.label,this.addOption(t,o)),c.default.each(this.selectOptions,function(t){c.default.each(n,function(e){if(""===t.value&&(t.value={}),c.default.isEqual(e,t.value)&&t.element)return t.element.selected=!0,t.element.setAttribute("selected","selected"),!1})})):c.default.each(this.selectOptions,function(e){e.element&&(e.element.selected=!1,e.element.removeAttribute("selected"))})}},{key:"itemsLoaded",get:function(){return this._itemsLoaded||u.default.resolve()},set:function(e){this._itemsLoaded=e}},{key:"validateValueAvailability",value:function(e,t){var n=this;if(!(0,d.boolValue)(e)||!t)return!0;e=this.getOptionsValues();return!!e&&(c.default.isObject(t)?-1!==e.findIndex(function(e){if(e=n.normalizeSingleValue(e,!0),!c.default.isObject(e))return!1;try{return JSON.stringify(e)===JSON.stringify(t)}catch(e){return console.warn.error("Error while comparing items",e),!1}}):-1!==e.findIndex(function(e){return n.normalizeSingleValue(e)===t}))}},{key:"getOptionValue",value:function(e){return c.default.isObject(e)&&this.isEntireObjectDisplay()?this.normalizeSingleValue(e):c.default.isObject(e)&&(this.valueProperty||"resource"!==this.component.key)?e:c.default.isObject(e)&&!this.valueProperty?this.interpolate(this.component.template,{item:e}).replace(/<\/?[^>]+(>|$)/g,""):c.default.isNull(e)?this.emptyValue:String(this.normalizeSingleValue(e))}},{key:"getOptionsValues",value:function(){var t=this,n=[];switch(this.component.dataSrc){case"values":n=this.component.data.values;break;case"json":n=this.component.data.json;break;case"custom":n=this.getCustomItems()}if("string"==typeof n)try{n=JSON.parse(n)}catch(e){console.warn(e.message),n=[]}if(Array.isArray(n))return n.map(function(e){return t.getOptionValue(t.itemValue(e))})}},{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 t=this;if(this.component&&this.component.data&&this.component.data.values)return this.component.data.values.map(function(e){return{label:e.label,value:String(t.normalizeSingleValue(e.value))}})}},{key:"asString",value:function(t){function e(e,t){return t?Array.isArray(e)?e.forEach(function(e){return e[t]=e[t].toString()}):e[t]=e[t].toString():(i.isBooleanOrNumber(e)&&(e=e.toString()),Array.isArray(e)&&e.some(function(e){return i.isBooleanOrNumber(e)})&&(e=e.map(function(e){i.isBooleanOrNumber(e)&&e.toString()}))),e}var n,r,o,i=this;return t=e(t=null!=(r=t)?r:this.getValue()),["values","custom"].includes(this.component.dataSrc)&&!this.asyncCustomValues()&&(r="values"===this.component.dataSrc?{items:e(this.getNormalizedValues(),"value"),valueProperty:"value"}:{items:e(this.getCustomItems(),this.valueProperty),valueProperty:this.valueProperty},n=r.items,r=r.valueProperty,t=this.component.multiple&&Array.isArray(t)?c.default.filter(n,function(e){return t.includes(e.value)}):r?null!==(n=c.default.find(n,[r,t]),r=i.defaultSchema.data.values||[],r=c.default.isEqual(n,r[0])?"-":n)&&void 0!==r?r:{value:t,label:t}:t),c.default.isString(t)?t:Array.isArray(t)?(o=[],t.forEach(function(e){return o.push(i.itemTemplate(e))}),0<o.length?o.join("<br />"):"-"):c.default.isNil(t)?"-":this.itemTemplate(t)}},{key:"detach",value:function(){var e;w(S(a.prototype),"detach",this).call(this),this.choices&&(null!=(e=this.choices.containerOuter)&&null!=(e=e.element)&&e.parentNode&&this.choices.destroy(),this.choices=null)}},{key:"focus",value:function(){this.focusableElement&&(w(S(a.prototype),"focus",this).call(this),this.focusableElement.focus())}},{key:"setErrorClasses",value:function(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:this.element;w(S(a.prototype),"setErrorClasses",this).call(this,e,t,n,r,o),this.choices?w(S(a.prototype),"setErrorClasses",this).call(this,[this.choices.containerInner.element],t,n,r,o):w(S(a.prototype),"setErrorClasses",this).call(this,[this.refs.selectContainer],t,n,r,o)}}])&&y(t.prototype,n),e&&y(t,e),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.default);t.default=n},function(e,t,n){
/*! @formio/choices.js v9.0.1 | © 2021 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
var r;window,r=function(){return n=[function(e,t,n){"use strict";function o(e){return!(!(t=e)||"object"!=typeof t||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||function(e){return e.$$typeof===r}(t)));var t}var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u(Array.isArray(e)?[]:{},e,t):e}function i(e,t,n){return e.concat(t).map(function(e){return l(e,n)})}function s(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function a(r,o,i){var a={};return i.isMergeableObject(r)&&s(r).forEach(function(e){a[e]=l(r[e],i)}),s(o).forEach(function(e){var t,n;!function(e,t){try{return t in e&&(!Object.hasOwnProperty.call(e,t)||!Object.propertyIsEnumerable.call(e,t))}catch(e){}}(r,e)&&(i.isMergeableObject(o[e])&&r[e]?a[e]=(t=e,((n=i).customMerge&&"function"==typeof(n=n.customMerge(t))?n:u)(r[e],o[e],i)):a[e]=l(o[e],i))}),a}function u(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||i,n.isMergeableObject=n.isMergeableObject||o,n.cloneUnlessOtherwiseSpecified=l;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):a(e,t,n):l(t,n)}u.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return u(e,t,n)},{});throw new Error("first argument should be an array")},e.exports=u},function(e,r,o){"use strict";!function(e,t){var n=o(3),e="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:t,t=Object(n.a)(e);r.a=t}.call(this,o(5),o(6)(e))},function(e,t,n){function o(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var r,i;e.exports=(r=[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 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 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 i=n(2),g=n(8),j=n(0),n=(r(w.prototype,[{key:"setCollection",value:function(e){return this.list=e}},{key:"search",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{limit:!1},n=(this._log('---------\nSearch pattern: "'.concat(e,'"')),this._prepareSearchers(e)),r=n.tokenSearchers,n=n.fullSearcher,r=this._search(r,n),n=r.weights,r=r.results;return this._computeScore(n,r),this.options.shouldSort&&this._sort(r),t.limit&&"number"==typeof t.limit&&(r=r.slice(0,t.limit)),this._format(r)}},{key:"_prepareSearchers",value:function(){var e=0<arguments.length&&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=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length?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 l={},s=0,u=n.length;s<u;s+=1)for(var c=n[s],f=0,d=this.options.keys.length;f<d;f+=1){var p=this.options.keys[f];if("string"!=typeof p){if(l[p.name]={weight:1-p.weight||1},p.weight<=0||1<p.weight)throw new Error("Key weight has to be > 0 and <= 1");p=p.name}else l[p]={weight:1};this._analyze({key:p,value:this.options.getFn(c,p),record:c,index:s},{resultMap:r,results:o,tokenSearchers:e,fullSearcher:t})}return{weights:l,results:o}}},{key:"_analyze",value:function(e,t){var n=e.key,r=e.arrayIndex,r=void 0===r?-1:r,o=e.value,i=e.record,a=e.index,e=t.tokenSearchers,l=void 0===e?[]:e,e=t.fullSearcher,s=void 0===e?[]:e,e=t.resultMap,u=void 0===e?{}:e,e=t.results,c=void 0===e?[]:e;if(null!=o){var f=!1,d=-1,p=0;if("string"==typeof o){this._log("\nKey: ".concat(""===n?"-":n));t=s.search(o);if(this._log('Full text: "'.concat(o,'", score: ').concat(t.score)),this.options.tokenize){for(var h=o.split(this.options.tokenSeparator),m=[],y=0;y<l.length;y+=1){var v=l[y];this._log('\nPattern: "'.concat(v.pattern,'"'));for(var b=!1,g=0;g<h.length;g+=1){var w=h[g],k=v.search(w),_={};k.isMatch?(_[w]=k.score,b=f=!0,m.push(k.score)):(_[w]=1,this.options.matchAllTokens||m.push(1)),this._log('Token: "'.concat(w,'", score: ').concat(_[w]))}b&&(p+=1)}for(var d=m[0],O=m.length,S=1;S<O;S+=1)d+=m[S];this._log("Token score average:",d/=O)}var e=t.score,P=(this._log("Score average:",e=-1<d?(e+d)/2:e),!this.options.tokenize||!this.options.matchAllTokens||p>=l.length);this._log("\nCheck Matches: ".concat(P)),(f||t.isMatch)&&P&&((P=u[a])?P.output.push({key:n,arrayIndex:r,value:o,score:e,matchedIndices:t.matchedIndices}):(u[a]={item:i,output:[{key:n,arrayIndex:r,value:o,score:e,matchedIndices:t.matchedIndices}]},c.push(u[a])))}else if(j(o))for(var E=0,x=o.length;E<x;E+=1)this._analyze({key:n,arrayIndex:E,value:o[E],record:i,index:a},{resultMap:u,results:c,tokenSearchers:l,fullSearcher:s})}}},{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,l=1,s=0;s<i;s+=1){var u=e?e[o[s].key].weight:1,c=(1===u?o[s].score:o[s].score||.001)*u;1!==u?l=Math.min(l,c):a*=o[s].nScore=c}t[n].score=1===l?a:l,this._log(t[n])}}},{key:"_sort",value:function(e){this._log("\n\nSorting...."),e.sort(this.options.sortFn)}},{key:"_format",value:function(e){var n,t=[],r=(this.options.verbose&&(n=[],this._log("\n\nOutput:\n\n",JSON.stringify(e,function(e,t){if("object"===c(t)&&null!==t){if(-1!==n.indexOf(t))return;n.push(t)}return t})),n=null),[]);this.options.includeMatches&&r.push(function(e,t){var n=e.output;t.matches=[];for(var r=0,o=n.length;r<o;r+=1){var i,a=n[r];0!==a.matchedIndices.length&&(i={indices:a.matchedIndices,value:a.value},a.key&&(i.key=a.key),a.hasOwnProperty("arrayIndex")&&-1<a.arrayIndex&&(i.arrayIndex=a.arrayIndex),t.matches.push(i))}}),this.options.includeScore&&r.push(function(e,t){t.score=e.score});for(var o=0,i=e.length;o<i;o+=1){var a=e[o];if(this.options.id&&(a.item=this.options.getFn(a.item,this.options.id)[0]),r.length){for(var l={item:a.item},s=0,u=r.length;s<u;s+=1)r[s](a,l);t.push(l)}else t.push(a.item)}return t}},{key:"_log",value:function(){var e;this.options.verbose&&(e=console).log.apply(e,arguments)}}]),w);function w(e,t){var n=t.location,n=void 0===n?0:n,r=t.distance,r=void 0===r?100:r,o=t.threshold,o=void 0===o?.6:o,i=t.maxPatternLength,i=void 0===i?32:i,a=t.caseSensitive,a=void 0!==a&&a,l=t.tokenSeparator,l=void 0===l?/ +/g:l,s=t.findAllMatches,s=void 0!==s&&s,u=t.minMatchCharLength,u=void 0===u?1:u,c=t.id,c=void 0===c?null:c,f=t.keys,f=void 0===f?[]:f,d=t.shouldSort,d=void 0===d||d,p=t.getFn,p=void 0===p?g:p,h=t.sortFn,h=void 0===h?function(e,t){return e.score-t.score}:h,m=t.tokenize,m=void 0!==m&&m,y=t.matchAllTokens,y=void 0!==y&&y,v=t.includeMatches,v=void 0!==v&&v,b=t.includeScore,b=void 0!==b&&b,t=t.verbose,t=void 0!==t&&t;if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");this.options={location:n,distance:r,threshold:o,maxPatternLength:i,isCaseSensitive:a,tokenSeparator:l,findAllMatches:s,minMatchCharLength:u,id:c,keys:f,includeMatches:v,includeScore:b,shouldSort:d,getFn:p,sortFn:h,verbose:t,tokenize:m,matchAllTokens:y},this.setCollection(e)}e.exports=n},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 a=n(3),l=n(4),u=n(7),n=(r(c.prototype,[{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,t=t.tokenSeparator;if(this.pattern.length>n)return a(e,this.pattern,t);var n=this.options,t=n.location,r=n.distance,o=n.threshold,i=n.findAllMatches,n=n.minMatchCharLength;return l(e,this.pattern,this.patternAlphabet,{location:t,distance:r,threshold:o,findAllMatches:i,minMatchCharLength:n})}}]),c);function c(e,t){var n=t.location,n=void 0===n?0:n,r=t.distance,r=void 0===r?100:r,o=t.threshold,o=void 0===o?.6:o,i=t.maxPatternLength,i=void 0===i?32:i,a=t.isCaseSensitive,a=void 0!==a&&a,l=t.tokenSeparator,l=void 0===l?/ +/g:l,s=t.findAllMatches,s=void 0!==s&&s,t=t.minMatchCharLength,t=void 0===t?1:t;if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");this.options={location:n,distance:r,threshold:o,maxPatternLength:i,isCaseSensitive:a,tokenSeparator:l,findAllMatches:s,minMatchCharLength:t},this.pattern=this.options.isCaseSensitive?e:e.toLowerCase(),this.pattern.length<=i&&(this.patternAlphabet=u(this.pattern))}e.exports=n},function(e,t){var s=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;e.exports=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:/ +/g,n=new RegExp(t.replace(s,"\\$&").replace(n,"|")),r=e.match(n),n=!!r,o=[];if(n)for(var i=0,a=r.length;i<a;i+=1){var l=r[i];o.push([e.indexOf(l),l.length-1])}return{score:n?.5:1,isMatch:n,matchedIndices:o}}},function(e,t,n){var C=n(5),R=n(6);e.exports=function(e,t,n,r){for(var o=r.location,i=r.distance,a=void 0===i?100:i,i=r.threshold,l=r.findAllMatches,s=void 0!==l&&l,l=r.minMatchCharLength,r=void 0===l?1:l,u=void 0===o?0:o,c=e.length,f=void 0===i?.6:i,d=e.indexOf(t,u),p=t.length,h=[],m=0;m<c;m+=1)h[m]=0;-1!==d&&(l=C(t,{errors:0,currentLocation:d,expectedLocation:u,distance:a}),f=Math.min(l,f),-1!==(d=e.lastIndexOf(t,u+p))&&(o=C(t,{errors:0,currentLocation:d,expectedLocation:u,distance:a}),f=Math.min(o,f)));for(var d=-1,y=[],v=1,b=p+c,g=1<<p-1,w=0;w<p;w+=1){for(var k=0,_=b;k<_;)C(t,{errors:w,currentLocation:u+_,expectedLocation:u,distance:a})<=f?k=_:b=_,_=Math.floor((b-k)/2+k);var b=_,O=Math.max(1,u-_+1),S=s?c:Math.min(u+_,c)+p,P=Array(S+2);P[S+1]=(1<<w)-1;for(var E=S;O<=E;--E){var x=E-1,j=n[e.charAt(x)];if(j&&(h[x]=1),P[E]=(P[E+1]<<1|1)&j,0!==w&&(P[E]|=(y[E+1]|y[E])<<1|1|y[E+1]),P[E]&g&&(v=C(t,{errors:w,currentLocation:x,expectedLocation:u,distance:a}))<=f){if(f=v,(d=x)<=u)break;O=Math.max(1,2*u-d)}}if(C(t,{errors:w+1,currentLocation:u,expectedLocation:u,distance:a})>f)break;y=P}return{isMatch:0<=d,score:0===v?.001:v,matchedIndices:R(h,r)}}},function(e,t){e.exports=function(e,t){var n=t.errors,r=t.currentLocation,o=t.expectedLocation,t=t.distance,t=void 0===t?100:t,n=(void 0===n?0:n)/e.length,e=Math.abs((void 0===o?0:o)-(void 0===r?0:r));return t?n+e/t:e?1:n}},function(e,t){e.exports=function(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,n=[],r=-1,o=0,i=e.length;o<i;o+=1){var a=e[o];a&&-1===r?r=o:a||-1===r||((a=o-1)-r+1>=t&&n.push([r,a]),r=-1)}return e[o-1]&&t<=o-r&&n.push([r,o-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 c=n(0);e.exports=function(e,t){return function e(t,n,r){if(n){var o=n.indexOf("."),i=n,a=null,l=(-1!==o&&(i=n.slice(0,o),a=n.slice(o+1)),t[i]);if(null!=l)if(a||"string"!=typeof l&&"number"!=typeof l)if(c(l))for(var s=0,u=l.length;s<u;s+=1)e(l[s],a,r);else a&&e(l,a,r);else r.push(l.toString())}else r.push(t);return r}(e,t,[])}}],i={},o.m=r,o.c=i,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=1))},function(e,t,n){"use strict";function r(e){var t,e=e.Symbol;return"function"==typeof e?e.observable?t=e.observable:(t=e("observable"),e.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=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){var t;return e.webpackPolyfill||((t=Object.create(e)).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),t}},function(L,e,t){"use strict";t.r(e);function n(){return Math.random().toString(36).substring(7).split("").join(".")}var r=t(2),V=t.n(r),r=t(0),l=t.n(r),d=t(1),p={INIT:"@@redux/INIT"+n(),REPLACE:"@@redux/REPLACE"+n(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+n()}};function N(e){if("object"==typeof e&&null!==e){for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}}function h(e,t,n){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(h)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var r=e,o=t,i=[],a=i,l=!1;function s(){a===i&&(a=i.slice())}function u(){if(l)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 o}function c(t){if("function"!=typeof t)throw new Error("Expected the listener to be a function.");if(l)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 n=!0;return s(),a.push(t),function(){if(n){if(l)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.");n=!1,s();var e=a.indexOf(t);a.splice(e,1)}}}function f(e){if(!N(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(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,o=r(o,e)}finally{l=!1}for(var t=i=a,n=0;n<t.length;n++)(0,t[n])();return e}return f({type:p.INIT}),(n={dispatch:f,subscribe:c,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");r=e,f({type:p.REPLACE})}})[d.a]=function(){var n=c,e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function t(){e.next&&e.next(u())}return t(),{unsubscribe:n(t)}}};return e[d.a]=function(){return this},e},n}var F=[];var U=[];var o=[];function z(e,t){return void 0===e&&(e=W),"SET_IS_LOADING"!==t.type?e:{loading:t.isLoading}}function i(e){return Object.prototype.toString.call(e).slice(8,-1)}function s(e,t){return null!=t&&i(t)===e}function a(e){return"string"!=typeof e?e:e.replace(/&/g,"&amp;").replace(/>/g,"&rt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}function B(e){for(e=e.trim(),c.innerHTML=e,e=c.children[0];c.firstChild;)c.removeChild(c.firstChild);return e}function H(e,t){return e.score-t.score}function u(e){return JSON.parse(JSON.stringify(e))}function q(e,t){if("CLEAR_ALL"===t.type)e=void 0;else if("RESET_TO"===t.type)return u(t.state);return K(e,t)}var c,W={loading:!1},f=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("")},K=(c=document.createElement("div"),function(e){for(var t=Object.keys(e),c={},n=0;n<t.length;n++){var r=t[n];"function"==typeof e[r]&&(c[r]=e[r])}var f,o,d=Object.keys(c);try{o=c,Object.keys(o).forEach(function(e){var t=o[e];if(void 0===t(void 0,{type:p.INIT}))throw new Error('Reducer "'+e+"\" 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===t(void 0,{type:p.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+e+"\" returned undefined when probed with a random type. Don't try to handle "+p.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.')})}catch(e){f=e}return function(e,t){if(void 0===e&&(e={}),f)throw f;for(var n,r=!1,o={},i=0;i<d.length;i++){var a,l=d[i],s=c[l],u=e[l],s=s(u,t);if(void 0===s)throw n=l,a="Given "+((a=(a=t)&&a.type)&&'action "'+String(a)+'"'||"an action")+', reducer "'+n+'" 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.',new Error(a);o[l]=s,r=r||s!==u}return r?o:e}}({items:function(e,t){switch(void 0===e&&(e=F),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){return e.highlighted=!1,e});case"REMOVE_ITEM":return e.map(function(e){return e.id===t.id&&(e.active=!1),e});case"HIGHLIGHT_ITEM":return e.map(function(e){return e.id===t.id&&(e.highlighted=t.highlighted),e});default:return e}},groups:function(e,t){switch(void 0===e&&(e=U),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=o),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){return e.active=t.active,e}):-1<t.choiceId?e.map(function(e){return e.id===parseInt(t.choiceId,10)&&(e.selected=!0),e}):e;case"REMOVE_ITEM":return-1<t.choiceId?e.map(function(e){return e.id===parseInt(t.choiceId,10)&&(e.selected=!1),e}):e;case"FILTER_CHOICES":return e.map(function(e){var n=e;return n.active=t.results.some(function(e){var t=e.item,e=e.score;return t.id===n.id&&(n.score=e,!0)}),n});case"ACTIVATE_CHOICES":return e.map(function(e){return e.active=t.active,e});case"CLEAR_CHOICES":return o;default:return e}},general:z}));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)}}var Y=function(){function e(){this._store=h(q,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}var t,n,r=e.prototype;return r.subscribe=function(e){this._store.subscribe(e)},r.dispatch=function(e){this._store.dispatch(e)},r.isLoading=function(){return this.state.general.loading},r.getChoiceById=function(t){return this.activeChoices.find(function(e){return e.id===parseInt(t,10)})},r.getGroupById=function(t){return this.groups.find(function(e){return e.id===t})},r=e,(t=[{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,n=this.choices;return e.filter(function(e){var e=!0===e.active&&!1===e.disabled,t=n.some(function(e){return!0===e.active&&!1===e.disabled});return e&&t},[])}}])&&m(r.prototype,t),n&&m(r,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)}}var G=function(){function e(e){var t=e.element,n=e.type,e=e.classNames;this.element=t,this.classNames=e,this.type=n,this.isActive=!1}var t,n,r=e.prototype;return r.getChild=function(e){return this.element.querySelector(e)},r.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},r.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},r=e,(t=[{key:"distanceFromTopWindow",get:function(){return this.element.getBoundingClientRect().bottom}}])&&y(r.prototype,t),n&&y(r,n),e}(),v={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,e=e.label,n=void 0===e?n:e,e=t.value,t=t.label;return n.localeCompare(void 0===t?e:t,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},shadowRoot:null,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(e){return'Press Enter to add <b>"'+a(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"}},$="showDropdown",J="hideDropdown",Q="change",Z="choice",X="search",ee="addItem",b="removeItem",g="highlightItem",te="highlightChoice",ne="ADD_CHOICE",re="FILTER_CHOICES",oe="ACTIVATE_CHOICES",ie="CLEAR_CHOICES",ae="ADD_GROUP",le="ADD_ITEM",se="REMOVE_ITEM",ue="HIGHLIGHT_ITEM",w=46,k=8,_=13,ce=65,fe=27,de=38,O=40,S=33,P=34,E="select-one",pe="select-multiple",x=function(){function e(e){var t=e.element,n=e.type,r=e.classNames,e=e.position;this.element=t,this.classNames=r,this.type=n,this.position=e,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"),this.type===E&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},t.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===E&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},t.wrap=function(e){var t;e=e,void 0===(t=this.element)&&(t=document.createElement("div")),e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t.appendChild(e)},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 j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var he=function(){function e(e){var t=e.element,n=e.type,r=e.classNames,e=e.preventPaste;this.element=t,this.type=n,this.classNames=r,this.preventPaste=e,this.isFocussed=this.element===document.activeElement,this.isDisabled=t.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}var t,n,r=e.prototype;return r.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},r.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput,{passive:!0}),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus,{passive:!0}),this.element.removeEventListener("blur",this._onBlur,{passive:!0})},r.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},r.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},r.focus=function(){this.isFocussed||this.element.focus()},r.blur=function(){this.isFocussed&&this.element.blur()},r.clear=function(e){return void 0===e&&(e=!0),this.element.value&&(this.element.value=""),e&&this.setWidth(),this},r.setWidth=function(){var e=this.element,t=e.style,n=e.value,e=e.placeholder;t.minWidth=e.length+1+"ch",t.width=n.length+1+"ch"},r.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},r.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},r._onInput=function(){this.type!==E&&this.setWidth()},r._onPaste=function(e){this.preventPaste&&e.preventDefault()},r._onFocus=function(){this.isFocussed=!0},r._onBlur=function(){this.isFocussed=!1},r=e,(t=[{key:"placeholder",set:function(e){this.element.placeholder=e}},{key:"value",get:function(){return a(this.element.value)},set:function(e){this.element.value=e}}])&&j(r.prototype,t),n&&j(r,n),e}(),C=function(){function e(e){e=e.element;this.element=e,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,r,o,i=this;e&&(n=this.element.offsetHeight,n=this.element.scrollTop+n,r=e.offsetHeight,r=e.offsetTop+r,o=0<t?this.element.scrollTop+r-n:e.offsetTop,requestAnimationFrame(function(){i._animateScroll(o,t)}))},t._scrollDown=function(e,t,n){n=(n-e)/t;this.element.scrollTop=e+(1<n?n:1)},t._scrollUp=function(e,t,n){n=(e-n)/t;this.element.scrollTop=e-(1<n?n:1)},t._animateScroll=function(e,t){var n=this,r=this.element.scrollTop,o=!1;0<t?(this._scrollDown(r,4,e),r<e&&(o=!0)):(this._scrollUp(r,4,e),e<r&&(o=!0)),o&&requestAnimationFrame(function(){n._animateScroll(e,t)})},e}();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)}}r=function(){function e(e){var t=e.element,e=e.classNames;if(this.element=t,this.classNames=e,!(t instanceof HTMLInputElement||t instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}var t,n,r=e.prototype;return r.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var e=this.element.getAttribute("style");e&&this.element.setAttribute("data-choice-orig-style",e),this.element.setAttribute("data-choice","active")},r.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var e=this.element.getAttribute("data-choice-orig-style");e?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",e)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},r.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},r.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},r.triggerEvent=function(e,t){var n=this.element,r=e;void 0===t&&(t=null),r=new CustomEvent(e,{detail:t,bubbles:!0,cancelable:!0}),n.dispatchEvent(r)},r=e,(t=[{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}}])&&R(r.prototype,t),n&&R(r,n),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 me=function(r){var e,t,n;function o(e){var t=e.element,n=e.classNames,e=e.delimiter,t=r.call(this,{element:t,classNames:n})||this;return t.delimiter=e,t}return t=r,(e=o).prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t,e=o,(t=[{key:"value",get:function(){return this.element.value},set:function(e){e=e.map(function(e){return e.value}).join(this.delimiter);this.element.setAttribute("value",e),this.element.value=e}}])&&A(e.prototype,t),n&&A(e,n),o}(r);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 T(e){return{type:oe,active:e=void 0===e?!0:e}}function D(e,t){return{type:ue,id:e,highlighted:t}}function I(e){var t=e.value,n=e.id,r=e.active,e=e.disabled;return{type:ae,value:t,id:n,active:r,disabled:e}}function ye(e){return{type:"SET_IS_LOADING",isLoading:e}}var ve=function(r){var e,t,n;function o(e){var t=e.element,n=e.classNames,e=e.template,t=r.call(this,{element:t,classNames:n})||this;return t.template=e,t}return t=r,(e=o).prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t,o.prototype.appendDocFragment=function(e){this.element.innerHTML="",this.element.appendChild(e)},e=o,(t=[{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){e=t.template(e),n.appendChild(e)}),this.appendDocFragment(n)}}])&&M(e.prototype,t),n&&M(e,n),o}(r),be={containerOuter:function(e,t,n,r,o,i){e=e.containerOuter,e=Object.assign(document.createElement("div"),{className:e});return e.dataset.type=i,t&&(e.dir=t),r&&(e.tabIndex=0),n&&(e.setAttribute("role",o?"combobox":"listbox"),o&&e.setAttribute("aria-autocomplete","list")),e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded","false"),e},containerInner:function(e){e=e.containerInner;return Object.assign(document.createElement("div"),{className:e})},itemList:function(e,t){var n=e.list,r=e.listSingle,e=e.listItems;return Object.assign(document.createElement("div"),{className:n+" "+(t?r:e)})},placeholder:function(e,t){e=e.placeholder;return Object.assign(document.createElement("div"),{className:e,innerHTML:t})},item:function(e,t,n){var r=e.item,o=e.button,i=e.highlightedState,a=e.itemSelectable,e=e.placeholder,l=t.id,s=t.value,u=t.label,c=t.customProperties,f=t.active,d=t.disabled,p=t.highlighted,t=t.placeholder,r=Object.assign(document.createElement("div"),{className:r,innerHTML:u});return Object.assign(r.dataset,{item:"",id:l,value:s,customProperties:c}),f&&r.setAttribute("aria-selected","true"),d&&r.setAttribute("aria-disabled","true"),t&&r.classList.add(e),r.classList.add(p?i:a),n&&(d&&r.classList.remove(a),r.dataset.deletable="",u="Remove item",(l=Object.assign(document.createElement("button"),{type:"button",className:o,innerHTML:u})).setAttribute("aria-label",u+": '"+s+"'"),l.dataset.button="",r.appendChild(l)),r},choiceList:function(e,t){e=e.list,e=Object.assign(document.createElement("div"),{className:e});return t||e.setAttribute("aria-multiselectable","true"),e.setAttribute("role","listbox"),e},choiceGroup:function(e,t){var n=e.group,r=e.groupHeading,e=e.itemDisabled,o=t.id,i=t.value,t=t.disabled,n=Object.assign(document.createElement("div"),{className:n+" "+(t?e:"")});return n.setAttribute("role","group"),Object.assign(n.dataset,{group:"",id:o,value:i}),t&&n.setAttribute("aria-disabled","true"),n.appendChild(Object.assign(document.createElement("div"),{className:r,innerHTML:i})),n},choice:function(e,t,n){var r=e.item,o=e.itemChoice,i=e.itemSelectable,a=e.selectedState,l=e.itemDisabled,e=e.placeholder,s=t.id,u=t.value,c=t.label,f=t.groupId,d=t.elementId,p=t.disabled,h=t.selected,t=t.placeholder,d=Object.assign(document.createElement("div"),{id:d,innerHTML:c,className:r+" "+o});return h&&d.classList.add(a),t&&d.classList.add(e),d.setAttribute("role",0<f?"treeitem":"option"),Object.assign(d.dataset,{choice:"",id:s,value:u,selectText:n}),p?(d.classList.add(l),d.dataset.choiceDisabled="",d.setAttribute("aria-disabled","true")):(d.classList.add(i),d.dataset.choiceSelectable=""),d},input:function(e,t){var n=e.input,e=e.inputCloned,n=Object.assign(document.createElement("input"),{type:"text",className:n+" "+e,autocomplete:"off",autocapitalize:"off",spellcheck:!1});return n.setAttribute("role","textbox"),n.setAttribute("aria-autocomplete","list"),n.setAttribute("aria-label",t),n},dropdown:function(e){var t=e.list,e=e.listDropdown,n=document.createElement("div");return n.classList.add(t,e),n.setAttribute("aria-expanded","false"),n},notice:function(e,t,n){var r=e.item,o=e.itemChoice,i=e.noResults,e=e.noChoices,r=[r,o];return"no-choices"===(n=void 0===n?"":n)?r.push(e):"no-results"===n&&r.push(i),Object.assign(document.createElement("div"),{innerHTML:t,className:r.join(" ")})},option:function(e){var t=e.label,n=e.value,r=e.customProperties,o=e.active,e=e.disabled,t=new Option(t,n,!1,o);return r&&(t.dataset.customProperties=r),t.disabled=e,t}};function ge(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 we="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,ke={},t=function(){var e,t;function a(e,t){var n,r=this,o=(void 0===e&&(e="[data-choice]"),this.config=l.a.all([v,a.defaults.options,t=void 0===t?{}:t],{arrayMerge:function(e,t){return[].concat(t)}}),t.shadowRoot&&(this.config.shadowRoot=t.shadowRoot),i=this.config,o=v,i=Object.keys(i).sort(),n=Object.keys(o).sort(),i.filter(function(e){return n.indexOf(e)<0})),i=(o.length&&console.warn("Unknown config option(s) passed",o.join(", ")),"string"==typeof e?document.querySelector(e):e);if(!(i instanceof HTMLInputElement||i instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");this._isTextElement="text"===i.type,this._isSelectOneElement=i.type===E,this._isSelectMultipleElement=i.type===pe,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&&(o=t.addItemFilter instanceof RegExp?t.addItemFilter:new RegExp(t.addItemFilter),this.config.addItemFilter=o.test.bind(o)),this._isTextElement?this.passedElement=new me({element:i,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new ve({element:i,classNames:this.config.classNames,template:function(e){return r._templates.option(e)}}),this.initialised=!1,this._store=new Y,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){e=e.id||e.name&&e.name+"-"+f(2)||f(4);return e=t+"-"+(e=e.replace(/(:|\.|\[|\]|,)/g,""))}(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,this._direction||(e=window.getComputedStyle(this.passedElement.element).direction)!==window.getComputedStyle(document.documentElement).direction&&(this._direction=e),this._idNames={itemChoice:"item-choice"},this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options,this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&(this._presetItems=this._presetItems.concat(this.passedElement.value.split(this.config.delimiter))),this.passedElement.options&&this.passedElement.options.forEach(function(e){r._presetChoices.push({value:e.value,label:e.innerHTML,selected:e.selected,disabled:e.disabled||e.parentNode.disabled,placeholder:""===e.value||e.hasAttribute("placeholder"),customProperties:e.getAttribute("data-custom-properties")})}),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onAKey=this._onAKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive?(this.config.silent||console.warn("Trying to initialise Choices on element already initialised"),this.initialised=!0):this.init()}e=a,t=[{key:"defaults",get:function(){return Object.preventExtensions({get options(){return ke},get templates(){return be}})}}],(n=null)&&ge(e.prototype,n),t&&ge(e,t);var n=a.prototype;return n.init=function(){var e;this.initialised||(this._createTemplates(),this._createElements(),this._createStructure(),this._initialState=u(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,(e=this.config.callbackOnInit)&&"function"==typeof e&&e.call(this))},n.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)},n.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},n.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},n.highlightItem=function(e,t){var n,r,o;return void 0===t&&(t=!0),e&&(n=e.id,o=e.groupId,r=void 0===(r=e.value)?"":r,e=void 0===(e=e.label)?"":e,o=0<=(o=void 0===o?-1:o)?this._store.getGroupById(o):null,this._store.dispatch(D(n,!0)),t&&this.passedElement.triggerEvent(g,{id:n,value:r,label:e,groupValue:o&&o.value?o.value:null})),this},n.unhighlightItem=function(e){var t,n,r;return e&&(t=e.id,r=e.groupId,n=void 0===(n=e.value)?"":n,e=void 0===(e=e.label)?"":e,r=0<=(r=void 0===r?-1:r)?this._store.getGroupById(r):null,this._store.dispatch(D(t,!1)),this.passedElement.triggerEvent(g,{id:t,value:n,label:e,groupValue:r&&r.value?r.value:null})),this},n.highlightAll=function(){var t=this;return this._store.items.forEach(function(e){return t.highlightItem(e)}),this},n.unhighlightAll=function(){var t=this;return this._store.items.forEach(function(e){return t.unhighlightItem(e)}),this},n.removeActiveItemsByValue=function(t){var n=this;return this._store.activeItems.filter(function(e){return e.value===t}).forEach(function(e){return n._removeItem(e)}),this},n.removeActiveItems=function(t){var n=this;return this._store.activeItems.filter(function(e){return e.id!==t}).forEach(function(e){return n._removeItem(e)}),this},n.removeHighlightedItems=function(t){var n=this;return void 0===t&&(t=!1),this._store.highlightedActiveItems.forEach(function(e){n._removeItem(e),t&&n._triggerChange(e.value)}),this},n.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($,{})}),this},n.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(J,{})}),this},n.getValue=function(n){void 0===n&&(n=!1);var e=this._store.activeItems.reduce(function(e,t){t=n?t.value:t;return e.push(t),e},[]);return this._isSelectOneElement?e[0]:e},n.setValue=function(e){var t=this;return this.initialised&&e.forEach(function(e){return t._setChoiceOrItem(e)}),this},n.setChoiceByValue=function(e){var t=this;return this.initialised&&!this._isTextElement&&(Array.isArray(e)?e:[e]).forEach(function(e){return t._findAndSelectChoiceByValue(e)}),this},n.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))return this.setChoices(i,t,n,!1);throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: "+typeof i)}if(Array.isArray(e))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;throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices")},n.clearChoices=function(){return this._store.dispatch({type:ie}),this},n.clearStore=function(){return this._store.dispatch({type:"CLEAR_ALL"}),this},n.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch(T(!0))),this},n._render=function(){var e,t,n;this._store.isLoading()||(this._currentState=this._store.state,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))},n._renderChoices=function(){var e,t,n=this,r=this._store,o=r.activeGroups,r=r.activeChoices,i=document.createDocumentFragment();this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame(function(){return n.choiceList.scrollToTop()}),1<=o.length&&!this._isSearching?(1<=(e=r.filter(function(e){return!0===e.placeholder&&-1===e.groupId})).length&&(i=this._createChoicesFragment(e,i)),i=this._createGroupsFragment(o,r,i)):1<=r.length&&(i=this._createChoicesFragment(r,i)),i.childNodes&&0<i.childNodes.length?(e=this._store.activeItems,(o=this._canAddItem(e,this.input.value)).response?(this.choiceList.append(i),this._highlightChoice()):this.choiceList.append(this._getTemplate("notice",o.notice))):(r=this._isSearching?(t="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,this._getTemplate("notice",t,"no-results")):(t="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,this._getTemplate("notice",t,"no-choices")),this.choiceList.append(r))},n._renderItems=function(){var e=this._store.activeItems||[],e=(this.itemList.clear(),this._createItemsFragment(e));e.childNodes&&this.itemList.append(e)},n._createGroupsFragment=function(e,r,o){var i=this;void 0===o&&(o=document.createDocumentFragment());return this.config.shouldSort&&e.sort(this.config.sorter),e.forEach(function(e){t=e;var t,n=r.filter(function(e){return i._isSelectOneElement?e.groupId===t.id:e.groupId===t.id&&("always"===i.config.renderSelectedChoices||!e.selected)});1<=n.length&&(e=i._getTemplate("choiceGroup",e),o.appendChild(e),i._createChoicesFragment(n,o,!0))}),o},n._createChoicesFragment=function(e,t,n){var r=this,o=(void 0===t&&(t=document.createDocumentFragment()),void 0===n&&(n=!1),this.config),i=o.renderSelectedChoices,a=o.searchResultLimit,o=o.renderChoiceLimit,l=this._isSearching?H:this.config.sorter,s=e,e=(s="auto"!==i||this._isSelectOneElement?s:e.filter(function(e){return!e.selected})).reduce(function(e,t){return(t.placeholder?e.placeholderChoices:e.normalChoices).push(t),e},{placeholderChoices:[],normalChoices:[]}),u=e.placeholderChoices,e=e.normalChoices,c=((this.config.shouldSort||this._isSearching)&&e.sort(l),s.length),f=this._isSelectOneElement?[].concat(u,e):e;this._isSearching?c=a:o&&0<o&&!n&&(c=o);for(var d,p=0;p<c;p+=1)f[p]&&(d=f[p],"auto"===i&&!r._isSelectOneElement&&d.selected||(d=r._getTemplate("choice",d,r.config.itemSelectText),t.appendChild(d)));return t},n._createItemsFragment=function(e,t){var n=this,r=(void 0===t&&(t=document.createDocumentFragment()),this.config),o=r.shouldSortItems,i=r.sorter,a=r.removeItemButton;o&&!this._isSelectOneElement&&e.sort(i),this._isTextElement?this.passedElement.value=e:this.passedElement.options=e;return e.forEach(function(e){e=n._getTemplate("item",e,a);t.appendChild(e)}),t},n._triggerChange=function(e){null!=e&&this.passedElement.triggerEvent(Q,{value:e})},n._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))},n._handleButtonAction=function(e,t){var n;e&&t&&this.config.removeItems&&this.config.removeItemButton&&(n=t.parentNode.getAttribute("data-id"),t=e.find(function(e){return e.id===parseInt(n,10)}),this._removeItem(t),this._triggerChange(t.value),this._isSelectOneElement&&this._selectPlaceholderChoice())},n._handleItemAction=function(e,t,n){var r,o=this;void 0===n&&(n=!1),e&&t&&this.config.removeItems&&!this._isSelectOneElement&&(r=t.getAttribute("data-id"),e.forEach(function(e){e.id!==parseInt(r,10)||e.highlighted?!n&&e.highlighted&&o.unhighlightItem(e):o.highlightItem(e)}),this.input.focus())},n._handleChoiceAction=function(e,t){var n,r;e&&t&&(t=t.dataset.id,(t=this._store.getChoiceById(t))&&(n=e[0]&&e[0].keyCode?e[0].keyCode:null,r=this.dropdown.isActive,t.keyCode=n,this.passedElement.triggerEvent(Z,{choice:t}),t.selected||t.disabled||this._canAddItem(e,t.value).response&&(this._addItem({value:t.value,label:t.label,choiceId:t.id,groupId:t.groupId,customProperties:t.customProperties,placeholder:t.placeholder,keyCode:t.keyCode}),this._triggerChange(t.value)),this.clearInput(),r&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())))},n._handleBackspace=function(e){var t;this.config.removeItems&&e&&(t=e[e.length-1],e=e.some(function(e){return e.highlighted}),this.config.editItems&&!e&&t?(this.input.value=t.value,this.input.setWidth(),this._removeItem(t),this._triggerChange(t.value)):(e||this.highlightItem(t,!1),this.removeHighlightedItems(!0)))},n._startLoading=function(){this._store.dispatch(ye(!0))},n._stopLoading=function(){this._store.dispatch(ye(!1))},n._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||"")},n._handleSearch=function(e){var t,n,r;e&&this.input.isFocussed&&(n=this._store.choices,r=(t=this.config).searchFloor,t=t.searchChoices,n=n.some(function(e){return!e.active}),e&&e.length>=r?(r=t?this._searchChoices(e):0,this.passedElement.triggerEvent(X,{value:e,resultCount:r})):n&&(this._isSearching=!1,this._store.dispatch(T(!0))))},n._canAddItem=function(e,t){var n,r,o,i=!0,a="function"==typeof this.config.addItemText?this.config.addItemText(t):this.config.addItemText;return this._isSelectOneElement||(r=t,void 0===o&&(o="value"),n=e.some(function(e){return"string"==typeof r?e[o]===r.trim():e[o]===r}),0<this.config.maxItemCount&&this.config.maxItemCount<=e.length&&(i=!1,a="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&n&&i&&(i=!1,a="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(t):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&i&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(t)&&(i=!1,a="function"==typeof this.config.customAddItemText?this.config.customAddItemText(t):this.config.customAddItemText)),{response:i,notice:a}},n._searchChoices=function(e){var e="string"==typeof e?e.trim():e,t="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(e.length<1&&e===t+" ")return 0;var t=this._store.searchableChoices,n=e,r=[].concat(this.config.searchFields),r=Object.assign(this.config.fuseOptions,{keys:r}),t=new V.a(t,r).search(n);return this._currentValue=e,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch({type:re,results:t}),t.length},n._addEventListeners=function(){var e=this.config.shadowRoot||document.documentElement;e.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("click",this._onClick,{passive:!0}),e.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},n._removeEventListeners=function(){var e=this.config.shadowRoot||document.documentElement;e.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("click",this._onClick),e.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},n._onKeyDown=function(e){var t=e.target,n=e.keyCode,r=e.ctrlKey,o=e.metaKey,i=this._store.activeItems,a=this.input.isFocussed,l=this.dropdown.isActive,s=this.itemList.hasChildren(),u=String.fromCharCode(n),c=w,f=k,d=_,p=ce,h=fe,m=de,y=O,v=S,b=P,r=r||o,p=(!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(u)&&this.showDropdown(),(u={})[p]=this._onAKey,u[d]=this._onEnterKey,u[h]=this._onEscapeKey,u[m]=this._onDirectionKey,u[v]=this._onDirectionKey,u[y]=this._onDirectionKey,u[b]=this._onDirectionKey,u[f]=this._onDeleteKey,u[c]=this._onDeleteKey,u);p[n]&&p[n]({event:e,target:t,keyCode:n,metaKey:o,activeItems:i,hasFocusedInput:a,hasActiveDropdown:l,hasItems:s,hasCtrlDownKeyPressed:r})},n._onKeyUp=function(e){var t=e.target,e=e.keyCode,n=this.input.value,r=this._store.activeItems,r=this._canAddItem(r,n),o=w,i=k;this._isTextElement?r.notice&&n?(n=this._getTemplate("notice",r.notice),this.dropdown.element.innerHTML=n.outerHTML,this.showDropdown(!0)):this.hideDropdown(!0):(n=(e===o||e===i)&&!t.value,o=!this._isTextElement&&this._isSearching,e=this._canSearch&&r.response,n&&o?(this._isSearching=!1,this._store.dispatch(T(!0))):e&&this._handleSearch(this.input.value)),this._canSearch=this.config.searchEnabled},n._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())},n._onEnterKey=function(e){var t,n=e.event,r=e.target,o=e.activeItems,e=e.hasActiveDropdown,i=_,a=r.hasAttribute("data-button");this._isTextElement&&r.value&&(t=this.input.value,this._canAddItem(o,t).response&&(this.hideDropdown(!0),this._addItem({value:t}),this._triggerChange(t),this.clearInput())),a&&(this._handleButtonAction(o,r),n.preventDefault()),e?((t=this.dropdown.getChild("."+this.config.classNames.highlightedState))&&(o[0]&&(o[0].keyCode=i),this._handleChoiceAction(o,t)),n.preventDefault()):this._isSelectOneElement&&(this.showDropdown(),n.preventDefault())},n._onEscapeKey=function(e){e.hasActiveDropdown&&(this.hideDropdown(!0),this.containerOuter.focus())},n._onDirectionKey=function(e){var t=e.event,n=e.hasActiveDropdown,r=e.keyCode,e=e.metaKey,o=O,i=S,a=P;(n||this._isSelectOneElement)&&(this.showDropdown(),this._canSearch=!1,n=r===o||r===a?1:-1,o="[data-choice-selectable]",(a=e||r===a||r===i?0<n?this.dropdown.element.querySelector(o+":last-of-type"):this.dropdown.element.querySelector(o):(e=this.dropdown.element.querySelector("."+this.config.classNames.highlightedState))?function(e,t,n){if(void 0===n&&(n=1),e instanceof Element&&"string"==typeof t){for(var r=(0<n?"next":"previous")+"ElementSibling",o=e[r];o;){if(o.matches(t))return o;o=o[r]}return o}}(e,o,n):this.dropdown.element.querySelector(o))&&(function(e,t,n){if(!e)return!1;n=0<(n=void 0===n?1:n)?t.scrollTop+t.offsetHeight>=e.offsetTop+e.offsetHeight:e.offsetTop>=t.scrollTop;return n}(a,this.choiceList.element,n)||this.choiceList.scrollToChildElement(a,n),this._highlightChoice(a)),t.preventDefault())},n._onDeleteKey=function(e){var t=e.event,n=e.target,r=e.hasFocusedInput,e=e.activeItems;!r||n.value||this._isSelectOneElement||(this._handleBackspace(e),t.preventDefault())},n._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},n._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},n._onMouseDown=function(e){var t,n,r,o=e.target;o instanceof HTMLElement&&(we&&this.choiceList.element.contains(o)&&(t=this.choiceList.element.firstElementChild,t="ltr"===this._direction?e.offsetX>=t.offsetWidth:e.offsetX<t.offsetLeft,this._isScrollingOnIe=t),o!==this.input.element&&((t=o.closest("[data-button],[data-item],[data-choice]"))instanceof HTMLElement&&(o=e.shiftKey,n=this._store.activeItems,"button"in(r=t.dataset)?this._handleButtonAction(n,t):"item"in r?this._handleItemAction(n,t,o):"choice"in r&&this._handleChoiceAction(n,t)),e.preventDefault()))},n._onMouseOver=function(e){e=e.target;e instanceof HTMLElement&&"choice"in e.dataset&&this._highlightChoice(e)},n._onClick=function(e){e=e.target;this.containerOuter.element.contains(e)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&e!==this.input.element&&!this.dropdown.element.contains(e)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(0<this._store.highlightedActiveItems.length&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},n._onFocus=function(e){var t=this,n=e.target;this.containerOuter.element.contains(n)&&{text:function(){n===t.input.element&&t.containerOuter.addFocusState()},"select-one":function(){t.containerOuter.addFocusState(),n===t.input.element&&t.showDropdown(!0)},"select-multiple":function(){n===t.input.element&&(t.showDropdown(!0),t.containerOuter.addFocusState())}}[this.passedElement.element.type]()},n._onBlur=function(e){var t,n=this,r=e.target;this.containerOuter.element.contains(r)&&!this._isScrollingOnIe?(t=this._store.activeItems.some(function(e){return e.highlighted}),{text:function(){r===n.input.element&&(n.containerOuter.removeFocusState(),t&&n.unhighlightAll(),n.hideDropdown(!0))},"select-one":function(){n.containerOuter.removeFocusState(),r!==n.input.element&&(r!==n.containerOuter.element||n._canSearch)||n.hideDropdown(!0)},"select-multiple":function(){r===n.input.element&&(n.containerOuter.removeFocusState(),n.hideDropdown(!0),t&&n.unhighlightAll())}}[this.passedElement.element.type]()):(this._isScrollingOnIe=!1,this.input.element.focus())},n._onFormReset=function(){this._store.dispatch({type:"RESET_TO",state:this._initialState})},n._highlightChoice=function(e){var t=this,n=(void 0===e&&(e=null),Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]")));n.length&&(e=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")}),e?this._highlightPosition=n.indexOf(e):e=(e=n.length>this._highlightPosition?n[this._highlightPosition]:n[n.length-1])||n[0],e.classList.add(this.config.classNames.highlightedState),e.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(te,{el:e}),this.dropdown.isActive&&(this.input.setActiveDescendant(e.id),this.containerOuter.setActiveDescendant(e.id)))},n._addItem=function(e){var t,n,r,o,i=e.value,a=e.label,a=void 0===a?null:a,l=e.choiceId,l=void 0===l?-1:l,s=e.groupId,s=void 0===s?-1:s,u=e.customProperties,u=void 0===u?null:u,c=e.placeholder,c=void 0!==c&&c,e=e.keyCode,e=void 0===e?null:e,i="string"==typeof i?i.trim():i,f=u,d=this._store.items,a=a||i,l=l||-1,p=0<=s?this._store.getGroupById(s):null,d=d?d.length+1:1;return this.config.prependValue&&(i=this.config.prependValue+i.toString()),this.config.appendValue&&(i+=this.config.appendValue.toString()),this._store.dispatch((s=(l={value:i,label:a,id:d,choiceId:l,groupId:s,customProperties:u,placeholder:c,keyCode:e}).value,u=l.label,c=l.id,t=l.choiceId,n=l.groupId,r=l.customProperties,o=l.placeholder,l=l.keyCode,{type:le,value:s,label:u,id:c,choiceId:t,groupId:n,customProperties:r,placeholder:o,keyCode:l})),this._isSelectOneElement&&this.removeActiveItems(d),this.passedElement.triggerEvent(ee,{id:d,value:i,label:a,customProperties:f,groupValue:p&&p.value?p.value:void 0,keyCode:e}),this},n._removeItem=function(e){var t,n,r,o;return e&&s("Object",e)&&(t=e.id,n=e.value,r=e.label,o=e.choiceId,e=0<=(e=e.groupId)?this._store.getGroupById(e):null,this._store.dispatch({type:se,id:t,choiceId:o}),e&&e.value?this.passedElement.triggerEvent(b,{id:t,value:n,label:r,groupValue:e.value}):this.passedElement.triggerEvent(b,{id:t,value:n,label:r})),this},n._addChoice=function(e){var t,n,r,o,i,a,l,s,u=e.value,c=e.label,f=e.isSelected,f=void 0!==f&&f,d=e.isDisabled,p=e.groupId,h=e.customProperties,h=void 0===h?null:h,m=e.placeholder,m=void 0!==m&&m,e=e.keyCode,e=void 0===e?null:e;null!=u&&(t=this._store.choices,t=t?t.length+1:1,n=this._baseId+"-"+this._idNames.itemChoice+"-"+t,this._store.dispatch((c=(n={id:t,groupId:void 0===p?-1:p,elementId:n,value:u,label:p=(void 0===c?null:c)||u,disabled:void 0!==d&&d,customProperties:h,placeholder:m,keyCode:e}).value,d=n.label,r=n.id,o=n.groupId,i=n.disabled,a=n.elementId,l=n.customProperties,s=n.placeholder,n=n.keyCode,{type:ne,value:c,label:d,id:r,groupId:o,disabled:i,elementId:a,customProperties:l,placeholder:s,keyCode:n})),f&&this._addItem({value:u,label:p,choiceId:t,customProperties:h,placeholder:m,keyCode:e}))},n._addGroup=function(e){var n=this,t=e.group,r=e.id,o=e.valueKey,i=void 0===o?"value":o,o=e.labelKey,a=void 0===o?"label":o,e=s("Object",t)?t.choices:Array.from(t.getElementsByTagName("OPTION")),l=r||Math.floor((new Date).valueOf()*Math.random()),o=t.disabled||!1;e?(this._store.dispatch(I({value:t.label,id:l,active:!0,disabled:o})),e.forEach(function(e){var t=e.disabled||e.parentNode&&e.parentNode.disabled;n._addChoice({value:e[i],label:s("Object",e)?e[a]:e.innerHTML,isSelected:e.selected,isDisabled:t,groupId:l,customProperties:e.customProperties,placeholder:e.placeholder})})):this._store.dispatch(I({value:t.label,id:t.id,active:!1,disabled:t.disabled}))},n._getTemplate=function(e){if(!e)return null;for(var t=this.config.classNames,n=arguments.length,r=new Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(e=this._templates[e]).call.apply(e,[this,t].concat(r))},n._createTemplates=function(){var e=this.config.callbackOnCreateTemplates,t={};e&&"function"==typeof e&&(t=e.call(this,B)),this._templates=l()(be,t)},n._createElements=function(){this.containerOuter=new x({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 x({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new he({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new C({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new C({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new G({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},n._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)},n._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})})},n._addPredefinedChoices=function(e){var l=this,s=(this.config.shouldSort&&e.sort(this.config.sorter),e.some(function(e){return e.selected})),u=e.findIndex(function(e){return void 0===e.disabled||!e.disabled});e.forEach(function(e,t){var n,r=e.value,o=e.label,i=e.customProperties,a=e.placeholder;l._isSelectElement?e.choices?l._addGroup({group:e,id:e.id||null}):(t=!!(l._isSelectOneElement&&!s&&t===u)||e.selected,n=e.disabled,l._addChoice({value:r,label:o,isSelected:t,isDisabled:n,customProperties:i,placeholder:a})):l._addChoice({value:r,label:o,isSelected:e.selected,isDisabled:e.disabled,customProperties:i,placeholder:a})})},n._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})})},n._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})}})[i(e).toLowerCase()]()},n._findAndSelectChoiceByValue=function(t){var n=this,e=this._store.choices.find(function(e){return n.config.valueComparer(e.value,t)});e&&!e.selected&&this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,customProperties:e.customProperties,placeholder:e.placeholder,keyCode:e.keyCode})},n._generatePlaceholderValue=function(){if(this._isSelectElement)return!!(e=this.passedElement.placeholderOption)&&e.text;var e=this.config,t=e.placeholder,e=e.placeholderValue,n=this.passedElement.element.dataset;if(t){if(e)return e;if(n.placeholder)return n.placeholder}return!1},a}();e.default=t}],r={},o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/public/assets/scripts/",o(o.s=4).default;function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var n,r},e.exports=r()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(55),o=s(r),i=s(n(75)),a=s(n(137)),l=s(n(28)),n=s(n(324));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}l.default.setComponents(a.default);var l=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function i(){var e=this,t=i;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=u(this,(e=i.__proto__||Object.getPrototypeOf(i)).call.apply(e,[this].concat(r))),c.call(e=t),u(t,e)}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),i}(r.Component),c=(l.defaultProps={options:{},Builder:n.default},l.propTypes={form:i.default.object,options:i.default.object,onSaveComponent:i.default.func,onUpdateComponent:i.default.func,onDeleteComponent:i.default.func,onCancelComponent:i.default.func,onEditComponent:i.default.func,Builder:i.default.any},function(){var r=this;this.componentDidMount=function(){r.initializeBuilder(r.props)},this.componentWillUnmount=function(){void 0!==r.builder&&r.builder.instance.destroy(!0)},this.initializeBuilder=function(e){var t=Object.assign({},e.options),n=Object.assign({},e.form),e=e.Builder;void 0!==r.builder&&r.builder.instance.destroy(!0),r.builder=new e(r.element.firstChild,n,t),r.builderReady=r.builder.ready,r.builderReady.then(function(){r.onChange(),r.builder.instance.on("saveComponent",r.emit("onSaveComponent")),r.builder.instance.on("updateComponent",r.emit("onUpdateComponent")),r.builder.instance.on("removeComponent",r.emit("onDeleteComponent")),r.builder.instance.on("cancelComponent",r.emit("onCancelComponent")),r.builder.instance.on("editComponent",r.emit("onEditComponent")),r.builder.instance.on("addComponent",r.onChange),r.builder.instance.on("saveComponent",r.onChange),r.builder.instance.on("updateComponent",r.onChange),r.builder.instance.on("removeComponent",r.onChange),r.builder.instance.on("deleteComponent",r.onChange),r.builder.instance.on("pdfUploaded",r.onChange)})},this.componentWillReceiveProps=function(e){var t=r.props,n=t.options,t=t.form;t.display===e.form.display&&n===e.options&&t.components===e.form.components||r.initializeBuilder(e)},this.render=function(){return o.default.createElement("div",{ref:function(e){return r.element=e}},o.default.createElement("div",null))},this.onChange=function(){r.props.hasOwnProperty("onChange")&&"function"==typeof r.props.onChange&&r.props.onChange(r.builder.instance.form)},this.emit=function(t){return function(){var e;r.props.hasOwnProperty(t)&&"function"==typeof r.props[t]&&(e=r.props)[t].apply(e,arguments)}}});t.default=l},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(9),n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(67);var i=n(36),a=r(n(934));function r(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return(l=f()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);t=new(Function.bind.apply(e,r));return n&&u(t,n.prototype),t}).apply(null,arguments)}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 c(n){var r=f();return function(){var e,t=d(n),t=(e=r?(e=d(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p,h=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e);var n,r=c(o);function o(e,t,n){if(this instanceof o)return n=n||{},r.call(this,e,t=t||{},Object.assign(n,o.options,i.GlobalFormio.options&&i.GlobalFormio.options.builder?i.GlobalFormio.options.builder:{}));throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"create",value:function(e){return new(a.default.builders[e]||a.default.builders.webform)(this.element,this.options)}}])&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(r(n(135)).default);t.default=h,n={},(t="options")in(p=h)?Object.defineProperty(p,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):p[t]=n,i.GlobalFormio.builder=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l(h,t).ready},i.GlobalFormio.FormBuilder=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(10)),r=a(n(935)),i=a(n(174)),n=a(n(332));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function")}var e,t,r;return e=n,r=[{key:"addBuilder",value:function(e,t){n.builders[e]=t}},{key:"addBuilders",value:function(e){n.builders=o.default.merge(n.builders,e)}},{key:"getBuilder",value:function(e){return n.builders[e]}},{key:"getBuilders",value:function(){return n.builders}}],(t=null)&&l(e.prototype,t),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();t.default=s,t=s,s="builders",r={pdf:r.default,webform:i.default,wizard:n.default},s in t?Object.defineProperty(t,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[s]=r},function(e,t,n){var r=n(1015);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var i=n(168),a=n(201),l=n(1031),s=n(127),u=n(1034),c=n(1035),r=n(328),f=n(1040),n=r(function(t,e){var n={};if(null!=t)for(var r=!1,o=(e=i(e,function(e){return e=s(e,t),r=r||1<e.length,e}),u(t,f(t),n),r&&(n=a(n,7,c)),e.length);o--;)l(n,e[o]);return n});e.exports=n},function(e,t,n){var r=n(1036),o=n(284),i=n(285);e.exports=function(e){return i(o(e,void 0,r),e+"")}},function(e,t,n){var u=n(1037),c=n(1038);e.exports=function e(t,n,r,o,i){var a=-1,l=t.length;for(r=r||c,i=i||[];++a<l;){var s=t[a];0<n&&r(s)?1<n?e(s,n-1,r,o,i):u(i,s):o||(i[i.length]=s)}return i}},function(e,t,n){var r=n(1041),o=n(329),i=n(211),a=n(286),n=i(function(e,t){return a(e)?r(e,o(t,1,a,!0)):[]});e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=l(n(28)),o=l(n(1049)),i=l(n(1050)),a=l(n(1051));function l(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(69),n(18),n(40),n(45),n(109),n(22),n(1),n(23),n(14),n(68),n(50),n(9);var r=l(n(174)),i=l(n(114)),a=l(n(98)),u=l(n(10)),c=n(19);function l(e){return e&&e.__esModule?e:{default:e}}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=m(n),t=(e=r?(e=m(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=s;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e);var n,l=h(s);function s(){var r,e,t=this,n=s;if(!(t instanceof n))throw new TypeError("Cannot call a class as a function");(t=arguments[0]instanceof HTMLElement||arguments[1]?(e=arguments[0],arguments[1]):arguments[0]).skipInit=!1,t.display="wizard",(r=l.call(this,e,t))._form={components:[r.getPageConfig(1)]},r.page=0;for(var o in r.groups)!function(t){r.groups[t]&&r.groups[t].components&&(r.groups[t].componentOrder=Object.keys(r.groups[t].components).map(function(e){return r.groups[t].components[e]}).filter(function(e){return e&&!e.ignore}).sort(function(e,t){return e.weight-t.weight}).map(function(e){return e.key}))}(o);r.options.hooks.attachPanel=function(e,n){n.refs.removeComponent&&r.addEventListener(n.refs.removeComponent,"click",function(){var e=r.pages.findIndex(function(e){return e.key===n.key}),t=r._form.components.findIndex(function(e){return e.key===n.key});-1!==e&&r.removePage(e,t)})};var i=r.options.hooks.renderComponents,a=(r.options.hooks.renderComponents=function(e,t){var n=t.components,t=t.self;return"form"!==t.type||t.root?i(e,{components:n,self:t}):e},r.options.hooks.attachComponents);return r.options.hooks.attachComponents=function(e,t,n,r){return"form"!==r.type||r.root?a(e,t,n,r):e},r.on("saveComponent",function(e,t){var n=r.webform.components.map(function(e){return e.component});r._form.components.includes(t)?(r._form.components[r._form.components.indexOf(t)]=e,r.rebuild()):n.includes(t)?(r._form.components.push(e),r.rebuild()):-1!==(n=r._form.components.findIndex(function(e){return t.key===e.key}))&&(r._form.components[n]=e,r.rebuild())},!0),r}return t=s,(e=[{key:"allowDrop",value:function(e){return!this.webform||!this.webform.refs||this.webform.refs.webform!==e}},{key:"pages",get:function(){return u.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",get:function(){return this._form},set:function(e){this._form=e,this._form.components&&Array.isArray(this._form.components)||(this._form.components=[]),0===this.pages.length&&(e=this._form.components.filter(function(e){return"button"!==e.type}),this._form.components=[this.getPageConfig(1,e)]),this.rebuild()}},{key:"schema",get:function(){u.default.assign(this.currentPage,this.webform._form.components[0]);var e=new i.default(this.options);return e.setForm(this._form,{noEmit:!0}),e.schema}},{key:"render",value:function(){var n=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 n.renderTemplate("builderSidebarGroup",{group:n.groups[t],groupKey:t,groupId:"builder-sidebar-".concat(n.id),subgroups:n.groups[t].subgroups.map(function(e){return n.renderTemplate("builderSidebarGroup",{group:e,groupKey:e.key,groupId:"group-container-".concat(t),subgroups:[]})})})})}),pages:this.pages,form:this.webform.render()})}},{key:"attach",value:function(e){var n=this;return this.loadRefs(e,{addPage:"multiple",gotoPage:"multiple"}),this.refs.addPage.forEach(function(e){n.addEventListener(e,"click",function(e){e.preventDefault(),n.addPage()})}),this.refs.gotoPage.forEach(function(e,t){n.addEventListener(e,"click",function(e){e.preventDefault(),n.setPage(t)})}),d(m(s.prototype),"attach",this).call(this,e)}},{key:"rebuild",value:function(){var e=this.currentPage;return this.webform.setForm({display:"form",type:"form",components:e?[e]:[]},{keepAsReference:!0}),this.redraw()}},{key:"addPage",value:function(e){e=e&&e.schema?(0,c.fastCloneDeep)(e.schema):this.getPageConfig(this.pages.length+1);return a.default.uniquify(this._form.components,e),this._form.components.push(e),this.emitSaveComponentEvent(e,e,this._form,"components",this._form.components.length-1,!0,e),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=1<arguments.length&&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(t){if(!(t instanceof s))return this._form.components.find(function(e){return u.default.isEqual(t.component,e)})?void this.addPage(t):d(m(s.prototype),"pasteComponent",this).call(this,t)}}])&&f(t.prototype,e),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(r.default);t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Builders",{enumerable:!0,get:function(){return r.Builders}}),Object.defineProperty(t,"Components",{enumerable:!0,get:function(){return r.Components}}),Object.defineProperty(t,"Conjunctions",{enumerable:!0,get:function(){return r.Conjunctions}}),Object.defineProperty(t,"Displays",{enumerable:!0,get:function(){return r.Displays}}),Object.defineProperty(t,"Form",{enumerable:!0,get:function(){return r.Form}}),Object.defineProperty(t,"FormBuilder",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return r.Formio}}),Object.defineProperty(t,"Operators",{enumerable:!0,get:function(){return r.Operators}}),Object.defineProperty(t,"Providers",{enumerable:!0,get:function(){return r.Providers}}),Object.defineProperty(t,"QuickRules",{enumerable:!0,get:function(){return r.QuickRules}}),Object.defineProperty(t,"Rules",{enumerable:!0,get:function(){return r.Rules}}),Object.defineProperty(t,"Templates",{enumerable:!0,get:function(){return r.Templates}}),Object.defineProperty(t,"Transformers",{enumerable:!0,get:function(){return r.Transformers}}),Object.defineProperty(t,"Utils",{enumerable:!0,get:function(){return r.Utils}}),Object.defineProperty(t,"ValueSources",{enumerable:!0,get:function(){return r.ValueSources}}),Object.defineProperty(t,"Widgets",{enumerable:!0,get:function(){return r.Widgets}});var r=n(1106),o=(t=n(324))&&t.__esModule?t:{default:t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectForm=void 0;var r=n(99);t.selectForm=function(e,t){return(0,r.selectRoot)(e,t).form}},function(e,t,n){var r=n(1127),n=n(328)(function(e,t){return null==e?{}:r(e,t)});e.exports=n},function(n,e,t){"use strict";function g(e){return null==e?window:"[object Window]"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e;var t}function p(e){return e instanceof g(e).Element||e instanceof Element}function s(e){return e instanceof g(e).HTMLElement||e instanceof HTMLElement}function i(e){if("undefined"!=typeof ShadowRoot)return e instanceof g(e).ShadowRoot||e instanceof ShadowRoot}t.r(e),t.d(e,"animateFill",function(){return ft}),t.d(e,"createSingleton",function(){return st}),t.d(e,"delegate",function(){return ct}),t.d(e,"followCursor",function(){return mt}),t.d(e,"hideAll",function(){return at}),t.d(e,"inlinePositioning",function(){return yt}),t.d(e,"roundArrow",function(){return we}),t.d(e,"sticky",function(){return vt});var E=Math.max,x=Math.min,w=Math.round;function c(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;return s(e)&&t&&(t=e.offsetHeight,0<(e=e.offsetWidth)&&(r=w(n.width)/e||1),0<t&&(o=w(n.height)/t||1)),{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function m(e){e=g(e);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function u(e){return e?(e.nodeName||"").toLowerCase():null}function k(e){return((p(e)?e.ownerDocument:e.document)||window.document).documentElement}function y(e){return c(k(e)).left+m(e).scrollLeft}function _(e){return g(e).getComputedStyle(e)}function b(e){var e=_(e),t=e.overflow,n=e.overflowX,e=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+e+n)}function S(e,t,n){void 0===n&&(n=!1);var r=s(t),o=s(t)&&(a=(o=t).getBoundingClientRect(),i=w(a.width)/o.offsetWidth||1,a=w(a.height)/o.offsetHeight||1,1!==i||1!==a),i=k(t),a=c(e,o),e={scrollLeft:0,scrollTop:0},l={x:0,y:0};return!r&&n||("body"===u(t)&&!b(i)||(e=(r=t)!==g(r)&&s(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:m(r)),s(t)?((l=c(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=y(i))),{x:a.left+e.scrollLeft-l.x,y:a.top+e.scrollTop-l.y,width:a.width,height:a.height}}function F(e){var t=c(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function a(e){return"html"===u(e)?e:e.assignedSlot||e.parentNode||(i(e)?e.host:null)||k(e)}function h(e,t){void 0===t&&(t=[]);var n=function e(t){return 0<=["html","body","#document"].indexOf(u(t))?t.ownerDocument.body:s(t)&&b(t)?t:e(a(t))}(e),e=n===(null==(e=e.ownerDocument)?void 0:e.body),r=g(n),r=e?[r].concat(r.visualViewport||[],b(n)?n:[]):n,n=t.concat(r);return e?n:n.concat(h(a(r)))}function o(e){return s(e)&&"fixed"!==_(e).position?e.offsetParent:null}function j(e){for(var t,n=g(e),r=o(e);r&&(t=r,0<=["table","td","th"].indexOf(u(t)))&&"static"===_(r).position;)r=o(r);return(!r||"html"!==u(r)&&("body"!==u(r)||"static"!==_(r).position))&&(r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),n=-1!==navigator.userAgent.indexOf("Trident");if(!n||!s(e)||"fixed"!==_(e).position){var r=a(e);for(i(r)&&(r=r.host);s(r)&&["html","body"].indexOf(u(r))<0;){var o=_(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}}return null}(e))||n}var C="top",R="bottom",A="right",M="left",U="auto",T=[C,R,A,M],D="start",O="end",P="clippingParents",z="viewport",f="popper",B="reference",H=T.reduce(function(e,t){return e.concat([t+"-"+D,t+"-"+O])},[]),q=[].concat(T,[U]).reduce(function(e,t){return e.concat([t,t+"-"+D,t+"-"+O])},[]),W=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function K(e){var n=new Map,r=new Set,o=[];return e.forEach(function(e){n.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||!function t(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){r.has(e)||(e=n.get(e))&&t(e)}),o.push(e)}(e)}),o}var Y={placement:"bottom",modifiers:[],strategy:"absolute"};function G(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function r(e){var e=e=void 0===e?{}:e,t=e.defaultModifiers,f=void 0===t?[]:t,t=e.defaultOptions,d=void 0===t?Y:t;return function(r,o,t){void 0===t&&(t=d);var n,i,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Y,d),modifiersData:{},elements:{reference:r,popper:o},attributes:{},styles:{}},l=[],s=!1,u={state:a,setOptions:function(e){var n,t,e="function"==typeof e?e(a.options):e,e=(c(),a.options=Object.assign({},d,a.options,e),a.scrollParents={reference:p(r)?h(r):r.contextElement?h(r.contextElement):[],popper:h(o)},e=[].concat(f,a.options.modifiers),t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),e=Object.keys(t).map(function(e){return t[e]}),n=K(e),W.reduce(function(e,t){return e.concat(n.filter(function(e){return e.phase===t}))},[]));return a.orderedModifiers=e.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,e=e.effect;"function"==typeof e&&(e=e({state:a,name:t,instance:u,options:void 0===n?{}:n}),l.push(e||function(){}))}),u.update()},forceUpdate:function(){if(!s){var e=a.elements,t=e.reference,e=e.popper;if(G(t,e)){a.rects={reference:S(t,j(e),"fixed"===a.options.strategy),popper:F(e)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var n,r,o,i=0;i<a.orderedModifiers.length;i++)!0===a.reset?(a.reset=!1,i=-1):(n=(o=a.orderedModifiers[i]).fn,r=o.options,o=o.name,"function"==typeof n&&(a=n({state:a,options:void 0===r?{}:r,name:o,instance:u})||a))}}},update:(n=function(){return new Promise(function(e){u.forceUpdate(),e(a)})},function(){return i=i||new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(n())})})}),destroy:function(){c(),s=!0}};return G(r,o)&&u.setOptions(t).then(function(e){!s&&t.onFirstUpdate&&t.onFirstUpdate(e)}),u;function c(){l.forEach(function(e){return e()}),l=[]}}}var d={passive:!0};function I(e){return e.split("-")[0]}function L(e){return e.split("-")[1]}function $(e){return 0<=["top","bottom"].indexOf(e)?"x":"y"}function J(e){var t,n=e.reference,r=e.element,e=e.placement,o=e?I(e):null,e=e?L(e):null,i=n.x+n.width/2-r.width/2,a=n.y+n.height/2-r.height/2;switch(o){case C:t={x:i,y:n.y-r.height};break;case R:t={x:i,y:n.y+n.height};break;case A:t={x:n.x+n.width,y:a};break;case M:t={x:n.x-r.width,y:a};break;default:t={x:n.x,y:n.y}}var l=o?$(o):null;if(null!=l){var s="y"===l?"height":"width";switch(e){case D:t[l]=t[l]-(n[s]/2-r[s]/2);break;case O:t[l]=t[l]+(n[s]/2-r[s]/2)}}return t}var Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function l(e){var t,n,r,o=e.popper,i=e.popperRect,a=e.placement,l=e.variation,s=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,d=e.roundOffsets,e=e.isFixed,p=s.x,p=void 0===p?0:p,h=s.y,h=void 0===h?0:h,m="function"==typeof d?d({x:p,y:h}):{x:p,y:h},m=(p=m.x,h=m.y,s.hasOwnProperty("x")),s=s.hasOwnProperty("y"),y=M,v=C,b=window,o=(f&&(n="clientHeight",t="clientWidth",(r=j(o))===g(o)&&"static"!==_(r=k(o)).position&&"absolute"===u&&(n="scrollHeight",t="scrollWidth"),a!==C&&(a!==M&&a!==A||l!==O)||(v=R,h=(h-((e&&r===b&&b.visualViewport?b.visualViewport.height:r[n])-i.height))*(c?1:-1)),a!==M&&(a!==C&&a!==R||l!==O)||(y=A,p=(p-((e&&r===b&&b.visualViewport?b.visualViewport.width:r[t])-i.width))*(c?1:-1))),Object.assign({position:u},f&&Q)),e=!0===d?(a=(n={x:p,y:h}).x,n=n.y,l=window.devicePixelRatio||1,{x:w(a*l)/l||0,y:w(n*l)/l||0}):{x:p,y:h};return p=e.x,h=e.y,c?Object.assign({},o,((r={})[v]=s?"0":"",r[y]=m?"0":"",r.transform=(b.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",r)):Object.assign({},o,((t={})[v]=s?h+"px":"",t[y]=m?p+"px":"",t.transform="",t))}t={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var o=e.state;Object.keys(o.elements).forEach(function(e){var t=o.styles[e]||{},n=o.attributes[e]||{},r=o.elements[e];s(r)&&u(r)&&(Object.assign(r.style,t),Object.keys(n).forEach(function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var r=e.state,o={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,o.popper),r.styles=o,r.elements.arrow&&Object.assign(r.elements.arrow.style,o.arrow),function(){Object.keys(r.elements).forEach(function(e){var t=r.elements[e],n=r.attributes[e]||{},e=Object.keys((r.styles.hasOwnProperty(e)?r.styles:o)[e]).reduce(function(e,t){return e[t]="",e},{});s(t)&&u(t)&&(Object.assign(t.style,e),Object.keys(n).forEach(function(e){t.removeAttribute(e)}))})}},requires:["computeStyles"]};var Z={left:"right",right:"left",bottom:"top",top:"bottom"};function X(e){return e.replace(/left|right|bottom|top/g,function(e){return Z[e]})}var le={start:"end",end:"start"};function se(e){return e.replace(/start|end/g,function(e){return le[e]})}function ue(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&i(n)){var r=t;do{if(r&&e.isSameNode(r))return!0}while(r=r.parentNode||r.host)}return!1}function ce(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fe(e,t){return t===z?ce((r=g(n=e),o=k(n),r=r.visualViewport,i=o.clientWidth,o=o.clientHeight,l=a=0,r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,l=r.offsetTop)),{width:i,height:o,x:a+y(n),y:l})):p(t)?((i=c(r=t)).top=i.top+r.clientTop,i.left=i.left+r.clientLeft,i.bottom=i.top+r.clientHeight,i.right=i.left+r.clientWidth,i.width=r.clientWidth,i.height=r.clientHeight,i.x=i.left,i.y=i.top,i):ce((o=k(e),a=k(o),n=m(o),l=null==(l=o.ownerDocument)?void 0:l.body,t=E(a.scrollWidth,a.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),e=E(a.scrollHeight,a.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),o=-n.scrollLeft+y(o),n=-n.scrollTop,"rtl"===_(l||a).direction&&(o+=E(a.clientWidth,l?l.clientWidth:0)-t),{width:t,height:e,x:o,y:n}));var n,r,o,i,a,l}function de(n,e,t){var r,o="clippingParents"===e?(i=h(a(o=n)),p(r=0<=["absolute","fixed"].indexOf(_(o).position)&&s(o)?j(o):o)?i.filter(function(e){return p(e)&&ue(e,r)&&"body"!==u(e)}):[]):[].concat(e),i=[].concat(o,[t]),e=i[0],t=i.reduce(function(e,t){t=fe(n,t);return e.top=E(t.top,e.top),e.right=x(t.right,e.right),e.bottom=x(t.bottom,e.bottom),e.left=E(t.left,e.left),e},fe(n,e));return t.width=t.right-t.left,t.height=t.bottom-t.top,t.x=t.left,t.y=t.top,t}function pe(){return{top:0,right:0,bottom:0,left:0}}function he(e){return Object.assign({},pe(),e)}function me(n,e){return e.reduce(function(e,t){return e[t]=n,e},{})}function V(e,t){var r,t=t=void 0===t?{}:t,n=t.placement,n=void 0===n?e.placement:n,o=t.boundary,o=void 0===o?P:o,i=t.rootBoundary,i=void 0===i?z:i,a=t.elementContext,a=void 0===a?f:a,l=t.altBoundary,l=void 0!==l&&l,t=t.padding,t=void 0===t?0:t,t=he("number"!=typeof t?t:me(t,T)),s=e.rects.popper,l=e.elements[l?a===f?B:f:a],l=de(p(l)?l:l.contextElement||k(e.elements.popper),o,i),o=c(e.elements.reference),i=J({reference:o,element:s,strategy:"absolute",placement:n}),s=ce(Object.assign({},s,i)),i=a===f?s:o,u={top:l.top-i.top+t.top,bottom:i.bottom-l.bottom+t.bottom,left:l.left-i.left+t.left,right:i.right-l.right+t.right},s=e.modifiersData.offset;return a===f&&s&&(r=s[n],Object.keys(u).forEach(function(e){var t=0<=[A,R].indexOf(e)?1:-1,n=0<=[C,R].indexOf(e)?"y":"x";u[e]+=r[n]*t})),u}function N(e,t,n){return E(e,x(t,n))}function ye(e,t,n){return{top:e.top-t.height-(n=void 0===n?{x:0,y:0}:n).y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ve(t){return[C,A,R,M].some(function(e){return 0<=t[e]})}function be(){return document.body}var ge=r({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=(e=e.options).scroll,o=void 0===r||r,i=void 0===(r=e.resize)||r,a=g(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(e){e.addEventListener("scroll",n.update,d)}),i&&a.addEventListener("resize",n.update,d),function(){o&&l.forEach(function(e){e.removeEventListener("scroll",n.update,d)}),i&&a.removeEventListener("resize",n.update,d)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,e=e.name;t.modifiersData[e]=J({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,e=e.options,n=void 0===(n=e.gpuAcceleration)||n,r=void 0===(r=e.adaptive)||r,e=void 0===(e=e.roundOffsets)||e,n={placement:I(t.placement),variation:L(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,l(Object.assign({},n,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:e})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,l(Object.assign({},n,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:e})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},t,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var a=e.state,t=e.options,e=e.name,l=void 0===(t=t.offset)?[0,0]:t,t=q.reduce(function(e,t){var n,r,o,i;return e[t]=(t=t,n=a.rects,r=l,o=I(t),i=0<=[M,C].indexOf(o)?-1:1,t=(n="function"==typeof r?r(Object.assign({},n,{placement:t})):r)[0]||0,r=(n[1]||0)*i,0<=[M,A].indexOf(o)?{x:r,y:t}:{x:t,y:r}),e},{}),n=(r=t[a.placement]).x,r=r.y;null!=a.modifiersData.popperOffsets&&(a.modifiersData.popperOffsets.x+=n,a.modifiersData.popperOffsets.y+=r),a.modifiersData[e]=t}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var f=e.state,t=e.options,e=e.name;if(!f.modifiersData[e]._skip){for(var n=t.mainAxis,r=void 0===n||n,n=t.altAxis,o=void 0===n||n,n=t.fallbackPlacements,d=t.padding,p=t.boundary,h=t.rootBoundary,i=t.altBoundary,a=t.flipVariations,m=void 0===a||a,y=t.allowedAutoPlacements,a=f.options.placement,t=I(a),n=n||(t===a||!m?[X(a)]:function(e){if(I(e)===U)return[];var t=X(e);return[se(e),t,se(t)]}(a)),l=[a].concat(n).reduce(function(e,t){return e.concat(I(t)===U?(n=f,r=(e=e=void 0===(e={placement:t,boundary:p,rootBoundary:h,padding:d,flipVariations:m,allowedAutoPlacements:y})?{}:e).placement,o=e.boundary,i=e.rootBoundary,a=e.padding,l=e.flipVariations,s=void 0===(e=e.allowedAutoPlacements)?q:e,u=L(r),e=u?l?H:H.filter(function(e){return L(e)===u}):T,c=(r=0===(r=e.filter(function(e){return 0<=s.indexOf(e)})).length?e:r).reduce(function(e,t){return e[t]=V(n,{placement:t,boundary:o,rootBoundary:i,padding:a})[I(t)],e},{}),Object.keys(c).sort(function(e,t){return c[e]-c[t]})):t);var n,r,o,i,a,l,s,u,c},[]),s=f.rects.reference,u=f.rects.popper,c=new Map,v=!0,b=l[0],g=0;g<l.length;g++){var w=l[g],k=I(w),_=L(w)===D,O=0<=[C,R].indexOf(k),S=O?"width":"height",P=V(f,{placement:w,boundary:p,rootBoundary:h,altBoundary:i,padding:d}),O=O?_?A:M:_?R:C,_=(s[S]>u[S]&&(O=X(O)),X(O)),S=[];if(r&&S.push(P[k]<=0),o&&S.push(P[O]<=0,P[_]<=0),S.every(function(e){return e})){b=w,v=!1;break}c.set(w,S)}if(v)for(var E=m?3:1;0<E;E--)if("break"===function(t){var e=l.find(function(e){e=c.get(e);if(e)return e.slice(0,t).every(function(e){return e})});if(e)return b=e,"break"}(E))break;f.placement!==b&&(f.modifiersData[e]._skip=!0,f.placement=b,f.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t,n,r,o,i,a,l,s,u,c=e.state,f=e.options,e=e.name,d=void 0===(d=f.mainAxis)||d,p=void 0!==(p=f.altAxis)&&p,h=f.boundary,m=f.rootBoundary,y=f.altBoundary,v=f.padding,b=void 0===(b=f.tether)||b,f=void 0===(f=f.tetherOffset)?0:f,h=V(c,{boundary:h,rootBoundary:m,padding:v,altBoundary:y}),m=I(c.placement),y=!(v=L(c.placement)),g=$(m),w="x"===g?"y":"x",k=c.modifiersData.popperOffsets,_=c.rects.reference,O=c.rects.popper,f="number"==typeof(f="function"==typeof f?f(Object.assign({},c.rects,{placement:c.placement})):f)?{mainAxis:f,altAxis:f}:Object.assign({mainAxis:0,altAxis:0},f),S=c.modifiersData.offset?c.modifiersData.offset[c.placement]:null,P={x:0,y:0};k&&(d&&(d="y"===g?"height":"width",a=(l=k[g])+h[n="y"===g?C:M],s=l-h[u="y"===g?R:A],t=b?-O[d]/2:0,o=(v===D?_:O)[d],v=v===D?-O[d]:-_[d],i=c.elements.arrow,i=b&&i?F(i):{width:0,height:0},n=(r=c.modifiersData["arrow#persistent"]?c.modifiersData["arrow#persistent"].padding:pe())[n],r=r[u],u=N(0,_[d],i[d]),i=y?_[d]/2-t-u-n-f.mainAxis:o-u-n-f.mainAxis,o=y?-_[d]/2+t+u+r+f.mainAxis:v+u+r+f.mainAxis,y=(n=c.elements.arrow&&j(c.elements.arrow))?"y"===g?n.clientTop||0:n.clientLeft||0:0,v=l+o-(t=null!=(d=null==S?void 0:S[g])?d:0),u=N(b?x(a,l+i-t-y):a,l,b?E(s,v):s),k[g]=u,P[g]=u-l),p&&(r="y"==w?"height":"width",o=(n=k[w])+h["x"===g?C:M],d=n-h["x"===g?R:A],i=-1!==[C,M].indexOf(m),y=null!=(t=null==S?void 0:S[w])?t:0,a=i?o:n-_[r]-O[r]-y+f.altAxis,v=i?n+_[r]+O[r]-y-f.altAxis:d,l=b&&i?(s=N(s=a,n,u=v),u<s?u:s):N(b?a:o,n,b?v:d),k[w]=l,P[w]=l-n),c.modifiersData[e]=P)},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r,o,i=e.state,a=e.name,e=e.options,l=i.elements.arrow,s=i.modifiersData.popperOffsets,u=$(c=I(i.placement)),c=0<=[M,A].indexOf(c)?"height":"width";l&&s&&(e=e.padding,n=i,n=he("number"!=typeof(e="function"==typeof e?e(Object.assign({},n.rects,{placement:n.placement})):e)?e:me(e,T)),e=F(l),o="y"===u?C:M,r="y"===u?R:A,t=i.rects.reference[c]+i.rects.reference[u]-s[u]-i.rects.popper[c],s=s[u]-i.rects.reference[u],l=(l=j(l))?"y"===u?l.clientHeight||0:l.clientWidth||0:0,o=n[o],n=l-e[c]-n[r],o=N(o,r=l/2-e[c]/2+(t/2-s/2),n),i.modifiersData[a]=((l={})[u]=o,l.centerOffset=o-r,l))},effect:function(e){var t=e.state;null!=(e=void 0===(e=e.options.element)?"[data-popper-arrow]":e)&&("string"!=typeof e||(e=t.elements.popper.querySelector(e)))&&ue(t.elements.popper,e)&&(t.elements.arrow=e)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,e=e.name,n=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,i=V(t,{elementContext:"reference"}),a=V(t,{altBoundary:!0}),i=ye(i,n),n=ye(a,r,o),a=ve(i),r=ve(n);t.modifiersData[e]={referenceClippingOffsets:i,popperEscapeOffsets:n,isReferenceHidden:a,hasPopperEscaped:r},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":a,"data-popper-escaped":r})}}]}),we='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',ke="tippy-content",_e="tippy-backdrop",Oe="tippy-arrow",Se="tippy-svg-arrow",ee={passive:!0,capture:!0};function Pe(e,t,n){var r;return Array.isArray(e)?null==(r=e[t])?Array.isArray(n)?n[t]:n:r:e}function Ee(e,t){e={}.toString.call(e);return 0===e.indexOf("[object")&&-1<e.indexOf(t+"]")}function xe(e,t){return"function"==typeof e?e.apply(void 0,t):e}function je(t,n){return 0===n?t:function(e){clearTimeout(r),r=setTimeout(function(){t(e)},n)};var r}function Ce(e,t){var n=Object.assign({},e);return t.forEach(function(e){delete n[e]}),n}function te(e){return[].concat(e)}function Re(e,t){-1===e.indexOf(t)&&e.push(t)}function Ae(e){return e.split("-")[0]}function ne(e){return[].slice.call(e)}function Me(n){return Object.keys(n).reduce(function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e},{})}function re(){return document.createElement("div")}function Te(t){return["Element","Fragment"].some(function(e){return Ee(t,e)})}function De(e){return Ee(e,"MouseEvent")}function Ie(e){return e&&e._tippy&&e._tippy.reference===e}function Le(e){return Te(e)?[e]:Ee(e,"NodeList")?ne(e):Array.isArray(e)?e:ne(document.querySelectorAll(e))}function Ve(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function oe(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function Ne(e){var t,e=te(e)[0];return null!=e&&null!=(t=e.ownerDocument)&&t.body?e.ownerDocument:document}function Fe(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(e){t[r](e,n)})}function Ue(e,t){for(var n,r=t;r;){if(e.contains(r))return!0;r=null==r.getRootNode||null==(n=r.getRootNode())?void 0:n.host}return!1}var ie={isTouch:!1},ze=0;function Be(){ie.isTouch||(ie.isTouch=!0,window.performance&&document.addEventListener("mousemove",He))}function He(){var e=performance.now();e-ze<20&&(ie.isTouch=!1,document.removeEventListener("mousemove",He)),ze=e}function qe(){var e,t=document.activeElement;Ie(t)&&(e=t._tippy,t.blur&&!e.state.isVisible&&t.blur())}var We="undefined"!=typeof window&&"undefined"!=typeof document&&!!window.msCrypto;var Ke={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},ae=Object.assign({appendTo:be,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Ke,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Ye=Object.keys(ae);function Ge(r){var e=(r.plugins||[]).reduce(function(e,t){var n=t.name,t=t.defaultValue;return n&&(e[n]=void 0!==r[n]?r[n]:null!=(n=ae[n])?n:t),e},{});return Object.assign({},r,e)}function $e(e,t){var o,e=Object.assign({},t,{content:xe(t.content,[e])},t.ignoreAttributes?{}:(o=e,((e=t.plugins)?Object.keys(Ge(Object.assign({},ae,{plugins:e}))):Ye).reduce(function(t,n){var r=(o.getAttribute("data-tippy-"+n)||"").trim();if(r)if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t},{})));return e.aria=Object.assign({},ae.aria,e.aria),e.aria={expanded:"auto"===e.aria.expanded?t.interactive:e.aria.expanded,content:"auto"===e.aria.content?t.interactive?null:"describedby":e.aria.content},e}function Je(){return"innerHTML"}function Qe(e,t){e[Je()]=t}function Ze(e){var t=re();return!0===e?t.className=Oe:(t.className=Se,Te(e)?t.appendChild(e):Qe(t,e)),t}function Xe(e,t){Te(t.content)?(Qe(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Qe(e,t.content):e.textContent=t.content)}function et(e){var e=e.firstElementChild,t=ne(e.children);return{box:e,content:t.find(function(e){return e.classList.contains(ke)}),arrow:t.find(function(e){return e.classList.contains(Oe)||e.classList.contains(Se)}),backdrop:t.find(function(e){return e.classList.contains(_e)})}}function tt(i){var a=re(),e=re(),t=(e.className="tippy-box",e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1"),re());function n(e,t){var n=et(a),r=n.box,o=n.content,n=n.arrow;t.theme?r.setAttribute("data-theme",t.theme):r.removeAttribute("data-theme"),"string"==typeof t.animation?r.setAttribute("data-animation",t.animation):r.removeAttribute("data-animation"),t.inertia?r.setAttribute("data-inertia",""):r.removeAttribute("data-inertia"),r.style.maxWidth="number"==typeof t.maxWidth?t.maxWidth+"px":t.maxWidth,t.role?r.setAttribute("role",t.role):r.removeAttribute("role"),e.content===t.content&&e.allowHTML===t.allowHTML||Xe(o,i.props),t.arrow?n?e.arrow!==t.arrow&&(r.removeChild(n),r.appendChild(Ze(t.arrow))):r.appendChild(Ze(t.arrow)):n&&r.removeChild(n)}return t.className=ke,t.setAttribute("data-state","hidden"),Xe(t,i.props),a.appendChild(e),e.appendChild(t),n(i.props,i.props),{popper:a,onUpdate:n}}tt.$$tippy=!0;var nt=1,rt=[],ot=[];function it(a,e){var r,t,n,o,i,l,s,u,c,f,d,p,h=$e(a,Object.assign({},ae,Ge(Me(e)))),m=!1,y=!1,v=!1,b=!1,g=[],w=je(Y,h.interactiveDebounce),e=nt++,k=(u=h.plugins).filter(function(e,t){return u.indexOf(e)===t}),_={id:e,reference:a,popper:re(),popperInstance:null,props:h,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:k,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(t),cancelAnimationFrame(n)},setProps:function(e){var t,n;_.state.isDestroyed||(j("onBeforeUpdate",[_,e]),W(),t=_.props,n=$e(a,Object.assign({},t,Me(e),{ignoreAttributes:!0})),_.props=n,q(),t.interactiveDebounce!==n.interactiveDebounce&&(R(),w=je(Y,n.interactiveDebounce)),t.triggerTarget&&!n.triggerTarget?te(t.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):n.triggerTarget&&a.removeAttribute("aria-expanded"),C(),x(),f&&f(t,n),_.popperInstance&&(Q(),D().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),j("onAfterUpdate",[_,e]))},setContent:function(e){_.setProps({content:e})},show:function(){var e=_.state.isVisible,t=_.state.isDestroyed,n=!_.state.isEnabled,r=ie.isTouch&&!_.props.touch,o=Pe(_.props.duration,0,ae.duration);e||t||n||r||S().hasAttribute("disabled")||(j("onShow",[_],!1),!1!==_.props.onShow(_)&&(_.state.isVisible=!0,O()&&(c.style.visibility="visible"),x(),B(),_.state.isMounted||(c.style.transition="none"),O()&&(e=E(),t=e.box,n=e.content,Ve([t,n],0)),l=function(){var e,t;_.state.isVisible&&!b&&(b=!0,c.offsetHeight,c.style.transition=_.props.moveTransition,O()&&_.props.animation&&(Ve([e=(t=E()).box,t=t.content],o),oe([e,t],"visible")),F(),C(),Re(ot,_),null!=(e=_.popperInstance)&&e.forceUpdate(),j("onMount",[_]),_.props.animation&&O()&&H(o,function(){_.state.isShown=!0,j("onShown",[_])}))},r=_.props.appendTo,e=S(),(r=_.props.interactive&&r===be||"parent"===r?e.parentNode:xe(r,[e])).contains(c)||r.appendChild(c),_.state.isMounted=!0,Q()))},hide:function(){var e,t=!_.state.isVisible,n=_.state.isDestroyed,r=!_.state.isEnabled,o=Pe(_.props.duration,1,ae.duration);t||n||r||(j("onHide",[_],!1),!1!==_.props.onHide(_)&&(_.state.isVisible=!1,_.state.isShown=!1,m=b=!1,O()&&(c.style.visibility="hidden"),R(),M(),x(!0),O()&&(t=E(),n=t.box,r=t.content,_.props.animation&&(Ve([n,r],o),oe([n,r],"hidden"))),F(),C(),_.props.animation?O()&&(e=_.unmount,H(o,function(){!_.state.isVisible&&c.parentNode&&c.parentNode.contains(c)&&e()})):_.unmount()))},hideWithInteractivity:function(e){P().addEventListener("mousemove",w),Re(rt,w),w(e)},enable:function(){_.state.isEnabled=!0},disable:function(){_.hide(),_.state.isEnabled=!1},unmount:function(){_.state.isVisible&&_.hide();_.state.isMounted&&(Z(),D().forEach(function(e){e._tippy.unmount()}),c.parentNode&&c.parentNode.removeChild(c),ot=ot.filter(function(e){return e!==_}),_.state.isMounted=!1,j("onHidden",[_]))},destroy:function(){_.state.isDestroyed||(_.clearDelayTimeouts(),_.unmount(),W(),delete a._tippy,_.state.isDestroyed=!0,j("onDestroy",[_]))}};return h.render&&(e=h.render(_),c=e.popper,f=e.onUpdate,c.setAttribute("data-tippy-root",""),c.id="tippy-"+_.id,_.popper=c,a._tippy=_,c._tippy=_,d=k.map(function(e){return e.fn(_)}),p=a.hasAttribute("aria-expanded"),q(),C(),x(),j("onCreate",[_]),h.showOnCreate&&X(),c.addEventListener("mouseenter",function(){_.props.interactive&&_.state.isVisible&&_.clearDelayTimeouts()}),c.addEventListener("mouseleave",function(){_.props.interactive&&0<=_.props.trigger.indexOf("mouseenter")&&P().addEventListener("mousemove",w)})),_;function L(){var e=_.props.touch;return Array.isArray(e)?e:[e,0]}function V(){return"hold"===L()[0]}function O(){var e;return null!=(e=_.props.render)&&e.$$tippy}function S(){return s||a}function P(){var e=S().parentNode;return e?Ne(e):document}function E(){return et(c)}function N(e){return _.state.isMounted&&!_.state.isVisible||ie.isTouch||o&&"focus"===o.type?0:Pe(_.props.delay,e?0:1,ae.delay)}function x(e){void 0===e&&(e=!1),c.style.pointerEvents=_.props.interactive&&!e?"":"none",c.style.zIndex=""+_.props.zIndex}function j(t,n,e){void 0===e&&(e=!0),d.forEach(function(e){e[t]&&e[t].apply(e,n)}),e&&(e=_.props)[t].apply(e,n)}function F(){var n,r,e=_.props.aria;e.content&&(n="aria-"+e.content,r=c.id,te(_.props.triggerTarget||a).forEach(function(e){var t=e.getAttribute(n);_.state.isVisible?e.setAttribute(n,t?t+" "+r:r):(t=t&&t.replace(r,"").trim())?e.setAttribute(n,t):e.removeAttribute(n)}))}function C(){!p&&_.props.aria.expanded&&te(_.props.triggerTarget||a).forEach(function(e){_.props.interactive?e.setAttribute("aria-expanded",_.state.isVisible&&e===S()?"true":"false"):e.removeAttribute("aria-expanded")})}function R(){P().removeEventListener("mousemove",w),rt=rt.filter(function(e){return e!==w})}function A(e){if(!ie.isTouch||!v&&"mousedown"!==e.type){var t=e.composedPath&&e.composedPath()[0]||e.target;if(!_.props.interactive||!Ue(c,t)){if(te(_.props.triggerTarget||a).some(function(e){return Ue(e,t)})){if(ie.isTouch)return;if(_.state.isVisible&&0<=_.props.trigger.indexOf("click"))return}else j("onClickOutside",[_,e]);!0===_.props.hideOnClick&&(_.clearDelayTimeouts(),_.hide(),y=!0,setTimeout(function(){y=!1}),_.state.isMounted||M())}}}function U(){v=!0}function z(){v=!1}function B(){var e=P();e.addEventListener("mousedown",A,!0),e.addEventListener("touchend",A,ee),e.addEventListener("touchstart",z,ee),e.addEventListener("touchmove",U,ee)}function M(){var e=P();e.removeEventListener("mousedown",A,!0),e.removeEventListener("touchend",A,ee),e.removeEventListener("touchstart",z,ee),e.removeEventListener("touchmove",U,ee)}function H(e,t){var n=E().box;function r(e){e.target===n&&(Fe(n,"remove",r),t())}if(0===e)return t();Fe(n,"remove",i),Fe(n,"add",r),i=r}function T(t,n,r){void 0===r&&(r=!1),te(_.props.triggerTarget||a).forEach(function(e){e.addEventListener(t,n,r),g.push({node:e,eventType:t,handler:n,options:r})})}function q(){V()&&(T("touchstart",K,{passive:!0}),T("touchend",G,{passive:!0})),_.props.trigger.split(/\s+/).filter(Boolean).forEach(function(e){if("manual"!==e)switch(T(e,K),e){case"mouseenter":T("mouseleave",G);break;case"focus":T(We?"focusout":"blur",$);break;case"focusin":T("focusout",$)}})}function W(){g.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,e=e.options;t.removeEventListener(n,r,e)}),g=[]}function K(t){var e,n=!1;!_.state.isEnabled||J(t)||y||(e="focus"===(null==o?void 0:o.type),s=(o=t).currentTarget,C(),!_.state.isVisible&&De(t)&&rt.forEach(function(e){return e(t)}),"click"===t.type&&(_.props.trigger.indexOf("mouseenter")<0||m)&&!1!==_.props.hideOnClick&&_.state.isVisible?n=!0:X(t),"click"===t.type&&(m=!n),n&&!e&&I(t))}function Y(e){var l,s,t=e.target,t=S().contains(t)||c.contains(t);"mousemove"===e.type&&t||(t=D().concat(c).map(function(e){var t=null==(t=e._tippy.popperInstance)?void 0:t.state;return t?{popperRect:e.getBoundingClientRect(),popperState:t,props:h}:null}).filter(Boolean),l=e.clientX,s=e.clientY,t.every(function(e){var t=e.popperRect,n=e.popperState,e=e.props.interactiveBorder,r=Ae(n.placement),n=n.modifiersData.offset;if(!n)return!0;var o="bottom"===r?n.top.y:0,i="top"===r?n.bottom.y:0,a="right"===r?n.left.x:0,r="left"===r?n.right.x:0,n=t.top-s+o>e,o=s-t.bottom-i>e,i=t.left-l+a>e,a=l-t.right-r>e;return n||o||i||a})&&(R(),I(e)))}function G(e){J(e)||0<=_.props.trigger.indexOf("click")&&m||(_.props.interactive?_.hideWithInteractivity(e):I(e))}function $(e){_.props.trigger.indexOf("focusin")<0&&e.target!==S()||_.props.interactive&&e.relatedTarget&&c.contains(e.relatedTarget)||I(e)}function J(e){return!!ie.isTouch&&V()!==0<=e.type.indexOf("touch")}function Q(){Z();var e=_.props,t=e.popperOptions,n=e.placement,r=e.offset,o=e.getReferenceClientRect,e=e.moveTransition,i=O()?et(c).arrow:null,o=o?{getBoundingClientRect:o,contextElement:o.contextElement||S()}:a,r=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!e}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state;O()&&(t=E().box,["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?t.setAttribute("data-placement",n.placement):n.attributes.popper["data-popper-"+e]?t.setAttribute("data-"+e,""):t.removeAttribute("data-"+e)}),n.attributes.popper={})}}];O()&&i&&r.push({name:"arrow",options:{element:i,padding:3}}),r.push.apply(r,(null==t?void 0:t.modifiers)||[]),_.popperInstance=ge(o,c,Object.assign({},t,{placement:n,onFirstUpdate:l,modifiers:r}))}function Z(){_.popperInstance&&(_.popperInstance.destroy(),_.popperInstance=null)}function D(){return ne(c.querySelectorAll("[data-tippy-root]"))}function X(e){_.clearDelayTimeouts(),e&&j("onTrigger",[_,e]),B();var e=N(!0),t=L(),n=t[0],t=t[1];(e=ie.isTouch&&"hold"===n&&t?t:e)?r=setTimeout(function(){_.show()},e):_.show()}function I(e){_.clearDelayTimeouts(),j("onUntrigger",[_,e]),_.state.isVisible?0<=_.props.trigger.indexOf("mouseenter")&&0<=_.props.trigger.indexOf("click")&&0<=["mouseleave","mousemove"].indexOf(e.type)&&m||((e=N(!1))?t=setTimeout(function(){_.state.isVisible&&_.hide()},e):n=requestAnimationFrame(function(){_.hide()})):M()}}function v(e,t){var n=ae.plugins.concat((t=void 0===t?{}:t).plugins||[]),r=(document.addEventListener("touchstart",Be,ee),window.addEventListener("blur",qe),Object.assign({},t,{plugins:n})),t=Le(e).reduce(function(e,t){t=t&&it(t,r);return t&&e.push(t),e},[]);return Te(e)?t[0]:t}v.defaultProps=ae,v.setDefaultProps=function(t){Object.keys(t).forEach(function(e){ae[e]=t[e]})},v.currentInput=ie;var at=function(e){var e=void 0===e?{}:e,n=e.exclude,r=e.duration;ot.forEach(function(e){var t=!1;(t=n?Ie(n)?e.reference===n:e.popper===n.popper:t)||(t=e.props.duration,e.setProps({duration:r}),e.hide(),e.state.isDestroyed||e.setProps({duration:t}))})},lt=Object.assign({},t,{effect:function(e){var e=e.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow)}}),st=function(e,t){var o,i=e,r=[],a=[],l=(t=void 0===t?{}:t).overrides,n=[],s=!1;function u(){a=i.map(function(e){return te(e.props.triggerTarget||e.reference)}).reduce(function(e,t){return e.concat(t)},[])}function c(){r=i.map(function(e){return e.reference})}function f(t){i.forEach(function(e){t?e.enable():e.disable()})}function d(r){return i.map(function(t){var n=t.setProps;return t.setProps=function(e){n(e),t.reference===o&&r.setProps(e)},function(){t.setProps=n}})}function p(e,t){var n=a.indexOf(t);t!==o&&(o=t,t=(l||[]).concat("content").reduce(function(e,t){return e[t]=i[n].props[t],e},{}),e.setProps(Object.assign({},t,{getReferenceClientRect:"function"==typeof t.getReferenceClientRect?t.getReferenceClientRect:function(){var e;return null==(e=r[n])?void 0:e.getBoundingClientRect()}})))}f(!1),c(),u();var e={fn:function(){return{onDestroy:function(){f(!0)},onHidden:function(){o=null},onClickOutside:function(e){e.props.showOnCreate&&!s&&(s=!0,o=null)},onShow:function(e){e.props.showOnCreate&&!s&&(s=!0,p(e,r[0]))},onTrigger:function(e,t){p(e,t.currentTarget)}}}},h=v(re(),Object.assign({},Ce(t,["overrides"]),{plugins:[e].concat(t.plugins||[]),triggerTarget:a,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(e=t.popperOptions)?void 0:e.modifiers)||[],[lt])})})),m=h.show,y=(h.show=function(e){return m(),o||null!=e?o&&null==e?void 0:"number"==typeof e?r[e]&&p(h,r[e]):0<=i.indexOf(e)?(t=e.reference,p(h,t)):0<=r.indexOf(e)?p(h,e):void 0:p(h,r[0]);var t},h.showNext=function(){var e=r[0];if(!o)return h.show(0);var t=r.indexOf(o);h.show(r[t+1]||e)},h.showPrevious=function(){var e=r[r.length-1];if(!o)return h.show(e);var t=r.indexOf(o),t=r[t-1]||e;h.show(t)},h.setProps);return h.setProps=function(e){l=e.overrides||l,y(e)},h.setInstances=function(e){f(!0),n.forEach(function(e){return e()}),i=e,f(!1),c(),u(),n=d(h),h.setProps({triggerTarget:a})},n=d(h),h},ut={mouseover:"mouseenter",focusin:"focus",click:"click"};function ct(e,r){var o=[],i=[],a=!1,l=r.target,t=Ce(r,["target"]),n=Object.assign({},t,{trigger:"manual",touch:!1}),s=Object.assign({touch:ae.touch},t,{showOnCreate:!0}),t=v(e,n);function u(e){var t,n;e.target&&!a&&(t=e.target.closest(l))&&(n=t.getAttribute("data-tippy-trigger")||r.trigger||ae.trigger,t._tippy||"touchstart"===e.type&&"boolean"==typeof s.touch||"touchstart"!==e.type&&n.indexOf(ut[e.type])<0||(n=v(t,s))&&(i=i.concat(n)))}function c(e,t,n,r){e.addEventListener(t,n,r=void 0===r?!1:r),o.push({node:e,eventType:t,handler:n,options:r})}return te(t).forEach(function(e){var t=e.destroy,n=e.enable,r=e.disable;e.destroy=function(e){(e=void 0===e?!0:e)&&i.forEach(function(e){e.destroy()}),i=[],o.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,e=e.options;t.removeEventListener(n,r,e)}),o=[],t()},e.enable=function(){n(),i.forEach(function(e){return e.enable()}),a=!1},e.disable=function(){r(),i.forEach(function(e){return e.disable()}),a=!0},c(e=(e=e).reference,"touchstart",u,ee),c(e,"mouseover",u),c(e,"focusin",u),c(e,"click",u)}),t}var ft={name:"animateFill",defaultValue:!1,fn:function(e){if(null==(t=e.props.render)||!t.$$tippy)return{};var t=et(e.popper),n=t.box,r=t.content,o=e.props.animateFill?((t=re()).className=_e,oe([t],"hidden"),t):null;return{onCreate:function(){o&&(n.insertBefore(o,n.firstElementChild),n.setAttribute("data-animatefill",""),n.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){var e,t;o&&(e=n.style.transitionDuration,t=Number(e.replace("ms","")),r.style.transitionDelay=Math.round(t/10)+"ms",o.style.transitionDuration=e,oe([o],"visible"))},onShow:function(){o&&(o.style.transitionDuration="0ms")},onHide:function(){o&&oe([o],"hidden")}}}};var dt={clientX:0,clientY:0},pt=[];function ht(e){var t=e.clientX,e=e.clientY;dt={clientX:t,clientY:e}}var mt={name:"followCursor",defaultValue:!1,fn:function(n){var c=n.reference,t=Ne(n.props.triggerTarget||c),r=!1,o=!1,e=!0,i=n.props;function a(){return"initial"===n.props.followCursor&&n.state.isVisible}function l(){t.addEventListener("mousemove",f)}function s(){t.removeEventListener("mousemove",f)}function u(){r=!0,n.setProps({getReferenceClientRect:null}),r=!1}function f(e){var t=!e.target||c.contains(e.target),i=n.props.followCursor,a=e.clientX,l=e.clientY,e=c.getBoundingClientRect(),s=a-e.left,u=l-e.top;!t&&n.props.interactive||n.setProps({getReferenceClientRect:function(){var e=c.getBoundingClientRect(),t=a,n=l,r=("initial"===i&&(t=e.left+s,n=e.top+u),"horizontal"===i?e.top:n),o="vertical"===i?e.right:t,n="horizontal"===i?e.bottom:n,e="vertical"===i?e.left:t;return{width:o-e,height:n-r,top:r,right:o,bottom:n,left:e}}})}function d(){n.props.followCursor&&(pt.push({instance:n,doc:t}),t.addEventListener("mousemove",ht))}function p(){0===(pt=pt.filter(function(e){return e.instance!==n})).filter(function(e){return e.doc===t}).length&&t.removeEventListener("mousemove",ht)}return{onCreate:d,onDestroy:p,onBeforeUpdate:function(){i=n.props},onAfterUpdate:function(e,t){t=t.followCursor;r||void 0!==t&&i.followCursor!==t&&(p(),t?(d(),!n.state.isMounted||o||a()||l()):(s(),u()))},onMount:function(){n.props.followCursor&&!o&&(e&&(f(dt),e=!1),a()||l())},onTrigger:function(e,t){De(t)&&(dt={clientX:t.clientX,clientY:t.clientY}),o="focus"===t.type},onHidden:function(){n.props.followCursor&&(u(),s(),e=!0)}}}};var yt={name:"inlinePositioning",defaultValue:!1,fn:function(o){var t,p=o.reference;var h=-1,n=!1,r=[],i={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(e){var d=e.state;o.props.inlinePositioning&&(-1!==r.indexOf(d.placement)&&(r=[]),t!==d.placement&&-1===r.indexOf(d.placement)&&(r.push(d.placement),o.setProps({getReferenceClientRect:function(){var t=Ae(d.placement),e=p.getBoundingClientRect(),n=ne(p.getClientRects()),r=h;if(n.length<2||null===t)return e;if(2===n.length&&0<=r&&n[0].left>n[1].right)return n[r]||e;switch(t){case"top":case"bottom":var o=n[0],i=n[n.length-1],a="top"===t,l=o.top,s=i.bottom,u=(a?o:i).left,a=(a?o:i).right;return{top:l,bottom:s,left:u,right:a,width:a-u,height:s-l};case"left":case"right":var c=Math.min.apply(Math,n.map(function(e){return e.left})),f=Math.max.apply(Math,n.map(function(e){return e.right})),o=n.filter(function(e){return"left"===t?e.left===c:e.right===f}),i=o[0].top,a=o[o.length-1].bottom;return{top:i,bottom:a,left:c,right:f,width:f-c,height:a-i};default:return e}}})),t=d.placement)}};function e(){var e,t;n||(e=o.props,t=i,e={popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(e=e.popperOptions)?void 0:e.modifiers)||[]).filter(function(e){return e.name!==t.name}),[t])})},n=!0,o.setProps(e),n=!1)}return{onCreate:e,onAfterUpdate:e,onTrigger:function(e,t){var n,r;De(t)&&(n=(r=ne(o.reference.getClientRects())).find(function(e){return e.left-2<=t.clientX&&e.right+2>=t.clientX&&e.top-2<=t.clientY&&e.bottom+2>=t.clientY}),r=r.indexOf(n),h=-1<r?r:h)},onHidden:function(){h=-1}}}};var vt={name:"sticky",defaultValue:!1,fn:function(n){var r=n.reference,o=n.popper;function i(e){return!0===n.props.sticky||n.props.sticky===e}var a=null,l=null;function s(){var e=i("reference")?(n.popperInstance?n.popperInstance.state.elements.reference:r).getBoundingClientRect():null,t=i("popper")?o.getBoundingClientRect():null;(e&&bt(a,e)||t&&bt(l,t))&&n.popperInstance&&n.popperInstance.update(),a=e,l=t,n.state.isMounted&&requestAnimationFrame(s)}return{onMount:function(){n.props.sticky&&s()}}}};function bt(e,t){return!e||!t||(e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left)}v.setDefaultProps({render:tt});e.default=v},function(L,e,t){"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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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)}}function n(e,t,n){t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1})}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V(e,t){return(V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function o(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V(e,t)}function i(e,t){if(t&&("object"===R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function N(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 function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(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 U(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?U(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}t.r(e),t.d(e,"changeLanguage",function(){return Ce}),t.d(e,"createInstance",function(){return Se}),t.d(e,"exists",function(){return Me}),t.d(e,"getFixedT",function(){return Re}),t.d(e,"hasLoadedNamespace",function(){return De}),t.d(e,"init",function(){return Pe}),t.d(e,"loadLanguages",function(){return Le}),t.d(e,"loadNamespaces",function(){return Ie}),t.d(e,"loadResources",function(){return Ee}),t.d(e,"reloadResources",function(){return xe}),t.d(e,"setDefaultNamespace",function(){return Te}),t.d(e,"t",function(){return Ae}),t.d(e,"use",function(){return je});var B={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)}};function c(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};a(this,c),this.init(e,t)}n(c,[{key:"init",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||B,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(e){return new c(this.logger,z(z({},{prefix:"".concat(this.prefix,":").concat(e,":")}),this.options))}}]);var f=new c,d=(n(p,[{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(t){for(var e=arguments.length,n=new Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(e){e.apply(e,[t].concat(n))})}}]),p);function p(){a(this,p),this.observers={}}function h(){var n,r,e=new Promise(function(e,t){n=e,r=t});return e.resolve=n,e.reject=r,e}function H(e){return null==e?"":""+e}function m(e,t,n){function r(e){return e&&-1<e.indexOf("###")?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");1<i.length;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function q(e,t,n){e=m(e,t,Object);e.obj[e.k]=n}function y(e,t){e=m(e,t),t=e.obj,e=e.k;if(t)return t[e]}function W(e,t,n){e=y(e,n);return void 0!==e?e:y(t,n)}function v(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var K={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Y(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return K[e]}):e}var b="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&-1<window.navigator.userAgent.indexOf("MSIE"),G=[" ",",","?","!",";"];function $(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function J(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=s(n);return i(this,r?(e=s(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}o(w,d),Q=J(w),n(w,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){e=this.options.ns.indexOf(e);-1<e&&this.options.ns.splice(e,1)}},{key:"getResource",value:function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},o=(void 0!==r.keySeparator?r:this.options).keySeparator,r=(void 0!==r.ignoreJSONStructure?r:this.options).ignoreJSONStructure,i=[e,t],i=(n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),-1<e.indexOf(".")&&(i=e.split(".")),y(this.data,i));return i||!r||"string"!=typeof n?i:function e(t,n,r){var o=2<arguments.length&&void 0!==r?r:".";if(t){if(t[n])return t[n];for(var i=n.split(o),a=t,l=0;l<i.length;++l){if(!a)return;if("string"==typeof a[i[l]]&&l+1<i.length)return;if(void 0===a[i[l]]){for(var s=2,u=i.slice(l,l+s).join(o),c=a[u];void 0===c&&i.length>l+s;)s++,c=a[u=i.slice(l,l+s).join(o)];if(void 0===c)return;if(null===c)return null;if(n.endsWith(u)){if("string"==typeof c)return c;if(u&&"string"==typeof c[u])return c[u]}var f=i.slice(l+s).join(o);return f?e(c,f,o):void 0}a=a[i[l]]}return a}}(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator,a=(void 0===i&&(i="."),[e,t]);n&&(a=a.concat(i?n.split(i):n)),-1<e.indexOf(".")&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),q(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(r in n)"string"!=typeof n[r]&&"[object Array]"!==Object.prototype.toString.apply(n[r])||this.addResource(e,t,r,n[r],{silent:!0});o.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=5<arguments.length&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t],l=(-1<e.indexOf(".")&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t),y(this.data,a)||{});r?function e(t,n,r){for(var o in n)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof n[o]||n[o]instanceof String?r&&(t[o]=n[o]):e(t[o],n[o],r):t[o]=n[o])}(l,n,o):l=g(g({},l),n),q(this.data,a,l),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t=t||this.options.defaultNS,"v1"===this.options.compatibilityAPI?g(g({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&0<Object.keys(t[e]).length})}},{key:"toJSON",value:function(){return this.data}}]);var Q,Z=w;function w(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return a(this,w),t=Q.call(this),b&&d.call(l(t)),t.data=e||{},t.options=n,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}var X={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))}),t}};function ee(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ee(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function te(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=s(n);return i(this,r?(e=s(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}var ne,re={},oe=(o(M,d),ne=te(M),n(M,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){if(null==e)return!1;e=this.resolve(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{interpolation:{}});return e&&void 0!==e.res}},{key:"extractFromKey",value:function(e,t){var n=(void 0!==t.nsSeparator?t:this.options).nsSeparator,r=(void 0!==t.keySeparator?t:this.options).keySeparator,o=t.ns||this.options.defaultNS||[],i=(n=void 0===n?":":n)&&-1<e.indexOf(n),t=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=G.filter(function(e){return t.indexOf(e)<0&&n.indexOf(e)<0});if(0===r.length)return 1;var o,i=!(r=new RegExp("(".concat(r.map(function(e){return"?"===e?"\\?":e}).join("|"),")"))).test(e);return i||0<(o=e.indexOf(n))&&!r.test(e.substring(0,o))&&(i=!0),i}(e,n,r));if(i&&!t){i=e.match(this.interpolator.nestingRegexp);if(i&&0<i.length)return{key:e,namespaces:o};t=e.split(n);(n!==r||n===r&&-1<this.options.ns.indexOf(t[0]))&&(o=t.shift()),e=t.join(r)}return{key:e,namespaces:o="string"==typeof o?[o]:o}}},{key:"translate",value:function(e,r,t){var o=this;if(r=(r="object"!==R(r)&&this.options.overloadTranslationOptionHandler?this.options.overloadTranslationOptionHandler(arguments):r)||{},null==e)return"";Array.isArray(e)||(e=[String(e)]);var n=(void 0!==r.returnDetails?r:this.options).returnDetails,i=(void 0!==r.keySeparator?r:this.options).keySeparator,a=this.extractFromKey(e[e.length-1],r),l=a.key,s=a.namespaces,u=s[s.length-1],a=r.lng||this.language,c=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(a&&"cimode"===a.toLowerCase())return c?(c=r.nsSeparator||this.options.nsSeparator,n?(f.res="".concat(u).concat(c).concat(l),f):"".concat(u).concat(c).concat(l)):n?(f.res=l,f):l;var f=this.resolve(e,r),d=f&&f.res,c=f&&f.usedKey||l,p=f&&f.exactUsedKey||l,h=Object.prototype.toString.apply(d),m=(void 0!==r.joinArrays?r:this.options).joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject;if(y&&d&&("string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&("string"!=typeof m||"[object Array]"!==h)){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),g=this.options.returnedObjectHandler?this.options.returnedObjectHandler(c,d,A(A({},r),{},{ns:s})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string."),n?(f.res=g,f):g;if(i){var v,b,g="[object Array]"===h,w=g?[]:{},k=g?p:c;for(v in d)Object.prototype.hasOwnProperty.call(d,v)&&(b="".concat(k).concat(i).concat(v),w[v]=this.translate(b,A(A({},r),{joinArrays:!1,ns:s})),w[v]===b&&(w[v]=d[v]));d=w}}else if(y&&"string"==typeof m&&"[object Array]"===h)d=(d=d.join(m))&&this.extendTranslation(d,e,r,t);else{var g=!1,p=!1,c=void 0!==r.count&&"string"!=typeof r.count,_=M.hasDefaultValue(r),y=c?this.pluralResolver.getSuffix(a,r.count,r):"",O=r["defaultValue".concat(y)]||r.defaultValue;!this.isValidLookup(d)&&_&&(g=!0,d=O),this.isValidLookup(d)||(p=!0,d=l);var S=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&p?void 0:d,P=_&&O!==d&&this.options.updateMissing;if(p||g||P){this.logger.log(P?"updateKey":"missingKey",a,u,l,P?O:d),!i||(h=this.resolve(l,A(A({},r),{},{keySeparator:!1})))&&h.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 E=[],x=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&x&&x[0])for(var j=0;j<x.length;j++)E.push(x[j]);else"all"===this.options.saveMissingTo?E=this.languageUtils.toResolveHierarchy(r.lng||this.language):E.push(r.lng||this.language);var C=function(e,t,n){n=_&&n!==d?n:S;o.options.missingKeyHandler?o.options.missingKeyHandler(e,u,t,n,P,r):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,u,t,n,P,r),o.emit("missingKey",e,u,t,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?E.forEach(function(t){o.pluralResolver.getSuffixes(t,r).forEach(function(e){C([t],l+e,r["defaultValue".concat(e)]||O)})}):C(E,l,O))}d=this.extendTranslation(d,e,r,f,t),p&&d===l&&this.options.appendNamespaceToMissingKey&&(d="".concat(u,":").concat(l)),(p||g)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(u,":").concat(l):l,g?d:void 0):this.options.parseMissingKeyHandler(d))}return n?(f.res=d,f):d}},{key:"extendTranslation",value:function(e,r,o,t,i){var n,a=this,l=(this.i18nFormat&&this.i18nFormat.parse?e=this.i18nFormat.parse(e,A(A({},this.options.interpolation.defaultVariables),o),t.usedLng,t.usedNS,t.usedKey,{resolved:t}):o.skipInterpolation||(o.interpolation&&this.interpolator.init(A(A({},o),{interpolation:A(A({},this.options.interpolation),o.interpolation)})),(l="string"==typeof e&&(o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o:this.options).interpolation.skipOnVariables)&&(s=(s=e.match(this.interpolator.nestingRegexp))&&s.length),n=o.replace&&"string"!=typeof o.replace?o.replace:o,this.options.interpolation.defaultVariables&&(n=A(A({},this.options.interpolation.defaultVariables),n)),e=this.interpolator.interpolate(e,n,o.lng||this.language,o),l&&s<((n=e.match(this.interpolator.nestingRegexp))&&n.length)&&(o.nest=!1),!1!==o.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i&&i[0]===t[0]&&!o.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(t[0]," in key: ").concat(r[0])),null):a.translate.apply(a,t.concat([r]))},o)),o.interpolation&&this.interpolator.reset()),o.postProcess||this.options.postProcess),s="string"==typeof l?[l]:l;return e=null!=e&&s&&s.length&&!1!==o.applyPostProcessor?X.handle(s,e,r,this.options&&this.options.postProcessPassResolved?A({i18nResolved:t},o):o,this):e}},{key:"resolve",value:function(e){var f,n,d,p,r,h=this,m=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return(e="string"==typeof e?[e]:e).forEach(function(e){var l,s,u,c,t;h.isValidLookup(f)||(e=h.extractFromKey(e,m),l=e.key,n=l,e=e.namespaces,h.options.fallbackNS&&(e=e.concat(h.options.fallbackNS)),s=void 0!==m.count&&"string"!=typeof m.count,u=s&&!m.ordinal&&0===m.count&&h.pluralResolver.shouldUseIntlApi(),c=void 0!==m.context&&("string"==typeof m.context||"number"==typeof m.context)&&""!==m.context,t=m.lngs||h.languageUtils.toResolveHierarchy(m.lng||h.language,m.fallbackLng),e.forEach(function(a){h.isValidLookup(f)||(r=a,!re["".concat(t[0],"-").concat(a)]&&h.utils&&h.utils.hasLoadedNamespace&&!h.utils.hasLoadedNamespace(r)&&(re["".concat(t[0],"-").concat(a)]=!0,h.logger.warn('key "'.concat(n,'" for languages "').concat(t.join(", "),'" won\'t get resolved as namespace "').concat(r,'" 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!!!")),t.forEach(function(e){if(!h.isValidLookup(f)){p=e;var t,n,r,o,i=[l];for(h.i18nFormat&&h.i18nFormat.addLookupKeys?h.i18nFormat.addLookupKeys(i,l,e,a,m):(s&&(t=h.pluralResolver.getSuffix(e,m.count,m)),n="".concat(h.options.pluralSeparator,"zero"),s&&(i.push(l+t),u&&i.push(l+n)),c&&(r="".concat(l).concat(h.options.contextSeparator).concat(m.context),i.push(r),s&&(i.push(r+t),u&&i.push(r+n))));o=i.pop();)h.isValidLookup(f)||(d=o,f=h.getResource(e,a,o,m))}}))}))}),{res:f,usedKey:n,exactUsedKey:d,usedLng:p,usedNS:r}}},{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=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return(this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat:this.resourceStore).getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t,n="defaultValue";for(t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&n===t.substring(0,n.length)&&void 0!==e[t])return!0;return!1}}]),M);function M(e){var t,n,r,o,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return a(this,M),t=ne.call(this),b&&d.call(l(t)),n=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=e,o=l(t),n.forEach(function(e){r[e]&&(o[e]=r[e])}),t.options=i,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=f.create("translator"),t}function k(e){return e.charAt(0).toUpperCase()+e.slice(1)}n(_,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;e=e.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;e=e.split("-");return this.formatLanguageCode(e[0])}},{key:"formatLanguageCode",value:function(e){var t,n;return"string"==typeof e&&-1<e.indexOf("-")?(t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-"),this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),-1<t.indexOf(n[1].toLowerCase())&&(n[1]=k(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()),-1<t.indexOf(n[1].toLowerCase())&&(n[1]=k(n[1].toLowerCase())),-1<t.indexOf(n[2].toLowerCase())&&(n[2]=k(n[2].toLowerCase()))),n.join("-")):this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return"languageOnly"!==this.options.load&&!this.options.nonExplicitSupportedLngs||(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||-1<this.supportedLngs.indexOf(e)}},{key:"getBestMatchFromCodes",value:function(e){var n,r=this;return e?(e.forEach(function(e){n||(e=r.formatLanguageCode(e),r.options.supportedLngs&&!r.isSupportedCode(e)||(n=e))}),!n&&this.options.supportedLngs&&e.forEach(function(e){var t;if(!n)return t=r.getLanguagePartFromCode(e),r.isSupportedCode(t)?n=t:void(n=r.options.supportedLngs.find(function(e){if(0===e.indexOf(t))return e}))}),n=n||this.getFallbackCodes(this.options.fallbackLng)[0]):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("string"==typeof(e="function"==typeof e?e(t):e)&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return(n=(n=(n=(n=n||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e[this.getLanguagePartFromCode(t)])||e.default)||[]}},{key:"toResolveHierarchy",value:function(e,t){function n(e){e&&(r.isSupportedCode(e)?o.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))}var r=this,t=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return"string"==typeof e&&-1<e.indexOf("-")?("languageOnly"!==this.options.load&&n(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&n(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&n(this.getLanguagePartFromCode(e))):"string"==typeof e&&n(this.formatLanguageCode(e)),t.forEach(function(e){o.indexOf(e)<0&&n(r.formatLanguageCode(e))}),o}}]);var ie=_;function _(e){a(this,_),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=f.create("languageUtils")}var ae=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],le={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},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:2<e&&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:2<=e%10&&(e%100<10||20<=e%100)?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||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||0<e%100&&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||10<e)&&e%10==0?2:3)}},se=["v1","v2","v3"],ue={zero:0,one:1,two:2,few:3,many:4,other:5};n(O,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){e=this.getRule(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{});return this.shouldUseIntlApi()?e&&1<e.resolvedOptions().pluralCategories.length:e&&1<e.numbers.length}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(t){var n=this,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=this.getRule(t,r);return e?this.shouldUseIntlApi()?e.resolvedOptions().pluralCategories.sort(function(e,t){return ue[e]-ue[t]}).map(function(e){return"".concat(n.options.prepend).concat(e)}):e.numbers.map(function(e){return n.getSuffix(t,e,r)}):[]}},{key:"getSuffix",value:function(e,t){var n=this.getRule(e,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{});return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){function n(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()}var r=this,t=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[t];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):n():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?n():this.options.prepend&&t.toString()?this.options.prepend+t.toString():t.toString()}},{key:"shouldUseIntlApi",value:function(){return!se.includes(this.options.compatibilityJSON)}}]);var ce=O;function O(e){var n,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};a(this,O),this.languageUtils=e,this.options=t,this.logger=f.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},ae.forEach(function(t){t.lngs.forEach(function(e){n[e]={numbers:t.nr,plurals:le[t.fc]}})}),n)}function fe(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function S(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fe(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}n(P,[{key:"init",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=(e.interpolation||(e.interpolation={escapeValue:!0}),e.interpolation);this.escape=void 0!==e.escape?e.escape:Y,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?v(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?v(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator||e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=!this.unescapePrefix&&e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?v(e.nestingPrefix):e.nestingPrefixEscaped||v("$t("),this.nestingSuffix=e.nestingSuffix?v(e.nestingSuffix):e.nestingSuffixEscaped||v(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator||e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces||1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.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),e=(this.regexp=new RegExp(e,"g"),"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix)),e=(this.regexpUnescape=new RegExp(e,"g"),"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix));this.nestingRegexp=new RegExp(e,"g")}},{key:"interpolate",value:function(r,o,i,a){var l,s,u,c=this,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function t(e){return e.replace(/\$/g,"$$$$")}this.resetRegExp();var d=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,p=(a&&a.interpolation&&void 0!==a.interpolation.skipOnVariables?a:this.options).interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:t},{regex:this.regexp,safeValue:function(e){return c.escapeValue?t(c.escape(e)):t(e)}}].forEach(function(e){for(u=0;l=e.regex.exec(r);){var t=l[1].trim();if(void 0===(s=function(e){if(e.indexOf(c.formatSeparator)<0)return t=W(o,f,e),c.alwaysFormat?c.format(t,void 0,i,S(S(S({},a),o),{},{interpolationkey:e})):t;var t=e.split(c.formatSeparator),e=t.shift().trim(),t=t.join(c.formatSeparator).trim();return c.format(W(o,f,e),t,i,S(S(S({},a),o),{},{interpolationkey:e}))}(t)))if("function"==typeof d){var n=d(r,l,a);s="string"==typeof n?n:""}else if(a&&a.hasOwnProperty(t))s="";else{if(p){s=l[0];continue}c.logger.warn("missed to pass in variable ".concat(t," for interpolating ").concat(r)),s=""}else"string"==typeof s||c.useRawValueToEscape||(s=H(s));n=e.safeValue(s);if(r=r.replace(l[0],n),p?(e.regex.lastIndex+=s.length,e.regex.lastIndex-=l[0].length):e.regex.lastIndex=0,++u>=c.maxReplaces)break}}),r}},{key:"nest",value:function(e,t){var n,r=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=S({},o);function a(t,e){var n=this.nestingOptionsSeparator;if(!(t.indexOf(n)<0)){var r=t.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);t=r[0],o=(o=this.interpolate(o,i)).replace(/'/g,'"');try{i=JSON.parse(o),e&&(i=S(S({},e),i))}catch(e){return this.logger.warn("failed parsing options string in nesting for key ".concat(t),e),"".concat(t).concat(n).concat(o)}delete i.defaultValue}return t}for(i.applyPostProcessor=!1,delete i.defaultValue;n=this.nestingRegexp.exec(e);){var l,s=[],u=!1;if(-1===n[0].indexOf(this.formatSeparator)||/{.*}/.test(n[1])||(l=n[1].split(this.formatSeparator).map(function(e){return e.trim()}),n[1]=l.shift(),s=l,u=!0),(l=t(a.call(this,n[1].trim(),i),i))&&n[0]===e&&"string"!=typeof l)return l;(l="string"!=typeof l?H(l):l)||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),l=""),u&&(l=s.reduce(function(e,t){return r.format(e,t,o.lng,S(S({},o),{},{interpolationkey:n[1].trim()}))},l.trim())),e=e.replace(n[0],l),this.regexp.lastIndex=0}return e}}]);var de=P;function P(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};a(this,P),this.logger=f.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}function pe(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pe(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}n(x,[{key:"init",value:function(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator||t.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"format",value:function(e,t,l,s){var u=this;return t.split(this.formatSeparator).reduce(function(e,t){r=(t=t).toLowerCase().trim(),n={},-1<t.indexOf("(")&&(r=(t=t.split("("))[0].toLowerCase().trim(),t=t[1].substring(0,t[1].length-1),"currency"===r&&t.indexOf(":")<0?n.currency||(n.currency=t.trim()):"relativetime"===r&&t.indexOf(":")<0?n.range||(n.range=t.trim()):t.split(";").forEach(function(e){var t;e&&(t=(e=F(e.split(":")))[0],e=e.slice(1).join(":").trim().replace(/^'+|'+$/g,""),n[t.trim()]||(n[t.trim()]=e),"false"===e&&(n[t.trim()]=!1),"true"===e&&(n[t.trim()]=!0),isNaN(e)||(n[t.trim()]=parseInt(e,10)))}));var n,t={formatName:r,formatOptions:n},r=t.formatName,t=t.formatOptions;if(u.formats[r]){var o=e;try{var i=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},a=i.locale||i.lng||s.locale||s.lng||l,o=u.formats[r](e,a,E(E(E({},t),s),i))}catch(e){u.logger.warn(e)}return o}return u.logger.warn("there was no format function for ".concat(r)),e},e)}}]);var he=x;function x(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};a(this,x),this.logger=f.create("formatter"),this.options=e,this.formats={number:function(e,t,n){return new Intl.NumberFormat(t,n).format(e)},currency:function(e,t,n){return new Intl.NumberFormat(t,E(E({},n),{},{style:"currency"})).format(e)},datetime:function(e,t,n){return new Intl.DateTimeFormat(t,E({},n)).format(e)},relativetime:function(e,t,n){return new Intl.RelativeTimeFormat(t,E({},n)).format(e,n.range||"day")},list:function(e,t,n){return new Intl.ListFormat(t,E({},n)).format(e)}},this.init(e)}function me(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function ye(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?me(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ve(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=s(n);return i(this,r?(e=s(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}o(j,d),be=ve(j),n(j,[{key:"queueLoad",value:function(e,t,o,n){var i=this,a={},l={},s={},u={};return e.forEach(function(n){var r=!0;t.forEach(function(e){var t="".concat(n,"|").concat(e);!o.reload&&i.store.hasResourceBundle(n,e)?i.state[t]=2:i.state[t]<0||(1===i.state[t]?void 0===l[t]&&(l[t]=!0):(i.state[t]=1,r=!1,void 0===l[t]&&(l[t]=!0),void 0===a[t]&&(a[t]=!0),void 0===u[e]&&(u[e]=!0)))}),r||(s[n]=!0)}),(Object.keys(a).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(a),pending:Object.keys(l),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(u)}}},{key:"loaded",value:function(i,a,e){var t=i.split("|"),l=t[0],s=t[1],u=(a&&this.emit("failedLoading",l,s,a),e&&this.store.addResourceBundle(l,s,e),this.state[i]=a?-1:2,{});this.queue.forEach(function(n){var e,t,r,o;e=n.loaded,t=s,r=(e=m(e,r=[l],Object)).obj,e=e.k,r[e]=r[e]||[],o&&(r[e]=r[e].concat(t)),o||r[e].push(t),o=i,void 0!==(r=n).pending[o]&&(delete r.pending[o],r.pendingCount--),a&&n.errors.push(a),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(t){u[t]||(u[t]={});var e=n.loaded[t];e.length&&e.forEach(function(e){void 0===u[t][e]&&(u[t][e]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(r,o,i){var a=this,l=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,s=4<arguments.length&&void 0!==arguments[4]?arguments[4]:350,u=5<arguments.length?arguments[5]:void 0;return r.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:r,ns:o,fcName:i,tried:l,wait:s,callback:u}):(this.readingCalls++,this.backend[i](r,o,function(e,t){var n;a.readingCalls--,0<a.waitingReads.length&&(n=a.waitingReads.shift(),a.read(n.lng,n.ns,n.fcName,n.tried,n.wait,n.callback)),e&&t&&l<5?setTimeout(function(){a.read.call(a,r,o,i,l+1,2*s,u)},s):u(e,t)})):u(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o=3<arguments.length?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));e=this.queueLoad(e,t="string"==typeof t?[t]:t,r,o);if(!e.toLoad.length)return e.pending.length||o(),null;e.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(n){var r=this,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",e=n.split("|"),i=e[0],a=e[1];this.read(i,a,"read",void 0,void 0,function(e,t){e&&r.logger.warn("".concat(o,"loading namespace ").concat(a," for language ").concat(i," failed"),e),!e&&t&&r.logger.log("".concat(o,"loaded namespace ").concat(a," for language ").concat(i),t),r.loaded(n,e,t)})}},{key:"saveMissing",value:function(e,t,n,r,o){var i=5<arguments.length&&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,ye(ye({},i),{},{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]);var be,ge=j;function j(e,t,n){var r,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return a(this,j),r=be.call(this),b&&d.call(l(r)),r.backend=e,r.store=t,r.services=n,r.languageUtils=n.languageUtils,r.options=o,r.logger=f.create("backendConnector"),r.waitingReads=[],r.maxParallelReads=o.maxParallelReads||10,r.readingCalls=0,r.state={},r.queue=[],r.backend&&r.backend.init&&r.backend.init(n,o.backend,o),r}function we(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ke(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ke(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _e(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=s(n);return i(this,r?(e=s(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function T(){}o(I,d),Oe=_e(I),n(I,[{key:"init",value:function(){var e,t,o=this,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0,i=("function"==typeof n&&(r=n,n={}),!n.defaultNS&&n.ns&&("string"==typeof n.ns?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0])),{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t,n={};return"object"===R(e[1])&&(n=e[1]),"string"==typeof e[1]&&(n.defaultValue=e[1]),"string"==typeof e[2]&&(n.tDescription=e[2]),"object"!==R(e[2])&&"object"!==R(e[3])||(t=e[3]||e[2],Object.keys(t).forEach(function(e){n[e]=t[e]})),n},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}});function a(e){return e?"function"==typeof e?new e:e:null}this.options=C(C(C({},i),this.options),we(n)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=C(C({},i.interpolation),this.options.interpolation)),void 0!==n.keySeparator&&(this.options.userDefinedKeySeparator=n.keySeparator),void 0!==n.nsSeparator&&(this.options.userDefinedNsSeparator=n.nsSeparator),this.options.isClone||(this.modules.logger?f.init(a(this.modules.logger),this.options):f.init(null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=he),n=new ie(this.options),this.store=new Z(this.options.resources,this.options),(t=this.services).logger=f,t.resourceStore=this.store,t.languageUtils=n,t.pluralResolver=new ce(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!e||this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format||(t.formatter=a(e),t.formatter.init(t,this.options),this.options.interpolation.format=t.formatter.format.bind(t.formatter)),t.interpolator=new de(this.options),t.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},t.backendConnector=new ge(a(this.modules.backend),t.resourceStore,t,this.options),t.backendConnector.on("*",function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))}),this.modules.languageDetector&&(t.languageDetector=a(this.modules.languageDetector),t.languageDetector.init(t,this.options.detection,this.options)),this.modules.i18nFormat&&(t.i18nFormat=a(this.modules.i18nFormat),t.i18nFormat.init&&t.i18nFormat.init(this)),this.translator=new oe(this.services,this.options),this.translator.on("*",function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))}),this.modules.external.forEach(function(e){e.init&&e.init(o)})),this.format=this.options.interpolation.format,r=r||T,!this.options.fallbackLng||this.services.languageDetector||this.options.lng||0<(n=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng)).length&&"dev"!==n[0]&&(this.options.lng=n[0]),this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){o[t]=function(){var e;return(e=o.store)[t].apply(e,arguments)}});function l(){function e(e,t){o.isInitialized&&!o.initializedStoreOnce&&o.logger.warn("init: i18next is already initialized. You should call init just once!"),o.isInitialized=!0,o.options.isClone||o.logger.log("initialized",o.options),o.emit("initialized",o.options),s.resolve(t),r(e,t)}if(o.languages&&"v1"!==o.options.compatibilityAPI&&!o.isInitialized)return e(null,o.t.bind(o));o.changeLanguage(o.options.lng,e)}["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){o[t]=function(){var e;return(e=o.store)[t].apply(e,arguments),o}});var s=h();return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),s}},{key:"loadResources",value:function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:T,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],e=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};r?e(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e),this.options.preload&&this.options.preload.forEach(e),this.services.backendConnector.load(o,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)})}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=h();return e=e||this.languages,t=t||this.options.ns,n=n||T,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)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&&X.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this;throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()")}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(-1<["cimode","dev"].indexOf(e)))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(-1<["cimode","dev"].indexOf(n))&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(n,r){function e(e){var t="string"==typeof(e=n||e||!o.services.languageDetector?e:[])?e:o.services.languageUtils.getBestMatchFromCodes(e);t&&(o.language||a(t),o.translator.language||o.translator.changeLanguage(t),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(t)),o.loadResources(t,function(e){l(e,t)})}var o=this,i=(this.isLanguageChangingTo=n,h()),a=(this.emit("languageChanging",n),function(e){o.language=e,o.languages=o.services.languageUtils.toResolveHierarchy(e),o.resolvedLanguage=void 0,o.setResolvedLanguage(e)}),l=function(e,t){t?(a(t),o.translator.changeLanguage(t),o.isLanguageChangingTo=void 0,o.emit("languageChanged",t),o.logger.log("languageChanged",t)):o.isLanguageChangingTo=void 0,i.resolve(function(){return o.t.apply(o,arguments)}),r&&r(e,function(){return o.t.apply(o,arguments)})};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(e):e(n):e(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(e,t,a){function l(e,t){var n;if("object"!==R(t)){for(var r=arguments.length,o=new Array(2<r?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];n=s.options.overloadTranslationOptionHandler([e,t].concat(o))}else n=C({},t);return n.lng=n.lng||l.lng,n.lngs=n.lngs||l.lngs,n.ns=n.ns||l.ns,n.keyPrefix=n.keyPrefix||a||l.keyPrefix,t=s.options.keySeparator||".",t=n.keyPrefix?"".concat(n.keyPrefix).concat(t).concat(e):e,s.t(t,n)}var s=this;return"string"==typeof e?l.lng=e:l.lngs=e,l.ns=t,l.keyPrefix=a,l}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var n=this,t=1<arguments.length&&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.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;function a(e,t){return-1===(e=n.services.backendConnector.state["".concat(e,"|").concat(t)])||2===e}if(t.precheck){t=t.precheck(this,a);if(void 0!==t)return t}return!!this.hasResourceBundle(r,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(r,e)||o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=h();return this.options.ns?((e="string"==typeof 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=h(),r=this.options.preload||[],e=(e="string"==typeof e?[e]:e).filter(function(e){return r.indexOf(e)<0});return e.length?(this.options.preload=r.concat(e),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(!(e=e||this.resolvedLanguage||(this.languages&&0<this.languages.length?this.languages[0]:this.language)))return"rtl";return-1<["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))||1<e.toLowerCase().indexOf("-arab")?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:T,e=C(C(C({},this.options),e),{isClone:!0}),o=new I(e);return["store","services","language"].forEach(function(e){o[e]=t[e]}),o.services=C({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new oe(o.services,o.options),o.translator.on("*",function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))}),o.init(e,n),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]);var Oe,D=I;function I(){var e,t,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length?arguments[1]:void 0;if(a(this,I),e=Oe.call(this),b&&d.call(l(e)),e.options=we(n),e.services={},e.logger=f,e.modules={external:[]},t=l(e),Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(function(e){"function"==typeof t[e]&&(t[e]=t[e].bind(t))}),r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),i(e,l(e));setTimeout(function(){e.init(n,r)},0)}return e}u(D,"createInstance",function(){return new D(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},1<arguments.length?arguments[1]:void 0)});var t=D.createInstance(),Se=(t.createInstance=D.createInstance,t.createInstance),Pe=t.init,Ee=t.loadResources,xe=t.reloadResources,je=t.use,Ce=t.changeLanguage,Re=t.getFixedT,Ae=t.t,Me=t.exists,Te=t.setDefaultNamespace,De=t.hasLoadedNamespace,Ie=t.loadNamespaces,Le=t.loadLanguages;e.default=t},,,function(e,t,n){"use strict";
/** @license React v17.0.2
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var c=n(228),f=60103,d=60106,r=(t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114,60109),o=60110,i=60112,a=(t.Suspense=60113,60115),l=60116,p=("function"==typeof Symbol&&Symbol.for&&(f=(n=Symbol.for)("react.element"),d=n("react.portal"),t.Fragment=n("react.fragment"),t.StrictMode=n("react.strict_mode"),t.Profiler=n("react.profiler"),r=n("react.provider"),o=n("react.context"),i=n("react.forward_ref"),t.Suspense=n("react.suspense"),a=n("react.memo"),l=n("react.lazy")),"function"==typeof Symbol&&Symbol.iterator);function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},u={};function m(e,t,n){this.props=e,this.context=t,this.refs=u,this.updater=n||s}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=u,this.updater=n||s}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var n=v.prototype=new y,b=(n.constructor=v,c(n,m.prototype),n.isPureReactComponent=!0,{current:null}),g=Object.prototype.hasOwnProperty,w={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)g.call(t,r)&&!w.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:f,type:e,key:i,ref:a,props:o,_owner:b.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===f}var O=/\/+/g;function S(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=""+e.key,n={"=":"=0",":":"=2"},"$"+e.replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var n}function P(e,t,n,r,o){var i,a,l=!1;if(null===(e="undefined"!==(u=typeof e)&&"boolean"!==u?e:null))l=!0;else switch(u){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case f:case d:l=!0}}if(l)return o=o(l=e),e=""===r?"."+S(l,0):r,Array.isArray(o)?(n="",P(o,t,n=null!=e?e.replace(O,"$&/")+"/":n,"",function(e){return e})):null!=o&&(_(o)&&(a=n+(!(i=o).key||l&&l.key===o.key?"":(""+o.key).replace(O,"$&/")+"/")+e,o={$$typeof:f,type:i.type,key:a,ref:i.ref,props:i.props,_owner:i._owner}),t.push(o)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){var u,c=r+S(u=e[s],s);l+=P(u,t,n,c,o)}else if("function"==typeof(c=null!==(a=e)&&"object"==typeof a&&"function"==typeof(a=p&&a[p]||a["@@iterator"])?a:null))for(e=c.call(e),s=0;!(u=e.next()).done;)l+=P(u=u.value,t,n,c=r+S(u,s++),o);else if("object"===u)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function E(e,t,n){if(null==e)return e;var r=[],o=0;return P(e,r,"","",function(e){return t.call(n,e,o++)}),r}function x(t){var e;if(-1===t._status&&(e=(e=t._result)(),t._status=0,(t._result=e).then(function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)},function(e){0===t._status&&(t._status=2,t._result=e)})),1===t._status)return t._result;throw t._result}var j={current:null};function C(){var e=j.current;if(null===e)throw Error(h(321));return e}n={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:b,IsSomeRendererActing:{current:!1},assign:c};t.Children={map:E,forEach:function(e,t,n){E(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return E(e,function(){t++}),t},toArray:function(e){return E(e,function(e){return e})||[]},only:function(e){if(_(e))return e;throw Error(h(143))}},t.Component=m,t.PureComponent=v,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=n,t.cloneElement=function(e,t,n){if(null==e)throw Error(h(267,e));var r=c({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t)for(l in void 0!==t.ref&&(i=t.ref,a=b.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)g.call(t,l)&&!w.hasOwnProperty(l)&&(r[l]=(void 0===t[l]&&void 0!==s?s:t)[l]);var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:f,type:e.type,key:o,ref:i,props:r,_owner:a}},t.createContext=function(e,t){return(e={$$typeof:o,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:r,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:i,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:x}},t.memo=function(e,t){return{$$typeof:a,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return C().useCallback(e,t)},t.useContext=function(e,t){return C().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return C().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return C().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return C().useLayoutEffect(e,t)},t.useMemo=function(e,t){return C().useMemo(e,t)},t.useReducer=function(e,t,n){return C().useReducer(e,t,n)},t.useRef=function(e){return C().useRef(e)},t.useState=function(e){return C().useState(e)},t.version="17.0.2"},function(I,L,e){"use strict";
/** @license React v17.0.2
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var N=e(55),m=e(228),o=e(342);function V(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!N)throw Error(V(227));var F=new Set,U={};function z(e,t){B(e,t),B(e+"Capture",t)}function B(e,t){for(U[e]=t,e=0;e<t.length;e++)F.add(t[e])}var e=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),H=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,q=Object.prototype.hasOwnProperty,W={},K={};function Y(e,t,n,r){if(null==t||function(e,t,n,r){if(null===n||0!==n.type)switch(typeof t){case"function":case"symbol":return 1;case"boolean":return r?void 0:null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e;default:return}}(e,t,n,r))return 1;if(!r&&null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||t<1}}function n(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var a={},G=("children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){a[e]=new n(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];a[t]=new n(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){a[e]=new n(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){a[e]=new n(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){a[e]=new n(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){a[e]=new n(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){a[e]=new n(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){a[e]=new n(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){a[e]=new n(e,5,!1,e.toLowerCase(),null,!1,!1)}),/[\-:]([a-z])/g);function $(e){return e[1].toUpperCase()}function J(e,t,n,r){var o,i=a.hasOwnProperty(t)?a[t]:null;(null!==i?0!==i.type:r||(!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1]))&&(Y(t,n,i,r)&&(n=null),r||null===i?(o=t,(q.call(K,o)||!q.call(W,o)&&(H.test(o)?K[o]=!0:void(W[o]=!0)))&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n))):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(G,$);a[t]=new n(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(G,$);a[t]=new n(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(G,$);a[t]=new n(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){a[e]=new n(e,1,!1,e.toLowerCase(),null,!1,!1)}),a.xlinkHref=new n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){a[e]=new n(e,1,!1,e.toLowerCase(),null,!0,!0)});var Q,Z=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,X=60103,ee=60106,te=60107,ne=60108,re=60114,oe=60109,ie=60110,ae=60112,le=60113,se=60120,ue=60115,ce=60116,fe=60121,de=60128,pe=60129,he=60130,me=60131,ye=("function"==typeof Symbol&&Symbol.for&&(X=(r=Symbol.for)("react.element"),ee=r("react.portal"),te=r("react.fragment"),ne=r("react.strict_mode"),re=r("react.profiler"),oe=r("react.provider"),ie=r("react.context"),ae=r("react.forward_ref"),le=r("react.suspense"),se=r("react.suspense_list"),ue=r("react.memo"),ce=r("react.lazy"),fe=r("react.block"),r("react.scope"),de=r("react.opaque.id"),pe=r("react.debug_trace_mode"),he=r("react.offscreen"),me=r("react.legacy_hidden")),"function"==typeof Symbol&&Symbol.iterator);function ve(e){return null!==e&&"object"==typeof e&&"function"==typeof(e=ye&&e[ye]||e["@@iterator"])?e:null}function be(e){if(void 0===Q)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Q=t&&t[1]||""}return"\n"+Q+e}var ge=!1;function we(e,t){if(!e||ge)return"";ge=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,--l<0||o[a]!==i[l])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{ge=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?be(e):""}function ke(e){if(null!=e){if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case te:return"Fragment";case ee:return"Portal";case re:return"Profiler";case ne:return"StrictMode";case le:return"Suspense";case se:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ie:return(e.displayName||"Context")+".Consumer";case oe:return(e._context.displayName||"Context")+".Provider";case ae:var t=(t=e.render).displayName||t.name||"";return e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case ue:return ke(e.type);case fe:return ke(e._render);case ce:t=e._payload,e=e._init;try{return ke(e(t))}catch(e){}}}return null}function _e(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Oe(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Se(e){e._valueTracker||(e._valueTracker=function(e){var t,n,r=Oe(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),i=""+e[r];if(!e.hasOwnProperty(r)&&void 0!==o&&"function"==typeof o.get&&"function"==typeof o.set)return t=o.get,n=o.set,Object.defineProperty(e,r,{configurable:!0,get:function(){return t.call(this)},set:function(e){i=""+e,n.call(this,e)}}),Object.defineProperty(e,r,{enumerable:o.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[r]}}}(e))}function Pe(e){if(e){var t=e._valueTracker;if(!t)return 1;var n=t.getValue(),r="";return(e=r=e?Oe(e)?e.checked?"true":"false":e.value:r)!==n&&(t.setValue(e),1)}}function Ee(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function xe(e,t){var n=t.checked;return m({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function je(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked,n=_e(null!=t.value?t.value:n);e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ce(e,t){null!=(t=t.checked)&&J(e,"checked",t,!1)}function Re(e,t){Ce(e,t);var n=_e(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Me(e,t.type,n):t.hasOwnProperty("defaultValue")&&Me(e,t.type,_e(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ae(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Me(e,t,n){"number"===t&&Ee(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Te(e,t){var n,r;return e=m({children:void 0},t),n=t.children,r="",N.Children.forEach(n,function(e){null!=e&&(r+=e)}),(t=r)&&(e.children=t),e}function De(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+_e(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(V(91));return m({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(V(92));if(Array.isArray(n)){if(!(n.length<=1))throw Error(V(93));n=n[0]}t=n}n=t=null==t?"":t}e._wrapperState={initialValue:_e(n)}}function Ve(e,t){var n=_e(t.value),r=_e(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Ne(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Fe="http://www.w3.org/1999/xhtml",Ue="http://www.w3.org/2000/svg";function ze(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Be(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ze(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}qe=function(e,t){if(e.namespaceURI!==Ue||"innerHTML"in e)e.innerHTML=t;else{for((He=He||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=He.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}};var He,qe,We="undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return qe(e,t)})}:qe;function Ke(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ge=["Webkit","ms","Moz","O"];function $e(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Ye.hasOwnProperty(e)&&Ye[e]?(""+t).trim():t+"px"}function Je(e,t){for(var n in e=e.style,t){var r,o;t.hasOwnProperty(n)&&(r=0===n.indexOf("--"),o=$e(n,t[n],r),"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o)}}Object.keys(Ye).forEach(function(t){Ge.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Ye[e]=Ye[t]})});var Qe=m({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ze(e,t){if(t){if(Qe[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(V(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(V(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(V(62))}}function Xe(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function et(e){return 3===(e=(e=e.target||e.srcElement||window).correspondingUseElement?e.correspondingUseElement:e).nodeType?e.parentNode:e}var tt=null,nt=null,rt=null;function ot(e){if(e=uo(e)){if("function"!=typeof tt)throw Error(V(280));var t=e.stateNode;t&&(t=fo(t),tt(e.stateNode,e.type,t))}}function it(e){nt?rt?rt.push(e):rt=[e]:nt=e}function at(){if(nt){var e=nt,t=rt;if(rt=nt=null,ot(e),t)for(e=0;e<t.length;e++)ot(t[e])}}function lt(e,t){return e(t)}function st(e,t,n,r,o){return e(t,n,r,o)}function ut(){}var ct=!1,ft=!1;function dt(){null===nt&&null===rt||(ut(),at())}function pt(e,t){var n=e.stateNode;if(null===n)return null;var r=fo(n);if(null===r)return null;switch(n=r[t],t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":e=!(r=(r=!r.disabled)?r:!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e));break;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(V(231,t,typeof n));return n}var ht=!1;if(e)try{var t={};Object.defineProperty(t,"passive",{get:function(){ht=!0}}),window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(e){ht=!1}var mt=!1,yt=null,vt=!1,bt=null,gt={onError:function(e){mt=!0,yt=e}};function wt(e,t,n,r,o,i,a,l,s){mt=!1,yt=null,function(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}.apply(gt,arguments)}function kt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else for(e=t;0!=(1026&(t=e).flags)&&(n=t.return),e=t.return;);return 3===t.tag?n:null}function _t(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ot(e){if(kt(e)!==e)throw Error(V(188))}function St(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=kt(e)))throw Error(V(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null===(r=o.return))break;n=r}else{if(o.child===i.child){for(i=o.child;i;){if(i===n)return Ot(o),e;if(i===r)return Ot(o),t;i=i.sibling}throw Error(V(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(V(189))}}if(n.alternate!==r)throw Error(V(190))}}if(3!==n.tag)throw Error(V(188));return n.stateNode.current===n?e:t}(e))for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t=(t.child.return=t).child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Pt(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return 1;t=t.return}}var Et,xt,jt,Ct=!1,Rt=[],At=null,Mt=null,Tt=null,Dt=new Map,It=new Map,Lt=[],Vt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nt(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function Ft(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Mt=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":Dt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Ut(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=Nt(t,n,r,o,i),null!==t&&null!==(t=uo(t))&&xt(t)):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o)),e}function zt(e){if(null===e.blockedOn){for(var t=e.targetContainers;0<t.length;){var n=kn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=uo(n))&&xt(t),e.blockedOn=n,0;t.shift()}return 1}}function Bt(e,t,n){zt(e)&&n.delete(t)}function Ht(){for(Ct=!1;0<Rt.length;){var e=Rt[0];if(null!==e.blockedOn){null!==(e=uo(e.blockedOn))&&Et(e);break}for(var t=e.targetContainers;0<t.length;){var n=kn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&Rt.shift()}null!==At&&zt(At)&&(At=null),null!==Mt&&zt(Mt)&&(Mt=null),null!==Tt&&zt(Tt)&&(Tt=null),Dt.forEach(Bt),It.forEach(Bt)}function qt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ht)))}function Wt(t){function e(e){return qt(e,t)}if(0<Rt.length){qt(Rt[0],t);for(var n=1;n<Rt.length;n++){var r=Rt[n];r.blockedOn===t&&(r.blockedOn=null)}}for(null!==At&&qt(At,t),null!==Mt&&qt(Mt,t),null!==Tt&&qt(Tt,t),Dt.forEach(e),It.forEach(e),n=0;n<Lt.length;n++)(r=Lt[n]).blockedOn===t&&(r.blockedOn=null);for(;0<Lt.length&&null===(n=Lt[0]).blockedOn;)(function(e){var t=so(e.target);if(null!==t){var n=kt(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=_t(n)))return e.blockedOn=t,e.lanePriority,o.unstable_runWithPriority(e.priority,function(){jt(n)})}else if(3===t&&n.stateNode.hydrate)return e.blockedOn=3===n.tag?n.stateNode.containerInfo:null}e.blockedOn=null})(n),null===n.blockedOn&&Lt.shift()}function Kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Yt={animationend:Kt("Animation","AnimationEnd"),animationiteration:Kt("Animation","AnimationIteration"),animationstart:Kt("Animation","AnimationStart"),transitionend:Kt("Transition","TransitionEnd")},Gt={},$t={};function Jt(e){if(Gt[e])return Gt[e];if(Yt[e]){var t,n=Yt[e];for(t in n)if(n.hasOwnProperty(t)&&t in $t)return Gt[e]=n[t]}return e}e&&($t=document.createElement("div").style,"AnimationEvent"in window||(delete Yt.animationend.animation,delete Yt.animationiteration.animation,delete Yt.animationstart.animation),"TransitionEvent"in window||delete Yt.transitionend.transition);var Qt=Jt("animationend"),Zt=Jt("animationiteration"),Xt=Jt("animationstart"),en=Jt("transitionend"),tn=new Map,nn=new Map,r=["abort","abort",Qt,"animationEnd",Zt,"animationIteration",Xt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",en,"transitionEnd","waiting","waiting"];function rn(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o="on"+((o=e[n+1])[0].toUpperCase()+o.slice(1));nn.set(r,t),tn.set(r,o),z(o,[r])}}(0,o.unstable_now)();var f=8;function on(e){if(0!=(1&e))return f=15,1;if(0!=(2&e))return f=14,2;if(0!=(4&e))return f=13,4;var t=24&e;return 0!==t?(f=12,t):0!=(32&e)?(f=11,32):0!==(t=192&e)?(f=10,t):0!=(256&e)?(f=9,256):0!==(t=3584&e)?(f=8,t):0!=(4096&e)?(f=7,4096):0!==(t=4186112&e)?(f=6,t):0!==(t=62914560&e)?(f=5,t):67108864&e?(f=4,67108864):0!=(134217728&e)?(f=3,134217728):0!==(t=805306368&e)?(f=2,t):0!=(1073741824&e)?(f=1,1073741824):(f=8,e)}function an(e,t){var n=e.pendingLanes;if(0===n)return f=0;var r,o=0,i=0,a=e.expiredLanes,l=e.suspendedLanes,s=e.pingedLanes;if(0!==a?(o=a,i=f=15):0!==(a=134217727&n)?0!=(r=a&~l)?(o=on(r),i=f):0!==(s&=a)&&(o=on(s),i=f):0!==(a=n&~l)?(o=on(a),i=f):0!==s&&(o=on(s),i=f),0===o)return 0;if(o=n&(((o=31-dn(o))<0?0:1<<o)<<1)-1,0!==t&&t!==o&&0==(t&l)){if(on(t),i<=f)return t;f=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=o;0<t;)o|=e[n=31-dn(t)],t&=~(i=1<<n);return o}function ln(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function sn(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=un(24&~t))?sn(10,t):e;case 10:return 0===(e=un(192&~t))?sn(8,t):e;case 8:return 0===(e=un(3584&~t))&&(0===(e=un(4186112&~t))&&(e=512)),e;case 2:return t=0===(t=un(805306368&~t))?268435456:t}throw Error(V(358,e))}function un(e){return e&-e}function cn(e){for(var t=[],n=0;n<31;n++)t.push(e);return t}function fn(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-dn(t)]=n}var dn=Math.clz32||function(e){return 0===e?32:31-(pn(e)/hn|0)|0},pn=Math.log,hn=Math.LN2;var mn=o.unstable_UserBlockingPriority,yn=o.unstable_runWithPriority,vn=!0;function bn(e,t,n,r){ct||ut();var o=wn,i=ct;ct=!0;try{st(o,e,t,n,r)}finally{(ct=i)||dt()}}function gn(e,t,n,r){yn(mn,wn.bind(null,e,t,n,r))}function wn(e,t,n,r){var o;if(vn)if((o=0==(4&t))&&0<Rt.length&&-1<Vt.indexOf(e))e=Nt(null,e,t,n,r),Rt.push(e);else{var i=kn(e,t,n,r);if(null===i)o&&Ft(e,r);else{if(o){if(-1<Vt.indexOf(e))return e=Nt(i,e,t,n,r),void Rt.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return At=Ut(At,e,t,n,r,o),1;case"dragenter":return Mt=Ut(Mt,e,t,n,r,o),1;case"mouseover":return Tt=Ut(Tt,e,t,n,r,o),1;case"pointerover":var i=o.pointerId;return Dt.set(i,Ut(Dt.get(i)||null,e,t,n,r,o)),1;case"gotpointercapture":return i=o.pointerId,It.set(i,Ut(It.get(i)||null,e,t,n,r,o)),1}}(i,e,t,n,r))return;Ft(e,r)}Br(e,t,r,null,n)}}}function kn(e,t,n,r){var o=et(r);if(null!==(o=so(o))){var i=kt(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=_t(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Br(e,t,r,o,n),null}var _n=null,On=null,Sn=null;function Pn(){if(Sn)return Sn;for(var e=On,t=e.length,n=("value"in _n?_n.value:_n.textContent),r=n.length,o=0;o<t&&e[o]===n[o];o++);for(var i=t-o,a=1;a<=i&&e[t-a]===n[r-a];a++);return Sn=n.slice(o,1<a?1-a:void 0)}function En(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,32<=(e=10===e?13:e)||13===e?e:0}function xn(){return!0}function jn(){return!1}function i(a){function e(e,t,n,r,o){for(var i in this._reactName=e,this._targetInst=n,this.type=t,this.nativeEvent=r,this.target=o,this.currentTarget=null,a)a.hasOwnProperty(i)&&(e=a[i],this[i]=e?e(r):r[i]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?xn:jn,this.isPropagationStopped=jn,this}return m(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=xn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=xn)},persist:function(){},isPersistent:xn}),e}var Cn,Rn,An,t={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mn=i(t),l=m({},t,{view:0,detail:0}),Tn=i(l),s=m({},l,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==An&&(Rn=An&&"mousemove"===e.type?(Cn=e.screenX-An.screenX,e.screenY-An.screenY):Cn=0,An=e),Cn)},movementY:function(e){return"movementY"in e?e.movementY:Rn}}),Dn=i(s),In=i(m({},s,{dataTransfer:0})),Ln=i(m({},l,{relatedTarget:0})),Vn=i(m({},t,{animationName:0,elapsedTime:0,pseudoElement:0})),Nn=i(m({},t,{clipboardData:function(e){return("clipboardData"in e?e:window).clipboardData}})),Fn=i(m({},t,{data:0})),Un={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Bn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Bn[e])&&!!t[e]}function qn(){return Hn}var Wn=i(m({},l,{key:function(e){if(e.key){var t=Un[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=En(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?zn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qn,charCode:function(e){return"keypress"===e.type?En(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?En(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Kn=i(m({},s,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Yn=i(m({},l,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qn})),Gn=i(m({},t,{propertyName:0,elapsedTime:0,pseudoElement:0})),$n=i(m({},s,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Jn=[9,13,27,32],Qn=e&&"CompositionEvent"in window,l=null,Zn=(e&&"documentMode"in document&&(l=document.documentMode),e&&"TextEvent"in window&&!l),Xn=e&&(!Qn||l&&8<l&&l<=11),er=String.fromCharCode(32),tr=!1;function nr(e,t){switch(e){case"keyup":return-1!==Jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return 1;default:return}}function rr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var or=!1;var ir={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?ir[e.type]:"textarea"===t}function lr(e,t,n,r){it(r),0<(t=qr(t,"onChange")).length&&(n=new Mn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var sr=null,ur=null;function cr(e){Vr(e,0)}function fr(e){if(Pe(co(e)))return e}function dr(e,t){if("change"===e)return t}var pr=!1;function hr(){sr&&(sr.detachEvent("onpropertychange",mr),ur=sr=null)}function mr(e){if("value"===e.propertyName&&fr(ur)){var t=[];if(lr(t,ur,e,et(e)),e=cr,ct)e(t);else{ct=!0;try{lt(e,t)}finally{ct=!1,dt()}}}}function yr(e,t,n){"focusin"===e?(hr(),ur=n,(sr=t).attachEvent("onpropertychange",mr)):"focusout"===e&&hr()}function vr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return fr(ur)}function br(e,t){if("click"===e)return fr(t)}function gr(e,t){if("input"===e||"change"===e)return fr(t)}e&&(l=e&&((t="oninput"in document)||((s=document.createElement("div")).setAttribute("oninput","return;"),t="function"==typeof s.oninput),t),pr=l&&(!document.documentMode||9<document.documentMode));var y="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},wr=Object.prototype.hasOwnProperty;function kr(e,t){if(!y(e,t)){if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!wr.call(t,n[r])||!y(e[n[r]],t[n[r]]))return!1}return!0}function _r(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Or(e,t){var n,r=_r(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&t<=n)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=_r(r)}}function Sr(){for(var e=window,t=Ee();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Ee((e=t.contentWindow).document)}return t}function Pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Er=e&&"documentMode"in document&&document.documentMode<=11,xr=null,jr=null,Cr=null,Rr=!1;function Ar(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Rr||null==xr||xr!==Ee(r)||(r="selectionStart"in(r=xr)&&Pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Cr&&kr(Cr,r)||(Cr=r,0<(r=qr(jr,"onSelect")).length&&(t=new Mn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xr)))}rn("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),rn("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),rn(r,2);for(var Mr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Tr=0;Tr<Mr.length;Tr++)nn.set(Mr[Tr],0);B("onMouseEnter",["mouseout","mouseover"]),B("onMouseLeave",["mouseout","mouseover"]),B("onPointerEnter",["pointerout","pointerover"]),B("onPointerLeave",["pointerout","pointerover"]),z("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),z("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),z("onBeforeInput",["compositionend","keypress","textInput","paste"]),z("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),z("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),z("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ir=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(){var e;wt.apply(this,arguments),mt&&(e=yt,mt=!1,yt=null,vt||(vt=!0,bt=e))}(r,t,void 0,e),e.currentTarget=null}function Vr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=(o=e[n]).event,o=o.listeners;e:{var i=void 0;if(t)for(var a=o.length-1;0<=a;a--){var l=(u=o[a]).instance,s=u.currentTarget,u=u.listener;if(l!==i&&r.isPropagationStopped())break e;Lr(r,u,s),i=l}else for(a=0;a<o.length;a++){if(l=(u=o[a]).instance,s=u.currentTarget,u=u.listener,l!==i&&r.isPropagationStopped())break e;Lr(r,u,s),i=l}}}if(vt)throw e=bt,vt=!1,bt=null,e}function c(e,t){var n=po(t),r=e+"__bubble";n.has(r)||(zr(t,e,2,!1),n.add(r))}var Nr="_reactListening"+Math.random().toString(36).slice(2);function Fr(t){t[Nr]||(t[Nr]=!0,F.forEach(function(e){Ir.has(e)||Ur(e,!1,t,null),Ur(e,!0,t,null)}))}function Ur(e,t,n,r,o){var o=4<arguments.length&&void 0!==o?o:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&Ir.has(e)){if("scroll"!==e)return;o|=2,i=r}n=po(i),r=e+"__"+(t?"capture":"bubble");n.has(r)||(t&&(o|=4),zr(i,e,o,t),n.add(r))}function zr(e,t,n,r){var o=nn.get(t);switch(void 0===o?2:o){case 0:o=bn;break;case 1:o=gn;break;default:o=wn}n=o.bind(null,t,n,e),o=!ht||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t?void 0:!0,r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Br(y,v,b,e,t){var g=e;if(0==(1&v)&&0==(2&v)&&null!==e)e:for(;;){if(null===e)return;var n=e.tag;if(3===n||4===n){var r=e.stateNode.containerInfo;if(r===t||8===r.nodeType&&r.parentNode===t)break;if(4===n)for(n=e.return;null!==n;){var o=n.tag;if((3===o||4===o)&&((o=n.stateNode.containerInfo)===t||8===o.nodeType&&o.parentNode===t))return;n=n.return}for(;null!==r;){if(null===(n=so(r)))return;if(5===(o=n.tag)||6===o){e=g=n;continue e}r=r.parentNode}}e=e.return}var i=function(){var e,t,n,r=g,o=et(b),i=[];e:{var a=tn.get(y);if(void 0!==a){var l=Mn,s=y;switch(y){case"keypress":if(0===En(b))break e;case"keydown":case"keyup":l=Wn;break;case"focusin":s="focus",l=Ln;break;case"focusout":s="blur",l=Ln;break;case"beforeblur":case"afterblur":l=Ln;break;case"click":if(2===b.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=Dn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=In;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Yn;break;case Qt:case Zt:case Xt:l=Vn;break;case en:l=Gn;break;case"scroll":l=Tn;break;case"wheel":l=$n;break;case"copy":case"cut":case"paste":l=Nn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Kn}for(var u=!(f=0!=(4&v))&&"scroll"===y,c=f?null!==a?a+"Capture":null:a,f=[],d=r;null!==d;){var p,h=(p=d).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==c&&(null!=(h=pt(d,c))&&f.push(Hr(d,h,p)))),u)break;d=d.return}0<f.length&&(a=new l(a,s,null,b,o),i.push({event:a,listeners:f}))}}if(0==(7&v)){if(l="mouseout"===y||"pointerout"===y,(!(a="mouseover"===y||"pointerover"===y)||0!=(16&v)||!(s=b.relatedTarget||b.fromElement)||!so(s)&&!s[ao])&&(l||a)&&(a=o.window===o?o:(a=o.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=r,null!==(s=(s=b.relatedTarget||b.toElement)?so(s):null)&&(s!==(u=kt(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(l=null,s=r),l!==s)){if(f=Dn,h="onMouseLeave",c="onMouseEnter",d="mouse","pointerout"!==y&&"pointerover"!==y||(f=Kn,h="onPointerLeave",c="onPointerEnter",d="pointer"),u=null==l?a:co(l),p=null==s?a:co(s),(a=new f(h,d+"leave",l,b,o)).target=u,a.relatedTarget=p,h=null,so(o)===r&&((f=new f(c,d+"enter",s,b,o)).target=p,f.relatedTarget=u,h=f),u=h,l&&s)e:{for(c=s,d=0,p=f=l;p;p=Wr(p))d++;for(p=0,h=c;h;h=Wr(h))p++;for(;0<d-p;)f=Wr(f),d--;for(;0<p-d;)c=Wr(c),p--;for(;d--;){if(f===c||null!==c&&f===c.alternate)break e;f=Wr(f),c=Wr(c)}f=null}else f=null;null!==l&&Kr(i,a,l,f,!1),null!==s&&null!==u&&Kr(i,u,s,f,!0)}switch("select"===(l=(a=r?co(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type?e=dr:ar(a)?pr?e=gr:(e=vr,t=yr):!(l=a.nodeName)||"input"!==l.toLowerCase()||"checkbox"!==a.type&&"radio"!==a.type||(e=br),(e=e&&e(y,r))?lr(i,e,b,o):(t&&t(y,a,r),"focusout"===y&&(t=a._wrapperState)&&t.controlled&&"number"===a.type&&Me(a,"number",a.value)),t=r?co(r):window,y){case"focusin":!ar(t)&&"true"!==t.contentEditable||(xr=t,jr=r,Cr=null);break;case"focusout":Cr=jr=xr=null;break;case"mousedown":Rr=!0;break;case"contextmenu":case"mouseup":case"dragend":Rr=!1,Ar(i,b,o);break;case"selectionchange":if(Er)break;case"keydown":case"keyup":Ar(i,b,o)}if(Qn)e:{switch(y){case"compositionstart":var m="onCompositionStart";break e;case"compositionend":m="onCompositionEnd";break e;case"compositionupdate":m="onCompositionUpdate";break e}m=void 0}else or?nr(y,b)&&(m="onCompositionEnd"):"keydown"===y&&229===b.keyCode&&(m="onCompositionStart");m&&(Xn&&"ko"!==b.locale&&(or||"onCompositionStart"!==m?"onCompositionEnd"===m&&or&&(n=Pn()):(On="value"in(_n=o)?_n.value:_n.textContent,or=!0)),0<(t=qr(r,m)).length&&(m=new Fn(m,y,null,b,o),i.push({event:m,listeners:t}),n?m.data=n:null!==(n=rr(b))&&(m.data=n))),(n=(Zn?function(e,t){switch(e){case"compositionend":return rr(t);case"keypress":return 32!==t.which?null:(tr=!0,er);case"textInput":return(e=t.data)===er&&tr?null:e;default:return null}}:function(e,t){if(or)return"compositionend"===e||!Qn&&nr(e,t)?(e=Pn(),Sn=On=_n=null,or=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Xn&&"ko"!==t.locale?null:t.data;default:return null}})(y,b))&&(0<(r=qr(r,"onBeforeInput")).length&&(o=new Fn("onBeforeInput","beforeinput",null,b,o),i.push({event:o,listeners:r}),o.data=n))}Vr(i,v)},a=void 0,l=void 0;if(ft)i(a,l);else{ft=!0;try{As(i,a)}finally{ft=!1,dt()}}}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=pt(e,n))&&r.unshift(Hr(e,i,o)),null!=(i=pt(e,t))&&r.push(Hr(e,i,o))),e=e.return}return r}function Wr(e){if(null===e)return null;for(;(e=e.return)&&5!==e.tag;);return e||null}function Kr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=pt(n,i))&&a.unshift(Hr(n,s,l)):null!=(s=pt(n,i))&&a.push(Hr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Yr(){}var Gr=null,$r=null;function Jr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return t.autoFocus}}function Qr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Zr="function"==typeof setTimeout?setTimeout:void 0,Xr="function"==typeof clearTimeout?clearTimeout:void 0;function eo(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function to(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function no(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ro=0;var s=Math.random().toString(36).slice(2),oo="__reactFiber$"+s,io="__reactProps$"+s,ao="__reactContainer$"+s,lo="__reactEvents$"+s;function so(e){var t=e[oo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ao]||n[oo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=no(e);null!==e;){if(n=e[oo])return n;e=no(e)}return t}n=(e=n).parentNode}return null}function uo(e){return!(e=e[oo]||e[ao])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function co(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(V(33))}function fo(e){return e[io]||null}function po(e){var t=e[lo];return t=void 0===t?e[lo]=new Set:t}var ho=[],mo=-1;function yo(e){return{current:e}}function u(e){mo<0||(e.current=ho[mo],ho[mo]=null,mo--)}function d(e,t){ho[++mo]=e.current,e.current=t}var vo={},v=yo(vo),b=yo(!1),bo=vo;function go(e,t){var n=e.type.contextTypes;if(!n)return vo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function g(e){return null!=(e=e.childContextTypes)}function wo(){u(b),u(v)}function ko(e,t,n){if(v.current!==vo)throw Error(V(168));d(v,t),d(b,n)}function _o(e,t,n){var r,o=e.stateNode;if(e=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(r in o=o.getChildContext())if(!(r in e))throw Error(V(108,ke(t)||"Unknown",r));return m({},n,o)}function Oo(e){e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vo,bo=v.current,d(v,e),d(b,b.current)}function So(e,t,n){var r=e.stateNode;if(!r)throw Error(V(169));n?(e=_o(e,t,bo),r.__reactInternalMemoizedMergedChildContext=e,u(b),u(v),d(v,e)):u(b),d(b,n)}var Po=null,Eo=null,xo=o.unstable_runWithPriority,jo=o.unstable_scheduleCallback,Co=o.unstable_cancelCallback,Ro=o.unstable_shouldYield,t=o.unstable_requestPaint,Ao=o.unstable_now,Mo=o.unstable_getCurrentPriorityLevel,To=o.unstable_ImmediatePriority,Do=o.unstable_UserBlockingPriority,Io=o.unstable_NormalPriority,Lo=o.unstable_LowPriority,Vo=o.unstable_IdlePriority,No={},Fo=void 0!==t?t:function(){},Uo=null,zo=null,Bo=!1,Ho=Ao(),P=Ho<1e4?Ao:function(){return Ao()-Ho};function qo(){switch(Mo()){case To:return 99;case Do:return 98;case Io:return 97;case Lo:return 96;case Vo:return 95;default:throw Error(V(332))}}function Wo(e){switch(e){case 99:return To;case 98:return Do;case 97:return Io;case 96:return Lo;case 95:return Vo;default:throw Error(V(332))}}function Ko(e,t){return e=Wo(e),xo(e,t)}function Yo(e,t,n){return e=Wo(e),jo(e,t,n)}function Go(){var e;null!==zo&&(e=zo,zo=null,Co(e)),$o()}function $o(){if(!Bo&&null!==Uo){Bo=!0;var t=0;try{var n=Uo;Ko(99,function(){for(;t<n.length;t++)for(var e=n[t];null!==(e=e(!0)););}),Uo=null}catch(e){throw null!==Uo&&(Uo=Uo.slice(t+1)),jo(To,Go),e}finally{Bo=!1}}}var Jo=Z.ReactCurrentBatchConfig;function Qo(e,t){if(e&&e.defaultProps)for(var n in t=m({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Zo=yo(null),Xo=null,ei=null,ti=null;function ni(){ti=ei=Xo=null}function ri(e){var t=Zo.current;u(Zo),e.type._context._currentValue=t}function oi(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ii(e,t){(ti=ei=null)!==(e=(Xo=e).dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(ja=!0),e.firstContext=null)}function w(e,t){if(ti!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ti=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ei){if(null===Xo)throw Error(V(308));ei=t,Xo.dependencies={lanes:0,firstContext:t,responders:null}}else ei=ei.next=t;return e._currentValue}var ai=!1;function li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function si(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ui(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ci(e,t){var n;null!==(e=e.updateQueue)&&(null===(n=(e=e.shared).pending)?t.next=t:(t.next=n.next,n.next=t),e.pending=t)}function fi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null}}while(null===i?o=i=a:i=i.next=a,null!==(n=n.next));null===i?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n}else null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function di(e,t,n,r){var o,i,a,l,s=e.updateQueue,u=(ai=!1,s.firstBaseUpdate),c=s.lastBaseUpdate;if(null!==(h=s.shared.pending)&&(s.shared.pending=null,i=(o=h).next,(o.next=null)===c?u=i:c.next=i,c=o,null!==(a=e.alternate)&&(l=(a=a.updateQueue).lastBaseUpdate)!==c&&(null===l?a.firstBaseUpdate=i:l.next=i,a.lastBaseUpdate=o)),null!==u){for(l=s.baseState,c=0,a=i=o=null;;){h=u.lane;var f=u.eventTime;if((r&h)===h){null!==a&&(a=a.next={eventTime:f,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var d=e,p=u,h=t,f=n;switch(p.tag){case 1:if("function"==typeof(d=p.payload)){l=d.call(f,l,h);break e}l=d;break e;case 3:d.flags=-4097&d.flags|64;case 0:if(null==(h="function"==typeof(d=p.payload)?d.call(f,l,h):d))break e;l=m({},l,h);break e;case 2:ai=!0}}null!==u.callback&&(e.flags|=32,null===(h=s.effects)?s.effects=[u]:h.push(u))}else f={eventTime:f,lane:h,tag:u.tag,payload:u.payload,callback:u.callback,next:null},null===a?(i=a=f,o=l):a=a.next=f,c|=h;if(null===(u=u.next)){if(null===(h=s.shared.pending))break;u=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}null===a&&(o=l),s.baseState=o,s.firstBaseUpdate=i,s.lastBaseUpdate=a,wl|=c,e.lanes=c,e.memoizedState=l}}function pi(e,t,n){if(e=t.effects,(t.effects=null)!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(V(191,o));o.call(r)}}}var hi=(new N.Component).refs;function mi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:m({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var yi={isMounted:function(e){return!!(e=e._reactInternals)&&kt(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=_(),o=ql(e),i=ui(r,o);i.payload=t,null!=n&&(i.callback=n),ci(e,i),Wl(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=_(),o=ql(e),i=ui(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),ci(e,i),Wl(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_(),r=ql(e),o=ui(n,r);o.tag=2,null!=t&&(o.callback=t),ci(e,o),Wl(e,r,n)}};function vi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!kr(n,r)||!kr(o,i))}function bi(e,t,n){var r=!1,o=vo,i=t.contextType;t=new t(n,i="object"==typeof i&&null!==i?w(i):(o=g(t)?bo:v.current,(r=null!=(r=t.contextTypes))?go(e,o):vo)),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yi,(e.stateNode=t)._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i)}function gi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yi.enqueueReplaceState(t,t.state,null)}function wi(e,t,n,r){var o=e.stateNode,i=(o.props=n,o.state=e.memoizedState,o.refs=hi,li(e),t.contextType);"object"==typeof i&&null!==i?o.context=w(i):(i=g(t)?bo:v.current,o.context=go(e,i)),di(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(mi(e,0,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&yi.enqueueReplaceState(o,o.state,null),di(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var ki=Array.isArray;function _i(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(V(309));var r=n.stateNode}if(!r)throw Error(V(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===hi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(V(284));if(!n._owner)throw Error(V(290,e))}return e}function Oi(e,t){if("textarea"!==e.type)throw Error(V(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Si(x){function j(e,t){var n;x&&(null!==(n=e.lastEffect)?(n.nextEffect=t,e.lastEffect=t):e.firstEffect=e.lastEffect=t,t.nextEffect=null,t.flags=8)}function C(e,t){if(x)for(;null!==t;)j(e,t),t=t.sibling;return null}function R(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function A(e,t){return(e=ys(e,t)).index=0,e.sibling=null,e}function M(e,t,n){if(e.index=n,x){if(null!==(n=e.alternate))return(n=n.index)<t?(e.flags=2,t):n;e.flags=2}return t}function T(e){return x&&null===e.alternate&&(e.flags=2),e}function i(e,t,n,r){return null===t||6!==t.tag?(t=ws(n,e.mode,r)).return=e:(t=A(t,n)).return=e,t}function a(e,t,n,r){return null!==t&&t.elementType===n.type?((r=A(t,n.props)).ref=_i(0,t,n),r.return=e):((r=vs(n.type,n.key,n.props,null,e.mode,r)).ref=_i(0,t,n),r.return=e),r}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=ks(n,e.mode,r)).return=e:(t=A(t,n.children||[])).return=e,t}function s(e,t,n,r,o){return null===t||7!==t.tag?(t=bs(n,e.mode,r,o)).return=e:(t=A(t,n)).return=e,t}function D(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=ws(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case X:return(n=vs(t.type,t.key,t.props,null,e.mode,n)).ref=_i(0,null,t),n.return=e,n;case ee:return(t=ks(t,e.mode,n)).return=e,t}if(ki(t)||ve(t))return(t=bs(t,e.mode,n,null)).return=e,t;Oi(e,t)}return null}function I(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:i(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case X:return n.key===o?n.type===te?s(e,t,n.props.children,r,o):a(e,t,n,r):null;case ee:return n.key===o?l(e,t,n,r):null}if(ki(n)||ve(n))return null!==o?null:s(e,t,n,r,null);Oi(e,n)}return null}function L(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return i(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case X:return e=e.get(null===r.key?n:r.key)||null,r.type===te?s(t,e,r.props.children,o,r.key):a(t,e,r,o);case ee:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(ki(r)||ve(r))return s(t,e=e.get(n)||null,r,o,null);Oi(t,r)}return null}return function(e,t,n,r){var o="object"==typeof n&&null!==n&&n.type===te&&null===n.key,i="object"==typeof(n=o?n.props.children:n)&&null!==n;if(i)switch(n.$$typeof){case X:e:{for(i=n.key,o=t;null!==o;){if(o.key===i){switch(o.tag){case 7:if(n.type!==te)break;C(e,o.sibling),(t=A(o,n.props.children)).return=e,e=t;break e;default:if(o.elementType===n.type){C(e,o.sibling),(t=A(o,n.props)).ref=_i(0,o,n),t.return=e,e=t;break e}}C(e,o);break}j(e,o),o=o.sibling}e=n.type===te?((t=bs(n.props.children,e.mode,r,n.key)).return=e,t):((r=vs(n.type,n.key,n.props,null,e.mode,r)).ref=_i(0,t,n),r.return=e,r)}return T(e);case ee:e:{for(o=n.key;null!==t;){if(t.key===o){if(4===t.tag&&t.stateNode.containerInfo===n.containerInfo&&t.stateNode.implementation===n.implementation){C(e,t.sibling),(t=A(t,n.children||[])).return=e,e=t;break e}C(e,t);break}j(e,t),t=t.sibling}(t=ks(n,e.mode,r)).return=e,e=t}return T(e)}if("string"==typeof n||"number"==typeof n)return n=""+n,(t=null!==t&&6===t.tag?(C(e,t.sibling),A(t,n)):(C(e,t),ws(n,e.mode,r))).return=e,T(e=t);if(ki(n)){for(var a=e,l=t,s=n,u=r,c=null,f=null,d=l,p=l=0,h=null;null!==d&&p<s.length;p++){d.index>p?(h=d,d=null):h=d.sibling;var m=I(a,d,s[p],u);if(null===m){null===d&&(d=h);break}x&&d&&null===m.alternate&&j(a,d),l=M(m,l,p),null===f?c=m:f.sibling=m,f=m,d=h}if(p===s.length)C(a,d);else if(null===d)for(;p<s.length;p++)null!==(d=D(a,s[p],u))&&(l=M(d,l,p),null===f?c=d:f.sibling=d,f=d);else{for(d=R(a,d);p<s.length;p++)null!==(h=L(d,a,p,s[p],u))&&(x&&null!==h.alternate&&d.delete(null===h.key?p:h.key),l=M(h,l,p),null===f?c=h:f.sibling=h,f=h);x&&d.forEach(function(e){return j(a,e)})}return c}if(ve(n)){var y=e,v=t,b=n,g=r,w=ve(b);if("function"!=typeof w)throw Error(V(150));if(null==(b=w.call(b)))throw Error(V(151));for(var k=w=null,_=v,O=v=0,S=null,P=b.next();null!==_&&!P.done;O++,P=b.next()){_.index>O?(S=_,_=null):S=_.sibling;var E=I(y,_,P.value,g);if(null===E){null===_&&(_=S);break}x&&_&&null===E.alternate&&j(y,_),v=M(E,v,O),null===k?w=E:k.sibling=E,k=E,_=S}if(P.done)C(y,_);else if(null===_)for(;!P.done;O++,P=b.next())null!==(P=D(y,P.value,g))&&(v=M(P,v,O),null===k?w=P:k.sibling=P,k=P);else{for(_=R(y,_);!P.done;O++,P=b.next())null!==(P=L(_,y,O,P.value,g))&&(x&&null!==P.alternate&&_.delete(null===P.key?O:P.key),v=M(P,v,O),null===k?w=P:k.sibling=P,k=P);x&&_.forEach(function(e){return j(y,e)})}return w}if(i&&Oi(e,n),void 0===n&&!o)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(V(152,ke(e.type)||"Component"))}return C(e,t)}}var Pi=Si(!0),Ei=Si(!1),xi={},ji=yo(xi),Ci=yo(xi),Ri=yo(xi);function Ai(e){if(e===xi)throw Error(V(174));return e}function Mi(e,t){switch(d(Ri,t),d(Ci,e),d(ji,xi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Be(null,"");break;default:t=Be(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}u(ji),d(ji,t)}function Ti(){u(ji),u(Ci),u(Ri)}function Di(e){Ai(Ri.current);var t=Ai(ji.current),n=Be(t,e.type);t!==n&&(d(Ci,e),d(ji,n))}function Ii(e){Ci.current===e&&(u(ji),u(Ci))}var O=yo(0);function Li(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t=(t.child.return=t).child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Vi=null,Ni=null,Fi=!1;function Ui(e,t){var n=hs(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function zi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,1);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,1);default:return}}function Bi(e){if(Fi){var t=Ni;if(t){var n=t;if(!zi(e,t)){if(!(t=to(n.nextSibling))||!zi(e,t))return e.flags=-1025&e.flags|2,Fi=!1,void(Vi=e);Ui(Vi,n)}Vi=e,Ni=to(t.firstChild)}else e.flags=-1025&e.flags|2,Fi=!1,Vi=e}}function Hi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Vi=e}function qi(e){if(e===Vi){if(!Fi)return Hi(e),Fi=!0,0;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Qr(t,e.memoizedProps))for(t=Ni;t;)Ui(e,t),t=to(t.nextSibling);if(Hi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(V(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ni=to(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ni=null}}else Ni=Vi?to(e.stateNode.nextSibling):null;return 1}}function Wi(){Ni=Vi=null,Fi=!1}var Ki=[];function Yi(){for(var e=0;e<Ki.length;e++)Ki[e]._workInProgressVersionPrimary=null;Ki.length=0}var Gi=Z.ReactCurrentDispatcher,p=Z.ReactCurrentBatchConfig,$i=0,S=null,E=null,x=null,Ji=!1,Qi=!1;function h(){throw Error(V(321))}function Zi(e,t){if(null!==t){for(var n=0;n<t.length&&n<e.length;n++)if(!y(e[n],t[n]))return;return 1}}function Xi(e,t,n,r,o,i){if($i=i,(S=t).memoizedState=null,t.updateQueue=null,t.lanes=0,Gi.current=null===e||null===e.memoizedState?Sa:Pa,e=n(r,o),Qi){i=0;do{if(Qi=!1,!(i<25))throw Error(V(301))}while(i+=1,x=E=null,t.updateQueue=null,Gi.current=Ea,e=n(r,o),Qi)}if(Gi.current=Oa,t=null!==E&&null!==E.next,$i=0,x=E=S=null,Ji=!1,t)throw Error(V(300));return e}function ea(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===x?S.memoizedState=x=e:x=x.next=e,x}function ta(){e=null===E?null!==(e=S.alternate)?e.memoizedState:null:E.next;var e,t=null===x?S.memoizedState:x.next;if(null!==t)x=t,E=e;else{if(null===e)throw Error(V(310));e={memoizedState:(E=e).memoizedState,baseState:E.baseState,baseQueue:E.baseQueue,queue:E.queue,next:null},null===x?S.memoizedState=x=e:x=x.next=e}return x}function na(e,t){return"function"==typeof t?t(e):t}function ra(e){var t=ta(),n=t.queue;if(null===n)throw Error(V(311));n.lastRenderedReducer=e;var r,o=(a=E).baseQueue,i=n.pending;if(null!==i&&(null!==o&&(r=o.next,o.next=i.next,i.next=r),a.baseQueue=o=i,n.pending=null),null!==o){var o=o.next,a=a.baseState,l=r=i=null,s=o;do{var u,c=s.lane}while(($i&c)===c?(null!==l&&(l=l.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),a=s.eagerReducer===e?s.eagerState:e(a,s.action)):(u={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null},null===l?(r=l=u,i=a):l=l.next=u,S.lanes|=c,wl|=c),null!==(s=s.next)&&s!==o);null===l?i=a:l.next=r,y(a,t.memoizedState)||(ja=!0),t.memoizedState=a,t.baseState=i,t.baseQueue=l,n.lastRenderedState=a}return[t.memoizedState,n.dispatch]}function oa(e){var t=ta(),n=t.queue;if(null===n)throw Error(V(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;for(var a=o=o.next;i=e(i,a.action),(a=a.next)!==o;);y(i,t.memoizedState)||(ja=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ia(e,t,n){var r=(r=t._getVersion)(t._source),o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=($i&e)===e)&&(t._workInProgressVersionPrimary=r,Ki.push(t))),e)return n(t._source);throw Ki.push(t),Error(V(350))}function aa(e,i,a,t){var l=C;if(null===l)throw Error(V(349));var s=i._getVersion,u=s(i._source),n=Gi.current,c=(r=n.useState(function(){return ia(l,i,a)}))[1],f=r[0],r=x,d=(h=e.memoizedState).refs,o=d.getSnapshot,p=h.source,h=h.subscribe,m=S;return e.memoizedState={refs:d,source:i,subscribe:t},n.useEffect(function(){d.getSnapshot=a,d.setSnapshot=c;var e=s(i._source);if(!y(u,e)){e=a(i._source),y(f,e)||(c(e),e=ql(m),l.mutableReadLanes|=e&l.pendingLanes),e=l.mutableReadLanes,l.entangledLanes|=e;for(var t=l.entanglements,n=e;0<n;){var r=31-dn(n),o=1<<r;t[r]|=e,n&=~o}}},[a,i,t]),n.useEffect(function(){return t(i._source,function(){var e=d.getSnapshot,t=d.setSnapshot;try{t(e(i._source));var n=ql(m);l.mutableReadLanes|=n&l.pendingLanes}catch(e){t(function(){throw e})}})},[i,t]),y(o,a)&&y(p,i)&&y(h,t)||((e={pending:null,dispatch:null,lastRenderedReducer:na,lastRenderedState:f}).dispatch=c=_a.bind(null,S,e),r.queue=e,r.baseQueue=null,f=ia(l,i,a),r.memoizedState=r.baseState=f),f}function la(e,t,n){return aa(ta(),e,t,n)}function sa(e){var t=ea();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:na,lastRenderedState:e}).dispatch=_a.bind(null,S,e),[t.memoizedState,e]}function ua(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=S.updateQueue)?(S.updateQueue=t={lastEffect:null}).lastEffect=e.next=e:null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,(n.next=e).next=r,t.lastEffect=e),e}function ca(e){return ea().memoizedState=e={current:e}}function fa(){return ta().memoizedState}function da(e,t,n,r){var o=ea();S.flags|=e,o.memoizedState=ua(1|t,n,void 0,void 0===r?null:r)}function pa(e,t,n,r){var o=ta(),i=(r=void 0===r?null:r,void 0);if(null!==E){var a=E.memoizedState,i=a.destroy;if(null!==r&&Zi(r,a.deps))return void ua(t,n,i,r)}S.flags|=e,o.memoizedState=ua(1|t,n,i,r)}function ha(e,t){return da(516,4,e,t)}function ma(e,t){return pa(516,4,e,t)}function ya(e,t){return pa(4,2,e,t)}function va(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ba(e,t,n){return n=null!=n?n.concat([e]):null,pa(4,2,va.bind(null,t,e),n)}function ga(){}function wa(e,t){var n=ta(),r=(t=void 0===t?null:t,n.memoizedState);return null!==r&&null!==t&&Zi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ka(e,t){var n=ta(),r=(t=void 0===t?null:t,n.memoizedState);return null!==r&&null!==t&&Zi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _a(e,t,n){var r=_(),o=ql(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===S||null!==a&&a===S)Qi=Ji=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var l=t.lastRenderedState,s=a(l,n);if(i.eagerReducer=a,i.eagerState=s,y(s,l))return}catch(e){}Wl(e,o,r)}}var Oa={readContext:w,useCallback:h,useContext:h,useEffect:h,useImperativeHandle:h,useLayoutEffect:h,useMemo:h,useReducer:h,useRef:h,useState:h,useDebugValue:h,useDeferredValue:h,useTransition:h,useMutableSource:h,useOpaqueIdentifier:h,unstable_isNewReconciler:!1},Sa={readContext:w,useCallback:function(e,t){return ea().memoizedState=[e,void 0===t?null:t],e},useContext:w,useEffect:ha,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,da(4,2,va.bind(null,t,e),n)},useLayoutEffect:function(e,t){return da(4,2,e,t)},useMemo:function(e,t){var n=ea();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ea();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=_a.bind(null,S,e),[r.memoizedState,e]},useRef:ca,useState:sa,useDebugValue:ga,useDeferredValue:function(t){var e=sa(t),n=e[0],r=e[1];return ha(function(){var e=p.transition;p.transition=1;try{r(t)}finally{p.transition=e}},[t]),n},useTransition:function(){var e=sa(!1),t=e[0];return ca(e=function(t,n){var e=qo();Ko(e<98?98:e,function(){t(!0)}),Ko(97<e?97:e,function(){var e=p.transition;p.transition=1;try{t(!1),n()}finally{p.transition=e}})}.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ea();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},aa(r,e,t,n)},useOpaqueIdentifier:function(){var e,t,n;return Fi?(e=!1,n={$$typeof:de,toString:n=function(){throw e||(e=!0,t("r:"+(ro++).toString(36))),Error(V(355))},valueOf:n},t=sa(n)[1],0==(2&S.mode)&&(S.flags|=516,ua(5,function(){t("r:"+(ro++).toString(36))},void 0,null))):sa(n="r:"+(ro++).toString(36)),n},unstable_isNewReconciler:!1},Pa={readContext:w,useCallback:wa,useContext:w,useEffect:ma,useImperativeHandle:ba,useLayoutEffect:ya,useMemo:ka,useReducer:ra,useRef:fa,useState:function(){return ra(na)},useDebugValue:ga,useDeferredValue:function(t){var e=ra(na),n=e[0],r=e[1];return ma(function(){var e=p.transition;p.transition=1;try{r(t)}finally{p.transition=e}},[t]),n},useTransition:function(){var e=ra(na)[0];return[fa().current,e]},useMutableSource:la,useOpaqueIdentifier:function(){return ra(na)[0]},unstable_isNewReconciler:!1},Ea={readContext:w,useCallback:wa,useContext:w,useEffect:ma,useImperativeHandle:ba,useLayoutEffect:ya,useMemo:ka,useReducer:oa,useRef:fa,useState:function(){return oa(na)},useDebugValue:ga,useDeferredValue:function(t){var e=oa(na),n=e[0],r=e[1];return ma(function(){var e=p.transition;p.transition=1;try{r(t)}finally{p.transition=e}},[t]),n},useTransition:function(){var e=oa(na)[0];return[fa().current,e]},useMutableSource:la,useOpaqueIdentifier:function(){return oa(na)[0]},unstable_isNewReconciler:!1},xa=Z.ReactCurrentOwner,ja=!1;function k(e,t,n,r){t.child=null===e?Ei(t,null,n,r):Pi(t,e.child,n,r)}function Ca(e,t,n,r,o){n=n.render;var i=t.ref;return ii(t,o),r=Xi(e,t,n,r,i,o),null===e||ja?(t.flags|=1,k(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,Ka(e,t,o))}function Ra(e,t,n,r,o,i){var a;return null===e?"function"!=typeof(a=n.type)||ms(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=vs(n.type,null,r,t,t.mode,i)).ref=t.ref,(e.return=t).child=e):(t.tag=15,t.type=a,Aa(e,t,a,r,o,i)):(a=e.child,0==(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:kr)(o,r)&&e.ref===t.ref)?Ka(e,t,i):(t.flags|=1,(e=ys(a,r)).ref=t.ref,(e.return=t).child=e))}function Aa(e,t,n,r,o,i){if(null!==e&&kr(e.memoizedProps,r)&&e.ref===t.ref){if(ja=!1,0==(i&o))return t.lanes=e.lanes,Ka(e,t,i);0!=(16384&e.flags)&&(ja=!0)}return Da(e,t,n,r,i)}function Ma(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},Zl(0,n);else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Zl(0,e),null;t.memoizedState={baseLanes:0},Zl(0,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Zl(0,r);return k(e,t,o,n),t.child}function Ta(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Da(e,t,n,r,o){var i=go(t,g(n)?bo:v.current);return ii(t,o),n=Xi(e,t,n,r,i,o),null===e||ja?(t.flags|=1,k(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,Ka(e,t,o))}function Ia(e,t,n,r,o){var i,a,l,s,u,c,f,d,p,h;return g(n)?(i=!0,Oo(t)):i=!1,ii(t,o),r=null===t.stateNode?(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),bi(t,n,r),wi(t,n,r,o),!0):null===e?(a=t.stateNode,l=t.memoizedProps,a.props=l,d=a.context,s="object"==typeof(s=n.contextType)&&null!==s?w(s):go(t,s=g(n)?bo:v.current),(c="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||l===r&&d===s||gi(0,a,r,s),ai=!1,f=t.memoizedState,a.state=f,di(t,r,a,o),d=t.memoizedState,l!==r||f!==d||b.current||ai?("function"==typeof u&&(mi(t,0,u,r),d=t.memoizedState),(l=ai||vi(t,n,l,r,f,d,s))?(c||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=s,l):("function"==typeof a.componentDidMount&&(t.flags|=4),!1)):(a=t.stateNode,si(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:Qo(t.type,l),a.props=s,c=t.pendingProps,f=a.context,d="object"==typeof(d=n.contextType)&&null!==d?w(d):go(t,d=g(n)?bo:v.current),(u="function"==typeof(p=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||l===c&&f===d||gi(0,a,r,d),ai=!1,f=t.memoizedState,a.state=f,di(t,r,a,o),h=t.memoizedState,l!==c||f!==h||b.current||ai?("function"==typeof p&&(mi(t,0,p,r),h=t.memoizedState),(s=ai||vi(t,n,s,r,f,h,d))?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,d),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,d)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=d,s):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),!1)),La(e,t,n,r,i,o)}function La(e,t,n,r,o,i){Ta(e,t);var a=0!=(64&t.flags);if(!r&&!a)return o&&So(t,n,!1),Ka(e,t,i);r=t.stateNode,xa.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Pi(t,e.child,null,i),t.child=Pi(t,null,l,i)):k(e,t,l,i),t.memoizedState=r.state,o&&So(t,n,!0),t.child}function Va(e){var t=e.stateNode;t.pendingContext?ko(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ko(0,t.context,!1),Mi(e,t.containerInfo)}var Na={dehydrated:null,retryLane:0};function Fa(e,t,n){var r,o=t.pendingProps,i=O.current,a=!1;return(r=(r=0!=(64&t.flags))?r:(null===e||null!==e.memoizedState)&&0!=(2&i))?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),d(O,1&i),null===e?(void 0!==o.fallback&&Bi(t),e=o.children,i=o.fallback,a?(e=Ua(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Na,e):"number"==typeof o.unstable_expectedLoadTime?(e=Ua(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Na,t.lanes=33554432,e):((n=gs({mode:"visible",children:e},t.mode,n,null)).return=t).child=n):(e.memoizedState,a?(o=Ba(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Na,o):(n=za(e,t,o.children,n),t.memoizedState=null,n))}function Ua(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0==(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=gs(t,o,0,null),n=bs(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function za(e,t,n,r){var o=e.child;return e=o.sibling,n=ys(o,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,(n.sibling=null)!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Ba(e,t,n,r,o){var i=t.mode,a=e.child,l=(e=a.sibling,{mode:"hidden",children:n});return 0==(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=l,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,(t.lastEffect=a).nextEffect=null):t.firstEffect=t.lastEffect=null):n=ys(a,l),null!==e?r=ys(e,r):(r=bs(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Ha(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),oi(e.return,t)}function qa(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function Wa(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(k(e,t,r.children,n),0!=(2&(r=O.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ha(e,n);else if(19===e.tag)Ha(e,n);else if(null!==e.child){e=(e.child.return=e).child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(d(O,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Li(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),qa(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(o=t.child,t.child=n=null;null!==o;){if(null!==(e=o.alternate)&&null===Li(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}qa(t,!0,n,null,i,t.lastEffect);break;case"together":qa(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ka(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),wl|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(V(153));if(null!==t.child){for(n=ys(e=t.child,e.pendingProps),(t.child=n).return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ys(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ya(e,t){if(!Fi)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":for(var n=e.tail,r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ga(e,t){try{for(var n="",r=t;n+=function(e){switch(e.tag){case 5:return be(e.type);case 16:return be("Lazy");case 13:return be("Suspense");case 19:return be("SuspenseList");case 0:case 2:case 15:return e=we(e.type,!1);case 11:return e=we(e.type.render,!1);case 22:return e=we(e.type._render,!1);case 1:return e=we(e.type,!0);default:return""}}(r),r=r.return;);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o}}function $a(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Ja=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n=(n.child.return=n).child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Qa=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ai(ji.current);var i,a=null;switch(n){case"input":o=xe(e,o),r=xe(e,r),a=[];break;case"option":o=Te(e,o),r=Te(e,r),a=[];break;case"select":o=m({},o,{value:void 0}),r=m({},r,{value:void 0}),a=[];break;case"textarea":o=Ie(e,o),r=Ie(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Yr)}for(u in Ze(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n=n||{},n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(U.hasOwnProperty(u)?a=a||[]:(a=a||[]).push(u,null));for(u in r){var s=r[u],l=null!=o?o[u]:void 0;if(r.hasOwnProperty(u)&&s!==l&&(null!=s||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n=n||{},n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n=n||{},n[i]=s[i])}else n||(a=a||[]).push(u,n),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(a=a||[]).push(u,s)):"children"===u?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(U.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&c("scroll",e),a||l===s||(a=[])):"object"==typeof s&&null!==s&&s.$$typeof===de?s.toString():(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Za=function(e,t,n,r){n!==r&&(t.flags|=4)},Xa="function"==typeof WeakMap?WeakMap:Map;function el(e,t,n){(n=ui(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){jl||(jl=!0,Cl=r),$a(0,t)},n}function tl(e,t,n){(n=ui(-1,n)).tag=3;var r,o=e.type.getDerivedStateFromError,e=("function"==typeof o&&(r=t.value,n.payload=function(){return $a(0,t),o(r)}),e.stateNode);return null!==e&&"function"==typeof e.componentDidCatch&&(n.callback=function(){"function"!=typeof o&&(null===Rl?Rl=new Set([this]):Rl.add(this),$a(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var nl="function"==typeof WeakSet?WeakSet:Set;function rl(t){var e=t.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){fs(t,e)}else e.current=null}function ol(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{}while(3==(3&e.tag)&&(o=e.create,e.destroy=o()),(e=e.next)!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var r=e,o=r.next;0!=(4&(r=r.tag))&&0!=(1&r)&&(ss(n,e),r=n,i=e,Dl.push(i,r),Al||(Al=!0,Yo(97,function(){return ls(),null}))),e=o}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(o=n.elementType===n.type?t.memoizedProps:Qo(n.type,t.memoizedProps),e.componentDidUpdate(o,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&pi(0,t,e));case 3:if(null!==(t=n.updateQueue)){if((e=null)!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}pi(0,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Jr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(null!==(n=n.alternate)&&(null!==(n=n.memoizedState)&&(null!==(n=n.dehydrated)&&Wt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}var i;throw Error(V(163))}function il(e,t){for(var n=e;;){if(5===n.tag){var r,o=n.stateNode;t?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=n.stateNode,r=null!=(r=n.memoizedProps.style)&&r.hasOwnProperty("display")?r.display:null,o.style.display=$e("display",r))}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n=(n.child.return=n).child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function al(e,t){if(Eo&&"function"==typeof Eo.onCommitFiberUnmount)try{Eo.onCommitFiberUnmount(Po,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=(o=n).destroy,o=o.tag;if(void 0!==r)if(0!=(4&o))ss(t,n);else{o=t;try{r()}catch(e){fs(o,e)}}}while((n=n.next)!==e)}break;case 1:if(rl(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){fs(t,e)}break;case 5:rl(t);break;case 4:cl(e,t)}}function ll(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ul(e){e:{for(var t=e.return;null!==t;){if(sl(t))break e;t=t.return}throw Error(V(160))}var n=t,t=n.stateNode;switch(n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(V(161))}16&n.flags&&(Ke(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||sl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n=(n.child.return=n).child}if(!(2&n.flags)){n=n.stateNode;break e}}(r?function e(t,n,r){var o=t.tag,i=5===o||6===o;if(i)t=i?t.stateNode:t.stateNode.instance,n?(8===r.nodeType?r.parentNode:r).insertBefore(t,n):(8===r.nodeType?(n=r.parentNode,n.insertBefore(t,r)):(n=r,n.appendChild(t)),r=r._reactRootContainer,null==r&&null===n.onclick&&(n.onclick=Yr));else if(4!==o&&(t=t.child,null!==t))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}:function e(t,n,r){var o=t.tag,i=5===o||6===o;if(i)t=i?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==o&&(t=t.child,null!==t))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling})(e,n,t)}function cl(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(V(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var a=e,l=o,s=l;;)if(al(a,s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===l)break;for(;null===s.sibling;){if(null===s.return||s.return===l)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}r?(a=n,l=o.stateNode,(8===a.nodeType?a.parentNode:a).removeChild(l)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o=(o.child.return=o).child;continue}}else if(al(e,o),null!==o.child){o=(o.child.return=o).child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function fl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null))for(var r=n=n.next;3==(3&r.tag)&&(e=r.destroy,(r.destroy=void 0)!==e&&e()),(r=r.next)!==n;);return;case 1:return;case 5:if(null!=(n=t.stateNode)){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r,i=(e=t.type,t.updateQueue);if((t.updateQueue=null)!==i){for(n[io]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ce(n,r),Xe(e,o),t=Xe(e,r),o=0;o<i.length;o+=2){var a=i[o],l=i[o+1];"style"===a?Je(n,l):"dangerouslySetInnerHTML"===a?We(n,l):"children"===a?Ke(n,l):J(n,a,l,t)}switch(e){case"input":Re(n,r);break;case"textarea":Ve(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?De(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?De(n,!!r.multiple,r.defaultValue,!0):De(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(V(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Wt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Sl=P(),il(t.child,!0)),void dl(t);case 19:return void dl(t);case 17:return;case 23:case 24:return void il(t,null!==t.memoizedState)}throw Error(V(163))}function dl(n){var r,e=n.updateQueue;null!==e&&((n.updateQueue=null)===(r=n.stateNode)&&(r=n.stateNode=new nl),e.forEach(function(e){var t=function(e,t){var n=e.stateNode;null!==n&&n.delete(t),(t=0)===t&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===qo()?1:2:0===(t=un(62914560&~(Ul=0===Ul?gl:Ul)))&&(t=4194304)),n=_(),null!==(e=Kl(e,t))&&(fn(e,t,n),D(e,n))}.bind(null,n,e);r.has(e)||(r.add(e),e.then(t,t))}))}var pl=Math.ceil,hl=Z.ReactCurrentDispatcher,ml=Z.ReactCurrentOwner,j=0,C=null,R=null,A=0,yl=0,vl=yo(0),M=0,bl=null,gl=0,wl=0,kl=0,_l=0,Ol=null,Sl=0,Pl=1/0;function El(){Pl=P()+500}var xl,T=null,jl=!1,Cl=null,Rl=null,Al=!1,Ml=null,Tl=90,Dl=[],Il=[],Ll=null,Vl=0,Nl=null,Fl=-1,Ul=0,zl=0,Bl=null,Hl=!1;function _(){return 0!=(48&j)?P():-1!==Fl?Fl:Fl=P()}function ql(e){return 0==(2&(e=e.mode))?1:0==(4&e)?99===qo()?1:2:(0===Ul&&(Ul=gl),0!==Jo.transition?(0!==zl&&(zl=null!==Ol?Ol.pendingLanes:0),e=Ul,t=4186112&~zl,0!==(t&=-t)||0===(t=(e=4186112&~e)&-e)&&(t=8192),t):(e=qo(),0!=(4&j)&&98===e?sn(12,Ul):sn(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),Ul)));var t}function Wl(e,t,n){if(50<Vl)throw Vl=0,Nl=null,Error(V(185));var r;null!==(e=Kl(e,t))&&(fn(e,t,n),e===C&&(kl|=t,4===M&&Gl(e,A)),r=qo(),1===t?0!=(8&j)&&0==(48&j)?$l(e):(D(e,n),0===j&&(El(),Go())):(0==(4&j)||98!==r&&99!==r||(null===Ll?Ll=new Set([e]):Ll.add(e)),D(e,n)),Ol=e)}function Kl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),e=(n=e).return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),e=(n=e).return;return 3===n.tag?n.stateNode:null}function D(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var l,s=31-dn(a),u=1<<s,c=i[s];-1===c?0!=(u&r)&&0==(u&o)||(c=t,on(u),l=f,i[s]=10<=l?c+250:6<=l?c+5e3:-1):c<=t&&(e.expiredLanes|=u),a&=~u}if(r=an(e,e===C?A:0),t=f,0===r)null!==n&&(n!==No&&Co(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==No&&Co(n)}n=15===t?(n=$l.bind(null,e),null===Uo?(Uo=[n],zo=jo(To,$o)):Uo.push(n),No):14===t?Yo(99,$l.bind(null,e)):Yo(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(V(358,e))}}(t),Yl.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function Yl(t){if(Fl=-1,(zl=Ul=0)!=(48&j))throw Error(V(327));var e=t.callbackNode;if(ls()&&t.callbackNode!==e)return null;var n=an(t,t===C?A:0);if(0===n)return null;var r=n,o=j,i=(j|=16,ns());for(C===t&&A===r||(El(),es(t,r));;)try{for(;null!==R&&!Ro();)os(R);break}catch(e){ts(t,e)}if(ni(),hl.current=i,j=o,r=null!==R?0:(C=null,A=0,M),0!=(gl&kl))es(t,0);else if(0!==r){if(2===r&&(j|=64,t.hydrate&&(t.hydrate=!1,eo(t.containerInfo)),0!==(n=ln(t))&&(r=rs(t,n))),1===r)throw e=bl,es(t,0),Gl(t,n),D(t,P()),e;switch(t.finishedWork=t.current.alternate,t.finishedLanes=n,r){case 0:case 1:throw Error(V(345));case 2:as(t);break;case 3:if(Gl(t,n),(62914560&n)===n&&10<(r=Sl+500-P())){if(0!==an(t,0))break;if(((o=t.suspendedLanes)&n)!==n){_(),t.pingedLanes|=t.suspendedLanes&o;break}t.timeoutHandle=Zr(as.bind(null,t),r);break}as(t);break;case 4:if(Gl(t,n),(4186112&n)===n)break;for(r=t.eventTimes,o=-1;0<n;){var a=31-dn(n),i=1<<a;o<(a=r[a])&&(o=a),n&=~i}if(n=o,10<(n=((n=P()-n)<120?120:n<480?480:n<1080?1080:n<1920?1920:n<3e3?3e3:n<4320?4320:1960*pl(n/1960))-n)){t.timeoutHandle=Zr(as.bind(null,t),n);break}as(t);break;case 5:as(t);break;default:throw Error(V(329))}}return D(t,P()),t.callbackNode===e?Yl.bind(null,t):null}function Gl(e,t){for(t=t&~_l&~kl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-dn(t),r=1<<n;e[n]=-1,t&=~r}}function $l(e){if(0!=(48&j))throw Error(V(327));var t,n;if(ls(),e===C&&0!=(e.expiredLanes&A)?(n=rs(e,t=A),0!=(gl&kl)&&(n=rs(e,t=an(e,t)))):n=rs(e,t=an(e,0)),0!==e.tag&&2===n&&(j|=64,e.hydrate&&(e.hydrate=!1,eo(e.containerInfo)),0!==(t=ln(e))&&(n=rs(e,t))),1===n)throw n=bl,es(e,0),Gl(e,t),D(e,P()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,as(e),D(e,P()),null}function Jl(e,t){var n=j;j|=1;try{return e(t)}finally{0===(j=n)&&(El(),Go())}}function Ql(e,t){var n=j;j=-2&j|8;try{e(t)}finally{0===(j=n)&&(El(),Go())}}function Zl(e,t){d(vl,yl),yl|=t,gl|=t}function Xl(){yl=vl.current,u(vl)}function es(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Xr(n)),null!==R)for(n=R.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&wo();break;case 3:Ti(),u(b),u(v),Yi();break;case 5:Ii(r);break;case 4:Ti();break;case 13:case 19:u(O);break;case 10:ri(r);break;case 23:case 24:Xl()}n=n.return}R=ys((C=e).current,null),A=yl=gl=t,bl=null,_l=kl=wl=M=0}function ts(e,t){do{var n=R;try{if(ni(),Gi.current=Oa,Ji){for(var r=S.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Ji=!1}if($i=0,x=E=S=null,Qi=!1,(ml.current=null)===n||null===n.return){M=1,bl=t,R=null;break}e:{var i=e,a=n.return,l=t;if(t=A,(g=n).flags|=2048,(g.firstEffect=g.lastEffect=null)!==l&&"object"==typeof l&&"function"==typeof l.then){var s,u,c,f,d=l,p=(0==(2&g.mode)&&((s=g.alternate)?(g.updateQueue=s.updateQueue,g.memoizedState=s.memoizedState,g.lanes=s.lanes):(g.updateQueue=null,g.memoizedState=null)),0!=(1&O.current)),h=a;do{if(f=(f=13===h.tag)?null!==(u=h.memoizedState)?null!==u.dehydrated:void 0!==(c=h.memoizedProps).fallback&&(!0!==c.unstable_avoidThisFallback||!p):f){var m,y,v=h.updateQueue;if(null===v?((m=new Set).add(d),h.updateQueue=m):v.add(d),0==(2&h.mode)){h.flags|=64,g.flags|=16384,g.flags&=-2981,1===g.tag&&(null===g.alternate?g.tag=17:((y=ui(-1,1)).tag=2,ci(g,y))),g.lanes|=1;break e}var b,l=void 0,g=t,w=i.pingCache;null===w?(w=i.pingCache=new Xa,l=new Set,w.set(d,l)):void 0===(l=w.get(d))&&(l=new Set,w.set(d,l)),l.has(g)||(l.add(g),b=ds.bind(null,i,d,g),d.then(b,b)),h.flags|=4096,h.lanes=t;break e}}while(null!==(h=h.return));l=Error((ke(g.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==M&&(M=2),l=Ga(l,g),h=a;do{switch(h.tag){case 3:i=l;h.flags|=4096,t&=-t,h.lanes|=t,fi(h,el(0,i,t));break e;case 1:i=l;var k=h.type,_=h.stateNode;if(0==(64&h.flags)&&("function"==typeof k.getDerivedStateFromError||null!==_&&"function"==typeof _.componentDidCatch&&(null===Rl||!Rl.has(_)))){h.flags|=4096,t&=-t,h.lanes|=t,fi(h,tl(h,i,t));break e}}}while(null!==(h=h.return))}is(n)}catch(e){t=e,R===n&&null!==n&&(R=n=n.return);continue}break}while(1)}function ns(){var e=hl.current;return hl.current=Oa,null===e?Oa:e}function rs(t,e){var n=j,r=(j|=16,ns());for(C===t&&A===e||es(t,e);;)try{for(;null!==R;)os(R);break}catch(e){ts(t,e)}if(ni(),j=n,hl.current=r,null!==R)throw Error(V(261));return C=null,A=0,M}function os(e){var t=xl(e.alternate,e,yl);e.memoizedProps=e.pendingProps,null===t?is(e):R=t,ml.current=null}function is(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=function(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return g(t.type)&&wo(),null;case 3:return Ti(),u(b),u(v),Yi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(qi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ii(t);var o=Ai(Ri.current);if(n=t.type,null!==e&&null!=t.stateNode)Qa(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(V(166));return null}if(e=Ai(ji.current),qi(t)){r=t.stateNode,n=t.type;var i,a=t.memoizedProps;switch(r[oo]=t,r[io]=a,n){case"dialog":c("cancel",r),c("close",r);break;case"iframe":case"object":case"embed":c("load",r);break;case"video":case"audio":for(e=0;e<Dr.length;e++)c(Dr[e],r);break;case"source":c("error",r);break;case"img":case"image":case"link":c("error",r),c("load",r);break;case"details":c("toggle",r);break;case"input":je(r,a),c("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},c("invalid",r);break;case"textarea":Le(r,a),c("invalid",r)}for(i in Ze(n,a),e=null,a)a.hasOwnProperty(i)&&(o=a[i],"children"===i?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):U.hasOwnProperty(i)&&null!=o&&"onScroll"===i&&c("scroll",r));switch(n){case"input":Se(r),Ae(r,a,!0);break;case"textarea":Se(r),Ne(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Yr)}r=e,null!==(t.updateQueue=r)&&(t.flags|=4)}else{switch(i=9===o.nodeType?o:o.ownerDocument,(e=e===Fe?ze(n):e)===Fe?"script"===n?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),"select"===n&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[oo]=t,e[io]=r,Ja(e,t),t.stateNode=e,i=Xe(n,r),n){case"dialog":c("cancel",e),c("close",e),o=r;break;case"iframe":case"object":case"embed":c("load",e),o=r;break;case"video":case"audio":for(o=0;o<Dr.length;o++)c(Dr[o],e);o=r;break;case"source":c("error",e),o=r;break;case"img":case"image":case"link":c("error",e),c("load",e),o=r;break;case"details":c("toggle",e),o=r;break;case"input":je(e,r),o=xe(e,r),c("invalid",e);break;case"option":o=Te(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=m({},r,{value:void 0}),c("invalid",e);break;case"textarea":Le(e,r),o=Ie(e,r),c("invalid",e);break;default:o=r}Ze(n,o);var l,s=o;for(a in s)s.hasOwnProperty(a)&&(l=s[a],"style"===a?Je(e,l):"dangerouslySetInnerHTML"===a?null!=(l=l?l.__html:void 0)&&We(e,l):"children"===a?"string"==typeof l?"textarea"===n&&""===l||Ke(e,l):"number"==typeof l&&Ke(e,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(U.hasOwnProperty(a)?null!=l&&"onScroll"===a&&c("scroll",e):null!=l&&J(e,a,l,i)));switch(n){case"input":Se(e),Ae(e,r,!1);break;case"textarea":Se(e),Ne(e);break;case"option":null!=r.value&&e.setAttribute("value",""+_e(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?De(e,!!r.multiple,a,!1):null!=r.defaultValue&&De(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Yr)}Jr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Za(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(V(166));n=Ai(Ri.current),Ai(ji.current),qi(t)?(r=t.stateNode,n=t.memoizedProps,r[oo]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[oo]=t).stateNode=r}return null;case 13:return(u(O),r=t.memoizedState,0!=(64&t.flags))?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&qi(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&O.current)?0===M&&(M=3):(0!==M&&3!==M||(M=4),null===C||0==(134217727&wl)&&0==(134217727&kl)||Gl(C,A))),(r||n)&&(t.flags|=4),null);case 4:return Ti(),null===e&&Fr(t.stateNode.containerInfo),null;case 10:return ri(t),null;case 17:return g(t.type)&&wo(),null;case 19:if(u(O),null===(r=t.memoizedState))return null;if(a=0!=(64&t.flags),null===(i=r.rendering))if(a)Ya(r,!1);else{if(0!==M||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(i=Li(e))){for(t.flags|=64,Ya(r,!1),null!==(a=i.updateQueue)&&(t.updateQueue=a,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=2,a.nextEffect=null,a.firstEffect=null,(a.lastEffect=null)===(i=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return d(O,1&O.current|2),t.child}e=e.sibling}null!==r.tail&&P()>Pl&&(t.flags|=64,Ya(r,!(a=!0)),t.lanes=33554432)}else{if(!a)if(null!==(e=Li(i))){if(t.flags|=64,a=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ya(r,!0),null===r.tail&&"hidden"===r.tailMode&&!i.alternate&&!Fi)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*P()-r.renderingStartTime>Pl&&1073741824!==n&&(t.flags|=64,Ya(r,!(a=!0)),t.lanes=33554432);r.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=r.last)?n.sibling=i:t.child=i,r.last=i)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=P(),n.sibling=null,t=O.current,d(O,a?1&t|2:1&t),n):null;case 23:case 24:return Xl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(V(156,t.tag))}(n,t,yl)))return void(R=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&yl)||0==(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=function(e){switch(e.tag){case 1:g(e.type)&&wo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ti(),u(b),u(v),Yi(),0!=(64&(t=e.flags)))throw Error(V(285));return e.flags=-4097&t|64,e;case 5:return Ii(e),null;case 13:return u(O),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return u(O),null;case 4:return Ti(),null;case 10:return ri(e),null;case 23:case 24:return Xl(),null;default:return null}}(t)))return n.flags&=2047,void(R=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(R=t)}while(R=t=e,null!==t);0===M&&(M=5)}function as(e){var t=qo();return Ko(99,function(e,t){for(;ls(),null!==Ml;);if(0!=(48&j))throw Error(V(327));var n=e.finishedWork;if(null!==n){if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(V(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var a=e.eventTimes,l=e.expirationTimes;0<i;){var s=31-dn(i),u=1<<s;o[s]=0,a[s]=-1,l[s]=-1,i&=~u}if(null!==Ll&&0==(24&r)&&Ll.has(e)&&Ll.delete(e),e===C&&(R=C=null,A=0),null!==(r=1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n).firstEffect:n:n.firstEffect)){if(o=j,j|=32,ml.current=null,Gr=vn,Pr(a=Sr())){if("selectionStart"in a)l={start:a.selectionStart,end:a.selectionEnd};else e:if(l=(l=a.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,i=u.anchorOffset,s=u.focusNode,u=u.focusOffset;try{l.nodeType,s.nodeType}catch(e){l=null;break e}var c,f=0,d=-1,p=-1,h=0,m=0,y=a,v=null;t:for(;;){for(;y!==l||0!==i&&3!==y.nodeType||(d=f+i),y!==s||0!==u&&3!==y.nodeType||(p=f+u),3===y.nodeType&&(f+=y.nodeValue.length),null!==(c=y.firstChild);)v=y,y=c;for(;;){if(y===a)break t;if(v===l&&++h===i&&(d=f),v===s&&++m===u&&(p=f),null!==(c=y.nextSibling))break;v=(y=v).parentNode}y=c}l=-1===d||-1===p?null:{start:d,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;Bl=null,Hl=vn=!($r={focusedElem:a,selectionRange:l}),T=r;do{try{!function(){for(;null!==T;){var e=T.alternate,t=(Hl||null===Bl||(0!=(8&T.flags)?Pt(T,Bl)&&(Hl=!0):13===T.tag&&function(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}(e,T)&&Pt(T,Bl)&&(Hl=!0)),T.flags);0!=(256&t)&&function(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:var n,r;return 256&t.flags&&null!==e&&(n=e.memoizedProps,r=e.memoizedState,t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Qo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t);case 3:return 256&t.flags&&eo(t.stateNode.containerInfo);case 5:case 6:case 4:case 17:return}throw Error(V(163))}(e,T),0==(512&t)||Al||(Al=!0,Yo(97,function(){return ls(),null})),T=T.nextEffect}}()}catch(e){if(null===T)throw Error(V(330));fs(T,e),T=T.nextEffect}}while(null!==T);Bl=null,T=r;do{try{for(a=e;null!==T;){var b,g,w=T.flags;switch(16&w&&Ke(T.stateNode,""),128&w&&null!==(b=T.alternate)&&null!==(g=b.ref)&&("function"==typeof g?g(null):g.current=null),1038&w){case 2:ul(T),T.flags&=-3;break;case 6:ul(T),T.flags&=-3,fl(T.alternate,T);break;case 1024:T.flags&=-1025;break;case 1028:T.flags&=-1025,fl(T.alternate,T);break;case 4:fl(T.alternate,T);break;case 8:cl(a,l=T);var k=l.alternate;ll(l),null!==k&&ll(k)}T=T.nextEffect}}catch(e){if(null===T)throw Error(V(330));fs(T,e),T=T.nextEffect}}while(null!==T);if(g=$r,b=Sr(),w=g.focusedElem,a=g.selectionRange,b!==w&&w&&w.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(w.ownerDocument.documentElement,w)){null!==a&&Pr(w)&&(b=a.start,void 0===(g=a.end)&&(g=b),"selectionStart"in w?(w.selectionStart=b,w.selectionEnd=Math.min(g,w.value.length)):(g=(b=w.ownerDocument||document)&&b.defaultView||window).getSelection&&(g=g.getSelection(),l=w.textContent.length,k=Math.min(a.start,l),a=void 0===a.end?k:Math.min(a.end,l),!g.extend&&a<k&&(l=a,a=k,k=l),l=Or(w,k),i=Or(w,a),l&&i&&(1!==g.rangeCount||g.anchorNode!==l.node||g.anchorOffset!==l.offset||g.focusNode!==i.node||g.focusOffset!==i.offset)&&((b=b.createRange()).setStart(l.node,l.offset),g.removeAllRanges(),a<k?(g.addRange(b),g.extend(i.node,i.offset)):(b.setEnd(i.node,i.offset),g.addRange(b))))),b=[];for(g=w;g=g.parentNode;)1===g.nodeType&&b.push({element:g,left:g.scrollLeft,top:g.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<b.length;w++)(g=b[w]).element.scrollLeft=g.left,g.element.scrollTop=g.top}vn=!!Gr,$r=Gr=null,e.current=n,T=r;do{try{for(w=e;null!==T;){var _,O,S=T.flags;36&S&&ol(w,T.alternate,T),128&S&&(b=void 0,null!==(_=T.ref)&&(O=T.stateNode,T.tag,b=O,"function"==typeof _?_(b):_.current=b)),T=T.nextEffect}}catch(e){if(null===T)throw Error(V(330));fs(T,e),T=T.nextEffect}}while(null!==T);T=null,Fo(),j=o}else e.current=n;if(Al)Al=!1,Ml=e,Tl=t;else for(T=r;null!==T;)t=T.nextEffect,T.nextEffect=null,8&T.flags&&((S=T).sibling=null,S.stateNode=null),T=t;if(0===(r=e.pendingLanes)&&(Rl=null),1===r?e===Nl?Vl++:(Vl=0,Nl=e):Vl=0,n=n.stateNode,Eo&&"function"==typeof Eo.onCommitFiberRoot)try{Eo.onCommitFiberRoot(Po,n,void 0,64==(64&n.current.flags))}catch(e){}if(D(e,P()),jl)throw jl=!1,e=Cl,Cl=null,e;0==(8&j)&&Go()}return null}.bind(null,e,t)),null}function ls(){var e;return 90!==Tl&&(e=97<Tl?97:Tl,Tl=90,Ko(e,us))}function ss(e,t){Il.push(t,e),Al||(Al=!0,Yo(97,function(){return ls(),null}))}function us(){if(null===Ml)return!1;var e=Ml;if(Ml=null,0!=(48&j))throw Error(V(331));var t=j,n=(j|=32,Il);Il=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],a=o.destroy;if(o.destroy=void 0,"function"==typeof a)try{a()}catch(e){if(null===i)throw Error(V(330));fs(i,e)}}for(n=Dl,Dl=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var l=o.create;o.destroy=l()}catch(e){if(null===i)throw Error(V(330));fs(i,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return j=t,Go(),!0}function cs(e,t,n){ci(e,t=el(0,t=Ga(n,t),1)),t=_(),null!==(e=Kl(e,1))&&(fn(e,1,t),D(e,t))}function fs(e,t){if(3===e.tag)cs(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){cs(n,e,t);break}if(1===n.tag){var r,o=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&(null===Rl||!Rl.has(o))){if(ci(n,tl(n,e=Ga(t,e),1)),r=_(),null!==(n=Kl(n,1)))fn(n,1,r),D(n,r);else if("function"==typeof o.componentDidCatch&&(null===Rl||!Rl.has(o)))try{o.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function ds(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=_(),e.pingedLanes|=e.suspendedLanes&n,C===e&&(A&n)===n&&(4===M||3===M&&(62914560&A)===A&&P()-Sl<500?es(e,0):_l|=n),D(e,t)}function ps(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function hs(e,t,n,r){return new ps(e,t,n,r)}function ms(e){return(e=e.prototype)&&e.isReactComponent}function ys(e,t){var n=e.alternate;return null===n?((n=hs(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,(n.alternate=e).alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function vs(e,t,n,r,o,i){var a=2;if("function"==typeof(r=e))ms(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case te:return bs(n.children,o,i,t);case pe:a=8,o|=16;break;case ne:a=8,o|=1;break;case re:return(e=hs(12,n,t,8|o)).elementType=re,e.type=re,e.lanes=i,e;case le:return(e=hs(13,n,t,o)).type=le,e.elementType=le,e.lanes=i,e;case se:return(e=hs(19,n,t,o)).elementType=se,e.lanes=i,e;case he:return gs(n,o,i,t);case me:return(e=hs(24,n,t,o)).elementType=me,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case oe:a=10;break e;case ie:a=9;break e;case ae:a=11;break e;case ue:a=14;break e;case ce:a=16,r=null;break e;case fe:a=22;break e}throw Error(V(130,null==e?e:typeof e,""))}return(t=hs(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function bs(e,t,n,r){return(e=hs(7,e,r,t)).lanes=n,e}function gs(e,t,n,r){return(e=hs(23,e,r,t)).elementType=he,e.lanes=n,e}function ws(e,t,n){return(e=hs(6,e,null,t)).lanes=n,e}function ks(e,t,n){return(t=hs(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _s(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=cn(0),this.expirationTimes=cn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cn(0),this.mutableSourceEagerHydrationData=null}function Os(e,t,n,r){var o=t.current,i=_(),a=ql(o);e:if(n){t:{if(kt(n=n._reactInternals)!==n||1!==n.tag)throw Error(V(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(g(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}}while(null!==(l=l.return));throw Error(V(171))}if(1===n.tag){var s=n.type;if(g(s)){n=_o(n,s,l);break e}}n=l}else n=vo;null===t.context?t.context=n:t.pendingContext=n,(t=ui(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ci(o,t),Wl(o,a,i)}function Ss(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ps(e,t){var n;null!==(e=e.memoizedState)&&null!==e.dehydrated&&(n=e.retryLane,e.retryLane=0!==n&&n<t?n:t)}function Es(e,t){Ps(e,t),(e=e.alternate)&&Ps(e,t)}function xs(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new _s(e,t,null!=n&&!0===n.hydrate),t=hs(3,null,null,2===t?7:1===t?3:0),(n.current=t).stateNode=n,li(t),e[ao]=n.current,Fr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(o=(t=r[e])._getVersion)(t._source);null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function js(e){return e&&(1===e.nodeType||9===e.nodeType||11===e.nodeType||8===e.nodeType&&" react-mount-point-unstable "===e.nodeValue)}function Cs(e,t,n,r,o){var i,a,l,s=n._reactRootContainer;return s?(l=s._internalRoot,"function"==typeof o&&(i=o,o=function(){var e=Ss(l);i.call(e)}),Os(t,l,e,o)):(l=(s=n._reactRootContainer=function(e,t){if(!(t=t?t:!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))))for(var n;n=e.lastChild;)e.removeChild(n);return new xs(e,0,t?{hydrate:!0}:void 0)}(n,r))._internalRoot,"function"==typeof o&&(a=o,o=function(){var e=Ss(l);a.call(e)}),Ql(function(){Os(t,l,e,o)})),Ss(l)}function Rs(e,t){if(js(t))return function(e,t,n,r){return{$$typeof:ee,key:null==(r=3<arguments.length&&void 0!==r?r:null)?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null);throw Error(V(200))}xl=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||b.current)ja=!0;else{if(0==(n&r)){switch(ja=!1,t.tag){case 3:Va(t),Wi();break;case 5:Di(t);break;case 1:g(t.type)&&Oo(t);break;case 4:Mi(t,t.stateNode.containerInfo);break;case 10:var r=t.memoizedProps.value,o=t.type._context;d(Zo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Fa(e,t,n):(d(O,1&O.current),null!==(t=Ka(e,t,n))?t.sibling:null);d(O,1&O.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Wa(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),d(O,O.current),r)break;return null;case 23:case 24:return t.lanes=0,Ma(e,t,n)}return Ka(e,t,n)}ja=0!=(16384&e.flags)}else ja=!1;switch(t.lanes=0,t.tag){case 2:return r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=go(t,v.current),ii(t,n),o=Xi(null,t,r,e,o,n),t.flags|=1,t="object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,g(r)?(i=!0,Oo(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,li(t),"function"==typeof(s=r.getDerivedStateFromProps)&&mi(t,0,s,e),o.updater=yi,wi((t.stateNode=o)._reactInternals=t,r,e,n),La(null,t,r,!0,i,n)):(t.tag=0,k(null,t,o,n),t.child);case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return ms(e)?1:0;if(null!=e){if((e=e.$$typeof)===ae)return 11;if(e===ue)return 14}return 2}(o),e=Qo(o,e),i){case 0:t=Da(null,t,o,e,n);break e;case 1:t=Ia(null,t,o,e,n);break e;case 11:t=Ca(null,t,o,e,n);break e;case 14:t=Ra(null,t,o,Qo(o.type,e),r,n);break e}throw Error(V(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Da(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ia(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 3:if(Va(t),r=t.updateQueue,null===e||null===r)throw Error(V(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,si(e,t),di(t,r,null,n),(r=t.memoizedState.element)===o)Wi(),t=Ka(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(Ni=to(t.stateNode.containerInfo.firstChild),Vi=t,i=Fi=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],Ki.push(i);for(n=Ei(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else k(e,t,r,n),Wi();t=t.child}return t;case 5:return Di(t),null===e&&Bi(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,Qr(r,o)?s=null:null!==i&&Qr(r,i)&&(t.flags|=16),Ta(e,t),k(e,t,s,n),t.child;case 6:return null===e&&Bi(t),null;case 13:return Fa(e,t,n);case 4:return Mi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Pi(t,null,r,n):k(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ca(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 7:return k(e,t,t.pendingProps,n),t.child;case 8:case 12:return k(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps;var i=o.value,a=t.type._context;if(d(Zo,a._currentValue),a._currentValue=i,null!==s)if(a=s.value,0===(i=y(a,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(a,i):1073741823))){if(s.children===o.children&&!b.current){t=Ka(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l)for(var s=a.child,u=l.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&i)){1===a.tag&&((u=ui(-1,n&-n)).tag=2,ci(a,u)),a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),oi(a.return,n),l.lanes|=n;break}u=u.next}else s=10===a.tag&&a.type===t.type?null:a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}k(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ii(t,n),r=r(o=w(o,i.unstable_observedBits)),t.flags|=1,k(e,t,r,n),t.child;case 14:return i=Qo(o=t.type,t.pendingProps),Ra(e,t,o,i=Qo(o.type,i),r,n);case 15:return Aa(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,g(r)?(e=!0,Oo(t)):e=!1,ii(t,n),bi(t,r,o),wi(t,r,o,n),La(null,t,r,!0,e,n);case 19:return Wa(e,t,n);case 23:case 24:return Ma(e,t,n)}throw Error(V(156,t.tag))},xs.prototype.render=function(e){Os(e,this._internalRoot,null,null)},xs.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Os(null,e,null,function(){t[ao]=null})},Et=function(e){13===e.tag&&(Wl(e,4,_()),Es(e,4))},xt=function(e){13===e.tag&&(Wl(e,67108864,_()),Es(e,67108864))},jt=function(e){var t,n;13===e.tag&&(t=_(),Wl(e,n=ql(e),t),Es(e,n))},tt=function(e,t,n){switch(t){case"input":if(Re(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=fo(r);if(!o)throw Error(V(90));Pe(r),Re(r,o)}}}break;case"textarea":Ve(e,n);break;case"select":null!=(t=n.value)&&De(e,!!n.multiple,t,!1)}},lt=Jl,st=function(e,t,n,r,o){var i=j;j|=4;try{return Ko(98,e.bind(null,t,n,r,o))}finally{0===(j=i)&&(El(),Go())}};var As=function(e,t){var n=j;j|=2;try{return e(t)}finally{0===(j=n)&&(El(),Go())}},l={Events:[uo,co,fo,it,at,ls,{current:!(ut=function(){var e;0==(49&j)&&(null!==Ll&&(e=Ll,Ll=null,e.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,D(e,P())})),Go(),ls())})}]},e={findFiberByHostInstance:so,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},r={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Z.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=St(e))?null:e.stateNode},findFiberByHostInstance:e.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){s=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!s.isDisabled&&s.supportsFiber)try{Po=s.inject(r),Eo=s}catch(e){}}L.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=l,L.createPortal=Rs,L.findDOMNode=function(e){if(null==e)return null;if(1!==e.nodeType){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(V(188));throw Error(V(268,Object.keys(e)))}e=null===(e=St(t))?null:e.stateNode}return e},L.flushSync=function(e,t){var n=j;if(0!=(48&n))return e(t);j|=1;try{if(e)return Ko(99,e.bind(null,t))}finally{j=n,Go()}},L.hydrate=function(e,t,n){if(js(t))return Cs(null,e,t,!0,n);throw Error(V(200))},L.render=function(e,t,n){if(js(t))return Cs(null,e,t,!1,n);throw Error(V(200))},L.unmountComponentAtNode=function(e){if(js(e))return!!e._reactRootContainer&&(Ql(function(){Cs(null,null,e,!1,function(){e._reactRootContainer=null,e[ao]=null})}),!0);throw Error(V(40))},L.unstable_batchedUpdates=Jl,L.unstable_createPortal=function(e,t){return Rs(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},L.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!js(n))throw Error(V(200));if(null==e||void 0===e._reactInternals)throw Error(V(38));return Cs(e,t,n,!1,r)},L.version="17.0.2"},function(e,t,n){"use strict";e.exports=n(343)},function(I,l,L){"use strict";
/** @license React v0.20.2
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var e,t,n,r,o,i,a,s,u,c,f,d,p,h,m,y,v,b;function g(e,t){var n=e.length;for(e.push(t);;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<_(o,t)))break;e[r]=t,e[n]=o,n=r}}function w(e){return void 0===(e=e[0])?null:e}function k(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],l=1+i,s=e[l];if(void 0!==a&&_(a,n)<0)r=void 0!==s&&_(s,a)<0?(e[r]=s,e[l]=n,l):(e[r]=a,e[i]=n,i);else{if(!(void 0!==s&&_(s,n)<0))break;e[r]=s,e[l]=n,r=l}}}}}function _(e,t){var n=e.sortIndex-t.sortIndex;return 0!=n?n:e.id-t.id}"object"==typeof performance&&"function"==typeof performance.now?(t=performance,l.unstable_now=function(){return t.now()}):(n=Date,r=n.now(),l.unstable_now=function(){return n.now()-r}),"undefined"==typeof window||"function"!=typeof MessageChannel?(i=o=null,a=function(){if(null!==o)try{var e=l.unstable_now();o(!0,e),o=null}catch(e){throw setTimeout(a,0),e}},s=function(e){null!==o?setTimeout(s,0,e):(o=e,setTimeout(a,0))},u=function(e,t){i=setTimeout(e,t)},c=function(){clearTimeout(i)},l.unstable_shouldYield=function(){return!1},e=l.unstable_forceFrameRate=function(){}):(f=window.setTimeout,d=window.clearTimeout,"undefined"!=typeof console&&(D=window.cancelAnimationFrame,"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof D&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")),p=!1,h=null,m=-1,y=5,v=0,l.unstable_shouldYield=function(){return l.unstable_now()>=v},e=function(){},l.unstable_forceFrameRate=function(e){e<0||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5},D=new MessageChannel,b=D.port2,D.port1.onmessage=function(){if(null!==h){var e=l.unstable_now();v=e+y;try{h(!0,e)?b.postMessage(null):(p=!1,h=null)}catch(e){throw b.postMessage(null),e}}else p=!1},s=function(e){h=e,p||(p=!0,b.postMessage(null))},u=function(e,t){m=f(function(){e(l.unstable_now())},t)},c=function(){d(m),m=-1});var O=[],S=[],P=1,E=null,x=3,j=!1,C=!1,R=!1;function A(e){for(var t=w(S);null!==t;){if(null===t.callback)k(S);else{if(!(t.startTime<=e))break;k(S),t.sortIndex=t.expirationTime,g(O,t)}t=w(S)}}function M(e){var t;R=!1,A(e),C||(null!==w(O)?(C=!0,s(T)):null!==(t=w(S))&&u(M,t.startTime-e))}function T(e,t){C=!1,R&&(R=!1,c()),j=!0;var n=x;try{for(A(t),E=w(O);null!==E&&(!(E.expirationTime>t)||e&&!l.unstable_shouldYield());){var r,o=E.callback;"function"==typeof o?(E.callback=null,x=E.priorityLevel,r=o(E.expirationTime<=t),t=l.unstable_now(),"function"==typeof r?E.callback=r:E===w(O)&&k(O),A(t)):k(O),E=w(O)}var i,a=null!==E||(null!==(i=w(S))&&u(M,i.startTime-t),!1);return a}finally{E=null,x=n,j=!1}}var D=e;l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(e){e.callback=null},l.unstable_continueExecution=function(){C||j||(C=!0,s(T))},l.unstable_getCurrentPriorityLevel=function(){return x},l.unstable_getFirstCallbackNode=function(){return w(O)},l.unstable_next=function(e){switch(x){case 1:case 2:case 3:var t=3;break;default:t=x}var n=x;x=t;try{return e()}finally{x=n}},l.unstable_pauseExecution=function(){},l.unstable_requestPaint=D,l.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=x;x=e;try{return t()}finally{x=n}},l.unstable_scheduleCallback=function(e,t,n){var r=l.unstable_now();switch(n="object"==typeof n&&null!==n?"number"==typeof(n=n.delay)&&0<n?r+n:r:r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return e={id:P++,callback:t,priorityLevel:e,startTime:n,expirationTime:o=n+o,sortIndex:-1},r<n?(e.sortIndex=n,g(S,e),null===w(O)&&e===w(S)&&(R?c():R=!0,u(M,n-r))):(e.sortIndex=o,g(O,e),C||j||(C=!0,s(T))),e},l.unstable_wrapCallback=function(t){var n=x;return function(){var e=x;x=n;try{return t.apply(this,arguments)}finally{x=e}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(345),o=(Object.defineProperty(t,"Errors",{enumerable:!0,get:function(){return f(r).default}}),n(348)),i=(Object.defineProperty(t,"Form",{enumerable:!0,get:function(){return f(o).default}}),n(323)),a=(Object.defineProperty(t,"FormBuilder",{enumerable:!0,get:function(){return f(i).default}}),n(1092)),l=(Object.defineProperty(t,"FormEdit",{enumerable:!0,get:function(){return f(a).default}}),n(1104)),s=(Object.defineProperty(t,"FormGrid",{enumerable:!0,get:function(){return f(l).default}}),n(220)),u=(Object.defineProperty(t,"Grid",{enumerable:!0,get:function(){return f(s).default}}),n(1113)),c=(Object.defineProperty(t,"ReactComponent",{enumerable:!0,get:function(){return f(u).default}}),n(1114));function f(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"SubmissionGrid",{enumerable:!0,get:function(){return f(c).default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),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(55),a=l(i),n=l(n(75));function l(e){return e&&e.__esModule?e:{default:e}}i=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(){var e=this,t=n;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");e=this,t=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),r(n,[{key:"hasErrors",value:function(e){return Array.isArray(e)?0!==e.filter(function(e){return!!e}).length:!!e}},{key:"formatError",value:function(n){return"string"==typeof n?n:Array.isArray(n)?n.map(this.formatError):n.hasOwnProperty("errors")?Object.keys(n.errors).map(function(e,t){e=n.errors[e];return a.default.createElement("div",{key:t},a.default.createElement("strong",null,e.name," (",e.path,")")," - ",e.message)}):n.hasOwnProperty("message")?n.message:n.hasOwnProperty("name")&&"ValidationError"===n.name?n.details.map(function(e,t){return a.default.createElement("div",{key:t},e.message)}):n.hasOwnProperty("_id")&&n.hasOwnProperty("display")?"Another user has saved this form already. Please reload and re-apply your changes.":"An error occurred. See console logs for details."}},{key:"render",value:function(){return this.hasErrors(this.props.errors)?a.default.createElement("div",{className:"alert alert-"+this.props.type,role:"alert"},this.formatError(this.props.errors)):null}}]),n}(i.Component);i.propTypes={errors:n.default.any,type:n.default.string},i.defaultProps={type:"danger"},t.default=i},function(e,t,n){"use strict";var a=n(347);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==a)throw i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"),i.name="Invariant Violation",i}function t(){return e}var n={array:e.isRequired=e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),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(55),a=d(i),l=d(n(75)),s=d(n(349)),u=d(n(137)),c=d(n(28)),f=d(n(135));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}c.default.setComponents(u.default);var h=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function i(){var e=this,t=i;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=p(this,(e=i.__proto__||Object.getPrototypeOf(i)).call.apply(e,[this].concat(r))),m.call(e=t),p(t,e)}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),r(i,null,[{key:"getDefaultEmitter",value:function(){return new s.default({wildcard:!1,maxListeners:0})}}]),i}(i.Component),m=(h.propTypes={src:l.default.string,url:l.default.string,form:l.default.object,submission:l.default.object,options:l.default.shape({readOnly:l.default.boolean,noAlerts:l.default.boolean,i18n:l.default.object,template:l.default.string,saveDraft:l.default.boolean}),onPrevPage:l.default.func,onNextPage:l.default.func,onCancel:l.default.func,onChange:l.default.func,onCustomEvent:l.default.func,onComponentChange:l.default.func,onSubmit:l.default.func,onSubmitDone:l.default.func,onFormLoad:l.default.func,onError:l.default.func,onRender:l.default.func,onAttach:l.default.func,onBuild:l.default.func,onFocus:l.default.func,onBlur:l.default.func,onInitialized:l.default.func,formioform:l.default.any},function(){var i=this;this.componentDidMount=function(){var e=i.props,t=e.options,t=void 0===t?{}:t,n=e.src,r=e.url,o=e.form;t.events||(t.events=h.getDefaultEmitter()),n&&(i.instance=new(i.props.formioform||f.default)(i.element,n,t),i.createPromise=i.instance.ready.then(function(e){i.formio=e,i.formio.src=n})),o&&(i.instance=new(i.props.formioform||f.default)(i.element,o,t),i.createPromise=i.instance.ready.then(function(e){return i.formio=e,i.formio.form=o,r&&(i.formio.url=r),i.formio})),i.initializeFormio()},this.componentWillUnmount=function(){void 0!==i.formio&&i.formio.destroy(!0)},this.initializeFormio=function(){i.createPromise&&(i.instance.onAny(function(e){for(var t,n=arguments.length,r=Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.startsWith("formio.")&&(e="on"+e.charAt(7).toUpperCase()+e.slice(8),i.props.hasOwnProperty(e)&&"function"==typeof i.props[e]&&(t=i.props)[e].apply(t,r))}),i.createPromise.then(function(){i.props.submission&&(i.formio.submission=i.props.submission)}))},this.componentWillReceiveProps=function(t){var e=i.props,n=e.options,n=void 0===n?{}:n,r=e.src,o=e.form,e=e.submission;n.events||(n.events=h.getDefaultEmitter()),r!==t.src&&(i.instance=new(i.props.formioform||f.default)(i.element,t.src,n),i.createPromise=i.instance.ready.then(function(e){i.formio=e,i.formio.src=t.src}),i.initializeFormio()),o!==t.form&&(i.instance=new(i.props.formioform||f.default)(i.element,t.form,n),i.createPromise=i.instance.ready.then(function(e){i.formio=e,i.formio.form=t.form}),i.initializeFormio()),e!==t.submission&&i.formio&&(i.formio.submission=t.submission)},this.render=function(){return a.default.createElement("div",{ref:function(e){return i.element=e}})}});t.default=h},function(i,l,s){!function(r){var e,c,f,t;
/*!
 * EventEmitter2
 * https://github.com/hij1nx/EventEmitter2
 *
 * Copyright (c) 2013 hij1nx
 * Licensed under the MIT license.
 */function u(){this._events={},this._conf&&n.call(this,this._conf)}function n(e){e?((this._conf=e).delimiter&&(this.delimiter=e.delimiter),this._maxListeners=e.maxListeners!==c?e.maxListeners:t,e.wildcard&&(this.wildcard=e.wildcard),e.newListener&&(this._newListener=e.newListener),e.removeListener&&(this._removeListener=e.removeListener),e.verboseMemoryLeak&&(this.verboseMemoryLeak=e.verboseMemoryLeak),this.wildcard&&(this.listenerTree={})):this._maxListeners=t}function a(e,t){var n="(node) warning: possible EventEmitter memory leak detected. "+e+" listeners added. Use emitter.setMaxListeners() to increase limit.";this.verboseMemoryLeak&&(n+=" Event name: "+t+"."),void 0!==r&&r.emitWarning?((t=new Error(n)).name="MaxListenersExceededWarning",t.emitter=this,t.count=e,r.emitWarning(t)):(console.error(n),console.trace&&console.trace())}function o(e){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,n.call(this,e)}function m(e,t,n,r){if(!n)return[];var o,i,a,l,s,u,c,f=[],d=t.length,p=t[r],h=t[r+1];if(r===d&&n._listeners){if("function"==typeof n._listeners)e&&e.push(n._listeners);else for(o=0,i=n._listeners.length;o<i;o++)e&&e.push(n._listeners[o]);return[n]}if("*"===p||"**"===p||n[p]){if("*"===p){for(a in n)"_listeners"!==a&&n.hasOwnProperty(a)&&(f=f.concat(m(e,t,n[a],r+1)));return f}if("**"===p){for(a in(c=r+1===d||r+2===d&&"*"===h)&&n._listeners&&(f=f.concat(m(e,t,n,d))),n)"_listeners"!==a&&n.hasOwnProperty(a)&&(f="*"===a||"**"===a?(f=n[a]._listeners&&!c?f.concat(m(e,t,n[a],d)):f).concat(m(e,t,n[a],r)):a===h?f.concat(m(e,t,n[a],r+2)):f.concat(m(e,t,n[a],r)));return f}f=f.concat(m(e,t,n[p],r+1))}if((l=n["*"])&&m(e,t,l,r+1),s=n["**"])if(r<d)for(a in s._listeners&&m(e,t,s,d),s)"_listeners"!==a&&s.hasOwnProperty(a)&&(a===h?m(e,t,s[a],r+2):a===p?m(e,t,s[a],r+1):((u={})[a]=s[a],m(e,t,{"**":u},r+1)));else s._listeners?m(e,t,s,d):s["*"]&&s["*"]._listeners&&m(e,t,s["*"],d);return f}f=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},t=10,(o.EventEmitter2=o).prototype.delimiter=".",o.prototype.setMaxListeners=function(e){e!==c&&(this._maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e)},o.prototype.event="",o.prototype.once=function(e,t){return this._once(e,t,!1)},o.prototype.prependOnceListener=function(e,t){return this._once(e,t,!0)},o.prototype._once=function(e,t,n){return this._many(e,1,t,n),this},o.prototype.many=function(e,t,n){return this._many(e,t,n,!1)},o.prototype.prependMany=function(e,t,n){return this._many(e,t,n,!0)},o.prototype._many=function(e,t,n,r){var o=this;if("function"!=typeof n)throw new Error("many only accepts instances of Function");function i(){return 0==--t&&o.off(e,i),n.apply(this,arguments)}return i._origin=n,this._on(e,i,r),o},o.prototype.emit=function(){this._events||u.call(this);var e=arguments[0];if("newListener"===e&&!this._newListener&&!this._events.newListener)return!1;var t,n,r,o,i=arguments.length;if(this._all&&this._all.length){if(a=this._all.slice(),3<i)for(t=new Array(i),o=0;o<i;o++)t[o]=arguments[o];for(r=0,n=a.length;r<n;r++)switch(this.event=e,i){case 1:a[r].call(this,e);break;case 2:a[r].call(this,e,arguments[1]);break;case 3:a[r].call(this,e,arguments[1],arguments[2]);break;default:a[r].apply(this,t)}}if(this.wildcard){var a=[],l="string"==typeof e?e.split(this.delimiter):e.slice();m.call(this,a,l,this.listenerTree,0)}else{if("function"==typeof(a=this._events[e])){switch(this.event=e,i){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:for(t=new Array(i-1),o=1;o<i;o++)t[o-1]=arguments[o];a.apply(this,t)}return!0}a=a&&a.slice()}if(a&&a.length){if(3<i)for(t=new Array(i-1),o=1;o<i;o++)t[o-1]=arguments[o];for(r=0,n=a.length;r<n;r++)switch(this.event=e,i){case 1:a[r].call(this);break;case 2:a[r].call(this,arguments[1]);break;case 3:a[r].call(this,arguments[1],arguments[2]);break;default:a[r].apply(this,t)}return!0}if(this._all||"error"!==e)return!!this._all;throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.")},o.prototype.emitAsync=function(){this._events||u.call(this);var e=arguments[0];if("newListener"===e&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);var t,n,r,o,i,a,l=[],s=arguments.length;if(this._all){if(3<s)for(t=new Array(s),o=1;o<s;o++)t[o]=arguments[o];for(r=0,n=this._all.length;r<n;r++)switch(this.event=e,s){case 1:l.push(this._all[r].call(this,e));break;case 2:l.push(this._all[r].call(this,e,arguments[1]));break;case 3:l.push(this._all[r].call(this,e,arguments[1],arguments[2]));break;default:l.push(this._all[r].apply(this,t))}}if(this.wildcard?(i=[],a="string"==typeof e?e.split(this.delimiter):e.slice(),m.call(this,i,a,this.listenerTree,0)):i=this._events[e],"function"==typeof i)switch(this.event=e,s){case 1:l.push(i.call(this));break;case 2:l.push(i.call(this,arguments[1]));break;case 3:l.push(i.call(this,arguments[1],arguments[2]));break;default:for(t=new Array(s-1),o=1;o<s;o++)t[o-1]=arguments[o];l.push(i.apply(this,t))}else if(i&&i.length){if(i=i.slice(),3<s)for(t=new Array(s-1),o=1;o<s;o++)t[o-1]=arguments[o];for(r=0,n=i.length;r<n;r++)switch(this.event=e,s){case 1:l.push(i[r].call(this));break;case 2:l.push(i[r].call(this,arguments[1]));break;case 3:l.push(i[r].call(this,arguments[1],arguments[2]));break;default:l.push(i[r].apply(this,t))}}else if(!this._all&&"error"===e)return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(l)},o.prototype.on=function(e,t){return this._on(e,t,!1)},o.prototype.prependListener=function(e,t){return this._on(e,t,!0)},o.prototype.onAny=function(e){return this._onAny(e,!1)},o.prototype.prependAny=function(e){return this._onAny(e,!0)},o.prototype.addListener=o.prototype.on,o.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},o.prototype._on=function(e,t,n){if("function"==typeof e)this._onAny(e,t);else{if("function"!=typeof t)throw new Error("on only accepts instances of Function");this._events||u.call(this),this._newListener&&this.emit("newListener",e,t),this.wildcard?function(e,t){for(var n=0,r=(e="string"==typeof e?e.split(this.delimiter):e.slice()).length;n+1<r;n++)if("**"===e[n]&&"**"===e[n+1])return;for(var o=this.listenerTree,i=e.shift();i!==c;){if(o[i]||(o[i]={}),o=o[i],0===e.length)return o._listeners?("function"==typeof o._listeners&&(o._listeners=[o._listeners]),o._listeners.push(t),!o._listeners.warned&&0<this._maxListeners&&o._listeners.length>this._maxListeners&&(o._listeners.warned=!0,a.call(this,o._listeners.length,i))):o._listeners=t,!0;i=e.shift()}return!0}.call(this,e,t):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&&0<this._maxListeners&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,a.call(this,this._events[e].length,e))):this._events[e]=t}return this},o.prototype.off=function(e,t){if("function"!=typeof t)throw new Error("removeListener only takes instances of Function");var n=[];if(this.wildcard)var r="string"==typeof e?e.split(this.delimiter):e.slice(),n=m.call(this,null,r,this.listenerTree,0);else{if(!this._events[e])return this;a=this._events[e],n.push({_listeners:a})}for(var o=0;o<n.length;o++){var i=n[o],a=i._listeners;if(f(a)){for(var l=-1,s=0,u=a.length;s<u;s++)if(a[s]===t||a[s].listener&&a[s].listener===t||a[s]._origin&&a[s]._origin===t){l=s;break}if(!(l<0))return(this.wildcard?i._listeners:this._events[e]).splice(l,1),0===a.length&&(this.wildcard?delete i._listeners:delete this._events[e]),this._removeListener&&this.emit("removeListener",e,t),this}else(a===t||a.listener&&a.listener===t||a._origin&&a._origin===t)&&(this.wildcard?delete i._listeners:delete this._events[e],this._removeListener&&this.emit("removeListener",e,t))}return function e(t){if(t!==c){var n,r=Object.keys(t);for(n in r){var o=r[n],i=t[o];i instanceof Function||"object"!=typeof i||null===i||(0<Object.keys(i).length&&e(t[o]),0===Object.keys(i).length&&delete t[o])}}}(this.listenerTree),this},o.prototype.offAny=function(e){var t,n=0,r=0;if(e&&this._all&&0<this._all.length){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},o.prototype.removeListener=o.prototype.off,o.prototype.removeAllListeners=function(e){if(e===c)this._events&&u.call(this);else if(this.wildcard)for(var t="string"==typeof e?e.split(this.delimiter):e.slice(),n=m.call(this,null,t,this.listenerTree,0),r=0;r<n.length;r++)n[r]._listeners=null;else this._events&&(this._events[e]=null);return this},o.prototype.listeners=function(e){var t,n;return this.wildcard?(t=[],n="string"==typeof e?e.split(this.delimiter):e.slice(),m.call(this,t,n,this.listenerTree,0),t):(this._events||u.call(this),this._events[e]||(this._events[e]=[]),f(this._events[e])||(this._events[e]=[this._events[e]]),this._events[e])},o.prototype.eventNames=function(){return Object.keys(this._events)},o.prototype.listenerCount=function(e){return this.listeners(e).length},o.prototype.listenersAny=function(){return this._all||[]},(e=function(){return o}.call(l,s,l,i))!==c&&(i.exports=e)}.call(this,s(177))},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(23),n(2),n(31),n(6),n(7),n(3),n(5),n(4),n(42),n(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.AddressComponentMode=void 0,n(18),n(20),n(1),n(14),n(39),n(0),n(16),n(152),n(22),n(9);var a=r(n(369)),l=r(n(10)),s=n(36),u=n(280),c=r(n(61)),f=r(n(77)),d=r(n(304));function r(e){return e&&e.__esModule?e:{default:e}}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||i(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 h(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(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 i(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name: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(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach(function(e){b(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function b(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(){return(w="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=O(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=O(n),t=(e=r?(e=O(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S={Autocomplete:"autocomplete",Manual:"manual"},P=(t.AddressComponentMode=S,"address-autocomplete-remove-value-icon--hidden"),E="show = _.get(instance, 'parent.manualMode', false);",n=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&k(t,e);var n,r=_(i);function i(){var e=this,t=i;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,e=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d.default.schema.apply(d.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:E},{label:"Address 2",tableView:!1,key:"address2",type:"textfield",input:!0,customConditional:E},{label:"City",tableView:!1,key:"city",type:"textfield",input:!0,customConditional:E},{label:"State",tableView:!1,key:"state",type:"textfield",input:!0,customConditional:E},{label:"Country",tableView:!1,key:"country",type:"textfield",input:!0,customConditional:E},{label:"Zip Code",tableView:!1,key:"zip",type:"textfield",input:!0,customConditional:E}]}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Address",group:"advanced",icon:"home",documentation:"/userguide/#address",weight:35,schema:i.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=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=this.defaultSchema;return e.components&&(t=l.default.omit(t,"components")),l.default.defaultsDeep(e,t)}},{key:"init",value:function(){var e,t,n,r;this.components=this.components||[],(this.builderMode||this.manualModeEnabled)&&f.default.prototype.addComponents.call(this,this.manualMode?this.address:{}),c.default.prototype.init.call(this),this.builderMode||(this.component.provider?(t=(r=this.component).provider,r=r.providerOptions,this.provider=this.initializeProvider(t,r)):this.component.map&&(this.component.provider=u.GoogleAddressProvider.name,this.component.providerOptions=this.component.providerOptions||{},r=(t=this.component).map,e=t.provider,t=t.providerOptions,n=r.key,r=r.region,n&&l.default.set(t,"params.key",n),r&&l.default.set(t,"params.region",r),this.provider=this.initializeProvider(e,t)))}},{key:"initializeProvider",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this.interpolate(t.url);return new(s.GlobalFormio.Providers.getProvider("address",e))(v(v({},t),{},{url:n}))}},{key:"emptyValue",get:function(){return this.manualModeEnabled?{mode:S.Autocomplete,address:{}}:{}}},{key:"mode",get:function(){var e;return this.manualModeEnabled&&null!=(e=null==(e=this.dataValue)?void 0:e.mode)?e:S.Autocomplete},set:function(e){this.manualModeEnabled&&(this.dataValue.mode=e)}},{key:"autocompleteMode",get:function(){return this.mode===S.Autocomplete}},{key:"manualMode",get:function(){return this.mode===S.Manual}},{key:"manualModeEnabled",get:function(){return!this.isMultiple&&Boolean(this.component.enableManualMode)}},{key:"restoreComponentsContext",value:function(){var t=this;this.getComponents().forEach(function(e){e.data=t.address,e.setValue(e.dataValue,{noUpdateEvent:!0})})}},{key:"isMultiple",get:function(){return Boolean(this.component.multiple)}},{key:"address",get:function(){return this.isMultiple?l.default.isArray(this.dataValue)?this.dataValue:[this.dataValue]:this.manualModeEnabled&&this.dataValue?this.dataValue.address:this.dataValue},set:function(e){this.manualModeEnabled&&!this.isMultiple?this.dataValue.address=e:this.dataValue=e}},{key:"defaultValue",get:function(){var e=w(O(i.prototype),"defaultValue",this);return e=this.isMultiple?l.default.isArray(e)?e:[e]:e}},{key:"defaultSchema",get:function(){return i.schema()}},{key:"isValueInLegacyFormat",value:function(e){return e&&!e.mode}},{key:"normalizeValue",value:function(e){return this.manualModeEnabled&&this.isValueInLegacyFormat(e)?{mode:S.Autocomplete,address:e}:e}},{key:"setValue",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=c.default.prototype.setValue.call(this,e,t);return this.manualMode&&this.restoreComponentsContext(),(n||!l.default.isEmpty(e)&&t.fromSubmission)&&this.redraw(),n}},{key:"modeSwitcher",get:function(){return this.refs&&this.refs[i.modeSwitcherRef]||null}},{key:"removeValueIcon",get:function(){return this.refs&&this.refs[i.removeValueIconRef]||null}},{key:"searchInput",get:function(){return this.refs&&this.refs[i.searchInputRef]||null}},{key:"addRowButton",get:function(){return this.refs&&this.refs[i.addRowButtonRef]||null}},{key:"removeRowButton",get:function(){return this.refs&&this.refs[i.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"),l.default.defaults(e,this.component.attributes),e}},{key:"templateName",get:function(){return"address"}},{key:"gridTemplateName",get:function(){return"multiValueTable"}},{key:"rowTemplateName",get:function(){return"multiValueRow"}},{key:"hasChildren",get:function(){return!this.isMultiple&&(this.builderMode||this.manualModeEnabled)}},{key:"addAnother",get:function(){return this.t(this.component.addAnother||"Add Another")}},{key:"renderElement",value:function(e){return this.renderTemplate(this.templateName,{children:this.hasChildren?this.renderComponents():"",nestedKey:this.nestedKey,inputAttributes:this.searchInputAttributes,ref:{modeSwitcher:i.modeSwitcherRef,removeValueIcon:i.removeValueIconRef,searchInput:i.searchInputRef},displayValue:this.getDisplayValue(e),mode:{autocomplete:this.autocompleteMode,manual:this.manualMode}})}},{key:"renderRow",value:function(e,t){return this.renderTemplate(this.rowTemplateName,{index:t,disabled:this.disabled,element:"".concat(this.renderElement(e,t))})}},{key:"renderGrid",value:function(){return this.renderTemplate(this.gridTemplateName,{rows:this.address.map(this.renderRow.bind(this)).join(""),disabled:this.disabled,addAnother:this.addAnother})}},{key:"render",value:function(){return this.isMultiple?w(O(i.prototype),"render",this).call(this,this.renderGrid()):w(O(i.prototype),"render",this).call(this,this.renderElement())}},{key:"onSelectAddress",value:function(e,t,n){this.isMultiple?(this.address[n]=e,this.address=h(this.address)):this.address=e,this.triggerChange({modified:!0}),t&&(t.value=this.getDisplayValue(this.isMultiple?this.address[n]:this.address)),this.updateRemoveIcon(n)}},{key:"addRow",value:function(){this.address=this.address.concat(this.emptyValue),w(O(i.prototype),"redraw",this).call(this)}},{key:"attach",value:function(e){var t,n,r=this,o=(this.builderMode||this.manualMode?w(O(i.prototype),"attach",this):c.default.prototype.attach).call(this,e);return this.builderMode||!this.provider&&this.component.provider&&(t=(n=this.component).provider,n=n.providerOptions,this.provider=this.initializeProvider(t,n)),this.loadRefs(e,(b(t={},i.addRowButtonRef,"single"),b(t,i.modeSwitcherRef,"single"),b(t,i.removeRowButtonRef,"multiple"),b(t,i.removeValueIconRef,"multiple"),b(t,i.searchInputRef,"multiple"),t)),this.searchInput.forEach(function(t,n){!r.builderMode&&t&&r.provider&&("google"===r.component.provider?r.provider.attachAutocomplete(t,n,r.onSelectAddress.bind(r)):(0,a.default)({input:t,debounceWaitMs:300,fetch:function(e,t){r.provider.search(e).then(t)},render:function(e){var t=r.ce("div");return t.textContent=r.getDisplayValue(e),t},onSelect:function(e){r.onSelectAddress(e,t,n)}}),r.addEventListener(t,"blur",function(){t&&t.value&&(t.value=r.getDisplayValue(r.isMultiple?r.address[n]:r.address))}),r.addEventListener(t,"keyup",function(){!t||t.value||r.clearAddress(t,n)}))}),this.addRowButton&&this.addEventListener(this.addRowButton,"click",function(e){e.preventDefault(),r.addRow()}),this.removeRowButton.forEach(function(e,t){r.addEventListener(e,"click",function(e){e.preventDefault(),r.removeValue(t)})}),this.modeSwitcher&&this.addEventListener(this.modeSwitcher,"change",function(){r.modeSwitcher&&(r.dataValue=r.emptyValue,r.mode=r.modeSwitcher.checked?S.Manual:S.Autocomplete,r.builderMode||(r.manualMode&&r.restoreComponentsContext(),r.triggerChange({modified:!0})),r.redraw())}),this.builderMode||this.removeValueIcon.forEach(function(e,t){r.updateRemoveIcon(t);function n(){var e=null==(e=r.searchInput)?void 0:e[t];r.clearAddress(e,t),e&&e.focus()}r.addEventListener(e,"click",n),r.addEventListener(e,"keydown",function(e){"Enter"===e.key&&n()})}),o}},{key:"addChildComponent",value:function(e){e.customConditional=E}},{key:"redraw",value:function(){var t=this,n=this.modeSwitcher&&document.activeElement===this.modeSwitcher;return w(O(i.prototype),"redraw",this).call(this).then(function(e){return n&&t.modeSwitcher&&t.modeSwitcher.focus(),e})}},{key:"clearAddress",value:function(e,t){var n;this.isEmpty()||this.triggerChange(),null!=(n=this.address)&&n[t]?this.address[t]=this.emptyValue:this.address=this.emptyValue,e&&(e.value=""),this.updateRemoveIcon(t)}},{key:"getDisplayValue",value:function(){var e=0<arguments.length&&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=null==(t=this.removeValueIcon)?void 0:t[e];t&&(e=this.isMultiple?this.address[e]:this.address,this.isEmpty(e)||this.disabled?this.addClass(t,P):this.removeClass(t,P))}},{key:"getValueAsString",value:function(e,n){if(!e)return"";var e=this.normalizeValue(e),e=this.manualModeEnabled?e:{address:e,mode:S.Autocomplete},t=e.address,e=e.mode===S.Manual;return this.provider&&!e?this.getDisplayValue(t):e?this.component.manualModeViewString?this.interpolate(this.component.manualModeViewString,{address:t,data:this.data,component:this.component}):this.getComponents().filter(function(e){return e.hasValue(t)}).map(function(e){return[e,l.default.get(t,e.key)]}).filter(function(e){var e=p(e,2),t=e[0],e=e[1];return!t.isEmpty(e)}).map(function(e){var e=p(e,2),t=e[0],e=e[1];return t.getValueAsString(e,n)}).join(", "):w(O(i.prototype),"getValueAsString",this).call(this,t,n)}},{key:"focus",value:function(){this.searchInput&&this.searchInput[0]&&this.searchInput[0].focus()}}])&&g(t.prototype,n),e&&g(t,e),Object.defineProperty(t,"prototype",{writable:!1}),i}(d.default);t.default=n},function(e,t,n){var o=n(27),i=n(29),a=n(35),l=TypeError;e.exports=function(e,t){var n,r;if("string"===t&&i(n=e.toString)&&!a(r=o(n,e)))return r;if(i(n=e.valueOf)&&!a(r=o(n,e)))return r;if("string"!==t&&i(n=e.toString)&&!a(r=o(n,e)))return r;throw l("Can't convert object to primitive value")}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){e=+e;return(0<e?r:n)(e)}},function(e,t,n){"use strict";var r=n(17),o=n(58),i=n(35),c=n(37),f=n(105),n=n(116),d=Function,p=r([].concat),h=r([].join),m={};e.exports=n?d.bind:function(a){var l=o(this),e=l.prototype,s=f(arguments,1),u=function(){var e=p(s,f(arguments));if(this instanceof u){var t=l,n=e.length,r=e;if(!c(m,n)){for(var o=[],i=0;i<n;i++)o[i]="a["+i+"]";m[n]=d("C,a","return new C("+h(o,",")+")")}return m[n](t,r)}return l.apply(a,e)};return i(e)&&(u.prototype=e),u}},function(L,V,e){"use strict";function r(e,t){var n=M[e]=b(R);return te(n,{type:j,tag:e,description:t}),f||(n.description=t),n}function o(e,t,n){return e===C&&o(T,t,n),h(e),t=y(t),h(n),p(M,t)?(n.enumerable?(p(e,x)&&e[x][t]&&(e[x][t]=!1),n=b(n,{enumerable:v(0,!1)})):(p(e,x)||A(e,x,v(1,{})),e[x][t]=!0),I(e,t,n)):A(e,t,n)}function n(t,e){h(t);var n=m(e),e=g(n).concat(l(n));return E(e,function(e){f&&!c(i,n,e)||o(t,e,n[e])}),t}function i(e){var e=y(e),t=c(ae,this,e);return!(this===C&&p(M,e)&&!p(T,e))&&(!(t||!p(this,e)||!p(M,e)||p(this,x)&&this[x][e])||t)}function t(e,t){var n,e=m(e),t=y(t);if(e!==C||!p(M,t)||p(T,t))return!(n=oe(e,t))||!p(M,t)||p(e,x)&&e[x][t]||(n.enumerable=!0),n}function a(e){var e=ie(m(e)),t=[];return E(e,function(e){p(M,e)||p(G,e)||le(t,e)}),t}function l(e){var t=e===C,e=ie(t?T:m(e)),n=[];return E(e,function(e){!p(M,e)||t&&!p(C,e)||le(n,M[e])}),n}var s=e(15),u=e(21),c=e(27),N=e(17),F=e(63),f=e(34),d=e(101),U=e(12),p=e(37),z=e(71),h=e(41),m=e(56),y=e(118),B=e(47),v=e(86),b=e(82),g=e(122),H=e(80),w=e(241),q=e(143),k=e(65),W=e(38),K=e(237),Y=e(138),_=e(48),O=e(103),S=e(141),G=e(120),$=e(119),J=e(30),Q=e(242),Z=e(243),X=e(356),ee=e(107),P=e(59),E=e(52).forEach,x=S("hidden"),j="Symbol",e="prototype",te=P.set,ne=P.getterFor(j),C=Object[e],S=u.Symbol,R=S&&S[e],re=u.TypeError,P=u.QObject,oe=k.f,A=W.f,ie=w.f,ae=Y.f,le=N([].push),M=O("symbols"),T=O("op-symbols"),u=O("wks"),D=!P||!P[e]||!P[e].findChild,I=f&&U(function(){return 7!=b(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=oe(C,t);r&&delete C[t],A(e,t,n),r&&e!==C&&A(C,t,r)}:A;d||(_(R=(S=function(){if(z(R,this))throw re("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?B(arguments[0]):void 0,t=$(e),n=function(e){this===C&&c(n,T,e),p(this,x)&&p(this[x],t)&&(this[x][t]=!1),I(this,t,v(1,e))};return f&&D&&I(C,t,{configurable:!0,set:n}),r(t,e)})[e],"toString",function(){return ne(this).tag}),_(S,"withoutSetter",function(e){return r($(e),e)}),Y.f=i,W.f=o,K.f=n,k.f=t,H.f=w.f=a,q.f=l,Q.f=function(e){return r(J(e),e)},f&&(A(R,"description",{configurable:!0,get:function(){return ne(this).description}}),F||_(C,"propertyIsEnumerable",i,{unsafe:!0}))),s({global:!0,constructor:!0,wrap:!0,forced:!d,sham:!d},{Symbol:S}),E(g(u),function(e){Z(e)}),s({target:j,stat:!0,forced:!d},{useSetter:function(){D=!0},useSimple:function(){D=!1}}),s({target:"Object",stat:!0,forced:!d,sham:!f},{create:function(e,t){return void 0===t?b(e):n(b(e),t)},defineProperty:o,defineProperties:n,getOwnPropertyDescriptor:t}),s({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:a}),X(),ee(S,j),G[x]=!0},function(e,t,n){n=n(21);e.exports=n},function(e,t,n){var r=n(27),o=n(57),i=n(30),a=n(48);e.exports=function(){var e=o("Symbol"),e=e&&e.prototype,t=e&&e.valueOf,n=i("toPrimitive");e&&!e[n]&&a(e,n,function(e){return r(t,this)},{arity:1})}},function(e,t,n){var r=n(146),o=n(144),i=n(35),a=n(30)("species"),l=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===l||r(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?l:t}},function(e,t,n){var r=n(15),o=n(57),i=n(37),a=n(47),l=n(103),n=n(244),s=l("string-to-symbol-registry"),u=l("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!n},{for:function(e){e=a(e);if(i(s,e))return s[e];var t=o("Symbol")(e);return s[e]=t,u[t]=e,t}})},function(e,t,n){var r=n(15),o=n(37),i=n(100),a=n(88),l=n(103),n=n(244),s=l("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!n},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(s,e))return s[e]}})},function(e,t,n){function o(e,t){var n=m(arguments),r=t;if((p(t)||void 0!==e)&&!h(e))return f(t)||(t=function(e,t){if(d(r)&&(t=s(r,this,e,t)),!h(t))return t}),n[1]=t,l(y,null,n)}function i(e,t,n){var r=b(n,t-1),n=b(n,t+1);return v(O,e)&&!v(S,n)||v(S,e)&&!v(O,r)?"\\u"+k(g(e,0),16):e}var r=n(15),a=n(57),l=n(81),s=n(27),u=n(17),c=n(12),f=n(146),d=n(29),p=n(35),h=n(100),m=n(105),n=n(101),y=a("JSON","stringify"),v=u(/./.exec),b=u("".charAt),g=u("".charCodeAt),w=u("".replace),k=u(1..toString),_=/[\uD800-\uDFFF]/g,O=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,P=!n||c(function(){var e=a("Symbol")();return"[null]"!=y([e])||"{}"!=y({a:e})||"{}"!=y(Object(e))}),E=c(function(){return'"\\udf06\\ud834"'!==y("\udf06\ud834")||'"\\udead"'!==y("\udead")});y&&r({target:"JSON",stat:!0,arity:3,forced:P||E},{stringify:function(e,t,n){var r=m(arguments),r=l(P?o:y,null,r);return E&&"string"==typeof r?w(r,_,i):r}})},function(e,t,n){var r=n(15),o=n(101),i=n(12),a=n(143),l=n(46);r({target:"Object",stat:!0,forced:!o||i(function(){a.f(1)})},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(l(e)):[]}})},function(e,t,n){"use strict";function o(){return this}var i=n(245).IteratorPrototype,a=n(82),l=n(86),s=n(107),u=n(123);e.exports=function(e,t,n,r){t+=" Iterator";return e.prototype=a(i,{next:l(+!r,n)}),s(e,t,!1,!0),u[t]=o,e}},function(e,t,n){var r=n(29),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},function(e,t,n){"use strict";var d=n(92),p=n(27),h=n(46),m=n(365),y=n(186),v=n(144),b=n(49),g=n(106),w=n(187),k=n(148),_=Array;e.exports=function(e){var t,n,r,o,i,a,l=h(e),e=v(this),s=arguments.length,u=1<s?arguments[1]:void 0,c=void 0!==u,s=(c&&(u=d(u,2<s?arguments[2]:void 0)),k(l)),f=0;if(!s||this===_&&y(s))for(t=b(l),n=e?new this(t):_(t);f<t;f++)a=c?u(l[f],f):l[f],g(n,f,a);else for(i=(o=w(l,s)).next,n=e?new this:[];!(r=p(i,o)).done;f++)a=c?m(o,u,[r.value,f],!0):r.value,g(n,f,a);return n.length=f,n}},function(e,t,n){var o=n(41),i=n(249);e.exports=function(t,e,n,r){try{return r?e(o(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},function(e,t,n){"use strict";var r=n(183),o=n(90);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){"use strict";var r=n(52).forEach,n=n(150)("forEach");e.exports=n?[].forEach:function(e){return r(this,e,1<arguments.length?arguments[1]:void 0)}},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";function e(u){var c=document;var f=u.container||c.createElement("div");var d=f.style;var e=navigator.userAgent;var t=~e.indexOf("Firefox")&&~e.indexOf("Mobile");var o=u.debounceWaitMs||0;var r=u.preventSubmit||false;var i=u.disableAutoSelect||false;var n=t?"input":"keyup";var l=[];var s="";var a=2;var p=u.showOnFocus;var h;var m=0;var y;if(u.minLength!==undefined)a=u.minLength;if(!u.input)throw new Error("input undefined");var v=u.input;f.className="autocomplete "+(u.className||"");d.position="absolute";function b(){var e=f.parentNode;if(e)e.removeChild(f)}function g(){if(y)window.clearTimeout(y)}function w(){if(!f.parentNode)c.body.appendChild(f)}function k(){return!!f.parentNode}function _(){m++;l=[];s="";h=undefined;b()}function O(){if(!k())return;d.height="auto";d.width=v.offsetWidth+"px";var l=0;var s;function e(){var e=c.documentElement;var t=e.clientTop||c.body.clientTop||0;var n=e.clientLeft||c.body.clientLeft||0;var r=window.pageYOffset||e.scrollTop;var o=window.pageXOffset||e.scrollLeft;s=v.getBoundingClientRect();var i=s.top+v.offsetHeight+r-t;var a=s.left+o-n;d.top=i+"px";d.left=a+"px";l=window.innerHeight-(s.top+v.offsetHeight);if(l<0)l=0;d.top=i+"px";d.bottom="";d.left=a+"px";d.maxHeight=l+"px"}e();e();if(u.customize&&s)u.customize(v,s,f,l)}function S(){while(f.firstChild)f.removeChild(f.firstChild);var r=function(e,t){var n=c.createElement("div");n.textContent=e.label||"";return n};if(u.render)r=u.render;var o=function(e,t){var n=c.createElement("div");n.textContent=e;return n};if(u.renderGroup)o=u.renderGroup;var i=c.createDocumentFragment();var a="#9?$";l.forEach(function(t){if(t.group&&t.group!==a){a=t.group;var e=o(t.group,s);if(e){e.className+=" group";i.appendChild(e)}}var n=r(t,s);if(n){n.addEventListener("click",function(e){u.onSelect(t,v);_();e.preventDefault();e.stopPropagation()});if(t===h)n.className+=" selected";i.appendChild(n)}});f.appendChild(i);if(l.length<1)if(u.emptyMsg){var e=c.createElement("div");e.className="empty";e.textContent=u.emptyMsg;f.appendChild(e)}else{_();return}w();O();C()}function P(){if(k())S()}function E(){P()}function x(e){if(e.target!==f)P();else e.preventDefault()}function j(e){var t=e.which||e.keyCode||0;var n=u.keysToIgnore||[38,13,27,39,37,16,17,18,20,91,9];for(var r=0,o=n;r<o.length;r++){var i=o[r];if(t===i)return}if(t>=112&&t<=123&&!u.keysToIgnore)return;if(t===40&&k())return;D(0)}function C(){var e=f.getElementsByClassName("selected");if(e.length>0){var t=e[0];var n=t.previousElementSibling;if(n&&n.className.indexOf("group")!==-1&&!n.previousElementSibling)t=n;if(t.offsetTop<f.scrollTop)f.scrollTop=t.offsetTop;else{var r=t.offsetTop+t.offsetHeight;var o=f.scrollTop+f.offsetHeight;if(r>o)f.scrollTop+=r-o}}}function R(){if(l.length<1)h=undefined;else if(h===l[0])h=l[l.length-1];else for(var e=l.length-1;e>0;e--)if(h===l[e]||e===1){h=l[e-1];break}}function A(){if(l.length<1)h=undefined;if(!h||h===l[l.length-1]){h=l[0];return}for(var e=0;e<l.length-1;e++)if(h===l[e]){h=l[e+1];break}}function M(e){var t=e.which||e.keyCode||0;if(t===38||t===40||t===27){var n=k();if(t===27)_();else{if(!n||l.length<1)return;t===38?R():A();S()}e.preventDefault();if(n)e.stopPropagation();return}if(t===13){if(h){u.onSelect(h,v);_()}if(r)e.preventDefault()}}function T(){if(p)D(1)}function D(e){var t=++m;var n=v.value;var r=v.selectionStart||0;if(n.length>=a||e===1){g();y=window.setTimeout(function(){u.fetch(n,function(e){if(m===t&&e){l=e;s=n;h=l.length<1||i?undefined:l[0];S()}},e,r)},e===0?o:0)}else _()}function I(){setTimeout(function(){if(c.activeElement!==v)_()},200)}f.addEventListener("mousedown",function(e){e.stopPropagation();e.preventDefault()});f.addEventListener("focus",function(){return v.focus()});function L(){v.removeEventListener("focus",T);v.removeEventListener("keydown",M);v.removeEventListener(n,j);v.removeEventListener("blur",I);window.removeEventListener("resize",E);c.removeEventListener("scroll",x,true);g();_()}v.addEventListener("keydown",M);v.addEventListener(n,j);v.addEventListener("blur",I);v.addEventListener("focus",T);window.addEventListener("resize",E);c.addEventListener("scroll",x,true);return{destroy:L}}return e}()},function(e,t,n){var r=n(38).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},function(e,t,n){var r=n(17),o=n(46),d=Math.floor,p=r("".charAt),h=r("".replace),m=r("".slice),y=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,v=/\$([$&'`]|\d{1,2})/g;e.exports=function(i,a,l,s,u,e){var c=l+i.length,f=s.length,t=v;return void 0!==u&&(u=o(u),t=y),h(e,t,function(e,t){var n;switch(p(t,0)){case"$":return"$";case"&":return i;case"`":return m(a,0,l);case"'":return m(a,c);case"<":n=u[m(t,1,-1)];break;default:var r,o=+t;if(0==o)return e;if(f<o)return 0!==(r=d(o/10))&&r<=f?void 0===s[r-1]?p(t,1):s[r-1]+p(t,1):e;n=s[o-1]}return void 0===n?"":n})}},function(e,t,n){"use strict";var d=n(34),r=n(17),p=n(27),o=n(12),h=n(122),m=n(143),y=n(138),v=n(46),b=n(117),i=Object.assign,a=Object.defineProperty,g=r([].concat);e.exports=!i||o(function(){if(d&&1!==i({b:1},i(a({},"a",{enumerable:!0,get:function(){a(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=i({},e)[n]||h(i({},t)).join("")!=r})?function(e,t){for(var n=v(e),r=arguments.length,o=1,i=m.f,a=y.f;o<r;)for(var l,s=b(arguments[o++]),u=i?g(h(s),i(s)):h(s),c=u.length,f=0;f<c;)l=u[f++],d&&!p(a,s,l)||(n[l]=s[l]);return n}:i},function(e,o,i){!function(e){var t=void 0!==e&&e||"undefined"!=typeof self&&self||window,n=Function.prototype.apply;function r(e,t){this._id=e,this._clearFn=t}o.setTimeout=function(){return new r(n.call(setTimeout,t,arguments),clearTimeout)},o.setInterval=function(){return new r(n.call(setInterval,t,arguments),clearInterval)},o.clearTimeout=o.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(t,this._id)},o.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},o.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},o._unrefActive=o.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},i(374),o.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,o.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}.call(this,i(54))},function(e,t,n){!function(e,p){!function(n,i){"use strict";var r,a,l,o,s,u,t,e;function c(e){delete a[e]}function f(e){if(l)setTimeout(f,0,e);else{var t=a[e];if(t){l=!0;try{var n=t,r=n.callback,o=n.args;switch(o.length){case 0:r();break;case 1:r(o[0]);break;case 2:r(o[0],o[1]);break;case 3:r(o[0],o[1],o[2]);break;default:r.apply(i,o)}}finally{c(e),l=!1}}}}function d(){function e(e){e.source===n&&"string"==typeof e.data&&0===e.data.indexOf(t)&&f(+e.data.slice(t.length))}var t="setImmediate$"+Math.random()+"$";n.addEventListener?n.addEventListener("message",e,!1):n.attachEvent("onmessage",e),s=function(e){n.postMessage(t+e,"*")}}n.setImmediate||(r=1,l=!(a={}),o=n.document,e=(e=Object.getPrototypeOf&&Object.getPrototypeOf(n))&&e.setTimeout?e:n,"[object process]"==={}.toString.call(n.process)?s=function(e){p.nextTick(function(){f(e)})}:!function(){var e,t;if(n.postMessage&&!n.importScripts)return e=!0,t=n.onmessage,n.onmessage=function(){e=!1},n.postMessage("","*"),n.onmessage=t,e}()?s=n.MessageChannel?((t=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){t.port2.postMessage(e)}):o&&"onreadystatechange"in o.createElement("script")?(u=o.documentElement,function(e){var t=o.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,u.removeChild(t),t=null},u.appendChild(t)}):function(e){setTimeout(f,0,e)}:d(),e.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];return a[r]={callback:e,args:t},s(r),r++},e.clearImmediate=c)}("undefined"==typeof self?void 0===e?this:e:self)}.call(this,n(54),n(177))},function(e,t,n){"use strict";function r(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}var o,i,a,l,s,u=n(21),c=n(17),f=n(159),d=n(160),p=n(262),h=n(378),m=n(35),y=n(261),v=n(59).enforce,n=n(233),u=!u.ActiveXObject&&"ActiveXObject"in u,p=p("WeakMap",r,h);n&&u&&(o=h.getConstructor(r,"WeakMap",!0),d.enable(),n=p.prototype,i=c(n.delete),a=c(n.has),l=c(n.get),s=c(n.set),f(n,{delete:function(e){var t;return m(e)&&!y(e)?((t=v(this)).frozen||(t.frozen=new o),i(this,e)||t.frozen.delete(e)):i(this,e)},has:function(e){var t;return m(e)&&!y(e)?((t=v(this)).frozen||(t.frozen=new o),a(this,e)||t.frozen.has(e)):a(this,e)},get:function(e){var t;return m(e)&&!y(e)?((t=v(this)).frozen||(t.frozen=new o),a(this,e)?l(this,e):t.frozen.get(e)):l(this,e)},set:function(e,t){var n;return m(e)&&!y(e)?((n=v(this)).frozen||(n.frozen=new o),a(this,e)?s(this,e,t):n.frozen.set(e,t)):s(this,e,t),this}}))},function(e,t,n){n=n(12);e.exports=n(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})},function(e,t,n){n=n(12);e.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,n){"use strict";function s(e){return e.frozen||(e.frozen=new r)}function r(){this.entries=[]}function o(e,t){return l(e.entries,function(e){return e[0]===t})}var i=n(17),u=n(159),c=n(160).getWeakData,f=n(41),d=n(35),p=n(110),h=n(125),a=n(52),m=n(37),n=n(59),y=n.set,v=n.getterFor,l=a.find,b=a.findIndex,g=i([].splice),w=0;r.prototype={get:function(e){e=o(this,e);if(e)return e[1]},has:function(e){return!!o(this,e)},set:function(e,t){var n=o(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(t){var e=b(this.entries,function(e){return e[0]===t});return~e&&g(this.entries,e,1),!!~e}},e.exports={getConstructor:function(e,n,r,o){function i(e,t,n){var r=l(e),o=c(f(t),!0);return!0===o?s(r).set(t,n):o[r.id]=n,e}var e=e(function(e,t){p(e,a),y(e,{type:n,id:w++,frozen:void 0}),null!=t&&h(t,e[o],{that:e,AS_ENTRIES:r})}),a=e.prototype,l=v(n);return u(a,{delete:function(e){var t=l(this);if(!d(e))return!1;var n=c(e);return!0===n?s(t).delete(e):n&&m(n,t.id)&&delete n[t.id]},has:function(e){var t=l(this);if(!d(e))return!1;var n=c(e);return!0===n?s(t).has(e):n&&m(n,t.id)}}),u(a,r?{get:function(e){var t,n=l(this);if(d(e))return!0===(t=c(e))?s(n).get(e):t?t[n.id]:void 0},set:function(e,t){return i(this,e,t)}}:{add:function(e){return i(this,e,!0)}}),e}}},function(e,t,n){var r=n(104).PROPER,o=n(12),i=n(193);e.exports=function(e){return o(function(){return!!i[e]()||"​᠎"!=="​᠎"[e]()||r&&i[e].name!==e})}},function(e,t,n){var r;void 0!==(n="function"==typeof(r=function(){"use strict";if(!Array.isArray)Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"};function o(e){var t=[];for(var n=0,r=e.length;n<r;n++)if(t.indexOf(e[n])===-1)t.push(e[n]);return t}var f={},d={"==":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 n===undefined?e<t:e<t&&t<n},"<=":function(e,t,n){return n===undefined?e<=t:e<=t&&t<=n},"!!":function(e){return f.truthy(e)},"!":function(e){return!f.truthy(e)},"%":function(e,t){return e%t},log:function(e){console.log(e);return e},in:function(e,t){if(!t||typeof t.indexOf==="undefined")return false;return t.indexOf(e)!==-1},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){if(t===undefined)return-e;else return 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=t===undefined?null:t;var r=this;if(typeof e==="undefined"||e===""||e===null)return r;var o=String(e).split(".");for(var i=0;i<o.length;i++){if(r===null||r===undefined)return n;r=r[o[i]];if(r===undefined)return n}return r},missing:function(){var e=[];var t=Array.isArray(arguments[0])?arguments[0]:arguments;for(var n=0;n<t.length;n++){var r=t[n];var o=f.apply({var:r},this);if(o===null||o==="")e.push(r)}return e},missing_some:function(e,t){var n=f.apply({missing:t},this);if(t.length-n.length>=e)return[];else return n}};return f.is_logic=function(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&Object.keys(e).length===1},f.truthy=function(e){if(Array.isArray(e)&&e.length===0)return false;return!!e},f.get_operator=function(e){return Object.keys(e)[0]},f.get_values=function(e){return e[f.get_operator(e)]},f.apply=function(e,t){if(Array.isArray(e))return e.map(function(e){return f.apply(e,t)});if(!f.is_logic(e))return e;var n=f.get_operator(e);var r=e[n];var o;var i;var a;var l;var s;if(!Array.isArray(r))r=[r];if(n==="if"||n=="?:"){for(o=0;o<r.length-1;o+=2)if(f.truthy(f.apply(r[o],t)))return f.apply(r[o+1],t);if(r.length===o+1)return f.apply(r[o],t);return null}else if(n==="and"){for(o=0;o<r.length;o+=1){i=f.apply(r[o],t);if(!f.truthy(i))return i}return i}else if(n==="or"){for(o=0;o<r.length;o+=1){i=f.apply(r[o],t);if(f.truthy(i))return i}return i}else if(n==="filter"){l=f.apply(r[0],t);a=r[1];if(!Array.isArray(l))return[];return l.filter(function(e){return f.truthy(f.apply(a,e))})}else if(n==="map"){l=f.apply(r[0],t);a=r[1];if(!Array.isArray(l))return[];return l.map(function(e){return f.apply(a,e)})}else if(n==="reduce"){l=f.apply(r[0],t);a=r[1];s=typeof r[2]!=="undefined"?r[2]:null;if(!Array.isArray(l))return s;return l.reduce(function(e,t){return f.apply(a,{current:t,accumulator:e})},s)}else if(n==="all"){l=f.apply(r[0],t);a=r[1];if(!Array.isArray(l)||!l.length)return false;for(o=0;o<l.length;o+=1)if(!f.truthy(f.apply(a,l[o])))return false;return true}else if(n==="none"){l=f.apply(r[0],t);a=r[1];if(!Array.isArray(l)||!l.length)return true;for(o=0;o<l.length;o+=1)if(f.truthy(f.apply(a,l[o])))return false;return true}else if(n==="some"){l=f.apply(r[0],t);a=r[1];if(!Array.isArray(l)||!l.length)return false;for(o=0;o<l.length;o+=1)if(f.truthy(f.apply(a,l[o])))return true;return false}r=r.map(function(e){return f.apply(e,t)});if(d.hasOwnProperty(n)&&typeof d[n]==="function")return d[n].apply(t,r);else if(n.indexOf(".")>0){var u=String(n).split(".");var c=d;for(o=0;o<u.length;o++){if(!c.hasOwnProperty(u[o]))throw new Error("Unrecognized operation "+n+" (failed at "+u.slice(0,o+1).join(".")+")");c=c[u[o]]}return c.apply(t,r)}throw new Error("Unrecognized operation "+n)},f.uses_data=function(e){var t=[];if(f.is_logic(e)){var n=f.get_operator(e);var r=e[n];if(!Array.isArray(r))r=[r];if(n==="var")t.push(r[0]);else r.forEach(function(e){t.push.apply(t,f.uses_data(e))})}return o(t)},f.add_operation=function(e,t){d[e]=t},f.rm_operation=function(e){delete d[e]},f.rule_like=function(e,t){if(t===e)return true;if(t==="@")return true;if(t==="number")return typeof e==="number";if(t==="string")return typeof e==="string";if(t==="array")return Array.isArray(e)&&!f.is_logic(e);if(f.is_logic(t)){if(f.is_logic(e)){var n=f.get_operator(t);var r=f.get_operator(e);if(n==="@"||n===r)return f.rule_like(f.get_values(e,false),f.get_values(t,false))}return false}if(Array.isArray(t))if(Array.isArray(e)){if(t.length!==e.length)return false;for(var o=0;o<t.length;o+=1)if(!f.rule_like(e[o],t[o]))return false;return true}else return false;return false},f})?r.call(t,n,t,e):r)&&(e.exports=n)},function(t,n,r){var o,i;//! moment-timezone.js
//! version : 0.5.34
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
!function(e){"use strict";t.exports?t.exports=e(r(64)):(i=[r(64)],void 0!==(i="function"==typeof(o=e)?o.apply(n,i):o)&&(t.exports=i))}(function(o){"use strict";void 0===o.version&&o.default&&(o=o.default);var t,u={},i={},a={},c={},f={},e=(o&&"string"==typeof o.version||j("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/"),o.version.split(".")),n=+e[0],r=+e[1];function l(e){return 96<e?e-87:64<e?e-29:e-48}function s(e){var t=0,n=e.split("."),r=n[0],o=n[1]||"",i=1,a=0,n=1;for(45===e.charCodeAt(0)&&(n=-(t=1));t<r.length;t++)a=60*a+l(r.charCodeAt(t));for(t=0;t<o.length;t++)i/=60,a+=l(o.charCodeAt(t))*i;return a*n}function d(e){for(var t=0;t<e.length;t++)e[t]=s(e[t])}function p(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=e[t[r]];return n}function h(e){for(var e=e.split("|"),t=e[2].split(" "),n=e[3].split(""),r=e[4].split(" "),o=(d(t),d(n),d(r),r),i=n.length,a=0;a<i;a++)o[a]=Math.round((o[a-1]||0)+6e4*o[a]);return o[i-1]=1/0,{name:e[0],abbrs:p(e[1].split(" "),n),offsets:p(t,n),untils:r,population:0|e[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(){for(var e,t,n=(new Date).getFullYear()-2,r=new v(new Date(n,0,1)),o=[r],i=1;i<48;i++)(t=new v(new Date(n,i,1))).offset!==r.offset&&(e=function(e,t){for(var n;n=6e4*((t.at-e.at)/12e4|0);)(n=new v(new Date(e.at+n))).offset===e.offset?e=n:t=n;return e}(r,t),o.push(e),o.push(new v(new Date(e.at+6e4)))),r=t;for(i=0;i<4;i++)o.push(new v(new Date(n+i,0,1))),o.push(new v(new Date(n+i,6,1)));return o}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(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e&&3<e.length){var t=c[_(e)];if(t)return t;j("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}for(var n,r,o=g(),i=o.length,a=function(e){for(var t,n,r=e.length,o={},i=[],a=0;a<r;a++)for(t in n=f[e[a].offset]||{})n.hasOwnProperty(t)&&(o[t]=!0);for(a in o)o.hasOwnProperty(a)&&i.push(c[a]);return i}(o),l=[],s=0;s<a.length;s++){for(n=new b(S(a[s])),r=0;r<i;r++)n.scoreOffsetAt(o[r]);l.push(n)}return l.sort(w),0<l.length?l[0].zone.name:void 0}function _(e){return(e||"").toLowerCase().replace(/\//g,"_")}function O(e){var t,n,r,o;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++){o=_(n=(r=e[t].split("|"))[0]),u[o]=e[t],c[o]=n,a=i=s=l=void 0;var i,a,l=o,s=r[2].split(" ");for(d(s),i=0;i<s.length;i++)a=s[i],f[a]=f[a]||{},f[a][l]=!0}}function S(e,t){e=_(e);var n=u[e];return n instanceof m?n:"string"==typeof n?(n=new m(n),u[e]=n):i[e]&&t!==S&&(t=S(i[e],S))?((n=u[e]=new m)._set(t),n.name=c[e],n):null}function P(e){var t,n,r,o;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)r=_((n=e[t].split("|"))[0]),o=_(n[1]),i[r]=o,c[r]=n[0],i[o]=r,c[o]=n[1]}function E(e){return E.didShowError||(E.didShowError=!0,j("moment.tz.zoneExists('"+e+"') has been deprecated in favor of !moment.tz.zone('"+e+"')")),!!S(e)}function x(e){var t="X"===e._f||"x"===e._f;return!(!e._a||void 0!==e._tzm||t)}function j(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}function C(e){var t=Array.prototype.slice.call(arguments,0,-1),n=arguments[arguments.length-1],r=S(n),t=o.utc.apply(null,t);return r&&!o.isMoment(e)&&x(t)&&t.add(r.parse(t),"minutes"),t.tz(n),t}(n<2||2==n&&r<6)&&j("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+o.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){for(var t=+e,n=this.untils,r=0;r<n.length;r++)if(t<n[r])return r},countries:function(){var t=this.name;return Object.keys(a).filter(function(e){return-1!==a[e].zones.indexOf(t)})},parse:function(e){for(var t,n,r,o=+e,i=this.offsets,a=this.untils,l=a.length-1,s=0;s<l;s++)if(t=i[s],n=i[s+1],r=i[s&&s-1],t<n&&C.moveAmbiguousForward?t=n:r<t&&C.moveInvalidForward&&(t=r),o<a[s]-6e4*t)return i[s];return i[l]},abbr:function(e){return this.abbrs[this._index(e)]},offset:function(e){return j("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++},C.version="0.5.34",C.dataVersion="",C._zones=u,C._links=i,C._names=c,C._countries=a,C.add=O,C.link=P,C.load=function(e){O(e.zones),P(e.links);var t,n,r,o=e.countries;if(o&&o.length)for(t=0;t<o.length;t++)n=(r=o[t].split("|"))[0].toUpperCase(),r=r[1].split(" "),a[n]=new y(n,r);C.dataVersion=e.version},C.zone=S,C.zoneExists=E,C.guess=function(e){return t=t&&!e?t:k()},C.names=function(){var e,t=[];for(e in c)c.hasOwnProperty(e)&&(u[e]||u[i[e]])&&c[e]&&t.push(c[e]);return t.sort()},C.Zone=m,C.unpack=h,C.unpackBase60=s,C.needsOffset=x,C.moveInvalidForward=!0,C.moveAmbiguousForward=!1,C.countries=function(){return Object.keys(a)},C.zonesForCountry=function(e,t){if(n=(n=e).toUpperCase(),!(e=a[n]||null))return null;var n=e.zones.sort();return t?n.map(function(e){return{name:e,offset:S(e).utcOffset(new Date)}}):n};var R,e=o.fn;function A(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function M(e){return function(){return this._z=null,e.apply(this,arguments)}}o.tz=C,o.defaultZone=null,o.updateOffset=function(e,t){var n,r=o.defaultZone;void 0===e._z&&(r&&x(e)&&!e._isUTC&&(e._d=o.utc(e._a)._d,e.utc().add(r.parse(e),"minutes")),e._z=r),e._z&&(r=e._z.utcOffset(e),Math.abs(r)<16&&(r/=60),void 0!==e.utcOffset?(n=e._z,e.utcOffset(-r,t),e._z=n):e.zone(r,t))},e.tz=function(e,t){if(e){if("string"!=typeof e)throw new Error("Time zone name must be a string, got "+e+" ["+typeof e+"]");return this._z=S(e),this._z?o.updateOffset(this,t):j("Moment Timezone has no data for "+e+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},e.zoneName=A(e.zoneName),e.zoneAbbr=A(e.zoneAbbr),e.utc=M(e.utc),e.local=M(e.local),e.utcOffset=(R=e.utcOffset,function(){return 0<arguments.length&&(this._z=null),R.apply(this,arguments)}),o.tz.setDefault=function(e){return(n<2||2==n&&r<9)&&j("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+o.version+"."),o.defaultZone=e?S(e):null,o};e=o.momentProperties;return"[object Array]"===Object.prototype.toString.call(e)?(e.push("_z"),e.push("_a")):e&&(e._z=null),o})},function(e,t,n){var d;(d=function(){"use strict";function u(e,t,n){void 0===t&&(t=f.DAY,n=f.HOUR);for(var r=new Date(e.getTime()-t).getTime(),o=e.getTime()+t,i=new Date(r).getTimezoneOffset(),a=r,l=null;a<o-n;){var s=new Date(a);if(s.getTimezoneOffset()!==i){l=s;break}a+=n}return t===f.DAY?u(l,f.HOUR,f.MINUTE):t===f.HOUR?u(l,f.MINUTE,f.SECOND):l}var i="s",f={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"]}},o=function(e){e=-e.getTimezoneOffset();return null!==e?e:0},a=function(){for(var e=[],t=0;t<=11;t++)for(var n=1;n<=28;n++){var r=o(new Date(f.BASELINE_YEAR,t,n));e?e[e.length-1]!==r&&e.push(r):e.push()}return e},l=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,a=null;r<n-864e5;){var l=new Date(r),s=l.getTimezoneOffset();s!==o&&(s<o&&(i=l),o<s&&(a=l),o=s),r+=864e5}return!(!i||!a)&&{s:u(i).getTime(),e:u(a).getTime()}},s=function(l,s){for(var e,t={},n=d.olson.dst_rules.zones,r=n.length,o=f.AMBIGUITIES[s],i=0;i<r;i++){var a=n[i],u=function(e){for(var t=0,n=0;n<l.length;n++)if(e.rules[n]&&l[n]){if(!(l[n].s>=e.rules[n].s&&l[n].e<=e.rules[n].e)){t="N/A";break}if(t=0,(t=(t+=Math.abs(l[n].s-e.rules[n].s))+Math.abs(e.rules[n].e-l[n].e))>f.MAX_SCORE){t="N/A";break}}var r=l,o=s,i=t,a=e;if("N/A"===i)if("Asia/Beirut"===o){if("Africa/Cairo"===a.name&&13983768e5===r[6].s&&14116788e5===r[6].e)return 0;if("Asia/Jerusalem"===a.name&&13959648e5===r[6].s&&14118588e5===r[6].e)return 0}else if("America/Santiago"===o){if("America/Asuncion"===a.name&&14124816e5===r[6].s&&1397358e6===r[6].e)return 0;if("America/Campo_Grande"===a.name&&14136912e5===r[6].s&&13925196e5===r[6].e)return 0}else if("America/Montevideo"===o){if("America/Sao_Paulo"===a.name&&14136876e5===r[6].s&&1392516e6===r[6].e)return 0}else if("Pacific/Auckland"===o&&"Pacific/Fiji"===a.name&&14142456e5===r[6].s&&13961016e5===r[6].e)return 0;return i}(n[i]);"N/A"!==u&&(t[a.name]=u)}for(e in t)if(t.hasOwnProperty(e))for(var c=0;c<o.length;c++)if(o[c]===e)return e;return s};return{determine:function(e){var t,n,r=!1,o=(o=0,1<(t=a()).length&&(o=t[0]-t[1]),3<t.length?t[0]+",1,weird":o<0?t[0]+",1":0<o?t[1]+",1,"+i:t[0]+",0");return(r=!e&&void 0!==e?r:function(){var e;if(Intl&&"undefined"!=typeof Intl&&void 0!==Intl.DateTimeFormat&&(void 0!==(e=Intl.DateTimeFormat())&&void 0!==e.resolvedOptions))return(e=e.resolvedOptions().timeZone)&&(-1<e.indexOf("/")||"UTC"===e)?e:void 0}())||(r=d.olson.timezones[o],void 0!==f.AMBIGUITIES[r]&&(t=r,n=function(){for(var e=[],t=0;t<d.olson.dst_rules.years.length;t++){var n=l(d.olson.dst_rules.years[t]);e.push(n)}return e}(),r=function(e){for(var t=0;t<e.length;t++)if(!1!==e[t])return!0;return!1}(n)?s(n,t):t)),{name:function(){return r},using_intl:e||void 0===e,needle:o,offsets:a()}}}}()).olson=d.olson||{},d.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"},d.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=d:null!==n(383)&&null!=n(384)?void 0!==(n=function(){return d}.apply(t,[]))&&(e.exports=n):window.jstz=d},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e){!function(e){t.exports=e}.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){
/*! @license DOMPurify 2.3.10 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.10/LICENSE */
e.exports=function(){"use strict";function ze(e){"@babel/helpers - typeof";return ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze(e)}function l(e,t){l=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return l(e,t)}function r(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(e){return false}}function o(e,t,n){if(r())o=Reflect.construct;else o=function e(t,n,r){var o=[null];o.push.apply(o,n);var i=Function.bind.apply(t,o);var a=new i;if(r)l(a,r.prototype);return a};return o.apply(null,arguments)}function Be(e){return t(e)||n(e)||i(e)||s()}function t(e){if(Array.isArray(e))return a(e)}function n(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function i(e,t){if(!e)return;if(typeof e==="string")return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}function a(e,t){if(t==null||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(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h=Object.hasOwnProperty,u=Object.setPrototypeOf,m=Object.isFrozen,y=Object.getPrototypeOf,v=Object.getOwnPropertyDescriptor,He=Object.freeze,e=Object.seal,b=Object.create,c=typeof Reflect!=="undefined"&&Reflect,f=c.apply,d=c.construct;if(!f)f=function e(t,n,r){return t.apply(n,r)};if(!He)He=function e(t){return t};if(!e)e=function e(t){return t};if(!d)d=function e(t,n){return o(t,Be(n))};var ut=p(Array.prototype.forEach),qe=p(Array.prototype.pop),We=p(Array.prototype.push),Ke=p(String.prototype.toLowerCase),ct=p(String.prototype.match),Ye=p(String.prototype.replace),ft=p(String.prototype.indexOf),dt=p(String.prototype.trim),Ge=p(RegExp.prototype.test),$e=g(TypeError);function p(o){return 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];return f(o,e,n)}}function g(r){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(r,t)}}function Je(e,t,n){n=n?n:Ke;if(u)u(e,null);var r=t.length;while(r--){var o=t[r];if(typeof o==="string"){var i=n(o);if(i!==o){if(!m(t))t[r]=i;o=i}}e[o]=true}return e}function Qe(e){var t=b(null);var n;for(n in e)if(f(h,e,[n]))t[n]=e[n];return t}function Ze(e,t){while(e!==null){var n=v(e,t);if(n){if(n.get)return p(n.get);if(typeof n.value==="function")return p(n.value)}e=y(e)}function r(e){console.warn("fallback value for",e);return null}return r}var Xe=He(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),et=He(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),tt=He(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),pt=He(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),nt=He(["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"]),ht=He(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),rt=He(["#text"]),ot=He(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),it=He(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),at=He(["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"]),lt=He(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),mt=e(/\{\{[\w\W]*|[\w\W]*\}\}/gm),yt=e(/<%[\w\W]*|[\w\W]*%>/gm),vt=e(/^data-[\-\w.\u00B7-\uFFFF]/),bt=e(/^aria-[\-\w]+$/),gt=e(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wt=e(/^(?:\w+script|data):/i),kt=e(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_t=e(/^html$/i),Ot=function e(){return typeof window==="undefined"?null:window},St=function e(t,n){if(ze(t)!=="object"||typeof t.createPolicy!=="function")return null;var r=null;var o="data-tt-policy-suffix";if(n.currentScript&&n.currentScript.hasAttribute(o))r=n.currentScript.getAttribute(o);var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function e(t){return t},createScriptURL:function e(t){return t}})}catch(e){console.warn("TrustedTypes policy "+i+" could not be created.");return null}},w;function st(){var c=arguments.length>0&&arguments[0]!==undefined?arguments[0]:Ot();var d=function e(t){return st(t)};d.version="2.3.10";d.removed=[];if(!c||!c.document||c.document.nodeType!==9){d.isSupported=false;return d}var f=c.document;var l=c.document;var I=c.DocumentFragment,L=c.HTMLTemplateElement,p=c.Node,V=c.Element,n=c.NodeFilter,N=c.NamedNodeMap,F=N===void 0?c.NamedNodeMap||c.MozNamedAttrMap:N,U=c.HTMLFormElement,z=c.DOMParser,h=c.trustedTypes;var e=V.prototype;var B=Ze(e,"cloneNode");var H=Ze(e,"nextSibling");var q=Ze(e,"childNodes");var s=Ze(e,"parentNode");if(typeof L==="function"){var t=l.createElement("template");if(t.content&&t.content.ownerDocument)l=t.content.ownerDocument}var m=St(h,f);var W=m?m.createHTML(""):"";var r=l,u=r.implementation,K=r.createNodeIterator,Y=r.createDocumentFragment,G=r.getElementsByTagName;var $=f.importNode;var J={};try{J=Qe(l).documentMode?l.documentMode:{}}catch(e){}var o={};d.isSupported=typeof s==="function"&&u&&typeof u.createHTMLDocument!=="undefined"&&J!==9;var Q=mt,Z=yt,X=vt,ee=bt,te=wt,ne=kt;var re=gt;var y=null;var oe=Je({},[].concat(Be(Xe),Be(et),Be(tt),Be(nt),Be(rt)));var v=null;var ie=Je({},[].concat(Be(ot),Be(it),Be(at),Be(lt)));var b=Object.seal(Object.create(null,{tagNameCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeNameCheck:{writable:true,configurable:false,enumerable:true,value:null},allowCustomizedBuiltInElements:{writable:true,configurable:false,enumerable:true,value:false}}));var g=null;var ae=null;var le=true;var se=true;var ue=false;var w=false;var k=false;var ce=false;var fe=false;var _=false;var O=false;var S=false;var de=true;var pe=true;var P=false;var i={};var E=null;var he=Je({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);var me=null;var ye=Je({},["audio","video","img","source","image","track"]);var ve=null;var be=Je({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]);var ge="http://www.w3.org/1998/Math/MathML";var we="http://www.w3.org/2000/svg";var x="http://www.w3.org/1999/xhtml";var j=x;var ke=false;var C;var _e=["application/xhtml+xml","text/html"];var Oe="text/html";var R;var a=null;var Se=l.createElement("form");var Pe=function e(t){return t instanceof RegExp||t instanceof Function};var Ee=function e(t){if(a&&a===t)return;if(!t||ze(t)!=="object")t={};t=Qe(t);C=_e.indexOf(t.PARSER_MEDIA_TYPE)===-1?C=Oe:C=t.PARSER_MEDIA_TYPE;R=C==="application/xhtml+xml"?function(e){return e}:Ke;y="ALLOWED_TAGS"in t?Je({},t.ALLOWED_TAGS,R):oe;v="ALLOWED_ATTR"in t?Je({},t.ALLOWED_ATTR,R):ie;ve="ADD_URI_SAFE_ATTR"in t?Je(Qe(be),t.ADD_URI_SAFE_ATTR,R):be;me="ADD_DATA_URI_TAGS"in t?Je(Qe(ye),t.ADD_DATA_URI_TAGS,R):ye;E="FORBID_CONTENTS"in t?Je({},t.FORBID_CONTENTS,R):he;g="FORBID_TAGS"in t?Je({},t.FORBID_TAGS,R):{};ae="FORBID_ATTR"in t?Je({},t.FORBID_ATTR,R):{};i="USE_PROFILES"in t?t.USE_PROFILES:false;le=t.ALLOW_ARIA_ATTR!==false;se=t.ALLOW_DATA_ATTR!==false;ue=t.ALLOW_UNKNOWN_PROTOCOLS||false;w=t.SAFE_FOR_TEMPLATES||false;k=t.WHOLE_DOCUMENT||false;_=t.RETURN_DOM||false;O=t.RETURN_DOM_FRAGMENT||false;S=t.RETURN_TRUSTED_TYPE||false;fe=t.FORCE_BODY||false;de=t.SANITIZE_DOM!==false;pe=t.KEEP_CONTENT!==false;P=t.IN_PLACE||false;re=t.ALLOWED_URI_REGEXP||re;j=t.NAMESPACE||x;if(t.CUSTOM_ELEMENT_HANDLING&&Pe(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck))b.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck;if(t.CUSTOM_ELEMENT_HANDLING&&Pe(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck))b.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;if(t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==="boolean")b.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;if(w)se=false;if(O)_=true;if(i){y=Je({},Be(rt));v=[];if(i.html===true){Je(y,Xe);Je(v,ot)}if(i.svg===true){Je(y,et);Je(v,it);Je(v,lt)}if(i.svgFilters===true){Je(y,tt);Je(v,it);Je(v,lt)}if(i.mathMl===true){Je(y,nt);Je(v,at);Je(v,lt)}}if(t.ADD_TAGS){if(y===oe)y=Qe(y);Je(y,t.ADD_TAGS,R)}if(t.ADD_ATTR){if(v===ie)v=Qe(v);Je(v,t.ADD_ATTR,R)}if(t.ADD_URI_SAFE_ATTR)Je(ve,t.ADD_URI_SAFE_ATTR,R);if(t.FORBID_CONTENTS){if(E===he)E=Qe(E);Je(E,t.FORBID_CONTENTS,R)}if(pe)y["#text"]=true;if(k)Je(y,["html","head","body"]);if(y.table){Je(y,["tbody"]);delete g.tbody}if(He)He(t);a=t};var xe=Je({},["mi","mo","mn","ms","mtext"]);var je=Je({},["foreignobject","desc","title","annotation-xml"]);var Ce=Je({},["title","style","font","a","script"]);var A=Je({},et);Je(A,tt);Je(A,pt);var Re=Je({},nt);Je(Re,ht);var Ae=function e(t){var n=s(t);if(!n||!n.tagName)n={namespaceURI:x,tagName:"template"};var r=Ke(t.tagName);var o=Ke(n.tagName);if(t.namespaceURI===we){if(n.namespaceURI===x)return r==="svg";if(n.namespaceURI===ge)return r==="svg"&&(o==="annotation-xml"||xe[o]);return Boolean(A[r])}if(t.namespaceURI===ge){if(n.namespaceURI===x)return r==="math";if(n.namespaceURI===we)return r==="math"&&je[o];return Boolean(Re[r])}if(t.namespaceURI===x){if(n.namespaceURI===we&&!je[o])return false;if(n.namespaceURI===ge&&!xe[o])return false;return!Re[r]&&(Ce[r]||!A[r])}return false};var M=function e(t){We(d.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=W}catch(e){t.remove()}}};var Me=function e(t,n){try{We(d.removed,{attribute:n.getAttributeNode(t),from:n})}catch(e){We(d.removed,{attribute:null,from:n})}n.removeAttribute(t);if(t==="is"&&!v[t])if(_||O)try{M(n)}catch(e){}else try{n.setAttribute(t,"")}catch(e){}};var Te=function e(t){var n;var r;if(fe)t="<remove></remove>"+t;else{var o=ct(t,/^[\r\n\t ]+/);r=o&&o[0]}if(C==="application/xhtml+xml")t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>";var i=m?m.createHTML(t):t;if(j===x)try{n=(new z).parseFromString(i,C)}catch(e){}if(!n||!n.documentElement){n=u.createDocument(j,"template",null);try{n.documentElement.innerHTML=ke?"":i}catch(e){}}var a=n.body||n.documentElement;if(t&&r)a.insertBefore(l.createTextNode(r),a.childNodes[0]||null);if(j===x)return G.call(n,k?"html":"body")[0];return k?n.documentElement:a};var De=function e(t){return K.call(t.ownerDocument||t,t,n.SHOW_ELEMENT|n.SHOW_COMMENT|n.SHOW_TEXT,null,false)};var Ie=function e(t){return t instanceof U&&(typeof t.nodeName!=="string"||typeof t.textContent!=="string"||typeof t.removeChild!=="function"||!(t.attributes instanceof F)||typeof t.removeAttribute!=="function"||typeof t.setAttribute!=="function"||typeof t.namespaceURI!=="string"||typeof t.insertBefore!=="function")};var T=function e(t){return ze(p)==="object"?t instanceof p:t&&ze(t)==="object"&&typeof t.nodeType==="number"&&typeof t.nodeName==="string"};var D=function e(t,n,r){if(!o[t])return;ut(o[t],function(e){e.call(d,n,r,a)})};var Le=function e(t){var n;D("beforeSanitizeElements",t,null);if(Ie(t)){M(t);return true}if(Ge(/[\u0080-\uFFFF]/,t.nodeName)){M(t);return true}var r=R(t.nodeName);D("uponSanitizeElement",t,{tagName:r,allowedTags:y});if(t.hasChildNodes()&&!T(t.firstElementChild)&&(!T(t.content)||!T(t.content.firstElementChild))&&Ge(/<[/\w]/g,t.innerHTML)&&Ge(/<[/\w]/g,t.textContent)){M(t);return true}if(r==="select"&&Ge(/<template/i,t.innerHTML)){M(t);return true}if(!y[r]||g[r]){if(!g[r]&&Ne(r)){if(b.tagNameCheck instanceof RegExp&&Ge(b.tagNameCheck,r))return false;if(b.tagNameCheck instanceof Function&&b.tagNameCheck(r))return false}if(pe&&!E[r]){var o=s(t)||t.parentNode;var i=q(t)||t.childNodes;if(i&&o){var a=i.length;for(var l=a-1;l>=0;--l)o.insertBefore(B(i[l],true),H(t))}}M(t);return true}if(t instanceof V&&!Ae(t)){M(t);return true}if((r==="noscript"||r==="noembed")&&Ge(/<\/no(script|embed)/i,t.innerHTML)){M(t);return true}if(w&&t.nodeType===3){n=t.textContent;n=Ye(n,Q," ");n=Ye(n,Z," ");if(t.textContent!==n){We(d.removed,{element:t.cloneNode()});t.textContent=n}}D("afterSanitizeElements",t,null);return false};var Ve=function e(t,n,r){if(de&&(n==="id"||n==="name")&&(r in l||r in Se))return false;if(se&&!ae[n]&&Ge(X,n));else if(le&&Ge(ee,n));else if(!v[n]||ae[n])if(Ne(t)&&(b.tagNameCheck instanceof RegExp&&Ge(b.tagNameCheck,t)||b.tagNameCheck instanceof Function&&b.tagNameCheck(t))&&(b.attributeNameCheck instanceof RegExp&&Ge(b.attributeNameCheck,n)||b.attributeNameCheck instanceof Function&&b.attributeNameCheck(n))||n==="is"&&b.allowCustomizedBuiltInElements&&(b.tagNameCheck instanceof RegExp&&Ge(b.tagNameCheck,r)||b.tagNameCheck instanceof Function&&b.tagNameCheck(r)));else return false;else if(ve[n]);else if(Ge(re,Ye(r,ne,"")));else if((n==="src"||n==="xlink:href"||n==="href")&&t!=="script"&&ft(r,"data:")===0&&me[t]);else if(ue&&!Ge(te,Ye(r,ne,"")));else if(!r);else return false;return true};var Ne=function e(t){return t.indexOf("-")>0};var Fe=function e(t){var n;var r;var o;var i;D("beforeSanitizeAttributes",t,null);var a=t.attributes;if(!a)return;var l={attrName:"",attrValue:"",keepAttr:true,allowedAttributes:v};i=a.length;while(i--){n=a[i];var s=n,u=s.name,c=s.namespaceURI;r=u==="value"?n.value:dt(n.value);o=R(u);l.attrName=o;l.attrValue=r;l.keepAttr=true;l.forceKeepAttr=undefined;D("uponSanitizeAttribute",t,l);r=l.attrValue;if(l.forceKeepAttr)continue;Me(u,t);if(!l.keepAttr)continue;if(Ge(/\/>/i,r)){Me(u,t);continue}if(w){r=Ye(r,Q," ");r=Ye(r,Z," ")}var f=R(t.nodeName);if(!Ve(f,o,r))continue;if(m&&ze(h)==="object"&&typeof h.getAttributeType==="function")if(c);else switch(h.getAttributeType(f,o)){case"TrustedHTML":r=m.createHTML(r);break;case"TrustedScriptURL":r=m.createScriptURL(r);break}try{if(c)t.setAttributeNS(c,u,r);else t.setAttribute(u,r);qe(d.removed)}catch(e){}}D("afterSanitizeAttributes",t,null)};var Ue=function e(t){var n;var r=De(t);D("beforeSanitizeShadowDOM",t,null);while(n=r.nextNode()){D("uponSanitizeShadowNode",n,null);if(Le(n))continue;if(n.content instanceof I)e(n.content);Fe(n)}D("afterSanitizeShadowDOM",t,null)};d.sanitize=function(e,t){var n;var r;var o;var i;var a;ke=!e;if(ke)e="\x3c!--\x3e";if(typeof e!=="string"&&!T(e))if(typeof e.toString!=="function")throw $e("toString is not a function");else{e=e.toString();if(typeof e!=="string")throw $e("dirty is not a string, aborting")}if(!d.isSupported){if(ze(c.toStaticHTML)==="object"||typeof c.toStaticHTML==="function"){if(typeof e==="string")return c.toStaticHTML(e);if(T(e))return c.toStaticHTML(e.outerHTML)}return e}if(!ce)Ee(t);d.removed=[];if(typeof e==="string")P=false;if(P){if(e.nodeName){var l=R(e.nodeName);if(!y[l]||g[l])throw $e("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof p){n=Te("\x3c!----\x3e");r=n.ownerDocument.importNode(e,true);if(r.nodeType===1&&r.nodeName==="BODY")n=r;else if(r.nodeName==="HTML")n=r;else n.appendChild(r)}else{if(!_&&!w&&!k&&e.indexOf("<")===-1)return m&&S?m.createHTML(e):e;n=Te(e);if(!n)return _?null:S?W:""}if(n&&fe)M(n.firstChild);var s=De(P?e:n);while(o=s.nextNode()){if(o.nodeType===3&&o===i)continue;if(Le(o))continue;if(o.content instanceof I)Ue(o.content);Fe(o);i=o}i=null;if(P)return e;if(_){if(O){a=Y.call(n.ownerDocument);while(n.firstChild)a.appendChild(n.firstChild)}else a=n;if(v.shadowroot)a=$.call(f,a,true);return a}var u=k?n.outerHTML:n.innerHTML;if(k&&y["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&Ge(_t,n.ownerDocument.doctype.name))u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u;if(w){u=Ye(u,Q," ");u=Ye(u,Z," ")}return m&&S?m.createHTML(u):u};d.setConfig=function(e){Ee(e);ce=true};d.clearConfig=function(){a=null;ce=false};d.isValidAttribute=function(e,t,n){if(!a)Ee({});var r=R(e);var o=R(t);return Ve(r,o,n)};d.addHook=function(e,t){if(typeof t!=="function")return;o[e]=o[e]||[];We(o[e],t)};d.removeHook=function(e){if(o[e])return qe(o[e])};d.removeHooks=function(e){if(o[e])o[e]=[]};d.removeAllHooks=function(){o={}};return d}return st()}()},function(e,t,n){var r=n(388),n=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=n},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(390),o=n(270);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(201);e.exports=function(e){return r(e,4)}},function(e,t,n){var r=n(393),o=n(396);e.exports=function(e,t){return e&&r(e,o(t))}},function(e,t,n){var r=n(394),o=n(202);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){n=n(395)();e.exports=n},function(e,t){e.exports=function(s){return function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var l=i[s?a:++r];if(!1===t(o[l],l,o))break}return e}}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(398);e.exports=function(e){return r(e)&&e!=+e}},function(e,t,n){var r=n(163),o=n(129);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){n=n(203)(Object.getPrototypeOf,Object);e.exports=n},function(e,t,n){n=n(402)("round");e.exports=n},function(e,t,n){var r=n(204),i=n(205),a=n(274),l=n(112),s=r.isFinite,u=Math.min;e.exports=function(e){var o=Math[e];return function(e,t){var n,r;return e=a(e),(t=null==t?0:u(i(t),292))&&s(e)?(r=(l(e)+"e").split("e"),n=o(r[0]+"e"+(+r[1]+t)),+((r=(l(n)+"e").split("e"))[0]+"e"+(+r[1]-t))):o(e)}}},function(t,e,n){!function(e){e="object"==typeof e&&e&&e.Object===Object&&e;t.exports=e}.call(this,n(54))},function(e,t,n){var l=n(275),s=n(276),u=n(205),c=Math.ceil,f=Math.max;e.exports=function(e,t,n){t=(n?s(e,t,n):void 0===t)?1:f(u(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Array(c(r/t));o<r;)a[i++]=l(e,o,o+=t);return a}},function(e,t,n){var o=n(406),i=n(277),a=n(205),l=n(112),s=Math.ceil,u=Math.floor;e.exports=function(e,t,n){e=l(e);var r=(t=a(t))?i(e):0;return!t||t<=r?e:o(u(t=(t-r)/2),n)+e+o(s(t),n)}},function(e,t,n){var r=n(407),o=n(206),i=n(207),a=n(164),l=n(277),s=n(208),u=Math.ceil;e.exports=function(e,t){var n=(t=void 0===t?" ":o(t)).length;return n<2?n?r(t,e):t:(n=r(t,u(e/l(t))),a(t)?i(s(n),0,e).join(""):n.slice(0,e))}},function(e,t){var r=Math.floor;e.exports=function(e,t){var n="";if(!(!e||t<1||9007199254740991<t))for(;t%2&&(n+=e),(t=r(t/2))&&(e+=e),t;);return n}},function(e,t,n){n=n(278)("length");e.exports=n},function(e,t,n){n=n(278)("length");e.exports=n},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){e.exports=function(e){return e.split("")}},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,u){u.defaults={},u.set=function(e,t,n){var n=n||{},r=u.defaults,o=n.expires||r.expires,i=n.domain||r.domain,a=void 0!==n.path?n.path:void 0!==r.path?r.path:"/",l=(void 0!==n.secure?n:r).secure,s=(void 0!==n.httponly?n:r).httponly,n=(void 0!==n.samesite?n:r).samesite,r=o?new Date("number"==typeof o?(new Date).getTime()+864e5*o:o):0;document.cookie=e.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+t.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(r&&0<=r.getTime()?";expires="+r.toUTCString():"")+(i?";domain="+i:"")+(a?";path="+a:"")+(l?";secure":"")+(s?";httponly":"")+(n?";samesite="+n:"")},u.get=function(e){for(var t=document.cookie.split(";");t.length;){var n=t.pop(),r=(r=n.indexOf("="))<0?n.length:r;if(decodeURIComponent(n.slice(0,r).replace(/^\s+/,""))===e)return decodeURIComponent(n.slice(r+1))}return null},u.erase=function(e,t){u.set(e,"",{expires:-1,domain:t&&t.domain,path:t&&t.path,secure:0,httponly:0})},u.all=function(){for(var e={},t=document.cookie.split(";");t.length;){var n=t.pop(),r=(r=n.indexOf("="))<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 o=a(n(10)),r=a(n(415)),i=a(n(419)),n=a(n(420));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function")}var e,t,n;return e=r,n=[{key:"addProvider",value:function(e,t,n){r.providers[e]=r.providers[e]||{},r.providers[e][t]=n}},{key:"addProviders",value:function(e,t){r.providers[e]=o.default.merge(r.providers[e],t)}},{key:"getProvider",value:function(e,t){if(r.providers[e]&&r.providers[e][t])return r.providers[e][t]}},{key:"getProviders",value:function(e){if(r.providers[e])return r.providers[e]}}],(t=null)&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),r}();t.default=s,t=s,s="providers",r={address:r.default,auth:i.default,storage:n.default},s in t?Object.defineProperty(t,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[s]=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(20);var r,o=n(416),i=n(417),a=n(280),n=n(418);function l(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}l(r={},o.AzureAddressProvider.name,o.AzureAddressProvider),l(r,i.CustomAddressProvider.name,i.CustomAddressProvider),l(r,a.GoogleAddressProvider.name,a.GoogleAddressProvider),l(r,n.NominatimAddressProvider.name,n.NominatimAddressProvider),t.default=r},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,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 l(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=s(n),t=(e=r?(e=s(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.AzureAddressProvider=void 0,n(9);n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e);var n,r=l(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,e=[{key:"name",get:function(){return"azure"}},{key:"displayName",get:function(){return"Azure Maps"}}],(n=[{key:"defaultOptions",get:function(){return{params:{"api-version":"1.0",typeahead:"true"}}}},{key:"responseProperty",get:function(){return"results"}},{key:"displayValueProperty",get:function(){return"address.freeformAddress"}},{key:"getRequestUrl",value:function(){var e=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).params;return"https://atlas.microsoft.com/search/address/json?".concat(this.serialize(e))}}])&&i(t.prototype,n),e&&i(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(n(165).AddressProvider);t.AzureAddressProvider=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=u(n),t=(e=r?(e=u(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(1),n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.CustomAddressProvider=void 0,n(0),n(9);n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e);var n,r=s(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,e=[{key:"name",get:function(){return"custom"}},{key:"displayName",get:function(){return"Custom"}}],(n=[{key:"queryProperty",get:function(){return this.options.queryProperty||a(u(o.prototype),"queryProperty",this)}},{key:"responseProperty",get:function(){return this.options.responseProperty||a(u(o.prototype),"responseProperty",this)}},{key:"displayValueProperty",get:function(){return this.options.displayValueProperty||a(u(o.prototype),"displayValueProperty",this)}},{key:"getRequestUrl",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.params,e=e.url;return"".concat(e,"?").concat(this.serialize(t))}}])&&i(t.prototype,n),e&&i(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(n(165).AddressProvider);t.CustomAddressProvider=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,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 l(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=s(n),t=(e=r?(e=s(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.NominatimAddressProvider=void 0,n(9);n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e);var n,r=l(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,e=[{key:"name",get:function(){return"nominatim"}},{key:"displayName",get:function(){return"OpenStreetMap Nominatim"}}],(n=[{key:"defaultOptions",get:function(){return{params:{addressdetails:"1",format:"json"}}}},{key:"queryProperty",get:function(){return"q"}},{key:"displayValueProperty",get:function(){return"display_name"}},{key:"getRequestUrl",value:function(){var e=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).params;return"https://nominatim.openstreetmap.org/search?".concat(this.serialize(e))}}])&&i(t.prototype,n),e&&i(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(n(165).AddressProvider);t.NominatimAddressProvider=n},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=u(n(421)),o=u(n(422)),i=u(n(428)),a=u(n(429)),l=u(n(430)),s=u(n(431)),n=u(n(432));function u(e){return e&&e.__esModule?e:{default:e}}r={base64:r.default,dropbox:o.default,s3:i.default,url:l.default,azure:a.default,indexeddb:s.default,googledrive:n.default};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(n=n(24))&&n.__esModule?n:{default:n};function r(){return{title:"Base64",name:"base64",uploadFile:function(n,r){var o=this,i=new FileReader;return new a.default(function(t,e){i.onload=function(e){e=e.target.result;t({storage:"base64",name:r,url:e,size:n.size,type:n.type})},i.onerror=function(){return e(o)},i.readAsDataURL(n)})},downloadFile:function(e){return a.default.resolve(e)}}}r.title="Base64",t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0);var r,o=(r=n(24))&&r.__esModule?r:{default:r},p=n(166);function i(d){return{uploadFile:function(i,a,l,s,e,t,n,u,c,f){return new o.default(function(t,n){var r=new XMLHttpRequest,e=("function"==typeof s&&(r.upload.onprogress=s),"function"==typeof f&&f(function(){return r.abort()}),new FormData),o=(e.append("name",a),e.append("dir",l),e.append("file",i),r.onerror=function(e){e.networkError=!0,n(e)},r.onload=function(){var e;200<=r.status&&r.status<300?((e=JSON.parse(r.response)).storage="dropbox",e.size=i.size,e.type=i.type,e.groupId=c,e.groupPermissions=u,e.url=e.path_lower,t(e)):n(r.response||"Unable to upload file")},r.onabort=n,r.open("POST","".concat(d.formUrl,"/storage/dropbox")),(0,p.setXhrHeaders)(d,r),d.getToken());o&&r.setRequestHeader("x-jwt-token",o),r.send(e)})},downloadFile:function(e){var t=d.getToken();return e.url="".concat(d.formUrl,"/storage/dropbox?path_lower=").concat(e.path_lower).concat(t?"&x-jwt-token=".concat(t):""),o.default.resolve(e)}}}i.title="Dropbox",t.default=i},function(e,t,n){var r=n(206),o=n(424),i=n(207),a=n(426),l=n(427),s=n(208),u=n(112);e.exports=function(e,t,n){return(e=u(e))&&(n||void 0===t)?o(e):e&&(t=r(t))?(n=s(e),e=s(t),t=l(n,e),e=a(n,e)+1,i(n,t,e).join("")):e}},function(e,t,n){var r=n(425),o=/^\s+/;e.exports=function(e){return e&&e.slice(0,r(e)+1).replace(o,"")}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var r=n(167);e.exports=function(e,t){for(var n=e.length;n--&&-1<r(t,e[n],0););return n}},function(e,t,n){var o=n(167);e.exports=function(e,t){for(var n=-1,r=e.length;++n<r&&-1<o(t,e[n],0););return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(51);var r=o(n(24)),f=o(n(166));function o(e){return e&&e.__esModule?e:{default:e}}function i(c){return{uploadFile:function(o,i,a,e,t,n,r,l,s,u){return f.default.upload(c,"s3",function(e,t){if(t.data.fileName=i,t.data.key=f.default.path([t.data.key,a,i]),t.signed)return e.openAndSetHeaders("PUT",t.signed),e.setRequestHeader("Content-Type",o.type),o;var n,r=new FormData;for(n in t.data)r.append(n,t.data[n]);return r.append("file",o),e.openAndSetHeaders("POST",t.url),r},o,i,a,e,l,s,u).then(function(e){return{storage:"s3",name:i,bucket:e.bucket,key:e.data.key,url:f.default.path([e.url,e.data.key]),acl:e.data.acl,size:o.size,type:o.type}})},downloadFile:function(e){return"public-read"!==e.acl?c.makeRequest("file","".concat(c.formUrl,"/storage/s3?bucket=").concat(f.default.trim(e.bucket),"&key=").concat(f.default.trim(e.key)),"GET"):r.default.resolve(e)}}}i.title="S3",t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(51),n(20);var f=(n=n(166))&&n.__esModule?n:{default:n};function r(c){return{uploadFile:function(n,e,t,r,o,i,a,l,s,u){return f.default.upload(c,"azure",function(e,t){return e.openAndSetHeaders("PUT",t.url),e.setRequestHeader("Content-Type",n.type),e.setRequestHeader("x-ms-blob-type","BlockBlob"),n},n,e,t,r,l,s,u).then(function(){return{storage:"azure",name:f.default.path([t,e]),size:n.size,type:n.type,groupPermissions:l,groupId:s}})},downloadFile:function(e){return c.makeRequest("file","".concat(c.formUrl,"/storage/azure?name=").concat(f.default.trim(e.name)),"GET")}}}r.title="Azure File Services",t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(20);var o=(n=n(24))&&n.__esModule?n:{default:n};function d(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function r(b){function f(f,d,p,h,m,y,v){return new o.default(function(n,r){var o=new XMLHttpRequest,e="string"==typeof h,t=new FormData;if("function"==typeof y&&(o.upload.onprogress=y),"function"==typeof v&&v(function(){return o.abort()}),!e)for(var i in h)t.append(i,h[i]);o.onload=function(){if(200<=o.status&&o.status<300){var t={};try{t=(t="string"==typeof o.response?JSON.parse(o.response):{})&&t.data?t.data:t}catch(e){t={}}var e=t.hasOwnProperty("url")?t.url:"".concat(o.responseURL,"/").concat(d);e&&"/"===e[0]&&(e="".concat(f).concat(e)),n({url:e,data:t})}else r(o.response||"Unable to upload file")},o.onerror=function(){return r(o)},o.onabort=function(){return r(o)};var a,l=f+(-1<f.indexOf("?")?"&":"?");for(a in p)l+="".concat(a,"=").concat(p[a],"&");"&"===l[l.length-1]&&(l=l.substr(0,l.length-1)),o.open("POST",l),e&&o.setRequestHeader("Content-Type","application/json");var s=b.getToken();if(s&&o.setRequestHeader("x-jwt-token",s),m){var u,c="string"==typeof m?JSON.parse(m):m;for(u in c)o[u]=c[u]}o.send(e?h:t)})}return{title:"Url",name:"url",uploadFile:function(n,r,o,i,a,l,s,e,t,u){function c(t){var e;return f(a,r,{baseUrl:encodeURIComponent(b.projectUrl),project:t?t.project:"",form:t?t._id:""},(d(e={},s,n),d(e,"name",r),d(e,"dir",o),e),l,i,u).then(function(e){return e.data=e.data||{},e.data.baseUrl=b.projectUrl,e.data.project=t?t.project:"",e.data.form=t?t._id:"",{storage:"url",name:r,url:e.url,size:n.size,type:n.type,data:e.data}})}return n.private&&b.formId?b.loadForm().then(c):c()},deleteFile:function(r){return new o.default(function(e,t){var n=new XMLHttpRequest;n.open("DELETE",r.url,!0),n.onload=function(){200<=n.status&&n.status<300?e("File deleted"):t(n.response||"Unable to delete file")},n.send(null)})},downloadFile:function(e){return e.private?(b.submissionId&&e.data&&(e.data.submission=b.submissionId),f(e.url,e.name,{},JSON.stringify(e)).then(function(e){return e.data})):o.default.resolve(e)}}}r.title="Url",t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(20);var u=n(1140),r=(n=n(24))&&n.__esModule?n:{default:n};function o(){return{title:"indexedDB",name:"indexeddb",uploadFile:function(i,e,t,n,a,l){var s=this;if("indexedDB"in window)return new r.default(function(t){var e=indexedDB.open(l.indexeddb,3);e.onsuccess=function(e){e=e.target.result;t(e)},e.onupgradeneeded=function(e){e.target.result.createObjectStore(l.indexeddbTable)}}).then(function(o){var t=new FileReader;return new r.default(function(r,e){t.onload=function(){var e=new Blob([i],{type:i.type}),t=(0,u.v4)(e),e={id:t,data:e,name:i.name,size:i.size,type:i.type,url:a},n=o.transaction([l.indexeddbTable],"readwrite");n.objectStore(l.indexeddbTable).put(e,t).onerror=function(e){console.log("error storing data"),console.error(e)},n.oncomplete=function(){r({storage:"indexeddb",name:i.name,size:i.size,type:i.type,url:a,id:t})}},t.onerror=function(){return e(s)},t.readAsDataURL(i)})});console.log("This browser doesn't support IndexedDB")},downloadFile:function(a,n){var l=this;return new r.default(function(t){indexedDB.open(n.indexeddb,3).onsuccess=function(e){e=e.target.result;t(e)}}).then(function(t){return new r.default(function(r,o){var e=t.transaction([n.indexeddbTable],"readonly"),i=e.objectStore(n.indexeddbTable).get(a.id);i.onsuccess=function(){e.oncomplete=function(){var t=i.result,e=new File([i.result.data],a.name,{type:i.result.type}),n=new FileReader;n.onload=function(e){t.url=e.target.result,t.storage=a.storage,r(t)},n.onerror=function(){return o(l)},n.readAsDataURL(e)}},i.onerror=function(){return o(l)}})})},deleteFile:function(i,a){var l=this;return new r.default(function(t){indexedDB.open(a.indexeddb,3).onsuccess=function(e){e=e.target.result;t(e)}}).then(function(o){return new r.default(function(t,e){var n=o.transaction([a.indexeddbTable],"readwrite"),r=n.objectStore(a.indexeddbTable).delete(i.id);r.onsuccess=function(){n.oncomplete=function(){var e=r.result;t(e)}},r.onerror=function(){return e(l)}})})}}}o.title="IndexedDB",t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0);var r,o=(r=n(24))&&r.__esModule?r:{default:r},p=n(166);function i(d){return{uploadFile:function(i,a,l,s,e,t,n,u,c,f){return new o.default(function(t,n){var r=new XMLHttpRequest,e=("function"==typeof s&&(r.upload.onprogress=s),"function"==typeof f&&f(function(){return r.abort()}),new FormData),o=(e.append("name",a),e.append("dir",l),e.append("file",i),r.onerror=function(e){e.networkError=!0,n(e)},r.onload=function(){var e;200<=r.status&&r.status<300?((e=JSON.parse(r.response)).storage="googledrive",e.size=i.size,e.type=i.type,e.groupId=c,e.groupPermissions=u,t(e)):n(r.response||"Unable to upload file")},r.onabort=n,r.open("POST","".concat(d.formUrl,"/storage/gdrive")),(0,p.setXhrHeaders)(d,r),d.getToken());o&&r.setRequestHeader("x-jwt-token",o),r.send(e)})},downloadFile:function(e){var t=d.getToken();return e.url="".concat(d.formUrl,"/storage/gdrive?fileId=").concat(e.id,"&fileName=").concat(e.originalName).concat(t?"&x-jwt-token=".concat(t):""),o.default.resolve(e)}}}i.title="Google Drive",t.default=i},function(e,t,n){var r=n(168),o=n(434),i=n(211),a=n(437),n=i(function(e){var t=r(e,a);return t.length&&t[0]===e[0]?o(t):[]});e.exports=n},function(e,t,n){var y=n(209),v=n(281),b=n(282),g=n(168),w=n(283),k=n(210),_=Math.min;e.exports=function(e,t,n){for(var r=n?b:v,o=e[0].length,i=e.length,a=i,l=Array(i),s=1/0,u=[];a--;){var c=e[a];a&&t&&(c=g(c,w(t))),s=_(c.length,s),l[a]=!n&&(t||120<=o&&120<=c.length)?new y(a&&c):void 0}var c=e[0],f=-1,d=l[0];e:for(;++f<o&&u.length<s;){var p=c[f],h=t?t(p):p,p=n||0!==p?p:0;if(!(d?k(d,h):r(u,h,n))){for(a=i;--a;){var m=l[a];if(!(m?k(m,h):r(e[a],h,n)))continue e}d&&d.push(h),u.push(p)}}return u}},function(e,t){e.exports=function(e){return e}},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(286);e.exports=function(e){return r(e)?e:[]}},function(e,t,n){var r=n(212),o=n(272);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(211),f=n(199),d=n(276),p=n(440),h=Object.prototype,m=h.hasOwnProperty,n=r(function(e,t){e=Object(e);var n=-1,r=t.length,o=2<r?t[2]:void 0;for(o&&d(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=p(i),l=-1,s=a.length;++l<s;){var u=a[l],c=e[u];(void 0===c||f(c,h[u])&&!m.call(e,u))&&(e[u]=i[u])}return e});e.exports=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){"use strict";function l(e){this.message=e}n.r(t),n.d(t,"InvalidTokenError",function(){return o}),(l.prototype=new Error).name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new l("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,a="";r=t.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)&&(a+=String.fromCharCode(255&n>>(-2*o&6))))r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function o(e){this.message=e}(o.prototype=new Error).name="InvalidTokenError",t.default=function(e,t){if("string"!=typeof e)throw new o("Invalid token specified");t=!0===(t=t||{}).header?0:1;try{return JSON.parse(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 decodeURIComponent(r(t).replace(/(.)/g,function(e,t){t=t.charCodeAt(0).toString(16).toUpperCase();return"%"+(t=t.length<2?"0"+t:t)}))}catch(e){return r(t)}}(e.split(".")[t]))}catch(e){throw new o("Invalid token specified: "+e.message)}}},function(e,t,n){"use strict";n(443),n(444)},function(e,t){if("undefined"!=typeof window)try{var n=new window.CustomEvent("test",{cancelable:!0});if(n.preventDefault(),!0!==n.defaultPrevented)throw new Error("Could not prevent default")}catch(e){function r(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}r.prototype=window.Event.prototype,window.CustomEvent=r}},function(e,t,i){"use strict";!function(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)}var a,l,s,u,t,r,o,n;i(445),i(446),i(16),i(20),i(43),i(26),i(1),i(25),i(39),i(2),i(6),i(7),i(3),i(5),i(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}while(null!==(t=t.parentElement||t.parentNode)&&1===t.nodeType);return null})),e="object"===("undefined"==typeof window?"undefined":d(window))&&window||"object"===("undefined"==typeof self?"undefined":d(self))&&self||"object"===(void 0===e?"undefined":d(e))&&e||{},"undefined"!=typeof document&&("defineProperty"in Object&&function(){try{return Object.defineProperty({},"test",{value:42}),1}catch(e){}}()||(a=Object.defineProperty,l=Object.prototype.hasOwnProperty.call(Object.prototype,"__defineGetter__"),s="Getters & setters cannot be defined on this javascript engine",u="A property cannot both have accessors and be writable or have a value",Object.defineProperty=function(e,t,n){if(a&&(e===window||e===document||e===Element.prototype||e instanceof Element))return a(e,t,n);if(null===e||!(e instanceof Object||"object"===d(e)))throw new TypeError("Object.defineProperty called on non-object");if(!(n instanceof Object))throw new TypeError("Property description must be an object");var t=String(t),r="value"in n||"writable"in n,o="get"in n&&d(n.get),i="set"in n&&d(n.set);if(o){if("function"!==o)throw new TypeError("Getter must be a function");if(!l)throw new TypeError(s);if(r)throw new TypeError(u);Object.__defineGetter__.call(e,t,n.get)}else e[t]=n.value;if(i){if("function"!==i)throw new TypeError("Setter must be a function");if(!l)throw new TypeError(s);if(r)throw new TypeError(u);Object.__defineSetter__.call(e,t,n.set)}return"value"in n&&(e[t]=n.value),e}),t=function(){function n(e,t,n,r){Object.defineProperty?Object.defineProperty(e,t,{configurable:!1===o||!!r,get:n}):e.__defineGetter__(t,n)}var o=!0;try{n({},"support")}catch(e){o=!1}return function(o,i){function a(){if(e<=f)for(;e<f;++e)t(e)}function l(){var e,t,n=arguments,r=/\s+/;if(n.length)for(t=0;t<n.length;++t)if(r.test(n[t]))throw(e=new SyntaxError('String "'+n[t]+'" contains an invalid character')).code=5,e.name="InvalidCharacterError",e;for(""===(u=("object"===d(o[i])?""+o[i].baseVal:""+o[i]).replace(/^\s+|\s+$/g,"").split(r))[0]&&(u=[]),c={},t=0;t<u.length;++t)c[u[t]]=!0;f=u.length,a()}var s=this,u=[],c={},f=0,e=0,t=function(e){n(s,e,function(){return l(),u[e]},!1)};return l(),n(s,"length",function(){return l(),f}),s.toLocaleString=s.toString=function(){return l(),u.join(" ")},s.item=function(e){return l(),u[e]},s.contains=function(e){return l(),!!c[e]},s.add=function(){l.apply(s,e=arguments);for(var e,t,n=0,r=e.length;n<r;++n)c[t=e[n]]||(u.push(t),c[t]=!0);f!==u.length&&(f=u.length>>>0,"object"===d(o[i])?o[i].baseVal=u.join(" "):o[i]=u.join(" "),a())},s.remove=function(){l.apply(s,e=arguments);for(var e,t={},n=0,r=[];n<e.length;++n)t[e[n]]=!0,delete c[e[n]];for(n=0;n<u.length;++n)t[u[n]]||r.push(u[n]);f=(u=r).length>>>0,"object"===d(o[i])?o[i].baseVal=u.join(" "):o[i]=u.join(" "),a()},s.toggle=function(e,t){return l.apply(s,[e]),void 0!==t?t?(s.add(e),!0):(s.remove(e),!1):c[e]?(s.remove(e),!1):(s.add(e),!0)},s}}(),"DOMTokenList"in e&&!("classList"in(n=document.createElement("x"))&&(n.classList.toggle("x",!1)||n.className))||("DOMTokenList"in(n=e)&&n.DOMTokenList&&(!document.createElementNS||!document.createElementNS("http://www.w3.org/2000/svg","svg")||document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList)||(n.DOMTokenList=t),"classList"in(n=document.createElement("span"))&&(n.classList.toggle("x",!1),n.classList.contains("x")&&(n.classList.constructor.prototype.toggle=function(e){var t,n=arguments[1];return void 0===n?(t=!this.contains(e),this[t?"add":"remove"](e),t):(this[(n=!!n)?"add":"remove"](e),n)})),"classList"in(n=document.createElement("span"))&&(n.classList.add("a","b"),n.classList.contains("b")||(r=n.classList.constructor.prototype.add,n.classList.constructor.prototype.add=function(){for(var e=arguments,t=arguments.length,n=0;n<t;n++)r.call(this,e[n])})),"classList"in(n=document.createElement("span"))&&(n.classList.add("a"),n.classList.add("b"),n.classList.remove("a","b"),n.classList.contains("b")&&(o=n.classList.constructor.prototype.remove,n.classList.constructor.prototype.remove=function(){for(var e=arguments,t=arguments.length,n=0;n<t;n++)o.call(this,e[n])}))))}.call(this,i(54))},function(e,t,n){"use strict";var r=n(15),o=n(34),i=n(288),a=n(58),l=n(46),s=n(38);o&&r({target:"Object",proto:!0,forced:i},{__defineGetter__:function(e,t){s.f(l(this),e,{get:a(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(15),o=n(34),i=n(288),a=n(58),l=n(46),s=n(38);o&&r({target:"Object",proto:!0,forced:i},{__defineSetter__:function(e,t){s.f(l(this),e,{set:a(t),enumerable:!0,configurable:!0})}})},function(e,t,n){var r=n(232),o=n(38);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},function(e,a,l){"use strict";!function(v){l(2),l(6),l(7),l(3),l(5),l(4),l(32),l(20),l(42),Object.defineProperty(a,"__esModule",{value:!0}),a.default=a.ValidationChecker=void 0,l(1),l(16),l(43),l(0),l(60),l(25),l(22),l(40),l(45),l(39),l(18),l(131),l(76),l(23),l(51),l(93),l(26),l(14),l(289);var b=t(l(10)),d=l(19),s=t(l(64)),g=t(l(24)),e=t(l(158)),u=l(449),c=t(l(291));function t(e){return e&&e.__esModule?e:{default:e}}function w(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||n(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 i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||n(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 n(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function r(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 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 e=(0,e.default)({Promise:g.default}),f=e.fetch,p=e.Headers,h=e.Request,e=function(){function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=this,n=r;if(!(t instanceof n))throw new TypeError("Cannot call a class as a function");this.config=b.default.defaults(e,r.config),this.validators={required:{key:"validate.required",method:"validateRequired",hasLabel:!0,message:function(e){return e.t(e.errorMessage("required"),{field:e.errorLabel,data:e.data})},check:function(e,t,n){if(!(0,d.boolValue)(t)||e.isValueHidden())return!0;var r=e.validators.some(function(e){return"calendar"===e});return!n&&r&&e.widget.enteredDate?!this.validators.calendar.check.call(this,e,t,n):!e.isEmpty(n)}},onlyAvailableItems:{key:"validate.onlyAvailableItems",method:"validateValueAvailability",hasLabel:!0,message:function(e){return e.t(e.errorMessage("valueIsNotAvailable"),{field:e.errorLabel,data:e.data})},check:function(e,t){return!(0,d.boolValue)(t)}},unique:{key:"validate.unique",hasLabel:!0,message:function(e){return e.t(e.errorMessage("unique"),{field:e.errorLabel,data:e.data})},check:function(i,e,a){var l=this;return!(0,d.boolValue)(e)||(!!(!a||b.default.isObjectLike(a)&&b.default.isEmpty(a))||(!this.config.db||new g.default(function(n){function e(o,e,t){var i,a=t.split(/\[\d+\]?./);1<a.length?(t=a.shift(),i={},b.default.reduce(a,function(e,t,n){var n=n===a.length-1,r=b.default.get(i,e,i),t="$elemMatch['".concat(t,"']");return b.default.set(r,t,n?o:{}),e?"".concat(e,".").concat(t):t},""),e[t]=i):e[t]=o}var t=l.config.form,r=l.config.submission,o="data.".concat(i.path),t={form:t._id};b.default.isString(a)?i.component.dbIndex?e(a,t,o):e({$regex:new RegExp("^".concat((0,d.escapeRegExCharacters)(a),"$")),$options:"i"},t,o):b.default.isPlainObject(a)&&a.address&&a.address.address_components&&a.address.place_id?e({$regex:new RegExp("^".concat((0,d.escapeRegExCharacters)(a.address.place_id),"$")),$options:"i"},t,"".concat(o,".address.place_id")):b.default.isArray(a)?e({$all:a},t,o):(b.default.isObject(a)||b.default.isNumber(a))&&e({$eq:a},t,o),t.deleted={$eq:null},l.config.db.findOne(t,function(e,t){return e?n(!1):t?r._id&&t._id.toString()===r._id?void n(!0):(i.conflictId=t._id.toString(),n(!1)):n(!0)})}).catch(function(){return!1})))}},multiple:{key:"validate.multiple",hasLabel:!0,message:function(e){var t=(0,d.boolValue)(e.component.multiple)||Array.isArray(e.emptyValue),n=e.component.validate.required;return e.t(e.errorMessage(t?n?"array_nonempty":"array":"nonarray"),{field:e.errorLabel,data:e.data})},check:function(e,t,n){if(!e.validateMultiple())return!0;var t=(0,d.boolValue)(t),r=Array.isArray(e.emptyValue),o=Array.isArray(n),e=e.component.validate.required;return t?o?!e||!!n.length:!!b.default.isNil(n)&&!e:r||!o}},select:{key:"validate.select",hasLabel:!0,message:function(e){return e.t(e.errorMessage("select"),{field:e.errorLabel,data:e.data})},check:function(e,t,n,r,o,i,a){if(!(0,d.boolValue)(t))return!0;if(!n||b.default.isEmpty(n))return!0;if(!a)return!0;var a=e.component,l={url:t,method:"GET",qs:{},json:!0,headers:{}};if(b.default.isBoolean(l.url)){if(l.url=!!l.url,!l.url||"url"!==a.dataSrc||!a.data.url||!a.searchField)return!0;l.url=a.data.url,l.qs[a.searchField]=n,a.filter&&(l.url+=(l.url.includes("?")?"&":"?")+a.filter),a.selectFields&&(l.qs.select=a.selectFields)}return!l.url||(l.url=(0,d.interpolate)(l.url,{data:e.data}),l.url+=(l.url.includes("?")?"&":"?")+b.default.chain(l.qs).map(function(e,t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e))}).join("&").value(),a.data&&a.data.headers&&b.default.each(a.data.headers,function(e){e.key&&(l.headers[e.key]=e.value)}),a.authenticate&&this.config.token&&(l.headers["x-jwt-token"]=this.config.token),f(new h(l.url,{headers:new p(l.headers)})).then(function(e){return!!e.ok&&e.json()}).then(function(e){return e&&e.length}).catch(function(){return!1}))}},min:{key:"validate.min",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("min"),{field:e.errorLabel,min:parseFloat(t),data:e.data})},check:function(e,t,n){t=parseFloat(t),n=parseFloat(n);return!(!Number.isNaN(t)&&!Number.isNaN(n))||t<=n}},max:{key:"validate.max",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("max"),{field:e.errorLabel,max:parseFloat(t),data:e.data})},check:function(e,t,n){t=parseFloat(t),n=parseFloat(n);return!(!Number.isNaN(t)&&!Number.isNaN(n))||n<=t}},minSelectedCount:{key:"validate.minSelectedCount",message:function(e,t){return e.component.minSelectedCountMessage||e.t(e.errorMessage("minSelectedCount"),{minCount:parseFloat(t),data:e.data})},check:function(e,t,n){t=parseFloat(t);if(!t)return!0;var r=Object.keys(n).reduce(function(e,t){return n[t]&&e++,e},0);return!r||t<=r}},maxSelectedCount:{key:"validate.maxSelectedCount",message:function(e,t){return e.component.maxSelectedCountMessage||e.t(e.errorMessage("maxSelectedCount"),{minCount:parseFloat(t),data:e.data})},check:function(e,t,n){t=parseFloat(t);return!t||Object.keys(n).reduce(function(e,t){return n[t]&&e++,e},0)<=t}},minLength:{key:"validate.minLength",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("minLength"),{field:e.errorLabel,length:t,data:e.data})},check:function(e,t,n){t=parseInt(t,10);return!(n&&t&&"string"==typeof n&&!e.isEmpty(n))||n.length>=t}},maxLength:{key:"validate.maxLength",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("maxLength"),{field:e.errorLabel,length:t,data:e.data})},check:function(e,t,n){t=parseInt(t,10);return!t||"string"!=typeof n||n.length<=t}},maxWords:{key:"validate.maxWords",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("maxWords"),{field:e.errorLabel,length:t,data:e.data})},check:function(e,t,n){t=parseInt(t,10);return!t||"string"!=typeof n||n.trim().split(/\s+/).length<=t}},minWords:{key:"validate.minWords",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("minWords"),{field:e.errorLabel,length:t,data:e.data})},check:function(e,t,n){t=parseInt(t,10);return!t||!n||"string"!=typeof n||n.trim().split(/\s+/).length>=t}},email:{hasLabel:!0,message:function(e){return e.t(e.errorMessage("invalid_email"),{field:e.errorLabel,data:e.data})},check:function(e,t,n){return!n||/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n)}},url:{hasLabel:!0,message:function(e){return e.t(e.errorMessage("invalid_url"),{field:e.errorLabel,data:e.data})},check:function(e,t,n){return!n||/^(?:(?:(?:https?|ftp):)?\/\/)?(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(n)&&!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n)}},date:{hasLabel:!0,message:function(e){return e.t(e.errorMessage("invalid_date"),{field:e.errorLabel,data:e.data})},check:function(e,t,n){return"Invalid date"!==n}},day:{hasLabel:!0,message:function(e){return e.t(e.errorMessage("invalid_day"),{field:e.errorLabel,data:e.data})},check:function(e,t,n){if(!n)return!0;var e=i(e.dayFirst?[0,1,2]:[1,0,2],3),r=e[0],o=e[1],e=e[2],n=n.split("/").map(function(e){return parseInt(e,10)}),r=n[r],o=n[o],n=n[e],e=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}}(o,n);return!(r<0||e<r)&&(!(o<0||12<o)&&!(n<0||9999<n))}},pattern:{key:"validate.pattern",hasLabel:!0,message:function(e,t){return e.t(b.default.get(e,"component.validate.patternMessage",e.errorMessage("pattern")),{field:e.errorLabel,pattern:t,data:e.data})},check:function(e,t,n){return!!e.isEmpty(n)||(!t||new RegExp("^".concat(t,"$")).test(n))}},json:{key:"validate.json",check:function(e,t,n,r,o,i){if(!t)return!0;e=e.evaluate(t,{data:r,row:i,rowIndex:o,input:n});return null===e||e}},mask:{key:"inputMask",hasLabel:!0,message:function(e){return e.t(e.errorMessage("mask"),{field:e.errorLabel,data:e.data})},check:function(t,e,n){var r,o;return t.isMultipleMasksField?(o=n?n.maskName:void 0,(o=t.getMaskByName(o))&&(r=o),n=n&&n.value):r=e,r=r?(0,d.getInputMask)(r):null,!(n&&r&&!t.skipMaskValidation)||(r=r.map(function(e){return e===t.placeholderChar?" ":e}),(0,d.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;e=e.evaluate(t,{valid:!0,data:r,rowIndex:o,row:i,input:n},"valid",!0);return null===e||e}},maxDate:{key:"maxDate",hasLabel:!0,message:function(e,t){t=(0,d.getDateSetting)(t);return e.t(e.errorMessage("maxDate"),{field:e.errorLabel,maxDate:(0,s.default)(t).format(e.format)})},check:function(e,t,n){if(e.isPartialDay&&e.isPartialDay(n))return!0;e=e.getValidationFormat?(0,s.default)(n,e.getValidationFormat()):(0,s.default)(n),n=(0,d.getDateSetting)(t);return!!b.default.isNull(n)||(n.setHours(0,0,0,0),e.isBefore(n)||e.isSame(n))}},minDate:{key:"minDate",hasLabel:!0,message:function(e,t){t=(0,d.getDateSetting)(t);return e.t(e.errorMessage("minDate"),{field:e.errorLabel,minDate:(0,s.default)(t).format(e.format)})},check:function(e,t,n){if(e.isPartialDay&&e.isPartialDay(n))return!0;e=e.getValidationFormat?(0,s.default)(n,e.getValidationFormat()):(0,s.default)(n),n=(0,d.getDateSetting)(t);return!!b.default.isNull(n)||(n.setHours(0,0,0,0),e.isAfter(n)||e.isSame(n))}},minYear:{key:"minYear",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("minYear"),{field:e.errorLabel,minYear:t})},check:function(e,t,n){n=(n=/\d{4}$/.exec(n))?n[0]:null;return!+t||!+n||+t<=+n}},maxYear:{key:"maxYear",hasLabel:!0,message:function(e,t){return e.t(e.errorMessage("maxYear"),{field:e.errorLabel,maxYear:t})},check:function(e,t,n){n=(n=/\d{4}$/.exec(n))?n[0]:null;return!+t||!+n||+n<=+t}},calendar:{key:"validate.calendar",messageText:"",hasLabel:!0,message:function(e){return e.t(e.errorMessage(this.validators.calendar.messageText),{field:e.errorLabel,maxDate:(0,s.default)(e.dataValue).format(e.format)})},check:function(e,t,n,r,o){this.validators.calendar.messageText="";e=e.getWidget(o);if(!e)return!0;var o=e.settings,i=e.enteredDate,a=o.minDate,l=o.maxDate,o=o.format,o=[(0,d.convertFormatToMoment)(o)];if(o[0].match(/M{3,}/g)&&o.push(o[0].replace(/M{3,}/g,"MM")),!n&&i){a=(0,u.checkInvalidDate)(i,o,a,l),l=a.message,a=a.result;if(!a)return this.validators.calendar.messageText=l,a}return n&&i?(0,s.default)(n).format()!==(0,s.default)(i,o,!0).format()&&i.match(/_/gi)?(this.validators.calendar.messageText=u.CALENDAR_ERROR_MESSAGES.INCOMPLETE,!1):!(e.enteredDate=""):void 0}},time:{key:"validate.time",messageText:"Invalid time",hasLabel:!0,message:function(e){return e.t(e.errorMessage(this.validators.time.messageText),{field:e.errorLabel})},check:function(e,t,n){return!!e.isEmpty(n)||(0,s.default)(n,e.component.format).isValid()}}}}var e,t,n;return e=r,(t=[{key:"checkValidator",value:function(t,n,r,e,o,i,a,l){function s(e){return"string"==typeof e?e:!e&&n.message?n.message.call(u,t,r,i,a):""}var u=this,c=null,c=n.method&&"function"==typeof t[n.method]?t[n.method](r,e,o,i,a,l):n.check.call(this,t,r,e,o,i,a,l);return l?g.default.resolve(c).then(s):s(c)}},{key:"validate",value:function(t,n,r,e,o,i,a,l,s){if(!l)return!1;function u(e){return!!e&&(e={message:(0,d.unescapeHTML)(b.default.get(e,"message",e)),level:"warning"===b.default.get(e,"level")?"warning":"error",path:(0,d.getArrayFromComponentPath)(t.path||""),context:{validator:n,hasLabel:c.hasLabel,setting:f,key:t.key,label:t.label,value:r,index:o,input:null==(e=t.refs.input)?void 0:e[o]}},"unique"===n&&t.conflictId&&(e.conflictId=t.conflictId),e)}var c=this.validators[n],f=b.default.get(s||t.component,c.key,null),l=this.checkValidator(t,c,f,r,e,o,i,a);return a?g.default.resolve(l).then(u):u(l)}},{key:"checkComponent",value:function(r,o,i){var a=this,t=3<arguments.length&&void 0!==arguments[3]&&arguments[3],l=4<arguments.length&&void 0!==arguments[4]&&arguments[4];if(void 0!==v&&"node"===b.default.get(v,"release.name")&&!b.default.defaultTo(r.component.persistent,!0)||!1===r.component.validate)return l?g.default.resolve([]):[];o=o||r.rootValue,i=i||r.data;function e(e){return e=(0,b.default)(e).chain().flatten().compact().value(),(m||h)&&b.default.each(e,function(e){e.message=r.t(m||e.message,{field:r.errorLabel,data:o,row:i,error:e}),e.context.hasLabel=!1}),t?e:b.default.reject(e,function(e){return"warning"===e.level})}var n,s,u=r.component.multiple&&Array.isArray(r.validationValue)?r.validationValue:[r.validationValue],c=r.conditionallyVisible(),f=[],d=(null!=r&&null!=(d=r.addons)&&d.length&&u.forEach(function(t){r.addons.forEach(function(e){e.checkValidity(t)||f.push.apply(f,w(e.errors||[]))})}),b.default.get(r,"component.validations")),p=[],h=(d&&Array.isArray(d)&&d.length&&(n=b.default.chain(d).groupBy(function(e){return e.mode}).value(),r.calculateCondition?(t=!0,y=(s=b.default.chain(n.ui).filter("active").groupBy(function(e){return e.group||null}).value()).null||[],delete s.null,y.forEach(function(e){var t=e.condition,n=e.message,e=e.severity;r.calculateCondition(t)||p.push({level:e||"error",message:r.t(n),componentInstance:r})}),b.default.forEach(s,function(e){b.default.forEach(e,function(e){var t=e.condition,n=e.message,e=e.severity;if(!r.calculateCondition(t))return p.push({level:e||"error",message:r.t(n),componentInstance:r}),!1})})):p=this.checkValidations(r,d,o,i,u,l),r.validators.includes("custom")&&n.js&&b.default.each(n.js,function(n){p.push(b.default.map(u,function(e,t){return a.validate(r,"custom",e,o,t,i,l,c,n)}))}),r.validators.includes("json")&&n.json&&b.default.each(n.json,function(n){p.push(b.default.map(u,function(e,t){return a.validate(r,"json",e,o,t,i,l,c,n)}))})),b.default.get(r,"component.validate.custom")),m=b.default.get(r,"component.validate.customMessage"),y=(0,b.default)(r.validators).chain().map(function(n){return a.validators.hasOwnProperty(n)?"required"!==n||u.length?b.default.map(u,function(e,t){return a.validate(r,n,e,o,t,i,l,c)}):[a.validate(r,n,null,o,0,i,l,c)]:{message:'Validator for "'.concat(n,'" is not defined'),level:"warning",context:{validator:n,key:r.key,label:r.label}}}).flatten().value();r.component.validate=r.component.validate||{},r.component.validate.unique=r.component.unique,y.push(this.validate(r,"unique",r.validationValue,o,0,o,l,c)),r.component.validate.multiple=r.component.multiple,y.push(this.validate(r,"multiple",r.validationValue,o,0,o,l,c)),y.push.apply(y,f),y.push.apply(y,w(p));return l?g.default.all(y).then(e):e(y)}},{key:"checkValidations",value:function(t,e,n,r,o,i){var a=this,e=e.map(function(e){return a.checkRule(t,e,n,r,o,i)}).reduce(function(e,t){return t?[].concat(w(e),w(t)):e},[]).filter(function(e){return e}).reduce(function(e,t){return e[t.context.validator]=t,e},{});return Object.values(e)}},{key:"checkRule",value:function(n,r,o,i,e,a){var l,t=c.default.getRule(r.rule),s=[];return t&&(l=new t(n,r.settings,this.config),e.map(function(e,t){e=l.check(e,o,i,a);!0!==e&&s.push({level:r.level||"error",message:n.t(r.message||l.defaultMessage,{settings:r.settings,field:n.errorLabel,data:o,row:i,error:e}),context:{key:n.key,index:t,label:n.label,validator:r.rule}})})),0!==s.length&&s}},{key:"check",get:function(){return this.checkComponent}},{key:"get",value:function(){b.default.get.call(this,arguments)}},{key:"each",value:function(){b.default.each.call(this,arguments)}},{key:"has",value:function(){b.default.has.call(this,arguments)}}])&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),r}(),e=((a.ValidationChecker=e).config={db:null,token:null,form:null,submission:null},new e);a.default=e}.call(this,l(177))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CALENDAR_ERROR_MESSAGES=void 0,t.checkInvalidDate=function(e,t,n,r){var o=(0,c.default)(e,t,!0),i=o.isValid();{var a,l,s;{if(!i)return a=e.match(/[^a-z0-9_]/gi),i=new RegExp(a.join("|"),"gi"),u=e.replace(/_*/gi,"").split(i),l=(t[1]||t[0]).split(i),s=f.default.findIndex(l,function(e,t){return 1===e.length&&t===l.length-1}),i=f.default.findIndex(l,function(e){return e.match(/yyyy/gi)}),!(u[i]/1e3<1)&&u[0].length===l[0].length?(i=u.map(function(e,t){var n=e;return e||t!==s?e||(n="01"):n="AM",n=a[t]?"".concat(n).concat(a[t]):n}),(u=(0,c.default)(i.join(""),t,!0)).isValid()?(i=h(u,t[0],r,n)).result?p(d.INCOMPLETE,!1):(u=i.message,i=i.result,p(u,i)):p(d.INVALID,!1)):p(d.INVALID,!1);if(-1===e.indexOf("_")){var u=h(o,t[0],r,n);if(!u.result)return i=u.message,e=u.result,p(i,e)}}}return p("",!0)},t.lessOrGreater=h,n(16),n(93),n(60),n(25),n(39),n(43),n(26),n(69),n(18),n(0);var c=r(n(64)),f=r(n(10));function r(e){return e&&e.__esModule?e:{default:e}}var d={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 p(e,t){return{message:e,result:t}}function h(e,t,n,r){var o="",i=!0;return n&&e.isValid()&&((n=(0,c.default)(n,t))<e&&(o=d.greater(n,t),i=!1)),r&&e.isValid()&&(e<(n=(0,c.default)(r,t))&&(o=d.less(n,t),i=!1)),{message:o,result:i}}t.CALENDAR_ERROR_MESSAGES=d},function(e,t,n){"use strict";var r=n(451),o=n(452),i=n(453),a=n(454),l=n(455),s=n(456),u=n(457),c=n(458),f=n(459),d=n(460),p=n(461),h=n(462),m=n(463),y=n(464),v=n(465),b=n(466),g=n(467),w=n(468),k=n(469),_=n(470),O=n(471),n=n(472);e.exports={custom:r,date:o,day:i,email:a,json:l,mask:s,max:u,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:n}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=l(n),t=(e=r?(e=l(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9),n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(0);var c=n(44);e.exports=function(){var e=s,t=c;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t);var n,l=a(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=u(e),r="{{error}}",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{key:"check",value:function(e,t,n,r){var o=this.settings.custom;if(!o)return!0;o=this.component.evaluate(o,{valid:!0,data:t,row:n,rowIndex:r,input:e},"valid",!0);return null===o||o}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=l(n),t=(e=r?(e=l(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(0),n(1),n(25);var c=n(44);e.exports=function(){var e=s,t=c;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t);var n,l=a(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=u(e),r="{{field}} is not a valid date.",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{key:"check",value:function(e){return!e||e instanceof Date||"Invalid date"!==e&&"Invalid Date"!==e&&"Invalid Date"!==(e="string"==typeof e?new Date(e):e).toString()}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(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 r(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){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 c(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=l(n),t=(e=r?(e=l(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return f(t)}}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9),n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(32),n(20),n(42),n(0),n(18),n(16),n(43);var d=n(44);e.exports=function(){var e=s,t=d;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t);var n,l=c(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=f(e),r="{{field}} is not a valid day.",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{key:"check",value:function(e){if(!e)return!0;if("string"!=typeof e)return!1;var t=i(this.component.dayFirst?[0,1,2]:[1,0,2],3),n=t[0],r=t[1],t=t[2],e=e.split("/").map(function(e){return parseInt(e,10)}),n=e[n],r=e[r],e=e[t],t=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}}(r,e);return!(isNaN(n)||n<0||t<n)&&(!(isNaN(r)||r<0||12<r)&&!(isNaN(e)||e<0||9999<e))}}])&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=l(n),t=(e=r?(e=l(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9),n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(0),n(16);var c=n(44);e.exports=function(){var e=s,t=c;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t);var n,l=a(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=u(e),r="{{field}} must be a valid email.",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{key:"check",value:function(e){if(!e)return!0;return/^(([^<>()[\]\\.,;:\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)}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=l(n),t=(e=r?(e=l(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9),n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(0);var c=n(44);e.exports=function(){var e=s,t=c;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t);var n,l=a(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=u(e),r="{{error}}",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{key:"check",value:function(e,t,n,r){var o=this.settings.json;if(!o)return!0;o=this.component.evaluate(o,{data:t,row:n,rowIndex:r,input:e});return null===o||o}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(9),n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(0);var r=n(19);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 u(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=l(n),t=(e=r?(e=l(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=n(44);e.exports=function(){var e=s,t=f;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t);var n,l=u(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=c(e),r="{{field}} does not match the mask.",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{key:"check",value:function(e){var t,n;return this.component.isMultipleMasksField?(n=e?e.maskName:void 0,(n=this.component.getMaskByName(n))&&(t=(0,r.getInputMask)(n)),e=e&&e.value):t=(0,r.getInputMask)(this.settings.mask),!e||!t||(0,r.matchInputMask)(e,t)}}])&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=l(n),t=(e=r?(e=l(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9),n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(0),n(131),n(76);var c=n(44);e.exports=function(){var e=s,t=c;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t);var n,l=a(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=u(e),r="{{field}} cannot be greater than {{settings.limit}}.",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{key:"check",value:function(e){var t=parseFloat(this.settings.limit),e=parseFloat(e);return!(!Number.isNaN(t)&&!Number.isNaN(e))||e<=t}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(9),n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(0);var r=n(19),i=l(n(64)),a=l(n(10));function l(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)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=s(n),t=(e=r?(e=s(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=n(44);e.exports=function(){var e=s,t=p;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t);var n,l=f(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=d(e),r="{{field}} should not contain date after {{settings.dateLimit}}",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{key:"check",value:function(e){if(!e)return!0;if(e===this.settings.dateLimit)return!0;var e=(0,i.default)(e),t=(0,r.getDateSetting)(this.settings.dateLimit);return!!a.default.isNull(t)||(t.setHours(0,0,0,0),e.isBefore(t)||e.isSame(t))}}])&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=l(n),t=(e=r?(e=l(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9),n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(0);var c=n(44);e.exports=function(){var e=s,t=c;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t);var n,l=a(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=u(e),r="{{field}} must have no more than {{- settings.length}} characters.",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{key:"check",value:function(e){var t=parseInt(this.settings.length,10);return!(e&&t&&e.hasOwnProperty("length"))||e.length<=t}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=l(n),t=(e=r?(e=l(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9),n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(0),n(16),n(43),n(51);var c=n(44);e.exports=function(){var e=s,t=c;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t);var n,l=a(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=u(e),r="{{field}} must have no more than {{- settings.length}} words.",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{key:"check",value:function(e){var t=parseInt(this.settings.length,10);return!t||"string"!=typeof e||e.trim().split(/\s+/).length<=t}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=l(n),t=(e=r?(e=l(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9),n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(0),n(131),n(76);var c=n(44);e.exports=function(){var e=s,t=c;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t);var n,l=a(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=u(e),r="{{field}} cannot be less than {{settings.limit}}.",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{key:"check",value:function(e){var t=parseFloat(this.settings.limit),e=parseFloat(e);return!(!Number.isNaN(t)&&!Number.isNaN(e))||t<=e}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(9),n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(0);var r=n(19),i=l(n(64)),a=l(n(10));function l(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)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=s(n),t=(e=r?(e=s(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=n(44);e.exports=function(){var e=s,t=p;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t);var n,l=f(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=d(e),r="{{field}} should not contain date before {{settings.dateLimit}}",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{key:"check",value:function(e){if(!e)return!0;var e=(0,i.default)(e),t=(0,r.getDateSetting)(this.settings.dateLimit);return!!a.default.isNull(t)||(t.setHours(0,0,0,0),e.isAfter(t)||e.isSame(t))}}])&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=l(n),t=(e=r?(e=l(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9),n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(0);var c=n(44);e.exports=function(){var e=s,t=c;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t);var n,l=a(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=u(e),r="{{field}} must have no more than {{- settings.length}} characters.",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{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}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=l(n),t=(e=r?(e=l(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9),n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(0),n(16),n(43),n(51);var c=n(44);e.exports=function(){var e=s,t=c;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t);var n,l=a(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=u(e),r="{{field}} must have at least {{- settings.length}} words.",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{key:"check",value:function(e){var t=parseInt(this.settings.length,10);return!t||!e||"string"!=typeof e||e.trim().split(/\s+/).length>=t}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=l(n),t=(e=r?(e=l(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9),n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(0),n(16),n(60),n(25);var c=n(44);e.exports=function(){var e=s,t=c;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t);var n,l=a(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=u(e),r="{{field}} does not match the pattern {{settings.pattern}}",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{key:"check",value:function(e){var t=this.settings.pattern;return!t||new RegExp("^".concat(t,"$")).test(e)}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=l(n),t=(e=r?(e=l(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9),n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(0);var c=n(44);e.exports=function(){var e=s,t=c;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t);var n,l=a(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=u(e),r="{{field}} is required",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{key:"check",value:function(e){return!this.component.isValueHidden()&&!this.component.isEmpty(e)}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(9),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(0),n(22),n(1),n(40),n(45),n(39),n(18);var i=n(19),r=l(n(24)),a=l(n(158)),u=l(n(10));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=s(n),t=(e=r?(e=s(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return p(t)}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var a=(0,a.default)({Promise:r.default}),h=a.fetch,m=a.Headers,y=a.Request,v=n(44);e.exports=function(){var e=s,t=v;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t);var n,l=d(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=p(e),r="{{field}} contains an invalid selection",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{key:"check",value:function(e,t,n,r){if(!e||u.default.isEmpty(e))return!0;if(!r)return!0;var r=this.component.component,o={url:this.settings.url,method:"GET",qs:{},json:!0,headers:{}};if(u.default.isBoolean(o.url)){if(o.url=!!o.url,!o.url||"url"!==r.dataSrc||!r.data.url||!r.searchField)return!0;o.url=r.data.url,o.qs[r.searchField]=e,r.filter&&(o.url+=(o.url.includes("?")?"&":"?")+r.filter),r.selectFields&&(o.qs.select=r.selectFields)}return!o.url||(o.url=(0,i.interpolate)(o.url,{data:this.component.data}),o.url+=(o.url.includes("?")?"&":"?")+u.default.chain(o.qs).map(function(e,t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e))}).join("&").value(),r.data&&r.data.headers&&u.default.each(r.data.headers,function(e){e.key&&(o.headers[e.key]=e.value)}),r.authenticate&&this.config.token&&(o.headers["x-jwt-token"]=this.config.token),h(new y(o.url,{headers:new m(o.headers)})).then(function(e){return!!e.ok&&e.json()}).then(function(e){return e&&e.length}).catch(function(){return!1}))}}])&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(9),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(0),n(60),n(16),n(25),n(1);var a=n(19),u=i(n(10)),r=i(n(24));function i(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=l(n),t=(e=r?(e=l(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return p(t)}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=n(44);e.exports=function(){var e=s,t=h;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t);var n,l=d(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=p(e),r="{{field}} must be unique",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{key:"check",value:function(o){var i=this;return!!(!o||u.default.isObjectLike(o)&&u.default.isEmpty(o))||(!this.config.db||new r.default(function(n){var e=i.config.form,r=i.config.submission,t="data.".concat(i.component.path),e={form:e._id};u.default.isString(o)?e[t]={$regex:new RegExp("^".concat((0,a.escapeRegExCharacters)(o),"$")),$options:"i"}:u.default.isPlainObject(o)&&o.address&&o.address.address_components&&o.address.place_id?e["".concat(t,".address.place_id")]={$regex:new RegExp("^".concat((0,a.escapeRegExCharacters)(o.address.place_id),"$")),$options:"i"}:u.default.isArray(o)?e[t]={$all:o}:(u.default.isObject(o)||u.default.isNumber(o))&&(e[t]={$eq:o}),e.deleted={$eq:null},i.config.db.findOne(e,function(e,t){return n(!e&&(!t||r._id&&t._id.toString()===r._id))})}).catch(function(){return!1}))}}])&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=l(n),t=(e=r?(e=l(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9),n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(0),n(16);var c=n(44);e.exports=function(){var e=s,t=c;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t);var n,l=a(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=u(e),r="{{field}} must be a valid url.",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{key:"check",value:function(e){return!e||/^(?:(?:(?:https?|ftp):)?\/\/)?(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)&&!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=l(n),t=(e=r?(e=l(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9),n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(0),n(16);var c=n(44);e.exports=function(){var e=s,t=c;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t);var n,l=a(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=u(e),r="{{field}} should not contain year less than {{minYear}}",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{key:"check",value:function(e){var t=this.settings,e=(e=/\d{4}$/.exec(e))?e[0]:null;return!+t||!+e||+t<=+e}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=l(n),t=(e=r?(e=l(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9),n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(0),n(16);var c=n(44);e.exports=function(){var e=s,t=c;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t);var n,l=a(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=u(e),r="{{field}} should not contain year greater than {{maxYear}}",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{key:"check",value:function(e){var t=this.settings,e=(e=/\d{4}$/.exec(e))?e[0]:null;return!+t||!+e||+e<=+t}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(9),n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(0);var r,i=(r=n(64))&&r.__esModule?r:{default:r};function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=l(n),t=(e=r?(e=l(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return f(t)}}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=n(44);e.exports=function(){var e=s,t=d;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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t);var n,l=c(s);function s(){var e=this,t=s;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=l.call.apply(l,[this].concat(i)),t=f(e),r="{{field}} must contain valid time",(n="defaultMessage")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e}return e=s,(t=[{key:"check",value:function(e){return!!this.component.isEmpty(e)||(0,i.default)(e,this.component.component.format).isValid()}}])&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}()},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(70),n(23),n(2),n(14),n(31),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(16),n(26),n(22),n(1),n(43),n(18),n(93),n(50),n(25),n(9);var a=n(36),r=i(n(292)),l=n(19),s=i(n(64)),u=i(n(10));function i(e){return e&&e.__esModule?e:{default:e}}function c(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach(function(e){h(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n,r){return(p="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,e=y(e,t);if(e){if((o=Object.getOwnPropertyDescriptor(e,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 h(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function m(){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=y(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function y(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=g(n),t=(e=r?(e=g(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w="yyyy-MM-dd hh:mm a",k="yyyy-MM-ddTHH:mm:ssZ",_="https://cdn.form.io/",n="https://cdn.jsdelivr.net",O="/npm/shortcut-buttons-flatpickr@0.1.0/dist/",S="".concat(n).concat(O,"themes/light.min.css"),P="".concat(n).concat(O,"shortcut-buttons-flatpickr.min.js"),E=(0,l.getBrowserInfo)().ie,n=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e);var n,o=b(i);function i(e,t,n,r){if(this instanceof i)return(e=o.call(this,e,t,n,r)).settings.noCalendar&&(e.settings.format=e.settings.format.replace(/yyyy-MM-dd /g,"")),e.settings.enableTime?e.settings.time_24hr&&(e.settings.format=e.settings.format.replace(/hh:mm a$/g,"HH:mm")):(e.settings.format=e.settings.format.replace(/ hh:mm a$/g,""),e.settings.dateFormat=e.settings.format),e;throw new TypeError("Cannot call a class as a function")}return t=i,e=[{key:"defaultSettings",get:function(){return{type:"calendar",altInput:!0,allowInput:!0,clickOpens:!0,enableDate:!0,enableTime:!0,mode:"single",noCalendar:!1,format:w,dateFormat:k,useLocaleSettings:!1,language:"us-en",hourIncrement:1,minuteIncrement:5,time_24hr:!1,saveAs:"date",displayInTimezone:"",timezone:"",disable:[],minDate:"",maxDate:""}}}],(n=[{key:"loadZones",value:function(){var e=this,t=this.timezone;return!((0,l.zonesLoaded)()||!(0,l.shouldLoadZones)(t))&&((0,l.loadZones)(t).then(function(){return e.emit("redraw")}),!0)}},{key:"attach",value:function(e){var r=this,e=m(g(i.prototype),"attach",this).call(this,e),t=(0,l.getLocaleDateFormatInfo)(this.settings.language),t=(this.defaultFormat={date:t.dayFirst?"d/m/Y ":"m/d/Y ",time:"G:i K"},this.closedOn=0,this.valueFormat="date"!==this.settings.saveAs&&this.settings.dateFormat||k,this.valueMomentFormat=(0,l.convertFormatToMoment)(this.valueFormat),this.settings.readOnly);return this.settings.minDate=t?null:(0,l.getDateSetting)(this.settings.minDate),this.settings.maxDate=t?null:(0,l.getDateSetting)(this.settings.maxDate),this.settings.disable=this.disabledDates,this.settings.disableWeekends&&this.settings.disable.push(this.disableWeekends),this.settings.disableWeekdays&&this.settings.disable.push(this.disableWeekdays),this.settings.disableFunction&&this.settings.disable.push(this.disableFunction),this.settings.wasDefaultValueChanged=!1,this.settings.defaultValue="",this.settings.manualInputValue="",this.settings.isManuallyOverriddenValue=!1,this.settings.currentValue="",this.settings.altFormat=(0,l.convertFormatToFlatpickr)(this.settings.format),this.settings.dateFormat=(0,l.convertFormatToFlatpickr)(this.settings.dateFormat),this.settings.position="auto center",this.settings.onChange=function(){r.settings.allowInput&&(r.settings.isManuallyOverriddenValue&&r.settings.enableTime?r.calendar._input.value=r.settings.manualInputValue:r.settings.manualInputValue="",r.settings.isManuallyOverriddenValue=!1),r.emit("update")},this.settings.onOpen=function(){return r.hook("onCalendarOpen")},this.settings.onClose=function(){r.hook("onCalendarClose"),r.closedOn=Date.now(),r.settings.allowInput&&r.settings.enableTime&&(r.calendar._input.value=r.settings.manualInputValue||r.calendar._input.value,r.settings.isManuallyOverriddenValue=!1,r.emit("update")),r.settings.wasDefaultValueChanged&&(r.calendar._input.value=r.settings.defaultValue,r.settings.wasDefaultValueChanged=!1),r.calendar&&r.emit("blur")},a.GlobalFormio.requireLibrary("flatpickr-css","flatpickr",[{type:"styles",src:"".concat(_).concat(this.flatpickrType,"/flatpickr.min.css")}],!0),this.component.shortcutButtons&&(this.component.shortcutButtons=this.component.shortcutButtons.filter(function(e){return e.label&&e.onClick})),null!=(t=this.component.shortcutButtons)&&t.length&&a.GlobalFormio.requireLibrary("shortcut-buttons-flatpickr-css","ShortcutButtonsPlugin",[{type:"styles",src:S}],!0),e.then(function(){var e;if(null!=(e=r.component.shortcutButtons)&&e.length)return a.GlobalFormio.requireLibrary("shortcut-buttons-flatpickr","ShortcutButtonsPlugin",P,!0)}).then(function(n){return a.GlobalFormio.requireLibrary("flatpickr","flatpickr","".concat(_).concat(r.flatpickrType,"/flatpickr.min.js"),!0).then(function(e){if(null!=(t=r.component.shortcutButtons)&&t.length&&n&&r.initShortcutButtonsPlugin(n),r.settings.formatDate=r.getFlatpickrFormatDate(e),r._input){var t=r.settings.locale;if(t&&2<=t.length&&"en"!==t)return a.GlobalFormio.requireLibrary("flatpickr-".concat(t),"flatpickr-".concat(t),"".concat("https://cdnjs.cloudflare.com/ajax/libs/flatpickr/4.6.9/l10n","/").concat(t,".min.js"),!1,function(){return r.initFlatpickr(e)});r.initFlatpickr(e)}})}).catch(function(e){console.warn(e)})}},{key:"disableWeekends",get:function(){return function(e){return 0===e.getDay()||6===e.getDay()}}},{key:"disableWeekdays",get:function(){var t=this;return function(e){return!t.disableWeekends(e)}}},{key:"disableFunction",get:function(){var t=this;return function(e){return t.evaluate("return ".concat(t.settings.disableFunction),{date:e})}}},{key:"defineTimezone",value:function(){return this.settings.timezone||("submission"===this.settings.displayInTimezone&&this.settings.submissionTimezone?this.settings.submissionTimezone:"utc"===this.settings.displayInTimezone?"UTC":(0,l.currentTimezone)())}},{key:"timezone",get:function(){return this.defineTimezone()}},{key:"defaultSettings",get:function(){return i.defaultSettings}},{key:"addSuffix",value:function(e){var t=this;return this.addEventListener(e,"click",function(e){e.stopPropagation(),t.calendar&&(!t.calendar.isOpen&&200<Date.now()-t.closedOn?t.calendar.open():t.calendar.isOpen&&t.calendar.close())}),e}},{key:"disabled",set:function(e){var t=g(i.prototype),n=e,r=!0;if(!p(t,"disabled",n,this||t)&&r)throw new Error("failed to set property");this.calendar&&(e?this.calendar._input.setAttribute("disabled","disabled"):this.calendar._input.removeAttribute("disabled"),this.calendar.close(),this.calendar.redraw())}},{key:"input",get:function(){return this.calendar?this.calendar.altInput:null}},{key:"disabledDates",get:function(){return this.settings.disabledDates?this.settings.disabledDates.split(",").map(function(e){var t=/\d{4}-\d{2}-\d{2}/g,n=e.match(t);if(n&&n.length)return 1===n.length?e.match(t)[0]:{from:e.match(t)[0],to:e.match(t)[1]}}):[]}},{key:"localeFormat",get:function(){var e="";return this.settings.enableDate&&(e+=this.defaultFormat.date),this.settings.enableTime&&(e+=this.defaultFormat.time),e}},{key:"dateTimeFormat",get:function(){return this.settings.useLocaleSettings?this.localeFormat:(0,l.convertFormatToFlatpickr)(this.dateFormat)}},{key:"dateFormat",get:function(){return u.default.get(this.settings,"format",w)}},{key:"getDateValue",value:function(e,t,n){return(n?(0,l.momentDate)(e,this.valueFormat,this.timezone):(0,s.default)(e)).format((0,l.convertFormatToMoment)(t))}},{key:"flatpickrType",get:function(){return"flatpickr"}},{key:"getValue",value:function(){if(!this.calendar)return m(g(i.prototype),"getValue",this).call(this);var e=this.calendar.selectedDates;return e&&e.length?e[0]instanceof Date?this.getDateValue(e[0],this.valueFormat,"date"===this.settings.saveAs):"Invalid Date":m(g(i.prototype),"getValue",this).call(this)}},{key:"isValueISO8601",value:function(e){return e&&"string"==typeof e&&e.match(/-[0-9]{2}T[0-9]{2}:/)}},{key:"setValue",value:function(e){var t,n="text"===this.settings.saveAs;if(!this.calendar)return e=e&&(0,l.formatDate)(e,(0,l.convertFormatToMoment)(this.settings.format),this.timezone,(0,l.convertFormatToMoment)(this.valueMomentFormat)),m(g(i.prototype),"setValue",this).call(this,e);this.isValueISO8601(e)?this.calendar.setDate((0,s.default)(e).toDate(),!1):e?(t=this.loadZones(),n||!this.settings.readOnly||t?this.calendar.setDate((0,s.default)(e,this.valueMomentFormat).toDate(),!1):this.calendar.setDate((0,l.momentDate)(e,this.valueFormat,this.timezone).toDate(),!1)):this.calendar.clear(!1)}},{key:"getValueAsString",value:function(e,t){var t=t||this.dateFormat,n=this.calendar?this.valueFormat:this.settings.dateFormat;return"text"===this.settings.saveAs&&this.componentInstance.parent&&!this.settings.readOnly?(0,s.default)(e,(0,l.convertFormatToMoment)(n)).format((0,l.convertFormatToMoment)(n)):(0,l.formatDate)(e,t,this.timezone,(0,l.convertFormatToMoment)(n))}},{key:"setErrorClasses",value:function(e){this.input&&(e?(this.addClass(this.input,"is-invalid"),this.input.setAttribute("aria-invalid","true")):(this.removeClass(this.input,"is-invalid"),this.input.setAttribute("aria-invalid","false")))}},{key:"validationValue",value:function(e){return"string"==typeof e?new Date(e):e.map(function(e){return new Date(e)})}},{key:"isCalendarElement",value:function(e){var t;return!e||(!(null==(t=this.calendar)||null==(t=t.config)||null==(t=t.appendTo)||!t.contains(e))||(null==(t=this.calendar)||null==(t=t.calendarContainer)?void 0:t.contains(e)))}},{key:"initFlatpickr",value:function(e){var n=this,t=this._input.value;this.calendar=new e(this._input,f(f({},this.settings),{},{disableMobile:!0})),t&&(this.isValueISO8601(t)?this.calendar.setDate((0,s.default)(t).toDate(),!1,this.settings.altFormat):this.calendar.setDate((0,s.default)(t,(0,l.convertFormatToMoment)(this.dateFormat)).toDate(),!1,this.settings.altFormat)),this.calendar.altInput.addEventListener("input",function(e){n.settings.allowInput&&n.settings.currentValue!==e.target.value&&(n.settings.manualInputValue=e.target.value,n.settings.isManuallyOverriddenValue=!0,n.settings.currentValue=e.target.value),""===e.target.value&&0<n.calendar.selectedDates.length?(n.settings.wasDefaultValueChanged=!0,n.settings.defaultValue=e.target.value,n.calendar.clear()):n.settings.wasDefaultValueChanged=!1}),this.settings.readOnly||this.setInputMask(this.calendar._input,(0,l.convertFormatToMask)(this.settings.format)),E&&(e=this.calendar._handlers.find(function(e){var t=e.event,e=e.element;return"blur"===t&&e===n.calendar._input}),this.calendar._input.removeEventListener("blur",e.handler),this.addEventListener(this.calendar._input,"blur",function(e){var t=(n.settings.shadowRoot||document).activeElement,t=e.relatedTarget||t;e.target!==n.calendar._input||n.isCalendarElement(t)||n.calendar.setDate(n.calendar._input.value,!0,e.target===n.calendar.altInput?n.calendar.config.altFormat:n.calendar.config.dateFormat)})),this.addEventListener(this.calendar._input,"blur",function(e){var t=(n.settings.shadowRoot||document).activeElement,e=e.relatedTarget||t;E&&!e||n.isCalendarElement(e)?!n.calendar.input.value&&n.calendar.config.noCalendar&&(t=(0,s.default)({hour:null==(t=n.calendar)||null==(e=t.config)?void 0:e.defaultHour,minute:null==(t=n.calendar)||null==(e=t.config)?void 0:e.defaultMinute}).toDate(),n.calendar.setDate(t,!0,n.settings.format)):(t=(e=n.calendar.input.value)&&n.settings.enableTime?(0,s.default)(n.calendar.input.value,(0,l.convertFormatToMoment)(n.valueFormat)).toDate():e,n.calendar.setDate(t,!0,n.settings.altFormat))}),this.addEventListener(this.calendar.altInput,"keydown",function(e){13===e.keyCode&&n.calendar.isOpen&&(n.calendar.close(),e.stopPropagation())})}},{key:"initShortcutButtonsPlugin",value:function(e){var t=this;this.settings.plugins=[e({button:this.component.shortcutButtons.map(function(e){return{label:e.label,attributes:e.attribute}}),onClick:function(e){e=t.component.shortcutButtons[e].onClick,e=t.evaluate(e,{date:new Date},"date");t.calendar.setDate(e,!0)}})]}},{key:"getFlatpickrFormatDate",value:function(r){var o=this;return function(e,t){var n;return!o.settings.readOnly||t!==o.settings.altFormat||!o.settings.enableTime||o.loadZones()?r.formatDate(e,t):new Date(o.getValue()).toString()===e.toString()?(n=o.componentInstance.dataValue,Array.isArray(n)&&(n=n[o.valueIndex]),(0,l.formatOffset)(r.formatDate.bind(r),new Date(n),t,o.timezone)):(0,l.formatOffset)(r.formatDate.bind(r),e,t,o.timezone)}}},{key:"destroy",value:function(){m(g(i.prototype),"destroy",this).call(this),this.calendar&&this.calendar.destroy()}}])&&d(t.prototype,n),e&&d(t,e),Object.defineProperty(t,"prototype",{writable:!1}),i}(r.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),n(42),n(32),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(109),n(16),n(20),n(475),n(26),n(60),n(25),n(1),n(14),n(0),n(39),n(9);var l=a(n(10)),r=a(n(476)),i=a(n(477));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=h(n),t=(e=r?(e=h(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e);var n,r=p(o);function o(e,t){if(this instanceof o)return(e=r.call(this,e,t))._entropy=0,e.levels=s(e.settings.levels||e.defaultSettings.levels),e.levels.sort(function(e,t){return e.maxEntropy-t.maxEntropy}),e.level=e.levels[0],e.maxEntropy=e.levels[e.levels.length-1].maxEntropy,e;throw new TypeError("Cannot call a class as a function")}return t=o,e=[{key:"info",get:function(){return{supportedComponents:["password"],name:"passwordStrength",components:i.default,label:"Password Strength",defaultSettings:{rulesSettings:[{name:"length",required:!1,message:"Value should be longer"},{name:"upperCase",required:!1,message:"Value should have uppercase letters"},{name:"numeric",required:!1,message:"Value should have numeric symbols"},{name:"lowerCase",required:!1,message:"Value should be have lowercase letters"},{name:"symbols",required:!1,message:"Value should have symbols"}],updateOn:"levelChange",required:!0,levels:[{name:"Low",maxEntropy:28,style:"danger"},{name:"Medium",maxEntropy:45,style:"warning"},{name:"High",maxEntropy:59,style:"info"},{name:"Very High",maxEntropy:85,style:"success"}],blackList:[],template:"\n          <div class=\"formio-security-indicator\">\n            {% if (!ctx.readOnly && !ctx.pristine) { %}\n              <div\n                title=\"{{ctx.t(ctx.tooltip)}}\"\n                class=\"security-{{ctx.levelName}} {{ ctx.level.style ? 'bg-' + ctx.level.style : ''}}\"\n                style=\"{{ctx.level.color ? 'background-color: ' + ctx.level.color + ';' : ''}}\"\n              ></div>\n            {% } %}\n          </div>\n        ",location:{insert:"after",selector:'[ref="element"]'}}}}}],(n=[{key:"defaultSettings",get:function(){return o.info.defaultSettings}},{key:"rules",get:function(){var n=this;return{length:{check:function(e,t){t=t.minLength||n.component.component.validate.minLength||6;return!(e.length<t)||"Value must be longer than ".concat(t," characters")}},upperCase:{check:function(e){return!!/[A-Z]/g.test(e)||"Value must contain uppercased alphabetical characters"},increaseCharactersPoolSize:26},numeric:{check:function(e){return!!/[0-9]/g.test(e)||"Value must contain numeric characters"},increaseCharactersPoolSize:10},lowerCase:{check:function(e){return!!/[a-z]/g.test(e)||"Value must contain lowercased alphabetical characters"},increaseCharactersPoolSize:26},symbols:{check:function(e){return!!/[ `!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?~]/.test(e)||"Value must contain symbols"},increaseCharactersPoolSize:32}}}},{key:"charactersPoolLength",get:function(){return this._charactersPoolLength},set:function(e){this._charactersPoolLength=e}},{key:"level",get:function(){return this._level||this.getLevel()},set:function(e){this._level=e}},{key:"entropy",get:function(){return this._entropy},set:function(e){var t=this.getLevel(),n="entropyChange"===this.settings.updateOn&&this._entropy!==e;this._entropy=e,this.level=this.getLevel(),("levelChange"===this.settings.updateOn&&t.name!==this.level.name||n)&&this.updateView()}},{key:"dictionarySize",get:function(){return this.settings.dictionarySize||171476}},{key:"template",get:function(){return this.settings.template}},{key:"tooltip",get:function(){var e;return(null==(e=this.level)?void 0:e.tooltip)||"".concat(null==(e=this.level)?void 0:e.name," strongness")}},{key:"rulesSettings",get:function(){return this.settings.rulesSettings||[]}},{key:"customRules",get:function(){return this.settings.customRules||[]}},{key:"log2",value:function(e){return"function"==typeof Math.log2?Math.log2(e):Math.log(e)*Math.LOG2E}},{key:"calculatePasswordEntropy",value:function(e,t){return e&&t?this.log2(Math.pow(t,e)):0}},{key:"calculatePasswordEntropyWords",value:function(e){return this.dictionarySize?this.log2(this.dictionarySize)*e:0}},{key:"render",value:function(){var e=this.component.interpolate(this.template,{entropy:this.entropy,maxEntropy:this.maxEntropy,level:this.level,levelName:this.level.name.replace(" ","-").toLowerCase(),levels:this.levels,readOnly:this.component.options.readOnly,pristine:this.component.pristine,t:this.t.bind(this),tooltip:this.tooltip});return this.component.sanitize(e)}},{key:"checkBlackList",value:function(e){for(var t=s(this.settings.blackList),n=this.settings.customBlacklistedWords,r=(n&&"string"==typeof n&&(n=this.evaluate(n,this.component.evalContext({value:e}),"values"))&&n.length&&t.push.apply(t,s(n)),e),o=[],i=0;i<t.length;i++){var a=t[i],l=new RegExp("".concat(a),"gi");if(l.test(e)&&(o.push(a),r=r.replace(l,"")),r.length<3)break}return!o.length||(n=(r.length?this.performChecks(r):0).charactersPoolSize,n=this.calculatePasswordEntropy(r.length,n),{entropy:this.calculatePasswordEntropyWords(o.length)+n,blacklistedWords:o})}},{key:"isValid",value:function(){var e=this.settings.isValid;return e&&"string"==typeof e?this.evaluate(e,this.component.evalContext({entropy:this.entropy,level:this.level}),"valid"):this.entropy>=Math.round(this.maxEntropy/2)}},{key:"handleRuleCheckResult",value:function(e,t,n,r){if(!0!==e)r.push({validation:t.name,message:n,level:t.required?"error":"warning"});else if(t.increaseCharactersPoolSize)return t.increaseCharactersPoolSize;return 0}},{key:"performChecks",value:function(r){var o=this,i=[],a=0;return this.rulesSettings.forEach(function(e){var t,n;o.rules[e.name]&&(n=(t=l.default.merge({},o.rules[e.name],e)).check(r,e.options||{}),e=e.message||n,a+=o.handleRuleCheckResult(n,t,e,i))}),this.customRules.forEach(function(e){var t,n;e.check&&"string"==typeof e.check&&(n="string"==typeof(t=o.evaluate(e.check,o.component.evalContext({value:r}),"valid"))?t:"Password does not meet ".concat(e.name," validation"),a+=o.handleRuleCheckResult(t,e,n,i))}),{charactersPoolSize:a,errors:i}}},{key:"checkValidity",value:function(e){var t=e.length,n=this.performChecks(e),r=n.charactersPoolSize,n=n.errors,n=(this.errors=n,this.calculatePasswordEntropy(t,r)),r=null!=(t=this.settings.blackList)&&t.length||this.settings.customBlacklistedWords?this.checkBlackList(e):null;return r&&!0!==r?(this.handleBlackListCheckResult(r),this.entropy=Math.min(n,r.entropy)):this.entropy=n,this.isValid()||this.errors.push({message:"Password is not strong enough",level:this.settings.required?"error":"warning"}),!this.errors.length}},{key:"handleBlackListCheckResult",value:function(e){var e=e.blacklistedWords,t=this.settings.disableBlacklistedWords,e="Password ".concat(t?"must":"should"," not include common words: ").concat(e.join(", "));this.handleRuleCheckResult(!1,{name:"blacklist",required:t},e,this.errors)}},{key:"attach",value:function(e){var t=this,n=(f(h(o.prototype),"attach",this).call(this,e),this.component.ce("div",{ref:"passwordStrengthIndicator"}));this.insertContainer(e,n)||this.component.append(n),this._element=n,this.component.on("redraw",function(){return t.updateView()}),this.component.on("componentError",function(){return t.updateView()}),this.updateView()}},{key:"insertContainer",value:function(e,t){if(!e||!t)return!1;var n,r=null==(o=this.settings.location)?void 0:o.insert,o=null==(o=this.settings.location)?void 0:o.selector;if(!(n=o?e.querySelector(o):n))return console.warn("No elements found using selector: ".concat(o)),!1;var i=n.parentNode;switch(r){case"after":return i?(i.insertBefore(t,n.nextSibling||null),!0):!1;case"before":return i?(i.insertBefore(t,n),!0):!1;default:return console.warn("Unknown insert option: ".concat(r)),!1}}},{key:"destroy",value:function(){f(h(o.prototype),"destroy",this).call(this)}},{key:"getLevel",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.entropy,t=this.levels[0],n=t.maxEntropy;if(!(e<=t.maxEntropy)){if(e>=this.maxEntropy)return this.levels[this.levels.length-1];for(var r=1;r<this.levels.length;r++){var o=this.levels[r];if(n<e&&e<=o.maxEntropy)return o;n=o.maxEntropy}}return t}},{key:"updateView",value:function(){var e;this.element&&(e=this.render(),this.element.innerHTML=e)}}])&&c(t.prototype,n),e&&c(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.default);t.default=n},function(e,t,n){var n=n(15),r=Math.log,o=Math.LN2;n({target:"Math",stat:!0},{log2:function(e){return r(e)/o}})},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(9);var r=l(n(170)),i=l(n(24)),a=l(n(10));function l(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)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=f(n),t=(e=r?(e=f(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e);var n,r=c(o);function o(e,t){var n;if(this instanceof o)return(n=r.call(this,e)).namespace="formio.plugin",n.component=t||{},n.settings=a.default.merge({},n.defaultSettings,e||{}),n;throw new TypeError("Cannot call a class as a function")}return t=o,e=[{key:"info",get:function(){return{supportedComponents:[],name:"formioAddon",components:[],label:"Formio Addon",defaultSettings:{}}}}],(n=[{key:"defaultSettings",get:function(){return o.info.defaultSettings}},{key:"element",get:function(){return this._element}},{key:"attach",value:function(e){return this._element=e,i.default.resolve()}},{key:"destroy",value:function(){}}])&&s(t.prototype,n),e&&s(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.default);t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n=(n=n(74))&&n.__esModule?n:{default:n};n=[{label:"Strength Levels",reorder:!1,addAnotherPosition:"bottom",layoutFixed:!1,enableRowGroups:!1,initEmpty:!1,tableView:!1,defaultValue:[{}],key:"levels",type:"editgrid",input:!0,components:[{label:"Name",tableView:!0,validate:{required:!0},key:"name",type:"textfield",input:!0},{label:"Max Entropy",description:"Specifies the top boundary of the password's entropy(strength) which belongth to this level.\nCommon entropy values are:\n<ul>\n  <li>&lt; 28 bits = Very Weak;</li>\n  <li>28 - 35 bits = Weak; should keep out most people;</li>\n  <li>36 - 59 bits = Reasonable; fairly secure passwords for network and company passwords;</li>\n  <li>60 - 127 bits = Strong; can be good for guarding financial information;</li>\n  <li>&gt; 128 bits = Very Strong; often overkill;</li>\n</ul>\n",mask:!1,spellcheck:!0,tableView:!1,delimiter:!1,requireDecimal:!1,inputFormat:"plain",validate:{required:!0,min:1,max:128},key:"maxEntropy",type:"number",input:!0},{label:"Style",tooltip:"Specifies the backgounf color style using bootstrap classes",tableView:!0,data:{values:[{label:"Danger",value:"danger"},{label:"Warning",value:"warning"},{label:"Info",value:"info"},{label:"Success",value:"success"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"style",type:"select",indexeddb:{filter:{}},input:!0},{label:"Color",placeholder:"#0079c0",tooltip:"Specifies a color of the indicator element",tableView:!0,key:"color",type:"textfield",input:!0}]},{label:"Update On",tableView:!0,data:{values:[{label:"Strength Level Change",value:"levelChange"},{label:"Entropy Change",value:"entropyChange"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"updateOn",type:"select",indexeddb:{filter:{}},input:!0},{label:"Rules",reorder:!1,addAnotherPosition:"bottom",layoutFixed:!1,enableRowGroups:!1,initEmpty:!1,tableView:!1,defaultValue:[{}],key:"rulesSettings",type:"datagrid",input:!0,components:[{label:"Name",tableView:!0,data:{values:[{label:"Length",value:"length"},{label:"Lower Case",value:"lowerCase"},{label:"Upper Case",value:"upperCase"},{label:"Numeric",value:"numeric"},{label:"Symbols",value:"symbols"}]},selectThreshold:.3,validate:{required:!0,onlyAvailableItems:!1},key:"name",type:"select",indexeddb:{filter:{}},input:!0},{label:"Error Message",tableView:!0,key:"errorMessage",type:"textfield",input:!0},{label:"Required",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1}]},{label:"Custom Rules",tableView:!1,rowDrafts:!1,key:"customRules",type:"editgrid",input:!0,components:[{label:"Name",tableView:!0,validate:{required:!0},key:"name",type:"textfield",input:!0},n.default.javaScriptValue("Check","check","",1100,'<p><h4>Example:</h4><pre>valid = !value.includes(data.email) ? true : "Password should not be variation of the email";</pre></p>',"","",!0),{label:"Increase Characters Pool Size",description:"Set this to amount of characters that may be used in the password if there is a specific group of characters is used.\nE.g., if your validation checks if there is any numeric symbol in the password, then you should set it to 10 (there are 10 possible numbers).\n",mask:!1,spellcheck:!0,tableView:!1,delimiter:!1,requireDecimal:!1,inputFormat:"plain",key:"increaseCharactersPoolSize",type:"number",input:!0},{label:"Required",tooltip:"Check if this check is required to proceed",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1}]},n.default.javaScriptValue("Is Valid","isValid","",1100,"<p><h4>Example:</h4><pre>valid = entropy > maxEntropy / 2 ;</pre></p>","","<tr><th>entropy</th><td>Current entropy bits of the password.</td></tr><tr><th>level</th><td>Current strength level of the password.</td></tr>",!0),{label:"Required",description:"Check this if you don't want to allow submitting password which does not correspond to the minimal strength requirements.",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1},{label:"Black List",tooltip:"Add words to search in the password. If there are some words from that list were found, the entropy of the password will be recalculated.\n",tableView:!0,multiple:!0,key:"blackList",type:"textfield",input:!0},n.default.javaScriptValue("Custom Blacklisted Words","customBlackListedWords","",1100,"<p><h4>Example:</h4><pre>values = [ data.name, data.dataOfBirth, data.favoriteColor ];</pre></p>","","",!0),{label:"Disable Blacklisted Words",tooltip:"Check if you want to disable submitting passwords containing words form the clack list",tableView:!1,key:"disableBlacklistedWords",type:"checkbox",input:!0,defaultValue:!1},{label:"Location",hideLabel:!1,tableView:!1,key:"location",type:"container",input:!0,components:[{label:"Insert",tooltip:"Specifies where the indicator will be inserted: before or aftre an element",tableView:!0,data:{values:[{label:"Before",value:"before"},{label:"After",value:"after"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"insert",type:"select",indexeddb:{filter:{}},input:!0},{label:"Selector",placeholder:"[ref='element']",description:"Specifies the selector of the element which will be used as a reference to insert the indicator template",tableView:!0,key:"selector",type:"textfield",input:!0}]},{label:"Template",editor:"ace",tableView:!0,key:"template",type:"textarea",input:!0,as:"html"}];t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFormioUploadAdapterPlugin=void 0,n(20),n(1),n(214),n(492),n(0);var c=n(19),o=(n=n(24))&&n.__esModule?n:{default:n};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)}}var r=function(){function r(e,t,n){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");this.loader=e,this.fileService=t,this.component=n}var e,t,n;return e=r,(t=[{key:"upload",value:function(){var u=this;return this.loader.file.then(function(s){return new o.default(function(t,n){var e=u.component.component,r=e.uploadStorage,o=e.uploadUrl,i=e.uploadOptions,a=e.uploadDir,e=e.fileKey,r=[r,s,(0,c.uniqueName)(s.name),a||"",function(e){return u.onUploadProgress(e)},o,i,e,null,null],l=(a=u.fileService).uploadFile.apply(a,r.concat([function(){return u.component.emit("fileUploadingStart",l)}])).then(function(e){return u.fileService.downloadFile(e)}).then(function(e){return t({default:e.url})}).catch(function(e){console.warn("An Error occured while uploading file",e),n(e)}).finally(function(){u.component.emit("fileUploadingEnd",l)})})})}},{key:"abort",value:function(){}},{key:"onUploadProgress",value:function(e){e.lengthComputable&&(this.loader.uploadTotal=e.total,this.loader.uploaded=e.loaded)}}])&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),r}();t.getFormioUploadAdapterPlugin=function(t,n){return function(e){e.plugins.get("FileRepository").createUploadAdapter=function(e){return new r(e,t,n)}}}},function(L,V,e){"use strict";function i(e,t){var n,r,o,i,a=t.value,l=t.state==E,s=l?e.ok:e.fail,u=e.resolve,c=e.reject,f=e.domain;try{s?(l||(t.rejection===j&&(i=t,h(m,p,function(){var e=i.facade;d?O.emit("rejectionHandled",e):A(X,e,i.value)})),t.rejection=x),!0===s?n=a:(f&&f.enter(),n=s(a),f&&(f.exit(),o=!0)),n===e.promise?c(k("Promise-chain cycle")):(r=C(n))?h(r,n,u,c):u(n)):c(a)}catch(e){f&&!o&&f.exit(),c(e)}}var n,t,r,N=e(15),F=e(63),d=e(172),p=e(21),h=e(27),o=e(48),a=e(108),U=e(107),z=e(157),B=e(58),l=e(29),H=e(35),q=e(110),W=e(155),m=e(294).set,s=e(481),K=e(484),Y=e(215),G=e(485),u=e(59),c=e(113),f=e(132),e=e(133),y="Promise",v=f.CONSTRUCTOR,$=f.REJECTION_EVENT,f=f.SUBCLASSING,b=u.getterFor(y),J=u.set,u=c&&c.prototype,g=c,w=u,k=p.TypeError,_=p.document,O=p.process,S=e.f,Q=S,Z=!!(_&&_.createEvent&&p.dispatchEvent),P="unhandledrejection",X="rejectionhandled",E=1,ee=2,x=1,j=2,C=function(e){var t;return!(!H(e)||!l(t=e.then))&&t},R=function(n,o){n.notified||(n.notified=!0,s(function(){for(var e,r,t=n.reactions;e=t.get();)i(e,n);n.notified=!1,o&&!n.rejection&&(r=n,h(m,p,function(){var e=r.facade,t=r.value,n=M(r);if(n&&(n=Y(function(){d?O.emit("unhandledRejection",t,e):A(P,e,t)}),r.rejection=d||M(r)?j:x,n.error))throw n.value}))}))},A=function(e,t,n){var r;Z?((r=_.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),p.dispatchEvent(r)):r={promise:t,reason:n},!$&&(t=p["on"+e])?t(r):e===P&&K("Unhandled promise rejection",n)},M=function(e){return e.rejection!==x&&!e.parent},T=function(t,n,r){return function(e){t(n,e,r)}},D=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=ee,R(e,!0))},I=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw k("Promise can't be resolved itself");var r=C(e);r?s(function(){var t={done:!1};try{h(r,e,T(I,t,n),T(D,t,n))}catch(e){D(t,e,n)}}):(n.value=e,n.state=E,R(n,!1))}catch(e){D({done:!1},e,n)}}};if(v&&(w=(g=function(e){q(this,w),B(e),h(n,this);var t=b(this);try{e(T(I,t),T(D,t))}catch(e){D(t,e)}}).prototype,(n=function(e){J(this,{type:y,done:!1,notified:!1,parent:!1,reactions:new G,rejection:!1,state:0,value:void 0})}).prototype=o(w,"then",function(e,t){var n=b(this),r=S(W(this,g));return n.parent=!0,r.ok=!l(e)||e,r.fail=l(t)&&t,r.domain=d?O.domain:void 0,0==n.state?n.reactions.add(r):s(function(){i(r,n)}),r.promise}),t=function(){var e=new n,t=b(e);this.promise=e,this.resolve=T(I,t),this.reject=T(D,t)},e.f=S=function(e){return e===g||void 0===e?new t:Q(e)},!F&&l(c)&&u!==Object.prototype)){r=u.then,f||o(u,"then",function(e,t){var n=this;return new g(function(e,t){h(r,n,e,t)}).then(e,t)},{unsafe:!0});try{delete u.constructor}catch(e){}a&&a(u,w)}N({global:!0,constructor:!0,wrap:!0,forced:v},{Promise:g}),U(g,y,!1,!0),z(y)},function(e,t){var n=TypeError;e.exports=function(e,t){if(e<t)throw n("Not enough arguments");return e}},function(e,t,n){var r,o,i,a,l,s,u,c=n(21),f=n(92),d=n(65).f,p=n(294).set,h=n(295),m=n(482),y=n(483),v=n(172),n=c.MutationObserver||c.WebKitMutationObserver,b=c.document,g=c.process,w=c.Promise,d=d(c,"queueMicrotask"),d=d&&d.value;d||(r=function(){var e,t;for(v&&(e=g.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},a=h||v||y||!n||!b?!m&&w&&w.resolve?((h=w.resolve(void 0)).constructor=w,u=f(h.then,h),function(){u(r)}):v?function(){g.nextTick(r)}:(p=f(p,c),function(){p(r)}):(l=!0,s=b.createTextNode(""),new n(r).observe(s,{characterData:!0}),function(){s.data=l=!l})),e.exports=d||function(e){e={fn:e,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},function(e,t,n){var r=n(79),n=n(21);e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==n.Pebble},function(e,t,n){n=n(79);e.exports=/web0s(?!.*chrome)/i.test(n)},function(e,t,n){var r=n(21);e.exports=function(e,t){var n=r.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},function(e,t){function n(){this.head=null,this.tail=null}n.prototype={add:function(e){e={item:e,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=n},function(e,t,n){var r=n(296),n=n(172);e.exports=!r&&!n&&"object"==typeof window&&"object"==typeof document},function(e,t,n){"use strict";var r=n(15),c=n(27),f=n(58),o=n(133),i=n(215),d=n(125);r({target:"Promise",stat:!0,forced:n(297)},{all:function(e){var l=this,t=o.f(l),s=t.resolve,u=t.reject,n=i(function(){var r=f(l.resolve),o=[],i=0,a=1;d(e,function(e){var t=i++,n=!1;a++,c(r,l,e).then(function(e){n||(n=!0,o[t]=e,--a||s(o))},u)}),--a||s(o)});return n.error&&u(n.value),t.promise}})},function(e,t,n){"use strict";var r=n(15),o=n(63),i=n(132).CONSTRUCTOR,a=n(113),l=n(57),s=n(29),n=n(48),u=a&&a.prototype;r({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&s(a)&&(r=l("Promise").prototype.catch,u.catch!==r&&n(u,"catch",r,{unsafe:!0}))},function(e,t,n){"use strict";var r=n(15),i=n(27),a=n(58),l=n(133),s=n(215),u=n(125);r({target:"Promise",stat:!0,forced:n(297)},{race:function(e){var n=this,r=l.f(n),o=r.reject,t=s(function(){var t=a(n.resolve);u(e,function(e){i(t,n,e).then(r.resolve,o)})});return t.error&&o(t.value),r.promise}})},function(e,t,n){"use strict";var r=n(15),o=n(27),i=n(133);r({target:"Promise",stat:!0,forced:n(132).CONSTRUCTOR},{reject:function(e){var t=i.f(this);return o(t.reject,void 0,e),t.promise}})},function(e,t,n){"use strict";var r=n(15),o=n(57),i=n(63),a=n(113),l=n(132).CONSTRUCTOR,s=n(298),u=o("Promise"),c=i&&!l;r({target:"Promise",stat:!0,forced:i||l},{resolve:function(e){return s(c&&this===u?a:this,e)}})},function(e,t,n){"use strict";var r=n(15),o=n(63),i=n(113),a=n(12),l=n(57),s=n(29),u=n(155),c=n(298),n=n(48),f=i&&i.prototype;r({target:"Promise",proto:!0,real:!0,forced:!!i&&a(function(){f.finally.call({then:function(){}},function(){})})},{finally:function(t){var n=u(this,l("Promise")),e=s(t);return this.then(e?function(e){return c(n,t()).then(function(){return e})}:t,e?function(e){return c(n,t()).then(function(){throw e})}:t)}}),!o&&s(i)&&(r=l("Promise").prototype.finally,f.finally!==r&&n(f,"finally",r,{unsafe:!0}))},function(L,e,t){"use strict";t(23),t(2),t(22),t(11),t(14),t(31),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t(1),t(25);var n=T(t(494)),r=T(t(497)),o=T(t(499)),i=T(t(501)),a=T(t(503)),l=T(t(505)),s=T(t(507)),u=T(t(509)),c=T(t(511)),f=T(t(513)),d=T(t(516)),p=T(t(519)),h=T(t(521)),m=T(t(523)),y=T(t(525)),v=T(t(527)),b=T(t(529)),g=T(t(531)),w=T(t(534)),k=T(t(536)),_=T(t(538)),O=T(t(541)),S=T(t(544)),P=T(t(547)),E=T(t(549)),x=T(t(551)),j=T(t(553)),C=T(t(555)),R=T(t(556)),A=T(t(559)),M=T(t(561)),V=T(t(563)),N=T(t(565)),F=T(t(567)),U=T(t(569)),z=T(t(571)),B=T(t(573)),H=T(t(575)),q=T(t(577)),W=T(t(579)),K=T(t(581)),Y=T(t(583)),G=T(t(585)),$=T(t(587)),J=T(t(589)),Q=T(t(592)),Z=T(t(594)),X=T(t(597)),ee=T(t(600)),te=T(t(603)),ne=T(t(606)),re=T(t(609)),oe=T(t(611)),ie=T(t(613)),ae=T(t(616)),le=T(t(619)),se=T(t(621)),ue=T(t(624)),ce=T(t(626)),fe=T(t(628)),de=T(t(630)),pe=T(t(632)),he=T(t(633)),t=T(t(635));function T(e){return e&&e.__esModule?e:{default:e}}function D(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function I(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?D(Object(o),!0).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):D(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}C=I(I({transform:function(e,t){return t&&("class"===e&&this.cssClasses.hasOwnProperty(t.toString())?this.cssClasses[t.toString()]:t)},defaultIconset:"fa",iconClass:C.default,cssClasses:pe.default,address:n.default,builder:r.default,builderComponent:o.default,builderComponents:i.default,builderEditForm:a.default,builderPlaceholder:l.default,builderSidebar:s.default,builderSidebarGroup:u.default,builderWizard:c.default,button:f.default,checkbox:d.default,columns:p.default,component:h.default,componentModal:m.default,components:y.default,tableComponents:v.default,container:b.default,datagrid:g.default,day:w.default,dialog:k.default,editgrid:_.default,editgridTable:O.default,field:S.default,fieldset:P.default,file:E.default,html:x.default,icon:j.default,input:R.default,label:A.default,loader:M.default,loading:V.default,map:N.default,message:F.default,modaledit:z.default,modaldialog:U.default,modalPreview:B.default,multipleMasksInput:H.default,multiValueRow:q.default,multiValueTable:W.default,panel:K.default,pdf:Y.default,pdfBuilder:G.default,pdfBuilderUpload:$.default,radio:J.default,resourceAdd:Q.default,select:Z.default,selectOption:X.default,signature:ee.default,survey:te.default,tab:ne.default,table:re.default,tree:oe.default},ie.default),{},{webform:ae.default,well:le.default,wizard:se.default,wizardHeader:ue.default,wizardHeaderClassic:ce.default,wizardHeaderVertical:fe.default,wizardNav:de.default,errorsList:he.default,alert:t.default});e.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(495)),n=o(n(496));function o(e){return e&&e.__esModule?e:{default:e}}r={form:r.default,html:n.default};t.default=r},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      aria-label="'+(null==(t=e.t("autocomplete"))?"":t)+'"\n    >\n    ',e.component.disableClearIcon||(n+='\n      <i\n        class="address-autocomplete-remove-value-icon fa fa-times"\n        tabindex="'+(null==(t=e.inputAttributes.tabindex)?"":t)+'"\n        ref="'+(null==(t=e.ref.removeValueIcon)?"":t)+'"\n      ></i>\n    '),n+="\n  </div>\n"}return n+="\n",e.self.manualModeEnabled&&(n+='\n  <div class="form-check checkbox">\n    <label class="form-check-label">\n      <input\n        ref="'+(null==(t=e.ref.modeSwitcher)?"":t)+'"\n        type="checkbox"\n        class="form-check-input"\n        tabindex="'+(null==(t=e.inputAttributes.tabindex)?"":t)+'"\n        ',e.mode.manual&&(n+="checked=true"),n+="\n        ",e.disabled&&(n+="disabled=true"),n+="\n      >\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){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="";Array.prototype.join;return t+='<div ref="value">',e.displayValue?t+=null==(e=e.displayValue)?"":e:t+="-",t+="</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(498))&&n.__esModule?n:{default:n}).default};t.default=n},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}),t.default=void 0;n={form:((n=n(500))&&n.__esModule?n:{default:n}).default};t.default=n},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\n        role="button"\n        aria-label="Remove button. Click to remove component from the form"\n        tabindex="-1"\n        class="btn btn-xxs btn-danger component-settings-button component-settings-button-remove"\n        ref="removeComponent"\n      >\n        <i class="'+(null==(t=e.iconClass("remove"))?"":t)+'"></i>\n      </div>\n      <div\n        role="button"\n        aria-label="Copy button. Click to copy component"\n        tabindex="-1"\n        class="btn btn-xxs btn-default component-settings-button component-settings-button-copy"\n        ref="copyComponent"\n      >\n        <i class="'+(null==(t=e.iconClass("copy"))?"":t)+'"></i>\n      </div>\n      <div\n        role="button"\n        aria-label="Paste below button. Click to paste component below the current component"\n        tabindex="-1"\n        class="btn btn-xxs btn-default component-settings-button component-settings-button-paste"\n        ref="pasteComponent"\n      >\n        <i class="'+(null==(t=e.iconClass("save"))?"":t)+'"></i>\n      </div>\n      <div\n        role="button"\n        aria-label="Edit json button. Click to edit json of the current component"\n        tabindex="-1"\n        class="btn btn-xxs btn-default component-settings-button component-settings-button-edit-json" \n        ref="editJson"\n      >\n        <i class="'+(null==(t=e.iconClass("wrench"))?"":t)+'"></i>\n      </div>\n      <div\n        role="button"\n        aria-label="Move button"\n        tabindex="-1"\n        class="btn btn-xxs btn-default component-settings-button component-settings-button-move"\n        ref="moveComponent"\n      >\n        <i class="'+(null==(t=e.iconClass("move"))?"":t)+'"></i>\n      </div>\n      <div\n        role="button"\n        aria-label="Edit button. Click to open component settings modal window"\n        tabindex="-1"\n        class="btn btn-xxs btn-secondary component-settings-button component-settings-button-edit"\n        ref="editComponent"\n      >\n        <i class="'+(null==(t=e.iconClass("cog"))?"":t)+'"></i>\n      </div>\n    </div>\n  '),n+="\n  "+(null==(t=e.html)?"":t)+"\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(502))&&n.__esModule?n:{default:n}).default};t.default=n},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}),t.default=void 0;n={form:((n=n(504))&&n.__esModule?n:{default:n}).default};t.default=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  <div class="col col-sm-6">\n    <p class="lead">'+(null==(t=e.t(e.componentInfo.title,{_userInput:!0}))?"":t)+" "+(null==(t=e.t("Component"))?"":t)+"</p>\n  </div>\n  ",e.helplinks&&(n+='\n  <div class="col col-sm-6">\n    <div class="float-right" style="margin-right: 20px; margin-top: 10px">\n      <a href="'+(null==(t=e.t(e.helplinks+e.componentInfo.documentation))?"":t)+'" target="_blank">\n        <i class="'+(null==(t=e.iconClass("new-window"))?"":t)+'"></i> '+(null==(t=e.t("Help"))?"":t)+"\n      </a>\n    </div>\n  </div>\n  "),n+='\n</div>\n<div class="row">\n  <div class="col ',e.preview?n+="col-sm-6":n+="col-sm-12",n+='">\n    <div ref="editForm">\n        '+(null==(t=e.editForm)?"":t)+"\n    </div>\n    ",e.preview||(n+='\n    <div style="margin-top: 10px;">\n      <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(t=e.t("Save"))?"":t)+'</button>\n      <button class="btn btn-secondary" style="margin-right: 10px;" ref="cancelButton">'+(null==(t=e.t("Cancel"))?"":t)+'</button>\n      <button class="btn btn-danger" ref="removeButton">'+(null==(t=e.t("Remove"))?"":t)+"</button>\n    </div>\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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(506))&&n.__esModule?n:{default:n}).default};t.default=n},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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(508))&&n.__esModule?n:{default:n}).default};t.default=n},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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(510))&&n.__esModule?n:{default:n}).default};t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var n,r="";Array.prototype.join;return r+='<div class="card form-builder-panel" ref="group-panel-'+(null==(n=t.groupKey)?"":n)+'">\n  <div class="card-header form-builder-group-header" id="heading-'+(null==(n=t.groupKey)?"":n)+'">\n    <h5 class="mb-0 mt-0">\n      <button\n        class="btn btn-block builder-group-button"\n        type="button"\n        data-toggle="collapse"\n        data-target="#group-'+(null==(n=t.groupKey)?"":n)+'"\n        data-parent="#'+(null==(n=t.groupId)?"":n)+'"\n        aria-expanded="'+(null==(n=t.group.default)?"":n)+'"\n        aria-controls="group-'+(null==(n=t.groupKey)?"":n)+'"\n        ref="sidebar-anchor"\n      >\n        '+(null==(n=t.t(t.group.title,{_userInput:!0}))?"":n)+'\n      </button>\n    </h5>\n  </div>\n  <div\n    id="group-'+(null==(n=t.groupKey)?"":n)+'"\n    class="collapse '+(null==(n=t.group.default?" show":"")?"":n)+'"\n    data-parent="#'+(null==(n=t.groupId)?"":n)+'"\n    data-default="'+(null==(n=t.group.default)?"":n)+'"\n    aria-labelledby="heading-'+(null==(n=t.groupKey)?"":n)+'"\n    ref="sidebar-group"\n  >\n    <div id="group-container-'+(null==(n=t.groupKey)?"":n)+'" class="card-body no-drop p-2" ref="sidebar-container">\n      ',t.group.componentOrder.length||t.subgroups.length?(r+="\n        ",t.group.componentOrder&&t.group.componentOrder.forEach(function(e){r+='\n          <span\n            data-group="'+(null==(n=t.groupKey)?"":n)+'"\n            data-key="'+(null==(n=t.group.components[e].key)?"":n)+'"\n            data-type="'+(null==(n=t.group.components[e].schema.type)?"":n)+'"\n            class="btn btn-primary btn-sm btn-block formcomponent drag-copy"\n          >\n            ',t.group.components[e].icon&&(r+='\n              <i class="'+(null==(n=t.iconClass(t.group.components[e].icon))?"":n)+'" style="margin-right: 5px;"></i>\n            '),r+="\n            "+(null==(n=t.t(t.group.components[e].title,{_userInput:!0}))?"":n)+"\n          </span>\n        "}),r+="\n        "+(null==(n=t.subgroups.join(""))?"":n)+"\n      "):r+="\n        <div>"+(null==(n=t.t("No Matches Found"))?"":n)+"</div>\n      ",r+="\n    </div>\n  </div>\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(512))&&n.__esModule?n:{default:n}).default};t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<div class="formio builder row formbuilder">\n  <div class="col-xs-4 col-sm-3 col-md-2 formcomponents">\n    '+(null==(r=n.sidebar)?"":r)+'\n  </div>\n  <div class="col-xs-8 col-sm-9 col-md-10 formarea">\n    <ol class="breadcrumb">\n      ',n.pages.forEach(function(e,t){o+='\n      <li>\n        <span title="'+(null==(r=e.title)?"":r)+'" class="mr-2 badge ',t===n.self.page?o+="badge-primary":o+="badge-info",o+=' wizard-page-label" ref="gotoPage">'+(null==(r=e.title)?"":r)+"</span>\n      </li>\n      "}),o+='\n      <li>\n        <span title="'+(null==(r=n.t("Create Page"))?"":r)+'" class="mr-2 badge badge-success wizard-page-label" ref="addPage">\n          <i class="'+(null==(r=n.iconClass("plus"))?"":r)+'"></i> '+(null==(r=n.t("Page"))?"":r)+'\n        </span>\n      </li>\n    </ol>\n    <div ref="form">\n      '+(null==(r=n.form)?"":r)+"\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=o(n(514)),n=o(n(515));function o(e){return e&&e.__esModule?e:{default:e}}r={form:r.default,html:n.default};t.default=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,r="";Array.prototype.join;for(n in r+="<"+(null==(t=e.input.type)?"":t)+'\n  ref="button"\n  ',e.input.attr)r+="\n  "+(null==(t=n)?"":t)+'="'+(null==(t=e.input.attr[n])?"":t)+'"\n  ';return r+="\n  ",e.component.description&&(r+='\n    aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n  '),r+="\n>\n",e.component.leftIcon&&(r+='<span class="'+(null==(t=e.component.leftIcon)?"":t)+'"></span>&nbsp;'),r+="\n"+(null==(t=e.input.content)?"":t)+"\n",e.component.tooltip&&(r+='\n  <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n'),r+="\n",e.component.rightIcon&&(r+='&nbsp;<span class="'+(null==(t=e.component.rightIcon)?"":t)+'"></span>'),r+="\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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(517)),n=o(n(518));function o(e){return e&&e.__esModule?e:{default:e}}r={form:r.default,html:n.default};t.default=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,r="";Array.prototype.join;for(n in r+='<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)r+="\n      "+(null==(t=n)?"":t)+'="'+(null==(t=e.input.attr[n])?"":t)+'"\n      ';return r+="\n      ",e.checked&&(r+="checked=true"),r+='\n      aria-required="'+(null==(t=e.component.validate.required)?"":t)+'"\n      ',e.component.description&&(r+='\n      aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n      '),r+="\n      >\n    ",e.self.labelIsHidden()||(r+="<span>"+(null==(t=e.input.label)?"":t)+"</span>"),r+="\n    ",e.component.tooltip&&(r+='\n      <i ref="tooltip" tabindex="0" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n    '),r+="\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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(520))&&n.__esModule?n:{default:n}).default};t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return n.component.columns.forEach(function(e,t){o+='\n<div class="\n    col-'+(null==(r=e.size)?"":r)+"-"+(null==(r=e.currentWidth)?"":r)+"\n    col-"+(null==(r=e.size)?"":r)+"-offset-"+(null==(r=e.offset)?"":r)+"\n    col-"+(null==(r=e.size)?"":r)+"-push-"+(null==(r=e.push)?"":r)+"\n    col-"+(null==(r=e.size)?"":r)+"-pull-"+(null==(r=e.pull)?"":r)+'\n  " ref="'+(null==(r=n.columnKey)?"":r)+'">\n  '+(null==(r=n.columnComponents[t])?"":r)+"\n</div>\n"}),o+="\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(522))&&n.__esModule?n:{default:n}).default};t.default=n},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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(524))&&n.__esModule?n:{default:n}).default};t.default=n},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" aria-labelledby="ml-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'" ',e.self.isIE()||(n+=' role="dialog" '),n+=' ref="modalContents">\n      <label class="sr-only" id="ml-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'">'+(null==(t=e.t(e.component.label))?"":t)+(null==(t=e.self.isIE()?", dialog":"")?"":t)+"</label>\n      ",e.options.vpat?n+='\n      <button class="formio-dialog-close float-right" title="Close" aria-label="Close button. Click to get back to the form" ref="modalCloseButton"></button>\n      ':n+='\n      <button class="formio-dialog-close float-right btn btn-secondary btn-sm" aria-label="Close button. Click to get back to the form" ref="modalClose"></button>\n      ',n+='\n      <div ref="modalContents">\n        ',e.visible&&(n+="\n        "+(null==(t=e.children)?"":t)+"\n        "),n+='\n        <div class="formio-dialog-buttons">\n          ',e.options.vpat&&(n+='\n          <button class="btn btn-secondary formio-dialog-button" aria-label="Cancel button. Click to cancel the changes and get back to the form." ref="modalClose">'+(null==(t=e.t("Cancel"))?"":t)+"</button>\n          "),n+='\n          <button class="btn btn-success formio-dialog-button" ref="modalSave" aria-label="Save button. Click to save the changes and get back to the form.">'+(null==(t=e.t("Save"))?"":t)+'</button>\n        </div>\n      </div>\n    </div>\n    <span class="sr-only" ref="modalLiveRegion" aria-live="assertive"></span>\n  </div>\n</div>\n'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(526))&&n.__esModule?n:{default:n}).default};t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="";return t+=(null==(e=e.children.join(""))?"":e)+"\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(528))&&n.__esModule?n:{default:n}).default};t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return e.children.forEach(function(e){n+='\n  <td class="editgrid-table-column">\n    '+(null==(t=e)?"":t)+"\n  </td>\n"}),n+="\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(530))&&n.__esModule?n:{default:n}).default};t.default=n},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=o(n(532)),n=o(n(533));function o(e){return e&&e.__esModule?e:{default:e}}r={form:r.default,html:n.default};t.default=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<table class="table datagrid-table table-bordered\n    '+(null==(r=n.component.striped?"table-striped":"")?"":r)+"\n    "+(null==(r=n.component.hover?"table-hover":"")?"":r)+"\n    "+(null==(r=n.component.condensed?"table-sm":"")?"":r)+'\n    " ',n.component.layoutFixed&&(o+='style="table-layout: fixed;"'),o+=">\n  ",n.hasHeader&&(o+="\n  <thead>\n    <tr>\n      ",n.component.reorder&&(o+="<th></th>"),o+="\n      ",n.columns.forEach(function(e){o+='\n        <th class="'+(null==(r=e.validate&&e.validate.required?"field-required":"")?"":r)+'">\n          '+(null==(r=e.hideLabel?"":n.t(e.label||e.title,{_userInput:!0}))?"":r)+"\n          ",e.tooltip&&(o+=' <i ref="tooltip" tabindex="0" data-title="'+(null==(r=e.tooltip)?"":r)+'" class="'+(null==(r=n.iconClass("question-sign"))?"":r)+' text-muted" data-tooltip="'+(null==(r=e.tooltip)?"":r)+'"></i>'),o+="\n        </th>\n      "}),o+="\n      ",n.hasExtraColumn&&(o+='\n      <th>\n        <span class="sr-only">'+(null==(r=n.t("Add/Remove"))?"":r)+"</span>\n        ",!n.builder&&n.hasAddButton&&n.hasTopSubmit&&(o+='\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(r=n.datagridKey)?"":r)+'-addRow" tabindex="'+(null==(r=n.tabIndex)?"":r)+'">\n          <i class="'+(null==(r=n.iconClass("plus"))?"":r)+'"></i>'+(null==(r=n.t(n.component.addAnother||"Add Another",{_userInput:!0}))?"":r)+"\n        </button>\n        "),o+="\n      </th>\n      "),o+="\n    </tr>\n  </thead>\n  "),o+='\n  <tbody ref="'+(null==(r=n.datagridKey)?"":r)+'-tbody" data-key="'+(null==(r=n.datagridKey)?"":r)+'">\n    ',n.rows.forEach(function(t,e){o+="\n    ",n.hasGroups&&n.groups[e]&&(o+='\n    <tr ref="'+(null==(r=n.datagridKey)?"":r)+'-group-header" class="datagrid-group-header'+(null==(r=n.hasToggle?" clickable":"")?"":r)+'">\n      <td\n        ref="'+(null==(r=n.datagridKey)?"":r)+'-group-label"\n        colspan="'+(null==(r=n.numColumns)?"":r)+'"\n        class="datagrid-group-label">'+(null==(r=n.groups[e].label)?"":r)+"</td>\n    </tr>\n    "),o+='\n    <tr ref="'+(null==(r=n.datagridKey)?"":r)+'-row">\n      ',n.component.reorder&&(o+='\n        <td>\n          <button type="button" class="formio-drag-button btn btn-default fa fa-bars" data-key="'+(null==(r=n.datagridKey)?"":r)+'"></button>\n        </td>\n      '),o+="\n      ",n.columns.forEach(function(e){o+='\n        <td ref="'+(null==(r=n.datagridKey)?"":r)+'" ',e.key&&e.overlay&&e.overlay.width&&(o+=' style="width: '+(null==(r=e.overlay.width+"px")?"":r)+'"'),o+=" >\n          "+(null==(r=t[e.key])?"":r)+"\n        </td>\n      "}),o+="\n      ",n.hasExtraColumn&&(o+="\n        ",n.hasRemoveButtons&&(o+='\n        <td>\n          <button type="button" class="btn btn-secondary formio-button-remove-row" ref="'+(null==(r=n.datagridKey)?"":r)+'-removeRow" tabindex="'+(null==(r=n.tabIndex)?"":r)+'" aria-label="'+(null==(r=n.t("remove"))?"":r)+'">\n            <i class="'+(null==(r=n.iconClass("remove-circle"))?"":r)+'"></i>\n          </button>\n        </td>\n        '),o+="\n        ",n.canAddColumn&&(o+='\n        <td ref="'+(null==(r=n.key)?"":r)+'-container">\n          '+(null==(r=n.placeholder)?"":r)+"\n        </td>\n        "),o+="\n      "),o+="\n    </tr>\n    "}),o+="\n  </tbody>\n  ",!n.builder&&n.hasAddButton&&n.hasBottomSubmit&&(o+='\n  <tfoot>\n    <tr>\n      <td colspan="'+(null==(r=n.component.layoutFixed?n.numColumns:n.numColumns+1)?"":r)+'">\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(r=n.datagridKey)?"":r)+'-addRow" tabindex="'+(null==(r=n.tabIndex)?"":r)+'">\n          <i class="'+(null==(r=n.iconClass("plus"))?"":r)+'"></i> '+(null==(r=n.t(n.component.addAnother||"Add Another",{_userInput:!0}))?"":r)+"\n        </button>\n      </td>\n    </tr>\n  </tfoot>\n  "),o+="\n</table>\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<table class="table datagrid-table table-bordered\n    '+(null==(r=n.component.striped?"table-striped":"")?"":r)+"\n    "+(null==(r=n.component.hover?"table-hover":"")?"":r)+"\n    "+(null==(r=n.component.condensed?"table-sm":"")?"":r)+'\n    ">\n  ',n.hasHeader&&(o+="\n  <thead>\n    <tr>\n      ",n.columns.forEach(function(e){o+='\n        <th class="'+(null==(r=e.validate&&e.validate.required?"field-required":"")?"":r)+'">\n          '+(null==(r=e.hideLabel?"":n.t(e.label||e.title,{_userInput:!0}))?"":r)+"\n          ",e.tooltip&&(o+=' <i ref="tooltip" tabindex="0" data-title="'+(null==(r=e.tooltip)?"":r)+'" class="'+(null==(r=n.iconClass("question-sign"))?"":r)+' text-muted" data-tooltip="'+(null==(r=e.tooltip)?"":r)+'"></i>'),o+="\n        </th>\n      "}),o+="\n    </tr>\n  </thead>\n  "),o+="\n  <tbody>\n    ",n.rows.forEach(function(t){o+="\n    <tr>\n      ",n.columns.forEach(function(e){o+='\n        <td ref="'+(null==(r=n.datagridKey)?"":r)+'">\n          '+(null==(r=t[e.key])?"":r)+"\n        </td>\n      "}),o+="\n    </tr>\n    "}),o+="\n  </tbody>\n</table>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(535))&&n.__esModule?n:{default:n}).default};t.default=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" role="group"\n  ',e.component.hideLabel?n+='\n  aria-label="'+(null==(t=e.component.label)?"":t)+'"\n  ':n+='\n  aria-labelledby="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n  ',n+="\n  ",e.component.description&&(n+='\n  aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n  '),n+="\n  >\n  ",e.dayFirst&&e.showDay&&(n+='\n  <div class="col col-xs-3">\n    ',e.component.hideInputLabels||(n+='\n    <label for="'+(null==(t=e.component.key)?"":t)+'-day" class="',e.component.fields.day.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Day"))?"":t)+"</label>\n    "),n+="\n    <div>"+(null==(t=e.day)?"":t)+"</div>\n  </div>\n  "),n+="\n  ",e.showMonth&&(n+='\n  <div class="col col-xs-4">\n    ',e.component.hideInputLabels||(n+='\n    <label for="'+(null==(t=e.component.key)?"":t)+'-month" class="',e.component.fields.month.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Month"))?"":t)+"</label>\n    "),n+="\n    <div>"+(null==(t=e.month)?"":t)+"</div>\n  </div>\n  "),n+="\n  ",!e.dayFirst&&e.showDay&&(n+='\n  <div class="col col-xs-3">\n    ',e.component.hideInputLabels||(n+='\n    <label for="'+(null==(t=e.component.key)?"":t)+'-day" class="',e.component.fields.day.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Day"))?"":t)+"</label>\n    "),n+="\n    <div>"+(null==(t=e.day)?"":t)+"</div>\n  </div>\n  "),n+="\n  ",e.showYear&&(n+='\n  <div class="col col-xs-5">\n    ',e.component.hideInputLabels||(n+='\n    <label for="'+(null==(t=e.component.key)?"":t)+'-year" class="',e.component.fields.year.required&&(n+="field-required"),n+='">'+(null==(t=e.t("Year"))?"":t)+"</label>\n    "),n+="\n    <div>"+(null==(t=e.year)?"":t)+"</div>\n  </div>\n  "),n+='\n</div>\n<input name="ctx.data[day]" type="hidden" class="form-control" lang="en" value="" ref="input">\n'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(537))&&n.__esModule?n:{default:n}).default};t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'<div class="formio-dialog formio-dialog-theme-default component-settings">\n  <div class="formio-dialog-overlay" ref="dialogOverlay"></div>\n  <div class="formio-dialog-content" ref="dialogContents" role="dialog">\n    <div ref="dialogContents"></div>\n    <button class="formio-dialog-close float-right btn-sm" aria-label="Close modal window." ref="dialogClose"></button>\n  </div>\n</div>\n'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(539)),n=o(n(540));function o(e){return e&&e.__esModule?e:{default:e}}r={form:r.default,html:n.default};t.default=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<ul class="editgrid-listgroup list-group\n    '+(null==(r=n.component.striped?"table-striped":"")?"":r)+"\n    "+(null==(r=n.component.bordered?"table-bordered":"")?"":r)+"\n    "+(null==(r=n.component.hover?"table-hover":"")?"":r)+"\n    "+(null==(r=n.component.condensed?"table-sm":"")?"":r)+'\n    ">\n  ',n.header&&(o+='\n  <li class="list-group-item list-group-header">\n    '+(null==(r=n.header)?"":r)+"\n  </li>\n  "),o+="\n  ",n.rows.forEach(function(e,t){o+='\n  <li class="list-group-item" ref="'+(null==(r=n.ref.row)?"":r)+'">\n    '+(null==(r=e)?"":r)+"\n    ",n.openRows[t]&&!n.readOnly&&(o+='\n    <div class="editgrid-actions">\n      <button class="btn btn-primary" ref="'+(null==(r=n.ref.saveRow)?"":r)+'">'+(null==(r=n.t(n.component.saveRow||"Save",{_userInput:!0}))?"":r)+"</button>\n      ",n.component.removeRow&&(o+='\n      <button class="btn btn-danger" ref="'+(null==(r=n.ref.cancelRow)?"":r)+'">'+(null==(r=n.t(n.component.removeRow||"Cancel",{_userInput:!0}))?"":r)+"</button>\n      "),o+="\n    </div>\n    "),o+='\n    <div class="has-error">\n      <div class="editgrid-row-error">\n        '+(null==(r=n.errors[t])?"":r)+"\n      </div>\n    </div>\n  </li>\n  "}),o+="\n  ",n.footer&&(o+='\n  <li class="list-group-item list-group-footer">\n    '+(null==(r=n.footer)?"":r)+"\n  </li>\n  "),o+="\n</ul>\n",!n.readOnly&&n.hasAddButton&&(o+='\n<button class="btn btn-primary" ref="'+(null==(r=n.ref.addRow)?"":r)+'">\n  <i class="'+(null==(r=n.iconClass("plus"))?"":r)+'"></i> '+(null==(r=n.t(n.component.addAnother||"Add Another",{_userInput:!0}))?"":r)+"\n</button>\n"),o+="\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<ul class="editgrid-listgroup list-group\n    '+(null==(r=n.component.striped?"table-striped":"")?"":r)+"\n    "+(null==(r=n.component.bordered?"table-bordered":"")?"":r)+"\n    "+(null==(r=n.component.hover?"table-hover":"")?"":r)+"\n    "+(null==(r=n.component.condensed?"table-sm":"")?"":r)+'\n    ">\n  ',n.header&&(o+='\n  <li class="list-group-item list-group-header">\n    '+(null==(r=n.header)?"":r)+"\n  </li>\n  "),o+="\n  ",n.rows.forEach(function(e,t){o+='\n  <li class="list-group-item" ref="'+(null==(r=n.ref.row)?"":r)+'">\n    '+(null==(r=e)?"":r)+"\n    ",n.openRows[t]&&!n.readOnly&&(o+='\n    <div class="editgrid-actions">\n      <button class="btn btn-primary" ref="'+(null==(r=n.ref.saveRow)?"":r)+'">'+(null==(r=n.t(n.component.saveRow||"Save",{_userInput:!0}))?"":r)+"</button>\n      ",n.component.removeRow&&(o+='\n      <button class="btn btn-danger" ref="'+(null==(r=n.ref.cancelRow)?"":r)+'">'+(null==(r=n.t(n.component.removeRow||"Cancel",{_userInput:!0}))?"":r)+"</button>\n      "),o+="\n    </div>\n    "),o+='\n    <div class="has-error">\n      <div class="editgrid-row-error help-block">\n        '+(null==(r=n.errors[t])?"":r)+"\n      </div>\n    </div>\n  </li>\n  "}),o+="\n  ",n.footer&&(o+='\n  <li class="list-group-item list-group-footer">\n    '+(null==(r=n.footer)?"":r)+"\n  </li>\n  "),o+="\n</ul>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(542)),n=o(n(543));function o(e){return e&&e.__esModule?e:{default:e}}r={form:r.default,html:n.default};t.default=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<div class="editgrid-table-container">\n  <div class="table-responsive">\n    <table class="table\n      '+(null==(r=n.component.striped?"table-striped":"")?"":r)+"\n      "+(null==(r=n.component.bordered?"table-bordered":"")?"":r)+"\n      "+(null==(r=n.component.hover?"table-hover":"")?"":r)+"\n      "+(null==(r=n.component.condensed?"table-sm":"")?"":r)+'\n    ">\n      ',n.header&&(o+='\n      <thead class="editgrid-table-head">\n        '+(null==(r=n.header)?"":r)+"\n      </thead>\n      "),o+='\n      <tbody class="editgrid-table-body">\n        ',n.rows.forEach(function(e,t){o+='\n        <tr ref="'+(null==(r=n.ref.row)?"":r)+'">\n          '+(null==(r=e)?"":r)+"\n          ",n.openRows[t]&&!n.readOnly&&(o+='\n            <td class="editgrid-table-column">\n              <div class="editgrid-actions">\n                <button class="btn btn-primary" ref="'+(null==(r=n.ref.saveRow)?"":r)+'">'+(null==(r=n.t(n.component.saveRow||"Save",{_userInput:!0}))?"":r)+"</button>\n                ",n.component.removeRow&&(o+='\n                <button class="btn btn-danger" ref="'+(null==(r=n.ref.cancelRow)?"":r)+'">'+(null==(r=n.t(n.component.removeRow||"Cancel",{_userInput:!0}))?"":r)+"</button>\n                "),o+="\n              </div>\n            </td>\n          "),o+="\n          ",n.errors[t]&&(o+='\n          <td class="editgrid-table-column">\n            <div class="has-error">\n              <div class="editgrid-row-error help-block">\n                '+(null==(r=n.errors[t])?"":r)+"\n              </div>\n            </div>\n          </td>\n          "),o+="\n        </tr>\n        "}),o+="\n      </tbody>\n      ",n.footer&&(o+="\n      <tfoot>\n        <tr>\n          "+(null==(r=n.footer)?"":r)+"\n        </tr>\n      <tfoot>\n      "),o+="\n    </table>\n  </div>\n</div>\n",!n.readOnly&&n.hasAddButton&&(o+='\n<button class="btn btn-primary" ref="'+(null==(r=n.ref.addRow)?"":r)+'">\n  <i class="'+(null==(r=n.iconClass("plus"))?"":r)+'"></i>\n  '+(null==(r=n.t(n.component.addAnother||"Add Another",{_userInput:!0}))?"":r)+"\n</button>\n"),o+="\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<div class="editgrid-table-container">\n  <div class="table-responsive">\n    <table class="table\n      '+(null==(r=n.component.striped?"table-striped":"")?"":r)+"\n      "+(null==(r=n.component.bordered?"table-bordered":"")?"":r)+"\n      "+(null==(r=n.component.hover?"table-hover":"")?"":r)+"\n      "+(null==(r=n.component.condensed?"table-sm":"")?"":r)+'\n    ">\n      ',n.header&&(o+='\n      <thead class="editgrid-table-head">\n        '+(null==(r=n.header)?"":r)+"\n      </thead>\n      "),o+='\n      <tbody class="editgrid-table-body">\n        ',n.rows.forEach(function(e,t){o+='\n        <tr ref="'+(null==(r=n.ref.row)?"":r)+'">\n          '+(null==(r=e)?"":r)+"\n          ",n.openRows[t]&&!n.readOnly&&(o+='\n          <td class="editgrid-table-column">\n            <div class="editgrid-actions">\n              <button class="btn btn-primary" ref="'+(null==(r=n.ref.saveRow)?"":r)+'">'+(null==(r=n.t(n.component.saveRow||"Save",{_userInput:!0}))?"":r)+"</button>\n              ",n.component.removeRow&&(o+='\n              <button class="btn btn-danger" ref="'+(null==(r=n.ref.cancelRow)?"":r)+'">'+(null==(r=n.t(n.component.removeRow||"Cancel",{_userInput:!0}))?"":r)+"</button>\n              "),o+="\n            </div>\n          </td>\n          "),o+="\n          ",n.errors[t]&&(o+='\n          <td class="editgrid-table-column">\n            <div class="has-error">\n              <div class="editgrid-row-error help-block">\n                '+(null==(r=n.errors[t])?"":r)+"\n              </div>\n            </div>\n          </td>\n          "),o+="\n        </tr>\n        "}),o+="\n      </tbody>\n      ",n.footer&&(o+="\n      <tfoot>\n        <tr>\n          "+(null==(r=n.footer)?"":r)+"\n         </tr>\n      <tfoot>\n      "),o+="\n    </table>\n  </div>\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(545)),n=o(n(546));function o(e){return e&&e.__esModule?e:{default:e}}r={form:r.default,align:n.default};t.default=r},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 id="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'" class="form-text text-muted">'+(null==(t=e.t(e.component.description,{_userInput:!0}))?"":t)+"</div>\n"),n+="\n"}},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="field-content" style="'+(null==(t=e.contentStyles)?"":t)+'">\n    '+(null==(t=e.element)?"":t)+"\n  </div>\n</div>\n\n",e.component.description&&(n+='\n  <div class="form-text text-muted">'+(null==(t=e.t(e.component.description,{_userInput:!0}))?"":t)+"</div>\n"),n+="\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(548))&&n.__esModule?n:{default:n}).default};t.default=n},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,{_userInput:!0}))?"":t)+"\n    ",e.component.tooltip&&(n+='\n      <i ref="tooltip" tabindex="0" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(550))&&n.__esModule?n:{default:n}).default};t.default=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return n.options.vpat&&(o+='\n  <span tabindex="-1" class="sr-only" id="invisible-'+(null==(r=n.instance.id)?"":r)+"-"+(null==(r=n.component.key)?"":r)+'"></span>\n'),o+="\n",n.self.imageUpload?(o+="\n  <div>\n    ",n.files.forEach(function(e){o+='\n      <div>\n        <span>\n          <img ref="fileImage" src="" alt="'+(null==(r=e.originalName||e.name)?"":r)+'" style="width:'+(null==(r=n.component.imageSize)?"":r)+'px">\n          ',n.disabled||(o+='\n            <i tabindex="0" class="'+(null==(r=n.iconClass("remove"))?"":r)+'" ref="removeLink"></i>\n          '),o+="\n        </span>\n      </div>\n    "}),o+="\n  </div>\n"):(o+="\n  ",n.options.vpat&&(o+="\n    <div>"+(null==(r=n.component.filePattern&&"*"!==n.component.filePattern?n.t("Allowed file types: ")+n.component.filePattern:"Any file types are allowed")?"":r)+"</div>\n  "),o+='\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        ',n.disabled||(o+='\n          <div class="col-md-1"></div>\n        '),o+='\n        <div class="col-md-',n.self.hasTypes?o+="7":o+="9",o+='"><strong>'+(null==(r=n.t("File Name"))?"":r)+'</strong></div>\n        <div class="col-md-2"><strong>'+(null==(r=n.t("Size"))?"":r)+"</strong></div>\n        ",n.self.hasTypes&&(o+='\n          <div class="col-md-2"><strong>'+(null==(r=n.t("Type"))?"":r)+"</strong></div>\n        "),o+="\n      </div>\n    </li>\n    ",n.files.forEach(function(t){o+='\n      <li class="list-group-item">\n        <div class="row">\n          ',n.disabled||(o+='\n            <div class="col-md-1"><i tabindex="0" class="'+(null==(r=n.iconClass("remove"))?"":r)+'" ref="removeLink"></i></div>\n          '),o+='\n          <div class="col-md-',n.self.hasTypes?o+="7":o+="9",o+='">\n            ',n.component.uploadOnly?o+="\n              "+(null==(r=t.originalName||t.name)?"":r)+"\n            ":o+='\n              <a href="'+(null==(r=t.url||"#")?"":r)+'" target="_blank" ref="fileLink">\n                <span class="sr-only">'+(null==(r=n.t("Press to open "))?"":r)+"</span>"+(null==(r=t.originalName||t.name)?"":r)+"\n              </a>\n            ",o+='\n          </div>\n          <div class="col-md-2">'+(null==(r=n.fileSize(t.size))?"":r)+"</div>\n          ",n.self.hasTypes&&!n.disabled&&(o+='\n            <div class="col-md-2">\n              <select class="file-type" ref="fileType">\n                ',n.component.fileTypes.map(function(e){o+='\n                  <option class="test" value="'+(null==(r=e.value)?"":r)+'" ',e.label===t.fileType&&(o+='selected="selected"'),o+=">"+(null==(r=n.t(e.label))?"":r)+"</option>\n                "}),o+="\n              </select>\n            </div>\n          "),o+="\n          ",n.self.hasTypes&&n.disabled&&(o+='\n          <div class="col-md-2">'+(null==(r=t.fileType)?"":r)+"</div>\n          "),o+="\n        </div>\n      </li>\n    "}),o+="\n  </ul>\n"),o+="\n",n.disabled||!n.component.multiple&&n.files.length||(o+="\n  ",n.self.useWebViewCamera?o+='\n    <div class="fileSelector">\n      <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(r=n.t("Gallery"))?"":r)+'</button>\n      <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(r=n.t("Camera"))?"":r)+"</button>\n    </div>\n  ":n.self.cameraMode?o+='\n    <div class="video-container">\n      <video class="video" autoplay="true" ref="videoPlayer" tabindex="-1"></video>\n    </div>\n    <button class="btn btn-primary" ref="takePictureButton"><i class="fa fa-camera"></i> '+(null==(r=n.t("Take Picture"))?"":r)+'</button>\n    <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(r=n.t("Switch to file upload"))?"":r)+"</button>\n  ":(o+='\n    <div class="fileSelector" ref="fileDrop" '+(null==(r=n.fileDropHidden?"hidden":"")?"":r)+'>\n      <i class="'+(null==(r=n.iconClass("cloud-upload"))?"":r)+'"></i> '+(null==(r=n.t("Drop files to attach,"))?"":r)+"\n        ",n.self.imageUpload&&n.component.webcam&&(o+='\n          <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(r=n.t("use camera"))?"":r)+"</a>\n        "),o+="\n        "+(null==(r=n.t("or"))?"":r)+'\n        <a href="#" ref="fileBrowse" class="browse">\n          '+(null==(r=n.t("browse"))?"":r)+'\n          <span class="sr-only">\n            '+(null==(r=n.t("Browse to attach file for "+n.component.label+". "+(n.component.description?n.component.description+". ":"")+(n.component.filePattern&&"*"!==n.component.filePattern?n.t("Allowed file types: ")+n.component.filePattern:"Any file types are allowed")))?"":r)+'\n          </span>\n        </a>\n      <div ref="fileProcessingLoader" class="loader-wrapper">\n        <div class="loader text-center"></div>\n      </div>\n    </div>\n  '),o+="\n"),o+="\n",n.statuses.forEach(function(e){o+='\n  <div class="file '+(null==(r="error"===n.statuses.status?" has-error":"")?"":r)+'">\n    <div class="row">\n      <div class="fileName col-form-label col-sm-10">'+(null==(r=e.originalName)?"":r)+'\n        <i class="'+(null==(r=n.iconClass("remove"))?"":r)+'" ref="fileStatusRemove">\n          <span class="sr-only">'+(null==(r=n.t("Remove button. Press to remove "+e.originalName||!1))?"":r)+'</span>\n          <span class="sr-only">'+(null==(r=e.message?e.message.replace(";","."):"")?"":r)+'</span>\n        </i>\n      </div>\n      <div class="fileSize col-form-label col-sm-2 text-right">'+(null==(r=n.fileSize(e.size))?"":r)+'</div>\n    </div>\n    <div class="row">\n      <div class="col-sm-12">\n        ',"progress"===e.status?o+='\n          <div class="progress">\n            <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(r=e.progress)?"":r)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(r=e.progress)?"":r)+'%">\n              <span class="sr-only">'+(null==(r=e.progress)?"":r)+"% "+(null==(r=n.t("Complete"))?"":r)+"</span>\n            </div>\n          </div>\n        ":"error"===e.status?o+='\n          <div class="alert alert-danger bg-'+(null==(r=e.status)?"":r)+'">'+(null==(r=n.t(e.message))?"":r)+"</div>\n        ":o+='\n          <div class="bg-'+(null==(r=e.status)?"":r)+'">'+(null==(r=n.t(e.message))?"":r)+"</div>\n        ",o+="\n      </div>\n    </div>\n  </div>\n"}),o+="\n",n.component.storage&&!n.support.hasWarning||(o+='\n  <div class="alert alert-warning">\n    ',n.component.storage||(o+="\n      <p>"+(null==(r=n.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":r)+"</p>\n    "),o+="\n    ",n.support.filereader||(o+="\n      <p>"+(null==(r=n.t("File API & FileReader API not supported."))?"":r)+"</p>\n    "),o+="\n    ",n.support.formdata||(o+="\n      <p>"+(null==(r=n.t("XHR2's FormData is not supported."))?"":r)+"</p>\n    "),o+="\n    ",n.support.progress||(o+="\n      <p>"+(null==(r=n.t("XHR2's upload progress isn't supported."))?"":r)+"</p>\n    "),o+="\n  </div>\n"),o+="\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(552))&&n.__esModule?n:{default:n}).default};t.default=n},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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(554))&&n.__esModule?n:{default:n}).default};t.default=n},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=void 0,n(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=o(n(557)),n=o(n(558));function o(e){return e&&e.__esModule?e:{default:e}}r={form:r.default,html:n.default};t.default=r},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,{_userInput:!0}))?"":t)+"\n      ":n+="\n        "+(null==(t=e.t(e.prefix,{_userInput:!0}))?"":t)+"\n      ",n+="\n    </span>\n    </div>\n  "),n+="\n  ",!e.component.editor&&!e.component.wysiwyg){for(var r in n+="\n    <"+(null==(t=e.input.type)?"":t)+'\n      ref="'+(null==(t=e.input.ref||"input")?"":t)+'"\n      ',e.input.attr)n+="\n        "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n      ';n+='\n      id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n      aria-labelledby="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+" ",e.component.description&&(n+="d-"+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)),n+='"\n      aria-required="'+(null==(t="input"!==e.input.ref&&e.input.ref?e.component.fields&&e.component.fields[e.input.ref]&&e.component.fields[e.input.ref].required||!1:e.component.validate.required)?"":t)+'"\n    >'+(null==(t=e.input.content)?"":t)+"</"+(null==(t=e.input.type)?"":t)+">\n    ",e.hasValueMaskInput&&(n+='\n      <input ref="valueMaskInput" />\n    '),n+="\n"}return n+="\n",(e.component.editor||e.component.wysiwyg)&&(n+='\n  <div ref="input"></div>\n'),n+="\n","datetime"===e.component.type&&(n+='\n<span aria-live="assertive" id="'+(null==(t=e.instance.id)?"":t)+'-liveRegion" class="sr-only" ref="liveRegion"></span>\n'),n+="\n",e.suffix&&(n+='\n  <div class="input-group-append" ref="suffix">\n    <span class="input-group-text">\n      ',e.suffix instanceof HTMLElement?n+="\n        "+(null==(t=e.t(e.suffix.outerHTML,{_userInput:!0}))?"":t)+"\n      ":n+="\n        "+(null==(t=e.t(e.suffix,{_userInput:!0}))?"":t)+"\n      ",n+="\n    </span>\n  </div>\n"),n+="\n",(e.prefix||e.suffix)&&(n+="\n  </div>\n"),n+="\n",(e.component.showCharCount||e.component.showWordCount)&&(n+='\n<div class="form-text '+(null==(t=e.component.description?"pull-right":"text-right")?"":t)+'">\n  ',e.component.showCharCount&&(n+='\n  <span class="text-muted" ref="charcount" aria-live="polite"></span>\n  '),n+="\n  ",e.component.showWordCount&&(n+='\n  <span class="text-muted" ref="wordcount" aria-live="polite"></span>\n  '),n+="\n</div>\n"),n+="\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="";Array.prototype.join;return t+='<div ref="value">',e.value?t+=null==(e=e.value)?"":e:t+="-",t+="</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(560))&&n.__esModule?n:{default:n}).default};t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return n+='<label\n  ref="label"\n  class="col-form-label '+(null==(t=e.label.className)?"":t)+'"\n  for="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n  id="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n>\n  '+(null==(t=e.t(e.component.label,{_userInput:!0}))?"":t)+"\n  ","number"!==e.component.type&&"phoneNumber"!==e.component.type&&"currency"!==e.component.type||(n+="\n    <span class='sr-only'>, "+(null==(t=e.t("numeric only"))?"":t)+",</span>\n  "),n+="\n  ",e.component.tooltip&&(n+='\n    <i ref="tooltip" tabindex="0" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n  '),n+="\n</label>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(562))&&n.__esModule?n:{default:n}).default};t.default=n},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'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(564))&&n.__esModule?n:{default:n}).default};t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"Loading...\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(566))&&n.__esModule?n:{default:n}).default};t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="";return t+='<div id="'+(null==(e=e.mapId)?"":e)+'" style="min-height: 300px; height: calc(100vh - 600px);" ref="gmapElement"></div>\n'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(568))&&n.__esModule?n:{default:n}).default};t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<div id="e-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.key)?"":t)+'" class="form-text '+(null==(t=e.level||"error")?"":t)+'">'+(null==(t=e.message)?"":t)+"</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(570))&&n.__esModule?n:{default:n}).default};t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="";return t+='<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==(e=e.t("Close"))?"":e)+'\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}),t.default=void 0;n={form:((n=n(572))&&n.__esModule?n:{default:n}).default};t.default=n},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}),t.default=void 0;n={form:((n=n(574))&&n.__esModule?n:{default:n}).default};t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return n+='<label id="l-'+(null==(t=e.component.key)?"":t)+'" class="control-label '+(null==(t=e.label.className)?"":t)+'">\n  '+(null==(t=e.t(e.component.label,{_userInput:!0}))?"":t)+'<span ref="modalLabelValue" class="sr-only">. '+(null==(t="signature"===e.component.type?e.self.getValueAsString(e.previewText):e.previewText)?"":t)+'</span>\n</label><br>\n<span class="sr-only" ref="modalPreviewLiveRegion" aria-live="assertive"></span>\n<button\n  lang="en"\n  class="btn btn-light btn-md open-modal-button form-control '+(null==(t=e.openModalBtnClasses||"")?"":t)+'"\n  ref="openModal"\n  aria-labelledby="l-'+(null==(t=e.component.key)?"":t)+'"\n>\n  '+(null==(t=e.previewText)?"":t)+'\n</button>\n<div class="formio-errors invalid-feedback">\n  '+(null==(t=e.messages)?"":t)+"\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(576))&&n.__esModule?n:{default:n}).default};t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,r="";Array.prototype.join;for(n in r+='<div\n  class="input-group formio-multiple-mask-container"\n  ref="'+(null==(t=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&&(r+="disabled"),r+=">\n    ",e.selectOptions.forEach(function(e){r+='\n    <option value="'+(null==(t=e.value)?"":t)+'">'+(null==(t=e.label)?"":t)+"</option>\n    "}),r+='\n  </select>\n  <input\n    ref="mask"\n    ',e.input.attr)r+="\n    "+(null==(t=n)?"":t)+'="'+(null==(t=e.input.attr[n])?"":t)+'"\n    ';return r+="\n  >\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(578))&&n.__esModule?n:{default:n}).default};t.default=n},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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(580))&&n.__esModule?n:{default:n}).default};t.default=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-bordered">\n  <tbody>\n  '+(null==(t=e.rows)?"":t)+"\n  ",e.disabled||(n+='\n  <tr>\n    <td colspan="2">\n      <button class="btn btn-primary formio-button-add-another" ref="addButton"><i class="'+(null==(t=e.iconClass("plus"))?"":t)+'"></i> '+(null==(t=e.t(e.addAnother,{_userInput:!0}))?"":t)+"</button>\n    </td>\n  </tr>\n  "),n+="\n  </tbody>\n</table>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(582))&&n.__esModule?n:{default:n}).default};t.default=n},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)+'"\n    ',e.component.collapsible&&(n+='\n    tabindex="0"\n    '),n+='\n    role="button"\n    aria-expanded="'+(null==(t=!e.component.collapsible||!e.collapsed)?"":t)+'"\n    aria-controls="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n    ref="header"\n  >\n    <span class="mb-0 card-title ',e.component.theme&&"default"!==e.component.theme&&(n+="text-light"),n+='">\n      ',e.component.collapsible&&(n+='\n        <i class="formio-collapse-icon '+(null==(t=e.iconClass(e.collapsed?"plus-square-o":"minus-square-o"))?"":t)+' text-muted" data-title="Collapse Panel"></i>\n      '),n+="\n      ",e.component.hideLabel&&!e.builder||(n+="\n      "+(null==(t=e.t(e.component.title,{_userInput:!0}))?"":t)+"\n      "),n+="\n      ",e.component.tooltip&&(n+='\n        <i ref="tooltip" tabindex="0" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n      '),n+="\n    </span>\n  </div>\n  "),n+="\n  ",e.collapsed&&!e.builder||(n+='\n  <div class="card-body" ref="'+(null==(t=e.nestedKey)?"":t)+'" id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'">\n    '+(null==(t=e.children)?"":t)+"\n  </div>\n  "),n+="\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(584))&&n.__esModule?n:{default:n}).default};t.default=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)+'" 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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(586))&&n.__esModule?n:{default:n}).default};t.default=n},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\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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(588))&&n.__esModule?n:{default:n}).default};t.default=n},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=o(n(590)),n=o(n(591));function o(e){return e&&e.__esModule?e:{default:e}}r={form:r.default,html:n.default};t.default=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<div\n  class="form-radio radio"\n  ref="radioGroup"\n  role="'+(null==(r="selectboxes"===n.component.type?"group":"radiogroup")?"":r)+'"\n  aria-required="'+(null==(r=n.input.component.validate.required)?"":r)+'"\n  aria-labelledby="l-'+(null==(r=n.instance.id)?"":r)+"-"+(null==(r=n.component.key)?"":r)+'"\n  ',n.component.description&&(o+='\n    aria-describedby="d-'+(null==(r=n.instance.id)?"":r)+"-"+(null==(r=n.component.key)?"":r)+'"\n  '),o+="\n>\n  ",n.values.forEach(function(e){for(var t in o+='\n  <div class="'+(null==(r=n.input.attr.type)?"":r)+" "+(null==(r=n.component.optionsLabelPosition&&"right"!==n.component.optionsLabelPosition?"pl-0":"")?"":r)+" form-check"+(null==(r=n.inline?"-inline":"")?"":r)+'" ref="wrapper">\n    <label class="form-check-label label-position-'+(null==(r=n.component.optionsLabelPosition)?"":r)+'" for="'+(null==(r=n.instance.root&&n.instance.root.id)?"":r)+"-"+(null==(r=n.id)?"":r)+"-"+(null==(r=n.row)?"":r)+"-"+(null==(r=e.value)?"":r)+'">\n      ',"left"!==n.component.optionsLabelPosition&&"top"!==n.component.optionsLabelPosition||(o+="\n      <span>"+(null==(r=n.t(e.label,{_userInput:!0}))?"":r)+"</span>\n      "),o+="\n      <"+(null==(r=n.input.type)?"":r)+'\n        ref="input"\n        ',n.input.attr)o+="\n        "+(null==(r=t)?"":r)+'="'+(null==(r=n.input.attr[t])?"":r)+'"\n        ';o+='\n        value="'+(null==(r=e.value)?"":r)+'"\n        ',n.value&&(n.value===e.value||"object"==typeof n.value&&n.value.hasOwnProperty(e.value)&&n.value[e.value])&&(o+="\n          checked=true\n        "),o+="\n        ",e.disabled&&(o+="\n          disabled=true\n        "),o+='\n        id="'+(null==(r=n.instance.root&&n.instance.root.id)?"":r)+"-"+(null==(r=n.id)?"":r)+"-"+(null==(r=n.row)?"":r)+"-"+(null==(r=e.value)?"":r)+'"\n        role="'+(null==(r="selectboxes"===n.component.type?"checkbox":"radio")?"":r)+'"\n      >\n      ',n.component.optionsLabelPosition&&"right"!==n.component.optionsLabelPosition&&"bottom"!==n.component.optionsLabelPosition||(o+="\n      <span>"+(null==(r=n.t(e.label,{_userInput:!0}))?"":r)+"</span>\n      "),o+="\n    </label>\n  </div>\n  "}),o+="\n</div>\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var e="";Array.prototype.join;e+='<div ref="value">\n  ';var n=t.values.filter(function(e){return t.value===e.value||"object"==typeof t.value&&t.value.hasOwnProperty(e.value)&&t.value[e.value]}).map(function(e){return t.t(e.label,{_userInput:!0})}).join(", ");return e+="\n  "+(null==n?"":n)+"\n  </div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(593))&&n.__esModule?n:{default:n}).default};t.default=n},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",{_userInput:!0}))?"":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=o(n(595)),n=o(n(596));function o(e){return e&&e.__esModule?e:{default:e}}r={form:r.default,html:n.default};t.default=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,r="";Array.prototype.join;for(n in r+='<select\n  ref="'+(null==(t=e.input.ref||"selectContainer")?"":t)+'"\n  '+(null==(t=e.input.multiple?"multiple":"")?"":t)+"\n  ",e.input.attr)r+="\n  "+(null==(t=n)?"":t)+'="'+(null==(t=e.input.attr[n])?"":t)+'"\n  ';return r+="\n  ",e.input.attr.id||(r+='\n  id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n  '),r+="\n  ",e.component.description&&(r+='\n  aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n  '),r+='\n  aria-required="'+(null==(t=("selectContainer"!==e.input.ref&&e.input.ref?e.component.fields[e.input.ref]:e.input.component.validate).required)?"":t)+'"\n>'+(null==(t=e.selectOptions)?"":t)+'</select>\n<input type="text"\n       class="formio-select-autocomplete-input"\n       ref="autocompleteInput"\n       ',e.input.attr.autocomplete&&(r+='\n       autocomplete="'+(null==(t=e.input.attr.autocomplete)?"":t)+'"\n       '),r+='\n       tabindex="-1"\n       aria-label="'+(null==(t=e.t("autocomplete"))?"":t)+'"\n/>\n'}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="";Array.prototype.join;return t+='<div ref="value">',e.value?t+=null==(e=e.self.itemValueForHTMLMode(e.value))?"":e:t+="-",t+="</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(598)),n=o(n(599));function o(e){return e&&e.__esModule?e:{default:e}}r={form:r.default,html:n.default};t.default=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,r="";Array.prototype.join;for(n in r+="<option "+(null==(t=e.selected?'selected="selected"':"")?"":t)+"\n  value='"+(null==(t=e.useId?e.id:e.option.value)?"":t)+"'\n  ",e.attrs)r+="\n  "+(null==(t=n)?"":t)+'="'+(null==(t=e.attrs[n])?"":t)+'"\n  ';return r+="\n  >\n  "+(null==(t=e.t(e.option.label,{_userInput:!0}))?"":t)+"\n</option>\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="";Array.prototype.join;return e.selected&&(t+=null==(e=e.t(e.option.label,{_userInput:!0}))?"":e),t+="\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(601)),n=o(n(602));function o(e){return e&&e.__esModule?e:{default:e}}r={form:r.default,html:n.default};t.default=r},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" style="display: none;" height="'+(null==(t=e.component.height)?"":t)+'" ref="canvas"></canvas>\n  ',e.required&&(n+='\n  <span class="form-control-feedback field-required-inline text-danger">\n    <i class="'+(null==(t=e.iconClass("asterisk"))?"":t)+'"></i>\n  </span>\n  '),n+='\n  <img style="width: 100%;display: inherit;" ref="signatureImage">\n</div>\n',e.component.footer&&(n+='\n  <div class="signature-pad-footer">\n    '+(null==(t=e.t(e.component.footer,{_userInput:!0}))?"":t)+"\n  </div>\n"),n+="\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'<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=o(n(604)),n=o(n(605));function o(e){return e&&e.__esModule?e:{default:e}}r={form:r.default,html:n.default};t.default=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<table class="table table-striped table-bordered" aria-labelledby="l-'+(null==(r=n.instance.id)?"":r)+"-"+(null==(r=n.component.key)?"":r)+'">\n  <thead>\n    <tr>\n      <th></th>\n      ',n.component.values.forEach(function(e){o+='\n      <th style="text-align: center;">\n        '+(null==(r=n.t(e.label,{_userInput:!0}))?"":r)+"\n        ",e.tooltip&&(o+='\n          <i ref="tooltip" class="'+(null==(r=n.iconClass("question-sign"))?"":r)+' text-muted" data-tooltip="'+(null==(r=e.tooltip)?"":r)+'"></i>\n        '),o+="\n      </th>\n      "}),o+="\n    </tr>\n  </thead>\n  <tbody>\n    ",n.component.questions.forEach(function(t){o+="\n    <tr>\n      <td>\n        "+(null==(r=n.t(t.label))?"":r)+"\n        ",t.tooltip&&(o+='\n          <i ref="tooltip" class="'+(null==(r=n.iconClass("question-sign"))?"":r)+' text-muted" data-tooltip="'+(null==(r=t.tooltip)?"":r)+'"></i>\n        '),o+="\n      </td>\n      ",n.component.values.forEach(function(e){o+='\n      <td style="text-align: center;">\n        <input type="radio" name="'+(null==(r=n.self.getInputName(t))?"":r)+'" value="'+(null==(r=e.value)?"":r)+'" id="'+(null==(r=n.key)?"":r)+"-"+(null==(r=t.value)?"":r)+"-"+(null==(r=e.value)?"":r)+'" ref="input">\n      </td>\n      '}),o+="\n    </tr>\n    "}),o+="\n  </tbody>\n</table>\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<table class="table table-striped table-bordered">\n  <tbody>\n    ',n.component.questions.forEach(function(t){o+="\n    <tr>\n      <th>"+(null==(r=n.t(t.label))?"":r)+"</th>\n      <td>\n      ",n.component.values.forEach(function(e){o+="\n        ",n.value&&n.value.hasOwnProperty(t.value)&&n.value[t.value]===e.value&&(o+="\n          "+(null==(r=n.t(e.label))?"":r)+"\n        "),o+="\n      "}),o+="\n      </td>\n    </tr>\n    "}),o+="\n  </tbody>\n</table>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(607)),n=o(n(608));function o(e){return e&&e.__esModule?e:{default:e}}r={flat:r.default,form:n.default};t.default=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return n.component.components.forEach(function(e,t){o+='\n  <div class="mb-2 card border">\n    <div class="card-header bg-default">\n      <h4 class="mb-0 card-title">'+(null==(r=n.t(e.label,{_userInput:!0}))?"":r)+'</h4>\n    </div>\n    <div\n      class="card-body"\n      ref="'+(null==(r=n.tabKey)?"":r)+'"\n    >\n      '+(null==(r=n.tabComponents[t])?"":r)+"\n    </div>\n  </div>\n"}),o+="\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<div class="card'+(null==(r=n.component.verticalLayout?" card-vertical":"")?"":r)+'">\n  <div class="card-header">\n    <ul class="nav nav-tabs card-header-tabs'+(null==(r=n.component.verticalLayout?" nav-tabs-vertical":"")?"":r)+'" role="tablist">\n      ',n.component.components.forEach(function(e,t){o+='\n      <li class="nav-item'+(null==(r=n.currentTab===t?" active":"")?"":r)+'" role="tab" ref="'+(null==(r=n.tabLikey)?"":r)+'">\n        <a\n                class="nav-link'+(null==(r=n.currentTab===t?" active":"")?"":r)+(null==(r=n.component.verticalLayout?" nav-link-vertical":"")?"":r)+'"\n                href="#'+(null==(r=e.key)?"":r)+'"\n                ref="'+(null==(r=n.tabLinkKey)?"":r)+'"\n        >\n          '+(null==(r=n.t(e.label,{_userInput:!0}))?"":r)+"\n        </a>\n      </li>\n      "}),o+="\n    </ul>\n  </div>\n  ",n.component.components.forEach(function(e,t){o+='\n  <div\n    role="tabpanel"\n    class="card-body tab-pane'+(null==(r=n.currentTab===t?" active":"")?"":r)+'"\n    style="display: '+(null==(r=n.currentTab===t?"block":"none")?"":r)+'"\n    ref="'+(null==(r=n.tabKey)?"":r)+'"\n  >\n    '+(null==(r=n.tabComponents[t])?"":r)+"\n  </div>\n  "}),o+="\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(610))&&n.__esModule?n:{default:n}).default};t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r){var o,i="";Array.prototype.join;return i+='<table class="table\n    '+(null==(o=r.component.striped?"table-striped":"")?"":o)+"\n    "+(null==(o=r.component.bordered?"table-bordered":"")?"":o)+"\n    "+(null==(o=r.component.hover?"table-hover":"")?"":o)+"\n    "+(null==(o=r.component.condensed?"table-sm":"")?"":o)+'\n  ">\n  <caption class="sr-only">'+(null==(o=r.t(r.component.label))?"":o)+"</caption>\n  ",r.component.header&&0<r.component.header.length&&(i+="\n  <thead>\n    <tr>\n      ",r.component.header.forEach(function(e){i+="\n      <th>"+(null==(o=r.t(e))?"":o)+"</th>\n      "}),i+="\n    </tr>\n  </thead>\n  "),i+="\n  <tbody>\n    ",r.tableComponents.forEach(function(e,n){i+='\n    <tr ref="row-'+(null==(o=r.id)?"":o)+'">\n      ',e.forEach(function(e,t){i+='\n      <td ref="'+(null==(o=r.tableKey)?"":o)+"-"+(null==(o=n)?"":o)+'"',r.cellClassName&&(i+=' class="'+(null==(o=r.cellClassName)?"":o)+'"'),i+=">"+(null==(o=e)?"":o)+"</td>\n      "}),i+="\n    </tr>\n    "}),i+="\n  </tbody>\n</table>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(612))&&n.__esModule?n:{default:n}).default};t.default=n},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(614));function o(e){return e&&e.__esModule?e:{default:e}}n={treeView:{form:o(n(615)).default},treeEdit:{form:r.default}};t.default=n},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=o(n(617)),n=o(n(618));function o(e){return e&&e.__esModule?e:{default:e}}r={form:r.default,builder:n.default};t.default=r},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="";return t+='<div class="text-muted text-center p-2">'+(null==(e=e.t(e.component.title,{_userInput:!0}))?"":e)+"</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(620))&&n.__esModule?n:{default:n}).default};t.default=n},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 mb-3">\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=o(n(622)),n=o(n(623));function o(e){return e&&e.__esModule?e:{default:e}}r={form:r.default,builder:n.default};t.default=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return n+='<div class="'+(null==(t=e.className)?"":t)+'">\n    <div style="position: relative;">\n        ',"wizardHeaderVertical"===e.wizardHeaderType?(n+='\n        <div class="row">\n            ',"right"!==e.wizardHeaderLocation&&(n+='\n            <div class="col-sm-2">\n                '+(null==(t=e.wizardHeader)?"":t)+"\n            </div>\n            "),n+='\n            <div class="wizard-page col-sm-10" ref="'+(null==(t=e.wizardKey)?"":t)+'">\n                '+(null==(t=e.components)?"":t)+"\n            </div>\n            ","right"===e.wizardHeaderLocation&&(n+='\n            <div class="col-sm-2">\n                '+(null==(t=e.wizardHeader)?"":t)+"\n            </div>\n            "),n+='\n        </div>\n        <div class="col-sm-offset-2 col-sm-10 '+(null==(t="right"===e.wizardHeaderLocation?"col-sm-offset-0 col-md-offset-0":"")?"":t)+'">\n            '+(null==(t=e.wizardNav)?"":t)+"\n        </div>\n        "):n+="\n        "+(null==(t=e.wizardHeader)?"":t)+'\n        <div class="wizard-page" ref="'+(null==(t=e.wizardKey)?"":t)+'">\n            '+(null==(t=e.components)?"":t)+"\n        </div>\n        "+(null==(t=e.wizardNav)?"":t)+"\n        ",n+="\n    </div>\n</div>\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="";return t+='<div class="text-muted text-center p-2">'+(null==(e=e.t(e.component.title,{_userInput:!0}))?"":e)+"</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(625))&&n.__esModule?n:{default:n}).default};t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<nav aria-label="Wizard navigation" id="'+(null==(r=n.wizardKey)?"":r)+'-header" ref="'+(null==(r=n.wizardKey)?"":r)+'-header">\n  <ul class="pagination" role="tablist">\n    ',n.panels.forEach(function(e,t){o+='\n    <li class="page-item'+(null==(r=n.currentPage===t?" active":"")?"":r)+'" style="cursor: pointer;">\n      <button tabindex="0" data-index="'+(null==(r=t)?"":r)+'" role="tab" class="page-link" ref="'+(null==(r=n.wizardKey)?"":r)+'-link">\n        '+(null==(r=n.t(e.title,{_userInput:!0}))?"":r)+"\n        ",e.tooltip&&n.currentPage===t&&(o+='\n        <i ref="'+(null==(r=n.wizardKey)?"":r)+'-tooltip" class="'+(null==(r=n.iconClass("question-sign"))?"":r)+' text-muted" data-tooltip="'+(null==(r=e.tooltip)?"":r)+'"></i>\n        '),o+="\n      </button>\n    </li>\n    "}),o+="\n  </ul>\n</nav>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(627))&&n.__esModule?n:{default:n}).default};t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<nav aria-label="navigation" id="'+(null==(r=n.wizardKey)?"":r)+'-header">\n  <div class="classic-pagination row justify-content-center" style="border-bottom:0;">\n    ',n.panels.forEach(function(e,t){o+='\n      <div class="classic-pagination-page col-xs-12 col-sm-6 col-md-3\n          '+(null==(r=n.currentPage<t?" disabled":"")?"":r)+"\n          "+(null==(r=n.currentPage===t?" active":"")?"":r)+"\n          "+(null==(r=n.currentPage>t?" complete":"")?"":r)+'">\n        <div class="text-center classic-pagination-title">'+(null==(r=n.t(e.title,{_userInput:!0}))?"":r)+"</div>\n        ",1<n.panels.length&&(o+='\n          <div class="progress"><div class="progress-bar"></div></div>\n        '),o+=' \n        <span ref="'+(null==(r=n.wizardKey)?"":r)+'-link" class="classic-pagination-dot"></span>\n      </div>\n    '}),o+="\n  </div>\n</nav>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(629))&&n.__esModule?n:{default:n}).default};t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<nav aria-label="navigation" id="'+(null==(r=n.wizardKey)?"":r)+'-header">\n  <ul class="pagination flex-column">\n    ',n.panels.forEach(function(e,t){o+='\n    <li class="col-xs-12 page-item'+(null==(r=n.currentPage===t?" active":"")?"":r)+'" style="cursor: pointer;">\n      <span class="page-link" ref="'+(null==(r=n.wizardKey)?"":r)+'-link" style="margin-left: 0px;">\n        '+(null==(r=n.t(e.title,{_userInput:!0}))?"":r)+"\n        ",e.tooltip&&n.currentPage===t&&(o+='\n        <i ref="'+(null==(r=n.wizardKey)?"":r)+'-tooltip" class="'+(null==(r=n.iconClass("question-sign"))?"":r)+' text-muted" data-tooltip="'+(null==(r=e.tooltip)?"":r)+'"></i>\n        '),o+="\n      </span>\n    </li>\n    "}),o+="\n  </ul>\n</nav>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(631))&&n.__esModule?n:{default:n}).default};t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var n,r="";Array.prototype.join;return r+='<ul class="formio-wizard-nav-container list-inline" id="'+(null==(n=t.wizardKey)?"":n)+'-nav">\n  ',t.buttonOrder.forEach(function(e){r+="\n    ","cancel"===e&&t.buttons.cancel&&(r+='\n    <li>\n      <button class="btn btn-secondary btn-wizard-nav-cancel" ref="'+(null==(n=t.wizardKey)?"":n)+'-cancel" aria-label="'+(null==(n=t.t("cancel"))?"":n)+' button. Click to reset the form">'+(null==(n=t.t("cancel"))?"":n)+"</button>\n    </li>\n    "),r+="\n    ","previous"===e&&t.buttons.previous&&(r+='\n    <li>\n      <button class="btn btn-primary btn-wizard-nav-previous" ref="'+(null==(n=t.wizardKey)?"":n)+'-previous" aria-label="'+(null==(n=t.t("previous"))?"":n)+' button. Click to go back to the previous tab">'+(null==(n=t.t("previous"))?"":n)+"</button>\n    </li>\n    "),r+="\n    ","next"===e&&t.buttons.next&&(r+='\n    <li>\n      <button class="btn btn-primary btn-wizard-nav-next" ref="'+(null==(n=t.wizardKey)?"":n)+'-next" aria-label="'+(null==(n=t.t("next"))?"":n)+' button. Click to go to the next tab">'+(null==(n=t.t("next"))?"":n)+"</button>\n    </li>\n    "),r+="\n    ","submit"===e&&t.buttons.submit&&(r+='\n    <li>\n      <button class="btn btn-primary btn-wizard-nav-submit" ref="'+(null==(n=t.wizardKey)?"":n)+'-submit" aria-label="'+(null==(n=t.t("submit"))?"":n)+' button. Click to submit the form">'+(null==(n=t.t("submit"))?"":n)+"</button>\n    </li>\n    "),r+="\n  "}),r+="\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","formio-form-error":"formio-error-wrapper has-message","formio-form-alert":"alert alert-danger","formio-label-error":"","formio-input-error":"","formio-alert-danger":"alert alert-danger","formio-alert-success":"alert alert-success","formio-alert-warning":"alert alert-warning","formio-modal-cancel-button":"btn btn-danger formio-dialog-button","formio-modal-confirm-button":"btn btn-primary formio-dialog-button"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(634))&&n.__esModule?n:{default:n}).default};t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";Array.prototype.join;return n+="<p>"+(null==(t=e.t("error"))?"":t)+"\n  ",e.options.vpat&&(n+='\n  <span ref="errorTooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+'" tabindex="0"></span>\n  '),n+="\n</p>\n<ul>\n  ",e.errors.forEach(function(e){n+='\n  <li>\n    <span\n      data-component-key = "'+(null==(t=e.keyOrPath)?"":t)+'"\n      ref = "errorRef"\n      tabIndex = "0"\n      role="link"\n    >\n      '+(null==(t=e.message)?"":t)+"\n    </span>\n  </li>\n  "}),n+="\n</ul>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n={form:((n=n(636))&&n.__esModule?n:{default:n}).default};t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,r="";Array.prototype.join;for(n in r+="<div\n  ",e.attrs)r+="\n    "+(null==(t=n)?"":t)+'="'+(null==(t=e.attrs[n])?"":t)+'"\n  ';return r+="\n>\n  "+(null==(t=e.message)?"":t)+"\n  ",e.options.vpat&&(r+='\n    <span class="sr-only" id="hotkey-i-'+(null==(t=e.form._id)?"":t)+'">'+(null==(t=e.t("errorListHotkey"))?"":t)+"</span>\n  "),r+="\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(638);t.default={framework:"bootstrap3",templates:n.default}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(639);t.default={bootstrap3:n.default}},function(L,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t(301),r=t(640),o=t(642),i=t(644),a=t(646),l=t(648),s=t(650),u=t(652),c=t(654),f=t(656),d=t(657),p=t(660),h=t(662),m=t(664),y=t(667),v=t(670),b=t(672),g=t(674),w=t(675),k=t(678),_=t(680),O=t(682),S=t(684),P=t(686),E=t(688),x=t(690),j=t(692),C=t(695),R=t(697),A=t(700),M=t(703),T=t(706),D=t(708),I=t(710),V=t(713),N=t(715),F=t(717),U=t(719),z=t(721),t=t(723);e.default={transform:function(e,t){return t&&("class"===e&&this.cssClasses.hasOwnProperty(t.toString())?this.cssClasses[t.toString()]:t)},handleBuilderSidebarScroll:function(r){r.scrollResizeObserver&&r.scrollResizeObserver.disconnect(),r.scrollResizeObserver=new n.default(function(){setTimeout(function(){var e=r.refs,t=e.form,e=e.sidebar,t=t&&t.parentNode&&t.parentNode.clientHeight,n=e&&e.clientHeight,e=e&&e.parentNode&&e.parentNode.style;e&&t&&n&&(e.height=Math.max(n+20,t)+"px")})}),r.scrollResizeObserver.observe(r.refs.form),r.scrollResizeObserver.observe(r.refs.sidebar)},clearBuilderSidebarScroll:function(e){e.scrollResizeObserver&&(e.scrollResizeObserver.disconnect(),e.scrollResizeObserver=null)},defaultIconset:"glyphicon",iconClass:g.default,cssClasses:f.default,builder:r.default,builderComponent:o.default,builderComponents:i.default,builderEditForm:a.default,builderPlaceholder:l.default,builderSidebar:s.default,builderSidebarGroup:u.default,columns:c.default,datagrid:d.default,day:p.default,dialog:h.default,editgrid:m.default,field:y.default,file:v.default,icon:b.default,input:w.default,label:k.default,message:_.default,modaldialog:O.default,modaledit:S.default,multiValueRow:P.default,multiValueTable:E.default,panel:x.default,radio:j.default,resourceAdd:C.default,signature:R.default,survey:A.default,tab:M.default,table:T.default,well:D.default,wizard:I.default,wizardHeader:V.default,wizardHeaderClassic:N.default,wizardHeaderVertical:F.default,wizardNav:U.default,errorsList:t.default,alert:z.default}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(641);t.default={form:n.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});n=n(643);t.default={form:n.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});n=n(645);t.default={form:n.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});n=n(647);t.default={form:n.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,{_userInput:!0}))?"":t)+" "+(null==(t=e.t("Component"))?"":t)+"</p>\n  </div>\n  ",e.helplinks&&(n+='\n  <div class="col col-sm-6">\n    <div class="pull-right" style="margin-right: 20px; margin-top: 10px">\n      <a href="'+(null==(t=e.t(e.helplinks+e.componentInfo.documentation))?"":t)+'" target="_blank">\n        <i class="'+(null==(t=e.iconClass("new-window"))?"":t)+'"> '+(null==(t=e.t("Help"))?"":t)+"</i>\n      </a>\n    </div>\n  </div>\n"),n+='\n</div>\n<div class="row component-edit-content">\n  <div class="col component-edit-tabs ',e.preview?n+="col-sm-6":n+="col-sm-12",n+='">\n    <div class="editForm" ref="editForm">\n      '+(null==(t=e.editForm)?"":t)+"\n    </div>\n    ",e.preview||(n+='\n    <div style="margin-top: 10px;">\n      <button class="btn btn-success" style="margin-right: 10px;" ref="saveButton">'+(null==(t=e.t("Save"))?"":t)+'</button>\n      <button class="btn btn-default" style="margin-right: 10px;" ref="cancelButton">'+(null==(t=e.t("Cancel"))?"":t)+'</button>\n      <button class="btn btn-danger" ref="removeButton">'+(null==(t=e.t("Remove"))?"":t)+"</button>\n    </div>\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});n=n(649);t.default={form:n.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});n=n(651);t.default={form:n.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-sidebar'+(null==(t=e.scrollEnabled?" builder-sidebar_scroll":"")?"":t)+'" ref="sidebar">\n  <input class="form-control builder-sidebar_search" type="search" ref="sidebar-search" placeholder="Search field(s)" />\n  <div id="'+(null==(t=e.groupId)?"":t)+'" class="panel-group" ref="sidebar-groups">\n    ',e.groups.forEach(function(e){n+="\n      "+(null==(t=e)?"":t)+"\n    "}),n+="\n  </div>\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(653);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var n,r="";Array.prototype.join;return r+='<div class="panel panel-default form-builder-panel" ref="group-panel-'+(null==(n=t.groupKey)?"":n)+'">\n  <div class="panel-heading form-builder-group-header">\n    <h5 class="panel-title">\n      <button\n        class="btn btn-block builder-group-button"\n        type="button"\n        data-toggle="collapse"\n        data-target="#group-'+(null==(n=t.groupKey)?"":n)+'"\n        data-parent="#'+(null==(n=t.groupId)?"":n)+'"\n        href="#group-'+(null==(n=t.groupKey)?"":n)+'"\n        ref="sidebar-anchor"\n      >\n        '+(null==(n=t.t(t.group.title,{_userInput:!0}))?"":n)+'\n      </button>\n    </h5>\n  </div>\n  <div\n    id="group-'+(null==(n=t.groupKey)?"":n)+'"\n    class="panel-collapse collapse'+(null==(n=t.group.default?" in":"")?"":n)+'"\n    data-parent="#'+(null==(n=t.groupId)?"":n)+'"\n    data-default="'+(null==(n=t.group.default)?"":n)+'"\n    ref="sidebar-group"\n  >\n    <div id="group-container-'+(null==(n=t.groupKey)?"":n)+'" class="panel-body no-drop" ref="sidebar-container">\n      ',t.group.componentOrder.length||t.subgroups.length?(r+="\n        ",t.group.componentOrder.forEach(function(e){r+='\n          <span\n            data-group="'+(null==(n=t.groupKey)?"":n)+'"\n            data-key="'+(null==(n=t.group.components[e].key)?"":n)+'"\n            data-type="'+(null==(n=t.group.components[e].schema.type)?"":n)+'"\n            class="btn btn-primary btn-xs btn-block formcomponent drag-copy"\n          >\n            ',t.group.components[e].icon&&(r+='\n              <i class="'+(null==(n=t.iconClass(t.group.components[e].icon))?"":n)+'" style="margin-right: 5px;"></i>\n            '),r+="\n            "+(null==(n=t.t(t.group.components[e].title,{_userInput:!0}))?"":n)+"\n          </span>\n        "}),r+="\n        "+(null==(n=t.subgroups.join(""))?"":n)+"\n      "):r+="\n        <div>"+(null==(n=t.t("No Matches Found"))?"":n)+"</div>\n      ",r+="\n    </div>\n  </div>\n</div>\n\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(655);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return n.component.columns.forEach(function(e,t){o+='\n<div class="col\n    col-'+(null==(r=e.size)?"":r)+"-"+(null==(r=e.width)?"":r)+"\n    col-"+(null==(r=e.size)?"":r)+"-offset-"+(null==(r=e.offset)?"":r)+"\n    col-"+(null==(r=e.size)?"":r)+"-push-"+(null==(r=e.push)?"":r)+"\n    col-"+(null==(r=e.size)?"":r)+"-pull-"+(null==(r=e.pull)?"":r)+'\n  " ref="'+(null==(r=n.columnKey)?"":r)+'">\n  '+(null==(r=n.columnComponents[t])?"":r)+"\n</div>\n"}),o+="\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(658),n=n(659);t.default={form:r.default,html:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<table class="table datagrid-table table-bordered\n    '+(null==(r=n.component.striped?"table-striped":"")?"":r)+"\n    "+(null==(r=n.component.hover?"table-hover":"")?"":r)+"\n    "+(null==(r=n.component.condensed?"table-condensed":"")?"":r)+'\n    " ',n.component.layoutFixed&&(o+='style="table-layout: fixed;"'),o+=">\n  ",n.hasHeader&&(o+="\n  <thead>\n    <tr>\n      ",n.component.reorder&&(o+="<th></th>"),o+="\n      ",n.columns.forEach(function(e){o+='\n        <th class="'+(null==(r=e.validate&&e.validate.required?"field-required":"")?"":r)+'">\n          '+(null==(r=e.hideLabel?"":n.t(e.label||e.title,{_userInput:!0}))?"":r)+"\n          ",e.tooltip&&(o+=' <i ref="tooltip" data-title="'+(null==(r=e.tooltip)?"":r)+'" class="'+(null==(r=n.iconClass("question-sign"))?"":r)+' text-muted" data-tooltip="'+(null==(r=e.tooltip)?"":r)+'"></i>'),o+="\n        </th>\n      "}),o+="\n      ",n.hasExtraColumn&&(o+="\n      <th>\n        ",!n.builder&&n.hasAddButton&&n.hasTopSubmit&&(o+='\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(r=n.datagridKey)?"":r)+'-addRow">\n          <i class="'+(null==(r=n.iconClass("plus"))?"":r)+'"></i> '+(null==(r=n.t(n.component.addAnother||"Add Another",{_userInput:!0}))?"":r)+"\n        </button>\n        "),o+="\n      </th>\n      "),o+="\n    </tr>\n  </thead>\n  "),o+='\n  <tbody ref="'+(null==(r=n.datagridKey)?"":r)+'-tbody" data-key="'+(null==(r=n.datagridKey)?"":r)+'">\n    ',n.rows.forEach(function(t,e){o+="\n    ",n.hasGroups&&n.groups[e]&&(o+='\n    <tr ref="'+(null==(r=n.datagridKey)?"":r)+'-group-header" class="datagrid-group-header'+(null==(r=n.hasToggle?" clickable":"")?"":r)+'">\n      <td\n        ref="'+(null==(r=n.datagridKey)?"":r)+'-group-label"\n        colspan="'+(null==(r=n.numColumns)?"":r)+'"\n        class="datagrid-group-label">'+(null==(r=n.groups[e].label)?"":r)+"</td>\n    </tr>\n    "),o+='\n    <tr ref="'+(null==(r=n.datagridKey)?"":r)+'-row">\n      ',n.component.reorder&&(o+='\n        <td class="col-md-1">\n          <button type="button" class="formio-drag-button btn btn-default fa fa-bars" data-key="'+(null==(r=n.datagridKey)?"":r)+'"></button>\n        </td>\n      '),o+="\n      ",n.columns.forEach(function(e){o+='\n        <td ref="'+(null==(r=n.datagridKey)?"":r)+'">\n          '+(null==(r=t[e.key])?"":r)+"\n        </td>\n      "}),o+="\n      ",n.hasExtraColumn&&(o+="\n        ",n.hasRemoveButtons&&(o+='\n        <td>\n          <button type="button" class="btn btn-default formio-button-remove-row" ref="'+(null==(r=n.datagridKey)?"":r)+'-removeRow">\n            <i class="'+(null==(r=n.iconClass("remove-circle"))?"":r)+'"></i>\n          </button>\n        </td>\n        '),o+="\n        ",n.canAddColumn&&(o+='\n        <td ref="'+(null==(r=n.key)?"":r)+'-container" class="col-md-1">\n          '+(null==(r=n.placeholder)?"":r)+"\n        </td>\n        "),o+="\n      "),o+="\n    </tr>\n    "}),o+="\n  </tbody>\n  ",n.hasAddButton&&n.hasBottomSubmit&&(o+='\n  <tfoot>\n    <tr>\n      <td colspan="'+(null==(r=n.component.layoutFixed?n.numColumns:n.numColumns+1)?"":r)+'">\n        <button class="btn btn-primary formio-button-add-row" ref="'+(null==(r=n.datagridKey)?"":r)+'-addRow">\n          <i class="'+(null==(r=n.iconClass("plus"))?"":r)+'"></i> '+(null==(r=n.t(n.component.addAnother||"Add Another",{_userInput:!0}))?"":r)+"\n        </button>\n      </td>\n    </tr>\n  </tfoot>\n  "),o+="\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" data-tooltip="'+(null==(n=e.tooltip)?"":n)+'"></i>'),r+="\n        </th>\n      "}),r+="\n    </tr>\n  </thead>\n  "),r+="\n  <tbody>\n    ",rows.forEach(function(t){r+="\n    <tr>\n      ",columns.forEach(function(e){r+='\n        <td ref="'+(null==(n=datagridKey)?"":n)+'">\n          '+(null==(n=t[e.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});n=n(661);t.default={form:n.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});n=n(663);t.default={form:n.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'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(665),n=n(666);t.default={form:r.default,html:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<ul class="editgrid-listgroup list-group\n    '+(null==(r=n.component.striped?"table-striped":"")?"":r)+"\n    "+(null==(r=n.component.bordered?"table-bordered":"")?"":r)+"\n    "+(null==(r=n.component.hover?"table-hover":"")?"":r)+"\n    "+(null==(r=n.component.condensed?"table-condensed":"")?"":r)+'\n    ">\n  ',n.header&&(o+='\n  <li class="list-group-item list-group-header">\n    '+(null==(r=n.header)?"":r)+"\n  </li>\n  "),o+="\n  ",n.rows.forEach(function(e,t){o+='\n  <li class="list-group-item" ref="'+(null==(r=n.ref.row)?"":r)+'">\n    '+(null==(r=e)?"":r)+"\n    ",n.openRows[t]&&!n.readOnly&&(o+='\n    <div class="editgrid-actions">\n      <button class="btn btn-primary" ref="'+(null==(r=n.ref.saveRow)?"":r)+'">'+(null==(r=n.t(n.component.saveRow||"Save",{_userInput:!0}))?"":r)+"</button>\n      ",n.component.removeRow&&(o+='\n      <button class="btn btn-danger" ref="'+(null==(r=n.ref.cancelRow)?"":r)+'">'+(null==(r=n.t(n.component.removeRow||"Cancel",{_userInput:!0}))?"":r)+"</button>\n      "),o+="\n    </div>\n    "),o+='\n    <div class="has-error">\n      <div class="editgrid-row-error help-block">\n        '+(null==(r=n.errors[t])?"":r)+"\n      </div>\n    </div>\n  </li>\n  "}),o+="\n  ",n.footer&&(o+='\n  <li class="list-group-item list-group-footer">\n    '+(null==(r=n.footer)?"":r)+"\n  </li>\n  "),o+="\n</ul>\n",!n.readOnly&&n.hasAddButton&&(o+='\n<button class="btn btn-primary formio-button-add-another" ref="'+(null==(r=n.ref.addRow)?"":r)+'">\n  <i class="'+(null==(r=n.iconClass("plus"))?"":r)+'"></i> '+(null==(r=n.t(n.component.addAnother||"Add Another",{_userInput:!0}))?"":r)+"\n</button>\n"),o+="\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<ul class="editgrid-listgroup list-group\n    '+(null==(r=n.component.striped?"table-striped":"")?"":r)+"\n    "+(null==(r=n.component.bordered?"table-bordered":"")?"":r)+"\n    "+(null==(r=n.component.hover?"table-hover":"")?"":r)+"\n    "+(null==(r=n.component.condensed?"table-sm":"")?"":r)+'\n    ">\n  ',n.header&&(o+='\n  <li class="list-group-item list-group-header">\n    '+(null==(r=n.header)?"":r)+"\n  </li>\n  "),o+="\n  ",n.rows.forEach(function(e,t){o+='\n  <li class="list-group-item" ref="'+(null==(r=n.ref.row)?"":r)+'">\n    '+(null==(r=e)?"":r)+"\n    ",n.openRows[t]&&!n.readOnly&&(o+='\n    <div class="editgrid-actions">\n      <button class="btn btn-primary" ref="'+(null==(r=n.ref.saveRow)?"":r)+'">'+(null==(r=n.t(n.component.saveRow||"Save",{_userInput:!0}))?"":r)+"</button>\n      ",n.component.removeRow&&(o+='\n      <button class="btn btn-danger" ref="'+(null==(r=n.ref.cancelRow)?"":r)+'">'+(null==(r=n.t(n.component.removeRow||"Cancel",{_userInput:!0}))?"":r)+"</button>\n      "),o+="\n    </div>\n    "),o+='\n    <div class="has-error">\n      <div class="editgrid-row-error help-block">\n        '+(null==(r=n.errors[t])?"":r)+"\n      </div>\n    </div>\n  </li>\n  "}),o+="\n  ",n.footer&&(o+='\n  <li class="list-group-item list-group-footer">\n    '+(null==(r=n.footer)?"":r)+"\n  </li>\n  "),o+="\n</ul>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(668),n=n(669);t.default={align:r.default,form:n.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,{_userInput:!0}))?"":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,{_userInput:!0}))?"":t)+"</div>\n"),n+="\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(671);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return n.self.imageUpload?(o+="\n  <div>\n    ",n.files.forEach(function(e){o+='\n      <div>\n        <span>\n          <img ref="fileImage" src="" alt="'+(null==(r=e.originalName||e.name)?"":r)+'" style="width:'+(null==(r=n.component.imageSize)?"":r)+'px">\n          ',n.disabled||(o+='\n            <i class="'+(null==(r=n.iconClass("remove"))?"":r)+'" ref="removeLink"></i>\n          '),o+="\n        </span>\n      </div>\n    "}),o+="\n  </div>\n"):(o+='\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        ',n.disabled||(o+='\n          <div class="col-md-1"></div>\n        '),o+='\n        <div class="col-md-',n.self.hasTypes?o+="7":o+="9",o+='"><strong>'+(null==(r=n.t("File Name"))?"":r)+'</strong></div>\n        <div class="col-md-2"><strong>'+(null==(r=n.t("Size"))?"":r)+"</strong></div>\n        ",n.self.hasTypes&&(o+='\n          <div class="col-md-2"><strong>'+(null==(r=n.t("Type"))?"":r)+"</strong></div>\n        "),o+="\n      </div>\n    </li>\n    ",n.files.forEach(function(t){o+='\n      <li class="list-group-item">\n        <div class="row">\n          ',n.disabled||(o+='\n            <div class="col-md-1"><i class="'+(null==(r=n.iconClass("remove"))?"":r)+'" ref="removeLink"></i></div>\n          '),o+='\n          <div class="col-md-',n.self.hasTypes?o+="7":o+="9",o+='">\n            ',n.component.uploadOnly?o+="\n              "+(null==(r=t.originalName||t.name)?"":r)+"\n            ":o+='\n              <a href="'+(null==(r=t.url||"#")?"":r)+'" target="_blank" ref="fileLink">'+(null==(r=t.originalName||t.name)?"":r)+"</a>\n            ",o+='\n          </div>\n          <div class="col-md-2">'+(null==(r=n.fileSize(t.size))?"":r)+"</div>\n          ",n.self.hasTypes&&!n.disabled&&(o+='\n            <div class="col-md-2">\n              <select class="file-type" ref="fileType" >\n                ',n.component.fileTypes.map(function(e){o+='\n                  <option class="test" value="'+(null==(r=e.value)?"":r)+'" ',e.label===t.fileType&&(o+='selected="selected"'),o+=">"+(null==(r=e.label)?"":r)+"</option>\n                "}),o+="\n              </select>\n            </div>\n          "),o+="\n          ",n.self.hasTypes&&n.disabled&&(o+='\n          <div class="col-md-2">'+(null==(r=t.fileType)?"":r)+"</div>\n          "),o+="\n        </div>\n      </li>\n    "}),o+="\n  </ul>\n"),o+="\n",n.disabled||!n.component.multiple&&n.files.length||(o+="\n  ",n.self.useWebViewCamera?o+='\n    <div class="fileSelector">\n      <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(r=n.t("Gallery"))?"":r)+'</button>\n      <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(r=n.t("Camera"))?"":r)+"</button>\n    </div>\n  ":n.self.cameraMode?o+='\n    <div class="video-container">\n      <video class="video" autoplay="true" ref="videoPlayer"></video>\n    </div>\n    <button class="btn btn-primary" ref="takePictureButton"><i class="fa fa-camera"></i> '+(null==(r=n.t("Take Picture"))?"":r)+'</button>\n    <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(r=n.t("Switch to file upload"))?"":r)+"</button>\n  ":(o+='\n    <div class="fileSelector" ref="fileDrop" '+(null==(r=n.fileDropHidden?"hidden":"")?"":r)+'>\n      <i class="'+(null==(r=n.iconClass("cloud-upload"))?"":r)+'"></i> '+(null==(r=n.t("Drop files to attach,"))?"":r)+"\n        ",n.self.imageUpload&&n.component.webcam&&(o+='\n          <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(r=n.t("Use Camera,"))?"":r)+"</a>\n        "),o+="\n        "+(null==(r=n.t("or"))?"":r)+' <a href="#" ref="fileBrowse" class="browse">'+(null==(r=n.t("browse"))?"":r)+"</a>\n    </div>\n  "),o+="\n"),o+="\n",n.statuses.forEach(function(e){o+='\n  <div class="file '+(null==(r="error"===n.statuses.status?" has-error":"")?"":r)+'">\n    <div class="row">\n      <div class="fileName col-form-label col-sm-10">'+(null==(r=e.originalName)?"":r)+' <i class="'+(null==(r=n.iconClass("remove"))?"":r)+'" ref="fileStatusRemove"></i></div>\n      <div class="fileSize col-form-label col-sm-2 text-right">'+(null==(r=n.fileSize(e.size))?"":r)+'</div>\n    </div>\n    <div class="row">\n      <div class="col-sm-12">\n        ',"progress"===e.status?o+='\n          <div class="progress">\n            <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(r=e.progress)?"":r)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(r=e.progress)?"":r)+'%">\n              <span class="sr-only">'+(null==(r=e.progress)?"":r)+"% "+(null==(r=n.t("Complete"))?"":r)+"</span>\n            </div>\n          </div>\n        ":"error"===e.status?o+='\n          <div class="alert alert-danger bg-'+(null==(r=e.status)?"":r)+'">'+(null==(r=n.t(e.message))?"":r)+"</div>\n        ":o+='\n          <div class="bg-'+(null==(r=e.status)?"":r)+'">'+(null==(r=n.t(e.message))?"":r)+"</div>\n        ",o+="\n      </div>\n    </div>\n  </div>\n"}),o+="\n",n.component.storage&&!n.support.hasWarning||(o+='\n  <div class="alert alert-warning">\n    ',n.component.storage||(o+="\n      <p>"+(null==(r=n.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":r)+"</p>\n    "),o+="\n    ",n.support.filereader||(o+="\n      <p>"+(null==(r=n.t("File API & FileReader API not supported."))?"":r)+"</p>\n    "),o+="\n    ",n.support.formdata||(o+="\n      <p>"+(null==(r=n.t("XHR2's FormData is not supported."))?"":r)+"</p>\n    "),o+="\n    ",n.support.progress||(o+="\n      <p>"+(null==(r=n.t("XHR2's upload progress isn't supported."))?"":r)+"</p>\n    "),o+="\n  </div>\n"),o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(673);t.default={form:n.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(676),n=n(677);t.default={form:r.default,html:n.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,{_userInput:!0}))?"":t)+"\n      ":n+="\n        "+(null==(t=e.t(e.prefix,{_userInput:!0}))?"":t)+"\n      ",n+="\n    </div>\n  "),n+="\n  ",!e.component.editor&&!e.component.wysiwyg){for(var r in n+="\n    <"+(null==(t=e.input.type)?"":t)+'\n      ref="'+(null==(t=e.input.ref||"input")?"":t)+'"\n      ',e.input.attr)n+="\n        "+(null==(t=r)?"":t)+'="'+(null==(t=e.input.attr[r])?"":t)+'"\n      ';n+='\n      id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n    >'+(null==(t=e.input.content)?"":t)+"</"+(null==(t=e.input.type)?"":t)+">\n    ",e.hasValueMaskInput&&(n+='\n      <input ref="valueMaskInput" />\n    '),n+="\n"}return n+="\n",(e.component.editor||e.component.wysiwyg)&&(n+='\n  <div ref="input"></div>\n'),n+="\n",e.suffix&&(n+='\n  <div class="input-group-addon" ref="suffix">\n    ',e.suffix instanceof HTMLElement?n+="\n      "+(null==(t=e.t(e.suffix.outerHTML,{_userInput:!0}))?"":t)+"\n    ":n+="\n      "+(null==(t=e.t(e.suffix,{_userInput:!0}))?"":t)+"\n    ",n+="\n  </div>\n"),n+="\n",(e.prefix||e.suffix)&&(n+="\n  </div>\n"),n+="\n",e.component.showCharCount&&(n+='\n<span class="text-muted pull-right" ref="charcount"></span>\n'),n+="\n",e.component.showWordCount&&(n+='\n<span class="text-muted pull-right" ref="wordcount"></span>\n'),n+="\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="";Array.prototype.join;return t+='<div ref="value">',e.value?t+=null==(e=e.value)?"":e:t+="-",t+="</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(679);t.default={form:n.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,{_userInput:!0}))?"":t)+"\n    ",e.component.tooltip&&(n+='\n      <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n    '),n+="\n  "),n+="\n</label>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(681);t.default={form:n.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});n=n(683);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="";return t+='<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==(e=e.t("Close"))?"":e)+'\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});n=n(685);t.default={form:n.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});n=n(687);t.default={form:n.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});n=n(689);t.default={form:n.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,{_userInput:!0}))?"":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});n=n(691);t.default={form:n.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"\n    ',e.component.collapsible&&(n+='\n    tabindex="0"\n    '),n+='\n    role="button"\n    aria-expanded="'+(null==(t=!e.component.collapsible||!e.collapsed)?"":t)+'"\n    aria-controls="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n    ref="header"\n  >\n    <h4 class="mb-0 panel-title">\n      ',e.component.collapsible&&(n+='\n        <i class="formio-collapse-icon '+(null==(t=e.iconClass(e.collapsed?"plus":"minus"))?"":t)+' text-muted" data-title="Collapse Panel"></i>\n      '),n+="\n      ",e.component.hideLabel&&!e.builder||(n+="\n      "+(null==(t=e.t(e.component.title,{_userInput:!0}))?"":t)+"\n      "),n+="\n      ",e.component.tooltip&&(n+='\n        <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n      '),n+="\n    </h4>\n  </div>\n  "),n+="\n  ",e.collapsed&&!e.builder||(n+='\n  <div class="panel-body" ref="'+(null==(t=e.nestedKey)?"":t)+'" id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'">\n    '+(null==(t=e.children)?"":t)+"\n  </div>\n  "),n+="\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(693),n=n(694);t.default={form:r.default,html:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<div class="input-group">\n  ',n.values.forEach(function(e){for(var t in o+='\n  <div class="'+(null==(r=n.input.attr.type)?"":r)+(null==(r=n.inline?"-inline":"")?"":r)+'" ref="wrapper">\n    <label class="control-label form-check-label label-position-'+(null==(r=n.component.optionsLabelPosition)?"":r)+'" for="'+(null==(r=n.instance.root&&n.instance.root.id)?"":r)+"-"+(null==(r=n.id)?"":r)+"-"+(null==(r=n.row)?"":r)+"-"+(null==(r=e.value)?"":r)+'">\n      ',"left"!==n.component.optionsLabelPosition&&"top"!==n.component.optionsLabelPosition||(o+="\n      <span>"+(null==(r=n.t(e.label,{_userInput:!0}))?"":r)+"</span>\n      "),o+="\n      <"+(null==(r=n.input.type)?"":r)+'\n        ref="input"\n        ',n.input.attr)o+="\n        "+(null==(r=t)?"":r)+'="'+(null==(r=n.input.attr[t])?"":r)+'"\n        ';o+='\n        value="'+(null==(r=e.value)?"":r)+'"\n        ',(n.value===e.value||"object"==typeof n.value&&n.value.hasOwnProperty(e.value)&&n.value[e.value])&&(o+="\n          checked=true\n        "),o+="\n        ",e.disabled&&(o+="\n          disabled=true\n        "),o+='\n        id="'+(null==(r=n.instance.root&&n.instance.root.id)?"":r)+"-"+(null==(r=n.id)?"":r)+"-"+(null==(r=n.row)?"":r)+"-"+(null==(r=e.value)?"":r)+'"\n      >\n      ',n.component.optionsLabelPosition&&"right"!==n.component.optionsLabelPosition&&"bottom"!==n.component.optionsLabelPosition||(o+="\n      <span>"+(null==(r=n.t(e.label,{_userInput:!0}))?"":r)+"</span>\n      "),o+="\n    </label>\n  </div>\n  "}),o+="\n</div>\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var e="";Array.prototype.join;e+='<div ref="value">\n  ';var n=t.values.filter(function(e){return t.value===e.value||"object"==typeof t.value&&t.value.hasOwnProperty(e.value)&&t.value[e.value]}).map(function(e){return t.t(e.label,{_userInput:!0})}).join(", ");return e+="\n  "+(null==n?"":n)+"\n  </div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(696);t.default={form:n.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",{_userInput:!0}))?"":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(698),n=n(699);t.default={form:r.default,html:n.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" style="display: none;" height="'+(null==(t=e.component.height)?"":t)+'" ref="canvas"></canvas>\n  ',e.required&&(n+='\n  <span class="form-control-feedback field-required-inline text-danger">\n    <i class="'+(null==(t=e.iconClass("asterisk"))?"":t)+'"></i>\n  </span>\n  '),n+='\n  <img style="width: 100%;display: inherit;" ref="signatureImage">\n</div>\n',e.component.footer&&(n+='\n  <div class="signature-pad-footer">\n    '+(null==(t=e.t(e.component.footer,{_userInput:!0}))?"":t)+"\n  </div>\n"),n+="\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'<img style="width: 100%;" ref="signatureImage">\n'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(701),n=n(702);t.default={form:r.default,html:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<table class="table table-striped table-bordered">\n  <thead>\n    <tr>\n      <th></th>\n      ',n.component.values.forEach(function(e){o+='\n      <th style="text-align: center;">\n        '+(null==(r=n.t(e.label))?"":r)+"\n        ",e.tooltip&&(o+='\n          <i ref="tooltip" class="'+(null==(r=n.iconClass("question-sign"))?"":r)+' text-muted" data-tooltip="'+(null==(r=e.tooltip)?"":r)+'"></i>\n        '),o+="\n      </th>\n      "}),o+="\n    </tr>\n  </thead>\n  <tbody>\n    ",n.component.questions.forEach(function(t){o+="\n    <tr>\n      <td>\n        "+(null==(r=n.t(t.label))?"":r)+"\n        ",t.tooltip&&(o+='\n          <i ref="tooltip" class="'+(null==(r=n.iconClass("question-sign"))?"":r)+' text-muted" data-tooltip="'+(null==(r=t.tooltip)?"":r)+'"></i>\n        '),o+="\n      </td>\n      ",n.component.values.forEach(function(e){o+='\n      <td style="text-align: center;">\n        <input type="radio" name="'+(null==(r=n.self.getInputName(t))?"":r)+'" value="'+(null==(r=e.value)?"":r)+'" id="'+(null==(r=n.key)?"":r)+"-"+(null==(r=t.value)?"":r)+"-"+(null==(r=e.value)?"":r)+'" ref="input">\n      </td>\n      '}),o+="\n    </tr>\n    "}),o+="\n  </tbody>\n</table>\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<table class="table table-striped table-bordered">\n  <tbody>\n    ',n.component.questions.forEach(function(t){o+="\n    <tr>\n      <th>"+(null==(r=n.t(t.label))?"":r)+"</th>\n      <td>\n      ",n.component.values.forEach(function(e){o+="\n        ",n.value&&n.value.hasOwnProperty(t.value)&&n.value[t.value]===e.value&&(o+="\n          "+(null==(r=n.t(e.label))?"":r)+"\n        "),o+="\n      "}),o+="\n      </td>\n    </tr>\n    "}),o+="\n  </tbody>\n</table>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(704),n=n(705);t.default={flat:r.default,form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return n.component.components.forEach(function(e,t){o+='\n  <div class="panel panel-default">\n    <div class="panel-heading">\n      <h4 class="panel-title">'+(null==(r=n.t(e.label,{_userInput:!0}))?"":r)+'</h4>\n    </div>\n    <div class="panel-body" ref="'+(null==(r=n.tabKey)?"":r)+'">\n      '+(null==(r=n.tabComponents[t])?"":r)+"\n    </div>\n  </div>\n"}),o+="\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<div class="tab-container'+(null==(r=n.component.verticalLayout?" card-vertical":"")?"":r)+'">\n  <ul class="nav nav-tabs'+(null==(r=n.component.verticalLayout?" nav-tabs-vertical":"")?"":r)+'">\n    ',n.component.components.forEach(function(e,t){o+='\n    <li class="nav-item'+(null==(r=n.currentTab===t?" active":"")?"":r)+'" role="presentation" ref="'+(null==(r=n.tabLikey)?"":r)+'">\n      <a class="nav-link'+(null==(r=n.currentTab===t?" active":"")?"":r)+(null==(r=n.component.verticalLayout?" nav-link-vertical":"")?"":r)+'" href="#'+(null==(r=e.key)?"":r)+'" ref="'+(null==(r=n.tabLinkKey)?"":r)+'">'+(null==(r=n.t(e.label,{_userInput:!0}))?"":r)+"</a>\n    </li>\n    "}),o+='\n  </ul>\n  <div class="tab-content">\n    ',n.component.components.forEach(function(e,t){o+='\n    <div role="tabpanel" class="tab-pane'+(null==(r=n.currentTab===t?" active":"")?"":r)+'" ref="'+(null==(r=n.tabKey)?"":r)+'">'+(null==(r=n.tabComponents[t])?"":r)+"</div>\n    "}),o+="\n  </div>\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(707);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r){var o,i="";Array.prototype.join;return i+='<table class="table\n    '+(null==(o=r.component.striped?"table-striped":"")?"":o)+"\n    "+(null==(o=r.component.bordered?"table-bordered":"")?"":o)+"\n    "+(null==(o=r.component.hover?"table-hover":"")?"":o)+"\n    "+(null==(o=r.component.condensed?"table-condensed":"")?"":o)+'\n  ">\n  ',r.component.header&&0<r.component.header.length&&(i+="\n  <thead>\n    <tr>\n      ",r.component.header.forEach(function(e){i+="\n      <th>"+(null==(o=r.t(e,{_userInput:!0}))?"":o)+"</th>\n      "}),i+="\n    </tr>\n  </thead>\n  "),i+="\n  <tbody>\n    ",r.tableComponents.forEach(function(e,n){i+='\n    <tr ref="row-'+(null==(o=r.id)?"":o)+'">\n      ',e.forEach(function(e,t){i+='\n      <td ref="'+(null==(o=r.tableKey)?"":o)+"-"+(null==(o=n)?"":o)+'"',r.cellClassName&&(i+=' class="'+(null==(o=r.cellClassName)?"":o)+'"'),i+=">"+(null==(o=e)?"":o)+"</td>\n      "}),i+="\n    </tr>\n    "}),i+="\n  </tbody>\n</table>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(709);t.default={form:n.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(711),n=n(712);t.default={form:n.default,builder:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="";return t+='<div class="text-muted text-center">'+(null==(e=e.t(e.component.title,{_userInput:!0}))?"":e)+"</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="'+(null==(t=e.className)?"":t)+'">\n  <div style="position: relative;">\n    ',"wizardHeaderVertical"===e.wizardHeaderType?n+='\n      <div class="row">\n        <div class="col-sm-12 col-md-2">\n          '+(null==(t=e.wizardHeader)?"":t)+'\n        </div>\n        <div class="wizard-page col-sm-offset-1 col-md-offset-0 col-sm-10" ref="'+(null==(t=e.wizardKey)?"":t)+'">\n          '+(null==(t=e.components)?"":t)+'\n        </div>\n      </div>\n      <div class="col-sm-offset-4 col-sm-7 col-md-offset-2 col-md-10" style="margin-top: 10px;">\n        '+(null==(t=e.wizardNav)?"":t)+"\n      </div>\n    ":n+=" \n      "+(null==(t=e.wizardHeader)?"":t)+'\n      <div class="wizard-page" ref="'+(null==(t=e.wizardKey)?"":t)+'">\n        '+(null==(t=e.components)?"":t)+"\n      </div>\n      "+(null==(t=e.wizardNav)?"":t)+"\n    ",n+=" \n  </div>\n</div>"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(714);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<nav aria-label="navigation" id="'+(null==(r=n.wizardKey)?"":r)+'-header" ref="'+(null==(r=n.wizardKey)?"":r)+'-header">\n  <ul class="pagination">\n    ',n.panels.forEach(function(e,t){o+='\n    <li class="page-item'+(null==(r=n.currentPage===t?" active":"")?"":r)+'" style="">\n      <span class="page-link" ref="'+(null==(r=n.wizardKey)?"":r)+'-link">\n        '+(null==(r=n.t(e.title,{_userInput:!0}))?"":r)+"\n        ",e.tooltip&&n.currentPage===t&&(o+='\n        <i ref="'+(null==(r=n.wizardKey)?"":r)+'-tooltip" class="'+(null==(r=n.iconClass("question-sign"))?"":r)+' text-muted" data-tooltip="'+(null==(r=e.tooltip)?"":r)+'"></i>\n        '),o+="\n      </span>\n    </li>\n    "}),o+="\n  </ul>\n</nav>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(716);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<nav aria-label="navigation" id="'+(null==(r=n.wizardKey)?"":r)+'-header">\n  <div class="classic-pagination row" style="border-bottom:0;">\n    ',n.panels.forEach(function(e,t){o+='\n      <div class="classic-pagination-page col-xs-12 col-sm-6 col-md-3\n          '+(null==(r=n.currentPage<t?" disabled":"")?"":r)+"\n          "+(null==(r=n.currentPage===t?" active":"")?"":r)+"\n          "+(null==(r=n.currentPage>t?" complete":"")?"":r)+'">\n        <div class="text-center classic-pagination-title">'+(null==(r=n.t(e.title,{_userInput:!0}))?"":r)+"</div>\n        ",1<n.panels.length&&(o+='\n          <div class="progress"><div class="progress-bar"></div></div>\n        '),o+=' \n        <span ref="'+(null==(r=n.wizardKey)?"":r)+'-link" class="classic-pagination-dot"></span>\n      </div>\n    '}),o+="\n  </div>\n</nav>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(718);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<nav aria-label="navigation" id="'+(null==(r=n.wizardKey)?"":r)+'-header">\n  <ul class="pagination">\n    ',n.panels.forEach(function(e,t){o+='\n    <li class="col-sm-offset-3 col-sm-6 col-md-offset-0 col-md-12 page-item'+(null==(r=n.currentPage===t?" active":"")?"":r)+'" style="cursor: pointer;">\n      <span class="page-link" ref="'+(null==(r=n.wizardKey)?"":r)+'-link" style="margin: 0px 0px 5px;">\n        '+(null==(r=n.t(e.title,{_userInput:!0}))?"":r)+"\n        ",e.tooltip&&n.currentPage===t&&(o+='\n        <i ref="'+(null==(r=n.wizardKey)?"":r)+'-tooltip" class="'+(null==(r=n.iconClass("question-sign"))?"":r)+' text-muted" data-tooltip="'+(null==(r=e.tooltip)?"":r)+'"></i>\n        '),o+="\n      </span>\n    </li>\n    "}),o+="\n  </ul>\n</nav>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(720);t.default={form:n.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});n=n(722);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,r="";Array.prototype.join;for(n in r+="<div\n  ",e.attrs)r+="\n    "+(null==(t=n)?"":t)+'="'+(null==(t=e.attrs[n])?"":t)+'"\n  ';return r+="\n>"+(null==(t=e.message)?"":t)+"</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(724);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var n,r="";Array.prototype.join;return r+="<p>"+(null==(n=t.t("error"))?"":n)+"</p>\n<ul>\n  ",t.errors.forEach(function(e){r+='\n    <li\n      data-component-key = "'+(null==(n=e.keyOrPath)?"":n)+'"\n      aria-label = "'+(null==(n=e.message)?"":n)+". "+(null==(n=t.t("errorsListNavigationMessage"))?"":n)+'"\n      ref = "errorRef"\n      tabIndex = "0",\n      style = "cursor:pointer;"\n    ><span>'+(null==(n=e.message)?"":n)+"</span></li>\n  "}),r+="\n</ul>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(726);t.default={framework:"semantic",templates:n.default}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(727);t.default={semantic:n.default}},function(L,e,t){"use strict";var n=this&&this.__assign||function(){return(n=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)},r=(Object.defineProperty(e,"__esModule",{value:!0}),t(728)),o=t(730),i=t(732),a=t(734),l=t(736),s=t(738),u=t(740),c=t(742),f=t(744),d=t(747),p=t(750),h=t(752),m=t(754),y=t(755),v=t(758),b=t(760),g=t(763),w=t(766),k=t(768),_=t(770),O=t(772),S=t(773),P=t(776),E=t(778),x=t(780),j=t(782),C=t(784),R=t(786),A=t(788),M=t(790),T=t(793),D=t(795),I=t(798),V=t(801),N=t(804),F=t(807),U=t(810),z=t(812),B=t(814),H=t(817),q=t(820),W=t(822),K=t(825),Y=t(827),G=t(829),$=t(831),J=t(833),t=t(835);e.default=n(n({transform:function(e,t){if(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:O.default,cssClasses:m.default,builder:r.default,builderComponent:o.default,builderComponents:i.default,builderEditForm:a.default,builderPlaceholder:l.default,builderSidebar:s.default,builderSidebarGroup:u.default,builderWizard:c.default,button:f.default,checkbox:d.default,columns:p.default,component:h.default,datagrid:y.default,day:v.default,editgrid:b.default,field:g.default,fieldset:w.default,file:k.default,icon:_.default,input:S.default,label:P.default,loader:E.default,loading:x.default,message:j.default,multiValueRow:C.default,multiValueTable:R.default,panel:A.default,radio:M.default,resourceAdd:T.default,select:D.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,wizardHeader:K.default,wizardHeaderClassic:Y.default,wizardHeaderVertical:G.default,wizardNav:$.default,alert:J.default,errorsList:t.default})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(729);t.default={form:n.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});n=n(731);t.default={form:n.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});n=n(733);t.default={form:n.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});n=n(735);t.default={form:n.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});n=n(737);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="";return t+='<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==(e=e.position)?"":e)+'"\n>\n  Drag and Drop a form component\n</div>\n'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(739);t.default={form:n.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});n=n(741);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var n,r="";Array.prototype.join;return r+='<div class="ui segment secondary form-builder-panel" style="padding: 0" ref="group-panel-'+(null==(n=t.groupKey)?"":n)+'">\n  <div class="form-builder-group-header">\n    <h5 class="panel-title">\n      <button\n        class="ui button basic fluid builder-group-button"\n        type="button"\n        data-toggle="collapse"\n        data-target="#group-'+(null==(n=t.groupKey)?"":n)+'"\n        data-parent="'+(null==(n=t.groupId)?"":n)+'"\n        ref="sidebar-anchor"\n      >\n        '+(null==(n=t.t(t.group.title))?"":n)+'\n      </button>\n    </h5>\n  </div>\n</div>\n<div class="ui segment" style="padding: 0">\n  <div\n    class="panel-collapse collapse '+(null==(n=t.group.default?" in":"")?"":n)+'"\n    data-parent="#'+(null==(n=t.groupId)?"":n)+'"\n    data-default="'+(null==(n=t.group.default)?"":n)+'"\n    id="group-'+(null==(n=t.groupKey)?"":n)+'"\n    ref="sidebar-group"\n  >\n    <div id="group-container-'+(null==(n=t.groupKey)?"":n)+'" class="card-body panel-body no-drop" ref="sidebar-container">\n      ',t.group.componentOrder.forEach(function(e){r+='\n      <span\n        data-group="'+(null==(n=t.groupKey)?"":n)+'"\n        data-key="'+(null==(n=t.group.components[e].key)?"":n)+'"\n        data-type="'+(null==(n=t.group.components[e].schema.type)?"":n)+'"\n        class="ui button mini primary fluid formcomponent drag-copy"\n      >\n        ',t.group.components[e].icon&&(r+='\n          <i class="'+(null==(n=t.iconClass(t.group.components[e].icon))?"":n)+'" style="margin-right: 5px;"></i>\n        '),r+="\n        "+(null==(n=t.t(t.group.components[e].title))?"":n)+"\n        </span>\n      "}),r+="\n      "+(null==(n=t.subgroups.join(""))?"":n)+"\n    </div>\n  </div>\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(743);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<div class="formio builder ui grid formbuilder">\n  <div class="four wide column formcomponents">\n    '+(null==(r=n.sidebar)?"":r)+'\n  </div>\n  <div class="twelve wide column formarea">\n    <div class="ui breadcrumb" style="margin-bottom: 0.5em">\n      ',n.pages.forEach(function(e,t){o+='\n        <div title="'+(null==(r=e.title)?"":r)+'" class="',t===n.self.page?o+=" active section ":o+=" section ",o+=' wizard-page-label" ref="gotoPage">'+(null==(r=e.title)?"":r)+'</div>\n        <div class="divider">/</div>\n      '}),o+='\n      <div title="'+(null==(r=n.t("Create Page"))?"":r)+'" class="section wizard-page-label" ref="addPage"><i class="'+(null==(r=n.iconClass("plus"))?"":r)+'"></i> '+(null==(r=n.t("Page"))?"":r)+'</div>\n    </div>\n    <div ref="form">\n      '+(null==(r=n.form)?"":r)+"\n    </div>\n  </div>\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(745),n=n(746);t.default={form:r.default,html:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,r="";Array.prototype.join;for(n in r+="<"+(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)r+="\n  "+(null==(t=n)?"":t)+'="'+(null==(t=e.input.attr[n])?"":t)+'"\n  ';return r+="\n>\n",e.component.leftIcon&&(r+='<i class="'+(null==(t=e.component.leftIcon)?"":t)+'"></i>&nbsp;'),r+="\n"+(null==(t=e.input.content)?"":t)+"\n",e.component.tooltip&&(r+='\n  <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n'),r+="\n",e.component.rightIcon&&(r+='&nbsp;<i class="'+(null==(t=e.component.rightIcon)?"":t)+'"></i>'),r+="\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"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(748),n=n(749);t.default={form:r.default,html:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,r="";Array.prototype.join;for(n in r+='<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)r+="\n    "+(null==(t=n)?"":t)+'="'+(null==(t=e.input.attr[n])?"":t)+'"\n    ';return r+="\n    ",e.checked&&(r+="checked=true"),r+="\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()||(r+="<span>"+(null==(t=e.input.label)?"":t)+"</span>"),r+="\n    ",e.component.tooltip&&(r+='\n      <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n    '),r+="\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});n=n(751);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<div class="ui grid" style="width: 100%">\n    ',n.component.columns.forEach(function(e,t){o+='\n    <div class="'+(null==(r=n.transform("columns",e.width))?"":r)+' wide column" ref="'+(null==(r=n.columnKey)?"":r)+'">\n      '+(null==(r=n.columnComponents[t])?"":r)+"\n    </div>\n    "}),o+="\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(753);t.default={form:n.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(756),n=n(757);t.default={form:r.default,html:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<table class="ui table datagrid-table\n    '+(null==(r=n.component.striped?"striped":"")?"":r)+"\n    "+(null==(r=n.component.bordered?"celled":"")?"":r)+"\n    "+(null==(r=n.component.hover?"selectable":"")?"":r)+"\n    "+(null==(r=n.component.condensed?"compact":"padded")?"":r)+'\n    " ',n.component.layoutFixed&&(o+='style="table-layout: fixed;"'),o+=">\n  ",n.hasHeader&&(o+="\n  <thead>\n    <tr>\n      ",n.component.reorder&&(o+="<th></th>"),o+="\n      ",n.columns.forEach(function(e){o+='\n        <th class="'+(null==(r=e.validate&&e.validate.required?"field-required":"")?"":r)+'">\n          '+(null==(r=e.hideLabel?"":n.t(e.label||e.title))?"":r)+"\n          ",e.tooltip&&(o+=' <i ref="tooltip" data-title="'+(null==(r=e.tooltip)?"":r)+'" class="'+(null==(r=n.iconClass("question-sign"))?"":r)+' text-muted" data-tooltip="'+(null==(r=e.tooltip)?"":r)+'"></i>'),o+="\n        </th>\n      "}),o+="\n      ",n.hasExtraColumn&&(o+="\n      <th>\n        ",n.hasAddButton&&n.hasTopSubmit&&(o+='\n        <button class="ui button primary" ref="'+(null==(r=n.datagridKey)?"":r)+'-addRow">\n          <i class="'+(null==(r=n.iconClass("plus"))?"":r)+'"></i> '+(null==(r=n.t(n.component.addAnother||"Add Another"))?"":r)+"\n        </button>\n        "),o+="\n      </th>\n      "),o+="\n    </tr>\n  </thead>\n  "),o+='\n  <tbody ref="'+(null==(r=n.datagridKey)?"":r)+'-tbody">\n    ',n.rows.forEach(function(t,e){o+="\n    ",n.hasGroups&&n.groups[e]&&(o+='\n    <tr ref="'+(null==(r=n.datagridKey)?"":r)+'-group-header" class="datagrid-group-header'+(null==(r=n.hasToggle?" clickable":"")?"":r)+'">\n      <td\n        ref="'+(null==(r=n.datagridKey)?"":r)+'-group-label"\n        colspan="'+(null==(r=n.numColumns)?"":r)+'"\n        class="datagrid-group-label">'+(null==(r=n.groups[e].label)?"":r)+"</td>\n    </tr>\n    "),o+='\n    <tr ref="'+(null==(r=n.datagridKey)?"":r)+'-row">\n      ',n.component.reorder&&(o+='\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      '),o+="\n      ",n.columns.forEach(function(e){o+='\n        <td ref="'+(null==(r=n.datagridKey)?"":r)+'">\n          '+(null==(r=t[e.key])?"":r)+"\n        </td>\n      "}),o+="\n      ",n.hasExtraColumn&&(o+="\n        ",n.hasRemoveButtons&&(o+='\n        <td>\n          <button type="button" class="btn-xss ui icon button secondary formio-'+(null==(r=n.component.type)?"":r)+'-remove" ref="'+(null==(r=n.datagridKey)?"":r)+'-removeRow">\n            <i class="'+(null==(r=n.iconClass("remove"))?"":r)+'"></i>\n          </button>\n        </td>\n        '),o+="\n        ",n.canAddColumn&&(o+='\n        <td ref="'+(null==(r=n.key)?"":r)+'-container">\n          '+(null==(r=n.placeholder)?"":r)+"\n        </td>\n        "),o+="\n      "),o+="\n    </tr>\n    "}),o+="\n  </tbody>\n  ",n.hasAddButton&&n.hasBottomSubmit&&(o+='\n  <tfoot>\n    <tr>\n      <td colspan="'+(null==(r=n.numColumns+1)?"":r)+'">\n        <button class="ui button primary" ref="'+(null==(r=n.datagridKey)?"":r)+'-addRow">\n          <i class="'+(null==(r=n.iconClass("plus"))?"":r)+'"></i> '+(null==(r=n.t(n.component.addAnother||"Add Another"))?"":r)+"\n        </button>\n      </td>\n    </tr>\n  </tfoot>\n  "),o+="\n</table>\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<table class="ui table datagrid-table\n    '+(null==(r=n.component.striped?"striped":"")?"":r)+"\n    "+(null==(r=n.component.bordered?"celled":"")?"":r)+"\n    "+(null==(r=n.component.hover?"selectable":"")?"":r)+"\n    "+(null==(r=n.component.condensed?"compact":"padded")?"":r)+'\n    ">\n  ',n.hasHeader&&(o+="\n  <thead>\n    <tr>\n      ",n.columns.forEach(function(e){o+='\n        <th class="'+(null==(r=e.validate&&e.validate.required?"field-required":"")?"":r)+'">\n          '+(null==(r=e.hideLabel?"":n.t(e.label||e.title))?"":r)+"\n          ",e.tooltip&&(o+=' <i ref="tooltip" class="'+(null==(r=n.iconClass("question-sign"))?"":r)+' text-muted" data-tooltip="'+(null==(r=e.tooltip)?"":r)+'"></i>'),o+="\n        </th>\n      "}),o+="\n    </tr>\n  </thead>\n  "),o+="\n  <tbody>\n    ",n.rows.forEach(function(t){o+="\n    <tr>\n      ",n.columns.forEach(function(e){o+='\n        <td ref="'+(null==(r=n.datagridKey)?"":r)+'">\n          '+(null==(r=t[e.key])?"":r)+"\n        </td>\n      "}),o+="\n    </tr>\n    "}),o+="\n  </tbody>\n</table>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(759);t.default={form:n.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(761),n=n(762);t.default={form:r.default,html:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<div class="editgrid-listgroup ui celled list">\n  ',n.header&&(o+='\n  <div class="item list-group-header">\n    '+(null==(r=n.header)?"":r)+"\n  </div>\n  "),o+="\n  ",n.rows.forEach(function(e,t){o+='\n  <div class="item" ref="'+(null==(r=n.ref.row)?"":r)+'">\n    '+(null==(r=e)?"":r)+"\n    ",n.openRows[t]&&!n.readOnly&&(o+='\n    <div class="editgrid-actions">\n      <button class="ui button primary" ref="'+(null==(r=n.ref.saveRow)?"":r)+'">'+(null==(r=n.t(n.component.saveRow||"Save"))?"":r)+"</button>\n      ",n.component.removeRow&&(o+='\n      <button class="ui button secondary" ref="'+(null==(r=n.ref.cancelRow)?"":r)+'">'+(null==(r=n.t(n.component.removeRow||"Cancel"))?"":r)+"</button>\n      "),o+="\n    </div>\n    "),o+='\n    <div class="has-error">\n      <div class="editgrid-row-error help-block">\n        '+(null==(r=n.errors[t])?"":r)+"\n      </div>\n    </div>\n  </div>\n  "}),o+="\n  ",n.footer&&(o+='\n  <div class="item list-group-footer">\n    '+(null==(r=n.footer)?"":r)+"\n  </div>\n  "),o+="\n</div>\n",!n.readOnly&&n.hasAddButton&&(o+='\n<button class="ui button primary" ref="'+(null==(r=n.ref.addRow)?"":r)+'">\n  <i class="'+(null==(r=n.iconClass("plus"))?"":r)+'"></i> '+(null==(r=n.t(n.component.addAnother||"Add Another"))?"":r)+"\n</button>\n"),o+="\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<div class="editgrid-listgroup ui celled list">\n  ',n.header&&(o+='\n  <div class="item list-group-header">\n    '+(null==(r=n.header)?"":r)+"\n  </div>\n  "),o+="\n  ",n.rows.forEach(function(e,t){o+='\n  <div class="item" ref="'+(null==(r=n.ref.row)?"":r)+'">\n    '+(null==(r=e)?"":r)+"\n    ",n.openRows[t]&&!n.readOnly&&(o+='\n    <div class="editgrid-actions">\n      <button class="ui button primary" ref="'+(null==(r=n.ref.saveRow)?"":r)+'">'+(null==(r=n.t(n.component.saveRow||"Save"))?"":r)+"</button>\n      ",n.component.removeRow&&(o+='\n      <button class="ui button secondary" ref="'+(null==(r=n.ref.cancelRow)?"":r)+'">'+(null==(r=n.t(n.component.removeRow||"Cancel"))?"":r)+"</button>\n      "),o+="\n    </div>\n    "),o+='\n    <div class="has-error">\n      <div class="editgrid-row-error help-block">\n        '+(null==(r=n.errors[t])?"":r)+"\n      </div>\n    </div>\n  </div>\n  "}),o+="\n  ",n.footer&&(o+='\n  <div class="item list-group-footer">\n    '+(null==(r=n.footer)?"":r)+"\n  </div>\n  "),o+="\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(764),n=n(765);t.default={form:r.default,align:n.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});n=n(767);t.default={form:n.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)+'" data-tooltip="'+(null==(t=e.component.tooltip)?"":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});n=n(769);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return n.self.imageUpload?(o+="\n  <div>\n    ",n.files.forEach(function(e){o+='\n      <div>\n        <span>\n          <img ref="fileImage" src="" alt="'+(null==(r=e.originalName||e.name)?"":r)+'" style="width:'+(null==(r=n.component.imageSize)?"":r)+'px">\n          ',n.disabled||(o+='\n            <i class="'+(null==(r=n.iconClass("remove"))?"":r)+'" ref="removeLink"></i>\n          '),o+="\n        </span>\n      </div>\n    "}),o+="\n  </div>\n"):(o+='\n  <div class="ui celled list">\n    <div class="item">\n      <div class="ui grid">\n        ',n.disabled||(o+='\n          <div class="one wide column"></div>\n        '),o+='\n        <div class="',n.self.hasTypes?o+="nine":o+="twelve",o+=' wide column"><strong>'+(null==(r=n.t("File Name"))?"":r)+'</strong></div>\n        <div class="three wide column"><strong>'+(null==(r=n.t("Size"))?"":r)+"</strong></div>\n        ",n.self.hasTypes&&(o+='\n          <div class="three wide column"><strong>'+(null==(r=n.t("Type"))?"":r)+"</strong></div>\n        "),o+="\n      </div>\n    </div>\n    ",n.files.forEach(function(t){o+='\n      <li class="list-group-item">\n        <div class="ui grid">\n          ',n.disabled||(o+='\n            <div class="one wide column"><i class="'+(null==(r=n.iconClass("remove"))?"":r)+'" ref="removeLink"></i></div>\n          '),o+='\n          <div class="',n.self.hasTypes?o+="nine":o+="twelve",o+=' wide column">\n            ',n.component.uploadOnly?o+="\n              "+(null==(r=t.originalName||t.name)?"":r)+"\n            ":o+='\n              <a href="'+(null==(r=t.url||"#")?"":r)+'" target="_blank" ref="fileLink">'+(null==(r=t.originalName||t.name)?"":r)+"</a>\n            ",o+='\n          </div>\n          <div class="three wide column">'+(null==(r=n.fileSize(t.size))?"":r)+"</div>\n          ",n.self.hasTypes&&!n.disabled&&(o+='\n            <div class="three wide column">\n              <select class="file-type" ref="fileType">\n                ',n.component.fileTypes.map(function(e){o+='\n                  <option class="test" value="'+(null==(r=e.value)?"":r)+'" ',e.label===t.fileType&&(o+='selected="selected"'),o+=">"+(null==(r=e.label)?"":r)+"</option>\n                "}),o+="\n              </select>\n            </div>\n          "),o+="\n          ",n.self.hasTypes&&n.disabled&&(o+='\n          <div class="three wide column">'+(null==(r=t.fileType)?"":r)+"</div>\n          "),o+="\n        </div>\n      </li>\n    "}),o+="\n    </div>\n"),o+="\n",n.disabled||!n.component.multiple&&n.files.length||(o+="\n  ",n.self.useWebViewCamera?o+='\n    <div class="fileSelector">\n      <button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> '+(null==(r=n.t("Gallery"))?"":r)+'</button>\n      <button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> '+(null==(r=n.t("Camera"))?"":r)+"</button>\n    </div>\n  ":n.self.cameraMode?o+='\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==(r=n.t("Take Picture"))?"":r)+'</button>\n    <button class="btn btn-primary" ref="toggleCameraMode">'+(null==(r=n.t("Switch to file upload"))?"":r)+"</button>\n  ":(o+='\n    <div class="fileSelector" ref="fileDrop" '+(null==(r=n.fileDropHidden?"hidden":"")?"":r)+'>\n      <i class="'+(null==(r=n.iconClass("cloud-upload"))?"":r)+'"></i> '+(null==(r=n.t("Drop files to attach,"))?"":r)+"\n        ",n.self.imageUpload&&n.component.webcam&&(o+='\n          <a href="#" ref="toggleCameraMode"><i class="fa fa-camera"></i> '+(null==(r=n.t("Use Camera,"))?"":r)+"</a>\n        "),o+="\n        "+(null==(r=n.t("or"))?"":r)+' <a href="#" ref="fileBrowse" class="browse">'+(null==(r=n.t("browse"))?"":r)+"</a>\n    </div>\n  "),o+="\n"),o+="\n",n.statuses.forEach(function(e){o+='\n  <div class="file '+(null==(r="error"===n.statuses.status?" has-error":"")?"":r)+'">\n    <div class="ui grid">\n      <div class="fileName control-label thirteen wide column">'+(null==(r=e.originalName)?"":r)+' <i class="'+(null==(r=n.iconClass("remove"))?"":r)+'" ref="fileStatusRemove"></i></div>\n      <div class="fileSize control-label three wide column">'+(null==(r=n.fileSize(e.size))?"":r)+'</div>\n    </div>\n    <div class="ui grid">\n      <div class="thirteen wide column">\n        ',"progress"===e.status?o+='\n          <div class="progress">\n            <div class="progress-bar" role="progressbar" aria-valuenow="'+(null==(r=e.progress)?"":r)+'" aria-valuemin="0" aria-valuemax="100" style="width: '+(null==(r=e.progress)?"":r)+'">\n              <span class="sr-only">'+(null==(r=e.progress)?"":r)+"% "+(null==(r=n.t("Complete"))?"":r)+"</span>\n            </div>\n          </div>\n        ":o+='\n          <div class="bg-'+(null==(r=e.status)?"":r)+'">'+(null==(r=n.t(e.message))?"":r)+"</div>\n        ",o+="\n      </div>\n    </div>\n  </div>\n"}),o+="\n",n.component.storage&&!n.support.hasWarning||(o+='\n  <div class="alert alert-warning">\n    ',n.component.storage||(o+="\n      <p>"+(null==(r=n.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":r)+"</p>\n    "),o+="\n    ",n.support.filereader||(o+="\n      <p>"+(null==(r=n.t("File API & FileReader API not supported."))?"":r)+"</p>\n    "),o+="\n    ",n.support.formdata||(o+="\n      <p>"+(null==(r=n.t("XHR2's FormData is not supported."))?"":r)+"</p>\n    "),o+="\n    ",n.support.progress||(o+="\n      <p>"+(null==(r=n.t("XHR2's upload progress isn't supported."))?"":r)+"</p>\n    "),o+="\n  </div>\n"),o+="\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(771);t.default={form:n.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 t=(t=(t=(t=r.hasOwnProperty(t)?r[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(774),n=n(775);t.default={form:r.default,html:n.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||"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="";Array.prototype.join;return t+='<div ref="value">',e.value?t+=null==(e=e.value)?"":e:t+="-",t+="</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(777);t.default={form:n.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.component.tooltip&&(n+='\n      <i ref="tooltip" class="'+(null==(t=e.iconClass("question-sign"))?"":t)+' text-muted" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n    '),n+="\n  "),n+="\n</label>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(779);t.default={form:n.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'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(781);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"Loading...\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(783);t.default={form:n.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});n=n(785);t.default={form:n.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});n=n(787);t.default={form:n.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});n=n(789);t.default={form:n.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" data-tooltip="'+(null==(t=e.component.tooltip)?"":t)+'"></i>\n  '),n+="\n</h4>\n"),n+="\n",e.collapsed&&!e.builder||(n+='\n<div class="ui bottom attached segment" ref="'+(null==(t=e.nestedKey)?"":t)+'">\n  '+(null==(t=e.children)?"":t)+"\n</div>\n"),n+="\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(791),n=n(792);t.default={form:r.default,html:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<div class="fields '+(null==(r=n.inline?"inline":"grouped")?"":r)+'">\n  ',n.values.forEach(function(e){for(var t in o+='\n  <div class="field">\n    <div class="ui '+(null==(r="radio"===n.input.attr.type?"radio":"")?"":r)+' checkbox" ref="wrapper">\n      <'+(null==(r=n.input.type)?"":r)+'\n        ref="input"\n        ',n.input.attr)o+="\n        "+(null==(r=t)?"":r)+'="'+(null==(r=n.input.attr[t])?"":r)+'"\n        ';o+='\n        value="'+(null==(r=e.value)?"":r)+'"\n        ',(n.value===e.value||"object"==typeof n.value&&n.value.hasOwnProperty(e.value)&&n.value[e.value])&&(o+="\n          checked=true\n        "),o+="\n        ",e.disabled&&(o+="\n          disabled=true\n        "),o+='\n        id="'+(null==(r=n.instance.root&&n.instance.root.id)?"":r)+"-"+(null==(r=n.id)?"":r)+"-"+(null==(r=n.row)?"":r)+"-"+(null==(r=e.value)?"":r)+'"\n      >\n      <label class="" for="'+(null==(r=n.instance.root&&n.instance.root.id)?"":r)+"-"+(null==(r=n.id)?"":r)+"-"+(null==(r=n.row)?"":r)+"-"+(null==(r=e.value)?"":r)+'">\n        <span>'+(null==(r=n.t(e.label))?"":r)+"</span>\n      </label>\n    </div>\n  </div>\n  "}),o+="\n</div>\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var e="";Array.prototype.join;e+='<div ref="value">\n  ';var n=t.values.filter(function(e){return t.value===e.value||"object"==typeof t.value&&t.value.hasOwnProperty(e.value)&&t.value[e.value]}).map(function(e){return t.t(e.label)}).join(", ");return e+="\n  "+(null==n?"":n)+"\n  </div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(794);t.default={form:n.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(796),n=n(797);t.default={form:r.default,html:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,r="";Array.prototype.join;for(n in r+='<select\n  ref="'+(null==(t=e.input.ref||"selectContainer")?"":t)+'"\n  class="ui search dropdown"\n  '+(null==(t=e.input.multiple?"multiple":"")?"":t)+"\n  ",e.input.attr)r+="\n  "+(null==(t=n)?"":t)+'="'+(null==(t=e.input.attr[n])?"":t)+'"\n  ';return r+="\n  ",e.input.attr.id||(r+='\n  id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n  '),r+="\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&&(r+='\n       autocomplete="'+(null==(t=e.input.attr.autocomplete)?"":t)+'"\n       '),r+='\n       tabindex="-1"\n/>\n'}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="";Array.prototype.join;return t+='<div ref="value">',e.value?t+=null==(e=e.self.itemValueForHTMLMode(e.value))?"":e:t+="-",t+="</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(799),n=n(800);t.default={form:r.default,html:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,r="";Array.prototype.join;for(n in r+="<option "+(null==(t=e.selected?'selected="selected"':"")?"":t)+"\n  value='"+(null==(t=e.option.value)?"":t)+"'\n  ",e.attrs)r+="\n  "+(null==(t=n)?"":t)+'="'+(null==(t=e.attrs[n])?"":t)+'"\n  ';return r+="\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="";Array.prototype.join;return e.selected&&(t+=null==(e=e.t(e.option.label))?"":e),t+="\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(802),n=n(803);t.default={form:r.default,html:n.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'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(805),n=n(806);t.default={form:r.default,html:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<table class="ui table striped celled">\n  <thead>\n    <tr>\n      <th></th>\n      ',n.component.values.forEach(function(e){o+='\n      <th style="text-align: center;">'+(null==(r=n.t(e.label))?"":r)+"</th>\n      "}),o+="\n    </tr>\n  </thead>\n  <tbody>\n    ",n.component.questions.forEach(function(t){o+="\n    <tr>\n      <td>"+(null==(r=n.t(t.label))?"":r)+"</td>\n      ",n.component.values.forEach(function(e){o+='\n      <td style="text-align: center;">\n        <input type="radio" name="'+(null==(r=n.self.getInputName(t))?"":r)+'" value="'+(null==(r=e.value)?"":r)+'" id="'+(null==(r=n.key)?"":r)+"-"+(null==(r=t.value)?"":r)+"-"+(null==(r=e.value)?"":r)+'" ref="input">\n      </td>\n      '}),o+="\n    </tr>\n    "}),o+="\n  </tbody>\n</table>\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<table class="ui table striped celled">\n  <tbody>\n    ',n.component.questions.forEach(function(t){o+="\n    <tr>\n      <th>"+(null==(r=n.t(t.label))?"":r)+"</th>\n      <td>\n      ",n.component.values.forEach(function(e){o+="\n        ",n.value&&n.value.hasOwnProperty(t.value)&&n.value[t.value]===e.value&&(o+="\n          "+(null==(r=n.t(e.label))?"":r)+"\n        "),o+="\n      "}),o+="\n      </td>\n    </tr>\n    "}),o+="\n  </tbody>\n</table>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(808),n=n(809);t.default={flat:r.default,form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return n.component.components.forEach(function(e,t){o+='\n  <h4 class="ui top attached block header">'+(null==(r=n.t(e.label))?"":r)+'</h4>\n  <div class="ui bottom attached segment">\n    '+(null==(r=n.tabComponents[t])?"":r)+"\n  </div>\n"}),o+="\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<div class="tab-container'+(null==(r=n.component.verticalLayout?" card-vertical":"")?"":r)+'">\n  <div class="ui top attached tabular menu'+(null==(r=n.component.verticalLayout?" nav-tabs-vertical":"")?"":r)+'">\n    ',n.component.components.forEach(function(e,t){o+='\n    <a class="item'+(null==(r=n.currentTab===t?" active":"")?"":r)+'" role="presentation" ref="'+(null==(r=n.tabLinkKey)?"":r)+'">'+(null==(r=n.t(e.label))?"":r)+"</a>\n    "}),o+="\n  </div>\n  ",n.component.components.forEach(function(e,t){o+='\n  <div role="tabpanel" class="ui bottom attached tab segment'+(null==(r=n.currentTab===t?" active":"")?"":r)+'" ref="'+(null==(r=n.tabKey)?"":r)+'"">'+(null==(r=n.tabComponents[t])?"":r)+"</div>\n  "}),o+="\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(811);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<table class="ui table\n    '+(null==(r=n.component.striped?"striped":"")?"":r)+"\n    "+(null==(r=n.component.bordered?"celled":"")?"":r)+"\n    "+(null==(r=n.component.hover?"selectable":"")?"":r)+"\n    "+(null==(r=n.component.condensed?"compact":"padded")?"":r)+'\n  ">\n  ',n.component.header&&0<n.component.header.length&&(o+="\n  <thead>\n    <tr>\n      ",n.component.header.forEach(function(e){o+="\n      <th>"+(null==(r=n.t(e))?"":r)+"</th>\n      "}),o+="\n    </tr>\n  </thead>\n  "),o+="\n  <tbody>\n    ",n.tableComponents.forEach(function(e,t){o+='\n    <tr ref="row-'+(null==(r=n.id)?"":r)+'">\n      ',e.forEach(function(e,t){o+='\n      <td ref="'+(null==(r=n.tableKey)?"":r)+"-"+(null==(r=n.rowIndex)?"":r)+'"',n.cellClassName&&(o+=' class="'+(null==(r=n.cellClassName)?"":r)+'"'),o+=">"+(null==(r=e)?"":r)+"</td>\n      "}),o+="\n    </tr>\n    "}),o+="\n  </tbody>\n</table>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(813);t.default={form:n.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(815),n=n(816);t.default={treeView:{form:n.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(818),n=n(819);t.default={form:n.default,builder:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="";return t+='<div class="ui visible message"><p>'+(null==(e=e.t(e.component.title))?"":e)+"</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});n=n(821);t.default={form:n.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(823),n=n(824);t.default={form:n.default,builder:r.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="";return t+='<div class="formio-wizard-builder-component-title">'+(null==(e=e.t(e.component.title))?"":e)+"</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="'+(null==(t=e.className)?"":t)+'">\n  <div style="position: relative;">\n    ',"wizardHeaderVertical"===e.wizardHeaderType?n+='\n      <div class="ui stackable grid">\n        <div class="three wide computer sixteen wide tablet sixteen wide mobile column">\n          '+(null==(t=e.wizardHeader)?"":t)+'\n        </div>\n        <div class="one wide computer one wide mobile one wide tablet column"></div>\n        <div class="wizard-page ten wide computer fourteen wide tablet fourteen wide mobiles column" ref="'+(null==(t=e.wizardKey)?"":t)+'">\n          '+(null==(t=e.components)?"":t)+'\n        </div>\n      </div>\n      <div class="ui grid" style="margin-top: 10px;">\n        <div class="four wide column"></div>\n        <div class="twelve wide column">\n          '+(null==(t=e.wizardNav)?"":t)+"\n        </div>\n      </div>\n    ":n+=" \n      "+(null==(t=e.wizardHeader)?"":t)+'\n      <div class="wizard-page" ref="'+(null==(t=e.wizardKey)?"":t)+'">\n        '+(null==(t=e.components)?"":t)+"\n      </div>\n      "+(null==(t=e.wizardNav)?"":t)+"\n    ",n+=" \n  </div>\n</div>"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(826);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<nav aria-label="navigation" id="'+(null==(r=n.wizardKey)?"":r)+'-header" ref="'+(null==(r=n.wizardKey)?"":r)+'-header">\n  <div class="ui steps">\n    ',n.panels.forEach(function(e,t){o+='\n    <a class="'+(null==(r=n.currentPage===t?" active":"")?"":r)+' step" ref="'+(null==(r=n.wizardKey)?"":r)+'-link">\n      <div class="content">\n        <div class="title">\n        '+(null==(r=e.title)?"":r)+"\n        ",e.tooltip&&n.currentPage===t&&(o+='\n        <span data-tooltip="'+(null==(r=n.wizardPageTooltip)?"":r)+'" data-position="right center">\n        <i class="'+(null==(r=n.iconClass("question-sign"))?"":r)+'"></i>\n        </span>\n        '),o+="\n        </div>\n      </div>\n    </a>\n    "}),o+="\n  </div>\n</nav>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(828);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<nav aria-label="navigation" id="'+(null==(r=n.wizardKey)?"":r)+'-header">\n  <div class=" ui stackable grid" style="border-bottom:0;">\n    ',n.panels.forEach(function(e,t){o+='\n      <div class="classic-pagination-page four wide computer eight wide tablet sixteen wide mobile column\n          '+(null==(r=n.currentPage<t?" disabled":"")?"":r)+"\n          "+(null==(r=n.currentPage===t?" active":"")?"":r)+"\n          "+(null==(r=n.currentPage>t?" complete":"")?"":r)+'" style="padding: 0;">\n        <div class="ui center aligned header classic-pagination-title">'+(null==(r=n.t(e.title,{_userInput:!0}))?"":r)+"</div>\n        ",1<n.panels.length&&(o+='\n          <div class="classic-pagination-progress" style="border-radius: 0;"><div class="classic-pagination-progress-bar"></div></div>\n        '),o+=' \n        <span ref="'+(null==(r=n.wizardKey)?"":r)+'-link" class="classic-pagination-dot" style="top: 45px;"></span>\n      </div>\n    '}),o+="\n  </div>\n</nav>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(830);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var r,o="";Array.prototype.join;return o+='<nav aria-label="navigation" id="'+(null==(r=n.wizardKey)?"":r)+'-header">\n  <ul class="ui vertical fluid tabular menu">\n    ',n.panels.forEach(function(e,t){o+='\n    <li class=" item page-item'+(null==(r=n.currentPage===t?" active":"")?"":r)+'" style="cursor: pointer;">\n      <span class="page-link" ref="'+(null==(r=n.wizardKey)?"":r)+'-link" style="margin-left: 0px;">\n        '+(null==(r=n.t(e.title,{_userInput:!0}))?"":r)+"\n        ",e.tooltip&&n.currentPage===t&&(o+='\n        <i ref="'+(null==(r=n.wizardKey)?"":r)+'-tooltip" class="'+(null==(r=n.iconClass("question-sign"))?"":r)+' text-muted" data-tooltip="'+(null==(r=e.tooltip)?"":r)+'"></i>\n        '),o+="\n      </span>\n    </li>\n    "}),o+="\n  </ul>\n</nav>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(832);t.default={form:n.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 horizontal list" id="'+(null==(t=e.wizardKey)?"":t)+'-nav">\n  ',e.buttons.cancel&&(n+='\n  <div class="item">\n    <button class="ui button secondary btn-wizard-nav-cancel" ref="'+(null==(t=e.wizardKey)?"":t)+'-cancel">'+(null==(t=e.t("cancel"))?"":t)+"</button>\n  </div>\n  "),n+="\n  ",e.buttons.previous&&(n+='\n  <div class="item">\n    <button class="ui button primary btn-wizard-nav-previous" ref="'+(null==(t=e.wizardKey)?"":t)+'-previous">'+(null==(t=e.t("previous"))?"":t)+"</button>\n  </div>\n  "),n+="\n  ",e.buttons.next&&(n+='\n  <div class="item">\n    <button class="ui button primary btn-wizard-nav-next" ref="'+(null==(t=e.wizardKey)?"":t)+'-next">'+(null==(t=e.t("next"))?"":t)+"</button>\n  </div>\n  "),n+="\n  ",e.buttons.submit&&(n+='\n  <div class="item">\n    <button class="ui button primary btn-wizard-nav-submit" ref="'+(null==(t=e.wizardKey)?"":t)+'-submit">'+(null==(t=e.t("submit"))?"":t)+"</button>\n  </div>\n  "),n+="\n</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(834);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,r="";Array.prototype.join;for(n in r+="<div\n  ",e.attrs)r=(r+="\n    ")+("class"===n?"\n      "+(null==(t=n)?"":t)+'="ui message '+(null==(t=e.attrs[n])?"":t)+'"\n    ':"\n      "+(null==(t=n)?"":t)+'="'+(null==(t=e.attrs[n])?"":t)+'"\n    ')+"\n  ";return r+="\n>"+(null==(t=e.message)?"":t)+"</div>\n"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(836);t.default={form:n.default}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var n,r="";Array.prototype.join;return r+="<p>"+(null==(n=t.t("error"))?"":n)+"</p>\n<ul>\n  ",t.errors.forEach(function(e){r+='\n    <li\n      data-component-key = "'+(null==(n=e.keyOrPath)?"":n)+'"\n      aria-label = "'+(null==(n=e.message)?"":n)+". "+(null==(n=t.t("errorsListNavigationMessage"))?"":n)+'"\n      ref = "errorRef"\n      tabIndex = "0",\n      style = "cursor:pointer;"\n    ><span>'+(null==(n=e.message)?"":n)+"</span></li>\n  "}),r+="\n</ul>\n\n"}},function(e,t,n){var r=n(21),o=n(12),i=n(17),a=n(47),l=n(192).trim,n=n(193),s=r.parseInt,r=r.Symbol,u=r&&r.iterator,c=/^[+-]?0x/i,f=i(c.exec),r=8!==s(n+"08")||22!==s(n+"0x16")||u&&!o(function(){s(Object(u))});e.exports=r?function(e,t){e=l(a(e));return s(e,t>>>0||(f(c,e)?16:10))}:s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(r=n(74))&&r.__esModule?r:{default:r},o=n(19);n=[{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,o.getContextComponents)(e)}}},{type:"textfield",input:!0,label:"Has the value:",key:"conditional.eq"}]},r.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=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n=(n=n(74))&&n.__esModule?n:{default:n};n=[{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,logic:[{name:"disabled",trigger:{type:"javascript",javascript:"result = !instance.root.options.sac;"},actions:[{name:"disabled",type:"property",property:{label:"Disabled",value:"disabled",type:"boolean"},state:!0}]},{name:"disabledToolTip",trigger:{type:"javascript",javascript:"result = !instance.root.options.sac;"},actions:[{name:"addDisabledTooltip",type:"property",property:{label:"Tooltip",value:"tooltip",type:"string"},text:"Encryption is not available with your current plan. Please contact sales@form.io."}]}]},{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(n){var r=[];return r.push({label:"Any Change",value:"data"}),n.utils.eachComponent(n.instance.options.editForm.components,function(e,t){e.key!==n.data.key&&r.push({label:e.label||e.key,value:t})}),r}},conditional:{json:{"!":[{var:"data.dataSrc"}]}}},{weight:700,type:"checkbox",label:"Clear Value When Hidden",key:"clearOnHide",defaultValue:!0,tooltip:"When a field is hidden, clear the value.",input:!0,clearOnHide:!1,calculateValue:"value = data.hidden ? false : value",conditional:{json:{"!":[{var:"data.hidden"}]}}},n.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>'),n.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=n},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.",required:!0}},{weight:100,type:"tags",input:!0,label:"Field Tags",storeas:"array",tooltip:"Tag the field for use in custom logic.",key:"tags"},{weight:200,type:"datamap",label:"Custom Properties",tooltip:"This allows you to configure any custom properties for this component.",key:"properties",valueComponent:{type:"textfield",key:"value",label:"Value",placeholder:"Value",input:!0}}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(169);t.default=[{weight:0,type:"textfield",input:!0,key:"label",label:"Label",placeholder:"Field Label",tooltip:"The label for this field that will appear next to it.",validate:{required:!0}},{type:"select",input:!0,key:"labelPosition",label:"Label Position",tooltip:"Position for the label for this field.",weight:20,defaultValue:"top",dataSrc:"values",data:{values:[{label:"Top",value:"top"},{label:"Left (Left-aligned)",value:"left-left"},{label:"Left (Right-aligned)",value:"left-right"},{label:"Right (Left-aligned)",value:"right-left"},{label:"Right (Right-aligned)",value:"right-right"},{label:"Bottom",value:"bottom"}]}},{type:"number",input:!0,key:"labelWidth",label:"Label Width",tooltip:"The width of label on line in percentages.",clearOnHide:!1,weight:30,placeholder:"30",suffix:"%",validate:{min:0,max:100},conditional:{json:{and:[{"!==":[{var:"data.labelPosition"},"top"]},{"!==":[{var:"data.labelPosition"},"bottom"]}]}}},{type:"number",input:!0,key:"labelMargin",label:"Label Margin",tooltip:"The width of label margin on line in percentages.",clearOnHide:!1,weight:30,placeholder:"3",suffix:"%",validate:{min:0,max:100},conditional:{json:{and:[{"!==":[{var:"data.labelPosition"},"top"]},{"!==":[{var:"data.labelPosition"},"bottom"]}]}}},{weight:100,type:"textfield",input:!0,key:"placeholder",label:"Placeholder",placeholder:"Placeholder",tooltip:"The placeholder text that will appear when this field is empty."},{weight:200,type:"textarea",input:!0,key:"description",label:"Description",placeholder:"Description for this field.",tooltip:"The description is text that will appear below the input field.",editor:"ace",as:"html",wysiwyg:{minLines:3,isUseWorkerDisabled:!0}},{weight:300,type:"textarea",input:!0,key:"tooltip",label:"Tooltip",placeholder:"To add a tooltip to this field, enter text here.",tooltip:"Adds a tooltip to the side of this field.",editor:"ace",as:"html",wysiwyg:{minLines:3,isUseWorkerDisabled:!0}},{weight:500,type:"textfield",input:!0,key:"customClass",label:"Custom CSS Class",placeholder:"Custom CSS Class",tooltip:"Custom CSS class to add to this component."},{weight:600,type:"textfield",input:!0,key:"tabindex",label:"Tab Index",placeholder:"0",tooltip:"Sets the tabindex attribute of this component to override the tab order of the form. See the <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex'>MDN documentation</a> on tabindex for more information."},{weight:1100,type:"checkbox",label:"Hidden",tooltip:"A hidden field is still a part of the form, but is hidden from view.",key:"hidden",input:!0},{weight:1200,type:"checkbox",label:"Hide Label",tooltip:"Hide the label (title, if no label) of this component. This allows you to show the label in the form builder, but not when it is rendered.",key:"hideLabel",input:!0},{weight:1350,type:"checkbox",label:"Initial Focus",tooltip:"Make this field the initially focused element on this form.",key:"autofocus",input:!0},{weight:1370,type:"checkbox",label:"Show Label in DataGrid",tooltip:"Show the label when in a Datagrid.",key:"dataGridLabel",input:!0,customConditional:function(e){return null==(e=e.instance.options)||null==(e=e.flags)?void 0:e.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,n(67);var r=(r=n(74))&&r.__esModule?r:{default:r},o=n(19);n=[{weight:0,input:!0,label:"Advanced Logic",key:"logic",templates:{header:'<div class="row"> \n  <div class="col-sm-6">\n    <strong>{{ value.length }} {{ ctx.t("Advanced Logic Configured") }}</strong>\n  </div>\n</div>',row:'<div class="row"> \n  <div class="col-sm-6">\n    <div>{{ row.name }} </div>\n  </div>\n  <div class="col-sm-2"> \n    <div class="btn-group pull-right"> \n      <button class="btn btn-default editRow">{{ ctx.t("Edit") }}</button> \n      <button class="btn btn-danger removeRow">{{ ctx.t("Delete") }}</button> \n    </div> \n  </div> \n</div>',footer:""},type:"editgrid",addAnother:"Add Logic",saveRow:"Save Logic",components:[{weight:0,input:!0,inputType:"text",label:"Logic Name",key:"name",validate:{required:!0},type:"textfield"},{weight:10,key:"triggerPanel",input:!1,title:"Trigger",tableView:!1,components:[{weight:0,input:!0,tableView:!1,components:[{weight:0,input:!0,label:"Type",key:"type",tableView:!1,data:{values:[{value:"simple",label:"Simple"},{value:"javascript",label:"Javascript"},{value:"json",label:"JSON Logic"},{value:"event",label:"Event"}]},dataSrc:"values",template:"<span>{{ item.label }}</span>",type:"select"},{weight:10,label:"",key:"simple",type:"container",tableView:!1,customConditional:function(e){return"simple"===e.row.type},components:[{input:!0,key:"show",label:"Show",type:"hidden",tableView:!1,calculateValue:function(){return!0}},{type:"select",input:!0,label:"When the form component:",key:"when",dataSrc:"custom",valueProperty:"value",tableView:!1,data:{custom:function(e){return(0,o.getContextComponents)(e)}}},{type:"textfield",input:!0,label:"Has the value:",key:"eq",tableView:!1}]},{weight:10,type:"textarea",key:"javascript",rows:5,editor:"ace",as:"javascript",input:!0,tableView:!1,placeholder:"result = (data['mykey'] > 1);",description:'"row", "data", and "component" variables are available. Return "result".',customConditional:function(e){return"javascript"===e.row.type}},{weight:10,type:"textarea",key:"json",rows:5,editor:"ace",label:"JSON Logic",as:"json",input:!0,tableView:!1,placeholder:"{ ... }",description:'"row", "data", "component" and "_" variables are available. Return the result to be passed to the action if truthy.',customConditional:function(e){return"json"===e.row.type}},{weight:10,type:"textfield",key:"event",label:"Event Name",placeholder:"event",description:"The event that will trigger this logic. You can trigger events externally or via a button.",tableView:!1,customConditional:function(e){return"event"===e.row.type}}],key:"trigger",type:"container"}],type:"panel"},{weight:20,input:!0,label:"Actions",key:"actions",tableView:!1,templates:{header:'<div class="row"> \n  <div class="col-sm-6"><strong>{{ value.length }} {{ ctx.t("actions") }}</strong></div>\n</div>',row:'<div class="row"> \n  <div class="col-sm-6">\n    <div>{{ row.name }} </div>\n  </div>\n  <div class="col-sm-2"> \n    <div class="btn-group pull-right"> \n      <button class="btn btn-default editRow">{{ ctx.t("Edit") }}</button> \n      <button class="btn btn-danger removeRow">{{ ctx.t("Delete") }}</button> \n    </div> \n  </div> \n</div>',footer:""},type:"editgrid",addAnother:"Add Action",saveRow:"Save Action",components:[{weight:0,title:"Action",input:!1,key:"actionPanel",type:"panel",components:[{weight:0,input:!0,inputType:"text",label:"Action Name",key:"name",validate:{required:!0},type:"textfield"},{weight:10,input:!0,label:"Type",key:"type",data:{values:[{value:"property",label:"Property"},{value:"value",label:"Value"},{label:"Merge Component Schema",value:"mergeComponentSchema"},{label:"Custom Action",value:"customAction"}]},dataSrc:"values",template:"<span>{{ item.label }}</span>",type:"select"},{weight:20,type:"select",template:"<span>{{ item.label }}</span>",dataSrc:"json",tableView:!1,data:{json:[{label:"Hidden",value:"hidden",type:"boolean"},{label:"Required",value:"validate.required",type:"boolean"},{label:"Disabled",value:"disabled",type:"boolean"},{label:"Label",value:"label",type:"string"},{label:"Title",value:"title",type:"string"},{label:"Prefix",value:"prefix",type:"string"},{label:"Suffix",value:"suffix",type:"string"},{label:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"Input Mask",value:"inputMask",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"}]},key:"property",label:"Component Property",input:!0,customConditional:function(e){return"property"===e.row.type}},{weight:30,input:!0,label:"Set State",key:"state",tableView:!1,data:{values:[{label:"True",value:"true"},{label:"False",value:"false"}]},dataSrc:"values",template:"<span>{{ item.label }}</span>",type:"select",customConditional:function(e){e=e.row;return"property"===e.type&&e.hasOwnProperty("property")&&"boolean"===e.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){e=e.row;return"property"===e.type&&e.hasOwnProperty("property")&&"string"===e.property.type&&!e.property.component}},{weight:20,input:!0,label:"Value (Javascript)",key:"value",editor:"ace",as:"javascript",rows:5,placeholder:"value = data.myfield;",type:"textarea",tableView:!1,description:'"row", "data", "component", and "result" variables are available. Return the value.',customConditional:function(e){return"value"===e.row.type}},{weight:20,input:!0,label:"Schema Defenition",key:"schemaDefinition",editor:"ace",as:"javascript",rows:5,placeholder:"schema = { label: 'Updated' };",type:"textarea",tableView:!1,description:'"row", "data", "component", and "result" variables are available. Return the schema.',customConditional:function(e){return"mergeComponentSchema"===e.row.type}},Object.assign(r.default.logicVariablesTable("<tr><th>input</th><td>The value that was input into this component</td></tr>"),{customConditional:function(e){return"customAction"===e.row.type}}),{weight:20,input:!0,label:"Custom Action (Javascript)",key:"customAction",editor:"ace",rows:5,placeholder:"value = data.myfield;",type:"textarea",tableView:!1,customConditional:function(e){return"customAction"===e.row.type}}]}]}]}];t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(74)),o=i(n(96));function i(e){return e&&e.__esModule?e:{default:e}}n=[{weight:10,type:"checkbox",label:"Required",tooltip:"A required field must be filled in before the form can be submitted.",key:"validate.required",input:!0},{weight:100,type:"checkbox",label:"Unique",tooltip:"Makes sure the data submitted for this field is unique, and has not been submitted before.",key:"unique",input:!0},{weight:0,type:"select",key:"validateOn",defaultValue:"change",input:!0,label:"Validate On",tooltip:"Determines when this component should trigger front-end validation.",dataSrc:"values",data:{values:[{label:"Change",value:"change"},{label:"Blur",value:"blur"}]}},{weight:190,type:"textfield",input:!0,key:"errorLabel",label:"Error Label",placeholder:"Error Label",tooltip:"The label for this field when an error occurs."},{weight:200,key:"validate.customMessage",label:"Custom Error Message",placeholder:"Custom Error Message",type:"textfield",tooltip:"Error message displayed if any error occurred.",input:!0},{type:"panel",title:"Custom Validation",collapsible:!0,collapsed:!0,style:{"margin-bottom":"10px"},key:"custom-validation-js",weight:300,customConditional:function(){return!o.default.noeval||o.default.protectedEval},components:[r.default.logicVariablesTable("<tr><th>input</th><td>The value that was input into this component</td></tr>"),{type:"textarea",key:"validate.custom",rows:5,editor:"ace",hideLabel:!0,as:"javascript",input:!0},{type:"htmlelement",tag:"div",content:"\n          <small>\n            <p>Enter custom validation code.</p>\n            <p>You must assign the <strong>valid</strong> variable as either <strong>true</strong> or an error message if validation fails.</p>\n            <h5>Example:</h5>\n            <pre>valid = (input === 'Joe') ? true : 'Your name must be \"Joe\"';</pre>\n          </small>"},{type:"well",components:[{weight:100,type:"checkbox",label:"Secret Validation",tooltip:"Check this if you wish to perform the validation ONLY on the server side. This keeps your validation logic private and secret.",description:"Check this if you wish to perform the validation ONLY on the server side. This keeps your validation logic private and secret.",key:"validate.customPrivate",input:!0}]}]},{type:"panel",title:"JSONLogic Validation",collapsible:!0,collapsed:!0,key:"json-validation-json",weight:400,components:[{type:"htmlelement",tag:"div",content:'<p>Execute custom logic using <a href="http://jsonlogic.com/" target="_blank">JSONLogic</a>.</p><h5>Example:</h5><pre>'+JSON.stringify({if:[{"===":[{var:"input"},"Bob"]},!0,"Your name must be 'Bob'!"]},null,2)+"</pre>"},{type:"textarea",key:"validate.json",hideLabel:!0,rows:5,editor:"ace",as:"json",input:!0}]},{type:"panel",title:"Custom Errors",collapsible:!0,collapsed:!0,key:"errors",weight:400,components:[{type:"textarea",key:"errors",hideLabel:!0,rows:5,editor:"ace",as:"json",input:!0},{type:"htmlelement",tag:"div",content:'\n          <p>This allows you to set different custom error messages for different errors\n          (in contrast to “Custom Error Message”, which only allows you to set one\n          error message for all errors). E.g.</p>\n\n<pre>{\n  "required": "{<span/>{ field }} is required. Try again.",\n  "maxLength": "{<span/>{ field }} is too long. Try again."\n}</pre>\n\n          <p>You can set the following keys (among others):</p>\n          <ul>\n            <li>r<span/>equired</li>\n            <li>m<span/>in</li>\n            <li>m<span/>ax</li>\n            <li>m<span/>inLength</li>\n            <li>m<span/>axLength</li>\n            <li>m<span/>inWords</li>\n            <li>m<span/>axWords</li>\n            <li>i<span/>nvalid_email</li>\n            <li>i<span/>nvalid_date</li>\n            <li>i<span/>nvalid_day</li>\n            <li>i<span/>nvalid_regex</li>\n            <li>m<span/>ask</li>\n            <li>p<span/>attern</li>\n            <li>c<span/>ustom</li>\n          </ul>\n\n          <p>Depending on the error message some of the following template variables can be used in the script:</p>\n          <ul>\n           <li><code>{<span/>{ f<span/>ield }}</code> is replaced with the label of the field.</li>\n           <li><code>{<span/>{ m<span/>in }}</code></li>\n           <li><code>{<span/>{ m<span/>ax }}</code></li>\n           <li><code>{<span/>{ l<span/>ength }}</code></li>\n           <li><code>{<span/>{ p<span/>attern }}</code></li>\n           <li><code>{<span/>{ m<span/>inDate }}</code></li>\n           <li><code>{<span/>{ m<span/>axDate }}</code></li>\n           <li><code>{<span/>{ m<span/>inYear }}</code></li>\n           <li><code>{<span/>{ m<span/>axYear }}</code></li>\n           <li><code>{<span/>{ r<span/>egex }}</code></li>\n          </ul>\n        '}]}];t.default=n},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";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)}n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(40),n(68),n(16),n(26),n(60),n(25),n(152),n(0),n(39),n(18),n(23),n(1),n(43),n(20),n(9);var u=l(n(10)),c=l(n(24)),r=l(n(61)),i=l(n(83)),a=n(19);function l(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)}}function f(){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=h(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=h(n),t=(e=r?(e=h(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e);var n,r=p(o);function o(e,t,n){if(this instanceof o)return(e=r.call(this,e,t,n)).filesUploading=[],e;throw new TypeError("Cannot call a class as a function")}return t=o,e=[{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:"button",label:"Submit",key:"submit",size:"md",leftIcon:"",rightIcon:"",block:!1,action:"submit",persistent:!1,disableOnInvalid:!1,theme:"primary",dataGridLabel:!0}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Button",group:"basic",icon:"stop",documentation:"/userguide/#button",weight:110,schema:o.schema()}}}],(n=[{key:"defaultSchema",get:function(){return o.schema()}},{key:"inputInfo",get:function(){var e=f(h(o.prototype),"elementInfo",this).call(this);return e.type="button",e.attr.type=["submit","saveState"].includes(this.component.action)?"submit":"button",this.component.theme=this.component.theme||"default",e.attr.class="btn btn-".concat(this.component.theme),this.component.size&&(e.attr.class+=" btn-".concat(this.component.size)),this.component.block&&(e.attr.class+=" btn-block"),this.component.customClass&&(e.attr.class+=" ".concat(this.component.customClass)),e.content=this.t(this.component.label,{_userInput:!0}),e}},{key:"labelInfo",get:function(){return{hidden:!0}}},{key:"loading",set:function(e){this.setLoading(this.refs.button,e)}},{key:"skipInEmail",get:function(){return!0}},{key:"createLabel",value:function(){}},{key:"createInput",value:function(e){return this.refs.button=f(h(o.prototype),"createInput",this).call(this,e),this.refs.button}},{key:"emptyValue",get:function(){return!1}},{key:"getValue",value:function(){return this.dataValue}},{key:"clicked",get:function(){return this.dataValue}},{key:"defaultValue",get:function(){return!1}},{key:"className",get:function(){var e=f(h(o.prototype),"className",this);return e+=" form-group"}},{key:"oauthConfig",get:function(){return u.default.has(this,"root.form.config.oauth")&&this.component.oauthProvider?this.root.form.config.oauth[this.component.oauthProvider]:this.component.oauth||!1}},{key:"render",value:function(){return(this.viewOnly||this.options.hideButtons)&&(this._visible=!1),f(h(o.prototype),"render",this).call(this,this.renderTemplate("button",{component:this.component,input:this.inputInfo}))}},{key:"attachButton",value:function(){var e,o=this,i=(this.addShortcut(this.refs.button),null),t=null;"submit"===this.component.action&&(this.on("submitButton",function(){o.disabled=!0},!0),this.on("cancelSubmit",function(){o.disabled=!1},!0),this.on("submitDone",function(e){e=u.default.isString(e)?e:o.t("complete");o.loading=!1,o.disabled=!1,o.addClass(o.refs.button,"btn-success submit-success"),o.removeClass(o.refs.button,"btn-danger submit-fail"),o.addClass(o.refs.buttonMessageContainer,"has-success"),o.removeClass(o.refs.buttonMessageContainer,"has-error"),o.setContent(o.refs.buttonMessage,e)},!0),this.on("submitError",function(e){e=u.default.isString(e)?o.t(e):o.t(o.errorMessage("submitError"));o.loading=!1,o.disabled=!1,o.hasError=!0,o.removeClass(o.refs.button,"btn-success submit-success"),o.addClass(o.refs.button,"btn-danger submit-fail"),o.removeClass(o.refs.buttonMessageContainer,"has-success"),o.addClass(o.refs.buttonMessageContainer,"has-error"),o.setContent(o.refs.buttonMessage,e)},!0),this.on("fileUploadingStart",function(e){o.filesUploading.push(e),o.disabled=!0,o.setDisabled(o.refs.button,o.disabled)},!0),this.on("fileUploadingEnd",function(e){e=o.filesUploading.indexOf(e);-1!==e&&o.filesUploading.splice(e,1),o.disabled=!!o.shouldDisabled,o.setDisabled(o.refs.button,o.disabled)},!0),i=function(e,t){o.removeClass(o.refs.button,"btn-success submit-success"),t&&(o.removeClass(o.refs.button,"btn-danger submit-fail"),o.hasError&&(o.hasError=!1,o.setContent(o.refs.buttonMessage,""),o.removeClass(o.refs.buttonMessageContainer,"has-success"),o.removeClass(o.refs.buttonMessageContainer,"has-error")))},t=function(){o.hasError=!0,o.removeClass(o.refs.button,"btn-success submit-success"),o.addClass(o.refs.button,"btn-danger submit-fail"),o.removeClass(o.refs.buttonMessageContainer,"has-success"),o.addClass(o.refs.buttonMessageContainer,"has-error"),o.setContent(o.refs.buttonMessage,o.t(o.errorMessage("submitError")))}),"url"===this.component.action&&(this.on("requestButton",function(){o.disabled=!0},!0),this.on("requestDone",function(){o.loading=!1,o.disabled=!1},!0)),this.on("change",function(e,t){var n=e.isValid,r=t&&t.silent;t&&t.noValidate&&(o.component.disableOnInvalid||o.hasError)&&(n=t.rootValidity||!o.root||o.root.checkValidity(o.root.data,null,null,!0),t.rootValidity=n),o.loading=!1,o.isDisabledOnInvalid=o.component.disableOnInvalid&&(r||!n),o.disabled=o.shouldDisabled,o.setDisabled(o.refs.button,o.disabled),i&&i(e,n)},!0),this.on("error",function(){o.loading=!1,o.disabled=!1,t&&t()},!0),this.component.saveOnEnter&&this.root.addEventListener(this.root.element,"keyup",function(e){13===e.keyCode&&o.onClick.call(o,e)}),this.addEventListener(this.refs.button,"click",this.onClick.bind(this)),this.addEventListener(this.refs.buttonMessageContainer,"click",function(){o.refs.buttonMessageContainer.classList.contains("has-error")&&o.root&&o.root.alert&&o.scrollIntoView(o.root.alert)}),this.disabled=this.shouldDisabled,this.setDisabled(this.refs.button,this.disabled),"oauth"===this.component.action&&this.oauthConfig&&!this.oauthConfig.error&&(e=(e="iss").replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),(e=(e=new RegExp("[\\?&]".concat(e,"=([^&#]*)")).exec(location.search))&&decodeURIComponent(e[1].replace(/\+/g," ")))&&0===this.oauthConfig.authURI.indexOf(e)&&this.openOauth(this.oauthConfig))}},{key:"shouldDisabled",get:function(){var e;return f(h(o.prototype),"shouldDisabled",this)||!(null==(e=this.filesUploading)||!e.length)||this.isDisabledOnInvalid}},{key:"attach",value:function(e){this.loadRefs(e,{button:"single",buttonMessageContainer:"single",buttonMessage:"single"});e=f(h(o.prototype),"attach",this).call(this,e);return this.attachButton(),e}},{key:"detach",value:function(e){e&&this.refs.button&&this.removeShortcut(this.refs.button),f(h(o.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={},r={};(0,a.eachComponent)(t.components,function(e,t){e=e.component||e;n[t]=e,r[e.key]=e},!0),this.evaluate(this.component.custom,{form:t,flattened:n,components:r}),this.triggerChange();break;case"url":this.loading=!0,this.emit("requestButton",{component:this.component,instance:this}),this.emit("requestUrl",{url:this.interpolate(this.component.url),headers:this.component.headers});break;case"reset":this.emit("resetForm");break;case"delete":this.emit("deleteSubmission");break;case"oauth":if(this.root===this)return void console.warn("You must add the OAuth button to a form for it to function properly");if(!this.oauthConfig){this.root.setAlert("danger","OAuth not configured. You must configure oauth for your project before it will work.");break}if(this.oauthConfig.error){this.root.setAlert("danger","The Following Error Has Occured ".concat(this.oauthConfig.error));break}this.openOauth(this.oauthConfig)}}},{key:"openOauth",value:function(o){var t,i,e,a,l,s=this;this.root.formio?(t={response_type:"code",client_id:o.clientId,redirect_uri:o.redirectURI||window.location.origin||"".concat(window.location.protocol,"//").concat(window.location.host),state:o.state,scope:o.scope},i=t.redirect_uri,o.display&&(t.display=o.display),t=Object.keys(t).map(function(e){return"".concat(e,"=").concat(encodeURIComponent(t[e]))}).join("&"),e=-1!==o.authURI.indexOf("?")?"&":"?",e="".concat(o.authURI).concat(e).concat(t),a=window.open(e,o.provider,"width=1020,height=618"),l=setInterval(function(){try{var e=a.location.host,t=window.location.host;if(a&&!a.closed&&e===t&&a.location.search){a.close();var n=a.location.search.substr(1).split("&").reduce(function(e,t){t=t.split("=");return e[t[0]]=t[1],e},{});if(n.error)return alert(n.error_description||n.error),void s.root.setAlert("danger",n.error_description||n.error);if(o.state!==n.state)return void s.root.setAlert("danger","OAuth state does not match. Please try logging in again.");var r;c.default.resolve();(u.default.has(s,"root.form.config.oauth")&&s.root.form.config.oauth[s.component.oauthProvider]?(n.provider=o.provider,n.redirectURI=i,n.triggeredBy=s.key,s.root.formio.makeRequest("oauth","".concat(s.root.formio.projectUrl,"/oauth2"),"POST",n)):((r={data:{},oauth:{}}).oauth[o.provider]=n,r.oauth[o.provider].redirectURI=i,r.oauth[o.provider].triggeredBy=s.key,s.root.formio.saveSubmission(r))).then(function(e){s.root.onSubmit(e,!0)}).catch(function(e){s.root.onSubmissionError(e)})}}catch(e){"SecurityError"!==e.name&&s.root.setAlert("danger",e.message||e)}a&&!a.closed&&void 0!==a.closed||clearInterval(l)},100)):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 t,n=this;this.root&&(this.root.everyComponent(function(e){"recaptcha"===e.component.type&&"buttonClick"===e.component.eventType&&e.component.buttonKey===n.component.key&&(t=e)}),t&&t.verify("".concat(this.component.key,"Click")))}}])&&s(t.prototype,n),e&&s(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(20),n(1),n(25),n(16),n(26),n(0),n(9);var i=(n=n(61))&&n.__esModule?n:{default:n};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 l(){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=c(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=c(n),t=(e=r?(e=c(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e);var n,r=u(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,e=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"checkbox",inputType:"checkbox",label:"Checkbox",key:"checkbox",dataGridLabel:!0,labelPosition:"right",value:"",name:""}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Checkbox",group:"basic",icon:"check-square",documentation:"/userguide/#checkbox",weight:50,schema:o.schema()}}}],(n=[{key:"defaultSchema",get:function(){return o.schema()}},{key:"defaultValue",get:function(){var e=this.component.name,t=l(c(o.prototype),"defaultValue",this);return e?this.component[e]||this.emptyValue:"true"===(t||this.component.defaultValue||!1).toString()}},{key:"labelClass",get:function(){var e="";return this.isInputComponent&&!this.options.inputsOnly&&this.component.validate&&this.component.validate.required&&(e+=" field-required"),"".concat(e)}},{key:"hasSetValue",get:function(){return this.hasValue()}},{key:"inputInfo",get:function(){var e=l(c(o.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||0,e.label=this.t(this.component.label,{_userInput:!0}),e.labelClass=this.labelClass,e}},{key:"labelInfo",get:function(){return{hidden:!0}}},{key:"render",value:function(){return l(c(o.prototype),"render",this).call(this,this.renderTemplate("checkbox",{input:this.inputInfo,checked:this.checked,tooltip:this.interpolate(this.t(this.component.tooltip)||"",{_userInput:!0}).replace(/(?:\r\n|\r|\n)/g,"<br />")}))}},{key:"attach",value:function(e){var t=this;return this.loadRefs(e,{input:"multiple"}),this.input=this.refs.input[0],this.refs.input&&(this.addEventListener(this.input,this.inputInfo.changeEvent,function(){return t.updateValue(null,{modified:!0})}),this.addShortcut(this.input)),l(c(o.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(e){e&&this.input&&this.removeShortcut(this.input),l(c(o.prototype),"detach",this).call(this)}},{key:"emptyValue",get:function(){return"radio"===this.component.inputType&&null}},{key:"isEmpty",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.dataValue;return l(c(o.prototype),"isEmpty",this).call(this,e)||!1===e}},{key:"key",get:function(){return this.component.name||l(c(o.prototype),"key",this)}},{key:"getValueAt",value:function(e){return this.component.name?this.refs.input[e].checked?this.component.value:"":!!this.refs.input[e].checked}},{key:"getValue",value:function(){var e=l(c(o.prototype),"getValue",this).call(this);return this.component.name?e?this.setCheckedState(e):this.setCheckedState(this.dataValue):""===e?this.dataValue:!!e}},{key:"checked",get:function(){return this.component.name?this.dataValue===this.component.value:!!this.dataValue}},{key:"setCheckedState",value:function(e){if(this.input)return this.component.name?(this.input.value=e===this.component.value?this.component.value:0,this.input.checked=e===this.component.value?1:0):"on"===e||"off"!==e&&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=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return!(void 0===this.setCheckedState(e)&&(this.input||void 0===e||!this.visible&&!this.conditionallyVisible()&&this.component.clearOnHide))&&(e=this.updateValue(e,t),this.isHtmlRenderMode()&&t&&t.fromSubmission&&e&&this.redraw(),e)}},{key:"getValueAsString",value:function(e){return e?"Yes":"No"}},{key:"updateValue",value:function(e,t){this.component.name&&t.modified&&this.dataValue===this.component.value&&(this.input.checked=0,this.input.value=0,this.dataValue="");e=l(c(o.prototype),"updateValue",this).call(this,e,t);return e&&this.input&&(this.input.checked?this.input.setAttribute("checked","true"):this.input.removeAttribute("checked")),e}}])&&a(t.prototype,n),e&&a(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(i.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),n(42),n(32),n(20),n(16),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(18),n(1),n(14),n(0),n(9);var a=r(n(10)),l=r(n(77));function r(e){return e&&e.__esModule?e:{default:e}}function s(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function 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 u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=p(n),t=(e=r?(e=p(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e);var n,r=d(i);function i(e,t,n){if(this instanceof i)return(e=r.call(this,e,t,n)).rows=[],e;throw new TypeError("Cannot call a class as a function")}return t=i,e=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l.default.schema.apply(l.default,[{label:"Columns",key:"columns",type:"columns",columns:[{components:[],width:6,offset:0,push:0,pull:0,size:"md"},{components:[],width:6,offset:0,push:0,pull:0,size:"md"}],clearOnHide:!1,input:!1,tableView:!1,persistent:!1,autoAdjust:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Columns",icon:"columns",group:"layout",documentation:"/userguide/#columns",weight:10,schema:i.schema()}}}],(n=[{key:"schema",get:function(){var e,r=this,o=a.default.omit(c(p(i.prototype),"schema",this),["components"]);return null!=(e=o.columns)&&e.map(function(e,n){e.components.map(function(e,t){e=a.default.clone(e),e.internal=!0,e=r.createComponent(e);delete e.component.internal,o.columns[n].components[t]=e.schema})}),o}},{key:"defaultSchema",get:function(){return i.schema()}},{key:"className",get:function(){return"row ".concat(c(p(i.prototype),"className",this))}},{key:"columnKey",get:function(){return"column-".concat(this.id)}},{key:"init",value:function(){var n=this;c(p(i.prototype),"init",this).call(this),this.columns=[],a.default.each(this.component.columns,function(e,t){n.columns[t]=[],e.size||(e.size="md"),e.currentWidth=e.width||0,Array.isArray(e.components)||(e.components=[]),a.default.each(e.components,function(e){e=n.createComponent(e);e.column=t,n.columns[t].push(e)})}),this.component.autoAdjust&&"pdf"!==this.options.display&&this.justify(),this.rows=this.groupByRow()}},{key:"labelIsHidden",value:function(){return!0}},{key:"render",value:function(){var t=this;return c(p(i.prototype),"render",this).call(this,this.renderTemplate("columns",{columnKey:this.columnKey,columnComponents:this.columns.map(function(e){return t.renderComponents(e)})}))}},{key:"justifyColumn",value:function(e,t){var n=a.default.every(e,function(e){return!e.visible}),t=this.component.columns[t],n=n&&e.length?0:t.width,e=!a.default.isEqual(n,t.currentWidth);return t.currentWidth=n,e}},{key:"justify",value:function(){var r=this;return this.columns.reduce(function(e,t,n){return r.justifyColumn(t,n)||e},!1)}},{key:"attach",value:function(e){var t,n,r=this,o=(this.loadRefs(e,(t={},o=this.columnKey,n="multiple",o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t)),c(p(i.prototype),"attach",this).call(this,e));return this.refs[this.columnKey]&&this.refs[this.columnKey].forEach(function(e,t){return r.attachComponents(e,r.columns[t],r.component.columns[t].components)}),o}},{key:"gridSize",get:function(){return 12}},{key:"groupByRow",value:function(){function r(e){return e.component.width}var o=this,e=a.default.reduce(this.components,function(e,t){var n=[].concat(s(e.stack),[t]);return a.default.sumBy(n,r)<=o.gridSize?e.stack=n:(e.rows=[].concat(s(e.rows),[e.stack]),e.stack=[t]),e},{stack:[],rows:[]});return a.default.concat(e.rows,[e.stack])}},{key:"checkData",value:function(e,t,n,r){e=c(p(i.prototype),"checkData",this).call(this,e,t,n,r);return this.component.autoAdjust&&"pdf"!==this.options.display&&this.justify()&&this.redraw(),e}},{key:"detach",value:function(e){c(p(i.prototype),"detach",this).call(this,e)}},{key:"destroy",value:function(){c(p(i.prototype),"destroy",this).call(this),this.columns=[]}}])&&u(t.prototype,n),e&&u(t,e),Object.defineProperty(t,"prototype",{writable:!1}),i}(l.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(1),n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(9);var i=r(n(53)),a=r(n(10)),l=r(n(24));function r(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)}}function u(){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)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=d(n),t=(e=r?(e=d(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e);var n,r=f(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,e=[{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:"Content",type:"content",key:"content",input:!1,html:""}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Content",group:"layout",icon:"html5",preview:!1,documentation:"/userguide/#content-component",weight:5,schema:o.schema()}}}],(n=[{key:"defaultSchema",get:function(){return o.schema()}},{key:"content",get:function(){if(this.builderMode)return this.component.html;var e=a.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:"render",value:function(){return u(d(o.prototype),"render",this).call(this,this.renderTemplate("html",{tag:"div",attrs:[],content:this.content}))}},{key:"dataReady",get:function(){var e;return(null==(e=this.root)?void 0:e.submissionReady)||l.default.resolve()}},{key:"attach",value:function(e){var t=this;return this.loadRefs(e,{html:"single"}),this.dataReady.then(function(){t.refs.html&&t.setContent(t.refs.html,t.content)}),this.component.refreshOnChange&&this.on("change",function(){t.refs.html&&t.setContent(t.refs.html,t.content)},!0),u(d(o.prototype),"attach",this).call(this,e)}},{key:"emptyValue",get:function(){return""}}])&&s(t.prototype,n),e&&s(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(i.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(1),n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),n(32),n(20),n(42),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(40),n(45),n(16),n(26),n(43),n(0),n(39),n(131),n(76),n(9);var i=n(306),a=n(130),c=r(n(10)),l=n(19),s=r(n(307));function r(e){return e&&e.__esModule?e:{default:e}}function f(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||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 d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(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 u(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name: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){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=b(n),t=(e=r?(e=b(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=u;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e);var n,r=v(u);function u(e,t,n){if(this instanceof u)return e&&!e.hasOwnProperty("delimiter")&&(e.delimiter=!0),r.call(this,e,t,n);throw new TypeError("Cannot call a class as a function")}return t=u,e=[{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:"/userguide/#currency",weight:70,schema:u.schema()}}}],(n=[{key:"createNumberMask",value:function(){var e=c.default.get(this.component,"decimalLimit",2),t=(0,l.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,i.createNumberMask)({prefix:this.currencyPrefix,suffix:this.currencySuffix,thousandsSeparatorSymbol:c.default.get(this.component,"thousandsSeparator",this.delimiter),decimalSymbol:c.default.get(this.component,"decimalSymbol",this.decimalSeparator),decimalLimit:e,allowNegative:c.default.get(this.component,"allowNegative",!0),allowDecimal:this.isDecimalAllowed()})}},{key:"isDecimalAllowed",value:function(){return c.default.get(this.component,"allowDecimal",!0)}},{key:"setInputMask",value:function(t){var e=(0,l.getCurrencyAffixes)({currency:this.component.currency,decimalSeparator:this.decimalSeparator,lang:this.options.language}),e="".concat(e.prefix,"[0-9"),e=(e+=this.decimalSeparator||"")+(this.delimiter||"");t.setAttribute("pattern",e+="]*"),t.mask=(0,a.maskInput)({inputElement:t,mask:this.numberMask||"",pipe:function(e){return"$0._"===e&&setTimeout(function(){var e=t.value.length-1;t.setSelectionRange(e,e)}),e},shadowRoot:this.root?this.root.shadowRoot:null})}},{key:"defaultSchema",get:function(){return u.schema()}},{key:"parseNumber",value:function(e){return m(b(u.prototype),"parseNumber",this).call(this,this.stripPrefixSuffix(e))}},{key:"parseValue",value:function(e){return m(b(u.prototype),"parseValue",this).call(this,this.stripPrefixSuffix(e))}},{key:"addZerosAndFormatValue",value:function(e){if(e||0===e){var t,n=c.default.get(this.component,"decimalLimit",2),r="",o=[],i=!!this.currencyPrefix&&e.includes(this.currencyPrefix),a=!!this.currencySuffix&&e.includes(this.currencySuffix),l=e.includes("-")||!1;if((e=this.stripPrefixSuffix(l?e.replace("-",""):e)).includes(this.decimalSeparator)?(t=(s=d(e.split(this.decimalSeparator),2))[0],o=f((r=s[1]).split(""))):t=e,r.length<n)for(;o.length<n;)o.push("0");var s="".concat(l?"-":"").concat(i?this.currencyPrefix:"").concat(t).concat(this.decimalSeparator).concat(o.join("")).concat(a?this.currencySuffix:"");return m(b(u.prototype),"formatValue",this).call(this,s)}}},{key:"getValueAsString",value:function(e,t){t=m(b(u.prototype),"getValueAsString",this).call(this,e,t);return e||"0"==e?this.addZerosAndFormatValue(t):t}},{key:"formatValue",value:function(e){return e||"0"===e?this.addZerosAndFormatValue(e):m(b(u.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;m(b(u.prototype),"addFocusBlurEvents",this).call(this,e),this.addEventListener(e,"focus",function(){e.defaultValue===e.value&&e.setSelectionRange(0,e.defaultValue.length)}),this.addEventListener(e,"blur",function(){e.value=t.getValueAsString(t.addZerosAndFormatValue(t.parseValue(e.value)))})}}])&&h(t.prototype,n),e&&h(t,e),Object.defineProperty(t,"prototype",{writable:!1}),u}(s.default);t.default=n},function(e,t,n){n(15)({target:"String",proto:!0},{repeat:n(198)})},function(e,t,n){"use strict";n(13),n(11),n(8),n(70),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(18),n(23),n(50),n(1),n(67),n(0),n(14),n(20),n(68),n(9);var i=o(n(53)),r=o(n(308)),l=o(n(10)),s=o(n(197)),u=n(19);function o(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 c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n,r){return(f="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,e=y(e,t);if(e){if((o=Object.getOwnPropertyDescriptor(e,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 d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=v(n),t=(e=r?(e=v(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function m(){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=y(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function y(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e);var n,r=h(o);function o(e,t,n){if(this instanceof o)return(e=r.call(this,e,t,n)).type="datamap",e;throw new TypeError("Cannot call a class as a function")}return t=o,e=[{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 Map",key:"dataMap",type:"datamap",clearOnHide:!0,addAnother:"Add Another",disableAddingRemovingRows:!1,keyBeforeValue:!0,valueComponent:{type:"textfield",key:"value",label:"Value",input:!0},input:!0,validate:{maxLength:0,minLength:0}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Data Map",icon:"th-list",group:"data",documentation:"/userguide/#datamap",weight:20,schema:o.schema()}}}],(n=[{key:"schema",get:function(){var e=m(v(o.prototype),"schema",this);return this.components&&0<this.components.length&&(e.valueComponent=this.components[this.components.length-1].schema),l.default.omit(e,"components")}},{key:"init",value:function(){this.components=[],this.rows=[],this.createRows(),this.visibleColumns=d({key:!0},this.valueKey,!0),this.component.valueComponent.hideLabel=!0}},{key:"defaultSchema",get:function(){return o.schema()}},{key:"emptyValue",get:function(){return{}}},{key:"dataValue",get:function(){return!this.key||!this.visible&&this.component.clearOnHide?this.emptyValue:(!this.hasValue()&&this.shouldAddDefaultValue&&(this.dataValue=this.emptyValue),l.default.get(this.data,this.key))},set:function(e){var t=v(o.prototype),n=!0;if(!f(t,"dataValue",e,this||t)&&n)throw new Error("failed to set property")}},{key:"defaultValue",get:function(){var e=m(v(o.prototype),"defaultValue",this);return Array.isArray(e)?e[0]:this.emptyValue}},{key:"keySchema",get:function(){return{type:"textfield",input:!0,hideLabel:!0,label:this.component.keyLabel||"Key",key:"__key",disableBuilderActions:!0}}},{key:"valueKey",get:function(){return this.component.valueComponent.key}},{key:"getRowValues",value:function(){var e=this.dataValue;return this.builderMode?[e]:l.default.isEmpty(e)?[]:Object.keys(e).map(function(){return e})}},{key:"getComponentsContainer",value:function(){return this.builderMode?this.getComponents().map(function(e){return e.component}):m(v(o.prototype),"getComponentsContainer",this).call(this)}},{key:"iteratableRows",get:function(){return this.rows.map(function(t){return Object.keys(t).map(function(e){return{components:t[e],data:t[e].dataValue}})})}},{key:"componentContext",value:function(t){return this.iteratableRows[t.row].find(function(e){return e.components.key===t.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,u.uniqueKey)(this.dataValue,this.defaultRowKey)),t[e]}},{key:"defaultRowKey",get:function(){return"key"}},{key:"setRowComponentsData",value:function(t,n){l.default.each(this.rows[t],function(e){"__key"===e.key?e.data={__key:Object.keys(n)[t]}:e.data=n})}},{key:"getValueAsString",value:function(n,r){var o=this;return null!=r&&r.email&&this.visible&&!this.skipInEmail&&l.default.isObject(n)?Object.keys(n).reduce(function(e,t){return e+='\n          <tr>\n            <th style="padding: 5px 10px;">'.concat(t,'</th>\n            <td style="width:100%;padding:5px 10px;">').concat(o.getView(n[t],r),"</td>\n          </tr>\n        ")},'\n        <table border="1" style="width:100%">\n          <tbody>\n      ')+"\n          </tbody>\n        </table>\n      ":l.default.isEmpty(n)?"":null!=r&&r.modalPreview?(delete r.modalPreview,this.getDataValueAsTable(n,r)):"object"===a(n)?"[Complex Data]":n}},{key:"getDataValueAsTable",value:function(t,n){var r=this,o='\n      <table border="1" style="width:100%">\n        <tbody>\n    ';return this.visible&&l.default.isObject(t)&&Object.keys(t).forEach(function(e){o+='\n          <tr>\n            <th style="padding: 5px 10px;">'.concat(e,'</th>\n            <td style="width:100%;padding:5px 10px;">').concat(r.getView(t[e],n),"</td>\n          </tr>\n        ")}),o+="\n        </tbody>\n      </table>\n    "}},{key:"createRowComponents",value:function(e,t){var n=this,r=this.builderMode?this.valueKey:this.getRowKey(t),o=l.default.clone(this.options),i=(o.events=new s.default,o.name+="[".concat(t,"]"),o.row="".concat(t),{}),t=(i.__key=this.createComponent(this.keySchema,o,{__key:this.builderMode?this.defaultRowKey:r}),i.__key.on("componentChange",function(e){var t=n.dataValue,e=(0,u.uniqueKey)(t,e.value),t=(t[e]=t[r],delete t[r],i[n.valueKey]);t.component.key=e,t.path=n.calculateComponentPath(t),r=e}),l.default.clone(this.component.valueComponent)),a=(t.key=r,this.options);return a.row=o.row,i[this.valueKey]=this.createComponent(t,a,this.dataValue),i}},{key:"canAddColumn",get:function(){return!1}},{key:"addChildComponent",value:function(e){this.component.valueComponent=e}},{key:"saveChildComponent",value:function(e){e.key!==this.keySchema.key&&(this.component.valueComponent=e)}},{key:"removeChildComponent",value:function(){var e=o.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=1<arguments.length&&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}}}])&&c(t.prototype,n),e&&c(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(23),n(2),n(22),n(31),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(16),n(26),n(1),n(25),n(14),n(0),n(9);var a=i(n(10)),r=i(n(64)),l=i(n(83)),s=i(n(218));function i(e){return e&&e.__esModule?e:{default:e}}function u(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function c(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?u(Object(o),!0).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):u(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=m(n),t=(e=r?(e=m(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e);var n,o=h(i);function i(e,t,n){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");var t=(e=o.call(this,e,t,n)).component.timezone||e.options.timezone,n=!a.default.get(e.component,"timePicker.showMeridian",!0),r=(e.component.enableDate||(e.component.format=e.component.format.replace(/yyyy-MM-dd /g,"")),e.component.enableTime?e.component.format=n?e.component.format.replace(/hh:mm a$/g,"HH:mm"):e.component.format.replace(/HH:mm$/g,"hh:mm a"):e.component.format=e.component.format.replace(/ hh:mm a$/g,""),e.component.customOptions||{});if("string"==typeof r)try{r=JSON.parse(r)}catch(e){console.warn(e.message),r={}}return e.component.widget=c({type:"calendar",timezone:t,displayInTimezone:a.default.get(e.component,"displayInTimezone","viewer"),submissionTimezone:e.submissionTimezone,locale:e.options.language,useLocaleSettings:a.default.get(e.component,"useLocaleSettings",!1),allowInput:a.default.get(e.component,"allowInput",!0),mode:"single",enableTime:a.default.get(e.component,"enableTime",!0),noCalendar:!a.default.get(e.component,"enableDate",!0),format:e.component.format,hourIncrement:a.default.get(e.component,"timePicker.hourStep",1),minuteIncrement:a.default.get(e.component,"timePicker.minuteStep",5),time_24hr:n,readOnly:e.options.readOnly,minDate:a.default.get(e.component,"datePicker.minDate"),disabledDates:a.default.get(e.component,"datePicker.disable"),disableWeekends:a.default.get(e.component,"datePicker.disableWeekends"),disableWeekdays:a.default.get(e.component,"datePicker.disableWeekdays"),disableFunction:a.default.get(e.component,"datePicker.disableFunction"),maxDate:a.default.get(e.component,"datePicker.maxDate")},r),e.validators.push("date"),e}return t=i,e=[{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:"datetime",label:"Date / Time",key:"dateTime",format:"yyyy-MM-dd hh:mm a",useLocaleSettings:!1,allowInput:!0,enableDate:!0,enableTime:!0,defaultValue:"",defaultDate:"",displayInTimezone:"viewer",timezone:"",datepickerMode:"day",datePicker:{showWeeks:!0,startingDay:0,initDate:"",minMode:"day",maxMode:"year",yearRows:4,yearColumns:5,minDate:null,maxDate:null},timePicker:{hourStep:1,minuteStep:1,showMeridian:!0,readonlyInput:!1,mousewheel:!0,arrowkeys:!0},customOptions:{}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Date / Time",group:"advanced",icon:"calendar",documentation:"/userguide/#datetime",weight:40,schema:i.schema()}}}],(n=[{key:"performInputMapping",value:function(e){return e.widget&&e.widget.settings&&(e.widget.settings.submissionTimezone=this.submissionTimezone),e}},{key:"defaultSchema",get:function(){return i.schema()}},{key:"defaultValue",get:function(){var e=d(m(i.prototype),"defaultValue",this);return e=!e&&this.component.defaultDate?(e=s.default.getDateSetting(this.component.defaultDate))?e.toISOString():"":e}},{key:"emptyValue",get:function(){return""}},{key:"momentFormat",get:function(){return s.default.convertFormatToMoment(this.component.format)}},{key:"isEmpty",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.dataValue;return!(!e||"Invalid Date"!==e.toString())||d(m(i.prototype),"isEmpty",this).call(this,e)}},{key:"formatValue",value:function(e){var t=r.default.utc(e).toISOString();return"Invalid date"===t?e:t}},{key:"isEqual",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.dataValue;return this.isEmpty(e)&&this.isEmpty(t)||r.default.utc(e).format(this.momentFormat)===r.default.utc(t).format(this.momentFormat)}},{key:"createWrapper",value:function(){return!1}},{key:"checkValidity",value:function(e,t,n){return this.refs.input&&this.refs.input.forEach(function(e){e.widget&&e.widget.enteredDate&&(t=!0)}),d(m(i.prototype),"checkValidity",this).call(this,e,t,n)}},{key:"getValueAsString",value:function(e){var t=s.default.convertFormatToMoment(this.component.format);return e&&(0,r.default)(e).format(t)||""}}])&&f(t.prototype,n),e&&f(t,e),Object.defineProperty(t,"prototype",{writable:!1}),i}(l.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(70),n(2),n(6),n(7),n(3),n(5),n(4),n(32),n(20),n(42),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(1),n(25),n(14),n(16),n(43),n(39),n(18),n(854),n(9);var s=r(n(10)),i=r(n(61)),a=n(19);function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(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){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n,r){return(f="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,e=p(e,t);if(e){if((o=Object.getOwnPropertyDescriptor(e,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 e=n,!((o=t)in(n=r)?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e);return!0})(e,t,n,r)}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=p(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function p(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=y(n),t=(e=r?(e=y(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e);var n,r=m(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,e=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"day",label:"Day",key:"day",fields:{day:{type:"number",placeholder:"",required:!1},month:{type:"select",placeholder:"",required:!1},year:{type:"number",placeholder:"",required:!1}},dayFirst:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Day",group:"advanced",icon:"calendar",documentation:"/userguide/#day",weight:50,schema:o.schema()}}}],(n=[{key:"emptyValue",get:function(){return"00/00/0000"}},{key:"valueMask",get:function(){return/^\d{2}\/\d{2}\/\d{4}$/}},{key:"dayRequired",get:function(){return this.showDay&&s.default.get(this.component,"fields.day.required",!1)}},{key:"showDay",get:function(){return!s.default.get(this.component,"fields.day.hide",!1)}},{key:"monthRequired",get:function(){return this.showMonth&&s.default.get(this.component,"fields.month.required",!1)}},{key:"showMonth",get:function(){return!s.default.get(this.component,"fields.month.hide",!1)}},{key:"yearRequired",get:function(){return this.showYear&&s.default.get(this.component,"fields.year.required",!1)}},{key:"showYear",get:function(){return!s.default.get(this.component,"fields.year.hide",!1)}},{key:"defaultSchema",get:function(){return o.schema()}},{key:"shouldDisabled",get:function(){return d(y(o.prototype),"shouldDisabled",this)||this.parentDisabled}},{key:"inputInfo",get:function(){var e=d(y(o.prototype),"elementInfo",this).call(this);return e.type="input",e.attr.type="hidden",e.changeEvent="input",e}},{key:"inputDefinition",value:function(e){var t,n;return"day"===e&&(t=1,n=31),"month"===e&&(t=1,n=12),"year"===e&&(t=s.default.get(this.component,"fields.year.minYear",1900)||1900,n=s.default.get(this.component,"fields.year.maxYear",2030)||1900),{type:"input",ref:e,attr:{id:"".concat(this.component.key,"-").concat(e),class:"form-control ".concat(this.transform("class","formio-day-component-".concat(e))),type:"select"===this.component.fields[e].type?"select":"number",placeholder:this.component.fields[e].placeholder,step:1,min:t,max:n}}}},{key:"selectDefinition",value:function(e){return{multiple:!1,ref:e,widget:"html5",attr:{id:"".concat(this.component.key,"-").concat(e),class:"form-control",name:e,lang:this.options.language}}}},{key:"days",get:function(){if(!this._days){this._days=[{value:"",label:s.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:s.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){this._years=[{value:"",label:s.default.get(this.component,"fields.year.placeholder","")}];for(var e=s.default.get(this.component,"fields.year.minYear",1900)||1900,t=s.default.get(this.component,"fields.year.maxYear",2030)||2030,n=e;n<=t;n++)this._years.push({value:n,label:n.toString()})}return this._years}},{key:"setErrorClasses",value:function(e,t,n){d(y(o.prototype),"setErrorClasses",this).call(this,e,t,n),d(y(o.prototype),"setErrorClasses",this).call(this,[this.refs.day,this.refs.month,this.refs.year],t,n)}},{key:"removeInputError",value:function(e){d(y(o.prototype),"removeInputError",this).call(this,[this.refs.day,this.refs.month,this.refs.year]),d(y(o.prototype),"removeInputError",this).call(this,e)}},{key:"init",value:function(){d(y(o.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,t=(this.component.maxYear=t,this.component.minYear=e,(0,a.getLocaleDateFormatInfo)(this.options.language));this.dayFirst=(this.component.useLocaleSettings?t:this.component).dayFirst}},{key:"render",value:function(){return this.isHtmlRenderMode()?d(y(o.prototype),"render",this).call(this,this.renderTemplate("input")):d(y(o.prototype),"render",this).call(this,this.renderTemplate("day",{dayFirst:this.dayFirst,showDay:this.showDay,showMonth:this.showMonth,showYear:this.showYear,day:this.renderField("day"),month:this.renderField("month"),year:this.renderField("year")}))}},{key:"renderField",value:function(e){var n=this;return"select"===this.component.fields[e].type?this.renderTemplate("select",{input:this.selectDefinition(e),selectOptions:this["".concat(e,"s")].reduce(function(e,t){return e+n.renderTemplate("selectOption",{option:t,selected:!1,attrs:{}})},"")}):this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:this.inputDefinition(e)})}},{key:"attach",value:function(e){var n=this,e=(this.loadRefs(e,{day:"single",month:"single",year:"single",input:"multiple"}),d(y(o.prototype),"attach",this).call(this,e));return this.shouldDisabled?(this.setDisabled(this.refs.day,!0),this.setDisabled(this.refs.month,!0),this.setDisabled(this.refs.year,!0),this.refs.input&&this.refs.input.forEach(function(e){return n.setDisabled(e,!0)})):(this.addEventListener(this.refs.day,"input",function(){return n.updateValue(null,{modified:!0})}),this.addEventListener(this.refs.month,"input",function(){var e=n.refs.year?parseInt(new Date(n.refs.year.value,n.refs.month.value,0).getDate(),10):"",t=n.getFieldValue("day");!n.component.fields.day.hide&&e&&(n.refs.day.max=e),e&&e<t&&(n.refs.day.value=n.refs.day.max),n.updateValue(null,{modified:!0})}),this.addEventListener(this.refs.year,"input",function(){return n.updateValue(null,{modified:!0})}),this.addEventListener(this.refs.input,this.info.changeEvent,function(){return n.updateValue(null,{modified:!0})})),this.setValue(this.dataValue),this.disabled=this.shouldDisabled,e}},{key:"validateRequired",value:function(e,t){var n=this.parts,r=n.day,o=n.month,n=n.year;return!(this.dayRequired&&!r)&&(!(this.monthRequired&&!o)&&(!(this.yearRequired&&!n)&&(!(0,a.boolValue)(e)||!this.isEmpty(t))))}},{key:"disabled",set:function(e){var t=y(o.prototype),n=e,r=!0;if(!f(t,"disabled",n,this||t)&&r)throw new Error("failed to set property");this.refs.year&&this.refs.month&&this.refs.day&&(e?(this.refs.year.setAttribute("disabled","disabled"),this.refs.month.setAttribute("disabled","disabled"),this.refs.day.setAttribute("disabled","disabled")):(this.refs.year.removeAttribute("disabled"),this.refs.month.removeAttribute("disabled"),this.refs.day.removeAttribute("disabled")))}},{key:"normalizeValue",value:function(e){if(!e||this.valueMask.test(e))return e;function t(e,t){n.push(e?r.shift():t)}var n=[],r=e.split("/");return this.dayFirst&&t(this.showDay,"00"),t(this.showMonth,"00"),this.dayFirst||t(this.showDay,"00"),t(this.showYear,"0000"),n.join("/")}},{key:"setValueAt",value:function(e,t){if(!t||"Invalid date"===t)return null;var n,t=t.split("/"),r=(this.component.dayFirst&&(n=t.shift()),t.shift()),t=(this.component.dayFirst||(n=t.shift()),t.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"===r?"":parseInt(r,10)),this.refs.year&&this.showYear&&(this.refs.year.value="0000"===t?"":parseInt(t,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),!s.default.isNaN(n)&&s.default.isNumber(n)?n:0}},{key:"parts",get:function(){return{day:this.getFieldValue("day"),month:this.getFieldValue("month"),year:this.getFieldValue("year")}}},{key:"format",get:function(){var e="";return this.component.dayFirst&&this.showDay&&(e+="D/"),this.showMonth&&(e+="M/"),!this.component.dayFirst&&this.showDay&&(e+="D/"),this.showYear?e+"YYYY":e.length?e.substring(0,e.length-1):e}},{key:"getDate",value:function(e){var t,n,r,o=[],i=u(this.component.dayFirst?[0,1,2]:[1,0,2],3),a=i[0],l=i[1],i=i[2],e=e||this.component.defaultValue;return e&&(o=e.split("/").map(function(e){return parseInt(e,10)})),void 0!==(t=this.showDay&&this.refs.day?parseInt(this.refs.day.value,10):t)&&!s.default.isNaN(t)||(t=o[a]&&!s.default.isNaN(o[a])?o[a]:0),void 0!==(n=this.showMonth&&this.refs.month?parseInt(this.refs.month.value,10):n)&&!s.default.isNaN(n)||(n=o[l]&&!s.default.isNaN(o[l])?o[l]:0),void 0!==(r=this.showYear&&this.refs.year?parseInt(this.refs.year.value):r)&&!s.default.isNaN(r)||(r=o[i]&&!s.default.isNaN(o[i])?o[i]:0),t||n||r?(t=this.showDay?t.toString().padStart(2,0):"",n=this.showMonth?n.toString().padStart(2,0):"",r=this.showYear?r.toString().padStart(4,0):"",(this.component.dayFirst?"".concat(t).concat(this.showDay&&this.showMonth||this.showDay&&this.showYear?"/":"").concat(n).concat(this.showMonth&&this.showYear?"/":""):"".concat(n).concat(this.showDay&&this.showMonth||this.showMonth&&this.showYear?"/":"").concat(t).concat(this.showDay&&this.showYear?"/":"")).concat(r)):null}},{key:"date",get:function(){return this.getDate()}},{key:"normalizeMinMaxDates",value:function(){return[this.component.minDate,this.component.maxDate].map(function(e){return e&&e.split("-").reverse().join("/")})}},{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}},{key:"getValue",value:function(){var e=d(y(o.prototype),"getValue",this).call(this);return e||this.dataValue}},{key:"getValueAt",value:function(e){var t=this.date||this.emptyValue;return t?(this.refs.input[e].value=t,this.refs.input[e].value):(this.refs.input[e].value="",null)}},{key:"getValueAsString",value:function(e){return this.getDate(e)||""}},{key:"focus",value:function(){var e;this.dayFirst&&this.showDay||!this.dayFirst&&!this.showMonth&&this.showDay?null!=(e=this.refs.day)&&e.focus():this.dayFirst&&!this.showDay&&this.showMonth||!this.dayFirst&&this.showMonth?null!=(e=this.refs.month)&&e.focus():this.showDay||this.showDay||!this.showYear||null!=(e=this.refs.year)&&e.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],t=t[2],e=e.split("/");return"00"===e[n]||"00"===e[r]||"0000"===e[t]}},{key:"getValidationFormat",value:function(){return this.dayFirst?"DD-MM-YYYY":"MM-DD-YYYY"}}])&&c(t.prototype,n),e&&c(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(i.default);t.default=n},function(e,t,n){"use strict";var r=n(15),o=n(855).start;r({target:"String",proto:!0,forced:n(856)},{padStart:function(e){return o(this,e,1<arguments.length?arguments[1]:void 0)}})},function(e,t,n){function r(o){return function(e,t,n){var e=a(s(e)),t=i(t),r=e.length,n=void 0===n?" ":a(n);return t<=r||""==n?e:((r=u(n,f((t=t-r)/n.length))).length>t&&(r=c(r,0,t)),o?e+r:r+e)}}var o=n(17),i=n(73),a=n(47),l=n(198),s=n(62),u=o(l),c=o("".slice),f=Math.ceil;e.exports={start:r(!1),end:r(!0)}},function(e,t,n){n=n(79);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},function(e,t,n){"use strict";n(13),n(11),n(70),n(8),n(2),n(6),n(7),n(3),n(4),n(31),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(1),n(14),n(18),n(40),n(45),n(22),n(42),n(5),n(23),n(67),n(60),n(16),n(25),n(26),n(32),n(68),n(20),n(9);var s=i(n(10)),a=i(n(24)),r=i(n(217)),o=i(n(53)),l=i(n(858)),c=n(19),f=i(n(859));function i(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 u(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach(function(e){w(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function h(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function 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){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=O(n),t=(e=r?(e=O(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function g(e,t,n,r){return(g="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,e=_(e,t);if(e){if((o=Object.getOwnPropertyDescriptor(e,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 w(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}function k(){return(k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=_(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function _(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=O(e)););return e}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S={New:"new",Editing:"editing",Saved:"saved",Viewing:"viewing",Removed:"removed",Draft:"draft"},n=function(e){var t=u;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e);var n,i=b(u);function u(){var e=this,t=u;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r))).type="editgrid",e}return t=u,e=[{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:"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:u.defaultHeaderTemplate,row:u.defaultRowTemplate,tableHeader:u.defaultTableHeaderTemplate,tableRow:u.defaultTableRowTemplate,footer:""}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Edit Grid",icon:"tasks",group:"data",documentation:"/userguide/#editgrid",weight:30,schema:u.schema()}}},{key:"defaultHeaderTemplate",get:function(){return'<div class="row">\n      {% util.eachComponent(components, function(component) { %}\n        {% if (displayValue(component)) { %}\n          <div class="col-sm-2">{{ t(component.label) }}</div>\n        {% } %}\n      {% }) %}\n    </div>'}},{key:"defaultTableHeaderTemplate",get:function(){return'\n      <tr>\n        {% util.eachComponent(components, function(component) { %}\n          {% if (!component.hasOwnProperty(\'tableView\') || component.tableView) { %}\n            <td class="editgrid-table-column">{{ component.label }}</td>\n          {% } %}\n        {% }) %}\n        {% if (!instance.options.readOnly && !instance.disabled) { %}\n          <td class="editgrid-table-column">Actions</td>\n        {% } %}\n      </tr>\n    '}},{key:"defaultRowTemplate",get:function(){return'<div class="row">\n      {% util.eachComponent(components, function(component) { %}\n        {% if (displayValue(component)) { %}\n          <div class="col-sm-2">\n            {{ isVisibleInRow(component) ? getView(component, row[component.key]) : \'\'}}\n          </div>\n        {% } %}\n      {% }) %}\n      {% if (!instance.options.readOnly && !instance.disabled) { %}\n        <div class="col-sm-2">\n          <div class="btn-group pull-right">\n            <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass(\'edit\') }}"></i></button>\n            {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n              <button class="btn btn-danger btn-sm removeRow"><i class="{{ iconClass(\'trash\') }}"></i></button>\n            {% } %}\n          </div>\n        </div>\n      {% } %}\n    </div>'}},{key:"defaultTableRowTemplate",get:function(){return'\n      {% util.eachComponent(components, function(component) { %}\n          {% if (!component.hasOwnProperty(\'tableView\') || component.tableView) { %}\n            <td class="editgrid-table-column">\n              {{ getView(component, row[component.key]) }}\n            </td>\n          {% } %}\n        {% }) %}\n        {% if (!instance.options.readOnly && !instance.disabled) { %}\n          <td class="editgrid-table-column">\n            <div class="btn-group">\n              <button class="btn btn-default btn-light btn-sm editRow" aria-label="{{ t(\'Edit row\') }}"><i class="{{ iconClass(\'edit\') }}"></i></button>\n              {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n              <button class="btn btn-danger btn-sm removeRow" aria-label="{{ t(\'Remove row\') }}"><i class="{{ iconClass(\'trash\') }}"></i></button>\n              {% } %}\n            </div>\n          </td>\n        {% } %}\n    '}}],(n=[{key:"defaultDialogTemplate",get:function(){return'\n    <h3 ref="dialogHeader">'.concat(this.t("Do you want to clear data?"),'</h3>\n    <div style="display:flex; justify-content: flex-end;">\n      <button ref="dialogCancelButton" class="btn btn-secondary" aria-label="').concat(this.t("Cancel"),'">').concat(this.t("Cancel"),'</button>\n      <button ref="dialogYesButton" class="btn btn-danger" aria-label="').concat(this.t("Yes, delete it"),'">').concat(this.t("Yes, delete it"),"</button>\n    </div>\n  ")}},{key:"defaultRowTemplate",get:function(){return this.displayAsTable?u.defaultTableRowTemplate:u.defaultRowTemplate}},{key:"defaultHeaderTemplate",get:function(){return this.displayAsTable?u.defaultTableHeaderTemplate:u.defaultHeaderTemplate}},{key:"rowTemplate",get:function(){var e=c.Evaluator.noeval?this.displayAsTable?f.default.tableRow:f.default.row:this.displayAsTable?s.default.get(this.component,"templates.tableRow",this.defaultRowTemplate):s.default.get(this.component,"templates.row",this.defaultRowTemplate);return e}},{key:"headerTemplate",get:function(){var e=c.Evaluator.noeval?this.displayAsTable?f.default.tableHeader:f.default.header:this.displayAsTable?s.default.get(this.component,"templates.tableHeader",this.defaultHeaderTemplate):s.default.get(this.component,"templates.header",this.defaultHeaderTemplate);return e}},{key:"hasScopedChildren",get:function(){return!this.inlineEditMode}},{key:"defaultSchema",get:function(){return u.schema()}},{key:"emptyValue",get:function(){return[]}},{key:"editgridKey",get:function(){return"editgrid-".concat(this.key)}},{key:"rowRef",get:function(){return"".concat(this.editgridKey,"-row")}},{key:"rowElements",get:function(){return this.refs[this.rowRef]}},{key:"rowRefs",get:function(){return this.refs["editgrid-".concat(this.component.key,"-row")]}},{key:"addRowRef",get:function(){return"".concat(this.editgridKey,"-addRow")}},{key:"addRowElements",get:function(){return this.refs[this.addRowRef]}},{key:"saveRowRef",get:function(){return"".concat(this.editgridKey,"-saveRow")}},{key:"saveRowElements",get:function(){return this.refs[this.saveRowRef]}},{key:"cancelRowRef",get:function(){return"".concat(this.editgridKey,"-cancelRow")}},{key:"cancelRowElements",get:function(){return this.refs[this.cancelRowRef]}},{key:"inlineEditMode",get:function(){return this.component.inlineEdit}},{key:"saveEditMode",get:function(){return!this.inlineEditMode}},{key:"minLength",get:function(){return s.default.get(this.component,"validate.minLength",0)}},{key:"data",get:function(){return this._data},set:function(e){this._data=e;var r=this.dataValue;(this.editRows||[]).forEach(function(e,t){r[t]||e.state===S.New||(r[t]={});var n=r[t]||{};e.data=n,e.components.forEach(function(e){e.data=n})})}},{key:"dataValue",get:function(){return k(O(u.prototype),"dataValue",this)||[]},set:function(e){var t=O(u.prototype),n=!0;if(!g(t,"dataValue",e,this||t)&&n)throw new Error("failed to set property")}},{key:"displayAsTable",get:function(){return this.component.displayAsTable}},{key:"iteratableRows",get:function(){return this.editRows}},{key:"defaultValue",get:function(){var e=k(O(u.prototype),"defaultValue",this),t=Array.isArray(e)?e:[];return s.default.times(this.minLength-t.length,function(){return t.push({})}),t}},{key:"hasRemoveButtons",value:function(){return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&this.dataValue.length>s.default.get(this.component,"validate.minLength",0)}},{key:"init",value:function(){var n=this;if(this.builderMode)return this.editRows=[],k(O(u.prototype),"init",this).call(this);this.components=this.components||[];var e=this.dataValue;!e.length&&this.component.openWhenEmpty?(this.editRows=[],this.createRow({},0)):this.editRows=e.map(function(e,t){return{components:n.lazyLoad?[]:n.createRowComponents(e,t),data:e,state:S.Saved,backup:null,error:null}}),this.prevHasAddButton=this.hasAddButton(),this.checkData()}},{key:"isOpen",value:function(e){return[S.New,S.Editing,S.Viewing].includes(e.state)}},{key:"isComponentVisibleInSomeRow",value:function(r){function o(t,e){e||s.default.remove(i.visibleInHeader,function(e){return e===t.key}),e&&!s.default.includes(i.visibleInHeader,t.key)&&i.visibleInHeader.push(t.key)}var t,i=this,e=this.editRows,n=[S.Saved,S.Editing,S.Draft],a=e.filter(function(e){return s.default.includes(n,e.state)});this.visibleInHeader=this.visibleInHeader||[];if(s.default.isEmpty(e))return l=this.createRowComponents({},0),(0,c.eachComponent)(l,function(e){e.component.key===r.key&&(t=e),e.checkConditions()}),l=!t||t.visible,h(this.components).forEach(function(e){return i.removeComponent(e,i.components)}),o(r,l),l;var l=s.default.get(this.component,"openWhenEmpty")&&1===e.length&&e[0].state===S.New;return s.default.isEmpty(e)||!s.default.isEmpty(a)||l?s.default.some(l?e:a,function(e,t){var n;return e.state===S.Editing?n=s.default.includes(i.visibleInHeader,r.key):(n=!(e=i.flattenComponents(t)[r.key])||e.visible,o(r,n)),n}):s.default.includes(this.visibleInHeader,r.key)}},{key:"render",value:function(e){var t=this;if(this.builderMode)return k(O(u.prototype),"render",this).call(this);var n=this.dataValue,r=this.headerTemplate,o=this.t.bind(this),i=this.displayAsTable?"editgridTable":"editgrid";return k(O(u.prototype),"render",this).call(this,e||this.renderTemplate(i,{ref:{row:this.rowRef,addRow:this.addRowRef,saveRow:this.saveRowRef,cancelRow:this.cancelRowRef},header:this.renderString(r,{displayValue:function(e){return t.displayComponentValue(e,!0)},components:this.component.components,value:n,t:o}),footer:this.renderString(s.default.get(this.component,"templates.footer"),{components:this.component.components,value:n,t: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:"renderComponents",value:function(e){var t=(e=e||this.getComponents()).map(function(e){return e.render()}),n=this.displayAsTable&&this.prevHasAddButton?"tableComponents":"components";return this.renderTemplate(n,{children:t,components:e})}},{key:"attach",value:function(e){var i=this;if(this.builderMode)return k(O(u.prototype),"attach",this).call(this,e);this.loadRefs(e,(w(t={},this.addRowRef,"multiple"),w(t,this.saveRowRef,"multiple"),w(t,this.cancelRowRef,"multiple"),w(t,this.rowRef,"multiple"),t)),this.addRowElements.forEach(function(e){i.addEventListener(e,"click",function(){return i.addRow()})});var r=0,t=(this.rowElements.forEach(function(o,t){var n=i.editRows[t];null!=n&&n.isRowSelected&&o.classList.add("selected"),i.isOpen(n)?(i.attachComponents(o,n.components),i.addEventListener(i.saveRowElements[r],"click",function(){return i.saveRow(t,!0)}),i.addEventListener(i.cancelRowElements[r],"click",function(){return i.cancelRow(t)}),r++):[{className:"removeRow",event:"click",action:function(){return i.removeRow(t,!0)}},{className:"editRow",event:"click",action:function(){i.editRow(t).then(function(){var e;i.component.rowDrafts&&(i.validateRow(n,!1),e=n.errors&&!!n.errors.length,i.component.modal&&e&&(null==(e=i.root)?void 0:e.submitted)&&(i.alert.showErrors(n.errors,!1),n.alerts=!0))})}},{className:"row",event:"click",action:function(){o.classList.toggle("selected");var e="editGridSelectRow";Array.from(o.classList).includes("selected")?n.isRowSelected=!0:(delete n.isRowSelected,e="editGridUnSelectRow"),i.emit(e,{component:i.component,data:i.dataValue[t]})}}].forEach(function(e){var t=e.className,n=e.event,r=e.action,e=o.getElementsByClassName(t);Array.prototype.forEach.call(e,function(e){i.addEventListener(e,n,r)})})}),r?this.addClass(this.refs.component,"formio-component-".concat(this.component.type,"-row-open")):this.removeClass(this.refs.component,"formio-component-".concat(this.component.type,"-row-open")),k(O(u.prototype),"attach",this).call(this,e));return this.loadRefs(e,{messageContainer:"single-scope"}),t}},{key:"flattenRowDataValue",value:function(t){var n=this,r={};return Object.keys(t).forEach(function(e){s.default.isObject(t[e])&&!s.default.isNil(t[e])?Object.assign(r,n.flattenRowDataValue(t[e])):r[e]=t[e]}),r}},{key:"isComponentVisibleInRow",value:function(e,t){t=t[e.key];return!t||t.visible}},{key:"displayComponentValue",value:function(e,t){return!!(e.hasOwnProperty("tableView")&&!e.tableView||!t?s.default.includes(this.visibleInHeader,e.key):this.isComponentVisibleInSomeRow(e))}},{key:"renderRow",value:function(e,t){var o,n=this,r=this.dataValue;return this.isOpen(e)?this.renderComponents(e.components):(o=this.flattenComponents(t),e=this.rowTemplate,this.renderString(e,{row:r[t]||{},data:this.data,rowIndex:t,components:this.component.components,flattenedComponents:o,displayValue:function(e){return n.displayComponentValue(e)},isVisibleInRow:function(e){return n.isComponentVisibleInRow(e,o)},getView:function(e,t){var n,e=o[e.key],t=e?e.getView(t||e.dataValue):"",r=new RegExp("<(.*?)>");return"string"!=typeof t||!t.length||null!=(n=e.component)&&n.template||!r.test(t)||"html"===(null==(n=e.component)?void 0:n.inputFormat)?t:'<input type="text" value="'.concat(t.replace(/"/g,"&quot;"),'" readonly/>')},state:this.editRows[t].state,t:this.t.bind(this)}))}},{key:"eachComponent",value:function(n,e){s.default.each(this.getComponents(e),function(e,t){if(!1===n(e,t))return!1})}},{key:"restoreComponentsContext",value:function(){var r=this;this.getComponents().forEach(function(e){var t=r.dataValue[e.rowIndex],n=null==(n=r.editRows[e.rowIndex])?void 0:n.data;e.data=t||n})}},{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?k(O(u.prototype),"getComponents",this).call(this):s.default.isNumber(e)?this.editRows[e].components||[]:this.editRows.reduce(function(e,t){return e.concat(t.components||[])},[])}},{key:"destroyComponents",value:function(e){var t=this;if(this.builderMode)return k(O(u.prototype),"destroyComponents",this).call(this);this.getComponents(e).slice().forEach(function(e){return t.removeComponent(e,t.components)})}},{key:"createRow",value:function(e,t){t={components:this.createRowComponents(e,t),data:e,state:S.New,backup:null,error:null};return this.editRows.push(t),this.inlineEditMode&&this.dataValue.push(e),t}},{key:"addRow",value:function(){var e,t;if(!this.options.readOnly)return e=this.editRows.length,t=this.createRow({},e),this.inlineEditMode&&this.triggerChange(),this.emit("editGridAddRow",{component:this.component,row:t}),this.checkRow("checkData",null,{},t.data,t.components),this.component.modal?this.addRowModal(e):this.redraw(),t}},{key:"addRowModal",value:function(e){var t=this,n=this.ce("div"),r=this.editRows[e],o=(r.willBeSaved=!1,r.components),i=(n.innerHTML=this.renderComponents(o),this.component.modal?this.createModal(n,{},function(){return t.showDialog(e)}):void 0);return i.classList.add("editgrid-row-modal-".concat(this.id)),r.dialog=i,this.alert&&(this.alert.clear(),this.alert=null),this.alert=new l.default(i.refs.dialogContents,this),this.addEventListener(i,"close",function(){r.willBeSaved||(t.editRows[e]&&t.editRows[e].state!==S.New&&t.editRows[e].components.forEach(function(e){e.setPristine(!0)}),t.cancelRow(e)),t.alert&&(t.alert.clear(),t.alert=null),delete r.confirmationDialog,delete r.dialog}),i.refs.dialogContents.appendChild(this.ce("button",{class:"btn btn-primary",onClick:function(){t.component.rowDrafts||r.components.forEach(function(e){return e.setPristine(!1)}),t.validateRow(r,!0)||t.component.rowDrafts?(r.willBeSaved=!0,i.close(),t.saveRow(e,!0)):(t.alert.showErrors(r.errors,!1),r.alerts=!0)}},this.component.saveRow||"Save")),this.attachComponents(n,o)}},{key:"showDialog",value:function(e){e=this.editRows[e];if(s.default.isEqual(e.backup,e.data))return a.default.resolve();function t(e){e.preventDefault(),i.close()}var n,r=this.ce("div",{ref:"confirmationDialog"}),o=this.component.dialogTemplate||this.defaultDialogTemplate,i=(r.innerHTML=o,r.refs={},this.loadRefs.call(r,r,{dialogHeader:"single",dialogCancelButton:"single",dialogYesButton:"single"}),this.createModal(r)),o=(i.classList.add("editgrid-row-modal-confirmation-".concat(this.id)),new a.default(function(e,t){n={resolve:e,reject:t}}));return this.addEventListener(r.refs.dialogYesButton,"click",function(e){t(e),n.resolve()}),this.addEventListener(r.refs.dialogCancelButton,"click",function(e){t(e),n.reject()}),e.confirmationDialog=i,o}},{key:"editRow",value:function(e){var t,n=(t=this.editRows[e]).state===S.Editing||t.state===S.New;if(!t||n)return a.default.resolve();t.prevState=t.state,t.state=this.options.readOnly?S.Viewing:S.Editing,this.lazyLoad&&0===t.components.length&&(t.components=this.createRowComponents(t.data,e));n=(0,c.fastCloneDeep)(t.data);return this.inlineEditMode?t.backup=n:(t.backup=(0,c.fastCloneDeep)(t.data),t.data=n,this.restoreRowContext(t)),this.component.modal?this.addRowModal(e):this.redraw()}},{key:"clearErrors",value:function(e){e=this.editRows[e];e&&Array.isArray(e.components)&&e.components.forEach(function(e){e.setPristine(!0),e.setCustomValidity("")})}},{key:"cancelRow",value:function(e){if(!this.options.readOnly){var t=this.editRows[e];switch(t.state){case S.New:t.state=S.Removed,this.clearErrors(e),this.destroyComponents(e),this.inlineEditMode&&this.splice(e),this.editRows.splice(e,1),this.openWhenEmpty();break;case S.Editing:t.state=t.prevState,this.inlineEditMode&&(this.dataValue[e]=t.backup),t.data=t.backup,t.backup=null,this.restoreRowContext(t),this.clearErrors(e)}this.emit("editGridCancelRow",{instance:this,component:this.component,editRow:t}),this.checkValidity(null,!0),this.redraw(),this.component.rowDrafts&&this.checkValidity(this.data,!1)}}},{key:"saveRow",value:function(e,t){var n=this,r=this.editRows[e];if(!this.options.readOnly){this.component.rowDrafts||r.components.forEach(function(e){return e.setPristine(!1)});var o=this.validateRow(r,!0);if(!this.component.rowDrafts&&!o)return!1;if(this.saveEditMode){var i=this.dataValue;switch(r.state){case S.New:var a=i.length;i.push(r.data),r.components.forEach(function(e){return e.rowIndex=a}),e!==a&&(this.editRows.splice(e,1),this.editRows.splice(a,0,r));break;case S.Editing:i[e]=r.data}}return r.state=this.component.rowDrafts&&!o?S.Draft:S.Saved,r.backup=null,this.updateValue(),this.emit("editGridSaveRow",{component:this.component,row:r.data,instance:this}),this.triggerChange({modified:t,noPristineChangeOnModified:t&&this.component.rowDrafts,isolateRow:!0}),this.component.rowDrafts&&r.components.forEach(function(e){return e.setPristine(n.pristine)}),this.checkValidity(null,!0),this.redraw(),r.alerts&&(r.alerts=!1),!0}}},{key:"beforeFocus",value:function(e){"beforeFocus"in this.parent&&this.parent.beforeFocus(this);e=this.getRelativePath(e.path),e=(0,c.getArrayFromComponentPath)(e);s.default.isNumber(e[0])&&this.editRow(e[0])}},{key:"updateComponentsRowIndex",value:function(e,n){e.forEach(function(e,t){e.rowIndex=n,e.row="".concat(n,"-").concat(t)})}},{key:"updateRowsComponents",value:function(n){var r=this;this.editRows.slice(n).forEach(function(e,t){r.updateComponentsRowIndex(e.components,n+t)})}},{key:"baseRemoveRow",value:function(e){var t=this.editRows[e];return t.state=S.Removed,this.destroyComponents(e),t}},{key:"removeRow",value:function(e,t){this.options.readOnly||(this.clearErrors(e),this.baseRemoveRow(e),this.splice(e),this.emit("editGridDeleteRow",{index:e}),this.editRows.splice(e,1),this.openWhenEmpty(),this.updateRowsComponents(e),this.updateValue(),this.triggerChange({modified:t,noPristineChangeOnModified:t&&this.component.rowDrafts,isolateRow:!0}),this.checkValidity(null,!0),this.checkData(),this.redraw())}},{key:"createRowComponents",value:function(r,o){var i=this;return this.component.components.map(function(e,t){var e=s.default.clone(e),n=s.default.clone(i.options),t=(n.name+="[".concat(o,"]"),n.row="".concat(o,"-").concat(t),n.onChange=function(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=1<arguments.length?arguments[1]:void 0,r=2<arguments.length?arguments[2]:void 0;null!=(e=n.instance.root)&&e.id&&(null==(e=i.root)?void 0:e.id)!==n.instance.root.id?n.instance.root.triggerChange(t,n,r):i.component.modal||i.triggerRootChange(t,n,r),i.inlineEditMode||(null!=(e=i.editRows[o])&&e.alerts?i.checkData(null,p(p({},t),{},{changed:n,rowIndex:o}),i.data):e&&(r=i.component.rowDrafts&&!i.shouldValidateDraft(e),i.checkRow("checkData",null,p(p({},t),{},{changed:n,silentCheck:r}),e.data,e.components,r)))},i.createComponent(s.default.assign({},e,{row:n.row}),n,r));return t.rowIndex=o,t.inEditGrid=!0,t})}},{key:"hasOpenRows",value:function(){var t=this;return this.editRows.some(function(e){return t.isOpen(e)})}},{key:"shouldValidateDraft",value:function(e){return e.state===S.Draft&&!this.pristine&&!(null!=(e=this.root)&&e.pristine)&&!this.hasOpenRows()||(null==(e=this.root)?void 0:e.submitted)}},{key:"shouldValidateRow",value:function(e,t){return this.shouldValidateDraft(e)||e.state===S.Editing||e.alerts||t}},{key:"validateRow",value:function(n,r,o){var e,i=this,a=!0,t=h(this.errors);return this.shouldValidateRow(n,r)&&n.components.forEach(function(e){var t=i.component.rowDrafts&&!i.shouldValidateDraft(n)||o;a&=e.checkValidity(null,r,null,t)}),this.component.validate&&this.component.validate.row&&("true"!==(a=this.evaluate(this.component.validate.row,{valid:a,row:n.data},"valid",!0)).toString()?(n.error=a,a=!1):n.error=null,null===a&&(a="Invalid row validation for ".concat(this.key))),n.errors=a?null:this.errors.filter(function(e){return!t.includes(e)}),(!this.component.rowDrafts||null!=(e=this.root)&&e.submitted)&&this.showRowErrorAlerts(n,!!a),!!a}},{key:"showRowErrorAlerts",value:function(e,t){var n;e.alerts&&this.alert&&(null!=(n=e.errors)&&n.length&&!t?(this.alert.showErrors(e.errors,!1),e.alerts=!0):this.alert.clear())}},{key:"checkValidity",value:function(e,t,n,r){return e=e||this.rootValue,n=n||this.data,this.checkCondition(n,e)?this.checkComponentValidity(e,t,n,{silentCheck:r}):(this.setCustomValidity(""),!0)}},{key:"checkComponentValidity",value:function(e,r,t){var o=this,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},i=n.silentCheck,a=this.errors.length,n=k(O(u.prototype),"checkComponentValidity",this).call(this,e,r,t,n);if(!n&&!this.alert&&!this.hasOpenRows())return!1;if(this.shouldSkipValidation(e,r,t))return!0;var l=!0,s=!1;if(this.editRows.forEach(function(e,t){var n=o.validateRow(e,r,i);l&=n,o.rowRefs&&(t=o.rowRefs[t])&&(t=t.querySelector(".editgrid-row-error"),n||!t||o.component.rowDrafts&&!o.shouldValidateDraft(e)?t&&(t.textContent=""):(o.addClass(t,"help-block"),t.textContent=o.t("invalidRowError"))),s|=r&&o.isOpen(e)}),!l)return i||this.component.rowDrafts&&(null==(t=this.root)||!t.submitted)||(this.setCustomValidity(this.t("invalidRowsError"),r),this.removeClass(this.element,"has-error")),!1;if(s&&this.saveEditMode)return this.setCustomValidity(this.t("unsavedRowsError"),r),!1;t=this.invalid||this.invalidMessage(e,r);return(null==(e=this.errors)?void 0:e.length)!==a&&null!=(e=this.root)&&e.submitted&&!t?(this.setCustomValidity(t,r),this.root.showErrors()):this.setCustomValidity(t,r),n}},{key:"changeState",value:function(e,t){e||t.resetValue&&this.component.modalEdit?this.rebuild():this.redraw()}},{key:"setValue",value:function(e){var r=this,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(e=e||this.defaultValue,!Array.isArray(e)){if("object"!==d(e))return!1;e=[e]}var t=this.hasChanged(e,this.dataValue),n=(o.noValidate=!t,this.parent&&this.parent.checkComponentConditions(),this.dataValue=e,this.dataValue.forEach(function(e,t){var n=r.editRows[t];n?(n.data=e,r.restoreRowContext(n,o),n.state=S.Saved,n.backup=null,n.error=null):r.editRows[t]={components:r.lazyLoad?[]:r.createRowComponents(e,t),data:e,state:S.Saved,backup:null,error:null}}),this.dataValue.length);return this.editRows[n]&&this.editRows[n].state===S.New&&(n+=1),this.editRows.slice(n).forEach(function(e,t){return r.baseRemoveRow(n+t)}),this.editRows=this.editRows.slice(0,n),this.openWhenEmpty(),this.updateOnChange(o,t),this.checkData(),this.changeState(t,o),t}},{key:"openWhenEmpty",value:function(){var e=!this.dataValue.length&&this.component.openWhenEmpty;this.editRows.length||!e||this.builderMode||this.createRow({},0)}},{key:"restoreRowContext",value:function(t){var n=this,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};t.components.forEach(function(e){e.data=t.data,n.setNestedValue(e,t.data,r)})}},{key:"emptyRows",value:function(){var n=this;this.editRows.forEach(function(e,t){return n.destroyComponents(t)}),this.editRows=[]}},{key:"resetValue",value:function(){k(O(u.prototype),"resetValue",this).call(this),this.emptyRows()}}])&&y(t.prototype,n),e&&y(t,e),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.default);(t.default=n).prototype.hasChanged=o.default.prototype.hasChanged},function(e,t,n){"use strict";n(23),n(2),n(22),n(11),n(31),n(6),n(7),n(3),n(5),n(4),n(42),n(32),n(20),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(1),n(14),n(0),n(309),n(16),n(26);var i=(d=n(10))&&d.__esModule?d:{default:d},a=n(19);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||r(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){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||r(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 r(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}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(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function c(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?u(Object(o),!0).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):u(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var d=function(){function n(e,t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");this.container=e,this.alert=null,this.parentComponent=t,this.refs={},this.loadRefs=this.parentComponent.loadRefs.bind(this)}var e,t,r;return e=n,(t=[{key:"refsNames",get:function(){return{messageRef:"multiple"}}},{key:"alertTypes",get:function(){return{error:"danger",success:"success",info:"info",warning:"warning"}}},{key:"showErrors",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},e=i.default.isArray(e)?e:[e],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=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};e instanceof HTMLElement?e.setAttribute("ref","messageRef"):e=this.parentComponent.ce("p",{ref:"messageRef"}),this.showAlert(t,e,n)}},{key:"createMessagesList",value:function(e){if("error"===e){for(var t=arguments.length,n=new Array(1<t?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"),r=(this.parentComponent.setContent(n,this.parentComponent.t("error")),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=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=n.customClasses,n=n.customEvents;this.setAlert(e,t,{customClasses:r}),this.alert&&(this.attach({customEvents:n}),this.parentComponent.prependTo(this.alert,this.container))}},{key:"setAlert",value:function(e,t){var n,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o=this.alertTypes[e];this.alert&&this.clear(),t&&(e=void 0===(n=r.id)?"".concat(e,"-list-").concat(this.parentComponent.id):n,r=void 0===(n=r.customClasses)?"alert alert-".concat(o):n,this.alert=this.parentComponent.ce("div",{id:e,class:r}),t instanceof HTMLElement?this.parentComponent.appendTo(t,this.alert):this.parentComponent.setContent(this.alert,t))}},{key:"attach",value:function(e){var r=this,e=e.customEvents,t=void 0===e?{}:e,e=(this.eventListenersKeys=[],this.loadRefs(this.alert,this.refsNames),(null==(e=t.click)?void 0:e.listeners)||[]),n=(null==(n=t.keypress)?void 0:n.listeners)||[],t=c(c({},t),{},{click:[].concat(l(e),[function(e){e=e.currentTarget.dataset.componentKey;r.focusOnComponent(e)}]),keypress:[].concat(l(n),[function(e){e=e.currentTarget.dataset.componentKey;r.focusOnComponent(e)}])});null!=(e=this.refs.messageRef)&&e.length&&this.refs.messageRef.forEach(function(n){Object.entries(t).forEach(function(e){var e=o(e,2),t=e[0];e[1].forEach(function(e){return r.parentComponent.addEventListener(n,t,e)}),r.eventListenersKeys.push(t)})})}},{key:"clear",value:function(){var e,n=this;try{null!=(e=this.refs.messageRef)&&e.length&&this.refs.messageRef.forEach(function(t){n.eventListenersKeys.forEach(function(e){return n.parentComponent.removeEventListener(t,e)})}),this.refs={},this.parentComponent.removeChildFrom(this.alert,this.container),this.alert=null}catch(e){}}},{key:"focusOnComponent",value:function(e){var t,n;e&&(t=this.parentComponent._parentPath?e.replace(this.parentComponent._parentPath,""):e,(n=null==(n=this.parentComponent.root)?void 0:n.getComponent(t,null,e))&&i.default.isFunction(n.focus)&&n.focus())}},{key:"createMessage",value:function(e,t,n,r,o){if("error"===e)return this.createErrorMessage(t,n,r,o)}},{key:"createErrorMessage",value:function(e,t,n,r){var o={style:"cursor: pointer",ref:"messageRef",tabIndex:0,"aria-label":"".concat(t,". Click to navigate to the field with following error.")},o=this.parentComponent.ce("li",o),t=(this.parentComponent.setContent(o,t),!i.default.isUndefined(n)&&(null==r||null==(t=r.messages)?void 0:t[n])),t=(null==t?void 0:t.path)||(null==r||null==(n=r.component)?void 0:n.key);t&&(r=(0,a.getStringFromComponentPath)(t),o.dataset.componentKey=r),this.parentComponent.appendTo(o,e)}},{key:"appendErrorToList",value:function(n,r){var e,o=this;null!=n&&null!=(e=n.messages)&&e.length?n.messages.forEach(function(e,t){e=e.message;o.createMessage("error",r,e,t,n)}):n&&(e=i.default.isObject(n)?n.message||"":n,this.createMessage("error",r,e))}}])&&f(e.prototype,t),r&&f(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(860)),n=o(n(861));function o(e){return e&&e.__esModule?e:{default:e}}r={row:r.default,header:n.default};t.default=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var n,r="";Array.prototype.join;return r+='<div class="row">\n  ',t.util.eachComponent(t.components,function(e){r+="\n    ",e.hasOwnProperty("tableView")&&!e.tableView||(r+='\n      <div class="col-sm-2">\n        '+(null==(n=t.getView(e,t.row[e.key]))?"":n)+"\n      </div>\n    "),r+="\n  "}),r+="\n  ",t.self.options.readOnly||(r+='\n    <div class="col-sm-2">\n      <div class="btn-group pull-right">\n        <button class="btn btn-default btn-light btn-sm editRow"><i class="'+(null==(n=t.iconClass("edit"))?"":n)+'"></i></button>\n        <button class="btn btn-danger btn-sm removeRow"><i class="'+(null==(n=t.iconClass("trash"))?"":n)+'"></i></button>\n      </div>\n    </div>\n  '),r+="\n</div>\n"}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var n,r="";Array.prototype.join;return r+='<div class="row">\n  ',t.util.eachComponent(t.components,function(e){r+="\n    ",e.hasOwnProperty("tableView")&&!e.tableView||(r+='\n      <div class="col-sm-2">'+(null==(n=t.t(e.label))?"":n)+"</div>\n    "),r+="\n  "}),r+="\n</div>\n"}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(1),n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(18),n(0),n(9);var i=(n=n(97))&&n.__esModule?n:{default:n};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 l(){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=c(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=c(n),t=(e=r?(e=c(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e);var n,r=u(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,e=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"email",label:"Email",key:"email",inputType:"email",kickbox:{enabled:!1}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Email",group:"advanced",icon:"at",documentation:"/userguide/#email",weight:10,schema:o.schema()}}}],(n=[{key:"init",value:function(){l(c(o.prototype),"init",this).call(this),this.validators.push("email")}},{key:"defaultSchema",get:function(){return o.schema()}},{key:"inputInfo",get:function(){var e=l(c(o.prototype),"inputInfo",this);return e.attr.type=this.component.mask?"password":"email",e}},{key:"normalizeValue",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return e=l(c(o.prototype),"normalizeValue",this).call(this,e,t),e=this.options.server&&e?Array.isArray(e)?e.map(function(e){return e.toLowerCase()}):e.toLowerCase():e}}])&&a(t.prototype,n),e&&a(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(i.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(1),n(13),n(11),n(8),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(9);var r=(n=n(77))&&n.__esModule?n:{default:n};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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=f(n),t=(e=r?(e=f(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(){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=f(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e);var n,i=u(a);function a(){var e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r))).noField=!0,e}return t=a,e=[{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:"Field Set",key:"fieldSet",type:"fieldset",legend:"",components:[],input:!1,persistent:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Field Set",icon:"th-large",group:"layout",documentation:"/userguide/#fieldset",weight:20,schema:a.schema()}}}],(n=[{key:"defaultSchema",get:function(){return a.schema()}},{key:"className",get:function(){return"form-group ".concat(c(f(a.prototype),"className",this))}},{key:"templateName",get:function(){return"fieldset"}}])&&l(t.prototype,n),e&&l(t,e),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.default);t.default=n},function(e,v,k){"use strict";!function(e){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)}k(9),k(8),k(13),k(11),k(23),k(2),k(22),k(31),k(6),k(7),k(5),k(4),Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0,k(865),k(16),k(43),k(3),k(1),k(866),k(874),k(876),k(877),k(879),k(882),k(883),k(884),k(885),k(886),k(887),k(888),k(889),k(891),k(892),k(893),k(894),k(895),k(896),k(897),k(898),k(899),k(900),k(901),k(39),k(18),k(14),k(20),k(51),k(40),k(45),k(68),k(50),k(0),k(263),k(26),k(126),k(60),k(25),k(152),k(32),k(214),k(69);var i=t(k(61)),b=k(19),a=t(k(902)),l=t(k(10)),s=t(k(24)),g=t(k(903)),w=t(k(904));function t(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function n(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function c(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?n(Object(o),!0).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=m(n),t=(e=r?(e=m(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var r,y=navigator.camera||void 0,e=("undefined"!=typeof window?r=window.HTMLCanvasElement:void 0!==e&&(r=e.HTMLCanvasElement),r&&!r.prototype.toBlob&&Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(o,i,a){var l=this;setTimeout(function(){for(var e=atob(l.toDataURL(i,a).split(",")[1]),t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);o(new Blob([n],{type:i||"image/png"}))})}}),function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e);var n,r=h(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,e=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"file",label:"Upload",key:"file",image:!1,privateDownload:!1,imageSize:"200",filePattern:"*",fileMinSize:"0KB",fileMaxSize:"1GB",uploadOnly:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"File",group:"premium",icon:"file",documentation:"/userguide/#file",weight:100,schema:o.schema()}}}],(n=[{key:"init",value:function(){var n=this,e=(d(m(o.prototype),"init",this).call(this),y=navigator.camera||void 0,"undefined"!=typeof FileReader),t="undefined"!=typeof window&&Boolean(window.FormData),r=!("undefined"==typeof window||!window.XMLHttpRequest)&&"upload"in new XMLHttpRequest;this.support={filereader:e,formdata:t,hasWarning:!e||!t||!r,progress:r},this.filesReady=new s.default(function(e,t){n.filesReadyResolve=e,n.filesReadyReject=t}),this.cameraMode=!1,this.statuses=[],this.fileDropHidden=!1}},{key:"dataReady",get:function(){return this.filesReady}},{key:"defaultSchema",get:function(){return o.schema()}},{key:"loadImage",value:function(e){return this.component.privateDownload&&(e.private=!0),this.fileService.downloadFile(e).then(function(e){return e.url})}},{key:"emptyValue",get:function(){return[]}},{key:"getValueAsString",value:function(e){return l.default.isArray(e)?l.default.map(e,"originalName").join(", "):l.default.get(e,"originalName","")}},{key:"getValue",value:function(){return this.dataValue}},{key:"defaultValue",get:function(){var e=d(m(o.prototype),"defaultValue",this);return Array.isArray(e)?e:[]}},{key:"hasTypes",get:function(){return this.component.fileTypes&&Array.isArray(this.component.fileTypes)&&0!==this.component.fileTypes.length&&(""!==this.component.fileTypes[0].label||""!==this.component.fileTypes[0].value)}},{key:"fileDropHidden",get:function(){return this._fileBrowseHidden},set:function(e){"boolean"!=typeof e||this.component.multiple||(this._fileBrowseHidden=e)}},{key:"render",value:function(){return d(m(o.prototype),"render",this).call(this,this.renderTemplate("file",{fileSize:this.fileSize,files:this.dataValue||[],statuses:this.statuses,disabled:this.disabled,support:this.support,fileDropHidden:this.fileDropHidden}))}},{key:"getVideoStream",value:function(e){return navigator.mediaDevices.getUserMedia({video:c({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(n){return new s.default(function(e){var t=document.createElement("canvas");t.height=n.videoHeight,t.width=n.videoWidth,t.getContext("2d").drawImage(n,0,0),t.toBlob(e)})}},{key:"startVideo",value:function(){var n=this;this.getVideoStream().then(function(e){n.videoStream=e;var t=n.refs.videoPlayer;t?(t.srcObject=e,e=parseInt(n.component.webcamSize)||320,t.setAttribute("width",e),t.play()):(console.warn("Video player not found in template."),n.cameraMode=!1,n.redraw())}).catch(function(e){console.error(e),n.cameraMode=!1,n.redraw()})}},{key:"stopVideo",value:function(){this.videoStream&&(this.stopVideoStream(this.videoStream),this.videoStream=null)}},{key:"takePicture",value:function(){var t=this,e=this.refs.videoPlayer;e?this.getFrame(e).then(function(e){e.name="photo-".concat(Date.now(),".png"),t.upload([e]),t.cameraMode=!1,t.redraw()}):(console.warn("Video player not found in template."),this.cameraMode=!1,this.redraw())}},{key:"browseFiles",value:function(){var n=this,r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return new s.default(function(e){var t=n.ce("input",c({type:"file",style:"height: 0; width: 0; visibility: hidden;",tabindex:"-1"},r));document.body.appendChild(t),t.addEventListener("change",function(){e(t.files),document.body.removeChild(t)},!0),"function"==typeof t.trigger?t.trigger("click"):t.click()})}},{key:"cameraMode",get:function(){return this._cameraMode},set:function(e){(this._cameraMode=e)?this.startVideo():this.stopVideo()}},{key:"useWebViewCamera",get:function(){return this.imageUpload&&y}},{key:"imageUpload",get:function(){return Boolean(this.component.image)}},{key:"browseOptions",get:function(){var e,t,n={};return this.component.multiple&&(n.multiple=!0),this.isMobile.any||(e=this.component.filePattern.trim()||"",t="image/*",!this.imageUpload||e&&"*"!==e?this.imageUpload&&!e.includes(t)?n.accept="".concat(t,",").concat(e):n.accept=e:n.accept=t),n}},{key:"deleteFile",value:function(e){var t,n=this.component.options,n=void 0===n?{}:n;e&&["url","indexeddb"].includes(this.component.storage)&&((t=this.fileService)&&"function"==typeof t.deleteFile?t.deleteFile(e,n):(t=this.options.formio||this.root&&this.root.formio)&&t.makeRequest("",e.url,"delete"))}},{key:"attach",value:function(e){var t,n,r=this,e=(this.loadRefs(e,{fileDrop:"single",fileBrowse:"single",galleryButton:"single",cameraButton:"single",takePictureButton:"single",toggleCameraMode:"single",videoPlayer:"single",fileLink:"multiple",removeLink:"multiple",fileStatusRemove:"multiple",fileImage:"multiple",fileType:"multiple",fileProcessingLoader:"single"}),this.refs.input=[],d(m(o.prototype),"attach",this).call(this,e));return this.refs.fileDrop&&((t=this).addEventListener(this.refs.fileDrop,"dragover",function(e){this.className="fileSelector fileDragOver",e.preventDefault()}),this.addEventListener(this.refs.fileDrop,"dragleave",function(e){this.className="fileSelector",e.preventDefault()}),this.addEventListener(this.refs.fileDrop,"drop",function(e){this.className="fileSelector",e.preventDefault(),t.upload(e.dataTransfer.files)})),this.refs.fileBrowse&&this.addEventListener(this.refs.fileBrowse,"click",function(e){e.preventDefault(),r.browseFiles(r.browseOptions).then(function(e){r.upload(e)})}),this.refs.fileLink.forEach(function(e,t){r.addEventListener(e,"click",function(e){e.preventDefault(),r.getFile(r.dataValue[t])})}),this.refs.removeLink.forEach(function(e,n){r.addEventListener(e,"click",function(e){var t=r.dataValue[n];r.deleteFile(t),e.preventDefault(),r.splice(n),r.redraw()})}),this.refs.fileStatusRemove.forEach(function(e,t){r.addEventListener(e,"click",function(e){e.preventDefault(),r.abortUpload&&r.abortUpload(),r.statuses.splice(t,1),r.redraw()})}),this.refs.galleryButton&&y&&this.addEventListener(this.refs.galleryButton,"click",function(e){e.preventDefault(),y.getPicture(function(e){window.resolveLocalFileSystemURL(e,function(e){e.file(function(t){var e=new FileReader;e.onloadend=function(e){e=new Blob([new Uint8Array(e.target.result)],{type:t.type});e.name=t.name,r.upload([e])},e.readAsArrayBuffer(t)})})},function(e){console.error(e)},{sourceType:y.PictureSourceType.PHOTOLIBRARY})}),this.refs.cameraButton&&y&&this.addEventListener(this.refs.cameraButton,"click",function(e){e.preventDefault(),y.getPicture(function(e){window.resolveLocalFileSystemURL(e,function(e){e.file(function(t){var e=new FileReader;e.onloadend=function(e){e=new Blob([new Uint8Array(e.target.result)],{type:t.type});e.name=t.name,r.upload([e])},e.readAsArrayBuffer(t)})})},function(e){console.error(e)},{sourceType:y.PictureSourceType.CAMERA,encodingType:y.EncodingType.PNG,mediaType:y.MediaType.PICTURE,saveToPhotoAlbum:!0,correctOrientation:!1})}),this.refs.takePictureButton&&this.addEventListener(this.refs.takePictureButton,"click",function(e){e.preventDefault(),r.takePicture()}),this.refs.toggleCameraMode&&this.addEventListener(this.refs.toggleCameraMode,"click",function(e){e.preventDefault(),r.cameraMode=!r.cameraMode,r.redraw()}),this.refs.fileType.forEach(function(e,n){r.dataValue[n].fileType=r.dataValue[n].fileType||r.component.fileTypes[0].label,r.addEventListener(e,"change",function(t){t.preventDefault();var e=r.component.fileTypes.find(function(e){return e.value===t.target.value});r.dataValue[n].fileType=e.label})}),this.fileService&&(n=[],this.refs.fileImage.forEach(function(t,e){n.push(r.loadImage(r.dataValue[e]).then(function(e){return t.src=e}))}),n.length?s.default.all(n).then(function(){r.filesReadyResolve()}).catch(function(){return r.filesReadyReject()}):this.filesReadyResolve()),e}},{key:"fileSize",value:function(e,t,n,r,o){return"".concat((o=(n=(t=Math).log)(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(2<(e=e.replace(/\s/g,"")).length&&"/"===e[0]&&"/"===e[e.length-1])t=e.substring(1,e.length-1);else{var r=e.split(",");if(1<r.length)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(n,e){if(!e)return!0;var t,e=this.globStringToRegex(e),r=!0;return e.regexp&&e.regexp.length&&(t=new RegExp(e.regexp,"i"),r=!l.default.isNil(n.type)&&t.test(n.type)||!l.default.isNil(n.name)&&t.test(n.name)),r=e.excludes.reduce(function(e,t){t=new RegExp(t,"i");return e&&(l.default.isNil(n.type)||!t.test(n.type))&&(l.default.isNil(n.name)||!t.test(n.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 v=this;this.component.multiple||(this.statuses.length&&(this.statuses=[]),e=Array.prototype.slice.call(e,0,1)),this.component.storage&&e&&e.length&&(this.fileDropHidden=!0,Array.prototype.forEach.call(e,function(){l=regeneratorRuntime.mark(function e(o){var t,n,r,i,a,l,s,u,c,f,d,p,h,m,y;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=new w.default,e.next=3,new Promise(function(n,r){t.md5(o,function(e,t){return e?r(e):n(t)})});case 3:if(i=e.sent,n=(0,b.uniqueName)(o.name,v.component.fileNameTemplate,v.evalContext()),r={originalName:o.name,name:n,size:o.size,status:"info",message:v.t("Processing file. Please wait..."),hash:i},i=v.dataValue.some(function(e){return e.originalName===o.name}),a=v.statuses.findIndex(function(e){return e.originalName===o.name&&"error"===e.status}),i&&(r.status="error",r.message=v.t("File with the same name is already uploaded")),-1!==a&&(v.statuses.splice(a,1),v.redraw()),v.component.filePattern&&!v.validatePattern(o,v.component.filePattern)&&(r.status="error",r.message=v.t("File is the wrong type; it must be {{ pattern }}",{pattern:v.component.filePattern})),v.component.fileMinSize&&!v.validateMinSize(o,v.component.fileMinSize)&&(r.status="error",r.message=v.t("File is too small; it must be at least {{ size }}",{size:v.component.fileMinSize})),v.component.fileMaxSize&&!v.validateMaxSize(o,v.component.fileMaxSize)&&(r.status="error",r.message=v.t("File is too big; it must be at most {{ size }}",{size:v.component.fileMaxSize})),i=v.interpolate(v.component.dir||""),(a=v.fileService)||(r.status="error",r.message=v.t("File Service not provided.")),v.statuses.push(r),v.redraw(),"error"===r.status){e.next=50;break}if(v.component.privateDownload&&(o.private=!0),s=v.component,l=s.storage,s=s.options,s=void 0===s?{}:s,u=v.interpolate(v.component.url,{file:r}),f=c=null,v.root.everyComponent(function(t){var e;(null!=(e=t.component)&&e.submissionAccess||null!=(e=t.component)&&e.defaultPermission)&&(f=t.component.submissionAccess||[{type:t.component.defaultPermission,roles:[]}]).forEach(function(e){c=["admin","write","create"].includes(e.type)?t.component.key:null})}),d=v.component.fileKey||"file",p=c?v.currentForm.submission.data[c]._id:null,h=null,v.root.options.fileProcessor)return e.prev=29,v.refs.fileProcessingLoader&&(v.refs.fileProcessingLoader.style.display="block"),m=(0,g.default)(v.fileService,v.root.options.fileProcessor),e.next=34,m(o,v.component.properties);e.next=47;break;case 34:h=e.sent,e.next=44;break;case 37:return e.prev=37,e.t0=e.catch(29),r.status="error",r.message=v.t("File processing has been failed."),v.fileDropHidden=!1,v.redraw(),e.abrupt("return");case 44:return e.prev=44,v.refs.fileProcessingLoader&&(v.refs.fileProcessingLoader.style.display="none"),e.finish(44);case 47:r.message=v.t("Starting upload."),v.redraw(),y=a.uploadFile(l,h||o,n,i,function(e){r.status="progress",r.progress=parseInt(100*e.loaded/e.total),delete r.message,v.redraw()},u,s,d,f,p,function(){v.emit("fileUploadingStart",y)},function(e){return v.abortUpload=e}).then(function(e){var t=v.statuses.indexOf(r);-1!==t&&v.statuses.splice(t,1),e.originalName=o.name,e.hash=r.hash,v.hasValue()||(v.dataValue=[]),v.dataValue.push(e),v.fileDropHidden=!1,v.redraw(),v.triggerChange(),v.emit("fileUploadingEnd",y)}).catch(function(e){r.status="error",r.message="string"==typeof e?e:e.toString(),delete r.progress,v.fileDropHidden=!1,v.redraw(),v.emit("fileUploadingEnd",y)});case 50:case"end":return e.stop()}},e,null,[[29,37,44,47]])});var l,t=function(){var e=this,a=arguments;return new Promise(function(t,n){var r=l.apply(e,a);function o(e){u(r,t,n,o,i,"next",e)}function i(e){u(r,t,n,o,i,"throw",e)}o(void 0)})};return function(e){return t.apply(this,arguments)}}()))}},{key:"getFile",value:function(e){var t=this.component.options,t=void 0===t?{}:t,n=this.fileService;if(!n)return alert("File Service not provided");this.component.privateDownload&&(e.private=!0),n.downloadFile(e,t).then(function(e){e&&(["base64","indexeddb"].includes(e.storage)?(0,a.default)(e.url,e.originalName||e.name,e.type):window.open(e.url,"_blank"))}).catch(function(e){alert(e)})}},{key:"focus",value:function(){"beforeFocus"in this.parent&&this.parent.beforeFocus(this),this.refs.fileBrowse&&this.refs.fileBrowse.focus()}},{key:"destroy",value:function(){this.stopVideo(),d(m(o.prototype),"destroy",this).call(this)}}])&&f(t.prototype,n),e&&f(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(i.default));v.default=e}.call(this,k(54))},function(j,e,t){!function(e){!function(e){"use strict";var s,u,c,f,d,p,t,n,r=Object.prototype,h=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag",o="object"==typeof j,m=e.regeneratorRuntime;function y(e,t,n,r){var o,i,a,l,t=t&&t.prototype instanceof b?t:b,t=Object.create(t.prototype),r=new P(r||[]);return t._invoke=(o=e,i=n,a=r,l=u,function(e,t){if(l===f)throw new Error("Generator is already running");if(l===d){if("throw"===e)throw t;return x()}for(a.method=e,a.arg=t;;){var n=a.delegate;if(n){n=function e(t,n){var r=t.iterator[n.method];if(r===s){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=s,e(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}r=v(r,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,p;r=r.arg;if(!r)return n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p;{if(!r.done)return r;n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=s)}n.delegate=null;return p}(n,a);if(n){if(n===p)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(l===u)throw l=d,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);l=f;n=v(o,i,a);if("normal"===n.type){if(l=a.done?d:c,n.arg!==p)return{value:n.arg,done:a.done}}else"throw"===n.type&&(l=d,a.method="throw",a.arg=n.arg)}}),t}function v(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function b(){}function g(){}function w(){}function k(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function _(i){function a(e,t,n,r){var o,e=v(i[e],i,t);if("throw"!==e.type)return(t=(o=e.arg).value)&&"object"==typeof t&&h.call(t,"__await")?Promise.resolve(t.__await).then(function(e){a("next",e,n,r)},function(e){a("throw",e,n,r)}):Promise.resolve(t).then(function(e){o.value=e,n(o)},r);r(e.arg)}var t;"object"==typeof e.process&&e.process.domain&&(a=e.process.domain.bind(a)),this._invoke=function(n,r){function e(){return new Promise(function(e,t){a(n,r,e,t)})}return t=t?t.then(e,e):e()}}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function E(t){if(t){var n,e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return n=-1,(e=function e(){for(;++n<t.length;)if(h.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=s,e.done=!0,e}).next=e}return{next:x}}function x(){return{value:s,done:!0}}m?o&&(j.exports=m):((m=e.regeneratorRuntime=o?j.exports:{}).wrap=y,u="suspendedStart",c="suspendedYield",f="executing",d="completed",p={},(o={})[i]=function(){return this},t=(t=Object.getPrototypeOf)&&t(t(E([]))),t&&t!==r&&h.call(t,i)&&(o=t),n=w.prototype=b.prototype=Object.create(o),(g.prototype=n.constructor=w).constructor=g,w[l]=g.displayName="GeneratorFunction",m.isGeneratorFunction=function(e){e="function"==typeof e&&e.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},m.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(n),e},m.awrap=function(e){return{__await:e}},k(_.prototype),_.prototype[a]=function(){return this},m.AsyncIterator=_,m.async=function(e,t,n,r){var o=new _(y(e,t,n,r));return m.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},k(n),n[l]="Generator",n[i]=function(){return this},n.toString=function(){return"[object Generator]"},m.keys=function(n){var e,r=[];for(e in n)r.push(e);return r.reverse(),function e(){for(;r.length;){var t=r.pop();if(t in n)return e.value=t,e.done=!1,e}return e.done=!0,e}},m.values=E,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=s,this.done=!1,this.delegate=null,this.method="next",this.arg=s,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&h.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=s)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function e(e,t){return i.type="throw",i.arg=n,r.next=e,t&&(r.method="next",r.arg=s),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var o=this.tryEntries[t],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=h.call(o,"catchLoc"),l=h.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&h.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}var i=(o=o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc?null:o)?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n,r,o=this.tryEntries[t];if(o.tryLoc===e)return"throw"===(n=o.completion).type&&(r=n.arg,S(o)),r}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=s),p}})}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}.call(this,t(54))},function(e,t,n){n(867)("Uint8",function(r){return function(e,t,n){return r(this,e,t,n)}})},function(e,L,t){"use strict";function p(e,t){ne(e);for(var n=0,r=t.length,o=new e(r);n<r;)o[n]=t[n++];return o}function n(e,t){E(e,t,{get:function(){return P(this)[t]}})}function h(e){return W(ee,e)||"ArrayBuffer"==(e=B(e))||"SharedArrayBuffer"==e}function r(e,t){return T(e)&&!H(t)&&t in e&&U(+t)&&0<=t}function o(e,t){return t=u(t),r(e,t)?F(2,e[t]):Z(e,t)}function i(e,t,n){return t=u(t),!(r(e,t)&&k(n)&&c(n,"value"))||c(n,"get")||c(n,"set")||n.configurable||c(n,"writable")&&!n.writable||c(n,"enumerable")&&!n.enumerable?E(e,t,n):(e[t]=n.value,e)}var s=t(15),m=t(21),y=t(27),V=t(34),N=t(868),a=t(33),l=t(869),v=t(110),F=t(86),b=t(72),U=t(871),z=t(73),g=t(312),w=t(314),u=t(118),c=t(37),B=t(90),k=t(35),H=t(100),q=t(82),W=t(71),_=t(108),K=t(80).f,O=t(873),Y=t(52).forEach,G=t(157),f=t(38),d=t(65),S=t(59),$=t(156),P=S.get,J=S.set,Q=S.enforce,E=f.f,Z=d.f,X=Math.round,x=m.RangeError,j=l.ArrayBuffer,ee=j.prototype,te=l.DataView,C=a.NATIVE_ARRAY_BUFFER_VIEWS,R=a.TYPED_ARRAY_TAG,A=a.TypedArray,M=a.TypedArrayPrototype,ne=a.aTypedArrayConstructor,T=a.isTypedArray,D="BYTES_PER_ELEMENT",I="Wrong length";V?(C||(d.f=o,f.f=i,n(M,"buffer"),n(M,"byteOffset"),n(M,"byteLength"),n(M,"length")),s({target:"Object",stat:!0,forced:!C},{getOwnPropertyDescriptor:o,defineProperty:i}),e.exports=function(e,t,o){function u(e,r){E(e,r,{get:function(){var e=this,t=r;return(e=P(e)).view[i](t*c+e.byteOffset,!0)},set:function(e){var t=this,n=r;t=P(t),o&&(e=(e=X(e))<0?0:255<e?255:255&e),t.view[a](n*c+t.byteOffset,e,!0)},enumerable:!0})}var c=e.match(/\d+$/)[0]/8,n=e+(o?"Clamped":"")+"Array",i="get"+e,a="set"+e,l=m[n],f=l,d=f&&f.prototype,e={},t=(C?N&&(f=t(function(e,t,n,r){return v(e,d),$(k(t)?h(t)?void 0!==r?new l(t,w(n,c),r):void 0!==n?new l(t,w(n,c)):new l(t):T(t)?p(f,t):y(O,f,t):new l(g(t)),e,f)}),_&&_(f,A),Y(K(l),function(e){e in f||b(f,e,l[e])}),f.prototype=d):(f=t(function(e,t,n,r){v(e,d);var o,i,a=0,l=0;if(k(t)){if(!h(t))return T(t)?p(f,t):y(O,f,t);var s=t,l=w(n,c),n=t.byteLength;if(void 0===r){if(n%c)throw x(I);if((o=n-l)<0)throw x(I)}else if(n<(o=z(r)*c)+l)throw x(I);i=o/c}else i=g(t),s=new j(o=i*c);for(J(e,{buffer:s,byteOffset:l,byteLength:o,length:i,view:new te(s)});a<i;)u(e,a++)}),_&&_(f,A),d=f.prototype=q(M)),d.constructor!==f&&b(d,"constructor",f),Q(d).TypedArrayConstructor=f,R&&b(d,R,n),f!=l);e[n]=f,s({global:!0,constructor:!0,forced:t,sham:!C},e),D in f||b(f,D,c),D in d||b(d,D,c),G(n)}):e.exports=function(){}},function(e,t,n){var r=n(21),o=n(12),i=n(149),n=n(33).NATIVE_ARRAY_BUFFER_VIEWS,a=r.ArrayBuffer,l=r.Int8Array;e.exports=!n||!o(function(){l(1)})||!o(function(){new l(-1)})||!i(function(e){new l,new l(null),new l(1.5),new l(e)},!0)||o(function(){return 1!==new l(new a(2),1,void 0).length})},function(L,V,e){"use strict";function n(e){return[255&e]}function r(e){return[255&e,e>>8&255]}function o(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function t(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function N(e){return A(e,23,4)}function F(e){return A(e,52,8)}function i(e,t){W(e[O],t,{get:function(){return k(this)[t]}})}function a(e,t,n,r){if(n=y(n),e=k(e),n+t>e.byteLength)throw R(S);var o=k(e.buffer).bytes,n=n+e.byteOffset,e=Y(o,n,n+t);return r?e:Q(e)}function l(e,t,n,r,o,i){if(n=y(n),e=k(e),n+t>e.byteLength)throw R(S);for(var a=k(e.buffer).bytes,l=n+e.byteOffset,s=r(+o),u=0;u<t;u++)a[l+u]=s[i?u:t-u-1]}var s=e(21),u=e(17),c=e(34),U=e(311),f=e(104),d=e(72),p=e(159),h=e(12),m=e(110),z=e(66),B=e(73),y=e(312),v=e(870),H=e(91),b=e(108),q=e(80).f,W=e(38).f,K=e(313),Y=e(145),g=e(107),e=e(59),G=f.PROPER,w=f.CONFIGURABLE,k=e.get,_=e.set,f="ArrayBuffer",O="prototype",S="Wrong index",P=s[f],E=P,x=E&&E[O],e=s.DataView,j=e&&e[O],C=Object.prototype,$=s.Array,R=s.RangeError,J=u(K),Q=u([].reverse),A=v.pack,M=v.unpack;if(U){var T=G&&P.name!==f;if(h(function(){P(1)})&&h(function(){new P(-1)})&&!h(function(){return new P,new P(1.5),new P(NaN),T&&!w}))T&&w&&d(P,"name",f);else{(E=function(e){return m(this,x),new P(y(e))})[O]=x;for(var D,I=q(P),Z=0;I.length>Z;)(D=I[Z++])in E||d(E,D,P[D]);x.constructor=E}b&&H(j)!==C&&b(j,C);var s=new e(new E(2)),X=u(j.setInt8);s.setInt8(0,2147483648),s.setInt8(1,2147483649),!s.getInt8(0)&&s.getInt8(1)||p(j,{setInt8:function(e,t){X(this,e,t<<24>>24)},setUint8:function(e,t){X(this,e,t<<24>>24)}},{unsafe:!0})}else x=(E=function(e){m(this,x);e=y(e);_(this,{bytes:J($(e),0),byteLength:e}),c||(this.byteLength=e)})[O],j=(e=function(e,t,n){m(this,j),m(e,x);var r=k(e).byteLength,t=z(t);if(t<0||r<t)throw R("Wrong offset");if(r<t+(n=void 0===n?r-t:B(n)))throw R("Wrong length");_(this,{buffer:e,byteLength:n,byteOffset:t}),c||(this.buffer=e,this.byteLength=n,this.byteOffset=t)})[O],c&&(i(E,"byteLength"),i(e,"buffer"),i(e,"byteLength"),i(e,"byteOffset")),p(j,{getInt8:function(e){return a(this,1,e)[0]<<24>>24},getUint8:function(e){return a(this,1,e)[0]},getInt16:function(e){e=a(this,2,e,1<arguments.length?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(e){e=a(this,2,e,1<arguments.length?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(e){return t(a(this,4,e,1<arguments.length?arguments[1]:void 0))},getUint32:function(e){return t(a(this,4,e,1<arguments.length?arguments[1]:void 0))>>>0},getFloat32:function(e){return M(a(this,4,e,1<arguments.length?arguments[1]:void 0),23)},getFloat64:function(e){return M(a(this,8,e,1<arguments.length?arguments[1]:void 0),52)},setInt8:function(e,t){l(this,1,e,n,t)},setUint8:function(e,t){l(this,1,e,n,t)},setInt16:function(e,t){l(this,2,e,r,t,2<arguments.length?arguments[2]:void 0)},setUint16:function(e,t){l(this,2,e,r,t,2<arguments.length?arguments[2]:void 0)},setInt32:function(e,t){l(this,4,e,o,t,2<arguments.length?arguments[2]:void 0)},setUint32:function(e,t){l(this,4,e,o,t,2<arguments.length?arguments[2]:void 0)},setFloat32:function(e,t){l(this,4,e,N,t,2<arguments.length?arguments[2]:void 0)},setFloat64:function(e,t){l(this,8,e,F,t,2<arguments.length?arguments[2]:void 0)}});g(E,f),g(e,"DataView"),L.exports={ArrayBuffer:E,DataView:e}},function(e,t){var d=Array,p=Math.abs,h=Math.pow,m=Math.floor,y=Math.log,v=Math.LN2;e.exports={pack:function(e,t,n){var r,o,i,a=d(n),l=8*n-t-1,n=(1<<l)-1,s=n>>1,u=23===t?h(2,-24)-h(2,-77):0,c=e<0||0===e&&1/e<0?1:0,f=0;for((e=p(e))!=e||e===1/0?(o=e!=e?1:0,r=n):(r=m(y(e)/v),e*(i=h(2,-r))<1&&(r--,i*=2),2<=(e+=1<=r+s?u/i:u*h(2,1-s))*i&&(r++,i/=2),n<=r+s?(o=0,r=n):1<=r+s?(o=(e*i-1)*h(2,t),r+=s):(o=e*h(2,s-1)*h(2,t),r=0));8<=t;)a[f++]=255&o,o/=256,t-=8;for(r=r<<t|o,l+=t;0<l;)a[f++]=255&r,r/=256,l-=8;return a[--f]|=128*c,a},unpack:function(e,t){var n,r=e.length,o=8*r-t-1,i=(1<<o)-1,a=i>>1,l=o-7,s=r-1,o=e[s--],u=127&o;for(o>>=7;0<l;)u=256*u+e[s--],l-=8;for(n=u&(1<<-l)-1,u>>=-l,l+=t;0<l;)n=256*n+e[s--],l-=8;if(0===u)u=1-a;else{if(u===i)return n?NaN:o?-1/0:1/0;n+=h(2,t),u-=a}return(o?-1:1)*n*h(2,u-t)}}},function(e,t,n){var r=n(35),o=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){var r=n(66),o=RangeError;e.exports=function(e){e=r(e);if(e<0)throw o("The argument can't be less than 0");return e}},function(e,t,n){var p=n(92),h=n(27),m=n(182),y=n(46),v=n(49),b=n(187),g=n(148),w=n(186),k=n(33).aTypedArrayConstructor;e.exports=function(e){var t,n,r,o,i,a,l=m(this),s=y(e),u=arguments.length,c=1<u?arguments[1]:void 0,f=void 0!==c,d=g(s);if(d&&!w(d))for(a=(i=b(s,d)).next,s=[];!(o=h(a,i)).done;)s.push(o.value);for(f&&2<u&&(c=p(c,arguments[2])),n=v(s),r=new(k(l))(n),t=0;t<n;t++)r[t]=f?c(s[t],t):s[t];return r}},function(e,t,n){"use strict";var r=n(17),o=n(33),i=r(n(875)),a=o.aTypedArray;(0,o.exportTypedArrayMethod)("copyWithin",function(e,t){return i(a(this),e,t,2<arguments.length?arguments[2]:void 0)})},function(e,t,n){"use strict";var s=n(46),u=n(89),c=n(49),f=n(194),d=Math.min;e.exports=[].copyWithin||function(e,t){var n=s(this),r=c(n),o=u(e,r),i=u(t,r),e=2<arguments.length?arguments[2]:void 0,a=d((void 0===e?r:u(e,r))-i,r-o),l=1;for(i<o&&o<i+a&&(l=-1,i+=a-1,o+=a-1);0<a--;)i in n?n[o]=n[i]:f(n,o),o+=l,i+=l;return n}},function(e,t,n){"use strict";var r=n(33),o=n(52).every,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",function(e){return o(i(this),e,1<arguments.length?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(33),o=n(313),i=n(878),a=n(90),l=n(27),s=n(17),n=n(12),u=r.aTypedArray,r=r.exportTypedArrayMethod,c=s("".slice);r("fill",function(e){var t=arguments.length,e=(u(this),"Big"===c(a(this),0,3)?i(e):+e);return l(o,this,e,1<t?arguments[1]:void 0,2<t?arguments[2]:void 0)},n(function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}))},function(e,t,n){var r=n(178),o=TypeError;e.exports=function(e){e=r(e,"number");if("number"==typeof e)throw o("Can't convert number to bigint");return BigInt(e)}},function(e,t,n){"use strict";var r=n(33),o=n(52).filter,i=n(880),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",function(e){e=o(a(this),e,1<arguments.length?arguments[1]:void 0);return i(this,e)})},function(e,t,n){var r=n(881),o=n(173);e.exports=function(e,t){return r(o(e),t)}},function(e,t,n){var i=n(49);e.exports=function(e,t){for(var n=0,r=i(t),o=new e(r);n<r;)o[n]=t[n++];return o}},function(e,t,n){"use strict";var r=n(33),o=n(52).find,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",function(e){return o(i(this),e,1<arguments.length?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(33),o=n(52).findIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",function(e){return o(i(this),e,1<arguments.length?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(33),o=n(52).forEach,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",function(e){o(i(this),e,1<arguments.length?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(33),o=n(142).includes,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",function(e){return o(i(this),e,1<arguments.length?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(33),o=n(142).indexOf,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",function(e){return o(i(this),e,1<arguments.length?arguments[1]:void 0)})},function(e,t,n){"use strict";function r(){return c(p(this))}var o=n(21),i=n(12),a=n(17),l=n(33),s=n(3),u=n(30)("iterator"),n=o.Uint8Array,c=a(s.values),f=a(s.keys),d=a(s.entries),p=l.aTypedArray,o=l.exportTypedArrayMethod,h=n&&n.prototype,a=!i(function(){h[u].call([1])}),s=!!h&&h.values&&h[u]===h.values&&"values"===h.values.name;o("entries",function(){return d(p(this))},a),o("keys",function(){return f(p(this))},a),o("values",r,a||!s,{name:"values"}),o(u,r,a||!s,{name:"values"})},function(e,t,n){"use strict";var r=n(33),n=n(17),o=r.aTypedArray,r=r.exportTypedArrayMethod,i=n([].join);r("join",function(e){return i(o(this),e)})},function(e,t,n){"use strict";var r=n(33),o=n(81),i=n(890),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",function(e){var t=arguments.length;return o(i,a(this),1<t?[e,arguments[1]]:[e])})},function(e,t,n){"use strict";var o=n(81),i=n(56),a=n(66),l=n(49),n=n(150),s=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,n=n("lastIndexOf");e.exports=c||!n?function(e){if(c)return o(u,this,arguments)||0;var t=i(this),n=l(t),r=n-1;for((r=1<arguments.length?s(r,a(arguments[1])):r)<0&&(r=n+r);0<=r;r--)if(r in t&&t[r]===e)return r||0;return-1}:u},function(e,t,n){"use strict";var r=n(33),o=n(52).map,i=n(173),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",function(e){return o(a(this),e,1<arguments.length?arguments[1]:void 0,function(e,t){return new(i(e))(t)})})},function(e,t,n){"use strict";var r=n(33),o=n(315).left,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",function(e){var t=arguments.length;return o(i(this),e,t,1<t?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(33),o=n(315).right,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",function(e){var t=arguments.length;return o(i(this),e,t,1<t?arguments[1]:void 0)})},function(e,t,n){"use strict";var n=n(33),o=n.aTypedArray,n=n.exportTypedArrayMethod,i=Math.floor;n("reverse",function(){for(var e,t=o(this).length,n=i(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(21),i=n(27),o=n(33),a=n(49),l=n(314),s=n(46),n=n(12),u=r.RangeError,c=r.Int8Array,r=c&&c.prototype,f=r&&r.set,d=o.aTypedArray,r=o.exportTypedArrayMethod,p=!n(function(){var e=new Uint8ClampedArray(2);return i(f,e,{length:1,0:3},1),3!==e[1]}),o=p&&o.NATIVE_ARRAY_BUFFER_VIEWS&&n(function(){var e=new c(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]});r("set",function(e){d(this);var t=l(1<arguments.length?arguments[1]:void 0,1),n=s(e);if(p)return i(f,this,n,t);var e=this.length,r=a(n),o=0;if(e<r+t)throw u("Wrong length");for(;o<r;)this[t+o]=n[o++]},!p||o)},function(e,t,n){"use strict";var r=n(33),a=n(173),o=n(12),l=n(105),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("slice",function(e,t){for(var n=l(s(this),e,t),e=a(this),r=0,o=n.length,i=new e(o);r<o;)i[r]=n[r++];return i},o(function(){new Int8Array(1).slice()}))},function(e,t,n){"use strict";var r=n(33),o=n(52).some,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",function(e){return o(i(this),e,1<arguments.length?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(21),o=n(17),i=n(12),a=n(58),l=n(258),s=n(33),u=n(259),c=n(260),f=n(102),d=n(195),p=s.aTypedArray,n=s.exportTypedArrayMethod,h=r.Uint16Array,m=h&&o(h.prototype.sort),s=!(!m||i(function(){m(new h(2),null)})&&i(function(){m(new h(2),{})})),y=!!m&&!i(function(){if(f)return f<74;if(u)return u<67;if(c)return!0;if(d)return d<602;for(var e,t=new h(516),n=Array(516),r=0;r<516;r++)e=r%4,t[r]=515-r,n[r]=r-2*e+3;for(m(t,function(e,t){return(e/4|0)-(t/4|0)}),r=0;r<516;r++)if(t[r]!==n[r])return!0});n("sort",function(e){return void 0!==e&&a(e),y?m(this,e):l(p(this),(n=e,function(e,t){return void 0!==n?+n(e,t)||0:t!=t?-1:e!=e?1:0===e&&0===t?0<1/e&&1/t<0?1:-1:t<e}));var n},!y||s)},function(e,t,n){"use strict";var r=n(33),o=n(73),i=n(89),a=n(173),l=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",function(e,t){var n=l(this),r=n.length,e=i(e,r);return new(a(n))(n.buffer,n.byteOffset+e*n.BYTES_PER_ELEMENT,o((void 0===t?r:i(t,r))-e))})},function(e,t,n){"use strict";var r=n(21),o=n(81),i=n(33),a=n(12),l=n(105),s=r.Int8Array,u=i.aTypedArray,n=i.exportTypedArrayMethod,c=[].toLocaleString,f=!!s&&a(function(){c.call(new s(1))});n("toLocaleString",function(){return o(c,f?l(u(this)):u(this),l(arguments))},a(function(){return[1,2].toLocaleString()!=new s([1,2]).toLocaleString()})||!a(function(){s.prototype.toLocaleString.call([1,2])}))},function(e,t,n){"use strict";var r=n(33).exportTypedArrayMethod,o=n(12),i=n(21),n=n(17),i=i.Uint8Array,i=i&&i.prototype||{},a=[].toString,l=n([].join),n=(o(function(){a.call({})})&&(a=function(){return l(this)}),i.toString!=a);r("toString",a,n)},function(e,t,n){var r;void 0!==(t="function"==typeof(r=function(){return function t(e,n,r){var o=window,i="application/octet-stream",a=r||i,l=e,s=!n&&!r&&l,u=document.createElement("a"),c=function(e){return String(e)},f=o.Blob||o.MozBlob||o.WebKitBlob||c,d=n||"download",p,h;f=f.call?f.bind(o):Blob;if(String(this)==="true"){l=[l,a];a=l[0];l=l[1]}if(s&&s.length<2048){d=s.split("/").pop().split("?")[0];u.href=s;if(u.href.indexOf(s)!==-1){var m=new XMLHttpRequest;m.open("GET",s,true);m.responseType="blob";m.onload=function(e){t(e.target.response,d,i)};setTimeout(function(){m.send()},0);return m}}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(l))if(l.length>1024*1024*1.999&&f!==c){l=g(l);a=l.type||i}else return navigator.msSaveBlob?navigator.msSaveBlob(g(l),d):w(l);else if(/([\x80-\xff])/.test(l)){var y=0,v=new Uint8Array(l.length),b=v.length;for(y;y<b;++y)v[y]=l.charCodeAt(y);l=new f([v],{type:a})}p=l instanceof f?l:new f([l],{type:a});function g(e){var t=e.split(/[:;,]/),n=t[1],r=t[2]=="base64"?atob:decodeURIComponent,o=r(t.pop()),i=o.length,a=0,l=new Uint8Array(i);for(a;a<i;++a)l[a]=o.charCodeAt(a);return new f([l],{type:n})}function w(e,t){if("download"in u){u.href=e;u.setAttribute("download",d);u.className="download-js-link";u.innerHTML="downloading...";u.style.display="none";document.body.appendChild(u);setTimeout(function(){u.click();document.body.removeChild(u);if(t===true)setTimeout(function(){o.URL.revokeObjectURL(u.href)},250)},66);return true}if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent)){if(/^data:/.test(e))e="data:"+e.replace(/^data:([\w\/\-\+]+)/,i);if(!window.open(e))if(confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page."))location.href=e;return true}var n=document.createElement("iframe");document.body.appendChild(n);if(!t&&/^data:/.test(e))e="data:"+e.replace(/^data:([\w\/\-\+]+)/,i);n.src=e;setTimeout(function(){document.body.removeChild(n)},333)}if(navigator.msSaveBlob)return navigator.msSaveBlob(p,d);if(o.URL)w(o.URL.createObjectURL(p),true);else{if(typeof p==="string"||p.constructor===c)try{return w("data:"+a+";base64,"+o.btoa(p))}catch(e){return w("data:"+a+","+encodeURIComponent(p))}h=new FileReader;h.onload=function(e){w(this.result)};h.readAsDataURL(p)}return true}})?r.apply(t,[]):r)&&(e.exports=t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(20);var r=(n=n(24))&&n.__esModule?n:{default:n};t.default=function(a,l){return function(o,i){return new r.default(function(t,n){var r=new XMLHttpRequest,e=(r.onerror=function(e){e.networkError=!0,n(e)},r.onabort=function(e){e.networkError=!0,n(e)},r.onload=function(){var e;200<=r.status&&r.status<300?(e=r.getResponseHeader("Content-Type")||o.type,t(new File([r.response],o.name,{type:e}))):n(r.response||"Unable to process file")},r.onabort=n,r.open("POST",l.url),a.getToken()),e=(e&&r.setRequestHeader("x-jwt-token",e),r.responseType="arraybuffer",new FormData);e.append("file",o),e.append("processorOptions",JSON.stringify(l.options||{})),e.append("options",JSON.stringify(i||{})),r.send(e)})}}},function(e,t,n){e.exports=function(){"use strict";function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var f=e(function(t,e){(function(e){t.exports=e()})(function(c){var a=function(e,t){return e+t&4294967295},r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function l(e,t,n,r,o,i){t=a(a(t,e),a(r,i));return a(t<<o|t>>>32-o,n)}function s(e,t,n,r,o,i,a){return l(t&n|~t&r,e,t,o,i,a)}function u(e,t,n,r,o,i,a){return l(t&r|n&~r,e,t,o,i,a)}function f(e,t,n,r,o,i,a){return l(t^n^r,e,t,o,i,a)}function d(e,t,n,r,o,i,a){return l(n^(t|~r),e,t,o,i,a)}function p(e,t){var n=e[0],r=e[1],o=e[2],i=e[3];n=s(n,r,o,i,t[0],7,-680876936);i=s(i,n,r,o,t[1],12,-389564586);o=s(o,i,n,r,t[2],17,606105819);r=s(r,o,i,n,t[3],22,-1044525330);n=s(n,r,o,i,t[4],7,-176418897);i=s(i,n,r,o,t[5],12,1200080426);o=s(o,i,n,r,t[6],17,-1473231341);r=s(r,o,i,n,t[7],22,-45705983);n=s(n,r,o,i,t[8],7,1770035416);i=s(i,n,r,o,t[9],12,-1958414417);o=s(o,i,n,r,t[10],17,-42063);r=s(r,o,i,n,t[11],22,-1990404162);n=s(n,r,o,i,t[12],7,1804603682);i=s(i,n,r,o,t[13],12,-40341101);o=s(o,i,n,r,t[14],17,-1502002290);r=s(r,o,i,n,t[15],22,1236535329);n=u(n,r,o,i,t[1],5,-165796510);i=u(i,n,r,o,t[6],9,-1069501632);o=u(o,i,n,r,t[11],14,643717713);r=u(r,o,i,n,t[0],20,-373897302);n=u(n,r,o,i,t[5],5,-701558691);i=u(i,n,r,o,t[10],9,38016083);o=u(o,i,n,r,t[15],14,-660478335);r=u(r,o,i,n,t[4],20,-405537848);n=u(n,r,o,i,t[9],5,568446438);i=u(i,n,r,o,t[14],9,-1019803690);o=u(o,i,n,r,t[3],14,-187363961);r=u(r,o,i,n,t[8],20,1163531501);n=u(n,r,o,i,t[13],5,-1444681467);i=u(i,n,r,o,t[2],9,-51403784);o=u(o,i,n,r,t[7],14,1735328473);r=u(r,o,i,n,t[12],20,-1926607734);n=f(n,r,o,i,t[5],4,-378558);i=f(i,n,r,o,t[8],11,-2022574463);o=f(o,i,n,r,t[11],16,1839030562);r=f(r,o,i,n,t[14],23,-35309556);n=f(n,r,o,i,t[1],4,-1530992060);i=f(i,n,r,o,t[4],11,1272893353);o=f(o,i,n,r,t[7],16,-155497632);r=f(r,o,i,n,t[10],23,-1094730640);n=f(n,r,o,i,t[13],4,681279174);i=f(i,n,r,o,t[0],11,-358537222);o=f(o,i,n,r,t[3],16,-722521979);r=f(r,o,i,n,t[6],23,76029189);n=f(n,r,o,i,t[9],4,-640364487);i=f(i,n,r,o,t[12],11,-421815835);o=f(o,i,n,r,t[15],16,530742520);r=f(r,o,i,n,t[2],23,-995338651);n=d(n,r,o,i,t[0],6,-198630844);i=d(i,n,r,o,t[7],10,1126891415);o=d(o,i,n,r,t[14],15,-1416354905);r=d(r,o,i,n,t[5],21,-57434055);n=d(n,r,o,i,t[12],6,1700485571);i=d(i,n,r,o,t[3],10,-1894986606);o=d(o,i,n,r,t[10],15,-1051523);r=d(r,o,i,n,t[1],21,-2054922799);n=d(n,r,o,i,t[8],6,1873313359);i=d(i,n,r,o,t[15],10,-30611744);o=d(o,i,n,r,t[6],15,-1560198380);r=d(r,o,i,n,t[13],21,1309151649);n=d(n,r,o,i,t[4],6,-145523070);i=d(i,n,r,o,t[11],10,-1120210379);o=d(o,i,n,r,t[2],15,718787259);r=d(r,o,i,n,t[9],21,-343485551);e[0]=a(n,e[0]);e[1]=a(r,e[1]);e[2]=a(o,e[2]);e[3]=a(i,e[3])}function h(e){var t=[],n;for(n=0;n<64;n+=4)t[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return t}function m(e){var t=[],n;for(n=0;n<64;n+=4)t[n>>2]=e[n]+(e[n+1]<<8)+(e[n+2]<<16)+(e[n+3]<<24);return t}function o(e){var t=e.length,n=[1732584193,-271733879,-1732584194,271733878],r,o,i,a,l,s;for(r=64;r<=t;r+=64)p(n,h(e.substring(r-64,r)));e=e.substring(r-64);o=e.length;i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(r=0;r<o;r+=1)i[r>>2]|=e.charCodeAt(r)<<(r%4<<3);i[r>>2]|=128<<(r%4<<3);if(r>55){p(n,i);for(r=0;r<16;r+=1)i[r]=0}a=t*8;a=a.toString(16).match(/(.*?)(.{0,8})$/);l=parseInt(a[2],16);s=parseInt(a[1],16)||0;i[14]=l;i[15]=s;p(n,i);return n}function i(e){var t=e.length,n=[1732584193,-271733879,-1732584194,271733878],r,o,i,a,l,s;for(r=64;r<=t;r+=64)p(n,m(e.subarray(r-64,r)));e=r-64<t?e.subarray(r-64):new Uint8Array(0);o=e.length;i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(r=0;r<o;r+=1)i[r>>2]|=e[r]<<(r%4<<3);i[r>>2]|=128<<(r%4<<3);if(r>55){p(n,i);for(r=0;r<16;r+=1)i[r]=0}a=t*8;a=a.toString(16).match(/(.*?)(.{0,8})$/);l=parseInt(a[2],16);s=parseInt(a[1],16)||0;i[14]=l;i[15]=s;p(n,i);return n}function n(e){var t="",n;for(n=0;n<4;n+=1)t+=r[e>>n*8+4&15]+r[e>>n*8&15];return t}function y(e){var t;for(t=0;t<e.length;t+=1)e[t]=n(e[t]);return e.join("")}if(y(o("hello"))!=="5d41402abc4b2a76b9719d911017c592")a=function(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535};if(typeof ArrayBuffer!=="undefined"&&!ArrayBuffer.prototype.slice)(function(){function u(e,t){e=e|0||0;if(e<0)return Math.max(e+t,0);return Math.min(e,t)}ArrayBuffer.prototype.slice=function(e,t){var n=this.byteLength,r=u(e,n),o=n,i,a,l,s;if(t!==c)o=u(t,n);if(r>o)return new ArrayBuffer(0);i=o-r;a=new ArrayBuffer(i);l=new Uint8Array(a);s=new Uint8Array(this,r,i);l.set(s);return a}})();function v(e){if(/[\u0080-\uFFFF]/.test(e))e=unescape(encodeURIComponent(e));return e}function t(e,t){var n=e.length,r=new ArrayBuffer(n),o=new Uint8Array(r),i;for(i=0;i<n;i+=1)o[i]=e.charCodeAt(i);return t?o:r}function b(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function g(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);r.set(new Uint8Array(e));r.set(new Uint8Array(t),e.byteLength);return n?r:r.buffer}function w(e){var t=[],n=e.length,r;for(r=0;r<n-1;r+=2)t.push(parseInt(e.substr(r,2),16));return String.fromCharCode.apply(String,t)}function k(){this.reset()}k.prototype.append=function(e){this.appendBinary(v(e));return this};k.prototype.appendBinary=function(e){this._buff+=e;this._length+=e.length;var t=this._buff.length,n;for(n=64;n<=t;n+=64)p(this._hash,h(this._buff.substring(n-64,n)));this._buff=this._buff.substring(n-64);return this};k.prototype.end=function(e){var t=this._buff,n=t.length,r,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i;for(r=0;r<n;r+=1)o[r>>2]|=t.charCodeAt(r)<<(r%4<<3);this._finish(o,n);i=y(this._hash);if(e)i=w(i);this.reset();return i};k.prototype.reset=function(){this._buff="";this._length=0;this._hash=[1732584193,-271733879,-1732584194,271733878];return this};k.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}};k.prototype.setState=function(e){this._buff=e.buff;this._length=e.length;this._hash=e.hash;return this};k.prototype.destroy=function(){delete this._hash;delete this._buff;delete this._length};k.prototype._finish=function(e,t){var n=t,r,o,i;e[n>>2]|=128<<(n%4<<3);if(n>55){p(this._hash,e);for(n=0;n<16;n+=1)e[n]=0}r=this._length*8;r=r.toString(16).match(/(.*?)(.{0,8})$/);o=parseInt(r[2],16);i=parseInt(r[1],16)||0;e[14]=o;e[15]=i;p(this._hash,e)};k.hash=function(e,t){return k.hashBinary(v(e),t)};k.hashBinary=function(e,t){var n=o(e),r=y(n);return t?w(r):r};k.ArrayBuffer=function(){this.reset()};k.ArrayBuffer.prototype.append=function(e){var t=g(this._buff.buffer,e,true),n=t.length,r;this._length+=e.byteLength;for(r=64;r<=n;r+=64)p(this._hash,m(t.subarray(r-64,r)));this._buff=r-64<n?new Uint8Array(t.buffer.slice(r-64)):new Uint8Array(0);return this};k.ArrayBuffer.prototype.end=function(e){var t=this._buff,n=t.length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],o,i;for(o=0;o<n;o+=1)r[o>>2]|=t[o]<<(o%4<<3);this._finish(r,n);i=y(this._hash);if(e)i=w(i);this.reset();return i};k.ArrayBuffer.prototype.reset=function(){this._buff=new Uint8Array(0);this._length=0;this._hash=[1732584193,-271733879,-1732584194,271733878];return this};k.ArrayBuffer.prototype.getState=function(){var e=k.prototype.getState.call(this);e.buff=b(e.buff);return e};k.ArrayBuffer.prototype.setState=function(e){e.buff=t(e.buff,true);return k.prototype.setState.call(this,e)};k.ArrayBuffer.prototype.destroy=k.prototype.destroy;k.ArrayBuffer.prototype._finish=k.prototype._finish;k.ArrayBuffer.hash=function(e,t){var n=i(new Uint8Array(e)),r=y(n);return t?w(r):r};return k})});class t{md5(n,t,r){this.aborted=false;this.progress=0;let o=0;const i=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice;const a=2097152;const l=Math.ceil(n.size/a);const s=new f.ArrayBuffer;const u=new FileReader;c();u.onloadend=e=>{s.append(e.target.result);o++;this.progress=o/l;if(r&&typeof r==="function")r(this.progress);if(this.aborted){t("aborted");return}if(o<l)c();else t(null,s.end())};function c(){const e=o*a;const t=e+a>=n.size?n.size:e+a;u.readAsArrayBuffer(i.call(n,e,t))}}abort(){this.aborted=true}}return t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n=((n=n(317))&&n.__esModule?n:{default:n}).default;t.default=n},function(e,t,n){"use strict";function r(e,t){const n=s(e),r=s(t),o=n.pop(),i=r.pop();e=d(n,r);return 0!==e?e:o&&i?d(o.split("."),i.split(".")):o||i?o?-1:1:0}n.r(t),n.d(t,"default",function(){return r}),n.d(t,"validate",function(){return o}),n.d(t,"compare",function(){return l}),n.d(t,"satisfies",function(){return i});const o=e=>"string"==typeof e&&/^[v\d]/.test(e)&&a.test(e),l=(e,t,n)=>{m(n);e=r(e,t);return p[n].includes(e)},i=(e,t)=>{var n=t.match(/^([<>=~^]+)/),n=n?n[1]:"=";if("^"!==n&&"~"!==n)return l(e,t,n);var[e,r,o]=s(e),[t,i,a]=s(t);return 0===f(e,t)&&("^"===n?0<=d([r,o],[i,a]):0===f(r,i)&&0<=f(o,a))},a=(r.validate=o,r.compare=l,r.sastisfies=i,/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i),s=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(a);if(t)return t.shift(),t;throw new Error(`Invalid argument not valid semver ('${e}' received)`)},u=e=>"*"===e||"x"===e||"X"===e,c=e=>{var t=parseInt(e,10);return isNaN(t)?e:t},f=(e,t)=>{if(u(e)||u(t))return 0;e=c(e),t=c(t);var[e,t]=typeof e!=typeof t?[String(e),String(t)]:[e,t];return t<e?1:e<t?-1:0},d=(t,n)=>{for(let e=0;e<Math.max(t.length,n.length);e++){var r=f(t[e]||0,n[e]||0);if(0!==r)return r}return 0},p={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},h=Object.keys(p),m=e=>{if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===h.indexOf(e))throw new Error("Invalid operator, expected one of "+h.join("|"))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(r=n(299))&&r.__esModule?r:{default:r};n={lng:"en",nsSeparator:"::",keySeparator:".|.",pluralSeparator:"._.",contextSeparator:"._.",resources:{en:{translation:(0,n(19).fastCloneDeep)(r.default)}}};t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(1),n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(9);var i=(n=n(83))&&n.__esModule?n:{default:n};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 l(){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=c(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=c(n),t=(e=r?(e=c(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e);var n,r=u(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,e=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"hidden",tableView:!1,inputType:"hidden"}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Hidden",group:"data",icon:"user-secret",weight:0,documentation:"/userguide/#hidden",schema:o.schema()}}}],(n=[{key:"defaultSchema",get:function(){return o.schema()}},{key:"inputInfo",get:function(){var e=l(c(o.prototype),"elementInfo",this).call(this);return e.type="input",e.attr.type="hidden",e.changeEvent="change",e}},{key:"skipInEmail",get:function(){return!0}},{key:"validateMultiple",value:function(){return!1}},{key:"labelIsHidden",value:function(){return!0}},{key:"emptyValue",get:function(){return""}},{key:"setValue",value:function(e){return this.updateValue(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{})}},{key:"getValue",value:function(){return this.dataValue}}])&&a(t.prototype,n),e&&a(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(i.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(1),n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(51),n(16),n(26),n(18),n(0),n(9);var i=r(n(53)),a=r(n(10));function r(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(){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=f(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=f(n),t=(e=r?(e=f(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e);var n,r=c(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,e=[{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:"HTML",type:"htmlelement",tag:"p",attrs:[],content:"",input:!1,persistent:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"HTML Element",group:"layout",icon:"code",weight:0,documentation:"/userguide/#html-element-component",schema:o.schema()}}}],(n=[{key:"defaultSchema",get:function(){return o.schema()}},{key:"content",get:function(){if(this.builderMode)return this.component.content;if("select"===this.component.content.replace(/(<(\/?[^>]+)>)/g,"").trim())return" ".concat(this.component.content," ");var e=a.default.get(this.root,"submission",{}),e=this.component.content?this.interpolate(this.component.content,{metadata:e.metadata||{},submission:e,data:this.rootValue,row:this.data}):"";return this.sanitize(e,this.shouldSanitizeValue)}},{key:"singleTags",get:function(){return["br","img","hr"]}},{key:"checkRefreshOn",value:function(e){s(f(o.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 t=this,n=a.default.get(this.root,"submission",{});return this.renderTemplate("html",{component:this.component,tag:this.component.tag,attrs:(this.component.attrs||[]).map(function(e){return{attr:e.attr,value:t.interpolate(e.value,{metadata:n.metadata||{},submission:n,data:t.rootValue,row:t.data})}}),content:this.content,singleTags:this.singleTags})}},{key:"render",value:function(){return s(f(o.prototype),"render",this).call(this,this.renderContent())}},{key:"attach",value:function(e){return this.loadRefs(e,{html:"single"}),s(f(o.prototype),"attach",this).call(this,e)}}])&&l(t.prototype,n),e&&l(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(i.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(1),n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(16),n(26),n(9);var r=a(n(77)),s=n(19),i=a(n(316));function a(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)}}function c(){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)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=h(n),t=(e=r?(e=h(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return p(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)}n=function(e){var t=l;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e);var n,a=d(l);function l(){var e,t=this,n=l;if(!(t instanceof n))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=a.call.apply(a,[this].concat(o))).noField=!0,e.on("componentError",function(){(0,s.hasInvalidComponent)(p(e))&&e.collapsed&&(e.collapsed=!1)}),e}return t=l,e=[{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:"Panel",type:"panel",key:"panel",title:"Panel",theme:"default",breadcrumb:"default",components:[],clearOnHide:!1,input:!1,tableView:!1,persistent:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Panel",icon:"list-alt",group:"layout",documentation:"/userguide/#panels",weight:30,schema:l.schema()}}}],(n=[{key:"defaultSchema",get:function(){return l.schema()}},{key:"templateName",get:function(){return"panel"}},{key:"getComponent",value:function(e,t,n){var r;return(null==(r=this.root)?void 0:r.parent)instanceof i.default&&(e=e.replace(this._parentPath,"")),c(h(l.prototype),"getComponent",this).call(this,e,t,n)}}])&&u(t.prototype,n),e&&u(t,e),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(1),n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(9);var i=r(n(97)),a=r(n(10));function r(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(){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=f(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=f(n),t=(e=r?(e=f(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e);var n,r=c(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,e=[{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:"password",label:"Password",key:"password",protected:!0,tableView:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Password",icon:"asterisk",group:"basic",documentation:"/userguide/#password",weight:40,schema:o.schema()}}}],(n=[{key:"defaultSchema",get:function(){return a.default.omit(o.schema(),["protected","tableView"])}},{key:"inputInfo",get:function(){var e=s(f(o.prototype),"inputInfo",this);return e.attr.type="password",e}}])&&l(t.prototype,n),e&&l(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(i.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(9);var i=(n=n(97))&&n.__esModule?n:{default:n};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 l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=u(n),t=(e=r?(e=u(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e);var n,r=s(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,e=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"phoneNumber",label:"Phone Number",key:"phoneNumber",inputType:"tel",inputMask:"(999) 999-9999",inputMode:"decimal",displayMask:""}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Phone Number",group:"advanced",icon:"phone-square",weight:30,documentation:"/userguide/#phonenumber",schema:o.schema()}}}],(n=[{key:"defaultSchema",get:function(){return o.schema()}}])&&a(t.prototype,n),e&&a(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(i.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(1),n(8),n(13),n(11),n(23),n(2),n(22),n(14),n(31),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(20),n(0),n(9);var i=r(n(53)),l=n(36),s=r(n(95)),u=r(n(914)),c=r(n(24));function r(e){return e&&e.__esModule?e:{default:e}}function a(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function f(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?a(Object(o),!0).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=y(n),t=(e=r?(e=y(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e);var n,r=m(a);function a(){var e=this,t=a;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=a,e=[{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:"recaptcha",key:"recaptcha",label:"reCAPTCHA"}].concat(t))}},{key:"builderInfo",get:function(){return{title:"reCAPTCHA",group:"premium",icon:"refresh",documentation:"/userguide/#recaptcha",weight:40,schema:a.schema()}}}],(n=[{key:"render",value:function(){return this.recaptchaResult=null,this.builderMode?p(y(a.prototype),"render",this).call(this,"reCAPTCHA"):p(y(a.prototype),"render",this).call(this,"",!0)}},{key:"createInput",value:function(){var e;this.builderMode?this.append(this.text(this.name)):(e=(0,s.default)(this.root.form,"settings.recaptcha.siteKey"))?(e="https://www.google.com/recaptcha/api.js?render=".concat(e),this.recaptchaApiReady=l.GlobalFormio.requireLibrary("googleRecaptcha","grecaptcha",e,!0)):console.warn("There is no Site Key specified in settings in form JSON")}},{key:"createLabel",value:function(){}},{key:"verify",value:function(t){var e,r=this,o=(0,s.default)(this.root.form,"settings.recaptcha.siteKey");o?(this.recaptchaApiReady||(e="https://www.google.com/recaptcha/api.js?render=".concat((0,s.default)(this.root.form,"settings.recaptcha.siteKey")),this.recaptchaApiReady=l.GlobalFormio.requireLibrary("googleRecaptcha","grecaptcha",e,!0)),this.recaptchaApiReady&&(this.recaptchaVerifiedPromise=new c.default(function(n,e){r.recaptchaApiReady.then(function(){r.isLoading||(r.isLoading=!0,grecaptcha.ready((0,u.default)(function(){grecaptcha.execute(o,{action:t}).then(function(e){return r.sendVerificationRequest(e).then(function(e){var t=e.verificationResult,e=e.token;return r.recaptchaResult=f(f({},t),{},{token:e}),r.updateValue(r.recaptchaResult),n(t)})}).catch(function(){r.isLoading=!1})},1e3)))}).catch(function(){return e()})}).then(function(){r.isLoading=!1}))):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 p(y(a.prototype),"beforeSubmit",e).call(e)}):p(y(a.prototype),"beforeSubmit",this).call(this)}},{key:"sendVerificationRequest",value:function(t){return l.GlobalFormio.makeStaticRequest("".concat(l.GlobalFormio.projectUrl,"/recaptcha?recaptchaToken=").concat(t)).then(function(e){return{verificationResult:e,token:t}})}},{key:"checkComponentValidity",value:function(e,t,n){var r=this,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},i=(e=e||this.rootValue,n=n||this.data,o.async);if(!(void 0!==i&&i))return p(y(a.prototype),"checkComponentValidity",this).call(this,e,t,n,o);i=n[this.component.key];return i&&i.token?i.success?this.hook("validateReCaptcha",i.token,function(){return c.default.resolve(!0)}).then(function(e){return e}).catch(function(e){return r.setCustomValidity(e.message||e),!1}):(this.setCustomValidity("ReCAPTCHA: Token validation error"),c.default.resolve(!1)):(this.setCustomValidity("ReCAPTCHA: Token is not specified in submission"),c.default.resolve(!1))}},{key:"normalizeValue",value:function(e){return this.recaptchaResult||e}}])&&d(t.prototype,n),e&&d(t,e),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.default);t.default=n},function(e,t,n){var b=n(128),g=n(915),w=n(274),k=Math.max,_=Math.min;e.exports=function(r,n,e){var o,i,a,l,s,u,c=0,f=!1,d=!1,t=!0;if("function"!=typeof r)throw new TypeError("Expected a function");function p(e){var t=o,n=i;return o=i=void 0,c=e,l=r.apply(n,t)}function h(e){var t=e-u;return void 0===u||n<=t||t<0||d&&a<=e-c}function m(){var e,t=g();if(h(t))return y(t);s=setTimeout(m,(e=n-((t=t)-u),d?_(e,a-(t-c)):e))}function y(e){return s=void 0,t&&o?p(e):(o=i=void 0,l)}function v(){var e=g(),t=h(e);if(o=arguments,i=this,u=e,t){if(void 0===s)return c=e=u,s=setTimeout(m,n),f?p(e):l;if(d)return clearTimeout(s),s=setTimeout(m,n),p(u)}return void 0===s&&(s=setTimeout(m,n)),l}return n=w(n)||0,b(e)&&(f=!!e.leading,d="maxWait"in e,a=d?k(w(e.maxWait)||0,n):a,t="trailing"in e?!!e.trailing:t),v.cancel=function(){void 0!==s&&clearTimeout(s),o=u=i=s=void(c=0)},v.flush=function(){return void 0===s?l:y(g())},v}},function(e,t,n){var r=n(204);e.exports=function(){return r.Date.now()}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(1),n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(9);var i=(n=n(321))&&n.__esModule?n:{default:n};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 l(){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=c(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=c(n),t=(e=r?(e=c(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e);var n,r=u(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,e=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"resource",label:"Resource",key:"resource",dataSrc:"resource",resource:"",project:"",template:"<span>{{ item.data }}</span>"}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Resource",group:"premium",icon:"files-o",weight:90,documentation:"/userguide/#resource",schema:o.schema()}}}],(n=[{key:"init",value:function(){l(c(o.prototype),"init",this).call(this),this.component.dataSrc="resource",this.component.data={resource:this.component.resource}}},{key:"defaultSchema",get:function(){return o.schema()}}])&&a(t.prototype,n),e&&a(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(i.default);t.default=n},function(e,t,n){n(15)({target:"Number",stat:!0},{isFinite:n(918)})},function(e,t,n){var r=n(21).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(1),n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.KEY_CODES=void 0,n(0),n(16),n(9);n=(n=n(322))&&n.__esModule?n:{default:n};function _(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):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)}}function O(){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)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=S(n),t=(e=r?(e=S(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return s(t)}}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.default.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption)return!!(e=this.passedElement.placeholderOption)&&e.text;var e=this.config,t=e.placeholder,e=e.placeholderValue,n=this.passedElement.element.dataset;if(t){if(e)return e;if(n.placeholder)return n.placeholder}return!1};var P={BACK_KEY:46,DELETE_KEY:8,TAB_KEY:9,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},n=(t.KEY_CODES=P,function(e){var t=k;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e);var n,i=l(k);function k(){var e=this,t=k;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r)))._onTabKey=e._onTabKey.bind(s(e)),e.isDirectionUsing=!1,e.shouldOpenDropDown=!0,e}return t=k,(e=[{key:"_handleButtonAction",value:function(e,t){if(!this._isSelectOneElement)return O(S(k.prototype),"_handleButtonAction",this).call(this,e,t);e&&t&&this.config.removeItems&&this.config.removeItemButton&&O(S(k.prototype),"_handleButtonAction",this).call(this,e,t)}},{key:"_onEnterKey",value:function(e){"choices__button"===e.event.target.className&&(this.shouldOpenDropDown=!1),O(S(k.prototype),"_onEnterKey",this).call(this,e)}},{key:"_onDirectionKey",value:function(){for(var e,t=this,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];if(!this._isSelectOneElement)return(e=O(S(k.prototype),"_onDirectionKey",this)).call.apply(e,[this].concat(r));this.isDirectionUsing=!0,(e=O(S(k.prototype),"_onDirectionKey",this)).call.apply(e,[this].concat(r)),this.onSelectValue.apply(this,r),clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.isDirectionUsing=!1},250)}},{key:"_onTabKey",value:function(e){var t=e.activeItems;e.hasActiveDropdown&&this._selectHighlightedChoice(t)}},{key:"_selectHighlightedChoice",value:function(e){var t=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));t&&this._handleChoiceAction(e,t),event.preventDefault()}},{key:"_onKeyDown",value:function(e){if(!this._isSelectOneElement)return O(S(k.prototype),"_onKeyDown",this).call(this,e);var t,n,r,o,i,a,l,s,u,c,f,d,p,h,m,y,v=e.target,b=e.keyCode,g=e.ctrlKey,w=e.metaKey;v!==this.input.element&&!this.containerOuter.element.contains(v)||(t=this._store.activeItems,n=this.input.isFocussed,r=this.dropdown.isActive,o=this.itemList.hasChildren,i=String.fromCharCode(b),a=P.BACK_KEY,l=P.DELETE_KEY,s=P.TAB_KEY,u=P.ENTER_KEY,c=P.A_KEY,f=P.ESC_KEY,d=P.UP_KEY,p=P.DOWN_KEY,h=P.PAGE_UP_KEY,m=P.PAGE_DOWN_KEY,g=g||w,r||this._isTextElement||!/[a-zA-Z0-9-_ ]/.test(i)||(y=this.input.element.value,this.input.element.value=y?"".concat(y).concat(i):i,this.showDropdown()),_(y={},c,this._onAKey),_(y,s,this._onTabKey),_(y,u,this._onEnterKey),_(y,f,this._onEscapeKey),_(y,d,this._onDirectionKey),_(y,h,this._onDirectionKey),_(y,p,this._onDirectionKey),_(y,m,this._onDirectionKey),_(y,l,this._onDeleteKey),_(y,a,this._onDeleteKey),y[b]&&y[b]({event:e,target:v,keyCode:b,metaKey:w,activeItems:t,hasFocusedInput:n,hasActiveDropdown:r,hasItems:o,hasCtrlDownKeyPressed:g}))}},{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=O(S(k.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=O(S(k.prototype),"hideDropdown",this)).call.apply(e,[this].concat(n))}}},{key:"_onBlur",value:function(){var e;if(!this._isScrollingOnIe){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=O(S(k.prototype),"_onBlur",this)).call.apply(e,[this].concat(n))}}}])&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),k}(n.default));t.default=n},function(e,t,n){"use strict";n(8),n(13),n(11),n(2),n(6),n(7),n(5),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(20),n(1),n(3),n(4),n(39),n(18),n(22),n(23),n(14),n(25),n(50),n(9);var o=i(n(10)),r=i(n(320));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 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(){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=d(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=d(n),t=(e=r?(e=d(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=u;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e);var n,i=f(u);function u(){var e=this,t=u;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r))).validators=e.validators.concat("minSelectedCount","maxSelectedCount"),e}return t=u,e=[{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:"selectboxes",label:"Select Boxes",key:"selectBoxes",inline:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Select Boxes",group:"basic",icon:"plus-square",weight:60,documentation:"/userguide/#selectboxes",schema:u.schema()}}}],(n=[{key:"init",value:function(){c(d(u.prototype),"init",this).call(this),this.component.inputType="checkbox"}},{key:"defaultSchema",get:function(){return u.schema()}},{key:"inputInfo",get:function(){var e=c(d(u.prototype),"elementInfo",this).call(this);return e.attr.name+="[]",e.attr.type="checkbox",e.attr.class="form-check-input",e}},{key:"emptyValue",get:function(){return this.component.values.reduce(function(e,t){return t.value&&(e[t.value]=!1),e},{})}},{key:"defaultValue",get:function(){var e=this.emptyValue;return o.default.isEmpty(this.component.defaultValue)||(e=this.component.defaultValue),e=this.component.customDefaultValue&&!this.options.preview?this.evaluate(this.component.customDefaultValue,{value:""},"value"):e}},{key:"isEmpty",value:function(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.dataValue,n=!0;for(e in t)if(t.hasOwnProperty(e)&&t[e]){n=!1;break}return n}},{key:"getValue",value:function(){if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var t={};return o.default.each(this.refs.input,function(e){t[e.value]=!!e.checked}),t}},{key:"normalizeValue",value:function(t){var e,n,r;return"object"!==a(t=t||{})&&(t="string"==typeof t?(r=!0,(n=t)in(e={})?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e):{}),Array.isArray(t)&&o.default.each(t,function(e){t[e]=!0}),t}},{key:"setValue",value:function(t){var e=this.updateValue(t,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{});return t=this.dataValue,this.isHtmlRenderMode()?e&&this.redraw():o.default.each(this.refs.input,function(e){o.default.isUndefined(t[e.value])&&(t[e.value]=!1),e.checked=!!t[e.value]}),e}},{key:"getValueAsString",value:function(t){return t?(0,o.default)(this.component.values||[]).filter(function(e){return t[e.value]}).map("label").join(", "):""}},{key:"setSelectedClasses",value:function(){var o,i,a=this;this.refs.wrapper&&(o=this.dataValue,i=Object.keys(o),this.refs.wrapper.forEach(function(e,t){var n=i[t],r=a.refs.input[t],t=((null==r?void 0:r.value.toString())!==n&&(n=i.find(function(e){return(null==r?void 0:r.value.toString())===e})),o[n]);t&&n?(a.addClass(e,a.optionSelectedClass),r.setAttribute("checked","true")):!t&&n&&(a.removeClass(e,a.optionSelectedClass),r.removeAttribute("checked"))}))}},{key:"setInputsDisabled",value:function(t,n){this.refs.input&&this.refs.input.forEach(function(e){(!n||e.checked)&&n||(e.disabled=t)})}},{key:"checkComponentValidity",value:function(e,t,n,r){var o=this,i=this.component.validate.minSelectedCount,a=this.component.validate.maxSelectedCount,l=this.isValid(e,t);if(a||i){var s=Object.keys(this.validationValue).reduce(function(e,t){return o.validationValue[t]&&e++,e},0);if(a&&a<=s?this.setInputsDisabled(!0,!0):a&&!this.shouldDisabled&&this.setInputsDisabled(!1),!l&&a&&a<s)return a=this.t(this.component.maxSelectedCountMessage||"You can only select up to {{maxCount}} items.",{maxCount:a}),this.setCustomValidity(a,t),!1;if(!l&&i&&s<i)return this.setInputsDisabled(!1),a=this.t(this.component.minSelectedCountMessage||"You must select at least {{minCount}} items.",{minCount:i}),this.setCustomValidity(a,t),!1}return c(d(u.prototype),"checkComponentValidity",this).call(this,e,t,n,r)}}])&&l(t.prototype,n),e&&l(t,e),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(1),n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(9);var i=r(n(922)),a=r(n(301)),l=r(n(83)),s=r(n(10));function r(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)}}function c(){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=p(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=p(n),t=(e=r?(e=p(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e);var n,r=d(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,e=[{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:"signature",label:"Signature",key:"signature",footer:"Sign above",width:"100%",height:"150px",penColor:"black",backgroundColor:"rgb(245,245,235)",minWidth:"0.5",maxWidth:"2.5",keepOverlayRatio:!0}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Signature",group:"advanced",icon:"pencil",weight:120,documentation:"/userguide/#signature",schema:o.schema()}}}],(n=[{key:"init",value:function(){var e;c(p(o.prototype),"init",this).call(this),this.currentWidth=0,this.scale=1,this.component.width||(this.component.width="100%"),this.component.height||(this.component.height="200px"),this.component.keepOverlayRatio&&this.options.pdf&&null!=(e=this.component.overlay)&&e.width&&null!=(e=this.component.overlay)&&e.height&&(this.ratio=(null==(e=this.component.overlay)?void 0:e.width)/(null==(e=this.component.overlay)?void 0:e.height),this.component.width="100%",this.component.height="auto")}},{key:"emptyValue",get:function(){return""}},{key:"defaultSchema",get:function(){return o.schema()}},{key:"inputInfo",get:function(){var e=c(p(o.prototype),"inputInfo",this);return e.type="input",e.attr.type="hidden",e}},{key:"className",get:function(){return"".concat(c(p(o.prototype),"className",this)," signature-pad")}},{key:"labelIsHidden",value:function(){return this.component.hideLabel}},{key:"setValue",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},t=c(p(o.prototype),"setValue",this).call(this,e,t);return this.refs.signatureImage&&(this.options.readOnly||this.disabled)&&(this.refs.signatureImage.setAttribute("src",e),this.showCanvas(!1)),this.signaturePad&&(e?t&&this.triggerChange():this.signaturePad.clear()),this.signaturePad&&this.dataValue&&this.signaturePad.isEmpty()&&this.setDataToSigaturePad(),t}},{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(p(o.prototype),"disabled",this)),this.signaturePad&&(c(p(o.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){this.refs.padBody&&(e||this.refs.padBody&&this.refs.padBody.offsetWidth!==this.currentWidth)&&(this.scale=e?t:this.scale,this.currentWidth=this.refs.padBody.offsetWidth,e=this.currentWidth*this.scale,this.refs.canvas.width=e,t=this.ratio?e/this.ratio:this.refs.padBody.offsetHeight*this.scale,this.refs.canvas.height=t,this.refs.canvas.style.maxWidth="".concat(this.currentWidth*this.scale,"px"),this.refs.canvas.style.maxHeight="".concat(this.refs.padBody.offsetHeight*this.scale,"px"),(e=this.refs.canvas.getContext("2d")).setTransform(1,0,0,1,0,0),e.scale(1/this.scale,1/this.scale),e.fillStyle=this.signaturePad.backgroundColor,e.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(p(o.prototype),"renderElement",this).call(this,e,t),required:s.default.get(this.component,"validate.required",!1)})}},{key:"hasModalSaveButton",get:function(){return!1}},{key:"getModalPreviewTemplate",value:function(){return this.renderTemplate("modalPreview",{previewText:this.dataValue?"<img src=".concat(this.dataValue," ref='openModal' style=\"width: 100%;height: 100%;\" />"):this.t("Click to Sign")})}},{key:"attach",value:function(e){var t=this,e=(this.loadRefs(e,{canvas:"single",refresh:"single",padBody:"single",signatureImage:"single"}),c(p(o.prototype),"attach",this).call(this,e));return this.refs.refresh&&this.options.readOnly&&this.refs.refresh.classList.add("disabled"),this.refs.canvas&&(this.signaturePad=new i.default(this.refs.canvas,{minWidth:this.component.minWidth,maxWidth:this.component.maxWidth,penColor:this.component.penColor,backgroundColor:this.component.backgroundColor}),this.signaturePad.addEventListener("endStroke",function(){return 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.builderMode||this.options.preview||(this.observer=new a.default(function(){t.checkSize()}),this.observer.observe(this.refs.padBody)),this.addEventListener(window,"resize",s.default.debounce(function(){return t.checkSize()},10)),setTimeout(function e(){this.refs.padBody&&this.refs.padBody.offsetWidth?this.checkSize():setTimeout(e.bind(this),20)}.bind(this),20))),this.addEventListener(this.refs.refresh,"click",function(e){e.preventDefault(),t.showCanvas(!0),t.signaturePad.clear(),t.setValue(t.defaultValue)}),this.setValue(this.dataValue),e}},{key:"detach",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.signaturePad&&this.signaturePad.off(),this.signaturePad=null,this.currentWidth=0,c(p(o.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})}}])&&u(t.prototype,n),e&&u(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(l.default);t.default=n},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return r});
/*!
 * Signature Pad v4.0.7 | https://github.com/szimek/signature_pad
 * (c) 2022 Szymon Nowak | Released under the MIT license
 */
class p{constructor(e,t,n,r){if(isNaN(e)||isNaN(t))throw new Error(`Point is invalid: (${e}, ${t})`);this.x=+e,this.y=+t,this.pressure=n||0,this.time=r||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}}class o{constructor(e,t,n,r,o,i){this.startPoint=e,this.control2=t,this.control1=n,this.endPoint=r,this.startWidth=o,this.endWidth=i}static fromPoints(e,t){var n=this.calculateControlPoints(e[0],e[1],e[2]).c2,r=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new o(e[1],n,r,e[2],t.start,t.end)}static calculateControlPoints(e,t,n){var r=e.x-t.x,o=e.y-t.y,i=t.x-n.x,a=t.y-n.y;const l=(e.x+t.x)/2,s=(e.y+t.y)/2,u=(t.x+n.x)/2,c=(t.y+n.y)/2;e=Math.sqrt(r*r+o*o),n=Math.sqrt(i*i+a*a),r=l-u,o=s-c,i=n/(e+n);const f=u+r*i,d=c+o*i;a=t.x-f,e=t.y-d;return{c1:new p(l+a,s+e),c2:new p(u+a,c+e)}}length(){let t=0,n,r;for(let e=0;e<=10;e+=1){var o,i,a=e/10,l=this.point(a,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this.point(a,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);0<e&&(o=l-n,i=a-r,t+=Math.sqrt(o*o+i*i)),n=l,r=a}return t}point(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}}class r extends class{constructor(){try{this._et=new EventTarget}catch(e){this._et=document}}addEventListener(e,t,n){this._et.addEventListener(e,t,n)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,t,n){this._et.removeEventListener(e,t,n)}}{constructor(e,t={}){super(),this.canvas=e,this._handleMouseDown=e=>{1===e.buttons&&(this._drawningStroke=!0,this._strokeBegin(e))},this._handleMouseMove=e=>{this._drawningStroke&&this._strokeMoveUpdate(e)},this._handleMouseUp=e=>{1===e.buttons&&this._drawningStroke&&(this._drawningStroke=!1,this._strokeEnd(e))},this._handleTouchStart=e=>{e.cancelable&&e.preventDefault(),1===e.targetTouches.length&&(e=e.changedTouches[0],this._strokeBegin(e))},this._handleTouchMove=e=>{e.cancelable&&e.preventDefault();e=e.targetTouches[0];this._strokeMoveUpdate(e)},this._handleTouchEnd=e=>{e.target===this.canvas&&(e.cancelable&&e.preventDefault(),e=e.changedTouches[0],this._strokeEnd(e))},this._handlePointerStart=e=>{this._drawningStroke=!0,e.preventDefault(),this._strokeBegin(e)},this._handlePointerMove=e=>{this._drawningStroke&&(e.preventDefault(),this._strokeMoveUpdate(e))},this._handlePointerEnd=e=>{this._drawningStroke&&(e.preventDefault(),this._drawningStroke=!1,this._strokeEnd(e))},this.velocityFilterWeight=t.velocityFilterWeight||.7,this.minWidth=t.minWidth||.5,this.maxWidth=t.maxWidth||2.5,this.throttle="throttle"in t?t.throttle:16,this.minDistance="minDistance"in t?t.minDistance:5,this.dotSize=t.dotSize||0,this.penColor=t.penColor||"black",this.backgroundColor=t.backgroundColor||"rgba(0,0,0,0)",this._strokeMoveUpdate=this.throttle?function(r,o=250){let i=0,a=null,l,s,u;const c=()=>{i=Date.now(),a=null,l=r.apply(s,u),a||(s=null,u=[])};return function(...e){var t=Date.now(),n=o-(t-i);return s=this,u=e,n<=0||o<n?(a&&(clearTimeout(a),a=null),i=t,l=r.apply(s,u),a||(s=null,u=[])):a=a||window.setTimeout(c,n),l}}(r.prototype._strokeUpdate,this.throttle):r.prototype._strokeUpdate,this._ctx=e.getContext("2d"),this.clear(),this.on()}clear(){const{_ctx:e,canvas:t}=this;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}fromDataURL(s,u={}){return new Promise((e,t)=>{const n=new Image;var r=u.ratio||window.devicePixelRatio||1;const o=u.width||this.canvas.width/r,i=u.height||this.canvas.height/r,a=u.xOffset||0,l=u.yOffset||0;this._reset(),n.onload=()=>{this._ctx.drawImage(n,a,l,o,i),e()},n.onerror=e=>{t(e)},n.crossOrigin="anonymous",n.src=s,this._isEmpty=!1})}toDataURL(e="image/png",t){return"image/svg+xml"!==e?this.canvas.toDataURL(e,t):this._toSVG()}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";var e=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!e?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e,{clear:t=!0}={}){t&&this.clear(),this._fromData(e,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(e)}toData(){return this._data}_strokeBegin(e){this.dispatchEvent(new CustomEvent("beginStroke",{detail:e}));var t={dotSize:this.dotSize,minWidth:this.minWidth,maxWidth:this.maxWidth,penColor:this.penColor,points:[]};this._data.push(t),this._reset(),this._strokeUpdate(e)}_strokeUpdate(e){if(0===this._data.length)this._strokeBegin(e);else{this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:e}));var t=e.clientX,n=e.clientY,r=void 0!==e.pressure?e.pressure:void 0!==e.force?e.force:0;const l=this._createPoint(t,n,r);t=this._data[this._data.length-1];const s=t.points;var n=0<s.length&&s[s.length-1],r=!!n&&l.distanceTo(n)<=this.minDistance,{penColor:t,dotSize:o,minWidth:i,maxWidth:a}=t;n&&r||(r=this._addPoint(l),n?r&&this._drawCurve(r,{penColor:t,dotSize:o,minWidth:i,maxWidth:a}):this._drawDot(l,{penColor:t,dotSize:o,minWidth:i,maxWidth:a}),s.push({time:l.time,x:l.x,y:l.y,pressure:l.pressure})),this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:e}))}}_strokeEnd(e){this._strokeUpdate(e),this.dispatchEvent(new CustomEvent("endStroke",{detail:e}))}_handlePointerEvents(){this._drawningStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.addEventListener("pointerup",this._handlePointerEnd)}_handleMouseEvents(){this._drawningStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor}_createPoint(e,t,n){var r=this.canvas.getBoundingClientRect();return new p(e-r.left,t-r.top,n,(new Date).getTime())}_addPoint(e){const t=this["_lastPoints"];return t.push(e),2<t.length?(3===t.length&&t.unshift(t[0]),e=this._calculateCurveWidths(t[1],t[2]),e=o.fromPoints(t,e),t.shift(),e):null}_calculateCurveWidths(e,t){var t=this.velocityFilterWeight*t.velocityFrom(e)+(1-this.velocityFilterWeight)*this._lastVelocity,e=this._strokeWidth(t),n={end:e,start:this._lastWidth};return this._lastVelocity=t,this._lastWidth=e,n}_strokeWidth(e){return Math.max(this.maxWidth/(e+1),this.minWidth)}_drawCurveSegment(e,t,n){const r=this._ctx;r.moveTo(e,t),r.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,n){const e=this._ctx;var r=t.endWidth-t.startWidth,o=2*Math.ceil(t.length());e.beginPath(),e.fillStyle=n.penColor;for(let e=0;e<o;e+=1){var i=e/o,a=i*i,l=a*i,s=1-i,u=s*s,c=u*s,f=c*t.startPoint.x,c=(f=(f=(f+=3*u*i*t.control1.x)+3*s*a*t.control2.x)+l*t.endPoint.x,c*t.startPoint.y),u=(c=(c=(c+=3*u*i*t.control1.y)+3*s*a*t.control2.y)+l*t.endPoint.y,Math.min(t.startWidth+l*r,n.maxWidth));this._drawCurveSegment(f,c,u)}e.closePath(),e.fill()}_drawDot(e,t){const n=this._ctx;var r=0<t.dotSize?t.dotSize:(t.minWidth+t.maxWidth)/2;n.beginPath(),this._drawCurveSegment(e.x,e.y,r),n.closePath(),n.fillStyle=t.penColor,n.fill()}_fromData(e,t,n){for(const u of e){var{penColor:r,dotSize:o,minWidth:i,maxWidth:a,points:l}=u;if(1<l.length)for(let e=0;e<l.length;e+=1){var s=l[e],s=new p(s.x,s.y,s.pressure,s.time),s=(this.penColor=r,0===e&&this._reset(),this._addPoint(s));s&&t(s,{penColor:r,dotSize:o,minWidth:i,maxWidth:a})}else this._reset(),n(l[0],{penColor:r,dotSize:o,minWidth:i,maxWidth:a})}}_toSVG(){var e=this._data,t=Math.max(window.devicePixelRatio||1,1),n=this.canvas.width/t,t=this.canvas.height/t;const l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.setAttribute("width",this.canvas.width.toString()),l.setAttribute("height",this.canvas.height.toString()),this._fromData(e,(e,{penColor:t})=>{const n=document.createElement("path");var r;isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y)||(r=`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),n.setAttribute("d",r),n.setAttribute("stroke-width",(2.25*e.endWidth).toFixed(3)),n.setAttribute("stroke",t),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),l.appendChild(n))},(e,{penColor:t,dotSize:n,minWidth:r,maxWidth:o})=>{const i=document.createElement("circle"),a=0<n?n:(r+o)/2;i.setAttribute("r",a.toString()),i.setAttribute("cx",e.x.toString()),i.setAttribute("cy",e.y.toString()),i.setAttribute("fill",t),l.appendChild(i)});e='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"'+` viewBox="0 0 ${this.canvas.width} ${this.canvas.height}"`+` width="${n}"`+` height="${t}"`+">";let r=l.innerHTML;if(void 0===r){const o=document.createElement("dummy"),i=l.childNodes;o.innerHTML="";for(let e=0;e<i.length;e+=1)o.appendChild(i[e].cloneNode(!0));r=o.innerHTML}n=e+r+"</svg>";return"data:image/svg+xml;base64,"+btoa(n)}}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(70),n(2),n(6),n(7),n(5),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(1),n(14),n(20),n(3),n(4),n(0),n(50),n(9);var i=r(n(10)),a=r(n(61)),l=n(19);function r(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)}}function u(e,t,n,r){return(u="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,e=f(e,t);if(e){if((o=Object.getOwnPropertyDescriptor(e,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 e=n,!((o=t)in(n=r)?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e);return!0})(e,t,n,r)}function c(){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=f(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function f(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=h(n),t=(e=r?(e=h(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e);var n,r=p(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,e=[{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:"survey",label:"Survey",key:"survey",questions:[],values:[]}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Survey",group:"advanced",icon:"list",weight:110,documentation:"/userguide/#survey",schema:o.schema()}}}],(n=[{key:"defaultSchema",get:function(){return o.schema()}},{key:"render",value:function(){return c(h(o.prototype),"render",this).call(this,this.renderTemplate("survey"))}},{key:"attach",value:function(e){var t=this,e=(this.loadRefs(e,{input:"multiple"}),c(h(o.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),e}},{key:"setValue",value:function(n){var r=this,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!n)return!1;i.default.each(this.component.questions,function(t){i.default.each(r.refs.input,function(e){e.name===r.getInputName(t)&&(e.checked=e.value===n[t.value])})});e=this.updateValue(n,e);return e&&this.isHtmlRenderMode()&&this.redraw(),e}},{key:"emptyValue",get:function(){return{}}},{key:"defaultValue",get:function(){var t,n=c(h(o.prototype),"defaultValue",this);return n&&!i.default.isObject(n)&&this.component.values.some(function(e){return e.value===n})?(t={},this.component.questions.forEach(function(e){t[e.value]=n}),t):n}},{key:"getValue",value:function(){var n=this;if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;var r={};return i.default.each(this.component.questions,function(t){i.default.each(n.refs.input,function(e){if(e.checked&&e.name===n.getInputName(t))return r[t.value]=e.value,!1})}),r}},{key:"disabled",get:function(){return c(h(o.prototype),"disabled",this)},set:function(e){var t=h(o.prototype),n=!0;if(!u(t,"disabled",e,this||t)&&n)throw new Error("failed to set property");i.default.each(this.refs.input,function(e){e.disabled=!0})}},{key:"validateRequired",value:function(e,n){return!(0,l.boolValue)(e)||this.component.questions.reduce(function(e,t){return e&&Boolean(n[t.value])},!0)}},{key:"getInputName",value:function(e){return"".concat(this.options.name,"[").concat(e.value,"]")}},{key:"getValueAsString",value:function(e,t){var n,r=this;return null!=t&&t.email?(n='\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      ',i.default.forIn(e,function(e,t){t=i.default.find(r.component.questions,["value",t]),e=i.default.find(r.component.values,["value",e]);t&&e&&(n+='\n            <tr>\n              <td style="text-align:center;padding: 5px 10px;">'.concat(t.label,'</td>\n              <td style="text-align:center;padding: 5px 10px;">').concat(e.label,"</td>\n            </tr>\n          "))}),n+="</tbody></table>"):c(h(o.prototype),"getValueAsString",this).call(this,e,t)}}])&&s(t.prototype,n),e&&s(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(a.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(13),n(11),n(8),n(23),n(2),n(22),n(31),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(1),n(25),n(32),n(18),n(14),n(9);var l=i(n(10)),s=i(n(98)),r=i(n(77));function i(e){return e&&e.__esModule?e:{default:e}}function a(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function u(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?a(Object(o),!0).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=h(n),t=(e=r?(e=h(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function p(){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)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e);var n,i=d(a);function a(){var e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r))).noField=!0,e}return t=a,e=[{key:"emptyTable",value:function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++)o.push({components:[]});n.push(o)}return n}},{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.schema.apply(r.default,[{label:"Table",type:"table",input:!1,key:"table",numRows:3,numCols:3,rows:a.emptyTable(3,3),header:[],caption:"",cloneRows:!1,striped:!1,bordered:!1,hover:!1,condensed:!1,persistent:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Table",group:"layout",icon:"table",weight:40,documentation:"/userguide/#table",schema:a.schema()}}}],(n=[{key:"defaultSchema",get:function(){return a.schema()}},{key:"schema",get:function(){var t=this,n=l.default.omit(p(h(a.prototype),"schema",this),"components");return n.rows=[],this.eachComponent(function(e){n.rows&&n.rows.length||(n.rows=a.emptyTable(t.component.numRows,t.component.numCols)),n.rows[e.tableRow]||(n.rows[e.tableRow]=[]),n.rows[e.tableRow][e.tableColumn]||(n.rows[e.tableRow][e.column]={components:[]}),n.rows[e.tableRow][e.tableColumn].components.push(e.schema)}),n.rows.length||(n.rows=a.emptyTable(this.component.numRows,this.component.numCols)),n}},{key:"className",get:function(){var e="table-responsive ".concat(p(h(a.prototype),"className",this));return this.component.bordered||(e+=" no-top-border-table"),e}},{key:"cellClassName",get:function(){var e="";return e=this.component.cellAlignment?"cell-align-".concat(this.component.cellAlignment):e}},{key:"tableKey",get:function(){return"table-".concat(this.key)}},{key:"colWidth",get:function(){var e=this.component.numCols;return e&&"number"==typeof e?Math.floor(12/e).toString():""}},{key:"init",value:function(){var r=this;p(h(a.prototype),"init",this).call(this);for(var e=0;e<this.component.numRows;e++){this.component.rows[e]=this.component.rows[e]||[];for(var t=0;t<this.component.numCols;t++)this.component.rows[e][t]=this.component.rows[e][t]||{components:[]};this.component.rows[e]=this.component.rows[e].slice(0,this.component.numCols)}this.component.rows=this.component.rows.slice(0,this.component.numRows);var o=[];this.table=[],l.default.each(this.component.rows,function(e,n){r.table[n]=[],l.default.each(e,function(e,t){r.table[n][t]=[],r.component.cloneRows&&(e.components.length?o[t]=e:o[t]&&(e.components=l.default.cloneDeep(o[t].components),s.default.uniquify(r.root._form.components,e))),l.default.each(e.components,function(e){e=r.builderMode?(e.id=e.id+n,e):u(u({},e),{},{id:e.id+n}),e=r.createComponent(e);e.tableRow=n,e.tableColumn=t,r.table[n][t].push(e)})})})}},{key:"render",value:function(){var t=this;return p(h(a.prototype),"render",this).call(this,this.renderTemplate("table",{cellClassName:this.cellClassName,tableKey:this.tableKey,colWidth:this.colWidth,tableComponents:this.table.map(function(e){return e.map(function(e){return t.renderComponents(e)})})}))}},{key:"attach",value:function(e){var r=this,t=this.table.reduce(function(e,t,n){return e["".concat(r.tableKey,"-").concat(n)]="multiple",e},{}),t=(this.loadRefs(e,t),p(h(a.prototype),"attach",this).call(this,e));return this.table.forEach(function(e,n){e.forEach(function(e,t){r.attachComponents(r.refs["".concat(r.tableKey,"-").concat(n)][t],r.table[n][t],r.component.rows[n][t].components)})}),t}},{key:"destroy",value:function(e){p(h(a.prototype),"destroy",this).call(this,e),delete this.table}}])&&c(t.prototype,n),e&&c(t,e),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(13),n(11),n(8),n(2),n(6),n(7),n(3),n(5),n(4),n(42),n(32),n(20),n(16),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(18),n(1),n(14),n(69),n(22),n(40),n(45),n(9);var r=i(n(10)),l=i(n(77));function i(e){return e&&e.__esModule?e:{default:e}}function s(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}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(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=h(n),t=(e=r?(e=h(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function p(){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)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e);var n,i=d(a);function a(){var e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r))).currentTab=0,e.noField=!0,e}return t=a,e=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l.default.schema.apply(l.default,[{label:"Tabs",type:"tabs",input:!1,key:"tabs",persistent:!1,tableView:!1,components:[{label:"Tab 1",key:"tab1",components:[]}],verticalLayout:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Tabs",group:"layout",icon:"folder-o",weight:50,documentation:"/userguide/#tabs",schema:a.schema()}}}],(n=[{key:"defaultSchema",get:function(){return a.schema()}},{key:"schema",get:function(){var n=this,e=p(h(a.prototype),"schema",this),t=r.default.cloneDeep(this.component.components);return e.components=t.map(function(e,t){return e.components=n.tabs[t].map(function(e){return e.schema}),e}),e}},{key:"tabKey",get:function(){return"tab-".concat(this.key)}},{key:"tabLikey",get:function(){return"tabLi-".concat(this.key)}},{key:"tabLinkKey",get:function(){return"tabLink-".concat(this.key)}},{key:"init",value:function(){var n=this;this.components=[],this.tabs=[],r.default.each(this.component.components,function(e,t){n.tabs[t]=[],e.components=e.components||[],r.default.each(e.components,function(e){e=n.createComponent(e);e.tab=t,n.tabs[t].push(e)})})}},{key:"render",value:function(){var t=this;return p(h(a.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(e){return t.renderComponents(e)})},this.options.flatten||this.options.pdf?"flat":null))}},{key:"attach",value:function(e){var n=this,t=(this.loadRefs(e,(u(t={},this.tabLinkKey,"multiple"),u(t,this.tabKey,"multiple"),u(t,this.tabLikey,"multiple"),t)),["change","error"].forEach(function(e){return n.on(e,n.handleTabsValidation.bind(n))}),p(h(a.prototype),"attach",this).call(this,e));return this.refs[this.tabLinkKey].forEach(function(e,t){n.addEventListener(e,"click",function(e){e.preventDefault(),n.setTab(t)})}),this.refs[this.tabKey].forEach(function(e,t){n.attachComponents(e,n.tabs[t],n.component.components[t].components)}),t}},{key:"detach",value:function(e){p(h(a.prototype),"detach",this).call(this,e)}},{key:"setTab",value:function(e){var n=this;this.tabs&&this.tabs[e]&&this.refs[this.tabKey]&&this.refs[this.tabKey][e]&&(this.currentTab=e,r.default.each(this.refs[this.tabKey],function(e){n.removeClass(e,"formio-tab-panel-active"),e.style.display="none"}),this.addClass(this.refs[this.tabKey][e],"formio-tab-panel-active"),this.refs[this.tabKey][e].style.display="block",r.default.each(this.refs[this.tabLinkKey],function(e,t){n.refs[n.tabLinkKey][t]&&n.removeClass(e,"formio-tab-link-active"),n.refs[n.tabLikey][t]&&n.removeClass(n.refs[n.tabLikey][t],"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(t){"beforeFocus"in this.parent&&this.parent.beforeFocus(this);var e=this.tabs.findIndex(function(e){return e.some(function(e){return e===t})});-1!==e&&this.currentTab!==e&&this.setTab(e)}},{key:"setErrorClasses",value:function(e,t,n,r){var o=this,i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:this.element;this.component.modalEdit&&p(h(a.prototype),"setErrorClasses",this).call(this,e,t,n,r,i),e.forEach(function(e){o.addClass(e,"is-invalid"),"openModal"!==e.getAttribute("ref")&&(o.options.highlightErrors?o.addClass(e,"tab-error"):o.addClass(e,"has-error"))})}},{key:"clearErrorClasses",value:function(e){var t,n=this;!this.options.server&&this.rendered&&(this.component.modalEdit&&(t=Array.isArray(e)||e instanceof NodeList?this.element:e,p(h(a.prototype),"clearErrorClasses",this).call(this,t)),(e=Array.isArray(e)||e instanceof NodeList?e:[e]).forEach(function(e){n.removeClass(e,"is-invalid"),n.removeClass(e,"tab-error"),n.removeClass(e,"has-error")}))}},{key:"handleTabsValidation",value:function(){var n,e;this.refs[this.tabLinkKey]&&this.refs[this.tabLinkKey].length&&this.tabs.length&&(this.clearErrorClasses(this.refs[this.tabLinkKey]),(n=this.tabs.reduce(function(e,t,n){return t.some(function(e){return!!e.error})?[].concat(s(e),[n]):e},[])).length&&(e=s(this.refs[this.tabLinkKey]).filter(function(e,t){return n.includes(t)}),this.setErrorClasses(e)))}}])&&c(t.prototype,n),e&&c(t,e),Object.defineProperty(t,"prototype",{writable:!1}),a}(l.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(70),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(1),n(51),n(39),n(22),n(16),n(43),n(18),n(25),n(0),n(9);var a,l=(r=n(83))&&r.__esModule?r:{default:r};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,r){return(u="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,e=i(e,t);if(e){if((o=Object.getOwnPropertyDescriptor(e,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 e=n,!((o=t)in(n=r)?Object.defineProperty(n,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[o]=e);return!0})(e,t,n,r)}function c(){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=i(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function i(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=p(n),t=(e=r?(e=p(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}"undefined"!=typeof window&&(a=n(322));var r=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e);var n,r=d(i);function i(){var e=this,t=i;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,e=[{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:"tags",label:"Tags",key:"tags",delimeter:",",storeas:"string",maxTags:0}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Tags",icon:"tags",group:"advanced",documentation:"/userguide/#tags",weight:30,schema:i.schema()}}}],(n=[{key:"init",value:function(){c(p(i.prototype),"init",this).call(this)}},{key:"emptyValue",get:function(){return"string"===this.component.storeas?"":[]}},{key:"defaultSchema",get:function(){return i.schema()}},{key:"inputInfo",get:function(){var e=c(p(i.prototype),"inputInfo",this);return e.type="input",e.attr.type="text",e.changeEvent="change",e}},{key:"delimiter",get:function(){return this.component.delimeter||","}},{key:"attachElement",value:function(e,t){var o=this;c(p(i.prototype),"attachElement",this).call(this,e,t),e&&(e.setAttribute("dir",this.i18next.dir()),this.choices&&this.choices.destroy(),a&&(t=!!this.component.placeholder,this.choices=new a(e,{delimiter:this.delimiter,editItems:!0,maxItemCount:this.component.maxTags,removeItemButton:!0,duplicateItemsAllowed:!1,shadowRoot:this.root?this.root.shadowRoot:null,placeholder:t,placeholderValue:t?this.t(this.component.placeholder,{_userInput:!0}):null}),this.choices.itemList.element.tabIndex=e.tabIndex,this.addEventListener(this.choices.input.element,"blur",function(){var t=o.choices.input.value,e=o.component.maxTags,n=o.choices.getValue(!0).length,r=o.choices.getValue(!0).some(function(e){return e.trim()===t.trim()});t&&(e&&n===e?(o.choices.addItems=!1,o.choices.clearInput()):r?o.choices.clearInput():(o.choices.setValue([t]),o.choices.clearInput(),o.choices.hideDropdown(!0),o.updateValue(null,{modified:!0})))})))}},{key:"detach",value:function(){c(p(i.prototype),"detach",this).call(this),this.choices&&(this.choices.destroy(),this.choices=null)}},{key:"normalizeValue",value:function(e){return"string"===this.component.storeas&&Array.isArray(e)?e.join(this.delimiter):"array"===this.component.storeas&&"string"==typeof e?e.split(this.delimiter).filter(function(e){return e}):e}},{key:"setValue",value:function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=c(p(i.prototype),"setValue",this).call(this,e,n);return this.choices&&(n=this.dataValue,this.choices.removeActiveItems(),n&&("string"==typeof n&&(n=n.split(this.delimiter).filter(function(e){return e})),n=Array.isArray(n)?n:[n],this.choices.setValue(n.map(function(e){return t.sanitize(e,t.shouldSanitizeValue)})))),e}},{key:"disabled",get:function(){return c(p(i.prototype),"disabled",this)},set:function(e){var t=p(i.prototype),n=e,r=!0;if(!u(t,"disabled",n,this||t)&&r)throw new Error("failed to set property");this.choices&&(e?this.choices.disable():this.choices.enable())}},{key:"focus",value:function(){this.refs.input&&this.refs.input.length&&this.refs.input[0].parentNode.lastChild.focus()}},{key:"getValueAsString",value:function(e){if(!e)return"";if(Array.isArray(e))return e.join(", ");e=e.toString();return this.sanitize(e,this.shouldSanitizeValue)}}])&&s(t.prototype,n),e&&s(t,e),Object.defineProperty(t,"prototype",{writable:!1}),i}(l.default);t.default=r},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(20),n(18),n(1),n(60),n(16),n(25),n(26),n(14),n(9);var i=r(n(97)),u=r(n(10)),c=r(n(24)),f=n(19);function r(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)}}function d(){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=h(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=h(n),t=(e=r?(e=h(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=s;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e);var n,r=p(s);function s(){var e=this,t=s;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=s,e=[{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:"textarea",label:"Text Area",key:"textArea",rows:3,wysiwyg:!1,editor:"",fixedSize:!0,inputFormat:"html",validate:{minWords:"",maxWords:""}}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Text Area",group:"basic",icon:"font",documentation:"/userguide/#textarea",weight:20,schema:s.schema()}}}],(n=[{key:"init",value:function(){d(h(s.prototype),"init",this).call(this),this.editors=[],this.editorsReady=[],this.updateSizes=[],this.options.submitOnEnter=!1}},{key:"defaultSchema",get:function(){return s.schema()}},{key:"inputInfo",get:function(){var e=d(h(s.prototype),"inputInfo",this);return e.type=this.component.wysiwyg?"div":"textarea",this.component.rows&&(e.attr.rows=this.component.rows),e}},{key:"validateMultiple",value:function(){return!this.isJsonValue}},{key:"renderElement",value:function(e,t){var n=this.inputInfo;return n.attr=n.attr||{},n.content=e,!this.options.readOnly&&!this.disabled||this.isHtmlRenderMode()?this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:n,value:e,index:t}):(n=this.info.attr.style||"",t='<div ref="input" class="formio-editor-read-only-content" '.concat(n?"style='".concat(n,"'"):"","></div>"),this.renderTemplate("well",{children:t,nestedKey:this.key,value:e}))}},{key:"autoExpand",get:function(){return this.component.autoExpand}},{key:"updateEditorValue",value:function(e,t){t=this.getConvertedValue(this.trimBlanks(t));var n,r=this.dataValue;this.component.multiple&&Array.isArray(r)&&((n=u.default.clone(r))[e]=t,t=n),u.default.isEqual(t,r)||u.default.isEmpty(t)&&u.default.isEmpty(r)||this.updateValue(t,{modified:!this.autoModified},e),this.autoModified=!1}},{key:"attachElement",value:function(e,a){var t,l=this;return this.autoExpand&&(this.isPlain||this.options.readOnly||this.options.htmlView)&&"TEXTAREA"===e.nodeName&&this.addAutoExpanding(e,a),this.options.readOnly||(this.component.wysiwyg&&!this.component.editor&&(this.component.editor="ckeditor"),t=u.default.isEmpty(this.component.wysiwyg)?this.wysiwygDefault[this.component.editor]||this.wysiwygDefault.default:this.component.wysiwyg,this.editorsReady[a]=new c.default(function(i){switch(l.component.editor){case"ace":(t=t||{}).mode=l.component.as?"ace/mode/".concat(l.component.as):"ace/mode/javascript",l.addAce(e,t,function(e){return l.updateEditorValue(a,e)}).then(function(e){l.editors[a]=e;var t=l.dataValue,t=l.component.multiple&&Array.isArray(t)?t[a]:t;return e.setValue(l.setConvertedValue(t,a)),i(e),e}).catch(function(e){return console.warn(e)});break;case"quill":(t.hasOwnProperty("toolbarGroups")||t.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."),t=l.wysiwygDefault.quill),l.addQuill(e,t,function(){return l.updateEditorValue(a,l.editors[a].root.innerHTML)}).then(function(e){l.editors[a]=e,l.component.isUploadEnabled&&(o=l,e.getModule("uploader").options.handler=function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=o.imageHandler).call.apply(e,[o,this].concat(n))}),e.root.spellcheck=l.component.spellcheck,(l.options.readOnly||l.disabled)&&e.disable();var o,t=l.dataValue,t=l.component.multiple&&Array.isArray(t)?t[a]:t;return e.setContents(e.clipboard.convert({html:l.setConvertedValue(t,a)})),i(e),e}).catch(function(e){return console.warn(e)});break;case"ckeditor":(t=t||{}).rows=l.component.rows,l.addCKE(e,t,function(e){return l.updateEditorValue(a,e)}).then(function(e){l.editors[a]=e;var t=l.dataValue,t=l.component.multiple&&Array.isArray(t)?t[a]:t,n=l.setConvertedValue(t,a),r=l.options.readOnly||l.disabled;return(0,f.getBrowserInfo)().ie?e.on("instanceReady",function(){e.setReadOnly(r),e.setData(n)}):(t=parseInt(l.component.rows,10),u.default.isFinite(t)&&u.default.has(e,"ui.view.editable.editableElement")&&(e.ui.view.editable.editableElement.style.height="".concat(31*t+14,"px")),e.isReadOnly=r,e.data.set(n)),i(e),e});break;default:d(h(s.prototype),"attachElement",l).call(l,e,a)}})),e}},{key:"attach",value:function(e){e=d(h(s.prototype),"attach",this).call(this,e);return this.restoreValue(),e}},{key:"imageHandler",value:function(e,n,t){var r,o,i,a,l,s=this,u=e.quill;t&&t.length?(u.enable(!1),r=(e=this.component).uploadStorage,o=e.uploadUrl,i=e.uploadOptions,a=e.uploadDir,e=e.fileKey,this.fileService.uploadFile(r,t[0],(0,f.uniqueName)(t[0].name),a||"",null,o,i,e).then(function(e){return l=e,s.fileService.downloadFile(e)}).then(function(e){u.enable(!0);var t=Quill.import("delta");u.updateContents((new t).retain(n.index).delete(n.length).insert({image:e.url},{alt:JSON.stringify(l)}),Quill.sources.USER)}).catch(function(e){console.warn("Quill image upload failed"),console.warn(e),u.enable(!0)})):console.warn("No files selected")}},{key:"isPlain",get:function(){return!this.component.wysiwyg&&!this.component.editor}},{key:"htmlView",get:function(){return this.options.readOnly&&(this.component.editor||this.component.wysiwyg)}},{key:"setValueAt",value:function(n,r){var o,i=this,e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};d(h(s.prototype),"setValueAt",this).call(this,n,r,e),this.editorsReady[n]&&this.editorsReady[n].then((o=u.default.clone(e),function(t){if(!o.skipWysiwyg)switch(i.autoModified=!0,i.component.editor){case"ace":t.setValue(i.setConvertedValue(r,n));break;case"quill":var e;i.component.isUploadEnabled?i.setAsyncConvertedValue(r).then(function(e){e=t.clipboard.convert({html:e});t.setContents(e)}):(e=i.setConvertedValue(r,n),e=t.clipboard.convert({html:e}),t.setContents(e));break;case"ckeditor":t.data.set(i.setConvertedValue(r,n))}}))}},{key:"setValue",value:function(e){var n=this,t=1<arguments.length&&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,t){return n.setConvertedValue(e,t)}):this.setConvertedValue(e):t.skipWysiwyg=u.default.isEqual(e,this.getValue()),d(h(s.prototype),"setValue",this).call(this,e,t)}},{key:"setContent",value:function(e,t,n){d(h(s.prototype),"setContent",this).call(this,e,t,n,{addAttr:["allow","allowfullscreen","frameborder","scrolling"],addTags:["iframe"]})}},{key:"setReadOnlyValue",value:function(e,t){t=t||0,(this.options.readOnly||this.disabled)&&this.refs.input&&this.refs.input[t]&&("plain"===this.component.inputFormat?this.refs.input[t].innerText=this.interpolate(e,{},{noeval:!0}):this.setContent(this.refs.input[t],this.interpolate(e,{},{noeval:!0}),this.shouldSanitizeValue))}},{key:"isJsonValue",get:function(){return this.component.as&&"json"===this.component.as}},{key:"setConvertedValue",value:function(e,t){if(this.isJsonValue&&!u.default.isNil(e))try{e=JSON.stringify(e,null,2)}catch(e){console.warn(e)}return u.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)}u.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}):c.default.resolve(e)}},{key:"setImagesUrl",value:function(e){var n=this;return c.default.all(u.default.map(e,function(t){var e;try{e=JSON.parse(t.getAttribute("alt"))}catch(e){console.warn(e)}return n.fileService.downloadFile(e).then(function(e){t.setAttribute("src",e.url)})}))}},{key:"addAutoExpanding",value:function(r,e){function n(e){var t=r.style.width;r.style.width="0px",r.offsetWidth,r.style.width=t,r.style.overflowY=e}function o(){if(0!==r.scrollHeight){for(var e=r,t=function(){r.style.height="",r.style.height="".concat(r.scrollHeight+i,"px")},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})}}var i=null,a=null,l=u.default.debounce(function(){o();var e=Math.round(parseFloat(r.style.height)),t=window.getComputedStyle(r,null);r.offsetHeight<e&&"hidden"===t.overflowY?n("scroll"):"hidden"!==t.overflowY&&n("hidden"),o(),e=r.offsetHeight,a!==e&&(a=e,l())},200),t=window.getComputedStyle(r,null);r.style.resize="none",i=parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth)||0,window&&this.addEventListener(window,"resize",l),this.addEventListener(r,"input",l),this.on("initialized",l),(this.updateSizes[e]=l)()}},{key:"trimBlanks",value:function(n){var r;return n&&!this.isPlain&&(r=function(e){var t="<p>&nbsp;</p>",n="<p><br></p>",r="<p><br>&nbsp;</p>",t=new RegExp("^".concat(t,"|").concat(t,"$|^").concat(n,"|").concat(n,"$|^").concat(r,"|").concat(r,"$"),"g");return"string"==typeof e?e.replace(t,""):e},Array.isArray(n)?n.forEach(function(e,t){n[t]=r(e)}):n=r(n)),n}},{key:"onChange",value:function(e,t){e=d(h(s.prototype),"onChange",this).call(this,e,t);return this.updateSizes.forEach(function(e){return e()}),e}},{key:"hasChanged",value:function(e,t){return d(h(s.prototype),"hasChanged",this).call(this,this.trimBlanks(e),this.trimBlanks(t))}},{key:"isEmpty",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.dataValue;return d(h(s.prototype),"isEmpty",this).call(this,this.trimBlanks(e))}},{key:"defaultValue",get:function(){var e=d(h(s.prototype),"defaultValue",this);return e="quill"!==this.component.editor||e?e:"<p><br></p>"}},{key:"getConvertedValue",value:function(e){if(this.isJsonValue&&e)try{e=JSON.parse(e)}catch(e){}return e}},{key:"detach",value:function(){var t=this;this.editors.forEach(function(e){e.destroy&&e.destroy()}),this.editors=[],this.editorsReady=[],this.updateSizes.forEach(function(e){return t.removeEventListener(window,"resize",e)}),this.updateSizes=[],d(h(s.prototype),"detach",this).call(this)}},{key:"getValue",value:function(){return this.isPlain?this.getConvertedValue(d(h(s.prototype),"getValue",this).call(this)):this.dataValue}},{key:"focus",value:function(){switch(d(h(s.prototype),"focus",this).call(this),this.component.editor){case"ckeditor":var e;null!=(e=this.editors[0].editing)&&null!=(e=e.view)&&e.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()}}}])&&a(t.prototype,n),e&&a(t,e),Object.defineProperty(t,"prototype",{writable:!1}),s}(i.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(1),n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),n(42),n(20),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(18),n(40),n(45),n(0),n(32),n(16),n(26),n(9);var i=r(n(64)),a=r(n(97)),l=n(19);function r(e){return e&&e.__esModule?e:{default:e}}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=h(n),t=(e=r?(e=h(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e);var n,r=p(o);function o(e,t,n){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");e=r.call(this,e,t,n),t=(0,l.getBrowserInfo)(),n=t.edge,t=t.version;return e.component.inputMask=e.getInputMaskFromFormat(e.component.format),e.component.inputType=n&&t<=18?"text":e.component.inputType||"time",e.rawData=e.component.multiple?[]:e.emptyValue,e}return t=o,e=[{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:"time",label:"Time",key:"time",inputType:"time",format:"HH:mm",dataFormat:"HH:mm:ss"}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Time",icon:"clock-o",group:"advanced",documentation:"/userguide/#time",weight:55,schema:o.schema()}}}],(n=[{key:"init",value:function(){f(h(o.prototype),"init",this).call(this),"text"===this.component.inputType&&this.validators.push("time")}},{key:"dataFormat",get:function(){return this.component.dataFormat||"HH:mm:ss"}},{key:"defaultSchema",get:function(){return o.schema()}},{key:"defaultValue",get:function(){var t=this,e=f(h(o.prototype),"defaultValue",this);return e=this.component.multiple&&Array.isArray(e)?e.map(function(e){return e&&t.getStringAsValue(e)}):e&&this.getStringAsValue(e)}},{key:"validationValue",get:function(){return Array.isArray(this.rawData)&&!this.rawData.length||!this.rawData?this.dataValue:this.rawData}},{key:"inputInfo",get:function(){var e=f(h(o.prototype),"inputInfo",this);return e.attr.type=this.component.inputType,e}},{key:"skipMaskValidation",get:function(){return!0}},{key:"isNotCompleteInput",value:function(e){return e.includes("_")}},{key:"removeValue",value:function(e){this.rawData=Array.isArray(this.rawData)?[].concat(s(this.rawData.slice(0,e)),s(this.rawData.slice(e+1))):this.emptyValue,f(h(o.prototype),"removeValue",this).call(this,e)}},{key:"resetRawData",value:function(e){e?this.setRawValue(this.emptyValue,e):this.rawData=[]}},{key:"setRawValue",value:function(e,t){Array.isArray(this.rawData)?this.rawData[t]=e:this.rawData=e}},{key:"getRawValue",value:function(e){return e&&Array.isArray(this.rawData)?this.rawData[e]||this.emptyValue:this.rawData}},{key:"getValueAt",value:function(e){if(!this.refs.input.length||!this.refs.input[e])return this.emptyValue;var t=this.refs.input[e].value;return t?(this.setRawValue(t,e),this.getStringAsValue(t)):(this.resetRawData(e),this.emptyValue)}},{key:"setValueAt",value:function(e,t){this.setRawValue(t&&this.getValueAsString(t),e),this.refs.input[e].value=this.getRawValue(e)}},{key:"getStringAsValue",value:function(e){return e&&(0,i.default)(e,this.component.format).format(this.component.dataFormat)}},{key:"getValueAsString",value:function(e){return e&&(0,i.default)(e,this.component.dataFormat).format(this.component.format)||""}},{key:"getInputMaskFromFormat",value:function(e){return"LT"===e?"99:99 AA":"LTS"===e?"99:99:99 AA":e.replace(/[hHmMsSk]/g,"9").replace(/[aA]/,"AA")}},{key:"addFocusBlurEvents",value:function(e){var t=this;f(h(o.prototype),"addFocusBlurEvents",this).call(this,e),this.addEventListener(e,"blur",function(){e.value=t.getValueAsString(e.value)})}}])&&c(t.prototype,n),e&&c(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(a.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(8),n(13),n(11),n(70),n(23),n(2),n(22),n(31),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(1),n(14),n(18),n(9);var l=i(n(10)),r=i(n(53)),s=i(n(28)),u=i(n(134)),c=i(n(930)),f=i(n(24));function i(e){return e&&e.__esModule?e:{default:e}}function a(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){m(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n,r){return(h="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var o,e=v(e,t);if(e){if((o=Object.getOwnPropertyDescriptor(e,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 m(r,t,n);return!0})(e,t,n,r)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=v(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function v(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=w(e)););return e}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=w(n),t=(e=r?(e=w(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e);var n,i=g(a);function a(){var e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r))).type="tree",e}return t=a,e=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.default.schema.apply(u.default,[{label:"Tree",key:"tree",type:"tree",clearOnHide:!0,input:!0,tree:!0,components:[],multiple:!1}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Tree",icon:"indent",group:"data",weight:40,schema:a.schema()}}}],(n=[{key:"emptyValue",get:function(){return{}}},{key:"viewComponents",get:function(){return this.viewComponentsInstantiated||(this.viewComponentsInstantiated=!0,this._viewComponents=this.createComponents({})),this._viewComponents}},{key:"init",value:function(){if(this.builderMode)return y(w(a.prototype),"init",this).call(this);this.components=[],this.componentOptions=d(d({},this.options),{},{parent:this,root:this.root||this}),this.disabled=this.shouldDisabled,this.setRoot(),this.viewComponentsInstantiated=!1,this._viewComponents=[]}},{key:"disabled",get:function(){return y(w(a.prototype),"disabled",this)},set:function(t){var e=w(a.prototype),n=t,r=!0;if(!h(e,"disabled",n,this||e)&&r)throw new Error("failed to set property");this.viewComponents.forEach(function(e){return e.parentDisabled=t})}},{key:"isDefaultValueComponent",get:function(){return!!this.options.editComponent&&!!this.options.editForm&&"defaultValue"===this.component.key}},{key:"destroy",value:function(){y(w(a.prototype),"destroy",this).call(this),this.builderMode||this.removeComponents(this._viewComponents)}},{key:"createComponents",value:function(t,e){var n=this,r=this.componentComponents.map(function(e){e=s.default.create(e,n.componentOptions,t);return e.init(),e.parentDisabled=n.disabled,e});return e&&this.checkNode(this.data,e),r}},{key:"removeComponents",value:function(e){return e.map(function(e){return e.destroy()})}},{key:"render",value:function(){return this.builderMode?y(w(a.prototype),"render",this).call(this):y(w(a.prototype),"render",this).call(this,this.renderTree(this.treeRoot))}},{key:"renderTree",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=!(1<arguments.length&&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 t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],n=1<arguments.length?arguments[1]:void 0;return e.map(function(e){return t.renderTree(e,n)})}},{key:"renderEdit",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.renderTemplate("treeEdit",{children:this.renderComponents(e.components),node:e})}},{key:"renderView",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.renderTemplate("treeView",{values:this.viewComponents.map(function(e){return e.data=t.data,e.checkComponentConditions(t.data),e.getView(e.dataValue)}),nodeData:t.data,node:t})}},{key:"attach",value:function(e){return this.builderMode?y(w(a.prototype),"attach",this).call(this,e):(this.loadRefs(e,{root:"single"}),f.default.all([y(w(a.prototype),"attach",this).call(this,e),this.attachNode(this.refs.root,this.treeRoot)]))}},{key:"attachNode",value:function(e,t){if(!e)return f.default.resolve();var n=f.default.resolve(),r=f.default.resolve();return t.refs=l.default.reduce(e.children,function(e,t){return t.hasAttribute("ref")?d(d({},e),{},m({},t.getAttribute("ref"),t)):e},{}),t.refs.content&&(this.attachActions(t),n=this.attachComponents(t)),t.refs.childNodes&&(r=this.attachChildren(t)),f.default.all([n,r])}},{key:"attachActions",value:function(e){var t,n=this;e.editing||this.loadRefs.call(e,e.refs.content,{addChild:"single",editNode:"single",removeNode:"single",revertNode:"single",toggleNode:"single"}),this.loadRefs.call(e,(null==(t=e.refs.content.children[0])?void 0:t.children[1])||e.refs.content,{cancelNode:"single",saveNode:"single"}),e.refs.addChild&&this.addEventListener(e.refs.addChild,"click",function(){n.addChild(e)}),e.refs.cancelNode&&this.addEventListener(e.refs.cancelNode,"click",function(){n.cancelNode(e)}),e.refs.editNode&&this.addEventListener(e.refs.editNode,"click",function(){n.editNode(e)}),e.refs.removeNode&&this.addEventListener(e.refs.removeNode,"click",function(){n.removeNode(e)}),e.refs.revertNode&&this.addEventListener(e.refs.revertNode,"click",function(){n.revertNode(e)}),e.refs.saveNode&&this.addEventListener(e.refs.saveNode,"click",function(){n.saveNode(e)}),e.refs.toggleNode&&this.addEventListener(e.refs.toggleNode,"click",function(){n.toggleNode(e)})}},{key:"attachComponents",value:function(e){if(this.builderMode){for(var t,n=arguments.length,r=new Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=y(w(a.prototype),"attachComponents",this)).call.apply(t,[this,e].concat(r))}return this.loadRefs.call(e,e.refs.content,{nodeEdit:"single"}),e.refs.nodeEdit?y(w(a.prototype),"attachComponents",this).call(this,e.refs.nodeEdit,e.components):f.default.resolve()}},{key:"attachChildren",value:function(n){var r=this,e=n.refs.childNodes.children;return f.default.all(l.default.map(e,function(e,t){return r.attachNode(e,n.children[t])}))}},{key:"setValue",value:function(e){e=this.updateValue(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{});return this.setRoot(),e}},{key:"addChild",value:function(t){var n=this;this.options.readOnly||t.new||this.hook("tree.addChild",{parent:t,component:this},function(){var e=t.addChild();return n.redraw(),e})}},{key:"cancelNode",value:function(e){var t=this;this.options.readOnly||this.hook("tree.cancelNode",{node:e,component:this},function(){return!e.isRoot||e.persistentData&&!l.default.isEmpty(e.persistentData)?(e.cancel(),t.redraw()):t.removeRoot(),e})}},{key:"editNode",value:function(e){var t=this;this.options.readOnly||e.new||this.hook("tree.editNode",{node:e,component:this},function(){return e.edit(),t.redraw(),e})}},{key:"removeNode",value:function(e){var t=this;this.options.readOnly||e.new||this.hook("tree.removeNode",{node:e,component:this},function(){return e.isRoot?t.removeRoot():(e.remove(),t.updateTree()),e})}},{key:"revertNode",value:function(e){var t=this;!this.options.readOnly&&e.revertAvailable&&this.hook("tree.revertNode",{node:e,component:this},function(){return e.revert(),t.updateTree(),e})}},{key:"saveNode",value:function(e){var t=this;this.options.readOnly||this.hook("tree.saveNode",{node:e,component:this},function(){return e.save()&&t.updateTree(),e})}},{key:"toggleNode",value:function(e){var t=this;this.hook("tree.toggleNode",{node:e,component:this},function(){return e.collapsed=!e.collapsed,t.redraw(),e})}},{key:"removeRoot",value:function(){this.options.readOnly||(this.dataValue=this.defaultValue,this.setRoot(),this.redraw())}},{key:"setRoot",value:function(){var e=this.getValue();this.treeRoot=new c.default(null,e,{isNew:!!this.builderMode||!e.data,createComponents:this.createComponents.bind(this),checkNode:this.checkNode.bind(this,this.data),removeComponents:this.removeComponents,parentPath:this.isDefaultValueComponent?this.path||this.component.key:null}),this.hook("tree.setRoot",{root:this.treeRoot,component:this}),this.redraw()}},{key:"getValue",value:function(){return this.dataValue||{}}},{key:"updateTree",value:function(){this.updateValue(this.treeRoot.value),this.redraw()}},{key:"checkData",value:function(e,t,n){return this.checkNode(e,this.treeRoot,t,n)}},{key:"checkNode",value:function(n,e,r,o){var i=this;return e.children.reduce(function(e,t){return i.checkNode(n,t,r,o)&&e},y(w(a.prototype),"checkData",this).call(this,n,r,e.data,e.components)&&!e.editing&&!e.new)}},{key:"getComponents",value:function(){return this.treeRoot&&(this.isDefaultValueComponent||!this.isDefaultValueComponent&&!this.builderMode)?this.treeRoot.getComponents():y(w(a.prototype),"getComponents",this).call(this)}}])&&p(t.prototype,n),e&&p(t,e),Object.defineProperty(t,"prototype",{writable:!1}),a}(u.default);(t.default=n).prototype.hasChanged=r.default.prototype.hasChanged},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(18),n(22),n(1),n(0),n(14);var d=(n=n(10))&&n.__esModule?n:{default: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)}}n=function(){function f(e){var n=this,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=t.data,r=void 0===r?{}:r,t=t.children,t=void 0===t?[]:t,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=o.checkNode,a=o.createComponents,l=o.isNew,l=void 0===l||l,s=o.removeComponents,o=o.parentPath,o=void 0===o?"":o,u=this,c=f;if(!(u instanceof c))throw new TypeError("Cannot call a class as a function");this.parent=e,this.previousData={},this.persistentData=d.default.cloneDeep(r),this.new=l,this.createComponents=a,this.checkNode=i,this.removeComponents=s,this.revertAvailable=!1,this.editing=!1,this.collapsed=!1,this.components=[],this.children=[],this.parentPath=o,this.resetData(),this.children=t.map(function(e,t){return new f(n,e,{checkNode:i,createComponents:a,isNew:!1,removeComponents:s,parentPath:n.getChildrenPath(t)})})}var e,t,n;return e=f,(t=[{key:"value",get:function(){return this.new?null:{data:d.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!d.default.isEmpty(this.persistentData)}},{key:"hasChildren",get:function(){return Array.isArray(this.children)&&0<this.children.length}},{key:"getChildrenPath",value:function(e){return this.parentPath?"".concat(this.parentPath,".children[").concat(e,"]"):""}},{key:"eachChild",value:function(t){return t(this),this.children.forEach(function(e){return e.eachChild(t)}),this}},{key:"getComponents",value:function(){return this.children.reduce(function(e,t){return e.concat(t.getComponents())},this.components)}},{key:"validateNode",value:function(){var t=this,n=!0;return this.getComponents().forEach(function(e){e.setPristine(!1),n&=e.checkValidity(null,!1,t.persistentData)}),n}},{key:"addChild",value:function(){if(this.new)return null;var e=new f(this,{},{checkNode:this.checkNode,createComponents:this.createComponents,isNew:!0,removeComponents:this.removeComponents,parentPath:this.getChildrenPath(this.children.length)});return this.children=this.children.concat(e),e}},{key:"removeChild",value:function(t){return this.new||(this.children=this.children.filter(function(e){return e!==t})),this}},{key:"edit",value:function(){return this.new?this:(this.editing=!0,this.resetData())}},{key:"save",value:function(){var e=this.validateNode();return this.changing&&e&&(this.new?this.new=!1:(this.editing=!1,this.revertAvailable=!0),this.commitData()),e}},{key:"cancel",value:function(){return this.new?this.remove():this.editing&&(this.editing=!1,this.resetData()),this}},{key:"remove",value:function(){return this.parent.removeChild(this),this.parent=null,this.clearComponents(),this}},{key:"revert",value:function(){return this.revertAvailable?(this.data=this.previousData,this.commitData()):this}},{key:"commitData",value:function(){return this.previousData=this.persistentData,this.persistentData=d.default.cloneDeep(this.data),this.clearComponents(),this}},{key:"resetData",value:function(){return this.data=d.default.cloneDeep(this.persistentData),this.updateComponentsContext(),this}},{key:"updateComponentsContext",value:function(){return this.changing?this.instantiateComponents():this.clearComponents(),this}},{key:"instantiateComponents",value:function(){var n=this;this.components=this.createComponents(this.data,this),this.components.forEach(function(e){var t;n.parentPath&&(t=n.calculateComponentPath(e),e.path=t)}),this.checkNode(this)}},{key:"clearComponents",value:function(){this.removeComponents(this.components),this.components=[]}},{key:"calculateComponentPath",value:function(e){var t="";return t=e.component.key?"".concat(this.parentPath,".data.").concat(e.component.key):t}}])&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),f}();t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,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 l(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=s(n),t=(e=r?(e=s(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(9);n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e);var n,r=l(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,e=[{key:"schema",value:function(){return{type:"custom",key:"custom",protected:!1,persistent:!0}}},{key:"builderInfo",get:function(){return{title:"Custom",icon:"cubes",group:"premium",documentation:"/userguide/form-components/#custom",weight:120,schema:o.schema()}}}],(n=[{key:"defaultSchema",get:function(){return o.schema()}}])&&i(t.prototype,n),e&&i(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(((n=n(53))&&n.__esModule?n:{default:n}).default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(1),n(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(9);var i=(n=n(97))&&n.__esModule?n:{default:n};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 l(){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=c(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=c(n),t=(e=r?(e=c(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e);var n,r=u(o);function o(e,t,n){if(this instanceof o)return(e=r.call(this,e,t,n)).validators.push("url"),e;throw new TypeError("Cannot call a class as a function")}return t=o,e=[{key:"schema",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.default.schema.apply(i.default,[{type:"url",label:"Url",key:"url",inputType:"url"}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Url",group:"advanced",icon:"link",documentation:"/userguide/#url",weight:20,schema:o.schema()}}}],(n=[{key:"defaultSchema",get:function(){return o.schema()}},{key:"elementInfo",value:function(){var e=l(c(o.prototype),"elementInfo",this).call(this);return e.attr.type=this.component.mask?"password":"url",e}}])&&a(t.prototype,n),e&&a(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(i.default);t.default=n},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n(1),n(8),n(2),n(6),n(7),n(3),n(5),n(4),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(0),n(9);var r=(n=n(77))&&n.__esModule?n:{default:n};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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=i(n),t=(e=r?(e=i(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e);var n,i=u(a);function a(){var e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=i.call.apply(i,[this].concat(r))).noField=!0,e}return t=a,e=[{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:"well",key:"well",input:!1,persistent:!1,components:[]}].concat(t))}},{key:"builderInfo",get:function(){return{title:"Well",icon:"square-o",group:"layout",documentation:"/userguide/#well",weight:60,schema:a.schema()}}}],(n=[{key:"defaultSchema",get:function(){return a.schema()}},{key:"className",get:function(){return"".concat(this.component.customClass)}},{key:"templateName",get:function(){return"well"}}])&&l(t.prototype,n),e&&l(t,e),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.default);t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n=((n=n(325))&&n.__esModule?n:{default:n}).default;t.default=n},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(8),n(13),n(11),n(2),n(6),n(7),n(3),n(5),n(4),n(42),n(32),n(20),n(16),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(18),n(0),n(40),n(45),n(1),n(14),n(9);var a=d(n(10)),i=d(n(24)),l=n(36),o=d(n(174)),s=n(19),u=n(161),c=d(n(98)),f=d(n(318));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=w(e)););return e}(e,t);if(r)return r=Object.getOwnPropertyDescriptor(r,t),r.get?r.get.call(arguments.length<3?e:n):r.value}).apply(this,arguments)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=w(n);return g(this,r?(e=w(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function g(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");t=e;if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e);var n,r=b(o);function o(){var e,t=this,n=o;if(t instanceof n)return(t=arguments[0]instanceof HTMLElement||arguments[1]?(e=arguments[0],arguments[1]):arguments[0]).skipInit=!0,t.display="pdf",(n=e?r.call(this,e,t):r.call(this,t)).dragDropEnabled=!1,g(n);throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"defaultGroups",get:function(){return{pdf:{title:"PDF Fields",weight:0,default:!0,components:{textfield:!0,number:!0,password:!0,email:!0,phoneNumber:!0,currency:!0,checkbox:!0,signature:!0,select:!0,textarea:!0,datetime:!0,file:!0,htmlelement:!0,signrequestsignature:!0}},basic:!1,advanced:!1,layout:!1,data:!1,premium:!1,resource:!1}}},{key:"hasPDF",get:function(){return a.default.has(this.webform.form,"settings.pdf")}},{key:"projectUrl",get:function(){return this.options.projectUrl||l.GlobalFormio.getProjectUrl()}},{key:"init",value:function(){this.options.attachMode="builder",this.webform=this.webform||this.createForm(this.options),this.webform.init()}},{key:"render",value:function(){var n=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 n.renderTemplate("builderSidebarGroup",{group:n.groups[t],groupKey:t,groupId:"builder-sidebar-".concat(n.id),subgroups:n.groups[t].subgroups.map(function(e){return n.renderTemplate("builderSidebarGroup",{group:e,groupKey:e.key,groupId:"group-container-".concat(t),subgroups:[]})})})})}),form:this.hasPDF?this.webform.render():this.renderTemplate("pdfBuilderUpload",{})})}},{key:"attach",value:function(e){var t,n=this;return this.hasPDF?y(w(o.prototype),"attach",this).call(this,e).then(function(){return n.loadRefs(n.element,{iframeDropzone:"single","sidebar-container":"multiple",sidebar:"single"}),n.afterAttach(),n.element}):(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&&((t=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(),t.upload(e.dataTransfer.files[0]),!1})),this.refs.fileBrowse&&this.refs.hiddenFileInputElement&&(this.addEventListener(this.refs.fileBrowse,"click",function(e){e.preventDefault(),"function"==typeof n.refs.hiddenFileInputElement.trigger?n.refs.hiddenFileInputElement.trigger("click"):n.refs.hiddenFileInputElement.click()}),this.addEventListener(this.refs.hiddenFileInputElement,"change",function(){n.refs.hiddenFileInputElement.value&&(n.upload(n.refs.hiddenFileInputElement.files[0]),n.refs.hiddenFileInputElement.value="")})),i.default.resolve())}},{key:"afterAttach",value:function(){var t=this,e=(this.on("saveComponent",function(e){t.webform.postMessage({name:"updateElement",data:e})}),this.on("removeComponent",function(e){t.webform.postMessage({name:"removeElement",data:e})}),this.initIframeEvents(),this.updateDropzoneDimensions(),this.refs.sidebar);e&&(this.addClass(e,"disabled"),this.webform.on("iframe-ready",function(){t.pdfLoaded=!0,t.updateDragAndDrop(),t.removeClass(e,"disabled")},!0))}},{key:"redraw",value:function(){var e=this;return y(w(o.prototype),"redraw",this).call(this).then(function(){return e.webform.redraw()})}},{key:"upload",value:function(e){var t=this,n=new l.GlobalFormio(this.projectUrl);this.refs.dragDropText&&(this.refs.dragDropText.style.display="none"),this.refs.uploadProgressWrapper&&(this.refs.uploadProgressWrapper.style.display="inherit"),n.uploadFile("url",e,e,"",function(e){t.refs.uploadProgress&&(e=Math.floor(e.loaded/e.total*100),t.refs.uploadProgress.style.width="".concat(e,"%"),t.refs.uploadProgress.innerHTML=98<e?t.t("Converting PDF. Please wait."):"".concat(t.t("Uploading")," ").concat(e,"%"))},"".concat(this.projectUrl,"/upload"),{},"file").then(function(e){a.default.set(t.webform.form,"settings.pdf",{id:e.data.file,src:"".concat(e.data.filesServer).concat(e.data.path)}),t.refs.dragDropText&&(t.refs.dragDropText.style.display="inherit"),t.refs.uploadProgressWrapper&&(t.refs.uploadProgressWrapper.style.display="none"),t.emit("pdfUploaded",e.data),t.redraw()}).catch(function(e){return t.setUploadError(e)})}},{key:"setUploadError",value:function(e){this.refs.uploadError&&(this.refs.uploadError.style.display=e?"":"none",this.refs.uploadError.innerHTML=e)}},{key:"createForm",value:function(e){var t=this;return e.skipInit=!1,e.hideLoader=!0,this.webform=new f.default(this.element,e),this.webform.on("attach",function(){t.refs.iframeDropzone&&!p(t.refs.form.children).includes(t.refs.iframeDropzone)&&t.prependTo(t.refs.iframeDropzone,t.refs.form)}),this.webform}},{key:"destroy",value:function(e){y(w(o.prototype),"destroy",this).call(this,e),this.webform.destroy(e)}},{key:"getParentContainer",value:function(r){var o=[],i=null;return(0,u.eachComponent)(this.webform._form.components,function(e,t,n){if(e.id===r.component.id)return o=n,i=e,!0},!0),{formioComponent:r.parent,formioContainer:o,originalComponent:i}}},{key:"initIframeEvents",value:function(){var n=this;this.webform.off("iframe-elementUpdate"),this.webform.off("iframe-componentUpdate"),this.webform.off("iframe-componentClick"),this.webform.on("iframe-elementUpdate",function(e){var t=n.webform.getComponentById(e.id);return t&&t.component&&(t.component.overlay={page:e.page,left:e.left,top:e.top,height:e.height,width:e.width},n.options.noNewEdit||t.component.noNewEdit||n.editComponent(t.component,n.getParentContainer(t),!0),n.emit("updateComponent",t.component)),t}),this.webform.on("iframe-componentUpdate",function(e){var t=n.webform.getComponentById(e.id);return t&&t.component&&(t.component.overlay={page:e.overlay.page,left:e.overlay.left,top:e.overlay.top,height:e.overlay.height,width:e.overlay.width},n.emit("updateComponent",t.component),n.emit("change",n.form)),t}),this.webform.on("iframe-componentClick",function(e){e=n.webform.getComponentById(e.id);e&&n.editComponent(e.component,n.getParentContainer(e))},!0)}},{key:"initDropzoneEvents",value:function(){this.refs.iframeDropzone&&(this.removeEventListener(this.refs.iframeDropzone,"dragover"),this.removeEventListener(this.refs.iframeDropzone,"drop"),this.addEventListener(this.refs.iframeDropzone,"dragover",function(e){return e.preventDefault(),!1}),this.addEventListener(this.refs.iframeDropzone,"drop",this.onDropzoneDrop.bind(this)))}},{key:"updateDragAndDrop",value:function(){this.pdfLoaded&&(this.initDropzoneEvents(),this.prepSidebarComponentsForDrag())}},{key:"prepSidebarComponentsForDrag",value:function(){var t=this;this.refs["sidebar-container"]&&this.refs["sidebar-container"].forEach(function(e){p(e.children).forEach(function(e){e.draggable=!0,e.setAttribute("draggable",!0),t.removeEventListener(e,"dragstart"),t.removeEventListener(e,"dragend"),t.addEventListener(e,"dragstart",t.onDragStart.bind(t),!0),t.addEventListener(e,"dragend",t.onDragEnd.bind(t),!0),t.addEventListener(e,"drag",function(e){e.target.style.cursor="none"})})})}},{key:"updateDropzoneDimensions",value:function(){var e;this.refs.iframeDropzone&&(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=e.offsetY,n=void 0===n?0:n;this.itemOffsetX=void 0===t?0:t,this.itemOffsetY=n,e.dataTransfer.setData("text",""),this.updateDropzoneDimensions(),this.addClass(this.refs.iframeDropzone,"enabled")}},{key:"onDropzoneDrop",value:function(e){return(this.dropEvent=e).preventDefault(),!1}},{key:"onDragEnd",value:function(e){var t,n,r,o=this.dropEvent?this.dropEvent.layerX:null,i=this.dropEvent?this.dropEvent.layerY:null;this.removeClass(this.refs.iframeDropzone,"enabled"),this.dropEvent&&(n=(t=e.target).getAttribute("data-type"),r=t.getAttribute("data-key"),t=t.getAttribute("data-group"),n=(0,s.fastCloneDeep)(this.schemas[n]),r&&t&&(r=this.getComponentInfo(r,t),a.default.merge(n,r)),c.default.uniquify([this.webform._form],n),this.webform._form.components.push(n),n.overlay={top:i-this.itemOffsetY+20,left:o-this.itemOffsetX,width:100,height:20},this.webform.addComponent(n,{},null,!0),this.webform.postMessage({name:"addElement",data:n}),this.emit("addComponent",n,this.webform,n.key,this.webform.component.components.length,!this.options.noNewEdit&&!n.noNewEdit),this.dropEvent=null,e.target.style.cursor="default")}},{key:"highlightInvalidComponents",value:function(){var n=this,e=this.findRepeatablePaths();a.default.isEqual(this.repeatablePaths,e)||((0,u.eachComponent)(this.webform.getComponents(),function(e,t){n.repeatablePaths.includes(t)&&n.webform.postMessage({name:"updateElement",data:e.component})}),this.repeatablePaths=e),e.length&&(0,u.eachComponent)(this.webform.getComponents(),function(e,t){n.repeatablePaths.includes(t)&&n.webform.postMessage({name:"showBuilderErrors",data:{compId:e.component.id,errorMessage:"API Key is not unique: ".concat(e.key)}})})}}])&&m(t.prototype,e),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(o.default);t.default=n},function(e,t,n){n(937)},function(e,t,n){"use strict";n(262)("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(938))},function(e,t,n){"use strict";var u=n(38).f,c=n(82),f=n(159),d=n(92),p=n(110),h=n(125),a=n(185),l=n(157),m=n(34),y=n(160).fastKey,n=n(59),v=n.set,b=n.getterFor;e.exports={getConstructor:function(e,n,r,o){function i(e,t,n){var r,o=s(e),i=a(e,t);return i?i.value=n:(o.last=i={index:r=y(t,!0),key:t,value:n,previous:t=o.last,next:void 0,removed:!1},o.first||(o.first=i),t&&(t.next=i),m?o.size++:e.size++,"F"!==r&&(o.index[r]=i)),e}function a(e,t){var n,e=s(e),r=y(t);if("F"!==r)return e.index[r];for(n=e.first;n;n=n.next)if(n.key==t)return n}var e=e(function(e,t){p(e,l),v(e,{type:n,index:c(null),first:void 0,last:void 0,size:0}),m||(e.size=0),null!=t&&h(t,e[o],{that:e,AS_ENTRIES:r})}),l=e.prototype,s=b(n);return f(l,{clear:function(){for(var e=s(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,m?e.size=0:this.size=0},delete:function(e){var t,n,r=s(this),e=a(this,e);return e&&(t=e.next,n=e.previous,delete r.index[e.index],e.removed=!0,n&&(n.next=t),t&&(t.previous=n),r.first==e&&(r.first=t),r.last==e&&(r.last=n),m?r.size--:this.size--),!!e},forEach:function(e){for(var t,n=s(this),r=d(e,1<arguments.length?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!a(this,e)}}),f(l,r?{get:function(e){e=a(this,e);return e&&e.value},set:function(e,t){return i(this,0===e?0:e,t)}}:{add:function(e){return i(this,e=0===e?0:e,e)}}),m&&u(l,"size",{get:function(){return s(this).size}}),e},setStrong:function(e,t,n){var r=t+" Iterator",o=b(t),i=b(r);a(e,t,function(e,t){v(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}:{value:e.target=void 0,done:!0}},n?"entries":"values",!n,!0),l(t)}}},function(L,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=I(t(137)),r=I(t(940)),o=I(t(944)),i=I(t(946)),a=I(t(950)),l=I(t(115)),s=I(t(952)),u=I(t(955)),c=I(t(958)),f=I(t(964)),d=I(t(968)),p=I(t(971)),h=I(t(977)),m=I(t(984)),y=I(t(989)),v=I(t(992)),b=I(t(994)),g=I(t(999)),w=I(t(1003)),k=I(t(1006)),_=I(t(84)),O=I(t(1009)),S=I(t(1013)),P=I(t(1043)),E=I(t(1047)),x=I(t(331)),j=I(t(1052)),C=I(t(1054)),R=I(t(1056)),A=I(t(1058)),M=I(t(1062)),T=I(t(1066)),D=I(t(1070)),V=I(t(1072)),N=I(t(1074)),F=I(t(1076)),U=I(t(85)),z=I(t(1079)),B=I(t(1082)),H=I(t(1084)),q=I(t(1086)),t=I(t(1090));function I(e){return e&&e.__esModule?e:{default:e}}n.default.address.editForm=r.default,n.default.button.editForm=o.default,n.default.checkbox.editForm=i.default,n.default.columns.editForm=a.default,n.default.component.editForm=l.default,n.default.container.editForm=s.default,n.default.content.editForm=u.default,n.default.currency.editForm=c.default,n.default.datagrid.editForm=f.default,n.default.datamap.editForm=d.default,n.default.datetime.editForm=p.default,n.default.day.editForm=h.default,n.default.editgrid.editForm=m.default,n.default.email.editForm=y.default,n.default.fieldset.editForm=v.default,n.default.file.editForm=b.default,n.default.form.editForm=g.default,n.default.hidden.editForm=w.default,n.default.htmlelement.editForm=k.default,n.default.nested.editForm=_.default,n.default.number.editForm=O.default,n.default.panel.editForm=S.default,n.default.password.editForm=P.default,n.default.phoneNumber.editForm=E.default,n.default.radio.editForm=x.default,n.default.recaptcha.editForm=j.default,n.default.resource.editForm=C.default,n.default.select.editForm=A.default,n.default.selectboxes.editForm=R.default,n.default.signature.editForm=M.default,n.default.survey.editForm=T.default,n.default.table.editForm=D.default,n.default.tabs.editForm=V.default,n.default.tags.editForm=N.default,n.default.textarea.editForm=F.default,n.default.textfield.editForm=U.default,n.default.time.editForm=z.default,n.default.tree.editForm=B.default,n.default.unknown.editForm=H.default,n.default.url.editForm=q.default,n.default.well.editForm=t.default;r=n.default;e.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"data",components:o.default},{key:"display",components:i.default},{label:"Provider",key:"provider",weight:15,components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=l(n(28)),o=l(n(941)),i=l(n(942)),a=l(n(943));function l(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",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,t.default=[{weight:20,type:"checkbox",input:!0,key:"enableManualMode",label:"Enable Manual Mode",tooltip:"Should Manual Mode be enabled for that component or not.",customConditional:function(e){return!e.data.multiple}},{weight:30,type:"textfield",input:!0,key:"switchToManualModeLabel",label:"Switch To Manual Mode Label",placeholder:"Switch To Manual Mode Label",tooltip:"The label for the checkbox used to switch to manual mode.",validate:{required:!0},customConditional:function(e){e=e.data;return Boolean(e.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}}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(18),n(109),n(3),n(1),n(4),n(20);var r,o=(r=n(10))&&r.__esModule?r:{default:r},i=n(36);t.default=[{type:"select",input:!0,key:"provider",label:"Provider",placeholder:"Select your address search provider",weight:0,tooltip:"Which address search service should be used.",valueProperty:"value",dataSrc:"custom",data:{custom:function(){return o.default.values(i.GlobalFormio.Providers.getProviders("address")).sort().map(function(e){return{label:e.displayName,value:e.name}})}},validate:{required:!0}},{type:"textfield",input:!0,key:"providerOptions.params['subscription-key']",label:"Subscription Key",placeholder:"Enter Subscription Key",weight:10,tooltip:"Use your Azure Maps subscription key here.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"azure"]}}},{type:"textfield",input:!0,key:"providerOptions.url",label:"Url",placeholder:"Enter Url",weight:10,tooltip:"Url to the service which should be used to search addresses for autocomplete.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.queryProperty",label:"Query Property",defaultValue:"query",placeholder:"Enter Query Property",weight:20,tooltip:"Which query param should be used to pass as a search string. Default is `query`.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.responseProperty",label:"Response Property",placeholder:"Enter Response Property",weight:30,tooltip:"The property within the response data, where iterable addresses reside. For example: results.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.displayValueProperty",label:"Display Value Property",placeholder:"Display Value Property",weight:40,tooltip:"The property of each address in the response to use as the display value.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textarea",input:!0,key:"providerOptions.params",label:"Params",placeholder:"{ ... }",weight:50,rows:5,editor:"ace",as:"json",tooltip:"Additional query params can be specified here in a way of JSON object.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.params.key",label:"API Key",placeholder:"Enter API Key",weight:10,tooltip:"Use your Google API key here.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"google"]}}},{type:"textarea",input:!0,key:"providerOptions.params.autocompleteOptions",label:"Provider options",placeholder:"Enter provider options as JSON object",defaultValue:{},weight:60,rows:5,as:"json",editor:"ace",tooltip:"Specify Google Maps Autocomplete options used for address searching as JSON object. Follow the <a href ='https://developers.google.com/maps/documentation/javascript/places-autocomplete' target='_blank'>link</a> for available options",conditional:{json:{"===":[{var:"data.provider"},"google"]}}},{type:"textarea",input:!0,key:"manualModeViewString",label:"Manual Mode View String",placeholder:"Enter Manual Mode View String",description:'"address" variable references component value, "data" - submission data and "component" - address component schema.',weight:60,rows:5,editor:"ace",tooltip:"Specify template which should be when quering view string for the component value entered in manual mode. This string is used in table view, CSV export and email rendering. When left blank combined value of all components joined with comma will be used."}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:o.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=i(n(28)),o=i(n(945));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(98)),o=i(n(10));function i(e){return e&&e.__esModule?e:{default:e}}t.default=[{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:"saveOnEnter",label:"Save On Enter",weight:113,tooltip:"Use the Enter key to submit form.",conditional:{json:{"===":[{var:"data.action"},"submit"]}}},{type:"checkbox",input:!0,inputType:"checkbox",key:"showValidations",label:"Show Validations",weight:115,tooltip:"When the button is pressed, show any validation errors on the form.",conditional:{json:{"!==":[{var:"data.action"},"submit"]}}},{type:"textfield",label:"Button Event",key:"event",input:!0,weight:120,tooltip:"The event to fire when the button is clicked.",conditional:{json:{"===":[{var:"data.action"},"event"]}}},{type:"textfield",inputType:"url",key:"url",input:!0,weight:120,label:"Button URL",tooltip:"The URL where the submission will be sent.",placeholder:"https://example.form.io",conditional:{json:{"===":[{var:"data.action"},"url"]}}},{type:"datagrid",key:"headers",input:!0,weight:130,label:"Headers",addAnother:"Add Header",tooltip:"Headers Properties and Values for your request",components:[{key:"header",label:"Header",input:!0,type:"textfield"},{key:"value",label:"Value",input:!0,type:"textfield"}],conditional:{json:{"===":[{var:"data.action"},"url"]}}},{type:"textarea",key:"custom",label:"Button Custom Logic",tooltip:"The custom logic to evaluate when the button is clicked.",rows:5,editor:"ace",input:!0,weight:120,placeholder:"data['mykey'] = data['anotherKey'];",conditional:{json:{"===":[{var:"data.action"},"custom"]}}},{type:"select",key:"theme",label:"Theme",input:!0,tooltip:"The color theme of this button.",dataSrc:"values",weight:140,data:{values:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Danger",value:"danger"},{label:"Warning",value:"warning"}]}},{type:"select",key:"size",label:"Size",input:!0,tooltip:"The size of this button.",dataSrc:"values",weight:150,data:{values:[{label:"Small",value:"sm"},{label:"Medium",value:"md"},{label:"Large",value:"lg"}]}},{type:"textfield",key:"leftIcon",label:"Left Icon",input:!0,placeholder:"Enter icon classes",tooltip:"This is the full icon class string to show the icon. Example: 'fa fa-plus'",weight:160},{type:"textfield",key:"rightIcon",label:"Right Icon",input:!0,placeholder:"Enter icon classes",tooltip:"This is the full icon class string to show the icon. Example: 'fa fa-plus'",weight:170},{type:"select",input:!0,weight:180,label:"Shortcut",key:"shortcut",tooltip:"Shortcut for this component.",dataSrc:"custom",valueProperty:"value",customDefaultValue:function(){return""},template:"{{ item.label }}",data:{custom:function(e){return r.default.getAvailableShortcuts(o.default.get(e,"instance.options.editForm",{}),o.default.get(e,"instance.options.editComponent",{}))}}},{type:"checkbox",key:"block",label:"Block Button",input:!0,weight:155,tooltip:"This control should span the full width of the bounding container."},{type:"checkbox",key:"disableOnInvalid",label:"Disable on Form Invalid",tooltip:"This will disable this field if the form is invalid.",input:!0,weight:620}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"data",components:o.default},{key:"display",components:i.default},{key:"validation",components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=l(n(28)),o=l(n(947)),i=l(n(948)),a=l(n(949));function l(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(98)),o=i(n(10));function i(e){return e&&e.__esModule?e:{default:e}}t.default=[{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"]}}}]},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(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=i(n(84)),o=i(n(951));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}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:o.default},{key:"data",components:i.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=a(n(28)),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:"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";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 r=o.default.baseEditForm.apply(o.default,[[{key:"display",components:i.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"logic",components:a.default},{key:"addons",ignore:!0}]].concat(t));return r.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(r.components),r},n(0);var o=r(n(28)),i=r(n(956)),a=r(n(957));function r(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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"data",components:i.default},{key:"validation",components:[{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0},{key:"validate.pattern",ignore:!0}]},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=a(n(85)),o=a(n(962)),i=a(n(963));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"}]},{weight:205,type:"checkbox",input:!0,key:"truncateMultipleSpaces",label:"Truncate Multiple Spaces"}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(171)),o=i(n(10));function i(e){return e&&e.__esModule?e:{default:e}}t.default=[{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;t=e.instance._currentForm.options.editComponent.widget;if(t&&!o.default.isEmpty(o.default.omit(t,"type"))&&n===t.type)return o.default.omit(t,"language");if(n)return o.default.omit(r.default[n].defaultSettings,"language")}return e.data.widget},input:!0,rows:5,editor:"ace",as:"json",conditional:{json:{"!==":[{var:"data.widget.type"},"input"]}}},{weight:410,type:"textfield",input:!0,key:"inputMask",label:"Input Mask",tooltip:"An input mask helps the user with input by ensuring a predefined format.<br><br>9: numeric<br>a: alphabetical<br>*: alphanumeric<br><br>Example telephone mask: (999) 999-9999<br><br>See the <a target='_blank' href='https://github.com/RobinHerbots/jquery.inputmask'>jquery.inputmask documentation</a> for more information.</a>",customConditional:function(e){return!e.data.allowMultipleMasks}},{weight:410,type:"textfield",input:!0,key:"displayMask",label:"Display Mask",tooltip:"A display mask helps to display the input in a readable way, this won't affect the  value which will be saved (to affect both view and saved value, delete Display Mask and use Input Mask).<br><br>9: numeric<br>a: alphabetical<br>*: alphanumeric<br><br>Example telephone mask: (999) 999-9999<br><br>See the <a target='_blank' href='https://github.com/RobinHerbots/jquery.inputmask'>jquery.inputmask documentation</a> for more information.</a>",customConditional:function(e){return!e.data.allowMultipleMasks}},{weight:411,type:"textfield",input:!0,key:"inputMaskPlaceholderChar",label:"Input Mask Placeholder Char",tooltip:"You can specify a char which will be used as a placeholder in the field. <br>E.g., ˍ<br>Make note that placeholder char will be replaced by a space if it is used inside the mask",validation:{maxLength:1},customConditional:function(e){return e.data.inputMask||e.data.displayMask}},{weight:413,type:"checkbox",input:!0,key:"allowMultipleMasks",label:"Allow Multiple Masks"},{weight:1350,type:"checkbox",input:!0,key:"spellcheck",defaultValue:!0,label:"Allow Spellcheck"},{weight:417,type:"datagrid",input:!0,key:"inputMasks",label:"Input Masks",customConditional:function(e){return!0===e.data.allowMultipleMasks},reorder:!0,components:[{type:"textfield",key:"label",label:"Label",input:!0},{type:"textfield",key:"mask",label:"Mask",input:!0}]},{weight:320,type:"textfield",input:!0,key:"prefix",label:"Prefix"},{weight:330,type:"textfield",input:!0,key:"suffix",label:"Suffix"},{weight:700,type:"textfield",input:!0,key:"autocomplete",label:"Autocomplete",placeholder:"on",tooltip:"Indicates whether input elements can by default have their values automatically completed by the browser. See the <a href='https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete'>MDN documentation</a> on autocomplete for more information."},{weight:1300,type:"checkbox",label:"Hide Input",tooltip:"Hide the input in the browser. This does not encrypt on the server. Do not use for passwords.",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}]},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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=l(n(28)),o=l(n(965)),i=l(n(966)),a=l(n(967));function l(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:"javascript",wysiwyg:{minLines:3}},{type:"checkbox",label:"Allow Reorder",key:"reorder",weight:407,input:!0},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:function(e){return!e.data.disableAddingRemovingRows}},{type:"select",label:"Add Another Position",key:"addAnotherPosition",dataSrc:"values",tooltip:"Position for Add Another button with respect to Data Grid Array.",defaultValue:"bottom",input:!0,data:{values:[{label:"Top",value:"top"},{label:"Bottom",value:"bottom"},{label:"Both",value:"both"}]},weight:411,customConditional:function(e){return!e.data.disableAddingRemovingRows}},{type:"checkbox",label:"Equal column width",key:"layoutFixed",weight:430,input:!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=[{ignore:!0,key:"unique"},{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"textfield",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"textfield",tooltip:"The maximum length requirement this field must meet.",input:!0}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=a(n(28)),o=a(n(969)),i=a(n(970));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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:a.default},{label:"Date",key:"date",weight:1,components:i.default},{label:"Time",key:"time",weight:2,components:l.default},{key:"data",components:o.default},{key:"validation",components:s.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=u(n(28)),o=u(n(972)),i=u(n(973)),a=u(n(974)),l=u(n(975)),s=u(n(976));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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(96));function o(e){return e&&e.__esModule?e:{default:e}}n=[{type:"checkbox",input:!0,key:"enableDate",label:"Enable Date Input",weight:0,tooltip:"Enables date input for this field."},{type:"tags",input:!0,key:"datePicker.disable",label:"Disable specific dates or dates by range",placeholder:"(yyyy-MM-dd) or (yyyy-MM-dd - yyyy-MM-dd)",tooltip:"Add dates that you want to blacklist. For example: \n \n 2025-02-21",validate:{custom:"if (_.isEmpty(input)) {\n  return true;\n}\nconst dates = _.isArray(input) ?\ninput : input.split(component.delimeter);\nconst isValid = _.every(dates, (data) => \n  !!data.match(/\\d{4}-\\d{2}-\\d{2}/g));\nvalid = isValid || 'Invalid date';"},weight:21},{type:"panel",title:"Custom Disabled Dates",collapsible:!0,collapsed:!0,style:{"margin-bottom":"10px"},key:"panel-disable-function",customConditional:function(){return!r.default.noeval||r.default.protectedEval},components:[o(n(74)).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=n},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},{type:"editgrid",input:!0,key:"shortcutButtons",label:"Shortcut Buttons",description:"You can specify few buttons which will be shown above the calendar. Use Label to specify the name of the button and onClick to specify which date/time will be set when user clicks the button. E.g, date = new Date()",templates:{header:'<div class="row">\n  <div class="col-sm-3">Label</div>\n  <div class="col-sm-6">onClick</div>\n</div>',row:'<div class="row">\n      <div class="col-sm-3">\n        {{ flattenedComponents.label.getView(row.label) }}\n      </div>\n      <div class="col-sm-6">\n        {{ flattenedComponents.onClick.getView(row.onClick) }}\n      </div>\n      {% if (!instance.disabled) { %}\n        <div class="col-sm-3">\n          <div class="btn-group pull-right">\n            <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass("edit") }}"></i></button>\n            {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n              <button class="btn btn-danger btn-sm removeRow"><i class="{{ iconClass("trash") }}"></i></button>\n            {% } %}\n          </div>\n        </div>\n      {% } %}\n    </div>'},components:[{label:"Label",key:"label",type:"textfield",input:!0,validate:{required:!0}},{label:"onClick",key:"onClick",type:"textarea",editor:"ace",input:!0,validate:{required:!0}}],defaultValue:[]}]},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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{type:"checkbox",input:!0,key:"enableMinDateInput",label:"Use Input to add moment.js for minDate",persistent:!1,weight:10,tooltip:"Enables to use input for moment functions instead of calendar."},{type:"datetime",input:!0,key:"datePicker.minDate",label:"Use calendar to set minDate",skipMerge:!0,weight:10,tooltip:"Enables to use calendar to set date.",customConditional:function(e){var t=e.data,e=e.component;return(!e.datePicker||!e.datePicker.minDate||-1===e.datePicker.minDate.indexOf("moment"))&&!t.enableMinDateInput}},{type:"textfield",input:!0,enableTime:!1,key:"datePicker.minDate",skipMerge:!0,label:"Minimum Date",weight:10,tooltip:"The minimum date that can be picked. You can also use Moment.js functions. For example: \n \n moment().subtract(10, 'days')",customConditional:function(e){var t=e.data,e=e.component;return!(!e.datePicker||!e.datePicker.minDate||-1===e.datePicker.minDate.indexOf("moment"))||t.enableMinDateInput}},{type:"checkbox",input:!0,key:"enableMaxDateInput",label:"Use Input to add moment.js for maxDate",persistent:!1,weight:20,tooltip:"Enables to use input for moment functions instead of calendar."},{type:"datetime",input:!0,key:"datePicker.maxDate",skipMerge:!0,label:"Use calendar to set maxDate",weight:20,tooltip:"Enables to use calendar to set date.",customConditional:function(e){var t=e.data,e=e.component;return(!e.datePicker||!e.datePicker.maxDate||-1===e.datePicker.maxDate.indexOf("moment"))&&!t.enableMaxDateInput}},{type:"textfield",input:!0,enableTime:!1,key:"datePicker.maxDate",skipMerge:!0,label:"Maximum Date",tooltip:"The maximum date that can be picked. You can also use Moment.js functions. For example: \n \n moment().add(10, 'days')",weight:20,customConditional:function(e){var t=e.data,e=e.component;return!(!e.datePicker||!e.datePicker.maxDate||-1===e.datePicker.maxDate.indexOf("moment"))||t.enableMaxDateInput}}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:a.default},{key:"day",label:"Day",weight:3,components:l.default},{key:"month",label:"Month",weight:3,components:s.default},{key:"year",label:"Year",weight:3,components:u.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=c(n(28)),o=c(n(978)),i=c(n(979)),a=c(n(980)),l=c(n(981)),s=c(n(982)),u=c(n(983));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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{label:"Templates",key:"templates",weight:5,components:a.default},{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:l.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=s(n(28)),o=s(n(985)),i=s(n(986)),a=s(n(987)),l=s(n(988));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=[{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;var r=(n=n(96))&&n.__esModule?n:{default:n};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;"},{type:"checkbox",label:"Display EditGrid as Table",key:"displayAsTable",tooltip:"use Table Template",weight:1002,input:!1,customConditional:function(){return!r.default.noeval}},{weight:1010,type:"textarea",input:!0,key:"conditionalAddButton",label:"Conditional Add Button",placeholder:"show = ...",tooltip:"Specify condition when Add Button should be displayed.",editor:"ace",as:"javascript",wysiwyg:{minLines:3}}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(n=n(96))&&n.__esModule?n:{default:n};t.default=[{type:"textarea",label:"Header Template",key:"templates.header",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render the header of the Edit grid.",customConditional:function(e){e=e.data;return(!r.default.noeval||r.default.protectedEval)&&!e.displayAsTable}},{type:"textarea",label:"Table Header Template",key:"templates.tableHeader",rows:6,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render the header of the Edit grid.",customConditional:function(e){e=e.data;return(!r.default.noeval||r.default.protectedEval)&&e.displayAsTable}},{type:"textarea",label:"Row Template",key:"templates.row",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Three available variables. "row" is an object of one row\'s data, "components" is the array of components in the grid and "state" is current row\'s state (can be "draft" or "saved"). To add click events, add the classes "editRow" and "removeRow" to elements.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render each row of the Edit grid.",customConditional:function(e){e=e.data;return(!r.default.noeval||r.default.protectedEval)&&!e.displayAsTable}},{type:"textarea",label:"Table Row Template",key:"templates.tableRow",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Three available variables. "row" is an object of one row\'s data, "components" is the array of components in the grid and "state" is current row\'s state (can be "draft" or "saved"). To add click events, add the classes "editRow" and "removeRow" to elements.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render each row of the Edit grid.",customConditional:function(e){e=e.data;return(!r.default.noeval||r.default.protectedEval)&&e.displayAsTable}},{type:"textarea",label:"Footer Template",key:"templates.footer",rows:5,editor:"ace",as:"handlebars",input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the <a href='https://lodash.com/docs/4.17.5#template'>Lodash Template</a> used to render the footer of the Edit grid.",customConditional:function(){return!r.default.noeval||r.default.protectedEval}},{type:"textfield",input:!0,key:"rowClass",label:"Row CSS Class",placeholder:"Row CSS Class",tooltip:"CSS class to add to the edit row wrapper."},{type:"textfield",input:!0,key:"addAnother",label:"Add Another Text",placeholder:"Add Another",tooltip:"Set the text of the Add Another button."},{weight:70,type:"checkbox",label:"Display as Modal",tooltip:"Display a modal to add or edit entries in the table",key:"modal",input:!0},{type:"textfield",input:!0,key:"saveRow",label:"Save Row Text",placeholder:"Save",tooltip:"Set the text of the Save Row button."},{type:"textfield",input:!0,key:"removeRow",label:"Remove Row Text",placeholder:"Remove",tooltip:"Set the text of the remove Row button."}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{ignore:!0,key:"unique"},{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"validation",components:i.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=a(n(85)),o=a(n(990)),i=a(n(991));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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=i(n(84)),o=i(n(993));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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{label:"File",key:"file",weight:5,components:a.default},{key:"validation",components:l.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=s(n(28)),o=s(n(995)),i=s(n(996)),a=s(n(997)),l=s(n(998));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:"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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(18);var r=n(36),o=(n=n(10))&&n.__esModule?n:{default:n};t.default=[{type:"select",input:!0,key:"storage",label:"Storage",placeholder:"Select your file storage provider",weight:0,tooltip:"Which storage to save the files in.",valueProperty:"value",dataSrc:"custom",data:{custom:function(){return o.default.map(r.GlobalFormio.Providers.getProviders("storage"),function(e,t){return{label:e.title,value:t}})}}},{type:"textfield",input:!0,key:"url",label:"Url",weight:10,placeholder:"Enter the url to post the files to.",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#server-side' target='_blank'>https://github.com/danialfarid/ng-file-upload#server-side</a> for how to set up the server.",conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"options.indexeddb",label:"Database",weight:10,placeholder:"Enter the indexeddb database name",conditional:{json:{in:[{var:"data.storage"},["indexeddb"]]}}},{type:"textfield",input:!0,label:"Table",key:"options.indexeddbTable",weight:10,placeholder:"Enter the name for indexeddb table",conditional:{json:{in:[{var:"data.storage"},["indexeddb"]]}}},{type:"textarea",key:"options",label:"Custom request options",tooltip:"Pass your custom xhr options(optional)",rows:5,editor:"ace",input:!0,weight:15,placeholder:'{\n  "withCredentials": true\n}',conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"fileKey",label:"File form-data key",weight:17,placeholder:"Enter the key name of a file for form data.",tooltip:"Key name that you would like to modify for the file while calling API request.",conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"dir",label:"Directory",placeholder:"(optional) Enter a directory for the files",tooltip:"This will place all the files uploaded in this field in the directory",weight:20,conditional:{json:{"!==":[{var:"data.storage"},"googledrive"]}}},{type:"textfield",input:!0,key:"dir",label:"Folder ID",placeholder:"(optional) Enter an ID of the folder for the files",tooltip:"This will place all the files uploaded in this field in the folder",weight:20,conditional:{json:{"===":[{var:"data.storage"},"googledrive"]}}},{type:"textfield",input:!0,key:"fileNameTemplate",label:"File Name Template",placeholder:'(optional) { {name} }-{ {guid} }"',tooltip:"Specify template for name of uploaded file(s). Regular template variables are available (`data`, `component`, `user`, `value`, `moment` etc.), also `fileName`, `guid` variables are available. `guid` part must be present, if not found in template, will be added at the end.",weight:25},{type:"checkbox",input:!0,key:"image",label:"Display as image(s)",tooltip:"Instead of a list of linked files, images will be rendered in the view.",weight:30},{type:"checkbox",input:!0,key:"uploadOnly",label:"Upload Only",tooltip:"When this is checked, will only allow you to upload file(s) and consequently the download, in this component, will be unavailable.",weight:33},{type:"checkbox",input:!0,key:"privateDownload",label:"Private Download",tooltip:"When this is checked, the file download will send a POST request to the download URL with the x-jwt-token header. This will allow your endpoint to create a Private download system.",weight:31,conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"imageSize",label:"Image Size",placeholder:"100",tooltip:"The image size for previewing images.",weight:40,conditional:{json:{"==":[{var:"data.image"},!0]}}},{type:"checkbox",input:!0,key:"webcam",label:"Enable web camera",tooltip:"This will allow using an attached camera to directly take a picture instead of uploading an existing file.",weight:32},{type:"textfield",input:!0,key:"webcamSize",label:"Webcam Width",placeholder:"320",tooltip:"The webcam size for taking pictures.",weight:38,conditional:{json:{"==":[{var:"data.webcam"},!0]}}},{type:"datagrid",input:!0,label:"File Types",key:"fileTypes",tooltip:"Specify file types to classify the uploads. This is useful if you allow multiple types of uploads but want to allow the user to specify which type of file each is.",weight:11,components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}]},{type:"textfield",input:!0,key:"filePattern",label:"File Pattern",placeholder:".jpg,video/*,application/pdf",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#full-reference' target='_blank'>https://github.com/danialfarid/ng-file-upload#full-reference</a> for how to specify file patterns.",weight:50},{type:"textfield",input:!0,key:"fileMinSize",label:"File Minimum Size",placeholder:"1MB",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#full-reference' target='_blank'>https://github.com/danialfarid/ng-file-upload#full-reference</a> for how to specify file sizes.",weight:60},{type:"textfield",input:!0,key:"fileMaxSize",label:"File Maximum Size",placeholder:"10MB",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#full-reference' target='_blank'>https://github.com/danialfarid/ng-file-upload#full-reference</a> for how to specify file sizes.",weight:70}]},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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{label:"Form",key:"form",weight:10,components:i.default},{label:"Data",key:"data",weight:10,components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=l(n(84)),o=l(n(1e3)),i=l(n(1001)),a=l(n(1002));function l(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:"tabIndex",ignore:!0},{key:"autofocus",ignore:!0}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(50),n(1);t.default=[{type:"select",input:!0,dataSrc:"url",data:{url:"/form?limit=1000000&select=_id,title,display"},searchField:"title__regex",template:"<span>{{ item.title }}</span>",valueProperty:"_id",authenticate:!0,label:"Form",key:"form",weight:10,lazyLoad:!1,tooltip:"The form to load within this form component.",validate:{required:!0}},{label:"Lazy Load",inputType:"checkbox",defaultValue:!0,clearOnHide:!0,errorLabel:"",key:"lazyLoad",type:"checkbox",tooltip:"if it is checked, the subform is loaded after navigation to the page with this component within the wizard.",input:!0,customConditional:function(e){var t=e.instance,n=e.data,e=null==(e=t.root)||null==(e=e.getComponent("form"))?void 0:e.defaultDownloadedResources.find(function(e){return e._id===n.form});return"wizard"===(null==(t=t.options)||null==(t=t.editForm)?void 0:t.display)&&e&&"wizard"!==e.display}},{type:"select",input:!0,dataSrc:"url",data:{url:"/form/{{ data.form }}/v"},searchField:"title__regex",template:"<span>{{ item._vid }}</span>",valueProperty:"_id",authenticate:!0,label:"Form Revision",key:"revision",weight:10,lazyLoad:!0,tooltip:"You can lock the nested form to a specific revision by choosing the revision number here.",customConditional:"show = !!data.form"},{type:"checkbox",input:!0,weight:19,key:"useOriginalRevision",label:"Use Original Revision while Submissions Viewing",tooltip:"Using this option will make form load the original revision (the one which was used to make a submission) when viewing a submission."},{type:"checkbox",input:!0,weight:20,key:"reference",label:"Save as reference",tooltip:"Using this option will save this field as a reference and link its value to the value of the origin record."}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n=(n=n(74))&&n.__esModule?n:{default:n};n=[n.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>'),n.default.javaScriptValue("Calculated Value","calculateValue","calculateValue",130,"<p><h4>Example:</h4><pre>value = data.a + data.b + data.c;</pre></p>",'<p><h4>Example:</h4><pre>{"+": [{"var": "data.a"}, {"var": "data.b"}, {"var": "data.c"}]}</pre><p><a target="_blank" href="http://formio.github.io/formio.js/app/examples/calculated.html">Click here for an example</a></p>'),{weight:140,type:"checkbox",label:"Clear Value When Hidden",key:"clearOnHide",defaultValue:!0,tooltip:"When a field is hidden, clear the value.",input:!0,clearOnHide:!1,calculateValue:"value = data.hidden ? false : value",conditional:{json:{"!":[{var:"data.hidden"}]}}}];t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:o.default},{key:"data",components:i.default},{key:"validation",ignore:!0},{key:"conditional",ignore:!0},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=a(n(28)),o=a(n(1004)),i=a(n(1005));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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:o.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"logic",components:i.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=a(n(28)),o=a(n(1007)),i=a(n(1008));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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"data",components:i.default},{key:"validation",components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=l(n(85)),o=l(n(1010)),i=l(n(1011)),a=l(n(1012));function l(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:"spellcheck",ignore:!0},{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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"conditional",components:i.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=a(n(84)),o=a(n(1014)),i=a(n(1042));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,n(1);var o=r(n(326)),i=r(n(327)),a=r(n(330)),l=r(n(202));function r(e){return e&&e.__esModule?e:{default:e}}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"]}}},{input:!0,type:"checkbox",label:"Allow Previous",key:"allowPrevious",defaultValue:!1,tooltip:"Determines if the breadcrumb bar is clickable or not for visited tabs.",conditional:{json:{"===":[{var:"data.breadcrumbClickable"},!1]}}},{weight:50,label:"Panel Navigation Buttons",optionsLabelPosition:"right",values:[{label:"Previous",value:"previous"},{label:"Cancel",value:"cancel"},{label:"Next",value:"next"}],inline:!0,type:"selectboxes",key:"buttonSettings",input:!0,inputType:"checkbox",defaultValue:{previous:!0,cancel:!0,next:!0}},{weight:55,label:"Navigate Wizard on Enter",type:"checkbox",key:"navigateOnEnter",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Use the Enter key to go forward through pages."},{weight:56,label:"Save on Enter",type:"checkbox",key:"saveOnEnter",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Use the Enter key to submit form on last page."},{weight:60,label:"Scroll up on page opening",type:"checkbox",key:"scrollToTop",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Scroll to the top of the wizard page when user navigates to it"}],customConditional:function(e){var t,n,r=!1;return"wizard"===e.instance.options.editForm.display&&(t=e.instance.options.editForm.components,n=e.instance.options.editComponent,t&&n&&(r=t.some(function(e){var t=(0,a.default)((0,l.default)(e),(0,l.default)(n))||[];return t.push("components"),(0,o.default)((0,i.default)(e,t),(0,i.default)(n,t))}))),r}},{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){var a=n(1016),l=n(129);e.exports=function e(t,n,r,o,i){return t===n||(null==t||null==n||!l(t)&&!l(n)?t!=t&&n!=n:a(t,n,r,o,e,i))}},function(e,t,n){var f=n(1017),d=n(1023),p=n(1025),h=n(1026),m=n(1028),y=n(111),v=n(1029),b=n(1030),g="[object Arguments]",w="[object Array]",k="[object Object]",_=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,r,o,i){var a=y(e),l=y(t),s=a?w:m(e),l=l?w:m(t),u=(s=s==g?k:s)==k,c=(l=l==g?k:l)==k;if((l=s==l)&&v(e)){if(!v(t))return!1;u=!(a=!0)}if(l&&!u)return i=i||new f,a||b(e)?d(e,t,n,r,o,i):p(e,t,s,n,r,o,i);if(!(1&n)){a=u&&_.call(e,"__wrapped__"),s=c&&_.call(t,"__wrapped__");if(a||s)return o(a?e.value():e,s?t.value():t,n,r,i=i||new f)}return!!l&&(i=i||new f,h(e,t,n,r,o,i))}},function(e,t,n){var r=n(1018),o=n(1019),i=n(1020),a=n(1021),n=n(1022);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=n,e.exports=l},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(175),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__;return!((e=r(t,e))<0)&&(e==t.length-1?t.pop():o.call(t,e,1),--this.size,!0)}},function(e,t,n){var r=n(175);e.exports=function(e){var t=this.__data__;return(e=r(t,e))<0?void 0:t[e][1]}},function(e,t,n){var r=n(175);e.exports=function(e){return-1<r(this.__data__,e)}},function(e,t,n){var o=n(175);e.exports=function(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},function(e,t,n){var y=n(209),v=n(1024),b=n(210);e.exports=function(e,t,n,r,o,i){var a=1&n,l=e.length,s=t.length;if(l!=s&&!(a&&l<s))return!1;var s=i.get(e),u=i.get(t);if(s&&u)return s==t&&u==e;var c=-1,f=!0,d=2&n?new y:void 0;for(i.set(e,t),i.set(t,e);++c<l;){var p,h=e[c],m=t[c];if(void 0!==(p=r?a?r(m,h,c,t,e,i):r(h,m,c,e,t,i):p)){if(p)continue;f=!1;break}if(d){if(!v(t,function(e,t){if(!b(d,t)&&(h===e||o(h,e,n,r,i)))return d.push(t)})){f=!1;break}}else if(h!==m&&!o(h,m,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var b=n(1027),g=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,r,o,i){var a=1&n,l=b(e),s=l.length;if(s!=b(t).length&&!a)return!1;for(var u=s;u--;){var c=l[u];if(!(a?c in t:g.call(t,c)))return!1}var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;for(var p=!0,h=(i.set(e,t),i.set(t,e),a);++u<s;){var m,y=e[c=l[u]],v=t[c];if(!(void 0===(m=r?a?r(v,y,c,t,e,i):r(y,v,c,e,t,i):m)?y===v||o(y,v,n,r,i):m)){p=!1;break}h=h||"constructor"==c}return p&&!h&&(f=e.constructor)!=(d=t.constructor)&&"constructor"in e&&"constructor"in t&&!("function"==typeof f&&f instanceof f&&"function"==typeof d&&d instanceof d)&&(p=!1),i.delete(e),i.delete(t),p}},function(e,t,n){n=n(203)(Object.keys,Object);e.exports=n},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(){return!1}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(127),o=n(1032),i=n(1033),a=n(200);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var u=n(267),c=n(268);e.exports=function(e,t,n,r){for(var o=!n,i=(n=n||{},-1),a=t.length;++i<a;){var l=t[i],s=r?r(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),(o?c:u)(n,l,s)}return n}},function(e,t,n){var r=n(273);e.exports=function(e){return r(e)?void 0:e}},function(e,t,n){var r=n(329);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},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(1039),o=n(271),i=n(111),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t,n){n=n(204).Symbol;e.exports=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){var p=n(209),h=n(281),m=n(282),y=n(168),v=n(283),b=n(210);e.exports=function(e,t,n,r){var o=-1,i=h,a=!0,l=e.length,s=[],u=t.length;if(l){n&&(t=y(t,v(n))),r?(i=m,a=!1):200<=t.length&&(i=b,a=!1,t=new p(t));e:for(;++o<l;){var c=e[o],f=null==n?c:n(c),c=r||0!==c?c:0;if(a&&f==f){for(var d=u;d--;)if(t[d]===f)continue e;s.push(c)}else i(t,f,r)||s.push(c)}}return s}},function(e,t,n){"use strict";n(23),n(2),n(22),n(11),n(14),n(31),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(1);var r=s(n(74)),o=s(n(326)),i=s(n(327)),a=s(n(330)),l=s(n(202));function s(e){return e&&e.__esModule?e:{default:e}}function u(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function c(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?u(Object(o),!0).forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):u(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))})}return r}n=[c(c({},r.default.javaScriptValue("Advanced Next Page","nextPage","nextPage",110,"\n  <p>You must assign the <strong>next</strong> variable with the API key of the next page.</p>\n  <p>The global variable <strong>data</strong> is provided, and allows you to access the data of any form component, by using its API key.</p>\n  <p>Also <strong>moment</strong> library is available, and allows you to manipulate dates in a convenient way.</p>\n  <h5>Example</h5><pre>next = data.addComment ? 'page3' : 'page4';</pre>\n","\n  <p>Submission data is available as JsonLogic variables, with the same api key as your components.</p>\n")),{},{customConditional:function(e){var t,n,r=!1;return"wizard"===e.instance.options.editForm.display&&(t=e.instance.options.editForm.components,n=e.instance.options.editComponent,t&&n&&(r=t.some(function(e){var t=(0,a.default)((0,l.default)(e),(0,l.default)(n))||[];return t.push("components"),(0,o.default)((0,i.default)(e,t),(0,i.default)(n,t))}))),r}})];t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.default.apply(void 0,[[{key:"data",components:a.default},{key:"display",components:i.default},{key:"validation",components:l.default},{label:"Addons",key:"addons",weight:70,components:r.default}]].concat(t))},n(0);var r=s(n(303)),o=s(n(85)),i=s(n(1044)),a=s(n(1045)),l=s(n(1046));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=[{ignore:!0,key:"mask"},{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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:[{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},{key:"validation",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=i(n(85)),o=i(n(1048));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(98)),o=i(n(10));function i(e){return e&&e.__esModule?e:{default:e}}t.default=[{key:"multiple",ignore:!0},{type:"datagrid",input:!0,label:"Values",key:"values",tooltip:"The radio button values that can be picked for this field. Values are text submitted with the form data. Labels are text that appears next to the radio buttons on the form.",weight:10,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:"value = _.camelCase(row.label);",validate:{required:!0}},{type:"select",input:!0,weight:180,label:"Shortcut",key:"shortcut",tooltip:"The shortcut key for this option.",dataSrc:"custom",valueProperty:"value",customDefaultValue:function(){return""},template:"{{ item.label }}",data:{custom:function(e){return r.default.getAvailableShortcuts(o.default.get(e,"instance.options.editForm",{}),o.default.get(e,"instance.options.editComponent",{}))}}}]},{type:"select",input:!0,label:"Storage Type",key:"dataType",clearOnHide:!0,tooltip:"The type to store the data. If you select something other than autotype, it will force it to that type.",weight:12,template:"<span>{{ item.label }}</span>",dataSrc:"values",data:{values:[{label:"Autotype",value:"auto"},{label:"String",value:"string"},{label:"Number",value:"number"},{label:"Boolean",value:"boolean"},{label:"Object",value:"object"}]}}]},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},{weight:52,type:"checkbox",label:"Allow only available values",tooltip:"Check this if you would like to perform a validation check to ensure the selected value is an available option.",key:"validate.onlyAvailableItems",input:!0}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return r.default.baseEditForm([{key:"display",components:o.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"conditional",ignore:!0},{key:"logic",ignore:!0},{key:"addons",ignore:!0}])};var r=i(n(28)),o=i(n(1053));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=n(19);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},{type:"select",input:!0,label:"Button Key",key:"buttonKey",dataSrc:"custom",valueProperty:"value",tooltip:"Specify key of button on this form that this reCAPTCHA should react to",weight:660,customConditional:function(e){return"buttonClick"===e.data.eventType},data:{custom:function(e){return(0,r.getContextButtons)(e)}}},{key:"label",ignore:!0},{key:"hideLabel",ignore:!0},{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"errorLabel",ignore:!0},{key:"customClass",ignore:!0},{key:"tabindex",ignore:!0},{key:"multiple",ignore:!0},{key:"clearOnHide",ignore:!0},{key:"hidden",ignore:!0},{key:"mask",ignore:!0},{key:"dataGridLabel",ignore:!0},{key:"disabled",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=i(n(28)),o=i(n(1055));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=1000000&select=_id,title"},authenticate:!0,template:"<span>{{ item.title }}</span>",valueProperty:"_id",label:"Resource",key:"resource",weight:50,tooltip:"The resource to be used with this field."},{type:"tags",input:!0,key:"selectFields",label:"Select Fields",tooltip:"The properties on the resource to return as part of the options. If left blank, all properties will be returned.",placeholder:"Enter the fields to select.",weight:51},{type:"tags",input:!0,key:"searchFields",label:"Search Fields",tooltip:"A list of search 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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"data",components:[{key:"dataType",ignore:!0}]},{key:"validation",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=i(n(331)),o=i(n(1057));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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=l(n(28)),o=l(n(1059)),i=l(n(1060)),a=l(n(1061));function l(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(169);var r=n(19);t.default=[{type:"select",input:!0,weight:0,tooltip:"The source to use for the select data. Values lets you provide your own values and labels. JSON lets you provide raw JSON data. URL lets you provide a URL to retrieve the JSON data from.",key:"dataSrc",defaultValue:"values",label:"Data Source Type",dataSrc:"values",data:{values:[{label:"Values",value:"values"},{label:"URL",value:"url"},{label:"Resource",value:"resource"},{label:"Custom",value:"custom"},{label:"Raw JSON",value:"json"}]}},{type:"textfield",weight:10,input:!0,key:"indexeddb.database",label:"Database name",tooltip:"The name of the indexeddb database.",conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textfield",input:!0,key:"indexeddb.table",label:"Table name",weight:16,tooltip:"The name of table in the indexeddb database.",conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textarea",as:"json",editor:"ace",weight:18,input:!0,key:"indexeddb.filter",label:"Row Filter",tooltip:"Filter table items that match the object.",defaultValue:{},conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"data.json",label:"Data Source Raw JSON",tooltip:"A valid JSON array to use as a data source.",description:'<div>Example: <pre>["apple", "banana", "orange"].</pre></div> <div>Example 2: <pre>[{"name": "John", "email": "john.doe@test.com"}, {"name": "Jane", "email": "jane.doe@test.com"}].</pre></div>',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:{and:[{in:[{var:"data.dataSrc"},["resource","url"]]},{"!==":[{var:"data.widget"},"html5"]}]}}},{type:"datagrid",input:!0,label:"Request Headers",key:"data.headers",tooltip:"Set any headers that should be sent along with the request to the url. This is useful for authentication.",weight:11,components:[{label:"Key",key:"key",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}],conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"datagrid",input:!0,label:"Data Source Values",key:"data.values",tooltip:"Values to use as the data source. Labels are shown in the select field. Values are the corresponding values saved with the submission.",weight:10,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:"value = _.camelCase(row.label);"}],conditional:{json:{"===":[{var:"data.dataSrc"},"values"]}}},{type:"select",input:!0,dataSrc:"url",data:{url:"/form?type=resource&limit=1000000&select=_id,title"},authenticate:!0,template:"<span>{{ item.title }}</span>",valueProperty:"_id",clearOnHide:!1,label:"Resource",key:"data.resource",lazyLoad:!1,weight:10,tooltip:"The resource to be used with this field.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",input:!0,label:"Data Path",key:"selectValues",weight:12,description:"The object path to the iterable items.",tooltip:"The property within the source data, where iterable items reside. For example: results.items or results[0].items",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"select",input:!0,label:"Value Property",key:"valueProperty",skipMerge:!0,clearOnHide:!0,tooltip:"The field to use as the value.",weight:11,refreshOn:"data.resource",template:"<span>{{ item.label }}</span>",valueProperty:"key",dataSrc:"url",lazyLoad:!1,onSetItems:function(e,t){var n="resource"===t.type?[{label:"{Entire Object}",key:"data"}]:[];return(0,r.eachComponent)(t.components,function(e,t){e.input&&n.push({label:e.label||e.key,key:"data.".concat(t)})}),n},onChange:function(e){var t,n;e&&e.flags&&e.flags.modified&&(n=e.instance.data.valueProperty,t="<span>{{ item.".concat(n||"data"," }}</span>"),n=n?"".concat(n,"__regex"):"",e.instance.root.getComponent("template").setValue(t),e.instance.root.getComponent("searchField").setValue(n))},data:{url:"/form/{{ data.data.resource }}"},conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!==":[{var:"data.reference"},!0]},{var:"data.data.resource"}]}}},{type:"select",input:!0,label:"Storage Type",key:"dataType",clearOnHide:!0,tooltip:"The type to store the data. If you select something other than autotype, it will force it to that type.",weight:12,template:"<span>{{ item.label }}</span>",dataSrc:"values",data:{values:[{label:"Autotype",value:"auto"},{label:"String",value:"string"},{label:"Number",value:"number"},{label:"Boolean",value:"boolean"},{label:"Object",value:"object"}]}},{type:"textfield",input:!0,key:"idPath",weight:12,label:"ID Path",placeholder:"id",tooltip:"Path to the select option id."},{type:"textfield",input:!0,label:"Value Property",key:"valueProperty",skipMerge:!0,clearOnHide:!1,weight:13,description:"The selected item's property to save.",tooltip:"The property of each item in the data source to use as the select value. If not specified, the item itself will be used.",conditional:{json:{in:[{var:"data.dataSrc"},["json","url","custom"]]}}},{type:"textfield",input:!0,label:"Select Fields",key:"selectFields",tooltip:"The properties on the resource to return as part of the options. Separate property names by commas. If left blank, all properties will be returned.",placeholder:"Comma separated list of fields to select.",weight:14,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"===":[{var:"data.valueProperty"},""]}]}}},{type:"checkbox",input:!0,key:"disableLimit",label:"Disable limiting response",tooltip:"When enabled the request will not include the limit and skip options in the query string",weight:15,conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"textfield",input:!0,key:"searchField",label:"Search Query Name",weight:16,description:"Name of URL query parameter",tooltip:"The name of the search querystring parameter used when sending a request to filter results with. The server at the URL must handle this query parameter.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"searchDebounce",label:"Search request delay",weight:16,description:"The delay (in seconds) before the search request is sent.",tooltip:"The delay in seconds before the search request is sent, measured from the last character input in the search field.",validate:{min:0,customMessage:"",json:"",max:1},delimiter:!1,requireDecimal:!1,encrypted:!1,defaultValue:.3,conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"minSearch",weight:17,label:"Minimum Search Length",tooltip:"The minimum amount of characters they must type before a search is made.",defaultValue:0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"url"]},{"!=":[{var:"data.searchField"},""]}]}}},{type:"textfield",input:!0,key:"filter",label:"Filter Query",weight:18,description:"The filter query for results.",tooltip:"Use this to provide additional filtering using query parameters.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"textfield",input:!0,key:"sort",label:"Sort Query",weight:18,description:"The sort query for results",tooltip:"Use this to provide additional sorting using query parameters",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"limit",label:"Limit",weight:18,description:"Maximum number of items to view per page of results.",tooltip:"Use this to limit the number of items to request or view.",clearOnHide:!1,conditional:{json:{and:[{in:[{var:"data.dataSrc"},["url","resource"]]},{"!==":[{var:"data.disableLimit"},!0]}]}}},{type:"textarea",input:!0,key:"data.custom",label:"Custom Values",editor:"ace",rows:10,weight:14,placeholder:"values = data['mykey'] or values = Promise.resolve(['myValue'])",tooltip:"Write custom code to return the value options or a promise with value options. The form data object is available.",conditional:{json:{"===":[{var:"data.dataSrc"},"custom"]}}},{type:"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: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(n){var r=[];return r.push({label:"Any Change",value:"data"}),n.utils.eachComponent(n.instance.options.editForm.components,function(e,t){e.key!==n.data.key&&r.push({label:e.label||e.key,value:t})}),r}},conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values","custom"]]}}},{type:"select",input:!0,key:"refreshOnBlur",label:"Refresh Options On Blur",weight:19,tooltip:"Refresh data when another field is blured.",dataSrc:"custom",valueProperty:"value",data:{custom:function(n){var r=[];return r.push({label:"Any Change",value:"data"}),n.utils.eachComponent(n.instance.options.editForm.components,function(e,t){e.key!==n.data.key&&r.push({label:e.label||e.key,value:t})}),r}},conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values"]]}}},{type:"checkbox",input:!0,weight:20,key:"clearOnRefresh",label:"Clear Value On Refresh Options",defaultValue:!1,tooltip:"When the Refresh On field is changed, clear this components value.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values","custom"]]}}},{type:"checkbox",input:!0,weight:21,key:"searchEnabled",label:"Enable Static Search",defaultValue:!0,tooltip:"When checked, the select dropdown will allow for searching within the static list of items provided."},{label:"Search Threshold",mask:!1,tableView:!0,alwaysEnabled:!1,type:"number",input:!0,key:"selectThreshold",validate:{min:0,customMessage:"",json:"",max:1},delimiter:!1,requireDecimal:!1,encrypted:!1,defaultValue:.3,weight:22,tooltip:"At what point does the match algorithm give up. A threshold of 0.0 requires a perfect match, a threshold of 1.0 would match anything."},{type:"checkbox",input:!0,weight:23,key:"addResource",label:"Add Resource",tooltip:"Allows to create a new resource while entering a submission.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",label:"Add Resource Label",key:"addResourceLabel",tooltip:"Set the text of the Add Resource button.",placeholder:"Add Resource",weight:24,input:!0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!!":{var:"data.addResource"}}]}}},{type:"checkbox",input:!0,weight:25,key:"reference",label:"Save as reference",tooltip:"Using this option will save this field as a reference and link its value to the value of the origin record.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"checkbox",input:!0,weight:26,key:"authenticate",label:"Formio Authenticate",tooltip:"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:{}},{type:"checkbox",input:!0,weight:29,key:"useExactSearch",label:"Use exact search",tooltip:"Disables search algorithm threshold."},{type:"checkbox",input:!0,weight:29,key:"ignoreCache",label:"Disables Storing Request Result in the Cache",tooltip:"Check it if you don't want the requests and its results to be stored in the cache. By default, it is stored and if the Select tries to make the request to the same URL with the same paremetrs, the cached data will be returned. It allows to increase performance, but if the remote source's data is changing quite often and you always need to keep it up-to-date, uncheck this option.",conditional:{json:{or:[{"===":[{var:"data.dataSrc"},"url"]},{"===":[{var:"data.dataSrc"},"resource"]}]}}}]},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 of remote value",tooltip:"Check this if you would like for the server to perform a validation check to ensure the selected value is an available option. This requires a Search query to ensure a record is found.",key:"validate.select",input:!0,conditional:{json:{var:"data.searchField"}}},{weight:52,type:"checkbox",label:"Allow only available values",tooltip:"Check this if you would like to perform a validation check to ensure the selected value is an available option (only for synchronous values).",key:"validate.onlyAvailableItems",input:!0,conditional:{json:{in:[{var:"data.dataSrc"},["values","json","custom"]]}}}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=l(n(28)),o=l(n(1063)),i=l(n(1064)),a=l(n(1065));function l(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",conditional:{json:{"!":[{var:"data.keepOverlayRatio"}]}},weight:50},{type:"textfield",input:!0,key:"height",label:"Height",tooltip:"The height of the signature area.",placeholder:"Height",conditional:{json:{"!":[{var:"data.keepOverlayRatio"}]}},weight:51},{weight:52,type:"checkbox",label:"Keep Overlay Aspect Ratio",tooltip:"If checked, the field will have the same aspect ratio as its preview.",key:"keepOverlayRatio",customConditional:function(e){var e=e.options;return"pdf"===(null==e||null==(e=e.editForm)?void 0:e.display)},input:!0},{type:"textfield",input:!0,key:"backgroundColor",label:"Background Color",tooltip:"The background color of the signature area.",placeholder:"Background Color",weight:52},{type:"textfield",input:!0,key:"penColor",label:"Pen Color",tooltip:"The ink color for the signature area.",placeholder:"Pen Color",weight:53},{key:"placeholder",ignore:!0},{key:"autofocus",ignore:!0}]},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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"display",components:i.default},{key:"data",components:o.default},{key:"validation",components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=l(n(28)),o=l(n(1067)),i=l(n(1068)),a=l(n(1069));function l(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"}]}},{label:"Tooltip",key:"tooltip",input:!0,type:"textfield"}]},{type:"datagrid",input:!0,label:"Values",key:"values",tooltip:"The values that can be selected per question. Example: 'Satisfied', 'Very Satisfied', etc.",weight:1,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}},{label:"Tooltip",key:"tooltip",input:!0,type:"textfield"}]}]},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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=i(n(84)),o=i(n(1071));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:"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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=i(n(84)),o=i(n(1073));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:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{key:"components",type:"datagrid",input:!0,label:"Tabs",weight:50,reorder:!0,components:[{type:"textfield",input:!0,key:"label",label:"Label"},{type:"textfield",input:!0,key:"key",label:"Key",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}}]},{weight:1100,type:"checkbox",label:"Vertical Layout",tooltip:"Make this field display in vertical orientation.",key:"verticalLayout",input:!0}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.baseEditForm.apply(r.default,[[{key:"data",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=i(n(28)),o=i(n(1075));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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"validation",components:i.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=a(n(85)),o=a(n(1077)),i=a(n(1078));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,n(18);var r,o=(r=n(10))&&r.__esModule?r:{default:r},i=n(36);t.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"mask",ignore:!0},{type:"number",input:!0,key:"rows",label:"Rows",weight:210,tooltip:"This allows control over how many rows are visible in the text area.",placeholder:"Enter the amount of rows"},{weight:1350,type:"checkbox",input:!0,key:"spellcheck",defaultValue:!0,label:"Allow Spellcheck"},{type:"select",input:!0,key:"editor",label:"Editor",tooltip:"Select the type of WYSIWYG editor to use for this text area.",dataSrc:"values",data:{values:[{label:"None",value:""},{label:"ACE",value:"ace"},{label:"CKEditor",value:"ckeditor"},{label:"Quill",value:"quill"}]},weight:415},{type:"checkbox",input:!0,key:"autoExpand",label:"Auto Expand",tooltip:"This will make the TextArea auto expand it's height as the user is typing into the area.",weight:415,conditional:{json:{"==":[{var:"data.editor"},""]}}},{type:"checkbox",input:!0,key:"isUploadEnabled",label:"Enable Image Upload",weight:415.1,conditional:{json:{or:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.editor"},"ckeditor"]}]}}},{type:"select",input:!0,key:"uploadStorage",label:"Image Upload Storage",placeholder:"Select your file storage provider",weight:415.2,tooltip:"Which storage to save the files in.",valueProperty:"value",dataSrc:"custom",data:{custom:function(){return o.default.map(i.GlobalFormio.Providers.getProviders("storage"),function(e,t){return{label:e.title,value:t}})}},conditional:{json:{"===":[{var:"data.isUploadEnabled"},!0]}}},{type:"textfield",input:!0,key:"uploadUrl",label:"Image Upload Url",weight:415.3,placeholder:"Enter the url to post the files to.",tooltip:"See <a href='https://github.com/danialfarid/ng-file-upload#server-side' target='_blank'>https://github.com/danialfarid/ng-file-upload#server-side</a> for how to set up the server.",conditional:{json:{"===":[{var:"data.uploadStorage"},"url"]}}},{type:"textarea",key:"uploadOptions",label:"Image Upload Custom request options",tooltip:"Pass your custom xhr options(optional)",rows:5,editor:"ace",input:!0,weight:415.4,placeholder:'{\n      "withCredentials": true\n    }',conditional:{json:{"===":[{var:"data.uploadStorage"},"url"]}}},{type:"textfield",input:!0,key:"uploadDir",label:"Image Upload Directory",placeholder:"(optional) Enter a directory for the files",tooltip:"This will place all the files uploaded in this field in the directory",weight:415.5,conditional:{json:{"===":[{var:"data.isUploadEnabled"},!0]}}},{type:"textfield",key:"fileKey",input:!0,label:"File form-data Key",tooltip:"Key name that you would like to modify for the file while calling API request.",rows:5,weight:415.6,placeholder:"Enter the key name of a file for form data.",conditional:{json:{and:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.isUploadEnabled"},!0]},{"===":[{var:"data.uploadStorage"},"url"]}]}}},{type:"select",input:!0,key:"as",label:"Save As",dataSrc:"values",tooltip:"This setting determines how the value should be entered and stored in the database.",clearOnHide:!0,data:{values:[{label:"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}]},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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"data",components:o.default},{key:"display",components:i.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=a(n(115)),o=a(n(1080)),i=a(n(1081));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(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"data",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=i(n(115)),o=i(n(1083));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}]},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:r.default}]}]}};var r=(t=n(1085))&&t.__esModule?t:{default:t}},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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"data",components:i.default},{key:"validation",components:a.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=l(n(85)),o=l(n(1087)),i=l(n(1088)),a=l(n(1089));function l(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";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.default.apply(void 0,[[{key:"display",components:o.default},{key:"addons",ignore:!0}]].concat(t))},n(0);var r=i(n(84)),o=i(n(1091));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:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=n(55),l=p(a),s=p(n(75)),u=p(n(323)),c=p(n(265)),f=p(n(287)),d=p(n(1093));function p(e){return e&&e.__esModule?e:{default:e}}var n=function(e){var t=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var t=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e)),e=(h.call(t),e.form);return t.state={form:e?(0,f.default)(e):{title:"",name:"",path:"",display:"form",type:"form",components:[]}},t}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),r(n,[{key:"saveForm",value:function(){this.props.saveForm&&"function"==typeof this.props.saveForm&&this.props.saveForm(this.state.form)}},{key:"handleChange",value:function(n,e){var e=e.target,r="checkbox"===e.type?e.checked:e.value;this.setState(function(e){var t=(0,f.default)(e.form);return(0,c.default)(t,n,r),"title"!==n||t._id||(t.name=(0,d.default)(r),t.path=(0,d.default)(r).toLowerCase()),o({},e,{form:t})})}},{key:"shouldComponentUpdate",value:function(e,t,n){return this.state.form.title!==t.form.title||this.state.form.name!==t.form.name||this.state.form.path!==t.form.path||this.state.form.display!==t.form.display||this.state.form.type!==t.form.type}},{key:"render",value:function(){var t=this,e=this.state.form,n=this.props.saveText;return l.default.createElement("div",null,l.default.createElement("div",{className:"row"},l.default.createElement("div",{className:"col-lg-2 col-md-4 col-sm-4"},l.default.createElement("div",{id:"form-group-title",className:"form-group"},l.default.createElement("label",{htmlFor:"title",className:"control-label field-required"},"Title"),l.default.createElement("input",{type:"text",className:"form-control",id:"title",placeholder:"Enter the form title",value:e.title||"",onChange:function(e){return t.handleChange("title",e)}}))),l.default.createElement("div",{className:"col-lg-2 col-md-4 col-sm-4"},l.default.createElement("div",{id:"form-group-name",className:"form-group"},l.default.createElement("label",{htmlFor:"name",className:"control-label field-required"},"Name"),l.default.createElement("input",{type:"text",className:"form-control",id:"name",placeholder:"Enter the form machine name",value:e.name||"",onChange:function(e){return t.handleChange("name",e)}}))),l.default.createElement("div",{className:"col-lg-2 col-md-3 col-sm-3"},l.default.createElement("div",{id:"form-group-display",className:"form-group"},l.default.createElement("label",{htmlFor:"name",className:"control-label"},"Display as"),l.default.createElement("div",{className:"input-group"},l.default.createElement("select",{className:"form-control",name:"form-display",id:"form-display",value:e.display||"",onChange:function(e){return t.handleChange("display",e)}},l.default.createElement("option",{label:"Form",value:"form"},"Form"),l.default.createElement("option",{label:"Wizard",value:"wizard"},"Wizard"),l.default.createElement("option",{label:"PDF",value:"pdf"},"PDF"))))),l.default.createElement("div",{className:"col-lg-2 col-md-3 col-sm-3"},l.default.createElement("div",{id:"form-group-type",className:"form-group"},l.default.createElement("label",{htmlFor:"form-type",className:"control-label"},"Type"),l.default.createElement("div",{className:"input-group"},l.default.createElement("select",{className:"form-control",name:"form-type",id:"form-type",value:this.state.form.type,onChange:function(e){return t.handleChange("type",e)}},l.default.createElement("option",{label:"Form",value:"form"},"Form"),l.default.createElement("option",{label:"Resource",value:"resource"},"Resource"))))),l.default.createElement("div",{className:"col-lg-2 col-md-4 col-sm-4"},l.default.createElement("div",{id:"form-group-path",className:"form-group"},l.default.createElement("label",{htmlFor:"path",className:"control-label field-required"},"Path"),l.default.createElement("div",{className:"input-group"},l.default.createElement("input",{type:"text",className:"form-control",id:"path",placeholder:"example",style:{textTransform:"lowercase",width:"120px"},value:e.path||"",onChange:function(e){return t.handleChange("path",e)}})))),l.default.createElement("div",{id:"save-buttons",className:"col-lg-2 col-md-5 col-sm-5 save-buttons pull-right"},l.default.createElement("div",{className:"form-group pull-right"},l.default.createElement("span",{className:"btn btn-primary",onClick:function(){return t.saveForm()}},n)))),l.default.createElement(u.default,{key:e._id,form:e,options:this.props.options,builder:this.props.builder,onChange:this.formChange}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.form||t.form._id===e.form._id&&t.form.modified===e.form.modified?null:{form:(0,f.default)(e.form)}}}]),n}(a.Component),h=(n.propTypes={form:s.default.object.isRequired,options:s.default.object,builder:s.default.any,onSave:s.default.func},function(){var t=this;this.formChange=function(e){t.setState({form:o({},t.state.form,e)})}});t.default=n},function(e,t,n){var r=n(1094),n=n(1097)(function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)});e.exports=n},function(e,t,n){var r=n(112),o=n(1095);e.exports=function(e){return o(r(e).toLowerCase())}},function(e,t,n){n=n(1096)("toUpperCase");e.exports=n},function(e,t,n){var o=n(207),i=n(164),a=n(208),l=n(112);e.exports=function(r){return function(e){e=l(e);var t=i(e)?a(e):void 0,n=t?t[0]:e.charAt(0),t=t?o(t,1).join(""):e.slice(1);return n[r]()+t}}},function(e,t,n){var r=n(1098),o=n(1099),i=n(1100),a=RegExp("['’]","g");e.exports=function(t){return function(e){return r(i(o(e).replace(a,"")),t,"")}}},function(e,t){e.exports=function(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(e,t,n){var r=n(206);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(1101),o=n(1102),i=n(112),a=n(1103);e.exports=function(e,t,n){return e=i(e),void 0===(t=n?void 0:t)?(o(e)?a:r)(e):e.match(t)||[]}},function(e,t){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(n)||[]}},function(e,t){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return n.test(e)}},function(e,t){var n="\\ud800-\\udfff",r="\\u2700-\\u27bf",o="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",l="["+a+"]",s="["+r+"]",u="["+o+"]",a="[^"+n+a+"\\d+"+r+o+i+"]",r="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",i="["+i+"]",c="(?:"+u+"|"+a+")",a="(?:"+i+"|"+a+")",f="(?:['’](?:d|ll|m|re|s|t|ve))?",d="(?:['’](?:D|LL|M|RE|S|T|VE))?",p="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",h="[\\ufe0e\\ufe0f]?",n=h+p+("(?:\\u200d(?:"+["[^"+n+"]",r,o].join("|")+")"+h+p+")*"),h="(?:"+[s,r,o].join("|")+")"+n,m=RegExp([i+"?"+u+"+"+f+"(?="+[l,i,"$"].join("|")+")",a+"+"+d+"(?="+[l,i+c,"$"].join("|")+")",i+"?"+c+"+"+f,i+"+"+d,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",h].join("|"),"g");e.exports=function(e){return e.match(m)||[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),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 l=d(n(95)),s=d(n(212)),u=d(n(162)),i=(d(n(1105)),d(n(75))),p=d(n(55)),a=n(176),c=n(136),f=n(219),h=d(n(220));function d(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function a(){var o,e=this,t=a;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=o=m(this,(e=a.__proto__||Object.getPrototypeOf(a)).call.apply(e,[this].concat(r)))).onSort=function(e){var t=e.key,e=e.sort;if((0,s.default)(e))return e();var n=o.props,r=n.forms.sort,n=n.getForms,e=(0,u.default)(e)?e:t,t="-"+e;n(1,{sort:r===e?t:r===t?"":e})},o.Cell=function(e){var i=e.row,e=e.column,t=o.props,n=t.formAccess,a=t.onAction,t=t.operations,t=void 0===t?[]:t,r=n(i);return"title"===e.key?p.default.createElement("span",{style:{cursor:"pointer"},onClick:(0,f.stopPropagationWrapper)(function(){r.submission.create&&a(i,"view")})},p.default.createElement("h5",null,i.title)):"operations"===e.key?p.default.createElement("div",null,t.map(function(e){var t=e.action,n=e.buttonType,n=void 0===n?"primary":n,r=e.icon,r=void 0===r?"":r,o=e.permissionsResolver,o=void 0===o?function(){return!0}:o,e=e.title,e=void 0===e?"":e;return o(i)?p.default.createElement("span",{className:"btn btn-"+n+" btn-sm form-btn",onClick:(0,f.stopPropagationWrapper)(function(){return a(i,t)}),key:t},r?p.default.createElement("span",null,p.default.createElement("i",{className:"fa fa-"+r})," "):null,e):null})):p.default.createElement("span",null,(0,s.default)(e.value)?e.value(i):(0,l.default)(i,e.key,""))},m(o,t)}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),r(a,[{key:"render",value:function(){var e=this.props,t=e.columns,n=e.forms,r=n.forms,o=n.limit,i=n.pagination,a=i.page,l=i.numPages,i=i.total,n=n.sort,s=e.getForms,u=e.onAction,c=e.onPageSizeChanged,e=e.pageSizes,f=(a-1)*o,d=Math.min(f+o,i);return p.default.createElement(h.default,{Cell:this.Cell,activePage:a,columns:t,emptyText:"No forms found",firstItem:1+f,items:r,lastItem:d,onAction:u,onPage:s,onPageSizeChanged:c,onSort:this.onSort,pageSize:o,pageSizes:e,pages:l,sortOrder:n,total:i})}}]),a}(p.default.Component);n.propTypes={columns:c.Columns,formAccess:i.default.func,forms:i.default.object.isRequired,getForms:i.default.func,onAction:i.default.func,onPageSizeChanged:i.default.func,operations:c.Operations,pageSizes:c.PageSizes},n.defaultProps={columns:[{key:"title",sort:!0,title:"Form",width:8},{key:"operations",title:"Operations",width:4}],formAccess:function(){return{form:{create:!0,view:!0,edit:!0,delete:!0},submission:{create:!0,view:!0,edit:!0,delete:!0}}},getForms:function(){},onPageSizeChanged:function(){},operations:[{action:"view",buttonType:"primary",icon:"pencil",permissionsResolver:function(){return!0},title:"Enter Data"},{action:"submission",buttonType:"warning",icon:"list-alt",permissionsResolver:function(){return!0},title:"View Data"},{action:"edit",buttonType:"secondary",icon:"edit",permissionsResolver:function(){return!0},title:"Edit Form"},{action:"delete",buttonType:"danger",icon:"trash",permissionsResolver:function(){return!0}}],pageSizes:a.defaultPageSizes},t.default=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){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Builders",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Components",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Conjunctions",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Displays",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Form",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"Operators",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Providers",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"QuickRules",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"Rules",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Templates",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Transformers",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"Utils",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"ValueSources",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"Widgets",{enumerable:!0,get:function(){return y.default}}),n(23),n(1),n(14),n(2),n(6),n(7),n(3),n(5),n(4);var h=g(n(10)),m=g(n(36)),t=g(n(137)),r=g(n(325)),o=g(n(28)),i=g(n(317)),a=g(n(216)),l=g(n(279)),s=g(n(291)),u=g(n(1107)),c=g(n(1108)),f=g(n(1109)),d=g(n(1110)),p=g(n(1111)),y=g(n(171)),v=g(n(135)),b=g(n(218)),n=g(n(96));function g(e){return e&&e.__esModule?e:{default:e}}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)}m.default.loadModules=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"".concat(m.default.getApiUrl(),"/externalModules.js"),t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"externalModules";m.default.requireLibrary(t,t,e,!0).then(function(e){m.default.use(e)})},m.default.Components=o.default,m.default.Templates=a.default,m.default.Builders=r.default,m.default.Utils=b.default,m.default.Form=v.default,m.default.Displays=i.default,m.default.Providers=l.default,m.default.Rules=s.default,m.default.Widgets=y.default,m.default.Evaluator=n.default,m.default.Conjunctions=u.default,m.default.Operators=c.default,m.default.QuickRules=f.default,m.default.Transformers=d.default,m.default.ValueSources=p.default,m.default.AllComponents=t.default,m.default.Formio=m.default,m.default.Components.setComponents(t.default);function k(e){if("object"===w(e))for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t],o=e.framework||m.default.Templates.framework||"bootstrap";switch(r){case"options":m.default.options=h.default.merge(m.default.options,e.options);break;case"templates":for(var i=0,a=Object.keys(e.templates);i<a.length;i++){var l=a[i];m.default.Templates.extendTemplate(l,e.templates[l])}e.templates[o]&&(m.default.Templates.current=e.templates[o]);break;case"components":m.default.Components.setComponents(e.components);break;case"framework":m.default.Templates.framework=e.framework;break;case"fetch":for(var s=0,u=Object.keys(e.fetch);s<u.length;s++){var c=u[s];m.default.registerPlugin(e.fetch[c],c)}break;case"providers":for(var f=0,d=Object.keys(e.providers);f<d.length;f++){var p=d[f];m.default.Providers.addProviders(p,e.providers[p])}break;case"displays":m.default.Displays.addDisplays(e.displays);break;case"builders":m.default.Builders.addBuilders(e.builders);break;case"rules":m.default.Rules.addRules(e.rules);break;case"evaluator":m.default.Evaluator.registerEvaluator(e.evaluator);break;case"conjunctions":m.default.Conjunctions.addConjunctions(e.conjunctions);break;case"operators":m.default.Operators.addOperators(e.operators);break;case"quickRules":m.default.QuickRules.addQuickRules(e.quickRules);break;case"transformers":m.default.Transformers.addTransformers(e.transformers);break;case"valueSources":m.default.ValueSources.addValueSources(e.valueSources);break;default:console.log("Unknown plugin option",r)}}}m.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(k):k(e)})}},function(e,t,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){a(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}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){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}n(23),n(2),n(22),n(1),n(11),n(14),n(31),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n=function(){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function")}var e,t,r;return e=n,r=[{key:"addConjunction",value:function(e,t){n.conjunctions[e]=t}},{key:"addConjunctions",value:function(e){n.conjunctions=o(o({},n.conjunctions),e)}},{key:"getConjunction",value:function(e){return n.conjunctions[e]}},{key:"getConjunctions",value:function(){return n.conjunctions}}],(t=null)&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();a(t.default=n,"conjunctions",{})},function(e,t,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){a(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}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){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}n(23),n(2),n(22),n(1),n(11),n(14),n(31),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n=function(){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function")}var e,t,r;return e=n,r=[{key:"addOperator",value:function(e,t){n.operators[e]=t}},{key:"addOperators",value:function(e){n.operators=o(o({},n.operators),e)}},{key:"getOperator",value:function(e){return n.operators[e]}},{key:"getOperators",value:function(){return n.operators}}],(t=null)&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();a(t.default=n,"operators",{})},function(e,t,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){a(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}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){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}n(23),n(2),n(22),n(1),n(11),n(14),n(31),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n=function(){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function")}var e,t,r;return e=n,r=[{key:"addQuickRule",value:function(e,t){n.quickRules[e]=t}},{key:"addQuickRules",value:function(e){n.quickRules=o(o({},n.quickRules),e)}},{key:"getQuickRule",value:function(e){return n.quickRules[e]}},{key:"getQuickRules",value:function(){return n.quickRules}}],(t=null)&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();a(t.default=n,"quickRules",{})},function(e,t,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){a(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}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){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}n(23),n(2),n(22),n(1),n(11),n(14),n(31),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n=function(){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function")}var e,t,r;return e=n,r=[{key:"addTransformer",value:function(e,t){n.transformers[e]=t}},{key:"addTransformers",value:function(e){n.transformers=o(o({},n.transformers),e)}},{key:"getTransformer",value:function(e){return n.transformers[e]}},{key:"getTransformers",value:function(){return n.transformers}}],(t=null)&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();a(t.default=n,"transformers",{})},function(e,t,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){a(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}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){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}n(23),n(2),n(22),n(1),n(11),n(14),n(31),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n=function(){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function")}var e,t,r;return e=n,r=[{key:"addValueSource",value:function(e,t){n.valueSources[e]=t}},{key:"addValueSources",value:function(e){n.valueSources=o(o({},n.valueSources),e)}},{key:"getValueSource",value:function(e){return n.valueSources[e]}},{key:"getValueSources",value:function(){return n.valueSources}}],(t=null)&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();a(t.default=n,"valueSources",{})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(75)),p=o(n(55));function o(e){return e&&e.__esModule?e:{default:e}}function h(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 m="LEFT",y="RIGHT";function v(e,t,n){for(var r=2<arguments.length&&void 0!==n?n:1,o=e,i=[];o<=t;)i.push(o),o+=r;return i}function i(e){var t,n,r,o,i,a=e.activePage,l=e.pageNeighbours,s=e.pages,u=e.prev,c=e.next,f=e.onSelect,d=(l=(e={currentPage:a,pageNeighbours:l,totalPages:s}).currentPage,o=e.pageNeighbours,e=e.totalPages,2+(i=2*o+3)<e?(t=2<(d=3===(d=Math.max(2,l-o))?2:d),l=1<e-(o=(l=Math.min(e-1,l+o))===e-2?e-1:l),n=i-((i=v(d,o)).length+1),r=void 0,i=t&&!l?(r=v(d-n,d-1),[m].concat(h(r),h(i))):!t&&l?(r=v(o+1,o+n),[].concat(h(i),h(r),[y])):[m].concat(h(i),[y]),[1].concat(h(i),[e])):v(1,e));return p.default.createElement("nav",{"aria-label":"Page navigation"},p.default.createElement("ul",{className:"pagination"},p.default.createElement("li",{className:"page-item "+(1===a?"disabled":"")},p.default.createElement("a",{className:"page-link",onClick:function(){1!==a&&f(a-1)},href:"javascript:void(0)"},u)),d.map(function(e){var t=e===a?"active":"";return[m,y].includes(e)?p.default.createElement("li",{className:"page-item disabled"},p.default.createElement("span",{className:"page-link"},p.default.createElement("span",{"aria-hidden":"true"},"..."))):p.default.createElement("li",{className:"page-item "+t,key:e},p.default.createElement("a",{className:"page-link",onClick:function(){return f(e)},href:"javascript:void(0)"},e))}),p.default.createElement("li",{className:"page-item "+(a===s?"disabled":"")},p.default.createElement("a",{className:"page-link",onClick:function(){a!==s&&f(a+1)},href:"javascript:void(0)"},c))))}i.propTypes={activePage:r.default.number,pageNeighbours:r.default.number,pages:r.default.number.isRequired,prev:r.default.string,next:r.default.string,onSelect:r.default.func.isRequired},i.defaultProps={activePage:1,pageNeighbours:1,prev:"Previous",next:"Next"},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),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)}}function i(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0!==r){if("value"in r)return r.value;r=r.get;return void 0!==r?r.call(n):void 0}if(null!==(r=Object.getPrototypeOf(e)))return i(r,t,n)}var n=n(61);n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function o(e,t,n){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");var r=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,e,t,n));return r.updateValue=function(e,t){t=t||{};var e=null==e?r.getValue():e,n=void 0!==e&&r.hasChanged(e,r.dataValue);return r.dataValue=Array.isArray(e)?[].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)}(e)):e,r.updateOnChange(t,n),n},r}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),r(o,[{key:"init",value:function(){return i(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"init",this).call(this)}},{key:"destroy",value:function(){return i(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"destroy",this).call(this)}},{key:"render",value:function(){return i(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"render",this).call(this,'<div ref="react-'+this.id+'"></div>')}},{key:"attach",value:function(e){var t,n;return i(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"attach",this).call(this,e),this.loadRefs(e,(e={},t="react-"+this.id,n="single",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e)),this.refs["react-"+this.id]&&(this.reactInstance=this.attachReact(this.refs["react-"+this.id]),this.shouldSetValue&&(this.setValue(this.dataForSetting),this.updateValue(this.dataForSetting))),Promise.resolve()}},{key:"detach",value:function(){this.refs["react-"+this.id]&&this.detachReact(this.refs["react-"+this.id]),i(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"detach",this).call(this)}},{key:"attachReact",value:function(e){}},{key:"detachReact",value:function(e){}},{key:"setValue",value:function(e){this.reactInstance?(this.reactInstance.setState({value:e}),this.shouldSetValue=!1):(this.shouldSetValue=!0,this.dataForSetting=e)}},{key:"getValue",value:function(){return this.reactInstance?this.reactInstance.state.value:this.defaultValue}},{key:"checkValidity",value:function(e,t,n){return!!i(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"checkValidity",this).call(this,e,t,n)&&this.validate(e,t,n)}},{key:"validate",value:function(e,t,n){return!0}}]),o}(((n=n)&&n.__esModule?n:{default:n}).default);t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=d(n(218)),s=d(n(95)),u=d(n(212)),c=d(n(128)),l=d(n(162)),r=d(n(75)),h=d(n(55)),o=n(176),i=n(136),f=n(219),m=d(n(220));function d(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function i(){var p,e=this,t=i;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=p=y(this,(e=i.__proto__||Object.getPrototypeOf(i)).call.apply(e,[this].concat(r)))).onSort=function(e){var t=e.key,e=e.sort;if((0,u.default)(e))return e();var n=p.props,r=n.getSubmissions,n=n.submissions.sort,e=(0,l.default)(e)?e:t,t="-"+e;r(1,{sort:n===e?t:n===t?"":e})},p.getColumns=function(e){var t=[];return a.default.eachComponent(e.components,function(e){e.input&&e.tableView&&e.key&&t.push((0,f.getComponentDefaultColumn)(e))}),t.push({key:"operations",title:"Operations"}),(0,f.setColumnsWidth)(t),t},p.Cell=function(e){var i=e.row,e=e.column,t=p.props,a=t.form,l=t.onAction,t=t.operations;if("operations"===e.key)return h.default.createElement("div",null,t.map(function(e){var t=e.action,n=e.buttonType,n=void 0===n?"primary":n,r=e.icon,r=void 0===r?"":r,o=e.permissionsResolver,o=void 0===o?function(){return!0}:o,e=e.title,e=void 0===e?"":e;return o(a,i)?h.default.createElement("span",{className:"btn btn-"+n+" btn-sm form-btn",onClick:(0,f.stopPropagationWrapper)(function(){return l(i,t)}),key:t},r?h.default.createElement("span",null,h.default.createElement("i",{className:"fa fa-"+r})," "):null,e):null}));t=(0,u.default)(e.value)?e.value(i):(0,s.default)(i,e.key,"");return(0,c.default)(t)&&t.content?t.isHtml?h.default.createElement("div",{dangerouslySetInnerHTML:{__html:t.content}}):h.default.createElement("span",null,String(t.content)):h.default.createElement("span",null,String(t))},p.render=function(){var e=p.props,t=e.columns,n=e.form,r=e.getSubmissions,o=e.onAction,i=e.onPageSizeChanged,a=e.pageSizes,e=e.submissions,l=e.limit,s=e.pagination,u=s.page,c=s.numPages,s=s.total,f=e.sort,e=e.submissions,t=t.length?t:p.getColumns(n),n=(u-1)*l,d=Math.min(n+l,s);return h.default.createElement(m.default,{Cell:p.Cell,activePage:u,columns:t,emptyText:"No data found",firstItem:1+n,items:e,lastItem:d,onAction:o,onPage:r,onPageSizeChanged:i,onSort:p.onSort,pageSize:l,pageSizes:a,pages:c,sortOrder:f,total:s})},y(p,t)}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),i}(h.default.Component);n.propTypes={columns:i.Columns,form:r.default.object.isRequired,getSubmissions:r.default.func,onAction:r.default.func,onPageSizeChanged:r.default.func,operations:i.Operations,pageSizes:i.PageSizes,submissions:r.default.object.isRequired},n.defaultProps={columns:[],getSubmissions:function(){},onAction:function(){},onPageSizeChanged:function(){},operations:[{action:"view",buttonType:"warning",icon:"list-alt",permissionsResolver:function(){return!0},title:"View"},{action:"edit",buttonType:"secondary",icon:"edit",permissionsResolver:function(){return!0},title:"Edit"},{action:"delete",buttonType:"danger",icon:"trash",permissionsResolver:function(){return!0}}],pageSizes:o.defaultPageSizes},t.default=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1116),o=(Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}),n(1120)),i=(Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}),n(1124)),a=(Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}),n(99)),l=(Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})}),n(1132)),s=(Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})}),n(1136));Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1117),o=(Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}),n(221)),i=(Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}),n(1118)),a=(Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}),n(1119));Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logout=t.setUser=t.initAuth=void 0;var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var n=t,r=[],o=!0,t=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(e){t=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(t)throw i}}return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r=n(36),a=(r=r)&&r.__esModule?r:{default:r},l=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}}(n(221));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){return{type:l.USER_REQUEST_SUCCESS,user:e}}function c(){return{type:l.USER_LOGOUT}}t.initAuth=function(){return function(r){var e=a.default.getProjectUrl();r({type:l.USER_REQUEST}),Promise.all([a.default.currentUser(),a.default.makeStaticRequest(e+"/access").then(function(e){t=e.forms;var t=Object.values(t).reduce(function(e,t){return i({},e,s({},t.name,t.submissionAccess.reduce(function(e,t){return i({},e,s({},t.type,t.roles))},{})))},{}),n=(n=e.forms,Object.values(n).reduce(function(e,t){return i({},e,s({},t.name,t.access.reduce(function(e,t){return i({},e,s({},t.type,t.roles))},{})))},{}));r({type:l.USER_SUBMISSION_ACCESS,submissionAccess:t}),r({type:l.USER_FORM_ACCESS,formAccess:n}),r((t=e.roles,{type:l.USER_ROLES,roles:t}))}).catch(function(){}),a.default.makeStaticRequest(e).then(function(e){e=e.access.reduce(function(e,t){return i({},e,s({},t.type,t.roles))},{});r({type:l.USER_PROJECT_ACCESS,projectAccess:e})}).catch(function(){})]).then(function(e){e=o(e,1)[0];r(e?u(e):c())}).catch(function(e){r({type:l.USER_REQUEST_FAILURE,error:e})})}},t.setUser=function(t){return function(e){a.default.setUser(t),e(u(t))}},t.logout=function(){return function(e){a.default.logout(),e(c())}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.auth=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var n=t,r=[],o=!0,t=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(e){t=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(t)throw i}}return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}}(n(221));function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s={init:!1,isActive:!1,user:null,authenticated:!1,submissionAccess:{},formAccess:{},projectAccess:{},roles:{},is:{},error:""};function u(e){return Object.keys(e).reduce(function(e,t){return o({},e,l({},t,"anonymous"===t))},{})}t.auth=function(e){return function(){var e,r,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:s,n=arguments[1];switch(n.type){case a.USER_REQUEST:return o({},t,{init:!0,submissionAccess:!1,isActive:!0});case a.USER_REQUEST_SUCCESS:return o({},t,{isActive:!1,user:n.user,authenticated:!0,is:(e=t.roles,r=n.user.roles,Object.entries(e).reduce(function(e,t){var t=i(t,2),n=t[0],t=t[1];return o({},e,l({},n,r.includes(t._id)))},{})),error:""});case a.USER_REQUEST_FAILURE:return o({},t,{isActive:!1,is:u(t.roles),error:n.error});case a.USER_LOGOUT:return o({},t,{user:null,isActive:!1,authenticated:!1,is:u(t.roles),error:""});case a.USER_SUBMISSION_ACCESS:return o({},t,{submissionAccess:n.submissionAccess});case a.USER_FORM_ACCESS:return o({},t,{formAccess:n.formAccess});case a.USER_PROJECT_ACCESS:return o({},t,{projectAccess:n.projectAccess});case a.USER_ROLES:return o({},t,{roles:n.roles});default:return t}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1121),o=(Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}),n(222)),i=(Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}),n(1123)),a=(Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}),n(334));Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deleteForm=t.saveForm=t.getForm=t.resetForm=t.clearFormError=void 0;var r=n(36),a=(r=r)&&r.__esModule?r:{default:r},l=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}}(n(222)),s=n(334);function u(e,t,n){return{type:l.FORM_SUCCESS,form:t,name:e,url:n}}function c(e,t){return{type:l.FORM_FAILURE,error:t,name:e}}t.clearFormError=function(e){return{type:l.FORM_CLEAR_ERROR,name:e}};var i=t.resetForm=function(e){return{type:l.FORM_RESET,name:e}};t.getForm=function(r){var o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:function(){};return function(t,e){var n,e=(0,s.selectForm)(r,e());if(!(e.components&&Array.isArray(e.components)&&e.components.length&&e._id===o))return e=a.default.getProjectUrl()+"/"+(o?"form/"+o:r),n=new a.default(e),t({type:l.FORM_REQUEST,name:r,id:o,url:e}),n.loadForm().then(function(e){t(u(r,e)),i(null,e)}).catch(function(e){t(c(r,e)),i(e)})}},t.saveForm=function(r,t){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:function(){};return function(n){n({type:l.FORM_SAVE,form:t,name:r});var e=t._id,e=a.default.getProjectUrl()+"/form"+(e?"/"+e:"");new a.default(e).saveForm(t).then(function(e){var t=a.default.getProjectUrl()+"/form/"+e._id;n(u(r,e,t)),o(null,e)}).catch(function(e){n(c(r,e)),o(e)})}},t.deleteForm=function(n,r){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:function(){};return function(t){var e=a.default.getProjectUrl()+"/form/"+r;return new a.default(e).deleteForm().then(function(){t(i(n)),o()}).catch(function(e){t(c(n,e)),o(e)})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=t.selectRoot=function(e,t){return t[e]};t.selectError=function(e,t){return r(e,t).error},t.selectIsActive=function(e,t){return r(e,t).isActive}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};t.form=function(n){var r={id:"",isActive:!1,lastUpdated:0,form:{},url:"",error:""};return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1];if(t.name!==n.name)return e;switch(t.type){case i.FORM_CLEAR_ERROR:return o({},e,{error:""});case i.FORM_REQUEST:return o({},e,{isActive:!0,id:t.id,form:{},url:t.url,error:""});case i.FORM_SUCCESS:return o({},e,{isActive:!1,id:t.form._id,form:t.form,url:t.url||e.url,error:""});case i.FORM_FAILURE:return o({},e,{isActive:!1,isInvalid:!0,error:t.error});case i.FORM_SAVE:return o({},e,{isActive:!0});case i.FORM_RESET:return r;default:return e}}};var i=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}}(n(222))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1125),o=(Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}),n(223)),i=(Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}),n(1126)),a=(Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}),n(1131));Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.indexForms=t.resetForms=void 0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r=n(36),f=(r=r)&&r.__esModule?r:{default:r},d=n(99),p=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}}(n(223));t.resetForms=function(e){return{type:p.FORMS_RESET,name:e}},t.indexForms=function(a){var l=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,s=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},u=3<arguments.length&&void 0!==arguments[3]?arguments[3]:function(){};return function(t,e){t({type:p.FORMS_REQUEST,name:a,page:l,params:s});var e=(0,d.selectRoot)(a,e()),n=e.limit,r=e.query,o=e.select,e=e.sort,i=new f.default(f.default.getProjectUrl()+"/form"),r=c({},r,s);return 10!==n?r.limit=n:delete r.limit,1!==l?r.skip=(l-1)*n:delete r.skip,o?r.select=o:delete r.select,e?r.sort=e:delete r.sort,i.loadForms({params:r}).then(function(e){t({type:p.FORMS_SUCCESS,name:a,forms:e}),u(null,e)}).catch(function(e){t({type:p.FORMS_FAILURE,name:a,error:e}),u(e)})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t=(t.forms=function(e){var r=e.name,t=e.limit,t=void 0===t?10:t,n=e.query,n=void 0===n?{}:n,o=e.select,o=void 0===o?"":o,e=e.sort,e=void 0===e?"":e,i={error:"",forms:[],isActive:!1,limit:t,pagination:{numPages:0,page:1,total:0},query:n,select:o,sort:e};return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:i,t=arguments[1];if(t.name!==r)return e;switch(t.type){case s.FORMS_RESET:return i;case s.FORMS_REQUEST:return a({},e,(0,l.default)(t.params,["limit","query","select","sort"]),{error:"",forms:[],isActive:!0,pagination:a({},e.pagination,{page:t.page})});case s.FORMS_SUCCESS:var n=t.forms.serverCount;return a({},e,{forms:t.forms,isActive:!1,pagination:a({},e.pagination,{numPages:Math.ceil(n/e.limit),total:n})});case s.FORMS_FAILURE:return a({},e,{error:t.error,isActive:!1});default:return e}}},n(335)),l=(t=t)&&t.__esModule?t:{default:t},s=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}}(n(223))},function(e,t,n){var r=n(1128),o=n(1129);e.exports=function(n,e){return r(n,e,function(e,t){return o(n,t)})}},function(e,t,n){var s=n(264),u=n(266),c=n(127);e.exports=function(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=s(e,a);n(l,a)&&u(i,c(a,e),l)}return i}},function(e,t,n){var r=n(1130),o=n(270);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectForms=void 0;var r=n(99);t.selectForms=function(e,t){return(0,r.selectRoot)(e,t).forms}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1133),o=(Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}),n(224)),i=(Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}),n(1134)),a=(Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}),n(1135));Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deleteSubmission=t.saveSubmission=t.getSubmission=t.resetSubmission=t.clearSubmissionError=void 0;var r=n(36),l=(r=r)&&r.__esModule?r:{default:r},s=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}}(n(224));function u(e,t,n){return{type:s.SUBMISSION_SUCCESS,name:e,submission:t,url:n}}function c(e,t){return{type:s.SUBMISSION_FAILURE,name:e,error:t}}t.clearSubmissionError=function(e){return{type:s.SUBMISSION_CLEAR_ERROR,name:e}};var a=t.resetSubmission=function(e){return{type:s.SUBMISSION_RESET,name:e}};t.getSubmission=function(r,o,i){var a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:function(){};return function(t,e){var n;e().id!==o&&(e=l.default.getProjectUrl()+"/"+(i?"form/"+i:r)+"/submission/"+o,n=new l.default(e),t({type:s.SUBMISSION_REQUEST,name:r,id:o,formId:i,url:e}),n.loadSubmission().then(function(e){t(u(r,e)),a(null,e)}).catch(function(e){t(c(r,e)),a(e)}))}},t.saveSubmission=function(r,t,o){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:function(){};return function(n){n({type:s.SUBMISSION_SAVE,name:r});var e=t._id;new l.default(l.default.getProjectUrl()+"/"+(o?"form/"+o:r)+"/submission"+(e?"/"+e:"")).saveSubmission(t).then(function(e){var t=l.default.getProjectUrl()+"/"+(o?"form/"+o:r)+"/submission/"+e._id;n(u(r,e,t)),i(null,e)}).catch(function(e){n(c(r,e)),i(e)})}},t.deleteSubmission=function(n,r,o){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:function(){};return function(t,e){return new l.default(l.default.getProjectUrl()+"/"+(o?"form/"+o:n)+"/submission/"+r).deleteSubmission().then(function(){t(a(n)),i(null,!0)}).catch(function(e){t(c(n,e)),i(e)})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};t.submission=function(n){var r={formId:"",id:"",isActive:!1,lastUpdated:0,submission:{},url:"",error:""};return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1];if(t.name!==n.name)return e;switch(t.type){case i.SUBMISSION_CLEAR_ERROR:return o({},e,{error:""});case i.SUBMISSION_REQUEST:return o({},e,{formId:t.formId,id:t.id,url:t.url,submission:{},isActive:!0});case i.SUBMISSION_SAVE:return o({},e,{formId:t.formId,id:t.id,url:t.url||e.url,submission:{},isActive:!0});case i.SUBMISSION_SUCCESS:return o({},e,{id:t.submission._id,submission:t.submission,isActive:!1,error:""});case i.SUBMISSION_FAILURE:return o({},e,{isActive:!1,isInvalid:!0,error:t.error});case i.SUBMISSION_RESET:return r;default:return e}}};var i=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}}(n(224))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectSubmission=void 0;var r=n(99);t.selectSubmission=function(e,t){return(0,r.selectRoot)(e,t).submission}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1137),o=(Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}),n(225)),i=(Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}),n(1138)),a=(Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}),n(1139));Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSubmissions=t.resetSubmissions=void 0;var f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r=n(36),d=(r=r)&&r.__esModule?r:{default:r},p=n(99),h=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}}(n(225));t.resetSubmissions=function(e){return{type:h.SUBMISSIONS_RESET,name:e}},t.getSubmissions=function(a){var l=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,s=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},u=arguments[3],c=4<arguments.length&&void 0!==arguments[4]?arguments[4]:function(){};return function(t,e){t({type:h.SUBMISSIONS_REQUEST,name:a,page:l,params:s,formId:u});var e=(0,p.selectRoot)(a,e()),n=e.limit,r=e.query,o=e.select,e=e.sort,i=new d.default(d.default.getProjectUrl()+"/"+(u?"form/"+u:a)+"/submission"),r=f({},r,s);return 10!==n?r.limit=n:delete r.limit,1!==l?r.skip=(l-1)*n:delete r.skip,o?r.select=o:delete r.select,e?r.sort=e:delete r.sort,i.loadSubmissions({params:r}).then(function(e){t({type:h.SUBMISSIONS_SUCCESS,name:a,submissions:e}),c(null,e)}).catch(function(e){t({type:h.SUBMISSIONS_FAILURE,name:a,error:e}),c(e)})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t=(t.submissions=function(e){var r=e.name,t=e.limit,t=void 0===t?10:t,n=e.query,n=void 0===n?{}:n,o=e.select,o=void 0===o?"":o,e=e.sort,e=void 0===e?"":e,i={error:"",formId:"",isActive:!1,limit:t,pagination:{numPages:0,page:1,total:0},query:n,select:o,sort:e,submissions:[]};return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:i,t=arguments[1];if(t.name!==r)return e;switch(t.type){case s.SUBMISSIONS_RESET:return i;case s.SUBMISSIONS_REQUEST:return a({},e,(0,l.default)(t.params,["limit","query","select","sort"]),{error:"",formId:t.formId,isActive:!0,pagination:a({},e.pagination,{page:t.page}),submissions:[]});case s.SUBMISSIONS_SUCCESS:var n=t.submissions.serverCount;return a({},e,{isActive:!1,pagination:a({},e.pagination,{numPages:Math.ceil(n/e.limit),total:n}),submissions:t.submissions});case s.SUBMISSIONS_FAILURE:return a({},e,{error:t.error,isActive:!1});default:return e}}},n(335)),l=(t=t)&&t.__esModule?t:{default:t},s=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}}(n(225))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectSubmissions=void 0;var r=n(99);t.selectSubmissions=function(e,t){return(0,r.selectRoot)(e,t).submissions}},function(e,t,n){"use strict";n.r(t),n.d(t,"v1",function(){return u}),n.d(t,"v3",function(){return P}),n.d(t,"v4",function(){return E}),n.d(t,"v5",function(){return j}),n.d(t,"NIL",function(){return C}),n.d(t,"version",function(){return R}),n.d(t,"validate",function(){return a}),n.d(t,"stringify",function(){return p}),n.d(t,"parse",function(){return y});var r,o=new Uint8Array(16);function c(){if(r=r||"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto))return r(o);throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}var i=/^(?:[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 a=function(e){return"string"==typeof e&&i.test(e)},l=[],s=0;s<256;++s)l.push((s+256).toString(16).substr(1));var f,d,p=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,e=(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase();if(a(e))return e;throw TypeError("Stringified UUID is invalid")},h=0,m=0;var u=function(e,t,n){var r=t&&n||0,o=t||new Array(16),i=(e=e||{}).node||f,n=void 0!==e.clockseq?e.clockseq:d,a=(null!=i&&null!=n||(a=e.random||(e.rng||c)(),null==i&&(i=f=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),null==n&&(n=d=16383&(a[6]<<8|a[7]))),void 0!==e.msecs?e.msecs:Date.now()),l=void 0!==e.nsecs?e.nsecs:m+1,s=a-h+(l-m)/1e4;if(s<0&&void 0===e.clockseq&&(n=n+1&16383),1e4<=(l=(s<0||h<a)&&void 0===e.nsecs?0:l))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");h=a,d=n,s=(1e4*(268435455&(a+=122192928e5))+(m=l))%4294967296,o[r++]=s>>>24&255,o[r++]=s>>>16&255,o[r++]=s>>>8&255,o[r++]=255&s,e=a/4294967296*1e4&268435455,o[r++]=e>>>8&255,o[r++]=255&e,o[r++]=e>>>24&15|16,o[r++]=e>>>16&255,o[r++]=n>>>8|128,o[r++]=255&n;for(var u=0;u<6;++u)o[r+u]=i[u];return t||p(o)};var y=function(e){if(!a(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function v(e,a,l){function t(e,t,n,r){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)),16!==(t="string"==typeof t?y(t):t).length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var o=new Uint8Array(16+e.length);if(o.set(t),o.set(e,t.length),(o=l(o))[6]=15&o[6]|a,o[8]=63&o[8]|128,n){r=r||0;for(var i=0;i<16;++i)n[r+i]=o[i];return n}return p(o)}try{t.name=e}catch(e){}return t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",t}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((t=g(g(t,e),g(r,i)))<<o|t>>>32-o,n)}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 P=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)}for(var r=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 l=n,s=r,u=o,c=i;n=k(n,r,o,i,e[a],7,-680876936),i=k(i,n,r,o,e[a+1],12,-389564586),o=k(o,i,n,r,e[a+2],17,606105819),r=k(r,o,i,n,e[a+3],22,-1044525330),n=k(n,r,o,i,e[a+4],7,-176418897),i=k(i,n,r,o,e[a+5],12,1200080426),o=k(o,i,n,r,e[a+6],17,-1473231341),r=k(r,o,i,n,e[a+7],22,-45705983),n=k(n,r,o,i,e[a+8],7,1770035416),i=k(i,n,r,o,e[a+9],12,-1958414417),o=k(o,i,n,r,e[a+10],17,-42063),r=k(r,o,i,n,e[a+11],22,-1990404162),n=k(n,r,o,i,e[a+12],7,1804603682),i=k(i,n,r,o,e[a+13],12,-40341101),o=k(o,i,n,r,e[a+14],17,-1502002290),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,l),r=g(r,s),o=g(o,u),i=g(i,c)}return[n,r,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(b(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length),o=[],i=32*r.length,a="0123456789abcdef",l=0;l<i;l+=8){var s=r[l>>5]>>>l%32&255,s=parseInt(a.charAt(s>>>4&15)+a.charAt(15&s),16);o.push(s)}return o});var E=function(e,t,n){var r=(e=e||{}).random||(e.rng||c)();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 p(r)};function x(e,t){return e<<t|e>>>32-t}var j=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),l=new Array(a),s=0;s<a;++s){for(var u=new Uint32Array(16),c=0;c<16;++c)u[c]=e[64*s+4*c]<<24|e[64*s+4*c+1]<<16|e[64*s+4*c+2]<<8|e[64*s+4*c+3];l[s]=u}l[a-1][14]=8*(e.length-1)/Math.pow(2,32),l[a-1][14]=Math.floor(l[a-1][14]),l[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]=l[f][p];for(var h=16;h<80;++h)d[h]=x(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),k=x(m,5)+function(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}}(k,y,v,b)+g+t[k]+d[w]>>>0,g=b,b=v,v=x(y,30)>>>0,y=m,m=k;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]]}),C="00000000-0000-0000-0000-000000000000";var R=function(e){if(a(e))return parseInt(e.substr(14,1),16);throw TypeError("Invalid UUID")}},function(e,t,n){"use strict";n.r(t);function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.a.apply(void 0,[[{key:"display",components:[{key:"placeholder",ignore:!0}]},{key:"data",components:[{type:"tags",storeas:"array",input:!0,label:"Key topics for Sentiment Analysis",weight:20,key:"sentimentAnalyticTopics",tooltip:"Enter topics to use in sentiment Analysis"}]},{key:"validation",components:[]},{key:"api",components:[]},{key:"conditional",components:[]},{key:"logic",components:[]}]].concat(t))}var o=n(55),l=n.n(o),i=n(226),a=n.n(i),s=n(227),i=n(115),u=n.n(i);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){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function p(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=m(n),t=(e=r?(e=m(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return h(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.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e);var n,i=p(a);function a(e){var o,t,n,r;if(this instanceof a)return o=i.call(this,e),t=h(o),r=function(e){var t=o.props.component,n=t.type,t=t.sentimentAnalyticTopics,r=o.state.value,r=(null==r?void 0:r.overallSentiment)||"";o.setState({value:{text:e.target.value,type:n,topics:t,overallSentiment:r}},function(){return o.props.onChange(o.state.value)})},(n="updateCommentData")in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,o.state={value:e.value},o;throw new TypeError("Cannot call a class as a function")}return t=a,(e=[{key:"render",value:function(){var e=this.props,t=e.disabled,e=e.name,n=this.state.value,n=(null==n?void 0:n.text)||"";return l.a.createElement("textarea",{name:e,rows:"3",value:n,className:"form-control",onChange:this.updateCommentData,disabled:t})}}])&&f(t.prototype,e),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.Component);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,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){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function w(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=k(n),t=(e=r?(e=k(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var n=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e);var n,r=w(o);function o(){var e=this,t=o;if(e instanceof t)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=o,e=[{key:"builderInfo",get:function(){return{title:"Text Area With Analytics",icon:"area-chart",group:"basic",documentation:"",weight:110,schema:o.schema()}}},{key:"schema",value:function(){return s.ReactComponent.schema({type:"textAreaWithAnalytics",label:"Text Area With Analytics"})}}],(n=[{key:"attachReact",value:function(e){var t,n=this;return a.a.render(l.a.createElement(y,{ref:function(e){t=e},component:this.component,value:this.dataValue,data:this.data,name:this.name,onChange:this.updateValue,disabled:this.disabled}),e,function(){return n.reactInstance=t})}},{key:"detachReact",value:function(e){e&&a.a.unmountComponentAtNode(e)}}])&&b(t.prototype,n),e&&b(t,e),Object.defineProperty(t,"prototype",{writable:!1}),o}(s.ReactComponent),_=(i=r,(o="editForm")in(_=n)?Object.defineProperty(_,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):_[o]=i,{textAreaWithAnalytics:n});t.default={components:_}},function(I,e,t){"use strict";t.r(e),t.d(e,"getValueByPointer",function(){return k}),t.d(e,"applyOperation",function(){return f}),t.d(e,"applyPatch",function(){return _}),t.d(e,"applyReducer",function(){return O}),t.d(e,"validator",function(){return S}),t.d(e,"validate",function(){return P}),t.d(e,"_areEquals",function(){return E}),t.d(e,"unobserve",function(){return R}),t.d(e,"observe",function(){return A}),t.d(e,"generate",function(){return M}),t.d(e,"compare",function(){return D}),t.d(e,"JsonPatchError",function(){return a}),t.d(e,"deepClone",function(){return h}),t.d(e,"escapePathComponent",function(){return y}),t.d(e,"unescapePathComponent",function(){return v});var r,n={},o=(t.r(n),t.d(n,"JsonPatchError",function(){return b}),t.d(n,"deepClone",function(){return c}),t.d(n,"getValueByPointer",function(){return k}),t.d(n,"applyOperation",function(){return f}),t.d(n,"applyPatch",function(){return _}),t.d(n,"applyReducer",function(){return O}),t.d(n,"validator",function(){return S}),t.d(n,"validate",function(){return P}),t.d(n,"_areEquals",function(){return E}),{}),t=(t.r(o),t.d(o,"unobserve",function(){return R}),t.d(o,"observe",function(){return A}),t.d(o,"generate",function(){return M}),t.d(o,"compare",function(){return D}),r=function(e,t){return(r=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 n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=Object.prototype.hasOwnProperty;function d(e,t){return i.call(e,t)}function p(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);var r,o=[];for(r in e)d(e,r)&&o.push(r);return o}function h(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function m(e){for(var t,n=0,r=e.length;n<r;){if(!(48<=(t=e.charCodeAt(n))&&t<=57))return;n++}return 1}function y(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function v(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function l(e,t){var n,r=[e];for(n in t){var o="object"==typeof t[n]?JSON.stringify(t[n],null,2):t[n];void 0!==o&&r.push(n+": "+o)}return r.join("\n")}s=Error,t(u,s);var s,a=u;function u(e,t,n,r,o){var i=this.constructor,a=s.call(this,l(e,{name:t,index:n,operation:r,tree:o}))||this;return a.name=t,a.index=n,a.operation=r,a.tree=o,Object.setPrototypeOf(a,i.prototype),a.message=l(e,{name:t,index:n,operation:r,tree:o}),a}var b=a,c=h,g={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=(r=k(n,this.path))&&h(r),o=f(n,{op:"remove",path:this.from}).removed;return f(n,{op:"add",path:this.path,value:o}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=k(n,this.from);return f(n,{op:"add",path:this.path,value:h(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:E(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},w={add:function(e,t,n){return m(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){return{newDocument:n,removed:e.splice(t,1)[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:g.move,copy:g.copy,test:g.test,_get:g._get};function k(e,t){if(""==t)return e;t={op:"_get",path:t};return f(e,t),t.value}function f(e,t,n,r,o,i){if(void 0===r&&(r=!0),void 0===o&&(o=!0),void 0===i&&(i=0),(n=void 0===n?!1:n)&&("function"==typeof n?n(t,0,e,t.path):S(t,0)),""===t.path){var a={newDocument:e};if("add"===t.op)a.newDocument=t.value;else if("replace"===t.op)a.newDocument=t.value,a.removed=e;else if("move"===t.op||"copy"===t.op)a.newDocument=k(e,t.from),"move"===t.op&&(a.removed=e);else if("test"===t.op){if(a.test=E(e,t.value),!1===a.test)throw new b("Test operation failed","TEST_OPERATION_FAILED",i,t,e);a.newDocument=e}else if("remove"===t.op)a.removed=e,a.newDocument=null;else if("_get"===t.op)t.value=e;else if(n)throw new b("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return a}r||(e=h(e));for(var l=(t.path||"").split("/"),s=e,u=1,c=l.length,f=void 0,d=void 0,p=void 0,p="function"==typeof n?n:S;;){if((d=l[u])&&-1!=d.indexOf("~")&&(d=v(d)),o&&("__proto__"==d||"prototype"==d&&0<u&&"constructor"==l[u-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&void 0===f&&(void 0===s[d]?f=l.slice(0,u).join("/"):u==c-1&&(f=t.path),void 0!==f&&p(t,0,e,f)),u++,Array.isArray(s)){if("-"===d)d=s.length;else{if(n&&!m(d))throw new b("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);m(d)&&(d=~~d)}if(c<=u){if(n&&"add"===t.op&&d>s.length)throw new b("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(a=w[t.op].call(t,s,d,e)).test)throw new b("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(c<=u){if(!1===(a=g[t.op].call(t,s,d,e)).test)throw new b("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(s=s[d],n&&u<c&&(!s||"object"!=typeof s))throw new b("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function _(e,t,n,r,o){if(void 0===r&&(r=!0),void 0===o&&(o=!0),n&&!Array.isArray(t))throw new b("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(e=h(e));for(var i=new Array(t.length),a=0,l=t.length;a<l;a++)i[a]=f(e,t[a],n,!0,o,a),e=i[a].newDocument;return i.newDocument=e,i}function O(e,t,n){var r=f(e,t);if(!1===r.test)throw new b("Test operation failed","TEST_OPERATION_FAILED",n,t,e);return r.newDocument}function S(e,t,n,r){if("object"!=typeof e||null===e||Array.isArray(e))throw new b("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,n);if(!g[e.op])throw new b("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n);if("string"!=typeof e.path)throw new b("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,n);if(0!==e.path.indexOf("/")&&0<e.path.length)throw new b('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new b("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new b("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&function e(t){if(void 0===t)return 1;if(t)if(Array.isArray(t)){for(var n=0,r=t.length;n<r;n++)if(e(t[n]))return 1}else if("object"==typeof t)for(var o=p(t),i=o.length,a=0;a<i;a++)if(e(t[o[a]]))return 1}(e.value))throw new b("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n)if("add"==e.op){var o=e.path.split("/").length,i=r.split("/").length;if(o!==i+1&&o!==i)throw new b("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==r)throw new b("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if("move"===e.op||"copy"===e.op){o=P([{op:"_get",path:e.from,value:void 0}],n);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new b("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}function P(e,t,n){try{if(!Array.isArray(e))throw new b("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)_(h(t),h(e),n||!0);else{n=n||S;for(var r=0;r<e.length;r++)n(e[r],r,t,void 0)}}catch(e){if(e instanceof b)return e;throw e}}function E(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,r,o=Array.isArray(e),i=Array.isArray(t);if(o&&i){if((a=e.length)!=t.length)return!1;for(n=a;0!=n--;)if(!E(e[n],t[n]))return!1}else{if(o!=i)return!1;var a,l=Object.keys(e);if((a=l.length)!==Object.keys(t).length)return!1;for(n=a;0!=n--;)if(!t.hasOwnProperty(l[n]))return!1;for(n=a;0!=n--;)if(!E(e[r=l[n]],t[r]))return!1}return!0}return e!=e&&t!=t}
/*!
 * https://github.com/Starcounter-Jack/JSON-Patch
 * (c) 2017-2021 Joachim Wester
 * MIT license
 */
var x=new WeakMap,j=function(e){this.observers=new Map,this.obj=e},C=function(e,t){this.callback=e,this.observer=t};function R(e,t){t.unobserve()}function A(e,t){var n,r,o,i,a=x.get(e);return a?(n=a.observers.get(t),r=n&&n.observer):(a=new j(e),x.set(e,a)),r||(r={},a.value=h(e),t&&(r.callback=t,r.next=null,o=function(){M(r)},i=function(){clearTimeout(r.next),r.next=setTimeout(o)},"undefined"!=typeof window&&(window.addEventListener("mouseup",i),window.addEventListener("keyup",i),window.addEventListener("mousedown",i),window.addEventListener("keydown",i),window.addEventListener("change",i))),r.patches=[],r.object=e,r.unobserve=function(){var e;M(r),clearTimeout(r.next),e=r,a.observers.delete(e.callback),"undefined"!=typeof window&&(window.removeEventListener("mouseup",i),window.removeEventListener("keyup",i),window.removeEventListener("mousedown",i),window.removeEventListener("keydown",i),window.removeEventListener("change",i))},a.observers.set(t,new C(t,r))),r}function M(e,t){void 0===t&&(t=!1);var n=x.get(e.object),t=(T(n.value,e.object,e.patches,"",t),e.patches.length&&_(n.value,e.patches),e.patches);return 0<t.length&&(e.patches=[],e.callback&&e.callback(t)),t}function T(e,t,n,r,o){if(t!==e){for(var i=p(t="function"==typeof t.toJSON?t.toJSON():t),a=p(e),l=!1,s=a.length-1;0<=s;s--){var u,c=e[f=a[s]];!d(t,f)||void 0===t[f]&&void 0!==c&&!1===Array.isArray(t)?Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+y(f),value:h(c)}),n.push({op:"remove",path:r+"/"+y(f)}),l=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}),0):(u=t[f],"object"==typeof c&&null!=c&&"object"==typeof u&&null!=u&&Array.isArray(c)===Array.isArray(u)?T(c,u,n,r+"/"+y(f),o):c!==u&&(o&&n.push({op:"test",path:r+"/"+y(f),value:h(c)}),n.push({op:"replace",path:r+"/"+y(f),value:h(u)})))}if(l||i.length!=a.length)for(var f,s=0;s<i.length;s++)d(e,f=i[s])||void 0===t[f]||n.push({op:"add",path:r+"/"+y(f),value:h(t[f])})}}function D(e,t,n){var r=[];return T(e,t,r,"",n=void 0===n?!1:n),r}e.default=Object.assign({},n,o,{JsonPatchError:a,deepClone:h,escapePathComponent:y,unescapePathComponent:v})},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return r});var o=/iPhone/i,i=/iPod/i,a=/iPad/i,l=/\biOS-universal(?:.+)Mac\b/i,s=/\bAndroid(?:.+)Mobile\b/i,u=/Android/i,c=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,f=/Silk/i,d=/Windows Phone/i,p=/\bWindows(?:.+)ARM\b/i,h=/BlackBerry/i,m=/BB10/i,y=/Opera Mini/i,v=/\b(CriOS|Chrome)(?:.+)Mobile/i,b=/Mobile(?:.+)Firefox\b/i,g=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&1<e.maxTouchPoints&&"undefined"==typeof MSStream};function r(e){var t,n={userAgent:"",platform:"",maxTouchPoints:0},e=(e||"undefined"==typeof navigator?"string"==typeof e?n.userAgent=e:e&&e.userAgent&&(n={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):n={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0},n.userAgent),r=e.split("[FBAN"),r=(void 0!==(r=(e=void 0!==r[1]?r[0]:e).split("Twitter"))[1]&&(e=r[0]),t=e,function(e){return e.test(t)}),e={apple:{phone:r(o)&&!r(d),ipod:r(i),tablet:!r(o)&&(r(a)||g(n))&&!r(d),universal:r(l),device:(r(o)||r(i)||r(a)||r(l)||g(n))&&!r(d)},amazon:{phone:r(c),tablet:!r(c)&&r(f),device:r(c)||r(f)},android:{phone:!r(d)&&r(c)||!r(d)&&r(s),tablet:!r(d)&&!r(c)&&!r(s)&&(r(f)||r(u)),device:!r(d)&&(r(c)||r(f)||r(s)||r(u))||r(/\bokhttp\b/i)},windows:{phone:r(d),tablet:r(p),device:r(d)||r(p)},other:{blackberry:r(h),blackberry10:r(m),opera:r(y),firefox:r(b),chrome:r(v),device:r(h)||r(m)||r(y)||r(b)||r(v)},any:!1,phone:!1,tablet:!1};return e.any=e.apple.device||e.android.device||e.windows.device||e.other.device,e.phone=e.apple.phone||e.android.phone||e.windows.phone,e.tablet=e.apple.tablet||e.android.tablet||e.windows.tablet,e}}],r={},o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=1141).default;function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var n,r});