/*! formiojs v3.10.4 | https://unpkg.com/formiojs@3.10.4/LICENSE.txt */!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=93)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(37)("wks"),o=n(18),i=n(0).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(11),o=n(58),i=n(23),u=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(5)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(73),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(2),o=n(26);t.exports=n(3)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(0),o=n(8),i=n(7),u=n(18)("src"),c=Function.toString,s=(""+c).split("toString");n(24).inspectSource=function(t){return c.call(t)},(t.exports=function(t,e,n,c){var a="function"==typeof n;a&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(a&&(i(n,u)||o(n,u,t[e]?""+t[e]:s.join(String(e)))),t===r?t[e]=n:c?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||c.call(this)})},function(t,e,n){var r=n(165),o=n(168);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(0),o=n(24),i=n(8),u=n(9),c=n(62),s=function(t,e,n){var a,f,l,p,h=t&s.F,v=t&s.G,d=t&s.S,y=t&s.P,m=t&s.B,b=v?r:d?r[e]||(r[e]={}):(r[e]||{}).prototype,g=v?o:o[e]||(o[e]={}),_=g.prototype||(g.prototype={});for(a in v&&(n=e),n)l=((f=!h&&b&&void 0!==b[a])?b:n)[a],p=m&&f?c(l,r):y&&"function"==typeof l?c(Function.call,l):l,b&&u(b,a,l,t&s.U),g[a]!=l&&i(g,a,p),y&&_[a]!=l&&(_[a]=l)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var r=n(64),o=n(14);t.exports=function(t){return r(o(t))}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(63),o=n(41);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){(function(r,o){var i,u,c,s;
/*! Native Promise Only
    v0.8.1 (c) Kyle Simpson
    MIT License: http://getify.mit-license.org
*/
/*! Native Promise Only
    v0.8.1 (c) Kyle Simpson
    MIT License: http://getify.mit-license.org
*/
s=function(){"use strict";var t,e,n,r=Object.prototype.toString,i=void 0!==o?function(t){return o(t)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(t,e,n,r){return Object.defineProperty(t,e,{value:n,writable:!0,configurable:!1!==r})}}catch(e){t=function(t,e,n){return t[e]=n,t}}function u(t,r){n.add(t,r),e||(e=i(n.drain))}function c(t){var e,n=typeof t;return null==t||"object"!=n&&"function"!=n||(e=t.then),"function"==typeof e&&e}function s(){for(var t=0;t<this.chain.length;t++)a(this,1===this.state?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function a(t,e,n){var r,o;try{!1===e?n.reject(t.msg):(r=!0===e?t.msg:e.call(void 0,t.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(o=c(r))?o.call(r,n.resolve,n.reject):n.resolve(r)}catch(t){n.reject(t)}}function f(t){var e=this;e.triggered||(e.triggered=!0,e.def&&(e=e.def),e.msg=t,e.state=2,e.chain.length>0&&u(s,e))}function l(t,e,n,r){for(var o=0;o<e.length;o++)!function(o){t.resolve(e[o]).then(function(t){n(o,t)},r)}(o)}function p(t){this.def=t,this.triggered=!1}function h(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function v(t){if("function"!=typeof t)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var e=new h(this);this.then=function(t,n){var r={success:"function"!=typeof t||t,failure:"function"==typeof n&&n};return r.promise=new this.constructor(function(t,e){if("function"!=typeof t||"function"!=typeof e)throw TypeError("Not a function");r.resolve=t,r.reject=e}),e.chain.push(r),0!==e.state&&u(s,e),r.promise},this.catch=function(t){return this.then(void 0,t)};try{t.call(void 0,function(t){(function t(e){var n,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(n=c(e))?u(function(){var o=new p(r);try{n.call(e,function(){t.apply(o,arguments)},function(){f.apply(o,arguments)})}catch(t){f.call(o,t)}}):(r.msg=e,r.state=1,r.chain.length>0&&u(s,r))}catch(t){f.call(new p(r),t)}}}).call(e,t)},function(t){f.call(e,t)})}catch(t){f.call(e,t)}}n=function(){var t,n,r;function o(t,e){this.fn=t,this.self=e,this.next=void 0}return{add:function(e,i){r=new o(e,i),n?n.next=r:t=r,n=r,r=void 0},drain:function(){var r=t;for(t=n=e=void 0;r;)r.fn.call(r.self),r=r.next}}}();var d=t({},"constructor",v,!1);return v.prototype=d,t(d,"__NPO__",0,!1),t(v,"resolve",function(t){return t&&"object"==typeof t&&1===t.__NPO__?t:new this(function(e,n){if("function"!=typeof e||"function"!=typeof n)throw TypeError("Not a function");e(t)})}),t(v,"reject",function(t){return new this(function(e,n){if("function"!=typeof e||"function"!=typeof n)throw TypeError("Not a function");n(t)})}),t(v,"all",function(t){var e=this;return"[object Array]"!=r.call(t)?e.reject(TypeError("Not an array")):0===t.length?e.resolve([]):new e(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var o=t.length,i=Array(o),u=0;l(e,t,function(t,e){i[t]=e,++u===o&&n(i)},r)})}),t(v,"race",function(t){var e=this;return"[object Array]"!=r.call(t)?e.reject(TypeError("Not an array")):new e(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");l(e,t,function(t,e){n(e)},r)})}),v},(c=void 0!==r?r:this)[u="Promise"]=c[u]||s(),t.exports?t.exports=c[u]:void 0===(i=function(){return c[u]}.call(e,n,e,t))||(t.exports=i)}).call(this,n(17),n(128).setImmediate)},function(t,e,n){var r=n(31),o=n(141),i=n(142),u="[object Null]",c="[object Undefined]",s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?c:u:s&&s in Object(t)?o(t):i(t)}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(6);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=!1},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(63),o=n(41).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){"use strict";var r=n(8),o=n(9),i=n(5),u=n(14),c=n(1);t.exports=function(t,e,n){var s=c(t),a=n(u,s,""[t]),f=a[0],l=a[1];i(function(){var e={};return e[s]=function(){return 7},7!=""[t](e)})&&(o(String.prototype,t,f),r(RegExp.prototype,s,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)}))}},function(t,e,n){var r=n(4).Symbol;t.exports=r},function(t,e,n){var r=n(10)(Object,"create");t.exports=r},function(t,e,n){var r=n(173),o=n(174),i=n(175),u=n(176),c=n(177);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=u,s.prototype.set=c,t.exports=s},function(t,e,n){var r=n(79);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(179);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var r=n(80),o=n(81);t.exports=function(t,e,n,i){var u=!n;n||(n={});for(var c=-1,s=e.length;++c<s;){var a=e[c],f=i?i(n[a],t[a],a,n,t):void 0;void 0===f&&(f=t[a]),u?o(n,a,f):r(n,a,f)}return n}},function(t,e,n){var r=n(24),o=n(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(25)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(2).f,o=n(7),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(37)("keys"),o=n(18);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(11),o=n(102),i=n(41),u=n(40)("IE_PROTO"),c=function(){},s=function(){var t,e=n(59)("iframe"),r=i.length;for(e.style.display="none",n(103).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;r--;)delete s.prototype[i[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=r(t),n=new c,c.prototype=null,n[u]=t):n=s(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(28),o=n(26),i=n(13),u=n(23),c=n(7),s=n(58),a=Object.getOwnPropertyDescriptor;e.f=n(3)?a:function(t,e){if(t=i(t),e=u(e,!0),s)try{return a(t,e)}catch(t){}if(c(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e){t.exports={}},function(t,e,n){var r=n(6),o=n(27),i=n(1)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(21),o=n(16),i="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||o(t)&&r(t)==i}},function(t,e,n){var r=n(10)(n(4),"Map");t.exports=r},function(t,e,n){var r=n(82),o=n(202),i=n(86);t.exports=function(t){return i(t)?r(t):o(t)}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){var r=n(73),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,u=i&&i.exports===o&&r.process,c=function(){try{var t=i&&i.require&&i.require("util").types;return t||u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=c}).call(this,n(50)(t))},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(210),o=n(88),i=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols,c=u?function(t){return null==t?[]:(t=Object(t),r(u(t),function(e){return i.call(t,e)}))}:o;t.exports=c},function(t,e,n){var r=n(214),o=n(48),i=n(215),u=n(216),c=n(217),s=n(21),a=n(78),f=a(r),l=a(o),p=a(i),h=a(u),v=a(c),d=s;(r&&"[object DataView]"!=d(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=d(new o)||i&&"[object Promise]"!=d(i.resolve())||u&&"[object Set]"!=d(new u)||c&&"[object WeakMap]"!=d(new c))&&(d=function(t){var e=s(t),n="[object Object]"==e?t.constructor:void 0,r=n?a(n):"";if(r)switch(r){case f:return"[object DataView]";case l:return"[object Map]";case p:return"[object Promise]";case h:return"[object Set]";case v:return"[object WeakMap]"}return e}),t.exports=d},function(t,e,n){var r=n(220);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e,n){var r=n(2).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(3)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,e,n){t.exports=!n(3)&&!n(5)(function(){return 7!=Object.defineProperty(n(59)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(6),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(0),o=n(24),i=n(25),u=n(61),c=n(2).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:u.f(t)})}},function(t,e,n){e.f=n(1)},function(t,e,n){var r=n(96);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(7),o=n(13),i=n(65)(!1),u=n(40)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),s=0,a=[];for(n in c)n!=u&&r(c,n)&&a.push(n);for(;e.length>s;)r(c,n=e[s++])&&(~i(a,n)||a.push(n));return a}},function(t,e,n){var r=n(27);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(13),o=n(99),i=n(100);t.exports=function(t){return function(e,n,u){var c,s=r(e),a=o(s.length),f=i(u,a);if(t&&n!=n){for(;a>f;)if((c=s[f++])!=c)return!0}else for(;a>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(6),o=n(106).set;t.exports=function(t,e,n){var i,u=e.constructor;return u!==n&&"function"==typeof u&&(i=u.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},function(t,e,n){"use strict";var r=n(68),o=n(110),i=n(45),u=n(13);t.exports=n(69)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(1)("unscopables"),o=Array.prototype;null==o[r]&&n(8)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){"use strict";var r=n(25),o=n(12),i=n(9),u=n(8),c=n(45),s=n(111),a=n(38),f=n(112),l=n(1)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,v,d,y,m){s(n,e,v);var b,g,_,w=function(t){if(!p&&t in x)return x[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},j=e+" Iterator",k="values"==d,O=!1,x=t.prototype,A=x[l]||x["@@iterator"]||d&&x[d],S=A||w(d),U=d?k?w("entries"):S:void 0,T="Array"==e&&x.entries||A;if(T&&(_=f(T.call(new t)))!==Object.prototype&&_.next&&(a(_,j,!0),r||"function"==typeof _[l]||u(_,l,h)),k&&A&&"values"!==A.name&&(O=!0,S=function(){return A.call(this)}),r&&!m||!p&&!O&&x[l]||u(x,l,S),c[e]=S,c[j]=h,d)if(b={values:k?S:w("values"),keys:y?S:w("keys"),entries:U},m)for(g in b)g in x||i(x,g,b[g]);else o(o.P+o.F*(p||O),e,b);return b}},function(t,e,n){var r=n(14);t.exports=function(t){return Object(r(t))}},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function c(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,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)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(t){r=u}}();var s,a=[],f=!1,l=-1;function p(){f&&s&&(f=!1,s.length?a=s.concat(a):l=-1,a.length&&h())}function h(){if(!f){var t=c(p);f=!0;for(var e=a.length;e;){for(s=a,a=[];++l<e;)s&&s[l].run();l=-1,e=a.length}s=null,f=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===u||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function v(t,e){this.fun=t,this.array=e}function d(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];a.push(new v(t,e)),1!==a.length||f||c(h)},v.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=d,o.addListener=d,o.once=d,o.off=d,o.removeListener=d,o.removeAllListeners=d,o.emit=d,o.prependListener=d,o.prependOnceListener=d,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){var r=n(31),o=n(140),i=n(15),u=n(47),c=1/0,s=r?r.prototype:void 0,a=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(u(e))return a?a.call(e):"";var n=e+"";return"0"==n&&1/e==-c?"-0":n}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(17))},function(t,e,n){var r=n(146),o=n(147),i=n(148);t.exports=function(t,e,n){return e==e?i(t,e,n):r(t,o,n)}},function(t,e,n){var r=n(72);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(162),o=n(178),i=n(180),u=n(181),c=n(182);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=u,s.prototype.set=c,t.exports=s},function(t,e,n){var r=n(21),o=n(22),i="[object AsyncFunction]",u="[object Function]",c="[object GeneratorFunction]",s="[object Proxy]";t.exports=function(t){if(!o(t))return!1;var e=r(t);return e==u||e==c||e==i||e==s}},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(81),o=n(79),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var u=t[e];i.call(t,e)&&o(u,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(193);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var r=n(195),o=n(196),i=n(15),u=n(83),c=n(199),s=n(200),a=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),f=!n&&o(t),l=!n&&!f&&u(t),p=!n&&!f&&!l&&s(t),h=n||f||l||p,v=h?r(t.length,String):[],d=v.length;for(var y in t)!e&&!a.call(t,y)||h&&("length"==y||l&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,d))||v.push(y);return v}},function(t,e,n){(function(t){var r=n(4),o=n(198),i=e&&!e.nodeType&&e,u=i&&"object"==typeof t&&t&&!t.nodeType&&t,c=u&&u.exports===i?r.Buffer:void 0,s=(c?c.isBuffer:void 0)||o;t.exports=s}).call(this,n(50)(t))},function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var r=n(77),o=n(84);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},function(t,e,n){var r=n(82),o=n(205),i=n(86);t.exports=function(t){return i(t)?r(t,!0):o(t)}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(90),o=n(91),i=n(54),u=n(88),c=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,i(t)),t=o(t);return e}:u;t.exports=c},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},function(t,e,n){var r=n(85)(Object.getPrototypeOf,Object);t.exports=r},function(t,e,n){var r=n(90),o=n(15);t.exports=function(t,e,n){var i=e(t);return o(t)?i:r(i,n(t))}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(57),n(94),n(95),n(105),n(109),n(67),n(113),n(115),n(117),n(118),n(121),n(122),n(125),n(126),n(127);var r=f(n(20));n(130);var o=n(131),i=f(n(132)),u=f(n(133)),c=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}return e.default=t,e}(n(134)),s=f(n(155)),a=f(n(184));function f(t){return t&&t.__esModule?t:{default:t}}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var h=function(t){return null==t},v=function(t){return t&&"object"===p(t)},d=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!(this instanceof t))return new t(e);if(this.base="",this.projectsUrl="",this.projectUrl="",this.projectId="",this.formUrl="",this.formsUrl="",this.formId="",this.submissionsUrl="",this.submissionUrl="",this.submissionId="",this.actionsUrl="",this.actionId="",this.actionUrl="",this.vsUrl="",this.vId="",this.vUrl="",this.query="",this.path=e,this.options=r,r.hasOwnProperty("base")?this.base=r.base:t.baseUrl?this.base=t.baseUrl:this.base=window.location.href.match(/http[s]?:\/\/api./)[0],!e)return this.projectUrl="".concat(this.base,"/project"),this.projectsUrl="".concat(this.base,"/project"),this.projectId=!1,void(this.query="");r.hasOwnProperty("project")&&(this.projectUrl=r.project);var o=this.projectUrl||t.projectUrl,i=/(^|\/)(project)($|\/[^\/]+)/,u=-1!==e.search(i);o&&this.base===o&&!u&&(this.noProject=!0,this.projectUrl=this.base),0!==e.indexOf("http")&&0!==e.indexOf("//")&&(e=this.base+e);var c=this.getUrlParts(e),s=[],a=c[1]+c[2],f=(e=c.length>3?c[3]:"").split("?");f.length>1&&(e=f[0],this.query="?".concat(f[1]));var l=function(t,r){n["".concat(t,"sUrl")]="".concat(r,"/").concat(t);var o=new RegExp("/".concat(t,"/([^/]+)"));return-1!==e.search(o)&&(s=e.match(o),n["".concat(t,"Url")]=s?r+s[0]:"",n["".concat(t,"Id")]=s.length>1?s[1]:"",r+=s[0]),r},p=function t(e,n,r){for(var o in e)if(e.hasOwnProperty(o)){var i=e[o];if(Array.isArray(i))t(i,n,!0);else{var u=l(i,n);n=r?n:u}}};if(this.projectUrl&&this.projectUrl!==this.base||(this.projectUrl=a),!this.noProject){if(u)p(["project"],a),e=e.replace(i,"");else if(a===this.base){if(c.length>3&&e.split("/").length>1){var h=e.split("/");h.shift(),this.projectId=h.shift(),e="/".concat(h.join("/")),this.projectUrl="".concat(a,"/").concat(this.projectId)}}else c.length>2&&(c[2].split(".").length>2||a.includes("localhost"))&&(this.projectUrl=a,this.projectId=c[2].split(".")[0]);this.projectsUrl=this.projectsUrl||"".concat(this.base,"/project")}if(-1!==e.search(/(^|\/)(form)($|\/)/))p(["form",["submission","action","v"]],this.projectUrl);else{var v=new RegExp("/(submission|action|v)($|/.*)"),d=e.match(v);this.pathType=d&&d.length>1?d[1]:"",e=(e=e.replace(v,"")).replace(/\/$/,""),this.formsUrl="".concat(this.projectUrl,"/form"),this.formUrl=e?this.projectUrl+e:"",this.formId=e.replace(/^\/+|\/+$/g,"");var y=["submission","action","v"];for(var m in y)if(y.hasOwnProperty(m)){var b=y[m];this["".concat(b,"sUrl")]="".concat(this.projectUrl+e,"/").concat(b),this.pathType===b&&d.length>2&&d[2]&&(this["".concat(b,"Id")]=d[2].replace(/^\/+|\/+$/g,""),this["".concat(b,"Url")]=this.projectUrl+e+d[0])}}t.projectUrlSet||(t.projectUrl=this.projectUrl)}var e,n,o;return e=t,o=[{key:"loadProjects",value:function(e,n){return v(e=e||"")&&(e="?".concat(t.serialize(e.params))),t.makeStaticRequest("".concat(t.baseUrl,"/project").concat(e),"GET",null,n)}},{key:"getUrlParts",value:function(e,n){var r=n&&n.base?n.base:t.baseUrl,o="^(http[s]?:\\/\\/)";return r&&0===e.indexOf(r)?o+="(".concat(r.replace(/^http[s]?:\/\//,""),")"):o+="([^/]+)",o+="($|\\/.*)",e.match(new RegExp(o))}},{key:"serialize",value:function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(t[n])));return e.join("&")}},{key:"getRequestArgs",value:function(t,e,n,r,o,i){r=(r||"GET").toUpperCase(),i&&v(i)||(i={});var u={url:n,method:r,data:o||null,opts:i};return e&&(u.type=e),t&&(u.formio=t),u}},{key:"makeStaticRequest",value:function(e,n,r,o){var i=t.getRequestArgs(null,"",e,n,r,o),u=t.pluginWait("preRequest",i).then(function(){return t.pluginGet("staticRequest",i).then(function(r){return h(r)?t.request(e,n,i.data,i.opts.header,i.opts):r})});return t.pluginAlter("wrapStaticRequestPromise",u,i)}},{key:"makeRequest",value:function(e,n,r,o,i,u){if(!e)return t.makeStaticRequest(r,o,i,u);var c=t.getRequestArgs(e,n,r,o,i,u);c.opts=c.opts||{},c.opts.formio=e;var s=t.pluginWait("preRequest",c).then(function(){return t.pluginGet("request",c).then(function(e){return h(e)?t.request(r,o,c.data,c.opts.header,c.opts):e})});return t.pluginAlter("wrapRequestPromise",s,c)}},{key:"request",value:function(e,n,o,i,c){if(!e)return r.default.reject("No url provided");n=(n||"GET").toUpperCase(),p(c)===p(!0)&&(c={ignoreCache:c}),c&&v(c)||(c={});var s=btoa(e);if(!c.ignoreCache&&"GET"===n&&t.cache.hasOwnProperty(s))return(0,a.default)(t.cache[s]);var f=i||new Headers(c.headers||{Accept:"application/json","Content-type":"application/json; charset=UTF-8"}),l=t.getToken(c);l&&!c.noToken&&f.append("x-jwt-token",l);var h={method:n,headers:f,mode:"cors"};o&&(h.body=JSON.stringify(o)),((h=t.pluginAlter("requestOptions",h,e)).namespace||t.namespace)&&(c.namespace=h.namespace||t.namespace);var d=h.headers.get("x-jwt-token");return fetch(e,h).then(function(o){if(!(o=t.pluginAlter("requestResponse",o,t)).ok)return 440===o.status?(t.setToken(null,c),t.events.emit("formio.sessionExpired",o.body)):401===o.status&&t.events.emit("formio.unauthorized",o.body),(o.headers.get("content-type").includes("application/json")?o.json():o.text()).then(function(t){return r.default.reject(t)});var i=o.headers.get("x-jwt-token"),u=!1;return"GET"!==n||d||!i||c.external||e.includes("token=")||e.includes("x-jwt-token=")||(console.warn("Token was introduced in request."),u=!0),o.status>=200&&o.status<300&&i&&""!==i&&!u&&t.setToken(i,c),204===o.status?{}:(o.headers.get("content-type").includes("application/json")?o.json():o.text()).then(function(t){var e=o.headers.get("content-range");if(e&&v(t)){if("*"!==(e=e.split("/"))[0]){var n=e[0].split("-");t.skip=Number(n[0]),t.limit=n[1]-n[0]+1}t.serverCount="*"===e[1]?e[1]:Number(e[1])}if(!c.getHeaders)return t;var r={};return o.headers.forEach(function(t,e){r[e]=t}),{result:t,headers:r}})}).then(function(e){if(c.getHeaders)return e;"GET"===n&&(t.cache[s]=(0,a.default)(e));var r={};return Array.isArray(e)?((r=e.map(u.default)).skip=e.skip,r.limit=e.limit,r.serverCount=e.serverCount):r=(0,u.default)(e),r}).catch(function(e){return"Bad Token"===e&&(t.setToken(null,c),t.events.emit("formio.badToken",e)),e.message&&(e.message="Could not connect to API server (".concat(e.message,")"),e.networkError=!0),"GET"===n&&delete t.cache[s],r.default.reject(e)})}},{key:"setToken",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r="".concat((n="string"==typeof n?{namespace:n}:n||{}).namespace||t.namespace||"formio","Token");if(t.tokens||(t.tokens={}),t.tokens[r]!==e){if(t.tokens[r]=e,!e){t.setUser(null,n);try{return localStorage.removeItem(r)}catch(t){return i.default.erase(r,{path:"/"})}}try{localStorage.setItem(r,e)}catch(t){i.default.set(r,e,{path:"/"})}return t.currentUser(n.formio,n)}}},{key:"getToken",value:function(e){var n="".concat((e="string"==typeof e?{namespace:e}:e||{}).namespace||t.namespace||"formio","Token");if(t.tokens||(t.tokens={}),t.tokens[n])return t.tokens[n];try{return t.tokens[n]=localStorage.getItem(n)||"",t.tokens[n]}catch(e){return t.tokens[n]=i.default.get(n),t.tokens[n]}}},{key:"setUser",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="".concat(n.namespace||t.namespace||"formio","User");if(!e){t.setToken(null,n),t.events.emit("formio.user",null);try{return localStorage.removeItem(r)}catch(t){return i.default.erase(r,{path:"/"})}}try{localStorage.setItem(r,JSON.stringify(e))}catch(t){i.default.set(r,JSON.stringify(e),{path:"/"})}t.events.emit("formio.user",e)}},{key:"getUser",value:function(e){var n="".concat((e=e||{}).namespace||t.namespace||"formio","User");try{return JSON.parse(localStorage.getItem(n)||null)}catch(t){return JSON.parse(i.default.get(n))}}},{key:"setBaseUrl",value:function(e){t.baseUrl=e,t.projectUrlSet||(t.projectUrl=e)}},{key:"getBaseUrl",value:function(){return t.baseUrl}},{key:"setApiUrl",value:function(e){return t.setBaseUrl(e)}},{key:"getApiUrl",value:function(){return t.getBaseUrl()}},{key:"setAppUrl",value:function(e){console.warn("Formio.setAppUrl() is deprecated. Use Formio.setProjectUrl instead."),t.projectUrl=e,t.projectUrlSet=!0}},{key:"setProjectUrl",value:function(e){t.projectUrl=e,t.projectUrlSet=!0}},{key:"getAppUrl",value:function(){return console.warn("Formio.getAppUrl() is deprecated. Use Formio.getProjectUrl instead."),t.projectUrl}},{key:"getProjectUrl",value:function(){return t.projectUrl}},{key:"clearCache",value:function(){t.cache={}}},{key:"noop",value:function(){}},{key:"identity",value:function(t){return t}},{key:"deregisterPlugin",value:function(e){var n=t.plugins.length;return t.plugins=t.plugins.filter(function(n){return n!==e&&n.__name!==e||((n.deregister||t.noop).call(e,t),!1)}),n!==t.plugins.length}},{key:"registerPlugin",value:function(e,n){t.plugins.push(e),t.plugins.sort(function(t,e){return(e.priority||0)-(t.priority||0)}),e.__name=n,(e.init||t.noop).call(e,t)}},{key:"getPlugin",value:function(e){var n=!0,r=!1,o=void 0;try{for(var i,u=t.plugins[Symbol.iterator]();!(n=(i=u.next()).done);n=!0){var c=i.value;if(c.__name===e)return c}}catch(t){r=!0,o=t}finally{try{n||null==u.return||u.return()}finally{if(r)throw o}}return null}},{key:"pluginWait",value:function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.all(t.plugins.map(function(n){var r;return(r=n[e]||t.noop).call.apply(r,[n].concat(o))}))}},{key:"pluginGet",value:function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return function n(i){var u,c=t.plugins[i];return c?r.default.resolve((u=c[e]||t.noop).call.apply(u,[c].concat(o))).then(function(t){return h(t)?n(i+1):t}):r.default.resolve(null)}(0)}},{key:"pluginAlter",value:function(e,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return t.plugins.reduce(function(n,r){return(r[e]||t.identity).apply(void 0,[n].concat(o))},n)}},{key:"accessInfo",value:function(e){var n=e?e.projectUrl:t.projectUrl;return t.makeRequest(e,"accessInfo","".concat(n,"/access"))}},{key:"currentUser",value:function(e,n){var o=e?e.projectUrl:t.projectUrl||t.baseUrl;o+="/current";var i=t.getUser(n);if(i)return t.pluginAlter("wrapStaticRequestPromise",r.default.resolve(i),{url:o,method:"GET",options:n});var u=t.getToken(n);return n&&n.external||u?t.makeRequest(e,"currentUser",o,"GET",null,n).then(function(e){return t.setUser(e,n),e}):t.pluginAlter("wrapStaticRequestPromise",r.default.resolve(null),{url:o,method:"GET",options:n})}},{key:"logout",value:function(e,n){(n=n||{}).formio=e,t.setToken(null,n),t.setUser(null,n),t.clearCache();var r=e?e.projectUrl:t.baseUrl;return t.makeRequest(e,"logout","".concat(r,"/logout"))}},{key:"oAuthCurrentUser",value:function(e,n){return t.currentUser(e,{external:!0,headers:{Authorization:"Bearer ".concat(n)}})}},{key:"oktaInit",value:function(e){if(e=e||{},void 0!==("undefined"==typeof OktaAuth?"undefined":p(OktaAuth))&&(e.OktaAuth=OktaAuth),void 0===p(e.OktaAuth)){var n="Cannot find OktaAuth. Please include the Okta JavaScript SDK within your application. See https://developer.okta.com/code/javascript/okta_auth_sdk for an example.";return console.warn(n),r.default.reject(n)}return new r.default(function(n,r){var o=e.OktaAuth;delete e.OktaAuth;var i=new o(e),u=i.tokenManager.get("accessToken");u?n(t.oAuthCurrentUser(e.formio,u.accessToken)):location.hash?i.token.parseFromUrl().then(function(r){i.tokenManager.add("accessToken",r),n(t.oAuthCurrentUser(e.formio,r.accessToken))}).catch(function(t){console.warn(t),r(t)}):(i.token.getWithRedirect({responseType:"token",scopes:e.scopes}),n(!1))})}},{key:"ssoInit",value:function(e,n){switch(e){case"okta":return t.oktaInit(n);default:return console.warn("Unknown SSO type"),r.default.reject("Unknown SSO type")}}},{key:"requireLibrary",value:function(e,n,o,i){if(!t.libraries.hasOwnProperty(e)){t.libraries[e]={},t.libraries[e].ready=new r.default(function(n,r){t.libraries[e].resolve=n,t.libraries[e].reject=r});var u="".concat(e,"Callback");i||window[u]||(window[u]=function(){return t.libraries[e].resolve()});var c=(0,s.default)(window,n);if(c)t.libraries[e].resolve(c);else if((o=Array.isArray(o)?o:[o]).forEach(function(t){var e={},n="";switch("string"==typeof t&&(t={type:"script",src:t}),t.type){case"script":n="script",e={src:t.src,type:"text/javascript",defer:!0,async:!0};break;case"styles":n="link",e={href:t.src,rel:"stylesheet"}}var r=document.createElement(n);for(var o in e)r.setAttribute(o,e[o]);document.getElementsByTagName("head")[0].appendChild(r)}),i)var a=setInterval(function(){var r=(0,s.default)(window,n);r&&(clearInterval(a),t.libraries[e].resolve(r))},200)}return t.libraries[e].ready}},{key:"libraryReady",value:function(e){return t.libraries.hasOwnProperty(e)&&t.libraries[e].ready?t.libraries[e].ready:r.default.reject("".concat(e," library was not required."))}},{key:"token",get:function(){return t.tokens||(t.tokens={}),t.tokens.formioToken?t.tokens.formioToken:""},set:function(e){return t.tokens||(t.tokens={}),t.tokens.formioToken=e||""}}],(n=[{key:"delete",value:function(e,n){var o="".concat(e,"Id"),i="".concat(e,"Url");return this[o]||r.default.reject("Nothing to delete"),t.cache={},this.makeRequest(e,this[i],"delete",null,n)}},{key:"index",value:function(e,n,r){var o="".concat(e,"Url");return(n=n||"")&&v(n)&&(n="?".concat(t.serialize(n.params))),this.makeRequest(e,this[o]+n,"get",null,r)}},{key:"save",value:function(e,n,r){var o="".concat(e,"Id"),i="".concat(e,"Url"),u=this[o]||n._id?"put":"post",c=this[o]?this[i]:this["".concat(e,"sUrl")];return this[o]||!n._id||"put"!==u||c.includes(n._id)||(c+="/".concat(n._id)),t.cache={},this.makeRequest(e,c+this.query,u,n,r)}},{key:"load",value:function(e,n,o){var i="".concat(e,"Id"),u="".concat(e,"Url");return n&&v(n)&&(n=t.serialize(n.params)),n=n?this.query?"".concat(this.query,"&").concat(n):"?".concat(n):this.query,this[i]?this.makeRequest(e,this[u]+n,"get",null,o):r.default.reject("Missing ".concat(i))}},{key:"makeRequest",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.makeRequest.apply(t,[this].concat(n))}},{key:"loadProject",value:function(t,e){return this.load("project",t,e)}},{key:"saveProject",value:function(t,e){return this.save("project",t,e)}},{key:"deleteProject",value:function(t){return this.delete("project",t)}},{key:"loadForm",value:function(e,n){var r=this;return this.load("form",e,n).then(function(o){return!o.revisions||isNaN(parseInt(r.vId))?o:"current"===o.revisions&&r.submissionId?o:(e&&v(e)&&(e=t.serialize(e.params)),e=e?r.query?"".concat(r.query,"&").concat(e):"?".concat(e):r.query,r.makeRequest("form",r.vUrl+e,"get",null,n).then(function(t){return o.components=t.components,Object.assign({},o)}).catch(function(){return Object.assign({},o)}))})}},{key:"saveForm",value:function(t,e){return this.save("form",t,e)}},{key:"deleteForm",value:function(t){return this.delete("form",t)}},{key:"loadForms",value:function(t,e){return this.index("forms",t,e)}},{key:"loadSubmission",value:function(t,e){var n=this;return this.load("submission",t,e).then(function(t){return n.vId=t._fvid,n.vUrl="".concat(n.formUrl,"/v/").concat(n.vId),t})}},{key:"saveSubmission",value:function(t,e){return isNaN(parseInt(this.vId))||(t._fvid=this.vId),this.save("submission",t,e)}},{key:"deleteSubmission",value:function(t){return this.delete("submission",t)}},{key:"loadSubmissions",value:function(t,e){return this.index("submissions",t,e)}},{key:"loadAction",value:function(t,e){return this.load("action",t,e)}},{key:"saveAction",value:function(t,e){return this.save("action",t,e)}},{key:"deleteAction",value:function(t){return this.delete("action",t)}},{key:"loadActions",value:function(t,e){return this.index("actions",t,e)}},{key:"availableActions",value:function(){return this.makeRequest("availableActions","".concat(this.formUrl,"/actions"))}},{key:"actionInfo",value:function(t){return this.makeRequest("actionInfo","".concat(this.formUrl,"/actions/").concat(t))}},{key:"isObjectId",value:function(t){return new RegExp("^[0-9a-fA-F]{24}$").test(t)}},{key:"getProjectId",value:function(){return this.projectId?this.isObjectId(this.projectId)?r.default.resolve(this.projectId):this.loadProject().then(function(t){return t._id}):r.default.resolve("")}},{key:"getFormId",value:function(){return this.formId?this.isObjectId(this.formId)?r.default.resolve(this.formId):this.loadForm().then(function(t){return t._id}):r.default.resolve("")}},{key:"currentUser",value:function(e){return t.currentUser(this,e)}},{key:"accessInfo",value:function(){return t.accessInfo(this)}},{key:"getToken",value:function(e){return t.getToken(Object.assign({formio:this},this.options,e))}},{key:"setToken",value:function(e,n){return t.setToken(e,Object.assign({formio:this},this.options,n))}},{key:"getTempToken",value:function(e,n,o){return t.getToken(o)?this.makeRequest("tempToken","".concat(this.projectUrl,"/token"),"GET",null,{ignoreCache:!0,header:new Headers({"x-expire":e,"x-allow":n})}):r.default.reject("You must be authenticated to generate a temporary auth token.")}},{key:"getDownloadUrl",value:function(t){var e=this;if(!this.submissionId)return r.default.resolve("");if(!t)return this.loadForm().then(function(t){return t?e.getDownloadUrl(t):""});var n="/project/".concat(t.project);n+="/form/".concat(t._id),n+="/submission/".concat(this.submissionId),n+="/download";var o=this.base+n;return new r.default(function(t,r){e.getTempToken(3600,"GET:".concat(n)).then(function(e){o+="?token=".concat(e.key),t(o)},function(){t(o)}).catch(r)})}},{key:"uploadFile",value:function(e,n,r,o,i,u,c){var s=this,a={provider:e,method:"upload",file:n,fileName:r,dir:o},f=t.pluginWait("preRequest",a).then(function(){return t.pluginGet("fileRequest",a).then(function(a){if(e&&h(a)){if(t.providers.storage.hasOwnProperty(e))return new t.providers.storage[e](s).uploadFile(n,r,o,i,u,c);throw"Storage provider not found"}return a||{url:""}})});return t.pluginAlter("wrapFileRequestPromise",f,a)}},{key:"downloadFile",value:function(e){var n=this,r={method:"download",file:e},o=t.pluginWait("preRequest",r).then(function(){return t.pluginGet("fileRequest",r).then(function(r){if(e.storage&&h(r)){if(t.providers.storage.hasOwnProperty(e.storage))return new t.providers.storage[e.storage](n).downloadFile(e);throw"Storage provider not found"}return r||{url:""}})});return t.pluginAlter("wrapFileRequestPromise",o,r)}},{key:"canSubmit",value:function(){return r.default.all([this.loadForm(),this.currentUser(),this.accessInfo()]).then(function(e){var n=e.shift(),r=e.shift(),o=e.shift(),i={},u={};for(var c in o.roles)if(o.roles.hasOwnProperty(c)){var s=o.roles[c];s.default&&(i=s),s.admin&&(u=s)}var a=!1,f=!1;if(r&&r.roles.includes(u._id))return!0;for(var l in n.submissionAccess)if(n.submissionAccess.hasOwnProperty(l)){var p=n.submissionAccess[l];if("create_all"===p.type||"create_own"===p.type){for(var h in p.roles)if(p.roles.hasOwnProperty(h)&&(i._id===p.roles[h]&&(f=!0),r&&r.roles.includes(p.roles[h]))){a=!0;break}if(a)break}}return!a&&f&&(a=!0,t.setUser(null)),a})}},{key:"getUrlParts",value:function(e){return t.getUrlParts(e,this)}}])&&l(e.prototype,n),o&&l(e,o),t}();e.default=d,d.libraries={},d.Promise=r.default,d.Headers=Headers,d.baseUrl="https://api.form.io",d.projectUrl=d.baseUrl,d.projectUrlSet=!1,d.plugins=[],d.cache={},d.providers=c,d.events=new o.EventEmitter2({wildcard:!1,maxListeners:0}),"object"!==(void 0===t?"undefined":p(t))||t.Formio||(t.Formio=d)}).call(this,n(17))},function(t,e,n){n(60)("asyncIterator")},function(t,e,n){"use strict";var r=n(0),o=n(7),i=n(3),u=n(12),c=n(9),s=n(97).KEY,a=n(5),f=n(37),l=n(38),p=n(18),h=n(1),v=n(61),d=n(60),y=n(98),m=n(101),b=n(11),g=n(6),_=n(13),w=n(23),j=n(26),k=n(43),O=n(104),x=n(44),A=n(2),S=n(19),U=x.f,T=A.f,E=O.f,P=r.Symbol,I=r.JSON,R=I&&I.stringify,F=h("_hidden"),M=h("toPrimitive"),q={}.propertyIsEnumerable,N=f("symbol-registry"),L=f("symbols"),B=f("op-symbols"),z=Object.prototype,C="function"==typeof P,G=r.QObject,H=!G||!G.prototype||!G.prototype.findChild,$=i&&a(function(){return 7!=k(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=U(z,e);r&&delete z[e],T(t,e,n),r&&t!==z&&T(z,e,r)}:T,D=function(t){var e=L[t]=k(P.prototype);return e._k=t,e},W=C&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},J=function(t,e,n){return t===z&&J(B,e,n),b(t),e=w(e,!0),b(n),o(L,e)?(n.enumerable?(o(t,F)&&t[F][e]&&(t[F][e]=!1),n=k(n,{enumerable:j(0,!1)})):(o(t,F)||T(t,F,j(1,{})),t[F][e]=!0),$(t,e,n)):T(t,e,n)},V=function(t,e){b(t);for(var n,r=y(e=_(e)),o=0,i=r.length;i>o;)J(t,n=r[o++],e[n]);return t},X=function(t){var e=q.call(this,t=w(t,!0));return!(this===z&&o(L,t)&&!o(B,t))&&(!(e||!o(this,t)||!o(L,t)||o(this,F)&&this[F][t])||e)},K=function(t,e){if(t=_(t),e=w(e,!0),t!==z||!o(L,e)||o(B,e)){var n=U(t,e);return!n||!o(L,e)||o(t,F)&&t[F][e]||(n.enumerable=!0),n}},Y=function(t){for(var e,n=E(_(t)),r=[],i=0;n.length>i;)o(L,e=n[i++])||e==F||e==s||r.push(e);return r},Q=function(t){for(var e,n=t===z,r=E(n?B:_(t)),i=[],u=0;r.length>u;)!o(L,e=r[u++])||n&&!o(z,e)||i.push(L[e]);return i};C||(c((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call(B,n),o(this,F)&&o(this[F],t)&&(this[F][t]=!1),$(this,t,j(1,n))};return i&&H&&$(z,t,{configurable:!0,set:e}),D(t)}).prototype,"toString",function(){return this._k}),x.f=K,A.f=J,n(29).f=O.f=Y,n(28).f=X,n(42).f=Q,i&&!n(25)&&c(z,"propertyIsEnumerable",X,!0),v.f=function(t){return D(h(t))}),u(u.G+u.W+u.F*!C,{Symbol:P});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)h(Z[tt++]);for(var et=S(h.store),nt=0;et.length>nt;)d(et[nt++]);u(u.S+u.F*!C,"Symbol",{for:function(t){return o(N,t+="")?N[t]:N[t]=P(t)},keyFor:function(t){if(!W(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){H=!0},useSimple:function(){H=!1}}),u(u.S+u.F*!C,"Object",{create:function(t,e){return void 0===e?k(t):V(k(t),e)},defineProperty:J,defineProperties:V,getOwnPropertyDescriptor:K,getOwnPropertyNames:Y,getOwnPropertySymbols:Q}),I&&u(u.S+u.F*(!C||a(function(){var t=P();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(g(e)||void 0!==t)&&!W(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!W(e))return e}),r[1]=e,R.apply(I,r)}}),P.prototype[M]||n(8)(P.prototype,M,P.prototype.valueOf),l(P,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(18)("meta"),o=n(6),i=n(7),u=n(2).f,c=0,s=Object.isExtensible||function(){return!0},a=!n(5)(function(){return s(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!s(t))return"F";if(!e)return"E";f(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!s(t))return!0;if(!e)return!1;f(t)}return t[r].w},onFreeze:function(t){return a&&l.NEED&&s(t)&&!i(t,r)&&f(t),t}}},function(t,e,n){var r=n(19),o=n(42),i=n(28);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,c=n(t),s=i.f,a=0;c.length>a;)s.call(t,u=c[a++])&&e.push(u);return e}},function(t,e,n){var r=n(39),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(39),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(27);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(2),o=n(11),i=n(19);t.exports=n(3)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),c=u.length,s=0;c>s;)r.f(t,n=u[s++],e[n]);return t}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(13),o=n(29).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(0),o=n(7),i=n(27),u=n(66),c=n(23),s=n(5),a=n(29).f,f=n(44).f,l=n(2).f,p=n(107).trim,h=r.Number,v=h,d=h.prototype,y="Number"==i(n(43)(d)),m="trim"in String.prototype,b=function(t){var e=c(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,i=(e=m?e.trim():p(e,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var u,s=e.slice(2),a=0,f=s.length;a<f;a++)if((u=s.charCodeAt(a))<48||u>o)return NaN;return parseInt(s,r)}}return+e};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof h&&(y?s(function(){d.valueOf.call(n)}):"Number"!=i(n))?u(new v(b(e)),n,h):b(e)};for(var g,_=n(3)?a(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)o(v,g=_[w])&&!o(h,g)&&l(h,g,f(v,g));h.prototype=d,d.constructor=h,n(9)(r,"Number",h)}},function(t,e,n){var r=n(6),o=n(11),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(62)(Function.call,n(44).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){var r=n(12),o=n(14),i=n(5),u=n(108),c="["+u+"]",s=RegExp("^"+c+c+"*"),a=RegExp(c+c+"*$"),f=function(t,e,n){var o={},c=i(function(){return!!u[t]()||"​"!="​"[t]()}),s=o[t]=c?e(l):u[t];n&&(o[n]=s),r(r.P+r.F*c,"String",o)},l=f.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(s,"")),2&e&&(t=t.replace(a,"")),t};t.exports=f},function(t,e){t.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},function(t,e,n){for(var r=n(67),o=n(19),i=n(9),u=n(0),c=n(8),s=n(45),a=n(1),f=a("iterator"),l=a("toStringTag"),p=s.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=o(h),d=0;d<v.length;d++){var y,m=v[d],b=h[m],g=u[m],_=g&&g.prototype;if(_&&(_[f]||c(_,f,p),_[l]||c(_,l,m),s[m]=p,b))for(y in r)_[y]||i(_,y,r[y],!0)}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(43),o=n(26),i=n(38),u={};n(8)(u,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(7),o=n(70),i=n(40)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){"use strict";var r=n(114)(!0);n(69)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(39),o=n(14);t.exports=function(t){return function(e,n){var i,u,c=String(o(e)),s=r(n),a=c.length;return s<0||s>=a?t?"":void 0:(i=c.charCodeAt(s))<55296||i>56319||s+1===a||(u=c.charCodeAt(s+1))<56320||u>57343?t?c.charAt(s):i:t?c.slice(s,s+2):u-56320+(i-55296<<10)+65536}}},function(t,e,n){var r=n(12);r(r.S+r.F,"Object",{assign:n(116)})},function(t,e,n){"use strict";var r=n(19),o=n(42),i=n(28),u=n(70),c=n(64),s=Object.assign;t.exports=!s||n(5)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r})?function(t,e){for(var n=u(t),s=arguments.length,a=1,f=o.f,l=i.f;s>a;)for(var p,h=c(arguments[a++]),v=f?r(h).concat(f(h)):r(h),d=v.length,y=0;d>y;)l.call(h,p=v[y++])&&(n[p]=h[p]);return n}:s},function(t,e,n){"use strict";var r=n(12),o=n(65)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(68)("includes")},function(t,e,n){"use strict";var r=n(12),o=n(119);r(r.P+r.F*n(120)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(46),o=n(14);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(1)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){n(30)("replace",2,function(t,e,n){return[function(r,o){"use strict";var i=t(this),u=null==r?void 0:r[e];return void 0!==u?u.call(r,i,o):n.call(String(i),r,o)},n]})},function(t,e,n){var r=n(0),o=n(66),i=n(2).f,u=n(29).f,c=n(46),s=n(123),a=r.RegExp,f=a,l=a.prototype,p=/a/g,h=/a/g,v=new a(p)!==p;if(n(3)&&(!v||n(5)(function(){return h[n(1)("match")]=!1,a(p)!=p||a(h)==h||"/a/i"!=a(p,"i")}))){a=function(t,e){var n=this instanceof a,r=c(t),i=void 0===e;return!n&&r&&t.constructor===a&&i?t:o(v?new f(r&&!i?t.source:t,e):f((r=t instanceof a)?t.source:t,r&&i?s.call(t):e),n?this:l,a)};for(var d=function(t){t in a||i(a,t,{configurable:!0,get:function(){return f[t]},set:function(e){f[t]=e}})},y=u(f),m=0;y.length>m;)d(y[m++]);l.constructor=a,a.prototype=l,n(9)(r,"RegExp",a)}n(124)("RegExp")},function(t,e,n){"use strict";var r=n(11);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(0),o=n(2),i=n(3),u=n(1)("species");t.exports=function(t){var e=r[t];i&&e&&!e[u]&&o.f(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,n){n(30)("split",2,function(t,e,r){"use strict";var o=n(46),i=r,u=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length){var c=void 0===/()??/.exec("")[1];r=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!o(t))return i.call(n,t,e);var r,s,a,f,l,p=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,d=void 0===e?4294967295:e>>>0,y=new RegExp(t.source,h+"g");for(c||(r=new RegExp("^"+y.source+"$(?!\\s)",h));(s=y.exec(n))&&!((a=s.index+s[0].length)>v&&(p.push(n.slice(v,s.index)),!c&&s.length>1&&s[0].replace(r,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)}),s.length>1&&s.index<n.length&&u.apply(p,s.slice(1)),f=s[0].length,v=a,p.length>=d));)y.lastIndex===s.index&&y.lastIndex++;return v===n.length?!f&&y.test("")||p.push(""):p.push(n.slice(v)),p.length>d?p.slice(0,d):p}}else"0".split(void 0,0).length&&(r=function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)});return[function(n,o){var i=t(this),u=null==n?void 0:n[e];return void 0!==u?u.call(n,i,o):r.call(String(i),n,o)},r]})},function(t,e,n){n(30)("search",1,function(t,e,n){return[function(n){"use strict";var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(30)("match",1,function(t,e,n){return[function(n){"use strict";var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(129),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(17))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,o,i,u,c,s=1,a={},f=!1,l=t.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(t);p=p&&p.setTimeout?p:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick(function(){v(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){v(t.data)},r=function(t){i.port2.postMessage(t)}):l&&"onreadystatechange"in l.createElement("script")?(o=l.documentElement,r=function(t){var e=l.createElement("script");e.onreadystatechange=function(){v(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):r=function(t){setTimeout(v,0,t)}:(u="setImmediate$"+Math.random()+"$",c=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(u)&&v(+e.data.slice(u.length))},t.addEventListener?t.addEventListener("message",c,!1):t.attachEvent("onmessage",c),r=function(e){t.postMessage(u+e,"*")}),p.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var o={callback:t,args:e};return a[s]=o,r(s),s++},p.clearImmediate=h}function h(t){delete a[t]}function v(t){if(f)setTimeout(v,0,t);else{var e=a[t];if(e){f=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}(e)}finally{h(t),f=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(17),n(71))},function(t,e){!function(t){"use strict";if(!t.fetch){var e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(e.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=function(t){return t&&DataView.prototype.isPrototypeOf(t)},o=ArrayBuffer.isView||function(t){return t&&n.indexOf(Object.prototype.toString.call(t))>-1};f.prototype.append=function(t,e){t=c(t),e=s(e);var n=this.map[t];this.map[t]=n?n+","+e:e},f.prototype.delete=function(t){delete this.map[c(t)]},f.prototype.get=function(t){return t=c(t),this.has(t)?this.map[t]:null},f.prototype.has=function(t){return this.map.hasOwnProperty(c(t))},f.prototype.set=function(t,e){this.map[c(t)]=s(e)},f.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},f.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),a(t)},f.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),a(t)},f.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),a(t)},e.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);var i=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},d.call(y.prototype),d.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var u=[301,302,303,307,308];b.redirect=function(t,e){if(-1===u.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},t.Headers=f,t.Request=y,t.Response=b,t.fetch=function(t,n){return new Promise(function(r,o){var i=new y(t,n),u=new XMLHttpRequest;u.onload=function(){var t,e,n={status:u.status,statusText:u.statusText,headers:(t=u.getAllResponseHeaders()||"",e=new f,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}}),e)};n.url="responseURL"in u?u.responseURL:n.headers.get("X-Request-URL");var o="response"in u?u.response:u.responseText;r(new b(o,n))},u.onerror=function(){o(new TypeError("Network request failed"))},u.ontimeout=function(){o(new TypeError("Network request failed"))},u.open(i.method,i.url,!0),"include"===i.credentials?u.withCredentials=!0:"omit"===i.credentials&&(u.withCredentials=!1),"responseType"in u&&e.blob&&(u.responseType="blob"),i.headers.forEach(function(t,e){u.setRequestHeader(e,t)}),u.send(void 0===i._bodyInit?null:i._bodyInit)})},t.fetch.polyfill=!0}function c(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function s(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e.iterable&&(n[Symbol.iterator]=function(){return n}),n}function f(t){this.map={},t instanceof f?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function p(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function h(t){var e=new FileReader,n=p(e);return e.readAsArrayBuffer(t),n}function v(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t)if("string"==typeof t)this._bodyText=t;else if(e.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(e.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(e.arrayBuffer&&e.blob&&r(t))this._bodyArrayBuffer=v(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!e.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t)&&!o(t))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=v(t)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t,e,n,r=l(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=p(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}function y(t,e){var n,r,o=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new f(t.headers)),this.method=t.method,this.mode=t.mode,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new f(e.headers)),this.method=(n=e.method||this.method||"GET",r=n.toUpperCase(),i.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function m(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}}),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new f(e.headers),this.url=e.url||"",this._initBody(t)}}("undefined"!=typeof self?self:this)},function(t,e,n){(function(r){var o;
/*!
 * EventEmitter2
 * https://github.com/hij1nx/EventEmitter2
 *
 * Copyright (c) 2013 hij1nx
 * Licensed under the MIT license.
 */!function(i){var u=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},c=10;function s(){this._events={},this._conf&&a.call(this,this._conf)}function a(t){t?(this._conf=t,t.delimiter&&(this.delimiter=t.delimiter),this._maxListeners=t.maxListeners!==i?t.maxListeners:c,t.wildcard&&(this.wildcard=t.wildcard),t.newListener&&(this._newListener=t.newListener),t.removeListener&&(this._removeListener=t.removeListener),t.verboseMemoryLeak&&(this.verboseMemoryLeak=t.verboseMemoryLeak),this.wildcard&&(this.listenerTree={})):this._maxListeners=c}function f(t,e){var n="(node) warning: possible EventEmitter memory leak detected. "+t+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(n+=" Event name: "+e+"."),void 0!==r&&r.emitWarning){var o=new Error(n);o.name="MaxListenersExceededWarning",o.emitter=this,o.count=t,r.emitWarning(o)}else console.error(n),console.trace&&console.trace()}function l(t){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,a.call(this,t)}function p(t,e,n,r){if(!n)return[];var o,i,u,c,s,a,f,l=[],h=e.length,v=e[r],d=e[r+1];if(r===h&&n._listeners){if("function"==typeof n._listeners)return t&&t.push(n._listeners),[n];for(o=0,i=n._listeners.length;o<i;o++)t&&t.push(n._listeners[o]);return[n]}if("*"===v||"**"===v||n[v]){if("*"===v){for(u in n)"_listeners"!==u&&n.hasOwnProperty(u)&&(l=l.concat(p(t,e,n[u],r+1)));return l}if("**"===v){for(u in(f=r+1===h||r+2===h&&"*"===d)&&n._listeners&&(l=l.concat(p(t,e,n,h))),n)"_listeners"!==u&&n.hasOwnProperty(u)&&("*"===u||"**"===u?(n[u]._listeners&&!f&&(l=l.concat(p(t,e,n[u],h))),l=l.concat(p(t,e,n[u],r))):l=u===d?l.concat(p(t,e,n[u],r+2)):l.concat(p(t,e,n[u],r)));return l}l=l.concat(p(t,e,n[v],r+1))}if((c=n["*"])&&p(t,e,c,r+1),s=n["**"])if(r<h)for(u in s._listeners&&p(t,e,s,h),s)"_listeners"!==u&&s.hasOwnProperty(u)&&(u===d?p(t,e,s[u],r+2):u===v?p(t,e,s[u],r+1):((a={})[u]=s[u],p(t,e,{"**":a},r+1)));else s._listeners?p(t,e,s,h):s["*"]&&s["*"]._listeners&&p(t,e,s["*"],h);return l}l.EventEmitter2=l,l.prototype.delimiter=".",l.prototype.setMaxListeners=function(t){t!==i&&(this._maxListeners=t,this._conf||(this._conf={}),this._conf.maxListeners=t)},l.prototype.event="",l.prototype.once=function(t,e){return this._once(t,e,!1)},l.prototype.prependOnceListener=function(t,e){return this._once(t,e,!0)},l.prototype._once=function(t,e,n){return this._many(t,1,e,n),this},l.prototype.many=function(t,e,n){return this._many(t,e,n,!1)},l.prototype.prependMany=function(t,e,n){return this._many(t,e,n,!0)},l.prototype._many=function(t,e,n,r){var o=this;if("function"!=typeof n)throw new Error("many only accepts instances of Function");function i(){return 0==--e&&o.off(t,i),n.apply(this,arguments)}return i._origin=n,this._on(t,i,r),o},l.prototype.emit=function(){this._events||s.call(this);var t=arguments[0];if("newListener"===t&&!this._newListener&&!this._events.newListener)return!1;var e,n,r,o,i,u=arguments.length;if(this._all&&this._all.length){if(i=this._all.slice(),u>3)for(e=new Array(u),o=0;o<u;o++)e[o]=arguments[o];for(r=0,n=i.length;r<n;r++)switch(this.event=t,u){case 1:i[r].call(this,t);break;case 2:i[r].call(this,t,arguments[1]);break;case 3:i[r].call(this,t,arguments[1],arguments[2]);break;default:i[r].apply(this,e)}}if(this.wildcard){i=[];var c="string"==typeof t?t.split(this.delimiter):t.slice();p.call(this,i,c,this.listenerTree,0)}else{if("function"==typeof(i=this._events[t])){switch(this.event=t,u){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:for(e=new Array(u-1),o=1;o<u;o++)e[o-1]=arguments[o];i.apply(this,e)}return!0}i&&(i=i.slice())}if(i&&i.length){if(u>3)for(e=new Array(u-1),o=1;o<u;o++)e[o-1]=arguments[o];for(r=0,n=i.length;r<n;r++)switch(this.event=t,u){case 1:i[r].call(this);break;case 2:i[r].call(this,arguments[1]);break;case 3:i[r].call(this,arguments[1],arguments[2]);break;default:i[r].apply(this,e)}return!0}if(!this._all&&"error"===t)throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},l.prototype.emitAsync=function(){this._events||s.call(this);var t=arguments[0];if("newListener"===t&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);var e,n,r,o,i,u=[],c=arguments.length;if(this._all){if(c>3)for(e=new Array(c),o=1;o<c;o++)e[o]=arguments[o];for(r=0,n=this._all.length;r<n;r++)switch(this.event=t,c){case 1:u.push(this._all[r].call(this,t));break;case 2:u.push(this._all[r].call(this,t,arguments[1]));break;case 3:u.push(this._all[r].call(this,t,arguments[1],arguments[2]));break;default:u.push(this._all[r].apply(this,e))}}if(this.wildcard){i=[];var a="string"==typeof t?t.split(this.delimiter):t.slice();p.call(this,i,a,this.listenerTree,0)}else i=this._events[t];if("function"==typeof i)switch(this.event=t,c){case 1:u.push(i.call(this));break;case 2:u.push(i.call(this,arguments[1]));break;case 3:u.push(i.call(this,arguments[1],arguments[2]));break;default:for(e=new Array(c-1),o=1;o<c;o++)e[o-1]=arguments[o];u.push(i.apply(this,e))}else if(i&&i.length){if(i=i.slice(),c>3)for(e=new Array(c-1),o=1;o<c;o++)e[o-1]=arguments[o];for(r=0,n=i.length;r<n;r++)switch(this.event=t,c){case 1:u.push(i[r].call(this));break;case 2:u.push(i[r].call(this,arguments[1]));break;case 3:u.push(i[r].call(this,arguments[1],arguments[2]));break;default:u.push(i[r].apply(this,e))}}else if(!this._all&&"error"===t)return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(u)},l.prototype.on=function(t,e){return this._on(t,e,!1)},l.prototype.prependListener=function(t,e){return this._on(t,e,!0)},l.prototype.onAny=function(t){return this._onAny(t,!1)},l.prototype.prependAny=function(t){return this._onAny(t,!0)},l.prototype.addListener=l.prototype.on,l.prototype._onAny=function(t,e){if("function"!=typeof t)throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),e?this._all.unshift(t):this._all.push(t),this},l.prototype._on=function(t,e,n){if("function"==typeof t)return this._onAny(t,e),this;if("function"!=typeof e)throw new Error("on only accepts instances of Function");return this._events||s.call(this),this._newListener&&this.emit("newListener",t,e),this.wildcard?(function(t,e){for(var n=0,r=(t="string"==typeof t?t.split(this.delimiter):t.slice()).length;n+1<r;n++)if("**"===t[n]&&"**"===t[n+1])return;for(var o=this.listenerTree,u=t.shift();u!==i;){if(o[u]||(o[u]={}),o=o[u],0===t.length)return o._listeners?("function"==typeof o._listeners&&(o._listeners=[o._listeners]),o._listeners.push(e),!o._listeners.warned&&this._maxListeners>0&&o._listeners.length>this._maxListeners&&(o._listeners.warned=!0,f.call(this,o._listeners.length,u))):o._listeners=e,!0;u=t.shift()}return!0}.call(this,t,e),this):(this._events[t]?("function"==typeof this._events[t]&&(this._events[t]=[this._events[t]]),n?this._events[t].unshift(e):this._events[t].push(e),!this._events[t].warned&&this._maxListeners>0&&this._events[t].length>this._maxListeners&&(this._events[t].warned=!0,f.call(this,this._events[t].length,t))):this._events[t]=e,this)},l.prototype.off=function(t,e){if("function"!=typeof e)throw new Error("removeListener only takes instances of Function");var n,r=[];if(this.wildcard){var o="string"==typeof t?t.split(this.delimiter):t.slice();r=p.call(this,null,o,this.listenerTree,0)}else{if(!this._events[t])return this;n=this._events[t],r.push({_listeners:n})}for(var c=0;c<r.length;c++){var s=r[c];if(n=s._listeners,u(n)){for(var a=-1,f=0,l=n.length;f<l;f++)if(n[f]===e||n[f].listener&&n[f].listener===e||n[f]._origin&&n[f]._origin===e){a=f;break}if(a<0)continue;return this.wildcard?s._listeners.splice(a,1):this._events[t].splice(a,1),0===n.length&&(this.wildcard?delete s._listeners:delete this._events[t]),this._removeListener&&this.emit("removeListener",t,e),this}(n===e||n.listener&&n.listener===e||n._origin&&n._origin===e)&&(this.wildcard?delete s._listeners:delete this._events[t],this._removeListener&&this.emit("removeListener",t,e))}return function t(e){if(e!==i){var n=Object.keys(e);for(var r in n){var o=n[r],u=e[o];u instanceof Function||"object"!=typeof u||null===u||(Object.keys(u).length>0&&t(e[o]),0===Object.keys(u).length&&delete e[o])}}}(this.listenerTree),this},l.prototype.offAny=function(t){var e,n=0,r=0;if(t&&this._all&&this._all.length>0){for(n=0,r=(e=this._all).length;n<r;n++)if(t===e[n])return e.splice(n,1),this._removeListener&&this.emit("removeListenerAny",t),this}else{if(e=this._all,this._removeListener)for(n=0,r=e.length;n<r;n++)this.emit("removeListenerAny",e[n]);this._all=[]}return this},l.prototype.removeListener=l.prototype.off,l.prototype.removeAllListeners=function(t){if(t===i)return!this._events||s.call(this),this;if(this.wildcard)for(var e="string"==typeof t?t.split(this.delimiter):t.slice(),n=p.call(this,null,e,this.listenerTree,0),r=0;r<n.length;r++){n[r]._listeners=null}else this._events&&(this._events[t]=null);return this},l.prototype.listeners=function(t){if(this.wildcard){var e=[],n="string"==typeof t?t.split(this.delimiter):t.slice();return p.call(this,e,n,this.listenerTree,0),e}return this._events||s.call(this),this._events[t]||(this._events[t]=[]),u(this._events[t])||(this._events[t]=[this._events[t]]),this._events[t]},l.prototype.eventNames=function(){return Object.keys(this._events)},l.prototype.listenerCount=function(t){return this.listeners(t).length},l.prototype.listenersAny=function(){return this._all?this._all:[]},(o=function(){return l}.call(e,n,e,t))===i||(t.exports=o)}()}).call(this,n(71))},function(t,e){e.defaults={},e.set=function(t,n,r){var o=r||{},i=e.defaults,u=o.expires||i.expires,c=o.domain||i.domain,s=void 0!==o.path?o.path:void 0!==i.path?i.path:"/",a=void 0!==o.secure?o.secure:i.secure,f=void 0!==o.httponly?o.httponly:i.httponly,l=void 0!==o.samesite?o.samesite:i.samesite,p=u?new Date("number"==typeof u?(new Date).getTime()+864e5*u:u):0;document.cookie=t.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+n.replace(/[^+#$&\/:<-\[\]-}]/g,encodeURIComponent)+(p&&p.getTime()>=0?";expires="+p.toUTCString():"")+(c?";domain="+c:"")+(s?";path="+s:"")+(a?";secure":"")+(f?";httponly":"")+(l?";samesite="+l:"")},e.get=function(t){for(var e=document.cookie.split(";");e.length;){var n=e.pop(),r=n.indexOf("=");if(r=r<0?n.length:r,decodeURIComponent(n.slice(0,r).replace(/^\s+/,""))===t)return decodeURIComponent(n.slice(r+1))}return null},e.erase=function(t,n){e.set(t,"",{expires:-1,domain:n&&n.domain,path:n&&n.path,secure:0,httponly:0})},e.all=function(){for(var t={},e=document.cookie.split(";");e.length;){var n=e.pop(),r=n.indexOf("=");r=r<0?n.length:r,t[decodeURIComponent(n.slice(0,r).replace(/^\s+/,""))]=decodeURIComponent(n.slice(r+1))}return t}},function(t,e){t.exports=function(t){if(!t||"object"!=typeof t)return t;var e;if(r(t)){var o=t.length;e=Array(o);for(var i=0;i<o;i++)e[i]=t[i]}else{var u=n(t);e={};i=0;for(var c=u.length;i<c;i++){var s=u[i];e[s]=t[s]}}return e};var n=Object.keys||function(t){var e=[];for(var n in t)({}).hasOwnProperty.call(t,n)&&e.push(n);return e},r=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"storage",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(135))&&r.__esModule?r:{default:r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=c(n(136)),o=c(n(137)),i=c(n(138)),u=c(n(154));function c(t){return t&&t.__esModule?t:{default:t}}var s={base64:r.default,dropbox:o.default,s3:i.default,url:u.default};e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(20))&&r.__esModule?r:{default:r};var i=function(){return{title:"Base64",name:"base64",uploadFile:function(t,e){var n=this,r=new FileReader;return new o.default(function(o,i){r.onload=function(n){var r=n.target.result;o({storage:"base64",name:e,url:r,size:t.size,type:t.type})},r.onerror=function(){return i(n)},r.readAsDataURL(t)})},downloadFile:function(t){return o.default.resolve(t)}}};i.title="Base64";var u=i;e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(20))&&r.__esModule?r:{default:r};var i=function(t){return{uploadFile:function(e,n,r,i){return new o.default(function(o,u){var c=new XMLHttpRequest;"function"==typeof i&&(c.upload.onprogress=i);var s=new FormData;s.append("name",n),s.append("dir",r),s.append("file",e),c.onerror=function(t){t.networkError=!0,u(t)},c.onload=function(){if(c.status>=200&&c.status<300){var t=JSON.parse(c.response);t.storage="dropbox",t.size=e.size,t.type=e.type,t.url=t.path_lower,o(t)}else u(c.response||"Unable to upload file")},c.onabort=u,c.open("POST","".concat(t.formUrl,"/storage/dropbox"));var a=t.getToken();a&&c.setRequestHeader("x-jwt-token",a),c.send(s)})},downloadFile:function(e){var n=t.getToken();return e.url="".concat(t.formUrl,"/storage/dropbox?path_lower=").concat(e.path_lower).concat(n?"&x-jwt-token=".concat(n):""),o.default.resolve(e)}}};i.title="Dropbox";var u=i;e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n(20)),o=i(n(139));function i(t){return t&&t.__esModule?t:{default:t}}var u=function(t){return(0,o.default)(t,"/")},c=function(t){return t.filter(function(t){return!!t}).map(u).join("/")},s=function(t){return{uploadFile:function(e,n,o,i){return new r.default(function(r,u){var s=new XMLHttpRequest;s.onerror=function(t){t.networkError=!0,u(t)},s.onabort=u,s.onload=function(){if(s.status>=200&&s.status<300){var t=JSON.parse(s.response),a=new XMLHttpRequest;if("function"==typeof i&&(a.upload.onprogress=i),t.data.fileName=n,t.data.key=c([t.data.key,o,n]),a.onerror=function(t){t.networkError=!0,u(t)},a.onload=function(){a.status>=200&&a.status<300?r({storage:"s3",name:n,bucket:t.bucket,key:t.data.key,url:c([t.url,t.data.key]),acl:t.data.acl,size:e.size,type:e.type}):u(a.response||"Unable to upload file")},a.onabort=u,t.signed)a.open("PUT",t.signed),a.setRequestHeader("Content-Type",e.type),a.send(e);else{var f=new FormData;for(var l in t.data)f.append(l,t.data[l]);f.append("file",e),a.open("POST",t.url),a.send(f)}}else u(s.response||"Unable to sign file")},s.open("POST","".concat(t.formUrl,"/storage/s3")),s.setRequestHeader("Accept","application/json"),s.setRequestHeader("Content-Type","application/json; charset=UTF-8");var a=t.getToken();a&&s.setRequestHeader("x-jwt-token",a),s.send(JSON.stringify({name:c([o,n]),size:e.size,type:e.type}))})},downloadFile:function(e){return"public-read"!==e.acl?t.makeRequest("file","".concat(t.formUrl,"/storage/s3?bucket=").concat(u(e.bucket),"&key=").concat(u(e.key)),"GET"):r.default.resolve(e)}}};s.title="S3";var a=s;e.default=a},function(t,e,n){var r=n(72),o=n(143),i=n(145),u=n(149),c=n(150),s=n(75),a=/^\s+|\s+$/g;t.exports=function(t,e,n){if((t=s(t))&&(n||void 0===e))return t.replace(a,"");if(!t||!(e=r(e)))return t;var f=c(t),l=c(e),p=u(f,l),h=i(f,l)+1;return o(f,p,h).join("")}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},function(t,e,n){var r=n(31),o=Object.prototype,i=o.hasOwnProperty,u=o.toString,c=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(t){}var o=u.call(t);return r&&(e?t[c]=n:delete t[c]),o}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(144);t.exports=function(t,e,n){var o=t.length;return n=void 0===n?o:n,!e&&n>=o?t:r(t,e,n)}},function(t,e){t.exports=function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r<o;)i[r]=t[r+e];return i}},function(t,e,n){var r=n(74);t.exports=function(t,e){for(var n=t.length;n--&&r(e,t[n],0)>-1;);return n}},function(t,e){t.exports=function(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}},function(t,e,n){var r=n(74);t.exports=function(t,e){for(var n=-1,o=t.length;++n<o&&r(e,t[n],0)>-1;);return n}},function(t,e,n){var r=n(151),o=n(152),i=n(153);t.exports=function(t){return o(t)?i(t):r(t)}},function(t,e){t.exports=function(t){return t.split("")}},function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+r+"|"+o+")"+"?",a="[\\ufe0e\\ufe0f]?"+s+("(?:\\u200d(?:"+[i,u,c].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*"),f="(?:"+[i+r+"?",r,u,c,n].join("|")+")",l=RegExp(o+"(?="+o+")|"+f+a,"g");t.exports=function(t){return t.match(l)||[]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(57);var r,o=(r=n(20))&&r.__esModule?r:{default:r};var i=function(t){var e=function(e,n,r,i,u,c){return new o.default(function(o,s){var a=new XMLHttpRequest,f="string"==typeof i,l=new FormData;if("function"==typeof c&&(a.upload.onprogress=c),!f)for(var p in i)l.append(p,i[p]);a.onload=function(){if(a.status>=200&&a.status<300){var t={};try{t=(t="string"==typeof a.response?JSON.parse(a.response):{})&&t.data?t.data:t}catch(e){t={}}var r=t.hasOwnProperty("url")?t.url:"".concat(a.responseURL,"/").concat(n);r&&"/"===r[0]&&(r="".concat(e).concat(r)),o({url:r,data:t})}else s(a.response||"Unable to upload file")},a.onerror=function(){return s(a)},a.onabort=function(){return s(a)};var h=e+(e.indexOf("?")>-1?"&":"?");for(var v in r)h+="".concat(v,"=").concat(r[v],"&");"&"===h[h.length-1]&&(h=h.substr(0,h.length-1)),a.open("POST",h),f&&a.setRequestHeader("Content-Type","application/json");var d=t.getToken();if(d&&a.setRequestHeader("x-jwt-token",d),u){var y=JSON.parse(u);for(var m in y)a[m]=y[m]}a.send(f?i:l)})};return{title:"Url",name:"url",uploadFile:function(n,r,o,i,u,c){var s=function(s){return e(u,r,{baseUrl:encodeURIComponent(t.projectUrl),project:s?s.project:"",form:s?s._id:""},{file:n,name:r,dir:o},c,i).then(function(e){return e.data=e.data||{},e.data.baseUrl=t.projectUrl,e.data.project=s?s.project:"",e.data.form=s?s._id:"",{storage:"url",name:r,url:e.url,size:n.size,type:n.type,data:e.data}})};return n.private&&t.formId?t.loadForm().then(function(t){return s(t)}):s()},downloadFile:function(n){return n.private?(t.submissionId&&n.data&&(n.data.submission=t.submissionId),e(n.url,n.name,{},JSON.stringify(n)).then(function(t){return t.data})):o.default.resolve(n)}}};i.title="Url";var u=i;e.default=u},function(t,e,n){var r=n(156);t.exports=function(t,e,n){var o=null==t?void 0:r(t,e);return void 0===o?n:o}},function(t,e,n){var r=n(157),o=n(183);t.exports=function(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},function(t,e,n){var r=n(15),o=n(158),i=n(159),u=n(75);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(u(t))}},function(t,e,n){var r=n(15),o=n(47),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||u.test(t)||!i.test(t)||null!=e&&t in Object(e)}},function(t,e,n){var r=n(160),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,u=r(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)}),e});t.exports=u},function(t,e,n){var r=n(161),o=500;t.exports=function(t){var e=r(t,function(t){return n.size===o&&n.clear(),t}),n=e.cache;return e}},function(t,e,n){var r=n(76),o="Expected a function";function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(o);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return n.cache=i.set(o,u)||i,u};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},function(t,e,n){var r=n(163),o=n(33),i=n(48);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(t,e,n){var r=n(164),o=n(169),i=n(170),u=n(171),c=n(172);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=u,s.prototype.set=c,t.exports=s},function(t,e,n){var r=n(32);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e,n){var r=n(77),o=n(166),i=n(22),u=n(78),c=/^\[object .+?Constructor\]$/,s=Function.prototype,a=Object.prototype,f=s.toString,l=a.hasOwnProperty,p=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?p:c).test(u(t))}},function(t,e,n){var r,o=n(167),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},function(t,e,n){var r=n(4)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(32),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return n===o?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(32),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},function(t,e,n){var r=n(32),o="__lodash_hash_undefined__";t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?o:e,this}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(34),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():o.call(e,n,1),--this.size,0))}},function(t,e,n){var r=n(34);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(34);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(34);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){var r=n(35);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(35);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(35);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(35);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},function(t,e,n){var r=n(47),o=1/0;t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},function(t,e,n){var r=n(185),o=1,i=4;t.exports=function(t){return r(t,o|i)}},function(t,e,n){var r=n(186),o=n(192),i=n(80),u=n(194),c=n(204),s=n(207),a=n(208),f=n(209),l=n(211),p=n(212),h=n(213),v=n(55),d=n(218),y=n(219),m=n(225),b=n(15),g=n(83),_=n(227),w=n(22),j=n(229),k=n(49),O=1,x=2,A=4,S="[object Arguments]",U="[object Function]",T="[object GeneratorFunction]",E="[object Object]",P={};P[S]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[E]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[U]=P["[object WeakMap]"]=!1,t.exports=function t(e,n,I,R,F,M){var q,N=n&O,L=n&x,B=n&A;if(I&&(q=F?I(e,R,F,M):I(e)),void 0!==q)return q;if(!w(e))return e;var z=b(e);if(z){if(q=d(e),!N)return a(e,q)}else{var C=v(e),G=C==U||C==T;if(g(e))return s(e,N);if(C==E||C==S||G&&!F){if(q=L||G?{}:m(e),!N)return L?l(e,c(q,e)):f(e,u(q,e))}else{if(!P[C])return F?e:{};q=y(e,C,N)}}M||(M=new r);var H=M.get(e);if(H)return H;if(M.set(e,q),j(e))return e.forEach(function(r){q.add(t(r,n,I,r,e,M))}),q;if(_(e))return e.forEach(function(r,o){q.set(o,t(r,n,I,o,e,M))}),q;var $=B?L?h:p:L?keysIn:k,D=z?void 0:$(e);return o(D||e,function(r,o){D&&(r=e[o=r]),i(q,o,t(r,n,I,o,e,M))}),q}},function(t,e,n){var r=n(33),o=n(187),i=n(188),u=n(189),c=n(190),s=n(191);function a(t){var e=this.__data__=new r(t);this.size=e.size}a.prototype.clear=o,a.prototype.delete=i,a.prototype.get=u,a.prototype.has=c,a.prototype.set=s,t.exports=a},function(t,e,n){var r=n(33);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(33),o=n(48),i=n(76),u=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var c=n.__data__;if(!o||c.length<u-1)return c.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(c)}return n.set(t,e),this.size=n.size,this}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(10),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,n){var r=n(36),o=n(49);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(197),o=n(16),i=Object.prototype,u=i.hasOwnProperty,c=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(t){return o(t)&&u.call(t,"callee")&&!c.call(t,"callee")};t.exports=s},function(t,e,n){var r=n(21),o=n(16),i="[object Arguments]";t.exports=function(t){return o(t)&&r(t)==i}},function(t,e){t.exports=function(){return!1}},function(t,e){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var o=typeof t;return!!(e=null==e?n:e)&&("number"==o||"symbol"!=o&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){var r=n(201),o=n(51),i=n(52),u=i&&i.isTypedArray,c=u?o(u):r;t.exports=c},function(t,e,n){var r=n(21),o=n(84),i=n(16),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!u[r(t)]}},function(t,e,n){var r=n(53),o=n(203),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var r=n(85)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(36),o=n(87);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){var r=n(22),o=n(53),i=n(206),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=o(t),n=[];for(var c in t)("constructor"!=c||!e&&u.call(t,c))&&n.push(c);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){(function(t){var r=n(4),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,u=i&&i.exports===o?r.Buffer:void 0,c=u?u.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=c?c(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(50)(t))},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e,n){var r=n(36),o=n(54);t.exports=function(t,e){return r(t,o(t),e)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var u=t[n];e(u,n,t)&&(i[o++]=u)}return i}},function(t,e,n){var r=n(36),o=n(89);t.exports=function(t,e){return r(t,o(t),e)}},function(t,e,n){var r=n(92),o=n(54),i=n(49);t.exports=function(t){return r(t,i,o)}},function(t,e,n){var r=n(92),o=n(89),i=n(87);t.exports=function(t){return r(t,i,o)}},function(t,e,n){var r=n(10)(n(4),"DataView");t.exports=r},function(t,e,n){var r=n(10)(n(4),"Promise");t.exports=r},function(t,e,n){var r=n(10)(n(4),"Set");t.exports=r},function(t,e,n){var r=n(10)(n(4),"WeakMap");t.exports=r},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t,e,n){var r=n(56),o=n(221),i=n(222),u=n(223),c=n(224),s="[object Boolean]",a="[object Date]",f="[object Map]",l="[object Number]",p="[object RegExp]",h="[object Set]",v="[object String]",d="[object Symbol]",y="[object ArrayBuffer]",m="[object DataView]",b="[object Float32Array]",g="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",j="[object Int32Array]",k="[object Uint8Array]",O="[object Uint8ClampedArray]",x="[object Uint16Array]",A="[object Uint32Array]";t.exports=function(t,e,n){var S=t.constructor;switch(e){case y:return r(t);case s:case a:return new S(+t);case m:return o(t,n);case b:case g:case _:case w:case j:case k:case O:case x:case A:return c(t,n);case f:return new S;case l:case v:return new S(t);case p:return i(t);case h:return new S;case d:return u(t)}}},function(t,e,n){var r=n(4).Uint8Array;t.exports=r},function(t,e,n){var r=n(56);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var r=n(31),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},function(t,e,n){var r=n(56);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(226),o=n(91),i=n(53);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(t))}},function(t,e,n){var r=n(22),o=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(o)return o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},function(t,e,n){var r=n(228),o=n(51),i=n(52),u=i&&i.isMap,c=u?o(u):r;t.exports=c},function(t,e,n){var r=n(55),o=n(16),i="[object Map]";t.exports=function(t){return o(t)&&r(t)==i}},function(t,e,n){var r=n(230),o=n(51),i=n(52),u=i&&i.isSet,c=u?o(u):r;t.exports=c},function(t,e,n){var r=n(55),o=n(16),i="[object Set]";t.exports=function(t){return o(t)&&r(t)==i}}]);