@formio/js 5.0.0-rc.91 → 5.0.0-rc.92

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. package/dist/formio.embed.js +1 -1
  2. package/dist/formio.embed.min.js +1 -1
  3. package/dist/formio.embed.min.js.LICENSE.txt +1 -1
  4. package/dist/formio.form.js +20 -20
  5. package/dist/formio.form.min.js +1 -1
  6. package/dist/formio.form.min.js.LICENSE.txt +1 -1
  7. package/dist/formio.full.js +21 -21
  8. package/dist/formio.full.min.js +1 -1
  9. package/dist/formio.full.min.js.LICENSE.txt +1 -1
  10. package/dist/formio.js +3 -3
  11. package/dist/formio.min.js +1 -1
  12. package/dist/formio.min.js.LICENSE.txt +1 -1
  13. package/dist/formio.utils.js +6 -6
  14. package/dist/formio.utils.min.js +1 -1
  15. package/dist/formio.utils.min.js.LICENSE.txt +1 -1
  16. package/lib/cjs/Webform.js +7 -1
  17. package/lib/cjs/components/_classes/component/Component.js +2 -2
  18. package/lib/cjs/components/_classes/component/editForm/Component.edit.conditional.js +1 -1
  19. package/lib/cjs/components/_classes/component/editForm/Component.edit.data.js +1 -1
  20. package/lib/cjs/components/_classes/component/editForm/utils.js +1 -1
  21. package/lib/cjs/components/day/Day.js +3 -0
  22. package/lib/cjs/components/editgrid/EditGrid.js +8 -2
  23. package/lib/cjs/components/editgrid/fixtures/comp19.d.ts +59 -0
  24. package/lib/cjs/components/editgrid/fixtures/comp19.js +73 -0
  25. package/lib/cjs/components/editgrid/fixtures/index.d.ts +2 -1
  26. package/lib/cjs/components/editgrid/fixtures/index.js +3 -1
  27. package/lib/cjs/components/form/editForm/Form.edit.data.js +1 -1
  28. package/lib/cjs/components/number/fixtures/comp11.d.ts +17 -0
  29. package/lib/cjs/components/number/fixtures/comp11.js +20 -0
  30. package/lib/cjs/components/number/fixtures/index.d.ts +2 -1
  31. package/lib/cjs/components/number/fixtures/index.js +3 -1
  32. package/lib/cjs/components/time/Time.js +0 -6
  33. package/lib/cjs/components/time/fixtures/timeForm2.js +9 -0
  34. package/lib/mjs/Webform.js +6 -1
  35. package/lib/mjs/components/_classes/component/Component.js +2 -2
  36. package/lib/mjs/components/_classes/component/editForm/Component.edit.conditional.js +1 -1
  37. package/lib/mjs/components/_classes/component/editForm/Component.edit.data.js +1 -1
  38. package/lib/mjs/components/_classes/component/editForm/utils.js +1 -1
  39. package/lib/mjs/components/day/Day.js +3 -0
  40. package/lib/mjs/components/editgrid/EditGrid.js +8 -2
  41. package/lib/mjs/components/editgrid/fixtures/comp19.d.ts +59 -0
  42. package/lib/mjs/components/editgrid/fixtures/comp19.js +71 -0
  43. package/lib/mjs/components/editgrid/fixtures/index.d.ts +2 -1
  44. package/lib/mjs/components/editgrid/fixtures/index.js +2 -1
  45. package/lib/mjs/components/form/editForm/Form.edit.data.js +1 -1
  46. package/lib/mjs/components/number/fixtures/comp11.d.ts +17 -0
  47. package/lib/mjs/components/number/fixtures/comp11.js +18 -0
  48. package/lib/mjs/components/number/fixtures/index.d.ts +2 -1
  49. package/lib/mjs/components/number/fixtures/index.js +2 -1
  50. package/lib/mjs/components/time/Time.js +0 -6
  51. package/lib/mjs/components/time/fixtures/timeForm2.js +9 -0
  52. package/package.json +3 -3
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see formio.min.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Formio=t():e.Formio=t()}(self,(function(){return function(){var e={23370:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2543);class o{static identity(e){return e}static deregisterPlugin(e){const t=o.plugins.length;return o.plugins=o.plugins.filter((t=>t!==e&&t.__name!==e||((t.deregister||r.noop).call(e,o.Formio),!1))),t!==o.plugins.length}static registerPlugin(e,t){o.plugins.push(e),o.plugins.sort(((e,t)=>(t.priority||0)-(e.priority||0))),e.__name=t,(e.init||r.noop).call(e,o.Formio)}static getPlugin(e){for(const t of o.plugins)if(t.__name===e)return t;return null}static pluginWait(e,...t){return Promise.all(o.plugins.map((n=>(n[e]||r.noop).call(n,...t))))}static pluginGet(e,...t){const n=i=>{const a=o.plugins[i];return a?Promise.resolve((a[e]||r.noop).call(a,...t)).then((e=>(0,r.isNil)(e)?n(i+1):e)):Promise.resolve(null)};return n(0)}static pluginAlter(e,t,...n){return o.plugins.reduce(((t,r)=>(r[e]||o.identity)(t,...n)),t)}}o.plugins=[],t.default=o},94394:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=void 0;var r=n(15993);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return r.Formio}})},70678:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Evaluator=t.BaseEvaluator=void 0;const r=n(2543);class o{static evaluator(e,...t){return i.noeval?(console.warn("No evaluations allowed for this renderer."),r.noop):"function"==typeof e?e:("object"==typeof t[0]&&(t=(0,r.keys)(t[0])),new Function(...t,e))}static interpolateString(e,t,n={}){return e?"string"!=typeof e?e.toString():e.replace(/({{\s*(.*?)\s*}})/g,((e,o,a)=>{if(-1===a.indexOf("(")||i.noeval||n.noeval){let e=a;-1!==a.indexOf("?")&&(e=a.replace(/\?\./g,"."));const o=e.split("||").map((e=>e.trim()));let i="",s="";for(let e=0;e<o.length&&(s=o[e],i=(0,r.get)(t,s),!i);e++);return n.data&&(0,r.set)(n.data,s,i),i}return a.replace(/([^\(]+)\(([^\)]+)\s*\);?/,((e,o,a)=>{o=(0,r.trim)(o);const s=(0,r.get)(t,o);return s?(a&&(a=a.split(",").map((e=>0===(e=(0,r.trim)(e)).indexOf('"')||0===e.indexOf("'")?e.substring(1,e.length-1):(0,r.get)(t,e)))),i.evaluate(s,a,"",!1,t,n)):""}))})):""}static interpolate(e,t,n={}){if("function"==typeof e&&!i.noeval&&!n.noeval)try{return e(t)}catch(e){return console.warn("Error interpolating template",e,t),e.message}return i.interpolateString(String(e),t,n)}static evaluate(e,t={},n="",a=!1,s={},u={}){let c=null;u=(0,r.isObject)(u)?u:{noeval:u};const l=t.component?t.component:{key:"unknown"};!t.form&&t.instance&&(t.form=(0,r.get)(t.instance,"root._form",{}));const f=l.key;if("string"==typeof e){n&&(e=`var ${n};${e};return ${n}`),a&&(e=o.interpolate(e,t,u));try{e=i.noeval||u.noeval?r.noop:i.evaluator(e,t,s),t=(0,r.values)(t)}catch(t){console.warn(`An error occured within the custom function for ${f}`,t),c=null,e=!1}}if("function"==typeof e)try{c=i.execute(e,t,s,u)}catch(e){c=null,console.warn(`An error occured within custom function for ${f}`,e)}else e&&console.warn(`Unknown function type for ${f}`);return c}static execute(e,t,n={},o={}){if(o=(0,r.isObject)(o)?o:{noeval:o},!i.noeval&&!o.noeval)return Array.isArray(t)?e.apply(n,t):e.call(n,t);console.warn("No evaluations allowed for this renderer.")}}t.BaseEvaluator=o,o.templateSettings={interpolate:/{{([\s\S]+?)}}/g,evaluate:/\{%([\s\S]+?)%\}/g,escape:/\{\{\{([\s\S]+?)\}\}\}/g},o.noeval=!1;class i extends o{static registerEvaluator(e){Object.keys(e).forEach((t=>{i[t]=e[t]}))}}t.Evaluator=i},60554:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fastCloneDeep=void 0,t.fastCloneDeep=function(e){try{return JSON.parse(JSON.stringify(e))}catch(e){return console.log(`Clone Failed: ${e.message}`),null}}},5426:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponent=void 0;const r=n(96690);t.eachComponent=function e(t,n,o,i="",a){t&&t.forEach((s=>{if(!s)return;const u=(0,r.componentInfo)(s);let c=!1;a&&(Object.defineProperty(s,"parent",{enumerable:!1,writable:!0,value:JSON.parse(JSON.stringify(a))}),Object.defineProperty(s.parent,"parent",{enumerable:!1,writable:!0,value:a.parent}),Object.defineProperty(s.parent,"path",{enumerable:!1,writable:!0,value:a.path}),delete s.parent.components,delete s.parent.componentMap,delete s.parent.columns,delete s.parent.rows),Object.defineProperty(s,"path",{enumerable:!1,writable:!0,value:(0,r.componentPath)(s,i)}),(o||s.tree||!u.layout)&&(c=!!n(s,s.path,t,a)),c||(u.hasColumns?s.columns.forEach((t=>e(t.components,n,o,i,a?s:null))):u.hasRows?s.rows.forEach((t=>{Array.isArray(t)&&t.forEach((t=>e(t.components,n,o,i,a?s:null)))})):u.hasComps&&e(s.components,n,o,(0,r.componentFormPath)(s,i,s.path),a?s:null))}))}},83736:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponentAsync=void 0;const o=n(96690);t.eachComponentAsync=function e(t,n){return r(this,arguments,void 0,(function*(t,n,r=!1,i="",a){var s,u;if(t)for(let c=0;c<t.length;c++){if(!t[c])continue;let l=t[c];const f=(0,o.componentInfo)(l);if(a&&(Object.defineProperty(l,"parent",{enumerable:!1,writable:!0,value:JSON.parse(JSON.stringify(a))}),Object.defineProperty(l.parent,"parent",{enumerable:!1,writable:!0,value:a.parent}),Object.defineProperty(l.parent,"path",{enumerable:!1,writable:!0,value:a.path}),delete l.parent.components,delete l.parent.componentMap,delete l.parent.columns,delete l.parent.rows),Object.defineProperty(l,"path",{enumerable:!1,writable:!0,value:(0,o.componentPath)(l,i)}),!r&&!l.tree&&f.layout||!(yield n(l,l.path,t,a)))if(f.hasColumns)for(let t=0;t<l.columns.length;t++)yield e(null===(s=l.columns[t])||void 0===s?void 0:s.components,n,r,i,a?l:null);else if(f.hasRows)for(let t=0;t<l.rows.length;t++){let o=l.rows[t];if(Array.isArray(o))for(let t=0;t<o.length;t++)yield e(null===(u=o[t])||void 0===u?void 0:u.components,n,r,i,a?l:null)}else f.hasComps&&(yield e(l.components,n,r,(0,o.componentFormPath)(l,i,l.path),a?l:null))}}))}},57330:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponentData=void 0;const r=n(2543),o=n(96690),i=n(5426);t.eachComponentData=(e,n,a,s="",u,c,l=!1)=>{if(e&&n)return(0,i.eachComponent)(e,((e,i,c,f)=>{const p=(0,o.getContextualRowData)(e,i,n);if(!0===a(e,n,p,i,c,u,f))return!0;if((0,o.isComponentNestedDataType)(e)){const c=(0,r.get)(n,i,n);if(Array.isArray(c)){for(let r=0;r<c.length;r++){const s="nestedDataArray"===(0,o.getModelType)(e)?`${i}[${r}].data`:`${i}[${r}]`;(0,t.eachComponentData)(e.components,n,a,s,r,e,l)}return!0}if((0,r.isEmpty)(p)&&!l)return!0;if("dataObject"===(0,o.getModelType)(e)){const c=(0,r.get)(n,e.path),f=(null==c?void 0:c._id)&&(0,r.isEmpty)(c.data)&&!(0,r.has)(c,"form");if((null==c?void 0:c._id)?!f:(0,r.has)(n,e.path)){const c=(0,o.componentDataPath)(e,s,i),f=(0,r.get)(n,c,{});(0,t.eachComponentData)(e.components,f,a,"",u,e,l),(0,r.set)(n,c,f)}}else(0,t.eachComponentData)(e.components,n,a,(0,o.componentDataPath)(e,s,i),u,e,l);return!0}if("none"===(0,o.getModelType)(e)){const r=(0,o.componentInfo)(e);if(r.hasColumns)e.columns.forEach((r=>(0,t.eachComponentData)(r.components,n,a,s,u,e)));else if(r.hasRows)e.rows.forEach((r=>{Array.isArray(r)&&r.forEach((r=>(0,t.eachComponentData)(r.components,n,a,s,u,e)))}));else if(r.hasComps){const r=e;(0,t.eachComponentData)(r.components,n,a,(0,o.componentFormPath)(r,s,r.path),u,e)}return!0}return!1}),!0,s,c)}},42264:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponentDataAsync=void 0;const o=n(2543),i=n(96690),a=n(83736);t.eachComponentDataAsync=(e,n,s,...u)=>r(void 0,[e,n,s,...u],void 0,(function*(e,n,s,u="",c,l,f=!1){if(e&&n)return yield(0,a.eachComponentAsync)(e,((e,a,l,p)=>r(void 0,void 0,void 0,(function*(){const r=(0,i.getContextualRowData)(e,a,n);if(!0===(yield s(e,n,r,a,l,c,p)))return!0;if((0,i.isComponentNestedDataType)(e)){const l=(0,o.get)(n,a,n);if(Array.isArray(l)){for(let r=0;r<l.length;r++){const o="nestedDataArray"===(0,i.getModelType)(e)?`${a}[${r}].data`:`${a}[${r}]`;yield(0,t.eachComponentDataAsync)(e.components,n,s,o,r,e,f)}return!0}if((0,o.isEmpty)(r)&&!f)return!0;if("dataObject"===(0,i.getModelType)(e)){const r=(0,o.get)(n,e.path),l=(null==r?void 0:r._id)&&(0,o.isEmpty)(r.data)&&!(0,o.has)(r,"form");if((null==r?void 0:r._id)?!l:(0,o.has)(n,e.path)){const r=(0,i.componentDataPath)(e,u,a),l=(0,o.get)(n,r,null);yield(0,t.eachComponentDataAsync)(e.components,l,s,"",c,e,f),(0,o.set)(n,r,l)}}else yield(0,t.eachComponentDataAsync)(e.components,n,s,(0,i.componentDataPath)(e,u,a),c,e,f);return!0}if("none"===(0,i.getModelType)(e)){const r=(0,i.componentInfo)(e);if(r.hasColumns){const r=e;for(const o of r.columns)yield(0,t.eachComponentDataAsync)(o.components,n,s,u,c,e)}else if(r.hasRows){const r=e;for(const o of r.rows)if(Array.isArray(o))for(const r of o)yield(0,t.eachComponentDataAsync)(r.components,n,s,u,c,e)}else if(r.hasComps){const r=e;yield(0,t.eachComponentDataAsync)(r.components,n,s,(0,i.componentFormPath)(r,u,r.path),c,e)}return!0}return!1}))),!0,u,l)}))},96690:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponentDataAsync=t.eachComponentAsync=t.eachComponentData=t.eachComponent=t.isComponentDataEmpty=t.getEmptyValue=t.findComponent=t.applyFormChanges=t.generateFormChange=t.getStrings=t.getValue=t.escapeRegExCharacters=t.formatAsCurrency=t.parseFloatExt=t.hasCondition=t.removeComponent=t.findComponents=t.searchComponents=t.getComponent=t.matchComponent=t.isLayoutComponent=t.getComponentActualValue=t.getComponentData=t.componentInfo=t.getContextualRowData=t.getContextualRowPath=t.getComponentKey=t.componentFormPath=t.componentDataPath=t.componentPath=t.isComponentNestedDataType=t.getComponentPath=t.getComponentAbsolutePath=t.getModelType=t.MODEL_TYPES_OF_KNOWN_COMPONENTS=t.uniqueName=t.guid=t.flattenComponents=void 0;const r=n(2543),o=n(54949),i=n(70678),a=n(5426);Object.defineProperty(t,"eachComponent",{enumerable:!0,get:function(){return a.eachComponent}});const s=n(57330);Object.defineProperty(t,"eachComponentData",{enumerable:!0,get:function(){return s.eachComponentData}});const u=n(83736);Object.defineProperty(t,"eachComponentAsync",{enumerable:!0,get:function(){return u.eachComponentAsync}});const c=n(42264);function l(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function f(e){if(e.modelType)return e.modelType;for(const n of Object.keys(t.MODEL_TYPES_OF_KNOWN_COMPONENTS))if(t.MODEL_TYPES_OF_KNOWN_COMPONENTS[n].includes(e.type))return n;return!1===e.input?"none":"any"}function p(e){return e.tree||"nestedArray"===f(e)||"nestedDataArray"===f(e)||"dataObject"===f(e)||"object"===f(e)||"map"===f(e)}function d(e,t){t=e.parentPath||t;const n=h(e);return n?t?`${t}.${n}`:n:t||""}function h(e){return"checkbox"===e.type&&"radio"===e.inputType&&e.name?e.name:e.key}function m(e,t){return t.replace(new RegExp(`.?${h(e)}$`),"")}function v(e,t){if((0,r.isString)(t))return e.key===t||e.path===t;{let n=!1;return(0,r.forOwn)(t,((t,o)=>{if(n=(0,r.get)(e,o)===t,!n)return!1})),n}}function y(e,t){const n=[];return(0,a.eachComponent)(e,(e=>{v(e,t)&&n.push(e)}),!0),n}function g(e,t){var n=t.pop();0!==t.length&&(e=(0,r.get)(e,t)),e.splice(n,1)}function b(e){return parseFloat((0,r.isString)(e)?e.replace(/[^\de.+-]/gi,""):e)}function _(e,t,n,r){if(e){if(n=n||[],!t)return r(e);e.forEach((function(o,i){var a=n.slice();a.push(i),o&&(o.hasOwnProperty("columns")&&Array.isArray(o.columns)&&(a.push("columns"),o.columns.forEach((function(e,n){var o=a.slice();o.push(n),o.push("components"),_(e.components,t,o,r)}))),o.hasOwnProperty("rows")&&Array.isArray(o.rows)&&(a.push("rows"),o.rows.forEach((function(e,n){var o=a.slice();o.push(n),e.forEach((function(e,n){var i=o.slice();i.push(n),i.push("components"),_(e.components,t,i,r)}))}))),o.hasOwnProperty("components")&&Array.isArray(o.components)&&(a.push("components"),_(o.components,t,a,r)),o.key===t&&r(o,a,e))}))}}function w(e){switch(e.type){case"textarea":case"textfield":case"time":case"datetime":case"day":return"";case"datagrid":case"editgrid":return[];default:return null}}Object.defineProperty(t,"eachComponentDataAsync",{enumerable:!0,get:function(){return c.eachComponentDataAsync}}),t.flattenComponents=function(e,t=!1){const n={};return(0,a.eachComponent)(e,((e,t)=>{n[t]=e}),t),n},t.guid=l,t.uniqueName=function(e,t,n){(t=t||"{{fileName}}-{{guid}}").includes("{{guid}}")||(t=`${t}-{{guid}}`);const o=e.split(".");let a=o.slice(0,o.length-1).join(".");const s=o.length>1?`.${(0,r.last)(o)}`:"";return a=a.substr(0,100),n=Object.assign(n||{},{fileName:a,guid:l()}),`${i.Evaluator.interpolate(t,n)}${s}`.replace(/[^0-9a-zA-Z.\-_ ]/g,"-")},t.MODEL_TYPES_OF_KNOWN_COMPONENTS={nestedArray:["datagrid","editgrid","datatable","dynamicWizard"],nestedDataArray:["tagpad"],dataObject:["form"],object:["container","address"],map:["datamap"],content:["htmlelement","content"],string:["textfield","password","email","url","phoneNumber","day","datetime","time","signature"],number:["number","currency"],boolean:["checkbox","radio"],none:["table","well","columns","fieldset","panel","tabs"],any:["survey","captcha","textarea","selectboxes","tags","select","hidden","button","datasource","sketchpad","reviewpage","file"]},t.getModelType=f,t.getComponentAbsolutePath=function(e){let t=[e.path];for(;e.parent;)"dataObject"===f(e=e.parent)&&(t[t.length-1]=`data.${t[t.length-1]}`,t.push(e.path));return t.reverse().join(".")},t.getComponentPath=function(e,t){const n=h(e);return n?t?t.match(new RegExp(`${n}$`))?t:"none"===f(e)?`${t}.${n}`:t:n:t},t.isComponentNestedDataType=p,t.componentPath=d,t.componentDataPath=(e,t,n)=>(t=e.parentPath||t,n=n||d(e,t),e.components&&Array.isArray(e.components)?"dataObject"===f(e)?`${n}.data`:"nestedArray"===f(e)?`${n}[0]`:"nestedDataArray"===f(e)?`${n}[0].data`:p(e)?n:t:n),t.componentFormPath=(e,t,n)=>(t=e.parentPath||t,n=n||d(e,t),"dataObject"===f(e)?`${n}.data`:p(e)?n:t),t.getComponentKey=h,t.getContextualRowPath=m,t.getContextualRowData=function(e,t,n){const o=m(e,t);return o?(0,r.get)(n,o,null):n},t.componentInfo=function(e){const t=e.columns&&Array.isArray(e.columns),n=e.rows&&Array.isArray(e.rows),r=e.components&&Array.isArray(e.components),o="content"===f(e),i="none"===f(e),a=!e.hasOwnProperty("input")||!!e.input;return{hasColumns:t,hasRows:n,hasComps:r,layout:t||n||r&&!a||i||o,iterable:t||n||r||o}},t.getComponentData=function(e,t,n){const r={component:null,data:null};return(0,s.eachComponentData)(e,t,((e,t,o,i)=>{if(i===n)return r.component=e,r.data=o,!0})),r},t.getComponentActualValue=function(e,t,n,o){var i;let a=null,s=e,u="";for(;(null===(i=null==s?void 0:s.parent)||void 0===i?void 0:i.path)&&!a;)s=s.parent,s.input&&(a=s);if(a){const e=a.path.replace(/\[[0-9]+\]/g,"");u=t.replace(e,""),u=(0,r.trim)(u,". ")}let c=null;return n&&(c=(0,r.get)(n,t)),u&&o&&(0,r.isNil)(c)&&(c=(0,r.get)(o,u)),((0,r.isNil)(c)||(0,r.isObject)(c)&&(0,r.isEmpty)(c))&&(c=""),c},t.isLayoutComponent=function(e){return Boolean(e.columns&&Array.isArray(e.columns)||e.rows&&Array.isArray(e.rows)||e.components&&Array.isArray(e.components))},t.matchComponent=v,t.getComponent=function(e,t,n=!1){let r;return(0,a.eachComponent)(e,((e,n)=>{if(n===t||e.path===t||e.input&&e.key===t)return r=e,!0}),n),r},t.searchComponents=y,t.findComponents=function(e,t){return console.warn("formio.js/utils findComponents is deprecated. Use searchComponents instead."),y(e,t)},t.removeComponent=g,t.hasCondition=function(e){return Boolean(e.customConditional||e.conditional&&(e.conditional.when||e.conditional.json||e.conditional.conjunction&&(0,r.isBoolean)(e.conditional.show)&&!(0,r.isEmpty)(e.conditional.conditions)))},t.parseFloatExt=b,t.formatAsCurrency=function(e){const t=b(e);if(isNaN(t))return"";const n=(0,r.round)(t,2).toString().split(".");return n[0]=(0,r.chunk)(Array.from(n[0]).reverse(),3).reverse().map((e=>e.reverse().join(""))).join(","),n[1]=(0,r.pad)(n[1],2,"0"),n.join(".")},t.escapeRegExCharacters=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},t.getValue=function(e,t){const n=e=>{if((0,r.isPlainObject)(e)){if((0,r.has)(e,t))return(0,r.get)(e,t);let o=null;return(0,r.forOwn)(e,(e=>{const t=n(e);if(!(0,r.isNil)(t))return o=t,!1})),o}return null};return n(e.data)},t.getStrings=function(e){const t=["label","title","legend","tooltip","description","placeholder","prefix","suffix","errorLabel","content","html"],n=[];return(0,a.eachComponent)(e.components,(e=>{if(t.forEach((t=>{e.hasOwnProperty(t)&&e[t]&&n.push({key:e.key,type:e.type,property:t,string:e[t]})})),(!e.dataSrc||"values"===e.dataSrc)&&e.hasOwnProperty("values")&&Array.isArray(e.values)&&e.values.length&&e.values.forEach(((t,r)=>{n.push({key:e.key,property:`value[${r}].label`,string:e.values[r].label})})),"day"===e.type&&(["day","month","year","Day","Month","Year","january","february","march","april","may","june","july","august","september","october","november","december"].forEach((t=>{n.push({key:e.key,property:"day",string:t})})),e.fields.day.placeholder&&n.push({key:e.key,property:"fields.day.placeholder",string:e.fields.day.placeholder}),e.fields.month.placeholder&&n.push({key:e.key,property:"fields.month.placeholder",string:e.fields.month.placeholder}),e.fields.year.placeholder&&n.push({key:e.key,property:"fields.year.placeholder",string:e.fields.year.placeholder})),"editgrid"===e.type){const t=e.addAnother||"Add Another";e.addAnother&&n.push({key:e.key,property:"addAnother",string:t})}"select"===e.type&&["loading...","Type to search"].forEach((t=>{n.push({key:e.key,property:"select",string:t})}))}),!0),n},t.generateFormChange=function(e,t){let n;switch(e){case"add":n={op:"add",key:t.component.key,container:t.parent.key,path:t.path,index:t.index,component:t.component};break;case"edit":n={op:"edit",key:t.originalComponent.key,patches:(0,o.compare)(t.originalComponent,t.component)},n.patches.length||(n=null);break;case"remove":n={op:"remove",key:t.component.key}}return n},t.applyFormChanges=function(e,t){const n=[];return t.forEach((function(t){var i=!1;switch(t.op){case"add":var a=t.component;_(e.components,t.container,null,(function(n){t.container||(n=e),_(e.components,t.key,null,(function(t,n){a=t,g(e.components,n)})),i=!0,(0,r.get)(n,t.path).splice(t.index,0,a)}));break;case"remove":_(e.components,t.key,null,(function(t,n){i=!0,(0,r.get)(e.components,n).key!==t.key&&n.pop(),g(e.components,n)}));break;case"edit":_(e.components,t.key,null,(function(a,s){i=!0;try{const n=(0,r.get)(e.components,s),i=(0,o.applyPatch)(a,t.patches).newDocument;n.key!==i.key&&s.pop(),(0,r.set)(e.components,s,i)}catch(e){n.push(t)}}))}i||n.push(t)})),{form:e,failed:n}},t.findComponent=_,t.getEmptyValue=w;const O=e=>{const t="<p>&nbsp;</p>",n="<p><br></p>",r="<p><br>&nbsp;</p>",o=new RegExp(`^${t}|${t}$|^${n}|${n}$|^${r}|${r}$`,"g");return"string"==typeof e?e.replace(o,"").trim():e};function j(e,t){const n=!(!(0,r.isArray)(t)||1!==t.length)&&(0,r.isEqual)(t[0],w(e));return null==t||""===t||(0,r.isArray)(t)&&0===t.length||n}t.isComponentDataEmpty=function e(t,n,o,i){var a;const u=(0,r.isNil)(i)?(0,r.get)(n,o):i;if((e=>"checkbox"===(null==e?void 0:e.type))(t))return j(t,u)||!1===u;if((e=>"address"===(null==e?void 0:e.type))(t))return 0===Object.keys(u).length||!Object.values((0,r.omit)(u,["mode","address"])).some(Boolean);if((e=>"datagrid"===(null==e?void 0:e.type))(t)||(e=>"editgrid"===(null==e?void 0:e.type))(t)||(e=>"datatable"===(null==e?void 0:e.type))(t)||(e=>null!=(null==e?void 0:e.components))(t)){if(null===(a=t.components)||void 0===a?void 0:a.length){let r=!0;return(0,s.eachComponentData)([t],n,((n,o,i,a,s,u)=>{t.key!==n.key&&(e(n,o,a)||(r=!1))})),j(t,u)||r}return j(t,u)}if((e=>"datetime"===(null==e?void 0:e.type))(t))return j(t,u)||"Invalid date"===u.toString();if((e=>"selectboxes"===(null==e?void 0:e.type))(t)){let e=!0;for(const t in u)if(u[t]){e=!1;break}return j(t,u)||e}if((e=>"textarea"===(null==e?void 0:e.type))(t)){const e=!t.wysiwyg&&!t.editor;return j(t,e?"string"==typeof u?u.trim():u:function(e){return e?e=Array.isArray(e)?e.map((e=>O(e))):O(e):e}(u))}return(e=>"textfield"===(null==e?void 0:e.type))(t)?t.allowMultipleMasks&&t.inputMasks&&t.inputMasks.length?j(t,u)||(t.multiple?0===u.length:!u.maskName||!u.value):j(t,null==u?void 0:u.toString().trim()):j(t,u)}},17112:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jwtDecode=void 0,t.jwtDecode=function(e,t={}){if("string"!=typeof e)throw new Error("Invalid token specified: must be a string");const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new Error("Invalid token specified: missing part #"+(n+1));let o;try{o=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,(function(e,t){let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return atob(t)}}(r)}catch(e){throw new Error("Invalid token specified: invalid base64 for part #"+(n+1)+" ("+e.message+")")}try{return JSON.parse(o)}catch(e){throw new Error("Invalid token specified: invalid json for part #"+(n+1)+" ("+e.message+")")}}},24715:function(e,t,n){var r,o;r=function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=o(e);if(t){var i=o(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)}(this,n)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},u.apply(this,arguments)}var c=function(){function t(){e(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return r(t,[{key:"addEventListener",value:function(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var n=this.listeners[e],r=0,o=n.length;r<o;r++)if(n[r].callback===t)return void n.splice(r,1)}},{key:"dispatchEvent",value:function(e){if(e.type in this.listeners){for(var t=this.listeners[e.type].slice(),n=0,r=t.length;n<r;n++){var o=t[n];try{o.callback.call(this,e)}catch(e){Promise.resolve().then((function(){throw e}))}o.options&&o.options.once&&this.removeEventListener(e.type,o.callback)}return!e.defaultPrevented}}}]),t}(),l=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(l,t);var n=s(l);function l(){var t;return e(this,l),(t=n.call(this)).listeners||c.call(a(t)),Object.defineProperty(a(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(a(t),"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(a(t),"reason",{value:void 0,writable:!0,configurable:!0}),t}return r(l,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),u(o(l.prototype),"dispatchEvent",this).call(this,e)}}]),l}(c),f=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new l,writable:!0,configurable:!0})}return r(t,[{key:"abort",value:function(e){var t;try{t=new Event("abort")}catch(e){"undefined"!=typeof document?document.createEvent?(t=document.createEvent("Event")).initEvent("abort",!1,!1):(t=document.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}var n=e;if(void 0===n)if("undefined"==typeof document)(n=new Error("This operation was aborted")).name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(e){(n=new Error("This operation was aborted")).name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();function p(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(f.prototype[Symbol.toStringTag]="AbortController",l.prototype[Symbol.toStringTag]="AbortSignal"),function(e){if(p(e))if(e.fetch){var t=function(e){"function"==typeof e&&(e={fetch:e});var t=e,n=t.fetch,r=t.Request,o=void 0===r?n.Request:r,i=t.AbortController,a=t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,s=void 0!==a&&a;if(!p({fetch:n,Request:o,AbortController:i,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:s}))return{fetch:n,Request:u};var u=o;(u&&!u.prototype.hasOwnProperty("signal")||s)&&((u=function(e,t){var n;t&&t.signal&&(n=t.signal,delete t.signal);var r=new o(e,t);return n&&Object.defineProperty(r,"signal",{writable:!1,enumerable:!1,configurable:!0,value:n}),r}).prototype=o.prototype);var c=n;return{fetch:function(e,t){var n=u&&u.prototype.isPrototypeOf(e)?e.signal:t?t.signal:void 0;if(n){var r;try{r=new DOMException("Aborted","AbortError")}catch(e){(r=new Error("Aborted")).name="AbortError"}if(n.aborted)return Promise.reject(r);var o=new Promise((function(e,t){n.addEventListener("abort",(function(){return t(r)}),{once:!0})}));return t&&t.signal&&delete t.signal,Promise.race([o,c(e,t)])}return c(e,t)},Request:u}}(e),n=t.fetch,r=t.Request;e.fetch=n,e.Request=r,Object.defineProperty(e,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:f}),Object.defineProperty(e,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:l})}else console.warn("fetch() is not available, cannot install abortcontroller-polyfill")}("undefined"!=typeof self?self:n.g)},void 0===(o=r.call(t,n,t,e))||(e.exports=o)},81018:function(e,t){t.defaults={},t.set=function(e,n,r){var o=r||{},i=t.defaults,a=o.expires||i.expires,s=o.domain||i.domain,u=void 0!==o.path?o.path:void 0!==i.path?i.path:"/",c=void 0!==o.secure?o.secure:i.secure,l=void 0!==o.httponly?o.httponly:i.httponly,f=void 0!==o.samesite?o.samesite:i.samesite,p=a?new Date("number"==typeof a?(new Date).getTime()+864e5*a:a):0;document.cookie=e.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+n.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(p&&p.getTime()>=0?";expires="+p.toUTCString():"")+(s?";domain="+s:"")+(u?";path="+u:"")+(c?";secure":"")+(l?";httponly":"")+(f?";samesite="+f:"")},t.get=function(e){for(var t=document.cookie.split(";");t.length;){var n=t.pop(),r=n.indexOf("=");if(r=r<0?n.length:r,decodeURIComponent(n.slice(0,r).replace(/^\s+/,""))===e)return decodeURIComponent(n.slice(r+1))}return null},t.erase=function(e,n){t.set(e,"",{expires:-1,domain:n&&n.domain,path:n&&n.path,secure:0,httponly:0})},t.all=function(){for(var e={},t=document.cookie.split(";");t.length;){var n=t.pop(),r=n.indexOf("=");r=r<0?n.length:r,e[decodeURIComponent(n.slice(0,r).replace(/^\s+/,""))]=decodeURIComponent(n.slice(r+1))}return e}},30228:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,o),!0;case 5:return l.fn.call(l.context,t,r,o,i),!0;case 6:return l.fn.call(l.context,t,r,o,i,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var p,d=l.length;for(c=0;c<d;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,r);break;case 4:l[c].fn.call(l[c].context,t,r,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||o&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},42681:function(e,t,n){var r;!function(o){"use strict";function i(e){var n=e&&e.Promise||o.Promise,r=e&&e.XMLHttpRequest||o.XMLHttpRequest;return function(){var e=Object.create(o,{fetch:{value:void 0,writable:!0}});return function(t){var o=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==o&&o,i="URLSearchParams"in o,a="Symbol"in o&&"iterator"in Symbol,s="FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch(e){return!1}}(),u="FormData"in o,c="ArrayBuffer"in o;if(c)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function p(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return a&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function v(e){if(e.bodyUsed)return n.reject(new TypeError("Already read"));e.bodyUsed=!0}function y(e){return new n((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=y(t);return t.readAsArrayBuffer(e),n}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:s&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:u&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():c&&s&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(e)||f(e))?this._bodyArrayBuffer=b(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var e=v(this);if(e)return e;if(this._bodyBlob)return n.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return n.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return n.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?v(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?n.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):n.resolve(this._bodyArrayBuffer)):this.blob().then(g)}),this.text=function(){var e,t,r,o=v(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=y(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return n.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return n.resolve(this._bodyText)},u&&(this.formData=function(){return this.text().then(j)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(e,t){e=p(e),t=d(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},m.prototype.delete=function(e){delete this.map[p(e)]},m.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},m.prototype.set=function(e,t){this.map[p(e)]=d(t)},m.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},m.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},m.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},m.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},a&&(m.prototype[Symbol.iterator]=m.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(e,t){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof O){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new m(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new m(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),w.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function j(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function A(e,t){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})},_.call(O.prototype),_.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},A.error=function(){var e=new A(null,{status:0,statusText:""});return e.type="error",e};var P=[301,302,303,307,308];A.redirect=function(e,t){if(-1===P.indexOf(t))throw new RangeError("Invalid status code");return new A(null,{status:t,headers:{location:e}})},t.DOMException=o.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function x(e,i){return new n((function(n,a){var u=new O(e,i);if(u.signal&&u.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var l=new r;function f(){l.abort()}l.onload=function(){var e,t,r={status:l.status,statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new m,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in l?l.responseURL:r.headers.get("X-Request-URL");var o="response"in l?l.response:l.responseText;setTimeout((function(){n(new A(o,r))}),0)},l.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){a(new t.DOMException("Aborted","AbortError"))}),0)},l.open(u.method,function(e){try{return""===e&&o.location.href?o.location.href:e}catch(t){return e}}(u.url),!0),"include"===u.credentials?l.withCredentials=!0:"omit"===u.credentials&&(l.withCredentials=!1),"responseType"in l&&(s?l.responseType="blob":c&&u.headers.get("Content-Type")&&-1!==u.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof m?u.headers.forEach((function(e,t){l.setRequestHeader(t,e)})):Object.getOwnPropertyNames(i.headers).forEach((function(e){l.setRequestHeader(e,d(i.headers[e]))})),u.signal&&(u.signal.addEventListener("abort",f),l.onreadystatechange=function(){4===l.readyState&&u.signal.removeEventListener("abort",f)}),l.send(void 0===u._bodyInit?null:u._bodyInit)}))}x.polyfill=!0,o.fetch||(o.fetch=x,o.Headers=m,o.Request=O,o.Response=A),t.Headers=m,t.Request=O,t.Response=A,t.fetch=x,Object.defineProperty(t,"__esModule",{value:!0})}(t),{fetch:e.fetch,Headers:e.Headers,Request:e.Request,Response:e.Response,DOMException:e.DOMException}}()}void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==n.g?n.g:this)},51873:function(e,t,n){var r=n(9325).Symbol;e.exports=r},34932:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},61074:function(e){e.exports=function(e){return e.split("")}},2523:function(e){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},72552:function(e,t,n){var r=n(51873),o=n(659),i=n(59350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},96131:function(e,t,n){var r=n(2523),o=n(85463),i=n(76959);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},85463:function(e){e.exports=function(e){return e!=e}},25160:function(e){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},77556:function(e,t,n){var r=n(51873),o=n(34932),i=n(56449),a=n(44394),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},54128:function(e,t,n){var r=n(31800),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},28754:function(e,t,n){var r=n(25160);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},23875:function(e,t,n){var r=n(96131);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},28380:function(e,t,n){var r=n(96131);e.exports=function(e,t){for(var n=-1,o=e.length;++n<o&&r(t,e[n],0)>-1;);return n}},34840:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},659:function(e,t,n){var r=n(51873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},49698:function(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},59350:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9325:function(e,t,n){var r=n(34840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},76959:function(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},63912:function(e,t,n){var r=n(61074),o=n(49698),i=n(42054);e.exports=function(e){return o(e)?i(e):r(e)}},31800:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},42054:function(e){var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",l=c+u+"(?:\\u200d(?:"+[i,a,s].join("|")+")"+c+u+")*",f="(?:"+[i+r+"?",r,a,s,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+f+l,"g");e.exports=function(e){return e.match(p)||[]}},56449:function(e){var t=Array.isArray;e.exports=t},40346:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},44394:function(e,t,n){var r=n(72552),o=n(40346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},2543:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,c=128,l=1/0,f=9007199254740991,p=NaN,d=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],m="[object Arguments]",v="[object Array]",y="[object Boolean]",g="[object Date]",b="[object Error]",_="[object Function]",w="[object GeneratorFunction]",O="[object Map]",j="[object Number]",A="[object Object]",P="[object Promise]",x="[object RegExp]",k="[object Set]",U="[object String]",E="[object Symbol]",C="[object WeakMap]",R="[object ArrayBuffer]",T="[object DataView]",S="[object Float32Array]",I="[object Float64Array]",F="[object Int8Array]",$="[object Int16Array]",D="[object Int32Array]",N="[object Uint8Array]",L="[object Uint8ClampedArray]",M="[object Uint16Array]",q="[object Uint32Array]",B=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,G=RegExp(H.source),J=RegExp(V.source),Y=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",Oe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",je="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",Pe="A-Z\\xc0-\\xd6\\xd8-\\xde",xe="\\ufe0e\\ufe0f",ke="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ue="["+we+"]",Ee="["+ke+"]",Ce="["+Oe+"]",Re="\\d+",Te="["+je+"]",Se="["+Ae+"]",Ie="[^"+we+ke+Re+je+Ae+Pe+"]",Fe="\\ud83c[\\udffb-\\udfff]",$e="[^"+we+"]",De="(?:\\ud83c[\\udde6-\\uddff]){2}",Ne="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+Pe+"]",Me="\\u200d",qe="(?:"+Se+"|"+Ie+")",Be="(?:"+Le+"|"+Ie+")",ze="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",He="(?:"+Ce+"|"+Fe+")?",Ve="["+xe+"]?",Ge=Ve+He+"(?:"+Me+"(?:"+[$e,De,Ne].join("|")+")"+Ve+He+")*",Je="(?:"+[Te,De,Ne].join("|")+")"+Ge,Ye="(?:"+[$e+Ce+"?",Ce,De,Ne,Ue].join("|")+")",Ke=RegExp("['’]","g"),Xe=RegExp(Ce,"g"),Ze=RegExp(Fe+"(?="+Fe+")|"+Ye+Ge,"g"),Qe=RegExp([Le+"?"+Se+"+"+ze+"(?="+[Ee,Le,"$"].join("|")+")",Be+"+"+We+"(?="+[Ee,Le+qe,"$"].join("|")+")",Le+"?"+qe+"+"+ze,Le+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Je].join("|"),"g"),et=RegExp("["+Me+we+Oe+xe+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[S]=ot[I]=ot[F]=ot[$]=ot[D]=ot[N]=ot[L]=ot[M]=ot[q]=!0,ot[m]=ot[v]=ot[R]=ot[y]=ot[T]=ot[g]=ot[b]=ot[_]=ot[O]=ot[j]=ot[A]=ot[x]=ot[k]=ot[U]=ot[C]=!1;var it={};it[m]=it[v]=it[R]=it[T]=it[y]=it[g]=it[S]=it[I]=it[F]=it[$]=it[D]=it[O]=it[j]=it[A]=it[x]=it[k]=it[U]=it[E]=it[N]=it[L]=it[M]=it[q]=!0,it[b]=it[_]=it[C]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ut=parseInt,ct="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,lt="object"==typeof self&&self&&self.Object===Object&&self,ft=ct||lt||Function("return this")(),pt=t&&!t.nodeType&&t,dt=pt&&e&&!e.nodeType&&e,ht=dt&&dt.exports===pt,mt=ht&&ct.process,vt=function(){try{return dt&&dt.require&&dt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),yt=vt&&vt.isArrayBuffer,gt=vt&&vt.isDate,bt=vt&&vt.isMap,_t=vt&&vt.isRegExp,wt=vt&&vt.isSet,Ot=vt&&vt.isTypedArray;function jt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function At(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function xt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function kt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ut(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Et(e,t){return!(null==e||!e.length)&&Lt(e,t,0)>-1}function Ct(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Rt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Tt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function St(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function It(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Ft(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var $t=zt("length");function Dt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Nt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Lt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Nt(e,qt,n)}function Mt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function qt(e){return e!=e}function Bt(e,t){var n=null==e?0:e.length;return n?Vt(e,t)/n:p}function zt(e){return function(t){return null==t?o:t[e]}}function Wt(e){return function(t){return null==e?o:e[t]}}function Ht(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Vt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Gt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Jt(e){return e?e.slice(0,pn(e)+1).replace(re,""):e}function Yt(e){return function(t){return e(t)}}function Kt(e,t){return Rt(t,(function(t){return e[t]}))}function Xt(e,t){return e.has(t)}function Zt(e,t){for(var n=-1,r=e.length;++n<r&&Lt(t,e[n],0)>-1;);return n}function Qt(e,t){for(var n=e.length;n--&&Lt(t,e[n],0)>-1;);return n}var en=Wt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=Wt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function an(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function ln(e){return rn(e)?function(e){for(var t=Ze.lastIndex=0;Ze.test(e);)++t;return t}(e):$t(e)}function fn(e){return rn(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.split("")}(e)}function pn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var dn=Wt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),hn=function e(t){var n,r=(t=null==t?ft:hn.defaults(ft.Object(),t,hn.pick(ft,nt))).Array,oe=t.Date,we=t.Error,Oe=t.Function,je=t.Math,Ae=t.Object,Pe=t.RegExp,xe=t.String,ke=t.TypeError,Ue=r.prototype,Ee=Oe.prototype,Ce=Ae.prototype,Re=t["__core-js_shared__"],Te=Ee.toString,Se=Ce.hasOwnProperty,Ie=0,Fe=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",$e=Ce.toString,De=Te.call(Ae),Ne=ft._,Le=Pe("^"+Te.call(Se).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=ht?t.Buffer:o,qe=t.Symbol,Be=t.Uint8Array,ze=Me?Me.allocUnsafe:o,We=an(Ae.getPrototypeOf,Ae),He=Ae.create,Ve=Ce.propertyIsEnumerable,Ge=Ue.splice,Je=qe?qe.isConcatSpreadable:o,Ye=qe?qe.iterator:o,Ze=qe?qe.toStringTag:o,et=function(){try{var e=ci(Ae,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,ct=oe&&oe.now!==ft.Date.now&&oe.now,lt=t.setTimeout!==ft.setTimeout&&t.setTimeout,pt=je.ceil,dt=je.floor,mt=Ae.getOwnPropertySymbols,vt=Me?Me.isBuffer:o,$t=t.isFinite,Wt=Ue.join,mn=an(Ae.keys,Ae),vn=je.max,yn=je.min,gn=oe.now,bn=t.parseInt,_n=je.random,wn=Ue.reverse,On=ci(t,"DataView"),jn=ci(t,"Map"),An=ci(t,"Promise"),Pn=ci(t,"Set"),xn=ci(t,"WeakMap"),kn=ci(Ae,"create"),Un=xn&&new xn,En={},Cn=Di(On),Rn=Di(jn),Tn=Di(An),Sn=Di(Pn),In=Di(xn),Fn=qe?qe.prototype:o,$n=Fn?Fn.valueOf:o,Dn=Fn?Fn.toString:o;function Nn(e){if(es(e)&&!za(e)&&!(e instanceof Bn)){if(e instanceof qn)return e;if(Se.call(e,"__wrapped__"))return Ni(e)}return new qn(e)}var Ln=function(){function e(){}return function(t){if(!Qa(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Mn(){}function qn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Bn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Hn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Wn(e);this.size=t.size}function Jn(e,t){var n=za(e),r=!n&&Ba(e),o=!n&&!r&&Ga(e),i=!n&&!r&&!o&&us(e),a=n||r||o||i,s=a?Gt(e.length,xe):[],u=s.length;for(var c in e)!t&&!Se.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vi(c,u))||s.push(c);return s}function Yn(e){var t=e.length;return t?e[Hr(0,t-1)]:o}function Kn(e,t){return Ti(ko(e),ir(t,0,e.length))}function Xn(e){return Ti(ko(e))}function Zn(e,t,n){(n!==o&&!La(e[t],n)||n===o&&!(t in e))&&rr(e,t,n)}function Qn(e,t,n){var r=e[t];Se.call(e,t)&&La(r,n)&&(n!==o||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(La(e[n][0],t))return n;return-1}function tr(e,t,n,r){return lr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function nr(e,t){return e&&Uo(t,Cs(t),e)}function rr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:Ps(e,t[n]);return a}function ir(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ar(e,t,n,r,i,a){var s,u=1&t,c=2&t,l=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!Qa(e))return e;var f=za(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Se.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return ko(e,s)}else{var p=pi(e),d=p==_||p==w;if(Ga(e))return wo(e,u);if(p==A||p==m||d&&!i){if(s=c||d?{}:hi(e),!u)return c?function(e,t){return Uo(e,fi(e),t)}(e,function(e,t){return e&&Uo(t,Rs(t),e)}(s,e)):function(e,t){return Uo(e,li(e),t)}(e,nr(s,e))}else{if(!it[p])return i?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case R:return Oo(e);case y:case g:return new o(+e);case T:return function(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case S:case I:case F:case $:case D:case N:case L:case M:case q:return jo(e,n);case O:return new o;case j:case U:return new o(e);case x:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new o;case E:return r=e,$n?Ae($n.call(r)):{}}}(e,p,u)}}a||(a=new Gn);var h=a.get(e);if(h)return h;a.set(e,s),is(e)?e.forEach((function(r){s.add(ar(r,t,n,r,e,a))})):ts(e)&&e.forEach((function(r,o){s.set(o,ar(r,t,n,o,e,a))}));var v=f?o:(l?c?ni:ti:c?Rs:Cs)(e);return Pt(v||e,(function(r,o){v&&(r=e[o=r]),Qn(s,o,ar(r,t,n,o,e,a))})),s}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ae(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new ke(i);return Ui((function(){e.apply(o,n)}),t)}function cr(e,t,n,r){var o=-1,i=Et,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=Rt(t,Yt(n))),r?(i=Ct,a=!1):t.length>=200&&(i=Xt,a=!1,t=new Vn(t));e:for(;++o<s;){var l=e[o],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var p=c;p--;)if(t[p]===f)continue e;u.push(l)}else i(t,f,r)||u.push(l)}return u}Nn.templateSettings={escape:Y,evaluate:K,interpolate:X,variable:"",imports:{_:Nn}},Nn.prototype=Mn.prototype,Nn.prototype.constructor=Nn,qn.prototype=Ln(Mn.prototype),qn.prototype.constructor=qn,Bn.prototype=Ln(Mn.prototype),Bn.prototype.constructor=Bn,zn.prototype.clear=function(){this.__data__=kn?kn(null):{},this.size=0},zn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},zn.prototype.get=function(e){var t=this.__data__;if(kn){var n=t[e];return n===a?o:n}return Se.call(t,e)?t[e]:o},zn.prototype.has=function(e){var t=this.__data__;return kn?t[e]!==o:Se.call(t,e)},zn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=kn&&t===o?a:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},Wn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?o:t[n][1]},Wn.prototype.has=function(e){return er(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Hn.prototype.clear=function(){this.size=0,this.__data__={hash:new zn,map:new(jn||Wn),string:new zn}},Hn.prototype.delete=function(e){var t=si(this,e).delete(e);return this.size-=t?1:0,t},Hn.prototype.get=function(e){return si(this,e).get(e)},Hn.prototype.has=function(e){return si(this,e).has(e)},Hn.prototype.set=function(e,t){var n=si(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Vn.prototype.add=Vn.prototype.push=function(e){return this.__data__.set(e,a),this},Vn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var r=n.__data__;if(!jn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hn(r)}return n.set(e,t),this.size=n.size,this};var lr=Ro(gr),fr=Ro(br,!0);function pr(e,t){var n=!0;return lr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function dr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(u===o?s==s&&!ss(s):n(s,u)))var u=s,c=a}return c}function hr(e,t){var n=[];return lr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function mr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=mi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?mr(s,t-1,n,r,o):Tt(o,s):r||(o[o.length]=s)}return o}var vr=To(),yr=To(!0);function gr(e,t){return e&&vr(e,t,Cs)}function br(e,t){return e&&yr(e,t,Cs)}function _r(e,t){return Ut(t,(function(t){return Ka(e[t])}))}function wr(e,t){for(var n=0,r=(t=yo(t,e)).length;null!=e&&n<r;)e=e[$i(t[n++])];return n&&n==r?e:o}function Or(e,t,n){var r=t(e);return za(e)?r:Tt(r,n(e))}function jr(e){return null==e?e===o?"[object Undefined]":"[object Null]":Ze&&Ze in Ae(e)?function(e){var t=Se.call(e,Ze),n=e[Ze];try{e[Ze]=o;var r=!0}catch(e){}var i=$e.call(e);return r&&(t?e[Ze]=n:delete e[Ze]),i}(e):function(e){return $e.call(e)}(e)}function Ar(e,t){return e>t}function Pr(e,t){return null!=e&&Se.call(e,t)}function xr(e,t){return null!=e&&t in Ae(e)}function kr(e,t,n){for(var i=n?Ct:Et,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Rt(p,Yt(t))),l=yn(p.length,l),c[u]=!n&&(t||a>=120&&p.length>=120)?new Vn(u&&p):o}p=e[0];var d=-1,h=c[0];e:for(;++d<a&&f.length<l;){var m=p[d],v=t?t(m):m;if(m=n||0!==m?m:0,!(h?Xt(h,v):i(f,v,n))){for(u=s;--u;){var y=c[u];if(!(y?Xt(y,v):i(e[u],v,n)))continue e}h&&h.push(v),f.push(m)}}return f}function Ur(e,t,n){var r=null==(e=Pi(e,t=yo(t,e)))?e:e[$i(Yi(t))];return null==r?o:jt(r,e,n)}function Er(e){return es(e)&&jr(e)==m}function Cr(e,t,n,r,i){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=za(e),u=za(t),c=s?v:pi(e),l=u?v:pi(t),f=(c=c==m?A:c)==A,p=(l=l==m?A:l)==A,d=c==l;if(d&&Ga(e)){if(!Ga(t))return!1;s=!0,f=!1}if(d&&!f)return a||(a=new Gn),s||us(e)?Qo(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!i(new Be(e),new Be(t)));case y:case g:case j:return La(+e,+t);case b:return e.name==t.name&&e.message==t.message;case x:case U:return e==t+"";case O:var s=on;case k:var u=1&r;if(s||(s=un),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var l=Qo(s(e),s(t),r,o,i,a);return a.delete(e),l;case E:if($n)return $n.call(e)==$n.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var h=f&&Se.call(e,"__wrapped__"),_=p&&Se.call(t,"__wrapped__");if(h||_){var w=h?e.value():e,P=_?t.value():t;return a||(a=new Gn),i(w,P,n,r,a)}}return!!d&&(a||(a=new Gn),function(e,t,n,r,i,a){var s=1&n,u=ti(e),c=u.length;if(c!=ti(t).length&&!s)return!1;for(var l=c;l--;){var f=u[l];if(!(s?f in t:Se.call(t,f)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=s;++l<c;){var v=e[f=u[l]],y=t[f];if(r)var g=s?r(y,v,f,t,e,a):r(v,y,f,e,t,a);if(!(g===o?v===y||i(v,y,n,r,a):g)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var b=e.constructor,_=t.constructor;b==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,i,a))}(e,t,n,r,Cr,i))}function Rr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Ae(e);i--;){var u=n[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){var c=(u=n[i])[0],l=e[c],f=u[1];if(s&&u[2]){if(l===o&&!(c in e))return!1}else{var p=new Gn;if(r)var d=r(l,f,c,e,t,p);if(!(d===o?Cr(f,l,3,r,p):d))return!1}}return!0}function Tr(e){return!(!Qa(e)||(t=e,Fe&&Fe in t))&&(Ka(e)?Le:me).test(Di(e));var t}function Sr(e){return"function"==typeof e?e:null==e?nu:"object"==typeof e?za(e)?Nr(e[0],e[1]):Dr(e):fu(e)}function Ir(e){if(!wi(e))return mn(e);var t=[];for(var n in Ae(e))Se.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Fr(e,t){return e<t}function $r(e,t){var n=-1,o=Ha(e)?r(e.length):[];return lr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Dr(e){var t=ui(e);return 1==t.length&&t[0][2]?ji(t[0][0],t[0][1]):function(n){return n===e||Rr(n,e,t)}}function Nr(e,t){return gi(e)&&Oi(t)?ji($i(e),t):function(n){var r=Ps(n,e);return r===o&&r===t?xs(n,e):Cr(t,r,3)}}function Lr(e,t,n,r,i){e!==t&&vr(t,(function(a,s){if(i||(i=new Gn),Qa(a))!function(e,t,n,r,i,a,s){var u=xi(e,n),c=xi(t,n),l=s.get(c);if(l)Zn(e,n,l);else{var f=a?a(u,c,n+"",e,t,s):o,p=f===o;if(p){var d=za(c),h=!d&&Ga(c),m=!d&&!h&&us(c);f=c,d||h||m?za(u)?f=u:Va(u)?f=ko(u):h?(p=!1,f=wo(c,!0)):m?(p=!1,f=jo(c,!0)):f=[]:rs(c)||Ba(c)?(f=u,Ba(u)?f=vs(u):Qa(u)&&!Ka(u)||(f=hi(c))):p=!1}p&&(s.set(c,f),i(f,c,r,a,s),s.delete(c)),Zn(e,n,f)}}(e,t,s,n,Lr,r,i);else{var u=r?r(xi(e,s),a,s+"",e,t,i):o;u===o&&(u=a),Zn(e,s,u)}}),Rs)}function Mr(e,t){var n=e.length;if(n)return vi(t+=t<0?n:0,n)?e[t]:o}function qr(e,t,n){t=t.length?Rt(t,(function(e){return za(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e})):[nu];var r=-1;t=Rt(t,Yt(ai()));var o=$r(e,(function(e,n,o){var i=Rt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var u=Ao(o[r],i[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(o)}function Br(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=wr(e,a);n(s,a)&&Kr(i,yo(a,e),s)}return i}function zr(e,t,n,r){var o=r?Mt:Lt,i=-1,a=t.length,s=e;for(e===t&&(t=ko(t)),n&&(s=Rt(e,Yt(n)));++i<a;)for(var u=0,c=t[i],l=n?n(c):c;(u=o(s,l,u,r))>-1;)s!==e&&Ge.call(s,u,1),Ge.call(e,u,1);return e}function Wr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;vi(o)?Ge.call(e,o,1):uo(e,o)}}return e}function Hr(e,t){return e+dt(_n()*(t-e+1))}function Vr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=dt(t/2))&&(e+=e)}while(t);return n}function Gr(e,t){return Ei(Ai(e,t,nu),e+"")}function Jr(e){return Yn(Ls(e))}function Yr(e,t){var n=Ls(e);return Ti(n,ir(t,0,n.length))}function Kr(e,t,n,r){if(!Qa(e))return e;for(var i=-1,a=(t=yo(t,e)).length,s=a-1,u=e;null!=u&&++i<a;){var c=$i(t[i]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var f=u[c];(l=r?r(f,c,u):o)===o&&(l=Qa(f)?f:vi(t[i+1])?[]:{})}Qn(u,c,l),u=u[c]}return e}var Xr=Un?function(e,t){return Un.set(e,t),e}:nu,Zr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Qs(t),writable:!0})}:nu;function Qr(e){return Ti(Ls(e))}function eo(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function to(e,t){var n;return lr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function no(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!ss(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return ro(e,t,nu,n)}function ro(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,u=null===t,c=ss(t),l=t===o;i<a;){var f=dt((i+a)/2),p=n(e[f]),d=p!==o,h=null===p,m=p==p,v=ss(p);if(s)var y=r||m;else y=l?m&&(r||d):u?m&&d&&(r||!h):c?m&&d&&!h&&(r||!v):!h&&!v&&(r?p<=t:p<t);y?i=f+1:a=f}return yn(a,4294967294)}function oo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!La(s,u)){var u=s;i[o++]=0===a?0:a}}return i}function io(e){return"number"==typeof e?e:ss(e)?p:+e}function ao(e){if("string"==typeof e)return e;if(za(e))return Rt(e,ao)+"";if(ss(e))return Dn?Dn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function so(e,t,n){var r=-1,o=Et,i=e.length,a=!0,s=[],u=s;if(n)a=!1,o=Ct;else if(i>=200){var c=t?null:Go(e);if(c)return un(c);a=!1,o=Xt,u=new Vn}else u=t?[]:s;e:for(;++r<i;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),s.push(l)}else o(u,f,n)||(u!==s&&u.push(f),s.push(l))}return s}function uo(e,t){return null==(e=Pi(e,t=yo(t,e)))||delete e[$i(Yi(t))]}function co(e,t,n,r){return Kr(e,t,n(wr(e,t)),r)}function lo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?eo(e,r?0:i,r?i+1:o):eo(e,r?i+1:0,r?o:i)}function fo(e,t){var n=e;return n instanceof Bn&&(n=n.value()),St(t,(function(e,t){return t.func.apply(t.thisArg,Tt([e],t.args))}),n)}function po(e,t,n){var o=e.length;if(o<2)return o?so(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],u=-1;++u<o;)u!=i&&(a[i]=cr(a[i]||s,e[u],t,n));return so(mr(a,1),t,n)}function ho(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var u=r<a?t[r]:o;n(s,e[r],u)}return s}function mo(e){return Va(e)?e:[]}function vo(e){return"function"==typeof e?e:nu}function yo(e,t){return za(e)?e:gi(e,t)?[e]:Fi(ys(e))}var go=Gr;function bo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:eo(e,t,n)}var _o=at||function(e){return ft.clearTimeout(e)};function wo(e,t){if(t)return e.slice();var n=e.length,r=ze?ze(n):new e.constructor(n);return e.copy(r),r}function Oo(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function jo(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ao(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=ss(e),s=t!==o,u=null===t,c=t==t,l=ss(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||u&&n&&i||!s&&i||!c)return-1}return 0}function Po(e,t,n,o){for(var i=-1,a=e.length,s=n.length,u=-1,c=t.length,l=vn(a-s,0),f=r(c+l),p=!o;++u<c;)f[u]=t[u];for(;++i<s;)(p||i<a)&&(f[n[i]]=e[i]);for(;l--;)f[u++]=e[i++];return f}function xo(e,t,n,o){for(var i=-1,a=e.length,s=-1,u=n.length,c=-1,l=t.length,f=vn(a-u,0),p=r(f+l),d=!o;++i<f;)p[i]=e[i];for(var h=i;++c<l;)p[h+c]=t[c];for(;++s<u;)(d||i<a)&&(p[h+n[s]]=e[i++]);return p}function ko(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Uo(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):o;c===o&&(c=e[u]),i?rr(n,u,c):Qn(n,u,c)}return n}function Eo(e,t){return function(n,r){var o=za(n)?At:tr,i=t?t():{};return o(n,e,ai(r,2),i)}}function Co(e){return Gr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&yi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=Ae(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t}))}function Ro(e,t){return function(n,r){if(null==n)return n;if(!Ha(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ae(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function To(e){return function(t,n,r){for(var o=-1,i=Ae(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}function So(e){return function(t){var n=rn(t=ys(t))?fn(t):o,r=n?n[0]:t.charAt(0),i=n?bo(n,1).join(""):t.slice(1);return r[e]()+i}}function Io(e){return function(t){return St(Ks(Bs(t).replace(Ke,"")),e,"")}}function Fo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Ln(e.prototype),r=e.apply(n,t);return Qa(r)?r:n}}function $o(e){return function(t,n,r){var i=Ae(t);if(!Ha(t)){var a=ai(n,3);t=Cs(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function Do(e){return ei((function(t){var n=t.length,r=n,a=qn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new ke(i);if(a&&!u&&"wrapper"==oi(s))var u=new qn([],!0)}for(r=u?r:n;++r<n;){var c=oi(s=t[r]),l="wrapper"==c?ri(s):o;u=l&&bi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[oi(l[0])].apply(u,l[3]):1==s.length&&bi(s)?u[c]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&za(r))return u.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function No(e,t,n,i,a,s,u,l,f,p){var d=t&c,h=1&t,m=2&t,v=24&t,y=512&t,g=m?o:Fo(e);return function c(){for(var b=arguments.length,_=r(b),w=b;w--;)_[w]=arguments[w];if(v)var O=ii(c),j=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(_,O);if(i&&(_=Po(_,i,a,v)),s&&(_=xo(_,s,u,v)),b-=j,v&&b<p){var A=sn(_,O);return Ho(e,t,No,c.placeholder,n,_,A,l,f,p-b)}var P=h?n:this,x=m?P[e]:e;return b=_.length,l?_=function(e,t){for(var n=e.length,r=yn(t.length,n),i=ko(e);r--;){var a=t[r];e[r]=vi(a,n)?i[a]:o}return e}(_,l):y&&b>1&&_.reverse(),d&&f<b&&(_.length=f),this&&this!==ft&&this instanceof c&&(x=g||Fo(x)),x.apply(P,_)}}function Lo(e,t){return function(n,r){return function(e,t,n,r){return gr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Mo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=ao(n),r=ao(r)):(n=io(n),r=io(r)),i=e(n,r)}return i}}function qo(e){return ei((function(t){return t=Rt(t,Yt(ai())),Gr((function(n){var r=this;return e(t,(function(e){return jt(e,r,n)}))}))}))}function Bo(e,t){var n=(t=t===o?" ":ao(t)).length;if(n<2)return n?Vr(t,e):t;var r=Vr(t,pt(e/ln(t)));return rn(t)?bo(fn(r),0,e).join(""):r.slice(0,e)}function zo(e){return function(t,n,i){return i&&"number"!=typeof i&&yi(t,n,i)&&(n=i=o),t=ps(t),n===o?(n=t,t=0):n=ps(n),function(e,t,n,o){for(var i=-1,a=vn(pt((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:ps(i),e)}}function Wo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function Ho(e,t,n,r,i,a,s,c,l,f){var p=8&t;t|=p?u:64,4&(t&=~(p?64:u))||(t&=-4);var d=[e,t,i,p?a:o,p?s:o,p?o:a,p?o:s,c,l,f],h=n.apply(o,d);return bi(e)&&ki(h,d),h.placeholder=r,Ci(h,e,t)}function Vo(e){var t=je[e];return function(e,n){if(e=ms(e),(n=null==n?0:yn(ds(n),292))&&$t(e)){var r=(ys(e)+"e").split("e");return+((r=(ys(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Go=Pn&&1/un(new Pn([,-0]))[1]==l?function(e){return new Pn(e)}:su;function Jo(e){return function(t){var n=pi(t);return n==O?on(t):n==k?cn(t):function(e,t){return Rt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Yo(e,t,n,a,l,f,p,d){var h=2&t;if(!h&&"function"!=typeof e)throw new ke(i);var m=a?a.length:0;if(m||(t&=-97,a=l=o),p=p===o?p:vn(ds(p),0),d=d===o?d:ds(d),m-=l?l.length:0,64&t){var v=a,y=l;a=l=o}var g=h?o:ri(e),b=[e,t,n,a,l,v,y,f,p,d];if(g&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Po(l,u,t[4]):u,e[4]=l?sn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?xo(l,u,t[6]):u,e[6]=l?sn(e[5],s):t[6]),(u=t[7])&&(e[7]=u),r&c&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(b,g),e=b[0],t=b[1],n=b[2],a=b[3],l=b[4],!(d=b[9]=b[9]===o?h?0:e.length:vn(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||16==t?function(e,t,n){var i=Fo(e);return function a(){for(var s=arguments.length,u=r(s),c=s,l=ii(a);c--;)u[c]=arguments[c];var f=s<3&&u[0]!==l&&u[s-1]!==l?[]:sn(u,l);return(s-=f.length)<n?Ho(e,t,No,a.placeholder,o,u,f,o,o,n-s):jt(this&&this!==ft&&this instanceof a?i:e,this,u)}}(e,t,d):t!=u&&33!=t||l.length?No.apply(o,b):function(e,t,n,o){var i=1&t,a=Fo(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=o.length,f=r(l+u),p=this&&this!==ft&&this instanceof t?a:e;++c<l;)f[c]=o[c];for(;u--;)f[c++]=arguments[++s];return jt(p,i?n:this,f)}}(e,t,n,a);else var _=function(e,t,n){var r=1&t,o=Fo(e);return function t(){return(this&&this!==ft&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Ci((g?Xr:ki)(_,b),e,t)}function Ko(e,t,n,r){return e===o||La(e,Ce[n])&&!Se.call(r,n)?t:e}function Xo(e,t,n,r,i,a){return Qa(e)&&Qa(t)&&(a.set(t,e),Lr(e,t,o,Xo,a),a.delete(t)),e}function Zo(e){return rs(e)?o:e}function Qo(e,t,n,r,i,a){var s=1&n,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var p=-1,d=!0,h=2&n?new Vn:o;for(a.set(e,t),a.set(t,e);++p<u;){var m=e[p],v=t[p];if(r)var y=s?r(v,m,p,t,e,a):r(m,v,p,e,t,a);if(y!==o){if(y)continue;d=!1;break}if(h){if(!Ft(t,(function(e,t){if(!Xt(h,t)&&(m===e||i(m,e,n,r,a)))return h.push(t)}))){d=!1;break}}else if(m!==v&&!i(m,v,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function ei(e){return Ei(Ai(e,o,Wi),e+"")}function ti(e){return Or(e,Cs,li)}function ni(e){return Or(e,Rs,fi)}var ri=Un?function(e){return Un.get(e)}:su;function oi(e){for(var t=e.name+"",n=En[t],r=Se.call(En,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ii(e){return(Se.call(Nn,"placeholder")?Nn:e).placeholder}function ai(){var e=Nn.iteratee||ru;return e=e===ru?Sr:e,arguments.length?e(arguments[0],arguments[1]):e}function si(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ui(e){for(var t=Cs(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Oi(o)]}return t}function ci(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Tr(n)?n:o}var li=mt?function(e){return null==e?[]:(e=Ae(e),Ut(mt(e),(function(t){return Ve.call(e,t)})))}:hu,fi=mt?function(e){for(var t=[];e;)Tt(t,li(e)),e=We(e);return t}:hu,pi=jr;function di(e,t,n){for(var r=-1,o=(t=yo(t,e)).length,i=!1;++r<o;){var a=$i(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Za(o)&&vi(a,o)&&(za(e)||Ba(e))}function hi(e){return"function"!=typeof e.constructor||wi(e)?{}:Ln(We(e))}function mi(e){return za(e)||Ba(e)||!!(Je&&e&&e[Je])}function vi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ye.test(e))&&e>-1&&e%1==0&&e<t}function yi(e,t,n){if(!Qa(n))return!1;var r=typeof t;return!!("number"==r?Ha(n)&&vi(t,n.length):"string"==r&&t in n)&&La(n[t],e)}function gi(e,t){if(za(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ss(e))||Q.test(e)||!Z.test(e)||null!=t&&e in Ae(t)}function bi(e){var t=oi(e),n=Nn[t];if("function"!=typeof n||!(t in Bn.prototype))return!1;if(e===n)return!0;var r=ri(n);return!!r&&e===r[0]}(On&&pi(new On(new ArrayBuffer(1)))!=T||jn&&pi(new jn)!=O||An&&pi(An.resolve())!=P||Pn&&pi(new Pn)!=k||xn&&pi(new xn)!=C)&&(pi=function(e){var t=jr(e),n=t==A?e.constructor:o,r=n?Di(n):"";if(r)switch(r){case Cn:return T;case Rn:return O;case Tn:return P;case Sn:return k;case In:return C}return t});var _i=Re?Ka:mu;function wi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ce)}function Oi(e){return e==e&&!Qa(e)}function ji(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Ae(n))}}function Ai(e,t,n){return t=vn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=vn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var u=r(t+1);++i<t;)u[i]=o[i];return u[t]=n(s),jt(e,this,u)}}function Pi(e,t){return t.length<2?e:wr(e,eo(t,0,-1))}function xi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ki=Ri(Xr),Ui=lt||function(e,t){return ft.setTimeout(e,t)},Ei=Ri(Zr);function Ci(e,t,n){var r=t+"";return Ei(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Pt(h,(function(n){var r="_."+n[0];t&n[1]&&!Et(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Ri(e){var t=0,n=0;return function(){var r=gn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ti(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Hr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Si,Ii,Fi=(Si=Sa((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(le,"$1"):n||e)})),t}),(function(e){return 500===Ii.size&&Ii.clear(),e})),Ii=Si.cache,Si);function $i(e){if("string"==typeof e||ss(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Di(e){if(null!=e){try{return Te.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ni(e){if(e instanceof Bn)return e.clone();var t=new qn(e.__wrapped__,e.__chain__);return t.__actions__=ko(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Li=Gr((function(e,t){return Va(e)?cr(e,mr(t,1,Va,!0)):[]})),Mi=Gr((function(e,t){var n=Yi(t);return Va(n)&&(n=o),Va(e)?cr(e,mr(t,1,Va,!0),ai(n,2)):[]})),qi=Gr((function(e,t){var n=Yi(t);return Va(n)&&(n=o),Va(e)?cr(e,mr(t,1,Va,!0),o,n):[]}));function Bi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ds(n);return o<0&&(o=vn(r+o,0)),Nt(e,ai(t,3),o)}function zi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ds(n),i=n<0?vn(r+i,0):yn(i,r-1)),Nt(e,ai(t,3),i,!0)}function Wi(e){return null!=e&&e.length?mr(e,1):[]}function Hi(e){return e&&e.length?e[0]:o}var Vi=Gr((function(e){var t=Rt(e,mo);return t.length&&t[0]===e[0]?kr(t):[]})),Gi=Gr((function(e){var t=Yi(e),n=Rt(e,mo);return t===Yi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?kr(n,ai(t,2)):[]})),Ji=Gr((function(e){var t=Yi(e),n=Rt(e,mo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?kr(n,o,t):[]}));function Yi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Ki=Gr(Xi);function Xi(e,t){return e&&e.length&&t&&t.length?zr(e,t):e}var Zi=ei((function(e,t){var n=null==e?0:e.length,r=or(e,t);return Wr(e,Rt(t,(function(e){return vi(e,n)?+e:e})).sort(Ao)),r}));function Qi(e){return null==e?e:wn.call(e)}var ea=Gr((function(e){return so(mr(e,1,Va,!0))})),ta=Gr((function(e){var t=Yi(e);return Va(t)&&(t=o),so(mr(e,1,Va,!0),ai(t,2))})),na=Gr((function(e){var t=Yi(e);return t="function"==typeof t?t:o,so(mr(e,1,Va,!0),o,t)}));function ra(e){if(!e||!e.length)return[];var t=0;return e=Ut(e,(function(e){if(Va(e))return t=vn(e.length,t),!0})),Gt(t,(function(t){return Rt(e,zt(t))}))}function oa(e,t){if(!e||!e.length)return[];var n=ra(e);return null==t?n:Rt(n,(function(e){return jt(t,o,e)}))}var ia=Gr((function(e,t){return Va(e)?cr(e,t):[]})),aa=Gr((function(e){return po(Ut(e,Va))})),sa=Gr((function(e){var t=Yi(e);return Va(t)&&(t=o),po(Ut(e,Va),ai(t,2))})),ua=Gr((function(e){var t=Yi(e);return t="function"==typeof t?t:o,po(Ut(e,Va),o,t)})),ca=Gr(ra),la=Gr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,oa(e,n)}));function fa(e){var t=Nn(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var da=ei((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Bn&&vi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pa,args:[i],thisArg:o}),new qn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),ha=Eo((function(e,t,n){Se.call(e,n)?++e[n]:rr(e,n,1)})),ma=$o(Bi),va=$o(zi);function ya(e,t){return(za(e)?Pt:lr)(e,ai(t,3))}function ga(e,t){return(za(e)?xt:fr)(e,ai(t,3))}var ba=Eo((function(e,t,n){Se.call(e,n)?e[n].push(t):rr(e,n,[t])})),_a=Gr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ha(e)?r(e.length):[];return lr(e,(function(e){a[++o]=i?jt(t,e,n):Ur(e,t,n)})),a})),wa=Eo((function(e,t,n){rr(e,n,t)}));function Oa(e,t){return(za(e)?Rt:$r)(e,ai(t,3))}var ja=Eo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Aa=Gr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yi(e,t[0],t[1])?t=[]:n>2&&yi(t[0],t[1],t[2])&&(t=[t[0]]),qr(e,mr(t,1),[])})),Pa=ct||function(){return ft.Date.now()};function xa(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Yo(e,c,o,o,o,o,t)}function ka(e,t){var n;if("function"!=typeof t)throw new ke(i);return e=ds(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ua=Gr((function(e,t,n){var r=1;if(n.length){var o=sn(n,ii(Ua));r|=u}return Yo(e,r,t,n,o)})),Ea=Gr((function(e,t,n){var r=3;if(n.length){var o=sn(n,ii(Ea));r|=u}return Yo(t,r,e,n,o)}));function Ca(e,t,n){var r,a,s,u,c,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new ke(i);function m(t){var n=r,i=a;return r=a=o,f=t,u=e.apply(i,n)}function v(e){var n=e-l;return l===o||n>=t||n<0||d&&e-f>=s}function y(){var e=Pa();if(v(e))return g(e);c=Ui(y,function(e){var n=t-(e-l);return d?yn(n,s-(e-f)):n}(e))}function g(e){return c=o,h&&r?m(e):(r=a=o,u)}function b(){var e=Pa(),n=v(e);if(r=arguments,a=this,l=e,n){if(c===o)return function(e){return f=e,c=Ui(y,t),p?m(e):u}(l);if(d)return _o(c),c=Ui(y,t),m(l)}return c===o&&(c=Ui(y,t)),u}return t=ms(t)||0,Qa(n)&&(p=!!n.leading,s=(d="maxWait"in n)?vn(ms(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){c!==o&&_o(c),f=0,r=l=a=c=o},b.flush=function(){return c===o?u:g(Pa())},b}var Ra=Gr((function(e,t){return ur(e,1,t)})),Ta=Gr((function(e,t,n){return ur(e,ms(t)||0,n)}));function Sa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Sa.Cache||Hn),n}function Ia(e){if("function"!=typeof e)throw new ke(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Sa.Cache=Hn;var Fa=go((function(e,t){var n=(t=1==t.length&&za(t[0])?Rt(t[0],Yt(ai())):Rt(mr(t,1),Yt(ai()))).length;return Gr((function(r){for(var o=-1,i=yn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return jt(e,this,r)}))})),$a=Gr((function(e,t){var n=sn(t,ii($a));return Yo(e,u,o,t,n)})),Da=Gr((function(e,t){var n=sn(t,ii(Da));return Yo(e,64,o,t,n)})),Na=ei((function(e,t){return Yo(e,256,o,o,o,t)}));function La(e,t){return e===t||e!=e&&t!=t}var Ma=Wo(Ar),qa=Wo((function(e,t){return e>=t})),Ba=Er(function(){return arguments}())?Er:function(e){return es(e)&&Se.call(e,"callee")&&!Ve.call(e,"callee")},za=r.isArray,Wa=yt?Yt(yt):function(e){return es(e)&&jr(e)==R};function Ha(e){return null!=e&&Za(e.length)&&!Ka(e)}function Va(e){return es(e)&&Ha(e)}var Ga=vt||mu,Ja=gt?Yt(gt):function(e){return es(e)&&jr(e)==g};function Ya(e){if(!es(e))return!1;var t=jr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Ka(e){if(!Qa(e))return!1;var t=jr(e);return t==_||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xa(e){return"number"==typeof e&&e==ds(e)}function Za(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function Qa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=bt?Yt(bt):function(e){return es(e)&&pi(e)==O};function ns(e){return"number"==typeof e||es(e)&&jr(e)==j}function rs(e){if(!es(e)||jr(e)!=A)return!1;var t=We(e);if(null===t)return!0;var n=Se.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Te.call(n)==De}var os=_t?Yt(_t):function(e){return es(e)&&jr(e)==x},is=wt?Yt(wt):function(e){return es(e)&&pi(e)==k};function as(e){return"string"==typeof e||!za(e)&&es(e)&&jr(e)==U}function ss(e){return"symbol"==typeof e||es(e)&&jr(e)==E}var us=Ot?Yt(Ot):function(e){return es(e)&&Za(e.length)&&!!ot[jr(e)]},cs=Wo(Fr),ls=Wo((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(Ha(e))return as(e)?fn(e):ko(e);if(Ye&&e[Ye])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ye]());var t=pi(e);return(t==O?on:t==k?un:Ls)(e)}function ps(e){return e?(e=ms(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ds(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function hs(e){return e?ir(ds(e),0,d):0}function ms(e){if("number"==typeof e)return e;if(ss(e))return p;if(Qa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=he.test(e);return n||ve.test(e)?ut(e.slice(2),n?2:8):de.test(e)?p:+e}function vs(e){return Uo(e,Rs(e))}function ys(e){return null==e?"":ao(e)}var gs=Co((function(e,t){if(wi(t)||Ha(t))Uo(t,Cs(t),e);else for(var n in t)Se.call(t,n)&&Qn(e,n,t[n])})),bs=Co((function(e,t){Uo(t,Rs(t),e)})),_s=Co((function(e,t,n,r){Uo(t,Rs(t),e,r)})),ws=Co((function(e,t,n,r){Uo(t,Cs(t),e,r)})),Os=ei(or),js=Gr((function(e,t){e=Ae(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&yi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Rs(a),u=-1,c=s.length;++u<c;){var l=s[u],f=e[l];(f===o||La(f,Ce[l])&&!Se.call(e,l))&&(e[l]=a[l])}return e})),As=Gr((function(e){return e.push(o,Xo),jt(Ss,o,e)}));function Ps(e,t,n){var r=null==e?o:wr(e,t);return r===o?n:r}function xs(e,t){return null!=e&&di(e,t,xr)}var ks=Lo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=$e.call(t)),e[t]=n}),Qs(nu)),Us=Lo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=$e.call(t)),Se.call(e,t)?e[t].push(n):e[t]=[n]}),ai),Es=Gr(Ur);function Cs(e){return Ha(e)?Jn(e):Ir(e)}function Rs(e){return Ha(e)?Jn(e,!0):function(e){if(!Qa(e))return function(e){var t=[];if(null!=e)for(var n in Ae(e))t.push(n);return t}(e);var t=wi(e),n=[];for(var r in e)("constructor"!=r||!t&&Se.call(e,r))&&n.push(r);return n}(e)}var Ts=Co((function(e,t,n){Lr(e,t,n)})),Ss=Co((function(e,t,n,r){Lr(e,t,n,r)})),Is=ei((function(e,t){var n={};if(null==e)return n;var r=!1;t=Rt(t,(function(t){return t=yo(t,e),r||(r=t.length>1),t})),Uo(e,ni(e),n),r&&(n=ar(n,7,Zo));for(var o=t.length;o--;)uo(n,t[o]);return n})),Fs=ei((function(e,t){return null==e?{}:function(e,t){return Br(e,t,(function(t,n){return xs(e,n)}))}(e,t)}));function $s(e,t){if(null==e)return{};var n=Rt(ni(e),(function(e){return[e]}));return t=ai(t),Br(e,n,(function(e,n){return t(e,n[0])}))}var Ds=Jo(Cs),Ns=Jo(Rs);function Ls(e){return null==e?[]:Kt(e,Cs(e))}var Ms=Io((function(e,t,n){return t=t.toLowerCase(),e+(n?qs(t):t)}));function qs(e){return Ys(ys(e).toLowerCase())}function Bs(e){return(e=ys(e))&&e.replace(ge,en).replace(Xe,"")}var zs=Io((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ws=Io((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Hs=So("toLowerCase"),Vs=Io((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Gs=Io((function(e,t,n){return e+(n?" ":"")+Ys(t)})),Js=Io((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ys=So("toUpperCase");function Ks(e,t,n){return e=ys(e),(t=n?o:t)===o?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Xs=Gr((function(e,t){try{return jt(e,o,t)}catch(e){return Ya(e)?e:new we(e)}})),Zs=ei((function(e,t){return Pt(t,(function(t){t=$i(t),rr(e,t,Ua(e[t],e))})),e}));function Qs(e){return function(){return e}}var eu=Do(),tu=Do(!0);function nu(e){return e}function ru(e){return Sr("function"==typeof e?e:ar(e,1))}var ou=Gr((function(e,t){return function(n){return Ur(n,e,t)}})),iu=Gr((function(e,t){return function(n){return Ur(e,n,t)}}));function au(e,t,n){var r=Cs(t),o=_r(t,r);null!=n||Qa(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=_r(t,Cs(t)));var i=!(Qa(n)&&"chain"in n&&!n.chain),a=Ka(e);return Pt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=ko(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Tt([this.value()],arguments))})})),e}function su(){}var uu=qo(Rt),cu=qo(kt),lu=qo(Ft);function fu(e){return gi(e)?zt($i(e)):function(e){return function(t){return wr(t,e)}}(e)}var pu=zo(),du=zo(!0);function hu(){return[]}function mu(){return!1}var vu,yu=Mo((function(e,t){return e+t}),0),gu=Vo("ceil"),bu=Mo((function(e,t){return e/t}),1),_u=Vo("floor"),wu=Mo((function(e,t){return e*t}),1),Ou=Vo("round"),ju=Mo((function(e,t){return e-t}),0);return Nn.after=function(e,t){if("function"!=typeof t)throw new ke(i);return e=ds(e),function(){if(--e<1)return t.apply(this,arguments)}},Nn.ary=xa,Nn.assign=gs,Nn.assignIn=bs,Nn.assignInWith=_s,Nn.assignWith=ws,Nn.at=Os,Nn.before=ka,Nn.bind=Ua,Nn.bindAll=Zs,Nn.bindKey=Ea,Nn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return za(e)?e:[e]},Nn.chain=fa,Nn.chunk=function(e,t,n){t=(n?yi(e,t,n):t===o)?1:vn(ds(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=r(pt(i/t));a<i;)u[s++]=eo(e,a,a+=t);return u},Nn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Nn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Tt(za(n)?ko(n):[n],mr(t,1))},Nn.cond=function(e){var t=null==e?0:e.length,n=ai();return e=t?Rt(e,(function(e){if("function"!=typeof e[1])throw new ke(i);return[n(e[0]),e[1]]})):[],Gr((function(n){for(var r=-1;++r<t;){var o=e[r];if(jt(o[0],this,n))return jt(o[1],this,n)}}))},Nn.conforms=function(e){return function(e){var t=Cs(e);return function(n){return sr(n,e,t)}}(ar(e,1))},Nn.constant=Qs,Nn.countBy=ha,Nn.create=function(e,t){var n=Ln(e);return null==t?n:nr(n,t)},Nn.curry=function e(t,n,r){var i=Yo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Nn.curryRight=function e(t,n,r){var i=Yo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Nn.debounce=Ca,Nn.defaults=js,Nn.defaultsDeep=As,Nn.defer=Ra,Nn.delay=Ta,Nn.difference=Li,Nn.differenceBy=Mi,Nn.differenceWith=qi,Nn.drop=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,(t=n||t===o?1:ds(t))<0?0:t,r):[]},Nn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,0,(t=r-(t=n||t===o?1:ds(t)))<0?0:t):[]},Nn.dropRightWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!0,!0):[]},Nn.dropWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!0):[]},Nn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&yi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ds(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ds(r))<0&&(r+=i),r=n>r?0:hs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Nn.filter=function(e,t){return(za(e)?Ut:hr)(e,ai(t,3))},Nn.flatMap=function(e,t){return mr(Oa(e,t),1)},Nn.flatMapDeep=function(e,t){return mr(Oa(e,t),l)},Nn.flatMapDepth=function(e,t,n){return n=n===o?1:ds(n),mr(Oa(e,t),n)},Nn.flatten=Wi,Nn.flattenDeep=function(e){return null!=e&&e.length?mr(e,l):[]},Nn.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===o?1:ds(t)):[]},Nn.flip=function(e){return Yo(e,512)},Nn.flow=eu,Nn.flowRight=tu,Nn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Nn.functions=function(e){return null==e?[]:_r(e,Cs(e))},Nn.functionsIn=function(e){return null==e?[]:_r(e,Rs(e))},Nn.groupBy=ba,Nn.initial=function(e){return null!=e&&e.length?eo(e,0,-1):[]},Nn.intersection=Vi,Nn.intersectionBy=Gi,Nn.intersectionWith=Ji,Nn.invert=ks,Nn.invertBy=Us,Nn.invokeMap=_a,Nn.iteratee=ru,Nn.keyBy=wa,Nn.keys=Cs,Nn.keysIn=Rs,Nn.map=Oa,Nn.mapKeys=function(e,t){var n={};return t=ai(t,3),gr(e,(function(e,r,o){rr(n,t(e,r,o),e)})),n},Nn.mapValues=function(e,t){var n={};return t=ai(t,3),gr(e,(function(e,r,o){rr(n,r,t(e,r,o))})),n},Nn.matches=function(e){return Dr(ar(e,1))},Nn.matchesProperty=function(e,t){return Nr(e,ar(t,1))},Nn.memoize=Sa,Nn.merge=Ts,Nn.mergeWith=Ss,Nn.method=ou,Nn.methodOf=iu,Nn.mixin=au,Nn.negate=Ia,Nn.nthArg=function(e){return e=ds(e),Gr((function(t){return Mr(t,e)}))},Nn.omit=Is,Nn.omitBy=function(e,t){return $s(e,Ia(ai(t)))},Nn.once=function(e){return ka(2,e)},Nn.orderBy=function(e,t,n,r){return null==e?[]:(za(t)||(t=null==t?[]:[t]),za(n=r?o:n)||(n=null==n?[]:[n]),qr(e,t,n))},Nn.over=uu,Nn.overArgs=Fa,Nn.overEvery=cu,Nn.overSome=lu,Nn.partial=$a,Nn.partialRight=Da,Nn.partition=ja,Nn.pick=Fs,Nn.pickBy=$s,Nn.property=fu,Nn.propertyOf=function(e){return function(t){return null==e?o:wr(e,t)}},Nn.pull=Ki,Nn.pullAll=Xi,Nn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?zr(e,t,ai(n,2)):e},Nn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?zr(e,t,o,n):e},Nn.pullAt=Zi,Nn.range=pu,Nn.rangeRight=du,Nn.rearg=Na,Nn.reject=function(e,t){return(za(e)?Ut:hr)(e,Ia(ai(t,3)))},Nn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ai(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Wr(e,o),n},Nn.rest=function(e,t){if("function"!=typeof e)throw new ke(i);return Gr(e,t=t===o?t:ds(t))},Nn.reverse=Qi,Nn.sampleSize=function(e,t,n){return t=(n?yi(e,t,n):t===o)?1:ds(t),(za(e)?Kn:Yr)(e,t)},Nn.set=function(e,t,n){return null==e?e:Kr(e,t,n)},Nn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Kr(e,t,n,r)},Nn.shuffle=function(e){return(za(e)?Xn:Qr)(e)},Nn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&yi(e,t,n)?(t=0,n=r):(t=null==t?0:ds(t),n=n===o?r:ds(n)),eo(e,t,n)):[]},Nn.sortBy=Aa,Nn.sortedUniq=function(e){return e&&e.length?oo(e):[]},Nn.sortedUniqBy=function(e,t){return e&&e.length?oo(e,ai(t,2)):[]},Nn.split=function(e,t,n){return n&&"number"!=typeof n&&yi(e,t,n)&&(t=n=o),(n=n===o?d:n>>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=ao(t))&&rn(e)?bo(fn(e),0,n):e.split(t,n):[]},Nn.spread=function(e,t){if("function"!=typeof e)throw new ke(i);return t=null==t?0:vn(ds(t),0),Gr((function(n){var r=n[t],o=bo(n,0,t);return r&&Tt(o,r),jt(e,this,o)}))},Nn.tail=function(e){var t=null==e?0:e.length;return t?eo(e,1,t):[]},Nn.take=function(e,t,n){return e&&e.length?eo(e,0,(t=n||t===o?1:ds(t))<0?0:t):[]},Nn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,(t=r-(t=n||t===o?1:ds(t)))<0?0:t,r):[]},Nn.takeRightWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!1,!0):[]},Nn.takeWhile=function(e,t){return e&&e.length?lo(e,ai(t,3)):[]},Nn.tap=function(e,t){return t(e),e},Nn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ke(i);return Qa(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ca(e,t,{leading:r,maxWait:t,trailing:o})},Nn.thru=pa,Nn.toArray=fs,Nn.toPairs=Ds,Nn.toPairsIn=Ns,Nn.toPath=function(e){return za(e)?Rt(e,$i):ss(e)?[e]:ko(Fi(ys(e)))},Nn.toPlainObject=vs,Nn.transform=function(e,t,n){var r=za(e),o=r||Ga(e)||us(e);if(t=ai(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Qa(e)&&Ka(i)?Ln(We(e)):{}}return(o?Pt:gr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Nn.unary=function(e){return xa(e,1)},Nn.union=ea,Nn.unionBy=ta,Nn.unionWith=na,Nn.uniq=function(e){return e&&e.length?so(e):[]},Nn.uniqBy=function(e,t){return e&&e.length?so(e,ai(t,2)):[]},Nn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?so(e,o,t):[]},Nn.unset=function(e,t){return null==e||uo(e,t)},Nn.unzip=ra,Nn.unzipWith=oa,Nn.update=function(e,t,n){return null==e?e:co(e,t,vo(n))},Nn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:co(e,t,vo(n),r)},Nn.values=Ls,Nn.valuesIn=function(e){return null==e?[]:Kt(e,Rs(e))},Nn.without=ia,Nn.words=Ks,Nn.wrap=function(e,t){return $a(vo(t),e)},Nn.xor=aa,Nn.xorBy=sa,Nn.xorWith=ua,Nn.zip=ca,Nn.zipObject=function(e,t){return ho(e||[],t||[],Qn)},Nn.zipObjectDeep=function(e,t){return ho(e||[],t||[],Kr)},Nn.zipWith=la,Nn.entries=Ds,Nn.entriesIn=Ns,Nn.extend=bs,Nn.extendWith=_s,au(Nn,Nn),Nn.add=yu,Nn.attempt=Xs,Nn.camelCase=Ms,Nn.capitalize=qs,Nn.ceil=gu,Nn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ms(n))==n?n:0),t!==o&&(t=(t=ms(t))==t?t:0),ir(ms(e),t,n)},Nn.clone=function(e){return ar(e,4)},Nn.cloneDeep=function(e){return ar(e,5)},Nn.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:o)},Nn.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:o)},Nn.conformsTo=function(e,t){return null==t||sr(e,t,Cs(t))},Nn.deburr=Bs,Nn.defaultTo=function(e,t){return null==e||e!=e?t:e},Nn.divide=bu,Nn.endsWith=function(e,t,n){e=ys(e),t=ao(t);var r=e.length,i=n=n===o?r:ir(ds(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Nn.eq=La,Nn.escape=function(e){return(e=ys(e))&&J.test(e)?e.replace(V,tn):e},Nn.escapeRegExp=function(e){return(e=ys(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Nn.every=function(e,t,n){var r=za(e)?kt:pr;return n&&yi(e,t,n)&&(t=o),r(e,ai(t,3))},Nn.find=ma,Nn.findIndex=Bi,Nn.findKey=function(e,t){return Dt(e,ai(t,3),gr)},Nn.findLast=va,Nn.findLastIndex=zi,Nn.findLastKey=function(e,t){return Dt(e,ai(t,3),br)},Nn.floor=_u,Nn.forEach=ya,Nn.forEachRight=ga,Nn.forIn=function(e,t){return null==e?e:vr(e,ai(t,3),Rs)},Nn.forInRight=function(e,t){return null==e?e:yr(e,ai(t,3),Rs)},Nn.forOwn=function(e,t){return e&&gr(e,ai(t,3))},Nn.forOwnRight=function(e,t){return e&&br(e,ai(t,3))},Nn.get=Ps,Nn.gt=Ma,Nn.gte=qa,Nn.has=function(e,t){return null!=e&&di(e,t,Pr)},Nn.hasIn=xs,Nn.head=Hi,Nn.identity=nu,Nn.includes=function(e,t,n,r){e=Ha(e)?e:Ls(e),n=n&&!r?ds(n):0;var o=e.length;return n<0&&(n=vn(o+n,0)),as(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Lt(e,t,n)>-1},Nn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ds(n);return o<0&&(o=vn(r+o,0)),Lt(e,t,o)},Nn.inRange=function(e,t,n){return t=ps(t),n===o?(n=t,t=0):n=ps(n),function(e,t,n){return e>=yn(t,n)&&e<vn(t,n)}(e=ms(e),t,n)},Nn.invoke=Es,Nn.isArguments=Ba,Nn.isArray=za,Nn.isArrayBuffer=Wa,Nn.isArrayLike=Ha,Nn.isArrayLikeObject=Va,Nn.isBoolean=function(e){return!0===e||!1===e||es(e)&&jr(e)==y},Nn.isBuffer=Ga,Nn.isDate=Ja,Nn.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},Nn.isEmpty=function(e){if(null==e)return!0;if(Ha(e)&&(za(e)||"string"==typeof e||"function"==typeof e.splice||Ga(e)||us(e)||Ba(e)))return!e.length;var t=pi(e);if(t==O||t==k)return!e.size;if(wi(e))return!Ir(e).length;for(var n in e)if(Se.call(e,n))return!1;return!0},Nn.isEqual=function(e,t){return Cr(e,t)},Nn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Cr(e,t,o,n):!!r},Nn.isError=Ya,Nn.isFinite=function(e){return"number"==typeof e&&$t(e)},Nn.isFunction=Ka,Nn.isInteger=Xa,Nn.isLength=Za,Nn.isMap=ts,Nn.isMatch=function(e,t){return e===t||Rr(e,t,ui(t))},Nn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Rr(e,t,ui(t),n)},Nn.isNaN=function(e){return ns(e)&&e!=+e},Nn.isNative=function(e){if(_i(e))throw new we("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Tr(e)},Nn.isNil=function(e){return null==e},Nn.isNull=function(e){return null===e},Nn.isNumber=ns,Nn.isObject=Qa,Nn.isObjectLike=es,Nn.isPlainObject=rs,Nn.isRegExp=os,Nn.isSafeInteger=function(e){return Xa(e)&&e>=-9007199254740991&&e<=f},Nn.isSet=is,Nn.isString=as,Nn.isSymbol=ss,Nn.isTypedArray=us,Nn.isUndefined=function(e){return e===o},Nn.isWeakMap=function(e){return es(e)&&pi(e)==C},Nn.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==jr(e)},Nn.join=function(e,t){return null==e?"":Wt.call(e,t)},Nn.kebabCase=zs,Nn.last=Yi,Nn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ds(n))<0?vn(r+i,0):yn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Nt(e,qt,i,!0)},Nn.lowerCase=Ws,Nn.lowerFirst=Hs,Nn.lt=cs,Nn.lte=ls,Nn.max=function(e){return e&&e.length?dr(e,nu,Ar):o},Nn.maxBy=function(e,t){return e&&e.length?dr(e,ai(t,2),Ar):o},Nn.mean=function(e){return Bt(e,nu)},Nn.meanBy=function(e,t){return Bt(e,ai(t,2))},Nn.min=function(e){return e&&e.length?dr(e,nu,Fr):o},Nn.minBy=function(e,t){return e&&e.length?dr(e,ai(t,2),Fr):o},Nn.stubArray=hu,Nn.stubFalse=mu,Nn.stubObject=function(){return{}},Nn.stubString=function(){return""},Nn.stubTrue=function(){return!0},Nn.multiply=wu,Nn.nth=function(e,t){return e&&e.length?Mr(e,ds(t)):o},Nn.noConflict=function(){return ft._===this&&(ft._=Ne),this},Nn.noop=su,Nn.now=Pa,Nn.pad=function(e,t,n){e=ys(e);var r=(t=ds(t))?ln(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Bo(dt(o),n)+e+Bo(pt(o),n)},Nn.padEnd=function(e,t,n){e=ys(e);var r=(t=ds(t))?ln(e):0;return t&&r<t?e+Bo(t-r,n):e},Nn.padStart=function(e,t,n){e=ys(e);var r=(t=ds(t))?ln(e):0;return t&&r<t?Bo(t-r,n)+e:e},Nn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(ys(e).replace(re,""),t||0)},Nn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&yi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=ps(e),t===o?(t=e,e=0):t=ps(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=_n();return yn(e+i*(t-e+st("1e-"+((i+"").length-1))),t)}return Hr(e,t)},Nn.reduce=function(e,t,n){var r=za(e)?St:Ht,o=arguments.length<3;return r(e,ai(t,4),n,o,lr)},Nn.reduceRight=function(e,t,n){var r=za(e)?It:Ht,o=arguments.length<3;return r(e,ai(t,4),n,o,fr)},Nn.repeat=function(e,t,n){return t=(n?yi(e,t,n):t===o)?1:ds(t),Vr(ys(e),t)},Nn.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Nn.result=function(e,t,n){var r=-1,i=(t=yo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[$i(t[r])];a===o&&(r=i,a=n),e=Ka(a)?a.call(e):a}return e},Nn.round=Ou,Nn.runInContext=e,Nn.sample=function(e){return(za(e)?Yn:Jr)(e)},Nn.size=function(e){if(null==e)return 0;if(Ha(e))return as(e)?ln(e):e.length;var t=pi(e);return t==O||t==k?e.size:Ir(e).length},Nn.snakeCase=Vs,Nn.some=function(e,t,n){var r=za(e)?Ft:to;return n&&yi(e,t,n)&&(t=o),r(e,ai(t,3))},Nn.sortedIndex=function(e,t){return no(e,t)},Nn.sortedIndexBy=function(e,t,n){return ro(e,t,ai(n,2))},Nn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=no(e,t);if(r<n&&La(e[r],t))return r}return-1},Nn.sortedLastIndex=function(e,t){return no(e,t,!0)},Nn.sortedLastIndexBy=function(e,t,n){return ro(e,t,ai(n,2),!0)},Nn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=no(e,t,!0)-1;if(La(e[n],t))return n}return-1},Nn.startCase=Gs,Nn.startsWith=function(e,t,n){return e=ys(e),n=null==n?0:ir(ds(n),0,e.length),t=ao(t),e.slice(n,n+t.length)==t},Nn.subtract=ju,Nn.sum=function(e){return e&&e.length?Vt(e,nu):0},Nn.sumBy=function(e,t){return e&&e.length?Vt(e,ai(t,2)):0},Nn.template=function(e,t,n){var r=Nn.templateSettings;n&&yi(e,t,n)&&(t=o),e=ys(e),t=_s({},t,r,Ko);var i,a,s=_s({},t.imports,r.imports,Ko),u=Cs(s),c=Kt(s,u),l=0,f=t.interpolate||be,p="__p += '",d=Pe((t.escape||be).source+"|"+f.source+"|"+(f===X?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Se.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(d,(function(t,n,r,o,s,u){return r||(r=o),p+=e.slice(l,u).replace(_e,nn),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),p+="';\n";var m=Se.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new we("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(B,""):p).replace(z,"$1").replace(W,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=Xs((function(){return Oe(u,h+"return "+p).apply(o,c)}));if(v.source=p,Ya(v))throw v;return v},Nn.times=function(e,t){if((e=ds(e))<1||e>f)return[];var n=d,r=yn(e,d);t=ai(t),e-=d;for(var o=Gt(r,t);++n<e;)t(n);return o},Nn.toFinite=ps,Nn.toInteger=ds,Nn.toLength=hs,Nn.toLower=function(e){return ys(e).toLowerCase()},Nn.toNumber=ms,Nn.toSafeInteger=function(e){return e?ir(ds(e),-9007199254740991,f):0===e?e:0},Nn.toString=ys,Nn.toUpper=function(e){return ys(e).toUpperCase()},Nn.trim=function(e,t,n){if((e=ys(e))&&(n||t===o))return Jt(e);if(!e||!(t=ao(t)))return e;var r=fn(e),i=fn(t);return bo(r,Zt(r,i),Qt(r,i)+1).join("")},Nn.trimEnd=function(e,t,n){if((e=ys(e))&&(n||t===o))return e.slice(0,pn(e)+1);if(!e||!(t=ao(t)))return e;var r=fn(e);return bo(r,0,Qt(r,fn(t))+1).join("")},Nn.trimStart=function(e,t,n){if((e=ys(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=ao(t)))return e;var r=fn(e);return bo(r,Zt(r,fn(t))).join("")},Nn.truncate=function(e,t){var n=30,r="...";if(Qa(t)){var i="separator"in t?t.separator:i;n="length"in t?ds(t.length):n,r="omission"in t?ao(t.omission):r}var a=(e=ys(e)).length;if(rn(e)){var s=fn(e);a=s.length}if(n>=a)return e;var u=n-ln(r);if(u<1)return r;var c=s?bo(s,0,u).join(""):e.slice(0,u);if(i===o)return c+r;if(s&&(u+=c.length-u),os(i)){if(e.slice(u).search(i)){var l,f=c;for(i.global||(i=Pe(i.source,ys(pe.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var p=l.index;c=c.slice(0,p===o?u:p)}}else if(e.indexOf(ao(i),u)!=u){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+r},Nn.unescape=function(e){return(e=ys(e))&&G.test(e)?e.replace(H,dn):e},Nn.uniqueId=function(e){var t=++Ie;return ys(e)+t},Nn.upperCase=Js,Nn.upperFirst=Ys,Nn.each=ya,Nn.eachRight=ga,Nn.first=Hi,au(Nn,(vu={},gr(Nn,(function(e,t){Se.call(Nn.prototype,t)||(vu[t]=e)})),vu),{chain:!1}),Nn.VERSION="4.17.21",Pt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Nn[e].placeholder=Nn})),Pt(["drop","take"],(function(e,t){Bn.prototype[e]=function(n){n=n===o?1:vn(ds(n),0);var r=this.__filtered__&&!t?new Bn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},Bn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Pt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Bn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ai(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Pt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Bn.prototype[e]=function(){return this[n](1).value()[0]}})),Pt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Bn.prototype[e]=function(){return this.__filtered__?new Bn(this):this[n](1)}})),Bn.prototype.compact=function(){return this.filter(nu)},Bn.prototype.find=function(e){return this.filter(e).head()},Bn.prototype.findLast=function(e){return this.reverse().find(e)},Bn.prototype.invokeMap=Gr((function(e,t){return"function"==typeof e?new Bn(this):this.map((function(n){return Ur(n,e,t)}))})),Bn.prototype.reject=function(e){return this.filter(Ia(ai(e)))},Bn.prototype.slice=function(e,t){e=ds(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Bn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ds(t))<0?n.dropRight(-t):n.take(t-e)),n)},Bn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Bn.prototype.toArray=function(){return this.take(d)},gr(Bn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Nn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Nn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Bn,c=s[0],l=u||za(t),f=function(e){var t=i.apply(Nn,Tt([e],s));return r&&p?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,m=u&&!d;if(!a&&l){t=m?t:new Bn(this);var v=e.apply(t,s);return v.__actions__.push({func:pa,args:[f],thisArg:o}),new qn(v,p)}return h&&m?e.apply(this,s):(v=this.thru(f),h?r?v.value()[0]:v.value():v)})})),Pt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ue[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Nn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(za(o)?o:[],e)}return this[n]((function(n){return t.apply(za(n)?n:[],e)}))}})),gr(Bn.prototype,(function(e,t){var n=Nn[t];if(n){var r=n.name+"";Se.call(En,r)||(En[r]=[]),En[r].push({name:t,func:n})}})),En[No(o,2).name]=[{name:"wrapper",func:o}],Bn.prototype.clone=function(){var e=new Bn(this.__wrapped__);return e.__actions__=ko(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ko(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ko(this.__views__),e},Bn.prototype.reverse=function(){if(this.__filtered__){var e=new Bn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Bn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=za(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yn(t,e+a);break;case"takeRight":e=vn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,f=l.length,p=0,d=yn(u,this.__takeCount__);if(!n||!r&&o==u&&d==u)return fo(e,this.__actions__);var h=[];e:for(;u--&&p<d;){for(var m=-1,v=e[c+=t];++m<f;){var y=l[m],g=y.iteratee,b=y.type,_=g(v);if(2==b)v=_;else if(!_){if(1==b)continue e;break e}}h[p++]=v}return h},Nn.prototype.at=da,Nn.prototype.chain=function(){return fa(this)},Nn.prototype.commit=function(){return new qn(this.value(),this.__chain__)},Nn.prototype.next=function(){this.__values__===o&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Nn.prototype.plant=function(e){for(var t,n=this;n instanceof Mn;){var r=Ni(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Nn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Bn){var t=e;return this.__actions__.length&&(t=new Bn(this)),(t=t.reverse()).__actions__.push({func:pa,args:[Qi],thisArg:o}),new qn(t,this.__chain__)}return this.thru(Qi)},Nn.prototype.toJSON=Nn.prototype.valueOf=Nn.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},Nn.prototype.first=Nn.prototype.head,Ye&&(Nn.prototype[Ye]=function(){return this}),Nn}();ft._=hn,(r=function(){return hn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},13222:function(e,t,n){var r=n(77556);e.exports=function(e){return null==e?"":r(e)}},44826:function(e,t,n){var r=n(77556),o=n(54128),i=n(28754),a=n(23875),s=n(28380),u=n(63912),c=n(13222);e.exports=function(e,t,n){if((e=c(e))&&(n||void 0===t))return o(e);if(!e||!(t=r(t)))return e;var l=u(e),f=u(t),p=s(l,f),d=a(l,f)+1;return i(l,p,d).join("")}},15993:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=t.FormioPathType=void 0;const o=r(n(42681)),i=n(60554),a=n(2543),s=n(96690),u=n(17112),c=r(n(30228)),l=r(n(81018)),{fetch:f,Headers:p}=(0,o.default)(),d=r(n(23370));var h;!function(e){e.Subdirectories="Subdirectories",e.Subdomains="Subdomains"}(h||(t.FormioPathType=h={}));class m{constructor(e,t={}){if(this.path=e,this.options=t,this.base="",this.projectsUrl="",this.projectUrl="",this.projectId="",this.roleUrl="",this.rolesUrl="",this.roleId="",this.formUrl="",this.formsUrl="",this.formId="",this.submissionsUrl="",this.submissionUrl="",this.submissionId="",this.actionsUrl="",this.actionId="",this.actionUrl="",this.vsUrl="",this.vId="",this.vUrl="",this.query="",this.noProject=!1,!(this instanceof m))return new m(e);if(t.useSessionToken&&m.useSessionToken(t),t.hasOwnProperty("base")&&t.base)this.base=t.base;else if(m.baseUrl)this.base=m.baseUrl;else if(window&&window.location){const e=window.location.href.match(/http[s]?:\/\/api./);this.base=e?e[0]:window.location.origin}if(!e)return this.projectUrl=m.projectUrl||`${this.base}/project`,this.projectsUrl=`${this.base}/project`,this.projectId="",void(this.query="");t.hasOwnProperty("project")&&t.project&&(this.projectUrl=t.project);const n=this.projectUrl||m.projectUrl,r=/(^|\/)(project)($|\/[^/]+)/,o=-1!==e.search(r);n&&this.base===n&&!o&&(this.noProject=!0,this.projectUrl=this.base),0!==e.indexOf("http")&&0!==e.indexOf("//")&&(e=this.base+e);const i=this.getUrlParts(e);let a="",s=[];if(i){a=i[1]+i[2];const t=(e=i.length>3?i[3]:"").split("?");t.length>1&&(e=t[0],this.query=`?${t[1]}`)}const u=(t,n)=>{this[`${t}sUrl`]=`${n}/${t}`;const r=new RegExp(`/${t}/([^/]+)`);return e&&-1!==e.search(r)&&(s=e.match(r),this[`${t}Url`]=s?n+s[0]:"",this[`${t}Id`]=s.length>1?s[1]:"",n+=s[0]),n},c=(e,t,n)=>{for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];if(Array.isArray(o))c(o,t,!0);else{const e=u(o,t);t=n?t:e}}};if(!this.projectUrl||this.projectUrl===this.base)if(this.projectUrl||o||"Subdirectories"!==m.pathType)this.projectUrl=a;else{const e=`^${a.replace(/\//g,"\\/")}.[^/]+`,t=n.match(new RegExp(e));this.projectUrl=t?t[0]:a}let l=!1;if(m.pathType&&(l="Subdomains"!==m.pathType),!this.noProject){if(o)c(["project"],a),e=e.replace(r,"");else if(a===this.base){if(i&&i.length>3&&e.split("/").length>1){const t=e.match(/.json/),n=e.split("/");if(t)this.projectUrl=a;else{n.shift();const t=n.shift();t&&(this.projectId=t,e=`/${n.join("/")}`,this.projectUrl=`${a}/${this.projectId}`)}}}else i&&i.length>2&&(i[2].split(".").length>2||a.includes("localhost"))&&!l&&(this.projectUrl=a,this.projectId=i[2].split(".")[0]);this.projectsUrl=this.projectsUrl||`${this.base}/project`}if(c(["role"],this.projectUrl),/(^|\/)(form)($|\/)/.test(e))c(["form",["submission","action","v"]],this.projectUrl);else{const t=new RegExp("/(submission|action|v)($|/.*)"),n=e.match(t);n&&n.length>1&&(this.pathType=n[1]),e=(e=e.replace(t,"")).replace(/\/$/,""),this.formsUrl=`${this.projectUrl}/form`,this.formUrl=e?this.projectUrl+e:"",this.formId=e.replace(/^\/+|\/+$/g,"");const r=["submission","action","v"];for(const t in r)if(r.hasOwnProperty(t)){const o=r[t];this[`${o}sUrl`]=`${this.projectUrl+e}/${o}`,this.pathType===o&&n&&n.length>2&&n[2]&&(this[`${o}Id`]=n[2].replace(/^\/+|\/+$/g,""),this[`${o}Url`]=this.projectUrl+e+n[0])}}m.projectUrlSet||(m.projectUrl=this.projectUrl)}delete(e,t){const n=`${e}Url`;return this[`${e}Id`]?(m.cache={},this.makeRequest(e,this[n],"delete",null,t)):Promise.reject("Nothing to delete")}index(e,t,n){const r=`${e}Url`;return(t=t||"")&&(0,a.isObject)(t)&&(t=`?${m.serialize(t.params)}`),this.makeRequest(e,this[r]+t,"get",null,n)}save(e,t,n){const r=`${e}Id`,o=`${e}Url`,i=this[r]||t._id?"put":"post";let a=this[r]?this[o]:this[`${e}sUrl`];return this[r]||!t._id||"put"!==i||a.includes(t._id)||(a+=`/${t._id}`),m.cache={},this.makeRequest(e,a+this.query,i,t,n)}load(e,t,n){const r=`${e}Id`,o=`${e}Url`;if(t&&(0,a.isObject)(t)&&(t=m.serialize(t.params)),t=t?this.query?`${this.query}&${t}`:`?${t}`:this.query,!this[r])return Promise.reject(`Missing ${r}`);let i=this[o]+t;return"form"!==e||isNaN(parseInt(this.vId))||(i+=-1===i.indexOf("?")?"?":"&",i+=`formRevision=${this.vId}`),this.makeRequest(e,i,"get",null,n)}makeRequest(e,t,n,r,o){return m.makeRequest(this,e,t,n,r,o)}loadProject(e,t){return this.load("project",e,t)}saveProject(e,t){return this.save("project",e,t)}deleteProject(e){return this.delete("project",e)}static loadProjects(e,t){return e=e||"",(0,a.isObject)(e)&&(e=`?${m.serialize(e.params)}`),m.makeStaticRequest(`${m.baseUrl}/project${e}`,"GET",null,t)}loadRole(e){return this.load("role",null,e)}saveRole(e,t){return this.save("role",e,t)}deleteRole(e){return this.delete("role",e)}loadRoles(e){return this.index("roles",null,e)}loadForm(e,t){return this.load("form",e,t).then((n=>!n.revisions||isNaN(parseInt(this.vId))||"current"===n.revisions&&this.submissionId||n._vid==this.vId||n.revisionId===this.vId?n:(e&&(0,a.isObject)(e)&&(e=m.serialize(e.params)),e=e?this.query?`${this.query}&${e}`:`?${e}`:this.query,this.makeRequest("form",this.vUrl+e,"get",null,t).then((e=>(n._vid=e._vid,n.components=e.components,n.settings=e.settings,n.revisionId=e.revisionId,Object.assign({},n)))).catch((()=>Object.assign({},n))))))}saveForm(e,t){return this.save("form",e,t)}deleteForm(e){return this.delete("form",e)}loadForms(e,t){return this.index("forms",e,t)}loadSubmission(e,t){return this.load("submission",e,t).then((e=>(this.vId=e._frid||e._fvid,this.vUrl=`${this.formUrl}/v/${this.vId}`,e)))}saveSubmission(e,t){return isNaN(parseInt(this.vId))||e._fvid||(e._fvid=this.vId),this.save("submission",e,t)}deleteSubmission(e){return this.delete("submission",e)}loadSubmissions(e,t){return this.index("submissions",e,t)}loadAction(e,t){return this.load("action",e,t)}saveAction(e,t){return this.save("action",e,t)}deleteAction(e){return this.delete("action",e)}loadActions(e,t){return this.index("actions",e,t)}availableActions(){return this.makeRequest("availableActions",`${this.formUrl}/actions`)}actionInfo(e){return this.makeRequest("actionInfo",`${this.formUrl}/actions/${e}`)}isObjectId(e){return new RegExp("^[0-9a-fA-F]{24}$").test(e)}getProjectId(){return this.projectId?this.isObjectId(this.projectId)?Promise.resolve(this.projectId):this.loadProject().then((e=>e._id)):Promise.resolve("")}getFormId(){return this.formId?this.isObjectId(this.formId)?Promise.resolve(this.formId):this.loadForm().then((e=>e._id)):Promise.resolve("")}currentUser(e){return m.currentUser(this,e)}accessInfo(){return m.accessInfo(this)}oauthLogoutURI(e,t){return m.oauthLogoutURI(e,Object.assign({formio:this},this.options,t))}getToken(e){return m.getToken(Object.assign({formio:this},this.options,e))}setToken(e,t){return m.setToken(e,Object.assign({formio:this},this.options,t))}getTempToken(e,t,n){if(!m.getToken(n))return Promise.reject("You must be authenticated to generate a temporary auth token.");const r=m.authUrl||this.projectUrl;return this.makeRequest("tempToken",`${r}/token`,"GET",null,{ignoreCache:!0,header:new p({"x-expire":e,"x-allow":t})})}getDownloadUrl(e){if(!this.submissionId)return Promise.resolve("");if(!e)return this.loadForm().then((e=>e?this.getDownloadUrl(e):""));let t=`/project/${e.project}`;t+=`/form/${e._id}`,t+=`/submission/${this.submissionId}`;const n=e.submissionRevisions&&e.settings.changeLog?"/download/changelog":"/download";t+=n;let r=this.base+t;return new Promise(((e,n)=>{this.getTempToken(3600,`GET:${t}`).then((t=>{r+=`?token=${t.key}`,e(r)}),(()=>{e(r)})).catch(n)}))}userPermissions(e,t,n){return Promise.all([void 0!==t?Promise.resolve(t):this.loadForm(),void 0!==e?Promise.resolve(e):this.currentUser(),void 0===n&&this.submissionId?this.loadSubmission():Promise.resolve(n),this.accessInfo()]).then((e=>{const t=e.shift(),n=e.shift()||{_id:!1,roles:[]},r=e.shift(),o=e.shift(),i={create:"create",read:"read",update:"edit",delete:"delete"},u={user:n,form:t,access:o,create:!1,read:!1,edit:!1,delete:!1};for(const e in o.roles)if(o.roles.hasOwnProperty(e)){const t=o.roles[e];if(t.default&&!1===n._id)n.roles.push(t._id);else if(t.admin&&-1!==n.roles.indexOf(t._id))return u.create=!0,u.read=!0,u.delete=!0,u.edit=!0,u}if(t&&t.submissionAccess)for(let e=0;e<t.submissionAccess.length;e++){const o=t.submissionAccess[e],[s,c]=o.type.split("_");["create","read","update","delete"].includes(s)&&(0,a.intersection)(o.roles,n.roles).length&&(u[i[s]]="all"===c||!r||n._id===r.owner)}return r&&(0,s.eachComponent)(t.components,((e,t)=>{if(e&&e.defaultPermission){const o=(0,a.get)(r.data,t);(Array.isArray(o)?o:[o]).forEach((t=>{t&&t._id&&n.roles.indexOf(t._id)>-1&&("read"===e.defaultPermission&&(u[i.read]=!0),"create"===e.defaultPermission&&(u[i.create]=!0,u[i.read]=!0),"write"===e.defaultPermission&&(u[i.create]=!0,u[i.read]=!0,u[i.update]=!0),"admin"===e.defaultPermission&&(u[i.create]=!0,u[i.read]=!0,u[i.update]=!0,u[i.delete]=!0))}))}})),u}))}canSubmit(){return this.userPermissions().then((e=>!e.create&&m.getUser()?this.userPermissions(null).then((e=>!!e.create&&(m.setUser(null),!0))):e.create))}getUrlParts(e){return m.getUrlParts(e,this)}static getUrlParts(e,t){const n=t&&t.base?t.base:m.baseUrl;let r="^(http[s]?:\\/\\/)";return n&&0===e.indexOf(n)?r+=`(${n.replace(/^http[s]?:\/\//,"")})`:r+="([^/]+)",r+="($|\\/.*)",e.match(new RegExp(r))}static serialize(e,t){const n=[];for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.push(`${encodeURIComponent(o)}=${encodeURIComponent((r=e[o],t?t(r):r))}`);var r;return n.join("&")}static getRequestArgs(e,t,n,r,o,i){r=(r||"GET").toUpperCase(),i&&(0,a.isObject)(i)||(i={});const s={url:n,method:r,data:o||null,opts:i};return t&&(s.type=t),e&&(s.formio=e),s}static makeStaticRequest(e,t,n,r){const o=m.getRequestArgs(null,"",e,t,n,r),i=d.default.pluginWait("preRequest",o).then((()=>d.default.pluginGet("staticRequest",o).then((e=>(0,a.isNil)(e)?m.request(o.url,o.method,o.data,o.opts.header,o.opts):e))));return d.default.pluginAlter("wrapStaticRequestPromise",i,o)}static makeRequest(e,t,n,r,o,i){if(!e)return m.makeStaticRequest(n,r,o,i);const s=m.getRequestArgs(e,t,n,r,o,i);s.opts=s.opts||{},s.opts.formio=e,s.opts.headers||(s.opts.headers={}),s.opts.headers=(0,a.defaults)(s.opts.headers,{Accept:"application/json","Content-type":"application/json"});const u=d.default.pluginWait("preRequest",s).then((()=>d.default.pluginGet("request",s).then((e=>(0,a.isNil)(e)?m.request(s.url,s.method,s.data,s.opts.header,s.opts):e))));return d.default.pluginAlter("wrapRequestPromise",u,s)}static request(e,t,n,r,o){if(!e)return Promise.reject("No url provided");t=(t||"GET").toUpperCase(),(0,a.isBoolean)(o)&&(o={ignoreCache:o}),o&&(0,a.isObject)(o)||(o={});const i=btoa(encodeURI(e));if(!o.ignoreCache&&"GET"===t&&m.cache.hasOwnProperty(i))return Promise.resolve(m.cloneResponse(m.cache[i]));"/"===e[0]&&(e=m.baseUrl+e);const s=r||new p(o.headers||{Accept:"application/json","Content-type":"application/json"}),u=m.getToken(o);u&&!o.noToken&&s.set("x-jwt-token",u);const c={};s.forEach((function(e,t){c[t]=e}));let l={method:t,headers:c,mode:"cors"};n&&(l.body=JSON.stringify(n)),l=d.default.pluginAlter("requestOptions",l,e),(l.namespace||m.namespace)&&(o.namespace=l.namespace||m.namespace);const f=l.headers["x-jwt-token"],h=d.default.pluginAlter("wrapFetchRequestPromise",m.fetch(e,l),{url:e,method:t,data:n,opts:o}).then((r=>{if(!(r=d.default.pluginAlter("requestResponse",r,m,n)).ok){if(440===r.status)m.setToken(null,o),m.events.emit("formio.sessionExpired",r.body||r);else if(401===r.status)m.events.emit("formio.unauthorized",r.body||r);else if(416===r.status)m.events.emit("formio.rangeIsNotSatisfiable",r.body||r);else if(504===r.status)return Promise.reject(new Error("Network request failed"));return(r.headers.get("content-type").includes("application/json")?r.json():r.text()).then((e=>Promise.reject(e)))}const i=r.headers.get("x-jwt-token");let s=!1;return"GET"!==t||f||!i||o.external||e.includes("token=")||e.includes("x-jwt-token=")||(console.warn("Token was introduced in request."),s=!0),r.status>=200&&r.status<300&&i&&""!==i&&!s&&m.setToken(i,Object.assign(Object.assign({},o),{fromCurrent:o.fromCurrent||!!f})),204===r.status?{}:(r.headers.get("content-type").includes("application/json")?r.json():r.text()).then((e=>{let t=r.headers.get("content-range");if(t&&(0,a.isObject)(e)){if(t=t.split("/"),"*"!==t[0]){const n=t[0].split("-");e.skip=Number(n[0]),e.limit=n[1]-n[0]+1}e.serverCount="*"===t[1]?t[1]:Number(t[1])}if(!o.getHeaders)return e;const n={};return r.headers.forEach(((e,t)=>{n[t]=e})),{result:e,headers:n}}))})).then((e=>o.getHeaders?e:("GET"===t&&(m.cache[i]=e),m.cloneResponse(e)))).catch((n=>("Bad Token"===n&&!1!==o.noToken&&(m.setToken(null,o),m.events.emit("formio.badToken",n)),n.message&&((n=new Error(`Could not connect to API server (${n.message}): ${e}`)).networkError=!0),"GET"===t&&delete m.cache[i],Promise.reject(n))));return h}static get token(){return m.tokens.formioToken||""}static set token(e){m.tokens.formioToken=e||""}static useSessionToken(e){if("undefined"==typeof localStorage)return;let t=e;"object"==typeof e&&(e=e.namespace);const n=`${t||m.namespace||"formio"}Token`,r=localStorage.getItem(n);r&&(localStorage.removeItem(n),sessionStorage.setItem(n,r));const o=`${t||m.namespace||"formio"}User`,i=localStorage.getItem(o);i&&(localStorage.removeItem(o),sessionStorage.setItem(o,i)),localStorage.setItem("useSessionToken","true")}static setToken(e="",t={}){e=e||"";const n=`${(t="string"==typeof t?{namespace:t}:t||{}).namespace||m.namespace||"formio"}Token`;m.tokens||(m.tokens={});const r=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){t.fromUser||(t.fromToken=!0,m.setUser(null,t));try{r.removeItem(n)}catch(e){l.default.erase(n,{path:"/"})}return m.tokens[n]=e,Promise.resolve(null)}if(m.tokens[n]!==e){m.tokens[n]=e;try{r.setItem(n,e)}catch(t){l.default.set(n,e,{path:"/"})}}return m.currentUser(t.formio,t)}static getToken(e){const t=`${(e="string"==typeof e?{namespace:e}:e||{}).namespace||m.namespace||"formio"}Token`,n=e.decode?`${t}Decoded`:t;if(m.tokens||(m.tokens={}),m.tokens[n])return m.tokens[n];try{const r=localStorage.getItem("useSessionToken")?sessionStorage.getItem(t):localStorage.getItem(t);return m.tokens[t]=r||"",e.decode?(m.tokens[n]=m.tokens[t]?(0,u.jwtDecode)(m.tokens[t]):{},m.tokens[n]):m.tokens[t]}catch(e){return m.tokens[t]=l.default.get(t),""}}static setUser(e,t={}){const n=`${t.namespace||m.namespace||"formio"}User`,r=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){t.fromToken||(t.fromUser=!0,m.setToken(null,t)),m.events.emit("formio.user",null);try{return r.removeItem(n)}catch(e){return l.default.erase(n,{path:"/"})}}try{r.setItem(n,JSON.stringify(e))}catch(t){l.default.set(n,JSON.stringify(e),{path:"/"})}m.events.emit("formio.user",e)}static getUser(e){const t=`${(e=e||{}).namespace||m.namespace||"formio"}User`;try{return JSON.parse((localStorage.getItem("useSessionToken")?sessionStorage:localStorage).getItem(t)||"")}catch(e){return JSON.parse(l.default.get(t))}}static setBaseUrl(e){m.baseUrl=e,m.projectUrlSet||(m.projectUrl=e)}static getBaseUrl(){return m.baseUrl}static setApiUrl(e){return m.setBaseUrl(e)}static getApiUrl(){return m.getBaseUrl()}static setAppUrl(e){console.warn("Formio.setAppUrl() is deprecated. Use Formio.setProjectUrl instead."),m.projectUrl=e,m.projectUrlSet=!0}static setProjectUrl(e){m.projectUrl=e,m.projectUrlSet=!0}static setAuthUrl(e){m.authUrl=e}static getAppUrl(){return console.warn("Formio.getAppUrl() is deprecated. Use Formio.getProjectUrl instead."),m.projectUrl}static getProjectUrl(){return m.projectUrl}static clearCache(){m.cache={}}static accessInfo(e){const t=e?e.projectUrl:m.projectUrl;return m.makeRequest(e,"accessInfo",`${t}/access`)}static projectRoles(e){const t=e?e.projectUrl:m.projectUrl;return m.makeRequest(e,"projectRoles",`${t}/role`)}static currentUser(e,t={}){let n=m.authUrl;if(n||(n=e?e.projectUrl:m.projectUrl||m.baseUrl),n+="/current",!t.ignoreCache||t.fromCurrent){const e=m.getUser(t);if(e)return d.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(e),{url:n,method:"GET",options:t})}const r=m.getToken(t);return t&&t.external||r?(t.fromCurrent=!0,m.makeRequest(e,"currentUser",n,"GET",null,t).then((e=>(m.setUser(e,t),e)))):d.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(null),{url:n,method:"GET",options:t})}static logout(e,t={}){t.formio=e;const n=m.authUrl?m.authUrl:e?e.projectUrl:m.baseUrl,r=()=>{m.setToken(null,t),m.setUser(null,t),m.clearCache(),localStorage.removeItem("useSessionToken")};return m.makeRequest(e,"logout",`${n}/logout`).then((function(e){return r(),e.shouldRedirect&&e.url&&(window.location.href=e.url),e})).catch((function(e){throw r(),e}))}static pageQuery(){const e={paths:[]},t=location.hash.substr(1).replace(/\?/g,"&").split("&");let n=[];return location.search.substr(1).split("&").forEach((function(t){n=t.split("="),n.length>1&&(e[n[0]]=n[1]&&decodeURIComponent(n[1]))})),t.forEach((function(t){n=t.split("="),n.length>1?e[n[0]]=n[1]&&decodeURIComponent(n[1]):0===t.indexOf("/")&&(e.paths=t.substr(1).split("/"))})),e}static oAuthCurrentUser(e,t){return m.currentUser(e,{external:!0,headers:{Authorization:`Bearer ${t}`}})}static oauthLogoutURI(e,t){const n=`${(t="string"==typeof t?{namespace:t}:t||{}).namespace||m.namespace||"formio"}LogoutAuthUrl`;return m.tokens[n],localStorage.setItem(n,e),m.tokens[n]}static samlInit(e={}){const t=m.pageQuery();if(t.saml){m.setUser(null);const e=m.setToken(t.saml);let n=window.location.toString();return n=n.substring(0,n.indexOf("?")),window.location.hash&&(n+=window.location.hash),window.history.replaceState({},document.title,n),e}e.relay||(e.relay=window.location.href);const n=m.authUrl||m.projectUrl;return window.location.href=`${n}/saml/sso?relay=${encodeURI(e.relay)}`,!1}static oktaInit(e={}){if(void 0!==typeof OktaAuth&&(e.OktaAuth=OktaAuth),void 0===typeof e.OktaAuth){const e="Cannot find OktaAuth. Please include the Okta JavaScript SDK within your application. See https://developer.okta.com/code/javascript/okta_auth_sdk for an example.";return console.warn(e),Promise.reject(e)}return new Promise(((t,n)=>{const r=e.OktaAuth;delete e.OktaAuth;const o=new r(e);o.tokenManager.get("accessToken").then((r=>{r?t(m.oAuthCurrentUser(e.formio,r.accessToken)):location.hash?o.token.parseFromUrl().then((n=>{o.tokenManager.add("accessToken",n),t(m.oAuthCurrentUser(e.formio,n.accessToken))})).catch((e=>{console.warn(e),n(e)})):(o.token.getWithRedirect({responseType:"token",scopes:e.scopes}),t(!1))})).catch((e=>{n(e)}))}))}static ssoInit(e,t={}){switch(e){case"saml":return m.samlInit(t);case"okta":return m.oktaInit(t);default:return console.warn("Unknown SSO type"),Promise.reject("Unknown SSO type")}}static requireLibrary(e,t,n,r=!1,o){if(!m.libraries.hasOwnProperty(e)){m.libraries[e]={},m.libraries[e].ready=new Promise(((t,n)=>{m.libraries[e].resolve=t,m.libraries[e].reject=n}));const i=`${e}Callback`;r||window[i]||(window[i]=()=>m.libraries[e].resolve());const s=(0,a.get)(window,t);if(s)m.libraries[e].resolve(s);else if((n=Array.isArray(n)?n:[n]).forEach((t=>{let n={},r="";switch("string"==typeof t&&(t={type:"script",src:t}),t.type){case"script":r="script",n={src:t.src,type:"text/javascript",defer:!0,async:!0,referrerpolicy:"origin"};break;case"styles":r="link",n={href:t.src,rel:"stylesheet"}}const i=document.createElement(r);if(i.setAttribute)for(const e in n)i.setAttribute(e,n[e]);o&&i.addEventListener("load",(()=>{m.libraries[e].loaded=!0,o(m.libraries[e].ready)}));const{head:a}=document;a&&a.appendChild(i)})),r){const n=setInterval((()=>{const r=(0,a.get)(window,t);r&&(clearInterval(n),m.libraries[e].resolve(r))}),200)}}const i=m.libraries[e];return o&&i.loaded?o(i.ready):i.ready}static libraryReady(e){return m.libraries.hasOwnProperty(e)&&m.libraries[e].ready?m.libraries[e].ready:Promise.reject(`${e} library was not required.`)}static cloneResponse(e){const t=(0,i.fastCloneDeep)(e);return Array.isArray(e)&&(t.skip=e.skip,t.limit=e.limit,t.serverCount=e.serverCount),t}static setPathType(e){"string"==typeof e&&(m.pathType=e)}static getPathType(){return m.pathType}}t.Formio=m,m.baseUrl="https://api.form.io",m.projectUrl="",m.authUrl="",m.projectUrlSet=!1,m.cache={},m.namespace="",m.events=new c.default,m.libraries={},m.fetch=f,m.Headers=p,m.tokens={},m.version="---VERSION---",m.options={},m.plugins=d.default.plugins,m.deregisterPlugin=d.default.deregisterPlugin,m.registerPlugin=d.default.registerPlugin,m.getPlugin=d.default.getPlugin,m.pluginWait=d.default.pluginWait,m.pluginGet=d.default.pluginGet,m.pluginAlter=d.default.pluginAlter,d.default.Formio=m},22831:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return u.default}});var r=p(n(13518)),o=p(n(14948)),i=p(n(45073)),a=p(n(77186)),s=p(n(14808)),u=p(n(7775)),c=p(n(37037)),l=p(n(49910)),f=p(n(96792));function p(e){return e&&e.__esModule?e:{default:e}}},22311:function(e,t){"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function r(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,t,n,o,i,a){return r((s=r(r(t,e),r(o,a)))<<(u=i)|s>>>32-u,n);var s,u}function i(e,t,n,r,i,a,s){return o(t&n|~t&r,e,t,i,a,s)}function a(e,t,n,r,i,a,s){return o(t&r|n&~r,e,t,i,a,s)}function s(e,t,n,r,i,a,s){return o(t^n^r,e,t,i,a,s)}function u(e,t,n,r,i,a,s){return o(n^(t|~r),e,t,i,a,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length,r="0123456789abcdef";for(let o=0;o<n;o+=8){const n=e[o>>5]>>>o%32&255,i=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let o=1732584193,c=-271733879,l=-1732584194,f=271733878;for(let t=0;t<e.length;t+=16){const n=o,p=c,d=l,h=f;o=i(o,c,l,f,e[t],7,-680876936),f=i(f,o,c,l,e[t+1],12,-389564586),l=i(l,f,o,c,e[t+2],17,606105819),c=i(c,l,f,o,e[t+3],22,-1044525330),o=i(o,c,l,f,e[t+4],7,-176418897),f=i(f,o,c,l,e[t+5],12,1200080426),l=i(l,f,o,c,e[t+6],17,-1473231341),c=i(c,l,f,o,e[t+7],22,-45705983),o=i(o,c,l,f,e[t+8],7,1770035416),f=i(f,o,c,l,e[t+9],12,-1958414417),l=i(l,f,o,c,e[t+10],17,-42063),c=i(c,l,f,o,e[t+11],22,-1990404162),o=i(o,c,l,f,e[t+12],7,1804603682),f=i(f,o,c,l,e[t+13],12,-40341101),l=i(l,f,o,c,e[t+14],17,-1502002290),c=i(c,l,f,o,e[t+15],22,1236535329),o=a(o,c,l,f,e[t+1],5,-165796510),f=a(f,o,c,l,e[t+6],9,-1069501632),l=a(l,f,o,c,e[t+11],14,643717713),c=a(c,l,f,o,e[t],20,-373897302),o=a(o,c,l,f,e[t+5],5,-701558691),f=a(f,o,c,l,e[t+10],9,38016083),l=a(l,f,o,c,e[t+15],14,-660478335),c=a(c,l,f,o,e[t+4],20,-405537848),o=a(o,c,l,f,e[t+9],5,568446438),f=a(f,o,c,l,e[t+14],9,-1019803690),l=a(l,f,o,c,e[t+3],14,-187363961),c=a(c,l,f,o,e[t+8],20,1163531501),o=a(o,c,l,f,e[t+13],5,-1444681467),f=a(f,o,c,l,e[t+2],9,-51403784),l=a(l,f,o,c,e[t+7],14,1735328473),c=a(c,l,f,o,e[t+12],20,-1926607734),o=s(o,c,l,f,e[t+5],4,-378558),f=s(f,o,c,l,e[t+8],11,-2022574463),l=s(l,f,o,c,e[t+11],16,1839030562),c=s(c,l,f,o,e[t+14],23,-35309556),o=s(o,c,l,f,e[t+1],4,-1530992060),f=s(f,o,c,l,e[t+4],11,1272893353),l=s(l,f,o,c,e[t+7],16,-155497632),c=s(c,l,f,o,e[t+10],23,-1094730640),o=s(o,c,l,f,e[t+13],4,681279174),f=s(f,o,c,l,e[t],11,-358537222),l=s(l,f,o,c,e[t+3],16,-722521979),c=s(c,l,f,o,e[t+6],23,76029189),o=s(o,c,l,f,e[t+9],4,-640364487),f=s(f,o,c,l,e[t+12],11,-421815835),l=s(l,f,o,c,e[t+15],16,530742520),c=s(c,l,f,o,e[t+2],23,-995338651),o=u(o,c,l,f,e[t],6,-198630844),f=u(f,o,c,l,e[t+7],10,1126891415),l=u(l,f,o,c,e[t+14],15,-1416354905),c=u(c,l,f,o,e[t+5],21,-57434055),o=u(o,c,l,f,e[t+12],6,1700485571),f=u(f,o,c,l,e[t+3],10,-1894986606),l=u(l,f,o,c,e[t+10],15,-1051523),c=u(c,l,f,o,e[t+1],21,-2054922799),o=u(o,c,l,f,e[t+8],6,1873313359),f=u(f,o,c,l,e[t+15],10,-30611744),l=u(l,f,o,c,e[t+6],15,-1560198380),c=u(c,l,f,o,e[t+13],21,1309151649),o=u(o,c,l,f,e[t+4],6,-145523070),f=u(f,o,c,l,e[t+11],10,-1120210379),l=u(l,f,o,c,e[t+2],15,718787259),c=u(c,l,f,o,e[t+9],21,-343485551),o=r(o,n),c=r(c,p),l=r(l,d),f=r(f,h)}return[o,c,l,f]}(function(e){if(0===e.length)return[];const t=8*e.length,r=new Uint32Array(n(t));for(let n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))}},46140:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};t.default=n},14808:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},96792:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(37037))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}},27656:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},2858:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)};const r=new Uint8Array(16)},9042:function(e,t){"use strict";function n(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function r(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){const t=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a);for(let t=0;t<a;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];s[t]=n}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<a;++e){const i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=s[e][t];for(let e=16;e<80;++e)i[e]=r(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let a=o[0],u=o[1],c=o[2],l=o[3],f=o[4];for(let e=0;e<80;++e){const o=Math.floor(e/20),s=r(a,5)+n(o,u,c,l)+f+t[o]+i[e]>>>0;f=l,l=c,c=r(u,30)>>>0,u=a,a=s}o[0]=o[0]+a>>>0,o[1]=o[1]+u>>>0,o[2]=o[2]+c>>>0,o[3]=o[3]+l>>>0,o[4]=o[4]+f>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]}},49910:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=a;var r,o=(r=n(37037))&&r.__esModule?r:{default:r};const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function a(e,t=0){return i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]}t.default=function(e,t=0){const n=a(e,t);if(!(0,o.default)(n))throw TypeError("Stringified UUID is invalid");return n}},13518:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(2858))&&r.__esModule?r:{default:r},i=n(49910);let a,s,u=0,c=0;t.default=function(e,t,n){let r=t&&n||0;const l=t||new Array(16);let f=(e=e||{}).node||a,p=void 0!==e.clockseq?e.clockseq:s;if(null==f||null==p){const t=e.random||(e.rng||o.default)();null==f&&(f=a=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==p&&(p=s=16383&(t[6]<<8|t[7]))}let d=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:c+1;const m=d-u+(h-c)/1e4;if(m<0&&void 0===e.clockseq&&(p=p+1&16383),(m<0||d>u)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=d,c=h,s=p,d+=122192928e5;const v=(1e4*(268435455&d)+h)%4294967296;l[r++]=v>>>24&255,l[r++]=v>>>16&255,l[r++]=v>>>8&255,l[r++]=255&v;const y=d/4294967296*1e4&268435455;l[r++]=y>>>8&255,l[r++]=255&y,l[r++]=y>>>24&15|16,l[r++]=y>>>16&255,l[r++]=p>>>8|128,l[r++]=255&p;for(let e=0;e<6;++e)l[r+e]=f[e];return t||(0,i.unsafeStringify)(l)}},14948:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(59025)),o=i(n(22311));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v3",48,o.default);t.default=a},59025:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,a,s){var u;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=(0,i.default)(r)),16!==(null===(u=r)||void 0===u?void 0:u.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(r),c.set(e,r.length),c=n(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,a){s=s||0;for(let e=0;e<16;++e)a[s+e]=c[e];return a}return(0,o.unsafeStringify)(c)}try{r.name=e}catch(e){}return r.DNS=a,r.URL=s,r};var r,o=n(49910),i=(r=n(96792))&&r.__esModule?r:{default:r};const a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=a;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=s},45073:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(46140)),o=a(n(2858)),i=n(49910);function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();const a=(e=e||{}).random||(e.rng||o.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=a[e];return t}return(0,i.unsafeStringify)(a)}},77186:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(59025)),o=i(n(9042));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v5",80,o.default);t.default=a},37037:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(27656))&&r.__esModule?r:{default:r};t.default=function(e){return"string"==typeof e&&o.default.test(e)}},7775:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(37037))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},56036:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(e,t={}){this.baseUrl=e||n.defaultCDN,this.overrides=t,this.libs={js:"",ace:"1.4.12",bootstrap:"5.3.3",bootstrap4:"4.6.2",bootstrap5:"5.3.3",bootswatch:"5.3.3","bootstrap-icons":"1.11.1",ckeditor:"19.0.0",flatpickr:"4.6.8","flatpickr-formio":"4.6.13-formio.3","font-awesome":"4.7.0",grid:"latest","moment-timezone":"latest",quill:"2.0.0-dev.3","shortcut-buttons-flatpickr":"0.4.0",uswds:"2.4.8",core:""},this.updateUrls()}getVersion(e){return this.libs[e]}setVersion(e,t){this.libs[e]=t,this.updateUrls()}setBaseUrl(e){this.baseUrl=e,this.updateUrls()}setOverrideUrl(e,t){this.overrides[e]=t,this.updateUrls()}removeOverride(e){delete this.overrides[e],this.updateUrls()}removeOverrides(){this.overrides={},this.updateUrls()}buildUrl(e,t,n){let r=e;return t&&(r+=`/${t}`),e.match(/cdn\.(test-)?form.io/)&&n&&"latest"!==n&&(r+=`/${n}`),r}updateUrls(){for(const e in this.libs)if(e in this.overrides)if("string"==typeof this.overrides[e])this[e]=this.buildUrl(this.overrides[e],e,this.libs[e]);else{const t=this.overrides[e];this[e]=this.buildUrl(t.cdn,t.lib||"",t.version||"")}else this[e]=this.buildUrl(this.baseUrl,e,this.libs[e])}}n.defaultCDN="https://cdn.form.io",t.default=n},27368:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(2543)),i=r(n(53825)),a=r(n(19045)),s=r(n(5896));class u{static addProvider(e,t,n){u.providers[e]=u.providers[e]||{},u.providers[e][t]=n}static addProviders(e,t){u.providers[e]=o.default.merge(u.providers[e],t)}static getProvider(e,t){if(u.providers[e]&&u.providers[e][t])return u.providers[e][t]}static getProviders(e){if(u.providers[e])return u.providers[e]}}u.providers={address:i.default,auth:a.default,storage:s.default},t.default=u},10308:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AddressProvider=void 0;const o=r(n(2543)),i=n(34040);t.AddressProvider=class{static get name(){return"address"}static get displayName(){return"Address"}constructor(e={}){this.beforeMergeOptions(e),this.options=o.default.merge({},this.defaultOptions,e)}beforeMergeOptions(){}get defaultOptions(){return{}}get queryProperty(){return"query"}get responseProperty(){return null}get displayValueProperty(){return null}serialize(e){return o.default.toPairs(e).map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`)).join("&")}getRequestOptions(e={}){return o.default.merge({},this.options,e)}getRequestUrl(e={}){throw new Error("Method AddressProvider#getRequestUrl(options) is abstract.")}makeRequest(e={}){return i.Formio.makeStaticRequest(this.getRequestUrl(e),"GET",null,{noToken:!0})}search(e,t={}){const n=this.getRequestOptions(t);return(n.params=n.params||{})[this.queryProperty]=e,this.makeRequest(n).then((e=>this.responseProperty?o.default.get(e,this.responseProperty,[]):e))}getDisplayValue(e){return this.displayValueProperty?o.default.get(e,this.displayValueProperty,""):String(e)}}},90637:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureAddressProvider=void 0;const r=n(10308);class o extends r.AddressProvider{static get name(){return"azure"}static get displayName(){return"Azure Maps"}get defaultOptions(){return{params:{"api-version":"1.0",typeahead:"true"}}}get responseProperty(){return"results"}get displayValueProperty(){return"address.freeformAddress"}getRequestUrl(e={}){const{params:t}=e;return`https://atlas.microsoft.com/search/address/json?${this.serialize(t)}`}}t.AzureAddressProvider=o},84689:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomAddressProvider=void 0;const r=n(10308);class o extends r.AddressProvider{static get name(){return"custom"}static get displayName(){return"Custom"}get queryProperty(){return this.options.queryProperty||super.queryProperty}get responseProperty(){return this.options.responseProperty||super.responseProperty}get displayValueProperty(){return this.options.displayValueProperty||super.displayValueProperty}getRequestUrl(e={}){const{params:t,url:n}=e;return`${n}?${this.serialize(t)}`}}t.CustomAddressProvider=o},25873:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAddressProvider=void 0;const o=n(34040),i=r(n(2543)),a=n(10308);class s extends a.AddressProvider{static get name(){return"google"}static get displayName(){return"Google Maps"}constructor(e={}){var t;super(e),this.setAutocompleteOptions();let n="https://maps.googleapis.com/maps/api/js?v=quarterly&libraries=places&loading=async&callback=googleMapsCallback";(null===(t=e.params)||void 0===t?void 0:t.key)&&(n+=`&key=${e.params.key}`),o.Formio.requireLibrary(this.getLibraryName(),"google.maps.places",n)}get displayValueProperty(){return"formattedPlace"}get alternativeDisplayValueProperty(){return"formatted_address"}set autocompleteOptions(e){this._autocompleteOptions=e}get autocompleteOptions(){return this._autocompleteOptions}setAutocompleteOptions(){let e=i.default.get(this.options,"params.autocompleteOptions",{});i.default.isObject(e)||(e={}),this.addRequiredProviderOptions(e),this.autocompleteOptions=e}beforeMergeOptions(e){this.convertRegionToAutocompleteOption(e)}getLibraryName(){return"googleMaps"}convertRegionToAutocompleteOption(e){const t=e;let n=i.default.get(t,"params.region","");if(n&&!i.default.has(e,"params.autocompleteOptions")){n=n.toUpperCase().trim();const e={UK:"GB"};e[n]&&(n=e[n]),i.default.set(t,"params.autocompleteOptions.componentRestrictions.country",[n])}}getRequiredAddressProperties(){return["address_components","formatted_address","geometry","place_id","plus_code","types"]}addRequiredProviderOptions(e){const t=this.getRequiredAddressProperties();i.default.isArray(e.fields)&&e.fields.length>0&&e.fields.forEach((e=>{t.some((t=>e===t))||t.push(e)})),e.fields=t}filterPlace(e){e=e||{};const t={};return this.autocompleteOptions&&this.autocompleteOptions.fields.forEach((n=>{e[n]&&(t[n]=e[n])})),t}attachAutocomplete(e,t,n){o.Formio.libraryReady(this.getLibraryName()).then((()=>{const r=new google.maps.places.Autocomplete(e,this.autocompleteOptions);r.addListener("place_changed",(()=>{const o=this.filterPlace(r.getPlace());o.formattedPlace=i.default.get(r,"gm_accessors_.place.se.formattedPrediction",o[this.alternativeDisplayValueProperty]),n(o,e,t)}))}))}search(){return Promise.resolve()}makeRequest(){return Promise.resolve()}getDisplayValue(e){const t=i.default.has(e,this.displayValueProperty)?this.displayValueProperty:this.alternativeDisplayValueProperty;return i.default.get(e,t,"")}}t.GoogleAddressProvider=s},90094:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NominatimAddressProvider=void 0;const r=n(10308);class o extends r.AddressProvider{static get name(){return"nominatim"}static get displayName(){return"OpenStreetMap Nominatim"}get defaultOptions(){return{params:{addressdetails:"1",format:"json"}}}get queryProperty(){return"q"}get displayValueProperty(){return"display_name"}getRequestUrl(e={}){const{params:t}=e;return`https://nominatim.openstreetmap.org/search?${this.serialize(t)}`}}t.NominatimAddressProvider=o},53825:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(90637),o=n(84689),i=n(25873),a=n(90094);t.default={[r.AzureAddressProvider.name]:r.AzureAddressProvider,[o.CustomAddressProvider.name]:o.CustomAddressProvider,[i.GoogleAddressProvider.name]:i.GoogleAddressProvider,[a.NominatimAddressProvider.name]:a.NominatimAddressProvider}},19045:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={}},59962:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(27368));t.default=o.default},52223:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(30430));function i(e){return{uploadFile:(t,n,r,i,a,s,u,c,l,f)=>o.default.upload(e,"azure",((e,n)=>(e.openAndSetHeaders("PUT",n.url),e.setRequestHeader("Content-Type",t.type),e.setRequestHeader("x-ms-blob-type","BlockBlob"),t)),t,n,r,i,c,l,f).then((e=>({storage:"azure",name:o.default.path([r,n]),size:t.size,type:t.type,groupPermissions:c,groupId:l,key:e.key}))),downloadFile:t=>e.makeRequest("file",`${e.formUrl}/storage/azure?name=${o.default.trim(t.name)}`,"GET"),deleteFile:function(t){var n=`${e.formUrl}/storage/azure?name=${o.default.trim(t.name)}&key=${o.default.trim(t.key)}`;return e.makeRequest("",n,"delete")}}}i.title="Azure File Services",t.default=i},95789:function(e,t){"use strict";function n(){return{title:"Base64",name:"base64",uploadFile(e,t){const n=new FileReader;return new Promise(((r,o)=>{n.onload=n=>{const o=n.target.result;r({storage:"base64",name:t,url:o,size:e.size,type:e.type})},n.onerror=()=>o(this),n.readAsDataURL(e)}))},downloadFile:e=>Promise.resolve(e)}}Object.defineProperty(t,"__esModule",{value:!0}),n.title="Base64",t.default=n},68405:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(30430);function o(e){return{uploadFile:(t,n,o,i,a,s,u,c,l,f)=>new Promise(((a,s)=>{const u=new XMLHttpRequest;"function"==typeof i&&(u.upload.onprogress=i),"function"==typeof f&&f((()=>u.abort()));const p=new FormData;p.append("name",n),p.append("dir",o),p.append("file",t),u.onerror=e=>{e.networkError=!0,s(e)},u.onload=()=>{if(u.status>=200&&u.status<300){const e=JSON.parse(u.response);e.storage="googledrive",e.size=t.size,e.type=t.type,e.groupId=l,e.groupPermissions=c,a(e)}else s(u.response||"Unable to upload file")},u.onabort=s,u.open("POST",`${e.formUrl}/storage/gdrive`),(0,r.setXhrHeaders)(e,u);const d=e.getToken();d&&u.setRequestHeader("x-jwt-token",d),u.send(p)})),downloadFile(t){const n=e.getToken();return t.url=`${e.formUrl}/storage/gdrive?fileId=${t.id}&fileName=${t.originalName}${n?`&x-jwt-token=${n}`:""}`,Promise.resolve(t)},deleteFile:function(t){var n="".concat(e.formUrl,`/storage/gdrive?id=${t.id}&name=${t.originalName}`);return e.makeRequest("",n,"delete")}}}o.title="Google Drive",t.default=o},5896:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(95789)),i=r(n(7152)),a=r(n(52223)),s=r(n(13225)),u=r(n(46775)),c=r(n(68405));t.default={base64:o.default,s3:i.default,url:s.default,azure:a.default,indexeddb:u.default,googledrive:c.default}},46775:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(22831);function o(){return{title:"indexedDB",name:"indexeddb",uploadFile(e,t,n,o,i,a){if("indexedDB"in window)return new Promise((e=>{const t=indexedDB.open(a.indexeddb);t.onsuccess=function(t){const n=t.target.result;e(n)},t.onupgradeneeded=function(e){e.target.result.createObjectStore(a.indexeddbTable)}})).then((t=>{const n=new FileReader;return new Promise(((o,s)=>{n.onload=()=>{const n=new Blob([e],{type:e.type}),s=(0,r.v4)(n),u={id:s,data:n,name:e.name,size:e.size,type:e.type,url:i},c=t.transaction([a.indexeddbTable],"readwrite");c.objectStore(a.indexeddbTable).put(u,s).onerror=function(e){console.log("error storing data"),console.error(e)},c.oncomplete=function(){o({storage:"indexeddb",name:e.name,size:e.size,type:e.type,url:i,id:s})}},n.onerror=()=>s(this),n.readAsDataURL(e)}))}));console.log("This browser doesn't support IndexedDB")},downloadFile(e,t){return new Promise((e=>{indexedDB.open(t.indexeddb).onsuccess=function(t){const n=t.target.result;e(n)}})).then((n=>new Promise(((r,o)=>{const i=n.transaction([t.indexeddbTable],"readonly"),a=i.objectStore(t.indexeddbTable).get(e.id);a.onsuccess=()=>{i.oncomplete=()=>{const t=a.result,n=new File([a.result.data],e.name,{type:a.result.type}),i=new FileReader;i.onload=n=>{t.url=n.target.result,t.storage=e.storage,r(t)},i.onerror=()=>o(this),i.readAsDataURL(n)}},a.onerror=()=>o(this)}))))},deleteFile(e,t){return new Promise((e=>{indexedDB.open(t.indexeddb).onsuccess=function(t){const n=t.target.result;e(n)}})).then((n=>new Promise(((r,o)=>{const i=n.transaction([t.indexeddbTable],"readwrite"),a=i.objectStore(t.indexeddbTable).delete(e.id);a.onsuccess=()=>{i.oncomplete=()=>{const e=a.result;r(e)}},a.onerror=()=>o(this)}))))}}}o.title="IndexedDB",t.default=o},7152:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const u=s(n(30430)),c=n(55474);function l(e){return{uploadFile(t,r,o,s,l,f,p,d,h,m,v){return a(this,void 0,void 0,(function*(){const l=yield u.default.upload(e,"s3",((e,s,l)=>a(this,void 0,void 0,(function*(){if(s.data.fileName=r,s.data.key=u.default.path([s.data.key,o,r]),!s.signed){const n=new FormData;for(const e in s.data)n.append(e,s.data[e]);return n.append("file",t),e.openAndSetHeaders("POST",s.url),n}if(!v||!Array.isArray(s.signed))return e.openAndSetHeaders("PUT",s.signed),e.setRequestHeader("Content-Type",t.type),s.data.headers&&Object.keys(s.data.headers).forEach((t=>{e.setRequestHeader(t,s.data.headers[t])})),t;{yield a(void 0,void 0,void 0,(function*(){"undefined"==typeof AbortController&&(yield Promise.resolve().then((()=>i(n(24715)))))}));const e=new AbortController,r=e.signal;"function"==typeof l&&l((()=>e.abort()));try{const e=yield this.uploadParts(t,s.signed,s.data.headers,s.partSizeActual,v,r);return void(yield(0,c.withRetries)(this.completeMultipartUpload,[s,e,v],3))}catch(t){throw e.abort(),this.abortMultipartUpload(s),t}}}))),t,r,o,s,d,h,m,v);return{storage:"s3",name:r,bucket:l.bucket,key:l.data.key,url:u.default.path([l.url,l.data.key]),acl:l.data.acl,size:t.size,type:t.type}}))},completeMultipartUpload(t,n,r){return a(this,void 0,void 0,(function*(){const{changeMessage:o}=r;o("Completing AWS S3 multipart upload...");const i=e.getToken(),a=yield fetch(`${e.formUrl}/storage/s3/multipart/complete`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},i?{"x-jwt-token":i}:{}),body:JSON.stringify({parts:n,uploadId:t.uploadId,key:t.key})}),s=yield a.text();if(!a.ok)throw new Error(s);if(s.match(/Error/))throw new Error(s)}))},abortMultipartUpload(t){const{uploadId:n,key:r}=t,o=e.getToken();fetch(`${e.formUrl}/storage/s3/multipart/abort`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},o?{"x-jwt-token":o}:{}),body:JSON.stringify({uploadId:n,key:r})}).catch((e=>console.error("Error while aborting multipart upload:",e)))},uploadParts(e,t,n,r,o,i){const{changeMessage:a,progressCallback:s}=o;a("Chunking and uploading parts to AWS S3...");const u=[];for(let o=0;o<t.length;o++){const a=o*r,c=(o+1)*r,l=o<t.length?e.slice(a,c):e.slice(a),f=fetch(t[o],{method:"PUT",headers:n,body:l,signal:i}).then((e=>{if(e.ok){s(t.length);const n=e.headers.get("etag");if(!n)throw new Error("ETag header not found; it must be exposed in S3 bucket CORS settings");return{ETag:n,PartNumber:o+1}}throw new Error(`Part no ${o} failed with status ${e.status}`)}));u.push(f)}return Promise.all(u)},downloadFile:t=>"public-read"!==t.acl?e.makeRequest("file",`${e.formUrl}/storage/s3?bucket=${u.default.trim(t.bucket)}&key=${u.default.trim(t.key)}`,"GET"):Promise.resolve(t),deleteFile(t){const n=`${e.formUrl}/storage/s3?bucket=${u.default.trim(t.bucket)}&key=${u.default.trim(t.key)}`;return e.makeRequest("",n,"delete")}}}l.title="S3",t.default=l},13225:function(e,t){"use strict";function n(e){function t(e,t){const n="string"==typeof e?JSON.parse(e):e;for(const e in n)if("headers"===e){const e=n.headers;for(const n in e)t.setRequestHeader(n,e[n])}else t[e]=n[e]}const n=(n,r,o,i,a,s,u)=>new Promise(((c,l)=>{const f=new XMLHttpRequest,p="string"==typeof i,d=new FormData;if("function"==typeof s&&(f.upload.onprogress=s),"function"==typeof u&&u((()=>f.abort())),!p)for(const e in i)d.append(e,i[e]);f.onload=()=>{if(f.status>=200&&f.status<300){let e={};try{e="string"==typeof f.response?JSON.parse(f.response):{},e=e&&e.data?e.data:e}catch(t){e={}}let t=e.hasOwnProperty("url")?e.url:`${f.responseURL}/${r}`;t&&"/"===t[0]&&(t=`${n}${t}`),c({url:t,data:e})}else l(f.response||"Unable to upload file")},f.onerror=()=>l(f),f.onabort=()=>l(f);let h=n+(n.indexOf("?")>-1?"&":"?");for(const e in o)h+=`${e}=${o[e]}&`;"&"===h[h.length-1]&&(h=h.substr(0,h.length-1)),f.open("POST",h),p&&f.setRequestHeader("Content-Type","application/json");const m=e.getToken();m&&f.setRequestHeader("x-jwt-token",m),a&&t(a,f),f.send(p?i:d)}));return{title:"Url",name:"url",uploadFile(t,r,o,i,a,s,u,c,l,f){const p=function(c){return n(a,r,{baseUrl:encodeURIComponent(e.projectUrl),project:c?c.project:"",form:c?c._id:""},{[u]:t,name:r,dir:o},s,i,f).then((n=>(n.data=n.data||{},n.data.baseUrl=e.projectUrl,n.data.project=c?c.project:"",n.data.form=c?c._id:"",{storage:"url",name:r,url:n.url,size:t.size,type:t.type,data:n.data})))};return t.private&&e.formId?e.loadForm().then((e=>p(e))):p()},deleteFile:(e,n)=>new Promise(((r,o)=>{const i=new XMLHttpRequest;i.open("DELETE",e.url,!0),i.onload=()=>{i.status>=200&&i.status<300?r("File deleted"):o(i.response||"Unable to delete file")},n&&t(n,i),i.send(null)})),downloadFile:t=>t.private?(e.submissionId&&t.data&&(t.data.submission=e.submissionId),n(t.url,t.name,{},JSON.stringify(t)).then((e=>e.data))):Promise.resolve(t)}}Object.defineProperty(t,"__esModule",{value:!0}),n.title="Url",t.default=n},55474:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.withRetries=void 0,t.withRetries=function e(t,r,o=3,i=null){return n(this,void 0,void 0,(function*(){if(!o)throw new Error(i);return t(...r).catch((()=>e(t,r,o-1,i)))}))}},30430:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setXhrHeaders=void 0;const i=o(n(44826));t.setXhrHeaders=(e,t)=>{const{headers:n}=e.options;if(n){const e={"Content-Disposition":!0,Authorization:!0};for(const r in n)e[r]&&t.setRequestHeader(r,n[r])}};const a={trim:e=>(0,i.default)(e,"/"),path:e=>e.filter((e=>!!e)).map(a.trim).join("/"),upload(e,t,n,o,i,s,u,c,l,f,p){return r(this,void 0,void 0,(function*(){const r=e.getToken();let d;try{d=yield fetch(`${e.formUrl}/storage/${t}`,{method:"POST",headers:Object.assign({Accept:"application/json","Content-Type":"application/json; charset=UTF-8"},r?{"x-jwt-token":r}:{}),body:JSON.stringify({name:a.path([s,i]),size:o.size,type:o.type,groupPermissions:c,groupId:l,multipart:p})})}catch(e){throw e.networkError=!0,e}if(!d.ok){if(504===d.status){const e=new Error("Network request failed");throw e.networkError=!0,e}const e=yield d.text();throw new Error(e||"Unable to sign file.")}const h=yield d.json();return yield a.makeXhrRequest(e,n,h,u,f)}))},makeXhrRequest:(e,n,r,o,i)=>new Promise(((a,s)=>{const u=new XMLHttpRequest;u.openAndSetHeaders=(...n)=>{u.open(...n),(0,t.setXhrHeaders)(e,u)},Promise.resolve(n(u,r,i)).then((e=>{if(!e)return a(r);u.onerror=e=>{e.networkError=!0,s(e)},u.onabort=e=>{e.networkError=!0,s(e)},u.onabort=s,"function"==typeof o&&(u.upload.onprogress=o),"function"==typeof i&&i((()=>u.abort())),u.onload=()=>{if(u.status>=200&&u.status<300)a(r);else if(504===u.status){const e=new Error("Network request failed");e.networkError=!0,s(e)}else s(u.response||"Unable to upload file")},u.send(e)})).catch(s)}))};t.default=a},95413:function(e,t,n){"use strict";var r,o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormBuilder=t.Form=t.Formio=void 0;const a=i(n(56036));class s{static setLicense(e,t=!1){r.license=e,!t&&r.FormioClass&&r.FormioClass.setLicense(e)}static setBaseUrl(e,t=!1){r.baseUrl=e,!t&&r.FormioClass&&r.FormioClass.setBaseUrl(e)}static setApiUrl(e,t=!1){r.baseUrl=e,!t&&r.FormioClass&&r.FormioClass.setApiUrl(e)}static setProjectUrl(e,t=!1){r.projectUrl=e,!t&&r.FormioClass&&r.FormioClass.setProjectUrl(e)}static setAppUrl(e,t=!1){r.projectUrl=e,!t&&r.FormioClass&&r.FormioClass.setAppUrl(e)}static setPathType(e,t=!1){r.pathType=e,!t&&r.FormioClass&&r.FormioClass.setPathType(e)}static debug(...e){r.config.debug&&console.log(...e)}static clearCache(){r.FormioClass&&r.FormioClass.clearCache()}static global(e,t=""){const n=window[e];return t&&n&&!n[t]?null:(r.debug(`Getting global ${e}`,n),n)}static use(e){r.FormioClass&&r.FormioClass.isRenderer?r.FormioClass.use(e):r.modules.push(e)}static createElement(e,t,n){const o=document.createElement(e);return t?(Object.keys(t).forEach((e=>{o.setAttribute(e,t[e])})),(n||[]).forEach((e=>{o.appendChild(r.createElement(e.tag,e.attrs,e.children))})),o):o}static addScript(e,t,n,i=""){return o(this,void 0,void 0,(function*(){if(!t)return Promise.resolve();if("string"!=typeof t&&t.length)return Promise.all(t.map((t=>r.addScript(e,t))));if(n&&r.global(n,i))return r.debug(`${n} already loaded.`),Promise.resolve(r.global(n));r.debug("Adding Script",t);try{e.appendChild(r.createElement("script",{src:t}))}catch(e){return r.debug(e),Promise.resolve()}return n?new Promise((e=>{r.debug(`Waiting to load ${n}`);const t=setInterval((()=>{r.global(n,i)&&(clearInterval(t),r.debug(`${n} loaded.`),e(r.global(n)))}),100)})):Promise.resolve()}))}static addStyles(e,t){return o(this,void 0,void 0,(function*(){t&&("string"!=typeof t&&t.length?t.forEach((t=>r.addStyles(e,t))):(r.debug("Adding Styles",t),e.appendChild(r.createElement("link",{rel:"stylesheet",href:t}))))}))}static submitDone(e,t){return o(this,void 0,void 0,(function*(){r.debug("Submision Complete",t),r.config.submitDone&&r.config.submitDone(t,e);const n=(r.config.success||"").toString();n&&"false"!==n.toLowerCase()&&e.element&&(e.element.innerHTML=`<div class="alert-success" role="alert">${n}</div>`);let o=r.config.redirect;if(!o&&e._form&&e._form.settings&&(e._form.settings.returnUrl||e._form.settings.redirect)&&(r.debug("Return url found in form configuration"),o=e._form.settings.returnUrl||e._form.settings.redirect),o){const n=e.formio?e.formio.formUrl:"",i=!!o.match(/\?/),a=0===o.indexOf(location.origin);o+=i?"&":"?",o+=`sub=${t._id}`,!a&&n&&(o+=`&form=${encodeURIComponent(n)}`),r.debug("Return URL",o),window.location.href=o,a&&window.location.reload()}}))}static formioScript(e,t){return t=t||r.config.includeBuilder,r.fullAdded||t?(r.fullAdded=!0,e.replace("formio.form","formio.full")):e}static addLibrary(e,t,n){return o(this,void 0,void 0,(function*(){if(t){if(t.dependencies)for(let n=0;n<t.dependencies.length;n++){const o=t.dependencies[n];yield r.addLibrary(e,r.config.libs[o],o)}if(t.css&&(yield r.addStyles(t.global?document.body:e,t.css)),t.js){const o=yield r.addScript(t.global?document.body:e,t.js,!!t.use&&n);if(t.use){r.debug(`Using ${n}`);const e=t.options||{};!e.license&&r.license&&(e.license=r.license),r.use("function"==typeof t.use?t.use(o):o,e)}}if(t.globalStyle){const e=r.createElement("style");e.type="text/css",e.innerHTML=t.globalStyle,document.body.appendChild(e)}}}))}static addLoader(e){return o(this,void 0,void 0,(function*(){e.appendChild(r.createElement("div",{class:"formio-loader"},[{tag:"div",attrs:{class:"loader-wrapper"},children:[{tag:"div",attrs:{class:"loader text-center"}}]}]))}))}static init(e,t={},n=!1){return o(this,void 0,void 0,(function*(){r.cdn=new a.default(r.config.cdn,r.config.cdnUrls||{}),r.config.libs=r.config.libs||{uswds:{dependencies:["fontawesome"],js:`${r.cdn.uswds}/uswds.min.js`,css:`${r.cdn.uswds}/uswds.min.css`,use:!0},fontawesome:{css:"https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css",globalStyle:"@font-face {\n font-family: 'FontAwesome';\n src: url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.eot?v=4.7.0');\n src: url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'), url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'), url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'), url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'), url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');\n font-weight: normal;\n font-style: normal;\n }"},bootstrap4:{dependencies:["fontawesome"],css:`${r.cdn.bootstrap4}/css/bootstrap.min.css`},bootstrap:{dependencies:["bootstrap-icons"],css:`${r.cdn.bootstrap}/css/bootstrap.min.css`},"bootstrap-icons":{css:"https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.min.css",globalStyle:'@font-face {\n font-display: block;\n font-family: "bootstrap-icons";\n src: url("https://cdn.jsdelivr.net/npm/bootstrap-icons/font/fonts/bootstrap-icons.woff2?dd67030699838ea613ee6dbda90effa6") format("woff2"),\n url("https://cdn.jsdelivr.net/npm/bootstrap-icons/font/fonts/bootstrap-icons.woff?dd67030699838ea613ee6dbda90effa6") format("woff");\n }'}},["cerulean","cosmo","cyborg","darkly","flatly","journal","litera","lumen","lux","materia","minty","pulse","sandstone","simplex","sketchy","slate","solar","spacelab","superhero","united","yeti"].forEach((e=>{r.config.libs[e]={dependencies:["bootstrap-icons"],css:`${r.cdn.bootswatch}/dist/${e}/bootstrap.min.css`}}));const o=r.config.id||`formio-${Math.random().toString(36).substring(7)}`;let i=r.createElement("div",{id:`${o}-wrapper`});e.parentNode.insertBefore(i,e);const s=r.config.includeLibs&&!r.config.noshadow&&"function"==typeof i.attachShadow;s&&(i=i.attachShadow({mode:"open"}),t.shadowRoot=i),e.parentNode.removeChild(e),i.appendChild(e);const u=s?i:document.body;yield r.addStyles(u,r.config.embedCSS||`${r.cdn.js}/formio.embed.css`),r.addLoader(i);const c=r.config.full?"formio.full":"formio.form",l=r.config.debug?c:`${c}.min`;if(r.FormioClass=yield r.addScript(u,r.formioScript(r.config.script||`${r.cdn.js}/${l}.js`,n),"Formio",n?"isBuilder":"isRenderer"),r.FormioClass.cdn=r.cdn,r.FormioClass.setBaseUrl(t.baseUrl||r.baseUrl||r.config.base),r.FormioClass.setProjectUrl(t.projectUrl||r.projectUrl||r.config.project),r.FormioClass.language=r.language,r.setLicense(r.license||r.config.license||!1),r.modules.forEach((e=>{r.FormioClass.use(e)})),r.icons&&(r.FormioClass.icons=r.icons),r.pathType&&r.FormioClass.setPathType(r.pathType),r.config.template&&r.config.includeLibs&&(yield r.addLibrary(u,r.config.libs[r.config.template],r.config.template)),r.config.libraries||(r.config.libraries=r.config.modules||{}),r.config.premium&&(r.config.libraries.premium=r.config.premium),r.config.libraries)for(const e in r.config.libraries){const t=r.config.libraries[e];t.use=t.use||!0,yield r.addLibrary(u,t,e)}return yield r.addStyles(u,r.formioScript(r.config.style||`${r.cdn.js}/${l}.css`,n)),r.config.before&&(yield r.config.before(r.FormioClass,e,r.config)),r.FormioClass.license=!0,r._formioReady(r.FormioClass),i}))}static afterCreate(e,t,n){return o(this,void 0,void 0,(function*(){const o=t.querySelector(".formio-loader");return o&&t.removeChild(o),r.FormioClass.events.emit(n,e),r.config.after&&(r.debug("Calling ready callback"),r.config.after(e,r.config)),e}))}static createForm(e,t,n={}){return o(this,void 0,void 0,(function*(){if(r.FormioClass)return r.FormioClass.createForm(e,t,Object.assign(Object.assign({},n),{noLoader:!0}));const o=yield r.init(e,n);return r.FormioClass.createForm(e,t,Object.assign(Object.assign({},n),{noLoader:!0})).then((e=>(r.config.submission&&(r.debug("Setting submission",r.config.submission),e.submission=r.config.submission),r.afterCreate(e,o,"formEmbedded"),e)))}))}static builder(e,t,n={}){var i;return o(this,void 0,void 0,(function*(){if(null===(i=r.FormioClass)||void 0===i?void 0:i.builder)return r.FormioClass.builder(e,t,n);const o=yield r.init(e,n,!0);return r.FormioClass.builder(e,t,n).then((e=>(r.afterCreate(e,o,"builderEmbedded"),e)))}))}}t.Formio=s,r=s,s.FormioClass=null,s.config={},s.modules=[],s.icons="",s.license="",s.formioReady=new Promise(((e,t)=>{r._formioReady=e,r._formioReadyReject=t})),s.version="5.0.0-rc.91",s.Report={create:(e,t,n={})=>o(void 0,void 0,void 0,(function*(){var o;if(null===(o=r.FormioClass)||void 0===o?void 0:o.Report)return r.FormioClass.Report.create(e,t,n);const i=yield r.init(e,n,!0);return r.FormioClass.Report.create(e,t,n).then((e=>(r.afterCreate(e,i,"reportEmbedded"),e)))}))},a.default.defaultCDN=s.version.includes("rc")?"https://cdn.test-form.io":"https://cdn.form.io";class u{constructor(e,t,n){this.form=t,this.element=e,this.options=n||{},this.init(),this.instance={proxy:!0,ready:this.ready,destroy:()=>{}}}init(){this.instance&&!this.instance.proxy&&this.instance.destroy(),this.element.innerHTML="",this.ready=this.create().then((e=>(this.instance=e,this.form=e.form,e)))}create(){return s.createForm(this.element,this.form,this.options)}setForm(e){this.form=e,this.instance&&this.instance.setForm(e)}setDisplay(e){return this.instance.proxy||(this.form.display=e,this.instance.destroy(),this.ready=this.create().then((e=>{this.instance=e,this.setForm(this.form)}))),this.ready}}t.Form=u;class c extends u{create(){return s.builder(this.element,this.form,this.options)}}t.FormBuilder=c,s.Form=u,s.FormBuilder=c},34040:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=void 0;const o=n(94394);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return o.Formio}});const i=n(95413),a=r(n(56036)),s=r(n(59962));o.Formio.cdn=new a.default,o.Formio.Providers=s.default,o.Formio.version="5.0.0-rc.91",a.default.defaultCDN=o.Formio.version.includes("rc")?"https://cdn.test-form.io":"https://cdn.form.io";const u=e=>null==e;o.Formio.prototype.uploadFile=function(e,t,n,r,i,a,c,l,f,p,d,h,m){const v={provider:e,method:"upload",file:t,fileName:n,dir:r};l=l||"file";const y=o.Formio.pluginWait("preRequest",v).then((()=>o.Formio.pluginGet("fileRequest",v).then((o=>{if(e&&u(o)){const o=s.default.getProvider("storage",e);if(o){const e=new o(this);return d&&d(),e.uploadFile(t,n,r,i,a,c,l,f,p,h,m)}throw"Storage provider not found"}return o||{url:""}}))));return o.Formio.pluginAlter("wrapFileRequestPromise",y,v)},o.Formio.prototype.downloadFile=function(e,t){const n={method:"download",file:e},r=o.Formio.pluginWait("preRequest",n).then((()=>o.Formio.pluginGet("fileRequest",n).then((n=>{if(e.storage&&u(n)){const n=s.default.getProvider("storage",e.storage);if(n)return new n(this).downloadFile(e,t);throw"Storage provider not found"}return n||{url:""}}))));return o.Formio.pluginAlter("wrapFileRequestPromise",r,n)},o.Formio.prototype.deleteFile=function(e,t){const n={method:"delete",file:e},r=o.Formio.pluginWait("preRequest",n).then((()=>o.Formio.pluginGet("fileRequest",n).then((n=>{if(e.storage&&u(n)){const n=s.default.getProvider("storage",e.storage);if(n)return new n(this).deleteFile(e,t);throw"Storage provider not found"}return n||{url:""}}))));return o.Formio.pluginAlter("wrapFileRequestPromise",r,n)},["setBaseUrl","setApiUrl","setAppUrl","setProjectUrl","setPathType","setLicense"].forEach((e=>{const t=o.Formio[e];o.Formio[e]=function(n){const r=i.Formio[e](n,!0);return t?t.call(this,n):r}})),o.Formio.Promise=Promise,o.Formio.formioReady=i.Formio.formioReady,o.Formio.config=i.Formio.config,o.Formio.builder=i.Formio.builder,o.Formio.Report=i.Formio.Report,o.Formio.Form=i.Formio.Form,o.Formio.FormBuilder=i.Formio.FormBuilder,o.Formio.use=i.Formio.use,o.Formio.createForm=i.Formio.createForm,o.Formio.submitDone=i.Formio.submitDone,o.Formio.addLibrary=i.Formio.addLibrary,o.Formio.addLoader=i.Formio.addLoader,o.Formio.addToGlobal=e=>{"object"!=typeof e||e.Formio||(e.Formio=o.Formio)},void 0!==n.g&&o.Formio.addToGlobal(n.g),"undefined"!=typeof window&&o.Formio.addToGlobal(window),i.Formio._formioReady(o.Formio)},54949:function(e,t,n){"use strict";n.r(t),n.d(t,{JsonPatchError:function(){return v},_areEquals:function(){return k},applyOperation:function(){return O},applyPatch:function(){return j},applyReducer:function(){return A},compare:function(){return F},deepClone:function(){return l},default:function(){return $},escapePathComponent:function(){return p},generate:function(){return S},getValueByPointer:function(){return w},observe:function(){return T},unescapePathComponent:function(){return d},unobserve:function(){return R},validate:function(){return x},validator:function(){return P}});var r={};n.r(r),n.d(r,{JsonPatchError:function(){return y},_areEquals:function(){return k},applyOperation:function(){return O},applyPatch:function(){return j},applyReducer:function(){return A},deepClone:function(){return g},getValueByPointer:function(){return w},validate:function(){return x},validator:function(){return P}});var o={};n.r(o),n.d(o,{compare:function(){return F},generate:function(){return S},observe:function(){return T},unobserve:function(){return R}});var i,a=(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},i(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=Object.prototype.hasOwnProperty;function u(e,t){return s.call(e,t)}function c(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);var r=[];for(var o in e)u(e,o)&&r.push(o);return r}function l(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function f(e){for(var t,n=0,r=e.length;n<r;){if(!((t=e.charCodeAt(n))>=48&&t<=57))return!1;n++}return!0}function p(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function d(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function h(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(h(e[t]))return!0}else if("object"==typeof e)for(var r=c(e),o=r.length,i=0;i<o;i++)if(h(e[r[i]]))return!0;return!1}function m(e,t){var n=[e];for(var r in t){var o="object"==typeof t[r]?JSON.stringify(t[r],null,2):t[r];void 0!==o&&n.push(r+": "+o)}return n.join("\n")}var v=function(e){function t(t,n,r,o,i){var a=this.constructor,s=e.call(this,m(t,{name:n,index:r,operation:o,tree:i}))||this;return s.name=n,s.index=r,s.operation=o,s.tree=i,Object.setPrototypeOf(s,a.prototype),s.message=m(t,{name:n,index:r,operation:o,tree:i}),s}return a(t,e),t}(Error),y=v,g=l,b={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=w(n,this.path);r&&(r=l(r));var o=O(n,{op:"remove",path:this.from}).removed;return O(n,{op:"add",path:this.path,value:o}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=w(n,this.from);return O(n,{op:"add",path:this.path,value:l(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:k(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},_={add:function(e,t,n){return f(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){return{newDocument:n,removed:e.splice(t,1)[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:b.move,copy:b.copy,test:b.test,_get:b._get};function w(e,t){if(""==t)return e;var n={op:"_get",path:t};return O(e,n),n.value}function O(e,t,n,r,o,i){if(void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===o&&(o=!0),void 0===i&&(i=0),n&&("function"==typeof n?n(t,0,e,t.path):P(t,0)),""===t.path){var a={newDocument:e};if("add"===t.op)return a.newDocument=t.value,a;if("replace"===t.op)return a.newDocument=t.value,a.removed=e,a;if("move"===t.op||"copy"===t.op)return a.newDocument=w(e,t.from),"move"===t.op&&(a.removed=e),a;if("test"===t.op){if(a.test=k(e,t.value),!1===a.test)throw new y("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a.newDocument=e,a}if("remove"===t.op)return a.removed=e,a.newDocument=null,a;if("_get"===t.op)return t.value=e,a;if(n)throw new y("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return a}r||(e=l(e));var s=(t.path||"").split("/"),u=e,c=1,p=s.length,h=void 0,m=void 0,v=void 0;for(v="function"==typeof n?n:P;;){if((m=s[c])&&-1!=m.indexOf("~")&&(m=d(m)),o&&("__proto__"==m||"prototype"==m&&c>0&&"constructor"==s[c-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&void 0===h&&(void 0===u[m]?h=s.slice(0,c).join("/"):c==p-1&&(h=t.path),void 0!==h&&v(t,0,e,h)),c++,Array.isArray(u)){if("-"===m)m=u.length;else{if(n&&!f(m))throw new y("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);f(m)&&(m=~~m)}if(c>=p){if(n&&"add"===t.op&&m>u.length)throw new y("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(a=_[t.op].call(t,u,m,e)).test)throw new y("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(c>=p){if(!1===(a=b[t.op].call(t,u,m,e)).test)throw new y("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(u=u[m],n&&c<p&&(!u||"object"!=typeof u))throw new y("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function j(e,t,n,r,o){if(void 0===r&&(r=!0),void 0===o&&(o=!0),n&&!Array.isArray(t))throw new y("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(e=l(e));for(var i=new Array(t.length),a=0,s=t.length;a<s;a++)i[a]=O(e,t[a],n,!0,o,a),e=i[a].newDocument;return i.newDocument=e,i}function A(e,t,n){var r=O(e,t);if(!1===r.test)throw new y("Test operation failed","TEST_OPERATION_FAILED",n,t,e);return r.newDocument}function P(e,t,n,r){if("object"!=typeof e||null===e||Array.isArray(e))throw new y("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,n);if(!b[e.op])throw new y("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n);if("string"!=typeof e.path)throw new y("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,n);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new y('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new y("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new y("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&h(e.value))throw new y("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n)if("add"==e.op){var o=e.path.split("/").length,i=r.split("/").length;if(o!==i+1&&o!==i)throw new y("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==r)throw new y("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if("move"===e.op||"copy"===e.op){var a=x([{op:"_get",path:e.from,value:void 0}],n);if(a&&"OPERATION_PATH_UNRESOLVABLE"===a.name)throw new y("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}function x(e,t,n){try{if(!Array.isArray(e))throw new y("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)j(l(t),l(e),n||!0);else{n=n||P;for(var r=0;r<e.length;r++)n(e[r],r,t,void 0)}}catch(e){if(e instanceof y)return e;throw e}}function k(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,r,o,i=Array.isArray(e),a=Array.isArray(t);if(i&&a){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!k(e[n],t[n]))return!1;return!0}if(i!=a)return!1;var s=Object.keys(e);if((r=s.length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!t.hasOwnProperty(s[n]))return!1;for(n=r;0!=n--;)if(!k(e[o=s[n]],t[o]))return!1;return!0}return e!=e&&t!=t}var U=new WeakMap,E=function(e){this.observers=new Map,this.obj=e},C=function(e,t){this.callback=e,this.observer=t};function R(e,t){t.unobserve()}function T(e,t){var n,r=function(e){return U.get(e)}(e);if(r){var o=function(e,t){return e.observers.get(t)}(r,t);n=o&&o.observer}else r=new E(e),U.set(e,r);if(n)return n;if(n={},r.value=l(e),t){n.callback=t,n.next=null;var i=function(){S(n)},a=function(){clearTimeout(n.next),n.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",a),window.addEventListener("keyup",a),window.addEventListener("mousedown",a),window.addEventListener("keydown",a),window.addEventListener("change",a))}return n.patches=[],n.object=e,n.unobserve=function(){S(n),clearTimeout(n.next),function(e,t){e.observers.delete(t.callback)}(r,n),"undefined"!=typeof window&&(window.removeEventListener("mouseup",a),window.removeEventListener("keyup",a),window.removeEventListener("mousedown",a),window.removeEventListener("keydown",a),window.removeEventListener("change",a))},r.observers.set(t,new C(t,n)),n}function S(e,t){void 0===t&&(t=!1);var n=U.get(e.object);I(n.value,e.object,e.patches,"",t),e.patches.length&&j(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function I(e,t,n,r,o){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=c(t),a=c(e),s=!1,f=a.length-1;f>=0;f--){var d=e[m=a[f]];if(!u(t,m)||void 0===t[m]&&void 0!==d&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+p(m),value:l(d)}),n.push({op:"remove",path:r+"/"+p(m)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}));else{var h=t[m];"object"==typeof d&&null!=d&&"object"==typeof h&&null!=h&&Array.isArray(d)===Array.isArray(h)?I(d,h,n,r+"/"+p(m),o):d!==h&&(o&&n.push({op:"test",path:r+"/"+p(m),value:l(d)}),n.push({op:"replace",path:r+"/"+p(m),value:l(h)}))}}if(s||i.length!=a.length)for(f=0;f<i.length;f++){var m;u(e,m=i[f])||void 0===t[m]||n.push({op:"add",path:r+"/"+p(m),value:l(t[m])})}}}function F(e,t,n){void 0===n&&(n=!1);var r=[];return I(e,t,r,"",n),r}const $=Object.assign({},r,o,{JsonPatchError:v,deepClone:l,escapePathComponent:p,unescapePathComponent:d})}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var r=n(34040);return r.Formio}()}));
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Formio=t():e.Formio=t()}(self,(function(){return function(){var e={23370:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2543);class o{static identity(e){return e}static deregisterPlugin(e){const t=o.plugins.length;return o.plugins=o.plugins.filter((t=>t!==e&&t.__name!==e||((t.deregister||r.noop).call(e,o.Formio),!1))),t!==o.plugins.length}static registerPlugin(e,t){o.plugins.push(e),o.plugins.sort(((e,t)=>(t.priority||0)-(e.priority||0))),e.__name=t,(e.init||r.noop).call(e,o.Formio)}static getPlugin(e){for(const t of o.plugins)if(t.__name===e)return t;return null}static pluginWait(e,...t){return Promise.all(o.plugins.map((n=>(n[e]||r.noop).call(n,...t))))}static pluginGet(e,...t){const n=i=>{const a=o.plugins[i];return a?Promise.resolve((a[e]||r.noop).call(a,...t)).then((e=>(0,r.isNil)(e)?n(i+1):e)):Promise.resolve(null)};return n(0)}static pluginAlter(e,t,...n){return o.plugins.reduce(((t,r)=>(r[e]||o.identity)(t,...n)),t)}}o.plugins=[],t.default=o},94394:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=void 0;var r=n(15993);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return r.Formio}})},70678:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Evaluator=t.BaseEvaluator=void 0;const r=n(2543);class o{static evaluator(e,...t){return i.noeval?(console.warn("No evaluations allowed for this renderer."),r.noop):"function"==typeof e?e:("object"==typeof t[0]&&(t=(0,r.keys)(t[0])),new Function(...t,e))}static interpolateString(e,t,n={}){return e?"string"!=typeof e?e.toString():e.replace(/({{\s*(.*?)\s*}})/g,((e,o,a)=>{if(-1===a.indexOf("(")||i.noeval||n.noeval){let e=a;-1!==a.indexOf("?")&&(e=a.replace(/\?\./g,"."));const o=e.split("||").map((e=>e.trim()));let i="",s="";for(let e=0;e<o.length&&(s=o[e],i=(0,r.get)(t,s),!i);e++);return n.data&&(0,r.set)(n.data,s,i),i}return a.replace(/([^\(]+)\(([^\)]+)\s*\);?/,((e,o,a)=>{o=(0,r.trim)(o);const s=(0,r.get)(t,o);return s?(a&&(a=a.split(",").map((e=>0===(e=(0,r.trim)(e)).indexOf('"')||0===e.indexOf("'")?e.substring(1,e.length-1):(0,r.get)(t,e)))),i.evaluate(s,a,"",!1,t,n)):""}))})):""}static interpolate(e,t,n={}){if("function"==typeof e&&!i.noeval&&!n.noeval)try{return e(t)}catch(e){return console.warn("Error interpolating template",e,t),e.message}return i.interpolateString(String(e),t,n)}static evaluate(e,t={},n="",a=!1,s={},u={}){let c=null;u=(0,r.isObject)(u)?u:{noeval:u};const l=t.component?t.component:{key:"unknown"};!t.form&&t.instance&&(t.form=(0,r.get)(t.instance,"root._form",{}));const f=l.key;if("string"==typeof e){n&&(e=`var ${n};${e};return ${n}`),a&&(e=o.interpolate(e,t,u));try{e=i.noeval||u.noeval?r.noop:i.evaluator(e,t,s),t=(0,r.values)(t)}catch(t){console.warn(`An error occured within the custom function for ${f}`,t),c=null,e=!1}}if("function"==typeof e)try{c=i.execute(e,t,s,u)}catch(e){c=null,console.warn(`An error occured within custom function for ${f}`,e)}else e&&console.warn(`Unknown function type for ${f}`);return c}static execute(e,t,n={},o={}){if(o=(0,r.isObject)(o)?o:{noeval:o},!i.noeval&&!o.noeval)return Array.isArray(t)?e.apply(n,t):e.call(n,t);console.warn("No evaluations allowed for this renderer.")}}t.BaseEvaluator=o,o.templateSettings={interpolate:/{{([\s\S]+?)}}/g,evaluate:/\{%([\s\S]+?)%\}/g,escape:/\{\{\{([\s\S]+?)\}\}\}/g},o.noeval=!1;class i extends o{static registerEvaluator(e){Object.keys(e).forEach((t=>{i[t]=e[t]}))}}t.Evaluator=i},60554:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fastCloneDeep=void 0,t.fastCloneDeep=function(e){try{return JSON.parse(JSON.stringify(e))}catch(e){return console.log(`Clone Failed: ${e.message}`),null}}},5426:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponent=void 0;const r=n(96690);t.eachComponent=function e(t,n,o,i="",a){t&&t.forEach((s=>{if(!s)return;const u=(0,r.componentInfo)(s);let c=!1;a&&(Object.defineProperty(s,"parent",{enumerable:!1,writable:!0,value:JSON.parse(JSON.stringify(a))}),Object.defineProperty(s.parent,"parent",{enumerable:!1,writable:!0,value:a.parent}),Object.defineProperty(s.parent,"path",{enumerable:!1,writable:!0,value:a.path}),delete s.parent.components,delete s.parent.componentMap,delete s.parent.columns,delete s.parent.rows),Object.defineProperty(s,"path",{enumerable:!1,writable:!0,value:(0,r.componentPath)(s,i)}),(o||s.tree||!u.layout)&&(c=!!n(s,s.path,t,a)),c||(u.hasColumns?s.columns.forEach((t=>e(t.components,n,o,i,a?s:null))):u.hasRows?s.rows.forEach((t=>{Array.isArray(t)&&t.forEach((t=>e(t.components,n,o,i,a?s:null)))})):u.hasComps&&e(s.components,n,o,(0,r.componentFormPath)(s,i,s.path),a?s:null))}))}},83736:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponentAsync=void 0;const o=n(96690);t.eachComponentAsync=function e(t,n){return r(this,arguments,void 0,(function*(t,n,r=!1,i="",a){var s,u;if(t)for(let c=0;c<t.length;c++){if(!t[c])continue;let l=t[c];const f=(0,o.componentInfo)(l);if(a&&(Object.defineProperty(l,"parent",{enumerable:!1,writable:!0,value:JSON.parse(JSON.stringify(a))}),Object.defineProperty(l.parent,"parent",{enumerable:!1,writable:!0,value:a.parent}),Object.defineProperty(l.parent,"path",{enumerable:!1,writable:!0,value:a.path}),delete l.parent.components,delete l.parent.componentMap,delete l.parent.columns,delete l.parent.rows),Object.defineProperty(l,"path",{enumerable:!1,writable:!0,value:(0,o.componentPath)(l,i)}),!r&&!l.tree&&f.layout||!(yield n(l,l.path,t,a)))if(f.hasColumns)for(let t=0;t<l.columns.length;t++)yield e(null===(s=l.columns[t])||void 0===s?void 0:s.components,n,r,i,a?l:null);else if(f.hasRows)for(let t=0;t<l.rows.length;t++){let o=l.rows[t];if(Array.isArray(o))for(let t=0;t<o.length;t++)yield e(null===(u=o[t])||void 0===u?void 0:u.components,n,r,i,a?l:null)}else f.hasComps&&(yield e(l.components,n,r,(0,o.componentFormPath)(l,i,l.path),a?l:null))}}))}},57330:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponentData=void 0;const r=n(2543),o=n(96690),i=n(5426);t.eachComponentData=(e,n,a,s="",u,c,l=!1)=>{if(e&&n)return(0,i.eachComponent)(e,((e,i,c,f)=>{const p=(0,o.getContextualRowData)(e,i,n);if(!0===a(e,n,p,i,c,u,f))return!0;if((0,o.isComponentNestedDataType)(e)){const c=(0,r.get)(n,i,n);if(Array.isArray(c)){for(let r=0;r<c.length;r++){const s="nestedDataArray"===(0,o.getModelType)(e)?`${i}[${r}].data`:`${i}[${r}]`;(0,t.eachComponentData)(e.components,n,a,s,r,e,l)}return!0}if((0,r.isEmpty)(p)&&!l)return!0;if("dataObject"===(0,o.getModelType)(e)){const c=(0,r.get)(n,e.path),f=(null==c?void 0:c._id)&&(0,r.isEmpty)(c.data)&&!(0,r.has)(c,"form");if((null==c?void 0:c._id)?!f:(0,r.has)(n,e.path)){const c=(0,o.componentDataPath)(e,s,i),f=(0,r.get)(n,c,{});(0,t.eachComponentData)(e.components,f,a,"",u,e,l),(0,r.set)(n,c,f)}}else(0,t.eachComponentData)(e.components,n,a,(0,o.componentDataPath)(e,s,i),u,e,l);return!0}if("none"===(0,o.getModelType)(e)){const r=(0,o.componentInfo)(e);if(r.hasColumns){const r=e;r.columns.forEach((i=>(0,t.eachComponentData)(i.components,n,a,(0,o.componentFormPath)(r,s,r.path),u,e)))}else if(r.hasRows){const r=e;r.rows.forEach((i=>{Array.isArray(i)&&i.forEach((i=>(0,t.eachComponentData)(i.components,n,a,(0,o.componentFormPath)(r,s,r.path),u,e)))}))}else if(r.hasComps){const r=e;(0,t.eachComponentData)(r.components,n,a,(0,o.componentFormPath)(r,s,r.path),u,e)}return!0}return!1}),!0,s,c)}},42264:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponentDataAsync=void 0;const o=n(2543),i=n(96690),a=n(83736);t.eachComponentDataAsync=(e,n,s,...u)=>r(void 0,[e,n,s,...u],void 0,(function*(e,n,s,u="",c,l,f=!1){if(e&&n)return yield(0,a.eachComponentAsync)(e,((e,a,l,p)=>r(void 0,void 0,void 0,(function*(){const r=(0,i.getContextualRowData)(e,a,n);if(!0===(yield s(e,n,r,a,l,c,p)))return!0;if((0,i.isComponentNestedDataType)(e)){const l=(0,o.get)(n,a,n);if(Array.isArray(l)){for(let r=0;r<l.length;r++){const o="nestedDataArray"===(0,i.getModelType)(e)?`${a}[${r}].data`:`${a}[${r}]`;yield(0,t.eachComponentDataAsync)(e.components,n,s,o,r,e,f)}return!0}if((0,o.isEmpty)(r)&&!f)return!0;if("dataObject"===(0,i.getModelType)(e)){const r=(0,o.get)(n,e.path),l=(null==r?void 0:r._id)&&(0,o.isEmpty)(r.data)&&!(0,o.has)(r,"form");if((null==r?void 0:r._id)?!l:(0,o.has)(n,e.path)){const r=(0,i.componentDataPath)(e,u,a),l=(0,o.get)(n,r,null);yield(0,t.eachComponentDataAsync)(e.components,l,s,"",c,e,f),(0,o.set)(n,r,l)}}else yield(0,t.eachComponentDataAsync)(e.components,n,s,(0,i.componentDataPath)(e,u,a),c,e,f);return!0}if("none"===(0,i.getModelType)(e)){const r=(0,i.componentInfo)(e);if(r.hasColumns){const r=e;for(const o of r.columns)yield(0,t.eachComponentDataAsync)(o.components,n,s,u,c,e)}else if(r.hasRows){const r=e;for(const o of r.rows)if(Array.isArray(o))for(const r of o)yield(0,t.eachComponentDataAsync)(r.components,n,s,u,c,e)}else if(r.hasComps){const r=e;yield(0,t.eachComponentDataAsync)(r.components,n,s,(0,i.componentFormPath)(r,u,r.path),c,e)}return!0}return!1}))),!0,u,l)}))},96690:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponentDataAsync=t.eachComponentAsync=t.eachComponentData=t.eachComponent=t.isComponentDataEmpty=t.getEmptyValue=t.findComponent=t.applyFormChanges=t.generateFormChange=t.getStrings=t.getValue=t.escapeRegExCharacters=t.formatAsCurrency=t.parseFloatExt=t.hasCondition=t.removeComponent=t.findComponents=t.searchComponents=t.getComponent=t.matchComponent=t.isLayoutComponent=t.getComponentActualValue=t.getComponentData=t.componentInfo=t.getContextualRowData=t.getContextualRowPath=t.getComponentKey=t.componentFormPath=t.componentDataPath=t.componentPath=t.isComponentNestedDataType=t.getComponentPath=t.getComponentAbsolutePath=t.getModelType=t.MODEL_TYPES_OF_KNOWN_COMPONENTS=t.uniqueName=t.guid=t.flattenComponents=void 0;const r=n(2543),o=n(54949),i=n(70678),a=n(5426);Object.defineProperty(t,"eachComponent",{enumerable:!0,get:function(){return a.eachComponent}});const s=n(57330);Object.defineProperty(t,"eachComponentData",{enumerable:!0,get:function(){return s.eachComponentData}});const u=n(83736);Object.defineProperty(t,"eachComponentAsync",{enumerable:!0,get:function(){return u.eachComponentAsync}});const c=n(42264);function l(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function f(e){if(e.modelType)return e.modelType;for(const n of Object.keys(t.MODEL_TYPES_OF_KNOWN_COMPONENTS))if(t.MODEL_TYPES_OF_KNOWN_COMPONENTS[n].includes(e.type))return n;return!1===e.input?"none":"any"}function p(e){return e.tree||"nestedArray"===f(e)||"nestedDataArray"===f(e)||"dataObject"===f(e)||"object"===f(e)||"map"===f(e)}function d(e,t){t=e.parentPath||t;const n=h(e);return n?t?`${t}.${n}`:n:t||""}function h(e){return"checkbox"===e.type&&"radio"===e.inputType&&e.name?e.name:e.key}function m(e,t){return t.replace(new RegExp(`.?${h(e)}$`),"")}function v(e,t){if((0,r.isString)(t))return e.key===t||e.path===t;{let n=!1;return(0,r.forOwn)(t,((t,o)=>{if(n=(0,r.get)(e,o)===t,!n)return!1})),n}}function y(e,t){const n=[];return(0,a.eachComponent)(e,(e=>{v(e,t)&&n.push(e)}),!0),n}function g(e,t){var n=t.pop();0!==t.length&&(e=(0,r.get)(e,t)),e.splice(n,1)}function b(e){return parseFloat((0,r.isString)(e)?e.replace(/[^\de.+-]/gi,""):e)}function _(e,t,n,r){if(e){if(n=n||[],!t)return r(e);e.forEach((function(o,i){var a=n.slice();a.push(i),o&&(o.hasOwnProperty("columns")&&Array.isArray(o.columns)&&(a.push("columns"),o.columns.forEach((function(e,n){var o=a.slice();o.push(n),o.push("components"),_(e.components,t,o,r)}))),o.hasOwnProperty("rows")&&Array.isArray(o.rows)&&(a.push("rows"),o.rows.forEach((function(e,n){var o=a.slice();o.push(n),e.forEach((function(e,n){var i=o.slice();i.push(n),i.push("components"),_(e.components,t,i,r)}))}))),o.hasOwnProperty("components")&&Array.isArray(o.components)&&(a.push("components"),_(o.components,t,a,r)),o.key===t&&r(o,a,e))}))}}function w(e){switch(e.type){case"textarea":case"textfield":case"time":case"datetime":case"day":return"";case"datagrid":case"editgrid":return[];default:return null}}Object.defineProperty(t,"eachComponentDataAsync",{enumerable:!0,get:function(){return c.eachComponentDataAsync}}),t.flattenComponents=function(e,t=!1){const n={};return(0,a.eachComponent)(e,((e,t)=>{n[t]=e}),t),n},t.guid=l,t.uniqueName=function(e,t,n){(t=t||"{{fileName}}-{{guid}}").includes("{{guid}}")||(t=`${t}-{{guid}}`);const o=e.split(".");let a=o.slice(0,o.length-1).join(".");const s=o.length>1?`.${(0,r.last)(o)}`:"";return a=a.substr(0,100),n=Object.assign(n||{},{fileName:a,guid:l()}),`${i.Evaluator.interpolate(t,n)}${s}`.replace(/[^0-9a-zA-Z.\-_ ]/g,"-")},t.MODEL_TYPES_OF_KNOWN_COMPONENTS={nestedArray:["datagrid","editgrid","datatable","dynamicWizard"],nestedDataArray:["tagpad"],dataObject:["form"],object:["container","address"],map:["datamap"],content:["htmlelement","content"],string:["textfield","password","email","url","phoneNumber","day","datetime","time","signature"],number:["number","currency"],boolean:["checkbox","radio"],none:["table","well","columns","fieldset","panel","tabs"],any:["survey","captcha","textarea","selectboxes","tags","select","hidden","button","datasource","sketchpad","reviewpage","file"]},t.getModelType=f,t.getComponentAbsolutePath=function(e){let t=[e.path];for(;e.parent;)"dataObject"===f(e=e.parent)&&(t[t.length-1]=`data.${t[t.length-1]}`,t.push(e.path));return t.reverse().join(".")},t.getComponentPath=function(e,t){const n=h(e);return n?t?t.match(new RegExp(`${n}$`))?t:"none"===f(e)?`${t}.${n}`:t:n:t},t.isComponentNestedDataType=p,t.componentPath=d,t.componentDataPath=(e,t,n)=>(t=e.parentPath||t,n=n||d(e,t),e.components&&Array.isArray(e.components)?"dataObject"===f(e)?`${n}.data`:"nestedArray"===f(e)?`${n}[0]`:"nestedDataArray"===f(e)?`${n}[0].data`:p(e)?n:t:n),t.componentFormPath=(e,t,n)=>(t=e.parentPath||t,n=n||d(e,t),"dataObject"===f(e)?`${n}.data`:p(e)?n:t),t.getComponentKey=h,t.getContextualRowPath=m,t.getContextualRowData=function(e,t,n){const o=m(e,t);return o?(0,r.get)(n,o,null):n},t.componentInfo=function(e){const t=e.columns&&Array.isArray(e.columns),n=e.rows&&Array.isArray(e.rows),r=e.components&&Array.isArray(e.components),o="content"===f(e),i="none"===f(e),a=!e.hasOwnProperty("input")||!!e.input;return{hasColumns:t,hasRows:n,hasComps:r,layout:t||n||r&&!a||i||o,iterable:t||n||r||o}},t.getComponentData=function(e,t,n){const r={component:null,data:null};return(0,s.eachComponentData)(e,t,((e,t,o,i)=>{if(i===n)return r.component=e,r.data=o,!0})),r},t.getComponentActualValue=function(e,t,n,o){var i;let a=null,s=e,u="";for(;(null===(i=null==s?void 0:s.parent)||void 0===i?void 0:i.path)&&!a;)s=s.parent,s.input&&(a=s);if(a){const e=a.path.replace(/\[[0-9]+\]/g,"");u=t.replace(e,""),u=(0,r.trim)(u,". ")}let c=null;return n&&(c=(0,r.get)(n,t)),u&&o&&(0,r.isNil)(c)&&(c=(0,r.get)(o,u)),((0,r.isNil)(c)||(0,r.isObject)(c)&&(0,r.isEmpty)(c))&&(c=""),c},t.isLayoutComponent=function(e){return Boolean(e.columns&&Array.isArray(e.columns)||e.rows&&Array.isArray(e.rows)||e.components&&Array.isArray(e.components))},t.matchComponent=v,t.getComponent=function(e,t,n=!1){let r;return(0,a.eachComponent)(e,((e,n)=>{if(n===t||e.path===t||e.input&&e.key===t)return r=e,!0}),n),r},t.searchComponents=y,t.findComponents=function(e,t){return console.warn("formio.js/utils findComponents is deprecated. Use searchComponents instead."),y(e,t)},t.removeComponent=g,t.hasCondition=function(e){return Boolean(e.customConditional||e.conditional&&(e.conditional.when||e.conditional.json||e.conditional.conjunction&&(0,r.isBoolean)(e.conditional.show)&&!(0,r.isEmpty)(e.conditional.conditions)))},t.parseFloatExt=b,t.formatAsCurrency=function(e){const t=b(e);if(isNaN(t))return"";const n=(0,r.round)(t,2).toString().split(".");return n[0]=(0,r.chunk)(Array.from(n[0]).reverse(),3).reverse().map((e=>e.reverse().join(""))).join(","),n[1]=(0,r.pad)(n[1],2,"0"),n.join(".")},t.escapeRegExCharacters=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},t.getValue=function(e,t){const n=e=>{if((0,r.isPlainObject)(e)){if((0,r.has)(e,t))return(0,r.get)(e,t);let o=null;return(0,r.forOwn)(e,(e=>{const t=n(e);if(!(0,r.isNil)(t))return o=t,!1})),o}return null};return n(e.data)},t.getStrings=function(e){const t=["label","title","legend","tooltip","description","placeholder","prefix","suffix","errorLabel","content","html"],n=[];return(0,a.eachComponent)(e.components,(e=>{if(t.forEach((t=>{e.hasOwnProperty(t)&&e[t]&&n.push({key:e.key,type:e.type,property:t,string:e[t]})})),(!e.dataSrc||"values"===e.dataSrc)&&e.hasOwnProperty("values")&&Array.isArray(e.values)&&e.values.length&&e.values.forEach(((t,r)=>{n.push({key:e.key,property:`value[${r}].label`,string:e.values[r].label})})),"day"===e.type&&(["day","month","year","Day","Month","Year","january","february","march","april","may","june","july","august","september","october","november","december"].forEach((t=>{n.push({key:e.key,property:"day",string:t})})),e.fields.day.placeholder&&n.push({key:e.key,property:"fields.day.placeholder",string:e.fields.day.placeholder}),e.fields.month.placeholder&&n.push({key:e.key,property:"fields.month.placeholder",string:e.fields.month.placeholder}),e.fields.year.placeholder&&n.push({key:e.key,property:"fields.year.placeholder",string:e.fields.year.placeholder})),"editgrid"===e.type){const t=e.addAnother||"Add Another";e.addAnother&&n.push({key:e.key,property:"addAnother",string:t})}"select"===e.type&&["loading...","Type to search"].forEach((t=>{n.push({key:e.key,property:"select",string:t})}))}),!0),n},t.generateFormChange=function(e,t){let n;switch(e){case"add":n={op:"add",key:t.component.key,container:t.parent.key,path:t.path,index:t.index,component:t.component};break;case"edit":n={op:"edit",key:t.originalComponent.key,patches:(0,o.compare)(t.originalComponent,t.component)},n.patches.length||(n=null);break;case"remove":n={op:"remove",key:t.component.key}}return n},t.applyFormChanges=function(e,t){const n=[];return t.forEach((function(t){var i=!1;switch(t.op){case"add":var a=t.component;_(e.components,t.container,null,(function(n){t.container||(n=e),_(e.components,t.key,null,(function(t,n){a=t,g(e.components,n)})),i=!0,(0,r.get)(n,t.path).splice(t.index,0,a)}));break;case"remove":_(e.components,t.key,null,(function(t,n){i=!0,(0,r.get)(e.components,n).key!==t.key&&n.pop(),g(e.components,n)}));break;case"edit":_(e.components,t.key,null,(function(a,s){i=!0;try{const n=(0,r.get)(e.components,s),i=(0,o.applyPatch)(a,t.patches).newDocument;n.key!==i.key&&s.pop(),(0,r.set)(e.components,s,i)}catch(e){n.push(t)}}))}i||n.push(t)})),{form:e,failed:n}},t.findComponent=_,t.getEmptyValue=w;const O=e=>{const t="<p>&nbsp;</p>",n="<p><br></p>",r="<p><br>&nbsp;</p>",o=new RegExp(`^${t}|${t}$|^${n}|${n}$|^${r}|${r}$`,"g");return"string"==typeof e?e.replace(o,"").trim():e};function j(e,t){const n=!(!(0,r.isArray)(t)||1!==t.length)&&(0,r.isEqual)(t[0],w(e));return null==t||""===t||(0,r.isArray)(t)&&0===t.length||n}t.isComponentDataEmpty=function e(t,n,o,i){var a;const u=(0,r.isNil)(i)?(0,r.get)(n,o):i;if((e=>"checkbox"===(null==e?void 0:e.type))(t))return j(t,u)||!1===u;if((e=>"address"===(null==e?void 0:e.type))(t))return 0===Object.keys(u).length||!Object.values((0,r.omit)(u,["mode","address"])).some(Boolean);if((e=>"datagrid"===(null==e?void 0:e.type))(t)||(e=>"editgrid"===(null==e?void 0:e.type))(t)||(e=>"datatable"===(null==e?void 0:e.type))(t)||(e=>null!=(null==e?void 0:e.components))(t)){if(null===(a=t.components)||void 0===a?void 0:a.length){let r=!0;return(0,s.eachComponentData)([t],n,((n,o,i,a,s,u)=>{t.key!==n.key&&(e(n,o,a)||(r=!1))})),j(t,u)||r}return j(t,u)}if((e=>"datetime"===(null==e?void 0:e.type))(t))return j(t,u)||"Invalid date"===u.toString();if((e=>"selectboxes"===(null==e?void 0:e.type))(t)){let e=!0;for(const t in u)if(u[t]){e=!1;break}return j(t,u)||e}if((e=>"textarea"===(null==e?void 0:e.type))(t)){const e=!t.wysiwyg&&!t.editor;return j(t,e?"string"==typeof u?u.trim():u:function(e){return e?e=Array.isArray(e)?e.map((e=>O(e))):O(e):e}(u))}return(e=>"textfield"===(null==e?void 0:e.type))(t)?t.allowMultipleMasks&&t.inputMasks&&t.inputMasks.length?j(t,u)||(t.multiple?0===u.length:!u.maskName||!u.value):j(t,null==u?void 0:u.toString().trim()):j(t,u)}},17112:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jwtDecode=void 0,t.jwtDecode=function(e,t={}){if("string"!=typeof e)throw new Error("Invalid token specified: must be a string");const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new Error("Invalid token specified: missing part #"+(n+1));let o;try{o=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,(function(e,t){let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return atob(t)}}(r)}catch(e){throw new Error("Invalid token specified: invalid base64 for part #"+(n+1)+" ("+e.message+")")}try{return JSON.parse(o)}catch(e){throw new Error("Invalid token specified: invalid json for part #"+(n+1)+" ("+e.message+")")}}},24715:function(e,t,n){var r,o;r=function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=o(e);if(t){var i=o(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)}(this,n)}}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},u.apply(this,arguments)}var c=function(){function t(){e(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return r(t,[{key:"addEventListener",value:function(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var n=this.listeners[e],r=0,o=n.length;r<o;r++)if(n[r].callback===t)return void n.splice(r,1)}},{key:"dispatchEvent",value:function(e){if(e.type in this.listeners){for(var t=this.listeners[e.type].slice(),n=0,r=t.length;n<r;n++){var o=t[n];try{o.callback.call(this,e)}catch(e){Promise.resolve().then((function(){throw e}))}o.options&&o.options.once&&this.removeEventListener(e.type,o.callback)}return!e.defaultPrevented}}}]),t}(),l=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(l,t);var n=s(l);function l(){var t;return e(this,l),(t=n.call(this)).listeners||c.call(a(t)),Object.defineProperty(a(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(a(t),"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(a(t),"reason",{value:void 0,writable:!0,configurable:!0}),t}return r(l,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),u(o(l.prototype),"dispatchEvent",this).call(this,e)}}]),l}(c),f=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new l,writable:!0,configurable:!0})}return r(t,[{key:"abort",value:function(e){var t;try{t=new Event("abort")}catch(e){"undefined"!=typeof document?document.createEvent?(t=document.createEvent("Event")).initEvent("abort",!1,!1):(t=document.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}var n=e;if(void 0===n)if("undefined"==typeof document)(n=new Error("This operation was aborted")).name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(e){(n=new Error("This operation was aborted")).name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();function p(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(f.prototype[Symbol.toStringTag]="AbortController",l.prototype[Symbol.toStringTag]="AbortSignal"),function(e){if(p(e))if(e.fetch){var t=function(e){"function"==typeof e&&(e={fetch:e});var t=e,n=t.fetch,r=t.Request,o=void 0===r?n.Request:r,i=t.AbortController,a=t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,s=void 0!==a&&a;if(!p({fetch:n,Request:o,AbortController:i,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:s}))return{fetch:n,Request:u};var u=o;(u&&!u.prototype.hasOwnProperty("signal")||s)&&((u=function(e,t){var n;t&&t.signal&&(n=t.signal,delete t.signal);var r=new o(e,t);return n&&Object.defineProperty(r,"signal",{writable:!1,enumerable:!1,configurable:!0,value:n}),r}).prototype=o.prototype);var c=n;return{fetch:function(e,t){var n=u&&u.prototype.isPrototypeOf(e)?e.signal:t?t.signal:void 0;if(n){var r;try{r=new DOMException("Aborted","AbortError")}catch(e){(r=new Error("Aborted")).name="AbortError"}if(n.aborted)return Promise.reject(r);var o=new Promise((function(e,t){n.addEventListener("abort",(function(){return t(r)}),{once:!0})}));return t&&t.signal&&delete t.signal,Promise.race([o,c(e,t)])}return c(e,t)},Request:u}}(e),n=t.fetch,r=t.Request;e.fetch=n,e.Request=r,Object.defineProperty(e,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:f}),Object.defineProperty(e,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:l})}else console.warn("fetch() is not available, cannot install abortcontroller-polyfill")}("undefined"!=typeof self?self:n.g)},void 0===(o=r.call(t,n,t,e))||(e.exports=o)},81018:function(e,t){t.defaults={},t.set=function(e,n,r){var o=r||{},i=t.defaults,a=o.expires||i.expires,s=o.domain||i.domain,u=void 0!==o.path?o.path:void 0!==i.path?i.path:"/",c=void 0!==o.secure?o.secure:i.secure,l=void 0!==o.httponly?o.httponly:i.httponly,f=void 0!==o.samesite?o.samesite:i.samesite,p=a?new Date("number"==typeof a?(new Date).getTime()+864e5*a:a):0;document.cookie=e.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+n.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(p&&p.getTime()>=0?";expires="+p.toUTCString():"")+(s?";domain="+s:"")+(u?";path="+u:"")+(c?";secure":"")+(l?";httponly":"")+(f?";samesite="+f:"")},t.get=function(e){for(var t=document.cookie.split(";");t.length;){var n=t.pop(),r=n.indexOf("=");if(r=r<0?n.length:r,decodeURIComponent(n.slice(0,r).replace(/^\s+/,""))===e)return decodeURIComponent(n.slice(r+1))}return null},t.erase=function(e,n){t.set(e,"",{expires:-1,domain:n&&n.domain,path:n&&n.path,secure:0,httponly:0})},t.all=function(){for(var e={},t=document.cookie.split(";");t.length;){var n=t.pop(),r=n.indexOf("=");r=r<0?n.length:r,e[decodeURIComponent(n.slice(0,r).replace(/^\s+/,""))]=decodeURIComponent(n.slice(r+1))}return e}},30228:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,o),!0;case 5:return l.fn.call(l.context,t,r,o,i),!0;case 6:return l.fn.call(l.context,t,r,o,i,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var p,d=l.length;for(c=0;c<d;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,r);break;case 4:l[c].fn.call(l[c].context,t,r,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||o&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},42681:function(e,t,n){var r;!function(o){"use strict";function i(e){var n=e&&e.Promise||o.Promise,r=e&&e.XMLHttpRequest||o.XMLHttpRequest;return function(){var e=Object.create(o,{fetch:{value:void 0,writable:!0}});return function(t){var o=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==o&&o,i="URLSearchParams"in o,a="Symbol"in o&&"iterator"in Symbol,s="FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch(e){return!1}}(),u="FormData"in o,c="ArrayBuffer"in o;if(c)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function p(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return a&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function v(e){if(e.bodyUsed)return n.reject(new TypeError("Already read"));e.bodyUsed=!0}function y(e){return new n((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=y(t);return t.readAsArrayBuffer(e),n}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:s&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:u&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():c&&s&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(e)||f(e))?this._bodyArrayBuffer=b(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var e=v(this);if(e)return e;if(this._bodyBlob)return n.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return n.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return n.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?v(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?n.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):n.resolve(this._bodyArrayBuffer)):this.blob().then(g)}),this.text=function(){var e,t,r,o=v(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=y(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return n.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return n.resolve(this._bodyText)},u&&(this.formData=function(){return this.text().then(j)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(e,t){e=p(e),t=d(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},m.prototype.delete=function(e){delete this.map[p(e)]},m.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},m.prototype.set=function(e,t){this.map[p(e)]=d(t)},m.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},m.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},m.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},m.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},a&&(m.prototype[Symbol.iterator]=m.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(e,t){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof O){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new m(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new m(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),w.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function j(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function A(e,t){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})},_.call(O.prototype),_.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},A.error=function(){var e=new A(null,{status:0,statusText:""});return e.type="error",e};var P=[301,302,303,307,308];A.redirect=function(e,t){if(-1===P.indexOf(t))throw new RangeError("Invalid status code");return new A(null,{status:t,headers:{location:e}})},t.DOMException=o.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function x(e,i){return new n((function(n,a){var u=new O(e,i);if(u.signal&&u.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var l=new r;function f(){l.abort()}l.onload=function(){var e,t,r={status:l.status,statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new m,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in l?l.responseURL:r.headers.get("X-Request-URL");var o="response"in l?l.response:l.responseText;setTimeout((function(){n(new A(o,r))}),0)},l.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){a(new t.DOMException("Aborted","AbortError"))}),0)},l.open(u.method,function(e){try{return""===e&&o.location.href?o.location.href:e}catch(t){return e}}(u.url),!0),"include"===u.credentials?l.withCredentials=!0:"omit"===u.credentials&&(l.withCredentials=!1),"responseType"in l&&(s?l.responseType="blob":c&&u.headers.get("Content-Type")&&-1!==u.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof m?u.headers.forEach((function(e,t){l.setRequestHeader(t,e)})):Object.getOwnPropertyNames(i.headers).forEach((function(e){l.setRequestHeader(e,d(i.headers[e]))})),u.signal&&(u.signal.addEventListener("abort",f),l.onreadystatechange=function(){4===l.readyState&&u.signal.removeEventListener("abort",f)}),l.send(void 0===u._bodyInit?null:u._bodyInit)}))}x.polyfill=!0,o.fetch||(o.fetch=x,o.Headers=m,o.Request=O,o.Response=A),t.Headers=m,t.Request=O,t.Response=A,t.fetch=x,Object.defineProperty(t,"__esModule",{value:!0})}(t),{fetch:e.fetch,Headers:e.Headers,Request:e.Request,Response:e.Response,DOMException:e.DOMException}}()}void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==n.g?n.g:this)},51873:function(e,t,n){var r=n(9325).Symbol;e.exports=r},34932:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},61074:function(e){e.exports=function(e){return e.split("")}},2523:function(e){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},72552:function(e,t,n){var r=n(51873),o=n(659),i=n(59350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},96131:function(e,t,n){var r=n(2523),o=n(85463),i=n(76959);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},85463:function(e){e.exports=function(e){return e!=e}},25160:function(e){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},77556:function(e,t,n){var r=n(51873),o=n(34932),i=n(56449),a=n(44394),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},54128:function(e,t,n){var r=n(31800),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},28754:function(e,t,n){var r=n(25160);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},23875:function(e,t,n){var r=n(96131);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},28380:function(e,t,n){var r=n(96131);e.exports=function(e,t){for(var n=-1,o=e.length;++n<o&&r(t,e[n],0)>-1;);return n}},34840:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},659:function(e,t,n){var r=n(51873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},49698:function(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},59350:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9325:function(e,t,n){var r=n(34840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},76959:function(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},63912:function(e,t,n){var r=n(61074),o=n(49698),i=n(42054);e.exports=function(e){return o(e)?i(e):r(e)}},31800:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},42054:function(e){var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",l=c+u+"(?:\\u200d(?:"+[i,a,s].join("|")+")"+c+u+")*",f="(?:"+[i+r+"?",r,a,s,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+f+l,"g");e.exports=function(e){return e.match(p)||[]}},56449:function(e){var t=Array.isArray;e.exports=t},40346:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},44394:function(e,t,n){var r=n(72552),o=n(40346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},2543:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,c=128,l=1/0,f=9007199254740991,p=NaN,d=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],m="[object Arguments]",v="[object Array]",y="[object Boolean]",g="[object Date]",b="[object Error]",_="[object Function]",w="[object GeneratorFunction]",O="[object Map]",j="[object Number]",A="[object Object]",P="[object Promise]",x="[object RegExp]",k="[object Set]",U="[object String]",E="[object Symbol]",C="[object WeakMap]",R="[object ArrayBuffer]",T="[object DataView]",S="[object Float32Array]",I="[object Float64Array]",F="[object Int8Array]",$="[object Int16Array]",D="[object Int32Array]",N="[object Uint8Array]",L="[object Uint8ClampedArray]",M="[object Uint16Array]",q="[object Uint32Array]",B=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,G=RegExp(H.source),J=RegExp(V.source),Y=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",Oe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",je="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",Pe="A-Z\\xc0-\\xd6\\xd8-\\xde",xe="\\ufe0e\\ufe0f",ke="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ue="["+we+"]",Ee="["+ke+"]",Ce="["+Oe+"]",Re="\\d+",Te="["+je+"]",Se="["+Ae+"]",Ie="[^"+we+ke+Re+je+Ae+Pe+"]",Fe="\\ud83c[\\udffb-\\udfff]",$e="[^"+we+"]",De="(?:\\ud83c[\\udde6-\\uddff]){2}",Ne="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+Pe+"]",Me="\\u200d",qe="(?:"+Se+"|"+Ie+")",Be="(?:"+Le+"|"+Ie+")",ze="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",He="(?:"+Ce+"|"+Fe+")?",Ve="["+xe+"]?",Ge=Ve+He+"(?:"+Me+"(?:"+[$e,De,Ne].join("|")+")"+Ve+He+")*",Je="(?:"+[Te,De,Ne].join("|")+")"+Ge,Ye="(?:"+[$e+Ce+"?",Ce,De,Ne,Ue].join("|")+")",Ke=RegExp("['’]","g"),Xe=RegExp(Ce,"g"),Ze=RegExp(Fe+"(?="+Fe+")|"+Ye+Ge,"g"),Qe=RegExp([Le+"?"+Se+"+"+ze+"(?="+[Ee,Le,"$"].join("|")+")",Be+"+"+We+"(?="+[Ee,Le+qe,"$"].join("|")+")",Le+"?"+qe+"+"+ze,Le+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Je].join("|"),"g"),et=RegExp("["+Me+we+Oe+xe+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[S]=ot[I]=ot[F]=ot[$]=ot[D]=ot[N]=ot[L]=ot[M]=ot[q]=!0,ot[m]=ot[v]=ot[R]=ot[y]=ot[T]=ot[g]=ot[b]=ot[_]=ot[O]=ot[j]=ot[A]=ot[x]=ot[k]=ot[U]=ot[C]=!1;var it={};it[m]=it[v]=it[R]=it[T]=it[y]=it[g]=it[S]=it[I]=it[F]=it[$]=it[D]=it[O]=it[j]=it[A]=it[x]=it[k]=it[U]=it[E]=it[N]=it[L]=it[M]=it[q]=!0,it[b]=it[_]=it[C]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ut=parseInt,ct="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,lt="object"==typeof self&&self&&self.Object===Object&&self,ft=ct||lt||Function("return this")(),pt=t&&!t.nodeType&&t,dt=pt&&e&&!e.nodeType&&e,ht=dt&&dt.exports===pt,mt=ht&&ct.process,vt=function(){try{return dt&&dt.require&&dt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),yt=vt&&vt.isArrayBuffer,gt=vt&&vt.isDate,bt=vt&&vt.isMap,_t=vt&&vt.isRegExp,wt=vt&&vt.isSet,Ot=vt&&vt.isTypedArray;function jt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function At(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function xt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function kt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ut(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Et(e,t){return!(null==e||!e.length)&&Lt(e,t,0)>-1}function Ct(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Rt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Tt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function St(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function It(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Ft(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var $t=zt("length");function Dt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Nt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Lt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Nt(e,qt,n)}function Mt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function qt(e){return e!=e}function Bt(e,t){var n=null==e?0:e.length;return n?Vt(e,t)/n:p}function zt(e){return function(t){return null==t?o:t[e]}}function Wt(e){return function(t){return null==e?o:e[t]}}function Ht(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Vt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Gt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Jt(e){return e?e.slice(0,pn(e)+1).replace(re,""):e}function Yt(e){return function(t){return e(t)}}function Kt(e,t){return Rt(t,(function(t){return e[t]}))}function Xt(e,t){return e.has(t)}function Zt(e,t){for(var n=-1,r=e.length;++n<r&&Lt(t,e[n],0)>-1;);return n}function Qt(e,t){for(var n=e.length;n--&&Lt(t,e[n],0)>-1;);return n}var en=Wt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=Wt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function an(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function ln(e){return rn(e)?function(e){for(var t=Ze.lastIndex=0;Ze.test(e);)++t;return t}(e):$t(e)}function fn(e){return rn(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.split("")}(e)}function pn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var dn=Wt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),hn=function e(t){var n,r=(t=null==t?ft:hn.defaults(ft.Object(),t,hn.pick(ft,nt))).Array,oe=t.Date,we=t.Error,Oe=t.Function,je=t.Math,Ae=t.Object,Pe=t.RegExp,xe=t.String,ke=t.TypeError,Ue=r.prototype,Ee=Oe.prototype,Ce=Ae.prototype,Re=t["__core-js_shared__"],Te=Ee.toString,Se=Ce.hasOwnProperty,Ie=0,Fe=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",$e=Ce.toString,De=Te.call(Ae),Ne=ft._,Le=Pe("^"+Te.call(Se).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=ht?t.Buffer:o,qe=t.Symbol,Be=t.Uint8Array,ze=Me?Me.allocUnsafe:o,We=an(Ae.getPrototypeOf,Ae),He=Ae.create,Ve=Ce.propertyIsEnumerable,Ge=Ue.splice,Je=qe?qe.isConcatSpreadable:o,Ye=qe?qe.iterator:o,Ze=qe?qe.toStringTag:o,et=function(){try{var e=ci(Ae,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,ct=oe&&oe.now!==ft.Date.now&&oe.now,lt=t.setTimeout!==ft.setTimeout&&t.setTimeout,pt=je.ceil,dt=je.floor,mt=Ae.getOwnPropertySymbols,vt=Me?Me.isBuffer:o,$t=t.isFinite,Wt=Ue.join,mn=an(Ae.keys,Ae),vn=je.max,yn=je.min,gn=oe.now,bn=t.parseInt,_n=je.random,wn=Ue.reverse,On=ci(t,"DataView"),jn=ci(t,"Map"),An=ci(t,"Promise"),Pn=ci(t,"Set"),xn=ci(t,"WeakMap"),kn=ci(Ae,"create"),Un=xn&&new xn,En={},Cn=Di(On),Rn=Di(jn),Tn=Di(An),Sn=Di(Pn),In=Di(xn),Fn=qe?qe.prototype:o,$n=Fn?Fn.valueOf:o,Dn=Fn?Fn.toString:o;function Nn(e){if(es(e)&&!za(e)&&!(e instanceof Bn)){if(e instanceof qn)return e;if(Se.call(e,"__wrapped__"))return Ni(e)}return new qn(e)}var Ln=function(){function e(){}return function(t){if(!Qa(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Mn(){}function qn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Bn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Hn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Wn(e);this.size=t.size}function Jn(e,t){var n=za(e),r=!n&&Ba(e),o=!n&&!r&&Ga(e),i=!n&&!r&&!o&&us(e),a=n||r||o||i,s=a?Gt(e.length,xe):[],u=s.length;for(var c in e)!t&&!Se.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||vi(c,u))||s.push(c);return s}function Yn(e){var t=e.length;return t?e[Hr(0,t-1)]:o}function Kn(e,t){return Ti(ko(e),ir(t,0,e.length))}function Xn(e){return Ti(ko(e))}function Zn(e,t,n){(n!==o&&!La(e[t],n)||n===o&&!(t in e))&&rr(e,t,n)}function Qn(e,t,n){var r=e[t];Se.call(e,t)&&La(r,n)&&(n!==o||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(La(e[n][0],t))return n;return-1}function tr(e,t,n,r){return lr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function nr(e,t){return e&&Uo(t,Cs(t),e)}function rr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:Ps(e,t[n]);return a}function ir(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ar(e,t,n,r,i,a){var s,u=1&t,c=2&t,l=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!Qa(e))return e;var f=za(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Se.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return ko(e,s)}else{var p=pi(e),d=p==_||p==w;if(Ga(e))return wo(e,u);if(p==A||p==m||d&&!i){if(s=c||d?{}:hi(e),!u)return c?function(e,t){return Uo(e,fi(e),t)}(e,function(e,t){return e&&Uo(t,Rs(t),e)}(s,e)):function(e,t){return Uo(e,li(e),t)}(e,nr(s,e))}else{if(!it[p])return i?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case R:return Oo(e);case y:case g:return new o(+e);case T:return function(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case S:case I:case F:case $:case D:case N:case L:case M:case q:return jo(e,n);case O:return new o;case j:case U:return new o(e);case x:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new o;case E:return r=e,$n?Ae($n.call(r)):{}}}(e,p,u)}}a||(a=new Gn);var h=a.get(e);if(h)return h;a.set(e,s),is(e)?e.forEach((function(r){s.add(ar(r,t,n,r,e,a))})):ts(e)&&e.forEach((function(r,o){s.set(o,ar(r,t,n,o,e,a))}));var v=f?o:(l?c?ni:ti:c?Rs:Cs)(e);return Pt(v||e,(function(r,o){v&&(r=e[o=r]),Qn(s,o,ar(r,t,n,o,e,a))})),s}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ae(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new ke(i);return Ui((function(){e.apply(o,n)}),t)}function cr(e,t,n,r){var o=-1,i=Et,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=Rt(t,Yt(n))),r?(i=Ct,a=!1):t.length>=200&&(i=Xt,a=!1,t=new Vn(t));e:for(;++o<s;){var l=e[o],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var p=c;p--;)if(t[p]===f)continue e;u.push(l)}else i(t,f,r)||u.push(l)}return u}Nn.templateSettings={escape:Y,evaluate:K,interpolate:X,variable:"",imports:{_:Nn}},Nn.prototype=Mn.prototype,Nn.prototype.constructor=Nn,qn.prototype=Ln(Mn.prototype),qn.prototype.constructor=qn,Bn.prototype=Ln(Mn.prototype),Bn.prototype.constructor=Bn,zn.prototype.clear=function(){this.__data__=kn?kn(null):{},this.size=0},zn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},zn.prototype.get=function(e){var t=this.__data__;if(kn){var n=t[e];return n===a?o:n}return Se.call(t,e)?t[e]:o},zn.prototype.has=function(e){var t=this.__data__;return kn?t[e]!==o:Se.call(t,e)},zn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=kn&&t===o?a:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},Wn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?o:t[n][1]},Wn.prototype.has=function(e){return er(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Hn.prototype.clear=function(){this.size=0,this.__data__={hash:new zn,map:new(jn||Wn),string:new zn}},Hn.prototype.delete=function(e){var t=si(this,e).delete(e);return this.size-=t?1:0,t},Hn.prototype.get=function(e){return si(this,e).get(e)},Hn.prototype.has=function(e){return si(this,e).has(e)},Hn.prototype.set=function(e,t){var n=si(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Vn.prototype.add=Vn.prototype.push=function(e){return this.__data__.set(e,a),this},Vn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var r=n.__data__;if(!jn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hn(r)}return n.set(e,t),this.size=n.size,this};var lr=Ro(gr),fr=Ro(br,!0);function pr(e,t){var n=!0;return lr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function dr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(u===o?s==s&&!ss(s):n(s,u)))var u=s,c=a}return c}function hr(e,t){var n=[];return lr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function mr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=mi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?mr(s,t-1,n,r,o):Tt(o,s):r||(o[o.length]=s)}return o}var vr=To(),yr=To(!0);function gr(e,t){return e&&vr(e,t,Cs)}function br(e,t){return e&&yr(e,t,Cs)}function _r(e,t){return Ut(t,(function(t){return Ka(e[t])}))}function wr(e,t){for(var n=0,r=(t=yo(t,e)).length;null!=e&&n<r;)e=e[$i(t[n++])];return n&&n==r?e:o}function Or(e,t,n){var r=t(e);return za(e)?r:Tt(r,n(e))}function jr(e){return null==e?e===o?"[object Undefined]":"[object Null]":Ze&&Ze in Ae(e)?function(e){var t=Se.call(e,Ze),n=e[Ze];try{e[Ze]=o;var r=!0}catch(e){}var i=$e.call(e);return r&&(t?e[Ze]=n:delete e[Ze]),i}(e):function(e){return $e.call(e)}(e)}function Ar(e,t){return e>t}function Pr(e,t){return null!=e&&Se.call(e,t)}function xr(e,t){return null!=e&&t in Ae(e)}function kr(e,t,n){for(var i=n?Ct:Et,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Rt(p,Yt(t))),l=yn(p.length,l),c[u]=!n&&(t||a>=120&&p.length>=120)?new Vn(u&&p):o}p=e[0];var d=-1,h=c[0];e:for(;++d<a&&f.length<l;){var m=p[d],v=t?t(m):m;if(m=n||0!==m?m:0,!(h?Xt(h,v):i(f,v,n))){for(u=s;--u;){var y=c[u];if(!(y?Xt(y,v):i(e[u],v,n)))continue e}h&&h.push(v),f.push(m)}}return f}function Ur(e,t,n){var r=null==(e=Pi(e,t=yo(t,e)))?e:e[$i(Yi(t))];return null==r?o:jt(r,e,n)}function Er(e){return es(e)&&jr(e)==m}function Cr(e,t,n,r,i){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=za(e),u=za(t),c=s?v:pi(e),l=u?v:pi(t),f=(c=c==m?A:c)==A,p=(l=l==m?A:l)==A,d=c==l;if(d&&Ga(e)){if(!Ga(t))return!1;s=!0,f=!1}if(d&&!f)return a||(a=new Gn),s||us(e)?Qo(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!i(new Be(e),new Be(t)));case y:case g:case j:return La(+e,+t);case b:return e.name==t.name&&e.message==t.message;case x:case U:return e==t+"";case O:var s=on;case k:var u=1&r;if(s||(s=un),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var l=Qo(s(e),s(t),r,o,i,a);return a.delete(e),l;case E:if($n)return $n.call(e)==$n.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var h=f&&Se.call(e,"__wrapped__"),_=p&&Se.call(t,"__wrapped__");if(h||_){var w=h?e.value():e,P=_?t.value():t;return a||(a=new Gn),i(w,P,n,r,a)}}return!!d&&(a||(a=new Gn),function(e,t,n,r,i,a){var s=1&n,u=ti(e),c=u.length;if(c!=ti(t).length&&!s)return!1;for(var l=c;l--;){var f=u[l];if(!(s?f in t:Se.call(t,f)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=s;++l<c;){var v=e[f=u[l]],y=t[f];if(r)var g=s?r(y,v,f,t,e,a):r(v,y,f,e,t,a);if(!(g===o?v===y||i(v,y,n,r,a):g)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var b=e.constructor,_=t.constructor;b==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,i,a))}(e,t,n,r,Cr,i))}function Rr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Ae(e);i--;){var u=n[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){var c=(u=n[i])[0],l=e[c],f=u[1];if(s&&u[2]){if(l===o&&!(c in e))return!1}else{var p=new Gn;if(r)var d=r(l,f,c,e,t,p);if(!(d===o?Cr(f,l,3,r,p):d))return!1}}return!0}function Tr(e){return!(!Qa(e)||(t=e,Fe&&Fe in t))&&(Ka(e)?Le:me).test(Di(e));var t}function Sr(e){return"function"==typeof e?e:null==e?nu:"object"==typeof e?za(e)?Nr(e[0],e[1]):Dr(e):fu(e)}function Ir(e){if(!wi(e))return mn(e);var t=[];for(var n in Ae(e))Se.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Fr(e,t){return e<t}function $r(e,t){var n=-1,o=Ha(e)?r(e.length):[];return lr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Dr(e){var t=ui(e);return 1==t.length&&t[0][2]?ji(t[0][0],t[0][1]):function(n){return n===e||Rr(n,e,t)}}function Nr(e,t){return gi(e)&&Oi(t)?ji($i(e),t):function(n){var r=Ps(n,e);return r===o&&r===t?xs(n,e):Cr(t,r,3)}}function Lr(e,t,n,r,i){e!==t&&vr(t,(function(a,s){if(i||(i=new Gn),Qa(a))!function(e,t,n,r,i,a,s){var u=xi(e,n),c=xi(t,n),l=s.get(c);if(l)Zn(e,n,l);else{var f=a?a(u,c,n+"",e,t,s):o,p=f===o;if(p){var d=za(c),h=!d&&Ga(c),m=!d&&!h&&us(c);f=c,d||h||m?za(u)?f=u:Va(u)?f=ko(u):h?(p=!1,f=wo(c,!0)):m?(p=!1,f=jo(c,!0)):f=[]:rs(c)||Ba(c)?(f=u,Ba(u)?f=vs(u):Qa(u)&&!Ka(u)||(f=hi(c))):p=!1}p&&(s.set(c,f),i(f,c,r,a,s),s.delete(c)),Zn(e,n,f)}}(e,t,s,n,Lr,r,i);else{var u=r?r(xi(e,s),a,s+"",e,t,i):o;u===o&&(u=a),Zn(e,s,u)}}),Rs)}function Mr(e,t){var n=e.length;if(n)return vi(t+=t<0?n:0,n)?e[t]:o}function qr(e,t,n){t=t.length?Rt(t,(function(e){return za(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e})):[nu];var r=-1;t=Rt(t,Yt(ai()));var o=$r(e,(function(e,n,o){var i=Rt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var u=Ao(o[r],i[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(o)}function Br(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=wr(e,a);n(s,a)&&Kr(i,yo(a,e),s)}return i}function zr(e,t,n,r){var o=r?Mt:Lt,i=-1,a=t.length,s=e;for(e===t&&(t=ko(t)),n&&(s=Rt(e,Yt(n)));++i<a;)for(var u=0,c=t[i],l=n?n(c):c;(u=o(s,l,u,r))>-1;)s!==e&&Ge.call(s,u,1),Ge.call(e,u,1);return e}function Wr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;vi(o)?Ge.call(e,o,1):uo(e,o)}}return e}function Hr(e,t){return e+dt(_n()*(t-e+1))}function Vr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=dt(t/2))&&(e+=e)}while(t);return n}function Gr(e,t){return Ei(Ai(e,t,nu),e+"")}function Jr(e){return Yn(Ls(e))}function Yr(e,t){var n=Ls(e);return Ti(n,ir(t,0,n.length))}function Kr(e,t,n,r){if(!Qa(e))return e;for(var i=-1,a=(t=yo(t,e)).length,s=a-1,u=e;null!=u&&++i<a;){var c=$i(t[i]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var f=u[c];(l=r?r(f,c,u):o)===o&&(l=Qa(f)?f:vi(t[i+1])?[]:{})}Qn(u,c,l),u=u[c]}return e}var Xr=Un?function(e,t){return Un.set(e,t),e}:nu,Zr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Qs(t),writable:!0})}:nu;function Qr(e){return Ti(Ls(e))}function eo(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function to(e,t){var n;return lr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function no(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!ss(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return ro(e,t,nu,n)}function ro(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,u=null===t,c=ss(t),l=t===o;i<a;){var f=dt((i+a)/2),p=n(e[f]),d=p!==o,h=null===p,m=p==p,v=ss(p);if(s)var y=r||m;else y=l?m&&(r||d):u?m&&d&&(r||!h):c?m&&d&&!h&&(r||!v):!h&&!v&&(r?p<=t:p<t);y?i=f+1:a=f}return yn(a,4294967294)}function oo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!La(s,u)){var u=s;i[o++]=0===a?0:a}}return i}function io(e){return"number"==typeof e?e:ss(e)?p:+e}function ao(e){if("string"==typeof e)return e;if(za(e))return Rt(e,ao)+"";if(ss(e))return Dn?Dn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function so(e,t,n){var r=-1,o=Et,i=e.length,a=!0,s=[],u=s;if(n)a=!1,o=Ct;else if(i>=200){var c=t?null:Go(e);if(c)return un(c);a=!1,o=Xt,u=new Vn}else u=t?[]:s;e:for(;++r<i;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),s.push(l)}else o(u,f,n)||(u!==s&&u.push(f),s.push(l))}return s}function uo(e,t){return null==(e=Pi(e,t=yo(t,e)))||delete e[$i(Yi(t))]}function co(e,t,n,r){return Kr(e,t,n(wr(e,t)),r)}function lo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?eo(e,r?0:i,r?i+1:o):eo(e,r?i+1:0,r?o:i)}function fo(e,t){var n=e;return n instanceof Bn&&(n=n.value()),St(t,(function(e,t){return t.func.apply(t.thisArg,Tt([e],t.args))}),n)}function po(e,t,n){var o=e.length;if(o<2)return o?so(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],u=-1;++u<o;)u!=i&&(a[i]=cr(a[i]||s,e[u],t,n));return so(mr(a,1),t,n)}function ho(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var u=r<a?t[r]:o;n(s,e[r],u)}return s}function mo(e){return Va(e)?e:[]}function vo(e){return"function"==typeof e?e:nu}function yo(e,t){return za(e)?e:gi(e,t)?[e]:Fi(ys(e))}var go=Gr;function bo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:eo(e,t,n)}var _o=at||function(e){return ft.clearTimeout(e)};function wo(e,t){if(t)return e.slice();var n=e.length,r=ze?ze(n):new e.constructor(n);return e.copy(r),r}function Oo(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function jo(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ao(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=ss(e),s=t!==o,u=null===t,c=t==t,l=ss(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||u&&n&&i||!s&&i||!c)return-1}return 0}function Po(e,t,n,o){for(var i=-1,a=e.length,s=n.length,u=-1,c=t.length,l=vn(a-s,0),f=r(c+l),p=!o;++u<c;)f[u]=t[u];for(;++i<s;)(p||i<a)&&(f[n[i]]=e[i]);for(;l--;)f[u++]=e[i++];return f}function xo(e,t,n,o){for(var i=-1,a=e.length,s=-1,u=n.length,c=-1,l=t.length,f=vn(a-u,0),p=r(f+l),d=!o;++i<f;)p[i]=e[i];for(var h=i;++c<l;)p[h+c]=t[c];for(;++s<u;)(d||i<a)&&(p[h+n[s]]=e[i++]);return p}function ko(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Uo(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):o;c===o&&(c=e[u]),i?rr(n,u,c):Qn(n,u,c)}return n}function Eo(e,t){return function(n,r){var o=za(n)?At:tr,i=t?t():{};return o(n,e,ai(r,2),i)}}function Co(e){return Gr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&yi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=Ae(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t}))}function Ro(e,t){return function(n,r){if(null==n)return n;if(!Ha(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ae(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function To(e){return function(t,n,r){for(var o=-1,i=Ae(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}function So(e){return function(t){var n=rn(t=ys(t))?fn(t):o,r=n?n[0]:t.charAt(0),i=n?bo(n,1).join(""):t.slice(1);return r[e]()+i}}function Io(e){return function(t){return St(Ks(Bs(t).replace(Ke,"")),e,"")}}function Fo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Ln(e.prototype),r=e.apply(n,t);return Qa(r)?r:n}}function $o(e){return function(t,n,r){var i=Ae(t);if(!Ha(t)){var a=ai(n,3);t=Cs(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function Do(e){return ei((function(t){var n=t.length,r=n,a=qn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new ke(i);if(a&&!u&&"wrapper"==oi(s))var u=new qn([],!0)}for(r=u?r:n;++r<n;){var c=oi(s=t[r]),l="wrapper"==c?ri(s):o;u=l&&bi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[oi(l[0])].apply(u,l[3]):1==s.length&&bi(s)?u[c]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&za(r))return u.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function No(e,t,n,i,a,s,u,l,f,p){var d=t&c,h=1&t,m=2&t,v=24&t,y=512&t,g=m?o:Fo(e);return function c(){for(var b=arguments.length,_=r(b),w=b;w--;)_[w]=arguments[w];if(v)var O=ii(c),j=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(_,O);if(i&&(_=Po(_,i,a,v)),s&&(_=xo(_,s,u,v)),b-=j,v&&b<p){var A=sn(_,O);return Ho(e,t,No,c.placeholder,n,_,A,l,f,p-b)}var P=h?n:this,x=m?P[e]:e;return b=_.length,l?_=function(e,t){for(var n=e.length,r=yn(t.length,n),i=ko(e);r--;){var a=t[r];e[r]=vi(a,n)?i[a]:o}return e}(_,l):y&&b>1&&_.reverse(),d&&f<b&&(_.length=f),this&&this!==ft&&this instanceof c&&(x=g||Fo(x)),x.apply(P,_)}}function Lo(e,t){return function(n,r){return function(e,t,n,r){return gr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Mo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=ao(n),r=ao(r)):(n=io(n),r=io(r)),i=e(n,r)}return i}}function qo(e){return ei((function(t){return t=Rt(t,Yt(ai())),Gr((function(n){var r=this;return e(t,(function(e){return jt(e,r,n)}))}))}))}function Bo(e,t){var n=(t=t===o?" ":ao(t)).length;if(n<2)return n?Vr(t,e):t;var r=Vr(t,pt(e/ln(t)));return rn(t)?bo(fn(r),0,e).join(""):r.slice(0,e)}function zo(e){return function(t,n,i){return i&&"number"!=typeof i&&yi(t,n,i)&&(n=i=o),t=ps(t),n===o?(n=t,t=0):n=ps(n),function(e,t,n,o){for(var i=-1,a=vn(pt((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:ps(i),e)}}function Wo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function Ho(e,t,n,r,i,a,s,c,l,f){var p=8&t;t|=p?u:64,4&(t&=~(p?64:u))||(t&=-4);var d=[e,t,i,p?a:o,p?s:o,p?o:a,p?o:s,c,l,f],h=n.apply(o,d);return bi(e)&&ki(h,d),h.placeholder=r,Ci(h,e,t)}function Vo(e){var t=je[e];return function(e,n){if(e=ms(e),(n=null==n?0:yn(ds(n),292))&&$t(e)){var r=(ys(e)+"e").split("e");return+((r=(ys(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Go=Pn&&1/un(new Pn([,-0]))[1]==l?function(e){return new Pn(e)}:su;function Jo(e){return function(t){var n=pi(t);return n==O?on(t):n==k?cn(t):function(e,t){return Rt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Yo(e,t,n,a,l,f,p,d){var h=2&t;if(!h&&"function"!=typeof e)throw new ke(i);var m=a?a.length:0;if(m||(t&=-97,a=l=o),p=p===o?p:vn(ds(p),0),d=d===o?d:ds(d),m-=l?l.length:0,64&t){var v=a,y=l;a=l=o}var g=h?o:ri(e),b=[e,t,n,a,l,v,y,f,p,d];if(g&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Po(l,u,t[4]):u,e[4]=l?sn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?xo(l,u,t[6]):u,e[6]=l?sn(e[5],s):t[6]),(u=t[7])&&(e[7]=u),r&c&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(b,g),e=b[0],t=b[1],n=b[2],a=b[3],l=b[4],!(d=b[9]=b[9]===o?h?0:e.length:vn(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||16==t?function(e,t,n){var i=Fo(e);return function a(){for(var s=arguments.length,u=r(s),c=s,l=ii(a);c--;)u[c]=arguments[c];var f=s<3&&u[0]!==l&&u[s-1]!==l?[]:sn(u,l);return(s-=f.length)<n?Ho(e,t,No,a.placeholder,o,u,f,o,o,n-s):jt(this&&this!==ft&&this instanceof a?i:e,this,u)}}(e,t,d):t!=u&&33!=t||l.length?No.apply(o,b):function(e,t,n,o){var i=1&t,a=Fo(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=o.length,f=r(l+u),p=this&&this!==ft&&this instanceof t?a:e;++c<l;)f[c]=o[c];for(;u--;)f[c++]=arguments[++s];return jt(p,i?n:this,f)}}(e,t,n,a);else var _=function(e,t,n){var r=1&t,o=Fo(e);return function t(){return(this&&this!==ft&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Ci((g?Xr:ki)(_,b),e,t)}function Ko(e,t,n,r){return e===o||La(e,Ce[n])&&!Se.call(r,n)?t:e}function Xo(e,t,n,r,i,a){return Qa(e)&&Qa(t)&&(a.set(t,e),Lr(e,t,o,Xo,a),a.delete(t)),e}function Zo(e){return rs(e)?o:e}function Qo(e,t,n,r,i,a){var s=1&n,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var p=-1,d=!0,h=2&n?new Vn:o;for(a.set(e,t),a.set(t,e);++p<u;){var m=e[p],v=t[p];if(r)var y=s?r(v,m,p,t,e,a):r(m,v,p,e,t,a);if(y!==o){if(y)continue;d=!1;break}if(h){if(!Ft(t,(function(e,t){if(!Xt(h,t)&&(m===e||i(m,e,n,r,a)))return h.push(t)}))){d=!1;break}}else if(m!==v&&!i(m,v,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function ei(e){return Ei(Ai(e,o,Wi),e+"")}function ti(e){return Or(e,Cs,li)}function ni(e){return Or(e,Rs,fi)}var ri=Un?function(e){return Un.get(e)}:su;function oi(e){for(var t=e.name+"",n=En[t],r=Se.call(En,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ii(e){return(Se.call(Nn,"placeholder")?Nn:e).placeholder}function ai(){var e=Nn.iteratee||ru;return e=e===ru?Sr:e,arguments.length?e(arguments[0],arguments[1]):e}function si(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ui(e){for(var t=Cs(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Oi(o)]}return t}function ci(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Tr(n)?n:o}var li=mt?function(e){return null==e?[]:(e=Ae(e),Ut(mt(e),(function(t){return Ve.call(e,t)})))}:hu,fi=mt?function(e){for(var t=[];e;)Tt(t,li(e)),e=We(e);return t}:hu,pi=jr;function di(e,t,n){for(var r=-1,o=(t=yo(t,e)).length,i=!1;++r<o;){var a=$i(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Za(o)&&vi(a,o)&&(za(e)||Ba(e))}function hi(e){return"function"!=typeof e.constructor||wi(e)?{}:Ln(We(e))}function mi(e){return za(e)||Ba(e)||!!(Je&&e&&e[Je])}function vi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ye.test(e))&&e>-1&&e%1==0&&e<t}function yi(e,t,n){if(!Qa(n))return!1;var r=typeof t;return!!("number"==r?Ha(n)&&vi(t,n.length):"string"==r&&t in n)&&La(n[t],e)}function gi(e,t){if(za(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ss(e))||Q.test(e)||!Z.test(e)||null!=t&&e in Ae(t)}function bi(e){var t=oi(e),n=Nn[t];if("function"!=typeof n||!(t in Bn.prototype))return!1;if(e===n)return!0;var r=ri(n);return!!r&&e===r[0]}(On&&pi(new On(new ArrayBuffer(1)))!=T||jn&&pi(new jn)!=O||An&&pi(An.resolve())!=P||Pn&&pi(new Pn)!=k||xn&&pi(new xn)!=C)&&(pi=function(e){var t=jr(e),n=t==A?e.constructor:o,r=n?Di(n):"";if(r)switch(r){case Cn:return T;case Rn:return O;case Tn:return P;case Sn:return k;case In:return C}return t});var _i=Re?Ka:mu;function wi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ce)}function Oi(e){return e==e&&!Qa(e)}function ji(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Ae(n))}}function Ai(e,t,n){return t=vn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=vn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var u=r(t+1);++i<t;)u[i]=o[i];return u[t]=n(s),jt(e,this,u)}}function Pi(e,t){return t.length<2?e:wr(e,eo(t,0,-1))}function xi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ki=Ri(Xr),Ui=lt||function(e,t){return ft.setTimeout(e,t)},Ei=Ri(Zr);function Ci(e,t,n){var r=t+"";return Ei(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Pt(h,(function(n){var r="_."+n[0];t&n[1]&&!Et(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Ri(e){var t=0,n=0;return function(){var r=gn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ti(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Hr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Si,Ii,Fi=(Si=Sa((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(le,"$1"):n||e)})),t}),(function(e){return 500===Ii.size&&Ii.clear(),e})),Ii=Si.cache,Si);function $i(e){if("string"==typeof e||ss(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Di(e){if(null!=e){try{return Te.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ni(e){if(e instanceof Bn)return e.clone();var t=new qn(e.__wrapped__,e.__chain__);return t.__actions__=ko(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Li=Gr((function(e,t){return Va(e)?cr(e,mr(t,1,Va,!0)):[]})),Mi=Gr((function(e,t){var n=Yi(t);return Va(n)&&(n=o),Va(e)?cr(e,mr(t,1,Va,!0),ai(n,2)):[]})),qi=Gr((function(e,t){var n=Yi(t);return Va(n)&&(n=o),Va(e)?cr(e,mr(t,1,Va,!0),o,n):[]}));function Bi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ds(n);return o<0&&(o=vn(r+o,0)),Nt(e,ai(t,3),o)}function zi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ds(n),i=n<0?vn(r+i,0):yn(i,r-1)),Nt(e,ai(t,3),i,!0)}function Wi(e){return null!=e&&e.length?mr(e,1):[]}function Hi(e){return e&&e.length?e[0]:o}var Vi=Gr((function(e){var t=Rt(e,mo);return t.length&&t[0]===e[0]?kr(t):[]})),Gi=Gr((function(e){var t=Yi(e),n=Rt(e,mo);return t===Yi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?kr(n,ai(t,2)):[]})),Ji=Gr((function(e){var t=Yi(e),n=Rt(e,mo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?kr(n,o,t):[]}));function Yi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Ki=Gr(Xi);function Xi(e,t){return e&&e.length&&t&&t.length?zr(e,t):e}var Zi=ei((function(e,t){var n=null==e?0:e.length,r=or(e,t);return Wr(e,Rt(t,(function(e){return vi(e,n)?+e:e})).sort(Ao)),r}));function Qi(e){return null==e?e:wn.call(e)}var ea=Gr((function(e){return so(mr(e,1,Va,!0))})),ta=Gr((function(e){var t=Yi(e);return Va(t)&&(t=o),so(mr(e,1,Va,!0),ai(t,2))})),na=Gr((function(e){var t=Yi(e);return t="function"==typeof t?t:o,so(mr(e,1,Va,!0),o,t)}));function ra(e){if(!e||!e.length)return[];var t=0;return e=Ut(e,(function(e){if(Va(e))return t=vn(e.length,t),!0})),Gt(t,(function(t){return Rt(e,zt(t))}))}function oa(e,t){if(!e||!e.length)return[];var n=ra(e);return null==t?n:Rt(n,(function(e){return jt(t,o,e)}))}var ia=Gr((function(e,t){return Va(e)?cr(e,t):[]})),aa=Gr((function(e){return po(Ut(e,Va))})),sa=Gr((function(e){var t=Yi(e);return Va(t)&&(t=o),po(Ut(e,Va),ai(t,2))})),ua=Gr((function(e){var t=Yi(e);return t="function"==typeof t?t:o,po(Ut(e,Va),o,t)})),ca=Gr(ra),la=Gr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,oa(e,n)}));function fa(e){var t=Nn(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var da=ei((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Bn&&vi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pa,args:[i],thisArg:o}),new qn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),ha=Eo((function(e,t,n){Se.call(e,n)?++e[n]:rr(e,n,1)})),ma=$o(Bi),va=$o(zi);function ya(e,t){return(za(e)?Pt:lr)(e,ai(t,3))}function ga(e,t){return(za(e)?xt:fr)(e,ai(t,3))}var ba=Eo((function(e,t,n){Se.call(e,n)?e[n].push(t):rr(e,n,[t])})),_a=Gr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ha(e)?r(e.length):[];return lr(e,(function(e){a[++o]=i?jt(t,e,n):Ur(e,t,n)})),a})),wa=Eo((function(e,t,n){rr(e,n,t)}));function Oa(e,t){return(za(e)?Rt:$r)(e,ai(t,3))}var ja=Eo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Aa=Gr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yi(e,t[0],t[1])?t=[]:n>2&&yi(t[0],t[1],t[2])&&(t=[t[0]]),qr(e,mr(t,1),[])})),Pa=ct||function(){return ft.Date.now()};function xa(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Yo(e,c,o,o,o,o,t)}function ka(e,t){var n;if("function"!=typeof t)throw new ke(i);return e=ds(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ua=Gr((function(e,t,n){var r=1;if(n.length){var o=sn(n,ii(Ua));r|=u}return Yo(e,r,t,n,o)})),Ea=Gr((function(e,t,n){var r=3;if(n.length){var o=sn(n,ii(Ea));r|=u}return Yo(t,r,e,n,o)}));function Ca(e,t,n){var r,a,s,u,c,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new ke(i);function m(t){var n=r,i=a;return r=a=o,f=t,u=e.apply(i,n)}function v(e){var n=e-l;return l===o||n>=t||n<0||d&&e-f>=s}function y(){var e=Pa();if(v(e))return g(e);c=Ui(y,function(e){var n=t-(e-l);return d?yn(n,s-(e-f)):n}(e))}function g(e){return c=o,h&&r?m(e):(r=a=o,u)}function b(){var e=Pa(),n=v(e);if(r=arguments,a=this,l=e,n){if(c===o)return function(e){return f=e,c=Ui(y,t),p?m(e):u}(l);if(d)return _o(c),c=Ui(y,t),m(l)}return c===o&&(c=Ui(y,t)),u}return t=ms(t)||0,Qa(n)&&(p=!!n.leading,s=(d="maxWait"in n)?vn(ms(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){c!==o&&_o(c),f=0,r=l=a=c=o},b.flush=function(){return c===o?u:g(Pa())},b}var Ra=Gr((function(e,t){return ur(e,1,t)})),Ta=Gr((function(e,t,n){return ur(e,ms(t)||0,n)}));function Sa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Sa.Cache||Hn),n}function Ia(e){if("function"!=typeof e)throw new ke(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Sa.Cache=Hn;var Fa=go((function(e,t){var n=(t=1==t.length&&za(t[0])?Rt(t[0],Yt(ai())):Rt(mr(t,1),Yt(ai()))).length;return Gr((function(r){for(var o=-1,i=yn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return jt(e,this,r)}))})),$a=Gr((function(e,t){var n=sn(t,ii($a));return Yo(e,u,o,t,n)})),Da=Gr((function(e,t){var n=sn(t,ii(Da));return Yo(e,64,o,t,n)})),Na=ei((function(e,t){return Yo(e,256,o,o,o,t)}));function La(e,t){return e===t||e!=e&&t!=t}var Ma=Wo(Ar),qa=Wo((function(e,t){return e>=t})),Ba=Er(function(){return arguments}())?Er:function(e){return es(e)&&Se.call(e,"callee")&&!Ve.call(e,"callee")},za=r.isArray,Wa=yt?Yt(yt):function(e){return es(e)&&jr(e)==R};function Ha(e){return null!=e&&Za(e.length)&&!Ka(e)}function Va(e){return es(e)&&Ha(e)}var Ga=vt||mu,Ja=gt?Yt(gt):function(e){return es(e)&&jr(e)==g};function Ya(e){if(!es(e))return!1;var t=jr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Ka(e){if(!Qa(e))return!1;var t=jr(e);return t==_||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xa(e){return"number"==typeof e&&e==ds(e)}function Za(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function Qa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=bt?Yt(bt):function(e){return es(e)&&pi(e)==O};function ns(e){return"number"==typeof e||es(e)&&jr(e)==j}function rs(e){if(!es(e)||jr(e)!=A)return!1;var t=We(e);if(null===t)return!0;var n=Se.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Te.call(n)==De}var os=_t?Yt(_t):function(e){return es(e)&&jr(e)==x},is=wt?Yt(wt):function(e){return es(e)&&pi(e)==k};function as(e){return"string"==typeof e||!za(e)&&es(e)&&jr(e)==U}function ss(e){return"symbol"==typeof e||es(e)&&jr(e)==E}var us=Ot?Yt(Ot):function(e){return es(e)&&Za(e.length)&&!!ot[jr(e)]},cs=Wo(Fr),ls=Wo((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(Ha(e))return as(e)?fn(e):ko(e);if(Ye&&e[Ye])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ye]());var t=pi(e);return(t==O?on:t==k?un:Ls)(e)}function ps(e){return e?(e=ms(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ds(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function hs(e){return e?ir(ds(e),0,d):0}function ms(e){if("number"==typeof e)return e;if(ss(e))return p;if(Qa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=he.test(e);return n||ve.test(e)?ut(e.slice(2),n?2:8):de.test(e)?p:+e}function vs(e){return Uo(e,Rs(e))}function ys(e){return null==e?"":ao(e)}var gs=Co((function(e,t){if(wi(t)||Ha(t))Uo(t,Cs(t),e);else for(var n in t)Se.call(t,n)&&Qn(e,n,t[n])})),bs=Co((function(e,t){Uo(t,Rs(t),e)})),_s=Co((function(e,t,n,r){Uo(t,Rs(t),e,r)})),ws=Co((function(e,t,n,r){Uo(t,Cs(t),e,r)})),Os=ei(or),js=Gr((function(e,t){e=Ae(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&yi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Rs(a),u=-1,c=s.length;++u<c;){var l=s[u],f=e[l];(f===o||La(f,Ce[l])&&!Se.call(e,l))&&(e[l]=a[l])}return e})),As=Gr((function(e){return e.push(o,Xo),jt(Ss,o,e)}));function Ps(e,t,n){var r=null==e?o:wr(e,t);return r===o?n:r}function xs(e,t){return null!=e&&di(e,t,xr)}var ks=Lo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=$e.call(t)),e[t]=n}),Qs(nu)),Us=Lo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=$e.call(t)),Se.call(e,t)?e[t].push(n):e[t]=[n]}),ai),Es=Gr(Ur);function Cs(e){return Ha(e)?Jn(e):Ir(e)}function Rs(e){return Ha(e)?Jn(e,!0):function(e){if(!Qa(e))return function(e){var t=[];if(null!=e)for(var n in Ae(e))t.push(n);return t}(e);var t=wi(e),n=[];for(var r in e)("constructor"!=r||!t&&Se.call(e,r))&&n.push(r);return n}(e)}var Ts=Co((function(e,t,n){Lr(e,t,n)})),Ss=Co((function(e,t,n,r){Lr(e,t,n,r)})),Is=ei((function(e,t){var n={};if(null==e)return n;var r=!1;t=Rt(t,(function(t){return t=yo(t,e),r||(r=t.length>1),t})),Uo(e,ni(e),n),r&&(n=ar(n,7,Zo));for(var o=t.length;o--;)uo(n,t[o]);return n})),Fs=ei((function(e,t){return null==e?{}:function(e,t){return Br(e,t,(function(t,n){return xs(e,n)}))}(e,t)}));function $s(e,t){if(null==e)return{};var n=Rt(ni(e),(function(e){return[e]}));return t=ai(t),Br(e,n,(function(e,n){return t(e,n[0])}))}var Ds=Jo(Cs),Ns=Jo(Rs);function Ls(e){return null==e?[]:Kt(e,Cs(e))}var Ms=Io((function(e,t,n){return t=t.toLowerCase(),e+(n?qs(t):t)}));function qs(e){return Ys(ys(e).toLowerCase())}function Bs(e){return(e=ys(e))&&e.replace(ge,en).replace(Xe,"")}var zs=Io((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ws=Io((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Hs=So("toLowerCase"),Vs=Io((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Gs=Io((function(e,t,n){return e+(n?" ":"")+Ys(t)})),Js=Io((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ys=So("toUpperCase");function Ks(e,t,n){return e=ys(e),(t=n?o:t)===o?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Xs=Gr((function(e,t){try{return jt(e,o,t)}catch(e){return Ya(e)?e:new we(e)}})),Zs=ei((function(e,t){return Pt(t,(function(t){t=$i(t),rr(e,t,Ua(e[t],e))})),e}));function Qs(e){return function(){return e}}var eu=Do(),tu=Do(!0);function nu(e){return e}function ru(e){return Sr("function"==typeof e?e:ar(e,1))}var ou=Gr((function(e,t){return function(n){return Ur(n,e,t)}})),iu=Gr((function(e,t){return function(n){return Ur(e,n,t)}}));function au(e,t,n){var r=Cs(t),o=_r(t,r);null!=n||Qa(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=_r(t,Cs(t)));var i=!(Qa(n)&&"chain"in n&&!n.chain),a=Ka(e);return Pt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=ko(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Tt([this.value()],arguments))})})),e}function su(){}var uu=qo(Rt),cu=qo(kt),lu=qo(Ft);function fu(e){return gi(e)?zt($i(e)):function(e){return function(t){return wr(t,e)}}(e)}var pu=zo(),du=zo(!0);function hu(){return[]}function mu(){return!1}var vu,yu=Mo((function(e,t){return e+t}),0),gu=Vo("ceil"),bu=Mo((function(e,t){return e/t}),1),_u=Vo("floor"),wu=Mo((function(e,t){return e*t}),1),Ou=Vo("round"),ju=Mo((function(e,t){return e-t}),0);return Nn.after=function(e,t){if("function"!=typeof t)throw new ke(i);return e=ds(e),function(){if(--e<1)return t.apply(this,arguments)}},Nn.ary=xa,Nn.assign=gs,Nn.assignIn=bs,Nn.assignInWith=_s,Nn.assignWith=ws,Nn.at=Os,Nn.before=ka,Nn.bind=Ua,Nn.bindAll=Zs,Nn.bindKey=Ea,Nn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return za(e)?e:[e]},Nn.chain=fa,Nn.chunk=function(e,t,n){t=(n?yi(e,t,n):t===o)?1:vn(ds(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=r(pt(i/t));a<i;)u[s++]=eo(e,a,a+=t);return u},Nn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Nn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Tt(za(n)?ko(n):[n],mr(t,1))},Nn.cond=function(e){var t=null==e?0:e.length,n=ai();return e=t?Rt(e,(function(e){if("function"!=typeof e[1])throw new ke(i);return[n(e[0]),e[1]]})):[],Gr((function(n){for(var r=-1;++r<t;){var o=e[r];if(jt(o[0],this,n))return jt(o[1],this,n)}}))},Nn.conforms=function(e){return function(e){var t=Cs(e);return function(n){return sr(n,e,t)}}(ar(e,1))},Nn.constant=Qs,Nn.countBy=ha,Nn.create=function(e,t){var n=Ln(e);return null==t?n:nr(n,t)},Nn.curry=function e(t,n,r){var i=Yo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Nn.curryRight=function e(t,n,r){var i=Yo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Nn.debounce=Ca,Nn.defaults=js,Nn.defaultsDeep=As,Nn.defer=Ra,Nn.delay=Ta,Nn.difference=Li,Nn.differenceBy=Mi,Nn.differenceWith=qi,Nn.drop=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,(t=n||t===o?1:ds(t))<0?0:t,r):[]},Nn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,0,(t=r-(t=n||t===o?1:ds(t)))<0?0:t):[]},Nn.dropRightWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!0,!0):[]},Nn.dropWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!0):[]},Nn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&yi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ds(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ds(r))<0&&(r+=i),r=n>r?0:hs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Nn.filter=function(e,t){return(za(e)?Ut:hr)(e,ai(t,3))},Nn.flatMap=function(e,t){return mr(Oa(e,t),1)},Nn.flatMapDeep=function(e,t){return mr(Oa(e,t),l)},Nn.flatMapDepth=function(e,t,n){return n=n===o?1:ds(n),mr(Oa(e,t),n)},Nn.flatten=Wi,Nn.flattenDeep=function(e){return null!=e&&e.length?mr(e,l):[]},Nn.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===o?1:ds(t)):[]},Nn.flip=function(e){return Yo(e,512)},Nn.flow=eu,Nn.flowRight=tu,Nn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Nn.functions=function(e){return null==e?[]:_r(e,Cs(e))},Nn.functionsIn=function(e){return null==e?[]:_r(e,Rs(e))},Nn.groupBy=ba,Nn.initial=function(e){return null!=e&&e.length?eo(e,0,-1):[]},Nn.intersection=Vi,Nn.intersectionBy=Gi,Nn.intersectionWith=Ji,Nn.invert=ks,Nn.invertBy=Us,Nn.invokeMap=_a,Nn.iteratee=ru,Nn.keyBy=wa,Nn.keys=Cs,Nn.keysIn=Rs,Nn.map=Oa,Nn.mapKeys=function(e,t){var n={};return t=ai(t,3),gr(e,(function(e,r,o){rr(n,t(e,r,o),e)})),n},Nn.mapValues=function(e,t){var n={};return t=ai(t,3),gr(e,(function(e,r,o){rr(n,r,t(e,r,o))})),n},Nn.matches=function(e){return Dr(ar(e,1))},Nn.matchesProperty=function(e,t){return Nr(e,ar(t,1))},Nn.memoize=Sa,Nn.merge=Ts,Nn.mergeWith=Ss,Nn.method=ou,Nn.methodOf=iu,Nn.mixin=au,Nn.negate=Ia,Nn.nthArg=function(e){return e=ds(e),Gr((function(t){return Mr(t,e)}))},Nn.omit=Is,Nn.omitBy=function(e,t){return $s(e,Ia(ai(t)))},Nn.once=function(e){return ka(2,e)},Nn.orderBy=function(e,t,n,r){return null==e?[]:(za(t)||(t=null==t?[]:[t]),za(n=r?o:n)||(n=null==n?[]:[n]),qr(e,t,n))},Nn.over=uu,Nn.overArgs=Fa,Nn.overEvery=cu,Nn.overSome=lu,Nn.partial=$a,Nn.partialRight=Da,Nn.partition=ja,Nn.pick=Fs,Nn.pickBy=$s,Nn.property=fu,Nn.propertyOf=function(e){return function(t){return null==e?o:wr(e,t)}},Nn.pull=Ki,Nn.pullAll=Xi,Nn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?zr(e,t,ai(n,2)):e},Nn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?zr(e,t,o,n):e},Nn.pullAt=Zi,Nn.range=pu,Nn.rangeRight=du,Nn.rearg=Na,Nn.reject=function(e,t){return(za(e)?Ut:hr)(e,Ia(ai(t,3)))},Nn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ai(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Wr(e,o),n},Nn.rest=function(e,t){if("function"!=typeof e)throw new ke(i);return Gr(e,t=t===o?t:ds(t))},Nn.reverse=Qi,Nn.sampleSize=function(e,t,n){return t=(n?yi(e,t,n):t===o)?1:ds(t),(za(e)?Kn:Yr)(e,t)},Nn.set=function(e,t,n){return null==e?e:Kr(e,t,n)},Nn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Kr(e,t,n,r)},Nn.shuffle=function(e){return(za(e)?Xn:Qr)(e)},Nn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&yi(e,t,n)?(t=0,n=r):(t=null==t?0:ds(t),n=n===o?r:ds(n)),eo(e,t,n)):[]},Nn.sortBy=Aa,Nn.sortedUniq=function(e){return e&&e.length?oo(e):[]},Nn.sortedUniqBy=function(e,t){return e&&e.length?oo(e,ai(t,2)):[]},Nn.split=function(e,t,n){return n&&"number"!=typeof n&&yi(e,t,n)&&(t=n=o),(n=n===o?d:n>>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=ao(t))&&rn(e)?bo(fn(e),0,n):e.split(t,n):[]},Nn.spread=function(e,t){if("function"!=typeof e)throw new ke(i);return t=null==t?0:vn(ds(t),0),Gr((function(n){var r=n[t],o=bo(n,0,t);return r&&Tt(o,r),jt(e,this,o)}))},Nn.tail=function(e){var t=null==e?0:e.length;return t?eo(e,1,t):[]},Nn.take=function(e,t,n){return e&&e.length?eo(e,0,(t=n||t===o?1:ds(t))<0?0:t):[]},Nn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,(t=r-(t=n||t===o?1:ds(t)))<0?0:t,r):[]},Nn.takeRightWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!1,!0):[]},Nn.takeWhile=function(e,t){return e&&e.length?lo(e,ai(t,3)):[]},Nn.tap=function(e,t){return t(e),e},Nn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ke(i);return Qa(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ca(e,t,{leading:r,maxWait:t,trailing:o})},Nn.thru=pa,Nn.toArray=fs,Nn.toPairs=Ds,Nn.toPairsIn=Ns,Nn.toPath=function(e){return za(e)?Rt(e,$i):ss(e)?[e]:ko(Fi(ys(e)))},Nn.toPlainObject=vs,Nn.transform=function(e,t,n){var r=za(e),o=r||Ga(e)||us(e);if(t=ai(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Qa(e)&&Ka(i)?Ln(We(e)):{}}return(o?Pt:gr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Nn.unary=function(e){return xa(e,1)},Nn.union=ea,Nn.unionBy=ta,Nn.unionWith=na,Nn.uniq=function(e){return e&&e.length?so(e):[]},Nn.uniqBy=function(e,t){return e&&e.length?so(e,ai(t,2)):[]},Nn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?so(e,o,t):[]},Nn.unset=function(e,t){return null==e||uo(e,t)},Nn.unzip=ra,Nn.unzipWith=oa,Nn.update=function(e,t,n){return null==e?e:co(e,t,vo(n))},Nn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:co(e,t,vo(n),r)},Nn.values=Ls,Nn.valuesIn=function(e){return null==e?[]:Kt(e,Rs(e))},Nn.without=ia,Nn.words=Ks,Nn.wrap=function(e,t){return $a(vo(t),e)},Nn.xor=aa,Nn.xorBy=sa,Nn.xorWith=ua,Nn.zip=ca,Nn.zipObject=function(e,t){return ho(e||[],t||[],Qn)},Nn.zipObjectDeep=function(e,t){return ho(e||[],t||[],Kr)},Nn.zipWith=la,Nn.entries=Ds,Nn.entriesIn=Ns,Nn.extend=bs,Nn.extendWith=_s,au(Nn,Nn),Nn.add=yu,Nn.attempt=Xs,Nn.camelCase=Ms,Nn.capitalize=qs,Nn.ceil=gu,Nn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ms(n))==n?n:0),t!==o&&(t=(t=ms(t))==t?t:0),ir(ms(e),t,n)},Nn.clone=function(e){return ar(e,4)},Nn.cloneDeep=function(e){return ar(e,5)},Nn.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:o)},Nn.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:o)},Nn.conformsTo=function(e,t){return null==t||sr(e,t,Cs(t))},Nn.deburr=Bs,Nn.defaultTo=function(e,t){return null==e||e!=e?t:e},Nn.divide=bu,Nn.endsWith=function(e,t,n){e=ys(e),t=ao(t);var r=e.length,i=n=n===o?r:ir(ds(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Nn.eq=La,Nn.escape=function(e){return(e=ys(e))&&J.test(e)?e.replace(V,tn):e},Nn.escapeRegExp=function(e){return(e=ys(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Nn.every=function(e,t,n){var r=za(e)?kt:pr;return n&&yi(e,t,n)&&(t=o),r(e,ai(t,3))},Nn.find=ma,Nn.findIndex=Bi,Nn.findKey=function(e,t){return Dt(e,ai(t,3),gr)},Nn.findLast=va,Nn.findLastIndex=zi,Nn.findLastKey=function(e,t){return Dt(e,ai(t,3),br)},Nn.floor=_u,Nn.forEach=ya,Nn.forEachRight=ga,Nn.forIn=function(e,t){return null==e?e:vr(e,ai(t,3),Rs)},Nn.forInRight=function(e,t){return null==e?e:yr(e,ai(t,3),Rs)},Nn.forOwn=function(e,t){return e&&gr(e,ai(t,3))},Nn.forOwnRight=function(e,t){return e&&br(e,ai(t,3))},Nn.get=Ps,Nn.gt=Ma,Nn.gte=qa,Nn.has=function(e,t){return null!=e&&di(e,t,Pr)},Nn.hasIn=xs,Nn.head=Hi,Nn.identity=nu,Nn.includes=function(e,t,n,r){e=Ha(e)?e:Ls(e),n=n&&!r?ds(n):0;var o=e.length;return n<0&&(n=vn(o+n,0)),as(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Lt(e,t,n)>-1},Nn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ds(n);return o<0&&(o=vn(r+o,0)),Lt(e,t,o)},Nn.inRange=function(e,t,n){return t=ps(t),n===o?(n=t,t=0):n=ps(n),function(e,t,n){return e>=yn(t,n)&&e<vn(t,n)}(e=ms(e),t,n)},Nn.invoke=Es,Nn.isArguments=Ba,Nn.isArray=za,Nn.isArrayBuffer=Wa,Nn.isArrayLike=Ha,Nn.isArrayLikeObject=Va,Nn.isBoolean=function(e){return!0===e||!1===e||es(e)&&jr(e)==y},Nn.isBuffer=Ga,Nn.isDate=Ja,Nn.isElement=function(e){return es(e)&&1===e.nodeType&&!rs(e)},Nn.isEmpty=function(e){if(null==e)return!0;if(Ha(e)&&(za(e)||"string"==typeof e||"function"==typeof e.splice||Ga(e)||us(e)||Ba(e)))return!e.length;var t=pi(e);if(t==O||t==k)return!e.size;if(wi(e))return!Ir(e).length;for(var n in e)if(Se.call(e,n))return!1;return!0},Nn.isEqual=function(e,t){return Cr(e,t)},Nn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Cr(e,t,o,n):!!r},Nn.isError=Ya,Nn.isFinite=function(e){return"number"==typeof e&&$t(e)},Nn.isFunction=Ka,Nn.isInteger=Xa,Nn.isLength=Za,Nn.isMap=ts,Nn.isMatch=function(e,t){return e===t||Rr(e,t,ui(t))},Nn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Rr(e,t,ui(t),n)},Nn.isNaN=function(e){return ns(e)&&e!=+e},Nn.isNative=function(e){if(_i(e))throw new we("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Tr(e)},Nn.isNil=function(e){return null==e},Nn.isNull=function(e){return null===e},Nn.isNumber=ns,Nn.isObject=Qa,Nn.isObjectLike=es,Nn.isPlainObject=rs,Nn.isRegExp=os,Nn.isSafeInteger=function(e){return Xa(e)&&e>=-9007199254740991&&e<=f},Nn.isSet=is,Nn.isString=as,Nn.isSymbol=ss,Nn.isTypedArray=us,Nn.isUndefined=function(e){return e===o},Nn.isWeakMap=function(e){return es(e)&&pi(e)==C},Nn.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==jr(e)},Nn.join=function(e,t){return null==e?"":Wt.call(e,t)},Nn.kebabCase=zs,Nn.last=Yi,Nn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ds(n))<0?vn(r+i,0):yn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Nt(e,qt,i,!0)},Nn.lowerCase=Ws,Nn.lowerFirst=Hs,Nn.lt=cs,Nn.lte=ls,Nn.max=function(e){return e&&e.length?dr(e,nu,Ar):o},Nn.maxBy=function(e,t){return e&&e.length?dr(e,ai(t,2),Ar):o},Nn.mean=function(e){return Bt(e,nu)},Nn.meanBy=function(e,t){return Bt(e,ai(t,2))},Nn.min=function(e){return e&&e.length?dr(e,nu,Fr):o},Nn.minBy=function(e,t){return e&&e.length?dr(e,ai(t,2),Fr):o},Nn.stubArray=hu,Nn.stubFalse=mu,Nn.stubObject=function(){return{}},Nn.stubString=function(){return""},Nn.stubTrue=function(){return!0},Nn.multiply=wu,Nn.nth=function(e,t){return e&&e.length?Mr(e,ds(t)):o},Nn.noConflict=function(){return ft._===this&&(ft._=Ne),this},Nn.noop=su,Nn.now=Pa,Nn.pad=function(e,t,n){e=ys(e);var r=(t=ds(t))?ln(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Bo(dt(o),n)+e+Bo(pt(o),n)},Nn.padEnd=function(e,t,n){e=ys(e);var r=(t=ds(t))?ln(e):0;return t&&r<t?e+Bo(t-r,n):e},Nn.padStart=function(e,t,n){e=ys(e);var r=(t=ds(t))?ln(e):0;return t&&r<t?Bo(t-r,n)+e:e},Nn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(ys(e).replace(re,""),t||0)},Nn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&yi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=ps(e),t===o?(t=e,e=0):t=ps(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=_n();return yn(e+i*(t-e+st("1e-"+((i+"").length-1))),t)}return Hr(e,t)},Nn.reduce=function(e,t,n){var r=za(e)?St:Ht,o=arguments.length<3;return r(e,ai(t,4),n,o,lr)},Nn.reduceRight=function(e,t,n){var r=za(e)?It:Ht,o=arguments.length<3;return r(e,ai(t,4),n,o,fr)},Nn.repeat=function(e,t,n){return t=(n?yi(e,t,n):t===o)?1:ds(t),Vr(ys(e),t)},Nn.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Nn.result=function(e,t,n){var r=-1,i=(t=yo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[$i(t[r])];a===o&&(r=i,a=n),e=Ka(a)?a.call(e):a}return e},Nn.round=Ou,Nn.runInContext=e,Nn.sample=function(e){return(za(e)?Yn:Jr)(e)},Nn.size=function(e){if(null==e)return 0;if(Ha(e))return as(e)?ln(e):e.length;var t=pi(e);return t==O||t==k?e.size:Ir(e).length},Nn.snakeCase=Vs,Nn.some=function(e,t,n){var r=za(e)?Ft:to;return n&&yi(e,t,n)&&(t=o),r(e,ai(t,3))},Nn.sortedIndex=function(e,t){return no(e,t)},Nn.sortedIndexBy=function(e,t,n){return ro(e,t,ai(n,2))},Nn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=no(e,t);if(r<n&&La(e[r],t))return r}return-1},Nn.sortedLastIndex=function(e,t){return no(e,t,!0)},Nn.sortedLastIndexBy=function(e,t,n){return ro(e,t,ai(n,2),!0)},Nn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=no(e,t,!0)-1;if(La(e[n],t))return n}return-1},Nn.startCase=Gs,Nn.startsWith=function(e,t,n){return e=ys(e),n=null==n?0:ir(ds(n),0,e.length),t=ao(t),e.slice(n,n+t.length)==t},Nn.subtract=ju,Nn.sum=function(e){return e&&e.length?Vt(e,nu):0},Nn.sumBy=function(e,t){return e&&e.length?Vt(e,ai(t,2)):0},Nn.template=function(e,t,n){var r=Nn.templateSettings;n&&yi(e,t,n)&&(t=o),e=ys(e),t=_s({},t,r,Ko);var i,a,s=_s({},t.imports,r.imports,Ko),u=Cs(s),c=Kt(s,u),l=0,f=t.interpolate||be,p="__p += '",d=Pe((t.escape||be).source+"|"+f.source+"|"+(f===X?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Se.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(d,(function(t,n,r,o,s,u){return r||(r=o),p+=e.slice(l,u).replace(_e,nn),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),p+="';\n";var m=Se.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new we("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(B,""):p).replace(z,"$1").replace(W,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=Xs((function(){return Oe(u,h+"return "+p).apply(o,c)}));if(v.source=p,Ya(v))throw v;return v},Nn.times=function(e,t){if((e=ds(e))<1||e>f)return[];var n=d,r=yn(e,d);t=ai(t),e-=d;for(var o=Gt(r,t);++n<e;)t(n);return o},Nn.toFinite=ps,Nn.toInteger=ds,Nn.toLength=hs,Nn.toLower=function(e){return ys(e).toLowerCase()},Nn.toNumber=ms,Nn.toSafeInteger=function(e){return e?ir(ds(e),-9007199254740991,f):0===e?e:0},Nn.toString=ys,Nn.toUpper=function(e){return ys(e).toUpperCase()},Nn.trim=function(e,t,n){if((e=ys(e))&&(n||t===o))return Jt(e);if(!e||!(t=ao(t)))return e;var r=fn(e),i=fn(t);return bo(r,Zt(r,i),Qt(r,i)+1).join("")},Nn.trimEnd=function(e,t,n){if((e=ys(e))&&(n||t===o))return e.slice(0,pn(e)+1);if(!e||!(t=ao(t)))return e;var r=fn(e);return bo(r,0,Qt(r,fn(t))+1).join("")},Nn.trimStart=function(e,t,n){if((e=ys(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=ao(t)))return e;var r=fn(e);return bo(r,Zt(r,fn(t))).join("")},Nn.truncate=function(e,t){var n=30,r="...";if(Qa(t)){var i="separator"in t?t.separator:i;n="length"in t?ds(t.length):n,r="omission"in t?ao(t.omission):r}var a=(e=ys(e)).length;if(rn(e)){var s=fn(e);a=s.length}if(n>=a)return e;var u=n-ln(r);if(u<1)return r;var c=s?bo(s,0,u).join(""):e.slice(0,u);if(i===o)return c+r;if(s&&(u+=c.length-u),os(i)){if(e.slice(u).search(i)){var l,f=c;for(i.global||(i=Pe(i.source,ys(pe.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var p=l.index;c=c.slice(0,p===o?u:p)}}else if(e.indexOf(ao(i),u)!=u){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+r},Nn.unescape=function(e){return(e=ys(e))&&G.test(e)?e.replace(H,dn):e},Nn.uniqueId=function(e){var t=++Ie;return ys(e)+t},Nn.upperCase=Js,Nn.upperFirst=Ys,Nn.each=ya,Nn.eachRight=ga,Nn.first=Hi,au(Nn,(vu={},gr(Nn,(function(e,t){Se.call(Nn.prototype,t)||(vu[t]=e)})),vu),{chain:!1}),Nn.VERSION="4.17.21",Pt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Nn[e].placeholder=Nn})),Pt(["drop","take"],(function(e,t){Bn.prototype[e]=function(n){n=n===o?1:vn(ds(n),0);var r=this.__filtered__&&!t?new Bn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},Bn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Pt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Bn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ai(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Pt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Bn.prototype[e]=function(){return this[n](1).value()[0]}})),Pt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Bn.prototype[e]=function(){return this.__filtered__?new Bn(this):this[n](1)}})),Bn.prototype.compact=function(){return this.filter(nu)},Bn.prototype.find=function(e){return this.filter(e).head()},Bn.prototype.findLast=function(e){return this.reverse().find(e)},Bn.prototype.invokeMap=Gr((function(e,t){return"function"==typeof e?new Bn(this):this.map((function(n){return Ur(n,e,t)}))})),Bn.prototype.reject=function(e){return this.filter(Ia(ai(e)))},Bn.prototype.slice=function(e,t){e=ds(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Bn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ds(t))<0?n.dropRight(-t):n.take(t-e)),n)},Bn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Bn.prototype.toArray=function(){return this.take(d)},gr(Bn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Nn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Nn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Bn,c=s[0],l=u||za(t),f=function(e){var t=i.apply(Nn,Tt([e],s));return r&&p?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,m=u&&!d;if(!a&&l){t=m?t:new Bn(this);var v=e.apply(t,s);return v.__actions__.push({func:pa,args:[f],thisArg:o}),new qn(v,p)}return h&&m?e.apply(this,s):(v=this.thru(f),h?r?v.value()[0]:v.value():v)})})),Pt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ue[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Nn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(za(o)?o:[],e)}return this[n]((function(n){return t.apply(za(n)?n:[],e)}))}})),gr(Bn.prototype,(function(e,t){var n=Nn[t];if(n){var r=n.name+"";Se.call(En,r)||(En[r]=[]),En[r].push({name:t,func:n})}})),En[No(o,2).name]=[{name:"wrapper",func:o}],Bn.prototype.clone=function(){var e=new Bn(this.__wrapped__);return e.__actions__=ko(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ko(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ko(this.__views__),e},Bn.prototype.reverse=function(){if(this.__filtered__){var e=new Bn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Bn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=za(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yn(t,e+a);break;case"takeRight":e=vn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,f=l.length,p=0,d=yn(u,this.__takeCount__);if(!n||!r&&o==u&&d==u)return fo(e,this.__actions__);var h=[];e:for(;u--&&p<d;){for(var m=-1,v=e[c+=t];++m<f;){var y=l[m],g=y.iteratee,b=y.type,_=g(v);if(2==b)v=_;else if(!_){if(1==b)continue e;break e}}h[p++]=v}return h},Nn.prototype.at=da,Nn.prototype.chain=function(){return fa(this)},Nn.prototype.commit=function(){return new qn(this.value(),this.__chain__)},Nn.prototype.next=function(){this.__values__===o&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Nn.prototype.plant=function(e){for(var t,n=this;n instanceof Mn;){var r=Ni(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Nn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Bn){var t=e;return this.__actions__.length&&(t=new Bn(this)),(t=t.reverse()).__actions__.push({func:pa,args:[Qi],thisArg:o}),new qn(t,this.__chain__)}return this.thru(Qi)},Nn.prototype.toJSON=Nn.prototype.valueOf=Nn.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},Nn.prototype.first=Nn.prototype.head,Ye&&(Nn.prototype[Ye]=function(){return this}),Nn}();ft._=hn,(r=function(){return hn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},13222:function(e,t,n){var r=n(77556);e.exports=function(e){return null==e?"":r(e)}},44826:function(e,t,n){var r=n(77556),o=n(54128),i=n(28754),a=n(23875),s=n(28380),u=n(63912),c=n(13222);e.exports=function(e,t,n){if((e=c(e))&&(n||void 0===t))return o(e);if(!e||!(t=r(t)))return e;var l=u(e),f=u(t),p=s(l,f),d=a(l,f)+1;return i(l,p,d).join("")}},15993:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=t.FormioPathType=void 0;const o=r(n(42681)),i=n(60554),a=n(2543),s=n(96690),u=n(17112),c=r(n(30228)),l=r(n(81018)),{fetch:f,Headers:p}=(0,o.default)(),d=r(n(23370));var h;!function(e){e.Subdirectories="Subdirectories",e.Subdomains="Subdomains"}(h||(t.FormioPathType=h={}));class m{constructor(e,t={}){if(this.path=e,this.options=t,this.base="",this.projectsUrl="",this.projectUrl="",this.projectId="",this.roleUrl="",this.rolesUrl="",this.roleId="",this.formUrl="",this.formsUrl="",this.formId="",this.submissionsUrl="",this.submissionUrl="",this.submissionId="",this.actionsUrl="",this.actionId="",this.actionUrl="",this.vsUrl="",this.vId="",this.vUrl="",this.query="",this.noProject=!1,!(this instanceof m))return new m(e);if(t.useSessionToken&&m.useSessionToken(t),t.hasOwnProperty("base")&&t.base)this.base=t.base;else if(m.baseUrl)this.base=m.baseUrl;else if(window&&window.location){const e=window.location.href.match(/http[s]?:\/\/api./);this.base=e?e[0]:window.location.origin}if(!e)return this.projectUrl=m.projectUrl||`${this.base}/project`,this.projectsUrl=`${this.base}/project`,this.projectId="",void(this.query="");t.hasOwnProperty("project")&&t.project&&(this.projectUrl=t.project);const n=this.projectUrl||m.projectUrl,r=/(^|\/)(project)($|\/[^/]+)/,o=-1!==e.search(r);n&&this.base===n&&!o&&(this.noProject=!0,this.projectUrl=this.base),0!==e.indexOf("http")&&0!==e.indexOf("//")&&(e=this.base+e);const i=this.getUrlParts(e);let a="",s=[];if(i){a=i[1]+i[2];const t=(e=i.length>3?i[3]:"").split("?");t.length>1&&(e=t[0],this.query=`?${t[1]}`)}const u=(t,n)=>{this[`${t}sUrl`]=`${n}/${t}`;const r=new RegExp(`/${t}/([^/]+)`);return e&&-1!==e.search(r)&&(s=e.match(r),this[`${t}Url`]=s?n+s[0]:"",this[`${t}Id`]=s.length>1?s[1]:"",n+=s[0]),n},c=(e,t,n)=>{for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];if(Array.isArray(o))c(o,t,!0);else{const e=u(o,t);t=n?t:e}}};if(!this.projectUrl||this.projectUrl===this.base)if(this.projectUrl||o||"Subdirectories"!==m.pathType)this.projectUrl=a;else{const e=`^${a.replace(/\//g,"\\/")}.[^/]+`,t=n.match(new RegExp(e));this.projectUrl=t?t[0]:a}let l=!1;if(m.pathType&&(l="Subdomains"!==m.pathType),!this.noProject){if(o)c(["project"],a),e=e.replace(r,"");else if(a===this.base){if(i&&i.length>3&&e.split("/").length>1){const t=e.match(/.json/),n=e.split("/");if(t)this.projectUrl=a;else{n.shift();const t=n.shift();t&&(this.projectId=t,e=`/${n.join("/")}`,this.projectUrl=`${a}/${this.projectId}`)}}}else i&&i.length>2&&(i[2].split(".").length>2||a.includes("localhost"))&&!l&&(this.projectUrl=a,this.projectId=i[2].split(".")[0]);this.projectsUrl=this.projectsUrl||`${this.base}/project`}if(c(["role"],this.projectUrl),/(^|\/)(form)($|\/)/.test(e))c(["form",["submission","action","v"]],this.projectUrl);else{const t=new RegExp("/(submission|action|v)($|/.*)"),n=e.match(t);n&&n.length>1&&(this.pathType=n[1]),e=(e=e.replace(t,"")).replace(/\/$/,""),this.formsUrl=`${this.projectUrl}/form`,this.formUrl=e?this.projectUrl+e:"",this.formId=e.replace(/^\/+|\/+$/g,"");const r=["submission","action","v"];for(const t in r)if(r.hasOwnProperty(t)){const o=r[t];this[`${o}sUrl`]=`${this.projectUrl+e}/${o}`,this.pathType===o&&n&&n.length>2&&n[2]&&(this[`${o}Id`]=n[2].replace(/^\/+|\/+$/g,""),this[`${o}Url`]=this.projectUrl+e+n[0])}}m.projectUrlSet||(m.projectUrl=this.projectUrl)}delete(e,t){const n=`${e}Url`;return this[`${e}Id`]?(m.cache={},this.makeRequest(e,this[n],"delete",null,t)):Promise.reject("Nothing to delete")}index(e,t,n){const r=`${e}Url`;return(t=t||"")&&(0,a.isObject)(t)&&(t=`?${m.serialize(t.params)}`),this.makeRequest(e,this[r]+t,"get",null,n)}save(e,t,n){const r=`${e}Id`,o=`${e}Url`,i=this[r]||t._id?"put":"post";let a=this[r]?this[o]:this[`${e}sUrl`];return this[r]||!t._id||"put"!==i||a.includes(t._id)||(a+=`/${t._id}`),m.cache={},this.makeRequest(e,a+this.query,i,t,n)}load(e,t,n){const r=`${e}Id`,o=`${e}Url`;if(t&&(0,a.isObject)(t)&&(t=m.serialize(t.params)),t=t?this.query?`${this.query}&${t}`:`?${t}`:this.query,!this[r])return Promise.reject(`Missing ${r}`);let i=this[o]+t;return"form"!==e||isNaN(parseInt(this.vId))||(i+=-1===i.indexOf("?")?"?":"&",i+=`formRevision=${this.vId}`),this.makeRequest(e,i,"get",null,n)}makeRequest(e,t,n,r,o){return m.makeRequest(this,e,t,n,r,o)}loadProject(e,t){return this.load("project",e,t)}saveProject(e,t){return this.save("project",e,t)}deleteProject(e){return this.delete("project",e)}static loadProjects(e,t){return e=e||"",(0,a.isObject)(e)&&(e=`?${m.serialize(e.params)}`),m.makeStaticRequest(`${m.baseUrl}/project${e}`,"GET",null,t)}loadRole(e){return this.load("role",null,e)}saveRole(e,t){return this.save("role",e,t)}deleteRole(e){return this.delete("role",e)}loadRoles(e){return this.index("roles",null,e)}loadForm(e,t){return this.load("form",e,t).then((n=>!n.revisions||isNaN(parseInt(this.vId))||"current"===n.revisions&&this.submissionId||n._vid==this.vId||n.revisionId===this.vId?n:(e&&(0,a.isObject)(e)&&(e=m.serialize(e.params)),e=e?this.query?`${this.query}&${e}`:`?${e}`:this.query,this.makeRequest("form",this.vUrl+e,"get",null,t).then((e=>(n._vid=e._vid,n.components=e.components,n.settings=e.settings,n.revisionId=e.revisionId,Object.assign({},n)))).catch((()=>Object.assign({},n))))))}saveForm(e,t){return this.save("form",e,t)}deleteForm(e){return this.delete("form",e)}loadForms(e,t){return this.index("forms",e,t)}loadSubmission(e,t){return this.load("submission",e,t).then((e=>(this.vId=e._frid||e._fvid,this.vUrl=`${this.formUrl}/v/${this.vId}`,e)))}saveSubmission(e,t){return isNaN(parseInt(this.vId))||e._fvid||(e._fvid=this.vId),this.save("submission",e,t)}deleteSubmission(e){return this.delete("submission",e)}loadSubmissions(e,t){return this.index("submissions",e,t)}loadAction(e,t){return this.load("action",e,t)}saveAction(e,t){return this.save("action",e,t)}deleteAction(e){return this.delete("action",e)}loadActions(e,t){return this.index("actions",e,t)}availableActions(){return this.makeRequest("availableActions",`${this.formUrl}/actions`)}actionInfo(e){return this.makeRequest("actionInfo",`${this.formUrl}/actions/${e}`)}isObjectId(e){return new RegExp("^[0-9a-fA-F]{24}$").test(e)}getProjectId(){return this.projectId?this.isObjectId(this.projectId)?Promise.resolve(this.projectId):this.loadProject().then((e=>e._id)):Promise.resolve("")}getFormId(){return this.formId?this.isObjectId(this.formId)?Promise.resolve(this.formId):this.loadForm().then((e=>e._id)):Promise.resolve("")}currentUser(e){return m.currentUser(this,e)}accessInfo(){return m.accessInfo(this)}oauthLogoutURI(e,t){return m.oauthLogoutURI(e,Object.assign({formio:this},this.options,t))}getToken(e){return m.getToken(Object.assign({formio:this},this.options,e))}setToken(e,t){return m.setToken(e,Object.assign({formio:this},this.options,t))}getTempToken(e,t,n){if(!m.getToken(n))return Promise.reject("You must be authenticated to generate a temporary auth token.");const r=m.authUrl||this.projectUrl;return this.makeRequest("tempToken",`${r}/token`,"GET",null,{ignoreCache:!0,header:new p({"x-expire":e,"x-allow":t})})}getDownloadUrl(e){if(!this.submissionId)return Promise.resolve("");if(!e)return this.loadForm().then((e=>e?this.getDownloadUrl(e):""));let t=`/project/${e.project}`;t+=`/form/${e._id}`,t+=`/submission/${this.submissionId}`;const n=e.submissionRevisions&&e.settings.changeLog?"/download/changelog":"/download";t+=n;let r=this.base+t;return new Promise(((e,n)=>{this.getTempToken(3600,`GET:${t}`).then((t=>{r+=`?token=${t.key}`,e(r)}),(()=>{e(r)})).catch(n)}))}userPermissions(e,t,n){return Promise.all([void 0!==t?Promise.resolve(t):this.loadForm(),void 0!==e?Promise.resolve(e):this.currentUser(),void 0===n&&this.submissionId?this.loadSubmission():Promise.resolve(n),this.accessInfo()]).then((e=>{const t=e.shift(),n=e.shift()||{_id:!1,roles:[]},r=e.shift(),o=e.shift(),i={create:"create",read:"read",update:"edit",delete:"delete"},u={user:n,form:t,access:o,create:!1,read:!1,edit:!1,delete:!1};for(const e in o.roles)if(o.roles.hasOwnProperty(e)){const t=o.roles[e];if(t.default&&!1===n._id)n.roles.push(t._id);else if(t.admin&&-1!==n.roles.indexOf(t._id))return u.create=!0,u.read=!0,u.delete=!0,u.edit=!0,u}if(t&&t.submissionAccess)for(let e=0;e<t.submissionAccess.length;e++){const o=t.submissionAccess[e],[s,c]=o.type.split("_");["create","read","update","delete"].includes(s)&&(0,a.intersection)(o.roles,n.roles).length&&(u[i[s]]="all"===c||!r||n._id===r.owner)}return r&&(0,s.eachComponent)(t.components,((e,t)=>{if(e&&e.defaultPermission){const o=(0,a.get)(r.data,t);(Array.isArray(o)?o:[o]).forEach((t=>{t&&t._id&&n.roles.indexOf(t._id)>-1&&("read"===e.defaultPermission&&(u[i.read]=!0),"create"===e.defaultPermission&&(u[i.create]=!0,u[i.read]=!0),"write"===e.defaultPermission&&(u[i.create]=!0,u[i.read]=!0,u[i.update]=!0),"admin"===e.defaultPermission&&(u[i.create]=!0,u[i.read]=!0,u[i.update]=!0,u[i.delete]=!0))}))}})),u}))}canSubmit(){return this.userPermissions().then((e=>!e.create&&m.getUser()?this.userPermissions(null).then((e=>!!e.create&&(m.setUser(null),!0))):e.create))}getUrlParts(e){return m.getUrlParts(e,this)}static getUrlParts(e,t){const n=t&&t.base?t.base:m.baseUrl;let r="^(http[s]?:\\/\\/)";return n&&0===e.indexOf(n)?r+=`(${n.replace(/^http[s]?:\/\//,"")})`:r+="([^/]+)",r+="($|\\/.*)",e.match(new RegExp(r))}static serialize(e,t){const n=[];for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.push(`${encodeURIComponent(o)}=${encodeURIComponent((r=e[o],t?t(r):r))}`);var r;return n.join("&")}static getRequestArgs(e,t,n,r,o,i){r=(r||"GET").toUpperCase(),i&&(0,a.isObject)(i)||(i={});const s={url:n,method:r,data:o||null,opts:i};return t&&(s.type=t),e&&(s.formio=e),s}static makeStaticRequest(e,t,n,r){const o=m.getRequestArgs(null,"",e,t,n,r),i=d.default.pluginWait("preRequest",o).then((()=>d.default.pluginGet("staticRequest",o).then((e=>(0,a.isNil)(e)?m.request(o.url,o.method,o.data,o.opts.header,o.opts):e))));return d.default.pluginAlter("wrapStaticRequestPromise",i,o)}static makeRequest(e,t,n,r,o,i){if(!e)return m.makeStaticRequest(n,r,o,i);const s=m.getRequestArgs(e,t,n,r,o,i);s.opts=s.opts||{},s.opts.formio=e,s.opts.headers||(s.opts.headers={}),s.opts.headers=(0,a.defaults)(s.opts.headers,{Accept:"application/json","Content-type":"application/json"});const u=d.default.pluginWait("preRequest",s).then((()=>d.default.pluginGet("request",s).then((e=>(0,a.isNil)(e)?m.request(s.url,s.method,s.data,s.opts.header,s.opts):e))));return d.default.pluginAlter("wrapRequestPromise",u,s)}static request(e,t,n,r,o){if(!e)return Promise.reject("No url provided");t=(t||"GET").toUpperCase(),(0,a.isBoolean)(o)&&(o={ignoreCache:o}),o&&(0,a.isObject)(o)||(o={});const i=btoa(encodeURI(e));if(!o.ignoreCache&&"GET"===t&&m.cache.hasOwnProperty(i))return Promise.resolve(m.cloneResponse(m.cache[i]));"/"===e[0]&&(e=m.baseUrl+e);const s=r||new p(o.headers||{Accept:"application/json","Content-type":"application/json"}),u=m.getToken(o);u&&!o.noToken&&s.set("x-jwt-token",u);const c={};s.forEach((function(e,t){c[t]=e}));let l={method:t,headers:c,mode:"cors"};n&&(l.body=JSON.stringify(n)),l=d.default.pluginAlter("requestOptions",l,e),(l.namespace||m.namespace)&&(o.namespace=l.namespace||m.namespace);const f=l.headers["x-jwt-token"],h=d.default.pluginAlter("wrapFetchRequestPromise",m.fetch(e,l),{url:e,method:t,data:n,opts:o}).then((r=>{if(!(r=d.default.pluginAlter("requestResponse",r,m,n)).ok){if(440===r.status)m.setToken(null,o),m.events.emit("formio.sessionExpired",r.body||r);else if(401===r.status)m.events.emit("formio.unauthorized",r.body||r);else if(416===r.status)m.events.emit("formio.rangeIsNotSatisfiable",r.body||r);else if(504===r.status)return Promise.reject(new Error("Network request failed"));return(r.headers.get("content-type").includes("application/json")?r.json():r.text()).then((e=>Promise.reject(e)))}const i=r.headers.get("x-jwt-token");let s=!1;return"GET"!==t||f||!i||o.external||e.includes("token=")||e.includes("x-jwt-token=")||(console.warn("Token was introduced in request."),s=!0),r.status>=200&&r.status<300&&i&&""!==i&&!s&&m.setToken(i,Object.assign(Object.assign({},o),{fromCurrent:o.fromCurrent||!!f})),204===r.status?{}:(r.headers.get("content-type").includes("application/json")?r.json():r.text()).then((e=>{let t=r.headers.get("content-range");if(t&&(0,a.isObject)(e)){if(t=t.split("/"),"*"!==t[0]){const n=t[0].split("-");e.skip=Number(n[0]),e.limit=n[1]-n[0]+1}e.serverCount="*"===t[1]?t[1]:Number(t[1])}if(!o.getHeaders)return e;const n={};return r.headers.forEach(((e,t)=>{n[t]=e})),{result:e,headers:n}}))})).then((e=>o.getHeaders?e:("GET"===t&&(m.cache[i]=e),m.cloneResponse(e)))).catch((n=>("Bad Token"===n&&!1!==o.noToken&&(m.setToken(null,o),m.events.emit("formio.badToken",n)),n.message&&((n=new Error(`Could not connect to API server (${n.message}): ${e}`)).networkError=!0),"GET"===t&&delete m.cache[i],Promise.reject(n))));return h}static get token(){return m.tokens.formioToken||""}static set token(e){m.tokens.formioToken=e||""}static useSessionToken(e){if("undefined"==typeof localStorage)return;let t=e;"object"==typeof e&&(e=e.namespace);const n=`${t||m.namespace||"formio"}Token`,r=localStorage.getItem(n);r&&(localStorage.removeItem(n),sessionStorage.setItem(n,r));const o=`${t||m.namespace||"formio"}User`,i=localStorage.getItem(o);i&&(localStorage.removeItem(o),sessionStorage.setItem(o,i)),localStorage.setItem("useSessionToken","true")}static setToken(e="",t={}){e=e||"";const n=`${(t="string"==typeof t?{namespace:t}:t||{}).namespace||m.namespace||"formio"}Token`;m.tokens||(m.tokens={});const r=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){t.fromUser||(t.fromToken=!0,m.setUser(null,t));try{r.removeItem(n)}catch(e){l.default.erase(n,{path:"/"})}return m.tokens[n]=e,Promise.resolve(null)}if(m.tokens[n]!==e){m.tokens[n]=e;try{r.setItem(n,e)}catch(t){l.default.set(n,e,{path:"/"})}}return m.currentUser(t.formio,t)}static getToken(e){const t=`${(e="string"==typeof e?{namespace:e}:e||{}).namespace||m.namespace||"formio"}Token`,n=e.decode?`${t}Decoded`:t;if(m.tokens||(m.tokens={}),m.tokens[n])return m.tokens[n];try{const r=localStorage.getItem("useSessionToken")?sessionStorage.getItem(t):localStorage.getItem(t);return m.tokens[t]=r||"",e.decode?(m.tokens[n]=m.tokens[t]?(0,u.jwtDecode)(m.tokens[t]):{},m.tokens[n]):m.tokens[t]}catch(e){return m.tokens[t]=l.default.get(t),""}}static setUser(e,t={}){const n=`${t.namespace||m.namespace||"formio"}User`,r=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){t.fromToken||(t.fromUser=!0,m.setToken(null,t)),m.events.emit("formio.user",null);try{return r.removeItem(n)}catch(e){return l.default.erase(n,{path:"/"})}}try{r.setItem(n,JSON.stringify(e))}catch(t){l.default.set(n,JSON.stringify(e),{path:"/"})}m.events.emit("formio.user",e)}static getUser(e){const t=`${(e=e||{}).namespace||m.namespace||"formio"}User`;try{return JSON.parse((localStorage.getItem("useSessionToken")?sessionStorage:localStorage).getItem(t)||"")}catch(e){return JSON.parse(l.default.get(t))}}static setBaseUrl(e){m.baseUrl=e,m.projectUrlSet||(m.projectUrl=e)}static getBaseUrl(){return m.baseUrl}static setApiUrl(e){return m.setBaseUrl(e)}static getApiUrl(){return m.getBaseUrl()}static setAppUrl(e){console.warn("Formio.setAppUrl() is deprecated. Use Formio.setProjectUrl instead."),m.projectUrl=e,m.projectUrlSet=!0}static setProjectUrl(e){m.projectUrl=e,m.projectUrlSet=!0}static setAuthUrl(e){m.authUrl=e}static getAppUrl(){return console.warn("Formio.getAppUrl() is deprecated. Use Formio.getProjectUrl instead."),m.projectUrl}static getProjectUrl(){return m.projectUrl}static clearCache(){m.cache={}}static accessInfo(e){const t=e?e.projectUrl:m.projectUrl;return m.makeRequest(e,"accessInfo",`${t}/access`)}static projectRoles(e){const t=e?e.projectUrl:m.projectUrl;return m.makeRequest(e,"projectRoles",`${t}/role`)}static currentUser(e,t={}){let n=m.authUrl;if(n||(n=e?e.projectUrl:m.projectUrl||m.baseUrl),n+="/current",!t.ignoreCache||t.fromCurrent){const e=m.getUser(t);if(e)return d.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(e),{url:n,method:"GET",options:t})}const r=m.getToken(t);return t&&t.external||r?(t.fromCurrent=!0,m.makeRequest(e,"currentUser",n,"GET",null,t).then((e=>(m.setUser(e,t),e)))):d.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(null),{url:n,method:"GET",options:t})}static logout(e,t={}){t.formio=e;const n=m.authUrl?m.authUrl:e?e.projectUrl:m.baseUrl,r=()=>{m.setToken(null,t),m.setUser(null,t),m.clearCache(),localStorage.removeItem("useSessionToken")};return m.makeRequest(e,"logout",`${n}/logout`).then((function(e){return r(),e.shouldRedirect&&e.url&&(window.location.href=e.url),e})).catch((function(e){throw r(),e}))}static pageQuery(){const e={paths:[]},t=location.hash.substr(1).replace(/\?/g,"&").split("&");let n=[];return location.search.substr(1).split("&").forEach((function(t){n=t.split("="),n.length>1&&(e[n[0]]=n[1]&&decodeURIComponent(n[1]))})),t.forEach((function(t){n=t.split("="),n.length>1?e[n[0]]=n[1]&&decodeURIComponent(n[1]):0===t.indexOf("/")&&(e.paths=t.substr(1).split("/"))})),e}static oAuthCurrentUser(e,t){return m.currentUser(e,{external:!0,headers:{Authorization:`Bearer ${t}`}})}static oauthLogoutURI(e,t){const n=`${(t="string"==typeof t?{namespace:t}:t||{}).namespace||m.namespace||"formio"}LogoutAuthUrl`;return m.tokens[n],localStorage.setItem(n,e),m.tokens[n]}static samlInit(e={}){const t=m.pageQuery();if(t.saml){m.setUser(null);const e=m.setToken(t.saml);let n=window.location.toString();return n=n.substring(0,n.indexOf("?")),window.location.hash&&(n+=window.location.hash),window.history.replaceState({},document.title,n),e}e.relay||(e.relay=window.location.href);const n=m.authUrl||m.projectUrl;return window.location.href=`${n}/saml/sso?relay=${encodeURI(e.relay)}`,!1}static oktaInit(e={}){if(void 0!==typeof OktaAuth&&(e.OktaAuth=OktaAuth),void 0===typeof e.OktaAuth){const e="Cannot find OktaAuth. Please include the Okta JavaScript SDK within your application. See https://developer.okta.com/code/javascript/okta_auth_sdk for an example.";return console.warn(e),Promise.reject(e)}return new Promise(((t,n)=>{const r=e.OktaAuth;delete e.OktaAuth;const o=new r(e);o.tokenManager.get("accessToken").then((r=>{r?t(m.oAuthCurrentUser(e.formio,r.accessToken)):location.hash?o.token.parseFromUrl().then((n=>{o.tokenManager.add("accessToken",n),t(m.oAuthCurrentUser(e.formio,n.accessToken))})).catch((e=>{console.warn(e),n(e)})):(o.token.getWithRedirect({responseType:"token",scopes:e.scopes}),t(!1))})).catch((e=>{n(e)}))}))}static ssoInit(e,t={}){switch(e){case"saml":return m.samlInit(t);case"okta":return m.oktaInit(t);default:return console.warn("Unknown SSO type"),Promise.reject("Unknown SSO type")}}static requireLibrary(e,t,n,r=!1,o){if(!m.libraries.hasOwnProperty(e)){m.libraries[e]={},m.libraries[e].ready=new Promise(((t,n)=>{m.libraries[e].resolve=t,m.libraries[e].reject=n}));const i=`${e}Callback`;r||window[i]||(window[i]=()=>m.libraries[e].resolve());const s=(0,a.get)(window,t);if(s)m.libraries[e].resolve(s);else if((n=Array.isArray(n)?n:[n]).forEach((t=>{let n={},r="";switch("string"==typeof t&&(t={type:"script",src:t}),t.type){case"script":r="script",n={src:t.src,type:"text/javascript",defer:!0,async:!0,referrerpolicy:"origin"};break;case"styles":r="link",n={href:t.src,rel:"stylesheet"}}const i=document.createElement(r);if(i.setAttribute)for(const e in n)i.setAttribute(e,n[e]);o&&i.addEventListener("load",(()=>{m.libraries[e].loaded=!0,o(m.libraries[e].ready)}));const{head:a}=document;a&&a.appendChild(i)})),r){const n=setInterval((()=>{const r=(0,a.get)(window,t);r&&(clearInterval(n),m.libraries[e].resolve(r))}),200)}}const i=m.libraries[e];return o&&i.loaded?o(i.ready):i.ready}static libraryReady(e){return m.libraries.hasOwnProperty(e)&&m.libraries[e].ready?m.libraries[e].ready:Promise.reject(`${e} library was not required.`)}static cloneResponse(e){const t=(0,i.fastCloneDeep)(e);return Array.isArray(e)&&(t.skip=e.skip,t.limit=e.limit,t.serverCount=e.serverCount),t}static setPathType(e){"string"==typeof e&&(m.pathType=e)}static getPathType(){return m.pathType}}t.Formio=m,m.baseUrl="https://api.form.io",m.projectUrl="",m.authUrl="",m.projectUrlSet=!1,m.cache={},m.namespace="",m.events=new c.default,m.libraries={},m.fetch=f,m.Headers=p,m.tokens={},m.version="---VERSION---",m.options={},m.plugins=d.default.plugins,m.deregisterPlugin=d.default.deregisterPlugin,m.registerPlugin=d.default.registerPlugin,m.getPlugin=d.default.getPlugin,m.pluginWait=d.default.pluginWait,m.pluginGet=d.default.pluginGet,m.pluginAlter=d.default.pluginAlter,d.default.Formio=m},22831:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return u.default}});var r=p(n(13518)),o=p(n(14948)),i=p(n(45073)),a=p(n(77186)),s=p(n(14808)),u=p(n(7775)),c=p(n(37037)),l=p(n(49910)),f=p(n(96792));function p(e){return e&&e.__esModule?e:{default:e}}},22311:function(e,t){"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function r(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,t,n,o,i,a){return r((s=r(r(t,e),r(o,a)))<<(u=i)|s>>>32-u,n);var s,u}function i(e,t,n,r,i,a,s){return o(t&n|~t&r,e,t,i,a,s)}function a(e,t,n,r,i,a,s){return o(t&r|n&~r,e,t,i,a,s)}function s(e,t,n,r,i,a,s){return o(t^n^r,e,t,i,a,s)}function u(e,t,n,r,i,a,s){return o(n^(t|~r),e,t,i,a,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length,r="0123456789abcdef";for(let o=0;o<n;o+=8){const n=e[o>>5]>>>o%32&255,i=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let o=1732584193,c=-271733879,l=-1732584194,f=271733878;for(let t=0;t<e.length;t+=16){const n=o,p=c,d=l,h=f;o=i(o,c,l,f,e[t],7,-680876936),f=i(f,o,c,l,e[t+1],12,-389564586),l=i(l,f,o,c,e[t+2],17,606105819),c=i(c,l,f,o,e[t+3],22,-1044525330),o=i(o,c,l,f,e[t+4],7,-176418897),f=i(f,o,c,l,e[t+5],12,1200080426),l=i(l,f,o,c,e[t+6],17,-1473231341),c=i(c,l,f,o,e[t+7],22,-45705983),o=i(o,c,l,f,e[t+8],7,1770035416),f=i(f,o,c,l,e[t+9],12,-1958414417),l=i(l,f,o,c,e[t+10],17,-42063),c=i(c,l,f,o,e[t+11],22,-1990404162),o=i(o,c,l,f,e[t+12],7,1804603682),f=i(f,o,c,l,e[t+13],12,-40341101),l=i(l,f,o,c,e[t+14],17,-1502002290),c=i(c,l,f,o,e[t+15],22,1236535329),o=a(o,c,l,f,e[t+1],5,-165796510),f=a(f,o,c,l,e[t+6],9,-1069501632),l=a(l,f,o,c,e[t+11],14,643717713),c=a(c,l,f,o,e[t],20,-373897302),o=a(o,c,l,f,e[t+5],5,-701558691),f=a(f,o,c,l,e[t+10],9,38016083),l=a(l,f,o,c,e[t+15],14,-660478335),c=a(c,l,f,o,e[t+4],20,-405537848),o=a(o,c,l,f,e[t+9],5,568446438),f=a(f,o,c,l,e[t+14],9,-1019803690),l=a(l,f,o,c,e[t+3],14,-187363961),c=a(c,l,f,o,e[t+8],20,1163531501),o=a(o,c,l,f,e[t+13],5,-1444681467),f=a(f,o,c,l,e[t+2],9,-51403784),l=a(l,f,o,c,e[t+7],14,1735328473),c=a(c,l,f,o,e[t+12],20,-1926607734),o=s(o,c,l,f,e[t+5],4,-378558),f=s(f,o,c,l,e[t+8],11,-2022574463),l=s(l,f,o,c,e[t+11],16,1839030562),c=s(c,l,f,o,e[t+14],23,-35309556),o=s(o,c,l,f,e[t+1],4,-1530992060),f=s(f,o,c,l,e[t+4],11,1272893353),l=s(l,f,o,c,e[t+7],16,-155497632),c=s(c,l,f,o,e[t+10],23,-1094730640),o=s(o,c,l,f,e[t+13],4,681279174),f=s(f,o,c,l,e[t],11,-358537222),l=s(l,f,o,c,e[t+3],16,-722521979),c=s(c,l,f,o,e[t+6],23,76029189),o=s(o,c,l,f,e[t+9],4,-640364487),f=s(f,o,c,l,e[t+12],11,-421815835),l=s(l,f,o,c,e[t+15],16,530742520),c=s(c,l,f,o,e[t+2],23,-995338651),o=u(o,c,l,f,e[t],6,-198630844),f=u(f,o,c,l,e[t+7],10,1126891415),l=u(l,f,o,c,e[t+14],15,-1416354905),c=u(c,l,f,o,e[t+5],21,-57434055),o=u(o,c,l,f,e[t+12],6,1700485571),f=u(f,o,c,l,e[t+3],10,-1894986606),l=u(l,f,o,c,e[t+10],15,-1051523),c=u(c,l,f,o,e[t+1],21,-2054922799),o=u(o,c,l,f,e[t+8],6,1873313359),f=u(f,o,c,l,e[t+15],10,-30611744),l=u(l,f,o,c,e[t+6],15,-1560198380),c=u(c,l,f,o,e[t+13],21,1309151649),o=u(o,c,l,f,e[t+4],6,-145523070),f=u(f,o,c,l,e[t+11],10,-1120210379),l=u(l,f,o,c,e[t+2],15,718787259),c=u(c,l,f,o,e[t+9],21,-343485551),o=r(o,n),c=r(c,p),l=r(l,d),f=r(f,h)}return[o,c,l,f]}(function(e){if(0===e.length)return[];const t=8*e.length,r=new Uint32Array(n(t));for(let n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))}},46140:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};t.default=n},14808:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},96792:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(37037))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}},27656:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},2858:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)};const r=new Uint8Array(16)},9042:function(e,t){"use strict";function n(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function r(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){const t=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a);for(let t=0;t<a;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];s[t]=n}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<a;++e){const i=new Uint32Array(80);for(let t=0;t<16;++t)i[t]=s[e][t];for(let e=16;e<80;++e)i[e]=r(i[e-3]^i[e-8]^i[e-14]^i[e-16],1);let a=o[0],u=o[1],c=o[2],l=o[3],f=o[4];for(let e=0;e<80;++e){const o=Math.floor(e/20),s=r(a,5)+n(o,u,c,l)+f+t[o]+i[e]>>>0;f=l,l=c,c=r(u,30)>>>0,u=a,a=s}o[0]=o[0]+a>>>0,o[1]=o[1]+u>>>0,o[2]=o[2]+c>>>0,o[3]=o[3]+l>>>0,o[4]=o[4]+f>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]}},49910:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=a;var r,o=(r=n(37037))&&r.__esModule?r:{default:r};const i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));function a(e,t=0){return i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]}t.default=function(e,t=0){const n=a(e,t);if(!(0,o.default)(n))throw TypeError("Stringified UUID is invalid");return n}},13518:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(2858))&&r.__esModule?r:{default:r},i=n(49910);let a,s,u=0,c=0;t.default=function(e,t,n){let r=t&&n||0;const l=t||new Array(16);let f=(e=e||{}).node||a,p=void 0!==e.clockseq?e.clockseq:s;if(null==f||null==p){const t=e.random||(e.rng||o.default)();null==f&&(f=a=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==p&&(p=s=16383&(t[6]<<8|t[7]))}let d=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:c+1;const m=d-u+(h-c)/1e4;if(m<0&&void 0===e.clockseq&&(p=p+1&16383),(m<0||d>u)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=d,c=h,s=p,d+=122192928e5;const v=(1e4*(268435455&d)+h)%4294967296;l[r++]=v>>>24&255,l[r++]=v>>>16&255,l[r++]=v>>>8&255,l[r++]=255&v;const y=d/4294967296*1e4&268435455;l[r++]=y>>>8&255,l[r++]=255&y,l[r++]=y>>>24&15|16,l[r++]=y>>>16&255,l[r++]=p>>>8|128,l[r++]=255&p;for(let e=0;e<6;++e)l[r+e]=f[e];return t||(0,i.unsafeStringify)(l)}},14948:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(59025)),o=i(n(22311));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v3",48,o.default);t.default=a},59025:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,a,s){var u;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=(0,i.default)(r)),16!==(null===(u=r)||void 0===u?void 0:u.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(r),c.set(e,r.length),c=n(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,a){s=s||0;for(let e=0;e<16;++e)a[s+e]=c[e];return a}return(0,o.unsafeStringify)(c)}try{r.name=e}catch(e){}return r.DNS=a,r.URL=s,r};var r,o=n(49910),i=(r=n(96792))&&r.__esModule?r:{default:r};const a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=a;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=s},45073:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(46140)),o=a(n(2858)),i=n(49910);function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();const a=(e=e||{}).random||(e.rng||o.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=a[e];return t}return(0,i.unsafeStringify)(a)}},77186:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(59025)),o=i(n(9042));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v5",80,o.default);t.default=a},37037:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(27656))&&r.__esModule?r:{default:r};t.default=function(e){return"string"==typeof e&&o.default.test(e)}},7775:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(37037))&&r.__esModule?r:{default:r};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},56036:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(e,t={}){this.baseUrl=e||n.defaultCDN,this.overrides=t,this.libs={js:"",ace:"1.4.12",bootstrap:"5.3.3",bootstrap4:"4.6.2",bootstrap5:"5.3.3",bootswatch:"5.3.3","bootstrap-icons":"1.11.1",ckeditor:"19.0.0",flatpickr:"4.6.8","flatpickr-formio":"4.6.13-formio.3","font-awesome":"4.7.0",grid:"latest","moment-timezone":"latest",quill:"2.0.0-dev.3","shortcut-buttons-flatpickr":"0.4.0",uswds:"2.4.8",core:""},this.updateUrls()}getVersion(e){return this.libs[e]}setVersion(e,t){this.libs[e]=t,this.updateUrls()}setBaseUrl(e){this.baseUrl=e,this.updateUrls()}setOverrideUrl(e,t){this.overrides[e]=t,this.updateUrls()}removeOverride(e){delete this.overrides[e],this.updateUrls()}removeOverrides(){this.overrides={},this.updateUrls()}buildUrl(e,t,n){let r=e;return t&&(r+=`/${t}`),e.match(/cdn\.(test-)?form.io/)&&n&&"latest"!==n&&(r+=`/${n}`),r}updateUrls(){for(const e in this.libs)if(e in this.overrides)if("string"==typeof this.overrides[e])this[e]=this.buildUrl(this.overrides[e],e,this.libs[e]);else{const t=this.overrides[e];this[e]=this.buildUrl(t.cdn,t.lib||"",t.version||"")}else this[e]=this.buildUrl(this.baseUrl,e,this.libs[e])}}n.defaultCDN="https://cdn.form.io",t.default=n},27368:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(2543)),i=r(n(53825)),a=r(n(19045)),s=r(n(5896));class u{static addProvider(e,t,n){u.providers[e]=u.providers[e]||{},u.providers[e][t]=n}static addProviders(e,t){u.providers[e]=o.default.merge(u.providers[e],t)}static getProvider(e,t){if(u.providers[e]&&u.providers[e][t])return u.providers[e][t]}static getProviders(e){if(u.providers[e])return u.providers[e]}}u.providers={address:i.default,auth:a.default,storage:s.default},t.default=u},10308:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AddressProvider=void 0;const o=r(n(2543)),i=n(34040);t.AddressProvider=class{static get name(){return"address"}static get displayName(){return"Address"}constructor(e={}){this.beforeMergeOptions(e),this.options=o.default.merge({},this.defaultOptions,e)}beforeMergeOptions(){}get defaultOptions(){return{}}get queryProperty(){return"query"}get responseProperty(){return null}get displayValueProperty(){return null}serialize(e){return o.default.toPairs(e).map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`)).join("&")}getRequestOptions(e={}){return o.default.merge({},this.options,e)}getRequestUrl(e={}){throw new Error("Method AddressProvider#getRequestUrl(options) is abstract.")}makeRequest(e={}){return i.Formio.makeStaticRequest(this.getRequestUrl(e),"GET",null,{noToken:!0})}search(e,t={}){const n=this.getRequestOptions(t);return(n.params=n.params||{})[this.queryProperty]=e,this.makeRequest(n).then((e=>this.responseProperty?o.default.get(e,this.responseProperty,[]):e))}getDisplayValue(e){return this.displayValueProperty?o.default.get(e,this.displayValueProperty,""):String(e)}}},90637:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureAddressProvider=void 0;const r=n(10308);class o extends r.AddressProvider{static get name(){return"azure"}static get displayName(){return"Azure Maps"}get defaultOptions(){return{params:{"api-version":"1.0",typeahead:"true"}}}get responseProperty(){return"results"}get displayValueProperty(){return"address.freeformAddress"}getRequestUrl(e={}){const{params:t}=e;return`https://atlas.microsoft.com/search/address/json?${this.serialize(t)}`}}t.AzureAddressProvider=o},84689:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomAddressProvider=void 0;const r=n(10308);class o extends r.AddressProvider{static get name(){return"custom"}static get displayName(){return"Custom"}get queryProperty(){return this.options.queryProperty||super.queryProperty}get responseProperty(){return this.options.responseProperty||super.responseProperty}get displayValueProperty(){return this.options.displayValueProperty||super.displayValueProperty}getRequestUrl(e={}){const{params:t,url:n}=e;return`${n}?${this.serialize(t)}`}}t.CustomAddressProvider=o},25873:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAddressProvider=void 0;const o=n(34040),i=r(n(2543)),a=n(10308);class s extends a.AddressProvider{static get name(){return"google"}static get displayName(){return"Google Maps"}constructor(e={}){var t;super(e),this.setAutocompleteOptions();let n="https://maps.googleapis.com/maps/api/js?v=quarterly&libraries=places&loading=async&callback=googleMapsCallback";(null===(t=e.params)||void 0===t?void 0:t.key)&&(n+=`&key=${e.params.key}`),o.Formio.requireLibrary(this.getLibraryName(),"google.maps.places",n)}get displayValueProperty(){return"formattedPlace"}get alternativeDisplayValueProperty(){return"formatted_address"}set autocompleteOptions(e){this._autocompleteOptions=e}get autocompleteOptions(){return this._autocompleteOptions}setAutocompleteOptions(){let e=i.default.get(this.options,"params.autocompleteOptions",{});i.default.isObject(e)||(e={}),this.addRequiredProviderOptions(e),this.autocompleteOptions=e}beforeMergeOptions(e){this.convertRegionToAutocompleteOption(e)}getLibraryName(){return"googleMaps"}convertRegionToAutocompleteOption(e){const t=e;let n=i.default.get(t,"params.region","");if(n&&!i.default.has(e,"params.autocompleteOptions")){n=n.toUpperCase().trim();const e={UK:"GB"};e[n]&&(n=e[n]),i.default.set(t,"params.autocompleteOptions.componentRestrictions.country",[n])}}getRequiredAddressProperties(){return["address_components","formatted_address","geometry","place_id","plus_code","types"]}addRequiredProviderOptions(e){const t=this.getRequiredAddressProperties();i.default.isArray(e.fields)&&e.fields.length>0&&e.fields.forEach((e=>{t.some((t=>e===t))||t.push(e)})),e.fields=t}filterPlace(e){e=e||{};const t={};return this.autocompleteOptions&&this.autocompleteOptions.fields.forEach((n=>{e[n]&&(t[n]=e[n])})),t}attachAutocomplete(e,t,n){o.Formio.libraryReady(this.getLibraryName()).then((()=>{const r=new google.maps.places.Autocomplete(e,this.autocompleteOptions);r.addListener("place_changed",(()=>{const o=this.filterPlace(r.getPlace());o.formattedPlace=i.default.get(r,"gm_accessors_.place.se.formattedPrediction",o[this.alternativeDisplayValueProperty]),n(o,e,t)}))}))}search(){return Promise.resolve()}makeRequest(){return Promise.resolve()}getDisplayValue(e){const t=i.default.has(e,this.displayValueProperty)?this.displayValueProperty:this.alternativeDisplayValueProperty;return i.default.get(e,t,"")}}t.GoogleAddressProvider=s},90094:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NominatimAddressProvider=void 0;const r=n(10308);class o extends r.AddressProvider{static get name(){return"nominatim"}static get displayName(){return"OpenStreetMap Nominatim"}get defaultOptions(){return{params:{addressdetails:"1",format:"json"}}}get queryProperty(){return"q"}get displayValueProperty(){return"display_name"}getRequestUrl(e={}){const{params:t}=e;return`https://nominatim.openstreetmap.org/search?${this.serialize(t)}`}}t.NominatimAddressProvider=o},53825:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(90637),o=n(84689),i=n(25873),a=n(90094);t.default={[r.AzureAddressProvider.name]:r.AzureAddressProvider,[o.CustomAddressProvider.name]:o.CustomAddressProvider,[i.GoogleAddressProvider.name]:i.GoogleAddressProvider,[a.NominatimAddressProvider.name]:a.NominatimAddressProvider}},19045:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={}},59962:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(27368));t.default=o.default},52223:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(30430));function i(e){return{uploadFile:(t,n,r,i,a,s,u,c,l,f)=>o.default.upload(e,"azure",((e,n)=>(e.openAndSetHeaders("PUT",n.url),e.setRequestHeader("Content-Type",t.type),e.setRequestHeader("x-ms-blob-type","BlockBlob"),t)),t,n,r,i,c,l,f).then((e=>({storage:"azure",name:o.default.path([r,n]),size:t.size,type:t.type,groupPermissions:c,groupId:l,key:e.key}))),downloadFile:t=>e.makeRequest("file",`${e.formUrl}/storage/azure?name=${o.default.trim(t.name)}`,"GET"),deleteFile:function(t){var n=`${e.formUrl}/storage/azure?name=${o.default.trim(t.name)}&key=${o.default.trim(t.key)}`;return e.makeRequest("",n,"delete")}}}i.title="Azure File Services",t.default=i},95789:function(e,t){"use strict";function n(){return{title:"Base64",name:"base64",uploadFile(e,t){const n=new FileReader;return new Promise(((r,o)=>{n.onload=n=>{const o=n.target.result;r({storage:"base64",name:t,url:o,size:e.size,type:e.type})},n.onerror=()=>o(this),n.readAsDataURL(e)}))},downloadFile:e=>Promise.resolve(e)}}Object.defineProperty(t,"__esModule",{value:!0}),n.title="Base64",t.default=n},68405:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(30430);function o(e){return{uploadFile:(t,n,o,i,a,s,u,c,l,f)=>new Promise(((a,s)=>{const u=new XMLHttpRequest;"function"==typeof i&&(u.upload.onprogress=i),"function"==typeof f&&f((()=>u.abort()));const p=new FormData;p.append("name",n),p.append("dir",o),p.append("file",t),u.onerror=e=>{e.networkError=!0,s(e)},u.onload=()=>{if(u.status>=200&&u.status<300){const e=JSON.parse(u.response);e.storage="googledrive",e.size=t.size,e.type=t.type,e.groupId=l,e.groupPermissions=c,a(e)}else s(u.response||"Unable to upload file")},u.onabort=s,u.open("POST",`${e.formUrl}/storage/gdrive`),(0,r.setXhrHeaders)(e,u);const d=e.getToken();d&&u.setRequestHeader("x-jwt-token",d),u.send(p)})),downloadFile(t){const n=e.getToken();return t.url=`${e.formUrl}/storage/gdrive?fileId=${t.id}&fileName=${t.originalName}${n?`&x-jwt-token=${n}`:""}`,Promise.resolve(t)},deleteFile:function(t){var n="".concat(e.formUrl,`/storage/gdrive?id=${t.id}&name=${t.originalName}`);return e.makeRequest("",n,"delete")}}}o.title="Google Drive",t.default=o},5896:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(95789)),i=r(n(7152)),a=r(n(52223)),s=r(n(13225)),u=r(n(46775)),c=r(n(68405));t.default={base64:o.default,s3:i.default,url:s.default,azure:a.default,indexeddb:u.default,googledrive:c.default}},46775:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(22831);function o(){return{title:"indexedDB",name:"indexeddb",uploadFile(e,t,n,o,i,a){if("indexedDB"in window)return new Promise((e=>{const t=indexedDB.open(a.indexeddb);t.onsuccess=function(t){const n=t.target.result;e(n)},t.onupgradeneeded=function(e){e.target.result.createObjectStore(a.indexeddbTable)}})).then((t=>{const n=new FileReader;return new Promise(((o,s)=>{n.onload=()=>{const n=new Blob([e],{type:e.type}),s=(0,r.v4)(n),u={id:s,data:n,name:e.name,size:e.size,type:e.type,url:i},c=t.transaction([a.indexeddbTable],"readwrite");c.objectStore(a.indexeddbTable).put(u,s).onerror=function(e){console.log("error storing data"),console.error(e)},c.oncomplete=function(){o({storage:"indexeddb",name:e.name,size:e.size,type:e.type,url:i,id:s})}},n.onerror=()=>s(this),n.readAsDataURL(e)}))}));console.log("This browser doesn't support IndexedDB")},downloadFile(e,t){return new Promise((e=>{indexedDB.open(t.indexeddb).onsuccess=function(t){const n=t.target.result;e(n)}})).then((n=>new Promise(((r,o)=>{const i=n.transaction([t.indexeddbTable],"readonly"),a=i.objectStore(t.indexeddbTable).get(e.id);a.onsuccess=()=>{i.oncomplete=()=>{const t=a.result,n=new File([a.result.data],e.name,{type:a.result.type}),i=new FileReader;i.onload=n=>{t.url=n.target.result,t.storage=e.storage,r(t)},i.onerror=()=>o(this),i.readAsDataURL(n)}},a.onerror=()=>o(this)}))))},deleteFile(e,t){return new Promise((e=>{indexedDB.open(t.indexeddb).onsuccess=function(t){const n=t.target.result;e(n)}})).then((n=>new Promise(((r,o)=>{const i=n.transaction([t.indexeddbTable],"readwrite"),a=i.objectStore(t.indexeddbTable).delete(e.id);a.onsuccess=()=>{i.oncomplete=()=>{const e=a.result;r(e)}},a.onerror=()=>o(this)}))))}}}o.title="IndexedDB",t.default=o},7152:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const u=s(n(30430)),c=n(55474);function l(e){return{uploadFile(t,r,o,s,l,f,p,d,h,m,v){return a(this,void 0,void 0,(function*(){const l=yield u.default.upload(e,"s3",((e,s,l)=>a(this,void 0,void 0,(function*(){if(s.data.fileName=r,s.data.key=u.default.path([s.data.key,o,r]),!s.signed){const n=new FormData;for(const e in s.data)n.append(e,s.data[e]);return n.append("file",t),e.openAndSetHeaders("POST",s.url),n}if(!v||!Array.isArray(s.signed))return e.openAndSetHeaders("PUT",s.signed),e.setRequestHeader("Content-Type",t.type),s.data.headers&&Object.keys(s.data.headers).forEach((t=>{e.setRequestHeader(t,s.data.headers[t])})),t;{yield a(void 0,void 0,void 0,(function*(){"undefined"==typeof AbortController&&(yield Promise.resolve().then((()=>i(n(24715)))))}));const e=new AbortController,r=e.signal;"function"==typeof l&&l((()=>e.abort()));try{const e=yield this.uploadParts(t,s.signed,s.data.headers,s.partSizeActual,v,r);return void(yield(0,c.withRetries)(this.completeMultipartUpload,[s,e,v],3))}catch(t){throw e.abort(),this.abortMultipartUpload(s),t}}}))),t,r,o,s,d,h,m,v);return{storage:"s3",name:r,bucket:l.bucket,key:l.data.key,url:u.default.path([l.url,l.data.key]),acl:l.data.acl,size:t.size,type:t.type}}))},completeMultipartUpload(t,n,r){return a(this,void 0,void 0,(function*(){const{changeMessage:o}=r;o("Completing AWS S3 multipart upload...");const i=e.getToken(),a=yield fetch(`${e.formUrl}/storage/s3/multipart/complete`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},i?{"x-jwt-token":i}:{}),body:JSON.stringify({parts:n,uploadId:t.uploadId,key:t.key})}),s=yield a.text();if(!a.ok)throw new Error(s);if(s.match(/Error/))throw new Error(s)}))},abortMultipartUpload(t){const{uploadId:n,key:r}=t,o=e.getToken();fetch(`${e.formUrl}/storage/s3/multipart/abort`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},o?{"x-jwt-token":o}:{}),body:JSON.stringify({uploadId:n,key:r})}).catch((e=>console.error("Error while aborting multipart upload:",e)))},uploadParts(e,t,n,r,o,i){const{changeMessage:a,progressCallback:s}=o;a("Chunking and uploading parts to AWS S3...");const u=[];for(let o=0;o<t.length;o++){const a=o*r,c=(o+1)*r,l=o<t.length?e.slice(a,c):e.slice(a),f=fetch(t[o],{method:"PUT",headers:n,body:l,signal:i}).then((e=>{if(e.ok){s(t.length);const n=e.headers.get("etag");if(!n)throw new Error("ETag header not found; it must be exposed in S3 bucket CORS settings");return{ETag:n,PartNumber:o+1}}throw new Error(`Part no ${o} failed with status ${e.status}`)}));u.push(f)}return Promise.all(u)},downloadFile:t=>"public-read"!==t.acl?e.makeRequest("file",`${e.formUrl}/storage/s3?bucket=${u.default.trim(t.bucket)}&key=${u.default.trim(t.key)}`,"GET"):Promise.resolve(t),deleteFile(t){const n=`${e.formUrl}/storage/s3?bucket=${u.default.trim(t.bucket)}&key=${u.default.trim(t.key)}`;return e.makeRequest("",n,"delete")}}}l.title="S3",t.default=l},13225:function(e,t){"use strict";function n(e){function t(e,t){const n="string"==typeof e?JSON.parse(e):e;for(const e in n)if("headers"===e){const e=n.headers;for(const n in e)t.setRequestHeader(n,e[n])}else t[e]=n[e]}const n=(n,r,o,i,a,s,u)=>new Promise(((c,l)=>{const f=new XMLHttpRequest,p="string"==typeof i,d=new FormData;if("function"==typeof s&&(f.upload.onprogress=s),"function"==typeof u&&u((()=>f.abort())),!p)for(const e in i)d.append(e,i[e]);f.onload=()=>{if(f.status>=200&&f.status<300){let e={};try{e="string"==typeof f.response?JSON.parse(f.response):{},e=e&&e.data?e.data:e}catch(t){e={}}let t=e.hasOwnProperty("url")?e.url:`${f.responseURL}/${r}`;t&&"/"===t[0]&&(t=`${n}${t}`),c({url:t,data:e})}else l(f.response||"Unable to upload file")},f.onerror=()=>l(f),f.onabort=()=>l(f);let h=n+(n.indexOf("?")>-1?"&":"?");for(const e in o)h+=`${e}=${o[e]}&`;"&"===h[h.length-1]&&(h=h.substr(0,h.length-1)),f.open("POST",h),p&&f.setRequestHeader("Content-Type","application/json");const m=e.getToken();m&&f.setRequestHeader("x-jwt-token",m),a&&t(a,f),f.send(p?i:d)}));return{title:"Url",name:"url",uploadFile(t,r,o,i,a,s,u,c,l,f){const p=function(c){return n(a,r,{baseUrl:encodeURIComponent(e.projectUrl),project:c?c.project:"",form:c?c._id:""},{[u]:t,name:r,dir:o},s,i,f).then((n=>(n.data=n.data||{},n.data.baseUrl=e.projectUrl,n.data.project=c?c.project:"",n.data.form=c?c._id:"",{storage:"url",name:r,url:n.url,size:t.size,type:t.type,data:n.data})))};return t.private&&e.formId?e.loadForm().then((e=>p(e))):p()},deleteFile:(e,n)=>new Promise(((r,o)=>{const i=new XMLHttpRequest;i.open("DELETE",e.url,!0),i.onload=()=>{i.status>=200&&i.status<300?r("File deleted"):o(i.response||"Unable to delete file")},n&&t(n,i),i.send(null)})),downloadFile:t=>t.private?(e.submissionId&&t.data&&(t.data.submission=e.submissionId),n(t.url,t.name,{},JSON.stringify(t)).then((e=>e.data))):Promise.resolve(t)}}Object.defineProperty(t,"__esModule",{value:!0}),n.title="Url",t.default=n},55474:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.withRetries=void 0,t.withRetries=function e(t,r,o=3,i=null){return n(this,void 0,void 0,(function*(){if(!o)throw new Error(i);return t(...r).catch((()=>e(t,r,o-1,i)))}))}},30430:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setXhrHeaders=void 0;const i=o(n(44826));t.setXhrHeaders=(e,t)=>{const{headers:n}=e.options;if(n){const e={"Content-Disposition":!0,Authorization:!0};for(const r in n)e[r]&&t.setRequestHeader(r,n[r])}};const a={trim:e=>(0,i.default)(e,"/"),path:e=>e.filter((e=>!!e)).map(a.trim).join("/"),upload(e,t,n,o,i,s,u,c,l,f,p){return r(this,void 0,void 0,(function*(){const r=e.getToken();let d;try{d=yield fetch(`${e.formUrl}/storage/${t}`,{method:"POST",headers:Object.assign({Accept:"application/json","Content-Type":"application/json; charset=UTF-8"},r?{"x-jwt-token":r}:{}),body:JSON.stringify({name:a.path([s,i]),size:o.size,type:o.type,groupPermissions:c,groupId:l,multipart:p})})}catch(e){throw e.networkError=!0,e}if(!d.ok){if(504===d.status){const e=new Error("Network request failed");throw e.networkError=!0,e}const e=yield d.text();throw new Error(e||"Unable to sign file.")}const h=yield d.json();return yield a.makeXhrRequest(e,n,h,u,f)}))},makeXhrRequest:(e,n,r,o,i)=>new Promise(((a,s)=>{const u=new XMLHttpRequest;u.openAndSetHeaders=(...n)=>{u.open(...n),(0,t.setXhrHeaders)(e,u)},Promise.resolve(n(u,r,i)).then((e=>{if(!e)return a(r);u.onerror=e=>{e.networkError=!0,s(e)},u.onabort=e=>{e.networkError=!0,s(e)},u.onabort=s,"function"==typeof o&&(u.upload.onprogress=o),"function"==typeof i&&i((()=>u.abort())),u.onload=()=>{if(u.status>=200&&u.status<300)a(r);else if(504===u.status){const e=new Error("Network request failed");e.networkError=!0,s(e)}else s(u.response||"Unable to upload file")},u.send(e)})).catch(s)}))};t.default=a},95413:function(e,t,n){"use strict";var r,o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormBuilder=t.Form=t.Formio=void 0;const a=i(n(56036));class s{static setLicense(e,t=!1){r.license=e,!t&&r.FormioClass&&r.FormioClass.setLicense(e)}static setBaseUrl(e,t=!1){r.baseUrl=e,!t&&r.FormioClass&&r.FormioClass.setBaseUrl(e)}static setApiUrl(e,t=!1){r.baseUrl=e,!t&&r.FormioClass&&r.FormioClass.setApiUrl(e)}static setProjectUrl(e,t=!1){r.projectUrl=e,!t&&r.FormioClass&&r.FormioClass.setProjectUrl(e)}static setAppUrl(e,t=!1){r.projectUrl=e,!t&&r.FormioClass&&r.FormioClass.setAppUrl(e)}static setPathType(e,t=!1){r.pathType=e,!t&&r.FormioClass&&r.FormioClass.setPathType(e)}static debug(...e){r.config.debug&&console.log(...e)}static clearCache(){r.FormioClass&&r.FormioClass.clearCache()}static global(e,t=""){const n=window[e];return t&&n&&!n[t]?null:(r.debug(`Getting global ${e}`,n),n)}static use(e){r.FormioClass&&r.FormioClass.isRenderer?r.FormioClass.use(e):r.modules.push(e)}static createElement(e,t,n){const o=document.createElement(e);return t?(Object.keys(t).forEach((e=>{o.setAttribute(e,t[e])})),(n||[]).forEach((e=>{o.appendChild(r.createElement(e.tag,e.attrs,e.children))})),o):o}static addScript(e,t,n,i=""){return o(this,void 0,void 0,(function*(){if(!t)return Promise.resolve();if("string"!=typeof t&&t.length)return Promise.all(t.map((t=>r.addScript(e,t))));if(n&&r.global(n,i))return r.debug(`${n} already loaded.`),Promise.resolve(r.global(n));r.debug("Adding Script",t);try{e.appendChild(r.createElement("script",{src:t}))}catch(e){return r.debug(e),Promise.resolve()}return n?new Promise((e=>{r.debug(`Waiting to load ${n}`);const t=setInterval((()=>{r.global(n,i)&&(clearInterval(t),r.debug(`${n} loaded.`),e(r.global(n)))}),100)})):Promise.resolve()}))}static addStyles(e,t){return o(this,void 0,void 0,(function*(){t&&("string"!=typeof t&&t.length?t.forEach((t=>r.addStyles(e,t))):(r.debug("Adding Styles",t),e.appendChild(r.createElement("link",{rel:"stylesheet",href:t}))))}))}static submitDone(e,t){return o(this,void 0,void 0,(function*(){r.debug("Submision Complete",t),r.config.submitDone&&r.config.submitDone(t,e);const n=(r.config.success||"").toString();n&&"false"!==n.toLowerCase()&&e.element&&(e.element.innerHTML=`<div class="alert-success" role="alert">${n}</div>`);let o=r.config.redirect;if(!o&&e._form&&e._form.settings&&(e._form.settings.returnUrl||e._form.settings.redirect)&&(r.debug("Return url found in form configuration"),o=e._form.settings.returnUrl||e._form.settings.redirect),o){const n=e.formio?e.formio.formUrl:"",i=!!o.match(/\?/),a=0===o.indexOf(location.origin);o+=i?"&":"?",o+=`sub=${t._id}`,!a&&n&&(o+=`&form=${encodeURIComponent(n)}`),r.debug("Return URL",o),window.location.href=o,a&&window.location.reload()}}))}static formioScript(e,t){return t=t||r.config.includeBuilder,r.fullAdded||t?(r.fullAdded=!0,e.replace("formio.form","formio.full")):e}static addLibrary(e,t,n){return o(this,void 0,void 0,(function*(){if(t){if(t.dependencies)for(let n=0;n<t.dependencies.length;n++){const o=t.dependencies[n];yield r.addLibrary(e,r.config.libs[o],o)}if(t.css&&(yield r.addStyles(t.global?document.body:e,t.css)),t.js){const o=yield r.addScript(t.global?document.body:e,t.js,!!t.use&&n);if(t.use){r.debug(`Using ${n}`);const e=t.options||{};!e.license&&r.license&&(e.license=r.license),r.use("function"==typeof t.use?t.use(o):o,e)}}if(t.globalStyle){const e=r.createElement("style");e.type="text/css",e.innerHTML=t.globalStyle,document.body.appendChild(e)}}}))}static addLoader(e){return o(this,void 0,void 0,(function*(){e.appendChild(r.createElement("div",{class:"formio-loader"},[{tag:"div",attrs:{class:"loader-wrapper"},children:[{tag:"div",attrs:{class:"loader text-center"}}]}]))}))}static init(e,t={},n=!1){return o(this,void 0,void 0,(function*(){r.cdn=new a.default(r.config.cdn,r.config.cdnUrls||{}),r.config.libs=r.config.libs||{uswds:{dependencies:["fontawesome"],js:`${r.cdn.uswds}/uswds.min.js`,css:`${r.cdn.uswds}/uswds.min.css`,use:!0},fontawesome:{css:"https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css",globalStyle:"@font-face {\n font-family: 'FontAwesome';\n src: url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.eot?v=4.7.0');\n src: url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'), url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'), url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'), url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'), url('https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');\n font-weight: normal;\n font-style: normal;\n }"},bootstrap4:{dependencies:["fontawesome"],css:`${r.cdn.bootstrap4}/css/bootstrap.min.css`},bootstrap:{dependencies:["bootstrap-icons"],css:`${r.cdn.bootstrap}/css/bootstrap.min.css`},"bootstrap-icons":{css:"https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.min.css",globalStyle:'@font-face {\n font-display: block;\n font-family: "bootstrap-icons";\n src: url("https://cdn.jsdelivr.net/npm/bootstrap-icons/font/fonts/bootstrap-icons.woff2?dd67030699838ea613ee6dbda90effa6") format("woff2"),\n url("https://cdn.jsdelivr.net/npm/bootstrap-icons/font/fonts/bootstrap-icons.woff?dd67030699838ea613ee6dbda90effa6") format("woff");\n }'}},["cerulean","cosmo","cyborg","darkly","flatly","journal","litera","lumen","lux","materia","minty","pulse","sandstone","simplex","sketchy","slate","solar","spacelab","superhero","united","yeti"].forEach((e=>{r.config.libs[e]={dependencies:["bootstrap-icons"],css:`${r.cdn.bootswatch}/dist/${e}/bootstrap.min.css`}}));const o=r.config.id||`formio-${Math.random().toString(36).substring(7)}`;let i=r.createElement("div",{id:`${o}-wrapper`});e.parentNode.insertBefore(i,e);const s=r.config.includeLibs&&!r.config.noshadow&&"function"==typeof i.attachShadow;s&&(i=i.attachShadow({mode:"open"}),t.shadowRoot=i),e.parentNode.removeChild(e),i.appendChild(e);const u=s?i:document.body;yield r.addStyles(u,r.config.embedCSS||`${r.cdn.js}/formio.embed.css`),r.addLoader(i);const c=r.config.full?"formio.full":"formio.form",l=r.config.debug?c:`${c}.min`;if(r.FormioClass=yield r.addScript(u,r.formioScript(r.config.script||`${r.cdn.js}/${l}.js`,n),"Formio",n?"isBuilder":"isRenderer"),r.FormioClass.cdn=r.cdn,r.FormioClass.setBaseUrl(t.baseUrl||r.baseUrl||r.config.base),r.FormioClass.setProjectUrl(t.projectUrl||r.projectUrl||r.config.project),r.FormioClass.language=r.language,r.setLicense(r.license||r.config.license||!1),r.modules.forEach((e=>{r.FormioClass.use(e)})),r.icons&&(r.FormioClass.icons=r.icons),r.pathType&&r.FormioClass.setPathType(r.pathType),r.config.template&&r.config.includeLibs&&(yield r.addLibrary(u,r.config.libs[r.config.template],r.config.template)),r.config.libraries||(r.config.libraries=r.config.modules||{}),r.config.premium&&(r.config.libraries.premium=r.config.premium),r.config.libraries)for(const e in r.config.libraries){const t=r.config.libraries[e];t.use=t.use||!0,yield r.addLibrary(u,t,e)}return yield r.addStyles(u,r.formioScript(r.config.style||`${r.cdn.js}/${l}.css`,n)),r.config.before&&(yield r.config.before(r.FormioClass,e,r.config)),r.FormioClass.license=!0,r._formioReady(r.FormioClass),i}))}static afterCreate(e,t,n){return o(this,void 0,void 0,(function*(){const o=t.querySelector(".formio-loader");return o&&t.removeChild(o),r.FormioClass.events.emit(n,e),r.config.after&&(r.debug("Calling ready callback"),r.config.after(e,r.config)),e}))}static createForm(e,t,n={}){return o(this,void 0,void 0,(function*(){if(r.FormioClass)return r.FormioClass.createForm(e,t,Object.assign(Object.assign({},n),{noLoader:!0}));const o=yield r.init(e,n);return r.FormioClass.createForm(e,t,Object.assign(Object.assign({},n),{noLoader:!0})).then((e=>(r.config.submission&&(r.debug("Setting submission",r.config.submission),e.submission=r.config.submission),r.afterCreate(e,o,"formEmbedded"),e)))}))}static builder(e,t,n={}){var i;return o(this,void 0,void 0,(function*(){if(null===(i=r.FormioClass)||void 0===i?void 0:i.builder)return r.FormioClass.builder(e,t,n);const o=yield r.init(e,n,!0);return r.FormioClass.builder(e,t,n).then((e=>(r.afterCreate(e,o,"builderEmbedded"),e)))}))}}t.Formio=s,r=s,s.FormioClass=null,s.config={},s.modules=[],s.icons="",s.license="",s.formioReady=new Promise(((e,t)=>{r._formioReady=e,r._formioReadyReject=t})),s.version="5.0.0-rc.92",s.Report={create:(e,t,n={})=>o(void 0,void 0,void 0,(function*(){var o;if(null===(o=r.FormioClass)||void 0===o?void 0:o.Report)return r.FormioClass.Report.create(e,t,n);const i=yield r.init(e,n,!0);return r.FormioClass.Report.create(e,t,n).then((e=>(r.afterCreate(e,i,"reportEmbedded"),e)))}))},a.default.defaultCDN=s.version.includes("rc")?"https://cdn.test-form.io":"https://cdn.form.io";class u{constructor(e,t,n){this.form=t,this.element=e,this.options=n||{},this.init(),this.instance={proxy:!0,ready:this.ready,destroy:()=>{}}}init(){this.instance&&!this.instance.proxy&&this.instance.destroy(),this.element.innerHTML="",this.ready=this.create().then((e=>(this.instance=e,this.form=e.form,e)))}create(){return s.createForm(this.element,this.form,this.options)}setForm(e){this.form=e,this.instance&&this.instance.setForm(e)}setDisplay(e){return this.instance.proxy||(this.form.display=e,this.instance.destroy(),this.ready=this.create().then((e=>{this.instance=e,this.setForm(this.form)}))),this.ready}}t.Form=u;class c extends u{create(){return s.builder(this.element,this.form,this.options)}}t.FormBuilder=c,s.Form=u,s.FormBuilder=c},34040:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=void 0;const o=n(94394);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return o.Formio}});const i=n(95413),a=r(n(56036)),s=r(n(59962));o.Formio.cdn=new a.default,o.Formio.Providers=s.default,o.Formio.version="5.0.0-rc.92",a.default.defaultCDN=o.Formio.version.includes("rc")?"https://cdn.test-form.io":"https://cdn.form.io";const u=e=>null==e;o.Formio.prototype.uploadFile=function(e,t,n,r,i,a,c,l,f,p,d,h,m){const v={provider:e,method:"upload",file:t,fileName:n,dir:r};l=l||"file";const y=o.Formio.pluginWait("preRequest",v).then((()=>o.Formio.pluginGet("fileRequest",v).then((o=>{if(e&&u(o)){const o=s.default.getProvider("storage",e);if(o){const e=new o(this);return d&&d(),e.uploadFile(t,n,r,i,a,c,l,f,p,h,m)}throw"Storage provider not found"}return o||{url:""}}))));return o.Formio.pluginAlter("wrapFileRequestPromise",y,v)},o.Formio.prototype.downloadFile=function(e,t){const n={method:"download",file:e},r=o.Formio.pluginWait("preRequest",n).then((()=>o.Formio.pluginGet("fileRequest",n).then((n=>{if(e.storage&&u(n)){const n=s.default.getProvider("storage",e.storage);if(n)return new n(this).downloadFile(e,t);throw"Storage provider not found"}return n||{url:""}}))));return o.Formio.pluginAlter("wrapFileRequestPromise",r,n)},o.Formio.prototype.deleteFile=function(e,t){const n={method:"delete",file:e},r=o.Formio.pluginWait("preRequest",n).then((()=>o.Formio.pluginGet("fileRequest",n).then((n=>{if(e.storage&&u(n)){const n=s.default.getProvider("storage",e.storage);if(n)return new n(this).deleteFile(e,t);throw"Storage provider not found"}return n||{url:""}}))));return o.Formio.pluginAlter("wrapFileRequestPromise",r,n)},["setBaseUrl","setApiUrl","setAppUrl","setProjectUrl","setPathType","setLicense"].forEach((e=>{const t=o.Formio[e];o.Formio[e]=function(n){const r=i.Formio[e](n,!0);return t?t.call(this,n):r}})),o.Formio.Promise=Promise,o.Formio.formioReady=i.Formio.formioReady,o.Formio.config=i.Formio.config,o.Formio.builder=i.Formio.builder,o.Formio.Report=i.Formio.Report,o.Formio.Form=i.Formio.Form,o.Formio.FormBuilder=i.Formio.FormBuilder,o.Formio.use=i.Formio.use,o.Formio.createForm=i.Formio.createForm,o.Formio.submitDone=i.Formio.submitDone,o.Formio.addLibrary=i.Formio.addLibrary,o.Formio.addLoader=i.Formio.addLoader,o.Formio.addToGlobal=e=>{"object"!=typeof e||e.Formio||(e.Formio=o.Formio)},void 0!==n.g&&o.Formio.addToGlobal(n.g),"undefined"!=typeof window&&o.Formio.addToGlobal(window),i.Formio._formioReady(o.Formio)},54949:function(e,t,n){"use strict";n.r(t),n.d(t,{JsonPatchError:function(){return v},_areEquals:function(){return k},applyOperation:function(){return O},applyPatch:function(){return j},applyReducer:function(){return A},compare:function(){return F},deepClone:function(){return l},default:function(){return $},escapePathComponent:function(){return p},generate:function(){return S},getValueByPointer:function(){return w},observe:function(){return T},unescapePathComponent:function(){return d},unobserve:function(){return R},validate:function(){return x},validator:function(){return P}});var r={};n.r(r),n.d(r,{JsonPatchError:function(){return y},_areEquals:function(){return k},applyOperation:function(){return O},applyPatch:function(){return j},applyReducer:function(){return A},deepClone:function(){return g},getValueByPointer:function(){return w},validate:function(){return x},validator:function(){return P}});var o={};n.r(o),n.d(o,{compare:function(){return F},generate:function(){return S},observe:function(){return T},unobserve:function(){return R}});var i,a=(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},i(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=Object.prototype.hasOwnProperty;function u(e,t){return s.call(e,t)}function c(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);var r=[];for(var o in e)u(e,o)&&r.push(o);return r}function l(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function f(e){for(var t,n=0,r=e.length;n<r;){if(!((t=e.charCodeAt(n))>=48&&t<=57))return!1;n++}return!0}function p(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function d(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function h(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(h(e[t]))return!0}else if("object"==typeof e)for(var r=c(e),o=r.length,i=0;i<o;i++)if(h(e[r[i]]))return!0;return!1}function m(e,t){var n=[e];for(var r in t){var o="object"==typeof t[r]?JSON.stringify(t[r],null,2):t[r];void 0!==o&&n.push(r+": "+o)}return n.join("\n")}var v=function(e){function t(t,n,r,o,i){var a=this.constructor,s=e.call(this,m(t,{name:n,index:r,operation:o,tree:i}))||this;return s.name=n,s.index=r,s.operation=o,s.tree=i,Object.setPrototypeOf(s,a.prototype),s.message=m(t,{name:n,index:r,operation:o,tree:i}),s}return a(t,e),t}(Error),y=v,g=l,b={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=w(n,this.path);r&&(r=l(r));var o=O(n,{op:"remove",path:this.from}).removed;return O(n,{op:"add",path:this.path,value:o}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=w(n,this.from);return O(n,{op:"add",path:this.path,value:l(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:k(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},_={add:function(e,t,n){return f(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){return{newDocument:n,removed:e.splice(t,1)[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:b.move,copy:b.copy,test:b.test,_get:b._get};function w(e,t){if(""==t)return e;var n={op:"_get",path:t};return O(e,n),n.value}function O(e,t,n,r,o,i){if(void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===o&&(o=!0),void 0===i&&(i=0),n&&("function"==typeof n?n(t,0,e,t.path):P(t,0)),""===t.path){var a={newDocument:e};if("add"===t.op)return a.newDocument=t.value,a;if("replace"===t.op)return a.newDocument=t.value,a.removed=e,a;if("move"===t.op||"copy"===t.op)return a.newDocument=w(e,t.from),"move"===t.op&&(a.removed=e),a;if("test"===t.op){if(a.test=k(e,t.value),!1===a.test)throw new y("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a.newDocument=e,a}if("remove"===t.op)return a.removed=e,a.newDocument=null,a;if("_get"===t.op)return t.value=e,a;if(n)throw new y("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return a}r||(e=l(e));var s=(t.path||"").split("/"),u=e,c=1,p=s.length,h=void 0,m=void 0,v=void 0;for(v="function"==typeof n?n:P;;){if((m=s[c])&&-1!=m.indexOf("~")&&(m=d(m)),o&&("__proto__"==m||"prototype"==m&&c>0&&"constructor"==s[c-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&void 0===h&&(void 0===u[m]?h=s.slice(0,c).join("/"):c==p-1&&(h=t.path),void 0!==h&&v(t,0,e,h)),c++,Array.isArray(u)){if("-"===m)m=u.length;else{if(n&&!f(m))throw new y("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);f(m)&&(m=~~m)}if(c>=p){if(n&&"add"===t.op&&m>u.length)throw new y("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(a=_[t.op].call(t,u,m,e)).test)throw new y("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(c>=p){if(!1===(a=b[t.op].call(t,u,m,e)).test)throw new y("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(u=u[m],n&&c<p&&(!u||"object"!=typeof u))throw new y("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function j(e,t,n,r,o){if(void 0===r&&(r=!0),void 0===o&&(o=!0),n&&!Array.isArray(t))throw new y("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(e=l(e));for(var i=new Array(t.length),a=0,s=t.length;a<s;a++)i[a]=O(e,t[a],n,!0,o,a),e=i[a].newDocument;return i.newDocument=e,i}function A(e,t,n){var r=O(e,t);if(!1===r.test)throw new y("Test operation failed","TEST_OPERATION_FAILED",n,t,e);return r.newDocument}function P(e,t,n,r){if("object"!=typeof e||null===e||Array.isArray(e))throw new y("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,n);if(!b[e.op])throw new y("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n);if("string"!=typeof e.path)throw new y("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,n);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new y('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new y("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new y("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&h(e.value))throw new y("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n)if("add"==e.op){var o=e.path.split("/").length,i=r.split("/").length;if(o!==i+1&&o!==i)throw new y("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==r)throw new y("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if("move"===e.op||"copy"===e.op){var a=x([{op:"_get",path:e.from,value:void 0}],n);if(a&&"OPERATION_PATH_UNRESOLVABLE"===a.name)throw new y("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}function x(e,t,n){try{if(!Array.isArray(e))throw new y("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)j(l(t),l(e),n||!0);else{n=n||P;for(var r=0;r<e.length;r++)n(e[r],r,t,void 0)}}catch(e){if(e instanceof y)return e;throw e}}function k(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,r,o,i=Array.isArray(e),a=Array.isArray(t);if(i&&a){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!k(e[n],t[n]))return!1;return!0}if(i!=a)return!1;var s=Object.keys(e);if((r=s.length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!t.hasOwnProperty(s[n]))return!1;for(n=r;0!=n--;)if(!k(e[o=s[n]],t[o]))return!1;return!0}return e!=e&&t!=t}var U=new WeakMap,E=function(e){this.observers=new Map,this.obj=e},C=function(e,t){this.callback=e,this.observer=t};function R(e,t){t.unobserve()}function T(e,t){var n,r=function(e){return U.get(e)}(e);if(r){var o=function(e,t){return e.observers.get(t)}(r,t);n=o&&o.observer}else r=new E(e),U.set(e,r);if(n)return n;if(n={},r.value=l(e),t){n.callback=t,n.next=null;var i=function(){S(n)},a=function(){clearTimeout(n.next),n.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",a),window.addEventListener("keyup",a),window.addEventListener("mousedown",a),window.addEventListener("keydown",a),window.addEventListener("change",a))}return n.patches=[],n.object=e,n.unobserve=function(){S(n),clearTimeout(n.next),function(e,t){e.observers.delete(t.callback)}(r,n),"undefined"!=typeof window&&(window.removeEventListener("mouseup",a),window.removeEventListener("keyup",a),window.removeEventListener("mousedown",a),window.removeEventListener("keydown",a),window.removeEventListener("change",a))},r.observers.set(t,new C(t,n)),n}function S(e,t){void 0===t&&(t=!1);var n=U.get(e.object);I(n.value,e.object,e.patches,"",t),e.patches.length&&j(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function I(e,t,n,r,o){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=c(t),a=c(e),s=!1,f=a.length-1;f>=0;f--){var d=e[m=a[f]];if(!u(t,m)||void 0===t[m]&&void 0!==d&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+p(m),value:l(d)}),n.push({op:"remove",path:r+"/"+p(m)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}));else{var h=t[m];"object"==typeof d&&null!=d&&"object"==typeof h&&null!=h&&Array.isArray(d)===Array.isArray(h)?I(d,h,n,r+"/"+p(m),o):d!==h&&(o&&n.push({op:"test",path:r+"/"+p(m),value:l(d)}),n.push({op:"replace",path:r+"/"+p(m),value:l(h)}))}}if(s||i.length!=a.length)for(f=0;f<i.length;f++){var m;u(e,m=i[f])||void 0===t[m]||n.push({op:"add",path:r+"/"+p(m),value:l(t[m])})}}}function F(e,t,n){void 0===n&&(n=!1);var r=[];return I(e,t,r,"",n),r}const $=Object.assign({},r,o,{JsonPatchError:v,deepClone:l,escapePathComponent:p,unescapePathComponent:d})}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var r=n(34040);return r.Formio}()}));