/*! For license information please see main.js.LICENSE.txt */ (()=>{"use strict";var e,t,n,r,a={2599:(e,t,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;tf,J0:()=>i,RQ:()=>T,WK:()=>M,X3:()=>I,Zn:()=>N,Zq:()=>z,aU:()=>a,cP:()=>d,fp:()=>h,pC:()=>O,q_:()=>o}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));const l="popstate";function o(e){return void 0===e&&(e={}),function(e,t,n,o){void 0===o&&(o={});let{window:u=document.defaultView,v5Compat:d=!1}=o,p=u.history,h=a.Pop,m=null,v=g();function g(){return(p.state||{idx:null}).idx}function y(){h=a.Pop;let e=g(),t=null==e?null:e-v;v=e,m&&m({action:h,location:w.location,delta:t})}function b(e){let t="null"!==u.location.origin?u.location.origin:u.location.href,n="string"==typeof e?e:f(e);return i(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==v&&(v=0,p.replaceState(r({},p.state,{idx:v}),""));let w={get action(){return h},get location(){return e(u,p)},listen(e){if(m)throw new Error("A history only accepts one active listener");return u.addEventListener(l,y),m=e,()=>{u.removeEventListener(l,y),m=null}},createHref:e=>t(u,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h=a.Push;let r=c(w.location,e,t);n&&n(r,e),v=g()+1;let l=s(r,v),o=w.createHref(r);try{p.pushState(l,"",o)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;u.location.assign(o)}d&&m&&m({action:h,location:w.location,delta:1})},replace:function(e,t){h=a.Replace;let r=c(w.location,e,t);n&&n(r,e),v=g();let l=s(r,v),o=w.createHref(r);p.replaceState(l,"",o),d&&m&&m({action:h,location:w.location,delta:0})},go:e=>p.go(e)};return w}((function(e,t){let{pathname:n="/",search:r="",hash:a=""}=d(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),c("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:f(t))}),(function(e,t){u("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function i(e,t){if(!1===e||null==e)throw new Error(t)}function u(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function s(e,t){return{usr:e.state,key:e.key,idx:t}}function c(e,t,n,a){return void 0===n&&(n=null),r({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?d(t):t,{state:n,key:t&&t.key||a||Math.random().toString(36).substr(2,8)})}function f(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function d(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var p;function h(e,t,n){void 0===n&&(n="/");let r=N(("string"==typeof t?d(t):t).pathname||"/",n);if(null==r)return null;let a=m(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let l=null;for(let e=0;null==l&&e{let o={relativePath:void 0===l?e.path||"":l,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};o.relativePath.startsWith("/")&&(i(o.relativePath.startsWith(r),'Absolute route path "'+o.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(r.length));let u=T([r,o.relativePath]),s=n.concat(o);e.children&&e.children.length>0&&(i(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+u+'".'),m(e.children,t,s,u)),(null!=e.path||e.index)&&t.push({path:u,score:x(u,e.index),routesMeta:s})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of v(e.path))a(e,t,n);else a(e,t)})),t}function v(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(0===r.length)return a?[l,""]:[l];let o=v(r.join("/")),i=[];return i.push(...o.map((e=>""===e?l:[l,e].join("/")))),a&&i.push(...o),i.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(p||(p={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const g=/^:\w+$/,y=3,b=2,w=1,k=10,S=-2,E=e=>"*"===e;function x(e,t){let n=e.split("/"),r=n.length;return n.some(E)&&(r+=S),t&&(r+=b),n.filter((e=>!E(e))).reduce(((e,t)=>e+(g.test(t)?y:""===t?w:k)),r)}function C(e,t){let{routesMeta:n}=e,r={},a="/",l=[];for(let e=0;e(r.push(t),"/([^\\/]+)")));return e.endsWith("*")?(r.push("*"),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let l=a[0],o=l.replace(/(.)\/+$/,"$1"),i=a.slice(1);return{params:r.reduce(((e,t,n)=>{if("*"===t){let e=i[n]||"";o=l.slice(0,l.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return u(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(i[n]||"",t),e}),{}),pathname:l,pathnameBase:o,pattern:e}}function P(e){try{return decodeURI(e)}catch(t){return u(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function N(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function L(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function z(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function O(e,t,n,a){let l;void 0===a&&(a=!1),"string"==typeof e?l=d(e):(l=r({},e),i(!l.pathname||!l.pathname.includes("?"),L("?","pathname","search",l)),i(!l.pathname||!l.pathname.includes("#"),L("#","pathname","hash",l)),i(!l.search||!l.search.includes("#"),L("#","search","hash",l)));let o,u=""===e||""===l.pathname,s=u?"/":l.pathname;if(a||null==s)o=n;else{let e=t.length-1;if(s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;l.pathname=t.join("/")}o=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"==typeof e?d(e):e,l=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:l,search:j(r),hash:F(a)}}(l,o),f=s&&"/"!==s&&s.endsWith("/"),p=(u||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!f&&!p||(c.pathname+="/"),c}const T=e=>e.join("/").replace(/\/\/+/g,"/"),R=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),j=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",F=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class I extends Error{}function M(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const D=["post","put","patch","delete"],U=(new Set(D),["get",...D]);new Set(U),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred")},5875:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});var r=n(7294),a=n(9655),l=function(e){var t=e.label,n=e.type,l=e.className,o=e.onClick,i=e.href,u=e.children,s=e.isNewWindow,c=e.args,f=s?"_blank":"_self";return r.createElement(r.Fragment,null,("native"===n||"clickHandler"===n)&&r.createElement("a",{className:l,target:f,href:i,onClick:function(e){o&&(e.preventDefault(),o(c))}},u||t),"route"===n&&r.createElement(a.OL,{className:l,to:i},u||t))};l.defaultProps={type:"route"};const o=l},9498:(e,t,n)=>{function r(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nl});var l={set:function(e,t,n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3);var a="".concat(e,"=").concat(t,";expires=").concat(r.toUTCString(),";path=/");document.cookie=a},get:function(e){var t,n,a,l=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))){n&&(e=n);var a=0,l=function(){};return{s:l,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw o}}}}(document.cookie.split(";"));try{for(l.s();!(t=l.n()).done;){var o=(n=t.value.trim().split("="),a=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,l,o,i=[],u=!0,s=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=l.call(n)).done)&&(i.push(r.value),i.length!==t);u=!0);}catch(e){s=!0,a=e}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return i}}(n,a)||r(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],u=o[1];if(i===e)return u}}catch(e){l.e(e)}finally{l.f()}return null},delete:function(e){l.set(e,"",-1)},update:function(e,t,n){l.set(e,t,n)}}},5034:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function a(){a=function(){return t};var e,t={},n=Object.prototype,l=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var a=t&&t.prototype instanceof b?t:b,l=Object.create(a.prototype),i=new T(r||[]);return o(l,"_invoke",{value:N(e,n,i)}),l}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var h="suspendedStart",m="suspendedYield",v="executing",g="completed",y={};function b(){}function w(){}function k(){}var S={};f(S,u,(function(){return this}));var E=Object.getPrototypeOf,x=E&&E(E(R([])));x&&x!==n&&l.call(x,u)&&(S=x);var C=k.prototype=b.prototype=Object.create(S);function _(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(a,o,i,u){var s=p(e[a],e,o);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==r(f)&&l.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,i,u)}),(function(e){n("throw",e,i,u)})):t.resolve(f).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,u)}))}u(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function l(){return new t((function(t,a){n(e,r,t,a)}))}return a=a?a.then(l,l):l()}})}function N(t,n,r){var a=h;return function(l,o){if(a===v)throw new Error("Generator is already running");if(a===g){if("throw"===l)throw o;return{value:e,done:!0}}for(r.method=l,r.arg=o;;){var i=r.delegate;if(i){var u=L(i,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===h)throw a=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=v;var s=p(t,n,r);if("normal"===s.type){if(a=r.done?g:m,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(a=g,r.method="throw",r.arg=s.arg)}}}function L(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,L(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var l=p(a,t.iterator,n.arg);if("throw"===l.type)return n.method="throw",n.arg=l.arg,n.delegate=null,y;var o=l.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function z(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(z,this),this.reset(!0)}function R(t){if(t||""===t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=l.call(o,"catchLoc"),s=l.call(o,"finallyLoc");if(u&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;ts});var u={method:"POST",credentials:"include"},s=function(){var e,t=(e=a().mark((function e(t){var n,r,l,i,s,c,f=arguments;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=f.length>1&&void 0!==f[1]?f[1]:{},r=f.length>2?f[2]:void 0,l=o(o({},u),n),e.prev=3,e.next=6,fetch(t,l);case 6:if(i=e.sent,"file"!==r){e.next=12;break}return e.next=10,i.blob();case 10:return s=e.sent,e.abrupt("return",{blob:s,headers:i.headers});case 12:return e.next=14,i.json();case 14:return c=e.sent,e.abrupt("return",c);case 18:return e.prev=18,e.t0=e.catch(3),e.abrupt("return",!1);case 21:case"end":return e.stop()}}),e,null,[[3,18]])})),function(){var t=this,n=arguments;return new Promise((function(r,a){var l=e.apply(t,n);function o(e){i(l,r,a,o,u,"next",e)}function u(e){i(l,r,a,o,u,"throw",e)}o(void 0)}))});return function(e){return t.apply(this,arguments)}}()},5218:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(7294);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{n.d(t,{m:()=>a});var r="https://kreahealthcare.com/tool/external-survey",a={clients:{create:"".concat(r,"/apis/clients/create.php"),list:"".concat(r,"/apis/clients/list.php"),edit:"".concat(r,"/apis/clients/edit.php"),read:"".concat(r,"/apis/clients/read.php")},projects:{create:"".concat(r,"/apis/projects/create.php"),list:"".concat(r,"/apis/projects/list.php"),read:"".concat(r,"/apis/projects/read.php"),edit:"".concat(r,"/apis/projects/edit.php"),upload:"".concat(r,"/apis/projects/upload.php"),download:"".concat(r,"/apis/projects/download/"),detail:"".concat(r,"/apis/projects/detail.php"),updateStatus:"".concat(r,"/apis/projects/updateStatus.php"),addVendor:"".concat(r,"/apis/projects/addVendor.php"),updateVendor:"".concat(r,"/apis/projects/updateVendor.php"),vendorStats:"".concat(r,"/apis/projects/vendorStats.php"),vendorDetails:"".concat(r,"/apis/projects/vendorDetails.php"),removeVendor:"".concat(r,"/apis/projects/removeVendor.php")},surveys:{vendorsByProject:"".concat(r,"/apis/surveys/vendorsByProject.php"),deleteOpenURLs:"".concat(r,"/apis/surveys/deleteOpenURLs.php"),deleteIndividual:"".concat(r,"/apis/surveys/deleteIndividual.php"),getUrlList:"".concat(r,"/apis/surveys/getVendorUrls.php")},dashboard:{get:"".concat(r,"/apis/dashboard/get.php"),recentProjects:"".concat(r,"/apis/dashboard/recent-projects.php")},users:{create:"".concat(r,"/apis/users/create.php"),list:"".concat(r,"/apis/users/list.php"),edit:"".concat(r,"/apis/users/edit.php"),read:"".concat(r,"/apis/users/read.php")},auth:{validate:"".concat(r,"/apis/auth/validate.php"),login:"".concat(r,"/apis/auth/login.php")},reports:{download:"".concat(r,"/apis/reports/download.php")}}},4070:(e,t,n)=>{n.d(t,{H:()=>f,Z:()=>d});var r=n(7294),a=n(2142),l=n(5034),o=n(9498),i=n(5218);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,l,o,i=[],u=!0,s=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=l.call(n)).done)&&(i.push(r.value),i.length!==t);u=!0);}catch(e){s=!0,a=e}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{var r=n(7294),a=n(3840);function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n