@openmrs/esm-implementer-tools-app 3.3.2-pre.71 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/889.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 889.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_openmrs_esm_implementer_tools_app=self.webpackChunk_openmrs_esm_implementer_tools_app||[]).push([[889],{159:(t,e,n)=>{function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}var o=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};System.register(["@openmrs/esm-config","@openmrs/esm-error-handling"],(function(t,e){var i={},u={};return{setters:[function(t){i.Type=t.Type,i.defineConfigSchema=t.defineConfigSchema,i.getConfig=t.getConfig,i.navigate=t.navigate,i.validators=t.validators},function(t){u.reportError=t.reportError}],execute:function(){t(function(){var t={672:function(t,e){var n,r,o;r=e,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",((n=function(t){this.message=t}).prototype=new Error).name="InvalidCharacterError",r.btoa||(r.btoa=function(t){for(var e,r,i=String(t),u=0,a=o,c="";i.charAt(0|u)||(a="=",u%1);c+=a.charAt(63&e>>8-u%1*8)){if((r=i.charCodeAt(u+=3/4))>255)throw new n("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");e=e<<8|r}return c}),r.atob||(r.atob=function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,u=0,a=0,c="";i=e.charAt(a++);~i&&(r=u%4?64*r+i:i,u++%4)?c+=String.fromCharCode(255&r>>(-2*u&6)):0)i=o.indexOf(i);return c})},525:function(t){(function(){var e,n,r=function(t,r,o,i){n.defer(),e.search(t).then((function(t){u(t,r).then((function(){o()}),(function(t){i(t)}))}),(function(t){i(t)}))},o=function(t){var e=n.defer(),o=[];return r(t,(function(t){t.forEach((function(t){o.push(t)}))}),(function(){e.resolve(o)}),(function(t){e.reject(t)})),e.promise},i=function(t,r){var o=n.defer();return e.search(t).then((function(t){var n={},i=[function(){o.resolve(t,n)}];function u(){i.pop()()}var a=t.data;a.entry&&a.entry.forEach((function(t){var o=t.resource,c=o.resourceType;r&&r.forEach((function(t){var r,s,l,f=t.split("."),d=f[0],p=f[1],h=o[p];if(c===d&&h){var v=h.reference;n[v]||(r=a,s=o,l=h,i.push((function(){!function(t,r,o){var i=o.reference;e.resolve({bundle:t,resource:r,reference:o}).then((function(t){var e=t.data||t.content;n[i]=e,u()}))}(r,s,l)})))}}))})),u()}),(function(){o.reject("Could not fetch search results")})),o.promise};function u(t,r){var o,i=t.data.entry||[],a=[];for(o=0;o<i.length;o++)a.push(i[o].resource);r(a);var c=n.defer();return e.nextPage({bundle:t.data}).then((function(t){u(t,r).then((function(t){c.resolve()}))}),(function(t){c.resolve()})),c.promise}t.exports=function(t,u){return e=t,n=u,t.drain=r,t.fetchAll=o,t.fetchAllWithReferences=i,t}}).call(this)},256:function(t,e,n){(function(){n(454);var e=n(801),r=n(921),o=n(294),i=n(821),u=n(442),a=n(856),c=n(719),s=n(29),l=n(723),f=n(249),d=n(525);t.exports=function(t,n){var p=e.Middleware,h=e.$$Attr,v=function(t){return h("method",t)},y=function(t,e){return h("headers."+t,e)},g=p(u),m=p(a(t,n)).and(g).and(o.$Basic).and(o.$Bearer).and(o.$Credentials).and(i.$JsonData).and(y("Accept",t.headers&&t.headers.Accept?t.headers.Accept:"application/json")).and(y("Content-Type",t.headers&&t.headers["Content-Type"]?t.headers["Content-Type"]:"application/json")),b=m.and(v("GET")),w=m.and(v("POST")),_=m.and(v("PUT")),S=m.and(v("DELETE")),x=m.and(v("PATCH")),O=i.Http(t,n),j=f.Path,E=j(t.baseUrl),C=E.slash(":type || :resource.resourceType"),k=C.slash("_history"),A=C.slash(":id || :resource.id"),P=A.slash("_history"),I=A.slash(":versionId || :resource.meta.versionId"),T=E.slash(":target.resourceType || :target.type").slash(":target.id").slash(":target.versionId"),L=y("Prefer","return=representation"),R=p(r.$Paging);return d({conformance:b.and(E.slash("metadata")).end(O),document:w.and(E.slash("Document")).end(O),profile:b.and(E.slash("Profile").slash(":type")).end(O),transaction:w.and(E).end(O),history:b.and(E.slash("_history")).and(R).end(O),typeHistory:b.and(k).and(R).end(O),resourceHistory:b.and(P).and(R).end(O),read:b.and(s.$WithPatient).and(A).end(O),vread:b.and(I).end(O),delete:S.and(A).and(L).end(O),create:w.and(C).and(L).end(O),validate:w.and(C.slash("_validate")).end(O),meta:{add:w.and(T.slash("$meta-add")).end(O),delete:w.and(T.slash("$meta-delete")).end(O),read:b.and(T.slash("$meta")).end(O)},search:b.and(C).and(s.$WithPatient).and(r.$SearchParams).and(R).end(O),update:_.and(A).and(L).end(O),conditionalUpdate:_.and(C).and(r.$SearchParams).and(L).end(O),conditionalDelete:S.and(C).and(r.$SearchParams).and(L).end(O),nextPage:b.and(c.$$BundleLinkUrl("next")).end(O),prevPage:b.and(c.$$BundleLinkUrl("previous")).and(c.$$BundleLinkUrl("prev")).end(O),getBundleByUrl:b.and(j(":url")).end(O),resolve:b.and(l.resolve).end(O),patch:x.and(A).and(y("Content-Type","application/json-patch+json")).end(O)},n)}}).call(this)},294:function(t,e,n){(function(){var t,r=n(801),o=n(672).btoa;e.$Basic=r.$$Attr("headers.Authorization",(function(t){if(t.auth&&t.auth.user&&t.auth.pass)return"Basic "+o(t.auth.user+":"+t.auth.pass)})),e.$Bearer=r.$$Attr("headers.Authorization",(function(t){if(t.auth&&t.auth.bearer)return"Bearer "+t.auth.bearer})),e.$Credentials=r.Middleware(r.$$Attr("credentials",(function(e){return t=e.credentials,""}))).and(r.$$Attr("credentials",(function(e){if(["same-origin","include"].indexOf(t)>-1)return t})))}).call(this)},719:function(t,e){e.$$BundleLinkUrl=function(t){return function(e){return function(n){var r=n.bundle&&(n.bundle.link||[]).filter((function(e){return e.relation&&e.relation===t}))[0];return r&&r.url&&(n.url=r.url,n.data=null),e(n)}}}},856:function(t){(function(){var e=function(t,e,n){var r=t[n];return r&&!e[n]&&(e[n]=r),t};t.exports=function(t,n){return function(r){return function(o){return e(t,o,"baseUrl"),e(t,o,"cache"),e(t,o,"auth"),e(t,o,"patient"),e(t,o,"debug"),e(t,o,"credentials"),e(t,o,"headers"),e(t,o,"agentOptions"),e(n,o,"defer"),e(n,o,"http"),r(o)}}}}).call(this)},801:function(t,e,n){(function(){var t=n(454),r=function(t){return t.and=function(e){return r((n=t,o=e,function(t){return n(o(t))}));var n,o},t.end=function(e){return t(e)},t};e.$$Simple=function(t){return function(e){return function(n){return e(t(n))}}},e.$$Attr=function(e,n){return r((function(r){return function(o){var i;return i="function"==t.type(n)?n(o):n,r(null==i&&null==i?o:function(t,e,n){for(var r=e.split("."),o=t,i=0;i<r.length-1;i++){var u=r[i];(o=t[u])||(o={},t[u]=o)}return o[r[r.length-1]]=n,t}(o,e,i))}}))};var o=function(t,e){return r((function(n){return function(r){return r[t]=e(r),n(r)}}))};e.Middleware=r,e.Attribute=o,e.Method=function(t){return o("method",(e=t,function(){return e}));var e}}).call(this)},442:function(t){t.exports=function(t){return function(e){try{return t(e)}catch(t){if(e.debug&&(console.log("\nDEBUG: (ERROR in middleware)"),console.log(t.message),console.log(t.stack)),!e.defer)throw console.log("\nDEBUG: (ERROR in middleware)"),console.log(t.message),console.log(t.stack),new Error("I need adapter.defer");var n=e.defer();return n.reject(t),n.promise}}}},821:function(t,e,n){(function(){var t=n(454);e.Http=function(t,e){return function(n){n.debug&&console.log("\nDEBUG (request):",n.method,n.url,n);var r=(n.http||e.http||t.http)(n);return n.debug&&r&&r.then&&r.then((function(t){console.log("\nDEBUG: (responce)",t)})),r}},e.$JsonData=function(e){return function(n){var r,o=n.bundle||n.data||n.resource;return o&&(n.data=(r=o,"object"==t.type(r)||"array"==t.type(r)?JSON.stringify(r):r)),e(n)}}}).call(this)},29:function(t,e,n){(function(){var t=n(801),r=["Account","AllergyIntolerance","BodySite","CarePlan","Claim","ClinicalImpression","Communication","CommunicationRequest","Composition","Condition","Contract","DetectedIssue","Device","DeviceUseRequest","DeviceUseStatement","DiagnosticOrder","DiagnosticReport","DocumentManifest","DocumentReference","Encounter","EnrollmentRequest","EpisodeOfCare","FamilyMemberHistory","Flag","Goal","ImagingObjectSelection","ImagingStudy","Immunization","ImmunizationRecommendation","List","Media","MedicationAdministration","MedicationDispense","MedicationOrder","MedicationStatement","NutritionOrder","Observation","Order","Procedure","ProcedureRequest","QuestionnaireResponse","ReferralRequest","RelatedPerson","RiskAssessment","Specimen","SupplyDelivery","SupplyRequest","VisionPrescription"];e.$WithPatient=t.$$Simple((function(t){var e=t.type;return t.patient&&("Patient"===e?(t.query=t.query||{},t.query._id=t.patient,t.id=t.patient):r.indexOf(e)>=0&&(t.query=t.query||{},t.query.patient=t.patient)),t}))}).call(this)},723:function(t,e,n){(function(){var e=n(454),r=/^#(.*)/,o=function(t){var n,o,i,u,a=t.cache,c=t.reference,s=t.bundle,l=c;if(!l.reference)return null;if(l.reference.match(r))return n=l.reference,o=t.resource,i=n.match(r)[1],(u=(o.contained||[]).filter((function(t){return(t.id||t._id)==i}))[0])&&{content:u}||null;var f=e.absoluteUrl(t.baseUrl,l.reference);return(s&&s.entry||[]).filter((function(t){return t.id===f}))[0]||(null!=a?a[f]:void 0)||null};t.exports.sync=o,t.exports.resolve=function(t){return function(n){var i=o(n),u=n.reference,a=n.defer();if(i){if(!n.defer)throw new Error("I need promise constructor 'adapter.defer' in adapter");return a.resolve(i),a.promise}if(!u)throw new Error("No reference found");if(u&&u.reference.match(r))throw new Error("Contained resource not found");return n.url=e.absoluteUrl(n.baseUrl,u.reference),n.data=null,t(n)}}}).call(this)},921:function(t,e,n){(function(){var t=n(454),r=t.type,o=t.assertArray,i=(t.assertObject,t.reduceMap),u=t.identity,a={$gt:"gt",$lt:"lt",$lte:"lte",$gte:"gte",$ge:"ge",$le:"le"},c={$asc:":asc",$desc:":desc",$exact:":exact",$missing:":missing",$null:":missing",$text:":text"},s=function(t,e){if("$sort"===t)return function(t){var e,n,i,u;for(o(t),i=[],e=0,n=t.length;e<n;e++)switch(u=t[e],r(u)){case"array":i.push({param:"_sort",value:u[0],modifier:":"+u[1]});break;case"string":i.push({param:"_sort",value:u});break;default:i.push(void 0)}return i}(e);if("$has"===t)return i(e,(function(t,e){var n,o;return n=e[0],o=e[1],t.concat(function(){switch(r(o)){case"array":return o.map((function(t){return{param:"_has",value:n+"="+t}}));case"string":return[{param:"_has",value:n+"="+o}]}}())}));if("$include"===t||"$revInclude"===t)return n=t,i(e,(function(t,e){var o,i;return o=e[0],i=e[1],t.concat(function(){switch(r(i)){case"array":return i.map((function(t){return{param:"$include"===n?"_include":"_revinclude",value:o+":"+t}}));case"string":return[{param:"$include"===n?"_include":"_revinclude",value:o+":"+i}]}}())}));var n,u,l;switch(r(e)){case"object":return u=t,i(l=e,(function(t,e){var n,i,f,d;return n=e[0],d=e[1],t.concat("$and"===n?o(d).reduce((function(t,e){return t.concat(s(u,e))}),[]):"$type"===n?[]:0===n.indexOf("$")?(i={param:u},"$or"===n?i.value=d:(a[n]&&(i.operator=a[n]),c[n]&&(i.modifier=c[n]),"object"===r(d)&&d.$or?i.value=d.$or:i.value=[d]),[i]):(l.$type&&(f=":"+l.$type),s(""+u+(f||"")+"."+n,d)))}));case"string":case"number":return[{param:t,value:[e]}];case"array":return[{param:t,value:[e.join("|")]}];default:throw"could not linearizeParams "+r(e)}},l=function(t){return i(t,(function(t,e){var n,r;return n=e[0],r=e[1],t.concat(s(n,r))}))},f=function(t){var e,n,r=["_include","_revinclude","_has"];return function(){var o,i,a,c;for(c=[],o=0,i=(a=l(t)).length;o<i;o++)e=a[o],n=-1===r.indexOf(e.param)?encodeURIComponent(e.value):e.value,c.push([e.param,e.modifier,"_has"==e.param?":":"=",e.operator,n].filter(u).join(""));return c}().join("&")};e._query=l,e.query=f;var d=n(801);e.$SearchParams=d.$$Attr("url",(function(t){var e=t.url;return t.query?e+"?"+f(t.query):e})),e.$Paging=function(t){return function(e){var n=e.params||{};return e.since&&(n._since=e.since),e.count&&(n._count=e.count),e.params=n,t(e)}}}).call(this)},249:function(t,e,n){(function(){n(454);var t=n(801),r=function(e,n){var o=function(t){return n&&e.includes("target.versionId")&&!t.target.versionId?n(t):(n&&n(t)+"/"||"")+function(t,e){var n,r,o=(r=e,0==(n=t.trim()).indexOf(":")?function(t,e){for(var n,r=t.split("||").map((function(t){return t.trim().substring(1)})),o=0;o<r.length;o++){var i=(n=e,r[o].split(".").reduce((function(t,e){return"versionId"===e&&t[e]?"_history/"+t[e]:null==t||null==t?null:t[e]}),n));if(i)return i}return null}(n,r):n);if((null==o||void 0===o)&&0==t.includes("target.versionId"))throw new Error("Parameter "+t+" is required: "+JSON.stringify(e));return o}(e,t)},i=t.Attribute("url",o);return i.slash=function(t){return r(t,o)},i};e.Path=r}).call(this)},454:function(t,e,n){(function(){var t=n(651),r=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;e.trim=function(t){return t?t.toString().replace(r,""):""};var o=function(t){return null==t&&void 0===t?String(t):{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object"}[Object.prototype.toString.call(t)]};e.type=o,e.assertArray=function(t){if("array"!==o(t))throw"not array";return t};var i=function(t){if("object"!==o(t))throw"not object";return t};e.assertObject=i;var u=function(t,e,n){var r,o;return n||(n=[]),i(t),function(){var e;for(r in e=[],t)o=t[r],e.push([r,o]);return e}().reduce(e,n)};e.reduceMap=u,e.identity=function(t){return t};var a=function(){return Array.prototype.slice.call(arguments)};e.argsArray=a,e.mergeLists=function(){var e;return e=function(e,n){var r,o,i;for(r in o=t(!0,e),n)i=n[r],o[r]=(o[r]||[]).concat(i);return o},a.apply(null,arguments).reduce(e,{})},e.absoluteUrl=function(t,e){return e.match(/https?:\/\/./)?e:t+"/"+e},e.relativeUrl=function(t,e){return e.slice(e,t.length+1)===t+"/"?e.slice(t.length+1):e},e.resourceIdToUrl=function(t,e,n){return e=e.replace(/\/$/,""),(t=t.replace(/^\//,"")).indexOf("/")<0?e+"/"+n+"/"+t:0!==t.indexOf(e)?e+"/"+t:t};var c=function(t,e,n,r){var i;switch(o(n)){case"array":return e(n.map((function(e){return t(e,[n,r])})),r);case"object":return i=function(e,o){var i,u;return i=o[0],u=o[1],e[i]=t(u,[n].concat(r)),e},e(u(n,i,{}),r);default:return e(n,r)}};e.walk=c;var s=function(t,e,n){return e?c(s(t),t,e,n):function(e,n){return s(t,e,n)}};e.postwalk=s}).call(this)},651:function(t,e,n){!function(e){var n=function(t,e,n){var u=n[0],a=n.length;(t||"object"!==r(u))&&(u={});for(var c=0;c<a;++c){var s=n[c];if("object"===r(s))for(var l in s)if("__proto__"!==l){var f=t?o.clone(s[l]):s[l];u[l]=e?i(u[l],f):f}}return u},r=function(t){return{}.toString.call(t).slice(8,-1).toLowerCase()},o=function(t){return n(!0===t,!1,arguments)};function i(t,e){if("object"!==r(t))return e;for(var n in e)"object"===r(t[n])&&"object"===r(e[n])?t[n]=i(t[n],e[n]):t[n]=e[n];return t}o.recursive=function(t){return n(!0===t,!0,arguments)},o.clone=function(t){var e,n,i=t,u=r(t);if("array"===u)for(i=[],n=t.length,e=0;e<n;++e)i[e]=o.clone(t[e]);else if("object"===u)for(e in i={},t)i[e]=o.clone(t[e]);return i},e?t.exports=o:window.merge=o}((t=n.nmd(t))&&"object"==typeof t.exports&&t.exports)},602:function(t){var e=function(t){"use strict";var e,n=function(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]},o=function(t,e,n,o){var a,c,s,l,f=e&&r(e.prototype,u)?e:u,d=Object.create(f.prototype),h=new p(o||[]);return d._invoke=(a=t,c=n,s=h,l=S,function(t,e){if(l===O)throw new Error("Generator is already running");if(l===j){if("throw"===t)throw e;return v()}for(s.method=t,s.arg=e;;){var n=s.delegate;if(n){var r=I(n,s);if(r){if(r===E)continue;return r}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(l===S)throw l=j,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);l=O;var o=i(a,c,s);if("normal"===o.type){if(l=s.done?j:x,o.arg===E)continue;return{value:o.arg,done:s.done}}"throw"===o.type&&(l=j,s.method="throw",s.arg=o.arg)}}),d},i=function(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}},u=function(){},a=function(){},c=function(){},s=function(t){["next","throw","return"].forEach((function(e){n(t,e,(function(t){return this._invoke(e,t)}))}))},l=function(t,e){function n(r,o,u,a){var c=i(t[r],t,o);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&g.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,u,a)}),(function(t){n("throw",t,u,a)})):e.resolve(l).then((function(t){s.value=t,u(s)}),(function(t){return n("throw",t,u,a)}))}a(c.arg)}var r;this._invoke=function(t,o){function i(){return new e((function(e,r){n(t,o,e,r)}))}return r=r?r.then(i,i):i()}},f=function(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)},d=function(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e},p=function(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(f,this),this.reset(!0)},h=function(t){if(t){var n=t[b];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(g.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}return{next:v}},v=function(){return{value:e,done:!0}},y=Object.prototype,g=y.hasOwnProperty,m="function"==typeof Symbol?Symbol:{},b=m.iterator||"@@iterator",w=m.asyncIterator||"@@asyncIterator",_=m.toStringTag||"@@toStringTag";try{n({},"")}catch(t){n=function(t,e,n){return t[e]=n}}t.wrap=o;var S="suspendedStart",x="suspendedYield",O="executing",j="completed",E={},C={};n(C,b,(function(){return this}));var k=Object.getPrototypeOf,A=k&&k(k(h([])));A&&A!==y&&g.call(A,b)&&(C=A);var P=c.prototype=u.prototype=Object.create(C);function I(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method))return E;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return E}var o=i(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,E;var u=o.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,E):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,E)}return a.prototype=c,n(P,"constructor",c),n(c,"constructor",a),a.displayName=n(c,_,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===a||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,n(t,_,"GeneratorFunction")),t.prototype=Object.create(P),t},t.awrap=function(t){return{__await:t}},s(l.prototype),n(l.prototype,w,(function(){return this})),t.AsyncIterator=l,t.async=function(e,n,r,i,u){void 0===u&&(u=Promise);var a=new l(o(e,n,r,i),u);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},s(P),n(P,_,"Generator"),n(P,b,(function(){return this})),n(P,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=h,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(d),!t)for(var n in this)"t"===n.charAt(0)&&g.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){var n=function(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o};if(this.done)throw t;for(var r=this,o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=g.call(i,"catchLoc"),c=g.call(i,"finallyLoc");if(a&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&g.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,E):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),E},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),d(n),E}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;d(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:h(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),E}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},385:function(){System.register([],(function(t,e){return{execute:function(){t(function(){var t={968:function(t,e,n){var r=n(577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},577:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.y=e,r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t}();var o={};return(0,r(968).s)(1),function(){"use strict";var t=function(t,e){for(var n in e)t[n]=e[n];return t},e=function(e){var n=function(t){for(var e=[],n=0;n<o.length;n++)o[n]===t?t=null:e.push(o[n]);o=e},r=function(n,r,i){e=r?n:t(t({},e),n);for(var u=o,a=0;a<u.length;a++)u[a](e,i)},o=[];return e=e||{},{action:function(t){var n=function(e){r(e,!1,t)};return function(){for(var r=arguments,o=[e],i=0;i<arguments.length;i++)o.push(r[i]);var u=t.apply(this,o);if(null!=u)return u.then?u.then(n):n(u)}},setState:r,subscribe:function(t){return o.push(t),function(){n(t)}},unsubscribe:n,getState:function(){return e}}},n=function(t,n){var r=s[t];if(r)return r.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):r.value.setState(n,!0),r.active=!0,r.value;var o=e(n);return s[t]={value:o,active:!0},o},i=function(t,n){var r=s[t];if(!r){var o=e(n);return s[t]={value:o,active:!1},o}return r.value},u=function(t){return n("app",t)},a=function(){return i("app",{})},c=function(t,e,n){var r=e(t.getState());return t.subscribe((function(t){var o=e(t);o!==r&&(r=o,n(o))}))};r.r(o),r.d(o,{createAppState:function(){return u},createGlobalStore:function(){return n},getAppState:function(){return a},getGlobalStore:function(){return i},subscribeTo:function(){return c}});var s={}}(),o}())}}}))},968:function(t,e,n){var r=n(577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},577:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger},824:function(t){"use strict";t.exports=i},254:function(t){"use strict";t.exports=u}},a={};function c(e){var n=a[e];if(void 0!==n)return n.exports;var r=a[e]={id:e,loaded:!1,exports:{}};return t[e].call(r.exports,r,r.exports,c),r.loaded=!0,r.exports}c.y=e,c.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return c.d(e,{a:e}),e},c.d=function(t,e){for(var n in e)c.o(e,n)&&!c.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),c.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},c.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},c.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){var t;c.g.importScripts&&(t=c.g.location+"");var e=c.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c.p=t}();var s={};return(0,c(968).s)(1),function(){"use strict";var t=function(t,e){function n(){this.constructor=t}Z(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},e=function(t){return"function"==typeof t},i=function(t){setTimeout((function(){throw t}),0)},u=function(t){return t.reduce((function(t,e){return t.concat(r(e,X)?e.errors:e)}),[])},a=function(t){return t},l=function(t){return 0===t.length?a:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}},f=function(t){if(t||(t=J.Promise||Promise),!t)throw new Error("no Promise impl found");return t},d=function(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)},p=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){d(i,r,o,u,a,"next",t)}function a(t){d(i,r,o,u,a,"throw",t)}u(void 0)}))}},h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}},v=function(t,e){return!e||"object"!==Et(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e},y=function(t){return window.openmrsBase+t},g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof t)throw Error("The first argument to @openmrs/api's openmrsFetch function must be a url string");if("object"!=typeof e)throw Error("The second argument to @openmrs/api's openmrsFetch function must be a plain object.");if(!window.openmrsBase)throw Error("@openmrs/api is running in a browser that doesn't have window.openmrsBase, which is provided by openmrs-module-spa's HTML file.");var n=y(t);e.headers||(e.headers={}),_t(e.body)&&(e.body=JSON.stringify(e.body)),void 0===e.headers.Accept&&(e.headers.Accept="application/json"),null===e.headers.Accept&&delete e.headers.Accept;var r,o=Error();return window.fetch(n,e).then((r=p(W().mark((function t(e){var r,i;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=e).ok){t.next=10;break}if(204!==r.status){t.next=7;break}return r.data=null,t.abrupt("return",r);case 7:return t.abrupt("return",r.text().then((function(t){try{t&&(r.data=JSON.parse(t))}catch(t){}return r})));case 8:t.next=19;break;case 10:return t.next=12,(0,St.getConfig)("@openmrs/esm-api");case 12:if(i=t.sent.redirectAuthFailure,!(n===y(kt)&&403===r.status||i.enabled&&i.errors.includes(r.status))){t.next=18;break}return(0,St.navigate)({to:i.url}),t.abrupt("return",i.resolvePromise?Promise.resolve():new Promise((function(){})));case 18:return t.abrupt("return",r.text().then((function(t){var e=t;try{e=JSON.parse(t)}catch(t){}throw new At(n,r,e,o)}),(function(t){throw new At(n,r,null,o)})));case 19:case"end":return t.stop()}}),t)}))),function(t){return r.apply(this,arguments)}))},m=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!=typeof e)throw Error("The second argument to openmrsObservableFetch must be either omitted or an object");var n=new AbortController;return e.signal=n.signal,new it((function(r){var o=!1;return g(t,e).then((function(t){o=!0,r.next(t),r.complete()}),(function(t){o=!0,r.error(t)})),function(){o||n.abort()}}))},b=function(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)},w=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){b(i,r,o,u,a,"next",t)}function a(t){b(i,r,o,u,a,"throw",t)}u(void 0)}))}},_=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeAuthStatus:!0};return(Rt<Date.now()-6e4||!Lt.getState().loaded)&&x(),new it((function(e){var n=function(n){var r;n.loaded&&(t.includeAuthStatus?e.next(n.session):e.next(null===(r=n.session)||void 0===r?void 0:r.user))};return n(Lt.getState()),Lt.subscribe(n)}))},S=function(){return(Rt<Date.now()-6e4||!Lt.getState().loaded)&&x(),Lt},x=function(){return new Promise((function(t,e){Rt=Date.now(),g(kt).then((function(n){if("object"!=typeof(null==n?void 0:n.data))return e(),Promise.reject();var r,o,i,u,a;(a=null!==(u=null==(r=n.data)||null===(o=r.user)||void 0===o||null===(i=o.userProperties)||void 0===i?void 0:i.defaultLocale)&&void 0!==u?u:r.locale)!==document.documentElement.getAttribute("lang")&&document.documentElement.setAttribute("lang",a),t(n.data),Lt.setState({loaded:!0,session:n.data})})).catch((function(t){return(0,Tt.reportError)("Failed to fetch new session information: ".concat(t)),e(t),{sessionId:"",authenticated:!1}}))}))},O=function(){Lt.setState({loaded:!0,session:{authenticated:!1,sessionId:""}})},j=function(t,e){return n=t,e.privileges.find((function(t){return n===t.display}))||e.roles.find((function(t){return"System Developer"===t.display}));var n},E=function(){var t,e;return new Promise((function(n,r){var o=function(r){r.loaded&&r.session.user&&(t=r.session.user,n(r.session.user),e&&e())};o(Lt.getState()),t||(e=Lt.subscribe(o))}))},C=function(){return new Promise((function(t,e){var n=_().subscribe((function(e){t(e.sessionLocation),n.unsubscribe()}),e)}))},k=function(t,e){return Mt.apply(this,arguments)},A=function(){(0,St.defineConfigSchema)("@openmrs/esm-api",{redirectAuthFailure:{enabled:{_type:St.Type.Boolean,_default:!0,_description:"Whether to redirect logged-out users to `redirectAuthFailure.url`"},url:{_type:St.Type.String,_default:"${openmrsSpaBase}/login",_validators:[St.validators.isUrl]},errors:{_type:St.Type.Array,_default:[401],_elements:{_type:St.Type.Number,_validators:[St.validators.inRange(100,600)]},_description:"The HTTP error codes for which users will be redirected"},resolvePromise:{_type:St.Type.Boolean,_default:!1,_description:"Changes how requests that fail authentication are handled. Try messing with this if redirects to the login page aren't working correctly."}}}),x()},P=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},I=function(t,e){return t?It.read(function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){P(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t}({type:"Patient",patient:t},e)):Promise.resolve(null)},T=function(t){return function(e){return 0===t?qt:e.lift(new Wt(t))}},L=function(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Gt(t,e))}},R=function(t,e,n){var r=null!=n?n:Yt;return m("/ws/rest/v1/visit?patient=".concat(t,"&v=").concat(r),{signal:e.signal,method:"GET",headers:{"Content-type":"application/json"}}).pipe(T(1)).pipe(L((function(t){return t})))},M=function(t,e){return m("/ws/rest/v1/visit",{signal:e.signal,method:"POST",headers:{"Content-type":"application/json"},body:t})},D=function(t,e,n){return m("/ws/rest/v1/visit/".concat(t),{signal:n.signal,method:"POST",headers:{"Content-type":"application/json"},body:e})},B=function(t){return{uuid:t.uuid,display:t.display,name:t.name}},N=function(){return m("/ws/rest/v1/visittype").pipe(L((function(t){return t.data.results.map(B)}))).pipe(T(1))},U=function(t){return{uuid:t.uuid,display:t.display}},H=function(){return m("/ws/rest/v1/location").pipe(L((function(t){return t.data.results.map(U)}))).pipe(T(1))};c.r(s),c.d(s,{OpenmrsFetchError:function(){return At},VisitMode:function(){return Dt},VisitStatus:function(){return Bt},backendDependencies:function(){return Xt},clearCurrentUser:function(){return O},defaultVisitCustomRepresentation:function(){return Yt},fetchCurrentPatient:function(){return I},fhir:function(){return It},fhirBaseUrl:function(){return Pt},getCurrentUser:function(){return _},getLocations:function(){return H},getLoggedInUser:function(){return E},getSessionLocation:function(){return C},getSessionStore:function(){return S},getStartedVisit:function(){return Qt},getVisitTypes:function(){return N},getVisitsForPatient:function(){return R},makeUrl:function(){return y},openmrsFetch:function(){return g},openmrsObservableFetch:function(){return m},refetchCurrentUser:function(){return x},saveVisit:function(){return M},sessionEndpoint:function(){return kt},setSessionLocation:function(){return k},setupApiModule:function(){return A},toLocationObject:function(){return U},toVisitTypeObject:function(){return B},updateVisit:function(){return D},userHasAccess:function(){return j}});var F,V,$,z,K,q=c(602),W=c.n(q),Z=function(t,e){return(Z=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},G=!1,J={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack,G=t},get useDeprecatedSynchronousErrorHandling(){return G}},Y={closed:!0,next:function(t){},error:function(t){if(J.useDeprecatedSynchronousErrorHandling)throw t;i(t)},complete:function(){}},Q=Array.isArray||function(t){return t&&"number"==typeof t.length},X=(F=function(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this},F.prototype=Object.create(Error.prototype),F),tt=function(){var t,n=function(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)};return n.prototype.unsubscribe=function(){var t;if(!this.closed){var o,i=this,a=i._parentOrParents,c=i._ctorUnsubscribe,s=i._unsubscribe,l=i._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r(a,n))a.remove(this);else if(null!==a)for(var f=0;f<a.length;++f)a[f].remove(this);if(e(s)){c&&(this._unsubscribe=void 0);try{s.call(this)}catch(e){t=r(e,X)?u(e.errors):[e]}}if(Q(l)){f=-1;for(var d=l.length;++f<d;){var p=l[f];if(null!==(o=p)&&"object"==typeof o)try{p.unsubscribe()}catch(e){t=t||[],r(e,X)?t=t.concat(u(e.errors)):t.push(e)}}}if(t)throw new X(t)}},n.prototype.add=function(t){var e=t;if(!t)return n.EMPTY;switch(void 0===t?"undefined":o(t)){case"function":e=new n(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!r(e,n)){var i=e;(e=new n)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var u=e._parentOrParents;if(null===u)e._parentOrParents=this;else if(r(u,n)){if(u===this)return e;e._parentOrParents=[u,this]}else{if(-1!==u.indexOf(this))return e;u.push(this)}var a=this._subscriptions;return null===a?this._subscriptions=[e]:a.push(e),e},n.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},n.EMPTY=((t=new n).closed=!0,t),n}(),et="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),nt=function(e){function n(t,o,i){var u=e.call(this)||this;switch(u.syncErrorValue=null,u.syncErrorThrown=!1,u.syncErrorThrowable=!1,u.isStopped=!1,arguments.length){case 0:u.destination=Y;break;case 1:if(!t){u.destination=Y;break}if("object"==typeof t){r(t,n)?(u.syncErrorThrowable=t.syncErrorThrowable,u.destination=t,t.add(u)):(u.syncErrorThrowable=!0,u.destination=new rt(u,t));break}default:u.syncErrorThrowable=!0,u.destination=new rt(u,t,o,i)}return u}return t(n,e),n.prototype[et]=function(){return this},n.create=function(t,e,r){var o=new n(t,e,r);return o.syncErrorThrowable=!1,o},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},n.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},n.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},n}(tt),rt=($=function(t,n,r,o){var i,u=V.call(this)||this;u._parentSubscriber=t;var a=u;return e(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==Y&&(e((a=Object.create(n)).unsubscribe)&&u.add(a.unsubscribe.bind(a)),a.unsubscribe=u.unsubscribe.bind(u))),u._context=a,u._next=i,u._error=r,u._complete=o,u},t($,V=nt),$.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;J.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},$.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=J.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):i(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;i(t)}}},$.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};J.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},$.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),J.useDeprecatedSynchronousErrorHandling)throw t;i(t)}},$.prototype.__tryOrSetError=function(t,e,n){if(!J.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return J.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(i(e),!0)}return!1},$.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},$),ot="function"==typeof Symbol&&Symbol.observable||"@@observable",it=function(){var t=function(t){this._isScalar=!1,t&&(this._subscribe=t)};return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var o=this.operator,i=function(t,e,n){if(t){if(r(t,nt))return t;if(t[et])return t[et]()}return t||e||n?new nt(t,e,n):new nt(Y)}(t,e,n);if(o?i.add(o.call(i,this.source)):i.add(this.source||J.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),J.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){J.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t,n=e.closed,o=e.destination,i=e.isStopped;if(n||i)return!1;t=o&&r(o,nt)?o:null}return!0}(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=f(e))((function(e,r){var o;o=n.subscribe((function(e){try{t(e)}catch(t){r(t),o&&o.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[ot]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:l(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=f(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}(),ut="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,at="object"==typeof self&&self&&self.Object===Object&&self,ct=(ut||at||Function("return this")()).Symbol,st=Object.prototype,lt=st.hasOwnProperty,ft=st.toString,dt=ct?ct.toStringTag:void 0,pt=Object.prototype.toString,ht=ct?ct.toStringTag:void 0,vt=(z=Object.getPrototypeOf,K=Object,function(t){return z(K(t))}),yt=Function.prototype,gt=Object.prototype,mt=yt.toString,bt=gt.hasOwnProperty,wt=mt.call(Object),_t=function(t){if(null==(e=t)||"object"!=typeof e||"[object Object]"!=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ht&&ht in Object(t)?function(t){var e=lt.call(t,dt),n=t[dt];try{t[dt]=void 0;var r=!0}catch(t){}var o=ft.call(t);return r&&(e?t[dt]=n:delete t[dt]),o}(t):(e=t,pt.call(e));var e}(t))return!1;var e,n=vt(t);if(null===n)return!0;var o=bt.call(n,"constructor")&&n.constructor;return"function"==typeof o&&r(o,o)&&mt.call(o)==wt},St=c(824);function xt(t,e,n){return xt=h()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&jt(o,n.prototype),o},xt.apply(null,arguments)}function Ot(t){return(Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function jt(t,e){return(jt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Et=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":void 0===t?"undefined":o(t)};function Ct(t){var e="function"==typeof Map?new Map:void 0;return Ct=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return xt(t,arguments,Ot(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),jt(r,t)},Ct(t)}var kt="/ws/rest/v1/session",At=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jt(t,e)}(i,t);var e,n,o=(e=i,n=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(t){return!1}}(),function(){var t,r=Ot(e);if(n){var o=Ot(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return v(this,t)});function i(t,e,n,u){var a;return function(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}(this,i),(a=o.call(this)).message="Server responded with ".concat(e.status," (").concat(e.statusText,") for url ").concat(t,". Check err.responseBody or network tab in dev tools for more info"),u.message=a.message,a.responseBody=n,a.response=e,a.stack="Stacktrace for outgoing request:\n".concat(u.stack,"\nStacktrace for incoming response:\n").concat(a.stack),a}return i}(Ct(Error)),Pt="/ws/fhir2/R4",It=c(256)({baseUrl:Pt},{http:function(t){return g(t.url,{method:t.method,headers:t.headers}).then((function(e){return{status:e.status,headers:e.headers,data:e.data,config:t}}),(function(e){return{status:e.response.status,headers:e.response.headers,data:e.responseBody,config:t}}))}}),Tt=c(254),Lt=(0,c(385).createGlobalStore)("session",{loaded:!1,session:null}),Rt=0;function Mt(){return(Mt=w(W().mark((function t(e,n){return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g(kt,{method:"POST",body:{sessionLocation:e},headers:{"Content-Type":"application/json"},signal:n.signal});case 2:x();case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Dt,Bt,Nt,Ut=function(){var t=function(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this};return t.prototype=Object.create(Error.prototype),t}(),Ht=function(e){var n=function(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r};return t(n,e),n.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},n}(tt),Ft=function(e){var n=function(t){var n=e.call(this,t)||this;return n.destination=t,n};return t(n,e),n}(nt),Vt=function(e){var n=function(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t};return t(n,e),n.prototype[et]=function(){return new Ft(this)},n.prototype.lift=function(t){var e=new $t(this,this);return e.operator=t,e},n.prototype.next=function(t){if(this.closed)throw new Ut;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].next(t)},n.prototype.error=function(t){if(this.closed)throw new Ut;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].error(t);this.observers.length=0},n.prototype.complete=function(){if(this.closed)throw new Ut;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},n.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},n.prototype._trySubscribe=function(t){if(this.closed)throw new Ut;return e.prototype._trySubscribe.call(this,t)},n.prototype._subscribe=function(t){if(this.closed)throw new Ut;return this.hasError?(t.error(this.thrownError),tt.EMPTY):this.isStopped?(t.complete(),tt.EMPTY):(this.observers.push(t),new Ht(this,t))},n.prototype.asObservable=function(){var t=new it;return t.source=this,t},n.create=function(t,e){return new $t(t,e)},n}(it),$t=function(e){var n=function(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r};return t(n,e),n.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},n.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},n.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},n.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):tt.EMPTY},n}(Vt),zt=function(e){var n=function(t){var n=e.call(this)||this;return n._value=t,n};return t(n,e),Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),n.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},n.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Ut;return this._value},n.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},n}(Vt),Kt=function(){var t=function(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this};return t.prototype=Object.create(Error.prototype),t}(),qt=new it((function(t){return t.complete()})),Wt=function(){var t=function(t){if(this.total=t,this.total<0)throw new Kt};return t.prototype.call=function(t,e){return e.subscribe(new Zt(t,this.total))},t}(),Zt=function(e){var n=function(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r};return t(n,e),n.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},n}(nt),Gt=function(){var t=function(t,e){this.project=t,this.thisArg=e};return t.prototype.call=function(t,e){return e.subscribe(new Jt(t,this.project,this.thisArg))},t}(),Jt=function(e){var n=function(t,n,r){var o=e.call(this,t)||this;return o.project=n,o.count=0,o.thisArg=r||o,o};return t(n,e),n.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},n}(nt),Yt="custom:(uuid,encounters:(uuid,encounterDatetime,form:(uuid,name),location:ref,encounterType:ref,encounterProviders:(uuid,display,provider:(uuid,display))),patient:(uuid,uuid),visitType:(uuid,name,display),attributes:(uuid,display,value),location:(uuid,name,display),startDatetime,stopDatetime)",Qt=new zt(null);(Nt=Dt||(Dt={})).NEWVISIT="startVisit",Nt.EDITVISIT="editVisit",Nt.LOADING="loadingVisit",function(t){t.NOTSTARTED="notStarted",t.ONGOING="ongoing"}(Bt||(Bt={}));var Xt={"webservices.rest":"2.24.0",fhir2:"1.0.0-SNAPSHOT"}}(),s}())}}}))},9810:()=>{function t(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}System.register(["@openmrs/esm-state"],(function(e,n){var r={};return{setters:[function(t){r.createGlobalStore=t.createGlobalStore}],execute:function(){e(function(){var e={968:function(t,e,n){var r=n(577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},577:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger},685:function(t){"use strict";t.exports=r}},o={};function i(t){var n=o[t];if(void 0!==n)return n.exports;var r=o[t]={exports:{}};return e[t](r,r.exports,i),r.exports}i.y=n,i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;i.g.importScripts&&(t=i.g.location+"");var e=i.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=t}();var u={};return(0,i(968).s)(1),function(){"use strict";var e=function(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")},n=function(t){return t&&t.sensitive?"":"i"},r=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},o=function(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},a=function(e){return n=e.matcher,(null!=(r=RegExp)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):t(n,r))?e.matcher:"string"==typeof e.matcher?h(e.matcher):h(e.path);var n,r},c=function(t){return s([t])},s=function(t){var e=l(),n=t.map((function(t){return{matcher:a(t),settings:t}})),r=o(e).concat(o(n));v.setState(r,!0)},l=function(){return v.getState()},f=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},d=function(t,e){if(t.length>0){var n=y(t,e);if(n){for(var r=[n],o=y(t,n.settings.parent);void 0!==o;)r.push(o),o=y(t,o.settings.parent);return r.reverse()}}return[]},p=function(t){return d(l(),t)};function h(r,o,i){return t(r,RegExp)?function(t,e){if(!e)return t;var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:"",suffix:"",modifier:"",pattern:""});return t}(r,o):Array.isArray(r)?(c=o,s=i,l=r.map((function(t){return h(t,c,s).source})),new RegExp("(?:"+l.join("|")+")",n(s))):(u=o,function(t,r,o){void 0===o&&(o={});for(var i=o.strict,u=void 0!==i&&i,a=o.start,c=void 0===a||a,s=o.end,l=void 0===s||s,f=o.encode,d=void 0===f?function(t){return t}:f,p="["+e(o.endsWith||"")+"]|$",h="["+e(o.delimiter||"/#?")+"]",v=c?"^":"",y=0,g=t;y<g.length;y++){var m=g[y];if("string"==typeof m)v+=e(d(m));else{var b=e(d(m.prefix)),w=e(d(m.suffix));if(m.pattern)if(r&&r.push(m),b||w)if("+"===m.modifier||"*"===m.modifier){var _="*"===m.modifier?"?":"";v+="(?:"+b+"((?:"+m.pattern+")(?:"+w+b+"(?:"+m.pattern+"))*)"+w+")"+_}else v+="(?:"+b+"("+m.pattern+")"+w+")"+m.modifier;else v+="("+m.pattern+")"+m.modifier;else v+="(?:"+b+w+")"+m.modifier}}if(l)u||(v+=h+"?"),v+=o.endsWith?"(?="+p+")":"$";else{var S=t[t.length-1],x="string"==typeof S?h.indexOf(S[S.length-1])>-1:void 0===S;u||(v+="(?:"+h+"(?="+p+"))?"),x||(v+="(?="+h+"|"+p+")")}return new RegExp(v,n(o))}(function(t,n){void 0===n&&(n={});for(var r=function(t){for(var e=[],n=0;n<t.length;){var r=t[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)e.push({type:"CHAR",index:n,value:t[n++]});else{var o=1,i="";if("?"===t[a=n+1])throw new TypeError('Pattern cannot start with "?" at '+a);for(;a<t.length;)if("\\"!==t[a]){if(")"===t[a]){if(0==--o){a++;break}}else if("("===t[a]&&(o++,"?"!==t[a+1]))throw new TypeError("Capturing groups are not allowed at "+a);i+=t[a++]}else i+=t[a++]+t[a++];if(o)throw new TypeError("Unbalanced pattern at "+n);if(!i)throw new TypeError("Missing pattern at "+n);e.push({type:"PATTERN",index:n,value:i}),n=a}else{for(var u="",a=n+1;a<t.length;){var c=t.charCodeAt(a);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;u+=t[a++]}if(!u)throw new TypeError("Missing parameter name at "+n);e.push({type:"NAME",index:n,value:u}),n=a}else e.push({type:"CLOSE",index:n,value:t[n++]});else e.push({type:"OPEN",index:n,value:t[n++]});else e.push({type:"ESCAPED_CHAR",index:n++,value:t[n++]});else e.push({type:"MODIFIER",index:n,value:t[n++]})}return e.push({type:"END",index:n,value:""}),e}(t),o=n.prefixes,i=void 0===o?"./":o,u="[^"+e(n.delimiter||"/#?")+"]+?",a=[],c=0,s=0,l="",f=function(t){if(s<r.length&&r[s].type===t)return r[s++].value},d=function(t){var e=f(t);if(void 0!==e)return e;var n=r[s],o=n.type,i=n.index;throw new TypeError("Unexpected "+o+" at "+i+", expected "+t)},p=function(){for(var t,e="";t=f("CHAR")||f("ESCAPED_CHAR");)e+=t;return e};s<r.length;){var h=f("CHAR"),v=f("NAME"),y=f("PATTERN");if(v||y){var g=h||"";-1===i.indexOf(g)&&(l+=g,g=""),l&&(a.push(l),l=""),a.push({name:v||c++,prefix:g,suffix:"",pattern:y||u,modifier:f("MODIFIER")||""})}else{var m=h||f("ESCAPED_CHAR");if(m)l+=m;else if(l&&(a.push(l),l=""),f("OPEN")){g=p();var b=f("NAME")||"",w=f("PATTERN")||"",_=p();d("CLOSE"),a.push({name:b||(w?c++:""),pattern:b&&!w?u:w,prefix:g,suffix:_,modifier:f("MODIFIER")||""})}else d("END")}}return a}(r,a=i),u,a));var u,a,c,s,l}i.r(u),i.d(u,{filterBreadcrumbs:function(){return d},getBreadcrumbs:function(){return l},getBreadcrumbsFor:function(){return p},registerBreadcrumb:function(){return c},registerBreadcrumbs:function(){return s}});var v=(0,i(685).createGlobalStore)("breadcrumbs",[]);function y(t,e){if(e)return n=e,(r=t.filter((function(t){return t.matcher.test(n)})),function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),1!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(r)||function(t,e){if(t){if("string"==typeof t)return f(t,1);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,1):void 0}}(r)||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.")}())[0]||function(t,e){for(var n=e.split("/");n.length>1;){n.pop();var r=y(t,n.join("/"));if(r)return r}}(t,e);var n,r}}(),u}())}}}))},6347:()=>{var t=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};System.register(["@openmrs/esm-state","single-spa"],(function(e,n){var r={},o={};return{setters:[function(t){r.createGlobalStore=t.createGlobalStore,r.getGlobalStore=t.getGlobalStore},function(t){o.navigateToUrl=t.navigateToUrl}],execute:function(){e(function(){"use strict";var e={685:function(t){t.exports=r},645:function(t){t.exports=o}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,i),o.exports}i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var u={};return function(){var e=function(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]},n=function(t){return function n(r){return 0===arguments.length||e(r)?n:t.apply(this,arguments)}},r=function(t){return function r(o,i){switch(arguments.length){case 0:return r;case 1:return e(o)?r:n((function(e){return t(o,e)}));default:return e(o)&&e(i)?r:e(o)?n((function(e){return t(e,i)})):e(i)?n((function(e){return t(o,e)})):t(o,i)}}},o=function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n},a=function(t,e,n){for(var r=0,o=n.length;r<o;){if(t(e,n[r]))return!0;r+=1}return!1},c=function(t,e){return Object.prototype.hasOwnProperty.call(e,t)},s=function(t,e,n,r){var i=o(t);function u(t,e){return ct(t,e,n.slice(),r.slice())}return!a((function(t,e){return!a(u,e,t)}),o(e),i)},l=function(t){return function o(i,u,a){switch(arguments.length){case 0:return o;case 1:return e(i)?o:r((function(e,n){return t(i,e,n)}));case 2:return e(i)&&e(u)?o:e(i)?r((function(e,n){return t(e,u,n)})):e(u)?r((function(e,n){return t(i,e,n)})):n((function(e){return t(i,u,e)}));default:return e(i)&&e(u)&&e(a)?o:e(i)&&e(u)?r((function(e,n){return t(e,n,a)})):e(i)&&e(a)?r((function(e,n){return t(e,u,n)})):e(u)&&e(a)?r((function(e,n){return t(i,e,n)})):e(i)?n((function(e){return t(e,u,a)})):e(u)?n((function(e){return t(i,e,a)})):e(a)?n((function(e){return t(i,u,e)})):t(i,u,a)}}},f=function(t,e,n){for(var r=n.next();!r.done;){if((e=t["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)},d=function(t,e,n,r){return t["@@transducer/result"](n[r](mt(t["@@transducer/step"],t),e))},p=function(t){return"[object Object]"===Object.prototype.toString.call(t)},h=function(t,e){return function(n){if(!t(n))return"function"==typeof e?e(n):e}},v=function(){try{return JSON.parse(localStorage.getItem("openmrs:configAreDevDefaultsOn")||"false")}catch(t){return!1}},y=function(t){return(0,Pt.getGlobalStore)("config-module-".concat(t),{config:null,loaded:!1})},g=function(){return(0,Pt.getGlobalStore)("config-extension-slots",{slots:{}})},m=function(t){return b(g().getState(),t)},b=function(t,e){var n=t.slots[e];return null!=n?n:{loaded:!1,config:{}}},w=function(){return(0,Pt.getGlobalStore)("config-extensions",{configs:{}})},_=function(t,e){return S(w().getState(),t,e)},S=function(t,e,n){var r,o=null===(r=t.configs[e])||void 0===r?void 0:r[n];return null!=o?o:{loaded:!1,config:null}},x=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},O=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},j=function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){O(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t},E=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||k(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},C=function(t){return function(t){if(Array.isArray(t))return x(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||k(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},k=function(t,e){if(t){if("string"==typeof t)return x(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(t,e):void 0}},A=function(t,e){var n=!0,r=!1,o=void 0;try{for(var i,u=Object.keys(t.schemas)[Symbol.iterator]();!(n=(i=u.next()).done);n=!0){var a=i.value,c=F(a,t,e);y(a).setState({loaded:!0,config:c})}}catch(t){r=!0,o=t}finally{try{n||null==u.return||u.return()}finally{if(r)throw o}}},P=function(t,e){var n,r,o=(n=$(H(t,e)),function(t){var e=!0,n=!1,r=void 0;try{for(var o,i=Object.entries(t)[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){var u=E(o.value,2),a=u[0],c=u[1],s=!0,l=!1,f=void 0;try{for(var d,p=Object.entries(c)[Symbol.iterator]();!(s=(d=p.next()).done);s=!0){var h=E(d.value,2),v=h[0];U(h[1],a,v)}}catch(t){l=!0,f=t}finally{try{s||null==p.return||p.return()}finally{if(l)throw f}}}}catch(t){n=!0,r=t}finally{try{e||null==i.return||i.return()}finally{if(n)throw r}}}(r=Object.keys(n).reduce((function(t,e){var r,o;return(null===(r=n[e])||void 0===r?void 0:r.extensionSlots)&&(t[e]=null===(o=n[e])||void 0===o?void 0:o.extensionSlots),t}),{})),Object.keys(r).reduce((function(t,e){return j({},t,r[e])}),{})),i=Object.fromEntries(Object.entries(o).map((function(t){var e=E(t,2);return[e[0],{loaded:!0,config:e[1]}]}))),u=g(),a=u.getState(),c={slots:j({},a.slots,i)};st(a,c)||u.setState(c)},I=function(t,e){var n=function(t,e){var n=Bt(pt(t.schemas)),r=C(t.providedConfigs.map((function(t){return[t.config,t.source]}))).concat([[e.config,"temporary config"]]),o=!0,i=!1,u=void 0;try{for(var a,c=r[Symbol.iterator]();!(o=(a=c.next()).done);o=!0){var s=E(a.value,2);n=$([n,Nt(s[0],s[1])])}}catch(t){i=!0,u=t}finally{try{o||null==c.return||c.return()}finally{if(i)throw u}}return n}(t,e);Dt.setState({config:n})},T=function(t,e,n){var r={},o=!0,i=!1,u=void 0;try{for(var a,c=e.mountedExtensions[Symbol.iterator]();!(o=(a=c.next()).done);o=!0){var s=a.value,l=N(s.slotModuleName,s.extensionModuleName,s.slotName,s.extensionId,t,n);r[s.slotName]=j({},r[s.slotName],O({},s.extensionId,{config:l,loaded:!0}))}}catch(t){i=!0,u=t}finally{try{o||null==c.return||c.return()}finally{if(i)throw u}}w().setState({configs:r})},L=function(t,e){Ut(t,e);var n=Tt.getState();Tt.setState({schemas:j({},n.schemas,O({},t,e))})},R=function(t,e){Ut(t,e);var n=Tt.getState();n.schemas[t]&&console.warn("Config schema for extension ".concat(t," already exists. If there are multiple extensions with this same name, one will probably crash.")),Tt.setState({schemas:j({},n.schemas,O({},t,e))})},M=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"provided",n=Tt.getState();Tt.setState({providedConfigs:C(n.providedConfigs).concat([{source:e,config:t}])})},D=function(t){return new Promise((function(e){var n=function(t){t.loaded&&t.config&&(e(t.config),o&&o())},r=y(t);n(r.getState());var o=r.subscribe(n)}))},B=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];z(t,e,n);var o=Vt(t,e,r);return Ft(t,o,n),o},N=function(t,e,n,r,o,i){var u,a,c,s,l=E(r.split("#"),1)[0],f=o.schemas[l],d=f?l:e,p=H(o,i),h=V(t,p),v=null!==(s=null==h||null===(u=h.extensionSlots)||void 0===u||null===(a=u[n])||void 0===a||null===(c=a.configure)||void 0===c?void 0:c[r])&&void 0!==s?s:{},y=$([V(d,p),v]),g=null!=f?f:o.schemas[e];z(g,y,d);var m=Vt(g,y,o.devDefaultsAreOn);return Ft(g,m,d),delete m.extensionSlots,m},U=function(t,e,n){var r="Extension slot config '".concat(e,".extensionSlots.").concat(n),o=Object.keys(t).filter((function(t){return!["add","remove","order","configure"].includes(t)}));o.length&&console.error(r+"' contains invalid keys '".concat(o.join("', '"),"'")),t.add&&(Array.isArray(t.add)&&t.add.every((function(t){return"string"==typeof t}))||console.error(r+".add' is invalid. Must be an array of strings (extension IDs)")),t.remove&&(Array.isArray(t.remove)&&t.remove.every((function(t){return"string"==typeof t}))||console.error(r+".remove' is invalid. Must be an array of strings (extension IDs)")),t.order&&(Array.isArray(t.order)&&t.order.every((function(t){return"string"==typeof t}))||console.error(r+".order' is invalid. Must be an array of strings (extension IDs)")),t.configure&&(Z(t.configure)||console.error(r+".configure' is invalid. Must be an object with extension IDs for keys"))},H=function(t,e){return C(t.providedConfigs.map((function(t){return t.config}))).concat([e.config])},F=function(t,e,n){if(!e.schemas.hasOwnProperty(t))throw Error("No config schema has been defined for "+t);var r=e.schemas[t],o=V(t,H(e,n));z(r,o,t);var i=Vt(r,o,e.devDefaultsAreOn);return Ft(r,i,t),delete i.extensionSlots,i},V=function(t,e){return $(e.map((function(e){return e[t]})).filter((function(t){return!!t})))},$=function(t){return wt(xt)({},t)},z=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!0,o=!1,i=void 0;try{for(var u,a=Object.keys(e)[Symbol.iterator]();!(r=(u=a.next()).done);r=!0){var c=u.value,s=e[c],l=n+"."+c,f=t[c];t.hasOwnProperty(c)?Ht(f,s,l):"extensionSlots"===c&&""!==n||console.error("Unknown config key '".concat(l,"' provided. Ignoring."))}}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}},K=function(t,e,n){e&&q(t,[{Array:Ot,Boolean:jt,ConceptUuid:At,Number:Et,Object:kt,String:Ct,UUID:At,PersonAttributeTypeUuid:At,PatientIdentifierTypeUuid:At}[e]],n)},q=function(t,e,n){if(e)try{var r=!0,o=!1,i=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done);r=!0){var c=(0,u.value)(n);"string"==typeof c&&("object"==typeof n?console.error("Invalid configuration for ".concat(t,": ").concat(c)):console.error("Invalid configuration value ".concat(n," for ").concat(t,": ").concat(c)))}}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}}catch(e){console.error('Skipping invalid validator at "'.concat(t,'". Encountered error\n\t').concat(e))}},W=function(t){return!!t&&Object.keys(t).filter((function(t){return!["_default","_validators"].includes(t)})).length>0},Z=function(t){return"object"==typeof t&&!Array.isArray(t)&&null!==t},G=function(t){var e=window.getOpenmrsSpaBase().replace(/\/$/,"");return J(t,{openmrsBase:window.openmrsBase,openmrsSpaBase:e}).replace(/^\/\//,"/")},J=function(t,e){return Object.keys(e).reduce((function(t,n){return t.split("${"+n+"}").join(e[n])}),t)},Y=function(t){var e=t.to,n=window.getOpenmrsSpaBase().replace(/\/$/,""),r=G(e);r.startsWith(n)?(0,$t.navigateToUrl)(r):window.location.assign(r)};i.r(u),i.d(u,{Type:function(){return ft},configExtensionStore:function(){return Mt},configInternalStore:function(){return Tt},defineConfigSchema:function(){return L},defineExtensionConfigSchema:function(){return R},getConfig:function(){return D},getConfigStore:function(){return y},getExtensionConfig:function(){return _},getExtensionConfigFromStore:function(){return S},getExtensionSlotConfig:function(){return m},getExtensionSlotConfigFromStore:function(){return b},getExtensionSlotsConfigStore:function(){return g},getExtensionsConfigStore:function(){return w},implementerToolsConfigStore:function(){return Dt},inRange:function(){return zt},interpolateString:function(){return J},interpolateUrl:function(){return G},isUrl:function(){return qt},isUrlWithTemplateParameters:function(){return Kt},navigate:function(){return Y},oneOf:function(){return Wt},processConfig:function(){return B},provide:function(){return M},temporaryConfigStore:function(){return Rt},validator:function(){return h},validators:function(){return Zt}});var Q="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e},X=Object.prototype.toString,tt=function(){return"[object Arguments]"===X.call(arguments)?function(t){return"[object Arguments]"===X.call(t)}:function(t){return c("callee",t)}}(),et=tt,nt=!{toString:null}.propertyIsEnumerable("toString"),rt=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],ot=function(){return arguments.propertyIsEnumerable("length")}(),it=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1},ut="function"!=typeof Object.keys||ot?n((function(t){if(Object(t)!==t)return[];var e,n,r=[],o=ot&&et(t);for(e in t)!c(e,t)||o&&"length"===e||(r[r.length]=e);if(nt)for(n=rt.length-1;n>=0;)c(e=rt[n],t)&&!it(r,e)&&(r[r.length]=e),n-=1;return r})):n((function(t){return Object(t)!==t?[]:Object.keys(t)})),at=n((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function ct(e,n,r,o){if(Q(e,n))return!0;var i,u,a=at(e);if(a!==at(n))return!1;if(null==e||null==n)return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof n.equals)return"function"==typeof e.equals&&e.equals(n)&&"function"==typeof n.equals&&n.equals(e);switch(a){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(i=e.constructor,null==(u=String(i).match(/^function (\w*)/))?"":u[1]))return e===n;break;case"Boolean":case"Number":case"String":if((void 0===e?"undefined":t(e))!=(void 0===n?"undefined":t(n))||!Q(e.valueOf(),n.valueOf()))return!1;break;case"Date":if(!Q(e.valueOf(),n.valueOf()))return!1;break;case"Error":return e.name===n.name&&e.message===n.message;case"RegExp":if(e.source!==n.source||e.global!==n.global||e.ignoreCase!==n.ignoreCase||e.multiline!==n.multiline||e.sticky!==n.sticky||e.unicode!==n.unicode)return!1}for(var l=r.length-1;l>=0;){if(r[l]===e)return o[l]===n;l-=1}switch(a){case"Map":return e.size===n.size&&s(e.entries(),n.entries(),r.concat([e]),o.concat([n]));case"Set":return e.size===n.size&&s(e.values(),n.values(),r.concat([e]),o.concat([n]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var f=ut(e);if(f.length!==ut(n).length)return!1;var d=r.concat([e]),p=o.concat([n]);for(l=f.length-1;l>=0;){var h=f[l];if(!c(h,n)||!ct(n[h],e[h],d,p))return!1;l-=1}return!0}var st=r((function(t,e){return ct(t,e,[],[])}));function lt(t,e,n,r){var o,i=function(o){for(var i=e.length,u=0;u<i;){if(t===e[u])return n[u];u+=1}for(var a in e[u+1]=t,n[u+1]=o,t)o[a]=r?lt(t[a],e,n,!0):t[a];return o};switch(at(t)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(t.valueOf());case"RegExp":return o=t,new RegExp(o.source,(o.global?"g":"")+(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.sticky?"y":"")+(o.unicode?"u":""));default:return t}}var ft,dt,pt=n((function(t){return null!=t&&"function"==typeof t.clone?t.clone():lt(t,[],[],!0)})),ht=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)},vt=n((function(t){return!!ht(t)||!!t&&"object"==typeof t&&(e=t,!("[object String]"===Object.prototype.toString.call(e)))&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1));var e})),yt=function(){var t=function(t){this.f=t};return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}(),gt=r((function(t,e){return function(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,o){return e.apply(this,arguments)};case 5:return function(t,n,r,o,i){return e.apply(this,arguments)};case 6:return function(t,n,r,o,i,u){return e.apply(this,arguments)};case 7:return function(t,n,r,o,i,u,a){return e.apply(this,arguments)};case 8:return function(t,n,r,o,i,u,a,c){return e.apply(this,arguments)};case 9:return function(t,n,r,o,i,u,a,c,s){return e.apply(this,arguments)};case 10:return function(t,n,r,o,i,u,a,c,s,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}(t.length,(function(){return t.apply(e,arguments)}))})),mt=gt,bt="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",wt=l((function(t,e,n){if("function"==typeof t&&(t=new yt(t)),vt(n))return function(t,e,n){for(var r=0,o=n.length;r<o;){if((e=t["@@transducer/step"](e,n[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}(t,e,n);if("function"==typeof n["fantasy-land/reduce"])return d(t,e,n,"fantasy-land/reduce");if(null!=n[bt])return f(t,e,n[bt]());if("function"==typeof n.next)return f(t,e,n);if("function"==typeof n.reduce)return d(t,e,n,"reduce");throw new TypeError("reduce: list must be array or iterable")})),_t=l((function(t,e,n){var r,o={};for(r in e)c(r,e)&&(o[r]=c(r,n)?t(r,e[r],n[r]):e[r]);for(r in n)c(r,n)&&!c(r,o)&&(o[r]=n[r]);return o})),St=l((function t(e,n,r){return _t((function(n,r,o){return p(r)&&p(o)?t(e,r,o):e(n,r,o)}),n,r)})),xt=r((function(t,e){return St((function(t,e,n){return n}),t,e)}));(dt=ft||(ft={})).Array="Array",dt.Boolean="Boolean",dt.ConceptUuid="ConceptUuid",dt.Number="Number",dt.Object="Object",dt.String="String",dt.UUID="UUID",dt.PersonAttributeTypeUuid="PersonAttributeTypeUuid",dt.PatientIdentifierTypeUuid="PatientIdentifierTypeUuid";var Ot=h((function(t){return Array.isArray(t)}),"must be an array"),jt=h((function(t){return"boolean"==typeof t}),"must be a boolean"),Et=h((function(t){return"number"==typeof t}),"must be a number"),Ct=h((function(t){return"string"==typeof t}),"must be a string"),kt=h((function(t){return"object"==typeof t&&!Array.isArray(t)&&null!==t}),"must be an object (not an array or null)"),At=h((function(t){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)||/^[0-9a-f]{36}$/i.test(t)}),"must be a valid UUID or a 36-character hexadecimal string"),Pt=i(685),It={providedConfigs:[],schemas:{},devDefaultsAreOn:v()},Tt=(0,Pt.createGlobalStore)("config-internal",It),Lt=v();Tt.subscribe((function(t){var e;t.devDefaultsAreOn!=Lt&&(e=t.devDefaultsAreOn,localStorage.setItem("openmrs:configAreDevDefaultsOn",JSON.stringify(e)),Lt=t.devDefaultsAreOn)}));var Rt=(0,Pt.createGlobalStore)("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(t){return{}}}()});Rt.subscribe((function(t){var e;e=t.config,localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(e))}));var Mt=(0,Pt.createGlobalStore)("config-store-of-extension-state",{mountedExtensions:[]}),Dt=(0,Pt.createGlobalStore)("config-implementer-tools",{config:{}});function Bt(t){return t.hasOwnProperty("_default")?j({},t,{_value:t._default,_source:"default"}):Z(t)?Object.keys(t).reduce((function(e,n){return e[n]=Bt(t[n]),e}),{}):{}}function Nt(t,e){return Z(t)?Object.keys(t).reduce((function(n,r){return n[r]=Nt(t[r],e),n}),{}):{_value:t,_source:e}}function Ut(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r="Please verify that you are running the latest version and, if so, alert the maintainer.",o=!0,i=!1,u=void 0;try{for(var a,c=function(o,i){var u=i.value,a=n+(n&&".")+u,c=e[u];if(!Z(c))return console.error("".concat(t," has bad config schema definition for key '").concat(a,"'. ").concat(r)),"continue";c.hasOwnProperty("_default")||Ut(t,c,a);var s=c._elements;if(W(s)&&Ut(t,s,a+"._elements"),c._validators){var l=!0,f=!1,d=void 0;try{for(var p,h=c._validators[Symbol.iterator]();!(l=(p=h.next()).done);l=!0){var v=p.value;"function"!=typeof v&&console.error("".concat(t," has invalid validator for key '").concat(a,"' ").concat(r,".")+"\n\nIf you're the maintainer: validators must be functions that return either "+"undefined or an error string. Received ".concat(v,"."))}}catch(t){f=!0,d=t}finally{try{l||null==h.return||h.return()}finally{if(f)throw d}}}var y=c._type;y&&!Object.values(ft).includes(y)&&console.error("".concat(t," has invalid type for key '").concat(a,"' ").concat(r,".")+"\n\nIf you're the maintainer: the allowed types are ".concat(Object.values(ft).join(", "),". ")+"Received '".concat(y,"'")),Object.keys(c).every((function(t){return["_description","_validators","_elements","_type"].includes(t)}))&&!n.includes("._elements")&&console.error("".concat(t," has bad config schema definition for key '").concat(a,"'. ").concat(r,".")+"\n\nIf you're the maintainer: all config elements must have a default. "+"Received ".concat(JSON.stringify(c))),s&&y&&![ft.Array,ft.Object].includes(y)&&console.error("".concat(t," has bad config schema definition for key '").concat(a,"'. ").concat(r,".")+"\n\nIf you're the maintainer: the 'elements' key only works with '_type' equal to 'Array' or 'Object'. "+"Received ".concat(JSON.stringify(y)))},s=Object.keys(e).filter((function(t){return!t.startsWith("_")}))[Symbol.iterator]();!(o=(a=s.next()).done);o=!0)c(s,a)}catch(t){i=!0,u=t}finally{try{o||null==s.return||s.return()}finally{if(i)throw u}}}function Ht(t,e,n){K(n,t._type,e),Z(e)?t._type===ft.Object?function(t,e,n){if(t._elements){var r=!0,o=!1,i=void 0;try{for(var u,a=Object.keys(e)[Symbol.iterator]();!(r=(u=a.next()).done);r=!0){var c=u.value,s=e[c];z(t._elements,s,"".concat(n,".").concat(c))}}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}}}(t,e,n):t.hasOwnProperty("_default")||z(t,e,n):t._type===ft.Array&&function(t,e,n){if(W(t._elements))for(var r=0;r<e.length;r++)Ht(t._elements,e[r],"".concat(n,"[").concat(r,"]"));for(var o=0;o<e.length;o++){var i;K("".concat(n,"[").concat(o,"]"),null===(i=t._elements)||void 0===i?void 0:i._type,e[o])}}(t,e,n)}function Ft(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(t)if(e!==t._default&&q(n,t._validators,e),Z(e)){var r=!0,o=!1,i=void 0;try{for(var u,a=Object.keys(e)[Symbol.iterator]();!(r=(u=a.next()).done);r=!0){var c=u.value,s=e[c],l=n+"."+c,f=t[c];t._type===ft.Object&&t._elements?Ft(t._elements,s,l):Ft(f,s,l)}}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}}else if(Array.isArray(e)&&t._elements)for(var d=0;d<e.length;d++)Ft(t._elements,e[d],"".concat(n,"[").concat(d,"]"))}A(Tt.getState(),Rt.getState()),Tt.subscribe((function(t){return A(t,Rt.getState())})),Rt.subscribe((function(t){return A(Tt.getState(),t)})),I(Tt.getState(),Rt.getState()),Tt.subscribe((function(t){return I(t,Rt.getState())})),Rt.subscribe((function(t){return I(Tt.getState(),t)})),P(Tt.getState(),Rt.getState()),Tt.subscribe((function(t){return P(t,Rt.getState())})),Rt.subscribe((function(t){return P(Tt.getState(),t)})),T(Tt.getState(),Mt.getState(),Rt.getState()),Tt.subscribe((function(t){T(t,Mt.getState(),Rt.getState())})),Mt.subscribe((function(t){T(Tt.getState(),t,Rt.getState())})),Rt.subscribe((function(t){T(Tt.getState(),Mt.getState(),t)}));var Vt=function(t,e,n){var r=pt(e);if(!t)return r;var o=!0,i=!1,u=void 0;try{for(var a,c=function(e,o){var i=o.value,u=r[i],a=t[i];if(a&&a.hasOwnProperty("_default")){if(!r.hasOwnProperty(i)){var c=a._devDefault||a._default;r[i]=n?c:a._default}var s=a._elements;if(u&&W(s))if(a._type===ft.Array&&Array.isArray(u)){var l=u.map((function(t){return Vt(s,t,n)}));r[i]=l}else if(a._type===ft.Object){var f=!0,d=!1,p=void 0;try{for(var h,v=Object.keys(u)[Symbol.iterator]();!(f=(h=v.next()).done);f=!0){var y=h.value;u[y]=Vt(s,u[y],n)}}catch(t){d=!0,p=t}finally{try{f||null==v.return||v.return()}finally{if(d)throw p}}}}else if(Z(a)){var g=r.hasOwnProperty(i)?u:{};Z(g)&&(r[i]=Vt(a,g,n))}},s=Object.keys(t)[Symbol.iterator]();!(o=(a=s.next()).done);o=!0)c(0,a)}catch(t){i=!0,u=t}finally{try{o||null==s.return||s.return()}finally{if(i)throw u}}return r},$t=i(645),zt=function(t,e){return h((function(n){return t<=n&&n<=e}),"must be between ".concat(t," and ").concat(e))},Kt=function(t){var e=t.concat(["openmrsBase","openmrsSpaBase"]);return h((function(t){if(!t||"string"!=typeof t)return!1;for(var n=/\${(.*?)}/g,r=n.exec(t);r;){if(!e.includes(r[1]))return!1;r=n.exec(t)}return!0}),"Should be a URL or path. The allowed template parameters are "+e.map((function(t){return"${"+t+"}"})).join(", "))},qt=Kt([]),Wt=function(t){return h((function(e){return t.includes(e)}),"Must be one of the following: '".concat(t.join("', '"),"'."))},Zt={inRange:zt,isUrl:qt,isUrlWithTemplateParameters:Kt,oneOf:Wt}}(),u}())}}}))},7708:()=>{System.register(["@openmrs/esm-globals"],(function(t,e){var n={};return{setters:[function(t){n.dispatchNotificationShown=t.dispatchNotificationShown}],execute:function(){t(function(){var t={968:function(t,e,n){var r=n(577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},577:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger},728:function(t){"use strict";t.exports=n}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.y=e,o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;o.g.importScripts&&(t=o.g.location+"");var e=o.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t}();var i={};return(0,o(968).s)(1),function(){"use strict";var t=function(t){var e=n(t);setTimeout((function(){throw e}))},e=function(){var e=Error();return function(r){n(r).stack+="\nAsync stacktrace:\n".concat(e.stack),t(r)}},n=function(t){var e,n,r,o,i;if(n=t,null!=(r=Error)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):(o=n,null!=(i=r)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?i[Symbol.hasInstance](o):o instanceof i))return t;if(null===t)return Error("'null' was thrown as an error");if("object"==typeof t){try{e="Object thrown as error: ".concat(JSON.stringify(t))}catch(n){e="Object thrown as error with the following properties: ".concat(Object.keys(t))}return Error(e)}return void 0===t?Error("'undefined' was thrown as an error"):Error(t.toString())};o.r(i),o.d(i,{createErrorHandler:function(){return e},reportError:function(){return t}});var r=o(728);window.onerror=function(){return(0,r.dispatchNotificationShown)({description:"Oops! An unexpected error occurred."}),!1},window.onunhandledrejection=function(){(0,r.dispatchNotificationShown)({description:"Oops! An unexpected error occurred."})}}(),i}())}}}))},547:(t,e,n)=>{function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}t=n.nmd(t);var o=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};System.register(["@openmrs/esm-config","@openmrs/esm-state","single-spa"],(function(i,u){var a={},c={},s={};return{setters:[function(t){a.configExtensionStore=t.configExtensionStore,a.getExtensionConfigFromStore=t.getExtensionConfigFromStore,a.getExtensionSlotConfig=t.getExtensionSlotConfig,a.getExtensionSlotConfigFromStore=t.getExtensionSlotConfigFromStore,a.getExtensionSlotsConfigStore=t.getExtensionSlotsConfigStore,a.getExtensionsConfigStore=t.getExtensionsConfigStore},function(t){c.createGlobalStore=t.createGlobalStore,c.getGlobalStore=t.getGlobalStore},function(t){s.mountRootParcel=t.mountRootParcel}],execute:function(){i(function(){var i={968:function(t,e,n){var r=n(577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},577:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger},824:function(t){"use strict";t.exports=a},685:function(t){"use strict";t.exports=c},645:function(t){"use strict";t.exports=s}},l={};function f(t){var e=l[t];if(void 0!==e)return e.exports;var n=l[t]={exports:{}};return i[t](n,n.exports,f),n.exports}f.y=u,f.d=function(t,e){for(var n in e)f.o(e,n)&&!f.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),f.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},f.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;f.g.importScripts&&(t=f.g.location+"");var e=f.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),f.p=t}();var d={};return(0,f(968).s)(1),function(){"use strict";var i=function(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}},u=function(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}},a=function(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}},c=function(t){var e=this.__data__=new K(t);this.size=e.size},s=function(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new St;++e<n;)this.add(t[e])},l=function(t){var e=Me.getState(),n=t(e);n!==e&&Me.setState(n)},p=function(t){var e=[],n=!0,r=!1,o=void 0;try{for(var i,u=Object.values(t.extensions)[Symbol.iterator]();!(n=(i=u.next()).done);n=!0){var a=i.value,c=!0,s=!1,l=void 0;try{for(var f,d=a.instances[Symbol.iterator]();!(c=(f=d.next()).done);c=!0){var p=f.value;e.push({slotModuleName:p.slotModuleName,extensionModuleName:a.moduleName,slotName:p.slotName,extensionId:p.id})}}catch(t){s=!0,l=t}finally{try{c||null==d.return||d.return()}finally{if(s)throw l}}}}catch(t){r=!0,o=t}finally{try{n||null==u.return||u.return()}finally{if(r)throw o}}Te(Le.configExtensionStore.getState().mountedExtensions,e)||Le.configExtensionStore.setState({mountedExtensions:e})},h=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},v=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},y=function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){v(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t},g=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||b(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},m=function(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||b(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},b=function(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}},w=function(t,e,n){var r={},o=!0,i=!1,u=void 0;try{for(var a,c=Object.entries(t.slots)[Symbol.iterator]();!(o=(a=c.next()).done);o=!0){var s=g(a.value,2),l=s[0],f=s[1],d=P(l,t,(0,Le.getExtensionSlotConfigFromStore)(e,f.name).config,n);r[l]={moduleName:f.moduleName,assignedExtensions:d}}}catch(t){i=!0,u=t}finally{try{o||null==c.return||c.return()}finally{if(i)throw u}}Te(Ue.getState().slots,r)||Ue.setState({slots:r})},_=function(t,e){return{moduleName:e,name:t,attachedIds:[],config:null}},S=function(t){return g(t.split("#"),1)[0]},x=function(t,e){var n=S(e);return t.extensions[n]},O=function(t){return x(Ne.getState(),t)},j=function(t,e){l((function(n){var r=n.slots[t];return y({},n,r?{slots:y({},n.slots,v({},t,y({},r,{attachedIds:m(r.attachedIds).concat([e])})))}:{slots:y({},n.slots,v({},t,y({},_(t),{attachedIds:[e]})))})}))},E=function(t,e){l((function(n){var r=n.slots[t];return r&&r.attachedIds.includes(e)?y({},n,{slots:y({},n.slots,v({},t,y({},r,{attachedIds:r.attachedIds.filter((function(t){return t!==e}))})))}):n}))},C=function(t){l((function(e){var n=e.slots[t];return n?y({},e,{slots:y({},e.slots,v({},t,y({},n,{attachedIds:[]})))}):e}))},k=function(t,e,n,r){var o=e.indexOf(t);if(-1!==o)return o;if(void 0!==n)return 1e3+n;var i=r.indexOf(t);return-1!==i?2e3+i:-1},A=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null!=e?e:navigator.onLine;return t.filter((function(t){return L(n,t.online,t.offline)}))},P=function(t,e,n,r){var o,i,u,a,c,s,l=(o=n,i=e.slots[t].attachedIds,u=o.add||[],a=o.remove||[],c=o.order||[],s=Ne.getState().extensions,m(i).concat(m(u)).filter((function(t){return!a.includes(t)})).sort((function(t,e){var n,r,o=k(t,c,null===(n=s[S(t)])||void 0===n?void 0:n.order,i),u=k(e,c,null===(r=s[S(e)])||void 0===r?void 0:r.order,i);return-1===u?-1:-1===o?1:o-u}))),f=[],d=!0,p=!1,h=void 0;try{for(var v,y=l[Symbol.iterator]();!(d=(v=y.next()).done);d=!0){var g=v.value,b=(0,Le.getExtensionConfigFromStore)(r,t,g).config,w=S(g),_=e.extensions[w];_&&f.push({id:g,name:w,moduleName:_.moduleName,config:b,meta:_.meta,online:_.online,offline:_.offline})}}catch(t){p=!0,h=t}finally{try{d||null==y.return||y.return()}finally{if(p)throw h}}return f},I=function(t){return P(t,Ne.getState(),(0,Le.getExtensionSlotConfig)(t).config,Fe.getState())},T=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=navigator.onLine;return L(n,t,e)},L=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Boolean(t?e:n)},R=function(t,e){var n=navigator.onLine?t:e;return"object"==typeof n?n:{}},M=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},D=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},B=function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){D(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t},N=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o},U=function(t){return function(t){if(Array.isArray(t))return M(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return M(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},H=function(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(t){return t},i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},u=S(r),a=O(r),c=!0,s=null;if(t){if(!a)throw Error("Couldn't find extension '".concat(u,"' to attach to '").concat(e,"'"));var f=a.load,d=a.online,p=a.offline,h=a.meta,v=a.moduleName;T(d,p)&&(f().then((function(u){var a=u.default,l=N(u,["default"]);c&&(s=(0,Ke.mountRootParcel)(o(null!=a?a:l),B({},R(d,p),i,{_meta:h,_extensionContext:{extensionId:r,extensionSlotName:e,extensionSlotModuleName:n,extensionModuleName:v},domElement:t})))})),l((function(o){var i={domElement:t,id:r,slotName:e,slotModuleName:n};return B({},o,{extensions:B({},o.extensions,D({},u,B({},o.extensions[u],{instances:U(o.extensions[u].instances).concat([i])})))})})))}else console.warn("Tried to render ".concat(r," into ").concat(e," but no DOM element was available."));return function(){c=!1,s&&("MOUNTED"!==s.getStatus()?s.mountPromise.then((function(){s&&s.unmount()})):s.unmount())}};f.r(d),f.d(d,{attach:function(){return j},checkStatus:function(){return T},checkStatusFor:function(){return L},detach:function(){return E},detachAll:function(){return C},extensionStore:function(){return qe},getAssignedExtensions:function(){return I},getConnectedExtensions:function(){return A},getCustomProps:function(){return R},getExtensionInternalStore:function(){return De},getExtensionNameFromId:function(){return S},getExtensionRegistration:function(){return O},getExtensionRegistrationFrom:function(){return x},getExtensionStore:function(){return Be},registerExtension:function(){return Ve},registerExtensionSlot:function(){return $e},renderExtension:function(){return H},reset:function(){return ze},updateInternalExtensionStore:function(){return l}});var F=function(t,e){return t===e||t!=t&&e!=e},V=function(t,e){for(var n=t.length;n--;)if(F(t[n][0],e))return n;return-1},$=Array.prototype.splice;i.prototype.clear=function(){this.__data__=[],this.size=0},i.prototype.delete=function(t){var e=this.__data__,n=V(e,t);return!(n<0||(n==e.length-1?e.pop():$.call(e,n,1),--this.size,0))},i.prototype.get=function(t){var e=this.__data__,n=V(e,t);return n<0?void 0:e[n][1]},i.prototype.has=function(t){return V(this.__data__,t)>-1},i.prototype.set=function(t,e){var n=this.__data__,r=V(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var z,K=i,q="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,W="object"==typeof self&&self&&self.Object===Object&&self,Z=q||W||Function("return this")(),G=Z.Symbol,J=Object.prototype,Y=J.hasOwnProperty,Q=J.toString,X=G?G.toStringTag:void 0,tt=Object.prototype.toString,et=G?G.toStringTag:void 0,nt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":et&&et in Object(t)?function(t){var e=Y.call(t,X),n=t[X];try{t[X]=void 0;var r=!0}catch(t){}var o=Q.call(t);return r&&(e?t[X]=n:delete t[X]),o}(t):(e=t,tt.call(e));var e},rt=function(t){var e=void 0===t?"undefined":o(t);return null!=t&&("object"==e||"function"==e)},ot=function(t){if(!rt(t))return!1;var e=nt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},it=Z["__core-js_shared__"],ut=(z=/[^.]+$/.exec(it&&it.keys&&it.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"",at=Function.prototype.toString,ct=function(t){if(null!=t){try{return at.call(t)}catch(t){}try{return t+""}catch(t){}}return""},st=/^\[object .+?Constructor\]$/,lt=Function.prototype,ft=Object.prototype,dt=lt.toString,pt=ft.hasOwnProperty,ht=RegExp("^"+dt.call(pt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vt=function(t,e){var n,r=null==(n=t)?void 0:n[e];return function(t){return!(!rt(t)||(e=t,ut&&ut in e))&&(ot(t)?ht:st).test(ct(t));var e}(r)?r:void 0},yt=vt(Z,"Map"),gt=vt(Object,"create"),mt=Object.prototype.hasOwnProperty,bt=Object.prototype.hasOwnProperty;u.prototype.clear=function(){this.__data__=gt?gt(null):{},this.size=0},u.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},u.prototype.get=function(t){var e=this.__data__;if(gt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return mt.call(e,t)?e[t]:void 0},u.prototype.has=function(t){var e=this.__data__;return gt?void 0!==e[t]:bt.call(e,t)},u.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=gt&&void 0===e?"__lodash_hash_undefined__":e,this};var wt=u,_t=function(t,e){var n,r,i=t.__data__;return("string"==(r=o(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map};a.prototype.clear=function(){this.size=0,this.__data__={hash:new wt,map:new(yt||K),string:new wt}},a.prototype.delete=function(t){var e=_t(this,t).delete(t);return this.size-=e?1:0,e},a.prototype.get=function(t){return _t(this,t).get(t)},a.prototype.has=function(t){return _t(this,t).has(t)},a.prototype.set=function(t,e){var n=_t(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var St=a;c.prototype.clear=function(){this.__data__=new K,this.size=0},c.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},c.prototype.get=function(t){return this.__data__.get(t)},c.prototype.has=function(t){return this.__data__.has(t)},c.prototype.set=function(t,e){var n=this.__data__;if(r(n,K)){var o=n.__data__;if(!yt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new St(o)}return n.set(t,e),this.size=n.size,this};var xt=c;s.prototype.add=s.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},s.prototype.has=function(t){return this.__data__.has(t)};var Ot=s,jt=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1},Et=function(t,e,n,r,o,i){var u=1&n,a=t.length,c=e.length;if(a!=c&&!(u&&c>a))return!1;var s=i.get(t),l=i.get(e);if(s&&l)return s==e&&l==t;var f=-1,d=!0,p=2&n?new Ot:void 0;for(i.set(t,e),i.set(e,t);++f<a;){var h=t[f],v=e[f];if(r)var y=u?r(v,h,f,e,t,i):r(h,v,f,t,e,i);if(void 0!==y){if(y)continue;d=!1;break}if(p){if(!jt(e,(function(t,e){if(u=e,!p.has(u)&&(h===t||o(h,t,n,r,i)))return p.push(e);var u}))){d=!1;break}}else if(h!==v&&!o(h,v,n,r,i)){d=!1;break}}return i.delete(t),i.delete(e),d},Ct=Z.Uint8Array,kt=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n},At=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},Pt=G?G.prototype:void 0,It=Pt?Pt.valueOf:void 0,Tt=Array.isArray,Lt=Object.prototype.propertyIsEnumerable,Rt=Object.getOwnPropertySymbols,Mt=Rt?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var u=t[n];e(u)&&(i[o++]=u)}return i}(Rt(t),(function(e){return Lt.call(t,e)})))}:function(){return[]},Dt=function(t){return null!=t&&"object"==typeof t},Bt=function(t){return Dt(t)&&"[object Arguments]"==nt(t)},Nt=Object.prototype,Ut=Nt.hasOwnProperty,Ht=Nt.propertyIsEnumerable,Ft=Bt(function(){return arguments}())?Bt:function(t){return Dt(t)&&Ut.call(t,"callee")&&!Ht.call(t,"callee")},Vt=Ft,$t=e&&!e.nodeType&&e,zt=$t&&t&&!t.nodeType&&t,Kt=zt&&zt.exports===$t?Z.Buffer:void 0,qt=(Kt?Kt.isBuffer:void 0)||function(){return!1},Wt=/^(?:0|[1-9]\d*)$/,Zt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Gt={};Gt["[object Float32Array]"]=Gt["[object Float64Array]"]=Gt["[object Int8Array]"]=Gt["[object Int16Array]"]=Gt["[object Int32Array]"]=Gt["[object Uint8Array]"]=Gt["[object Uint8ClampedArray]"]=Gt["[object Uint16Array]"]=Gt["[object Uint32Array]"]=!0,Gt["[object Arguments]"]=Gt["[object Array]"]=Gt["[object ArrayBuffer]"]=Gt["[object Boolean]"]=Gt["[object DataView]"]=Gt["[object Date]"]=Gt["[object Error]"]=Gt["[object Function]"]=Gt["[object Map]"]=Gt["[object Number]"]=Gt["[object Object]"]=Gt["[object RegExp]"]=Gt["[object Set]"]=Gt["[object String]"]=Gt["[object WeakMap]"]=!1;var Jt,Yt,Qt,Xt=e&&!e.nodeType&&e,te=Xt&&t&&!t.nodeType&&t,ee=te&&te.exports===Xt&&q.process,ne=function(){try{return te&&te.require&&te.require("util").types||ee&&ee.binding&&ee.binding("util")}catch(t){}}(),re=ne&&ne.isTypedArray,oe=re?(Jt=re,function(t){return Jt(t)}):function(t){return Dt(t)&&Zt(t.length)&&!!Gt[nt(t)]},ie=Object.prototype.hasOwnProperty,ue=Object.prototype,ae=(Yt=Object.keys,Qt=Object,function(t){return Yt(Qt(t))}),ce=Object.prototype.hasOwnProperty,se=function(t){return n=Mt,r=function(t){return null!=(e=t)&&Zt(e.length)&&!ot(e)?function(t,e){var n,r,i,u=Tt(t),a=!u&&Vt(t),c=!u&&!a&&qt(t),s=!u&&!a&&!c&&oe(t),l=u||a||c||s,f=l?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],d=f.length;for(var p in t)!ie.call(t,p)||l&&("length"==p||c&&("offset"==p||"parent"==p)||s&&("buffer"==p||"byteLength"==p||"byteOffset"==p)||(r=d,i=void 0===(n=p)?"undefined":o(n),(r=null==r?9007199254740991:r)&&("number"==i||"symbol"!=i&&Wt.test(n))&&n>-1&&n%1==0&&n<r))||f.push(p);return f}(t):function(t){if(n=(e=t)&&e.constructor,e!==("function"==typeof n&&n.prototype||ue))return ae(t);var e,n,r=[];for(var o in Object(t))ce.call(t,o)&&"constructor"!=o&&r.push(o);return r}(t);var e}(e=t),Tt(e)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(e));var e,n,r},le=Object.prototype.hasOwnProperty,fe=vt(Z,"DataView"),de=vt(Z,"Promise"),pe=vt(Z,"Set"),he=vt(Z,"WeakMap"),ve="[object Map]",ye="[object Promise]",ge="[object Set]",me="[object WeakMap]",be="[object DataView]",we=ct(fe),_e=ct(yt),Se=ct(de),xe=ct(pe),Oe=ct(he),je=nt;(fe&&je(new fe(new ArrayBuffer(1)))!=be||yt&&je(new yt)!=ve||de&&je(de.resolve())!=ye||pe&&je(new pe)!=ge||he&&je(new he)!=me)&&(je=function(t){var e=nt(t),n="[object Object]"==e?t.constructor:void 0,r=n?ct(n):"";if(r)switch(r){case we:return be;case _e:return ve;case Se:return ye;case xe:return ge;case Oe:return me}return e});var Ee=je,Ce="[object Arguments]",ke="[object Array]",Ae="[object Object]",Pe=Object.prototype.hasOwnProperty,Ie=function t(e,n,o,i,u){return e===n||(null==e||null==n||!Dt(e)&&!Dt(n)?e!=e&&n!=n:function(t,e,n,o,i,u){var a=Tt(t),c=Tt(e),s=a?ke:Ee(t),l=c?ke:Ee(e),f=(s=s==Ce?Ae:s)==Ae,d=(l=l==Ce?Ae:l)==Ae,p=s==l;if(p&&qt(t)){if(!qt(e))return!1;a=!0,f=!1}if(p&&!f)return u||(u=new xt),a||oe(t)?Et(t,e,n,o,i,u):function(t,e,n,r,o,i,u){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new Ct(t),new Ct(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return F(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=kt;case"[object Set]":var c=1&r;if(a||(a=At),t.size!=e.size&&!c)return!1;var s=u.get(t);if(s)return s==e;r|=2,u.set(t,e);var l=Et(a(t),a(e),r,o,i,u);return u.delete(t),l;case"[object Symbol]":if(It)return It.call(t)==It.call(e)}return!1}(t,e,s,n,o,i,u);if(!(1&n)){var h=f&&Pe.call(t,"__wrapped__"),v=d&&Pe.call(e,"__wrapped__");if(h||v){var y=h?t.value():t,g=v?e.value():e;return u||(u=new xt),i(y,g,n,o,u)}}return!!p&&(u||(u=new xt),function(t,e,n,o,i,u){var a=1&n,c=se(t),s=c.length;if(s!=se(e).length&&!a)return!1;for(var l=s;l--;){var f=c[l];if(!(a?f in e:le.call(e,f)))return!1}var d=u.get(t),p=u.get(e);if(d&&p)return d==e&&p==t;var h=!0;u.set(t,e),u.set(e,t);for(var v=a;++l<s;){var y=t[f=c[l]],g=e[f];if(o)var m=a?o(g,y,f,e,t,u):o(y,g,f,t,e,u);if(!(void 0===m?y===g||i(y,g,n,o,u):m)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&r(b,b)&&"function"==typeof w&&r(w,w)||(h=!1)}return u.delete(t),u.delete(e),h}(t,e,n,o,i,u))}(e,n,o,i,t,u))},Te=function(t,e){return Ie(t,e)},Le=f(824),Re=f(685),Me=(0,Re.createGlobalStore)("extensionsInternal",{slots:{},extensions:{}}),De=function(){return(0,Re.getGlobalStore)("extensionsInternal",{slots:{},extensions:{}})},Be=function(){return(0,Re.getGlobalStore)("extensions",{slots:{}})};p(Me.getState()),Me.subscribe(p);var Ne=De(),Ue=Be(),He=(0,Le.getExtensionSlotsConfigStore)(),Fe=(0,Le.getExtensionsConfigStore)();Ne.subscribe((function(t){w(t,He.getState(),Fe.getState())})),He.subscribe((function(t){w(Ne.getState(),t,Fe.getState())})),Fe.subscribe((function(t){w(Ne.getState(),He.getState(),t)}));var Ve=Ne.action((function(t,e){t.extensions[e.name]=y({},e,{instances:[]})})),$e=Ne.action((function(t,e,n){var r,o=null===(r=t.slots[n])||void 0===r?void 0:r.moduleName;if(o&&o!=e)return console.warn("An extension slot with the name '".concat(n,'\' already exists. Refusing to register the same slot name twice (in "registerExtensionSlot"). The existing one is from module ').concat(o,".")),t;if(o&&o==e)return t;if(t.slots[n])return y({},t,{slots:y({},t.slots,v({},n,y({},t.slots[n],{moduleName:e})))});var i=_(n,e);return y({},t,{slots:y({},t.slots,v({},n,i))})})),ze=Ue.action((function(){return{slots:{},extensions:{}}})),Ke=f(645),qe=De()}(),d}())}}}))},4889:(t,e,n)=>{"use strict";n.r(e);var r=n(159),o={};for(const t in r)"default"!==t&&(o[t]=()=>r[t]);n.d(e,o);var i=n(9810);o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);var u=n(6347);o={};for(const t in u)"default"!==t&&(o[t]=()=>u[t]);n.d(e,o);var a=n(7708);o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);n.d(e,o);var c=n(547);o={};for(const t in c)"default"!==t&&(o[t]=()=>c[t]);n.d(e,o);var s=n(9473);o={};for(const t in s)"default"!==t&&(o[t]=()=>s[t]);n.d(e,o);var l=n(2630);o={};for(const t in l)"default"!==t&&(o[t]=()=>l[t]);n.d(e,o);var f=n(9336);o={};for(const t in f)"default"!==t&&(o[t]=()=>f[t]);n.d(e,o);var d=n(1493);o={};for(const t in d)"default"!==t&&(o[t]=()=>d[t]);n.d(e,o);var p=n(2390);o={};for(const t in p)"default"!==t&&(o[t]=()=>p[t]);n.d(e,o)},9473:()=>{System.register([],(function(t,e){return{execute:function(){t(function(){var t={968:function(t,e,n){var r=n(577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},577:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.y=e,r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t}();var o={};return(0,r(968).s)(1),function(){"use strict";var t=function(t){window.dispatchEvent(new CustomEvent(d,{detail:{online:t}}))},e=function(t){var e=function(e){return t(e.detail)};return window.addEventListener(d,e),function(){return window.removeEventListener(d,e)}},n=function(t){return t({online:navigator.onLine}),e(t)},i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.dispatchEvent(new CustomEvent(p,{detail:t}))},u=function(t){var e=function(e){return t(e.detail)};return window.addEventListener(p,e),function(){return window.removeEventListener(p,e)}},a=function(t){window.dispatchEvent(new CustomEvent(h,{detail:t}))},c=function(t){var e=function(e){return t(e.detail)};return window.addEventListener(h,e),function(){return window.removeEventListener(h,e)}},s=function(t){var e=function(e){return t(e.detail)};return window.addEventListener(v,e),function(){return window.removeEventListener(v,e)}},l=function(t){window.openmrsBase=t.apiUrl,window.spaBase=t.spaPath,window.spaEnv=t.env||"production",window.spaVersion=process.env.BUILD_VERSION,window.getOpenmrsSpaBase=function(){return"".concat(window.spaBase,"/")}},f=function(){window.copyText=function(t){var e=window.getSelection();if(e){var n=document.createRange();n.selectNode(t),e.removeAllRanges(),e.addRange(n),document.execCommand("copy"),e.removeAllRanges()}}};r.r(o),r.d(o,{dispatchConnectivityChanged:function(){return t},dispatchNotificationShown:function(){return a},dispatchPrecacheStaticDependencies:function(){return i},setupPaths:function(){return l},setupUtils:function(){return f},subscribeConnectivity:function(){return n},subscribeConnectivityChanged:function(){return e},subscribeNotificationShown:function(){return c},subscribePrecacheStaticDependencies:function(){return u},subscribeToastShown:function(){return s}});var d="openmrs:connectivity-changed",p="openmrs:precache-static-dependencies",h="openmrs:notification-shown",v="openmrs:toast-shown"}(),o}())}}}))},2630:(t,e,n)=>{function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){a(t,e,n[e])}))}return t}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||p(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||p(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function p(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}System.register(["@openmrs/esm-api","@openmrs/esm-state"],(function(t,e){var r={},i={};return{setters:[function(t){r.getLoggedInUser=t.getLoggedInUser},function(t){i.createGlobalStore=t.createGlobalStore}],execute:function(){t(function(){var t={602:function(t){var e=function(t){"use strict";var e,n=function(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]},r=function(t,e,n,r){var u,a,s,l,f=e&&c(e.prototype,i)?e:i,d=Object.create(f.prototype),h=new p(r||[]);return d._invoke=(u=t,a=n,s=h,l=S,function(t,e){if(l===O)throw new Error("Generator is already running");if(l===j){if("throw"===t)throw e;return v()}for(s.method=t,s.arg=e;;){var n=s.delegate;if(n){var r=I(n,s);if(r){if(r===E)continue;return r}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(l===S)throw l=j,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);l=O;var i=o(u,a,s);if("normal"===i.type){if(l=s.done?j:x,i.arg===E)continue;return{value:i.arg,done:s.done}}"throw"===i.type&&(l=j,s.method="throw",s.arg=i.arg)}}),d},o=function(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}},i=function(){},u=function(){},a=function(){},s=function(t){["next","throw","return"].forEach((function(e){n(t,e,(function(t){return this._invoke(e,t)}))}))},l=function(t,e){function n(r,i,u,a){var c=o(t[r],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&g.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,u,a)}),(function(t){n("throw",t,u,a)})):e.resolve(l).then((function(t){s.value=t,u(s)}),(function(t){return n("throw",t,u,a)}))}a(c.arg)}var r;this._invoke=function(t,o){function i(){return new e((function(e,r){n(t,o,e,r)}))}return r=r?r.then(i,i):i()}},f=function(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)},d=function(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e},p=function(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(f,this),this.reset(!0)},h=function(t){if(t){var n=t[b];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(g.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}return{next:v}},v=function(){return{value:e,done:!0}},y=Object.prototype,g=y.hasOwnProperty,m="function"==typeof Symbol?Symbol:{},b=m.iterator||"@@iterator",w=m.asyncIterator||"@@asyncIterator",_=m.toStringTag||"@@toStringTag";try{n({},"")}catch(t){n=function(t,e,n){return t[e]=n}}t.wrap=r;var S="suspendedStart",x="suspendedYield",O="executing",j="completed",E={},C={};n(C,b,(function(){return this}));var k=Object.getPrototypeOf,A=k&&k(k(h([])));A&&A!==y&&g.call(A,b)&&(C=A);var P=a.prototype=i.prototype=Object.create(C);function I(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method))return E;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return E}var i=o(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,E;var u=i.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,E):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,E)}return u.prototype=a,n(P,"constructor",a),n(a,"constructor",u),u.displayName=n(a,_,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===u||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,n(t,_,"GeneratorFunction")),t.prototype=Object.create(P),t},t.awrap=function(t){return{__await:t}},s(l.prototype),n(l.prototype,w,(function(){return this})),t.AsyncIterator=l,t.async=function(e,n,o,i,u){void 0===u&&(u=Promise);var a=new l(r(e,n,o,i),u);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},s(P),n(P,_,"Generator"),n(P,b,(function(){return this})),n(P,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=h,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(d),!t)for(var n in this)"t"===n.charAt(0)&&g.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){var n=function(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o};if(this.done)throw t;for(var r=this,o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=g.call(i,"catchLoc"),c=g.call(i,"finallyLoc");if(a&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&g.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,E):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),E},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),d(n),E}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;d(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:h(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),E}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},968:function(t,e,n){var r=n(577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},577:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger},766:function(t){"use strict";t.exports=r},685:function(t){"use strict";t.exports=i}},p={};function h(e){var n=p[e];if(void 0!==n)return n.exports;var r=p[e]={exports:{}};return t[e](r,r.exports,h),r.exports}h.y=e,h.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return h.d(e,{a:e}),e},h.d=function(t,e){for(var n in e)h.o(e,n)&&!h.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},h.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),h.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},h.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;h.g.importScripts&&(t=h.g.location+"");var e=h.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),h.p=t}();var v={};return(0,h(968).s)(1),function(){"use strict";var t=function(t,e){return new Promise((function(n){var r=new MessageChannel;r.port1.onmessage=function(t){n(t.data)},t.postMessage(e,[r.port2])}))},e=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},r=function(t,n){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,n){if(t){if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=t[Symbol.iterator]()).next.bind(r)},i=function(t,e){var n=location.href;return new URL(t,n).href===new URL(e,n).href},p=function(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)},y=function(){},g=function(t,e){if(!e)return t&&t.then?t.then(y):Promise.resolve()},m=function(t,e){if(void 0!==Tn)return console.warn("The application's Service Worker has already been registered. The new service worker at ".concat(t," will not be registered.")),Tn;if(!("serviceWorker"in navigator))throw new Error("Registering the Service Worker is not possible due to missing browser capabilities.");var n=new In(t,e);return Tn=n.register().then((function(){return n.controlling.then((function(){return n}))}))},b=function(){return null!=Tn?Tn:Promise.resolve(void 0)},w=function(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)},S=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){w(i,r,o,u,a,"next",t)}function a(t){w(i,r,o,u,a,"throw",t)}u(void 0)}))}},x=function(t){return Nn.apply(this,arguments)},O=function(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)},j=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){O(i,r,o,u,a,"next",t)}function a(t){O(i,r,o,u,a,"throw",t)}u(void 0)}))}},E=function(){return Un.apply(this,arguments)},C=function(){return Hn.apply(this,arguments)},k=function(){return Fn.apply(this,arguments)},A=function(){return Vn.apply(this,arguments)},P=function(){return{current:zn,notAvailable:"unavailable"===zn,active:"on"===zn}},I=function(t){"unavailable"!==zn&&"unavailable"!==t&&(localStorage.setItem($n,"on"===t?"active":"disabled"),zn=t)},T=function(){return Kn.apply(this,arguments)},L=function(t,e){return"object"!=typeof e||Wn(e).forEach((function(n){t[n]=e[n]})),t},R=function(t,e){return Jn.call(t,e)},M=function(t,e){"function"==typeof e&&(e=e(Gn(t))),("undefined"==typeof Reflect?Wn:Reflect.ownKeys)(e).forEach((function(n){D(t,n,e[n])}))},D=function(t,e,n,r){Yn(t,e,L(n&&R(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))},B=function(t){return{from:function(e){return t.prototype=Object.create(e.prototype),D(t.prototype,"constructor",t),{extend:M.bind(null,t.prototype)}}}},N=function(t,e,n){return tr.call(t,e,n)},U=function(t,e){return e(t)},H=function(t){if(!t)throw new Error("Assertion Failed")},F=function(t){qn.setImmediate?setImmediate(t):setTimeout(t,0)},V=function(t,e){return t.reduce((function(t,n,r){var o=e(n,r);return o&&(t[o[0]]=o[1]),t}),{})},$=function(t){var e={};for(var n in t)R(t,n)&&(e[n]=t[n]);return e},z=function(t){return rr.apply([],t)},K=function(t){ur="undefined"!=typeof WeakMap&&new WeakMap;var e=ar(t);return ur=null,e},q=function(t){return cr.call(t).slice(8,-1)},W=function(t){var e,n,r,o;if(1===arguments.length){if(Zn(t))return t.slice();if(this===fr&&"string"==typeof t)return[t];if(o=lr(t)){for(n=[];!(r=o.next()).done;)n.push(r.value);return n}if(null==t)return[t];if("number"==typeof(e=t.length)){for(n=new Array(e);e--;)n[e]=t[e];return n}return[t]}for(e=arguments.length,n=new Array(e);e--;)n[e]=arguments[e];return n},Z=function(t,e){pr=t,hr=e},G=function(t,e){var n=t.stack;return n?(e=e||0,0===n.indexOf(t.name)&&(e+=(t.name+t.message).split("\n").length),n.split("\n").slice(e).filter(hr).map((function(t){return"\n"+t})).join("")):""},J=function(t,e){this._e=yr(),this.name=t,this.message=e},Y=function(t,e){return t+". Errors: "+Object.keys(e).map((function(t){return e[t].toString()})).filter((function(t,e,n){return n.indexOf(t)===e})).join("\n")},Q=function(t,e,n,r){this._e=yr(),this.failures=e,this.failedKeys=r,this.successCount=n,this.message=Y(t,e)},X=function(t,e){this._e=yr(),this.name="BulkError",this.failures=Object.keys(e).map((function(t){return e[t]})),this.failuresByPos=e,this.message=Y(t,e)},tt=function(){},et=function(t){return t},nt=function(t,e){return null==t||t===et?e:function(n){return e(t(n))}},rt=function(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}},ot=function(t,e){return t===tt?e:function(){var n=t.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var i=e.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?rt(r,this.onsuccess):r),o&&(this.onerror=this.onerror?rt(o,this.onerror):o),void 0!==i?i:n}},it=function(t,e){return t===tt?e:function(){t.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,e.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?rt(n,this.onsuccess):n),r&&(this.onerror=this.onerror?rt(r,this.onerror):r)}},ut=function(t,e){return t===tt?e:function(n){var r=t.apply(this,arguments);L(n,r);var o=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var u=e.apply(this,arguments);return o&&(this.onsuccess=this.onsuccess?rt(o,this.onsuccess):o),i&&(this.onerror=this.onerror?rt(i,this.onerror):i),void 0===r?void 0===u?void 0:u:L(r,u)}},at=function(t,e){return t===tt?e:function(){return!1!==e.apply(this,arguments)&&t.apply(this,arguments)}},ct=function(t,e){return t===tt?e:function(){var n=t.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,o=arguments.length,i=new Array(o);o--;)i[o]=arguments[o];return n.then((function(){return e.apply(r,i)}))}return e.apply(this,arguments)}},st=function(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=tt,this._lib=!1;var e=this._PSD=$r;if(pr&&(this._stackHolder=yr(),this._prev=null,this._numPrev=0),"function"!=typeof t){if(t!==jr)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&ft(this,this._value))}this._state=null,this._value=null,++e.ref,Zr(this,t)},lt=function(t,e,n,r,o){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.resolve=n,this.reject=r,this.psd=o},ft=function(t,e){if(Ur.push(e),null===t._state){var n=t._lib&>();e=Fr(e),t._state=!1,t._value=e,pr&&null!==e&&"object"==typeof e&&!e._promise&&function(n,r,o){try{(function(){var n=Xn(e,"stack");e._promise=t,D(e,"stack",{get:function(){return Lr?n&&(n.get?n.get.apply(e):n.value):t.stack}})}).apply(null,void 0)}catch(t){}}(),r=t,Nr.some((function(t){return t._value===r._value}))||Nr.push(r),dt(t),n&&mt()}var r},dt=function(t){var e=t._listeners;t._listeners=[];for(var n=0,r=e.length;n<r;++n)pt(t,e[n]);var o=t._PSD;--o.ref||o.finalize(),0===Kr&&(++Kr,Mr((function(){0==--Kr&&bt()}),[]))},pt=function(t,e){if(null!==t._state){var n=t._state?e.onFulfilled:e.onRejected;if(null===n)return(t._state?e.resolve:e.reject)(t._value);++e.psd.ref,++Kr,Mr(ht,[n,t,e])}else t._listeners.push(e)},ht=function(t,e,n){try{Hr=e;var r,o=e._value;e._state?r=t(o):(Ur.length&&(Ur=[]),r=t(o),-1===Ur.indexOf(o)&&function(t){for(var e=Nr.length;e;)if(Nr[--e]._value===t._value)return void Nr.splice(e,1)}(e)),n.resolve(r)}catch(t){n.reject(t)}finally{Hr=null,0==--Kr&&bt(),--n.psd.ref||n.psd.finalize()}},vt=function(t,e){var n=e?e._numPrev+1:0;n<100&&(t._prev=e,t._numPrev=n)},yt=function(){gt()&&mt()},gt=function(){var t=Dr;return Dr=!1,Br=!1,t},mt=function(){var t,e,n;do{for(;zr.length>0;)for(t=zr,zr=[],n=t.length,e=0;e<n;++e){var r=t[e];r[0].apply(null,r[1])}}while(zr.length>0);Dr=!0,Br=!0},bt=function(){var t=Nr;Nr=[],t.forEach((function(t){t._PSD.onunhandled.call(null,t._value,t)}));for(var e=qr.slice(0),n=e.length;n;)e[--n]()},wt=function(t){return new st(jr,!1,t)},_t=function(t,e){var n=$r;return function(){var r=gt(),o=$r;try{return kt(n,!0),t.apply(this,arguments)}catch(t){e&&e(t)}finally{kt(o,!1),r&&mt()}}},St=function(t,e,n,r){var o=$r,i=Object.create(o);i.parent=o,i.ref=0,i.global=!1,i.id=++eo;var u=Vr.env;i.env=Tr?{Promise:st,PromiseProp:{value:st,configurable:!0,writable:!0},all:st.all,race:st.race,allSettled:st.allSettled,any:st.any,resolve:st.resolve,reject:st.reject,nthen:Lt(u.nthen,i),gthen:Lt(u.gthen,i)}:{},e&&L(i,e),++o.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var a=Pt(i,t,n,r);return 0===i.ref&&i.finalize(),a},xt=function(){return Jr.id||(Jr.id=++Yr),++Jr.awaits,Jr.echoes+=100,Jr.id},Ot=function(){return!!Jr.awaits&&(0==--Jr.awaits&&(Jr.id=0),Jr.echoes=100*Jr.awaits,!0)},jt=function(t){return Jr.echoes&&t&&t.constructor===Ir?(xt(),t.then((function(t){return Ot(),t}),(function(t){return Ot(),no(t)}))):t},Et=function(t){++to,Jr.echoes&&0!=--Jr.echoes||(Jr.echoes=Jr.id=0),Qr.push($r),kt(t,!0)},Ct=function(){var t=Qr[Qr.length-1];Qr.pop(),kt(t,!1)},kt=function(t,e){var n=$r;if((e?!Jr.echoes||Xr++&&t===$r:!Xr||--Xr&&t===$r)||It(e?Et.bind(null,t):Ct),t!==$r&&($r=t,n===Vr&&(Vr.env=At()),Tr)){var r=Vr.env.Promise,o=t.env;kr.then=o.nthen,r.prototype.then=o.gthen,(n.global||t.global)&&(Object.defineProperty(qn,"Promise",o.PromiseProp),r.all=o.all,r.race=o.race,r.resolve=o.resolve,r.reject=o.reject,o.allSettled&&(r.allSettled=o.allSettled),o.any&&(r.any=o.any))}},At=function(){var t=qn.Promise;return Tr?{Promise:t,PromiseProp:Object.getOwnPropertyDescriptor(qn,"Promise"),all:t.all,race:t.race,allSettled:t.allSettled,any:t.any,resolve:t.resolve,reject:t.reject,nthen:kr.then,gthen:t.prototype.then}:{}},Pt=function(t,e,n,r,o){var i=$r;try{return kt(t,!0),e(n,r,o)}finally{kt(i,!1)}},It=function(t){Pr.call(Cr,t)},Tt=function(t,e,n,r){return"function"!=typeof t?t:function(){var o=$r;n&&xt(),kt(e,!0);try{return t.apply(this,arguments)}finally{kt(o,!1),r&&It(Ot)}}},Lt=function(t,e){return function(n,r){return t.call(this,Tt(n,e),Tt(r,e))}},Rt=function(t,e){var n;try{n=e.onuncatched(t)}catch(t){}if(!1!==n)try{var r,o={promise:e,reason:t};if(qn.document&&document.createEvent?((r=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),L(r,o)):qn.CustomEvent&&L(r=new CustomEvent("unhandledrejection",{detail:o}),o),r&&qn.dispatchEvent&&(dispatchEvent(r),!qn.PromiseRejectionEvent&&qn.onunhandledrejection))try{qn.onunhandledrejection(r)}catch(t){}pr&&r&&!r.defaultPrevented&&console.warn("Unhandled rejection: ".concat(t.stack||t))}catch(t){}},Mt=function(t,e){return t?e?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:t:e},Dt=function(t){return"string"!=typeof t||/\./.test(t)?function(t){return t}:function(e){return void 0===e[t]&&t in e&&delete(e=K(e))[t],e}},Bt=function(t){var e={},n=function(n,r){if(r){for(var o=arguments.length,i=new Array(o-1);--o;)i[o-1]=arguments[o];return e[n].subscribe.apply(null,i),t}if("string"==typeof n)return e[n]};n.addEventType=i;for(var r=1,o=arguments.length;r<o;++r)i(arguments[r]);return n;function i(t,r,o){if("object"==typeof t)return u(t);r||(r=at),o||(o=tt);var i={subscribers:[],fire:o,subscribe:function(t){-1===i.subscribers.indexOf(t)&&(i.subscribers.push(t),i.fire=r(i.fire,t))},unsubscribe:function(t){i.subscribers=i.subscribers.filter((function(e){return e!==t})),i.fire=i.subscribers.reduce(r,o)}};return e[t]=n[t]=i,i}function u(t){Wn(t).forEach((function(e){var n=t[e];if(Zn(n))i(e,t[e][0],t[e][1]);else{if("asap"!==n)throw new Sr.InvalidArgument("Invalid event config");var r=i(e,et,(function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];r.subscribers.forEach((function(t){F((function(){t.apply(null,e)}))}))}))}}))}},Nt=function(t,e){return B(e).from({prototype:t}),e},Ut=function(t,e){return!(t.filter||t.algorithm||t.or)&&(e?t.justLimit:!t.replayFilter)},Ht=function(t,e){t.filter=Mt(t.filter,e)},Ft=function(t,e,n){var r=t.replayFilter;t.replayFilter=r?function(){return Mt(r(),e())}:e,t.justLimit=n&&!r},Vt=function(t,e){if(t.isPrimKey)return e.primaryKey;var n=e.getIndexByKeyPath(t.index);if(!n)throw new Sr.Schema("KeyPath "+t.index+" on object store "+e.name+" is not indexed");return n},$t=function(t,e,n){var r=Vt(t,e.schema);return e.openCursor({trans:n,values:!t.keysOnly,reverse:"prev"===t.dir,unique:!!t.unique,query:{index:r,range:t.range}})},zt=function(t,e,n,r){var o=t.replayFilter?Mt(t.filter,t.replayFilter()):t.filter;if(t.or){var i={},u=function(t,n,r){if(!o||o(n,r,(function(t){return n.stop(t)}),(function(t){return n.fail(t)}))){var u=n.primaryKey,a=""+u;"[object ArrayBuffer]"===a&&(a=""+new Uint8Array(u)),R(i,a)||(i[a]=!0,e(t,n,r))}};return Promise.all([t.or._iterate(u,n),Kt($t(t,r,n),t.algorithm,u,!t.keysOnly&&t.valueMapper)])}return Kt($t(t,r,n),Mt(t.algorithm,o),e,!t.keysOnly&&t.valueMapper)},Kt=function(t,e,n,r){var o=_t(r?function(t,e,o){return n(r(t),e,o)}:n);return t.then((function(t){if(t)return t.start((function(){var n=function(){return t.continue()};e&&!e(t,(function(t){return n=t}),(function(e){t.stop(e),n=tt}),(function(e){t.fail(e),n=tt}))||o(t.value,t,(function(t){return n=t})),n()}))}))},qt=function(t){var e=void 0===t?"undefined":d(t);if("object"!==e)return e;if(ArrayBuffer.isView(t))return"binary";var n=q(t);return"ArrayBuffer"===n?"binary":n},Wt=function(t){return c(t,Uint8Array)?t:ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(t)},Zt=function(t,e){return t<e?-1:t===e?0:1},Gt=function(t,e){return t>e?-1:t===e?0:1},Jt=function(t,e,n){var r=c(t,go)?new t.Collection(t):t;return r._ctx.error=n?new n(e):new TypeError(e),r},Yt=function(t){return new t.Collection(t,(function(){return ee("")})).limit(0)},Qt=function(t,e,n,r,o,i){for(var u=Math.min(t.length,r.length),a=-1,c=0;c<u;++c){var s=e[c];if(s!==r[c])return o(t[c],n[c])<0?t.substr(0,c)+n[c]+n.substr(c+1):o(t[c],r[c])<0?t.substr(0,c)+r[c]+n.substr(c+1):a>=0?t.substr(0,a)+e[a]+n.substr(a+1):null;o(t[c],s)<0&&(a=c)}return u<r.length&&"next"===i?t+n.substr(t.length):u<t.length&&"prev"===i?t.substr(0,n.length):a<0?null:t.substr(0,a)+r[a]+n.substr(a+1)},Xt=function(t,e,n,r){var o,i,u,a,c,s,l,f=n.length;if(!n.every((function(t){return"string"==typeof t})))return Jt(t,"String expected.");function d(t){o="next"===t?function(t){return t.toUpperCase()}:function(t){return t.toLowerCase()},i="next"===t?function(t){return t.toLowerCase()}:function(t){return t.toUpperCase()},u="next"===t?Zt:Gt;var e=n.map((function(t){return{lower:i(t),upper:o(t)}})).sort((function(t,e){return u(t.lower,e.lower)}));a=e.map((function(t){return t.upper})),c=e.map((function(t){return t.lower})),s=t,l="next"===t?"":r}d("next");var p=new t.Collection(t,(function(){return te(a[0],c[f-1]+r)}));p._ondirectionchange=function(t){d(t)};var h=0;return p._addAlgorithm((function(t,n,r){var o=t.key;if("string"!=typeof o)return!1;var d=i(o);if(e(d,c,h))return!0;for(var p=null,v=h;v<f;++v){var y=Qt(o,d,a[v],c[v],u,s);null===y&&null===p?h=v+1:(null===p||u(p,y)>0)&&(p=y)}return n(null!==p?function(){t.continue(p+l)}:r),!1})),p},te=function(t,e,n,r){return{type:2,lower:t,upper:e,lowerOpen:n,upperOpen:r}},ee=function(t){return{type:1,lower:t,upper:t}},ne=function(t){return _t((function(e){return re(e),t(e.target.error),!1}))},re=function(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault()},oe=function(t,e,n,r,o,i,u){return{name:t,keyPath:e,unique:n,multi:r,auto:o,compound:i,src:(n&&!u?"&":"")+(r?"*":"")+(o?"++":"")+ie(e)}},ie=function(t){return"string"==typeof t?t:t?"["+[].join.call(t,"+")+"]":""},ue=function(t,e,n){return{name:t,primKey:e,indexes:n,mappedClass:null,idxByName:V(n,(function(t){return[t.name,t]}))}},ae=function(t){return null==t?function(){}:"string"==typeof t?1===(e=t).split(".").length?function(t){return t[e]}:function(t){return er(t,e)}:function(e){return er(e,t)};var e},ce=function(t){return[].slice.call(t)},se=function(t){return null==t?":id":"string"==typeof t?t:"[".concat(t.join("+"),"]")},le=function(t,e){var n,r,o,i,u,a,f=t._novip,d=e.db,p=(n=f._middlewares,r=d,i=e,a=(o=f._deps).IDBKeyRange,o.indexedDB,u=function(t,e,n){function r(t){if(3===t.type)return null;if(4===t.type)throw new Error("Cannot convert never type to IDBKeyRange");var n=t.lower,r=t.upper,o=t.lowerOpen,i=t.upperOpen;return void 0===n?void 0===r?null:e.upperBound(r,!!i):void 0===r?e.lowerBound(n,!!o):e.bound(n,r,!!o,!!i)}var o,i,u,a=(i=n,u=ce((o=t).objectStoreNames),{schema:{name:o.name,tables:u.map((function(t){return i.objectStore(t)})).map((function(t){var e=t.keyPath,n=t.autoIncrement,r=Zn(e),o=null==e,i={},u={name:t.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:o,compound:r,keyPath:e,autoIncrement:n,unique:!0,extractKey:ae(e)},indexes:ce(t.indexNames).map((function(e){return t.index(e)})).map((function(t){var e=t.name,n=t.unique,r=t.multiEntry,o=t.keyPath,u={name:e,compound:Zn(o),keyPath:o,unique:n,multiEntry:r,extractKey:ae(o)};return i[se(o)]=u,u})),getIndexByKeyPath:function(t){return i[se(t)]}};return i[":id"]=u.primaryKey,null!=e&&(i[se(e)]=u.primaryKey),u}))},hasGetAll:u.length>0&&"getAll"in i.objectStore(u[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),c=a.schema,s=a.hasGetAll,f=c.tables.map((function(t){return{name:o=(e=t).name,schema:e,mutate:function(t){var e=t.trans,n=t.type,i=t.keys,u=t.values,a=t.range;return new Promise((function(t,c){t=_t(t);var s=e.objectStore(o),f=null==s.keyPath,d="put"===n||"add"===n;if(!d&&"delete"!==n&&"deleteRange"!==n)throw new Error("Invalid operation type: "+n);var p,h=(i||u||{length:1}).length;if(i&&u&&i.length!==u.length)throw new Error("Given keys array must have same length as given values array.");if(0===h)return t({numFailures:0,failures:{},results:[],lastResult:void 0});var v=[],y=[],g=0,m=function(t){++g,re(t)};if("deleteRange"===n){if(4===a.type)return t({numFailures:g,failures:y,results:[],lastResult:void 0});3===a.type?v.push(p=s.clear()):v.push(p=s.delete(r(a)))}else{var b=l(d?f?[u,i]:[u,null]:[i,null],2),w=b[0],_=b[1];if(d)for(var S=0;S<h;++S)v.push(p=_&&void 0!==_[S]?s[n](w[S],_[S]):s[n](w[S])),p.onerror=m;else for(var x=0;x<h;++x)v.push(p=s[n](w[x])),p.onerror=m}var O=function(e){var r=e.target.result;v.forEach((function(t,e){return null!=t.error&&(y[e]=t.error)})),t({numFailures:g,failures:y,results:"delete"===n?i:v.map((function(t){return t.result})),lastResult:r})};p.onerror=function(t){m(t),O(t)},p.onsuccess=O}))},getMany:function(t){var e=t.trans,n=t.keys;return new Promise((function(t,r){t=_t(t);for(var i,u=e.objectStore(o),a=n.length,c=new Array(a),s=0,l=0,f=function(e){var n=e.target;c[n._pos]=n.result,++l===s&&t(c)},d=ne(r),p=0;p<a;++p)null!=n[p]&&((i=u.get(n[p]))._pos=p,i.onsuccess=f,i.onerror=d,++s);0===s&&t(c)}))},get:function(t){var e=t.trans,n=t.key;return new Promise((function(t,r){t=_t(t);var i=e.objectStore(o).get(n);i.onsuccess=function(e){return t(e.target.result)},i.onerror=ne(r)}))},query:(n=s,function(t){return new Promise((function(e,i){e=_t(e);var u=t.trans,a=t.values,c=t.limit,s=t.query,l=c===1/0?void 0:c,f=s.index,d=s.range,p=u.objectStore(o),h=f.isPrimaryKey?p:p.index(f.name),v=r(d);if(0===c)return e({result:[]});if(n){var y=a?h.getAll(v,l):h.getAllKeys(v,l);y.onsuccess=function(t){return e({result:t.target.result})},y.onerror=ne(i)}else{var g=0,m=a||!("openKeyCursor"in h)?h.openCursor(v):h.openKeyCursor(v),b=[];m.onsuccess=function(t){var n=m.result;return n?(b.push(a?n.value:n.primaryKey),++g===c?e({result:b}):void n.continue()):e({result:b})},m.onerror=ne(i)}}))}),openCursor:function(t){var e=t.trans,n=t.values,i=t.query,u=t.reverse,a=t.unique;return new Promise((function(t,c){t=_t(t);var s=i.index,l=i.range,f=e.objectStore(o),d=s.isPrimaryKey?f:f.index(s.name),p=u?a?"prevunique":"prev":a?"nextunique":"next",h=n||!("openKeyCursor"in d)?d.openCursor(r(l),p):d.openKeyCursor(r(l),p);h.onerror=ne(c),h.onsuccess=_t((function(n){var r=h.result;if(r){r.___id=++_o,r.done=!1;var o=r.continue.bind(r),i=r.continuePrimaryKey;i&&(i=i.bind(r));var u=r.advance.bind(r),a=function(){throw new Error("Cursor not stopped")};r.trans=e,r.stop=r.continue=r.continuePrimaryKey=r.advance=function(){throw new Error("Cursor not started")},r.fail=_t(c),r.next=function(){var t=this,e=1;return this.start((function(){return e--?t.continue():t.stop()})).then((function(){return t}))},r.start=function(t){var e=new Promise((function(t,e){t=_t(t),h.onerror=ne(e),r.fail=e,r.stop=function(e){r.stop=r.continue=r.continuePrimaryKey=r.advance=a,t(e)}})),n=function(){if(h.result)try{t()}catch(t){r.fail(t)}else r.done=!0,r.start=function(){throw new Error("Cursor behind last entry")},r.stop()};return h.onsuccess=_t((function(t){h.onsuccess=n,n()})),r.continue=o,r.continuePrimaryKey=i,r.advance=u,n(),e},t(r)}else t(null)}),c)}))},count:function(t){var e=t.query,n=t.trans,i=e.index,u=e.range;return new Promise((function(t,e){var a=n.objectStore(o),c=i.isPrimaryKey?a:a.index(i.name),s=r(u),l=s?c.count(s):c.count();l.onsuccess=_t((function(e){return t(e.target.result)})),l.onerror=ne(e)}))}};var e,n,o})),d={};return f.forEach((function(t){return d[t.name]=t})),{stack:"dbcore",transaction:t.transaction.bind(t),table:function(t){if(!d[t])throw new Error("Table '".concat(t,"' not found"));return d[t]},MIN_KEY:-1/0,MAX_KEY:wo(e),schema:c}}(r,a,i),{dbcore:n.dbcore.reduce((function(t,e){return s({},t,(0,e.create)(t))}),u)});f.core=p.dbcore,f.tables.forEach((function(t){var e=t.name;f.core.schema.tables.some((function(t){return t.name===e}))&&(t.core=f.core.table(e),c(f[e],f.Table)&&(f[e].core=t.core))}))},fe=function(t,e,n,r){var o=t._novip;n.forEach((function(t){var n=r[t];e.forEach((function(e){var r=Xn(e,t);(!r||"value"in r&&void 0===r.value)&&(e===o.Transaction.prototype||c(e,o.Transaction)?D(e,t,{get:function(){return this.table(t)},set:function(e){Yn(this,t,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):e[t]=new o.Table(t,n))}))}))},de=function(t,e){var n=t._novip;e.forEach((function(t){for(var e in t)c(t[e],n.Table)&&delete t[e]}))},pe=function(t,e){return t._cfg.version-e._cfg.version},he=function(t,e){var n,r={del:[],add:[],change:[]};for(n in t)e[n]||r.del.push(n);for(n in e){var o=t[n],i=e[n];if(o){var u={name:n,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(o.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||o.primKey.auto!==i.primKey.auto&&!ao)u.recreate=!0,r.change.push(u);else{var a=o.idxByName,c=i.idxByName,s=void 0;for(s in a)c[s]||u.del.push(s);for(s in c){var l=a[s],f=c[s];l?l.src!==f.src&&u.change.push(f):u.add.push(f)}(u.del.length>0||u.add.length>0||u.change.length>0)&&r.change.push(u)}}else r.add.push([n,i])}return r},ve=function(t,e,n,r){var o=t.db.createObjectStore(e,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach((function(t){return ye(o,t)})),o},ye=function(t,e){t.createIndex(e.name,e.keyPath,{unique:e.unique,multiEntry:e.multi})},ge=function(t,e,n){var r={};return N(e.objectStoreNames,0).forEach((function(t){for(var e=n.objectStore(t),o=e.keyPath,i=oe(ie(o),o||"",!1,!1,!!e.autoIncrement,o&&"string"!=typeof o,!0),u=[],a=0;a<e.indexNames.length;++a){var c=e.index(e.indexNames[a]);o=c.keyPath;var s=oe(c.name,o,!!c.unique,!!c.multiEntry,!1,o&&"string"!=typeof o,!1);u.push(s)}r[t]=ue(t,i,u)})),r},me=function(t,e,n){for(var r=t._novip,o=n.db.objectStoreNames,i=0;i<o.length;++i){var u=o[i],a=n.objectStore(u);r._hasGetAll="getAll"in a;for(var s=0;s<a.indexNames.length;++s){var l=a.indexNames[s],f=a.index(l).keyPath,d="string"==typeof f?f:"["+N(f).join("+")+"]";if(e[u]){var p=e[u].idxByName[d];p&&(p.name=l,delete e[u].idxByName[d],e[u].idxByName[l]=p)}}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&qn.WorkerGlobalScope&&c(qn,qn.WorkerGlobalScope)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(r._hasGetAll=!1)},be=function(t,e){var n=t._dbNamesDB;return n||(n=t._dbNamesDB=new To("__dbnames",{addons:[],indexedDB:t,IDBKeyRange:e})).version(1).stores({dbnames:"name"}),n.table("dbnames")},we=function(t){return t&&"function"==typeof t.databases},_e=function(t){return St((function(){return $r.letThrough=!0,t()}))},Se=function(){var t;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(e){var n=function(){return indexedDB.databases().finally(e)};t=setInterval(n,100),n()})).finally((function(){return clearInterval(t)})):Promise.resolve()},xe=function(t){var e=function(e){return t.next(e)},n=o(e),r=o((function(e){return t.throw(e)}));function o(t){return function(e){var o=t(e),i=o.value;return o.done?i:i&&"function"==typeof i.then?i.then(n,r):Zn(i)?Promise.all(i).then(n,r):n(i)}}return o(e)()},Oe=function(t,e,n){var r=arguments.length;if(r<2)throw new Sr.InvalidArgument("Too few arguments");for(var o=new Array(r-1);--r;)o[r-1]=arguments[r];n=o.pop();var i=z(o);return[t,i,n]},je=function(t,e,n){for(var r=Zn(t)?t.slice():[t],o=0;o<n;++o)r.push(e);return r},Ee=function(t,e,n){try{if(!e)return null;if(e.keys.length<t.length)return null;for(var r=[],o=0,i=0;o<e.keys.length&&i<t.length;++o)0===ho(e.keys[o],t[i])&&(r.push(n?K(e.values[o]):e.values[o]),++i);return r.length===t.length?r:null}catch(t){return null}},Ce=function(t){return!("from"in t)},ke=function(t,e){Ce(e)||function t(e,n){var r=n.from,o=n.to,i=n.l,u=n.r;Ao(e,r,o),i&&t(e,i),u&&t(e,u)}(t,e)},Ae=function(t){var e=Ce(t)?null:{s:0,n:t};return{next:function(t){for(var n=arguments.length>0;e;)switch(e.s){case 0:if(e.s=1,n)for(;e.n.l&&ho(t,e.n.from)<0;)e={up:e,n:e.n.l,s:1};else for(;e.n.l;)e={up:e,n:e.n.l,s:1};case 1:if(e.s=2,!n||ho(t,e.n.to)<=0)return{value:e.n,done:!1};case 2:if(e.n.r){e.s=3,e={up:e,n:e.n.r,s:0};continue}case 3:e=e.up}return{done:!0}}}},Pe=function(t){var e,n,r=((null===(e=t.r)||void 0===e?void 0:e.d)||0)-((null===(n=t.l)||void 0===n?void 0:n.d)||0),o=r>1?"r":r<-1?"l":"";if(o){var i="r"===o?"l":"r",u=s({},t),a=t[o];t.from=a.from,t.to=a.to,t[o]=a[o],u[o]=a[i],t[i]=u,u.d=Ie(u)}t.d=Ie(t)},Ie=function(t){var e=t.r,n=t.l;return(e?n?Math.max(e.d,n.d):e.d:n?n.d:0)+1},Te=function(t,e){return Wn(e).forEach((function(n){ke(t[n]||(t[n]=new ko),e[n])})),t},Le=function(t){var e=Do;try{Do=!0,mo.storagemutated.fire(t)}finally{Do=e}},Re=function(t,e){return!e||"object"!==zo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e},Me=function(){return new Ko},De=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},Be=function(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)},Ne=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){Be(i,r,o,u,a,"next",t)}function a(t){Be(i,r,o,u,a,"throw",t)}u(void 0)}))}},Ue=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},He=function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){Ue(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t},Fe=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return De(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?De(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},Ve=function(){return Zo},$e=function(){return Go.apply(this,arguments)},ze=function(t,e,n,r){return Jo.apply(this,arguments)},Ke=function(){return Yo.apply(this,arguments)},qe=function(t,e,n,r){return Qo.apply(this,arguments)},We=function(t,e,n){return Xo.apply(this,arguments)},Ze=function(t,e){return ti.apply(this,arguments)},Ge=function(t,e){return ei.apply(this,arguments)},Je=function(t){return ni.apply(this,arguments)},Ye=function(t){return ri.apply(this,arguments)},Qe=function(t){return oi.apply(this,arguments)},Xe=function(t){var e;return!!(null===(e=Wo[t])||void 0===e?void 0:e.options.onBeginEditSyncItem)},tn=function(t){return ii.apply(this,arguments)},en=function(t){return ui.apply(this,arguments)},nn=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Wo[t]={type:t,dependsOn:e,process:n,options:r}},rn=function(){if(!$o&&!($o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $o(ai)},on=function(){return pi+di()},un=function(t){return t.startsWith(pi)},an=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},cn=function(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)},sn=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){cn(i,r,o,u,a,"next",t)}function a(t){cn(i,r,o,u,a,"throw",t)}u(void 0)}))}},ln=function(t){return function(t){if(Array.isArray(t))return an(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return an(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?an(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},fn=function(){return Object.values(hi)},dn=function(t){hi[t.id]&&console.warn('[setupDynamicOfflineDataHandler] Another second handler with the ID "'.concat(t.id,'" was registered. This handler will override the previous one. This could be unintended as the previous handler might run different flows than the newly registered one. If this is the case, ensure that you are setting up the handlers with different IDs.')),hi[t.id]=t},pn=function(t){return vi.apply(this,arguments)},hn=function(t,e){return yi.apply(this,arguments)},vn=function(t,e){return gi.apply(this,arguments)},yn=function(t,e,n){return mi.apply(this,arguments)},gn=function(t,e){return bi.apply(this,arguments)},mn=function(t,e,n){return wi.apply(this,arguments)},bn=function(t,e){return _i.apply(this,arguments)},wn=function(t,e,n){return Si.apply(this,arguments)},_n=function(){return xi.apply(this,arguments)},Sn=function(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)},xn=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){Sn(i,r,o,u,a,"next",t)}function a(t){Sn(i,r,o,u,a,"throw",t)}u(void 0)}))}},On=function(){return Cn(),Oi},jn=function(t,e){Cn(),dn({type:"patient",displayName:e.displayName,id:t,isSynced:function(){return Promise.resolve(!0)},sync:function(t,n){return e.onOfflinePatientAdded({patientUuid:t,signal:null!=n?n:(new AbortController).signal})}})},En=function(t){return ji.apply(this,arguments)},Cn=function(){console.warn("The offline patient API has been deprecated and will be removed in a future release. To prevent future crashes, the functions remain available for the moment, but any invocations should be migrated ASAP.")};h.r(v),h.d(v,{activateOfflineCapability:function(){return T},beginEditSynchronizationItem:function(){return tn},canBeginEditSynchronizationItemsOfType:function(){return Xe},deleteSynchronizationItem:function(){return en},generateOfflineUuid:function(){return on},getCurrentOfflineMode:function(){return P},getDynamicOfflineDataEntries:function(){return pn},getDynamicOfflineDataEntriesFor:function(){return hn},getDynamicOfflineDataHandlers:function(){return fn},getFullSynchronizationItems:function(){return Ye},getFullSynchronizationItemsFor:function(){return Ge},getOfflineDb:function(){return Me},getOfflinePatientDataStore:function(){return On},getOfflineSynchronizationStore:function(){return Ve},getOmrsServiceWorker:function(){return b},getSynchronizationItem:function(){return Qe},getSynchronizationItems:function(){return Je},getSynchronizationItemsFor:function(){return Ze},isOfflineUuid:function(){return un},messageOmrsServiceWorker:function(){return x},offlineUuidPrefix:function(){return pi},omrsOfflineCachingStrategyHttpHeaderName:function(){return Mn},omrsOfflineResponseBodyHttpHeaderName:function(){return Ln},omrsOfflineResponseStatusHttpHeaderName:function(){return Rn},putDynamicOfflineData:function(){return vn},putDynamicOfflineDataFor:function(){return yn},queueSynchronizationItem:function(){return We},queueSynchronizationItemFor:function(){return qe},registerOfflinePatientHandler:function(){return jn},registerOmrsServiceWorker:function(){return m},removeDynamicOfflineData:function(){return gn},removeDynamicOfflineDataFor:function(){return mn},runSynchronization:function(){return $e},setCurrentOfflineMode:function(){return I},setupDynamicOfflineDataHandler:function(){return dn},setupOfflineSync:function(){return nn},syncAllDynamicOfflineData:function(){return bn},syncDynamicOfflineData:function(){return wn},syncOfflinePatientData:function(){return En}});try{self["workbox:window:6.5.1"]&&_()}catch(t){}try{self["workbox:core:6.5.1"]&&_()}catch(t){}var kn=function(){var t=this;this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))},An=function(t,e){this.type=t,Object.assign(this,e)},Pn={type:"SKIP_WAITING"},In=function(e){var n,r,o=function(t,n){var r,o;return void 0===n&&(n={}),(r=e.call(this)||this).nn={},r.tn=0,r.rn=new kn,r.en=new kn,r.on=new kn,r.un=0,r.an=new Set,r.cn=function(){var t=r.fn,e=t.installing;r.tn>0||!i(e.scriptURL,r.sn.toString())||performance.now()>r.un+6e4?(r.vn=e,t.removeEventListener("updatefound",r.cn)):(r.hn=e,r.an.add(e),r.rn.resolve(e)),++r.tn,e.addEventListener("statechange",r.ln)},r.ln=function(t){var e=r.fn,n=t.target,o=n.state,i=n===r.vn,u={sw:n,isExternal:i,originalEvent:t};!i&&r.mn&&(u.isUpdate=!0),r.dispatchEvent(new An(o,u)),"installed"===o?r.wn=self.setTimeout((function(){"installed"===o&&e.waiting===n&&r.dispatchEvent(new An("waiting",u))}),200):"activating"===o&&(clearTimeout(r.wn),i||r.en.resolve(n))},r.dn=function(t){var e=r.hn,n=e!==navigator.serviceWorker.controller;r.dispatchEvent(new An("controlling",{isExternal:n,originalEvent:t,sw:e,isUpdate:r.mn})),n||r.on.resolve(e)},r.gn=(o=function(t){var e=t.data,n=t.ports,o=t.source;return p(r.getSW(),(function(){r.an.has(o)&&r.dispatchEvent(new An("message",{data:e,originalEvent:t,ports:n,sw:o}))}))},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];try{return Promise.resolve(o.apply(this,t))}catch(t){return Promise.reject(t)}}),r.sn=t,r.nn=n,navigator.serviceWorker.addEventListener("message",r.gn),r};r=e,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var u,a=o.prototype;return a.register=function(t){var e,n,r=(void 0===t?{}:t).immediate,o=void 0!==r&&r;try{var u=this;return e=function(){return u.mn=Boolean(navigator.serviceWorker.controller),u.yn=u.pn(),p(u.bn(),(function(t){u.fn=t,u.yn&&(u.hn=u.yn,u.en.resolve(u.yn),u.on.resolve(u.yn),u.yn.addEventListener("statechange",u.ln,{once:!0}));var e=u.fn.waiting;return e&&i(e.scriptURL,u.sn.toString())&&(u.hn=e,Promise.resolve().then((function(){u.dispatchEvent(new An("waiting",{sw:e,wasWaitingBeforeRegister:!0}))})).then((function(){}))),u.hn&&(u.rn.resolve(u.hn),u.an.add(u.hn)),u.fn.addEventListener("updatefound",u.cn),navigator.serviceWorker.addEventListener("controllerchange",u.dn),u.fn}))},(n=function(){if(!o&&"complete"!==document.readyState)return g(new Promise((function(t){return window.addEventListener("load",t)})))}())&&n.then?n.then(e):e()}catch(t){return Promise.reject(t)}},a.update=function(){try{return this.fn?g(this.fn.update()):void 0}catch(t){return Promise.reject(t)}},a.getSW=function(){return void 0!==this.hn?Promise.resolve(this.hn):this.rn.promise},a.messageSW=function(e){try{return p(this.getSW(),(function(n){return t(n,e)}))}catch(t){return Promise.reject(t)}},a.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&t(this.fn.waiting,Pn)},a.pn=function(){var t=navigator.serviceWorker.controller;return t&&i(t.scriptURL,this.sn.toString())?t:void 0},a.bn=function(){try{var t=this;return function(e,n){try{var r=p(navigator.serviceWorker.register(t.sn,t.nn),(function(e){return t.un=performance.now(),e}))}catch(t){return n(t)}return r&&r.then?r.then(void 0,n):r}(0,(function(t){throw t}))}catch(t){return Promise.reject(t)}},(u=[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(o.prototype,u),o}(function(){var t=function(){this.Pn=new Map},e=t.prototype;return e.addEventListener=function(t,e){this.Sn(t).add(e)},e.removeEventListener=function(t,e){this.Sn(t).delete(e)},e.dispatchEvent=function(t){t.target=this;for(var e,n=r(this.Sn(t.type));!(e=n()).done;)(0,e.value)(t)},e.Sn=function(t){return this.Pn.has(t)||this.Pn.set(t,new Set),this.Pn.get(t)},t}()),Tn=void 0,Ln="x-omrs-offline-response-body",Rn="x-omrs-offline-response-status",Mn="x-omrs-offline-caching-strategy",Dn=h(602),Bn=h.n(Dn);function Nn(){return(Nn=S(Bn().mark((function t(e){var n;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,b();case 2:if(!(n=t.sent)){t.next=9;break}return t.next=6,n.messageSW(e);case 6:t.t0=t.sent,t.next=10;break;case 9:t.t0={success:!1,result:void 0,error:"No service worker has been registered. This is typically the case when the application has been built without offline-related features."};case 10:return t.abrupt("return",t.t0);case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Un(){return(Un=j(Bn().mark((function t(){var e;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=window.sessionStorage,t.prev=1,e.setItem("someKeyHere","test"),e.removeItem("someKeyHere"),t.next=10;break;case 6:if(t.prev=6,t.t0=t.catch(1),t.t0.code!==DOMException.QUOTA_EXCEEDED_ERR||0!==e.length){t.next=10;break}return t.abrupt("return",!0);case 10:return t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t,null,[[1,6]])})))).apply(this,arguments)}function Hn(){return(Hn=j(Bn().mark((function t(){return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",!window.indexedDB);case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Fn(){return Fn=j(Bn().mark((function t(){return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){var e=indexedDB.open("test");e.onerror=function(){return t(!0)},e.onsuccess=function(){return t(!1)}})));case 1:case"end":return t.stop()}}),t)}))),Fn.apply(this,arguments)}function Vn(){return(Vn=j(Bn().mark((function t(){return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,k();case 2:if(t.t1=t.sent,t.t1){t.next=7;break}return t.next=6,C();case 6:t.t1=t.sent;case 7:if(t.t0=t.t1,t.t0){t.next=12;break}return t.next=11,E();case 11:t.t0=t.sent;case 12:return t.abrupt("return",t.t0);case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var $n="openmrs3:offline-mode",zn="unavailable";function Kn(){return(Kn=j(Bn().mark((function t(){return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,A();case 2:t.sent||(zn="active"===localStorage.getItem($n)?"on":"off"),navigator.onLine;case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var qn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,Wn=Object.keys,Zn=Array.isArray;"undefined"==typeof Promise||qn.Promise||(qn.Promise=Promise);var Gn=Object.getPrototypeOf,Jn={}.hasOwnProperty,Yn=Object.defineProperty,Qn=Object.getOwnPropertyDescriptor;function Xn(t,e){var n;return Qn(t,e)||(n=Gn(t))&&Xn(n,e)}var tr=[].slice;function er(t,e){if(R(t,e))return t[e];if(!e)return t;if("string"!=typeof e){for(var n=[],r=0,o=e.length;r<o;++r){var i=er(t,e[r]);n.push(i)}return n}var u=e.indexOf(".");if(-1!==u){var a=t[e.substr(0,u)];return void 0===a?void 0:er(a,e.substr(u+1))}}function nr(t,e,n){if(t&&void 0!==e&&(!("isFrozen"in Object)||!Object.isFrozen(t)))if("string"!=typeof e&&"length"in e){H("string"!=typeof n&&"length"in n);for(var r=0,o=e.length;r<o;++r)nr(t,e[r],n[r])}else{var i=e.indexOf(".");if(-1!==i){var u=e.substr(0,i),a=e.substr(i+1);if(""===a)void 0===n?Zn(t)&&!isNaN(parseInt(u))?t.splice(u,1):delete t[u]:t[u]=n;else{var c=t[u];c||(c=t[u]={}),nr(c,a,n)}}else void 0===n?Zn(t)&&!isNaN(parseInt(e))?t.splice(e,1):delete t[e]:t[e]=n}}var rr=[].concat,or="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(z([8,16,32,64].map((function(t){return["Int","Uint","Float"].map((function(e){return e+t+"Array"}))})))).filter((function(t){return qn[t]})),ir=or.map((function(t){return qn[t]}));V(or,(function(t){return[t,!0]}));var ur=null;function ar(t){if(!t||"object"!=typeof t)return t;var e=ur&&ur.get(t);if(e)return e;if(Zn(t)){e=[],ur&&ur.set(t,e);for(var n=0,r=t.length;n<r;++n)e.push(ar(t[n]))}else if(ir.indexOf(t.constructor)>=0)e=t;else{var o=Gn(t);for(var i in e=o===Object.prototype?{}:Object.create(o),ur&&ur.set(t,e),t)R(t,i)&&(e[i]=ar(t[i]))}return e}var cr={}.toString,sr="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",lr="symbol"==(void 0===sr?"undefined":d(sr))?function(t){var e;return null!=t&&(e=t[sr])&&e.apply(t)}:function(){return null},fr={},dr="undefined"!=typeof Symbol?function(t){return"AsyncFunction"===t[Symbol.toStringTag]}:function(){return!1},pr="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href),hr=function(){return!0},vr=!new Error("").stack;function yr(){if(vr)try{throw yr.arguments,new Error}catch(t){return t}return new Error}var gr=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],mr=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(gr),br={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};B(J).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+G(this._e,2))}},toString:function(){return this.name+": "+this.message}}),B(Q).from(J),B(X).from(J);var wr=mr.reduce((function(t,e){return t[e]=e+"Error",t}),{}),_r=J,Sr=mr.reduce((function(t,e){var n=function(t,n){this._e=yr(),this.name=r,t?"string"==typeof t?(this.message="".concat(t).concat(n?"\n "+n:""),this.inner=n||null):"object"==typeof t&&(this.message="".concat(t.name," ").concat(t.message),this.inner=t):(this.message=br[e]||r,this.inner=null)},r=e+"Error";return B(n).from(_r),t[e]=n,t}),{});Sr.Syntax=SyntaxError,Sr.Type=TypeError,Sr.Range=RangeError;var xr=gr.reduce((function(t,e){return t[e+"Error"]=Sr[e],t}),{}),Or=mr.reduce((function(t,e){return-1===["Syntax","Type","Range"].indexOf(e)&&(t[e+"Error"]=Sr[e]),t}),{});Or.ModifyError=Q,Or.DexieError=J,Or.BulkError=X;var jr={},Er=l("undefined"==typeof Promise?[]:function(){var t=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[t,Gn(t),t];var e=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[e,Gn(e),t]}(),3),Cr=Er[0],kr=Er[1],Ar=Er[2],Pr=kr&&kr.then,Ir=Cr&&Cr.constructor,Tr=!!Ar,Lr=!1,Rr=Ar?function(){Ar.then(yt)}:qn.setImmediate?setImmediate.bind(null,yt):qn.MutationObserver?function(){var t=document.createElement("div");new MutationObserver((function(){yt(),t=null})).observe(t,{attributes:!0}),t.setAttribute("i","1")}:function(){setTimeout(yt,0)},Mr=function(t,e){zr.push([t,e]),Br&&(Rr(),Br=!1)},Dr=!0,Br=!0,Nr=[],Ur=[],Hr=null,Fr=et,Vr={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Rt,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((function(t){try{Rt(t[0],t[1])}catch(t){}}))}},$r=Vr,zr=[],Kr=0,qr=[],Wr={get:function(){var t=function(t,r){var o=this,i=!e.global&&(e!==$r||n!==to),u=i&&!Ot(),a=new st((function(n,a){pt(o,new lt(Tt(t,e,i,u),Tt(r,e,i,u),n,a,e))}));return pr&&vt(a,this),a},e=$r,n=to;return t.prototype=jr,t},set:function(t){D(this,"then",t&&t.prototype===jr?Wr:{get:function(){return t},set:Wr.set})}};function Zr(t,e){try{e((function(e){if(null===t._state){if(e===t)throw new TypeError("A promise cannot be resolved with itself.");var n=t._lib&>();e&&"function"==typeof e.then?Zr(t,(function(t,n){c(e,st)?e._then(t,n):e.then(t,n)})):(t._state=!0,t._value=e,dt(t)),n&&mt()}}),ft.bind(null,t))}catch(e){ft(t,e)}}function Gr(t,e,n){if(e.length===n)return e;var r="";if(!1===t._state){var o,i,u=t._value;null!=u?(o=u.name||"Error",i=u.message||u,r=G(u,0)):(o=u,i=""),e.push(o+(i?": "+i:"")+r)}return pr&&((r=G(t._stackHolder,2))&&-1===e.indexOf(r)&&e.push(r),t._prev&&Gr(t._prev,e,n)),e}M(st.prototype,{then:Wr,_then:function(t,e){pt(this,new lt(null,null,t,e,$r))},catch:function(t){if(1===arguments.length)return this.then(null,t);var e=arguments[0],n=arguments[1];return"function"==typeof e?this.then(null,(function(t){return c(t,e)?n(t):wt(t)})):this.then(null,(function(t){return t&&t.name===e?n(t):wt(t)}))},finally:function(t){return this.then((function(e){return t(),e}),(function(e){return t(),wt(e)}))},stack:{get:function(){if(this._stack)return this._stack;try{Lr=!0;var t=Gr(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=t),t}finally{Lr=!1}}},timeout:function(t,e){var n=this;return t<1/0?new st((function(r,o){var i=setTimeout((function(){return o(new Sr.Timeout(e))}),t);n.then(r,o).finally(clearTimeout.bind(null,i))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&D(st.prototype,Symbol.toStringTag,"Dexie.Promise"),Vr.env=At(),M(st,{all:function(){var t=W.apply(null,arguments).map(jt);return new st((function(e,n){0===t.length&&e([]);var r=t.length;t.forEach((function(o,i){return st.resolve(o).then((function(n){t[i]=n,--r||e(t)}),n)}))}))},resolve:function(t){if(c(t,st))return t;if(t&&"function"==typeof t.then)return new st((function(e,n){t.then(e,n)}));var e=new st(jr,!0,t);return vt(e,Hr),e},reject:wt,race:function(){var t=W.apply(null,arguments).map(jt);return new st((function(e,n){t.map((function(t){return st.resolve(t).then(e,n)}))}))},PSD:{get:function(){return $r},set:function(t){return $r=t}},totalEchoes:{get:function(){return to}},newPSD:St,usePSD:Pt,scheduler:{get:function(){return Mr},set:function(t){Mr=t}},rejectionMapper:{get:function(){return Fr},set:function(t){Fr=t}},follow:function(t,e){return new st((function(n,r){return St((function(e,n){var r=$r;r.unhandleds=[],r.onunhandled=n,r.finalize=rt((function(){var t=this;qr.push((function r(){0===t.unhandleds.length?e():n(t.unhandleds[0]),qr.splice(qr.indexOf(r),1)})),++Kr,Mr((function(){0==--Kr&&bt()}),[])}),r.finalize),t()}),e,n,r)}))}}),Ir&&(Ir.allSettled&&D(st,"allSettled",(function(){var t=W.apply(null,arguments).map(jt);return new st((function(e){0===t.length&&e([]);var n=t.length,r=new Array(n);t.forEach((function(t,o){return st.resolve(t).then((function(t){return r[o]={status:"fulfilled",value:t}}),(function(t){return r[o]={status:"rejected",reason:t}})).then((function(){return--n||e(r)}))}))}))})),Ir.any&&"undefined"!=typeof AggregateError&&D(st,"any",(function(){var t=W.apply(null,arguments).map(jt);return new st((function(e,n){0===t.length&&n(new AggregateError([]));var r=t.length,o=new Array(r);t.forEach((function(t,i){return st.resolve(t).then((function(t){return e(t)}),(function(t){o[i]=t,--r||n(new AggregateError(o))}))}))}))})));var Jr={awaits:0,echoes:0,id:0},Yr=0,Qr=[],Xr=0,to=0,eo=0;-1===(""+Pr).indexOf("[native code]")&&(xt=Ot=tt);var no=st.reject;function ro(t,e,n,r){if(t.idbdb&&(t._state.openComplete||$r.letThrough||t._vip)){var o=t._createTransaction(e,n,t._dbSchema);try{o.create(),t._state.PR1398_maxLoop=3}catch(o){return o.name===wr.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then((function(){return ro(t,e,n,r)}))):no(o)}return o._promise(e,(function(t,e){return St((function(){return $r.trans=o,r(t,e,o)}))})).then((function(t){return o._completion.then((function(){return t}))}))}if(t._state.openComplete)return no(new Sr.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return no(new Sr.DatabaseClosed);t.open().catch(tt)}return t._state.dbReadyPromise.then((function(){return ro(t,e,n,r)}))}var oo=String.fromCharCode(65535),io="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",uo=[],ao="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),co=ao,so=ao,lo=function(t){return!/(dexie\.js|dexie\.min\.js)/.test(t)},fo={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1},po=function(){function t(){o(this,t)}return u(t,[{key:"_trans",value:function(t,e,n){var r=function(t,n,r){if(!r.schema[i])throw new Sr.NotFound("Table "+i+" not part of transaction");return e(r.idbtrans,r)},o=this._tx||$r.trans,i=this.name,u=gt();try{return o&&o.db===this.db?o===$r.trans?o._promise(t,r,n):St((function(){return o._promise(t,r,n)}),{trans:o,transless:$r.transless||$r}):ro(this.db,t,[this.name],r)}finally{u&&mt()}}},{key:"get",value:function(t,e){var n=this;return t&&t.constructor===Object?this.where(t).first(e):this._trans("readonly",(function(e){return n.core.get({trans:e,key:t}).then((function(t){return n.hook.reading.fire(t)}))})).then(e)}},{key:"where",value:function(t){var e=function(t,e){try{return 0===i.cmp(t,e)}catch(t){return!1}};if("string"==typeof t)return new this.db.WhereClause(this,t);if(Zn(t))return new this.db.WhereClause(this,"[".concat(t.join("+"),"]"));var n=Wn(t);if(1===n.length)return this.where(n[0]).equals(t[n[0]]);var r=this.schema.indexes.concat(this.schema.primKey).filter((function(t){return t.compound&&n.every((function(e){return t.keyPath.indexOf(e)>=0}))&&t.keyPath.every((function(t){return n.indexOf(t)>=0}))}))[0];if(r&&this.db._maxKey!==oo)return this.where(r.name).equals(r.keyPath.map((function(e){return t[e]})));!r&&pr&&console.warn("The query ".concat(JSON.stringify(t)," on ").concat(this.name," would benefit of a compound index [").concat(n.join("+"),"]"));var o=this.schema.idxByName,i=this.db._deps.indexedDB,u=l(n.reduce((function(n,r){var i=l(n,2),u=i[0],a=i[1],c=o[r],s=t[r];return[u||c,u||!c?Mt(a,c&&c.multi?function(t){var n=er(t,r);return Zn(n)&&n.some((function(t){return e(s,t)}))}:function(t){return e(s,er(t,r))}):a]}),[null,null]),2),a=u[0],c=u[1];return a?this.where(a.name).equals(t[a.keyPath]).filter(c):r?this.filter(c):this.where(n).equals("")}},{key:"filter",value:function(t){return this.toCollection().and(t)}},{key:"count",value:function(t){return this.toCollection().count(t)}},{key:"offset",value:function(t){return this.toCollection().offset(t)}},{key:"limit",value:function(t){return this.toCollection().limit(t)}},{key:"each",value:function(t){return this.toCollection().each(t)}},{key:"toArray",value:function(t){return this.toCollection().toArray(t)}},{key:"toCollection",value:function(){return new this.db.Collection(new this.db.WhereClause(this))}},{key:"orderBy",value:function(t){return new this.db.Collection(new this.db.WhereClause(this,Zn(t)?"[".concat(t.join("+"),"]"):t))}},{key:"reverse",value:function(){return this.toCollection().reverse()}},{key:"mapToClass",value:function(t){this.schema.mappedClass=t;var e=function(e){if(!e)return e;var n=Object.create(t.prototype);for(var r in e)if(R(e,r))try{n[r]=e[r]}catch(t){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=e,this.hook("reading",e),t}},{key:"defineClass",value:function(){return this.mapToClass((function(t){L(this,t)}))}},{key:"add",value:function(t,e){var n=this,r=this.schema.primKey,o=r.auto,i=r.keyPath,u=t;return i&&o&&(u=Dt(i)(t)),this._trans("readwrite",(function(t){return n.core.mutate({trans:t,type:"add",keys:null!=e?[e]:null,values:[u]})})).then((function(t){return t.numFailures?st.reject(t.failures[0]):t.lastResult})).then((function(e){if(i)try{nr(t,i,e)}catch(t){}return e}))}},{key:"update",value:function(t,e){if("object"!=typeof t||Zn(t))return this.where(":id").equals(t).modify(e);var n=er(t,this.schema.primKey.keyPath);if(void 0===n)return no(new Sr.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof e?Wn(e).forEach((function(n){nr(t,n,e[n])})):e(t,{value:t,primKey:n})}catch(t){}return this.where(":id").equals(n).modify(e)}},{key:"put",value:function(t,e){var n=this,r=this.schema.primKey,o=r.auto,i=r.keyPath,u=t;return i&&o&&(u=Dt(i)(t)),this._trans("readwrite",(function(t){return n.core.mutate({trans:t,type:"put",values:[u],keys:null!=e?[e]:null})})).then((function(t){return t.numFailures?st.reject(t.failures[0]):t.lastResult})).then((function(e){if(i)try{nr(t,i,e)}catch(t){}return e}))}},{key:"delete",value:function(t){var e=this;return this._trans("readwrite",(function(n){return e.core.mutate({trans:n,type:"delete",keys:[t]})})).then((function(t){return t.numFailures?st.reject(t.failures[0]):void 0}))}},{key:"clear",value:function(){var t=this;return this._trans("readwrite",(function(e){return t.core.mutate({trans:e,type:"deleteRange",range:fo})})).then((function(t){return t.numFailures?st.reject(t.failures[0]):void 0}))}},{key:"bulkGet",value:function(t){var e=this;return this._trans("readonly",(function(n){return e.core.getMany({keys:t,trans:n}).then((function(t){return t.map((function(t){return e.hook.reading.fire(t)}))}))}))}},{key:"bulkAdd",value:function(t,e,n){var r=this,o=Array.isArray(e)?e:void 0,i=(n=n||(o?void 0:e))?n.allKeys:void 0;return this._trans("readwrite",(function(e){var n=r,u=r.schema.primKey,a=u.auto,c=u.keyPath;if(c&&o)throw new Sr.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(o&&o.length!==t.length)throw new Sr.InvalidArgument("Arguments objects and keys must have the same length");var s=t.length,l=c&&a?t.map(Dt(c)):t;return r.core.mutate({trans:e,type:"add",keys:o,values:l,wantResults:i}).then((function(t){var e=t.numFailures,r=t.results,o=t.lastResult,u=t.failures;if(0===e)return i?r:o;throw new X("".concat(n.name,".bulkAdd(): ").concat(e," of ").concat(s," operations failed"),u)}))}))}},{key:"bulkPut",value:function(t,e,n){var r=this,o=Array.isArray(e)?e:void 0,i=(n=n||(o?void 0:e))?n.allKeys:void 0;return this._trans("readwrite",(function(e){var n=r,u=r.schema.primKey,a=u.auto,c=u.keyPath;if(c&&o)throw new Sr.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(o&&o.length!==t.length)throw new Sr.InvalidArgument("Arguments objects and keys must have the same length");var s=t.length,l=c&&a?t.map(Dt(c)):t;return r.core.mutate({trans:e,type:"put",keys:o,values:l,wantResults:i}).then((function(t){var e=t.numFailures,r=t.results,o=t.lastResult,u=t.failures;if(0===e)return i?r:o;throw new X("".concat(n.name,".bulkPut(): ").concat(e," of ").concat(s," operations failed"),u)}))}))}},{key:"bulkDelete",value:function(t){var e=this,n=t.length;return this._trans("readwrite",(function(n){return e.core.mutate({trans:n,type:"delete",keys:t})})).then((function(t){var r=t.numFailures,o=t.lastResult,i=t.failures;if(0===r)return o;throw new X("".concat(e.name,".bulkDelete(): ").concat(r," of ").concat(n," operations failed"),i)}))}}]),t}();function ho(t,e){try{var n=qt(t),r=qt(e);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return t>e?1:t<e?-1:0;case"binary":return function(t,e){for(var n=t.length,r=e.length,o=n<r?n:r,i=0;i<o;++i)if(t[i]!==e[i])return t[i]<e[i]?-1:1;return n===r?0:n<r?-1:1}(Wt(t),Wt(e));case"Array":return function(t,e){for(var n=t.length,r=e.length,o=n<r?n:r,i=0;i<o;++i){var u=ho(t[i],e[i]);if(0!==u)return u}return n===r?0:n<r?-1:1}(t,e)}}catch(t){}return NaN}var vo=function(){function t(){o(this,t)}return u(t,[{key:"_read",value:function(t,e){var n=this._ctx;return n.error?n.table._trans(null,no.bind(null,n.error)):n.table._trans("readonly",t).then(e)}},{key:"_write",value:function(t){var e=this._ctx;return e.error?e.table._trans(null,no.bind(null,e.error)):e.table._trans("readwrite",t,"locked")}},{key:"_addAlgorithm",value:function(t){var e=this._ctx;e.algorithm=Mt(e.algorithm,t)}},{key:"_iterate",value:function(t,e){return zt(this._ctx,t,e,this._ctx.table.core)}},{key:"clone",value:function(t){var e=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return t&&L(n,t),e._ctx=n,e}},{key:"raw",value:function(){return this._ctx.valueMapper=null,this}},{key:"each",value:function(t){var e=this._ctx;return this._read((function(n){return zt(e,t,n,e.table.core)}))}},{key:"count",value:function(t){var e=this;return this._read((function(t){var n=e._ctx,r=n.table.core;if(Ut(n,!0))return r.count({trans:t,query:{index:Vt(n,r.schema),range:n.range}}).then((function(t){return Math.min(t,n.limit)}));var o=0;return zt(n,(function(){return++o,!1}),t,r).then((function(){return o}))})).then(t)}},{key:"sortBy",value:function(t,e){var n=function(t,e){var n=u(t,i),r=u(e,i);return n<r?-a:n>r?a:0},r=t.split(".").reverse(),o=r[0],i=r.length-1;function u(t,e){return e?u(t[r[e]],e-1):t[o]}var a="next"===this._ctx.dir?1:-1;return this.toArray((function(t){return t.sort(n)})).then(e)}},{key:"toArray",value:function(t){var e=this;return this._read((function(t){var n=e._ctx;if("next"===n.dir&&Ut(n,!0)&&n.limit>0){var r=n.valueMapper,o=Vt(n,n.table.core.schema);return n.table.core.query({trans:t,limit:n.limit,values:!0,query:{index:o,range:n.range}}).then((function(t){var e=t.result;return r?e.map(r):e}))}var i=[];return zt(n,(function(t){return i.push(t)}),t,n.table.core).then((function(){return i}))}),t)}},{key:"offset",value:function(t){var e=this._ctx;return t<=0||(e.offset+=t,Ut(e)?Ft(e,(function(){var e=t;return function(t,n){return 0===e||(1===e?(--e,!1):(n((function(){t.advance(e),e=0})),!1))}})):Ft(e,(function(){var e=t;return function(){return--e<0}}))),this}},{key:"limit",value:function(t){return this._ctx.limit=Math.min(this._ctx.limit,t),Ft(this._ctx,(function(){var e=t;return function(t,n,r){return--e<=0&&n(r),e>=0}}),!0),this}},{key:"until",value:function(t,e){return Ht(this._ctx,(function(n,r,o){return!t(n.value)||(r(o),e)})),this}},{key:"first",value:function(t){return this.limit(1).toArray((function(t){return t[0]})).then(t)}},{key:"last",value:function(t){return this.reverse().first(t)}},{key:"filter",value:function(t){var e,n;return Ht(this._ctx,(function(e){return t(e.value)})),e=this._ctx,n=t,e.isMatch=Mt(e.isMatch,n),this}},{key:"and",value:function(t){return this.filter(t)}},{key:"or",value:function(t){return new this.db.WhereClause(this._ctx.table,t,this)}},{key:"reverse",value:function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}},{key:"desc",value:function(){return this.reverse()}},{key:"eachKey",value:function(t){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each((function(e,n){t(n.key,n)}))}},{key:"eachUniqueKey",value:function(t){return this._ctx.unique="unique",this.eachKey(t)}},{key:"eachPrimaryKey",value:function(t){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each((function(e,n){t(n.primaryKey,n)}))}},{key:"keys",value:function(t){var e=this._ctx;e.keysOnly=!e.isMatch;var n=[];return this.each((function(t,e){n.push(e.key)})).then((function(){return n})).then(t)}},{key:"primaryKeys",value:function(t){var e=this._ctx;if("next"===e.dir&&Ut(e,!0)&&e.limit>0)return this._read((function(t){var n=Vt(e,e.table.core.schema);return e.table.core.query({trans:t,values:!1,limit:e.limit,query:{index:n,range:e.range}})})).then((function(t){return t.result})).then(t);e.keysOnly=!e.isMatch;var n=[];return this.each((function(t,e){n.push(e.primaryKey)})).then((function(){return n})).then(t)}},{key:"uniqueKeys",value:function(t){return this._ctx.unique="unique",this.keys(t)}},{key:"firstKey",value:function(t){return this.limit(1).keys((function(t){return t[0]})).then(t)}},{key:"lastKey",value:function(t){return this.reverse().firstKey(t)}},{key:"distinct",value:function(){var t=this._ctx,e=t.index&&t.table.schema.idxByName[t.index];if(!e||!e.multi)return this;var n={};return Ht(this._ctx,(function(t){var e=t.primaryKey.toString(),r=R(n,e);return n[e]=!0,!r})),this}},{key:"modify",value:function(t){var e=this,n=this._ctx;return this._write((function(r){var o;if("function"==typeof t)o=t;else{var i=Wn(t),u=i.length;o=function(e){for(var n=!1,r=0;r<u;++r){var o=i[r],a=t[o];er(e,o)!==a&&(nr(e,o,a),n=!0)}return n}}var a=n.table.core,c=a.schema.primaryKey,s=c.outbound,l=c.extractKey,f=e.db._options.modifyChunkSize||200,d=[],p=0,h=[],v=function(t,e){var n=e.failures,r=e.numFailures;p+=t-r;var o=!0,i=!1,u=void 0;try{for(var a,c=Wn(n)[Symbol.iterator]();!(o=(a=c.next()).done);o=!0){var s=a.value;d.push(n[s])}}catch(t){i=!0,u=t}finally{try{o||null==c.return||c.return()}finally{if(i)throw u}}};return e.clone().primaryKeys().then((function(e){var i=function(u){var c=Math.min(f,e.length-u);return a.getMany({trans:r,keys:e.slice(u,u+c),cache:"immutable"}).then((function(d){for(var p=[],h=[],y=s?[]:null,g=[],m=0;m<c;++m){var b=d[m],w={value:K(b),primKey:e[u+m]};!1!==o.call(w,w.value,w)&&(null==w.value?g.push(e[u+m]):s||0===ho(l(b),l(w.value))?(h.push(w.value),s&&y.push(e[u+m])):(g.push(e[u+m]),p.push(w.value)))}var _=Ut(n)&&n.limit===1/0&&("function"!=typeof t||t===yo)&&{index:n.index,range:n.range};return Promise.resolve(p.length>0&&a.mutate({trans:r,type:"add",values:p}).then((function(t){for(var e in t.failures)g.splice(parseInt(e),1);v(p.length,t)}))).then((function(){return(h.length>0||_&&"object"==typeof t)&&a.mutate({trans:r,type:"put",keys:y,values:h,criteria:_,changeSpec:"function"!=typeof t&&t}).then((function(t){return v(h.length,t)}))})).then((function(){return(g.length>0||_&&t===yo)&&a.mutate({trans:r,type:"delete",keys:g,criteria:_}).then((function(t){return v(g.length,t)}))})).then((function(){return e.length>u+c&&i(u+f)}))}))};return i(0).then((function(){if(d.length>0)throw new Q("Error modifying one or more objects",d,p,h);return e.length}))}))}))}},{key:"delete",value:function(){var t=this._ctx,e=t.range;return Ut(t)&&(t.isPrimKey&&!so||3===e.type)?this._write((function(n){var r=t.table.core.schema.primaryKey,o=e;return t.table.core.count({trans:n,query:{index:r,range:o}}).then((function(e){return t.table.core.mutate({trans:n,type:"deleteRange",range:o}).then((function(t){var n=t.failures,r=(t.lastResult,t.results,t.numFailures);if(r)throw new Q("Could not delete some values",Object.keys(n).map((function(t){return n[t]})),e-r);return e-r}))}))})):this.modify(yo)}}]),t}(),yo=function(t,e){return e.value=null},go=function(){function t(){o(this,t)}return u(t,[{key:"Collection",get:function(){return this._ctx.table.db.Collection}},{key:"between",value:function(t,e,n,r){n=!1!==n,r=!0===r;try{return this._cmp(t,e)>0||0===this._cmp(t,e)&&(n||r)&&(!n||!r)?Yt(this):new this.Collection(this,(function(){return te(t,e,!n,!r)}))}catch(t){return Jt(this,io)}}},{key:"equals",value:function(t){return null==t?Jt(this,io):new this.Collection(this,(function(){return ee(t)}))}},{key:"above",value:function(t){return null==t?Jt(this,io):new this.Collection(this,(function(){return te(t,void 0,!0)}))}},{key:"aboveOrEqual",value:function(t){return null==t?Jt(this,io):new this.Collection(this,(function(){return te(t,void 0,!1)}))}},{key:"below",value:function(t){return null==t?Jt(this,io):new this.Collection(this,(function(){return te(void 0,t,!1,!0)}))}},{key:"belowOrEqual",value:function(t){return null==t?Jt(this,io):new this.Collection(this,(function(){return te(void 0,t)}))}},{key:"startsWith",value:function(t){return"string"!=typeof t?Jt(this,"String expected."):this.between(t,t+oo,!0,!0)}},{key:"startsWithIgnoreCase",value:function(t){return""===t?this.startsWith(t):Xt(this,(function(t,e){return 0===t.indexOf(e[0])}),[t],oo)}},{key:"equalsIgnoreCase",value:function(t){return Xt(this,(function(t,e){return t===e[0]}),[t],"")}},{key:"anyOfIgnoreCase",value:function(){var t=W.apply(fr,arguments);return 0===t.length?Yt(this):Xt(this,(function(t,e){return-1!==e.indexOf(t)}),t,"")}},{key:"startsWithAnyOfIgnoreCase",value:function(){var t=W.apply(fr,arguments);return 0===t.length?Yt(this):Xt(this,(function(t,e){return e.some((function(e){return 0===t.indexOf(e)}))}),t,oo)}},{key:"anyOf",value:function(){var t=this,e=W.apply(fr,arguments),n=this._cmp;try{e.sort(n)}catch(t){return Jt(this,io)}if(0===e.length)return Yt(this);var r=new this.Collection(this,(function(){return te(e[0],e[e.length-1])}));r._ondirectionchange=function(r){n="next"===r?t._ascending:t._descending,e.sort(n)};var o=0;return r._addAlgorithm((function(t,r,i){for(var u=t.key;n(u,e[o])>0;)if(++o===e.length)return r(i),!1;return 0===n(u,e[o])||(r((function(){t.continue(e[o])})),!1)})),r}},{key:"notEqual",value:function(t){return this.inAnyRange([[-1/0,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}},{key:"noneOf",value:function(){var t=W.apply(fr,arguments);if(0===t.length)return new this.Collection(this);try{t.sort(this._ascending)}catch(t){return Jt(this,io)}var e=t.reduce((function(t,e){return t?t.concat([[t[t.length-1][1],e]]):[[-1/0,e]]}),null);return e.push([t[t.length-1],this.db._maxKey]),this.inAnyRange(e,{includeLowers:!1,includeUppers:!1})}},{key:"inAnyRange",value:function(t,e){var n=this,r=function(t,e){return d(t[0],e[0])},o=this._cmp,i=this._ascending,u=this._descending,a=this._min,c=this._max;if(0===t.length)return Yt(this);if(!t.every((function(t){return void 0!==t[0]&&void 0!==t[1]&&i(t[0],t[1])<=0})))return Jt(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Sr.InvalidArgument);var s,l=!e||!1!==e.includeLowers,f=e&&!0===e.includeUppers,d=i;try{(s=t.reduce((function(t,e){for(var n=0,r=t.length;n<r;++n){var i=t[n];if(o(e[0],i[1])<0&&o(e[1],i[0])>0){i[0]=a(i[0],e[0]),i[1]=c(i[1],e[1]);break}}return n===r&&t.push(e),t}),[])).sort(r)}catch(t){return Jt(this,io)}var p=0,h=f?function(t){return i(t,s[p][1])>0}:function(t){return i(t,s[p][1])>=0},v=l?function(t){return u(t,s[p][0])>0}:function(t){return u(t,s[p][0])>=0},y=h,g=new this.Collection(this,(function(){return te(s[0][0],s[s.length-1][1],!l,!f)}));return g._ondirectionchange=function(t){"next"===t?(y=h,d=i):(y=v,d=u),s.sort(r)},g._addAlgorithm((function(t,e,r){for(var o=t.key;y(o);)if(++p===s.length)return e(r),!1;return!((h(u=o)||v(u))&&(0===n._cmp(o,s[p][1])||0===n._cmp(o,s[p][0])||e((function(){d===i?t.continue(s[p][0]):t.continue(s[p][1])})),1));var u})),g}},{key:"startsWithAnyOf",value:function(){var t=W.apply(fr,arguments);return t.every((function(t){return"string"==typeof t}))?0===t.length?Yt(this):this.inAnyRange(t.map((function(t){return[t,t+oo]}))):Jt(this,"startsWithAnyOf() only works with strings")}}]),t}(),mo=Bt(null,"storagemutated"),bo=function(){function t(){o(this,t)}return u(t,[{key:"_lock",value:function(){return H(!$r.global),++this._reculock,1!==this._reculock||$r.global||($r.lockOwnerFor=this),this}},{key:"_unlock",value:function(){if(H(!$r.global),0==--this._reculock)for($r.global||($r.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var t=this._blockedFuncs.shift();try{Pt(t[1],t[0])}catch(t){}}return this}},{key:"_locked",value:function(){return this._reculock&&$r.lockOwnerFor!==this}},{key:"create",value:function(t){var e=this;if(!this.mode)return this;var n=this.db.idbdb,r=this.db._state.dbOpenError;if(H(!this.idbtrans),!t&&!n)switch(r&&r.name){case"DatabaseClosedError":throw new Sr.DatabaseClosed(r);case"MissingAPIError":throw new Sr.MissingAPI(r.message,r);default:throw new Sr.OpenFailed(r)}if(!this.active)throw new Sr.TransactionInactive;return H(null===this._completion._state),(t=this.idbtrans=t||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):n.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=_t((function(n){re(n),e._reject(t.error)})),t.onabort=_t((function(n){re(n),e.active&&e._reject(new Sr.Abort(t.error)),e.active=!1,e.on("abort").fire(n)})),t.oncomplete=_t((function(){e.active=!1,e._resolve(),"mutatedParts"in t&&mo.storagemutated.fire(t.mutatedParts)})),this}},{key:"_promise",value:function(t,e,n){var r=this;if("readwrite"===t&&"readwrite"!==this.mode)return no(new Sr.ReadOnly("Transaction is readonly"));if(!this.active)return no(new Sr.TransactionInactive);if(this._locked())return new st((function(o,i){var u=r;r._blockedFuncs.push([function(){u._promise(t,e,n).then(o,i)},$r])}));if(n)return St((function(){var t=r,n=new st((function(n,r){t._lock();var o=e(n,r,t);o&&o.then&&o.then(n,r)}));return n.finally((function(){return t._unlock()})),n._lib=!0,n}));var o=new st((function(t,n){var o=e(t,n,r);o&&o.then&&o.then(t,n)}));return o._lib=!0,o}},{key:"_root",value:function(){return this.parent?this.parent._root():this}},{key:"waitFor",value:function(t){var e=this._root(),n=st.resolve(t);if(e._waitingFor)e._waitingFor=e._waitingFor.then((function(){return n}));else{e._waitingFor=n,e._waitingQueue=[];var r=e.idbtrans.objectStore(e.storeNames[0]);!function t(){for(++e._spinCount;e._waitingQueue.length;)e._waitingQueue.shift()();e._waitingFor&&(r.get(-1/0).onsuccess=t)}()}var o=e._waitingFor;return new st((function(t,r){n.then((function(n){return e._waitingQueue.push(_t(t.bind(null,n)))}),(function(t){return e._waitingQueue.push(_t(r.bind(null,t)))})).finally((function(){e._waitingFor===o&&(e._waitingFor=null)}))}))}},{key:"abort",value:function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Sr.Abort))}},{key:"table",value:function(t){var e=this._memoizedTables||(this._memoizedTables={});if(R(e,t))return e[t];var n=this.schema[t];if(!n)throw new Sr.NotFound("Table "+t+" not part of transaction");var r=new this.db.Table(t,n,this);return r.core=this.db.core.table(t),e[t]=r,r}}]),t}(),wo=function(t){try{return t.only([[]]),wo=function(){return[[]]},[[]]}catch(t){return wo=function(){return oo},oo}},_o=0,So=function(){function t(){o(this,t)}return u(t,[{key:"_parseStoresSpec",value:function(t,e){Wn(t).forEach((function(n){if(null!==t[n]){var r=t[n].split(",").map((function(t,e){var n=(t=t.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return oe(n,r||null,/\&/.test(t),/\*/.test(t),/\+\+/.test(t),Zn(r),0===e)})),o=r.shift();if(o.multi)throw new Sr.Schema("Primary key cannot be multi-valued");r.forEach((function(t){if(t.auto)throw new Sr.Schema("Only primary key can be marked as autoIncrement (++)");if(!t.keyPath)throw new Sr.Schema("Index must have a name and cannot be an empty string")})),e[n]=ue(n,o,r)}}))}},{key:"stores",value:function(t){var e=this.db;this._cfg.storesSource=this._cfg.storesSource?L(this._cfg.storesSource,t):t;var n=e._versions,r={},o={};return n.forEach((function(t){L(r,t._cfg.storesSource),o=t._cfg.dbschema={},t._parseStoresSpec(r,o)})),e._dbSchema=o,de(e,[e._allTables,e,e.Transaction.prototype]),fe(e,[e._allTables,e,e.Transaction.prototype,this._cfg.tables],Wn(o),o),e._storeNames=Wn(o),this}},{key:"upgrade",value:function(t){return this._cfg.contentUpgrade=ct(this._cfg.contentUpgrade||tt,t),this}}]),t}();function xo(t,e,n,r,o){return st.resolve().then((function(){var i=$r.transless||$r,u=t._createTransaction(e,n,t._dbSchema,r),a={trans:u,transless:i};if(r)u.idbtrans=r.idbtrans;else try{u.create(),t._state.PR1398_maxLoop=3}catch(r){return r.name===wr.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then((function(){return xo(t,e,n,null,o)}))):no(r)}var c,s=dr(o);s&&xt();var l=st.follow((function(){if(c=o.call(u,u))if(s){var t=Ot.bind(null,null);c.then(t,t)}else"function"==typeof c.next&&"function"==typeof c.throw&&(c=xe(c))}),a);return(c&&"function"==typeof c.then?st.resolve(c).then((function(t){return u.active?t:no(new Sr.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))})):l.then((function(){return c}))).then((function(t){return r&&u._resolve(),u._completion.then((function(){return t}))})).catch((function(t){return u._reject(t),no(t)}))}))}var Oo={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(t){return s({},t,{table:function(e){var n=function(e){var n,r,o=e.query.index;return o.isVirtual?s({},e,{query:{index:o,range:(n=e.query.range,r=o.keyTail,{type:1===n.type?2:n.type,lower:je(n.lower,n.lowerOpen?t.MAX_KEY:t.MIN_KEY,r),lowerOpen:!0,upper:je(n.upper,n.upperOpen?t.MIN_KEY:t.MAX_KEY,r),upperOpen:!0})}}):e},r=t.table(e),o=r.schema,i={},u=[];function a(t,e,n){var r=se(t),o=i[r]=i[r]||[],c=null==t?0:"string"==typeof t?1:t.length,l=e>0,f=s({},n,{isVirtual:l,keyTail:e,keyLength:c,extractKey:ae(t),unique:!l&&n.unique});return o.push(f),f.isPrimaryKey||u.push(f),c>1&&a(2===c?t[0]:t.slice(0,c-1),e+1,n),o.sort((function(t,e){return t.keyTail-e.keyTail})),f}var c=a(o.primaryKey.keyPath,0,o.primaryKey);i[":id"]=[c];var l=!0,f=!1,d=void 0;try{for(var p,h=o.indexes[Symbol.iterator]();!(l=(p=h.next()).done);l=!0){var v=p.value;a(v.keyPath,0,v)}}catch(t){f=!0,d=t}finally{try{l||null==h.return||h.return()}finally{if(f)throw d}}var y=s({},r,{schema:s({},o,{primaryKey:c,indexes:u,getIndexByKeyPath:function(t){var e=i[se(t)];return e&&e[0]}}),count:function(t){return r.count(n(t))},query:function(t){return r.query(n(t))},openCursor:function(e){var o=e.query.index,i=o.keyTail,u=o.isVirtual,a=o.keyLength;return u?r.openCursor(n(e)).then((function(n){return n&&(r=n,o=Object.create(r,{continue:{value:function(n){null!=n?r.continue(je(n,e.reverse?t.MAX_KEY:t.MIN_KEY,i)):e.unique?r.continue(r.key.slice(0,a).concat(e.reverse?t.MIN_KEY:t.MAX_KEY,i)):r.continue()}},continuePrimaryKey:{value:function(e,n){r.continuePrimaryKey(je(e,t.MAX_KEY,i),n)}},primaryKey:{get:function(){return r.primaryKey}},key:{get:function(){var t=r.key;return 1===a?t[0]:t.slice(0,a)}},value:{get:function(){return r.value}}}),o);var r,o})):r.openCursor(e)}});return y}})}};function jo(t,e,n,r){return n=n||{},r=r||"",Wn(t).forEach((function(o){if(R(e,o)){var i=t[o],u=e[o];if("object"==typeof i&&"object"==typeof u&&i&&u){var a=q(i);a!==q(u)?n[r+o]=e[o]:"Object"===a?jo(i,u,n,r+o+"."):i!==u&&(n[r+o]=e[o])}else i!==u&&(n[r+o]=e[o])}else n[r+o]=void 0})),Wn(e).forEach((function(o){R(t,o)||(n[r+o]=e[o])})),n}var Eo={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(t){return s({},t,{table:function(e){var n=t.table(e),r=n.schema.primaryKey,o=s({},n,{mutate:function(t){var o=function(t){var e,o,i=$r.trans,u=t.keys||(e=r,"delete"===(o=t).type?o.keys:o.keys||o.values.map(e.extractKey));if(!u)throw new Error("Keys missing");return"delete"!==(t="add"===t.type||"put"===t.type?s({},t,{keys:u}):s({},t)).type&&(t.values=f(t.values)),t.keys&&(t.keys=f(t.keys)),function(t,e,n){return"add"===e.type?Promise.resolve([]):t.getMany({trans:e.trans,keys:n,cache:"immutable"})}(n,t,u).then((function(e){var o=u.map((function(n,o){var u=e[o],s={onerror:null,onsuccess:null};if("delete"===t.type)a.fire.call(s,n,u,i);else if("add"===t.type||void 0===u){var f=c.fire.call(s,n,t.values[o],i);null==n&&null!=f&&(n=f,t.keys[o]=n,r.outbound||nr(t.values[o],r.keyPath,n))}else{var d=jo(u,t.values[o]),p=l.fire.call(s,d,n,u,i);if(p){var h=t.values[o];Object.keys(p).forEach((function(t){R(h,t)?h[t]=p[t]:nr(h,t,p[t])}))}}return s}));return n.mutate(t).then((function(n){for(var r=n.failures,i=n.results,a=n.numFailures,c=n.lastResult,s=0;s<u.length;++s){var l=i?i[s]:u[s],f=o[s];null==l?f.onerror&&f.onerror(r[s]):f.onsuccess&&f.onsuccess("put"===t.type&&e[s]?t.values[s]:l)}return{failures:r,results:i,numFailures:a,lastResult:c}})).catch((function(t){return o.forEach((function(e){return e.onerror&&e.onerror(t)})),Promise.reject(t)}))}))},i=$r.trans,u=i.table(e).hook,a=u.deleting,c=u.creating,l=u.updating;switch(t.type){case"add":if(c.fire===tt)break;return i._promise("readwrite",(function(){return o(t)}),!0);case"put":if(c.fire===tt&&l.fire===tt)break;return i._promise("readwrite",(function(){return o(t)}),!0);case"delete":if(a.fire===tt)break;return i._promise("readwrite",(function(){return o(t)}),!0);case"deleteRange":if(a.fire===tt)break;return i._promise("readwrite",(function(){return d((e=t).trans,e.range,1e4);var e}),!0)}return n.mutate(t);function d(t,e,i){return n.query({trans:t,values:!1,query:{index:r,range:e},limit:i}).then((function(n){var r=n.result;return o({type:"delete",keys:r,trans:t}).then((function(n){return n.numFailures>0?Promise.reject(n.failures[0]):r.length<i?{failures:[],numFailures:0,lastResult:void 0}:d(t,s({},e,{lower:r[r.length-1],lowerOpen:!0}),i)}))}))}}});return o}})}},Co={stack:"dbcore",level:-1,create:function(t){return{table:function(e){var n=t.table(e);return s({},n,{getMany:function(t){if(!t.cache)return n.getMany(t);var e=Ee(t.keys,t.trans._cache,"clone"===t.cache);return e?st.resolve(e):n.getMany(t).then((function(e){return t.trans._cache={keys:t.keys,values:"clone"===t.cache?K(e):e},e}))},mutate:function(t){return"add"!==t.type&&(t.trans._cache=null),n.mutate(t)}})}}}},ko=function(t,e){if(!this){var n=new ko;return t&&"d"in t&&L(n,t),n}L(this,arguments.length?{d:1,from:t,to:arguments.length>1?e:t}:{d:0})};function Ao(t,e,n){var r=ho(e,n);if(!isNaN(r)){if(r>0)throw RangeError();if(Ce(t))return L(t,{from:e,to:n,d:1});var o=t.l,i=t.r;if(ho(n,t.from)<0)return o?Ao(o,e,n):t.l={from:e,to:n,d:1,l:null,r:null},Pe(t);if(ho(e,t.to)>0)return i?Ao(i,e,n):t.r={from:e,to:n,d:1,l:null,r:null},Pe(t);ho(e,t.from)<0&&(t.from=e,t.l=null,t.d=i?i.d+1:1),ho(n,t.to)>0&&(t.to=n,t.r=null,t.d=t.l?t.l.d+1:1);var u=!t.r;o&&!t.l&&ke(t,o),i&&u&&ke(t,i)}}M(ko.prototype,a({add:function(t){return ke(this,t),this},addKey:function(t){return Ao(this,t,t),this},addKeys:function(t){var e=this;return t.forEach((function(t){return Ao(e,t,t)})),this}},sr,(function(){return Ae(this)})));var Po,Io={stack:"dbcore",level:0,create:function(t){var e=t.schema.name,n=new ko(t.MIN_KEY,t.MAX_KEY);return s({},t,{table:function(r){var o=t.table(r),i=o.schema,u=i.primaryKey,a=u.extractKey,c=u.outbound,f=s({},o,{mutate:function(t){var u=t.trans,a=u.mutatedParts||(u.mutatedParts={}),c=function(t){var n="idb://".concat(e,"/").concat(r,"/").concat(t);return a[n]||(a[n]=new ko)},s=c(""),f=c(":dels"),d=t.type,p=l("deleteRange"===t.type?[t.range]:"delete"===t.type?[t.keys]:t.values.length<50?[[],t.values]:[],2),h=p[0],v=p[1],y=t.trans._cache;return o.mutate(t).then((function(t){if(Zn(h)){"delete"!==d&&(h=t.results),s.addKeys(h);var e=Ee(h,y);e||"add"===d||f.addKeys(h),(e||v)&&(o=c,u=e,a=v,i.indexes.forEach((function(t){var e=function(e){return null!=e?t.extractKey(e):null},n=o(t.name||""),r=function(e){return t.multiEntry&&Zn(e)?e.forEach((function(t){return n.addKey(t)})):n.addKey(e)};(u||a).forEach((function(t,n){var o=u&&e(u[n]),i=a&&e(a[n]);0!==ho(o,i)&&(null!=o&&r(o),null!=i&&r(i))}))})))}else if(h){var r={from:h.lower,to:h.upper};f.add(r),s.add(r)}else s.add(n),f.add(n),i.indexes.forEach((function(t){return c(t.name).add(n)}));var o,u,a;return t}))}}),d=function(e){var n,r,o=e.query,i=o.index,u=o.range;return[i,new ko(null!==(n=u.lower)&&void 0!==n?n:t.MIN_KEY,null!==(r=u.upper)&&void 0!==r?r:t.MAX_KEY)]},p={get:function(t){return[u,new ko(t.key)]},getMany:function(t){return[u,(new ko).addKeys(t.keys)]},count:d,query:d,openCursor:d};return Wn(p).forEach((function(t){f[t]=function(i){var u=$r.subscr;if(u){var f=function(t){var n="idb://".concat(e,"/").concat(r,"/").concat(t);return u[n]||(u[n]=new ko)},d=f(""),h=f(":dels"),v=l(p[t](i),2),y=v[0],g=v[1];if(f(y.name||"").add(g),!y.isPrimaryKey){if("count"!==t){var m="query"===t&&c&&i.values&&o.query(s({},i,{values:!1}));return o[t].apply(this,arguments).then((function(e){if("query"===t){if(c&&i.values)return m.then((function(t){var n=t.result;return d.addKeys(n),e}));var n=i.values?e.result.map(a):e.result;i.values?d.addKeys(n):h.addKeys(n)}else if("openCursor"===t){var r=e,o=i.values;return r&&Object.create(r,{key:{get:function(){return h.addKey(r.primaryKey),r.key}},primaryKey:{get:function(){var t=r.primaryKey;return h.addKey(t),t}},value:{get:function(){return o&&d.addKey(r.primaryKey),r.value}}})}return e}))}h.add(n)}}return o[t].apply(this,arguments)}})),f}})}},To=function(){function t(e,n){var r=this;o(this,t),this._middlewares={},this.verno=0;var i=t.dependencies;this._options=n=s({addons:t.addons,autoOpen:!0,indexedDB:i.indexedDB,IDBKeyRange:i.IDBKeyRange},n),this._deps={indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange};var u=n.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var a,c,l,f,d={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:tt,dbReadyPromise:null,cancelOpen:tt,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};d.dbReadyPromise=new st((function(t){d.dbReadyResolve=t})),d.openCanceller=new st((function(t,e){d.cancelOpen=e})),this._state=d,this.name=e,this.on=Bt(this,"populate","blocked","versionchange","close",{ready:[ct,tt]}),this.on.ready.subscribe=U(this.on.ready.subscribe,(function(e){return function(n,o){var i=r;t.vip((function(){var t=i._state;if(t.openComplete)t.dbOpenError||st.resolve().then(n),o&&e(n);else if(t.onReadyBeingFired)t.onReadyBeingFired.push(n),o&&e(n);else{e(n);var r=i;o||e((function t(){r.on.ready.unsubscribe(n),r.on.ready.unsubscribe(t)}))}}))}})),this.Collection=(a=this,Nt(vo.prototype,(function(t,e){this.db=a;var n=fo,r=null;if(e)try{n=e()}catch(t){r=t}var o=t._ctx,i=o.table,u=i.hook.reading.fire;this._ctx={table:i,index:o.index,isPrimKey:!o.index||i.schema.primKey.keyPath&&o.index===i.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:r,or:o.or,valueMapper:u!==et?u:null}}))),this.Table=(f=this,Nt(po.prototype,(function(t,e,n){this.db=f,this._tx=n,this.name=t,this.schema=e,this.hook=f._allTables[t]?f._allTables[t].hook:Bt(null,{creating:[ot,tt],reading:[nt,et],updating:[ut,tt],deleting:[it,tt]})}))),this.Transaction=(l=this,Nt(bo.prototype,(function(t,e,n,r,o){var i=this;this.db=l,this.mode=t,this.storeNames=e,this.schema=n,this.chromeTransactionDurability=r,this.idbtrans=null,this.on=Bt(this,"complete","error","abort"),this.parent=o||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new st((function(t,e){i._resolve=t,i._reject=e})),this._completion.then((function(){i.active=!1,i.on.complete.fire()}),(function(t){var e=i.active;return i.active=!1,i.on.error.fire(t),i.parent?i.parent._reject(t):e&&i.idbtrans&&i.idbtrans.abort(),no(t)}))}))),this.Version=function(t){return Nt(So.prototype,(function(e){this.db=t,this._cfg={version:e,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))}(this),this.WhereClause=(c=this,Nt(go.prototype,(function(t,e,n){this.db=c,this._ctx={table:t,index:":id"===e?null:e,or:n};var r=c._deps.indexedDB;if(!r)throw new Sr.MissingAPI;this._cmp=this._ascending=r.cmp.bind(r),this._descending=function(t,e){return r.cmp(e,t)},this._max=function(t,e){return r.cmp(t,e)>0?t:e},this._min=function(t,e){return r.cmp(t,e)<0?t:e},this._IDBKeyRange=c._deps.IDBKeyRange}))),this.on("versionchange",(function(t){t.newVersion>0?console.warn("Another connection wants to upgrade database '".concat(r.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(r.name,"'. Closing db now to resume the delete request.")),r.close()})),this.on("blocked",(function(t){!t.newVersion||t.newVersion<t.oldVersion?console.warn("Dexie.delete('".concat(r.name,"') was blocked")):console.warn("Upgrade '".concat(r.name,"' blocked by other connection holding version ").concat(t.oldVersion/10))})),this._maxKey=wo(n.IDBKeyRange),this._createTransaction=function(t,e,n,o){return new r.Transaction(t,e,n,r._options.chromeTransactionDurability,o)},this._fireOnBlocked=function(t){var e=r;r.on("blocked").fire(t),uo.filter((function(t){return t.name===e.name&&t!==e&&!t._state.vcFired})).map((function(e){return e.on("versionchange").fire(t)}))},this.use(Oo),this.use(Eo),this.use(Io),this.use(Co),this.vip=Object.create(this,{_vip:{value:!0}}),u.forEach((function(t){return t(r)}))}return u(t,[{key:"version",value:function(t){if(isNaN(t)||t<.1)throw new Sr.Type("Given version is not a positive number");if(t=Math.round(10*t)/10,this.idbdb||this._state.isBeingOpened)throw new Sr.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,t);var e=this._versions,n=e.filter((function(e){return e._cfg.version===t}))[0];return n||(n=new this.Version(t),e.push(n),e.sort(pe),n.stores({}),this._state.autoSchema=!1,n)}},{key:"_whenReady",value:function(t){var e=this;return this.idbdb&&(this._state.openComplete||$r.letThrough||this._vip)?t():new st((function(t,n){if(e._state.openComplete)return n(new Sr.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return void n(new Sr.DatabaseClosed);e.open().catch(tt)}e._state.dbReadyPromise.then(t,n)})).then(t)}},{key:"use",value:function(t){var e=t.stack,n=t.create,r=t.level,o=t.name;o&&this.unuse({stack:e,name:o});var i=this._middlewares[e]||(this._middlewares[e]=[]);return i.push({stack:e,create:n,level:null==r?10:r,name:o}),i.sort((function(t,e){return t.level-e.level})),this}},{key:"unuse",value:function(t){var e=t.stack,n=t.name,r=t.create;return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter((function(t){return r?t.create!==r:!!n&&t.name!==n}))),this}},{key:"open",value:function(){return function(t){var e=function(){if(n.openCanceller!==o)throw new Sr.DatabaseClosed("db.open() was cancelled")},n=t._state,r=t._deps.indexedDB;if(n.isBeingOpened||t.idbdb)return n.dbReadyPromise.then((function(){return n.dbOpenError?no(n.dbOpenError):t}));pr&&(n.openCanceller._stackHolder=yr()),n.isBeingOpened=!0,n.dbOpenError=null,n.openComplete=!1;var o=n.openCanceller,i=n.dbReadyResolve,u=null,a=!1;return st.race([o,("undefined"==typeof navigator?st.resolve():Se()).then((function(){return new st((function(o,i){if(e(),!r)throw new Sr.MissingAPI;var c=t.name,s=n.autoSchema?r.open(c):r.open(c,Math.round(10*t.verno));if(!s)throw new Sr.MissingAPI;s.onerror=ne(i),s.onblocked=_t(t._fireOnBlocked),s.onupgradeneeded=_t((function(e){if(u=s.transaction,n.autoSchema&&!t._options.allowEmptyDB){s.onerror=re,u.abort(),s.result.close();var o=r.deleteDatabase(c);o.onsuccess=o.onerror=_t((function(){i(new Sr.NoSuchDatabase("Database ".concat(c," doesnt exist")))}))}else{u.onerror=ne(i);var l=e.oldVersion>Math.pow(2,62)?0:e.oldVersion;a=l<1,t._novip.idbdb=s.result,function(t,e,n,r){var o=t._dbSchema,i=t._createTransaction("readwrite",t._storeNames,o);i.create(n),i._completion.catch(r);var u=i._reject.bind(i),a=$r.transless||$r;St((function(){var r,c,s,l,f,d,p,h,v;$r.trans=i,$r.transless=a,0===e?(Wn(o).forEach((function(t){ve(n,t,o[t].primKey,o[t].indexes)})),le(t,n),st.follow((function(){return t.on.populate.fire(i)})).catch(u)):(r=t,c=e,s=i,l=n,f=r._novip,d=[],p=f._versions,h=f._dbSchema=ge(0,f.idbdb,l),v=!1,p.filter((function(t){return t._cfg.version>=c})).forEach((function(t){d.push((function(){var e=h,n=t._cfg.dbschema;me(f,e,l),me(f,n,l),h=f._dbSchema=n;var r=he(e,n);r.add.forEach((function(t){ve(l,t[0],t[1].primKey,t[1].indexes)})),r.change.forEach((function(t){if(t.recreate)throw new Sr.Upgrade("Not yet support for changing primary key");var e=l.objectStore(t.name);t.add.forEach((function(t){return ye(e,t)})),t.change.forEach((function(t){e.deleteIndex(t.name),ye(e,t)})),t.del.forEach((function(t){return e.deleteIndex(t)}))}));var o=t._cfg.contentUpgrade;if(o&&t._cfg.version>c){le(f,l),s._memoizedTables={},v=!0;var i=$(n);r.del.forEach((function(t){i[t]=e[t]})),de(f,[f.Transaction.prototype]),fe(f,[f.Transaction.prototype],Wn(i),i),s.schema=i;var u,a=dr(o);a&&xt();var d=st.follow((function(){if((u=o(s))&&a){var t=Ot.bind(null,null);u.then(t,t)}}));return u&&"function"==typeof u.then?st.resolve(u):d.then((function(){return u}))}})),d.push((function(e){var n,r;v&&co||(n=t._cfg.dbschema,r=e,[].slice.call(r.db.objectStoreNames).forEach((function(t){return null==n[t]&&r.db.deleteObjectStore(t)}))),de(f,[f.Transaction.prototype]),fe(f,[f.Transaction.prototype],f._storeNames,f._dbSchema),s.schema=f._dbSchema}))})),function t(){return d.length?st.resolve(d.shift()(s.idbtrans)).then(t):st.resolve()}().then((function(){var t,e;e=l,Wn(t=h).forEach((function(n){e.db.objectStoreNames.contains(n)||ve(e,n,t[n].primKey,t[n].indexes)}))}))).catch(u)}))}(t,l/10,u,i)}}),i),s.onsuccess=_t((function(){u=null;var e,r,i,l,f=t._novip.idbdb=s.result,d=N(f.objectStoreNames);if(d.length>0)try{var p=f.transaction(1===(l=d).length?l[0]:l,"readonly");n.autoSchema?function(t,e,n){var r=t._novip;r.verno=e.version/10;var o=r._dbSchema=ge(0,e,n);r._storeNames=N(e.objectStoreNames,0),fe(r,[r._allTables],Wn(o),o)}(t,f,p):(me(t,t._dbSchema,p),r=p,!((i=he(ge(0,(e=t).idbdb,r),e._dbSchema)).add.length||i.change.some((function(t){return t.add.length||t.change.length})))||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),le(t,p)}catch(t){}uo.push(t),f.onversionchange=_t((function(e){n.vcFired=!0,t.on("versionchange").fire(e)})),f.onclose=_t((function(e){t.on("close").fire(e)})),a&&function(t,e){var n=t.indexedDB,r=t.IDBKeyRange;!we(n)&&"__dbnames"!==e&&be(n,r).put({name:e}).catch(tt)}(t._deps,c),o()}),i)}))}))]).then((function(){return e(),n.onReadyBeingFired=[],st.resolve(_e((function(){return t.on.ready.fire(t.vip)}))).then((function e(){if(n.onReadyBeingFired.length>0){var r=n.onReadyBeingFired.reduce(ct,tt);return n.onReadyBeingFired=[],st.resolve(_e((function(){return r(t.vip)}))).then(e)}}))})).finally((function(){n.onReadyBeingFired=null,n.isBeingOpened=!1})).then((function(){return t})).catch((function(e){n.dbOpenError=e;try{u&&u.abort()}catch(t){}return o===n.openCanceller&&t._close(),no(e)})).finally((function(){n.openComplete=!0,i()}))}(this)}},{key:"_close",value:function(){var t=this._state,e=uo.indexOf(this);if(e>=0&&uo.splice(e,1),this.idbdb){try{this.idbdb.close()}catch(t){}this._novip.idbdb=null}t.dbReadyPromise=new st((function(e){t.dbReadyResolve=e})),t.openCanceller=new st((function(e,n){t.cancelOpen=n}))}},{key:"close",value:function(){this._close();var t=this._state;this._options.autoOpen=!1,t.dbOpenError=new Sr.DatabaseClosed,t.isBeingOpened&&t.cancelOpen(t.dbOpenError)}},{key:"delete",value:function(){var t=this,e=arguments.length>0,n=this._state;return new st((function(r,o){var i=t,u=function(){var t=i;i.close();var e=i._deps.indexedDB.deleteDatabase(i.name);e.onsuccess=_t((function(){!function(t,e){var n=t.indexedDB,r=t.IDBKeyRange;!we(n)&&"__dbnames"!==e&&be(n,r).delete(e).catch(tt)}(t._deps,t.name),r()})),e.onerror=ne(o),e.onblocked=i._fireOnBlocked};if(e)throw new Sr.InvalidArgument("Arguments not allowed in db.delete()");n.isBeingOpened?n.dbReadyPromise.then(u):u()}))}},{key:"backendDB",value:function(){return this.idbdb}},{key:"isOpen",value:function(){return null!==this.idbdb}},{key:"hasBeenClosed",value:function(){var t=this._state.dbOpenError;return t&&"DatabaseClosed"===t.name}},{key:"hasFailed",value:function(){return null!==this._state.dbOpenError}},{key:"dynamicallyOpened",value:function(){return this._state.autoSchema}},{key:"tables",get:function(){var t=this;return Wn(this._allTables).map((function(e){return t._allTables[e]}))}},{key:"transaction",value:function(){var t=Oe.apply(this,arguments);return this._transaction.apply(this,t)}},{key:"_transaction",value:function(t,e,n){var r=this,o=$r.trans;o&&o.db===this&&-1===t.indexOf("!")||(o=null);var i,u,a=-1!==t.indexOf("?");t=t.replace("!","").replace("?","");try{var s=this;if(u=e.map((function(t){var e=c(t,s.Table)?t.name:t;if("string"!=typeof e)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return e})),"r"==t||"readonly"===t)i="readonly";else{if("rw"!=t&&"readwrite"!=t)throw new Sr.InvalidArgument("Invalid transaction mode: "+t);i="readwrite"}if(o){if("readonly"===o.mode&&"readwrite"===i){if(!a)throw new Sr.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");o=null}o&&u.forEach((function(t){if(o&&-1===o.storeNames.indexOf(t)){if(!a)throw new Sr.SubTransaction("Table "+t+" not included in parent transaction.");o=null}})),a&&o&&!o.active&&(o=null)}}catch(t){return o?o._promise(null,(function(e,n){n(t)})):no(t)}var l=xo.bind(null,this,i,u,o,n);return o?o._promise(i,l,"lock"):$r.trans?Pt($r.transless,(function(){return r._whenReady(l)})):this._whenReady(l)}},{key:"table",value:function(t){if(!R(this._allTables,t))throw new Sr.InvalidTable("Table ".concat(t," does not exist"));return this._allTables[t]}}]),t}(),Lo="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable",Ro=function(){function t(e){o(this,t),this._subscribe=e}return u(t,[{key:"subscribe",value:function(t,e,n){return this._subscribe(t&&"function"!=typeof t?t:{next:t,error:e,complete:n})}},{key:Lo,value:function(){return this}}]),t}();try{Po={indexedDB:qn.indexedDB||qn.mozIndexedDB||qn.webkitIndexedDB||qn.msIndexedDB,IDBKeyRange:qn.IDBKeyRange||qn.webkitIDBKeyRange}}catch(t){Po={indexedDB:null,IDBKeyRange:null}}var Mo=To;M(Mo,s({},Or,{delete:function(t){return new Mo(t,{addons:[]}).delete()},exists:function(t){return new Mo(t,{addons:[]}).open().then((function(t){return t.close(),!0})).catch("NoSuchDatabaseError",(function(){return!1}))},getDatabaseNames:function(t){try{return function(t){var e=t.indexedDB,n=t.IDBKeyRange;return we(e)?Promise.resolve(e.databases()).then((function(t){return t.map((function(t){return t.name})).filter((function(t){return"__dbnames"!==t}))})):be(e,n).toCollection().primaryKeys()}(Mo.dependencies).then(t)}catch(t){return no(new Sr.MissingAPI)}},defineClass:function(){return function(t){L(this,t)}},ignoreTransaction:function(t){return $r.trans?Pt($r.transless,t):t()},vip:_e,async:function(t){return function(){try{var e=xe(t.apply(this,arguments));return e&&"function"==typeof e.then?e:st.resolve(e)}catch(t){return no(t)}}},spawn:function(t,e,n){try{var r=xe(t.apply(n,e||[]));return r&&"function"==typeof r.then?r:st.resolve(r)}catch(t){return no(t)}},currentTransaction:{get:function(){return $r.trans||null}},waitFor:function(t,e){var n=st.resolve("function"==typeof t?Mo.ignoreTransaction(t):t).timeout(e||6e4);return $r.trans?$r.trans.waitFor(n):n},Promise:st,debug:{get:function(){return pr},set:function(t){Z(t,"dexie"===t?function(){return!0}:lo)}},derive:B,extend:L,props:M,override:U,Events:Bt,on:mo,liveQuery:function(t){return new Ro((function(e){var n=function(){return Wn(u).some((function(t){return i[t]&&function(t,e){var n=Ae(e),r=n.next();if(r.done)return!1;for(var o=r.value,i=Ae(t),u=i.next(o.from),a=u.value;!r.done&&!u.done;){if(ho(a.from,o.to)<=0&&ho(a.to,o.from)>=0)return!0;ho(o.from,a.from)<0?o=(r=n.next(a.from)).value:a=(u=i.next(o.from)).value}return!1}(i[t],u[t])}))},r=dr(t),o=!1,i={},u={},a={get closed(){return o},unsubscribe:function(){o=!0,mo.storagemutated.unsubscribe(l)}};e.start&&e.start(a);var c=!1,s=!1,l=function(t){Te(i,t),n()&&f()},f=function(){if(!c&&!o){i={};var d={},p=function(e){r&&xt();var n=function(){return St(t,{subscr:e,trans:null})},o=$r.trans?Pt($r.transless,n):n();return r&&o.then(Ot,Ot),o}(d);s||(mo("storagemutated",l),s=!0),c=!0,Promise.resolve(p).then((function(t){c=!1,o||(n()?f():(i={},u=d,e.next&&e.next(t)))}),(function(t){c=!1,e.error&&e.error(t),a.unsubscribe()}))}};return f(),a}))},extendObservabilitySet:Te,getByKeyPath:er,setByKeyPath:nr,delByKeyPath:function(t,e){"string"==typeof e?nr(t,e,void 0):"length"in e&&[].map.call(e,(function(e){nr(t,e,void 0)}))},shallowClone:$,deepClone:K,getObjectDiff:jo,cmp:ho,asap:F,minKey:-1/0,addons:[],connections:uo,errnames:wr,dependencies:Po,semVer:"3.2.1",version:"3.2.1".split(".").map((function(t){return parseInt(t)})).reduce((function(t,e,n){return t+e/Math.pow(10,2*n)}))})),Mo.maxKey=wo(Mo.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(mo("storagemutated",(function(t){var e;Do||(ao?(e=document.createEvent("CustomEvent")).initCustomEvent("x-storagemutated-1",!0,!0,t):e=new CustomEvent("x-storagemutated-1",{detail:t}),Do=!0,dispatchEvent(e),Do=!1)})),addEventListener("x-storagemutated-1",(function(t){var e=t.detail;Do||Le(e)})));var Do=!1;if("undefined"!=typeof BroadcastChannel){var Bo=new BroadcastChannel("x-storagemutated-1");mo("storagemutated",(function(t){Do||Bo.postMessage(t)})),Bo.onmessage=function(t){t.data&&Le(t.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){mo("storagemutated",(function(t){try{Do||("undefined"!=typeof localStorage&&localStorage.setItem("x-storagemutated-1",JSON.stringify({trig:Math.random(),changedParts:t})),"object"==typeof self.clients&&f(self.clients.matchAll({includeUncontrolled:!0})).forEach((function(e){return e.postMessage({type:"x-storagemutated-1",changedParts:t})})))}catch(t){}})),addEventListener("storage",(function(t){if("x-storagemutated-1"===t.key){var e=JSON.parse(t.newValue);e&&Le(e.changedParts)}}));var No=self.document&&navigator.serviceWorker;No&&No.addEventListener("message",(function(t){var e=t.data;e&&"x-storagemutated-1"===e.type&&Le(e.changedParts)}))}st.rejectionMapper=function(t,e){if(!t||c(t,J)||c(t,TypeError)||c(t,SyntaxError)||!t.name||!xr[t.name])return t;var n=new xr[t.name](e||t.message,t);return"stack"in t&&D(n,"stack",{get:function(){return this.inner.stack}}),n},Z(pr,lo);var Uo=h(766),Ho=h(685);function Fo(t){return(Fo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Vo(t,e){return(Vo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var $o,zo=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":void 0===t?"undefined":d(t)},Ko=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vo(t,e)}(o,t);var e,n,r=(e=o,n=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(t){return!1}}(),function(){var t,r=Fo(e);if(n){var o=Fo(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return Re(this,t)});function o(){var t;return function(t,e){if(!c(t,e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this,"EsmOffline")).version(4).stores({syncQueue:"++id,userId,type,[userId+type]",dynamicOfflineData:"++id,type,identifier,*users,&[type+identifier]"}),t.syncQueue=t.table("syncQueue"),t.dynamicOfflineData=t.table("dynamicOfflineData"),t}return o}(To),qo=new Ko,Wo={},Zo=(0,Ho.createGlobalStore)("offline-synchronization",{});function Go(){return Go=Ne(Bn().mark((function t(){var e,n,r,o,i,u,a,c,s,l,f,d,p;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!Zo.getState().synchronization){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,qo.syncQueue.count();case 4:e=t.sent,n={},r=Object.entries(Wo),o=r.length,i={},u=new AbortController,a=function(){var t=Zo.getState().synchronization;Zo.setState({synchronization:He({},t,{pendingCount:t.pendingCount-1})})},t.prev=11,Zo.setState({synchronization:{totalCount:e,pendingCount:e,abortController:u}}),c=0;case 14:if(!(c<o&&r.length>0)){t.next=30;break}s=r.length;case 16:if(!s--){t.next=27;break}if(l=Fe(r[s],2),f=l[0],d=l[1],!(p=d.dependsOn.map((function(t){return n[t]}))).every(Boolean)){t.next=25;break}return i[f]={},t.next=23,Promise.all(p);case 23:n[f]=ze(d,i,u,a),r.splice(s,1);case 25:t.next=16;break;case 27:c++,t.next=14;break;case 30:return t.next=32,Promise.allSettled(Object.values(n));case 32:return t.prev=32,Zo.setState({synchronization:void 0}),t.finish(32);case 35:case"end":return t.stop()}}),t,null,[[11,,32,35]])}))),Go.apply(this,arguments)}function Jo(){return Jo=Ne(Bn().mark((function t(e,n,r,o){var i,u,a,c,s,l,f,d,p,h,v,y,g,m,b,w;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.type,u=e.dependsOn,a=e.process,c=[],s=[],t.next=5,Ke();case 5:return l=t.sent,t.next=8,qo.syncQueue.where({type:i,userId:l}).each((function(t,e){c.push([e.primaryKey,t.content,t.descriptor]),s.push(t.content)}));case 8:f=0;case 9:if(!(f<c.length)){t.next=31;break}return d=Fe(c[f],3),p=d[0],h=d[1],v=d[2],y=v.id,g=v.dependencies,m=void 0===g?[]:g,t.prev=11,t.next=14,a(h,{abort:r,index:f,items:s,userId:l,dependencies:m.map((function(t){var e=t.id,r=t.type;return u.includes(r)?n[r][e]:void 0}))});case 14:return b=t.sent,void 0!==y&&(n[i][y]=b),t.next=18,qo.syncQueue.delete(p);case 18:t.next=25;break;case 20:return t.prev=20,t.t0=t.catch(11),t.next=25,qo.syncQueue.update(p,{lastError:{name:null===t.t0||void 0===t.t0?void 0:t.t0.name,message:null!==(w=null===t.t0||void 0===t.t0?void 0:t.t0.message)&&void 0!==w?w:null===t.t0||void 0===t.t0?void 0:t.t0.toString()}});case 25:return t.prev=25,o(),t.finish(25);case 28:f++,t.next=9;break;case 31:case"end":return t.stop()}}),t,null,[[11,20,25,28]])}))),Jo.apply(this,arguments)}function Yo(){return(Yo=Ne(Bn().mark((function t(){var e;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Uo.getLoggedInUser)();case 2:return e=t.sent,t.abrupt("return",(null==e?void 0:e.uuid)||"*");case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Qo(){return(Qo=Ne(Bn().mark((function t(e,n,r,o){var i,u;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===(i=o&&o.id)){t.next=4;break}return t.next=4,qo.syncQueue.where({type:n,userId:e}).filter((function(t){return(null==t?void 0:t.descriptor.id)===i})).delete().catch(To.errnames.DatabaseClosed);case 4:return t.next=6,qo.syncQueue.add({type:n,content:r,userId:e,descriptor:o||{},createdOn:new Date}).catch(To.errnames.DatabaseClosed,(function(){return-1}));case 6:return u=t.sent,t.abrupt("return",u);case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Xo(){return(Xo=Ne(Bn().mark((function t(e,n,r){var o;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ke();case 2:return o=t.sent,t.next=5,qe(o,e,n,r);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ti(){return(ti=Ne(Bn().mark((function t(e,n){var r;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ge(e,n);case 2:return r=t.sent,t.abrupt("return",r.map((function(t){return t.content})));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ei(){return(ei=Ne(Bn().mark((function t(e,n){var r;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n?{type:n,userId:e}:{userId:e},t.next=3,qo.syncQueue.where(r).toArray().catch(To.errnames.DatabaseClosed,(function(){return[]}));case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ni(){return(ni=Ne(Bn().mark((function t(e){var n;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ke();case 2:return n=t.sent,t.next=5,Ze(n,e);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ri(){return(ri=Ne(Bn().mark((function t(e){var n;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ke();case 2:return n=t.sent,t.next=5,Ge(n,e);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function oi(){return(oi=Ne(Bn().mark((function t(e){return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,qo.syncQueue.get(e).catch(To.errnames.DatabaseClosed,(function(){}));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ii(){return(ii=Ne(Bn().mark((function t(e){var n,r,o;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,Qe(e);case 3:if(r=t.sent){t.next=6;break}throw new Error("No sync item with the ID ".concat(e," exists."));case 6:if(o=null===(n=Wo[r.type])||void 0===n?void 0:n.options.onBeginEditSyncItem){t.next=9;break}throw new Error("A sync item with the ID ".concat(e,' exists, but the associated handler (if one exists) doesn\'t support editing the item. You can avoid this error by either verifying that sync items of this type can be edited via the "canEditSynchronizationItemsOfType(type: string)" function or alternatively ensure that the synchronizaton handler for sync items of type "').concat(r.type,'" supports editing items.'));case 9:o(r);case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ui(){return(ui=Ne(Bn().mark((function t(e){return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,qo.syncQueue.delete(e).catch(To.errnames.DatabaseClosed);case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}for(var ai=new Uint8Array(16),ci=/^(?:[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,si=function(t){return"string"==typeof t&&ci.test(t)},li=[],fi=0;fi<256;++fi)li.push((fi+256).toString(16).substr(1));var di=function(t,e,n){var r=(t=t||{}).random||(t.rng||rn)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(li[t[e+0]]+li[t[e+1]]+li[t[e+2]]+li[t[e+3]]+"-"+li[t[e+4]]+li[t[e+5]]+"-"+li[t[e+6]]+li[t[e+7]]+"-"+li[t[e+8]]+li[t[e+9]]+"-"+li[t[e+10]]+li[t[e+11]]+li[t[e+12]]+li[t[e+13]]+li[t[e+14]]+li[t[e+15]]).toLowerCase();if(!si(n))throw TypeError("Stringified UUID is invalid");return n}(r)},pi="OFFLINE+",hi={};function vi(){return(vi=sn(Bn().mark((function t(e){var n;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_n();case 2:return n=t.sent,t.next=5,hn(n,e);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function yi(){return(yi=sn(Bn().mark((function t(e,n){var r,o;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n?{type:n,users:e}:{users:e},o=new Ko,t.next=4,o.dynamicOfflineData.where(r).toArray().catch(To.errnames.DatabaseClosed,(function(){return[]}));case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function gi(){return(gi=sn(Bn().mark((function t(e,n){var r;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_n();case 2:return r=t.sent,t.next=5,yn(r,e,n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function mi(){return(mi=sn(Bn().mark((function t(e,n,r){var o,i;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=new Ko,t.next=3,o.dynamicOfflineData.get({type:n,identifier:r}).catch(To.errnames.DatabaseClosed,(function(){}));case 3:if(i=t.sent){t.next=9;break}return t.next=7,o.dynamicOfflineData.add({users:[e],type:n,identifier:r}).catch(To.errnames.DatabaseClosed);case 7:t.next=12;break;case 9:if(i.users.includes(e)){t.next=12;break}return t.next=12,o.dynamicOfflineData.update(i.id,{users:ln(i.users).concat([e])}).catch(To.errnames.DatabaseClosed);case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function bi(){return(bi=sn(Bn().mark((function t(e,n){var r;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_n();case 2:return r=t.sent,t.next=5,mn(r,e,n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function wi(){return(wi=sn(Bn().mark((function t(e,n,r){var o,i;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=new Ko,t.next=3,o.dynamicOfflineData.get({type:n,identifier:r,users:e}).catch(To.errnames.DatabaseClosed,(function(){}));case 3:if(!(i=t.sent)){t.next=12;break}if(!(i.users.length>1)){t.next=10;break}return t.next=8,o.dynamicOfflineData.update(i.id,{users:i.users.filter((function(t){return t!==e}))}).catch(To.errnames.DatabaseClosed);case 8:t.next=12;break;case 10:return t.next=12,o.dynamicOfflineData.delete(i.id).catch(To.errnames.DatabaseClosed);case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function _i(){return _i=sn(Bn().mark((function t(e,n){var r;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,pn(e);case 2:return r=t.sent,t.next=5,Promise.all(r.map(function(){var t=sn(Bn().mark((function t(e){return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",wn(e.type,e.identifier,n));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 5:case"end":return t.stop()}}),t)}))),_i.apply(this,arguments)}function Si(){return Si=sn(Bn().mark((function t(e,n,r){var o,i,u,a,c,s,l,f,d;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,vn(e,n);case 2:return o=new Ko,t.next=5,_n();case 5:return i=t.sent,t.next=8,o.dynamicOfflineData.get({type:e,identifier:n}).catch(To.errnames.DatabaseClosed,(function(){}));case 8:if(u=t.sent,a=fn().filter((function(t){return t.type===e})),u){t.next=12;break}return t.abrupt("return");case 12:return t.next=14,Promise.all(a.map(function(){var t=sn(Bn().mark((function t(e){var o,i,u;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.sync(n,r),t.abrupt("return",{id:e.id,error:void 0});case 5:return t.prev=5,t.t0=t.catch(0),u=null!==(i=null===(o=t.t0.message)||void 0===o?void 0:o.toString())&&void 0!==i?i:t.t0.toString(),t.abrupt("return",{id:e.id,error:u});case 11:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(e){return t.apply(this,arguments)}}()));case 14:if(c=t.sent,s=c.filter((function(t){return!t.error})).map((function(t){return t.id})),l=c.filter((function(t){return t.error})).map((function(t){return t.id})),f=c.filter((function(t){return t.error})).map((function(t){return{handlerId:t.id,message:t.error}})),d={syncedOn:new Date,syncedBy:i,succeededHandlers:s,erroredHandlers:l,errors:f},!u.id){t.next=22;break}return t.next=22,o.dynamicOfflineData.update(u.id,{syncState:d}).catch(To.errnames.DatabaseClosed);case 22:case"end":return t.stop()}}),t)}))),Si.apply(this,arguments)}function xi(){return(xi=sn(Bn().mark((function t(){var e;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Uo.getLoggedInUser)();case 2:if(e=t.sent.uuid){t.next=5;break}throw new Error("Using the dynamic offline data API requires a logged in user.");case 5:return t.abrupt("return",e);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Oi=(0,Ho.createGlobalStore)("offline-patients",{offlinePatientDataSyncState:{},handlers:{}});function ji(){return(ji=xn(Bn().mark((function t(e){return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Cn(),t.next=3,wn("patient",e);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}}(),v}())}}}))},9336:(t,e,n)=>{function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}t=n.nmd(t);var o=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};System.register(["react","@openmrs/esm-config","@openmrs/esm-extensions","@openmrs/esm-globals","react-dom","i18next","react-i18next","@openmrs/esm-api","dayjs"],(function(i,u){var a={},c={},s={},l={},f={},d={},p={},h={},v={};return{setters:[function(t){a.createContext=t.createContext,a.createElement=t.createElement,a.default=t.default,a.useCallback=t.useCallback,a.useContext=t.useContext,a.useDebugValue=t.useDebugValue,a.useEffect=t.useEffect,a.useLayoutEffect=t.useLayoutEffect,a.useMemo=t.useMemo,a.useReducer=t.useReducer,a.useRef=t.useRef,a.useState=t.useState},function(t){c.getConfigStore=t.getConfigStore,c.getExtensionConfigFromStore=t.getExtensionConfigFromStore,c.getExtensionsConfigStore=t.getExtensionsConfigStore,c.interpolateUrl=t.interpolateUrl,c.navigate=t.navigate},function(t){s.getConnectedExtensions=t.getConnectedExtensions,s.getExtensionInternalStore=t.getExtensionInternalStore,s.getExtensionStore=t.getExtensionStore,s.registerExtensionSlot=t.registerExtensionSlot,s.renderExtension=t.renderExtension},function(t){l.subscribeConnectivityChanged=t.subscribeConnectivityChanged},function(t){f.default=t.default},function(t){d.default=t.default},function(t){p.I18nextProvider=t.I18nextProvider},function(t){h.defaultVisitCustomRepresentation=t.defaultVisitCustomRepresentation,h.fetchCurrentPatient=t.fetchCurrentPatient,h.getCurrentUser=t.getCurrentUser,h.getLocations=t.getLocations,h.getSessionStore=t.getSessionStore,h.getVisitTypes=t.getVisitTypes,h.openmrsFetch=t.openmrsFetch,h.userHasAccess=t.userHasAccess},function(t){v.default=t.default}],execute:function(){i(function(){var i={332:function(t){t.exports=function(){"use strict";return function(t,e,n){e.prototype.isToday=function(){var t="YYYY-MM-DD",e=n();return this.format(t)===e.format(t)}}}()},891:function(t,e,n){var i;t=n.nmd(t),function(){var u,a=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},c=function(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var u=t[o];e(r,u,n(u),t)}return r},s=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t},l=function(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t},f=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0},d=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var u=t[n];e(u,n,t)&&(i[o++]=u)}return i},p=function(t,e){return!(null==t||!t.length)&&S(t,e,0)>-1},h=function(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1},v=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o},y=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t},g=function(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n},m=function(t,e,n,r){var o=null==t?0:t.length;for(r&&o&&(n=t[--o]);o--;)n=e(n,t[o],o,t);return n},b=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1},w=function(t,e,n){var r;return n(t,(function(t,n,o){if(e(t,n,o))return r=n,!1})),r},_=function(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1},S=function(t,e,n){return e==e?function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}(t,e,n):_(t,O,n)},x=function(t,e,n,r){for(var o=n-1,i=t.length;++o<i;)if(r(t[o],e))return o;return-1},O=function(t){return t!=t},j=function(t,e){var n=null==t?0:t.length;return n?A(t,e)/n:tt},E=function(t){return function(e){return null==e?u:e[t]}},C=function(t){return function(e){return null==t?u:t[e]}},k=function(t,e,n,r,o){return o(t,(function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)})),n},A=function(t,e){for(var n,r=-1,o=t.length;++r<o;){var i=e(t[r]);i!==u&&(n=n===u?i:n+i)}return n},P=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},I=function(t){return t?t.slice(0,q(t)+1).replace(Kt,""):t},T=function(t){return function(e){return t(e)}},L=function(t,e){return v(e,(function(e){return t[e]}))},R=function(t,e){return t.has(e)},M=function(t,e){for(var n=-1,r=t.length;++n<r&&S(e,t[n],0)>-1;);return n},D=function(t,e){for(var n=t.length;n--&&S(e,t[n],0)>-1;);return n},B=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r},N=function(t){return"\\"+Ve[t]},U=function(t){return De.test(t)},H=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n},F=function(t,e){return function(n){return t(e(n))}},V=function(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var u=t[n];u!==e&&u!==G||(t[n]=G,i[o++]=n)}return i},$=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},z=function(t){return U(t)?function(t){for(var e=Re.lastIndex=0;Re.test(t);)++e;return e}(t):un(t)},K=function(t){return U(t)?t.match(Re)||[]:t.split("")},q=function(t){for(var e=t.length;e--&&qt.test(t.charAt(e)););return e},W="Expected a function",Z="__lodash_hash_undefined__",G="__lodash_placeholder__",J=32,Y=128,Q=1/0,X=9007199254740991,tt=NaN,et=4294967295,nt=[["ary",Y],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",J],["partialRight",64],["rearg",256]],rt="[object Arguments]",ot="[object Array]",it="[object Boolean]",ut="[object Date]",at="[object Error]",ct="[object Function]",st="[object GeneratorFunction]",lt="[object Map]",ft="[object Number]",dt="[object Object]",pt="[object Promise]",ht="[object RegExp]",vt="[object Set]",yt="[object String]",gt="[object Symbol]",mt="[object WeakMap]",bt="[object ArrayBuffer]",wt="[object DataView]",_t="[object Float32Array]",St="[object Float64Array]",xt="[object Int8Array]",Ot="[object Int16Array]",jt="[object Int32Array]",Et="[object Uint8Array]",Ct="[object Uint8ClampedArray]",kt="[object Uint16Array]",At="[object Uint32Array]",Pt=/\b__p \+= '';/g,It=/\b(__p \+=) '' \+/g,Tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Lt=/&(?:amp|lt|gt|quot|#39);/g,Rt=/[&<>"']/g,Mt=RegExp(Lt.source),Dt=RegExp(Rt.source),Bt=/<%-([\s\S]+?)%>/g,Nt=/<%([\s\S]+?)%>/g,Ut=/<%=([\s\S]+?)%>/g,Ht=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ft=/^\w*$/,Vt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$t=/[\\^$.*+?()[\]{}|]/g,zt=RegExp($t.source),Kt=/^\s+/,qt=/\s/,Wt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Zt=/\{\n\/\* \[wrapped with (.+)\] \*/,Gt=/,? & /,Jt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yt=/[()=,{}\[\]\/\s]/,Qt=/\\(\\)?/g,Xt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,te=/\w*$/,ee=/^[-+]0x[0-9a-f]+$/i,ne=/^0b[01]+$/i,re=/^\[object .+?Constructor\]$/,oe=/^0o[0-7]+$/i,ie=/^(?:0|[1-9]\d*)$/,ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ae=/($^)/,ce=/['\n\r\u2028\u2029\\]/g,se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",le="a-z\\xdf-\\xf6\\xf8-\\xff",fe="A-Z\\xc0-\\xd6\\xd8-\\xde",de="\\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",pe="["+de+"]",he="["+se+"]",ve="\\d+",ye="["+le+"]",ge="[^\ud800-\udfff"+de+ve+"\\u2700-\\u27bf"+le+fe+"]",me="\ud83c[\udffb-\udfff]",be="[^\ud800-\udfff]",we="(?:\ud83c[\udde6-\uddff]){2}",_e="[\ud800-\udbff][\udc00-\udfff]",Se="["+fe+"]",xe="(?:"+ye+"|"+ge+")",Oe="(?:"+Se+"|"+ge+")",je="(?:['’](?:d|ll|m|re|s|t|ve))?",Ee="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ce="(?:"+he+"|"+me+")?",ke="[\\ufe0e\\ufe0f]?",Ae=ke+Ce+"(?:\\u200d(?:"+[be,we,_e].join("|")+")"+ke+Ce+")*",Pe="(?:"+["[\\u2700-\\u27bf]",we,_e].join("|")+")"+Ae,Ie="(?:"+[be+he+"?",he,we,_e,"[\ud800-\udfff]"].join("|")+")",Te=RegExp("['’]","g"),Le=RegExp(he,"g"),Re=RegExp(me+"(?="+me+")|"+Ie+Ae,"g"),Me=RegExp([Se+"?"+ye+"+"+je+"(?="+[pe,Se,"$"].join("|")+")",Oe+"+"+Ee+"(?="+[pe,Se+xe,"$"].join("|")+")",Se+"?"+xe+"+"+je,Se+"+"+Ee,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve,Pe].join("|"),"g"),De=RegExp("[\\u200d\ud800-\udfff"+se+"\\ufe0e\\ufe0f]"),Be=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ne=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ue=-1,He={};He[_t]=He[St]=He[xt]=He[Ot]=He[jt]=He[Et]=He[Ct]=He[kt]=He[At]=!0,He[rt]=He[ot]=He[bt]=He[it]=He[wt]=He[ut]=He[at]=He[ct]=He[lt]=He[ft]=He[dt]=He[ht]=He[vt]=He[yt]=He[mt]=!1;var Fe={};Fe[rt]=Fe[ot]=Fe[bt]=Fe[wt]=Fe[it]=Fe[ut]=Fe[_t]=Fe[St]=Fe[xt]=Fe[Ot]=Fe[jt]=Fe[lt]=Fe[ft]=Fe[dt]=Fe[ht]=Fe[vt]=Fe[yt]=Fe[gt]=Fe[Et]=Fe[Ct]=Fe[kt]=Fe[At]=!0,Fe[at]=Fe[ct]=Fe[mt]=!1;var Ve={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$e=parseFloat,ze=parseInt,Ke="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,qe="object"==typeof self&&self&&self.Object===Object&&self,We=Ke||qe||Function("return this")(),Ze=e&&!e.nodeType&&e,Ge=Ze&&t&&!t.nodeType&&t,Je=Ge&&Ge.exports===Ze,Ye=Je&&Ke.process,Qe=function(){try{return Ge&&Ge.require&&Ge.require("util").types||Ye&&Ye.binding&&Ye.binding("util")}catch(t){}}(),Xe=Qe&&Qe.isArrayBuffer,tn=Qe&&Qe.isDate,en=Qe&&Qe.isMap,nn=Qe&&Qe.isRegExp,rn=Qe&&Qe.isSet,on=Qe&&Qe.isTypedArray,un=E("length"),an=C({À:"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"}),cn=C({"&":"&","<":"<",">":">",'"':""","'":"'"}),sn=C({"&":"&","<":"<",">":">",""":'"',"'":"'"}),ln=function t(e){var n,i,C=function(t){if(Po(t)&&!Pa(t)&&!r(t,le)){if(r(t,se))return t;if(bi.call(t,"__wrapped__"))return no(t)}return new se(t)},qt=function(){},se=function(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=u},le=function(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=et,this.__views__=[]},fe=function(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}},de=function(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}},pe=function(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}},he=function(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new pe;++e<n;)this.add(t[e])},ve=function(t){var e=this.__data__=new de(t);this.size=e.size},ye=function(t,e){var n=Pa(t),r=!n&&Aa(t),o=!n&&!r&&Ta(t),i=!n&&!r&&!o&&Ba(t),u=n||r||o||i,a=u?P(t.length,di):[],c=a.length;for(var s in t)!e&&!bi.call(t,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Hr(s,c))||a.push(s);return a},ge=function(t){var e=t.length;return e?t[kn(0,e-1)]:u},me=function(t,e){return Xr(or(t),Ce(e,0,t.length))},be=function(t){return Xr(or(t))},we=function(t,e,n){(n!==u&&!So(t[e],n)||n===u&&!(e in t))&&je(t,e,n)},_e=function(t,e,n){var r=t[e];bi.call(t,e)&&So(r,n)&&(n!==u||e in t)||je(t,e,n)},Se=function(t,e){for(var n=t.length;n--;)if(So(t[n][0],e))return n;return-1},xe=function(t,e,n,r){return mu(t,(function(t,o,i){e(r,t,n(t),i)})),r},Oe=function(t,e){return t&&ir(e,zo(e),t)},je=function(t,e,n){"__proto__"==e&&Bi?Bi(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},Ee=function(t,e){for(var n=-1,r=e.length,o=ii(r),i=null==t;++n<r;)o[n]=i?u:Vo(t,e[n]);return o},Ce=function(t,e,n){return t==t&&(n!==u&&(t=t<=n?t:n),e!==u&&(t=t>=e?t:e)),t},ke=function(t,e,n){var r=n.length;if(null==t)return!r;for(t=li(t);r--;){var o=n[r],i=e[o],a=t[o];if(a===u&&!(o in t)||!i(a))return!1}return!0},Ae=function(t,e,n){if("function"!=typeof t)throw new pi(W);return Fu((function(){t.apply(u,n)}),e)},Pe=function(t,e,n,r){var o=-1,i=p,u=!0,a=t.length,c=[],s=e.length;if(!a)return c;n&&(e=v(e,T(n))),r?(i=h,u=!1):e.length>=200&&(i=R,u=!1,e=new he(e));t:for(;++o<a;){var l=t[o],f=null==n?l:n(l);if(l=r||0!==l?l:0,u&&f==f){for(var d=s;d--;)if(e[d]===f)continue t;c.push(l)}else i(e,f,r)||c.push(l)}return c},Ie=function(t,e){var n=!0;return mu(t,(function(t,r,o){return n=!!e(t,r,o)})),n},Re=function(t,e,n){for(var r=-1,o=t.length;++r<o;){var i=t[r],a=e(i);if(null!=a&&(c===u?a==a&&!Ro(a):n(a,c)))var c=a,s=i}return s},De=function(t,e){var n=[];return mu(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n},Ve=function(t,e){return t&&_u(t,e,zo)},Ke=function(t,e){return t&&Su(t,e,zo)},qe=function(t,e){return d(e,(function(e){return Eo(t[e])}))},Ze=function(t,e){for(var n=0,r=(e=Jn(e,t)).length;null!=t&&n<r;)t=t[to(e[n++])];return n&&n==r?t:u},Ge=function(t,e,n){var r=e(t);return Pa(t)?r:y(r,n(t))},Ye=function(t){return null==t?t===u?"[object Undefined]":"[object Null]":Di&&Di in li(t)?function(t){var e=bi.call(t,Di),n=t[Di];try{t[Di]=u;var r=!0}catch(t){}var o=Si.call(t);return r&&(e?t[Di]=n:delete t[Di]),o}(t):(e=t,Si.call(e));var e},Qe=function(t,e){return t>e},un=function(t,e){return null!=t&&bi.call(t,e)},fn=function(t,e){return null!=t&&e in li(t)},dn=function(t,e,n){for(var r=n?h:p,o=t[0].length,i=t.length,a=i,c=ii(i),s=1/0,l=[];a--;){var f=t[a];a&&e&&(f=v(f,T(e))),s=Gi(f.length,s),c[a]=!n&&(e||o>=120&&f.length>=120)?new he(a&&f):u}f=t[0];var d=-1,y=c[0];t:for(;++d<o&&l.length<s;){var g=f[d],m=e?e(g):g;if(g=n||0!==g?g:0,!(y?R(y,m):r(l,m,n))){for(a=i;--a;){var b=c[a];if(!(b?R(b,m):r(t[a],m,n)))continue t}y&&y.push(m),l.push(g)}}return l},pn=function(t,e,n){var r=null==(t=Zr(t,e=Jn(e,t)))?t:t[to(ao(e))];return null==r?u:a(r,t,n)},hn=function(t){return Po(t)&&Ye(t)==rt},vn=function(t,e,n,r){var o=n.length,i=o,a=!r;if(null==t)return!i;for(t=li(t);o--;){var c=n[o];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<i;){var s=(c=n[o])[0],l=t[s],f=c[1];if(a&&c[2]){if(l===u&&!(s in t))return!1}else{var d=new ve;if(r)var p=r(l,f,s,t,e,d);if(!(p===u?xu(f,l,3,r,d):p))return!1}}return!0},yn=function(t){return!(!Ao(t)||(e=t,_i&&_i in e))&&(Eo(t)?ji:re).test(eo(t));var e},gn=function(t){return"function"==typeof t?t:null==t?Qo:"object"==typeof t?Pa(t)?Sn(t[0],t[1]):_n(t):ni(t)},mn=function(t){if(!zr(t))return Wi(t);var e=[];for(var n in li(t))bi.call(t,n)&&"constructor"!=n&&e.push(n);return e},bn=function(t,e){return t<e},wn=function(t,e){var n=-1,r=xo(t)?ii(t.length):[];return mu(t,(function(t,o,i){r[++n]=e(t,o,i)})),r},_n=function(t){var e=Mr(t);return 1==e.length&&e[0][2]?qr(e[0][0],e[0][1]):function(n){return n===t||vn(n,t,e)}},Sn=function(t,e){return Vr(t)&&Kr(e)?qr(to(t),e):function(n){var r=Vo(n,t);return r===u&&r===e?$o(n,t):xu(e,r,3)}},xn=function(t,e){var n=t.length;if(n)return Hr(e+=e<0?n:0,n)?t[e]:u},On=function(t,e,n){e=e.length?v(e,(function(t){return Pa(t)?function(e){return Ze(e,1===t.length?t[0]:t)}:t})):[Qo];var r=-1;return e=v(e,T(Lr())),function(t,e){var r=t.length;for(t.sort((function(t,e){return function(t,e,n){for(var r=-1,o=t.criteria,i=e.criteria,u=o.length,a=n.length;++r<u;){var c=er(o[r],i[r]);if(c)return r>=a?c:c*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}));r--;)t[r]=t[r].value;return t}(wn(t,(function(t,n,o){return{criteria:v(e,(function(e){return e(t)})),index:++r,value:t}})))},jn=function(t,e,n){for(var r=-1,o=e.length,i={};++r<o;){var u=e[r],a=Ze(t,u);n(a,u)&&Ln(i,Jn(u,t),a)}return i},En=function(t,e,n,r){var o=r?x:S,i=-1,u=e.length,a=t;for(t===e&&(e=or(e)),n&&(a=v(t,T(n)));++i<u;)for(var c=0,s=e[i],l=n?n(s):s;(c=o(a,l,c,r))>-1;)a!==t&&Li.call(a,c,1),Li.call(t,c,1);return t},Cn=function(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;Hr(o)?Li.call(t,o,1):Vn(t,o)}}return t},kn=function(t,e){return t+Vi(Qi()*(e-t+1))},An=function(t,e){var n="";if(!t||e<1||e>X)return n;do{e%2&&(n+=t),(e=Vi(e/2))&&(t+=t)}while(e);return n},Pn=function(t,e){return Vu(Wr(t,e,Qo),t+"")},In=function(t){return ge(Wo(t))},Tn=function(t,e){var n=Wo(t);return Xr(n,Ce(e,0,n.length))},Ln=function(t,e,n,r){if(!Ao(t))return t;for(var o=-1,i=(e=Jn(e,t)).length,a=i-1,c=t;null!=c&&++o<i;){var s=to(e[o]),l=n;if("__proto__"===s||"constructor"===s||"prototype"===s)return t;if(o!=a){var f=c[s];(l=r?r(f,s,c):u)===u&&(l=Ao(f)?f:Hr(e[o+1])?[]:{})}_e(c,s,l),c=c[s]}return t},Rn=function(t){return Xr(Wo(t))},Mn=function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=ii(o);++r<o;)i[r]=t[r+e];return i},Dn=function(t,e){var n;return mu(t,(function(t,r,o){return!(n=e(t,r,o))})),!!n},Bn=function(t,e,n){var r=0,o=null==t?r:t.length;if("number"==typeof e&&e==e&&o<=2147483647){for(;r<o;){var i=r+o>>>1,u=t[i];null!==u&&!Ro(u)&&(n?u<=e:u<e)?r=i+1:o=i}return o}return Nn(t,e,Qo,n)},Nn=function(t,e,n,r){var o=0,i=null==t?0:t.length;if(0===i)return 0;for(var a=(e=n(e))!=e,c=null===e,s=Ro(e),l=e===u;o<i;){var f=Vi((o+i)/2),d=n(t[f]),p=d!==u,h=null===d,v=d==d,y=Ro(d);if(a)var g=r||v;else g=l?v&&(r||p):c?v&&p&&(r||!h):s?v&&p&&!h&&(r||!y):!h&&!y&&(r?d<=e:d<e);g?o=f+1:i=f}return Gi(i,4294967294)},Un=function(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var u=t[n],a=e?e(u):u;if(!n||!So(a,c)){var c=a;i[o++]=0===u?0:u}}return i},Hn=function(t){return"number"==typeof t?t:Ro(t)?tt:+t},Fn=function(t,e,n){var r=-1,o=p,i=t.length,u=!0,a=[],c=a;if(n)u=!1,o=h;else if(i>=200){var s=e?null:Iu(t);if(s)return $(s);u=!1,o=R,c=new he}else c=e?[]:a;t:for(;++r<i;){var l=t[r],f=e?e(l):l;if(l=n||0!==l?l:0,u&&f==f){for(var d=c.length;d--;)if(c[d]===f)continue t;e&&c.push(f),a.push(l)}else o(c,f,n)||(c!==a&&c.push(f),a.push(l))}return a},Vn=function(t,e){return null==(t=Zr(t,e=Jn(e,t)))||delete t[to(ao(e))]},$n=function(t,e,n,r){return Ln(t,e,n(Ze(t,e)),r)},zn=function(t,e,n,r){for(var o=t.length,i=r?o:-1;(r?i--:++i<o)&&e(t[i],i,t););return n?Mn(t,r?0:i,r?i+1:o):Mn(t,r?i+1:0,r?o:i)},Kn=function(t,e){var n=t;return r(n,le)&&(n=n.value()),g(e,(function(t,e){return e.func.apply(e.thisArg,y([t],e.args))}),n)},qn=function(t,e,n){var r=t.length;if(r<2)return r?Fn(t[0]):[];for(var o=-1,i=ii(r);++o<r;)for(var u=t[o],a=-1;++a<r;)a!=o&&(i[o]=Pe(i[o]||u,t[a],e,n));return Fn(wu(i,1),e,n)},Wn=function(t,e,n){for(var r=-1,o=t.length,i=e.length,a={};++r<o;){var c=r<i?e[r]:u;n(a,t[r],c)}return a},Zn=function(t){return Oo(t)?t:[]},Gn=function(t){return"function"==typeof t?t:Qo},Jn=function(t,e){return Pa(t)?t:Vr(t,e)?[t]:$u(Fo(t))},Yn=function(t,e,n){var r=t.length;return n=n===u?r:n,!e&&n>=r?t:Mn(t,e,n)},Qn=function(t,e){if(e)return t.slice();var n=t.length,r=Ai?Ai(n):new t.constructor(n);return t.copy(r),r},Xn=function(t){var e=new t.constructor(t.byteLength);return new ki(e).set(new ki(t)),e},tr=function(t,e){var n=e?Xn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)},er=function(t,e){if(t!==e){var n=t!==u,r=null===t,o=t==t,i=Ro(t),a=e!==u,c=null===e,s=e==e,l=Ro(e);if(!c&&!l&&!i&&t>e||i&&a&&s&&!c&&!l||r&&a&&s||!n&&s||!o)return 1;if(!r&&!i&&!l&&t<e||l&&n&&o&&!r&&!i||c&&n&&o||!a&&o||!s)return-1}return 0},nr=function(t,e,n,r){for(var o=-1,i=t.length,u=n.length,a=-1,c=e.length,s=Zi(i-u,0),l=ii(c+s),f=!r;++a<c;)l[a]=e[a];for(;++o<u;)(f||o<i)&&(l[n[o]]=t[o]);for(;s--;)l[a++]=t[o++];return l},rr=function(t,e,n,r){for(var o=-1,i=t.length,u=-1,a=n.length,c=-1,s=e.length,l=Zi(i-a,0),f=ii(l+s),d=!r;++o<l;)f[o]=t[o];for(var p=o;++c<s;)f[p+c]=e[c];for(;++u<a;)(d||o<i)&&(f[p+n[u]]=t[o++]);return f},or=function(t,e){var n=-1,r=t.length;for(e||(e=ii(r));++n<r;)e[n]=t[n];return e},ir=function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,a=e.length;++i<a;){var c=e[i],s=r?r(n[c],t[c],c,n,t):u;s===u&&(s=t[c]),o?je(n,c,s):_e(n,c,s)}return n},ur=function(t,e){return function(n,r){var o=Pa(n)?c:xe,i=e?e():{};return o(n,t,Lr(r,2),i)}},ar=function(t){return Pn((function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:u,a=o>2?n[2]:u;for(i=t.length>3&&"function"==typeof i?(o--,i):u,a&&Fr(n[0],n[1],a)&&(i=o<3?u:i,o=1),e=li(e);++r<o;){var c=n[r];c&&t(e,c,r,i)}return e}))},cr=function(t,e){return function(n,r){if(null==n)return n;if(!xo(n))return t(n,r);for(var o=n.length,i=e?o:-1,u=li(n);(e?i--:++i<o)&&!1!==r(u[i],i,u););return n}},sr=function(t){return function(e,n,r){for(var o=-1,i=li(e),u=r(e),a=u.length;a--;){var c=u[t?a:++o];if(!1===n(i[c],c,i))break}return e}},lr=function(t){return function(e){var n=U(e=Fo(e))?K(e):u,r=n?n[0]:e.charAt(0),o=n?Yn(n,1).join(""):e.slice(1);return r[t]()+o}},fr=function(t){return function(e){return g(Jo(Go(e).replace(Te,"")),t,"")}},dr=function(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=yu(t.prototype),r=t.apply(n,e);return Ao(r)?r:n}},pr=function(t){return function(e,n,r){var o=li(e);if(!xo(e)){var i=Lr(n,3);e=zo(e),n=function(t){return i(o[t],t,o)}}var a=t(e,n,r);return a>-1?o[i?e[a]:a]:u}},hr=function(t){return kr((function(e){var n=e.length,r=n,o=se.prototype.thru;for(t&&e.reverse();r--;){var i=e[r];if("function"!=typeof i)throw new pi(W);if(o&&!a&&"wrapper"==Ir(i))var a=new se([],!0)}for(r=a?r:n;++r<n;){var c=Ir(i=e[r]),s="wrapper"==c?Lu(i):u;a=s&&$r(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?a[Ir(s[0])].apply(a,s[3]):1==i.length&&$r(i)?a[c]():a.thru(i)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&Pa(r))return a.plant(r).value();for(var o=0,i=n?e[o].apply(this,t):r;++o<n;)i=e[o].call(this,i);return i}}))},vr=function(t,e){return function(n,r){return o=n,i=t,u=e(r),a={},Ve(o,(function(t,e,n){i(a,u(t),e,n)})),a;var o,i,u,a}},yr=function(t,e){return function(n,r){var o;if(n===u&&r===u)return e;if(n!==u&&(o=n),r!==u){if(o===u)return r;"string"==typeof n||"string"==typeof r?(n=Cu(n),r=Cu(r)):(n=Hn(n),r=Hn(r)),o=t(n,r)}return o}},gr=function(t){return kr((function(e){return e=v(e,T(Lr())),Pn((function(n){var r=this;return t(e,(function(t){return a(t,r,n)}))}))}))},mr=function(t,e){var n=(e=e===u?" ":Cu(e)).length;if(n<2)return n?An(e,t):e;var r=An(e,Fi(t/z(e)));return U(e)?Yn(K(r),0,t).join(""):r.slice(0,t)},br=function(t){return function(e,n,r){return r&&"number"!=typeof r&&Fr(e,n,r)&&(n=r=u),e=Do(e),n===u?(n=e,e=0):n=Do(n),function(t,e,n,r){for(var o=-1,i=Zi(Fi((e-t)/(n||1)),0),u=ii(i);i--;)u[r?i:++o]=t,t+=n;return u}(e,n,r=r===u?e<n?1:-1:Do(r),t)}},wr=function(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Uo(e),n=Uo(n)),t(e,n)}},_r=function(t,e,n,r,o,i,a,c,s,l){var f=8&e;e|=f?J:64,4&(e&=~(f?64:J))||(e&=-4);var d=[t,e,o,f?i:u,f?a:u,f?u:i,f?u:a,c,s,l],p=n.apply(u,d);return $r(t)&&Hu(p,d),p.placeholder=r,Yr(p,t,e)},Sr=function(t){var e=si[t];return function(t,n){if(t=Uo(t),(n=null==n?0:Gi(Bo(n),292))&&Ki(t)){var r=(Fo(t)+"e").split("e");return+((r=(Fo(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}},xr=function(t){return function(e){var n,r,o=Du(e);return o==lt?H(e):o==vt?function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}(e):(n=e,r=t(e),v(r,(function(t){return[t,n[t]]})))}},Or=function(t,e,n,o,i,c,s,l){var f=2&e;if(!f&&"function"!=typeof t)throw new pi(W);var d=o?o.length:0;if(d||(e&=-97,o=i=u),s=s===u?s:Zi(Bo(s),0),l=l===u?l:Bo(l),d-=i?i.length:0,64&e){var p=o,h=i;o=i=u}var v,y,g,m,b=f?u:Lu(t),w=[t,e,n,o,i,p,h,c,s,l];if(b&&function(t,e){var n=t[1],r=e[1],o=n|r,i=o<131,u=r==Y&&8==n||r==Y&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!i&&!u)return t;1&r&&(t[2]=e[2],o|=1&n?0:4);var a=e[3];if(a){var c=t[3];t[3]=c?nr(c,a,e[4]):a,t[4]=c?V(t[3],G):e[4]}(a=e[5])&&(c=t[5],t[5]=c?rr(c,a,e[6]):a,t[6]=c?V(t[5],G):e[6]),(a=e[7])&&(t[7]=a),r&Y&&(t[8]=null==t[8]?e[8]:Gi(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o}(w,b),t=w[0],e=w[1],n=w[2],o=w[3],i=w[4],!(l=w[9]=w[9]===u?f?0:t.length:Zi(w[9]-d,0))&&24&e&&(e&=-25),e&&1!=e)_=8==e||16==e?(y=e,g=l,m=dr(v=t),function t(){for(var e=arguments.length,n=ii(e),o=e,i=Tr(t);o--;)n[o]=arguments[o];var c=e<3&&n[0]!==i&&n[e-1]!==i?[]:V(n,i);return(e-=c.length)<g?_r(v,y,Pu,t.placeholder,u,n,c,u,u,g-e):a(this&&this!==We&&r(this,t)?m:v,this,n)}):e!=J&&33!=e||i.length?Pu.apply(u,w):function(t,e,n,o){var i=1&e,u=dr(t);return function e(){for(var c=-1,s=arguments.length,l=-1,f=o.length,d=ii(f+s),p=this&&this!==We&&r(this,e)?u:t;++l<f;)d[l]=o[l];for(;s--;)d[l++]=arguments[++c];return a(p,i?n:this,d)}}(t,e,n,o);else var _=function(t,e,n){var o=1&e,i=dr(t);return function e(){return(this&&this!==We&&r(this,e)?i:t).apply(o?n:this,arguments)}}(t,e,n);return Yr((b?ju:Hu)(_,w),t,e)},jr=function(t,e,n,r){return t===u||So(t,yi[n])&&!bi.call(r,n)?e:t},Er=function(t){return To(t)?u:t},Cr=function(t,e,n,r,o,i){var a=1&n,c=t.length,s=e.length;if(c!=s&&!(a&&s>c))return!1;var l=i.get(t),f=i.get(e);if(l&&f)return l==e&&f==t;var d=-1,p=!0,h=2&n?new he:u;for(i.set(t,e),i.set(e,t);++d<c;){var v=t[d],y=e[d];if(r)var g=a?r(y,v,d,e,t,i):r(v,y,d,t,e,i);if(g!==u){if(g)continue;p=!1;break}if(h){if(!b(e,(function(t,e){if(!R(h,e)&&(v===t||o(v,t,n,r,i)))return h.push(e)}))){p=!1;break}}else if(v!==y&&!o(v,y,n,r,i)){p=!1;break}}return i.delete(t),i.delete(e),p},kr=function(t){return Vu(Wr(t,u,io),t+"")},Ar=function(t){return Ge(t,zo,Ru)},Pr=function(t){return Ge(t,Ko,Mu)},Ir=function(t){for(var e=t.name+"",n=au[e],r=bi.call(au,e)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==t)return o.name}return e},Tr=function(t){return(bi.call(C,"placeholder")?C:t).placeholder},Lr=function(){var t=C.iteratee||Xo;return t=t===Xo?gn:t,arguments.length?t(arguments[0],arguments[1]):t},Rr=function(t,e){var n,r,i=t.__data__;return("string"==(r=o(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map},Mr=function(t){for(var e=zo(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,Kr(o)]}return e},Dr=function(t,e){var n,r=null==(n=t)?u:n[e];return yn(r)?r:u},Br=function(t,e,n){for(var r=-1,o=(e=Jn(e,t)).length,i=!1;++r<o;){var u=to(e[r]);if(!(i=null!=t&&n(t,u)))break;t=t[u]}return i||++r!=o?i:!!(o=null==t?0:t.length)&&ko(o)&&Hr(u,o)&&(Pa(t)||Aa(t))},Nr=function(t){return"function"!=typeof t.constructor||zr(t)?{}:yu(Pi(t))},Ur=function(t){return Pa(t)||Aa(t)||!!(Ri&&t&&t[Ri])},Hr=function(t,e){var n=void 0===t?"undefined":o(t);return!!(e=null==e?X:e)&&("number"==n||"symbol"!=n&&ie.test(t))&&t>-1&&t%1==0&&t<e},Fr=function(t,e,n){if(!Ao(n))return!1;var r=void 0===e?"undefined":o(e);return!!("number"==r?xo(n)&&Hr(e,n.length):"string"==r&&e in n)&&So(n[e],t)},Vr=function(t,e){if(Pa(t))return!1;var n=void 0===t?"undefined":o(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Ro(t))||Ft.test(t)||!Ht.test(t)||null!=e&&t in li(e)},$r=function(t){var e=Ir(t),n=C[e];if("function"!=typeof n||!(e in le.prototype))return!1;if(t===n)return!0;var r=Lu(n);return!!r&&t===r[0]},zr=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||yi)},Kr=function(t){return t==t&&!Ao(t)},qr=function(t,e){return function(n){return null!=n&&n[t]===e&&(e!==u||t in li(n))}},Wr=function(t,e,n){return e=Zi(e===u?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Zi(r.length-e,0),u=ii(i);++o<i;)u[o]=r[e+o];o=-1;for(var c=ii(e+1);++o<e;)c[o]=r[o];return c[e]=n(u),a(t,this,c)}},Zr=function(t,e){return e.length<2?t:Ze(t,Mn(e,0,-1))},Gr=function(t,e){for(var n=t.length,r=Gi(e.length,n),o=or(t);r--;){var i=e[r];t[r]=Hr(i,n)?o[i]:u}return t},Jr=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},Yr=function(t,e,n){var r,o,i,u=e+"";return Vu(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Wt,"{\n/* [wrapped with "+e+"] */\n")}(u,(o=(r=u.match(Zt))?r[1].split(Gt):[],i=n,s(nt,(function(t){var e="_."+t[0];i&t[1]&&!p(o,e)&&o.push(e)})),o.sort())))},Qr=function(t){var e=0,n=0;return function(){var r=Ji(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(u,arguments)}},Xr=function(t,e){var n=-1,r=t.length,o=r-1;for(e=e===u?r:e;++n<e;){var i=kn(n,o),a=t[i];t[i]=t[n],t[n]=a}return t.length=e,t},to=function(t){if("string"==typeof t||Ro(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},eo=function(t){if(null!=t){try{return mi.call(t)}catch(t){}try{return t+""}catch(t){}}return""},no=function(t){if(r(t,le))return t.clone();var e=new se(t.__wrapped__,t.__chain__);return e.__actions__=or(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e},ro=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:Bo(n);return o<0&&(o=Zi(r+o,0)),_(t,Lr(e,3),o)},oo=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==u&&(o=Bo(n),o=n<0?Zi(r+o,0):Gi(o,r-1)),_(t,Lr(e,3),o,!0)},io=function(t){return null!=t&&t.length?wu(t,1):[]},uo=function(t){return t&&t.length?t[0]:u},ao=function(t){var e=null==t?0:t.length;return e?t[e-1]:u},co=function(t,e){return t&&t.length&&e&&e.length?En(t,e):t},so=function(t){return null==t?t:Xi.call(t)},lo=function(t){if(!t||!t.length)return[];var e=0;return t=d(t,(function(t){if(Oo(t))return e=Zi(t.length,e),!0})),P(e,(function(e){return v(t,E(e))}))},fo=function(t,e){if(!t||!t.length)return[];var n=lo(t);return null==e?n:v(n,(function(t){return a(e,u,t)}))},po=function(t){var e=C(t);return e.__chain__=!0,e},ho=function(t,e){return e(t)},vo=function(t,e){return(Pa(t)?s:mu)(t,Lr(e,3))},yo=function(t,e){return(Pa(t)?l:bu)(t,Lr(e,3))},go=function(t,e){return(Pa(t)?v:wn)(t,Lr(e,3))},mo=function(t,e,n){return e=n?u:e,e=t&&null==e?t.length:e,Or(t,Y,u,u,u,u,e)},bo=function(t,e){var n;if("function"!=typeof e)throw new pi(W);return t=Bo(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=u),n}},wo=function(t,e,n){var r,o,i,a,c,s,l=0,f=!1,d=!1,p=!0;if("function"!=typeof t)throw new pi(W);function h(e){var n=r,i=o;return r=o=u,l=e,a=t.apply(i,n)}function v(t){return l=t,c=Fu(g,e),f?h(t):a}function y(t){var n=t-s;return s===u||n>=e||n<0||d&&t-l>=i}function g(){var t,n,r=ya();if(y(r))return m(r);c=Fu(g,(n=e-((t=r)-s),d?Gi(n,i-(t-l)):n))}function m(t){return c=u,p&&r?h(t):(r=o=u,a)}function b(){var t=ya(),n=y(t);if(r=arguments,o=this,s=t,n){if(c===u)return v(s);if(d)return Au(c),c=Fu(g,e),h(s)}return c===u&&(c=Fu(g,e)),a}return e=Uo(e)||0,Ao(n)&&(f=!!n.leading,i=(d="maxWait"in n)?Zi(Uo(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),b.cancel=function(){c!==u&&Au(c),l=0,r=s=o=c=u},b.flush=function(){return c===u?a:m(ya())},b},_o=function(t){if("function"!=typeof t)throw new pi(W);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}},So=function(t,e){return t===e||t!=t&&e!=e},xo=function(t){return null!=t&&ko(t.length)&&!Eo(t)},Oo=function(t){return Po(t)&&xo(t)},jo=function(t){if(!Po(t))return!1;var e=Ye(t);return e==at||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!To(t)},Eo=function(t){if(!Ao(t))return!1;var e=Ye(t);return e==ct||e==st||"[object AsyncFunction]"==e||"[object Proxy]"==e},Co=function(t){return"number"==typeof t&&t==Bo(t)},ko=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=X},Ao=function(t){var e=void 0===t?"undefined":o(t);return null!=t&&("object"==e||"function"==e)},Po=function(t){return null!=t&&"object"==typeof t},Io=function(t){return"number"==typeof t||Po(t)&&Ye(t)==ft},To=function(t){if(!Po(t)||Ye(t)!=dt)return!1;var e=Pi(t);if(null===e)return!0;var n=bi.call(e,"constructor")&&e.constructor;return"function"==typeof n&&r(n,n)&&mi.call(n)==xi},Lo=function(t){return"string"==typeof t||!Pa(t)&&Po(t)&&Ye(t)==yt},Ro=function(t){return"symbol"==(void 0===t?"undefined":o(t))||Po(t)&&Ye(t)==gt},Mo=function(t){if(!t)return[];if(xo(t))return Lo(t)?K(t):or(t);if(Mi&&t[Mi])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Mi]());var e=Du(t);return(e==lt?H:e==vt?$:Wo)(t)},Do=function(t){return t?(t=Uo(t))===Q||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},Bo=function(t){var e=Do(t),n=e%1;return e==e?n?e-n:e:0},No=function(t){return t?Ce(Bo(t),0,et):0},Uo=function(t){if("number"==typeof t)return t;if(Ro(t))return tt;if(Ao(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ao(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=I(t);var n=ne.test(t);return n||oe.test(t)?ze(t.slice(2),n?2:8):ee.test(t)?tt:+t},Ho=function(t){return ir(t,Ko(t))},Fo=function(t){return null==t?"":Cu(t)},Vo=function(t,e,n){var r=null==t?u:Ze(t,e);return r===u?n:r},$o=function(t,e){return null!=t&&Br(t,e,fn)},zo=function(t){return xo(t)?ye(t):mn(t)},Ko=function(t){return xo(t)?ye(t,!0):function(t){if(!Ao(t))return function(t){var e=[];if(null!=t)for(var n in li(t))e.push(n);return e}(t);var e=zr(t),n=[];for(var r in t)("constructor"!=r||!e&&bi.call(t,r))&&n.push(r);return n}(t)},qo=function(t,e){if(null==t)return{};var n=v(Pr(t),(function(t){return[t]}));return e=Lr(e),jn(t,n,(function(t,n){return e(t,n[0])}))},Wo=function(t){return null==t?[]:L(t,zo(t))},Zo=function(t){return sc(Fo(t).toLowerCase())},Go=function(t){return(t=Fo(t))&&t.replace(ue,an).replace(Le,"")},Jo=function(t,e,n){return t=Fo(t),(e=n?u:e)===u?(r=t,Be.test(r)?function(t){return t.match(Me)||[]}(t):function(t){return t.match(Jt)||[]}(t)):t.match(e)||[];var r},Yo=function(t){return function(){return t}},Qo=function(t){return t},Xo=function(t){return gn("function"==typeof t?t:gu(t,1))},ti=function(t,e,n){var r=zo(e),o=qe(e,r);null!=n||Ao(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=qe(e,zo(e)));var i=!(Ao(n)&&"chain"in n&&!n.chain),u=Eo(t);return s(o,(function(n){var r=e[n];t[n]=r,u&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__),o=n.__actions__=or(this.__actions__);return o.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,y([this.value()],arguments))})})),t},ei=function(){},ni=function(t){return Vr(t)?E(to(t)):(e=t,function(t){return Ze(t,e)});var e},ri=function(){return[]},oi=function(){return!1},ii=(e=null==e?We:ln.defaults(We.Object(),e,ln.pick(We,Ne))).Array,ui=e.Date,ai=e.Error,ci=e.Function,si=e.Math,li=e.Object,fi=e.RegExp,di=e.String,pi=e.TypeError,hi=ii.prototype,vi=ci.prototype,yi=li.prototype,gi=e["__core-js_shared__"],mi=vi.toString,bi=yi.hasOwnProperty,wi=0,_i=(n=/[^.]+$/.exec(gi&&gi.keys&&gi.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Si=yi.toString,xi=mi.call(li),Oi=We._,ji=fi("^"+mi.call(bi).replace($t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ei=Je?e.Buffer:u,Ci=e.Symbol,ki=e.Uint8Array,Ai=Ei?Ei.allocUnsafe:u,Pi=F(li.getPrototypeOf,li),Ii=li.create,Ti=yi.propertyIsEnumerable,Li=hi.splice,Ri=Ci?Ci.isConcatSpreadable:u,Mi=Ci?Ci.iterator:u,Di=Ci?Ci.toStringTag:u,Bi=function(){try{var t=Dr(li,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ni=e.clearTimeout!==We.clearTimeout&&e.clearTimeout,Ui=ui&&ui.now!==We.Date.now&&ui.now,Hi=e.setTimeout!==We.setTimeout&&e.setTimeout,Fi=si.ceil,Vi=si.floor,$i=li.getOwnPropertySymbols,zi=Ei?Ei.isBuffer:u,Ki=e.isFinite,qi=hi.join,Wi=F(li.keys,li),Zi=si.max,Gi=si.min,Ji=ui.now,Yi=e.parseInt,Qi=si.random,Xi=hi.reverse,tu=Dr(e,"DataView"),eu=Dr(e,"Map"),nu=Dr(e,"Promise"),ru=Dr(e,"Set"),ou=Dr(e,"WeakMap"),iu=Dr(li,"create"),uu=ou&&new ou,au={},cu=eo(tu),su=eo(eu),lu=eo(nu),fu=eo(ru),du=eo(ou),pu=Ci?Ci.prototype:u,hu=pu?pu.valueOf:u,vu=pu?pu.toString:u,yu=(i=function(){},function(t){if(!Ao(t))return{};if(Ii)return Ii(t);i.prototype=t;var e=new i;return i.prototype=u,e});function gu(t,e,n,r,o,i){var a,c=1&e,l=2&e,f=4&e;if(n&&(a=o?n(t,r,o,i):n(t)),a!==u)return a;if(!Ao(t))return t;var d,p,h,v=Pa(t);if(v){if(p=(d=t).length,h=new d.constructor(p),p&&"string"==typeof d[0]&&bi.call(d,"index")&&(h.index=d.index,h.input=d.input),a=h,!c)return or(t,a)}else{var y=Du(t),g=y==ct||y==st;if(Ta(t))return Qn(t,c);if(y==dt||y==rt||g&&!o){if(a=l||g?{}:Nr(t),!c)return l?function(t,e){return ir(t,Mu(t),e)}(t,function(t,e){return t&&ir(e,Ko(e),t)}(a,t)):function(t,e){return ir(t,Ru(t),e)}(t,Oe(a,t))}else{if(!Fe[y])return o?t:{};a=function(t,e,n){var r,o=t.constructor;switch(e){case bt:return Xn(t);case it:case ut:return new o(+t);case wt:return function(t,e){var n=e?Xn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case _t:case St:case xt:case Ot:case jt:case Et:case Ct:case kt:case At:return tr(t,n);case lt:return new o;case ft:case yt:return new o(t);case ht:return function(t){var e=new t.constructor(t.source,te.exec(t));return e.lastIndex=t.lastIndex,e}(t);case vt:return new o;case gt:return r=t,hu?li(hu.call(r)):{}}}(t,y,c)}}i||(i=new ve);var m=i.get(t);if(m)return m;i.set(t,a),Da(t)?t.forEach((function(r){a.add(gu(r,e,n,r,t,i))})):Ra(t)&&t.forEach((function(r,o){a.set(o,gu(r,e,n,o,t,i))}));var b=v?u:(f?l?Pr:Ar:l?Ko:zo)(t);return s(b||t,(function(r,o){b&&(r=t[o=r]),_e(a,o,gu(r,e,n,o,t,i))})),a}C.templateSettings={escape:Bt,evaluate:Nt,interpolate:Ut,variable:"",imports:{_:C}},(C.prototype=qt.prototype).constructor=C,se.prototype=yu(qt.prototype),se.prototype.constructor=se,le.prototype=yu(qt.prototype),le.prototype.constructor=le,fe.prototype.clear=function(){this.__data__=iu?iu(null):{},this.size=0},fe.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},fe.prototype.get=function(t){var e=this.__data__;if(iu){var n=e[t];return n===Z?u:n}return bi.call(e,t)?e[t]:u},fe.prototype.has=function(t){var e=this.__data__;return iu?e[t]!==u:bi.call(e,t)},fe.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=iu&&e===u?Z:e,this},de.prototype.clear=function(){this.__data__=[],this.size=0},de.prototype.delete=function(t){var e=this.__data__,n=Se(e,t);return!(n<0||(n==e.length-1?e.pop():Li.call(e,n,1),--this.size,0))},de.prototype.get=function(t){var e=this.__data__,n=Se(e,t);return n<0?u:e[n][1]},de.prototype.has=function(t){return Se(this.__data__,t)>-1},de.prototype.set=function(t,e){var n=this.__data__,r=Se(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},pe.prototype.clear=function(){this.size=0,this.__data__={hash:new fe,map:new(eu||de),string:new fe}},pe.prototype.delete=function(t){var e=Rr(this,t).delete(t);return this.size-=e?1:0,e},pe.prototype.get=function(t){return Rr(this,t).get(t)},pe.prototype.has=function(t){return Rr(this,t).has(t)},pe.prototype.set=function(t,e){var n=Rr(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},he.prototype.add=he.prototype.push=function(t){return this.__data__.set(t,Z),this},he.prototype.has=function(t){return this.__data__.has(t)},ve.prototype.clear=function(){this.__data__=new de,this.size=0},ve.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},ve.prototype.get=function(t){return this.__data__.get(t)},ve.prototype.has=function(t){return this.__data__.has(t)},ve.prototype.set=function(t,e){var n=this.__data__;if(r(n,de)){var o=n.__data__;if(!eu||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new pe(o)}return n.set(t,e),this.size=n.size,this};var mu=cr(Ve),bu=cr(Ke,!0);function wu(t,e,n,r,o){var i=-1,u=t.length;for(n||(n=Ur),o||(o=[]);++i<u;){var a=t[i];e>0&&n(a)?e>1?wu(a,e-1,n,r,o):y(o,a):r||(o[o.length]=a)}return o}var _u=sr(),Su=sr(!0);function xu(t,e,n,o,i){return t===e||(null==t||null==e||!Po(t)&&!Po(e)?t!=t&&e!=e:function(t,e,n,o,i,a){var c=Pa(t),s=Pa(e),l=c?ot:Du(t),f=s?ot:Du(e),d=(l=l==rt?dt:l)==dt,p=(f=f==rt?dt:f)==dt,h=l==f;if(h&&Ta(t)){if(!Ta(e))return!1;c=!0,d=!1}if(h&&!d)return a||(a=new ve),c||Ba(t)?Cr(t,e,n,o,i,a):function(t,e,n,r,o,i,u){switch(n){case wt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case bt:return!(t.byteLength!=e.byteLength||!i(new ki(t),new ki(e)));case it:case ut:case ft:return So(+t,+e);case at:return t.name==e.name&&t.message==e.message;case ht:case yt:return t==e+"";case lt:var a=H;case vt:var c=1&r;if(a||(a=$),t.size!=e.size&&!c)return!1;var s=u.get(t);if(s)return s==e;r|=2,u.set(t,e);var l=Cr(a(t),a(e),r,o,i,u);return u.delete(t),l;case gt:if(hu)return hu.call(t)==hu.call(e)}return!1}(t,e,l,n,o,i,a);if(!(1&n)){var v=d&&bi.call(t,"__wrapped__"),y=p&&bi.call(e,"__wrapped__");if(v||y){var g=v?t.value():t,m=y?e.value():e;return a||(a=new ve),i(g,m,n,o,a)}}return!!h&&(a||(a=new ve),function(t,e,n,o,i,a){var c=1&n,s=Ar(t),l=s.length;if(l!=Ar(e).length&&!c)return!1;for(var f=l;f--;){var d=s[f];if(!(c?d in e:bi.call(e,d)))return!1}var p=a.get(t),h=a.get(e);if(p&&h)return p==e&&h==t;var v=!0;a.set(t,e),a.set(e,t);for(var y=c;++f<l;){var g=t[d=s[f]],m=e[d];if(o)var b=c?o(m,g,d,e,t,a):o(g,m,d,t,e,a);if(!(b===u?g===m||i(g,m,n,o,a):b)){v=!1;break}y||(y="constructor"==d)}if(v&&!y){var w=t.constructor,_=e.constructor;w==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&r(w,w)&&"function"==typeof _&&r(_,_)||(v=!1)}return a.delete(t),a.delete(e),v}(t,e,n,o,i,a))}(t,e,n,o,xu,i))}function Ou(t,e,n,r,o){t!==e&&_u(e,(function(i,a){if(o||(o=new ve),Ao(i))!function(t,e,n,r,o,i,a){var c=Jr(t,n),s=Jr(e,n),l=a.get(s);if(l)we(t,n,l);else{var f=i?i(c,s,n+"",t,e,a):u,d=f===u;if(d){var p=Pa(s),h=!p&&Ta(s),v=!p&&!h&&Ba(s);f=s,p||h||v?Pa(c)?f=c:Oo(c)?f=or(c):h?(d=!1,f=Qn(s,!0)):v?(d=!1,f=tr(s,!0)):f=[]:To(s)||Aa(s)?(f=c,Aa(c)?f=Ho(c):Ao(c)&&!Eo(c)||(f=Nr(s))):d=!1}d&&(a.set(s,f),o(f,s,r,i,a),a.delete(s)),we(t,n,f)}}(t,e,a,n,Ou,r,o);else{var c=r?r(Jr(t,a),i,a+"",t,e,o):u;c===u&&(c=i),we(t,a,c)}}),Ko)}var ju=uu?function(t,e){return uu.set(t,e),t}:Qo,Eu=Bi?function(t,e){return Bi(t,"toString",{configurable:!0,enumerable:!1,value:Yo(e),writable:!0})}:Qo;function Cu(t){if("string"==typeof t)return t;if(Pa(t))return v(t,Cu)+"";if(Ro(t))return vu?vu.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}var ku=Pn,Au=Ni||function(t){return We.clearTimeout(t)};function Pu(t,e,n,o,i,a,c,s,l,f){var d=e&Y,p=1&e,h=2&e,v=24&e,y=512&e,g=h?u:dr(t);return function u(){for(var m=arguments.length,b=ii(m),w=m;w--;)b[w]=arguments[w];if(v)var _=Tr(u),S=B(b,_);if(o&&(b=nr(b,o,i,v)),a&&(b=rr(b,a,c,v)),m-=S,v&&m<f){var x=V(b,_);return _r(t,e,Pu,u.placeholder,n,b,x,s,l,f-m)}var O=p?n:this,j=h?O[t]:t;return m=b.length,s?b=Gr(b,s):y&&m>1&&b.reverse(),d&&l<m&&(b.length=l),this&&this!==We&&r(this,u)&&(j=g||dr(j)),j.apply(O,b)}}var Iu=ru&&1/$(new ru([,-0]))[1]==Q?function(t){return new ru(t)}:ei;function Tu(t,e,n,r,o,i){return Ao(t)&&Ao(e)&&(i.set(e,t),Ou(t,e,u,Tu,i),i.delete(e)),t}var Lu=uu?function(t){return uu.get(t)}:ei,Ru=$i?function(t){return null==t?[]:(t=li(t),d($i(t),(function(e){return Ti.call(t,e)})))}:ri,Mu=$i?function(t){for(var e=[];t;)y(e,Ru(t)),t=Pi(t);return e}:ri,Du=Ye;(tu&&Du(new tu(new ArrayBuffer(1)))!=wt||eu&&Du(new eu)!=lt||nu&&Du(nu.resolve())!=pt||ru&&Du(new ru)!=vt||ou&&Du(new ou)!=mt)&&(Du=function(t){var e=Ye(t),n=e==dt?t.constructor:u,r=n?eo(n):"";if(r)switch(r){case cu:return wt;case su:return lt;case lu:return pt;case fu:return vt;case du:return mt}return e});var Bu,Nu,Uu=gi?Eo:oi,Hu=Qr(ju),Fu=Hi||function(t,e){return We.setTimeout(t,e)},Vu=Qr(Eu),$u=(Bu=_a((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Vt,(function(t,n,r,o){e.push(r?o.replace(Qt,"$1"):n||t)})),e}),(function(t){return 500===Nu.size&&Nu.clear(),t})),Nu=Bu.cache,Bu),zu=Pn((function(t,e){return Oo(t)?Pe(t,wu(e,1,Oo,!0)):[]})),Ku=Pn((function(t,e){var n=ao(e);return Oo(n)&&(n=u),Oo(t)?Pe(t,wu(e,1,Oo,!0),Lr(n,2)):[]})),qu=Pn((function(t,e){var n=ao(e);return Oo(n)&&(n=u),Oo(t)?Pe(t,wu(e,1,Oo,!0),u,n):[]})),Wu=Pn((function(t){var e=v(t,Zn);return e.length&&e[0]===t[0]?dn(e):[]})),Zu=Pn((function(t){var e=ao(t),n=v(t,Zn);return e===ao(n)?e=u:n.pop(),n.length&&n[0]===t[0]?dn(n,Lr(e,2)):[]})),Gu=Pn((function(t){var e=ao(t),n=v(t,Zn);return(e="function"==typeof e?e:u)&&n.pop(),n.length&&n[0]===t[0]?dn(n,u,e):[]})),Ju=Pn(co),Yu=kr((function(t,e){var n=null==t?0:t.length,r=Ee(t,e);return Cn(t,v(e,(function(t){return Hr(t,n)?+t:t})).sort(er)),r})),Qu=Pn((function(t){return Fn(wu(t,1,Oo,!0))})),Xu=Pn((function(t){var e=ao(t);return Oo(e)&&(e=u),Fn(wu(t,1,Oo,!0),Lr(e,2))})),ta=Pn((function(t){var e=ao(t);return e="function"==typeof e?e:u,Fn(wu(t,1,Oo,!0),u,e)})),ea=Pn((function(t,e){return Oo(t)?Pe(t,e):[]})),na=Pn((function(t){return qn(d(t,Oo))})),ra=Pn((function(t){var e=ao(t);return Oo(e)&&(e=u),qn(d(t,Oo),Lr(e,2))})),oa=Pn((function(t){var e=ao(t);return e="function"==typeof e?e:u,qn(d(t,Oo),u,e)})),ia=Pn(lo),ua=Pn((function(t){var e=t.length,n=e>1?t[e-1]:u;return n="function"==typeof n?(t.pop(),n):u,fo(t,n)})),aa=kr((function(t){var e=t.length,n=e?t[0]:0,o=this.__wrapped__,i=function(e){return Ee(e,t)};return e>1||this.__actions__.length||!r(o,le)||!Hr(n)?this.thru(i):((o=o.slice(n,+n+(e?1:0))).__actions__.push({func:ho,args:[i],thisArg:u}),new se(o,this.__chain__).thru((function(t){return e&&!t.length&&t.push(u),t})))})),ca=ur((function(t,e,n){bi.call(t,n)?++t[n]:je(t,n,1)})),sa=pr(ro),la=pr(oo),fa=ur((function(t,e,n){bi.call(t,n)?t[n].push(e):je(t,n,[e])})),da=Pn((function(t,e,n){var r=-1,o="function"==typeof e,i=xo(t)?ii(t.length):[];return mu(t,(function(t){i[++r]=o?a(e,t,n):pn(t,e,n)})),i})),pa=ur((function(t,e,n){je(t,n,e)})),ha=ur((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),va=Pn((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Fr(t,e[0],e[1])?e=[]:n>2&&Fr(e[0],e[1],e[2])&&(e=[e[0]]),On(t,wu(e,1),[])})),ya=Ui||function(){return We.Date.now()},ga=Pn((function(t,e,n){var r=1;if(n.length){var o=V(n,Tr(ga));r|=J}return Or(t,r,e,n,o)})),ma=Pn((function(t,e,n){var r=3;if(n.length){var o=V(n,Tr(ma));r|=J}return Or(e,r,t,n,o)})),ba=Pn((function(t,e){return Ae(t,1,e)})),wa=Pn((function(t,e,n){return Ae(t,Uo(e)||0,n)}));function _a(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new pi(W);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return n.cache=i.set(o,u)||i,u};return n.cache=new(_a.Cache||pe),n}_a.Cache=pe;var Sa,xa=ku((function(t,e){var n=(e=1==e.length&&Pa(e[0])?v(e[0],T(Lr())):v(wu(e,1),T(Lr()))).length;return Pn((function(r){for(var o=-1,i=Gi(r.length,n);++o<i;)r[o]=e[o].call(this,r[o]);return a(t,this,r)}))})),Oa=Pn((function(t,e){var n=V(e,Tr(Oa));return Or(t,J,u,e,n)})),ja=Pn((function(t,e){var n=V(e,Tr(ja));return Or(t,64,u,e,n)})),Ea=kr((function(t,e){return Or(t,256,u,u,u,e)})),Ca=wr(Qe),ka=wr((function(t,e){return t>=e})),Aa=hn(function(){return arguments}())?hn:function(t){return Po(t)&&bi.call(t,"callee")&&!Ti.call(t,"callee")},Pa=ii.isArray,Ia=Xe?T(Xe):function(t){return Po(t)&&Ye(t)==bt},Ta=zi||oi,La=tn?T(tn):function(t){return Po(t)&&Ye(t)==ut},Ra=en?T(en):function(t){return Po(t)&&Du(t)==lt},Ma=nn?T(nn):function(t){return Po(t)&&Ye(t)==ht},Da=rn?T(rn):function(t){return Po(t)&&Du(t)==vt},Ba=on?T(on):function(t){return Po(t)&&ko(t.length)&&!!He[Ye(t)]},Na=wr(bn),Ua=wr((function(t,e){return t<=e})),Ha=ar((function(t,e){if(zr(e)||xo(e))ir(e,zo(e),t);else for(var n in e)bi.call(e,n)&&_e(t,n,e[n])})),Fa=ar((function(t,e){ir(e,Ko(e),t)})),Va=ar((function(t,e,n,r){ir(e,Ko(e),t,r)})),$a=ar((function(t,e,n,r){ir(e,zo(e),t,r)})),za=kr(Ee),Ka=Pn((function(t,e){t=li(t);var n=-1,r=e.length,o=r>2?e[2]:u;for(o&&Fr(e[0],e[1],o)&&(r=1);++n<r;)for(var i=e[n],a=Ko(i),c=-1,s=a.length;++c<s;){var l=a[c],f=t[l];(f===u||So(f,yi[l])&&!bi.call(t,l))&&(t[l]=i[l])}return t})),qa=Pn((function(t){return t.push(u,Tu),a(Ya,u,t)})),Wa=vr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Si.call(e)),t[e]=n}),Yo(Qo)),Za=vr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Si.call(e)),bi.call(t,e)?t[e].push(n):t[e]=[n]}),Lr),Ga=Pn(pn),Ja=ar((function(t,e,n){Ou(t,e,n)})),Ya=ar((function(t,e,n,r){Ou(t,e,n,r)})),Qa=kr((function(t,e){var n={};if(null==t)return n;var r=!1;e=v(e,(function(e){return e=Jn(e,t),r||(r=e.length>1),e})),ir(t,Pr(t),n),r&&(n=gu(n,7,Er));for(var o=e.length;o--;)Vn(n,e[o]);return n})),Xa=kr((function(t,e){return null==t?{}:jn(n=t,e,(function(t,e){return $o(n,e)}));var n})),tc=xr(zo),ec=xr(Ko),nc=fr((function(t,e,n){return e=e.toLowerCase(),t+(n?Zo(e):e)})),rc=fr((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),oc=fr((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),ic=lr("toLowerCase"),uc=fr((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),ac=fr((function(t,e,n){return t+(n?" ":"")+sc(e)})),cc=fr((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),sc=lr("toUpperCase"),lc=Pn((function(t,e){try{return a(t,u,e)}catch(t){return jo(t)?t:new ai(t)}})),fc=kr((function(t,e){return s(e,(function(e){e=to(e),je(t,e,ga(t[e],t))})),t})),dc=hr(),pc=hr(!0),hc=Pn((function(t,e){return function(n){return pn(n,t,e)}})),vc=Pn((function(t,e){return function(n){return pn(t,n,e)}})),yc=gr(v),gc=gr(f),mc=gr(b),bc=br(),wc=br(!0),_c=yr((function(t,e){return t+e}),0),Sc=Sr("ceil"),xc=yr((function(t,e){return t/e}),1),Oc=Sr("floor"),jc=yr((function(t,e){return t*e}),1),Ec=Sr("round"),Cc=yr((function(t,e){return t-e}),0);return C.after=function(t,e){if("function"!=typeof e)throw new pi(W);return t=Bo(t),function(){if(--t<1)return e.apply(this,arguments)}},C.ary=mo,C.assign=Ha,C.assignIn=Fa,C.assignInWith=Va,C.assignWith=$a,C.at=za,C.before=bo,C.bind=ga,C.bindAll=fc,C.bindKey=ma,C.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Pa(t)?t:[t]},C.chain=po,C.chunk=function(t,e,n){e=(n?Fr(t,e,n):e===u)?1:Zi(Bo(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var o=0,i=0,a=ii(Fi(r/e));o<r;)a[i++]=Mn(t,o,o+=e);return a},C.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,o=[];++e<n;){var i=t[e];i&&(o[r++]=i)}return o},C.concat=function(){var t=arguments.length;if(!t)return[];for(var e=ii(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return y(Pa(n)?or(n):[n],wu(e,1))},C.cond=function(t){var e=null==t?0:t.length,n=Lr();return t=e?v(t,(function(t){if("function"!=typeof t[1])throw new pi(W);return[n(t[0]),t[1]]})):[],Pn((function(n){for(var r=-1;++r<e;){var o=t[r];if(a(o[0],this,n))return a(o[1],this,n)}}))},C.conforms=function(t){return e=gu(t,1),n=zo(e),function(t){return ke(t,e,n)};var e,n},C.constant=Yo,C.countBy=ca,C.create=function(t,e){var n=yu(t);return null==e?n:Oe(n,e)},C.curry=function t(e,n,r){var o=Or(e,8,u,u,u,u,u,n=r?u:n);return o.placeholder=t.placeholder,o},C.curryRight=function t(e,n,r){var o=Or(e,16,u,u,u,u,u,n=r?u:n);return o.placeholder=t.placeholder,o},C.debounce=wo,C.defaults=Ka,C.defaultsDeep=qa,C.defer=ba,C.delay=wa,C.difference=zu,C.differenceBy=Ku,C.differenceWith=qu,C.drop=function(t,e,n){var r=null==t?0:t.length;return r?Mn(t,(e=n||e===u?1:Bo(e))<0?0:e,r):[]},C.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?Mn(t,0,(e=r-(e=n||e===u?1:Bo(e)))<0?0:e):[]},C.dropRightWhile=function(t,e){return t&&t.length?zn(t,Lr(e,3),!0,!0):[]},C.dropWhile=function(t,e){return t&&t.length?zn(t,Lr(e,3),!0):[]},C.fill=function(t,e,n,r){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&Fr(t,e,n)&&(n=0,r=o),function(t,e,n,r){var o=t.length;for((n=Bo(n))<0&&(n=-n>o?0:o+n),(r=r===u||r>o?o:Bo(r))<0&&(r+=o),r=n>r?0:No(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},C.filter=function(t,e){return(Pa(t)?d:De)(t,Lr(e,3))},C.flatMap=function(t,e){return wu(go(t,e),1)},C.flatMapDeep=function(t,e){return wu(go(t,e),Q)},C.flatMapDepth=function(t,e,n){return n=n===u?1:Bo(n),wu(go(t,e),n)},C.flatten=io,C.flattenDeep=function(t){return null!=t&&t.length?wu(t,Q):[]},C.flattenDepth=function(t,e){return null!=t&&t.length?wu(t,e=e===u?1:Bo(e)):[]},C.flip=function(t){return Or(t,512)},C.flow=dc,C.flowRight=pc,C.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r},C.functions=function(t){return null==t?[]:qe(t,zo(t))},C.functionsIn=function(t){return null==t?[]:qe(t,Ko(t))},C.groupBy=fa,C.initial=function(t){return null!=t&&t.length?Mn(t,0,-1):[]},C.intersection=Wu,C.intersectionBy=Zu,C.intersectionWith=Gu,C.invert=Wa,C.invertBy=Za,C.invokeMap=da,C.iteratee=Xo,C.keyBy=pa,C.keys=zo,C.keysIn=Ko,C.map=go,C.mapKeys=function(t,e){var n={};return e=Lr(e,3),Ve(t,(function(t,r,o){je(n,e(t,r,o),t)})),n},C.mapValues=function(t,e){var n={};return e=Lr(e,3),Ve(t,(function(t,r,o){je(n,r,e(t,r,o))})),n},C.matches=function(t){return _n(gu(t,1))},C.matchesProperty=function(t,e){return Sn(t,gu(e,1))},C.memoize=_a,C.merge=Ja,C.mergeWith=Ya,C.method=hc,C.methodOf=vc,C.mixin=ti,C.negate=_o,C.nthArg=function(t){return t=Bo(t),Pn((function(e){return xn(e,t)}))},C.omit=Qa,C.omitBy=function(t,e){return qo(t,_o(Lr(e)))},C.once=function(t){return bo(2,t)},C.orderBy=function(t,e,n,r){return null==t?[]:(Pa(e)||(e=null==e?[]:[e]),Pa(n=r?u:n)||(n=null==n?[]:[n]),On(t,e,n))},C.over=yc,C.overArgs=xa,C.overEvery=gc,C.overSome=mc,C.partial=Oa,C.partialRight=ja,C.partition=ha,C.pick=Xa,C.pickBy=qo,C.property=ni,C.propertyOf=function(t){return function(e){return null==t?u:Ze(t,e)}},C.pull=Ju,C.pullAll=co,C.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?En(t,e,Lr(n,2)):t},C.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?En(t,e,u,n):t},C.pullAt=Yu,C.range=bc,C.rangeRight=wc,C.rearg=Ea,C.reject=function(t,e){return(Pa(t)?d:De)(t,_o(Lr(e,3)))},C.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],i=t.length;for(e=Lr(e,3);++r<i;){var u=t[r];e(u,r,t)&&(n.push(u),o.push(r))}return Cn(t,o),n},C.rest=function(t,e){if("function"!=typeof t)throw new pi(W);return Pn(t,e=e===u?e:Bo(e))},C.reverse=so,C.sampleSize=function(t,e,n){return e=(n?Fr(t,e,n):e===u)?1:Bo(e),(Pa(t)?me:Tn)(t,e)},C.set=function(t,e,n){return null==t?t:Ln(t,e,n)},C.setWith=function(t,e,n,r){return r="function"==typeof r?r:u,null==t?t:Ln(t,e,n,r)},C.shuffle=function(t){return(Pa(t)?be:Rn)(t)},C.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Fr(t,e,n)?(e=0,n=r):(e=null==e?0:Bo(e),n=n===u?r:Bo(n)),Mn(t,e,n)):[]},C.sortBy=va,C.sortedUniq=function(t){return t&&t.length?Un(t):[]},C.sortedUniqBy=function(t,e){return t&&t.length?Un(t,Lr(e,2)):[]},C.split=function(t,e,n){return n&&"number"!=typeof n&&Fr(t,e,n)&&(e=n=u),(n=n===u?et:n>>>0)?(t=Fo(t))&&("string"==typeof e||null!=e&&!Ma(e))&&!(e=Cu(e))&&U(t)?Yn(K(t),0,n):t.split(e,n):[]},C.spread=function(t,e){if("function"!=typeof t)throw new pi(W);return e=null==e?0:Zi(Bo(e),0),Pn((function(n){var r=n[e],o=Yn(n,0,e);return r&&y(o,r),a(t,this,o)}))},C.tail=function(t){var e=null==t?0:t.length;return e?Mn(t,1,e):[]},C.take=function(t,e,n){return t&&t.length?Mn(t,0,(e=n||e===u?1:Bo(e))<0?0:e):[]},C.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Mn(t,(e=r-(e=n||e===u?1:Bo(e)))<0?0:e,r):[]},C.takeRightWhile=function(t,e){return t&&t.length?zn(t,Lr(e,3),!1,!0):[]},C.takeWhile=function(t,e){return t&&t.length?zn(t,Lr(e,3)):[]},C.tap=function(t,e){return e(t),t},C.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new pi(W);return Ao(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),wo(t,e,{leading:r,maxWait:e,trailing:o})},C.thru=ho,C.toArray=Mo,C.toPairs=tc,C.toPairsIn=ec,C.toPath=function(t){return Pa(t)?v(t,to):Ro(t)?[t]:or($u(Fo(t)))},C.toPlainObject=Ho,C.transform=function(t,e,n){var r=Pa(t),o=r||Ta(t)||Ba(t);if(e=Lr(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:Ao(t)&&Eo(i)?yu(Pi(t)):{}}return(o?s:Ve)(t,(function(t,r,o){return e(n,t,r,o)})),n},C.unary=function(t){return mo(t,1)},C.union=Qu,C.unionBy=Xu,C.unionWith=ta,C.uniq=function(t){return t&&t.length?Fn(t):[]},C.uniqBy=function(t,e){return t&&t.length?Fn(t,Lr(e,2)):[]},C.uniqWith=function(t,e){return e="function"==typeof e?e:u,t&&t.length?Fn(t,u,e):[]},C.unset=function(t,e){return null==t||Vn(t,e)},C.unzip=lo,C.unzipWith=fo,C.update=function(t,e,n){return null==t?t:$n(t,e,Gn(n))},C.updateWith=function(t,e,n,r){return r="function"==typeof r?r:u,null==t?t:$n(t,e,Gn(n),r)},C.values=Wo,C.valuesIn=function(t){return null==t?[]:L(t,Ko(t))},C.without=ea,C.words=Jo,C.wrap=function(t,e){return Oa(Gn(e),t)},C.xor=na,C.xorBy=ra,C.xorWith=oa,C.zip=ia,C.zipObject=function(t,e){return Wn(t||[],e||[],_e)},C.zipObjectDeep=function(t,e){return Wn(t||[],e||[],Ln)},C.zipWith=ua,C.entries=tc,C.entriesIn=ec,C.extend=Fa,C.extendWith=Va,ti(C,C),C.add=_c,C.attempt=lc,C.camelCase=nc,C.capitalize=Zo,C.ceil=Sc,C.clamp=function(t,e,n){return n===u&&(n=e,e=u),n!==u&&(n=(n=Uo(n))==n?n:0),e!==u&&(e=(e=Uo(e))==e?e:0),Ce(Uo(t),e,n)},C.clone=function(t){return gu(t,4)},C.cloneDeep=function(t){return gu(t,5)},C.cloneDeepWith=function(t,e){return gu(t,5,e="function"==typeof e?e:u)},C.cloneWith=function(t,e){return gu(t,4,e="function"==typeof e?e:u)},C.conformsTo=function(t,e){return null==e||ke(t,e,zo(e))},C.deburr=Go,C.defaultTo=function(t,e){return null==t||t!=t?e:t},C.divide=xc,C.endsWith=function(t,e,n){t=Fo(t),e=Cu(e);var r=t.length,o=n=n===u?r:Ce(Bo(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},C.eq=So,C.escape=function(t){return(t=Fo(t))&&Dt.test(t)?t.replace(Rt,cn):t},C.escapeRegExp=function(t){return(t=Fo(t))&&zt.test(t)?t.replace($t,"\\$&"):t},C.every=function(t,e,n){var r=Pa(t)?f:Ie;return n&&Fr(t,e,n)&&(e=u),r(t,Lr(e,3))},C.find=sa,C.findIndex=ro,C.findKey=function(t,e){return w(t,Lr(e,3),Ve)},C.findLast=la,C.findLastIndex=oo,C.findLastKey=function(t,e){return w(t,Lr(e,3),Ke)},C.floor=Oc,C.forEach=vo,C.forEachRight=yo,C.forIn=function(t,e){return null==t?t:_u(t,Lr(e,3),Ko)},C.forInRight=function(t,e){return null==t?t:Su(t,Lr(e,3),Ko)},C.forOwn=function(t,e){return t&&Ve(t,Lr(e,3))},C.forOwnRight=function(t,e){return t&&Ke(t,Lr(e,3))},C.get=Vo,C.gt=Ca,C.gte=ka,C.has=function(t,e){return null!=t&&Br(t,e,un)},C.hasIn=$o,C.head=uo,C.identity=Qo,C.includes=function(t,e,n,r){t=xo(t)?t:Wo(t),n=n&&!r?Bo(n):0;var o=t.length;return n<0&&(n=Zi(o+n,0)),Lo(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&S(t,e,n)>-1},C.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:Bo(n);return o<0&&(o=Zi(r+o,0)),S(t,e,o)},C.inRange=function(t,e,n){return e=Do(e),n===u?(n=e,e=0):n=Do(n),(r=t=Uo(t))>=Gi(o=e,i=n)&&r<Zi(o,i);var r,o,i},C.invoke=Ga,C.isArguments=Aa,C.isArray=Pa,C.isArrayBuffer=Ia,C.isArrayLike=xo,C.isArrayLikeObject=Oo,C.isBoolean=function(t){return!0===t||!1===t||Po(t)&&Ye(t)==it},C.isBuffer=Ta,C.isDate=La,C.isElement=function(t){return Po(t)&&1===t.nodeType&&!To(t)},C.isEmpty=function(t){if(null==t)return!0;if(xo(t)&&(Pa(t)||"string"==typeof t||"function"==typeof t.splice||Ta(t)||Ba(t)||Aa(t)))return!t.length;var e=Du(t);if(e==lt||e==vt)return!t.size;if(zr(t))return!mn(t).length;for(var n in t)if(bi.call(t,n))return!1;return!0},C.isEqual=function(t,e){return xu(t,e)},C.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:u)?n(t,e):u;return r===u?xu(t,e,u,n):!!r},C.isError=jo,C.isFinite=function(t){return"number"==typeof t&&Ki(t)},C.isFunction=Eo,C.isInteger=Co,C.isLength=ko,C.isMap=Ra,C.isMatch=function(t,e){return t===e||vn(t,e,Mr(e))},C.isMatchWith=function(t,e,n){return n="function"==typeof n?n:u,vn(t,e,Mr(e),n)},C.isNaN=function(t){return Io(t)&&t!=+t},C.isNative=function(t){if(Uu(t))throw new ai("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return yn(t)},C.isNil=function(t){return null==t},C.isNull=function(t){return null===t},C.isNumber=Io,C.isObject=Ao,C.isObjectLike=Po,C.isPlainObject=To,C.isRegExp=Ma,C.isSafeInteger=function(t){return Co(t)&&t>=-9007199254740991&&t<=X},C.isSet=Da,C.isString=Lo,C.isSymbol=Ro,C.isTypedArray=Ba,C.isUndefined=function(t){return t===u},C.isWeakMap=function(t){return Po(t)&&Du(t)==mt},C.isWeakSet=function(t){return Po(t)&&"[object WeakSet]"==Ye(t)},C.join=function(t,e){return null==t?"":qi.call(t,e)},C.kebabCase=rc,C.last=ao,C.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==u&&(o=(o=Bo(n))<0?Zi(r+o,0):Gi(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):_(t,O,o,!0)},C.lowerCase=oc,C.lowerFirst=ic,C.lt=Na,C.lte=Ua,C.max=function(t){return t&&t.length?Re(t,Qo,Qe):u},C.maxBy=function(t,e){return t&&t.length?Re(t,Lr(e,2),Qe):u},C.mean=function(t){return j(t,Qo)},C.meanBy=function(t,e){return j(t,Lr(e,2))},C.min=function(t){return t&&t.length?Re(t,Qo,bn):u},C.minBy=function(t,e){return t&&t.length?Re(t,Lr(e,2),bn):u},C.stubArray=ri,C.stubFalse=oi,C.stubObject=function(){return{}},C.stubString=function(){return""},C.stubTrue=function(){return!0},C.multiply=jc,C.nth=function(t,e){return t&&t.length?xn(t,Bo(e)):u},C.noConflict=function(){return We._===this&&(We._=Oi),this},C.noop=ei,C.now=ya,C.pad=function(t,e,n){t=Fo(t);var r=(e=Bo(e))?z(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return mr(Vi(o),n)+t+mr(Fi(o),n)},C.padEnd=function(t,e,n){t=Fo(t);var r=(e=Bo(e))?z(t):0;return e&&r<e?t+mr(e-r,n):t},C.padStart=function(t,e,n){t=Fo(t);var r=(e=Bo(e))?z(t):0;return e&&r<e?mr(e-r,n)+t:t},C.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),Yi(Fo(t).replace(Kt,""),e||0)},C.random=function(t,e,n){if(n&&"boolean"!=typeof n&&Fr(t,e,n)&&(e=n=u),n===u&&("boolean"==typeof e?(n=e,e=u):"boolean"==typeof t&&(n=t,t=u)),t===u&&e===u?(t=0,e=1):(t=Do(t),e===u?(e=t,t=0):e=Do(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=Qi();return Gi(t+o*(e-t+$e("1e-"+((o+"").length-1))),e)}return kn(t,e)},C.reduce=function(t,e,n){var r=Pa(t)?g:k,o=arguments.length<3;return r(t,Lr(e,4),n,o,mu)},C.reduceRight=function(t,e,n){var r=Pa(t)?m:k,o=arguments.length<3;return r(t,Lr(e,4),n,o,bu)},C.repeat=function(t,e,n){return e=(n?Fr(t,e,n):e===u)?1:Bo(e),An(Fo(t),e)},C.replace=function(){var t=arguments,e=Fo(t[0]);return t.length<3?e:e.replace(t[1],t[2])},C.result=function(t,e,n){var r=-1,o=(e=Jn(e,t)).length;for(o||(o=1,t=u);++r<o;){var i=null==t?u:t[to(e[r])];i===u&&(r=o,i=n),t=Eo(i)?i.call(t):i}return t},C.round=Ec,C.runInContext=t,C.sample=function(t){return(Pa(t)?ge:In)(t)},C.size=function(t){if(null==t)return 0;if(xo(t))return Lo(t)?z(t):t.length;var e=Du(t);return e==lt||e==vt?t.size:mn(t).length},C.snakeCase=uc,C.some=function(t,e,n){var r=Pa(t)?b:Dn;return n&&Fr(t,e,n)&&(e=u),r(t,Lr(e,3))},C.sortedIndex=function(t,e){return Bn(t,e)},C.sortedIndexBy=function(t,e,n){return Nn(t,e,Lr(n,2))},C.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=Bn(t,e);if(r<n&&So(t[r],e))return r}return-1},C.sortedLastIndex=function(t,e){return Bn(t,e,!0)},C.sortedLastIndexBy=function(t,e,n){return Nn(t,e,Lr(n,2),!0)},C.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=Bn(t,e,!0)-1;if(So(t[n],e))return n}return-1},C.startCase=ac,C.startsWith=function(t,e,n){return t=Fo(t),n=null==n?0:Ce(Bo(n),0,t.length),e=Cu(e),t.slice(n,n+e.length)==e},C.subtract=Cc,C.sum=function(t){return t&&t.length?A(t,Qo):0},C.sumBy=function(t,e){return t&&t.length?A(t,Lr(e,2)):0},C.template=function(t,e,n){var r=C.templateSettings;n&&Fr(t,e,n)&&(e=u),t=Fo(t),e=Va({},e,r,jr);var o,i,a=Va({},e.imports,r.imports,jr),c=zo(a),s=L(a,c),l=0,f=e.interpolate||ae,d="__p += '",p=fi((e.escape||ae).source+"|"+f.source+"|"+(f===Ut?Xt:ae).source+"|"+(e.evaluate||ae).source+"|$","g"),h="//# sourceURL="+(bi.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ue+"]")+"\n";t.replace(p,(function(e,n,r,u,a,c){return r||(r=u),d+=t.slice(l,c).replace(ce,N),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),a&&(i=!0,d+="';\n"+a+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+e.length,e})),d+="';\n";var v=bi.call(e,"variable")&&e.variable;if(v){if(Yt.test(v))throw new ai("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(i?d.replace(Pt,""):d).replace(It,"$1").replace(Tt,"$1;"),d="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var y=lc((function(){return ci(c,h+"return "+d).apply(u,s)}));if(y.source=d,jo(y))throw y;return y},C.times=function(t,e){if((t=Bo(t))<1||t>X)return[];var n=et,r=Gi(t,et);e=Lr(e),t-=et;for(var o=P(r,e);++n<t;)e(n);return o},C.toFinite=Do,C.toInteger=Bo,C.toLength=No,C.toLower=function(t){return Fo(t).toLowerCase()},C.toNumber=Uo,C.toSafeInteger=function(t){return t?Ce(Bo(t),-9007199254740991,X):0===t?t:0},C.toString=Fo,C.toUpper=function(t){return Fo(t).toUpperCase()},C.trim=function(t,e,n){if((t=Fo(t))&&(n||e===u))return I(t);if(!t||!(e=Cu(e)))return t;var r=K(t),o=K(e);return Yn(r,M(r,o),D(r,o)+1).join("")},C.trimEnd=function(t,e,n){if((t=Fo(t))&&(n||e===u))return t.slice(0,q(t)+1);if(!t||!(e=Cu(e)))return t;var r=K(t);return Yn(r,0,D(r,K(e))+1).join("")},C.trimStart=function(t,e,n){if((t=Fo(t))&&(n||e===u))return t.replace(Kt,"");if(!t||!(e=Cu(e)))return t;var r=K(t);return Yn(r,M(r,K(e))).join("")},C.truncate=function(t,e){var n=30,r="...";if(Ao(e)){var o="separator"in e?e.separator:o;n="length"in e?Bo(e.length):n,r="omission"in e?Cu(e.omission):r}var i=(t=Fo(t)).length;if(U(t)){var a=K(t);i=a.length}if(n>=i)return t;var c=n-z(r);if(c<1)return r;var s=a?Yn(a,0,c).join(""):t.slice(0,c);if(o===u)return s+r;if(a&&(c+=s.length-c),Ma(o)){if(t.slice(c).search(o)){var l,f=s;for(o.global||(o=fi(o.source,Fo(te.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var d=l.index;s=s.slice(0,d===u?c:d)}}else if(t.indexOf(Cu(o),c)!=c){var p=s.lastIndexOf(o);p>-1&&(s=s.slice(0,p))}return s+r},C.unescape=function(t){return(t=Fo(t))&&Mt.test(t)?t.replace(Lt,sn):t},C.uniqueId=function(t){var e=++wi;return Fo(t)+e},C.upperCase=cc,C.upperFirst=sc,C.each=vo,C.eachRight=yo,C.first=uo,ti(C,(Sa={},Ve(C,(function(t,e){bi.call(C.prototype,e)||(Sa[e]=t)})),Sa),{chain:!1}),C.VERSION="4.17.21",s(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){C[t].placeholder=C})),s(["drop","take"],(function(t,e){le.prototype[t]=function(n){n=n===u?1:Zi(Bo(n),0);var r=this.__filtered__&&!e?new le(this):this.clone();return r.__filtered__?r.__takeCount__=Gi(n,r.__takeCount__):r.__views__.push({size:Gi(n,et),type:t+(r.__dir__<0?"Right":"")}),r},le.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),s(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;le.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Lr(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),s(["head","last"],(function(t,e){var n="take"+(e?"Right":"");le.prototype[t]=function(){return this[n](1).value()[0]}})),s(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");le.prototype[t]=function(){return this.__filtered__?new le(this):this[n](1)}})),le.prototype.compact=function(){return this.filter(Qo)},le.prototype.find=function(t){return this.filter(t).head()},le.prototype.findLast=function(t){return this.reverse().find(t)},le.prototype.invokeMap=Pn((function(t,e){return"function"==typeof t?new le(this):this.map((function(n){return pn(n,t,e)}))})),le.prototype.reject=function(t){return this.filter(_o(Lr(t)))},le.prototype.slice=function(t,e){t=Bo(t);var n=this;return n.__filtered__&&(t>0||e<0)?new le(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==u&&(n=(e=Bo(e))<0?n.dropRight(-e):n.take(e-t)),n)},le.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},le.prototype.toArray=function(){return this.take(et)},Ve(le.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),o=/^(?:head|last)$/.test(e),i=C[o?"take"+("last"==e?"Right":""):e],a=o||/^find/.test(e);i&&(C.prototype[e]=function(){var e=this.__wrapped__,c=o?[1]:arguments,s=r(e,le),l=c[0],f=s||Pa(e),d=function(t){var e=i.apply(C,y([t],c));return o&&p?e[0]:e};f&&n&&"function"==typeof l&&1!=l.length&&(s=f=!1);var p=this.__chain__,h=!!this.__actions__.length,v=a&&!p,g=s&&!h;if(!a&&f){e=g?e:new le(this);var m=t.apply(e,c);return m.__actions__.push({func:ho,args:[d],thisArg:u}),new se(m,p)}return v&&g?t.apply(this,c):(m=this.thru(d),v?o?m.value()[0]:m.value():m)})})),s(["pop","push","shift","sort","splice","unshift"],(function(t){var e=hi[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);C.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(Pa(o)?o:[],t)}return this[n]((function(n){return e.apply(Pa(n)?n:[],t)}))}})),Ve(le.prototype,(function(t,e){var n=C[e];if(n){var r=n.name+"";bi.call(au,r)||(au[r]=[]),au[r].push({name:e,func:n})}})),au[Pu(u,2).name]=[{name:"wrapper",func:u}],le.prototype.clone=function(){var t=new le(this.__wrapped__);return t.__actions__=or(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=or(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=or(this.__views__),t},le.prototype.reverse=function(){if(this.__filtered__){var t=new le(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},le.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Pa(t),r=e<0,o=n?t.length:0,i=function(t,e,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],u=i.size;switch(i.type){case"drop":t+=u;break;case"dropRight":e-=u;break;case"take":e=Gi(e,t+u);break;case"takeRight":t=Zi(t,e-u)}}return{start:t,end:e}}(0,o,this.__views__),u=i.start,a=i.end,c=a-u,s=r?a:u-1,l=this.__iteratees__,f=l.length,d=0,p=Gi(c,this.__takeCount__);if(!n||!r&&o==c&&p==c)return Kn(t,this.__actions__);var h=[];t:for(;c--&&d<p;){for(var v=-1,y=t[s+=e];++v<f;){var g=l[v],m=g.iteratee,b=g.type,w=m(y);if(2==b)y=w;else if(!w){if(1==b)continue t;break t}}h[d++]=y}return h},C.prototype.at=aa,C.prototype.chain=function(){return po(this)},C.prototype.commit=function(){return new se(this.value(),this.__chain__)},C.prototype.next=function(){this.__values__===u&&(this.__values__=Mo(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?u:this.__values__[this.__index__++]}},C.prototype.plant=function(t){for(var e,n=this;r(n,qt);){var o=no(n);o.__index__=0,o.__values__=u,e?i.__wrapped__=o:e=o;var i=o;n=n.__wrapped__}return i.__wrapped__=t,e},C.prototype.reverse=function(){var t=this.__wrapped__;if(r(t,le)){var e=t;return this.__actions__.length&&(e=new le(this)),(e=e.reverse()).__actions__.push({func:ho,args:[so],thisArg:u}),new se(e,this.__chain__)}return this.thru(so)},C.prototype.toJSON=C.prototype.valueOf=C.prototype.value=function(){return Kn(this.__wrapped__,this.__actions__)},C.prototype.first=C.prototype.head,Mi&&(C.prototype[Mi]=function(){return this}),C}();We._=ln,(i=function(){return ln}.call(e,n,e,t))===u||(t.exports=i)}.call(this)},385:function(){System.register([],(function(t,e){return{execute:function(){t(function(){var t={968:function(t,e,n){var r=n(577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},577:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.y=e,r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t}();var o={};return(0,r(968).s)(1),function(){"use strict";var t=function(t,e){for(var n in e)t[n]=e[n];return t},e=function(e){var n=function(t){for(var e=[],n=0;n<o.length;n++)o[n]===t?t=null:e.push(o[n]);o=e},r=function(n,r,i){e=r?n:t(t({},e),n);for(var u=o,a=0;a<u.length;a++)u[a](e,i)},o=[];return e=e||{},{action:function(t){var n=function(e){r(e,!1,t)};return function(){for(var r=arguments,o=[e],i=0;i<arguments.length;i++)o.push(r[i]);var u=t.apply(this,o);if(null!=u)return u.then?u.then(n):n(u)}},setState:r,subscribe:function(t){return o.push(t),function(){n(t)}},unsubscribe:n,getState:function(){return e}}},n=function(t,n){var r=s[t];if(r)return r.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):r.value.setState(n,!0),r.active=!0,r.value;var o=e(n);return s[t]={value:o,active:!0},o},i=function(t,n){var r=s[t];if(!r){var o=e(n);return s[t]={value:o,active:!1},o}return r.value},u=function(t){return n("app",t)},a=function(){return i("app",{})},c=function(t,e,n){var r=e(t.getState());return t.subscribe((function(t){var o=e(t);o!==r&&(r=o,n(o))}))};r.r(o),r.d(o,{createAppState:function(){return u},createGlobalStore:function(){return n},getAppState:function(){return a},getGlobalStore:function(){return i},subscribeTo:function(){return c}});var s={}}(),o}())}}}))},968:function(t,e,n){var r=n(577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},577:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger},766:function(t){"use strict";t.exports=h},824:function(t){"use strict";t.exports=c},45:function(t){"use strict";t.exports=s},728:function(t){"use strict";t.exports=l},688:function(t){"use strict";t.exports=v},64:function(t){"use strict";t.exports=d},954:function(t){"use strict";t.exports=a},493:function(t){"use strict";t.exports=f},281:function(t){"use strict";t.exports=p}},y={};function g(t){var e=y[t];if(void 0!==e)return e.exports;var n=y[t]={id:t,loaded:!1,exports:{}};return i[t].call(n.exports,n,n.exports,g),n.loaded=!0,n.exports}g.y=u,g.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return g.d(e,{a:e}),e},g.d=function(t,e){for(var n in e)g.o(e,n)&&!g.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},g.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),g.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},g.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},g.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){var t;g.g.importScripts&&(t=g.g.location+"");var e=g.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),g.p=t}();var m={};return(0,g(968).s)(1),function(){"use strict";var i=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},u=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},a=function(t){return function(e){var n,r=function(t){if(Array.isArray(t))return t}(n=(0,Lt.useState)(t.getState()))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(n)||function(t,e){if(t){if("string"==typeof t)return i(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,2):void 0}}(n)||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.")}(),o=r[0],a=r[1];(0,Lt.useEffect)((function(){return t.subscribe((function(t){return a(t)}))}),[]);var c={};return e&&(c=(0,Lt.useMemo)((function(){return function(t,e){"function"==typeof e&&(e=e(t));var n={};for(var r in e)n[r]=t.action(e[r]);return n}(t,e)}),[t,e])),function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){u(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t}({},o,c)}},c=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},s=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},l=function(){var t,e=function(t){if(Array.isArray(t))return t}(t=(0,Lt.useState)(window.navigator.onLine))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t)||function(t,e){if(t){if("string"==typeof t)return s(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,2):void 0}}(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.")}(),n=e[0],r=e[1];return(0,Lt.useEffect)((function(){return(0,Ht.subscribeConnectivityChanged)((function(t){var e=t.online;return r(e)}))}),[]),n},f=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},d=function(t){var e,n=function(t){if(Array.isArray(t))return t}(e=(0,Lt.useState)([]))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e)||function(t,e){if(t){if("string"==typeof t)return f(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],o=n[1];return(0,Lt.useEffect)((function(){var e=function(e){var n,i,u=null!==(i=null===(n=e.slots[t])||void 0===n?void 0:n.assignedExtensions)&&void 0!==i?i:[];(0,Ft.isEqual)(u,r)||o(u)};return e((0,Nt.getExtensionStore)().getState()),(0,Nt.getExtensionStore)().subscribe(e)}),[t,r]),r},p=function(t){var e=l(),n=d(t);return(0,Lt.useMemo)((function(){return(0,Nt.getConnectedExtensions)(n,e)}),[n,e])},h=function(t){var e=(0,Lt.useContext)(Rt).moduleName;if(!e)throw Error("ComponentContext has not been provided. This should come from @openmrs/esm-react-utils.");return(0,Lt.useEffect)((function(){(0,Nt.registerExtensionSlot)(e,t)}),[]),{extensions:p(t),extensionSlotName:t,extensionSlotModuleName:e}},v=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},y=function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){v(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t},b=function(t){return t},w=function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n},_=function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{};n%2?w(Object(r),!0).forEach((function(e){S(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))},r=1;r<arguments.length;r++)n(r);return t},S=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},x=function(t,e){var n;if("function"!=typeof(n=e.domElement?function(){return e.domElement}:e.domElementGetter?e.domElementGetter:t.domElementGetter?t.domElementGetter:function(t){var e=t.appName||t.name;if(!e)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var n="single-spa-application:".concat(e);return function(){var t=document.getElementById(n);return t||((t=document.createElement("div")).id=n,document.body.appendChild(t)),t}}(e)))throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(e.name,"'. Expected a function, received ").concat(qt(n)));return function(){var t=n(e);if(!r(t,HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(e.name,"'. Expected HTMLElement, received ").concat(qt(t)));return t}},O=function(t){if("object"!==Kt(t))throw new Error("single-spa-react requires a configuration object");var e=_(_({},Zt),t);if(!e.React)throw new Error("single-spa-react must be passed opts.React");if(!e.ReactDOM)throw new Error("single-spa-react must be passed opts.ReactDOM");if(!e.rootComponent&&!e.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(e.errorBoundary&&"function"!=typeof e.errorBoundary)throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!Wt&&e.React.createContext&&(Wt=e.React.createContext()),e.SingleSpaRoot=function(t){function e(t){e.displayName="SingleSpaRoot(".concat(t.name,")")}return e.prototype=Object.create(t.React.Component.prototype),e.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},e.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},e.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},e}(e);var n={bootstrap:j.bind(null,e),mount:E.bind(null,e),unmount:C.bind(null,e)};return e.parcelCanUpdate&&(n.update=k.bind(null,e)),n},j=function(t,e){return t.rootComponent?Promise.resolve():t.loadRootComponent(e).then((function(e){t.rootComponent=e}))},E=function(t,e){return new Promise((function(n,r){t.suppressComponentDidCatchWarning||!function(t){if(!(t&&"string"==typeof t.version&&t.version.indexOf(".")>=0))return!1;var e=t.version.slice(0,t.version.indexOf("."));try{return Number(e)>=16}catch(t){return!1}}(t.React)||t.errorBoundary||(t.rootComponent.prototype?t.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(e.name||e.appName||e.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(e.name||e.appName||e.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=A(t,e,(function(){n(this)})),i=x(t,e)(),u=function(t){var e=t.opts,n=t.elementToRender,r=t.domElement,o="function"==typeof e.renderType?e.renderType():e.renderType;if(["createRoot","unstable_createRoot","createBlockingRoot","unstable_createBlockingRoot"].indexOf(o)>=0){var i=e.ReactDOM[o](r);return i.render(n),i}return"hydrate"===o?e.ReactDOM.hydrate(n,r):e.ReactDOM.render(n,r),null}({elementToRender:o,domElement:i,opts:t});t.domElements[e.name]=i,t.renderResults[e.name]=u}))},C=function(t,e){return new Promise((function(n){t.unmountFinished=n;var r=t.renderResults[e.name];r&&r.unmount?r.unmount():t.ReactDOM.unmountComponentAtNode(t.domElements[e.name]),delete t.domElements[e.name],delete t.renderResults[e.name]}))},k=function(t,e){return new Promise((function(n){t.updateResolves[e.name]||(t.updateResolves[e.name]=[]),t.updateResolves[e.name].push(n);var r=A(t,e,null),o=t.renderResults[e.name];if(o&&o.render)o.render(r);else{var i=x(t,e)();t.ReactDOM.render(r,i)}}))},A=function(t,e,n){var r=t.React.createElement(t.rootComponent,e),o=Wt?t.React.createElement(Wt.Provider,{value:e},r):r;return(t.errorBoundary||e.errorBoundary||t.errorBoundaryClass||e.errorBoundaryClass)&&(t.errorBoundaryClass=t.errorBoundaryClass||e.errorBoundaryClass||function(t,e){function n(e){t.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},n.displayName="SingleSpaReactErrorBoundary(".concat(e.name,")")}return n.prototype=Object.create(t.React.Component.prototype),n.prototype.render=function(){return this.state.caughtError?(t.errorBoundary||e.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},n.prototype.componentDidCatch=function(t,e){this.setState({caughtError:t,caughtErrorInfo:e})},n}(t,e),o=t.React.createElement(t.errorBoundaryClass,e,o)),t.React.createElement(t.SingleSpaRoot,_(_({},e),{},{mountFinished:n,updateFinished:function(){t.updateResolves[e.name]&&(t.updateResolves[e.name].forEach((function(t){return t()})),delete t.updateResolves[e.name])},unmountFinished:function(){setTimeout(t.unmountFinished)}}),o)},P=function(t,e){return!e||"object"!==te(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e},I=function(t){if("object"!=typeof t||"string"!=typeof t.featureName||"string"!=typeof t.moduleName)throw new Error("Invalid options");var e=Object.assign({},ne,t);return function(t){var n;return(n=function(n){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xt(t,e)}(a,n);var o,i,u=(o=a,i=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(t){return!1}}(),function(){var t,e=Qt(o);if(i){var n=Qt(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return P(this,t)});function a(t){var n;return function(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=u.call(this,t)).state={caughtError:null,caughtErrorInfo:null,config:{moduleName:e.moduleName,extension:t._extensionContext}},n}var c=a.prototype;return c.componentDidCatch=function(t,n){n&&n.componentStack&&(t.extra=Object.assign(t.extra||{},{componentStack:n.componentStack})),e.throwErrorsToConsole&&setTimeout((function(){throw t})),this.setState({caughtError:t,caughtErrorInfo:n})},c.render=function(){if(this.state.caughtError)return Lt.default.createElement("div",null,"An error has occurred. Please try reloading the page.");var n=this,r=Lt.default.createElement(Rt.Provider,{value:this.state.config},Lt.default.createElement(Lt.default.Suspense,{fallback:null},e.disableTranslations?Lt.default.createElement(t,Yt({},this.props)):Lt.default.createElement(re,{ns:e.moduleName,forceUpdate:function(){return n.forceUpdate()}},Lt.default.createElement(Jt.I18nextProvider,{i18n:ee,defaultNS:e.moduleName},Lt.default.createElement(t,Yt({},this.props))))));return e.strictMode||!Lt.default.StrictMode?r:Lt.default.createElement(Lt.default.StrictMode,null,r)},a}(Lt.default.Component)).displayName="OpenmrsReactComponent(".concat(e.featureName,")"),n}},T=function(t,e){return O({React:Lt.default,ReactDOM:zt.default,rootComponent:I(e)(t)})},L=function(t,e){return function(){return t().then((function(t){return T(t.default,e)}))}},R=function(t,e){return function(){return Promise.resolve(T(t,e))}},M=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},D=function(t){var e,n=function(t){if(Array.isArray(t))return t}(e=(0,Lt.useState)([]))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e)||function(t,e){if(t){if("string"==typeof t)return M(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(t,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],o=n[1];return(0,Lt.useEffect)((function(){return(0,Nt.getExtensionStore)().subscribe((function(e){var n,i,u=null!==(i=null===(n=e.slots[t])||void 0===n?void 0:n.assignedExtensions.map((function(t){return t.id})))&&void 0!==i?i:[];(0,Ft.isEqual)(u,r)||o(u)}))}),[]),r},B=function(t){(0,Lt.useEffect)((function(){if(t){var e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=e}}}),[t])},N=function(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}},U=function(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}},H=function(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}},F=function(t){var e=this.__data__=new se(t);this.size=e.size},V=function(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new He;++e<n;)this.add(t[e])},$=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},z=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},K=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return $(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},q=function(){var t=(0,Lt.useContext)(Rt),e=t.moduleName,n=t.extension;if(!e&&!n)throw Error('No ComponentContext has been provided. This should come from "openmrsComponentDecorator".\nUsually this is already applied when using "getAsyncLifecycle" or "getSyncLifecycle".');var r=function(t){var e,n,r,o,i,u,a=(0,Lt.useMemo)((function(){return(0,Mt.getConfigStore)(t)}),[t]),c=t,s=(e=a,o=(r=K((0,Lt.useState)((n=e,function(){var t=n.getState();return t.loaded&&t.config?t.config:null})),2))[0],i=r[1],(0,Lt.useEffect)((function(){return null==e?void 0:e.subscribe((function(t){t.loaded&&t.config&&i(t.config)}))}),[e]),o);if(!s)throw tr[c]||(tr[c]=(u=a,new Promise((function(t){var e=u.subscribe((function(n){n.loaded&&n.config&&(t(n.config),e())}))})))),tr[c];return s}(e),o=function(t){var e,n,r=(0,Lt.useMemo)(Mt.getExtensionsConfigStore,[]),o=function(t,e){var n,r,o=K((0,Lt.useState)((n=t,(r=e)?function(){var t=n.getState(),e=(0,Mt.getExtensionConfigFromStore)(t,r.extensionSlotName,r.extensionId);if(e.loaded&&e.config)return e.config}:null)),2),i=o[0],u=o[1];return(0,Lt.useEffect)((function(){if(e)return t.subscribe((function(t){var n=(0,Mt.getExtensionConfigFromStore)(t,e.extensionSlotName,e.extensionId);n.loaded&&n.config&&!Xn(n.config,i)&&u(n.config)}))}),[t,e,i]),i}(r,t);if(!o&&t){var i="".concat(t.extensionSlotName,"-").concat(t.extensionId);throw!tr[i]&&r&&(tr[i]=(e=r,n=t,new Promise((function(t){var r=e.subscribe((function(e){var o=(0,Mt.getExtensionConfigFromStore)(e,n.extensionSlotName,n.extensionId);o.loaded&&o.config&&(t(o.config),r())}))})))),tr[i]}return o||{}}(n),i=(0,Lt.useMemo)((function(){return function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){z(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t}({},r,o)}),[r,o]);return i},W=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},Z=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},G=function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){Z(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t},J=function(){var t=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return t&&t[1]},Y=function(t,e){switch(e.type){case qn.loadPatient:return G({},t,{patientUuid:e.patientUuid,patient:null,isPendingUuid:!1,isLoadingPatient:!0,err:null});case qn.newPatient:return G({},t,{patient:e.patient,isPendingUuid:!1,isLoadingPatient:!1,err:null});case qn.loadError:return G({},t,{patient:null,isPendingUuid:!1,isLoadingPatient:!1,err:e.err});default:return t}},Q=function(t){var e,n=function(t){if(Array.isArray(t))return t}(e=(0,Lt.useReducer)(Y,G({},rr,{patientUuid:null!=t?t:null,isPendingUuid:!t,isLoadingPatient:!!t})))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e)||function(t,e){if(t){if("string"==typeof t)return W(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(t,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],o=n[1];return(0,Lt.useEffect)((function(){if(r.isPendingUuid){var t=J();o(t?{type:qn.loadPatient,patientUuid:t}:{type:qn.newPatient,patient:null})}var e=!0;return r.isLoadingPatient&&r.patientUuid&&(0,er.fetchCurrentPatient)(r.patientUuid).then((function(t){return e&&o({patient:t.data,type:qn.newPatient})}),(function(t){return e&&o({err:t,type:qn.loadError})})),function(){e=!1}}),[r.isPendingUuid,r.isLoadingPatient,r.patientUuid]),(0,Lt.useEffect)((function(){var t=function(t){var e=J();e!=r.patientUuid&&o({type:qn.loadPatient,patientUuid:e})};return window.addEventListener("single-spa:routing-event",t),function(){return window.removeEventListener("single-spa:routing-event",t)}}),[r.patientUuid]),{isLoading:r.isPendingUuid||r.isLoadingPatient,patient:r.patient,patientUuid:null!=t?t:r.patientUuid,error:r.err}},X=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},tt=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},et=function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){tt(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t},nt=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return X(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},rt=function(){var t=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return t&&t[1]},ot=function(t,e){switch(e.type){case nr.loadPatient:return et({},t,{patient:null,isLoadingPatient:!0,err:null});case nr.newPatient:return et({},t,{patient:e.patient,isLoadingPatient:!1,err:null});case nr.loadError:return et({},t,{patient:null,isLoadingPatient:!1,err:e.err});default:return t}},it=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rt(),e=nt((0,Lt.useReducer)(ot,ar),2),n=e[0],r=e[1];return(0,Lt.useEffect)((function(){var e=!0;return t?((0,er.fetchCurrentPatient)(t).then((function(t){return e&&r({patient:t.data,type:nr.newPatient})}),(function(t){return e&&r({err:t,type:nr.loadError})})),r({type:nr.loadPatient})):r({type:nr.newPatient,patient:null}),function(){e=!1}}),[t]),[n.isLoadingPatient,n.patient,t,n.err]},ut=function(t){var e=p(t);return(0,Lt.useMemo)((function(){return Object.fromEntries(e.map((function(t){return[t.name,t.meta]})))}),[e])},at=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},ct=function(){var t,e=(t=(0,Lt.useState)(0),function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t)||function(t,e){if(t){if("string"==typeof t)return at(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(t,2):void 0}}(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.")}())[1];return(0,Lt.useCallback)((function(){e((function(t){return t+1}))}),[])},st=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},lt=function(){var t="tablet";return document.body.classList.forEach((function(e){switch(e){case"omrs-breakpoint-lt-tablet":t="phone";break;case"omrs-breakpoint-gt-tablet":t="desktop"}})),t},ft=function(){var t,e=function(t){if(Array.isArray(t))return t}(t=(0,Lt.useState)(lt))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t)||function(t,e){if(t){if("string"==typeof t)return st(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(t,2):void 0}}(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.")}(),n=e[0],r=e[1];return(0,Lt.useEffect)((function(){var t=function(){r(lt())};return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}),[]),n},dt=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},pt=function(){var t,e=function(t){if(Array.isArray(t))return t}(t=(0,Lt.useState)([]))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t)||function(t,e){if(t){if("string"==typeof t)return dt(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dt(t,2):void 0}}(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.")}(),n=e[0],r=e[1];return(0,Lt.useEffect)((function(){var t=(0,er.getLocations)().subscribe((function(t){r(t)}),(function(t){console.error(t)}));return function(){return t.unsubscribe()}}),[]),n},ht=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=(0,Lt.useRef)(null);return(0,Lt.useEffect)((function(){if(e){var r=function(e){var r;(null==n||null===(r=n.current)||void 0===r?void 0:r.contains(e.target))||t(e)};return window.addEventListener("click",r),function(){return window.removeEventListener("click",r)}}}),[t,e]),n},vt=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},yt=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},gt=function(){var t,e=function(t){if(Array.isArray(t))return t}(t=(0,Lt.useState)(null))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t)||function(t,e){if(t){if("string"==typeof t)return yt(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yt(t,2):void 0}}(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.")}(),n=e[0],r=e[1],o=null;if(!n){if(or){var i=(0,er.getSessionStore)().getState();i.loaded&&(o=i.session)}else or=new Promise((function(t){var e=function(e){var n=e.loaded,r=e.session;n&&(t(r),o=r,ir&&ir(),ir=void 0)};e((0,er.getSessionStore)().getState()),o||(ir=(0,er.getSessionStore)().subscribe(e))}));if(!o)throw or;r(o)}(0,Lt.useEffect)((function(){return ir||(ir=(0,er.getSessionStore)().subscribe((function(t){var e=t.loaded,n=t.session;e&&(o=n,r(n))}))),function(){ir&&ir(),ir=void 0}}),[]);var u=n||o;if(!u)throw or?(console.warn("useSessionUser is in an unexpected state. Attempting to recover."),or):Error("useSessionUser is in an invalid state.");return u},mt=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},bt=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},wt=function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){bt(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t},_t=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return mt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},St=function(t,e){"function"==typeof e&&(e=e(t));var n={};for(var r in e)n[r]=t.action(e[r]);return n},xt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dr,n=arguments.length>2?arguments[2]:void 0,r=_t((0,Lt.useState)((function(){return e(t.getState())})),2),o=r[0],i=r[1];(0,Lt.useEffect)((function(){return(0,fr.subscribeTo)(t,e,i)}),[t,e]);var u={};return n&&(u=(0,Lt.useMemo)((function(){return St(t,n)}),[t,n])),wt({},o,u)},Ot=function(t,e){return xt(t,dr,e)},jt=function(t,e,n,o){return new(n||(n=Promise))((function(i,u){function a(t){try{s(o.next(t))}catch(t){u(t)}}function c(t){try{s(o.throw(t))}catch(t){u(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,r(e,n)?e:new n((function(t){t(e)}))).then(a,c)}s((o=o.apply(t,e||[])).next())}))},Et=function(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},Ct=function(t){var e,n=eo(t?"/ws/rest/v1/visit?patient=".concat(t,"&v=").concat(er.defaultVisitCustomRepresentation,"&includeInactive=false"):null,er.openmrsFetch),r=n.data;return{error:n.error,mutate:n.mutate,isValidating:n.isValidating,currentVisit:null!==(e=null==r?void 0:r.data.results.find((function(t){return null===t.stopDatetime&&(0,no.default)(t.startDatetime).isToday()})))&&void 0!==e?e:null}},kt=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},At=function(){var t,e=function(t){if(Array.isArray(t))return t}(t=(0,Lt.useState)([]))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t)||function(t,e){if(t){if("string"==typeof t)return kt(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kt(t,2):void 0}}(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.")}(),n=e[0],r=e[1];return(0,Lt.useEffect)((function(){var t=(0,er.getVisitTypes)().subscribe((function(t){r(t)}),(function(t){return console.error(t)}));return function(){return t.unsubscribe()}}),[]),n},Pt=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},It=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Pt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},Tt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=It((0,Lt.useState)(1),2),r=n[0],o=n[1],i=(0,Lt.useMemo)((function(){return Math.max(1,Math.ceil(t.length/e))}),[t.length,e]),u=(0,Lt.useMemo)((function(){var n=(r-1)*e,o=(r+0)*e;return t.slice(n,o)}),[t,r,e]);return{results:u,totalPages:i,currentPage:r,paginated:t.length>e,showNextButton:r<i,showPreviousButton:r>1,goTo:function(t){o(Math.max(1,Math.min(i,t)))},goToNext:function(){r<i&&o(r+1)},goToPrevious:function(){r>1&&o(r-1)}}};g.r(m),g.d(m,{ComponentContext:function(){return Rt},ConfigurableLink:function(){return Bt},Extension:function(){return Ut},ExtensionSlot:function(){return $t},UserHasAccess:function(){return lr},createUseStore:function(){return a},getAsyncExtensionLifecycle:function(){return oe},getAsyncLifecycle:function(){return L},getLifecycle:function(){return T},getSyncLifecycle:function(){return R},openmrsComponentDecorator:function(){return I},useAssignedExtensionIds:function(){return D},useAssignedExtensions:function(){return d},useBodyScrollLock:function(){return B},useConfig:function(){return q},useConnectedExtensions:function(){return p},useConnectivity:function(){return l},useCurrentPatient:function(){return it},useExtensionInternalStore:function(){return cr},useExtensionSlot:function(){return h},useExtensionSlotMeta:function(){return ut},useExtensionStore:function(){return sr},useForceUpdate:function(){return ct},useLayoutType:function(){return ft},useLocations:function(){return pt},useOnClickOutside:function(){return ht},usePagination:function(){return Tt},usePatient:function(){return Q},useSession:function(){return gt},useStore:function(){return xt},useStoreWithActions:function(){return Ot},useVisit:function(){return Ct},useVisitTypes:function(){return At}});var Lt=g(954),Rt=Lt.default.createContext({moduleName:""}),Mt=g(824);function Dt(){return Dt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Dt.apply(this,arguments)}var Bt=function(t){var e=t.to,n=t.children,r=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,["to","children"]);return Lt.default.createElement("a",Dt({onClick:function(t){return r=e,void((n=t).metaKey||n.ctrlKey||n.shiftKey||0!=n.button||(n.preventDefault(),(0,Mt.navigate)({to:r})));var n,r},href:(0,Mt.interpolateUrl)(e)},r),n)},Nt=g(45),Ut=function(t){var e,n=t.state,r=t.wrap,o=function(t){if(Array.isArray(t))return t}(e=(0,Lt.useState)())||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e)||function(t,e){if(t){if("string"==typeof t)return c(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],u=o[1],a=(0,Lt.useContext)(Rt).extension,s=(0,Lt.useCallback)((function(t){u(t)}),[]);(0,Lt.useEffect)((function(){if(null!=i&&a)return(0,Nt.renderExtension)(i,a.extensionSlotName,a.extensionSlotModuleName,a.extensionId,void 0,n)}),[null==a?void 0:a.extensionSlotName,null==a?void 0:a.extensionId,null==a?void 0:a.extensionSlotModuleName,n,i]);var l=Lt.default.createElement("div",{ref:s,"data-extension-id":null==a?void 0:a.extensionId,style:{position:"relative"}});return a&&r?r(l,a):l},Ht=g(728),Ft=g(891);function Vt(){return Vt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Vt.apply(this,arguments)}var $t=function(t){var e=t.extensionSlotName,n=t.select,r=void 0===n?b:n,o=t.children,i=t.state,u=t.style,a=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,["extensionSlotName","select","children","state","style"]),c=(0,Lt.useRef)(null),s=h(e),l=s.extensions,f=s.extensionSlotModuleName,d=(0,Lt.useRef)(i);(function(t,e){if(t===e)return!0;if(!t&&e)return!1;if(t&&!e)return!1;if("object"!=typeof t||"object"!=typeof e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(!(i in e)||e[i]!==t[i])return!1}return!0})(d.current,i)||(d.current=i);var p=(0,Lt.useMemo)((function(){return e&&r(l).map((function(t){return Lt.default.createElement(Rt.Provider,{key:t.id,value:{moduleName:f,extension:{extensionId:t.id,extensionSlotName:e,extensionSlotModuleName:f}}},null!=o?o:Lt.default.createElement(Ut,{state:d.current}))}))}),[r,l,e,d.current]);return Lt.default.createElement("div",Vt({ref:c,"data-extension-slot-name":e,"data-extension-slot-module-name":f,style:y({},u,{position:"relative"})},a),p)},zt=g(493);function Kt(t){return(Kt="function"==typeof Symbol&&"symbol"==o(Symbol.iterator)?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":o(t)})(t)}function qt(t){return(qt="function"==typeof Symbol&&"symbol"==o(Symbol.iterator)?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":o(t)})(t)}var Wt=null;try{Wt=n(6983).createContext()}catch(t){}var Zt={React:null,ReactDOM:null,rootComponent:null,loadRootComponent:null,renderType:null,errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{}},Gt=g(64),Jt=g(281);function Yt(){return Yt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Yt.apply(this,arguments)}function Qt(t){return(Qt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Xt(t,e){return(Xt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var te=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":void 0===t?"undefined":o(t)},ee=Gt.default.default||Gt.default,ne={strictMode:!0,throwErrorsToConsole:!0,disableTranslations:!1},re=function(t){(0,Lt.useEffect)((function(){return ee.on("languageChanged",t.forceUpdate),function(){return ee.off("languageChanged",t.forceUpdate)}}),[t.forceUpdate]);var e=(0,Lt.useRef)(null);if(e.current)throw e.current;if(!ee.hasLoadedNamespace(t.ns)){var n=setTimeout((function(){console.warn("openmrsComponentDecorator: the React suspense promise for i18next.loadNamespaces(['".concat(t.ns,"']) did not resolve nor reject after three seconds. This could mean you have multiple versions of i18next and haven't made i18next a webpack external in all projects."))}),3e3);throw ee.loadNamespaces([t.ns]).then((function(){return clearTimeout(n)})).catch((function(t){clearTimeout(n),e.current=t}))}return Lt.default.createElement(Lt.default.Fragment,null,t.children)},oe=L,ie=function(t,e){return t===e||t!=t&&e!=e},ue=function(t,e){for(var n=t.length;n--;)if(ie(t[n][0],e))return n;return-1},ae=Array.prototype.splice;N.prototype.clear=function(){this.__data__=[],this.size=0},N.prototype.delete=function(t){var e=this.__data__,n=ue(e,t);return!(n<0||(n==e.length-1?e.pop():ae.call(e,n,1),--this.size,0))},N.prototype.get=function(t){var e=this.__data__,n=ue(e,t);return n<0?void 0:e[n][1]},N.prototype.has=function(t){return ue(this.__data__,t)>-1},N.prototype.set=function(t,e){var n=this.__data__,r=ue(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var ce,se=N,le="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,fe="object"==typeof self&&self&&self.Object===Object&&self,de=le||fe||Function("return this")(),pe=de.Symbol,he=Object.prototype,ve=he.hasOwnProperty,ye=he.toString,ge=pe?pe.toStringTag:void 0,me=Object.prototype.toString,be=pe?pe.toStringTag:void 0,we=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":be&&be in Object(t)?function(t){var e=ve.call(t,ge),n=t[ge];try{t[ge]=void 0;var r=!0}catch(t){}var o=ye.call(t);return r&&(e?t[ge]=n:delete t[ge]),o}(t):(e=t,me.call(e));var e},_e=function(t){var e=void 0===t?"undefined":o(t);return null!=t&&("object"==e||"function"==e)},Se=function(t){if(!_e(t))return!1;var e=we(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},xe=de["__core-js_shared__"],Oe=(ce=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||""))?"Symbol(src)_1."+ce:"",je=Function.prototype.toString,Ee=function(t){if(null!=t){try{return je.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Ce=/^\[object .+?Constructor\]$/,ke=Function.prototype,Ae=Object.prototype,Pe=ke.toString,Ie=Ae.hasOwnProperty,Te=RegExp("^"+Pe.call(Ie).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Le=function(t,e){var n,r=null==(n=t)?void 0:n[e];return function(t){return!(!_e(t)||(e=t,Oe&&Oe in e))&&(Se(t)?Te:Ce).test(Ee(t));var e}(r)?r:void 0},Re=Le(de,"Map"),Me=Le(Object,"create"),De=Object.prototype.hasOwnProperty,Be=Object.prototype.hasOwnProperty;U.prototype.clear=function(){this.__data__=Me?Me(null):{},this.size=0},U.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},U.prototype.get=function(t){var e=this.__data__;if(Me){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return De.call(e,t)?e[t]:void 0},U.prototype.has=function(t){var e=this.__data__;return Me?void 0!==e[t]:Be.call(e,t)},U.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Me&&void 0===e?"__lodash_hash_undefined__":e,this};var Ne=U,Ue=function(t,e){var n,r,i=t.__data__;return("string"==(r=o(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map};H.prototype.clear=function(){this.size=0,this.__data__={hash:new Ne,map:new(Re||se),string:new Ne}},H.prototype.delete=function(t){var e=Ue(this,t).delete(t);return this.size-=e?1:0,e},H.prototype.get=function(t){return Ue(this,t).get(t)},H.prototype.has=function(t){return Ue(this,t).has(t)},H.prototype.set=function(t,e){var n=Ue(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var He=H;F.prototype.clear=function(){this.__data__=new se,this.size=0},F.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},F.prototype.get=function(t){return this.__data__.get(t)},F.prototype.has=function(t){return this.__data__.has(t)},F.prototype.set=function(t,e){var n=this.__data__;if(r(n,se)){var o=n.__data__;if(!Re||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new He(o)}return n.set(t,e),this.size=n.size,this};var Fe=F;V.prototype.add=V.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},V.prototype.has=function(t){return this.__data__.has(t)};var Ve=V,$e=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1},ze=function(t,e){return t.has(e)},Ke=function(t,e,n,r,o,i){var u=1&n,a=t.length,c=e.length;if(a!=c&&!(u&&c>a))return!1;var s=i.get(t),l=i.get(e);if(s&&l)return s==e&&l==t;var f=-1,d=!0,p=2&n?new Ve:void 0;for(i.set(t,e),i.set(e,t);++f<a;){var h=t[f],v=e[f];if(r)var y=u?r(v,h,f,e,t,i):r(h,v,f,t,e,i);if(void 0!==y){if(y)continue;d=!1;break}if(p){if(!$e(e,(function(t,e){if(!ze(p,e)&&(h===t||o(h,t,n,r,i)))return p.push(e)}))){d=!1;break}}else if(h!==v&&!o(h,v,n,r,i)){d=!1;break}}return i.delete(t),i.delete(e),d},qe=de.Uint8Array,We=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n},Ze=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},Ge=pe?pe.prototype:void 0,Je=Ge?Ge.valueOf:void 0,Ye=Array.isArray,Qe=Object.prototype.propertyIsEnumerable,Xe=Object.getOwnPropertySymbols,tn=Xe?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var u=t[n];e(u)&&(i[o++]=u)}return i}(Xe(t),(function(e){return Qe.call(t,e)})))}:function(){return[]},en=function(t){return null!=t&&"object"==typeof t},nn=function(t){return en(t)&&"[object Arguments]"==we(t)},rn=Object.prototype,on=rn.hasOwnProperty,un=rn.propertyIsEnumerable,an=nn(function(){return arguments}())?nn:function(t){return en(t)&&on.call(t,"callee")&&!un.call(t,"callee")},cn=an,sn=e&&!e.nodeType&&e,ln=sn&&t&&!t.nodeType&&t,fn=ln&&ln.exports===sn?de.Buffer:void 0,dn=(fn?fn.isBuffer:void 0)||function(){return!1},pn=/^(?:0|[1-9]\d*)$/,hn=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},vn={};vn["[object Float32Array]"]=vn["[object Float64Array]"]=vn["[object Int8Array]"]=vn["[object Int16Array]"]=vn["[object Int32Array]"]=vn["[object Uint8Array]"]=vn["[object Uint8ClampedArray]"]=vn["[object Uint16Array]"]=vn["[object Uint32Array]"]=!0,vn["[object Arguments]"]=vn["[object Array]"]=vn["[object ArrayBuffer]"]=vn["[object Boolean]"]=vn["[object DataView]"]=vn["[object Date]"]=vn["[object Error]"]=vn["[object Function]"]=vn["[object Map]"]=vn["[object Number]"]=vn["[object Object]"]=vn["[object RegExp]"]=vn["[object Set]"]=vn["[object String]"]=vn["[object WeakMap]"]=!1;var yn,gn,mn,bn=e&&!e.nodeType&&e,wn=bn&&t&&!t.nodeType&&t,_n=wn&&wn.exports===bn&&le.process,Sn=function(){try{return wn&&wn.require&&wn.require("util").types||_n&&_n.binding&&_n.binding("util")}catch(t){}}(),xn=Sn&&Sn.isTypedArray,On=xn?(yn=xn,function(t){return yn(t)}):function(t){return en(t)&&hn(t.length)&&!!vn[we(t)]},jn=Object.prototype.hasOwnProperty,En=Object.prototype,Cn=(gn=Object.keys,mn=Object,function(t){return gn(mn(t))}),kn=Object.prototype.hasOwnProperty,An=function(t){return n=tn,r=function(t){return null!=(e=t)&&hn(e.length)&&!Se(e)?function(t,e){var n,r,i,u=Ye(t),a=!u&&cn(t),c=!u&&!a&&dn(t),s=!u&&!a&&!c&&On(t),l=u||a||c||s,f=l?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],d=f.length;for(var p in t)!jn.call(t,p)||l&&("length"==p||c&&("offset"==p||"parent"==p)||s&&("buffer"==p||"byteLength"==p||"byteOffset"==p)||(r=d,i=void 0===(n=p)?"undefined":o(n),(r=null==r?9007199254740991:r)&&("number"==i||"symbol"!=i&&pn.test(n))&&n>-1&&n%1==0&&n<r))||f.push(p);return f}(t):function(t){if(n=(e=t)&&e.constructor,e!==("function"==typeof n&&n.prototype||En))return Cn(t);var e,n,r=[];for(var o in Object(t))kn.call(t,o)&&"constructor"!=o&&r.push(o);return r}(t);var e}(e=t),Ye(e)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(e));var e,n,r},Pn=Object.prototype.hasOwnProperty,In=Le(de,"DataView"),Tn=Le(de,"Promise"),Ln=Le(de,"Set"),Rn=Le(de,"WeakMap"),Mn="[object Map]",Dn="[object Promise]",Bn="[object Set]",Nn="[object WeakMap]",Un="[object DataView]",Hn=Ee(In),Fn=Ee(Re),Vn=Ee(Tn),$n=Ee(Ln),zn=Ee(Rn),Kn=we;(In&&Kn(new In(new ArrayBuffer(1)))!=Un||Re&&Kn(new Re)!=Mn||Tn&&Kn(Tn.resolve())!=Dn||Ln&&Kn(new Ln)!=Bn||Rn&&Kn(new Rn)!=Nn)&&(Kn=function(t){var e=we(t),n="[object Object]"==e?t.constructor:void 0,r=n?Ee(n):"";if(r)switch(r){case Hn:return Un;case Fn:return Mn;case Vn:return Dn;case $n:return Bn;case zn:return Nn}return e});var qn,Wn=Kn,Zn="[object Arguments]",Gn="[object Array]",Jn="[object Object]",Yn=Object.prototype.hasOwnProperty,Qn=function t(e,n,o,i,u){return e===n||(null==e||null==n||!en(e)&&!en(n)?e!=e&&n!=n:function(t,e,n,o,i,u){var a=Ye(t),c=Ye(e),s=a?Gn:Wn(t),l=c?Gn:Wn(e),f=(s=s==Zn?Jn:s)==Jn,d=(l=l==Zn?Jn:l)==Jn,p=s==l;if(p&&dn(t)){if(!dn(e))return!1;a=!0,f=!1}if(p&&!f)return u||(u=new Fe),a||On(t)?Ke(t,e,n,o,i,u):function(t,e,n,r,o,i,u){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new qe(t),new qe(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ie(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=We;case"[object Set]":var c=1&r;if(a||(a=Ze),t.size!=e.size&&!c)return!1;var s=u.get(t);if(s)return s==e;r|=2,u.set(t,e);var l=Ke(a(t),a(e),r,o,i,u);return u.delete(t),l;case"[object Symbol]":if(Je)return Je.call(t)==Je.call(e)}return!1}(t,e,s,n,o,i,u);if(!(1&n)){var h=f&&Yn.call(t,"__wrapped__"),v=d&&Yn.call(e,"__wrapped__");if(h||v){var y=h?t.value():t,g=v?e.value():e;return u||(u=new Fe),i(y,g,n,o,u)}}return!!p&&(u||(u=new Fe),function(t,e,n,o,i,u){var a=1&n,c=An(t),s=c.length;if(s!=An(e).length&&!a)return!1;for(var l=s;l--;){var f=c[l];if(!(a?f in e:Pn.call(e,f)))return!1}var d=u.get(t),p=u.get(e);if(d&&p)return d==e&&p==t;var h=!0;u.set(t,e),u.set(e,t);for(var v=a;++l<s;){var y=t[f=c[l]],g=e[f];if(o)var m=a?o(g,y,f,e,t,u):o(y,g,f,t,e,u);if(!(void 0===m?y===g||i(y,g,n,o,u):m)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&r(b,b)&&"function"==typeof w&&r(w,w)||(h=!1)}return u.delete(t),u.delete(e),h}(t,e,n,o,i,u))}(e,n,o,i,t,u))},Xn=function(t,e){return Qn(t,e)},tr={},er=g(766);!function(t){t.loadPatient="loadPatient",t.newPatient="newPatient",t.loadError="patientLoadError"}(qn||(qn={}));var nr,rr={patientUuid:null,patient:null,isPendingUuid:!0,isLoadingPatient:!1,err:null};!function(t){t.loadPatient="loadPatient",t.newPatient="newPatient",t.loadError="patientLloadErroroadError"}(nr||(nr={}));var or,ir,ur,ar={patient:null,isLoadingPatient:!0,err:null},cr=a((0,Nt.getExtensionInternalStore)()),sr=a((0,Nt.getExtensionStore)()),lr=function(t){var e,n=t.privilege,r=t.children,o=function(t){if(Array.isArray(t))return t}(e=(0,Lt.useState)(null))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e)||function(t,e){if(t){if("string"==typeof t)return vt(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vt(t,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],u=o[1];return(0,Lt.useEffect)((function(){var t=(0,er.getCurrentUser)({includeAuthStatus:!1}).subscribe(u);return function(){return t.unsubscribe()}}),[]),i&&(0,er.userHasAccess)(n,i)?Lt.default.createElement(Lt.default.Fragment,null,r):null},fr=g(385),dr=function(t){return t},pr=function(){},hr=void 0,vr=Object,yr=function(t){return t===hr},gr=function(t){return"function"==typeof t},mr=function(t,e){return vr.assign({},t,e)},br="undefined",wr=function(){return("undefined"==typeof window?"undefined":o(window))!=br},_r=new WeakMap,Sr=0,xr=function(t){var e,n,r=void 0===t?"undefined":o(t),i=t&&t.constructor,u=i==Date;if(vr(t)!==t||u||i==RegExp)e=u?t.toJSON():"symbol"==r?t.toString():"string"==r?JSON.stringify(t):""+t;else{if(e=_r.get(t))return e;if(e=++Sr+"~",_r.set(t,e),i==Array){for(e="@",n=0;n<t.length;n++)e+=xr(t[n])+",";_r.set(t,e)}if(i==vr){e="#";for(var a=vr.keys(t).sort();!yr(n=a.pop());)yr(t[n])||(e+=n+":"+xr(t[n])+",");_r.set(t,e)}}return e},Or=!0,jr=wr(),Er=("undefined"==typeof document?"undefined":o(document))!=br,Cr=jr&&window.addEventListener?window.addEventListener.bind(window):pr,kr=Er?document.addEventListener.bind(document):pr,Ar=jr&&window.removeEventListener?window.removeEventListener.bind(window):pr,Pr=Er?document.removeEventListener.bind(document):pr,Ir={isOnline:function(){return Or},isVisible:function(){var t=Er&&document.visibilityState;return yr(t)||"hidden"!==t}},Tr={initFocus:function(t){return kr("visibilitychange",t),Cr("focus",t),function(){Pr("visibilitychange",t),Ar("focus",t)}},initReconnect:function(t){var e=function(){Or=!0,t()},n=function(){Or=!1};return Cr("online",e),Cr("offline",n),function(){Ar("online",e),Ar("offline",n)}}},Lr=!wr()||"Deno"in window,Rr=Lr?Lt.useEffect:Lt.useLayoutEffect,Mr="undefined"!=typeof navigator&&navigator.connection,Dr=!Lr&&Mr&&(["slow-2g","2g"].includes(Mr.effectiveType)||Mr.saveData),Br=function(t){if(gr(t))try{t=t()}catch(e){t=""}var e=[].concat(t);return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?xr(t):"",e,t?"$swr$"+t:""]},Nr=new WeakMap,Ur=function(t,e,n,r,o,i,u){void 0===u&&(u=!0);var a=Nr.get(t),c=a[0],s=a[1],l=a[3],f=c[e],d=s[e];if(u&&d)for(var p=0;p<d.length;++p)d[p](n,r,o);return i&&(delete l[e],f&&f[0])?f[0](2).then((function(){return t.get(e)})):t.get(e)},Hr=0,Fr=function(){return++Hr},Vr=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return jt(void 0,void 0,void 0,(function(){var e,n,r,o,i,u,a,c,s,l,f,d,p,h,v,y,g,m,b,w;return Et(this,(function(_){switch(_.label){case 0:if(e=t[0],n=t[1],r=t[2],o=t[3],u=!!yr((i="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||i.populateCache,a=!1!==i.revalidate,c=!1!==i.rollbackOnError,s=i.optimisticData,l=Br(n),f=l[0],d=l[2],!f)return[2];if(p=Nr.get(e),h=p[2],t.length<3)return[2,Ur(e,f,e.get(f),hr,hr,a,!0)];if(v=r,g=Fr(),h[f]=[g,0],m=!yr(s),b=e.get(f),m&&(e.set(f,s),Ur(e,f,s)),gr(v))try{v=v(e.get(f))}catch(t){y=t}return v&&gr(v.then)?[4,v.catch((function(t){y=t}))]:[3,2];case 1:if(v=_.sent(),g!==h[f][0]){if(y)throw y;return[2,v]}y&&m&&c&&(u=!0,v=b,e.set(f,b)),_.label=2;case 2:return u&&(y||(gr(u)&&(v=u(v,b)),e.set(f,v)),e.set(d,mr(e.get(d),{error:y}))),h[f][1]=Fr(),[4,Ur(e,f,v,y,hr,a,!!u)];case 3:if(w=_.sent(),y)throw y;return[2,u?w:v]}}))}))},$r=function(t,e){for(var n in t)t[n][0]&&t[n][0](e)},zr=function(t,e){if(!Nr.has(t)){var n=mr(Tr,e),r={},o=Vr.bind(hr,t),i=pr;if(Nr.set(t,[r,{},{},{},o]),!Lr){var u=n.initFocus(setTimeout.bind(hr,$r.bind(hr,r,0))),a=n.initReconnect(setTimeout.bind(hr,$r.bind(hr,r,1)));i=function(){u&&u(),a&&a(),Nr.delete(t)}}return[t,o,i]}return[t,Nr.get(t)[4]]},Kr=zr(new Map),qr=Kr[0],Wr=Kr[1],Zr=mr({onLoadingSlow:pr,onSuccess:pr,onError:pr,onErrorRetry:function(t,e,n,r,o){var i=n.errorRetryCount,u=o.retryCount,a=~~((Math.random()+.5)*(1<<(u<8?u:8)))*n.errorRetryInterval;!yr(i)&&u>i||setTimeout(r,a,o)},onDiscarded:pr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Dr?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Dr?5e3:3e3,compare:function(t,e){return xr(t)==xr(e)},isPaused:function(){return!1},cache:qr,mutate:Wr,fallback:{}},Ir),Gr=function(t,e){var n=mr(t,e);if(e){var r=t.use,o=t.fallback,i=e.use,u=e.fallback;r&&i&&(n.use=r.concat(i)),o&&u&&(n.fallback=mr(o,u))}return n},Jr=(0,Lt.createContext)({}),Yr=function(t){return gr(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}]},Qr=function(){return mr(Zr,(0,Lt.useContext)(Jr))},Xr=function(t,e,n){var r=e[t]||(e[t]=[]);return r.push(n),function(){var t=r.indexOf(n);t>=0&&(r[t]=r[r.length-1],r.pop())}},to={dedupe:!0},eo=(vr.defineProperty((function(t){var e=t.value,n=Gr((0,Lt.useContext)(Jr),e),r=e&&e.provider,o=(0,Lt.useState)((function(){return r?zr(r(n.cache||qr),e):hr}))[0];return o&&(n.cache=o[0],n.mutate=o[1]),Rr((function(){return o?o[2]:hr}),[]),(0,Lt.createElement)(Jr.Provider,mr(t,{value:n}))}),"default",{value:Zr}),ur=function(t,e,n){var r=n.cache,i=n.compare,u=n.fallbackData,a=n.suspense,c=n.revalidateOnMount,s=n.refreshInterval,l=n.refreshWhenHidden,f=n.refreshWhenOffline,d=Nr.get(r),p=d[0],h=d[1],v=d[2],y=d[3],g=Br(t),m=g[0],b=g[1],w=g[2],_=(0,Lt.useRef)(!1),S=(0,Lt.useRef)(!1),x=(0,Lt.useRef)(m),O=(0,Lt.useRef)(e),j=(0,Lt.useRef)(n),E=function(){return j.current},C=function(){return E().isVisible()&&E().isOnline()},k=function(t){return r.set(w,mr(r.get(w),t))},A=r.get(m),P=yr(u)?n.fallback[m]:u,I=yr(A)?P:A,T=r.get(w)||{},L=T.error,R=!_.current,M=function(){return R&&!yr(c)?c:!E().isPaused()&&(a?!yr(I):yr(I)||n.revalidateIfStale)},D=!(!m||!e)&&(!!T.isValidating||R&&M()),B=function(t,e){var n=(0,Lt.useState)({})[1],r=(0,Lt.useRef)(t),o=(0,Lt.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,Lt.useCallback)((function(t){var i=!1,u=r.current;for(var a in t){var c=a;u[c]!==t[c]&&(u[c]=t[c],o.current[c]&&(i=!0))}i&&!e.current&&n({})}),[]);return Rr((function(){r.current=t})),[r,o.current,i]}({data:I,error:L,isValidating:D},S),N=B[0],U=B[1],H=B[2],F=(0,Lt.useCallback)((function(t){return jt(void 0,void 0,void 0,(function(){var e,o,u,a,c,s,l,f,d,p,h,g,w;return Et(this,(function(j){switch(j.label){case 0:if(e=O.current,!m||!e||S.current||E().isPaused())return[2,!1];a=!0,c=t||{},s=!y[m]||!c.dedupe,l=function(){return!S.current&&m===x.current&&_.current},f=function(){var t=y[m];t&&t[1]===u&&delete y[m]},d={isValidating:!1},p=function(){k({isValidating:!1}),l()&&H(d)},k({isValidating:!0}),H({isValidating:!0}),j.label=1;case 1:return j.trys.push([1,3,,4]),s&&(Ur(r,m,N.current.data,N.current.error,!0),n.loadingTimeout&&!r.get(m)&&setTimeout((function(){a&&l()&&E().onLoadingSlow(m,n)}),n.loadingTimeout),y[m]=[e.apply(void 0,b),Fr()]),w=y[m],o=w[0],u=w[1],[4,o];case 2:return o=j.sent(),s&&setTimeout(f,n.dedupingInterval),y[m]&&y[m][1]===u?(k({error:hr}),d.error=hr,h=v[m],!yr(h)&&(u<=h[0]||u<=h[1]||0===h[1])?(p(),s&&l()&&E().onDiscarded(m),[2,!1]):(i(N.current.data,o)?d.data=N.current.data:d.data=o,i(r.get(m),o)||r.set(m,o),s&&l()&&E().onSuccess(o,m,n),[3,4])):(s&&l()&&E().onDiscarded(m),[2,!1]);case 3:return g=j.sent(),f(),E().isPaused()||(k({error:g}),d.error=g,s&&l()&&(E().onError(g,m,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||gr(n.shouldRetryOnError)&&n.shouldRetryOnError(g))&&C()&&E().onErrorRetry(g,m,n,F,{retryCount:(c.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return a=!1,p(),l()&&s&&Ur(r,m,d.data,d.error,!1),[2,!0]}}))}))}),[m]),V=(0,Lt.useCallback)(Vr.bind(hr,r,(function(){return x.current})),[]);if(Rr((function(){O.current=e,j.current=n})),Rr((function(){if(m){var t=m!==x.current,e=F.bind(hr,to),n=0,r=Xr(m,h,(function(t,e,n){H(mr({error:e,isValidating:n},i(N.current.data,t)?hr:{data:t}))})),u=Xr(m,p,(function(t){if(0==t){var r=Date.now();E().revalidateOnFocus&&r>n&&C()&&(n=r+E().focusThrottleInterval,e())}else if(1==t)E().revalidateOnReconnect&&C()&&e();else if(2==t)return F()}));return S.current=!1,x.current=m,_.current=!0,t&&H({data:I,error:L,isValidating:D}),M()&&(yr(I)||Lr?e():(a=e,wr()&&o(window.requestAnimationFrame)!=br?window.requestAnimationFrame(a):setTimeout(a,1))),function(){S.current=!0,r(),u()}}var a}),[m,F]),Rr((function(){var t,e=function(){var e=gr(s)?s(I):s;e&&-1!==t&&(t=setTimeout(n,e))},n=function(){N.current.error||!l&&!E().isVisible()||!f&&!E().isOnline()?e():F(to).then(e)};return e(),function(){t&&(clearTimeout(t),t=-1)}}),[s,l,f,F]),(0,Lt.useDebugValue)(I),a&&yr(I)&&m)throw O.current=e,j.current=n,S.current=!1,yr(L)?F(to):L;return{mutate:V,get data(){return U.data=!0,I},get error(){return U.error=!0,L},get isValidating(){return U.isValidating=!0,D}}},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Qr(),r=Yr(t),o=r[0],i=r[1],u=r[2],a=Gr(n,u),c=ur,s=a.use;if(s)for(var l=s.length;l-- >0;)c=s[l](c);return c(o,i||a.fetcher,a)}),no=g(688),ro=g(332),oo=g.n(ro);no.default.extend(oo())}(),m}())}}}))},1493:()=>{System.register([],(function(t,e){return{execute:function(){t(function(){var t={968:function(t,e,n){var r=n(577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},577:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.y=e,r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t}();var o={};return(0,r(968).s)(1),function(){"use strict";var t=function(t,e){for(var n in e)t[n]=e[n];return t},e=function(e){var n=[];function r(t){for(var e=[],r=0;r<n.length;r++)n[r]===t?t=null:e.push(n[r]);n=e}function o(r,o,i){e=o?r:t(t({},e),r);for(var u=n,a=0;a<u.length;a++)u[a](e,i)}return e=e||{},{action:function(t){function n(e){o(e,!1,t)}return function(){for(var r=arguments,o=[e],i=0;i<arguments.length;i++)o.push(r[i]);var u=t.apply(this,o);if(null!=u)return u.then?u.then(n):n(u)}},setState:o,subscribe:function(t){return n.push(t),function(){r(t)}},unsubscribe:r,getState:function(){return e}}},n=function(t,n){var r=s[t];if(r)return r.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):r.value.setState(n,!0),r.active=!0,r.value;var o=e(n);return s[t]={value:o,active:!0},o},i=function(t,n){var r=s[t];if(!r){var o=e(n);return s[t]={value:o,active:!1},o}return r.value},u=function(t){return n("app",t)},a=function(){return i("app",{})},c=function(t,e,n){var r=e(t.getState());return t.subscribe((function(t){var o=e(t);o!==r&&(r=o,n(o))}))};r.r(o),r.d(o,{createAppState:function(){return u},createGlobalStore:function(){return n},getAppState:function(){return a},getGlobalStore:function(){return i},subscribeTo:function(){return c}});var s={}}(),o}())}}}))},2390:()=>{System.register(["@openmrs/esm-extensions","@openmrs/esm-react-utils","@openmrs/esm-state","react","react-dom","rxjs"],(function(t,e){var n={},r={},o={},i={},u={},a={};return{setters:[function(){},function(){},function(t){o.createGlobalStore=t.createGlobalStore},function(){},function(){},function(t){a.Subject=t.Subject}],execute:function(){t(function(){var t={584:function(t,e,n){var r=n(518).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},518:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger},78:function(){var t=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":void 0===t?"undefined":(e=t)&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;var e};System.register(["@openmrs/esm-state","single-spa"],(function(e,n){var r={},o={};return{setters:[function(t){r.createGlobalStore=t.createGlobalStore,r.getGlobalStore=t.getGlobalStore},function(t){o.navigateToUrl=t.navigateToUrl}],execute:function(){e(function(){"use strict";var e={685:function(t){t.exports=r},645:function(t){t.exports=o}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,i),o.exports}i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var u={};return function(){var e=function(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]},n=function(t){return function n(r){return 0===arguments.length||e(r)?n:t.apply(this,arguments)}},r=function(t){return function r(o,i){switch(arguments.length){case 0:return r;case 1:return e(o)?r:n((function(e){return t(o,e)}));default:return e(o)&&e(i)?r:e(o)?n((function(e){return t(e,i)})):e(i)?n((function(e){return t(o,e)})):t(o,i)}}},o=function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n},a=function(t,e,n){for(var r=0,o=n.length;r<o;){if(t(e,n[r]))return!0;r+=1}return!1},c=function(t,e){return Object.prototype.hasOwnProperty.call(e,t)},s=function(t,e,n,r){var i=function(t,e){return ct(t,e,n.slice(),r.slice())},u=o(t);return!a((function(t,e){return!a(i,e,t)}),o(e),u)},l=function(t){return function o(i,u,a){switch(arguments.length){case 0:return o;case 1:return e(i)?o:r((function(e,n){return t(i,e,n)}));case 2:return e(i)&&e(u)?o:e(i)?r((function(e,n){return t(e,u,n)})):e(u)?r((function(e,n){return t(i,e,n)})):n((function(e){return t(i,u,e)}));default:return e(i)&&e(u)&&e(a)?o:e(i)&&e(u)?r((function(e,n){return t(e,n,a)})):e(i)&&e(a)?r((function(e,n){return t(e,u,n)})):e(u)&&e(a)?r((function(e,n){return t(i,e,n)})):e(i)?n((function(e){return t(e,u,a)})):e(u)?n((function(e){return t(i,e,a)})):e(a)?n((function(e){return t(i,u,e)})):t(i,u,a)}}},f=function(t,e,n){for(var r=n.next();!r.done;){if((e=t["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)},d=function(t,e,n,r){return t["@@transducer/result"](n[r](mt(t["@@transducer/step"],t),e))},p=function(t){return"[object Object]"===Object.prototype.toString.call(t)},h=function(t,e){return function(n){if(!t(n))return"function"==typeof e?e(n):e}},v=function(){try{return JSON.parse(localStorage.getItem("openmrs:configAreDevDefaultsOn")||"false")}catch(t){return!1}},y=function(t){return(0,Pt.getGlobalStore)("config-module-".concat(t),{config:null,loaded:!1})},g=function(){return(0,Pt.getGlobalStore)("config-extension-slots",{slots:{}})},m=function(t){return b(g().getState(),t)},b=function(t,e){var n=t.slots[e];return null!=n?n:{loaded:!1,config:{}}},w=function(){return(0,Pt.getGlobalStore)("config-extensions",{configs:{}})},_=function(t,e){return S(w().getState(),t,e)},S=function(t,e,n){var r,o=null===(r=t.configs[e])||void 0===r?void 0:r[n];return null!=o?o:{loaded:!1,config:null}},x=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},O=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},j=function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){O(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t},E=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||k(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},C=function(t){return function(t){if(Array.isArray(t))return x(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||k(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},k=function(t,e){if(t){if("string"==typeof t)return x(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(t,e):void 0}},A=function(t,e){var n=!0,r=!1,o=void 0;try{for(var i,u=Object.keys(t.schemas)[Symbol.iterator]();!(n=(i=u.next()).done);n=!0){var a=i.value,c=F(a,t,e);y(a).setState({loaded:!0,config:c})}}catch(t){r=!0,o=t}finally{try{n||null==u.return||u.return()}finally{if(r)throw o}}},P=function(t,e){var n,r,o=(n=$(H(t,e)),function(t){var e=!0,n=!1,r=void 0;try{for(var o,i=Object.entries(t)[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){var u=E(o.value,2),a=u[0],c=u[1],s=!0,l=!1,f=void 0;try{for(var d,p=Object.entries(c)[Symbol.iterator]();!(s=(d=p.next()).done);s=!0){var h=E(d.value,2),v=h[0];U(h[1],a,v)}}catch(t){l=!0,f=t}finally{try{s||null==p.return||p.return()}finally{if(l)throw f}}}}catch(t){n=!0,r=t}finally{try{e||null==i.return||i.return()}finally{if(n)throw r}}}(r=Object.keys(n).reduce((function(t,e){var r,o;return(null===(r=n[e])||void 0===r?void 0:r.extensionSlots)&&(t[e]=null===(o=n[e])||void 0===o?void 0:o.extensionSlots),t}),{})),Object.keys(r).reduce((function(t,e){return j({},t,r[e])}),{})),i=Object.fromEntries(Object.entries(o).map((function(t){var e=E(t,2);return[e[0],{loaded:!0,config:e[1]}]}))),u=g(),a=u.getState(),c={slots:j({},a.slots,i)};st(a,c)||u.setState(c)},I=function(t,e){var n=function(t,e){var n=Bt(pt(t.schemas)),r=C(t.providedConfigs.map((function(t){return[t.config,t.source]}))).concat([[e.config,"temporary config"]]),o=!0,i=!1,u=void 0;try{for(var a,c=r[Symbol.iterator]();!(o=(a=c.next()).done);o=!0){var s=E(a.value,2);n=$([n,Nt(s[0],s[1])])}}catch(t){i=!0,u=t}finally{try{o||null==c.return||c.return()}finally{if(i)throw u}}return n}(t,e);Dt.setState({config:n})},T=function(t,e,n){var r={},o=!0,i=!1,u=void 0;try{for(var a,c=e.mountedExtensions[Symbol.iterator]();!(o=(a=c.next()).done);o=!0){var s=a.value,l=N(s.slotModuleName,s.extensionModuleName,s.slotName,s.extensionId,t,n);r[s.slotName]=j({},r[s.slotName],O({},s.extensionId,{config:l,loaded:!0}))}}catch(t){i=!0,u=t}finally{try{o||null==c.return||c.return()}finally{if(i)throw u}}w().setState({configs:r})},L=function(t,e){Ut(t,e);var n=Tt.getState();Tt.setState({schemas:j({},n.schemas,O({},t,e))})},R=function(t,e){Ut(t,e);var n=Tt.getState();n.schemas[t]&&console.warn("Config schema for extension ".concat(t," already exists. If there are multiple extensions with this same name, one will probably crash.")),Tt.setState({schemas:j({},n.schemas,O({},t,e))})},M=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"provided",n=Tt.getState();Tt.setState({providedConfigs:C(n.providedConfigs).concat([{source:e,config:t}])})},D=function(t){return new Promise((function(e){var n=function(t){t.loaded&&t.config&&(e(t.config),o&&o())},r=y(t);n(r.getState());var o=r.subscribe(n)}))},B=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];z(t,e,n);var o=Vt(t,e,r);return Ft(t,o,n),o},N=function(t,e,n,r,o,i){var u,a,c,s,l=E(r.split("#"),1)[0],f=o.schemas[l],d=f?l:e,p=H(o,i),h=V(t,p),v=null!==(s=null==h||null===(u=h.extensionSlots)||void 0===u||null===(a=u[n])||void 0===a||null===(c=a.configure)||void 0===c?void 0:c[r])&&void 0!==s?s:{},y=$([V(d,p),v]),g=null!=f?f:o.schemas[e];z(g,y,d);var m=Vt(g,y,o.devDefaultsAreOn);return Ft(g,m,d),delete m.extensionSlots,m},U=function(t,e,n){var r="Extension slot config '".concat(e,".extensionSlots.").concat(n),o=Object.keys(t).filter((function(t){return!["add","remove","order","configure"].includes(t)}));o.length&&console.error(r+"' contains invalid keys '".concat(o.join("', '"),"'")),t.add&&(Array.isArray(t.add)&&t.add.every((function(t){return"string"==typeof t}))||console.error(r+".add' is invalid. Must be an array of strings (extension IDs)")),t.remove&&(Array.isArray(t.remove)&&t.remove.every((function(t){return"string"==typeof t}))||console.error(r+".remove' is invalid. Must be an array of strings (extension IDs)")),t.order&&(Array.isArray(t.order)&&t.order.every((function(t){return"string"==typeof t}))||console.error(r+".order' is invalid. Must be an array of strings (extension IDs)")),t.configure&&(Z(t.configure)||console.error(r+".configure' is invalid. Must be an object with extension IDs for keys"))},H=function(t,e){return C(t.providedConfigs.map((function(t){return t.config}))).concat([e.config])},F=function(t,e,n){if(!e.schemas.hasOwnProperty(t))throw Error("No config schema has been defined for "+t);var r=e.schemas[t],o=V(t,H(e,n));z(r,o,t);var i=Vt(r,o,e.devDefaultsAreOn);return Ft(r,i,t),delete i.extensionSlots,i},V=function(t,e){return $(e.map((function(e){return e[t]})).filter((function(t){return!!t})))},$=function(t){return wt(xt)({},t)},z=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!0,o=!1,i=void 0;try{for(var u,a=Object.keys(e)[Symbol.iterator]();!(r=(u=a.next()).done);r=!0){var c=u.value,s=e[c],l=n+"."+c,f=t[c];t.hasOwnProperty(c)?Ht(f,s,l):"extensionSlots"===c&&""!==n||console.error("Unknown config key '".concat(l,"' provided. Ignoring."))}}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}},K=function(t,e,n){e&&q(t,[{Array:Ot,Boolean:jt,ConceptUuid:At,Number:Et,Object:kt,String:Ct,UUID:At,PersonAttributeTypeUuid:At,PatientIdentifierTypeUuid:At}[e]],n)},q=function(t,e,n){if(e)try{var r=!0,o=!1,i=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done);r=!0){var c=(0,u.value)(n);"string"==typeof c&&("object"==typeof n?console.error("Invalid configuration for ".concat(t,": ").concat(c)):console.error("Invalid configuration value ".concat(n," for ").concat(t,": ").concat(c)))}}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}}catch(e){console.error('Skipping invalid validator at "'.concat(t,'". Encountered error\n\t').concat(e))}},W=function(t){return!!t&&Object.keys(t).filter((function(t){return!["_default","_validators"].includes(t)})).length>0},Z=function(t){return"object"==typeof t&&!Array.isArray(t)&&null!==t},G=function(t){var e=window.getOpenmrsSpaBase().replace(/\/$/,"");return J(t,{openmrsBase:window.openmrsBase,openmrsSpaBase:e}).replace(/^\/\//,"/")},J=function(t,e){return Object.keys(e).reduce((function(t,n){return t.split("${"+n+"}").join(e[n])}),t)},Y=function(t){var e=t.to,n=window.getOpenmrsSpaBase().replace(/\/$/,""),r=G(e);r.startsWith(n)?(0,$t.navigateToUrl)(r):window.location.assign(r)};i.r(u),i.d(u,{Type:function(){return ft},configExtensionStore:function(){return Mt},configInternalStore:function(){return Tt},defineConfigSchema:function(){return L},defineExtensionConfigSchema:function(){return R},getConfig:function(){return D},getConfigStore:function(){return y},getExtensionConfig:function(){return _},getExtensionConfigFromStore:function(){return S},getExtensionSlotConfig:function(){return m},getExtensionSlotConfigFromStore:function(){return b},getExtensionSlotsConfigStore:function(){return g},getExtensionsConfigStore:function(){return w},implementerToolsConfigStore:function(){return Dt},inRange:function(){return zt},interpolateString:function(){return J},interpolateUrl:function(){return G},isUrl:function(){return qt},isUrlWithTemplateParameters:function(){return Kt},navigate:function(){return Y},oneOf:function(){return Wt},processConfig:function(){return B},provide:function(){return M},temporaryConfigStore:function(){return Rt},validator:function(){return h},validators:function(){return Zt}});var Q="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e},X=Object.prototype.toString,tt=function(){return"[object Arguments]"===X.call(arguments)?function(t){return"[object Arguments]"===X.call(t)}:function(t){return c("callee",t)}}(),et=tt,nt=!{toString:null}.propertyIsEnumerable("toString"),rt=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],ot=function(){return arguments.propertyIsEnumerable("length")}(),it=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1},ut="function"!=typeof Object.keys||ot?n((function(t){if(Object(t)!==t)return[];var e,n,r=[],o=ot&&et(t);for(e in t)!c(e,t)||o&&"length"===e||(r[r.length]=e);if(nt)for(n=rt.length-1;n>=0;)c(e=rt[n],t)&&!it(r,e)&&(r[r.length]=e),n-=1;return r})):n((function(t){return Object(t)!==t?[]:Object.keys(t)})),at=n((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function ct(e,n,r,o){if(Q(e,n))return!0;var i,u,a=at(e);if(a!==at(n))return!1;if(null==e||null==n)return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof n.equals)return"function"==typeof e.equals&&e.equals(n)&&"function"==typeof n.equals&&n.equals(e);switch(a){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(i=e.constructor,null==(u=String(i).match(/^function (\w*)/))?"":u[1]))return e===n;break;case"Boolean":case"Number":case"String":if((void 0===e?"undefined":t(e))!=(void 0===n?"undefined":t(n))||!Q(e.valueOf(),n.valueOf()))return!1;break;case"Date":if(!Q(e.valueOf(),n.valueOf()))return!1;break;case"Error":return e.name===n.name&&e.message===n.message;case"RegExp":if(e.source!==n.source||e.global!==n.global||e.ignoreCase!==n.ignoreCase||e.multiline!==n.multiline||e.sticky!==n.sticky||e.unicode!==n.unicode)return!1}for(var l=r.length-1;l>=0;){if(r[l]===e)return o[l]===n;l-=1}switch(a){case"Map":return e.size===n.size&&s(e.entries(),n.entries(),r.concat([e]),o.concat([n]));case"Set":return e.size===n.size&&s(e.values(),n.values(),r.concat([e]),o.concat([n]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var f=ut(e);if(f.length!==ut(n).length)return!1;var d=r.concat([e]),p=o.concat([n]);for(l=f.length-1;l>=0;){var h=f[l];if(!c(h,n)||!ct(n[h],e[h],d,p))return!1;l-=1}return!0}var st=r((function(t,e){return ct(t,e,[],[])}));function lt(t,e,n,r){var o,i=function(o){for(var i=e.length,u=0;u<i;){if(t===e[u])return n[u];u+=1}for(var a in e[u+1]=t,n[u+1]=o,t)o[a]=r?lt(t[a],e,n,!0):t[a];return o};switch(at(t)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(t.valueOf());case"RegExp":return o=t,new RegExp(o.source,(o.global?"g":"")+(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.sticky?"y":"")+(o.unicode?"u":""));default:return t}}var ft,dt,pt=n((function(t){return null!=t&&"function"==typeof t.clone?t.clone():lt(t,[],[],!0)})),ht=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)},vt=n((function(t){return!!ht(t)||!!t&&"object"==typeof t&&(e=t,!("[object String]"===Object.prototype.toString.call(e)))&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1));var e})),yt=function(){var t=function(t){this.f=t};return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}(),gt=r((function(t,e){return function(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,o){return e.apply(this,arguments)};case 5:return function(t,n,r,o,i){return e.apply(this,arguments)};case 6:return function(t,n,r,o,i,u){return e.apply(this,arguments)};case 7:return function(t,n,r,o,i,u,a){return e.apply(this,arguments)};case 8:return function(t,n,r,o,i,u,a,c){return e.apply(this,arguments)};case 9:return function(t,n,r,o,i,u,a,c,s){return e.apply(this,arguments)};case 10:return function(t,n,r,o,i,u,a,c,s,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}(t.length,(function(){return t.apply(e,arguments)}))})),mt=gt,bt="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",wt=l((function(t,e,n){if("function"==typeof t&&(t=new yt(t)),vt(n))return function(t,e,n){for(var r=0,o=n.length;r<o;){if((e=t["@@transducer/step"](e,n[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}(t,e,n);if("function"==typeof n["fantasy-land/reduce"])return d(t,e,n,"fantasy-land/reduce");if(null!=n[bt])return f(t,e,n[bt]());if("function"==typeof n.next)return f(t,e,n);if("function"==typeof n.reduce)return d(t,e,n,"reduce");throw new TypeError("reduce: list must be array or iterable")})),_t=l((function(t,e,n){var r,o={};for(r in e)c(r,e)&&(o[r]=c(r,n)?t(r,e[r],n[r]):e[r]);for(r in n)c(r,n)&&!c(r,o)&&(o[r]=n[r]);return o})),St=l((function t(e,n,r){return _t((function(n,r,o){return p(r)&&p(o)?t(e,r,o):e(n,r,o)}),n,r)})),xt=r((function(t,e){return St((function(t,e,n){return n}),t,e)}));(dt=ft||(ft={})).Array="Array",dt.Boolean="Boolean",dt.ConceptUuid="ConceptUuid",dt.Number="Number",dt.Object="Object",dt.String="String",dt.UUID="UUID",dt.PersonAttributeTypeUuid="PersonAttributeTypeUuid",dt.PatientIdentifierTypeUuid="PatientIdentifierTypeUuid";var Ot=h((function(t){return Array.isArray(t)}),"must be an array"),jt=h((function(t){return"boolean"==typeof t}),"must be a boolean"),Et=h((function(t){return"number"==typeof t}),"must be a number"),Ct=h((function(t){return"string"==typeof t}),"must be a string"),kt=h((function(t){return"object"==typeof t&&!Array.isArray(t)&&null!==t}),"must be an object (not an array or null)"),At=h((function(t){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)||/^[0-9a-f]{36}$/i.test(t)}),"must be a valid UUID or a 36-character hexadecimal string"),Pt=i(685),It={providedConfigs:[],schemas:{},devDefaultsAreOn:v()},Tt=(0,Pt.createGlobalStore)("config-internal",It),Lt=v();Tt.subscribe((function(t){var e;t.devDefaultsAreOn!=Lt&&(e=t.devDefaultsAreOn,localStorage.setItem("openmrs:configAreDevDefaultsOn",JSON.stringify(e)),Lt=t.devDefaultsAreOn)}));var Rt=(0,Pt.createGlobalStore)("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(t){return{}}}()});Rt.subscribe((function(t){var e;e=t.config,localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(e))}));var Mt=(0,Pt.createGlobalStore)("config-store-of-extension-state",{mountedExtensions:[]}),Dt=(0,Pt.createGlobalStore)("config-implementer-tools",{config:{}});function Bt(t){return t.hasOwnProperty("_default")?j({},t,{_value:t._default,_source:"default"}):Z(t)?Object.keys(t).reduce((function(e,n){return e[n]=Bt(t[n]),e}),{}):{}}function Nt(t,e){return Z(t)?Object.keys(t).reduce((function(n,r){return n[r]=Nt(t[r],e),n}),{}):{_value:t,_source:e}}function Ut(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r="Please verify that you are running the latest version and, if so, alert the maintainer.",o=!0,i=!1,u=void 0;try{for(var a,c=function(o,i){var u=i.value,a=n+(n&&".")+u,c=e[u];if(!Z(c))return console.error("".concat(t," has bad config schema definition for key '").concat(a,"'. ").concat(r)),"continue";c.hasOwnProperty("_default")||Ut(t,c,a);var s=c._elements;if(W(s)&&Ut(t,s,a+"._elements"),c._validators){var l=!0,f=!1,d=void 0;try{for(var p,h=c._validators[Symbol.iterator]();!(l=(p=h.next()).done);l=!0){var v=p.value;"function"!=typeof v&&console.error("".concat(t," has invalid validator for key '").concat(a,"' ").concat(r,".")+"\n\nIf you're the maintainer: validators must be functions that return either "+"undefined or an error string. Received ".concat(v,"."))}}catch(t){f=!0,d=t}finally{try{l||null==h.return||h.return()}finally{if(f)throw d}}}var y=c._type;y&&!Object.values(ft).includes(y)&&console.error("".concat(t," has invalid type for key '").concat(a,"' ").concat(r,".")+"\n\nIf you're the maintainer: the allowed types are ".concat(Object.values(ft).join(", "),". ")+"Received '".concat(y,"'")),Object.keys(c).every((function(t){return["_description","_validators","_elements","_type"].includes(t)}))&&!n.includes("._elements")&&console.error("".concat(t," has bad config schema definition for key '").concat(a,"'. ").concat(r,".")+"\n\nIf you're the maintainer: all config elements must have a default. "+"Received ".concat(JSON.stringify(c))),s&&y&&![ft.Array,ft.Object].includes(y)&&console.error("".concat(t," has bad config schema definition for key '").concat(a,"'. ").concat(r,".")+"\n\nIf you're the maintainer: the 'elements' key only works with '_type' equal to 'Array' or 'Object'. "+"Received ".concat(JSON.stringify(y)))},s=Object.keys(e).filter((function(t){return!t.startsWith("_")}))[Symbol.iterator]();!(o=(a=s.next()).done);o=!0)c(s,a)}catch(t){i=!0,u=t}finally{try{o||null==s.return||s.return()}finally{if(i)throw u}}}function Ht(t,e,n){K(n,t._type,e),Z(e)?t._type===ft.Object?function(t,e,n){if(t._elements){var r=!0,o=!1,i=void 0;try{for(var u,a=Object.keys(e)[Symbol.iterator]();!(r=(u=a.next()).done);r=!0){var c=u.value,s=e[c];z(t._elements,s,"".concat(n,".").concat(c))}}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}}}(t,e,n):t.hasOwnProperty("_default")||z(t,e,n):t._type===ft.Array&&function(t,e,n){if(W(t._elements))for(var r=0;r<e.length;r++)Ht(t._elements,e[r],"".concat(n,"[").concat(r,"]"));for(var o=0;o<e.length;o++){var i;K("".concat(n,"[").concat(o,"]"),null===(i=t._elements)||void 0===i?void 0:i._type,e[o])}}(t,e,n)}function Ft(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(t)if(e!==t._default&&q(n,t._validators,e),Z(e)){var r=!0,o=!1,i=void 0;try{for(var u,a=Object.keys(e)[Symbol.iterator]();!(r=(u=a.next()).done);r=!0){var c=u.value,s=e[c],l=n+"."+c,f=t[c];t._type===ft.Object&&t._elements?Ft(t._elements,s,l):Ft(f,s,l)}}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}}else if(Array.isArray(e)&&t._elements)for(var d=0;d<e.length;d++)Ft(t._elements,e[d],"".concat(n,"[").concat(d,"]"))}A(Tt.getState(),Rt.getState()),Tt.subscribe((function(t){return A(t,Rt.getState())})),Rt.subscribe((function(t){return A(Tt.getState(),t)})),I(Tt.getState(),Rt.getState()),Tt.subscribe((function(t){return I(t,Rt.getState())})),Rt.subscribe((function(t){return I(Tt.getState(),t)})),P(Tt.getState(),Rt.getState()),Tt.subscribe((function(t){return P(t,Rt.getState())})),Rt.subscribe((function(t){return P(Tt.getState(),t)})),T(Tt.getState(),Mt.getState(),Rt.getState()),Tt.subscribe((function(t){T(t,Mt.getState(),Rt.getState())})),Mt.subscribe((function(t){T(Tt.getState(),t,Rt.getState())})),Rt.subscribe((function(t){T(Tt.getState(),Mt.getState(),t)}));var Vt=function(t,e,n){var r=pt(e);if(!t)return r;var o=!0,i=!1,u=void 0;try{for(var a,c=function(e,o){var i=o.value,u=r[i],a=t[i];if(a&&a.hasOwnProperty("_default")){if(!r.hasOwnProperty(i)){var c=a._devDefault||a._default;r[i]=n?c:a._default}var s=a._elements;if(u&&W(s))if(a._type===ft.Array&&Array.isArray(u)){var l=u.map((function(t){return Vt(s,t,n)}));r[i]=l}else if(a._type===ft.Object){var f=!0,d=!1,p=void 0;try{for(var h,v=Object.keys(u)[Symbol.iterator]();!(f=(h=v.next()).done);f=!0){var y=h.value;u[y]=Vt(s,u[y],n)}}catch(t){d=!0,p=t}finally{try{f||null==v.return||v.return()}finally{if(d)throw p}}}}else if(Z(a)){var g=r.hasOwnProperty(i)?u:{};Z(g)&&(r[i]=Vt(a,g,n))}},s=Object.keys(t)[Symbol.iterator]();!(o=(a=s.next()).done);o=!0)c(0,a)}catch(t){i=!0,u=t}finally{try{o||null==s.return||s.return()}finally{if(i)throw u}}return r},$t=i(645),zt=function(t,e){return h((function(n){return t<=n&&n<=e}),"must be between ".concat(t," and ").concat(e))},Kt=function(t){var e=t.concat(["openmrsBase","openmrsSpaBase"]);return h((function(t){if(!t||"string"!=typeof t)return!1;for(var n=/\${(.*?)}/g,r=n.exec(t);r;){if(!e.includes(r[1]))return!1;r=n.exec(t)}return!0}),"Should be a URL or path. The allowed template parameters are "+e.map((function(t){return"${"+t+"}"})).join(", "))},qt=Kt([]),Wt=function(t){return h((function(e){return t.includes(e)}),"Must be one of the following: '".concat(t.join("', '"),"'."))},Zt={inRange:zt,isUrl:qt,isUrlWithTemplateParameters:Kt,oneOf:Wt}}(),u}())}}}))},991:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/callend/access_time24px">\n <path id="icon/callend/access_time24px" d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-.22-13h-.06c-.4 0-.72.32-.72.72v4.72c0 .35.18.68.49.86l4.15 2.49c.34.2.78.1.98-.24.21-.34.1-.79-.25-.99l-3.87-2.3V7.72c0-.4-.32-.72-.72-.72z" />\n </g>\n <title>Access time rounded</title>\n</svg>'},662:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <g id="icon/content/add-24px">\n <path d="M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z"/>\n </g>\n <title>Add rounded</title>\n</svg>\n'},865:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/arrow_back_24px">\n <path id="icon/navigation/arrow_back_24px_2" d="M18.7912 11.005H7.62124L12.5012 6.12499C12.8912 5.73499 12.8912 5.09499 12.5012 4.70499C12.3144 4.51774 12.0608 4.41251 11.7962 4.41251C11.5317 4.41251 11.2781 4.51774 11.0912 4.70499L4.50124 11.295C4.11124 11.685 4.11124 12.315 4.50124 12.705L11.0912 19.295C11.4812 19.685 12.1112 19.685 12.5012 19.295C12.8912 18.905 12.8912 18.275 12.5012 17.885L7.62124 13.005H18.7912C19.3412 13.005 19.7912 12.555 19.7912 12.005C19.7912 11.455 19.3412 11.005 18.7912 11.005Z"/>\n </g>\n <title>Arrow back rounded</title>\n</svg>\n'},646:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/arrow_downward_24px">\n <path id="icon/navigation/arrow_downward_24px_2" d="M11.005 5.20874V16.3787L6.12498 11.4987C5.73498 11.1087 5.09498 11.1087 4.70498 11.4987C4.31498 11.8887 4.31498 12.5187 4.70498 12.9087L11.295 19.4987C11.685 19.8887 12.315 19.8887 12.705 19.4987L19.295 12.9087C19.685 12.5187 19.685 11.8887 19.295 11.4987C19.1081 11.3115 18.8545 11.2063 18.59 11.2063C18.3255 11.2063 18.0718 11.3115 17.885 11.4987L13.005 16.3787V5.20874C13.005 4.65874 12.555 4.20874 12.005 4.20874C11.455 4.20874 11.005 4.65874 11.005 5.20874Z"/>\n </g>\n <title>Arrow downward rounded</title>\n</svg>\n'},509:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1z"/>\n <title>Arrow forward rounded</title>\n</svg>'},250:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/arrow_upward_24px">\n <path id="icon/navigation/arrow_upward_24px_2" d="M13 18.7913V7.62126L17.88 12.5013C18.27 12.8913 18.91 12.8913 19.3 12.5013C19.69 12.1113 19.69 11.4813 19.3 11.0913L12.71 4.50126C12.5231 4.314 12.2695 4.20877 12.005 4.20877C11.7405 4.20877 11.4868 4.314 11.3 4.50126L4.69997 11.0813C4.30997 11.4713 4.30997 12.1013 4.69997 12.4913C5.08997 12.8813 5.71997 12.8813 6.10997 12.4913L11 7.62126V18.7913C11 19.3413 11.45 19.7913 12 19.7913C12.55 19.7913 13 19.3413 13 18.7913Z"/>\n </g>\n <title>Arrow upward rounded </title>\n</svg>\n'},142:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/callend/calendar24px">\n <path d="M20 3h-1V2c0-.55-.45-1-1-1s-1 .45-1 1v1H7V2c0-.55-.45-1-1-1s-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 18H5c-.55 0-1-.45-1-1V8h16v12c0 .55-.45 1-1 1z"/>\n </g>\n <title>Calendar rounded</title>\n</svg>'},451:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>\n <title>Check circle</title>\n</svg>\n'},61:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_down_24px">\n <path id="icon/navigation/chevron_down_24px" d="M8.12 9.29L12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7c-.39-.39-.39-1.02 0-1.41.39-.38 1.03-.39 1.42 0z"/>\n </g>\n <title>Chevron down</title>\n</svg>\n'},76:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_left_24px">\n <path id="icon/navigation/chevron_left_24px_2" d="M15 6.70499C14.8132 6.51774 14.5595 6.41251 14.295 6.41251C14.0305 6.41251 13.7769 6.51774 13.59 6.70499L9.00002 11.295C8.61002 11.685 8.61002 12.315 9.00002 12.705L13.59 17.295C13.98 17.685 14.61 17.685 15 17.295C15.39 16.905 15.39 16.275 15 15.885L11.12 11.995L15 8.11499C15.39 7.72499 15.38 7.08499 15 6.70499Z"/>\n </g>\n <title>Chevron left</title>\n</svg>\n'},600:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_right_24px">\n <path id="icon/navigation/chevron_right_24px_2" d="M9.00002 6.71063C8.61002 7.10063 8.61002 7.73063 9.00002 8.12063L12.88 12.0006L9.00002 15.8806C8.61002 16.2706 8.61002 16.9006 9.00002 17.2906C9.39002 17.6806 10.02 17.6806 10.41 17.2906L15 12.7006C15.39 12.3106 15.39 11.6806 15 11.2906L10.41 6.70063C10.03 6.32063 9.39002 6.32063 9.00002 6.71063Z"/>\n </g>\n <title>Chevron right</title>\n</svg>\n'},40:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_up_24px">\n <path d="M11.29 8.71L6.7 13.3c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 10.83l3.88 3.88c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 8.71c-.38-.39-1.02-.39-1.41 0z"/>\n </g>\n <title>Chevron up</title>\n</svg>\n'},714:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M18.3 5.71c-.39-.39-1.02-.39-1.41 0L12 10.59 7.11 5.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"/>\n <title>Close icon</title>\n</svg>'},752:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z" />\n <title>Download icon</title>\n</svg>'},862:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n<g id="icon/navigation/home_24px">\n <path id="icon/navigation/home_24px" d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z"/>\n</g>\n<title>Home rounded</title>\n</svg>'},601:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/important_notification_24px_rounded">\n <path d="M12 23c1.1 0 1.99-.89 1.99-1.99h-3.98c0 1.1.89 1.99 1.99 1.99zm8.29-4.71L19 17v-6c0-3.35-2.36-6.15-5.5-6.83V3c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v1.17C7.36 4.85 5 7.65 5 11v6l-1.29 1.29c-.63.63-.19 1.71.7 1.71h15.17c.9 0 1.34-1.08.71-1.71zM13 16h-2v-2h2v2zm0-5c0 .55-.45 1-1 1s-1-.45-1-1V9c0-.55.45-1 1-1s1 .45 1 1v2z"/>\n </g>\n <title>Important notification</title>\n</svg>\n'},879:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24">\n <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/>\n <path d="M0 0h24v24H0z" class="omrs-icon-location"/>\n <title>Location icon</title>\n</svg>'},739:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/menu_24px">\n <path id="icon/navigation/menu_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M4 8C3.44995 8 3 7.54999 3 7C3 6.45001 3.44995 6 4 6H20C20.55 6 21 6.45001 21 7C21 7.54999 20.55 8 20 8H4ZM4 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11H4C3.44995 11 3 11.45 3 12C3 12.55 3.44995 13 4 13ZM4 18H20C20.55 18 21 17.55 21 17C21 16.45 20.55 16 20 16H4C3.44995 16 3 16.45 3 17C3 17.55 3.44995 18 4 18Z"/>\n </g>\n <title>Menu rounded</title>\n</svg>\n'},524:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/content/add-24px">\n <path d="M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1z"/>\n </g>\n <title>Remove rounded</title>\n</svg>\n'},787:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/search_24px">\n <path id="icon/action/search_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M15.1865 14.4716H15.9765L20.2165 18.7316C20.6266 19.1416 20.6266 19.8116 20.2165 20.2216C19.8065 20.6316 19.1366 20.6316 18.7265 20.2216L14.4765 15.9716V15.1816L14.2065 14.9016C12.8065 16.1016 10.8966 16.7216 8.86655 16.3816C6.08652 15.9116 3.86655 13.5916 3.52658 10.7916C3.00656 6.56158 6.5665 3.00158 10.7966 3.52157C13.5965 3.86157 15.9166 6.08157 16.3866 8.86157C16.7265 10.8916 16.1065 12.8016 14.9066 14.2016L15.1865 14.4716ZM5.47653 9.97155C5.47653 12.4615 7.48654 14.4716 9.97653 14.4716C12.4665 14.4716 14.4765 12.4615 14.4765 9.97155C14.4765 7.48156 12.4665 5.47155 9.97653 5.47155C7.48654 5.47155 5.47653 7.48156 5.47653 9.97155Z"/>\n </g>\n <title>Search rounded</title>\n</svg>\n'},592:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/supervised_user_circle_24px">\n <path id="icon/action/supervised_user_circle_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M12 2C6.47998 2 2 6.48001 2 12C2 17.52 6.47998 22 12 22C17.52 22 22 17.52 22 12C22 6.48001 17.52 2 12 2ZM15.61 8.34C16.6801 8.34 17.54 9.19998 17.54 10.27C17.54 11.34 16.6801 12.2 15.61 12.2C14.54 12.2 13.6801 11.34 13.6801 10.27C13.67 9.19998 14.54 8.34 15.61 8.34ZM11.97 9.12C11.97 7.82001 10.91 6.76001 9.60999 6.76001C8.30005 6.76001 7.25 7.81 7.25 9.12C7.25 10.42 8.31006 11.48 9.60999 11.48C10.91 11.48 11.97 10.42 11.97 9.12ZM9.60999 15.89V19.64C7.20996 18.89 5.30994 17.04 4.46997 14.68C5.52002 13.56 8.14001 12.99 9.60999 12.99C10.14 12.99 10.8099 13.07 11.51 13.21C9.87 14.08 9.60999 15.23 9.60999 15.89ZM11.21 19.96C11.47 19.99 11.73 20 12 20C15.39 20 18.2799 17.88 19.45 14.91C18.5299 14.15 16.6799 13.76 15.61 13.76C14.1499 13.76 11.21 14.47 11.21 15.89V19.96Z"/>\n </g>\n <title>Supervised user circle rounded</title>\n</svg>\n'},141:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/visibility_24px">\n <path id="icon/action/visibility_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M12 4.5C7 4.5 2.72998 7.60999 1 12C2.72998 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.60999 17 4.5 12 4.5ZM12 17C9.23999 17 7 14.76 7 12C7 9.23999 9.23999 7 12 7C14.76 7 17 9.23999 17 12C17 14.76 14.76 17 12 17ZM9 12C9 10.34 10.34 9 12 9C13.66 9 15 10.34 15 12C15 13.66 13.66 15 12 15C10.34 15 9 13.66 9 12Z"/>\n </g>\n <title>Visibility rounded</title>\n</svg>\n'},647:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/visibility_24px">\n <path d="M15.85 3.85L17.3 5.3l-2.18 2.16c-.39.39-.39 1.03 0 1.42.39.39 1.03.39 1.42 0L18.7 6.7l1.45 1.45c.31.31.85.09.85-.36V3.5c0-.28-.22-.5-.5-.5h-4.29c-.45 0-.67.54-.36.85zm-12 4.3L5.3 6.7l2.16 2.18c.39.39 1.03.39 1.42 0 .39-.39.39-1.03 0-1.42L6.7 5.3l1.45-1.45c.31-.31.09-.85-.36-.85H3.5c-.28 0-.5.22-.5.5v4.29c0 .45.54.67.85.36zm4.3 12L6.7 18.7l2.18-2.16c.39-.39.39-1.03 0-1.42-.39-.39-1.03-.39-1.42 0L5.3 17.3l-1.45-1.45c-.31-.31-.85-.09-.85.36v4.29c0 .28.22.5.5.5h4.29c.45 0 .67-.54.36-.85zm12-4.3L18.7 17.3l-2.16-2.18c-.39-.39-1.03-.39-1.42 0-.39.39-.39 1.03 0 1.42l2.18 2.16-1.45 1.45c-.31.31-.09.85.36.85h4.29c.28 0 .5-.22.5-.5v-4.29c0-.45-.54-.67-.85-.36z" />\n </g>\n <title>\n Zoom Out \n </title>\n</svg>'},885:function(t){"use strict";t.exports='<svg viewBox="0 0 380 119" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.29 40.3278C45.3275 35.2904 52.2878 32.1739 59.9776 32.1739C67.6466 32.1739 74.5911 35.2765 79.6245 40.29L79.6454 21.7502C73.7513 18.7143 67.0622 17 59.9776 17C52.8891 17 46.1652 18.9309 40.2692 21.9679L40.29 40.3278Z" fill="var(--logo-red)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6454 79.6712C74.6079 84.7096 67.6506 87.8251 59.9608 87.8251C52.2918 87.8251 45.3473 84.7236 40.3099 79.709L40.29 98.2498C46.1871 101.285 52.8732 103 59.9608 103C67.0493 103 73.7374 101.285 79.6315 98.2488L79.6454 79.6712Z" fill="var(--logo-orange)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.3278 79.6961C35.2904 74.6586 32.1739 67.7012 32.1739 60.0114C32.1739 52.3425 35.2755 45.399 40.29 40.3616L21.7492 40.3417C18.7143 46.2378 17 52.9229 17 60.0114C17 67.1 18.7143 73.7881 21.7522 79.6831L40.3278 79.6961Z" fill="var(--logo-purple)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6344 40.289C84.6719 45.3255 87.7883 52.2868 87.7883 59.9766C87.7883 67.6456 84.6868 74.5901 79.6712 79.6225L98.213 79.6434C101.248 73.7493 102.962 67.0612 102.962 59.9766C102.962 52.8871 101.248 46.198 98.211 40.302L79.6344 40.289Z" fill="var(--logo-green)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M156.184 60.0025C156.184 51.2543 150.066 44.2264 141.159 44.2264C132.25 44.2264 126.134 51.2543 126.134 60.0025C126.134 68.7507 132.25 75.7816 141.159 75.7816C150.066 75.7816 156.184 68.7507 156.184 60.0025ZM121.303 60.0025C121.303 48.5205 129.621 40.0436 141.159 40.0436C152.695 40.0436 161.014 48.5205 161.014 60.0025C161.014 71.4875 152.695 79.9674 141.159 79.9674C129.621 79.9674 121.303 71.4875 121.303 60.0025Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M179.514 75.5401C185.021 75.5401 188.564 71.4 188.564 66.0585C188.564 60.717 185.021 56.575 179.514 56.575C174.009 56.575 170.468 60.717 170.468 66.0585C170.468 71.4 174.009 75.5401 179.514 75.5401ZM166.22 53.3064H170.468V57.0102H170.578C172.922 54.2853 176.027 52.6506 179.732 52.6506C187.746 52.6506 193.14 58.32 193.14 66.0585C193.14 73.6887 187.527 79.4645 180.388 79.4645C175.808 79.4645 172.157 77.1749 170.578 74.286H170.468V90.87H166.22V53.3064Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.773 63.7679C217.61 59.4629 214.773 56.575 210.087 56.575C205.402 56.575 202.297 59.4629 201.752 63.7679H217.773ZM221.426 74.1796C218.425 78.0484 214.83 79.4645 210.087 79.4645C202.077 79.4645 197.173 73.4711 197.173 66.0585C197.173 58.157 202.732 52.6506 210.253 52.6506C217.449 52.6506 222.349 57.5568 222.349 66.0049V67.3673H201.752C202.077 71.7797 205.456 75.5401 210.087 75.5401C213.737 75.5401 216.192 74.2333 218.207 71.6723L221.426 74.1796Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.854 59.3565C227.854 57.0102 227.638 54.9959 227.638 53.3064H231.669C231.669 54.6689 231.779 56.083 231.779 57.5012H231.889C233.033 54.9959 236.195 52.6506 240.389 52.6506C247.094 52.6506 250.088 56.9029 250.088 63.0603V78.8086H245.84V63.4986C245.84 59.2462 243.984 56.575 240.007 56.575C234.504 56.575 232.104 60.554 232.104 66.3865V78.8086H227.854V59.3565Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M259.211 41.0085H265.919L278.8 70.7909H278.907L291.889 41.0085H298.438V78.9994H293.932V47.1242H293.826L280.192 78.9994H277.454L263.825 47.1242H263.718V78.9994H259.211V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M312.392 57.7516H316.415C321.407 57.7516 327.902 57.7516 327.902 51.47C327.902 45.9992 323.126 45.1943 318.725 45.1943H312.392V57.7516ZM307.886 41.0085H317.597C324.949 41.0085 332.729 42.0798 332.729 51.47C332.729 56.9973 329.135 60.5948 323.234 61.507L334.018 78.9994H328.493L318.189 61.9364H312.392V78.9994H307.886V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M358.123 47.7125C356.617 45.2986 353.936 44.2264 351.197 44.2264C347.224 44.2264 343.097 46.1056 343.097 50.6113C343.097 54.1005 345.028 55.6577 351.091 57.5906C356.994 59.4688 362.468 61.3997 362.468 68.858C362.468 76.4246 355.973 79.9674 349.108 79.9674C344.706 79.9674 339.983 78.5174 337.408 74.7063L341.27 71.5412C342.88 74.3347 346.1 75.7816 349.375 75.7816C353.237 75.7816 357.638 73.5277 357.638 69.18C357.638 64.5112 354.473 63.7063 347.71 61.4524C342.344 59.6805 338.268 57.3183 338.268 50.989C338.268 43.6907 344.545 40.0436 351.197 40.0436C355.438 40.0436 359.033 41.2222 361.822 44.4947L358.123 47.7125Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M185.885 90.9982H187.309L190.043 97.3236H190.066L192.824 90.9982H194.215V99.0676H193.258V92.2971H193.234L190.34 99.0676H189.758L186.864 92.2971H186.842V99.0676H185.885V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M198.386 90.9982H203.457V91.8867H199.343V94.4168H203.184V95.3062H199.343V98.1782H203.663V99.0676H198.386V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M207.891 98.1782H209.713C211.561 98.1782 212.963 97.2431 212.963 95.0319C212.963 92.8218 211.561 91.8867 209.713 91.8867H207.891V98.1782ZM206.934 90.9982H210.034C211.617 90.9982 213.987 92.0586 213.987 95.0319C213.987 98.0083 211.617 99.0676 210.034 99.0676H206.934V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.007 99.0676H217.965V90.9982H217.007V99.0676Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.105 92.6628C226.627 92.0119 225.863 91.6819 225.088 91.6819C223.288 91.6819 222.011 93.266 222.011 95.0319C222.011 96.9012 223.277 98.3839 225.088 98.3839C226.068 98.3839 226.855 97.9844 227.425 97.255L228.143 97.8582C227.425 98.8281 226.377 99.2724 225.088 99.2724C222.774 99.2724 220.986 97.4826 220.986 95.0319C220.986 92.6628 222.695 90.7935 225.088 90.7935C226.183 90.7935 227.254 91.1701 227.937 92.0586L227.105 92.6628Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M233.557 92.2295H233.533L231.858 96.1947H235.152L233.557 92.2295ZM233.123 90.9982H234.023L237.453 99.0676H236.336L235.516 97.0841H231.482L230.65 99.0676H229.568L233.123 90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M240.006 90.9982H240.964V98.1782H244.656V99.0676H240.006V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M252.793 94.5539H253.648C254.708 94.5539 256.087 94.5539 256.087 93.2203C256.087 92.0586 255.073 91.8867 254.139 91.8867H252.793V94.5539ZM251.836 90.9982H253.899C255.46 90.9982 257.113 91.2258 257.113 93.2203C257.113 94.3939 256.349 95.1582 255.095 95.3519L257.386 99.0676H256.213L254.023 95.4434H252.793V99.0676H251.836V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M260.51 90.9982H265.58V91.8867H261.468V94.4168H265.308V95.3062H261.468V98.1782H265.786V99.0676H260.51V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M274.402 92.6628C273.923 92.0119 273.16 91.6819 272.384 91.6819C270.584 91.6819 269.307 93.266 269.307 95.0319C269.307 96.9012 270.573 98.3839 272.384 98.3839C273.364 98.3839 274.151 97.9844 274.72 97.255L275.438 97.8582C274.72 98.8281 273.672 99.2724 272.384 99.2724C270.071 99.2724 268.282 97.4826 268.282 95.0319C268.282 92.6628 269.991 90.7935 272.384 90.7935C273.478 90.7935 274.55 91.1701 275.234 92.0586L274.402 92.6628Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M284.739 95.0319C284.739 93.1746 283.439 91.6819 281.548 91.6819C279.656 91.6819 278.357 93.1746 278.357 95.0319C278.357 96.8903 279.656 98.3839 281.548 98.3839C283.439 98.3839 284.739 96.8903 284.739 95.0319ZM277.33 95.0319C277.33 92.5932 279.097 90.7935 281.548 90.7935C283.998 90.7935 285.765 92.5932 285.765 95.0319C285.765 97.4726 283.998 99.2724 281.548 99.2724C279.097 99.2724 277.33 97.4726 277.33 95.0319Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M289.514 94.5539H290.369C291.428 94.5539 292.807 94.5539 292.807 93.2203C292.807 92.0586 291.793 91.8867 290.859 91.8867H289.514V94.5539ZM288.556 90.9982H290.618C292.181 90.9982 293.833 91.2258 293.833 93.2203C293.833 94.3939 293.07 95.1582 291.817 95.3519L294.106 99.0676H292.933L290.744 95.4434H289.514V99.0676H288.556V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M297.81 98.1782H299.635C301.48 98.1782 302.881 97.2431 302.881 95.0319C302.881 92.8218 301.48 91.8867 299.635 91.8867H297.81V98.1782ZM296.853 90.9982H299.953C301.538 90.9982 303.909 92.0586 303.909 95.0319C303.909 98.0083 301.538 99.0676 299.953 99.0676H296.853V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M315.407 92.4223C315.089 91.9095 314.517 91.6819 313.937 91.6819C313.093 91.6819 312.216 92.0814 312.216 93.0384C312.216 93.7788 312.626 94.1097 313.914 94.5202C315.168 94.9187 316.331 95.3291 316.331 96.9132C316.331 98.5201 314.951 99.2724 313.493 99.2724C312.558 99.2724 311.555 98.9643 311.007 98.1554L311.828 97.4826C312.17 98.0759 312.854 98.3839 313.549 98.3839C314.37 98.3839 315.303 97.9049 315.303 96.9807C315.303 95.9899 314.633 95.818 313.196 95.341C312.057 94.9644 311.19 94.4625 311.19 93.1189C311.19 91.5677 312.523 90.7935 313.937 90.7935C314.837 90.7935 315.601 91.0439 316.193 91.7386L315.407 92.4223Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M320.844 95.5914L317.835 90.9982H319.054L321.323 94.6454L323.658 90.9982H324.81L321.8 95.5914V99.0676H320.844V95.5914Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M330.565 92.4223C330.245 91.9095 329.675 91.6819 329.094 91.6819C328.251 91.6819 327.374 92.0814 327.374 93.0384C327.374 93.7788 327.784 94.1097 329.072 94.5202C330.326 94.9187 331.487 95.3291 331.487 96.9132C331.487 98.5201 330.109 99.2724 328.65 99.2724C327.716 99.2724 326.713 98.9643 326.165 98.1554L326.986 97.4826C327.328 98.0759 328.012 98.3839 328.707 98.3839C329.528 98.3839 330.461 97.9049 330.461 96.9807C330.461 95.9899 329.79 95.818 328.354 95.341C327.215 94.9644 326.348 94.4625 326.348 93.1189C326.348 91.5677 327.681 90.7935 329.094 90.7935C329.995 90.7935 330.759 91.0439 331.351 91.7386L330.565 92.4223Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M339.283 91.8867H336.617V99.0676H335.659V91.8867H332.992V90.9982H339.283V91.8867Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M341.665 90.9982H346.736V91.8867H342.623V94.4168H346.463V95.3062H342.623V98.1782H346.942V99.0676H341.665V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M349.905 90.9982H351.329L354.064 97.3236H354.087L356.845 90.9982H358.236V99.0676H357.278V92.2971H357.255L354.361 99.0676H353.779L350.884 92.2971H350.863V99.0676H349.905V90.9982Z" fill="var(--logo-black)"/>\n</svg>\n'},575:function(t){"use strict";t.exports='<svg id="omrs-logo-icon" width="121" height="118" viewBox="0 0 121 118" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.436 39.474C45.505 34.405 52.509 31.269 60.247 31.269C67.964 31.269 74.952 34.391 80.017 39.436L80.038 20.78C74.107 17.725 67.376 16 60.247 16C53.114 16 46.348 17.943 40.415 20.999L40.436 39.474Z" fill="var(--logo-red)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M80.038 79.064C74.969 84.134 67.968 87.269 60.23 87.269C52.513 87.269 45.525 84.148 40.456 79.102L40.436 97.759C46.37 100.813 53.098 102.539 60.23 102.539C67.363 102.539 74.093 100.813 80.024 97.758L80.038 79.064Z" fill="var(--logo-orange)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.474 79.089C35.405 74.02 32.269 67.019 32.269 59.281C32.269 51.564 35.39 44.577 40.436 39.508L21.779 39.488C18.725 45.421 17 52.148 17 59.281C17 66.414 18.725 73.144 21.782 79.076L40.474 79.089Z" fill="var(--logo-purple)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M80.027 39.435C85.096 44.503 88.232 51.508 88.232 59.246C88.232 66.963 85.111 73.951 80.064 79.015L98.722 79.036C101.776 73.105 103.501 66.375 103.501 59.246C103.501 52.112 101.776 45.381 98.72 39.448L80.027 39.435Z" fill="var(--logo-green)"/>\n</svg>\n'},93:function(t){"use strict";t.exports='<svg id="omrs-logo-partial" viewBox="0 0 380 119" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.2901 40.3278C45.3275 35.2904 52.2879 32.1739 59.9777 32.1739C67.6466 32.1739 74.5911 35.2765 79.6246 40.29L79.6454 21.7502C73.7514 18.7143 67.0623 17 59.9777 17C52.8891 17 46.1653 18.9309 40.2692 21.9679L40.2901 40.3278Z" fill="var(--logo-red)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6454 79.6712C74.6079 84.7096 67.6506 87.8251 59.9608 87.8251C52.2918 87.8251 45.3473 84.7236 40.3099 79.709L40.29 98.2498C46.1871 101.285 52.8732 103 59.9608 103C67.0493 103 73.7374 101.285 79.6315 98.2488L79.6454 79.6712Z" fill="var(--logo-orange)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.3278 79.6961C35.2904 74.6586 32.1739 67.7012 32.1739 60.0114C32.1739 52.3425 35.2755 45.399 40.29 40.3616L21.7492 40.3417C18.7143 46.2378 17 52.9229 17 60.0114C17 67.1 18.7143 73.7881 21.7522 79.6831L40.3278 79.6961Z" fill="var(--logo-purple)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6344 40.289C84.6718 45.3255 87.7883 52.2868 87.7883 59.9766C87.7883 67.6456 84.6867 74.5901 79.6712 79.6225L98.213 79.6434C101.248 73.7493 102.962 67.0612 102.962 59.9766C102.962 52.8871 101.248 46.198 98.211 40.302L79.6344 40.289Z" fill="var(--logo-green)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M156.184 60.0025C156.184 51.2543 150.066 44.2264 141.159 44.2264C132.25 44.2264 126.134 51.2543 126.134 60.0025C126.134 68.7507 132.25 75.7816 141.159 75.7816C150.066 75.7816 156.184 68.7507 156.184 60.0025ZM121.303 60.0025C121.303 48.5205 129.621 40.0436 141.159 40.0436C152.695 40.0436 161.014 48.5205 161.014 60.0025C161.014 71.4875 152.695 79.9674 141.159 79.9674C129.621 79.9674 121.303 71.4875 121.303 60.0025Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M179.514 75.5401C185.021 75.5401 188.564 71.4 188.564 66.0585C188.564 60.717 185.021 56.575 179.514 56.575C174.009 56.575 170.468 60.717 170.468 66.0585C170.468 71.4 174.009 75.5401 179.514 75.5401ZM166.22 53.3064H170.468V57.0102H170.578C172.922 54.2853 176.027 52.6506 179.732 52.6506C187.746 52.6506 193.14 58.32 193.14 66.0585C193.14 73.6887 187.527 79.4645 180.388 79.4645C175.808 79.4645 172.157 77.1749 170.578 74.286H170.468V90.87H166.22V53.3064Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.773 63.7679C217.61 59.4629 214.773 56.575 210.087 56.575C205.402 56.575 202.297 59.4629 201.752 63.7679H217.773ZM221.426 74.1796C218.425 78.0484 214.83 79.4645 210.087 79.4645C202.077 79.4645 197.173 73.4711 197.173 66.0585C197.173 58.157 202.732 52.6506 210.253 52.6506C217.449 52.6506 222.349 57.5568 222.349 66.0049V67.3673H201.752C202.077 71.7797 205.456 75.5401 210.087 75.5401C213.737 75.5401 216.192 74.2333 218.207 71.6723L221.426 74.1796Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.854 59.3565C227.854 57.0102 227.638 54.9959 227.638 53.3064H231.669C231.669 54.6689 231.779 56.083 231.779 57.5012H231.889C233.033 54.9959 236.195 52.6506 240.389 52.6506C247.094 52.6506 250.088 56.9029 250.088 63.0603V78.8086H245.84V63.4986C245.84 59.2462 243.984 56.575 240.007 56.575C234.504 56.575 232.104 60.554 232.104 66.3865V78.8086H227.854V59.3565Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M259.211 41.0085H265.919L278.8 70.7909H278.907L291.889 41.0085H298.438V78.9994H293.932V47.1242H293.826L280.192 78.9994H277.454L263.825 47.1242H263.718V78.9994H259.211V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M312.392 57.7516H316.415C321.407 57.7516 327.902 57.7516 327.902 51.47C327.902 45.9992 323.126 45.1943 318.725 45.1943H312.392V57.7516ZM307.886 41.0085H317.597C324.949 41.0085 332.729 42.0798 332.729 51.47C332.729 56.9973 329.135 60.5948 323.234 61.5071L334.018 78.9994H328.493L318.189 61.9364H312.392V78.9994H307.886V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M358.123 47.7125C356.617 45.2986 353.936 44.2264 351.197 44.2264C347.224 44.2264 343.097 46.1056 343.097 50.6113C343.097 54.1005 345.028 55.6577 351.091 57.5906C356.994 59.4688 362.468 61.3997 362.468 68.858C362.468 76.4246 355.973 79.9674 349.108 79.9674C344.706 79.9674 339.983 78.5174 337.408 74.7063L341.27 71.5412C342.88 74.3347 346.1 75.7816 349.375 75.7816C353.237 75.7816 357.638 73.5277 357.638 69.18C357.638 64.5112 354.473 63.7063 347.71 61.4524C342.344 59.6805 338.268 57.3183 338.268 50.989C338.268 43.6907 344.545 40.0436 351.197 40.0436C355.438 40.0436 359.033 41.2222 361.822 44.4947L358.123 47.7125Z" fill="var(--logo-black)"/>\n</svg>\n'},839:function(t){"use strict";t.exports='<svg id="omrs-logo-white" viewBox="0 0 380 119" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.2901 40.3278C45.3275 35.2904 52.2879 32.1739 59.9777 32.1739C67.6466 32.1739 74.5911 35.2765 79.6246 40.29L79.6454 21.7502C73.7514 18.7143 67.0623 17 59.9777 17C52.8891 17 46.1653 18.9309 40.2692 21.9679L40.2901 40.3278Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6454 79.6712C74.6079 84.7096 67.6506 87.8251 59.9608 87.8251C52.2918 87.8251 45.3473 84.7236 40.3099 79.709L40.29 98.2498C46.1871 101.285 52.8732 103 59.9608 103C67.0493 103 73.7374 101.285 79.6315 98.2488L79.6454 79.6712Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.3278 79.6961C35.2904 74.6586 32.1739 67.7012 32.1739 60.0114C32.1739 52.3425 35.2755 45.399 40.29 40.3616L21.7492 40.3417C18.7143 46.2378 17 52.9229 17 60.0114C17 67.1 18.7143 73.7881 21.7522 79.6831L40.3278 79.6961Z" fill="var(--logo-grey)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6344 40.289C84.6718 45.3255 87.7883 52.2868 87.7883 59.9766C87.7883 67.6456 84.6867 74.5901 79.6712 79.6225L98.213 79.6434C101.248 73.7493 102.962 67.0612 102.962 59.9766C102.962 52.8871 101.248 46.198 98.211 40.302L79.6344 40.289Z" fill="var(--logo-grey)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M156.184 60.0025C156.184 51.2543 150.066 44.2264 141.159 44.2264C132.25 44.2264 126.134 51.2543 126.134 60.0025C126.134 68.7507 132.25 75.7816 141.159 75.7816C150.066 75.7816 156.184 68.7507 156.184 60.0025ZM121.303 60.0025C121.303 48.5205 129.621 40.0436 141.159 40.0436C152.695 40.0436 161.014 48.5205 161.014 60.0025C161.014 71.4875 152.695 79.9674 141.159 79.9674C129.621 79.9674 121.303 71.4875 121.303 60.0025Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M179.514 75.5401C185.021 75.5401 188.564 71.4 188.564 66.0585C188.564 60.717 185.021 56.575 179.514 56.575C174.009 56.575 170.468 60.717 170.468 66.0585C170.468 71.4 174.009 75.5401 179.514 75.5401ZM166.22 53.3064H170.468V57.0102H170.578C172.922 54.2853 176.027 52.6506 179.732 52.6506C187.746 52.6506 193.14 58.32 193.14 66.0585C193.14 73.6887 187.527 79.4645 180.388 79.4645C175.808 79.4645 172.157 77.1749 170.578 74.286H170.468V90.87H166.22V53.3064Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.773 63.7679C217.61 59.4629 214.773 56.575 210.087 56.575C205.402 56.575 202.297 59.4629 201.752 63.7679H217.773ZM221.426 74.1796C218.425 78.0484 214.83 79.4645 210.087 79.4645C202.077 79.4645 197.173 73.4711 197.173 66.0585C197.173 58.157 202.732 52.6506 210.253 52.6506C217.449 52.6506 222.349 57.5568 222.349 66.0049V67.3673H201.752C202.077 71.7797 205.456 75.5401 210.087 75.5401C213.737 75.5401 216.192 74.2333 218.207 71.6723L221.426 74.1796Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.854 59.3565C227.854 57.0102 227.638 54.9959 227.638 53.3064H231.669C231.669 54.6689 231.779 56.083 231.779 57.5012H231.889C233.033 54.9959 236.195 52.6506 240.389 52.6506C247.094 52.6506 250.088 56.9029 250.088 63.0603V78.8086H245.84V63.4986C245.84 59.2462 243.984 56.575 240.007 56.575C234.504 56.575 232.104 60.554 232.104 66.3865V78.8086H227.854V59.3565Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M259.211 41.0085H265.919L278.8 70.7909H278.907L291.889 41.0085H298.438V78.9994H293.932V47.1242H293.826L280.192 78.9994H277.454L263.825 47.1242H263.718V78.9994H259.211V41.0085Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M312.392 57.7516H316.415C321.407 57.7516 327.902 57.7516 327.902 51.47C327.902 45.9992 323.126 45.1943 318.725 45.1943H312.392V57.7516ZM307.886 41.0085H317.597C324.949 41.0085 332.729 42.0798 332.729 51.47C332.729 56.9973 329.135 60.5948 323.234 61.5071L334.018 78.9994H328.493L318.189 61.9364H312.392V78.9994H307.886V41.0085Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M358.123 47.7125C356.617 45.2986 353.936 44.2264 351.197 44.2264C347.224 44.2264 343.097 46.1056 343.097 50.6113C343.097 54.1005 345.028 55.6577 351.091 57.5906C356.994 59.4688 362.468 61.3997 362.468 68.858C362.468 76.4246 355.973 79.9674 349.108 79.9674C344.706 79.9674 339.983 78.5174 337.408 74.7063L341.27 71.5412C342.88 74.3347 346.1 75.7816 349.375 75.7816C353.237 75.7816 357.638 73.5277 357.638 69.18C357.638 64.5112 354.473 63.7063 347.71 61.4524C342.344 59.6805 338.268 57.3183 338.268 50.989C338.268 43.6907 344.545 40.0436 351.197 40.0436C355.438 40.0436 359.033 41.2222 361.822 44.4947L358.123 47.7125Z" fill="var(--logo-white)"/>\n</svg>\n'},45:function(t){"use strict";t.exports=n},740:function(t){"use strict";t.exports=r},685:function(t){"use strict";t.exports=o},954:function(t){"use strict";t.exports=i},493:function(t){"use strict";t.exports=u},792:function(t){"use strict";t.exports=a}},c={};function s(e){var n=c[e];if(void 0!==n)return n.exports;var r=c[e]={exports:{}};return t[e](r,r.exports,s),r.exports}s.y=e,s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;s.g.importScripts&&(t=s.g.location+"");var e=s.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=t}();var l={};return(0,s(584).s)(1),function(){"use strict";var t=function(t,e){var n=(new DOMParser).parseFromString(e,"text/html").querySelector("svg");n&&(n.id=t,i.appendChild(n))},e=s(885),n=s(93),r=s(575),o=s(839),i=document.createElement("div"),u=function(){document.body.appendChild(i)};i.id="omrs-svgs-container",i.style.display="none","complete"===document.readyState?u():window.addEventListener("load",u);var a=s(141),c=s(739),l=s(787),f=s(865),d=s(509),p=s(646),h=s(250),v=s(76),y=s(600),g=s(40),m=s(61),b=s(592),w=s(862),_=s(714),S=s(601),x=s(142),O=s(991),j=s(662),E=s(524),C=s(451),k=s(647),A=s(879),P=s(752),I=s(78);s(954),s(493);var T=s(792);new T.Subject,new T.Subject,s(45);var L,R=s(685);(0,R.createGlobalStore)("globalModalState",{modalContainer:null,modalStack:[]}),window.getComputedStyle(document.body).overflow,s(740),(0,R.createGlobalStore)("left-nav",{slotName:null,basePath:window.spaBase}),L=function(t,e){document.documentElement.style.setProperty(t,e)},(0,I.defineConfigSchema)("@openmrs/esm-styleguide",{"Brand color #1":{_default:"#005d5d",_type:I.Type.String},"Brand color #2":{_default:"#004144",_type:I.Type.String},"Brand color #3":{_default:"#007d79",_type:I.Type.String}}),(0,I.getConfigStore)("@openmrs/esm-styleguide").subscribe((function(t){t.loaded&&t.config&&(L("--brand-01",t.config["Brand color #1"]),L("--brand-02",t.config["Brand color #2"]),L("--brand-03",t.config["Brand color #3"]))})),t("omrs-logo-full-color",e),t("omrs-logo-full-mono",e),t("omrs-logo-full-grey",e),t("omrs-logo-partial-color",n),t("omrs-logo-partial-mono",n),t("omrs-logo-partial-grey",n),t("omrs-logo-icon-color",r),t("omrs-logo-icon-mono",r),t("omrs-logo-icon-grey",r),t("omrs-logo-white",o),t("omrs-icon-visibility",a),t("omrs-icon-menu",c),t("omrs-icon-search",l),t("omrs-icon-arrow-back",f),t("omrs-icon-arrow-forward",d),t("omrs-icon-arrow-downward",p),t("omrs-icon-arrow-upward",h),t("omrs-icon-chevron-left",v),t("omrs-icon-chevron-right",y),t("omrs-icon-chevron-up",g),t("omrs-icon-chevron-down",m),t("omrs-icon-supervised-user-circle",b),t("omrs-icon-home",w),t("omrs-icon-close",_),t("omrs-icon-important-notification",S),t("omrs-icon-calendar",x),t("omrs-icon-access-time",O),t("omrs-icon-add",j),t("omrs-icon-remove",E),t("omrs-icon-check-circle",C),t("omrs-icon-zoomoutmap",k),t("omrs-icon-location",A),t("omrs-icon-download",P)}(),function(){"use strict";s.r(l)}(),l}())}}}))}}]);
|
|
2
|
+
(self.webpackChunk_openmrs_esm_implementer_tools_app=self.webpackChunk_openmrs_esm_implementer_tools_app||[]).push([[889],{159:(t,e,n)=>{function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}var o=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};System.register(["@openmrs/esm-config","@openmrs/esm-error-handling"],(function(t,e){var i={},u={};return{setters:[function(t){i.Type=t.Type,i.defineConfigSchema=t.defineConfigSchema,i.getConfig=t.getConfig,i.navigate=t.navigate,i.validators=t.validators},function(t){u.reportError=t.reportError}],execute:function(){t(function(){var t={672:function(t,e){var n,r,o;r=e,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",((n=function(t){this.message=t}).prototype=new Error).name="InvalidCharacterError",r.btoa||(r.btoa=function(t){for(var e,r,i=String(t),u=0,a=o,c="";i.charAt(0|u)||(a="=",u%1);c+=a.charAt(63&e>>8-u%1*8)){if((r=i.charCodeAt(u+=3/4))>255)throw new n("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");e=e<<8|r}return c}),r.atob||(r.atob=function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,u=0,a=0,c="";i=e.charAt(a++);~i&&(r=u%4?64*r+i:i,u++%4)?c+=String.fromCharCode(255&r>>(-2*u&6)):0)i=o.indexOf(i);return c})},525:function(t){(function(){var e,n,r=function(t,r,o,i){n.defer(),e.search(t).then((function(t){u(t,r).then((function(){o()}),(function(t){i(t)}))}),(function(t){i(t)}))},o=function(t){var e=n.defer(),o=[];return r(t,(function(t){t.forEach((function(t){o.push(t)}))}),(function(){e.resolve(o)}),(function(t){e.reject(t)})),e.promise},i=function(t,r){var o=n.defer();return e.search(t).then((function(t){var n={},i=[function(){o.resolve(t,n)}];function u(){i.pop()()}var a=t.data;a.entry&&a.entry.forEach((function(t){var o=t.resource,c=o.resourceType;r&&r.forEach((function(t){var r,s,l,f=t.split("."),d=f[0],p=f[1],h=o[p];if(c===d&&h){var v=h.reference;n[v]||(r=a,s=o,l=h,i.push((function(){!function(t,r,o){var i=o.reference;e.resolve({bundle:t,resource:r,reference:o}).then((function(t){var e=t.data||t.content;n[i]=e,u()}))}(r,s,l)})))}}))})),u()}),(function(){o.reject("Could not fetch search results")})),o.promise};function u(t,r){var o,i=t.data.entry||[],a=[];for(o=0;o<i.length;o++)a.push(i[o].resource);r(a);var c=n.defer();return e.nextPage({bundle:t.data}).then((function(t){u(t,r).then((function(t){c.resolve()}))}),(function(t){c.resolve()})),c.promise}t.exports=function(t,u){return e=t,n=u,t.drain=r,t.fetchAll=o,t.fetchAllWithReferences=i,t}}).call(this)},256:function(t,e,n){(function(){n(454);var e=n(801),r=n(921),o=n(294),i=n(821),u=n(442),a=n(856),c=n(719),s=n(29),l=n(723),f=n(249),d=n(525);t.exports=function(t,n){var p=e.Middleware,h=e.$$Attr,v=function(t){return h("method",t)},y=function(t,e){return h("headers."+t,e)},g=p(u),m=p(a(t,n)).and(g).and(o.$Basic).and(o.$Bearer).and(o.$Credentials).and(i.$JsonData).and(y("Accept",t.headers&&t.headers.Accept?t.headers.Accept:"application/json")).and(y("Content-Type",t.headers&&t.headers["Content-Type"]?t.headers["Content-Type"]:"application/json")),b=m.and(v("GET")),w=m.and(v("POST")),_=m.and(v("PUT")),S=m.and(v("DELETE")),x=m.and(v("PATCH")),O=i.Http(t,n),j=f.Path,E=j(t.baseUrl),C=E.slash(":type || :resource.resourceType"),k=C.slash("_history"),A=C.slash(":id || :resource.id"),P=A.slash("_history"),I=A.slash(":versionId || :resource.meta.versionId"),T=E.slash(":target.resourceType || :target.type").slash(":target.id").slash(":target.versionId"),L=y("Prefer","return=representation"),R=p(r.$Paging);return d({conformance:b.and(E.slash("metadata")).end(O),document:w.and(E.slash("Document")).end(O),profile:b.and(E.slash("Profile").slash(":type")).end(O),transaction:w.and(E).end(O),history:b.and(E.slash("_history")).and(R).end(O),typeHistory:b.and(k).and(R).end(O),resourceHistory:b.and(P).and(R).end(O),read:b.and(s.$WithPatient).and(A).end(O),vread:b.and(I).end(O),delete:S.and(A).and(L).end(O),create:w.and(C).and(L).end(O),validate:w.and(C.slash("_validate")).end(O),meta:{add:w.and(T.slash("$meta-add")).end(O),delete:w.and(T.slash("$meta-delete")).end(O),read:b.and(T.slash("$meta")).end(O)},search:b.and(C).and(s.$WithPatient).and(r.$SearchParams).and(R).end(O),update:_.and(A).and(L).end(O),conditionalUpdate:_.and(C).and(r.$SearchParams).and(L).end(O),conditionalDelete:S.and(C).and(r.$SearchParams).and(L).end(O),nextPage:b.and(c.$$BundleLinkUrl("next")).end(O),prevPage:b.and(c.$$BundleLinkUrl("previous")).and(c.$$BundleLinkUrl("prev")).end(O),getBundleByUrl:b.and(j(":url")).end(O),resolve:b.and(l.resolve).end(O),patch:x.and(A).and(y("Content-Type","application/json-patch+json")).end(O)},n)}}).call(this)},294:function(t,e,n){(function(){var t,r=n(801),o=n(672).btoa;e.$Basic=r.$$Attr("headers.Authorization",(function(t){if(t.auth&&t.auth.user&&t.auth.pass)return"Basic "+o(t.auth.user+":"+t.auth.pass)})),e.$Bearer=r.$$Attr("headers.Authorization",(function(t){if(t.auth&&t.auth.bearer)return"Bearer "+t.auth.bearer})),e.$Credentials=r.Middleware(r.$$Attr("credentials",(function(e){return t=e.credentials,""}))).and(r.$$Attr("credentials",(function(e){if(["same-origin","include"].indexOf(t)>-1)return t})))}).call(this)},719:function(t,e){e.$$BundleLinkUrl=function(t){return function(e){return function(n){var r=n.bundle&&(n.bundle.link||[]).filter((function(e){return e.relation&&e.relation===t}))[0];return r&&r.url&&(n.url=r.url,n.data=null),e(n)}}}},856:function(t){(function(){var e=function(t,e,n){var r=t[n];return r&&!e[n]&&(e[n]=r),t};t.exports=function(t,n){return function(r){return function(o){return e(t,o,"baseUrl"),e(t,o,"cache"),e(t,o,"auth"),e(t,o,"patient"),e(t,o,"debug"),e(t,o,"credentials"),e(t,o,"headers"),e(t,o,"agentOptions"),e(n,o,"defer"),e(n,o,"http"),r(o)}}}}).call(this)},801:function(t,e,n){(function(){var t=n(454),r=function(t){return t.and=function(e){return r((n=t,o=e,function(t){return n(o(t))}));var n,o},t.end=function(e){return t(e)},t};e.$$Simple=function(t){return function(e){return function(n){return e(t(n))}}},e.$$Attr=function(e,n){return r((function(r){return function(o){var i;return i="function"==t.type(n)?n(o):n,r(null==i&&null==i?o:function(t,e,n){for(var r=e.split("."),o=t,i=0;i<r.length-1;i++){var u=r[i];(o=t[u])||(o={},t[u]=o)}return o[r[r.length-1]]=n,t}(o,e,i))}}))};var o=function(t,e){return r((function(n){return function(r){return r[t]=e(r),n(r)}}))};e.Middleware=r,e.Attribute=o,e.Method=function(t){return o("method",(e=t,function(){return e}));var e}}).call(this)},442:function(t){t.exports=function(t){return function(e){try{return t(e)}catch(t){if(e.debug&&(console.log("\nDEBUG: (ERROR in middleware)"),console.log(t.message),console.log(t.stack)),!e.defer)throw console.log("\nDEBUG: (ERROR in middleware)"),console.log(t.message),console.log(t.stack),new Error("I need adapter.defer");var n=e.defer();return n.reject(t),n.promise}}}},821:function(t,e,n){(function(){var t=n(454);e.Http=function(t,e){return function(n){n.debug&&console.log("\nDEBUG (request):",n.method,n.url,n);var r=(n.http||e.http||t.http)(n);return n.debug&&r&&r.then&&r.then((function(t){console.log("\nDEBUG: (responce)",t)})),r}},e.$JsonData=function(e){return function(n){var r,o=n.bundle||n.data||n.resource;return o&&(n.data=(r=o,"object"==t.type(r)||"array"==t.type(r)?JSON.stringify(r):r)),e(n)}}}).call(this)},29:function(t,e,n){(function(){var t=n(801),r=["Account","AllergyIntolerance","BodySite","CarePlan","Claim","ClinicalImpression","Communication","CommunicationRequest","Composition","Condition","Contract","DetectedIssue","Device","DeviceUseRequest","DeviceUseStatement","DiagnosticOrder","DiagnosticReport","DocumentManifest","DocumentReference","Encounter","EnrollmentRequest","EpisodeOfCare","FamilyMemberHistory","Flag","Goal","ImagingObjectSelection","ImagingStudy","Immunization","ImmunizationRecommendation","List","Media","MedicationAdministration","MedicationDispense","MedicationOrder","MedicationStatement","NutritionOrder","Observation","Order","Procedure","ProcedureRequest","QuestionnaireResponse","ReferralRequest","RelatedPerson","RiskAssessment","Specimen","SupplyDelivery","SupplyRequest","VisionPrescription"];e.$WithPatient=t.$$Simple((function(t){var e=t.type;return t.patient&&("Patient"===e?(t.query=t.query||{},t.query._id=t.patient,t.id=t.patient):r.indexOf(e)>=0&&(t.query=t.query||{},t.query.patient=t.patient)),t}))}).call(this)},723:function(t,e,n){(function(){var e=n(454),r=/^#(.*)/,o=function(t){var n,o,i,u,a=t.cache,c=t.reference,s=t.bundle,l=c;if(!l.reference)return null;if(l.reference.match(r))return n=l.reference,o=t.resource,i=n.match(r)[1],(u=(o.contained||[]).filter((function(t){return(t.id||t._id)==i}))[0])&&{content:u}||null;var f=e.absoluteUrl(t.baseUrl,l.reference);return(s&&s.entry||[]).filter((function(t){return t.id===f}))[0]||(null!=a?a[f]:void 0)||null};t.exports.sync=o,t.exports.resolve=function(t){return function(n){var i=o(n),u=n.reference,a=n.defer();if(i){if(!n.defer)throw new Error("I need promise constructor 'adapter.defer' in adapter");return a.resolve(i),a.promise}if(!u)throw new Error("No reference found");if(u&&u.reference.match(r))throw new Error("Contained resource not found");return n.url=e.absoluteUrl(n.baseUrl,u.reference),n.data=null,t(n)}}}).call(this)},921:function(t,e,n){(function(){var t=n(454),r=t.type,o=t.assertArray,i=(t.assertObject,t.reduceMap),u=t.identity,a={$gt:"gt",$lt:"lt",$lte:"lte",$gte:"gte",$ge:"ge",$le:"le"},c={$asc:":asc",$desc:":desc",$exact:":exact",$missing:":missing",$null:":missing",$text:":text"},s=function(t,e){if("$sort"===t)return function(t){var e,n,i,u;for(o(t),i=[],e=0,n=t.length;e<n;e++)switch(u=t[e],r(u)){case"array":i.push({param:"_sort",value:u[0],modifier:":"+u[1]});break;case"string":i.push({param:"_sort",value:u});break;default:i.push(void 0)}return i}(e);if("$has"===t)return i(e,(function(t,e){var n,o;return n=e[0],o=e[1],t.concat(function(){switch(r(o)){case"array":return o.map((function(t){return{param:"_has",value:n+"="+t}}));case"string":return[{param:"_has",value:n+"="+o}]}}())}));if("$include"===t||"$revInclude"===t)return n=t,i(e,(function(t,e){var o,i;return o=e[0],i=e[1],t.concat(function(){switch(r(i)){case"array":return i.map((function(t){return{param:"$include"===n?"_include":"_revinclude",value:o+":"+t}}));case"string":return[{param:"$include"===n?"_include":"_revinclude",value:o+":"+i}]}}())}));var n,u,l;switch(r(e)){case"object":return u=t,i(l=e,(function(t,e){var n,i,f,d;return n=e[0],d=e[1],t.concat("$and"===n?o(d).reduce((function(t,e){return t.concat(s(u,e))}),[]):"$type"===n?[]:0===n.indexOf("$")?(i={param:u},"$or"===n?i.value=d:(a[n]&&(i.operator=a[n]),c[n]&&(i.modifier=c[n]),"object"===r(d)&&d.$or?i.value=d.$or:i.value=[d]),[i]):(l.$type&&(f=":"+l.$type),s(""+u+(f||"")+"."+n,d)))}));case"string":case"number":return[{param:t,value:[e]}];case"array":return[{param:t,value:[e.join("|")]}];default:throw"could not linearizeParams "+r(e)}},l=function(t){return i(t,(function(t,e){var n,r;return n=e[0],r=e[1],t.concat(s(n,r))}))},f=function(t){var e,n,r=["_include","_revinclude","_has"];return function(){var o,i,a,c;for(c=[],o=0,i=(a=l(t)).length;o<i;o++)e=a[o],n=-1===r.indexOf(e.param)?encodeURIComponent(e.value):e.value,c.push([e.param,e.modifier,"_has"==e.param?":":"=",e.operator,n].filter(u).join(""));return c}().join("&")};e._query=l,e.query=f;var d=n(801);e.$SearchParams=d.$$Attr("url",(function(t){var e=t.url;return t.query?e+"?"+f(t.query):e})),e.$Paging=function(t){return function(e){var n=e.params||{};return e.since&&(n._since=e.since),e.count&&(n._count=e.count),e.params=n,t(e)}}}).call(this)},249:function(t,e,n){(function(){n(454);var t=n(801),r=function(e,n){var o=function(t){return n&&e.includes("target.versionId")&&!t.target.versionId?n(t):(n&&n(t)+"/"||"")+function(t,e){var n,r,o=(r=e,0==(n=t.trim()).indexOf(":")?function(t,e){for(var n,r=t.split("||").map((function(t){return t.trim().substring(1)})),o=0;o<r.length;o++){var i=(n=e,r[o].split(".").reduce((function(t,e){return"versionId"===e&&t[e]?"_history/"+t[e]:null==t||null==t?null:t[e]}),n));if(i)return i}return null}(n,r):n);if((null==o||void 0===o)&&0==t.includes("target.versionId"))throw new Error("Parameter "+t+" is required: "+JSON.stringify(e));return o}(e,t)},i=t.Attribute("url",o);return i.slash=function(t){return r(t,o)},i};e.Path=r}).call(this)},454:function(t,e,n){(function(){var t=n(651),r=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;e.trim=function(t){return t?t.toString().replace(r,""):""};var o=function(t){return null==t&&void 0===t?String(t):{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object"}[Object.prototype.toString.call(t)]};e.type=o,e.assertArray=function(t){if("array"!==o(t))throw"not array";return t};var i=function(t){if("object"!==o(t))throw"not object";return t};e.assertObject=i;var u=function(t,e,n){var r,o;return n||(n=[]),i(t),function(){var e;for(r in e=[],t)o=t[r],e.push([r,o]);return e}().reduce(e,n)};e.reduceMap=u,e.identity=function(t){return t};var a=function(){return Array.prototype.slice.call(arguments)};e.argsArray=a,e.mergeLists=function(){var e;return e=function(e,n){var r,o,i;for(r in o=t(!0,e),n)i=n[r],o[r]=(o[r]||[]).concat(i);return o},a.apply(null,arguments).reduce(e,{})},e.absoluteUrl=function(t,e){return e.match(/https?:\/\/./)?e:t+"/"+e},e.relativeUrl=function(t,e){return e.slice(e,t.length+1)===t+"/"?e.slice(t.length+1):e},e.resourceIdToUrl=function(t,e,n){return e=e.replace(/\/$/,""),(t=t.replace(/^\//,"")).indexOf("/")<0?e+"/"+n+"/"+t:0!==t.indexOf(e)?e+"/"+t:t};var c=function(t,e,n,r){var i;switch(o(n)){case"array":return e(n.map((function(e){return t(e,[n,r])})),r);case"object":return i=function(e,o){var i,u;return i=o[0],u=o[1],e[i]=t(u,[n].concat(r)),e},e(u(n,i,{}),r);default:return e(n,r)}};e.walk=c;var s=function(t,e,n){return e?c(s(t),t,e,n):function(e,n){return s(t,e,n)}};e.postwalk=s}).call(this)},651:function(t,e,n){!function(e){var n=function(t,e,n){var u=n[0],a=n.length;(t||"object"!==r(u))&&(u={});for(var c=0;c<a;++c){var s=n[c];if("object"===r(s))for(var l in s)if("__proto__"!==l){var f=t?o.clone(s[l]):s[l];u[l]=e?i(u[l],f):f}}return u},r=function(t){return{}.toString.call(t).slice(8,-1).toLowerCase()},o=function(t){return n(!0===t,!1,arguments)};function i(t,e){if("object"!==r(t))return e;for(var n in e)"object"===r(t[n])&&"object"===r(e[n])?t[n]=i(t[n],e[n]):t[n]=e[n];return t}o.recursive=function(t){return n(!0===t,!0,arguments)},o.clone=function(t){var e,n,i=t,u=r(t);if("array"===u)for(i=[],n=t.length,e=0;e<n;++e)i[e]=o.clone(t[e]);else if("object"===u)for(e in i={},t)i[e]=o.clone(t[e]);return i},e?t.exports=o:window.merge=o}((t=n.nmd(t))&&"object"==typeof t.exports&&t.exports)},602:function(t){var e=function(t){"use strict";var e,n=function(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]},o=function(t,e,n,o){var a,c,s,l,f=e&&r(e.prototype,u)?e:u,d=Object.create(f.prototype),h=new p(o||[]);return d._invoke=(a=t,c=n,s=h,l=S,function(t,e){if(l===O)throw new Error("Generator is already running");if(l===j){if("throw"===t)throw e;return v()}for(s.method=t,s.arg=e;;){var n=s.delegate;if(n){var r=I(n,s);if(r){if(r===E)continue;return r}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(l===S)throw l=j,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);l=O;var o=i(a,c,s);if("normal"===o.type){if(l=s.done?j:x,o.arg===E)continue;return{value:o.arg,done:s.done}}"throw"===o.type&&(l=j,s.method="throw",s.arg=o.arg)}}),d},i=function(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}},u=function(){},a=function(){},c=function(){},s=function(t){["next","throw","return"].forEach((function(e){n(t,e,(function(t){return this._invoke(e,t)}))}))},l=function(t,e){function n(r,o,u,a){var c=i(t[r],t,o);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&g.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,u,a)}),(function(t){n("throw",t,u,a)})):e.resolve(l).then((function(t){s.value=t,u(s)}),(function(t){return n("throw",t,u,a)}))}a(c.arg)}var r;this._invoke=function(t,o){function i(){return new e((function(e,r){n(t,o,e,r)}))}return r=r?r.then(i,i):i()}},f=function(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)},d=function(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e},p=function(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(f,this),this.reset(!0)},h=function(t){if(t){var n=t[b];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(g.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}return{next:v}},v=function(){return{value:e,done:!0}},y=Object.prototype,g=y.hasOwnProperty,m="function"==typeof Symbol?Symbol:{},b=m.iterator||"@@iterator",w=m.asyncIterator||"@@asyncIterator",_=m.toStringTag||"@@toStringTag";try{n({},"")}catch(t){n=function(t,e,n){return t[e]=n}}t.wrap=o;var S="suspendedStart",x="suspendedYield",O="executing",j="completed",E={},C={};n(C,b,(function(){return this}));var k=Object.getPrototypeOf,A=k&&k(k(h([])));A&&A!==y&&g.call(A,b)&&(C=A);var P=c.prototype=u.prototype=Object.create(C);function I(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method))return E;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return E}var o=i(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,E;var u=o.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,E):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,E)}return a.prototype=c,n(P,"constructor",c),n(c,"constructor",a),a.displayName=n(c,_,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===a||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,n(t,_,"GeneratorFunction")),t.prototype=Object.create(P),t},t.awrap=function(t){return{__await:t}},s(l.prototype),n(l.prototype,w,(function(){return this})),t.AsyncIterator=l,t.async=function(e,n,r,i,u){void 0===u&&(u=Promise);var a=new l(o(e,n,r,i),u);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},s(P),n(P,_,"Generator"),n(P,b,(function(){return this})),n(P,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=h,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(d),!t)for(var n in this)"t"===n.charAt(0)&&g.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){var n=function(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o};if(this.done)throw t;for(var r=this,o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=g.call(i,"catchLoc"),c=g.call(i,"finallyLoc");if(a&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&g.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,E):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),E},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),d(n),E}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;d(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:h(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),E}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},385:function(){System.register([],(function(t,e){return{execute:function(){t(function(){var t={968:function(t,e,n){var r=n(577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},577:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.y=e,r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t}();var o={};return(0,r(968).s)(1),function(){"use strict";var t=function(t,e){for(var n in e)t[n]=e[n];return t},e=function(e){var n=function(t){for(var e=[],n=0;n<o.length;n++)o[n]===t?t=null:e.push(o[n]);o=e},r=function(n,r,i){e=r?n:t(t({},e),n);for(var u=o,a=0;a<u.length;a++)u[a](e,i)},o=[];return e=e||{},{action:function(t){var n=function(e){r(e,!1,t)};return function(){for(var r=arguments,o=[e],i=0;i<arguments.length;i++)o.push(r[i]);var u=t.apply(this,o);if(null!=u)return u.then?u.then(n):n(u)}},setState:r,subscribe:function(t){return o.push(t),function(){n(t)}},unsubscribe:n,getState:function(){return e}}},n=function(t,n){var r=s[t];if(r)return r.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):r.value.setState(n,!0),r.active=!0,r.value;var o=e(n);return s[t]={value:o,active:!0},o},i=function(t,n){var r=s[t];if(!r){var o=e(n);return s[t]={value:o,active:!1},o}return r.value},u=function(t){return n("app",t)},a=function(){return i("app",{})},c=function(t,e,n){var r=e(t.getState());return t.subscribe((function(t){var o=e(t);o!==r&&(r=o,n(o))}))};r.r(o),r.d(o,{createAppState:function(){return u},createGlobalStore:function(){return n},getAppState:function(){return a},getGlobalStore:function(){return i},subscribeTo:function(){return c}});var s={}}(),o}())}}}))},968:function(t,e,n){var r=n(577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},577:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger},824:function(t){"use strict";t.exports=i},254:function(t){"use strict";t.exports=u}},a={};function c(e){var n=a[e];if(void 0!==n)return n.exports;var r=a[e]={id:e,loaded:!1,exports:{}};return t[e].call(r.exports,r,r.exports,c),r.loaded=!0,r.exports}c.y=e,c.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return c.d(e,{a:e}),e},c.d=function(t,e){for(var n in e)c.o(e,n)&&!c.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),c.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},c.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},c.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){var t;c.g.importScripts&&(t=c.g.location+"");var e=c.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c.p=t}();var s={};return(0,c(968).s)(1),function(){"use strict";var t=function(t,e){function n(){this.constructor=t}Z(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},e=function(t){return"function"==typeof t},i=function(t){setTimeout((function(){throw t}),0)},u=function(t){return t.reduce((function(t,e){return t.concat(r(e,X)?e.errors:e)}),[])},a=function(t){return t},l=function(t){return 0===t.length?a:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}},f=function(t){if(t||(t=J.Promise||Promise),!t)throw new Error("no Promise impl found");return t},d=function(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)},p=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){d(i,r,o,u,a,"next",t)}function a(t){d(i,r,o,u,a,"throw",t)}u(void 0)}))}},h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}},v=function(t,e){return!e||"object"!==Et(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e},y=function(t){return window.openmrsBase+t},g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof t)throw Error("The first argument to @openmrs/api's openmrsFetch function must be a url string");if("object"!=typeof e)throw Error("The second argument to @openmrs/api's openmrsFetch function must be a plain object.");if(!window.openmrsBase)throw Error("@openmrs/api is running in a browser that doesn't have window.openmrsBase, which is provided by openmrs-module-spa's HTML file.");var n=y(t);e.headers||(e.headers={}),_t(e.body)&&(e.body=JSON.stringify(e.body)),void 0===e.headers.Accept&&(e.headers.Accept="application/json"),null===e.headers.Accept&&delete e.headers.Accept;var r,o=Error();return window.fetch(n,e).then((r=p(W().mark((function t(e){var r,i;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=e).ok){t.next=10;break}if(204!==r.status){t.next=7;break}return r.data=null,t.abrupt("return",r);case 7:return t.abrupt("return",r.text().then((function(t){try{t&&(r.data=JSON.parse(t))}catch(t){}return r})));case 8:t.next=19;break;case 10:return t.next=12,(0,St.getConfig)("@openmrs/esm-api");case 12:if(i=t.sent.redirectAuthFailure,!(n===y(kt)&&403===r.status||i.enabled&&i.errors.includes(r.status))){t.next=18;break}return(0,St.navigate)({to:i.url}),t.abrupt("return",i.resolvePromise?Promise.resolve():new Promise((function(){})));case 18:return t.abrupt("return",r.text().then((function(t){var e=t;try{e=JSON.parse(t)}catch(t){}throw new At(n,r,e,o)}),(function(t){throw new At(n,r,null,o)})));case 19:case"end":return t.stop()}}),t)}))),function(t){return r.apply(this,arguments)}))},m=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!=typeof e)throw Error("The second argument to openmrsObservableFetch must be either omitted or an object");var n=new AbortController;return e.signal=n.signal,new it((function(r){var o=!1;return g(t,e).then((function(t){o=!0,r.next(t),r.complete()}),(function(t){o=!0,r.error(t)})),function(){o||n.abort()}}))},b=function(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)},w=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){b(i,r,o,u,a,"next",t)}function a(t){b(i,r,o,u,a,"throw",t)}u(void 0)}))}},_=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeAuthStatus:!0};return(Rt<Date.now()-6e4||!Lt.getState().loaded)&&x(),new it((function(e){var n=function(n){var r;n.loaded&&(t.includeAuthStatus?e.next(n.session):e.next(null===(r=n.session)||void 0===r?void 0:r.user))};return n(Lt.getState()),Lt.subscribe(n)}))},S=function(){return(Rt<Date.now()-6e4||!Lt.getState().loaded)&&x(),Lt},x=function(){return new Promise((function(t,e){Rt=Date.now(),g(kt).then((function(n){if("object"!=typeof(null==n?void 0:n.data))return e(),Promise.reject();var r,o,i,u,a;(a=null!==(u=null==(r=n.data)||null===(o=r.user)||void 0===o||null===(i=o.userProperties)||void 0===i?void 0:i.defaultLocale)&&void 0!==u?u:r.locale)!==document.documentElement.getAttribute("lang")&&document.documentElement.setAttribute("lang",a),t(n.data),Lt.setState({loaded:!0,session:n.data})})).catch((function(t){return(0,Tt.reportError)("Failed to fetch new session information: ".concat(t)),e(t),{sessionId:"",authenticated:!1}}))}))},O=function(){Lt.setState({loaded:!0,session:{authenticated:!1,sessionId:""}})},j=function(t,e){return n=t,e.privileges.find((function(t){return n===t.display}))||e.roles.find((function(t){return"System Developer"===t.display}));var n},E=function(){var t,e;return new Promise((function(n,r){var o=function(r){r.loaded&&r.session.user&&(t=r.session.user,n(r.session.user),e&&e())};o(Lt.getState()),t||(e=Lt.subscribe(o))}))},C=function(){return new Promise((function(t,e){var n=_().subscribe((function(e){t(e.sessionLocation),n.unsubscribe()}),e)}))},k=function(t,e){return Mt.apply(this,arguments)},A=function(){(0,St.defineConfigSchema)("@openmrs/esm-api",{redirectAuthFailure:{enabled:{_type:St.Type.Boolean,_default:!0,_description:"Whether to redirect logged-out users to `redirectAuthFailure.url`"},url:{_type:St.Type.String,_default:"${openmrsSpaBase}/login",_validators:[St.validators.isUrl]},errors:{_type:St.Type.Array,_default:[401],_elements:{_type:St.Type.Number,_validators:[St.validators.inRange(100,600)]},_description:"The HTTP error codes for which users will be redirected"},resolvePromise:{_type:St.Type.Boolean,_default:!1,_description:"Changes how requests that fail authentication are handled. Try messing with this if redirects to the login page aren't working correctly."}}}),x()},P=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},I=function(t,e){return t?It.read(function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){P(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t}({type:"Patient",patient:t},e)):Promise.resolve(null)},T=function(t){return function(e){return 0===t?qt:e.lift(new Wt(t))}},L=function(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Gt(t,e))}},R=function(t,e,n){var r=null!=n?n:Yt;return m("/ws/rest/v1/visit?patient=".concat(t,"&v=").concat(r),{signal:e.signal,method:"GET",headers:{"Content-type":"application/json"}}).pipe(T(1)).pipe(L((function(t){return t})))},M=function(t,e){return m("/ws/rest/v1/visit",{signal:e.signal,method:"POST",headers:{"Content-type":"application/json"},body:t})},D=function(t,e,n){return m("/ws/rest/v1/visit/".concat(t),{signal:n.signal,method:"POST",headers:{"Content-type":"application/json"},body:e})},B=function(t){return{uuid:t.uuid,display:t.display,name:t.name}},N=function(){return m("/ws/rest/v1/visittype").pipe(L((function(t){return t.data.results.map(B)}))).pipe(T(1))},U=function(t){return{uuid:t.uuid,display:t.display}},H=function(){return m("/ws/rest/v1/location").pipe(L((function(t){return t.data.results.map(U)}))).pipe(T(1))};c.r(s),c.d(s,{OpenmrsFetchError:function(){return At},VisitMode:function(){return Dt},VisitStatus:function(){return Bt},backendDependencies:function(){return Xt},clearCurrentUser:function(){return O},defaultVisitCustomRepresentation:function(){return Yt},fetchCurrentPatient:function(){return I},fhir:function(){return It},fhirBaseUrl:function(){return Pt},getCurrentUser:function(){return _},getLocations:function(){return H},getLoggedInUser:function(){return E},getSessionLocation:function(){return C},getSessionStore:function(){return S},getStartedVisit:function(){return Qt},getVisitTypes:function(){return N},getVisitsForPatient:function(){return R},makeUrl:function(){return y},openmrsFetch:function(){return g},openmrsObservableFetch:function(){return m},refetchCurrentUser:function(){return x},saveVisit:function(){return M},sessionEndpoint:function(){return kt},setSessionLocation:function(){return k},setupApiModule:function(){return A},toLocationObject:function(){return U},toVisitTypeObject:function(){return B},updateVisit:function(){return D},userHasAccess:function(){return j}});var F,V,$,z,K,q=c(602),W=c.n(q),Z=function(t,e){return(Z=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},G=!1,J={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack,G=t},get useDeprecatedSynchronousErrorHandling(){return G}},Y={closed:!0,next:function(t){},error:function(t){if(J.useDeprecatedSynchronousErrorHandling)throw t;i(t)},complete:function(){}},Q=Array.isArray||function(t){return t&&"number"==typeof t.length},X=(F=function(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this},F.prototype=Object.create(Error.prototype),F),tt=function(){var t,n=function(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)};return n.prototype.unsubscribe=function(){var t;if(!this.closed){var o,i=this,a=i._parentOrParents,c=i._ctorUnsubscribe,s=i._unsubscribe,l=i._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r(a,n))a.remove(this);else if(null!==a)for(var f=0;f<a.length;++f)a[f].remove(this);if(e(s)){c&&(this._unsubscribe=void 0);try{s.call(this)}catch(e){t=r(e,X)?u(e.errors):[e]}}if(Q(l)){f=-1;for(var d=l.length;++f<d;){var p=l[f];if(null!==(o=p)&&"object"==typeof o)try{p.unsubscribe()}catch(e){t=t||[],r(e,X)?t=t.concat(u(e.errors)):t.push(e)}}}if(t)throw new X(t)}},n.prototype.add=function(t){var e=t;if(!t)return n.EMPTY;switch(void 0===t?"undefined":o(t)){case"function":e=new n(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!r(e,n)){var i=e;(e=new n)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var u=e._parentOrParents;if(null===u)e._parentOrParents=this;else if(r(u,n)){if(u===this)return e;e._parentOrParents=[u,this]}else{if(-1!==u.indexOf(this))return e;u.push(this)}var a=this._subscriptions;return null===a?this._subscriptions=[e]:a.push(e),e},n.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},n.EMPTY=((t=new n).closed=!0,t),n}(),et="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),nt=function(e){function n(t,o,i){var u=e.call(this)||this;switch(u.syncErrorValue=null,u.syncErrorThrown=!1,u.syncErrorThrowable=!1,u.isStopped=!1,arguments.length){case 0:u.destination=Y;break;case 1:if(!t){u.destination=Y;break}if("object"==typeof t){r(t,n)?(u.syncErrorThrowable=t.syncErrorThrowable,u.destination=t,t.add(u)):(u.syncErrorThrowable=!0,u.destination=new rt(u,t));break}default:u.syncErrorThrowable=!0,u.destination=new rt(u,t,o,i)}return u}return t(n,e),n.prototype[et]=function(){return this},n.create=function(t,e,r){var o=new n(t,e,r);return o.syncErrorThrowable=!1,o},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},n.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},n.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},n}(tt),rt=($=function(t,n,r,o){var i,u=V.call(this)||this;u._parentSubscriber=t;var a=u;return e(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==Y&&(e((a=Object.create(n)).unsubscribe)&&u.add(a.unsubscribe.bind(a)),a.unsubscribe=u.unsubscribe.bind(u))),u._context=a,u._next=i,u._error=r,u._complete=o,u},t($,V=nt),$.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;J.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},$.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=J.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):i(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;i(t)}}},$.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};J.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},$.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),J.useDeprecatedSynchronousErrorHandling)throw t;i(t)}},$.prototype.__tryOrSetError=function(t,e,n){if(!J.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return J.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(i(e),!0)}return!1},$.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},$),ot="function"==typeof Symbol&&Symbol.observable||"@@observable",it=function(){var t=function(t){this._isScalar=!1,t&&(this._subscribe=t)};return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var o=this.operator,i=function(t,e,n){if(t){if(r(t,nt))return t;if(t[et])return t[et]()}return t||e||n?new nt(t,e,n):new nt(Y)}(t,e,n);if(o?i.add(o.call(i,this.source)):i.add(this.source||J.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),J.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){J.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t,n=e.closed,o=e.destination,i=e.isStopped;if(n||i)return!1;t=o&&r(o,nt)?o:null}return!0}(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=f(e))((function(e,r){var o;o=n.subscribe((function(e){try{t(e)}catch(t){r(t),o&&o.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[ot]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:l(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=f(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}(),ut="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,at="object"==typeof self&&self&&self.Object===Object&&self,ct=(ut||at||Function("return this")()).Symbol,st=Object.prototype,lt=st.hasOwnProperty,ft=st.toString,dt=ct?ct.toStringTag:void 0,pt=Object.prototype.toString,ht=ct?ct.toStringTag:void 0,vt=(z=Object.getPrototypeOf,K=Object,function(t){return z(K(t))}),yt=Function.prototype,gt=Object.prototype,mt=yt.toString,bt=gt.hasOwnProperty,wt=mt.call(Object),_t=function(t){if(null==(e=t)||"object"!=typeof e||"[object Object]"!=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ht&&ht in Object(t)?function(t){var e=lt.call(t,dt),n=t[dt];try{t[dt]=void 0;var r=!0}catch(t){}var o=ft.call(t);return r&&(e?t[dt]=n:delete t[dt]),o}(t):(e=t,pt.call(e));var e}(t))return!1;var e,n=vt(t);if(null===n)return!0;var o=bt.call(n,"constructor")&&n.constructor;return"function"==typeof o&&r(o,o)&&mt.call(o)==wt},St=c(824);function xt(t,e,n){return xt=h()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&jt(o,n.prototype),o},xt.apply(null,arguments)}function Ot(t){return(Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function jt(t,e){return(jt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Et=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":void 0===t?"undefined":o(t)};function Ct(t){var e="function"==typeof Map?new Map:void 0;return Ct=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return xt(t,arguments,Ot(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),jt(r,t)},Ct(t)}var kt="/ws/rest/v1/session",At=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jt(t,e)}(i,t);var e,n,o=(e=i,n=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(t){return!1}}(),function(){var t,r=Ot(e);if(n){var o=Ot(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return v(this,t)});function i(t,e,n,u){var a;return function(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}(this,i),(a=o.call(this)).message="Server responded with ".concat(e.status," (").concat(e.statusText,") for url ").concat(t,". Check err.responseBody or network tab in dev tools for more info"),u.message=a.message,a.responseBody=n,a.response=e,a.stack="Stacktrace for outgoing request:\n".concat(u.stack,"\nStacktrace for incoming response:\n").concat(a.stack),a}return i}(Ct(Error)),Pt="/ws/fhir2/R4",It=c(256)({baseUrl:Pt},{http:function(t){return g(t.url,{method:t.method,headers:t.headers}).then((function(e){return{status:e.status,headers:e.headers,data:e.data,config:t}}),(function(e){return{status:e.response.status,headers:e.response.headers,data:e.responseBody,config:t}}))}}),Tt=c(254),Lt=(0,c(385).createGlobalStore)("session",{loaded:!1,session:null}),Rt=0;function Mt(){return(Mt=w(W().mark((function t(e,n){return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g(kt,{method:"POST",body:{sessionLocation:e},headers:{"Content-Type":"application/json"},signal:n.signal});case 2:x();case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Dt,Bt,Nt,Ut=function(){var t=function(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this};return t.prototype=Object.create(Error.prototype),t}(),Ht=function(e){var n=function(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r};return t(n,e),n.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},n}(tt),Ft=function(e){var n=function(t){var n=e.call(this,t)||this;return n.destination=t,n};return t(n,e),n}(nt),Vt=function(e){var n=function(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t};return t(n,e),n.prototype[et]=function(){return new Ft(this)},n.prototype.lift=function(t){var e=new $t(this,this);return e.operator=t,e},n.prototype.next=function(t){if(this.closed)throw new Ut;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].next(t)},n.prototype.error=function(t){if(this.closed)throw new Ut;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].error(t);this.observers.length=0},n.prototype.complete=function(){if(this.closed)throw new Ut;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},n.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},n.prototype._trySubscribe=function(t){if(this.closed)throw new Ut;return e.prototype._trySubscribe.call(this,t)},n.prototype._subscribe=function(t){if(this.closed)throw new Ut;return this.hasError?(t.error(this.thrownError),tt.EMPTY):this.isStopped?(t.complete(),tt.EMPTY):(this.observers.push(t),new Ht(this,t))},n.prototype.asObservable=function(){var t=new it;return t.source=this,t},n.create=function(t,e){return new $t(t,e)},n}(it),$t=function(e){var n=function(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r};return t(n,e),n.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},n.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},n.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},n.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):tt.EMPTY},n}(Vt),zt=function(e){var n=function(t){var n=e.call(this)||this;return n._value=t,n};return t(n,e),Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),n.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},n.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Ut;return this._value},n.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},n}(Vt),Kt=function(){var t=function(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this};return t.prototype=Object.create(Error.prototype),t}(),qt=new it((function(t){return t.complete()})),Wt=function(){var t=function(t){if(this.total=t,this.total<0)throw new Kt};return t.prototype.call=function(t,e){return e.subscribe(new Zt(t,this.total))},t}(),Zt=function(e){var n=function(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r};return t(n,e),n.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},n}(nt),Gt=function(){var t=function(t,e){this.project=t,this.thisArg=e};return t.prototype.call=function(t,e){return e.subscribe(new Jt(t,this.project,this.thisArg))},t}(),Jt=function(e){var n=function(t,n,r){var o=e.call(this,t)||this;return o.project=n,o.count=0,o.thisArg=r||o,o};return t(n,e),n.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},n}(nt),Yt="custom:(uuid,encounters:(uuid,encounterDatetime,form:(uuid,name),location:ref,encounterType:ref,encounterProviders:(uuid,display,provider:(uuid,display))),patient:(uuid,uuid),visitType:(uuid,name,display),attributes:(uuid,display,value),location:(uuid,name,display),startDatetime,stopDatetime)",Qt=new zt(null);(Nt=Dt||(Dt={})).NEWVISIT="startVisit",Nt.EDITVISIT="editVisit",Nt.LOADING="loadingVisit",function(t){t.NOTSTARTED="notStarted",t.ONGOING="ongoing"}(Bt||(Bt={}));var Xt={"webservices.rest":"2.24.0",fhir2:"1.0.0-SNAPSHOT"}}(),s}())}}}))},9810:()=>{function t(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}System.register(["@openmrs/esm-state"],(function(e,n){var r={};return{setters:[function(t){r.createGlobalStore=t.createGlobalStore}],execute:function(){e(function(){var e={968:function(t,e,n){var r=n(577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},577:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger},685:function(t){"use strict";t.exports=r}},o={};function i(t){var n=o[t];if(void 0!==n)return n.exports;var r=o[t]={exports:{}};return e[t](r,r.exports,i),r.exports}i.y=n,i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;i.g.importScripts&&(t=i.g.location+"");var e=i.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=t}();var u={};return(0,i(968).s)(1),function(){"use strict";var e=function(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")},n=function(t){return t&&t.sensitive?"":"i"},r=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},o=function(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},a=function(e){return n=e.matcher,(null!=(r=RegExp)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):t(n,r))?e.matcher:"string"==typeof e.matcher?h(e.matcher):h(e.path);var n,r},c=function(t){return s([t])},s=function(t){var e=l(),n=t.map((function(t){return{matcher:a(t),settings:t}})),r=o(e).concat(o(n));v.setState(r,!0)},l=function(){return v.getState()},f=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},d=function(t,e){if(t.length>0){var n=y(t,e);if(n){for(var r=[n],o=y(t,n.settings.parent);void 0!==o;)r.push(o),o=y(t,o.settings.parent);return r.reverse()}}return[]},p=function(t){return d(l(),t)};function h(r,o,i){return t(r,RegExp)?function(t,e){if(!e)return t;var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:"",suffix:"",modifier:"",pattern:""});return t}(r,o):Array.isArray(r)?(c=o,s=i,l=r.map((function(t){return h(t,c,s).source})),new RegExp("(?:"+l.join("|")+")",n(s))):(u=o,function(t,r,o){void 0===o&&(o={});for(var i=o.strict,u=void 0!==i&&i,a=o.start,c=void 0===a||a,s=o.end,l=void 0===s||s,f=o.encode,d=void 0===f?function(t){return t}:f,p="["+e(o.endsWith||"")+"]|$",h="["+e(o.delimiter||"/#?")+"]",v=c?"^":"",y=0,g=t;y<g.length;y++){var m=g[y];if("string"==typeof m)v+=e(d(m));else{var b=e(d(m.prefix)),w=e(d(m.suffix));if(m.pattern)if(r&&r.push(m),b||w)if("+"===m.modifier||"*"===m.modifier){var _="*"===m.modifier?"?":"";v+="(?:"+b+"((?:"+m.pattern+")(?:"+w+b+"(?:"+m.pattern+"))*)"+w+")"+_}else v+="(?:"+b+"("+m.pattern+")"+w+")"+m.modifier;else v+="("+m.pattern+")"+m.modifier;else v+="(?:"+b+w+")"+m.modifier}}if(l)u||(v+=h+"?"),v+=o.endsWith?"(?="+p+")":"$";else{var S=t[t.length-1],x="string"==typeof S?h.indexOf(S[S.length-1])>-1:void 0===S;u||(v+="(?:"+h+"(?="+p+"))?"),x||(v+="(?="+h+"|"+p+")")}return new RegExp(v,n(o))}(function(t,n){void 0===n&&(n={});for(var r=function(t){for(var e=[],n=0;n<t.length;){var r=t[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)e.push({type:"CHAR",index:n,value:t[n++]});else{var o=1,i="";if("?"===t[a=n+1])throw new TypeError('Pattern cannot start with "?" at '+a);for(;a<t.length;)if("\\"!==t[a]){if(")"===t[a]){if(0==--o){a++;break}}else if("("===t[a]&&(o++,"?"!==t[a+1]))throw new TypeError("Capturing groups are not allowed at "+a);i+=t[a++]}else i+=t[a++]+t[a++];if(o)throw new TypeError("Unbalanced pattern at "+n);if(!i)throw new TypeError("Missing pattern at "+n);e.push({type:"PATTERN",index:n,value:i}),n=a}else{for(var u="",a=n+1;a<t.length;){var c=t.charCodeAt(a);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;u+=t[a++]}if(!u)throw new TypeError("Missing parameter name at "+n);e.push({type:"NAME",index:n,value:u}),n=a}else e.push({type:"CLOSE",index:n,value:t[n++]});else e.push({type:"OPEN",index:n,value:t[n++]});else e.push({type:"ESCAPED_CHAR",index:n++,value:t[n++]});else e.push({type:"MODIFIER",index:n,value:t[n++]})}return e.push({type:"END",index:n,value:""}),e}(t),o=n.prefixes,i=void 0===o?"./":o,u="[^"+e(n.delimiter||"/#?")+"]+?",a=[],c=0,s=0,l="",f=function(t){if(s<r.length&&r[s].type===t)return r[s++].value},d=function(t){var e=f(t);if(void 0!==e)return e;var n=r[s],o=n.type,i=n.index;throw new TypeError("Unexpected "+o+" at "+i+", expected "+t)},p=function(){for(var t,e="";t=f("CHAR")||f("ESCAPED_CHAR");)e+=t;return e};s<r.length;){var h=f("CHAR"),v=f("NAME"),y=f("PATTERN");if(v||y){var g=h||"";-1===i.indexOf(g)&&(l+=g,g=""),l&&(a.push(l),l=""),a.push({name:v||c++,prefix:g,suffix:"",pattern:y||u,modifier:f("MODIFIER")||""})}else{var m=h||f("ESCAPED_CHAR");if(m)l+=m;else if(l&&(a.push(l),l=""),f("OPEN")){g=p();var b=f("NAME")||"",w=f("PATTERN")||"",_=p();d("CLOSE"),a.push({name:b||(w?c++:""),pattern:b&&!w?u:w,prefix:g,suffix:_,modifier:f("MODIFIER")||""})}else d("END")}}return a}(r,a=i),u,a));var u,a,c,s,l}i.r(u),i.d(u,{filterBreadcrumbs:function(){return d},getBreadcrumbs:function(){return l},getBreadcrumbsFor:function(){return p},registerBreadcrumb:function(){return c},registerBreadcrumbs:function(){return s}});var v=(0,i(685).createGlobalStore)("breadcrumbs",[]);function y(t,e){if(e)return n=e,(r=t.filter((function(t){return t.matcher.test(n)})),function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),1!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(r)||function(t,e){if(t){if("string"==typeof t)return f(t,1);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,1):void 0}}(r)||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.")}())[0]||function(t,e){for(var n=e.split("/");n.length>1;){n.pop();var r=y(t,n.join("/"));if(r)return r}}(t,e);var n,r}}(),u}())}}}))},6347:()=>{var t=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};System.register(["@openmrs/esm-state","single-spa"],(function(e,n){var r={},o={};return{setters:[function(t){r.createGlobalStore=t.createGlobalStore,r.getGlobalStore=t.getGlobalStore},function(t){o.navigateToUrl=t.navigateToUrl}],execute:function(){e(function(){"use strict";var e={685:function(t){t.exports=r},645:function(t){t.exports=o}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,i),o.exports}i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var u={};return function(){var e=function(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]},n=function(t){return function n(r){return 0===arguments.length||e(r)?n:t.apply(this,arguments)}},r=function(t){return function r(o,i){switch(arguments.length){case 0:return r;case 1:return e(o)?r:n((function(e){return t(o,e)}));default:return e(o)&&e(i)?r:e(o)?n((function(e){return t(e,i)})):e(i)?n((function(e){return t(o,e)})):t(o,i)}}},o=function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n},a=function(t,e,n){for(var r=0,o=n.length;r<o;){if(t(e,n[r]))return!0;r+=1}return!1},c=function(t,e){return Object.prototype.hasOwnProperty.call(e,t)},s=function(t,e,n,r){var i=o(t);function u(t,e){return ct(t,e,n.slice(),r.slice())}return!a((function(t,e){return!a(u,e,t)}),o(e),i)},l=function(t){return function o(i,u,a){switch(arguments.length){case 0:return o;case 1:return e(i)?o:r((function(e,n){return t(i,e,n)}));case 2:return e(i)&&e(u)?o:e(i)?r((function(e,n){return t(e,u,n)})):e(u)?r((function(e,n){return t(i,e,n)})):n((function(e){return t(i,u,e)}));default:return e(i)&&e(u)&&e(a)?o:e(i)&&e(u)?r((function(e,n){return t(e,n,a)})):e(i)&&e(a)?r((function(e,n){return t(e,u,n)})):e(u)&&e(a)?r((function(e,n){return t(i,e,n)})):e(i)?n((function(e){return t(e,u,a)})):e(u)?n((function(e){return t(i,e,a)})):e(a)?n((function(e){return t(i,u,e)})):t(i,u,a)}}},f=function(t,e,n){for(var r=n.next();!r.done;){if((e=t["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)},d=function(t,e,n,r){return t["@@transducer/result"](n[r](mt(t["@@transducer/step"],t),e))},p=function(t){return"[object Object]"===Object.prototype.toString.call(t)},h=function(t,e){return function(n){if(!t(n))return"function"==typeof e?e(n):e}},v=function(){try{return JSON.parse(localStorage.getItem("openmrs:configAreDevDefaultsOn")||"false")}catch(t){return!1}},y=function(t){return(0,Pt.getGlobalStore)("config-module-".concat(t),{config:null,loaded:!1})},g=function(){return(0,Pt.getGlobalStore)("config-extension-slots",{slots:{}})},m=function(t){return b(g().getState(),t)},b=function(t,e){var n=t.slots[e];return null!=n?n:{loaded:!1,config:{}}},w=function(){return(0,Pt.getGlobalStore)("config-extensions",{configs:{}})},_=function(t,e){return S(w().getState(),t,e)},S=function(t,e,n){var r,o=null===(r=t.configs[e])||void 0===r?void 0:r[n];return null!=o?o:{loaded:!1,config:null}},x=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},O=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},j=function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){O(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t},E=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||k(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},C=function(t){return function(t){if(Array.isArray(t))return x(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||k(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},k=function(t,e){if(t){if("string"==typeof t)return x(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(t,e):void 0}},A=function(t,e){var n=!0,r=!1,o=void 0;try{for(var i,u=Object.keys(t.schemas)[Symbol.iterator]();!(n=(i=u.next()).done);n=!0){var a=i.value,c=F(a,t,e);y(a).setState({loaded:!0,config:c})}}catch(t){r=!0,o=t}finally{try{n||null==u.return||u.return()}finally{if(r)throw o}}},P=function(t,e){var n,r,o=(n=$(H(t,e)),function(t){var e=!0,n=!1,r=void 0;try{for(var o,i=Object.entries(t)[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){var u=E(o.value,2),a=u[0],c=u[1],s=!0,l=!1,f=void 0;try{for(var d,p=Object.entries(c)[Symbol.iterator]();!(s=(d=p.next()).done);s=!0){var h=E(d.value,2),v=h[0];U(h[1],a,v)}}catch(t){l=!0,f=t}finally{try{s||null==p.return||p.return()}finally{if(l)throw f}}}}catch(t){n=!0,r=t}finally{try{e||null==i.return||i.return()}finally{if(n)throw r}}}(r=Object.keys(n).reduce((function(t,e){var r,o;return(null===(r=n[e])||void 0===r?void 0:r.extensionSlots)&&(t[e]=null===(o=n[e])||void 0===o?void 0:o.extensionSlots),t}),{})),Object.keys(r).reduce((function(t,e){return j({},t,r[e])}),{})),i=Object.fromEntries(Object.entries(o).map((function(t){var e=E(t,2);return[e[0],{loaded:!0,config:e[1]}]}))),u=g(),a=u.getState(),c={slots:j({},a.slots,i)};st(a,c)||u.setState(c)},I=function(t,e){var n=function(t,e){var n=Bt(pt(t.schemas)),r=C(t.providedConfigs.map((function(t){return[t.config,t.source]}))).concat([[e.config,"temporary config"]]),o=!0,i=!1,u=void 0;try{for(var a,c=r[Symbol.iterator]();!(o=(a=c.next()).done);o=!0){var s=E(a.value,2);n=$([n,Nt(s[0],s[1])])}}catch(t){i=!0,u=t}finally{try{o||null==c.return||c.return()}finally{if(i)throw u}}return n}(t,e);Dt.setState({config:n})},T=function(t,e,n){var r={},o=!0,i=!1,u=void 0;try{for(var a,c=e.mountedExtensions[Symbol.iterator]();!(o=(a=c.next()).done);o=!0){var s=a.value,l=N(s.slotModuleName,s.extensionModuleName,s.slotName,s.extensionId,t,n);r[s.slotName]=j({},r[s.slotName],O({},s.extensionId,{config:l,loaded:!0}))}}catch(t){i=!0,u=t}finally{try{o||null==c.return||c.return()}finally{if(i)throw u}}w().setState({configs:r})},L=function(t,e){Ut(t,e);var n=Tt.getState();Tt.setState({schemas:j({},n.schemas,O({},t,e))})},R=function(t,e){Ut(t,e);var n=Tt.getState();n.schemas[t]&&console.warn("Config schema for extension ".concat(t," already exists. If there are multiple extensions with this same name, one will probably crash.")),Tt.setState({schemas:j({},n.schemas,O({},t,e))})},M=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"provided",n=Tt.getState();Tt.setState({providedConfigs:C(n.providedConfigs).concat([{source:e,config:t}])})},D=function(t){return new Promise((function(e){var n=function(t){t.loaded&&t.config&&(e(t.config),o&&o())},r=y(t);n(r.getState());var o=r.subscribe(n)}))},B=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];z(t,e,n);var o=Vt(t,e,r);return Ft(t,o,n),o},N=function(t,e,n,r,o,i){var u,a,c,s,l=E(r.split("#"),1)[0],f=o.schemas[l],d=f?l:e,p=H(o,i),h=V(t,p),v=null!==(s=null==h||null===(u=h.extensionSlots)||void 0===u||null===(a=u[n])||void 0===a||null===(c=a.configure)||void 0===c?void 0:c[r])&&void 0!==s?s:{},y=$([V(d,p),v]),g=null!=f?f:o.schemas[e];z(g,y,d);var m=Vt(g,y,o.devDefaultsAreOn);return Ft(g,m,d),delete m.extensionSlots,m},U=function(t,e,n){var r="Extension slot config '".concat(e,".extensionSlots.").concat(n),o=Object.keys(t).filter((function(t){return!["add","remove","order","configure"].includes(t)}));o.length&&console.error(r+"' contains invalid keys '".concat(o.join("', '"),"'")),t.add&&(Array.isArray(t.add)&&t.add.every((function(t){return"string"==typeof t}))||console.error(r+".add' is invalid. Must be an array of strings (extension IDs)")),t.remove&&(Array.isArray(t.remove)&&t.remove.every((function(t){return"string"==typeof t}))||console.error(r+".remove' is invalid. Must be an array of strings (extension IDs)")),t.order&&(Array.isArray(t.order)&&t.order.every((function(t){return"string"==typeof t}))||console.error(r+".order' is invalid. Must be an array of strings (extension IDs)")),t.configure&&(Z(t.configure)||console.error(r+".configure' is invalid. Must be an object with extension IDs for keys"))},H=function(t,e){return C(t.providedConfigs.map((function(t){return t.config}))).concat([e.config])},F=function(t,e,n){if(!e.schemas.hasOwnProperty(t))throw Error("No config schema has been defined for "+t);var r=e.schemas[t],o=V(t,H(e,n));z(r,o,t);var i=Vt(r,o,e.devDefaultsAreOn);return Ft(r,i,t),delete i.extensionSlots,i},V=function(t,e){return $(e.map((function(e){return e[t]})).filter((function(t){return!!t})))},$=function(t){return wt(xt)({},t)},z=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!0,o=!1,i=void 0;try{for(var u,a=Object.keys(e)[Symbol.iterator]();!(r=(u=a.next()).done);r=!0){var c=u.value,s=e[c],l=n+"."+c,f=t[c];t.hasOwnProperty(c)?Ht(f,s,l):"extensionSlots"===c&&""!==n||console.error("Unknown config key '".concat(l,"' provided. Ignoring."))}}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}},K=function(t,e,n){e&&q(t,[{Array:Ot,Boolean:jt,ConceptUuid:At,Number:Et,Object:kt,String:Ct,UUID:At,PersonAttributeTypeUuid:At,PatientIdentifierTypeUuid:At}[e]],n)},q=function(t,e,n){if(e)try{var r=!0,o=!1,i=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done);r=!0){var c=(0,u.value)(n);"string"==typeof c&&("object"==typeof n?console.error("Invalid configuration for ".concat(t,": ").concat(c)):console.error("Invalid configuration value ".concat(n," for ").concat(t,": ").concat(c)))}}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}}catch(e){console.error('Skipping invalid validator at "'.concat(t,'". Encountered error\n\t').concat(e))}},W=function(t){return!!t&&Object.keys(t).filter((function(t){return!["_default","_validators"].includes(t)})).length>0},Z=function(t){return"object"==typeof t&&!Array.isArray(t)&&null!==t},G=function(t){var e=window.getOpenmrsSpaBase().replace(/\/$/,"");return J(t,{openmrsBase:window.openmrsBase,openmrsSpaBase:e}).replace(/^\/\//,"/")},J=function(t,e){return Object.keys(e).reduce((function(t,n){return t.split("${"+n+"}").join(e[n])}),t)},Y=function(t){var e=t.to,n=window.getOpenmrsSpaBase().replace(/\/$/,""),r=G(e);r.startsWith(n)?(0,$t.navigateToUrl)(r):window.location.assign(r)};i.r(u),i.d(u,{Type:function(){return ft},configExtensionStore:function(){return Mt},configInternalStore:function(){return Tt},defineConfigSchema:function(){return L},defineExtensionConfigSchema:function(){return R},getConfig:function(){return D},getConfigStore:function(){return y},getExtensionConfig:function(){return _},getExtensionConfigFromStore:function(){return S},getExtensionSlotConfig:function(){return m},getExtensionSlotConfigFromStore:function(){return b},getExtensionSlotsConfigStore:function(){return g},getExtensionsConfigStore:function(){return w},implementerToolsConfigStore:function(){return Dt},inRange:function(){return zt},interpolateString:function(){return J},interpolateUrl:function(){return G},isUrl:function(){return qt},isUrlWithTemplateParameters:function(){return Kt},navigate:function(){return Y},oneOf:function(){return Wt},processConfig:function(){return B},provide:function(){return M},temporaryConfigStore:function(){return Rt},validator:function(){return h},validators:function(){return Zt}});var Q="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e},X=Object.prototype.toString,tt=function(){return"[object Arguments]"===X.call(arguments)?function(t){return"[object Arguments]"===X.call(t)}:function(t){return c("callee",t)}}(),et=tt,nt=!{toString:null}.propertyIsEnumerable("toString"),rt=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],ot=function(){return arguments.propertyIsEnumerable("length")}(),it=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1},ut="function"!=typeof Object.keys||ot?n((function(t){if(Object(t)!==t)return[];var e,n,r=[],o=ot&&et(t);for(e in t)!c(e,t)||o&&"length"===e||(r[r.length]=e);if(nt)for(n=rt.length-1;n>=0;)c(e=rt[n],t)&&!it(r,e)&&(r[r.length]=e),n-=1;return r})):n((function(t){return Object(t)!==t?[]:Object.keys(t)})),at=n((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function ct(e,n,r,o){if(Q(e,n))return!0;var i,u,a=at(e);if(a!==at(n))return!1;if(null==e||null==n)return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof n.equals)return"function"==typeof e.equals&&e.equals(n)&&"function"==typeof n.equals&&n.equals(e);switch(a){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(i=e.constructor,null==(u=String(i).match(/^function (\w*)/))?"":u[1]))return e===n;break;case"Boolean":case"Number":case"String":if((void 0===e?"undefined":t(e))!=(void 0===n?"undefined":t(n))||!Q(e.valueOf(),n.valueOf()))return!1;break;case"Date":if(!Q(e.valueOf(),n.valueOf()))return!1;break;case"Error":return e.name===n.name&&e.message===n.message;case"RegExp":if(e.source!==n.source||e.global!==n.global||e.ignoreCase!==n.ignoreCase||e.multiline!==n.multiline||e.sticky!==n.sticky||e.unicode!==n.unicode)return!1}for(var l=r.length-1;l>=0;){if(r[l]===e)return o[l]===n;l-=1}switch(a){case"Map":return e.size===n.size&&s(e.entries(),n.entries(),r.concat([e]),o.concat([n]));case"Set":return e.size===n.size&&s(e.values(),n.values(),r.concat([e]),o.concat([n]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var f=ut(e);if(f.length!==ut(n).length)return!1;var d=r.concat([e]),p=o.concat([n]);for(l=f.length-1;l>=0;){var h=f[l];if(!c(h,n)||!ct(n[h],e[h],d,p))return!1;l-=1}return!0}var st=r((function(t,e){return ct(t,e,[],[])}));function lt(t,e,n,r){var o,i=function(o){for(var i=e.length,u=0;u<i;){if(t===e[u])return n[u];u+=1}for(var a in e[u+1]=t,n[u+1]=o,t)o[a]=r?lt(t[a],e,n,!0):t[a];return o};switch(at(t)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(t.valueOf());case"RegExp":return o=t,new RegExp(o.source,(o.global?"g":"")+(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.sticky?"y":"")+(o.unicode?"u":""));default:return t}}var ft,dt,pt=n((function(t){return null!=t&&"function"==typeof t.clone?t.clone():lt(t,[],[],!0)})),ht=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)},vt=n((function(t){return!!ht(t)||!!t&&"object"==typeof t&&(e=t,!("[object String]"===Object.prototype.toString.call(e)))&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1));var e})),yt=function(){var t=function(t){this.f=t};return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}(),gt=r((function(t,e){return function(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,o){return e.apply(this,arguments)};case 5:return function(t,n,r,o,i){return e.apply(this,arguments)};case 6:return function(t,n,r,o,i,u){return e.apply(this,arguments)};case 7:return function(t,n,r,o,i,u,a){return e.apply(this,arguments)};case 8:return function(t,n,r,o,i,u,a,c){return e.apply(this,arguments)};case 9:return function(t,n,r,o,i,u,a,c,s){return e.apply(this,arguments)};case 10:return function(t,n,r,o,i,u,a,c,s,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}(t.length,(function(){return t.apply(e,arguments)}))})),mt=gt,bt="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",wt=l((function(t,e,n){if("function"==typeof t&&(t=new yt(t)),vt(n))return function(t,e,n){for(var r=0,o=n.length;r<o;){if((e=t["@@transducer/step"](e,n[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}(t,e,n);if("function"==typeof n["fantasy-land/reduce"])return d(t,e,n,"fantasy-land/reduce");if(null!=n[bt])return f(t,e,n[bt]());if("function"==typeof n.next)return f(t,e,n);if("function"==typeof n.reduce)return d(t,e,n,"reduce");throw new TypeError("reduce: list must be array or iterable")})),_t=l((function(t,e,n){var r,o={};for(r in e)c(r,e)&&(o[r]=c(r,n)?t(r,e[r],n[r]):e[r]);for(r in n)c(r,n)&&!c(r,o)&&(o[r]=n[r]);return o})),St=l((function t(e,n,r){return _t((function(n,r,o){return p(r)&&p(o)?t(e,r,o):e(n,r,o)}),n,r)})),xt=r((function(t,e){return St((function(t,e,n){return n}),t,e)}));(dt=ft||(ft={})).Array="Array",dt.Boolean="Boolean",dt.ConceptUuid="ConceptUuid",dt.Number="Number",dt.Object="Object",dt.String="String",dt.UUID="UUID",dt.PersonAttributeTypeUuid="PersonAttributeTypeUuid",dt.PatientIdentifierTypeUuid="PatientIdentifierTypeUuid";var Ot=h((function(t){return Array.isArray(t)}),"must be an array"),jt=h((function(t){return"boolean"==typeof t}),"must be a boolean"),Et=h((function(t){return"number"==typeof t}),"must be a number"),Ct=h((function(t){return"string"==typeof t}),"must be a string"),kt=h((function(t){return"object"==typeof t&&!Array.isArray(t)&&null!==t}),"must be an object (not an array or null)"),At=h((function(t){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)||/^[0-9a-f]{36}$/i.test(t)}),"must be a valid UUID or a 36-character hexadecimal string"),Pt=i(685),It={providedConfigs:[],schemas:{},devDefaultsAreOn:v()},Tt=(0,Pt.createGlobalStore)("config-internal",It),Lt=v();Tt.subscribe((function(t){var e;t.devDefaultsAreOn!=Lt&&(e=t.devDefaultsAreOn,localStorage.setItem("openmrs:configAreDevDefaultsOn",JSON.stringify(e)),Lt=t.devDefaultsAreOn)}));var Rt=(0,Pt.createGlobalStore)("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(t){return{}}}()});Rt.subscribe((function(t){var e;e=t.config,localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(e))}));var Mt=(0,Pt.createGlobalStore)("config-store-of-extension-state",{mountedExtensions:[]}),Dt=(0,Pt.createGlobalStore)("config-implementer-tools",{config:{}});function Bt(t){return t.hasOwnProperty("_default")?j({},t,{_value:t._default,_source:"default"}):Z(t)?Object.keys(t).reduce((function(e,n){return e[n]=Bt(t[n]),e}),{}):{}}function Nt(t,e){return Z(t)?Object.keys(t).reduce((function(n,r){return n[r]=Nt(t[r],e),n}),{}):{_value:t,_source:e}}function Ut(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r="Please verify that you are running the latest version and, if so, alert the maintainer.",o=!0,i=!1,u=void 0;try{for(var a,c=function(o,i){var u=i.value,a=n+(n&&".")+u,c=e[u];if(!Z(c))return console.error("".concat(t," has bad config schema definition for key '").concat(a,"'. ").concat(r)),"continue";c.hasOwnProperty("_default")||Ut(t,c,a);var s=c._elements;if(W(s)&&Ut(t,s,a+"._elements"),c._validators){var l=!0,f=!1,d=void 0;try{for(var p,h=c._validators[Symbol.iterator]();!(l=(p=h.next()).done);l=!0){var v=p.value;"function"!=typeof v&&console.error("".concat(t," has invalid validator for key '").concat(a,"' ").concat(r,".")+"\n\nIf you're the maintainer: validators must be functions that return either "+"undefined or an error string. Received ".concat(v,"."))}}catch(t){f=!0,d=t}finally{try{l||null==h.return||h.return()}finally{if(f)throw d}}}var y=c._type;y&&!Object.values(ft).includes(y)&&console.error("".concat(t," has invalid type for key '").concat(a,"' ").concat(r,".")+"\n\nIf you're the maintainer: the allowed types are ".concat(Object.values(ft).join(", "),". ")+"Received '".concat(y,"'")),Object.keys(c).every((function(t){return["_description","_validators","_elements","_type"].includes(t)}))&&!n.includes("._elements")&&console.error("".concat(t," has bad config schema definition for key '").concat(a,"'. ").concat(r,".")+"\n\nIf you're the maintainer: all config elements must have a default. "+"Received ".concat(JSON.stringify(c))),s&&y&&![ft.Array,ft.Object].includes(y)&&console.error("".concat(t," has bad config schema definition for key '").concat(a,"'. ").concat(r,".")+"\n\nIf you're the maintainer: the 'elements' key only works with '_type' equal to 'Array' or 'Object'. "+"Received ".concat(JSON.stringify(y)))},s=Object.keys(e).filter((function(t){return!t.startsWith("_")}))[Symbol.iterator]();!(o=(a=s.next()).done);o=!0)c(s,a)}catch(t){i=!0,u=t}finally{try{o||null==s.return||s.return()}finally{if(i)throw u}}}function Ht(t,e,n){K(n,t._type,e),Z(e)?t._type===ft.Object?function(t,e,n){if(t._elements){var r=!0,o=!1,i=void 0;try{for(var u,a=Object.keys(e)[Symbol.iterator]();!(r=(u=a.next()).done);r=!0){var c=u.value,s=e[c];z(t._elements,s,"".concat(n,".").concat(c))}}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}}}(t,e,n):t.hasOwnProperty("_default")||z(t,e,n):t._type===ft.Array&&function(t,e,n){if(W(t._elements))for(var r=0;r<e.length;r++)Ht(t._elements,e[r],"".concat(n,"[").concat(r,"]"));for(var o=0;o<e.length;o++){var i;K("".concat(n,"[").concat(o,"]"),null===(i=t._elements)||void 0===i?void 0:i._type,e[o])}}(t,e,n)}function Ft(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(t)if(e!==t._default&&q(n,t._validators,e),Z(e)){var r=!0,o=!1,i=void 0;try{for(var u,a=Object.keys(e)[Symbol.iterator]();!(r=(u=a.next()).done);r=!0){var c=u.value,s=e[c],l=n+"."+c,f=t[c];t._type===ft.Object&&t._elements?Ft(t._elements,s,l):Ft(f,s,l)}}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}}else if(Array.isArray(e)&&t._elements)for(var d=0;d<e.length;d++)Ft(t._elements,e[d],"".concat(n,"[").concat(d,"]"))}A(Tt.getState(),Rt.getState()),Tt.subscribe((function(t){return A(t,Rt.getState())})),Rt.subscribe((function(t){return A(Tt.getState(),t)})),I(Tt.getState(),Rt.getState()),Tt.subscribe((function(t){return I(t,Rt.getState())})),Rt.subscribe((function(t){return I(Tt.getState(),t)})),P(Tt.getState(),Rt.getState()),Tt.subscribe((function(t){return P(t,Rt.getState())})),Rt.subscribe((function(t){return P(Tt.getState(),t)})),T(Tt.getState(),Mt.getState(),Rt.getState()),Tt.subscribe((function(t){T(t,Mt.getState(),Rt.getState())})),Mt.subscribe((function(t){T(Tt.getState(),t,Rt.getState())})),Rt.subscribe((function(t){T(Tt.getState(),Mt.getState(),t)}));var Vt=function(t,e,n){var r=pt(e);if(!t)return r;var o=!0,i=!1,u=void 0;try{for(var a,c=function(e,o){var i=o.value,u=r[i],a=t[i];if(a&&a.hasOwnProperty("_default")){if(!r.hasOwnProperty(i)){var c=a._devDefault||a._default;r[i]=n?c:a._default}var s=a._elements;if(u&&W(s))if(a._type===ft.Array&&Array.isArray(u)){var l=u.map((function(t){return Vt(s,t,n)}));r[i]=l}else if(a._type===ft.Object){var f=!0,d=!1,p=void 0;try{for(var h,v=Object.keys(u)[Symbol.iterator]();!(f=(h=v.next()).done);f=!0){var y=h.value;u[y]=Vt(s,u[y],n)}}catch(t){d=!0,p=t}finally{try{f||null==v.return||v.return()}finally{if(d)throw p}}}}else if(Z(a)){var g=r.hasOwnProperty(i)?u:{};Z(g)&&(r[i]=Vt(a,g,n))}},s=Object.keys(t)[Symbol.iterator]();!(o=(a=s.next()).done);o=!0)c(0,a)}catch(t){i=!0,u=t}finally{try{o||null==s.return||s.return()}finally{if(i)throw u}}return r},$t=i(645),zt=function(t,e){return h((function(n){return t<=n&&n<=e}),"must be between ".concat(t," and ").concat(e))},Kt=function(t){var e=t.concat(["openmrsBase","openmrsSpaBase"]);return h((function(t){if(!t||"string"!=typeof t)return!1;for(var n=/\${(.*?)}/g,r=n.exec(t);r;){if(!e.includes(r[1]))return!1;r=n.exec(t)}return!0}),"Should be a URL or path. The allowed template parameters are "+e.map((function(t){return"${"+t+"}"})).join(", "))},qt=Kt([]),Wt=function(t){return h((function(e){return t.includes(e)}),"Must be one of the following: '".concat(t.join("', '"),"'."))},Zt={inRange:zt,isUrl:qt,isUrlWithTemplateParameters:Kt,oneOf:Wt}}(),u}())}}}))},7708:()=>{System.register(["@openmrs/esm-globals"],(function(t,e){var n={};return{setters:[function(t){n.dispatchNotificationShown=t.dispatchNotificationShown}],execute:function(){t(function(){var t={968:function(t,e,n){var r=n(577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},577:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger},728:function(t){"use strict";t.exports=n}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.y=e,o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;o.g.importScripts&&(t=o.g.location+"");var e=o.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t}();var i={};return(0,o(968).s)(1),function(){"use strict";var t=function(t){var e=n(t);setTimeout((function(){throw e}))},e=function(){var e=Error();return function(r){n(r).stack+="\nAsync stacktrace:\n".concat(e.stack),t(r)}},n=function(t){var e,n,r,o,i;if(n=t,null!=(r=Error)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):(o=n,null!=(i=r)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?i[Symbol.hasInstance](o):o instanceof i))return t;if(null===t)return Error("'null' was thrown as an error");if("object"==typeof t){try{e="Object thrown as error: ".concat(JSON.stringify(t))}catch(n){e="Object thrown as error with the following properties: ".concat(Object.keys(t))}return Error(e)}return void 0===t?Error("'undefined' was thrown as an error"):Error(t.toString())};o.r(i),o.d(i,{createErrorHandler:function(){return e},reportError:function(){return t}});var r=o(728);window.onerror=function(){return(0,r.dispatchNotificationShown)({description:"Oops! An unexpected error occurred."}),!1},window.onunhandledrejection=function(){(0,r.dispatchNotificationShown)({description:"Oops! An unexpected error occurred."})}}(),i}())}}}))},547:(t,e,n)=>{function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}t=n.nmd(t);var o=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};System.register(["@openmrs/esm-config","@openmrs/esm-state","single-spa"],(function(i,u){var a={},c={},s={};return{setters:[function(t){a.configExtensionStore=t.configExtensionStore,a.getExtensionConfigFromStore=t.getExtensionConfigFromStore,a.getExtensionSlotConfig=t.getExtensionSlotConfig,a.getExtensionSlotConfigFromStore=t.getExtensionSlotConfigFromStore,a.getExtensionSlotsConfigStore=t.getExtensionSlotsConfigStore,a.getExtensionsConfigStore=t.getExtensionsConfigStore},function(t){c.createGlobalStore=t.createGlobalStore,c.getGlobalStore=t.getGlobalStore},function(t){s.mountRootParcel=t.mountRootParcel}],execute:function(){i(function(){var i={968:function(t,e,n){var r=n(577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},577:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger},824:function(t){"use strict";t.exports=a},685:function(t){"use strict";t.exports=c},645:function(t){"use strict";t.exports=s}},l={};function f(t){var e=l[t];if(void 0!==e)return e.exports;var n=l[t]={exports:{}};return i[t](n,n.exports,f),n.exports}f.y=u,f.d=function(t,e){for(var n in e)f.o(e,n)&&!f.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),f.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},f.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;f.g.importScripts&&(t=f.g.location+"");var e=f.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),f.p=t}();var d={};return(0,f(968).s)(1),function(){"use strict";var i=function(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}},u=function(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}},a=function(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}},c=function(t){var e=this.__data__=new K(t);this.size=e.size},s=function(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new St;++e<n;)this.add(t[e])},l=function(t){var e=Me.getState(),n=t(e);n!==e&&Me.setState(n)},p=function(t){var e=[],n=!0,r=!1,o=void 0;try{for(var i,u=Object.values(t.extensions)[Symbol.iterator]();!(n=(i=u.next()).done);n=!0){var a=i.value,c=!0,s=!1,l=void 0;try{for(var f,d=a.instances[Symbol.iterator]();!(c=(f=d.next()).done);c=!0){var p=f.value;e.push({slotModuleName:p.slotModuleName,extensionModuleName:a.moduleName,slotName:p.slotName,extensionId:p.id})}}catch(t){s=!0,l=t}finally{try{c||null==d.return||d.return()}finally{if(s)throw l}}}}catch(t){r=!0,o=t}finally{try{n||null==u.return||u.return()}finally{if(r)throw o}}Te(Le.configExtensionStore.getState().mountedExtensions,e)||Le.configExtensionStore.setState({mountedExtensions:e})},h=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},v=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},y=function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){v(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t},g=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||b(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},m=function(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||b(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},b=function(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}},w=function(t,e,n){var r={},o=!0,i=!1,u=void 0;try{for(var a,c=Object.entries(t.slots)[Symbol.iterator]();!(o=(a=c.next()).done);o=!0){var s=g(a.value,2),l=s[0],f=s[1],d=P(l,t,(0,Le.getExtensionSlotConfigFromStore)(e,f.name).config,n);r[l]={moduleName:f.moduleName,assignedExtensions:d}}}catch(t){i=!0,u=t}finally{try{o||null==c.return||c.return()}finally{if(i)throw u}}Te(Ue.getState().slots,r)||Ue.setState({slots:r})},_=function(t,e){return{moduleName:e,name:t,attachedIds:[],config:null}},S=function(t){return g(t.split("#"),1)[0]},x=function(t,e){var n=S(e);return t.extensions[n]},O=function(t){return x(Ne.getState(),t)},j=function(t,e){l((function(n){var r=n.slots[t];return y({},n,r?{slots:y({},n.slots,v({},t,y({},r,{attachedIds:m(r.attachedIds).concat([e])})))}:{slots:y({},n.slots,v({},t,y({},_(t),{attachedIds:[e]})))})}))},E=function(t,e){l((function(n){var r=n.slots[t];return r&&r.attachedIds.includes(e)?y({},n,{slots:y({},n.slots,v({},t,y({},r,{attachedIds:r.attachedIds.filter((function(t){return t!==e}))})))}):n}))},C=function(t){l((function(e){var n=e.slots[t];return n?y({},e,{slots:y({},e.slots,v({},t,y({},n,{attachedIds:[]})))}):e}))},k=function(t,e,n,r){var o=e.indexOf(t);if(-1!==o)return o;if(void 0!==n)return 1e3+n;var i=r.indexOf(t);return-1!==i?2e3+i:-1},A=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null!=e?e:navigator.onLine;return t.filter((function(t){return L(n,t.online,t.offline)}))},P=function(t,e,n,r){var o,i,u,a,c,s,l=(o=n,i=e.slots[t].attachedIds,u=o.add||[],a=o.remove||[],c=o.order||[],s=Ne.getState().extensions,m(i).concat(m(u)).filter((function(t){return!a.includes(t)})).sort((function(t,e){var n,r,o=k(t,c,null===(n=s[S(t)])||void 0===n?void 0:n.order,i),u=k(e,c,null===(r=s[S(e)])||void 0===r?void 0:r.order,i);return-1===u?-1:-1===o?1:o-u}))),f=[],d=!0,p=!1,h=void 0;try{for(var v,y=l[Symbol.iterator]();!(d=(v=y.next()).done);d=!0){var g=v.value,b=(0,Le.getExtensionConfigFromStore)(r,t,g).config,w=S(g),_=e.extensions[w];_&&f.push({id:g,name:w,moduleName:_.moduleName,config:b,meta:_.meta,online:_.online,offline:_.offline})}}catch(t){p=!0,h=t}finally{try{d||null==y.return||y.return()}finally{if(p)throw h}}return f},I=function(t){return P(t,Ne.getState(),(0,Le.getExtensionSlotConfig)(t).config,Fe.getState())},T=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=navigator.onLine;return L(n,t,e)},L=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Boolean(t?e:n)},R=function(t,e){var n=navigator.onLine?t:e;return"object"==typeof n?n:{}},M=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},D=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},B=function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){D(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t},N=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o},U=function(t){return function(t){if(Array.isArray(t))return M(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return M(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},H=function(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(t){return t},i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},u=S(r),a=O(r),c=!0,s=null;if(t){if(!a)throw Error("Couldn't find extension '".concat(u,"' to attach to '").concat(e,"'"));var f=a.load,d=a.online,p=a.offline,h=a.meta,v=a.moduleName;T(d,p)&&(f().then((function(u){var a=u.default,l=N(u,["default"]);c&&(s=(0,Ke.mountRootParcel)(o(null!=a?a:l),B({},R(d,p),i,{_meta:h,_extensionContext:{extensionId:r,extensionSlotName:e,extensionSlotModuleName:n,extensionModuleName:v},domElement:t})))})),l((function(o){var i={domElement:t,id:r,slotName:e,slotModuleName:n};return B({},o,{extensions:B({},o.extensions,D({},u,B({},o.extensions[u],{instances:U(o.extensions[u].instances).concat([i])})))})})))}else console.warn("Tried to render ".concat(r," into ").concat(e," but no DOM element was available."));return function(){c=!1,s&&("MOUNTED"!==s.getStatus()?s.mountPromise.then((function(){s&&s.unmount()})):s.unmount())}};f.r(d),f.d(d,{attach:function(){return j},checkStatus:function(){return T},checkStatusFor:function(){return L},detach:function(){return E},detachAll:function(){return C},extensionStore:function(){return qe},getAssignedExtensions:function(){return I},getConnectedExtensions:function(){return A},getCustomProps:function(){return R},getExtensionInternalStore:function(){return De},getExtensionNameFromId:function(){return S},getExtensionRegistration:function(){return O},getExtensionRegistrationFrom:function(){return x},getExtensionStore:function(){return Be},registerExtension:function(){return Ve},registerExtensionSlot:function(){return $e},renderExtension:function(){return H},reset:function(){return ze},updateInternalExtensionStore:function(){return l}});var F=function(t,e){return t===e||t!=t&&e!=e},V=function(t,e){for(var n=t.length;n--;)if(F(t[n][0],e))return n;return-1},$=Array.prototype.splice;i.prototype.clear=function(){this.__data__=[],this.size=0},i.prototype.delete=function(t){var e=this.__data__,n=V(e,t);return!(n<0||(n==e.length-1?e.pop():$.call(e,n,1),--this.size,0))},i.prototype.get=function(t){var e=this.__data__,n=V(e,t);return n<0?void 0:e[n][1]},i.prototype.has=function(t){return V(this.__data__,t)>-1},i.prototype.set=function(t,e){var n=this.__data__,r=V(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var z,K=i,q="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,W="object"==typeof self&&self&&self.Object===Object&&self,Z=q||W||Function("return this")(),G=Z.Symbol,J=Object.prototype,Y=J.hasOwnProperty,Q=J.toString,X=G?G.toStringTag:void 0,tt=Object.prototype.toString,et=G?G.toStringTag:void 0,nt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":et&&et in Object(t)?function(t){var e=Y.call(t,X),n=t[X];try{t[X]=void 0;var r=!0}catch(t){}var o=Q.call(t);return r&&(e?t[X]=n:delete t[X]),o}(t):(e=t,tt.call(e));var e},rt=function(t){var e=void 0===t?"undefined":o(t);return null!=t&&("object"==e||"function"==e)},ot=function(t){if(!rt(t))return!1;var e=nt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},it=Z["__core-js_shared__"],ut=(z=/[^.]+$/.exec(it&&it.keys&&it.keys.IE_PROTO||""))?"Symbol(src)_1."+z:"",at=Function.prototype.toString,ct=function(t){if(null!=t){try{return at.call(t)}catch(t){}try{return t+""}catch(t){}}return""},st=/^\[object .+?Constructor\]$/,lt=Function.prototype,ft=Object.prototype,dt=lt.toString,pt=ft.hasOwnProperty,ht=RegExp("^"+dt.call(pt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vt=function(t,e){var n,r=null==(n=t)?void 0:n[e];return function(t){return!(!rt(t)||(e=t,ut&&ut in e))&&(ot(t)?ht:st).test(ct(t));var e}(r)?r:void 0},yt=vt(Z,"Map"),gt=vt(Object,"create"),mt=Object.prototype.hasOwnProperty,bt=Object.prototype.hasOwnProperty;u.prototype.clear=function(){this.__data__=gt?gt(null):{},this.size=0},u.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},u.prototype.get=function(t){var e=this.__data__;if(gt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return mt.call(e,t)?e[t]:void 0},u.prototype.has=function(t){var e=this.__data__;return gt?void 0!==e[t]:bt.call(e,t)},u.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=gt&&void 0===e?"__lodash_hash_undefined__":e,this};var wt=u,_t=function(t,e){var n,r,i=t.__data__;return("string"==(r=o(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map};a.prototype.clear=function(){this.size=0,this.__data__={hash:new wt,map:new(yt||K),string:new wt}},a.prototype.delete=function(t){var e=_t(this,t).delete(t);return this.size-=e?1:0,e},a.prototype.get=function(t){return _t(this,t).get(t)},a.prototype.has=function(t){return _t(this,t).has(t)},a.prototype.set=function(t,e){var n=_t(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var St=a;c.prototype.clear=function(){this.__data__=new K,this.size=0},c.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},c.prototype.get=function(t){return this.__data__.get(t)},c.prototype.has=function(t){return this.__data__.has(t)},c.prototype.set=function(t,e){var n=this.__data__;if(r(n,K)){var o=n.__data__;if(!yt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new St(o)}return n.set(t,e),this.size=n.size,this};var xt=c;s.prototype.add=s.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},s.prototype.has=function(t){return this.__data__.has(t)};var Ot=s,jt=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1},Et=function(t,e,n,r,o,i){var u=1&n,a=t.length,c=e.length;if(a!=c&&!(u&&c>a))return!1;var s=i.get(t),l=i.get(e);if(s&&l)return s==e&&l==t;var f=-1,d=!0,p=2&n?new Ot:void 0;for(i.set(t,e),i.set(e,t);++f<a;){var h=t[f],v=e[f];if(r)var y=u?r(v,h,f,e,t,i):r(h,v,f,t,e,i);if(void 0!==y){if(y)continue;d=!1;break}if(p){if(!jt(e,(function(t,e){if(u=e,!p.has(u)&&(h===t||o(h,t,n,r,i)))return p.push(e);var u}))){d=!1;break}}else if(h!==v&&!o(h,v,n,r,i)){d=!1;break}}return i.delete(t),i.delete(e),d},Ct=Z.Uint8Array,kt=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n},At=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},Pt=G?G.prototype:void 0,It=Pt?Pt.valueOf:void 0,Tt=Array.isArray,Lt=Object.prototype.propertyIsEnumerable,Rt=Object.getOwnPropertySymbols,Mt=Rt?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var u=t[n];e(u)&&(i[o++]=u)}return i}(Rt(t),(function(e){return Lt.call(t,e)})))}:function(){return[]},Dt=function(t){return null!=t&&"object"==typeof t},Bt=function(t){return Dt(t)&&"[object Arguments]"==nt(t)},Nt=Object.prototype,Ut=Nt.hasOwnProperty,Ht=Nt.propertyIsEnumerable,Ft=Bt(function(){return arguments}())?Bt:function(t){return Dt(t)&&Ut.call(t,"callee")&&!Ht.call(t,"callee")},Vt=Ft,$t=e&&!e.nodeType&&e,zt=$t&&t&&!t.nodeType&&t,Kt=zt&&zt.exports===$t?Z.Buffer:void 0,qt=(Kt?Kt.isBuffer:void 0)||function(){return!1},Wt=/^(?:0|[1-9]\d*)$/,Zt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Gt={};Gt["[object Float32Array]"]=Gt["[object Float64Array]"]=Gt["[object Int8Array]"]=Gt["[object Int16Array]"]=Gt["[object Int32Array]"]=Gt["[object Uint8Array]"]=Gt["[object Uint8ClampedArray]"]=Gt["[object Uint16Array]"]=Gt["[object Uint32Array]"]=!0,Gt["[object Arguments]"]=Gt["[object Array]"]=Gt["[object ArrayBuffer]"]=Gt["[object Boolean]"]=Gt["[object DataView]"]=Gt["[object Date]"]=Gt["[object Error]"]=Gt["[object Function]"]=Gt["[object Map]"]=Gt["[object Number]"]=Gt["[object Object]"]=Gt["[object RegExp]"]=Gt["[object Set]"]=Gt["[object String]"]=Gt["[object WeakMap]"]=!1;var Jt,Yt,Qt,Xt=e&&!e.nodeType&&e,te=Xt&&t&&!t.nodeType&&t,ee=te&&te.exports===Xt&&q.process,ne=function(){try{return te&&te.require&&te.require("util").types||ee&&ee.binding&&ee.binding("util")}catch(t){}}(),re=ne&&ne.isTypedArray,oe=re?(Jt=re,function(t){return Jt(t)}):function(t){return Dt(t)&&Zt(t.length)&&!!Gt[nt(t)]},ie=Object.prototype.hasOwnProperty,ue=Object.prototype,ae=(Yt=Object.keys,Qt=Object,function(t){return Yt(Qt(t))}),ce=Object.prototype.hasOwnProperty,se=function(t){return n=Mt,r=function(t){return null!=(e=t)&&Zt(e.length)&&!ot(e)?function(t,e){var n,r,i,u=Tt(t),a=!u&&Vt(t),c=!u&&!a&&qt(t),s=!u&&!a&&!c&&oe(t),l=u||a||c||s,f=l?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],d=f.length;for(var p in t)!ie.call(t,p)||l&&("length"==p||c&&("offset"==p||"parent"==p)||s&&("buffer"==p||"byteLength"==p||"byteOffset"==p)||(r=d,i=void 0===(n=p)?"undefined":o(n),(r=null==r?9007199254740991:r)&&("number"==i||"symbol"!=i&&Wt.test(n))&&n>-1&&n%1==0&&n<r))||f.push(p);return f}(t):function(t){if(n=(e=t)&&e.constructor,e!==("function"==typeof n&&n.prototype||ue))return ae(t);var e,n,r=[];for(var o in Object(t))ce.call(t,o)&&"constructor"!=o&&r.push(o);return r}(t);var e}(e=t),Tt(e)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(e));var e,n,r},le=Object.prototype.hasOwnProperty,fe=vt(Z,"DataView"),de=vt(Z,"Promise"),pe=vt(Z,"Set"),he=vt(Z,"WeakMap"),ve="[object Map]",ye="[object Promise]",ge="[object Set]",me="[object WeakMap]",be="[object DataView]",we=ct(fe),_e=ct(yt),Se=ct(de),xe=ct(pe),Oe=ct(he),je=nt;(fe&&je(new fe(new ArrayBuffer(1)))!=be||yt&&je(new yt)!=ve||de&&je(de.resolve())!=ye||pe&&je(new pe)!=ge||he&&je(new he)!=me)&&(je=function(t){var e=nt(t),n="[object Object]"==e?t.constructor:void 0,r=n?ct(n):"";if(r)switch(r){case we:return be;case _e:return ve;case Se:return ye;case xe:return ge;case Oe:return me}return e});var Ee=je,Ce="[object Arguments]",ke="[object Array]",Ae="[object Object]",Pe=Object.prototype.hasOwnProperty,Ie=function t(e,n,o,i,u){return e===n||(null==e||null==n||!Dt(e)&&!Dt(n)?e!=e&&n!=n:function(t,e,n,o,i,u){var a=Tt(t),c=Tt(e),s=a?ke:Ee(t),l=c?ke:Ee(e),f=(s=s==Ce?Ae:s)==Ae,d=(l=l==Ce?Ae:l)==Ae,p=s==l;if(p&&qt(t)){if(!qt(e))return!1;a=!0,f=!1}if(p&&!f)return u||(u=new xt),a||oe(t)?Et(t,e,n,o,i,u):function(t,e,n,r,o,i,u){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new Ct(t),new Ct(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return F(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=kt;case"[object Set]":var c=1&r;if(a||(a=At),t.size!=e.size&&!c)return!1;var s=u.get(t);if(s)return s==e;r|=2,u.set(t,e);var l=Et(a(t),a(e),r,o,i,u);return u.delete(t),l;case"[object Symbol]":if(It)return It.call(t)==It.call(e)}return!1}(t,e,s,n,o,i,u);if(!(1&n)){var h=f&&Pe.call(t,"__wrapped__"),v=d&&Pe.call(e,"__wrapped__");if(h||v){var y=h?t.value():t,g=v?e.value():e;return u||(u=new xt),i(y,g,n,o,u)}}return!!p&&(u||(u=new xt),function(t,e,n,o,i,u){var a=1&n,c=se(t),s=c.length;if(s!=se(e).length&&!a)return!1;for(var l=s;l--;){var f=c[l];if(!(a?f in e:le.call(e,f)))return!1}var d=u.get(t),p=u.get(e);if(d&&p)return d==e&&p==t;var h=!0;u.set(t,e),u.set(e,t);for(var v=a;++l<s;){var y=t[f=c[l]],g=e[f];if(o)var m=a?o(g,y,f,e,t,u):o(y,g,f,t,e,u);if(!(void 0===m?y===g||i(y,g,n,o,u):m)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&r(b,b)&&"function"==typeof w&&r(w,w)||(h=!1)}return u.delete(t),u.delete(e),h}(t,e,n,o,i,u))}(e,n,o,i,t,u))},Te=function(t,e){return Ie(t,e)},Le=f(824),Re=f(685),Me=(0,Re.createGlobalStore)("extensionsInternal",{slots:{},extensions:{}}),De=function(){return(0,Re.getGlobalStore)("extensionsInternal",{slots:{},extensions:{}})},Be=function(){return(0,Re.getGlobalStore)("extensions",{slots:{}})};p(Me.getState()),Me.subscribe(p);var Ne=De(),Ue=Be(),He=(0,Le.getExtensionSlotsConfigStore)(),Fe=(0,Le.getExtensionsConfigStore)();Ne.subscribe((function(t){w(t,He.getState(),Fe.getState())})),He.subscribe((function(t){w(Ne.getState(),t,Fe.getState())})),Fe.subscribe((function(t){w(Ne.getState(),He.getState(),t)}));var Ve=Ne.action((function(t,e){t.extensions[e.name]=y({},e,{instances:[]})})),$e=Ne.action((function(t,e,n){var r,o=null===(r=t.slots[n])||void 0===r?void 0:r.moduleName;if(o&&o!=e)return console.warn("An extension slot with the name '".concat(n,'\' already exists. Refusing to register the same slot name twice (in "registerExtensionSlot"). The existing one is from module ').concat(o,".")),t;if(o&&o==e)return t;if(t.slots[n])return y({},t,{slots:y({},t.slots,v({},n,y({},t.slots[n],{moduleName:e})))});var i=_(n,e);return y({},t,{slots:y({},t.slots,v({},n,i))})})),ze=Ue.action((function(){return{slots:{},extensions:{}}})),Ke=f(645),qe=De()}(),d}())}}}))},4889:(t,e,n)=>{"use strict";n.r(e);var r=n(159),o={};for(const t in r)"default"!==t&&(o[t]=()=>r[t]);n.d(e,o);var i=n(9810);o={};for(const t in i)"default"!==t&&(o[t]=()=>i[t]);n.d(e,o);var u=n(6347);o={};for(const t in u)"default"!==t&&(o[t]=()=>u[t]);n.d(e,o);var a=n(7708);o={};for(const t in a)"default"!==t&&(o[t]=()=>a[t]);n.d(e,o);var c=n(547);o={};for(const t in c)"default"!==t&&(o[t]=()=>c[t]);n.d(e,o);var s=n(9473);o={};for(const t in s)"default"!==t&&(o[t]=()=>s[t]);n.d(e,o);var l=n(2630);o={};for(const t in l)"default"!==t&&(o[t]=()=>l[t]);n.d(e,o);var f=n(9336);o={};for(const t in f)"default"!==t&&(o[t]=()=>f[t]);n.d(e,o);var d=n(1493);o={};for(const t in d)"default"!==t&&(o[t]=()=>d[t]);n.d(e,o);var p=n(2390);o={};for(const t in p)"default"!==t&&(o[t]=()=>p[t]);n.d(e,o)},9473:()=>{System.register([],(function(t,e){return{execute:function(){t(function(){var t={968:function(t,e,n){var r=n(577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},577:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.y=e,r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t}();var o={};return(0,r(968).s)(1),function(){"use strict";var t=function(t){window.dispatchEvent(new CustomEvent(d,{detail:{online:t}}))},e=function(t){var e=function(e){return t(e.detail)};return window.addEventListener(d,e),function(){return window.removeEventListener(d,e)}},n=function(t){return t({online:navigator.onLine}),e(t)},i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.dispatchEvent(new CustomEvent(p,{detail:t}))},u=function(t){var e=function(e){return t(e.detail)};return window.addEventListener(p,e),function(){return window.removeEventListener(p,e)}},a=function(t){window.dispatchEvent(new CustomEvent(h,{detail:t}))},c=function(t){var e=function(e){return t(e.detail)};return window.addEventListener(h,e),function(){return window.removeEventListener(h,e)}},s=function(t){var e=function(e){return t(e.detail)};return window.addEventListener(v,e),function(){return window.removeEventListener(v,e)}},l=function(t){window.openmrsBase=t.apiUrl,window.spaBase=t.spaPath,window.spaEnv=t.env||"production",window.spaVersion=process.env.BUILD_VERSION,window.getOpenmrsSpaBase=function(){return"".concat(window.spaBase,"/")}},f=function(){window.copyText=function(t){var e=window.getSelection();if(e){var n=document.createRange();n.selectNode(t),e.removeAllRanges(),e.addRange(n),document.execCommand("copy"),e.removeAllRanges()}}};r.r(o),r.d(o,{dispatchConnectivityChanged:function(){return t},dispatchNotificationShown:function(){return a},dispatchPrecacheStaticDependencies:function(){return i},setupPaths:function(){return l},setupUtils:function(){return f},subscribeConnectivity:function(){return n},subscribeConnectivityChanged:function(){return e},subscribeNotificationShown:function(){return c},subscribePrecacheStaticDependencies:function(){return u},subscribeToastShown:function(){return s}});var d="openmrs:connectivity-changed",p="openmrs:precache-static-dependencies",h="openmrs:notification-shown",v="openmrs:toast-shown"}(),o}())}}}))},2630:(t,e,n)=>{function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){a(t,e,n[e])}))}return t}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||p(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||p(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function p(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}System.register(["@openmrs/esm-api","@openmrs/esm-state"],(function(t,e){var r={},i={};return{setters:[function(t){r.getLoggedInUser=t.getLoggedInUser},function(t){i.createGlobalStore=t.createGlobalStore}],execute:function(){t(function(){var t={602:function(t){var e=function(t){"use strict";var e,n=function(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]},r=function(t,e,n,r){var u,a,s,l,f=e&&c(e.prototype,i)?e:i,d=Object.create(f.prototype),h=new p(r||[]);return d._invoke=(u=t,a=n,s=h,l=S,function(t,e){if(l===O)throw new Error("Generator is already running");if(l===j){if("throw"===t)throw e;return v()}for(s.method=t,s.arg=e;;){var n=s.delegate;if(n){var r=I(n,s);if(r){if(r===E)continue;return r}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(l===S)throw l=j,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);l=O;var i=o(u,a,s);if("normal"===i.type){if(l=s.done?j:x,i.arg===E)continue;return{value:i.arg,done:s.done}}"throw"===i.type&&(l=j,s.method="throw",s.arg=i.arg)}}),d},o=function(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}},i=function(){},u=function(){},a=function(){},s=function(t){["next","throw","return"].forEach((function(e){n(t,e,(function(t){return this._invoke(e,t)}))}))},l=function(t,e){function n(r,i,u,a){var c=o(t[r],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&g.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,u,a)}),(function(t){n("throw",t,u,a)})):e.resolve(l).then((function(t){s.value=t,u(s)}),(function(t){return n("throw",t,u,a)}))}a(c.arg)}var r;this._invoke=function(t,o){function i(){return new e((function(e,r){n(t,o,e,r)}))}return r=r?r.then(i,i):i()}},f=function(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)},d=function(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e},p=function(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(f,this),this.reset(!0)},h=function(t){if(t){var n=t[b];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(g.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}return{next:v}},v=function(){return{value:e,done:!0}},y=Object.prototype,g=y.hasOwnProperty,m="function"==typeof Symbol?Symbol:{},b=m.iterator||"@@iterator",w=m.asyncIterator||"@@asyncIterator",_=m.toStringTag||"@@toStringTag";try{n({},"")}catch(t){n=function(t,e,n){return t[e]=n}}t.wrap=r;var S="suspendedStart",x="suspendedYield",O="executing",j="completed",E={},C={};n(C,b,(function(){return this}));var k=Object.getPrototypeOf,A=k&&k(k(h([])));A&&A!==y&&g.call(A,b)&&(C=A);var P=a.prototype=i.prototype=Object.create(C);function I(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method))return E;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return E}var i=o(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,E;var u=i.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,E):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,E)}return u.prototype=a,n(P,"constructor",a),n(a,"constructor",u),u.displayName=n(a,_,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===u||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,n(t,_,"GeneratorFunction")),t.prototype=Object.create(P),t},t.awrap=function(t){return{__await:t}},s(l.prototype),n(l.prototype,w,(function(){return this})),t.AsyncIterator=l,t.async=function(e,n,o,i,u){void 0===u&&(u=Promise);var a=new l(r(e,n,o,i),u);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},s(P),n(P,_,"Generator"),n(P,b,(function(){return this})),n(P,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=h,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(d),!t)for(var n in this)"t"===n.charAt(0)&&g.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){var n=function(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o};if(this.done)throw t;for(var r=this,o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=g.call(i,"catchLoc"),c=g.call(i,"finallyLoc");if(a&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&g.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,E):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),E},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),d(n),E}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;d(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:h(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),E}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},968:function(t,e,n){var r=n(577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},577:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger},766:function(t){"use strict";t.exports=r},685:function(t){"use strict";t.exports=i}},p={};function h(e){var n=p[e];if(void 0!==n)return n.exports;var r=p[e]={exports:{}};return t[e](r,r.exports,h),r.exports}h.y=e,h.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return h.d(e,{a:e}),e},h.d=function(t,e){for(var n in e)h.o(e,n)&&!h.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},h.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),h.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},h.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;h.g.importScripts&&(t=h.g.location+"");var e=h.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),h.p=t}();var v={};return(0,h(968).s)(1),function(){"use strict";var t=function(t,e){return new Promise((function(n){var r=new MessageChannel;r.port1.onmessage=function(t){n(t.data)},t.postMessage(e,[r.port2])}))},e=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},r=function(t,n){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,n){if(t){if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=t[Symbol.iterator]()).next.bind(r)},i=function(t,e){var n=location.href;return new URL(t,n).href===new URL(e,n).href},p=function(t,e,n){return n?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)},y=function(){},g=function(t,e){if(!e)return t&&t.then?t.then(y):Promise.resolve()},m=function(t,e){if(void 0!==Tn)return console.warn("The application's Service Worker has already been registered. The new service worker at ".concat(t," will not be registered.")),Tn;if(!("serviceWorker"in navigator))throw new Error("Registering the Service Worker is not possible due to missing browser capabilities.");var n=new In(t,e);return Tn=n.register().then((function(){return n.controlling.then((function(){return n}))}))},b=function(){return null!=Tn?Tn:Promise.resolve(void 0)},w=function(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)},S=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){w(i,r,o,u,a,"next",t)}function a(t){w(i,r,o,u,a,"throw",t)}u(void 0)}))}},x=function(t){return Nn.apply(this,arguments)},O=function(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)},j=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){O(i,r,o,u,a,"next",t)}function a(t){O(i,r,o,u,a,"throw",t)}u(void 0)}))}},E=function(){return Un.apply(this,arguments)},C=function(){return Hn.apply(this,arguments)},k=function(){return Fn.apply(this,arguments)},A=function(){return Vn.apply(this,arguments)},P=function(){return{current:zn,notAvailable:"unavailable"===zn,active:"on"===zn}},I=function(t){"unavailable"!==zn&&"unavailable"!==t&&(localStorage.setItem($n,"on"===t?"active":"disabled"),zn=t)},T=function(){return Kn.apply(this,arguments)},L=function(t,e){return"object"!=typeof e||Wn(e).forEach((function(n){t[n]=e[n]})),t},R=function(t,e){return Jn.call(t,e)},M=function(t,e){"function"==typeof e&&(e=e(Gn(t))),("undefined"==typeof Reflect?Wn:Reflect.ownKeys)(e).forEach((function(n){D(t,n,e[n])}))},D=function(t,e,n,r){Yn(t,e,L(n&&R(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))},B=function(t){return{from:function(e){return t.prototype=Object.create(e.prototype),D(t.prototype,"constructor",t),{extend:M.bind(null,t.prototype)}}}},N=function(t,e,n){return tr.call(t,e,n)},U=function(t,e){return e(t)},H=function(t){if(!t)throw new Error("Assertion Failed")},F=function(t){qn.setImmediate?setImmediate(t):setTimeout(t,0)},V=function(t,e){return t.reduce((function(t,n,r){var o=e(n,r);return o&&(t[o[0]]=o[1]),t}),{})},$=function(t){var e={};for(var n in t)R(t,n)&&(e[n]=t[n]);return e},z=function(t){return rr.apply([],t)},K=function(t){ur="undefined"!=typeof WeakMap&&new WeakMap;var e=ar(t);return ur=null,e},q=function(t){return cr.call(t).slice(8,-1)},W=function(t){var e,n,r,o;if(1===arguments.length){if(Zn(t))return t.slice();if(this===fr&&"string"==typeof t)return[t];if(o=lr(t)){for(n=[];!(r=o.next()).done;)n.push(r.value);return n}if(null==t)return[t];if("number"==typeof(e=t.length)){for(n=new Array(e);e--;)n[e]=t[e];return n}return[t]}for(e=arguments.length,n=new Array(e);e--;)n[e]=arguments[e];return n},Z=function(t,e){pr=t,hr=e},G=function(t,e){var n=t.stack;return n?(e=e||0,0===n.indexOf(t.name)&&(e+=(t.name+t.message).split("\n").length),n.split("\n").slice(e).filter(hr).map((function(t){return"\n"+t})).join("")):""},J=function(t,e){this._e=yr(),this.name=t,this.message=e},Y=function(t,e){return t+". Errors: "+Object.keys(e).map((function(t){return e[t].toString()})).filter((function(t,e,n){return n.indexOf(t)===e})).join("\n")},Q=function(t,e,n,r){this._e=yr(),this.failures=e,this.failedKeys=r,this.successCount=n,this.message=Y(t,e)},X=function(t,e){this._e=yr(),this.name="BulkError",this.failures=Object.keys(e).map((function(t){return e[t]})),this.failuresByPos=e,this.message=Y(t,e)},tt=function(){},et=function(t){return t},nt=function(t,e){return null==t||t===et?e:function(n){return e(t(n))}},rt=function(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}},ot=function(t,e){return t===tt?e:function(){var n=t.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var i=e.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?rt(r,this.onsuccess):r),o&&(this.onerror=this.onerror?rt(o,this.onerror):o),void 0!==i?i:n}},it=function(t,e){return t===tt?e:function(){t.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,e.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?rt(n,this.onsuccess):n),r&&(this.onerror=this.onerror?rt(r,this.onerror):r)}},ut=function(t,e){return t===tt?e:function(n){var r=t.apply(this,arguments);L(n,r);var o=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var u=e.apply(this,arguments);return o&&(this.onsuccess=this.onsuccess?rt(o,this.onsuccess):o),i&&(this.onerror=this.onerror?rt(i,this.onerror):i),void 0===r?void 0===u?void 0:u:L(r,u)}},at=function(t,e){return t===tt?e:function(){return!1!==e.apply(this,arguments)&&t.apply(this,arguments)}},ct=function(t,e){return t===tt?e:function(){var n=t.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,o=arguments.length,i=new Array(o);o--;)i[o]=arguments[o];return n.then((function(){return e.apply(r,i)}))}return e.apply(this,arguments)}},st=function(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=tt,this._lib=!1;var e=this._PSD=$r;if(pr&&(this._stackHolder=yr(),this._prev=null,this._numPrev=0),"function"!=typeof t){if(t!==jr)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&ft(this,this._value))}this._state=null,this._value=null,++e.ref,Zr(this,t)},lt=function(t,e,n,r,o){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.resolve=n,this.reject=r,this.psd=o},ft=function(t,e){if(Ur.push(e),null===t._state){var n=t._lib&>();e=Fr(e),t._state=!1,t._value=e,pr&&null!==e&&"object"==typeof e&&!e._promise&&function(n,r,o){try{(function(){var n=Xn(e,"stack");e._promise=t,D(e,"stack",{get:function(){return Lr?n&&(n.get?n.get.apply(e):n.value):t.stack}})}).apply(null,void 0)}catch(t){}}(),r=t,Nr.some((function(t){return t._value===r._value}))||Nr.push(r),dt(t),n&&mt()}var r},dt=function(t){var e=t._listeners;t._listeners=[];for(var n=0,r=e.length;n<r;++n)pt(t,e[n]);var o=t._PSD;--o.ref||o.finalize(),0===Kr&&(++Kr,Mr((function(){0==--Kr&&bt()}),[]))},pt=function(t,e){if(null!==t._state){var n=t._state?e.onFulfilled:e.onRejected;if(null===n)return(t._state?e.resolve:e.reject)(t._value);++e.psd.ref,++Kr,Mr(ht,[n,t,e])}else t._listeners.push(e)},ht=function(t,e,n){try{Hr=e;var r,o=e._value;e._state?r=t(o):(Ur.length&&(Ur=[]),r=t(o),-1===Ur.indexOf(o)&&function(t){for(var e=Nr.length;e;)if(Nr[--e]._value===t._value)return void Nr.splice(e,1)}(e)),n.resolve(r)}catch(t){n.reject(t)}finally{Hr=null,0==--Kr&&bt(),--n.psd.ref||n.psd.finalize()}},vt=function(t,e){var n=e?e._numPrev+1:0;n<100&&(t._prev=e,t._numPrev=n)},yt=function(){gt()&&mt()},gt=function(){var t=Dr;return Dr=!1,Br=!1,t},mt=function(){var t,e,n;do{for(;zr.length>0;)for(t=zr,zr=[],n=t.length,e=0;e<n;++e){var r=t[e];r[0].apply(null,r[1])}}while(zr.length>0);Dr=!0,Br=!0},bt=function(){var t=Nr;Nr=[],t.forEach((function(t){t._PSD.onunhandled.call(null,t._value,t)}));for(var e=qr.slice(0),n=e.length;n;)e[--n]()},wt=function(t){return new st(jr,!1,t)},_t=function(t,e){var n=$r;return function(){var r=gt(),o=$r;try{return kt(n,!0),t.apply(this,arguments)}catch(t){e&&e(t)}finally{kt(o,!1),r&&mt()}}},St=function(t,e,n,r){var o=$r,i=Object.create(o);i.parent=o,i.ref=0,i.global=!1,i.id=++eo;var u=Vr.env;i.env=Tr?{Promise:st,PromiseProp:{value:st,configurable:!0,writable:!0},all:st.all,race:st.race,allSettled:st.allSettled,any:st.any,resolve:st.resolve,reject:st.reject,nthen:Lt(u.nthen,i),gthen:Lt(u.gthen,i)}:{},e&&L(i,e),++o.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var a=Pt(i,t,n,r);return 0===i.ref&&i.finalize(),a},xt=function(){return Jr.id||(Jr.id=++Yr),++Jr.awaits,Jr.echoes+=100,Jr.id},Ot=function(){return!!Jr.awaits&&(0==--Jr.awaits&&(Jr.id=0),Jr.echoes=100*Jr.awaits,!0)},jt=function(t){return Jr.echoes&&t&&t.constructor===Ir?(xt(),t.then((function(t){return Ot(),t}),(function(t){return Ot(),no(t)}))):t},Et=function(t){++to,Jr.echoes&&0!=--Jr.echoes||(Jr.echoes=Jr.id=0),Qr.push($r),kt(t,!0)},Ct=function(){var t=Qr[Qr.length-1];Qr.pop(),kt(t,!1)},kt=function(t,e){var n=$r;if((e?!Jr.echoes||Xr++&&t===$r:!Xr||--Xr&&t===$r)||It(e?Et.bind(null,t):Ct),t!==$r&&($r=t,n===Vr&&(Vr.env=At()),Tr)){var r=Vr.env.Promise,o=t.env;kr.then=o.nthen,r.prototype.then=o.gthen,(n.global||t.global)&&(Object.defineProperty(qn,"Promise",o.PromiseProp),r.all=o.all,r.race=o.race,r.resolve=o.resolve,r.reject=o.reject,o.allSettled&&(r.allSettled=o.allSettled),o.any&&(r.any=o.any))}},At=function(){var t=qn.Promise;return Tr?{Promise:t,PromiseProp:Object.getOwnPropertyDescriptor(qn,"Promise"),all:t.all,race:t.race,allSettled:t.allSettled,any:t.any,resolve:t.resolve,reject:t.reject,nthen:kr.then,gthen:t.prototype.then}:{}},Pt=function(t,e,n,r,o){var i=$r;try{return kt(t,!0),e(n,r,o)}finally{kt(i,!1)}},It=function(t){Pr.call(Cr,t)},Tt=function(t,e,n,r){return"function"!=typeof t?t:function(){var o=$r;n&&xt(),kt(e,!0);try{return t.apply(this,arguments)}finally{kt(o,!1),r&&It(Ot)}}},Lt=function(t,e){return function(n,r){return t.call(this,Tt(n,e),Tt(r,e))}},Rt=function(t,e){var n;try{n=e.onuncatched(t)}catch(t){}if(!1!==n)try{var r,o={promise:e,reason:t};if(qn.document&&document.createEvent?((r=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),L(r,o)):qn.CustomEvent&&L(r=new CustomEvent("unhandledrejection",{detail:o}),o),r&&qn.dispatchEvent&&(dispatchEvent(r),!qn.PromiseRejectionEvent&&qn.onunhandledrejection))try{qn.onunhandledrejection(r)}catch(t){}pr&&r&&!r.defaultPrevented&&console.warn("Unhandled rejection: ".concat(t.stack||t))}catch(t){}},Mt=function(t,e){return t?e?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:t:e},Dt=function(t){return"string"!=typeof t||/\./.test(t)?function(t){return t}:function(e){return void 0===e[t]&&t in e&&delete(e=K(e))[t],e}},Bt=function(t){var e={},n=function(n,r){if(r){for(var o=arguments.length,i=new Array(o-1);--o;)i[o-1]=arguments[o];return e[n].subscribe.apply(null,i),t}if("string"==typeof n)return e[n]};n.addEventType=i;for(var r=1,o=arguments.length;r<o;++r)i(arguments[r]);return n;function i(t,r,o){if("object"==typeof t)return u(t);r||(r=at),o||(o=tt);var i={subscribers:[],fire:o,subscribe:function(t){-1===i.subscribers.indexOf(t)&&(i.subscribers.push(t),i.fire=r(i.fire,t))},unsubscribe:function(t){i.subscribers=i.subscribers.filter((function(e){return e!==t})),i.fire=i.subscribers.reduce(r,o)}};return e[t]=n[t]=i,i}function u(t){Wn(t).forEach((function(e){var n=t[e];if(Zn(n))i(e,t[e][0],t[e][1]);else{if("asap"!==n)throw new Sr.InvalidArgument("Invalid event config");var r=i(e,et,(function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];r.subscribers.forEach((function(t){F((function(){t.apply(null,e)}))}))}))}}))}},Nt=function(t,e){return B(e).from({prototype:t}),e},Ut=function(t,e){return!(t.filter||t.algorithm||t.or)&&(e?t.justLimit:!t.replayFilter)},Ht=function(t,e){t.filter=Mt(t.filter,e)},Ft=function(t,e,n){var r=t.replayFilter;t.replayFilter=r?function(){return Mt(r(),e())}:e,t.justLimit=n&&!r},Vt=function(t,e){if(t.isPrimKey)return e.primaryKey;var n=e.getIndexByKeyPath(t.index);if(!n)throw new Sr.Schema("KeyPath "+t.index+" on object store "+e.name+" is not indexed");return n},$t=function(t,e,n){var r=Vt(t,e.schema);return e.openCursor({trans:n,values:!t.keysOnly,reverse:"prev"===t.dir,unique:!!t.unique,query:{index:r,range:t.range}})},zt=function(t,e,n,r){var o=t.replayFilter?Mt(t.filter,t.replayFilter()):t.filter;if(t.or){var i={},u=function(t,n,r){if(!o||o(n,r,(function(t){return n.stop(t)}),(function(t){return n.fail(t)}))){var u=n.primaryKey,a=""+u;"[object ArrayBuffer]"===a&&(a=""+new Uint8Array(u)),R(i,a)||(i[a]=!0,e(t,n,r))}};return Promise.all([t.or._iterate(u,n),Kt($t(t,r,n),t.algorithm,u,!t.keysOnly&&t.valueMapper)])}return Kt($t(t,r,n),Mt(t.algorithm,o),e,!t.keysOnly&&t.valueMapper)},Kt=function(t,e,n,r){var o=_t(r?function(t,e,o){return n(r(t),e,o)}:n);return t.then((function(t){if(t)return t.start((function(){var n=function(){return t.continue()};e&&!e(t,(function(t){return n=t}),(function(e){t.stop(e),n=tt}),(function(e){t.fail(e),n=tt}))||o(t.value,t,(function(t){return n=t})),n()}))}))},qt=function(t){var e=void 0===t?"undefined":d(t);if("object"!==e)return e;if(ArrayBuffer.isView(t))return"binary";var n=q(t);return"ArrayBuffer"===n?"binary":n},Wt=function(t){return c(t,Uint8Array)?t:ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(t)},Zt=function(t,e){return t<e?-1:t===e?0:1},Gt=function(t,e){return t>e?-1:t===e?0:1},Jt=function(t,e,n){var r=c(t,go)?new t.Collection(t):t;return r._ctx.error=n?new n(e):new TypeError(e),r},Yt=function(t){return new t.Collection(t,(function(){return ee("")})).limit(0)},Qt=function(t,e,n,r,o,i){for(var u=Math.min(t.length,r.length),a=-1,c=0;c<u;++c){var s=e[c];if(s!==r[c])return o(t[c],n[c])<0?t.substr(0,c)+n[c]+n.substr(c+1):o(t[c],r[c])<0?t.substr(0,c)+r[c]+n.substr(c+1):a>=0?t.substr(0,a)+e[a]+n.substr(a+1):null;o(t[c],s)<0&&(a=c)}return u<r.length&&"next"===i?t+n.substr(t.length):u<t.length&&"prev"===i?t.substr(0,n.length):a<0?null:t.substr(0,a)+r[a]+n.substr(a+1)},Xt=function(t,e,n,r){var o,i,u,a,c,s,l,f=n.length;if(!n.every((function(t){return"string"==typeof t})))return Jt(t,"String expected.");function d(t){o="next"===t?function(t){return t.toUpperCase()}:function(t){return t.toLowerCase()},i="next"===t?function(t){return t.toLowerCase()}:function(t){return t.toUpperCase()},u="next"===t?Zt:Gt;var e=n.map((function(t){return{lower:i(t),upper:o(t)}})).sort((function(t,e){return u(t.lower,e.lower)}));a=e.map((function(t){return t.upper})),c=e.map((function(t){return t.lower})),s=t,l="next"===t?"":r}d("next");var p=new t.Collection(t,(function(){return te(a[0],c[f-1]+r)}));p._ondirectionchange=function(t){d(t)};var h=0;return p._addAlgorithm((function(t,n,r){var o=t.key;if("string"!=typeof o)return!1;var d=i(o);if(e(d,c,h))return!0;for(var p=null,v=h;v<f;++v){var y=Qt(o,d,a[v],c[v],u,s);null===y&&null===p?h=v+1:(null===p||u(p,y)>0)&&(p=y)}return n(null!==p?function(){t.continue(p+l)}:r),!1})),p},te=function(t,e,n,r){return{type:2,lower:t,upper:e,lowerOpen:n,upperOpen:r}},ee=function(t){return{type:1,lower:t,upper:t}},ne=function(t){return _t((function(e){return re(e),t(e.target.error),!1}))},re=function(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault()},oe=function(t,e,n,r,o,i,u){return{name:t,keyPath:e,unique:n,multi:r,auto:o,compound:i,src:(n&&!u?"&":"")+(r?"*":"")+(o?"++":"")+ie(e)}},ie=function(t){return"string"==typeof t?t:t?"["+[].join.call(t,"+")+"]":""},ue=function(t,e,n){return{name:t,primKey:e,indexes:n,mappedClass:null,idxByName:V(n,(function(t){return[t.name,t]}))}},ae=function(t){return null==t?function(){}:"string"==typeof t?1===(e=t).split(".").length?function(t){return t[e]}:function(t){return er(t,e)}:function(e){return er(e,t)};var e},ce=function(t){return[].slice.call(t)},se=function(t){return null==t?":id":"string"==typeof t?t:"[".concat(t.join("+"),"]")},le=function(t,e){var n,r,o,i,u,a,f=t._novip,d=e.db,p=(n=f._middlewares,r=d,i=e,a=(o=f._deps).IDBKeyRange,o.indexedDB,u=function(t,e,n){function r(t){if(3===t.type)return null;if(4===t.type)throw new Error("Cannot convert never type to IDBKeyRange");var n=t.lower,r=t.upper,o=t.lowerOpen,i=t.upperOpen;return void 0===n?void 0===r?null:e.upperBound(r,!!i):void 0===r?e.lowerBound(n,!!o):e.bound(n,r,!!o,!!i)}var o,i,u,a=(i=n,u=ce((o=t).objectStoreNames),{schema:{name:o.name,tables:u.map((function(t){return i.objectStore(t)})).map((function(t){var e=t.keyPath,n=t.autoIncrement,r=Zn(e),o=null==e,i={},u={name:t.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:o,compound:r,keyPath:e,autoIncrement:n,unique:!0,extractKey:ae(e)},indexes:ce(t.indexNames).map((function(e){return t.index(e)})).map((function(t){var e=t.name,n=t.unique,r=t.multiEntry,o=t.keyPath,u={name:e,compound:Zn(o),keyPath:o,unique:n,multiEntry:r,extractKey:ae(o)};return i[se(o)]=u,u})),getIndexByKeyPath:function(t){return i[se(t)]}};return i[":id"]=u.primaryKey,null!=e&&(i[se(e)]=u.primaryKey),u}))},hasGetAll:u.length>0&&"getAll"in i.objectStore(u[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),c=a.schema,s=a.hasGetAll,f=c.tables.map((function(t){return{name:o=(e=t).name,schema:e,mutate:function(t){var e=t.trans,n=t.type,i=t.keys,u=t.values,a=t.range;return new Promise((function(t,c){t=_t(t);var s=e.objectStore(o),f=null==s.keyPath,d="put"===n||"add"===n;if(!d&&"delete"!==n&&"deleteRange"!==n)throw new Error("Invalid operation type: "+n);var p,h=(i||u||{length:1}).length;if(i&&u&&i.length!==u.length)throw new Error("Given keys array must have same length as given values array.");if(0===h)return t({numFailures:0,failures:{},results:[],lastResult:void 0});var v=[],y=[],g=0,m=function(t){++g,re(t)};if("deleteRange"===n){if(4===a.type)return t({numFailures:g,failures:y,results:[],lastResult:void 0});3===a.type?v.push(p=s.clear()):v.push(p=s.delete(r(a)))}else{var b=l(d?f?[u,i]:[u,null]:[i,null],2),w=b[0],_=b[1];if(d)for(var S=0;S<h;++S)v.push(p=_&&void 0!==_[S]?s[n](w[S],_[S]):s[n](w[S])),p.onerror=m;else for(var x=0;x<h;++x)v.push(p=s[n](w[x])),p.onerror=m}var O=function(e){var r=e.target.result;v.forEach((function(t,e){return null!=t.error&&(y[e]=t.error)})),t({numFailures:g,failures:y,results:"delete"===n?i:v.map((function(t){return t.result})),lastResult:r})};p.onerror=function(t){m(t),O(t)},p.onsuccess=O}))},getMany:function(t){var e=t.trans,n=t.keys;return new Promise((function(t,r){t=_t(t);for(var i,u=e.objectStore(o),a=n.length,c=new Array(a),s=0,l=0,f=function(e){var n=e.target;c[n._pos]=n.result,++l===s&&t(c)},d=ne(r),p=0;p<a;++p)null!=n[p]&&((i=u.get(n[p]))._pos=p,i.onsuccess=f,i.onerror=d,++s);0===s&&t(c)}))},get:function(t){var e=t.trans,n=t.key;return new Promise((function(t,r){t=_t(t);var i=e.objectStore(o).get(n);i.onsuccess=function(e){return t(e.target.result)},i.onerror=ne(r)}))},query:(n=s,function(t){return new Promise((function(e,i){e=_t(e);var u=t.trans,a=t.values,c=t.limit,s=t.query,l=c===1/0?void 0:c,f=s.index,d=s.range,p=u.objectStore(o),h=f.isPrimaryKey?p:p.index(f.name),v=r(d);if(0===c)return e({result:[]});if(n){var y=a?h.getAll(v,l):h.getAllKeys(v,l);y.onsuccess=function(t){return e({result:t.target.result})},y.onerror=ne(i)}else{var g=0,m=a||!("openKeyCursor"in h)?h.openCursor(v):h.openKeyCursor(v),b=[];m.onsuccess=function(t){var n=m.result;return n?(b.push(a?n.value:n.primaryKey),++g===c?e({result:b}):void n.continue()):e({result:b})},m.onerror=ne(i)}}))}),openCursor:function(t){var e=t.trans,n=t.values,i=t.query,u=t.reverse,a=t.unique;return new Promise((function(t,c){t=_t(t);var s=i.index,l=i.range,f=e.objectStore(o),d=s.isPrimaryKey?f:f.index(s.name),p=u?a?"prevunique":"prev":a?"nextunique":"next",h=n||!("openKeyCursor"in d)?d.openCursor(r(l),p):d.openKeyCursor(r(l),p);h.onerror=ne(c),h.onsuccess=_t((function(n){var r=h.result;if(r){r.___id=++_o,r.done=!1;var o=r.continue.bind(r),i=r.continuePrimaryKey;i&&(i=i.bind(r));var u=r.advance.bind(r),a=function(){throw new Error("Cursor not stopped")};r.trans=e,r.stop=r.continue=r.continuePrimaryKey=r.advance=function(){throw new Error("Cursor not started")},r.fail=_t(c),r.next=function(){var t=this,e=1;return this.start((function(){return e--?t.continue():t.stop()})).then((function(){return t}))},r.start=function(t){var e=new Promise((function(t,e){t=_t(t),h.onerror=ne(e),r.fail=e,r.stop=function(e){r.stop=r.continue=r.continuePrimaryKey=r.advance=a,t(e)}})),n=function(){if(h.result)try{t()}catch(t){r.fail(t)}else r.done=!0,r.start=function(){throw new Error("Cursor behind last entry")},r.stop()};return h.onsuccess=_t((function(t){h.onsuccess=n,n()})),r.continue=o,r.continuePrimaryKey=i,r.advance=u,n(),e},t(r)}else t(null)}),c)}))},count:function(t){var e=t.query,n=t.trans,i=e.index,u=e.range;return new Promise((function(t,e){var a=n.objectStore(o),c=i.isPrimaryKey?a:a.index(i.name),s=r(u),l=s?c.count(s):c.count();l.onsuccess=_t((function(e){return t(e.target.result)})),l.onerror=ne(e)}))}};var e,n,o})),d={};return f.forEach((function(t){return d[t.name]=t})),{stack:"dbcore",transaction:t.transaction.bind(t),table:function(t){if(!d[t])throw new Error("Table '".concat(t,"' not found"));return d[t]},MIN_KEY:-1/0,MAX_KEY:wo(e),schema:c}}(r,a,i),{dbcore:n.dbcore.reduce((function(t,e){return s({},t,(0,e.create)(t))}),u)});f.core=p.dbcore,f.tables.forEach((function(t){var e=t.name;f.core.schema.tables.some((function(t){return t.name===e}))&&(t.core=f.core.table(e),c(f[e],f.Table)&&(f[e].core=t.core))}))},fe=function(t,e,n,r){var o=t._novip;n.forEach((function(t){var n=r[t];e.forEach((function(e){var r=Xn(e,t);(!r||"value"in r&&void 0===r.value)&&(e===o.Transaction.prototype||c(e,o.Transaction)?D(e,t,{get:function(){return this.table(t)},set:function(e){Yn(this,t,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):e[t]=new o.Table(t,n))}))}))},de=function(t,e){var n=t._novip;e.forEach((function(t){for(var e in t)c(t[e],n.Table)&&delete t[e]}))},pe=function(t,e){return t._cfg.version-e._cfg.version},he=function(t,e){var n,r={del:[],add:[],change:[]};for(n in t)e[n]||r.del.push(n);for(n in e){var o=t[n],i=e[n];if(o){var u={name:n,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(o.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||o.primKey.auto!==i.primKey.auto&&!ao)u.recreate=!0,r.change.push(u);else{var a=o.idxByName,c=i.idxByName,s=void 0;for(s in a)c[s]||u.del.push(s);for(s in c){var l=a[s],f=c[s];l?l.src!==f.src&&u.change.push(f):u.add.push(f)}(u.del.length>0||u.add.length>0||u.change.length>0)&&r.change.push(u)}}else r.add.push([n,i])}return r},ve=function(t,e,n,r){var o=t.db.createObjectStore(e,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach((function(t){return ye(o,t)})),o},ye=function(t,e){t.createIndex(e.name,e.keyPath,{unique:e.unique,multiEntry:e.multi})},ge=function(t,e,n){var r={};return N(e.objectStoreNames,0).forEach((function(t){for(var e=n.objectStore(t),o=e.keyPath,i=oe(ie(o),o||"",!1,!1,!!e.autoIncrement,o&&"string"!=typeof o,!0),u=[],a=0;a<e.indexNames.length;++a){var c=e.index(e.indexNames[a]);o=c.keyPath;var s=oe(c.name,o,!!c.unique,!!c.multiEntry,!1,o&&"string"!=typeof o,!1);u.push(s)}r[t]=ue(t,i,u)})),r},me=function(t,e,n){for(var r=t._novip,o=n.db.objectStoreNames,i=0;i<o.length;++i){var u=o[i],a=n.objectStore(u);r._hasGetAll="getAll"in a;for(var s=0;s<a.indexNames.length;++s){var l=a.indexNames[s],f=a.index(l).keyPath,d="string"==typeof f?f:"["+N(f).join("+")+"]";if(e[u]){var p=e[u].idxByName[d];p&&(p.name=l,delete e[u].idxByName[d],e[u].idxByName[l]=p)}}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&qn.WorkerGlobalScope&&c(qn,qn.WorkerGlobalScope)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(r._hasGetAll=!1)},be=function(t,e){var n=t._dbNamesDB;return n||(n=t._dbNamesDB=new To("__dbnames",{addons:[],indexedDB:t,IDBKeyRange:e})).version(1).stores({dbnames:"name"}),n.table("dbnames")},we=function(t){return t&&"function"==typeof t.databases},_e=function(t){return St((function(){return $r.letThrough=!0,t()}))},Se=function(){var t;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(e){var n=function(){return indexedDB.databases().finally(e)};t=setInterval(n,100),n()})).finally((function(){return clearInterval(t)})):Promise.resolve()},xe=function(t){var e=function(e){return t.next(e)},n=o(e),r=o((function(e){return t.throw(e)}));function o(t){return function(e){var o=t(e),i=o.value;return o.done?i:i&&"function"==typeof i.then?i.then(n,r):Zn(i)?Promise.all(i).then(n,r):n(i)}}return o(e)()},Oe=function(t,e,n){var r=arguments.length;if(r<2)throw new Sr.InvalidArgument("Too few arguments");for(var o=new Array(r-1);--r;)o[r-1]=arguments[r];n=o.pop();var i=z(o);return[t,i,n]},je=function(t,e,n){for(var r=Zn(t)?t.slice():[t],o=0;o<n;++o)r.push(e);return r},Ee=function(t,e,n){try{if(!e)return null;if(e.keys.length<t.length)return null;for(var r=[],o=0,i=0;o<e.keys.length&&i<t.length;++o)0===ho(e.keys[o],t[i])&&(r.push(n?K(e.values[o]):e.values[o]),++i);return r.length===t.length?r:null}catch(t){return null}},Ce=function(t){return!("from"in t)},ke=function(t,e){Ce(e)||function t(e,n){var r=n.from,o=n.to,i=n.l,u=n.r;Ao(e,r,o),i&&t(e,i),u&&t(e,u)}(t,e)},Ae=function(t){var e=Ce(t)?null:{s:0,n:t};return{next:function(t){for(var n=arguments.length>0;e;)switch(e.s){case 0:if(e.s=1,n)for(;e.n.l&&ho(t,e.n.from)<0;)e={up:e,n:e.n.l,s:1};else for(;e.n.l;)e={up:e,n:e.n.l,s:1};case 1:if(e.s=2,!n||ho(t,e.n.to)<=0)return{value:e.n,done:!1};case 2:if(e.n.r){e.s=3,e={up:e,n:e.n.r,s:0};continue}case 3:e=e.up}return{done:!0}}}},Pe=function(t){var e,n,r=((null===(e=t.r)||void 0===e?void 0:e.d)||0)-((null===(n=t.l)||void 0===n?void 0:n.d)||0),o=r>1?"r":r<-1?"l":"";if(o){var i="r"===o?"l":"r",u=s({},t),a=t[o];t.from=a.from,t.to=a.to,t[o]=a[o],u[o]=a[i],t[i]=u,u.d=Ie(u)}t.d=Ie(t)},Ie=function(t){var e=t.r,n=t.l;return(e?n?Math.max(e.d,n.d):e.d:n?n.d:0)+1},Te=function(t,e){return Wn(e).forEach((function(n){ke(t[n]||(t[n]=new ko),e[n])})),t},Le=function(t){var e=Do;try{Do=!0,mo.storagemutated.fire(t)}finally{Do=e}},Re=function(t,e){return!e||"object"!==zo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e},Me=function(){return new Ko},De=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},Be=function(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)},Ne=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){Be(i,r,o,u,a,"next",t)}function a(t){Be(i,r,o,u,a,"throw",t)}u(void 0)}))}},Ue=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},He=function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){Ue(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t},Fe=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return De(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?De(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},Ve=function(){return Zo},$e=function(){return Go.apply(this,arguments)},ze=function(t,e,n,r){return Jo.apply(this,arguments)},Ke=function(){return Yo.apply(this,arguments)},qe=function(t,e,n,r){return Qo.apply(this,arguments)},We=function(t,e,n){return Xo.apply(this,arguments)},Ze=function(t,e){return ti.apply(this,arguments)},Ge=function(t,e){return ei.apply(this,arguments)},Je=function(t){return ni.apply(this,arguments)},Ye=function(t){return ri.apply(this,arguments)},Qe=function(t){return oi.apply(this,arguments)},Xe=function(t){var e;return!!(null===(e=Wo[t])||void 0===e?void 0:e.options.onBeginEditSyncItem)},tn=function(t){return ii.apply(this,arguments)},en=function(t){return ui.apply(this,arguments)},nn=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Wo[t]={type:t,dependsOn:e,process:n,options:r}},rn=function(){if(!$o&&!($o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $o(ai)},on=function(){return pi+di()},un=function(t){return t.startsWith(pi)},an=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},cn=function(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)},sn=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){cn(i,r,o,u,a,"next",t)}function a(t){cn(i,r,o,u,a,"throw",t)}u(void 0)}))}},ln=function(t){return function(t){if(Array.isArray(t))return an(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return an(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?an(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},fn=function(){return Object.values(hi)},dn=function(t){hi[t.id]&&console.warn('[setupDynamicOfflineDataHandler] Another second handler with the ID "'.concat(t.id,'" was registered. This handler will override the previous one. This could be unintended as the previous handler might run different flows than the newly registered one. If this is the case, ensure that you are setting up the handlers with different IDs.')),hi[t.id]=t},pn=function(t){return vi.apply(this,arguments)},hn=function(t,e){return yi.apply(this,arguments)},vn=function(t,e){return gi.apply(this,arguments)},yn=function(t,e,n){return mi.apply(this,arguments)},gn=function(t,e){return bi.apply(this,arguments)},mn=function(t,e,n){return wi.apply(this,arguments)},bn=function(t,e){return _i.apply(this,arguments)},wn=function(t,e,n){return Si.apply(this,arguments)},_n=function(){return xi.apply(this,arguments)},Sn=function(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)},xn=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){Sn(i,r,o,u,a,"next",t)}function a(t){Sn(i,r,o,u,a,"throw",t)}u(void 0)}))}},On=function(){return Cn(),Oi},jn=function(t,e){Cn(),dn({type:"patient",displayName:e.displayName,id:t,isSynced:function(){return Promise.resolve(!0)},sync:function(t,n){return e.onOfflinePatientAdded({patientUuid:t,signal:null!=n?n:(new AbortController).signal})}})},En=function(t){return ji.apply(this,arguments)},Cn=function(){console.warn("The offline patient API has been deprecated and will be removed in a future release. To prevent future crashes, the functions remain available for the moment, but any invocations should be migrated ASAP.")};h.r(v),h.d(v,{activateOfflineCapability:function(){return T},beginEditSynchronizationItem:function(){return tn},canBeginEditSynchronizationItemsOfType:function(){return Xe},deleteSynchronizationItem:function(){return en},generateOfflineUuid:function(){return on},getCurrentOfflineMode:function(){return P},getDynamicOfflineDataEntries:function(){return pn},getDynamicOfflineDataEntriesFor:function(){return hn},getDynamicOfflineDataHandlers:function(){return fn},getFullSynchronizationItems:function(){return Ye},getFullSynchronizationItemsFor:function(){return Ge},getOfflineDb:function(){return Me},getOfflinePatientDataStore:function(){return On},getOfflineSynchronizationStore:function(){return Ve},getOmrsServiceWorker:function(){return b},getSynchronizationItem:function(){return Qe},getSynchronizationItems:function(){return Je},getSynchronizationItemsFor:function(){return Ze},isOfflineUuid:function(){return un},messageOmrsServiceWorker:function(){return x},offlineUuidPrefix:function(){return pi},omrsOfflineCachingStrategyHttpHeaderName:function(){return Mn},omrsOfflineResponseBodyHttpHeaderName:function(){return Ln},omrsOfflineResponseStatusHttpHeaderName:function(){return Rn},putDynamicOfflineData:function(){return vn},putDynamicOfflineDataFor:function(){return yn},queueSynchronizationItem:function(){return We},queueSynchronizationItemFor:function(){return qe},registerOfflinePatientHandler:function(){return jn},registerOmrsServiceWorker:function(){return m},removeDynamicOfflineData:function(){return gn},removeDynamicOfflineDataFor:function(){return mn},runSynchronization:function(){return $e},setCurrentOfflineMode:function(){return I},setupDynamicOfflineDataHandler:function(){return dn},setupOfflineSync:function(){return nn},syncAllDynamicOfflineData:function(){return bn},syncDynamicOfflineData:function(){return wn},syncOfflinePatientData:function(){return En}});try{self["workbox:window:6.5.1"]&&_()}catch(t){}try{self["workbox:core:6.5.1"]&&_()}catch(t){}var kn=function(){var t=this;this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))},An=function(t,e){this.type=t,Object.assign(this,e)},Pn={type:"SKIP_WAITING"},In=function(e){var n,r,o=function(t,n){var r,o;return void 0===n&&(n={}),(r=e.call(this)||this).nn={},r.tn=0,r.rn=new kn,r.en=new kn,r.on=new kn,r.un=0,r.an=new Set,r.cn=function(){var t=r.fn,e=t.installing;r.tn>0||!i(e.scriptURL,r.sn.toString())||performance.now()>r.un+6e4?(r.vn=e,t.removeEventListener("updatefound",r.cn)):(r.hn=e,r.an.add(e),r.rn.resolve(e)),++r.tn,e.addEventListener("statechange",r.ln)},r.ln=function(t){var e=r.fn,n=t.target,o=n.state,i=n===r.vn,u={sw:n,isExternal:i,originalEvent:t};!i&&r.mn&&(u.isUpdate=!0),r.dispatchEvent(new An(o,u)),"installed"===o?r.wn=self.setTimeout((function(){"installed"===o&&e.waiting===n&&r.dispatchEvent(new An("waiting",u))}),200):"activating"===o&&(clearTimeout(r.wn),i||r.en.resolve(n))},r.dn=function(t){var e=r.hn,n=e!==navigator.serviceWorker.controller;r.dispatchEvent(new An("controlling",{isExternal:n,originalEvent:t,sw:e,isUpdate:r.mn})),n||r.on.resolve(e)},r.gn=(o=function(t){var e=t.data,n=t.ports,o=t.source;return p(r.getSW(),(function(){r.an.has(o)&&r.dispatchEvent(new An("message",{data:e,originalEvent:t,ports:n,sw:o}))}))},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];try{return Promise.resolve(o.apply(this,t))}catch(t){return Promise.reject(t)}}),r.sn=t,r.nn=n,navigator.serviceWorker.addEventListener("message",r.gn),r};r=e,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var u,a=o.prototype;return a.register=function(t){var e,n,r=(void 0===t?{}:t).immediate,o=void 0!==r&&r;try{var u=this;return e=function(){return u.mn=Boolean(navigator.serviceWorker.controller),u.yn=u.pn(),p(u.bn(),(function(t){u.fn=t,u.yn&&(u.hn=u.yn,u.en.resolve(u.yn),u.on.resolve(u.yn),u.yn.addEventListener("statechange",u.ln,{once:!0}));var e=u.fn.waiting;return e&&i(e.scriptURL,u.sn.toString())&&(u.hn=e,Promise.resolve().then((function(){u.dispatchEvent(new An("waiting",{sw:e,wasWaitingBeforeRegister:!0}))})).then((function(){}))),u.hn&&(u.rn.resolve(u.hn),u.an.add(u.hn)),u.fn.addEventListener("updatefound",u.cn),navigator.serviceWorker.addEventListener("controllerchange",u.dn),u.fn}))},(n=function(){if(!o&&"complete"!==document.readyState)return g(new Promise((function(t){return window.addEventListener("load",t)})))}())&&n.then?n.then(e):e()}catch(t){return Promise.reject(t)}},a.update=function(){try{return this.fn?g(this.fn.update()):void 0}catch(t){return Promise.reject(t)}},a.getSW=function(){return void 0!==this.hn?Promise.resolve(this.hn):this.rn.promise},a.messageSW=function(e){try{return p(this.getSW(),(function(n){return t(n,e)}))}catch(t){return Promise.reject(t)}},a.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&t(this.fn.waiting,Pn)},a.pn=function(){var t=navigator.serviceWorker.controller;return t&&i(t.scriptURL,this.sn.toString())?t:void 0},a.bn=function(){try{var t=this;return function(e,n){try{var r=p(navigator.serviceWorker.register(t.sn,t.nn),(function(e){return t.un=performance.now(),e}))}catch(t){return n(t)}return r&&r.then?r.then(void 0,n):r}(0,(function(t){throw t}))}catch(t){return Promise.reject(t)}},(u=[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(o.prototype,u),o}(function(){var t=function(){this.Pn=new Map},e=t.prototype;return e.addEventListener=function(t,e){this.Sn(t).add(e)},e.removeEventListener=function(t,e){this.Sn(t).delete(e)},e.dispatchEvent=function(t){t.target=this;for(var e,n=r(this.Sn(t.type));!(e=n()).done;)(0,e.value)(t)},e.Sn=function(t){return this.Pn.has(t)||this.Pn.set(t,new Set),this.Pn.get(t)},t}()),Tn=void 0,Ln="x-omrs-offline-response-body",Rn="x-omrs-offline-response-status",Mn="x-omrs-offline-caching-strategy",Dn=h(602),Bn=h.n(Dn);function Nn(){return(Nn=S(Bn().mark((function t(e){var n;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,b();case 2:if(!(n=t.sent)){t.next=9;break}return t.next=6,n.messageSW(e);case 6:t.t0=t.sent,t.next=10;break;case 9:t.t0={success:!1,result:void 0,error:"No service worker has been registered. This is typically the case when the application has been built without offline-related features."};case 10:return t.abrupt("return",t.t0);case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Un(){return(Un=j(Bn().mark((function t(){var e;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=window.sessionStorage,t.prev=1,e.setItem("someKeyHere","test"),e.removeItem("someKeyHere"),t.next=10;break;case 6:if(t.prev=6,t.t0=t.catch(1),t.t0.code!==DOMException.QUOTA_EXCEEDED_ERR||0!==e.length){t.next=10;break}return t.abrupt("return",!0);case 10:return t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t,null,[[1,6]])})))).apply(this,arguments)}function Hn(){return(Hn=j(Bn().mark((function t(){return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",!window.indexedDB);case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Fn(){return Fn=j(Bn().mark((function t(){return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){var e=indexedDB.open("test");e.onerror=function(){return t(!0)},e.onsuccess=function(){return t(!1)}})));case 1:case"end":return t.stop()}}),t)}))),Fn.apply(this,arguments)}function Vn(){return(Vn=j(Bn().mark((function t(){return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,k();case 2:if(t.t1=t.sent,t.t1){t.next=7;break}return t.next=6,C();case 6:t.t1=t.sent;case 7:if(t.t0=t.t1,t.t0){t.next=12;break}return t.next=11,E();case 11:t.t0=t.sent;case 12:return t.abrupt("return",t.t0);case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var $n="openmrs3:offline-mode",zn="unavailable";function Kn(){return(Kn=j(Bn().mark((function t(){return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,A();case 2:t.sent||(zn="active"===localStorage.getItem($n)?"on":"off"),navigator.onLine;case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var qn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,Wn=Object.keys,Zn=Array.isArray;"undefined"==typeof Promise||qn.Promise||(qn.Promise=Promise);var Gn=Object.getPrototypeOf,Jn={}.hasOwnProperty,Yn=Object.defineProperty,Qn=Object.getOwnPropertyDescriptor;function Xn(t,e){var n;return Qn(t,e)||(n=Gn(t))&&Xn(n,e)}var tr=[].slice;function er(t,e){if(R(t,e))return t[e];if(!e)return t;if("string"!=typeof e){for(var n=[],r=0,o=e.length;r<o;++r){var i=er(t,e[r]);n.push(i)}return n}var u=e.indexOf(".");if(-1!==u){var a=t[e.substr(0,u)];return void 0===a?void 0:er(a,e.substr(u+1))}}function nr(t,e,n){if(t&&void 0!==e&&(!("isFrozen"in Object)||!Object.isFrozen(t)))if("string"!=typeof e&&"length"in e){H("string"!=typeof n&&"length"in n);for(var r=0,o=e.length;r<o;++r)nr(t,e[r],n[r])}else{var i=e.indexOf(".");if(-1!==i){var u=e.substr(0,i),a=e.substr(i+1);if(""===a)void 0===n?Zn(t)&&!isNaN(parseInt(u))?t.splice(u,1):delete t[u]:t[u]=n;else{var c=t[u];c||(c=t[u]={}),nr(c,a,n)}}else void 0===n?Zn(t)&&!isNaN(parseInt(e))?t.splice(e,1):delete t[e]:t[e]=n}}var rr=[].concat,or="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(z([8,16,32,64].map((function(t){return["Int","Uint","Float"].map((function(e){return e+t+"Array"}))})))).filter((function(t){return qn[t]})),ir=or.map((function(t){return qn[t]}));V(or,(function(t){return[t,!0]}));var ur=null;function ar(t){if(!t||"object"!=typeof t)return t;var e=ur&&ur.get(t);if(e)return e;if(Zn(t)){e=[],ur&&ur.set(t,e);for(var n=0,r=t.length;n<r;++n)e.push(ar(t[n]))}else if(ir.indexOf(t.constructor)>=0)e=t;else{var o=Gn(t);for(var i in e=o===Object.prototype?{}:Object.create(o),ur&&ur.set(t,e),t)R(t,i)&&(e[i]=ar(t[i]))}return e}var cr={}.toString,sr="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",lr="symbol"==(void 0===sr?"undefined":d(sr))?function(t){var e;return null!=t&&(e=t[sr])&&e.apply(t)}:function(){return null},fr={},dr="undefined"!=typeof Symbol?function(t){return"AsyncFunction"===t[Symbol.toStringTag]}:function(){return!1},pr="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href),hr=function(){return!0},vr=!new Error("").stack;function yr(){if(vr)try{throw yr.arguments,new Error}catch(t){return t}return new Error}var gr=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],mr=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(gr),br={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};B(J).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+G(this._e,2))}},toString:function(){return this.name+": "+this.message}}),B(Q).from(J),B(X).from(J);var wr=mr.reduce((function(t,e){return t[e]=e+"Error",t}),{}),_r=J,Sr=mr.reduce((function(t,e){var n=function(t,n){this._e=yr(),this.name=r,t?"string"==typeof t?(this.message="".concat(t).concat(n?"\n "+n:""),this.inner=n||null):"object"==typeof t&&(this.message="".concat(t.name," ").concat(t.message),this.inner=t):(this.message=br[e]||r,this.inner=null)},r=e+"Error";return B(n).from(_r),t[e]=n,t}),{});Sr.Syntax=SyntaxError,Sr.Type=TypeError,Sr.Range=RangeError;var xr=gr.reduce((function(t,e){return t[e+"Error"]=Sr[e],t}),{}),Or=mr.reduce((function(t,e){return-1===["Syntax","Type","Range"].indexOf(e)&&(t[e+"Error"]=Sr[e]),t}),{});Or.ModifyError=Q,Or.DexieError=J,Or.BulkError=X;var jr={},Er=l("undefined"==typeof Promise?[]:function(){var t=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[t,Gn(t),t];var e=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[e,Gn(e),t]}(),3),Cr=Er[0],kr=Er[1],Ar=Er[2],Pr=kr&&kr.then,Ir=Cr&&Cr.constructor,Tr=!!Ar,Lr=!1,Rr=Ar?function(){Ar.then(yt)}:qn.setImmediate?setImmediate.bind(null,yt):qn.MutationObserver?function(){var t=document.createElement("div");new MutationObserver((function(){yt(),t=null})).observe(t,{attributes:!0}),t.setAttribute("i","1")}:function(){setTimeout(yt,0)},Mr=function(t,e){zr.push([t,e]),Br&&(Rr(),Br=!1)},Dr=!0,Br=!0,Nr=[],Ur=[],Hr=null,Fr=et,Vr={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Rt,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((function(t){try{Rt(t[0],t[1])}catch(t){}}))}},$r=Vr,zr=[],Kr=0,qr=[],Wr={get:function(){var t=function(t,r){var o=this,i=!e.global&&(e!==$r||n!==to),u=i&&!Ot(),a=new st((function(n,a){pt(o,new lt(Tt(t,e,i,u),Tt(r,e,i,u),n,a,e))}));return pr&&vt(a,this),a},e=$r,n=to;return t.prototype=jr,t},set:function(t){D(this,"then",t&&t.prototype===jr?Wr:{get:function(){return t},set:Wr.set})}};function Zr(t,e){try{e((function(e){if(null===t._state){if(e===t)throw new TypeError("A promise cannot be resolved with itself.");var n=t._lib&>();e&&"function"==typeof e.then?Zr(t,(function(t,n){c(e,st)?e._then(t,n):e.then(t,n)})):(t._state=!0,t._value=e,dt(t)),n&&mt()}}),ft.bind(null,t))}catch(e){ft(t,e)}}function Gr(t,e,n){if(e.length===n)return e;var r="";if(!1===t._state){var o,i,u=t._value;null!=u?(o=u.name||"Error",i=u.message||u,r=G(u,0)):(o=u,i=""),e.push(o+(i?": "+i:"")+r)}return pr&&((r=G(t._stackHolder,2))&&-1===e.indexOf(r)&&e.push(r),t._prev&&Gr(t._prev,e,n)),e}M(st.prototype,{then:Wr,_then:function(t,e){pt(this,new lt(null,null,t,e,$r))},catch:function(t){if(1===arguments.length)return this.then(null,t);var e=arguments[0],n=arguments[1];return"function"==typeof e?this.then(null,(function(t){return c(t,e)?n(t):wt(t)})):this.then(null,(function(t){return t&&t.name===e?n(t):wt(t)}))},finally:function(t){return this.then((function(e){return t(),e}),(function(e){return t(),wt(e)}))},stack:{get:function(){if(this._stack)return this._stack;try{Lr=!0;var t=Gr(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=t),t}finally{Lr=!1}}},timeout:function(t,e){var n=this;return t<1/0?new st((function(r,o){var i=setTimeout((function(){return o(new Sr.Timeout(e))}),t);n.then(r,o).finally(clearTimeout.bind(null,i))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&D(st.prototype,Symbol.toStringTag,"Dexie.Promise"),Vr.env=At(),M(st,{all:function(){var t=W.apply(null,arguments).map(jt);return new st((function(e,n){0===t.length&&e([]);var r=t.length;t.forEach((function(o,i){return st.resolve(o).then((function(n){t[i]=n,--r||e(t)}),n)}))}))},resolve:function(t){if(c(t,st))return t;if(t&&"function"==typeof t.then)return new st((function(e,n){t.then(e,n)}));var e=new st(jr,!0,t);return vt(e,Hr),e},reject:wt,race:function(){var t=W.apply(null,arguments).map(jt);return new st((function(e,n){t.map((function(t){return st.resolve(t).then(e,n)}))}))},PSD:{get:function(){return $r},set:function(t){return $r=t}},totalEchoes:{get:function(){return to}},newPSD:St,usePSD:Pt,scheduler:{get:function(){return Mr},set:function(t){Mr=t}},rejectionMapper:{get:function(){return Fr},set:function(t){Fr=t}},follow:function(t,e){return new st((function(n,r){return St((function(e,n){var r=$r;r.unhandleds=[],r.onunhandled=n,r.finalize=rt((function(){var t=this;qr.push((function r(){0===t.unhandleds.length?e():n(t.unhandleds[0]),qr.splice(qr.indexOf(r),1)})),++Kr,Mr((function(){0==--Kr&&bt()}),[])}),r.finalize),t()}),e,n,r)}))}}),Ir&&(Ir.allSettled&&D(st,"allSettled",(function(){var t=W.apply(null,arguments).map(jt);return new st((function(e){0===t.length&&e([]);var n=t.length,r=new Array(n);t.forEach((function(t,o){return st.resolve(t).then((function(t){return r[o]={status:"fulfilled",value:t}}),(function(t){return r[o]={status:"rejected",reason:t}})).then((function(){return--n||e(r)}))}))}))})),Ir.any&&"undefined"!=typeof AggregateError&&D(st,"any",(function(){var t=W.apply(null,arguments).map(jt);return new st((function(e,n){0===t.length&&n(new AggregateError([]));var r=t.length,o=new Array(r);t.forEach((function(t,i){return st.resolve(t).then((function(t){return e(t)}),(function(t){o[i]=t,--r||n(new AggregateError(o))}))}))}))})));var Jr={awaits:0,echoes:0,id:0},Yr=0,Qr=[],Xr=0,to=0,eo=0;-1===(""+Pr).indexOf("[native code]")&&(xt=Ot=tt);var no=st.reject;function ro(t,e,n,r){if(t.idbdb&&(t._state.openComplete||$r.letThrough||t._vip)){var o=t._createTransaction(e,n,t._dbSchema);try{o.create(),t._state.PR1398_maxLoop=3}catch(o){return o.name===wr.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then((function(){return ro(t,e,n,r)}))):no(o)}return o._promise(e,(function(t,e){return St((function(){return $r.trans=o,r(t,e,o)}))})).then((function(t){return o._completion.then((function(){return t}))}))}if(t._state.openComplete)return no(new Sr.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return no(new Sr.DatabaseClosed);t.open().catch(tt)}return t._state.dbReadyPromise.then((function(){return ro(t,e,n,r)}))}var oo=String.fromCharCode(65535),io="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",uo=[],ao="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),co=ao,so=ao,lo=function(t){return!/(dexie\.js|dexie\.min\.js)/.test(t)},fo={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1},po=function(){function t(){o(this,t)}return u(t,[{key:"_trans",value:function(t,e,n){var r=function(t,n,r){if(!r.schema[i])throw new Sr.NotFound("Table "+i+" not part of transaction");return e(r.idbtrans,r)},o=this._tx||$r.trans,i=this.name,u=gt();try{return o&&o.db===this.db?o===$r.trans?o._promise(t,r,n):St((function(){return o._promise(t,r,n)}),{trans:o,transless:$r.transless||$r}):ro(this.db,t,[this.name],r)}finally{u&&mt()}}},{key:"get",value:function(t,e){var n=this;return t&&t.constructor===Object?this.where(t).first(e):this._trans("readonly",(function(e){return n.core.get({trans:e,key:t}).then((function(t){return n.hook.reading.fire(t)}))})).then(e)}},{key:"where",value:function(t){var e=function(t,e){try{return 0===i.cmp(t,e)}catch(t){return!1}};if("string"==typeof t)return new this.db.WhereClause(this,t);if(Zn(t))return new this.db.WhereClause(this,"[".concat(t.join("+"),"]"));var n=Wn(t);if(1===n.length)return this.where(n[0]).equals(t[n[0]]);var r=this.schema.indexes.concat(this.schema.primKey).filter((function(t){return t.compound&&n.every((function(e){return t.keyPath.indexOf(e)>=0}))&&t.keyPath.every((function(t){return n.indexOf(t)>=0}))}))[0];if(r&&this.db._maxKey!==oo)return this.where(r.name).equals(r.keyPath.map((function(e){return t[e]})));!r&&pr&&console.warn("The query ".concat(JSON.stringify(t)," on ").concat(this.name," would benefit of a compound index [").concat(n.join("+"),"]"));var o=this.schema.idxByName,i=this.db._deps.indexedDB,u=l(n.reduce((function(n,r){var i=l(n,2),u=i[0],a=i[1],c=o[r],s=t[r];return[u||c,u||!c?Mt(a,c&&c.multi?function(t){var n=er(t,r);return Zn(n)&&n.some((function(t){return e(s,t)}))}:function(t){return e(s,er(t,r))}):a]}),[null,null]),2),a=u[0],c=u[1];return a?this.where(a.name).equals(t[a.keyPath]).filter(c):r?this.filter(c):this.where(n).equals("")}},{key:"filter",value:function(t){return this.toCollection().and(t)}},{key:"count",value:function(t){return this.toCollection().count(t)}},{key:"offset",value:function(t){return this.toCollection().offset(t)}},{key:"limit",value:function(t){return this.toCollection().limit(t)}},{key:"each",value:function(t){return this.toCollection().each(t)}},{key:"toArray",value:function(t){return this.toCollection().toArray(t)}},{key:"toCollection",value:function(){return new this.db.Collection(new this.db.WhereClause(this))}},{key:"orderBy",value:function(t){return new this.db.Collection(new this.db.WhereClause(this,Zn(t)?"[".concat(t.join("+"),"]"):t))}},{key:"reverse",value:function(){return this.toCollection().reverse()}},{key:"mapToClass",value:function(t){this.schema.mappedClass=t;var e=function(e){if(!e)return e;var n=Object.create(t.prototype);for(var r in e)if(R(e,r))try{n[r]=e[r]}catch(t){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=e,this.hook("reading",e),t}},{key:"defineClass",value:function(){return this.mapToClass((function(t){L(this,t)}))}},{key:"add",value:function(t,e){var n=this,r=this.schema.primKey,o=r.auto,i=r.keyPath,u=t;return i&&o&&(u=Dt(i)(t)),this._trans("readwrite",(function(t){return n.core.mutate({trans:t,type:"add",keys:null!=e?[e]:null,values:[u]})})).then((function(t){return t.numFailures?st.reject(t.failures[0]):t.lastResult})).then((function(e){if(i)try{nr(t,i,e)}catch(t){}return e}))}},{key:"update",value:function(t,e){if("object"!=typeof t||Zn(t))return this.where(":id").equals(t).modify(e);var n=er(t,this.schema.primKey.keyPath);if(void 0===n)return no(new Sr.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof e?Wn(e).forEach((function(n){nr(t,n,e[n])})):e(t,{value:t,primKey:n})}catch(t){}return this.where(":id").equals(n).modify(e)}},{key:"put",value:function(t,e){var n=this,r=this.schema.primKey,o=r.auto,i=r.keyPath,u=t;return i&&o&&(u=Dt(i)(t)),this._trans("readwrite",(function(t){return n.core.mutate({trans:t,type:"put",values:[u],keys:null!=e?[e]:null})})).then((function(t){return t.numFailures?st.reject(t.failures[0]):t.lastResult})).then((function(e){if(i)try{nr(t,i,e)}catch(t){}return e}))}},{key:"delete",value:function(t){var e=this;return this._trans("readwrite",(function(n){return e.core.mutate({trans:n,type:"delete",keys:[t]})})).then((function(t){return t.numFailures?st.reject(t.failures[0]):void 0}))}},{key:"clear",value:function(){var t=this;return this._trans("readwrite",(function(e){return t.core.mutate({trans:e,type:"deleteRange",range:fo})})).then((function(t){return t.numFailures?st.reject(t.failures[0]):void 0}))}},{key:"bulkGet",value:function(t){var e=this;return this._trans("readonly",(function(n){return e.core.getMany({keys:t,trans:n}).then((function(t){return t.map((function(t){return e.hook.reading.fire(t)}))}))}))}},{key:"bulkAdd",value:function(t,e,n){var r=this,o=Array.isArray(e)?e:void 0,i=(n=n||(o?void 0:e))?n.allKeys:void 0;return this._trans("readwrite",(function(e){var n=r,u=r.schema.primKey,a=u.auto,c=u.keyPath;if(c&&o)throw new Sr.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(o&&o.length!==t.length)throw new Sr.InvalidArgument("Arguments objects and keys must have the same length");var s=t.length,l=c&&a?t.map(Dt(c)):t;return r.core.mutate({trans:e,type:"add",keys:o,values:l,wantResults:i}).then((function(t){var e=t.numFailures,r=t.results,o=t.lastResult,u=t.failures;if(0===e)return i?r:o;throw new X("".concat(n.name,".bulkAdd(): ").concat(e," of ").concat(s," operations failed"),u)}))}))}},{key:"bulkPut",value:function(t,e,n){var r=this,o=Array.isArray(e)?e:void 0,i=(n=n||(o?void 0:e))?n.allKeys:void 0;return this._trans("readwrite",(function(e){var n=r,u=r.schema.primKey,a=u.auto,c=u.keyPath;if(c&&o)throw new Sr.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(o&&o.length!==t.length)throw new Sr.InvalidArgument("Arguments objects and keys must have the same length");var s=t.length,l=c&&a?t.map(Dt(c)):t;return r.core.mutate({trans:e,type:"put",keys:o,values:l,wantResults:i}).then((function(t){var e=t.numFailures,r=t.results,o=t.lastResult,u=t.failures;if(0===e)return i?r:o;throw new X("".concat(n.name,".bulkPut(): ").concat(e," of ").concat(s," operations failed"),u)}))}))}},{key:"bulkDelete",value:function(t){var e=this,n=t.length;return this._trans("readwrite",(function(n){return e.core.mutate({trans:n,type:"delete",keys:t})})).then((function(t){var r=t.numFailures,o=t.lastResult,i=t.failures;if(0===r)return o;throw new X("".concat(e.name,".bulkDelete(): ").concat(r," of ").concat(n," operations failed"),i)}))}}]),t}();function ho(t,e){try{var n=qt(t),r=qt(e);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return t>e?1:t<e?-1:0;case"binary":return function(t,e){for(var n=t.length,r=e.length,o=n<r?n:r,i=0;i<o;++i)if(t[i]!==e[i])return t[i]<e[i]?-1:1;return n===r?0:n<r?-1:1}(Wt(t),Wt(e));case"Array":return function(t,e){for(var n=t.length,r=e.length,o=n<r?n:r,i=0;i<o;++i){var u=ho(t[i],e[i]);if(0!==u)return u}return n===r?0:n<r?-1:1}(t,e)}}catch(t){}return NaN}var vo=function(){function t(){o(this,t)}return u(t,[{key:"_read",value:function(t,e){var n=this._ctx;return n.error?n.table._trans(null,no.bind(null,n.error)):n.table._trans("readonly",t).then(e)}},{key:"_write",value:function(t){var e=this._ctx;return e.error?e.table._trans(null,no.bind(null,e.error)):e.table._trans("readwrite",t,"locked")}},{key:"_addAlgorithm",value:function(t){var e=this._ctx;e.algorithm=Mt(e.algorithm,t)}},{key:"_iterate",value:function(t,e){return zt(this._ctx,t,e,this._ctx.table.core)}},{key:"clone",value:function(t){var e=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return t&&L(n,t),e._ctx=n,e}},{key:"raw",value:function(){return this._ctx.valueMapper=null,this}},{key:"each",value:function(t){var e=this._ctx;return this._read((function(n){return zt(e,t,n,e.table.core)}))}},{key:"count",value:function(t){var e=this;return this._read((function(t){var n=e._ctx,r=n.table.core;if(Ut(n,!0))return r.count({trans:t,query:{index:Vt(n,r.schema),range:n.range}}).then((function(t){return Math.min(t,n.limit)}));var o=0;return zt(n,(function(){return++o,!1}),t,r).then((function(){return o}))})).then(t)}},{key:"sortBy",value:function(t,e){var n=function(t,e){var n=u(t,i),r=u(e,i);return n<r?-a:n>r?a:0},r=t.split(".").reverse(),o=r[0],i=r.length-1;function u(t,e){return e?u(t[r[e]],e-1):t[o]}var a="next"===this._ctx.dir?1:-1;return this.toArray((function(t){return t.sort(n)})).then(e)}},{key:"toArray",value:function(t){var e=this;return this._read((function(t){var n=e._ctx;if("next"===n.dir&&Ut(n,!0)&&n.limit>0){var r=n.valueMapper,o=Vt(n,n.table.core.schema);return n.table.core.query({trans:t,limit:n.limit,values:!0,query:{index:o,range:n.range}}).then((function(t){var e=t.result;return r?e.map(r):e}))}var i=[];return zt(n,(function(t){return i.push(t)}),t,n.table.core).then((function(){return i}))}),t)}},{key:"offset",value:function(t){var e=this._ctx;return t<=0||(e.offset+=t,Ut(e)?Ft(e,(function(){var e=t;return function(t,n){return 0===e||(1===e?(--e,!1):(n((function(){t.advance(e),e=0})),!1))}})):Ft(e,(function(){var e=t;return function(){return--e<0}}))),this}},{key:"limit",value:function(t){return this._ctx.limit=Math.min(this._ctx.limit,t),Ft(this._ctx,(function(){var e=t;return function(t,n,r){return--e<=0&&n(r),e>=0}}),!0),this}},{key:"until",value:function(t,e){return Ht(this._ctx,(function(n,r,o){return!t(n.value)||(r(o),e)})),this}},{key:"first",value:function(t){return this.limit(1).toArray((function(t){return t[0]})).then(t)}},{key:"last",value:function(t){return this.reverse().first(t)}},{key:"filter",value:function(t){var e,n;return Ht(this._ctx,(function(e){return t(e.value)})),e=this._ctx,n=t,e.isMatch=Mt(e.isMatch,n),this}},{key:"and",value:function(t){return this.filter(t)}},{key:"or",value:function(t){return new this.db.WhereClause(this._ctx.table,t,this)}},{key:"reverse",value:function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}},{key:"desc",value:function(){return this.reverse()}},{key:"eachKey",value:function(t){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each((function(e,n){t(n.key,n)}))}},{key:"eachUniqueKey",value:function(t){return this._ctx.unique="unique",this.eachKey(t)}},{key:"eachPrimaryKey",value:function(t){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each((function(e,n){t(n.primaryKey,n)}))}},{key:"keys",value:function(t){var e=this._ctx;e.keysOnly=!e.isMatch;var n=[];return this.each((function(t,e){n.push(e.key)})).then((function(){return n})).then(t)}},{key:"primaryKeys",value:function(t){var e=this._ctx;if("next"===e.dir&&Ut(e,!0)&&e.limit>0)return this._read((function(t){var n=Vt(e,e.table.core.schema);return e.table.core.query({trans:t,values:!1,limit:e.limit,query:{index:n,range:e.range}})})).then((function(t){return t.result})).then(t);e.keysOnly=!e.isMatch;var n=[];return this.each((function(t,e){n.push(e.primaryKey)})).then((function(){return n})).then(t)}},{key:"uniqueKeys",value:function(t){return this._ctx.unique="unique",this.keys(t)}},{key:"firstKey",value:function(t){return this.limit(1).keys((function(t){return t[0]})).then(t)}},{key:"lastKey",value:function(t){return this.reverse().firstKey(t)}},{key:"distinct",value:function(){var t=this._ctx,e=t.index&&t.table.schema.idxByName[t.index];if(!e||!e.multi)return this;var n={};return Ht(this._ctx,(function(t){var e=t.primaryKey.toString(),r=R(n,e);return n[e]=!0,!r})),this}},{key:"modify",value:function(t){var e=this,n=this._ctx;return this._write((function(r){var o;if("function"==typeof t)o=t;else{var i=Wn(t),u=i.length;o=function(e){for(var n=!1,r=0;r<u;++r){var o=i[r],a=t[o];er(e,o)!==a&&(nr(e,o,a),n=!0)}return n}}var a=n.table.core,c=a.schema.primaryKey,s=c.outbound,l=c.extractKey,f=e.db._options.modifyChunkSize||200,d=[],p=0,h=[],v=function(t,e){var n=e.failures,r=e.numFailures;p+=t-r;var o=!0,i=!1,u=void 0;try{for(var a,c=Wn(n)[Symbol.iterator]();!(o=(a=c.next()).done);o=!0){var s=a.value;d.push(n[s])}}catch(t){i=!0,u=t}finally{try{o||null==c.return||c.return()}finally{if(i)throw u}}};return e.clone().primaryKeys().then((function(e){var i=function(u){var c=Math.min(f,e.length-u);return a.getMany({trans:r,keys:e.slice(u,u+c),cache:"immutable"}).then((function(d){for(var p=[],h=[],y=s?[]:null,g=[],m=0;m<c;++m){var b=d[m],w={value:K(b),primKey:e[u+m]};!1!==o.call(w,w.value,w)&&(null==w.value?g.push(e[u+m]):s||0===ho(l(b),l(w.value))?(h.push(w.value),s&&y.push(e[u+m])):(g.push(e[u+m]),p.push(w.value)))}var _=Ut(n)&&n.limit===1/0&&("function"!=typeof t||t===yo)&&{index:n.index,range:n.range};return Promise.resolve(p.length>0&&a.mutate({trans:r,type:"add",values:p}).then((function(t){for(var e in t.failures)g.splice(parseInt(e),1);v(p.length,t)}))).then((function(){return(h.length>0||_&&"object"==typeof t)&&a.mutate({trans:r,type:"put",keys:y,values:h,criteria:_,changeSpec:"function"!=typeof t&&t}).then((function(t){return v(h.length,t)}))})).then((function(){return(g.length>0||_&&t===yo)&&a.mutate({trans:r,type:"delete",keys:g,criteria:_}).then((function(t){return v(g.length,t)}))})).then((function(){return e.length>u+c&&i(u+f)}))}))};return i(0).then((function(){if(d.length>0)throw new Q("Error modifying one or more objects",d,p,h);return e.length}))}))}))}},{key:"delete",value:function(){var t=this._ctx,e=t.range;return Ut(t)&&(t.isPrimKey&&!so||3===e.type)?this._write((function(n){var r=t.table.core.schema.primaryKey,o=e;return t.table.core.count({trans:n,query:{index:r,range:o}}).then((function(e){return t.table.core.mutate({trans:n,type:"deleteRange",range:o}).then((function(t){var n=t.failures,r=(t.lastResult,t.results,t.numFailures);if(r)throw new Q("Could not delete some values",Object.keys(n).map((function(t){return n[t]})),e-r);return e-r}))}))})):this.modify(yo)}}]),t}(),yo=function(t,e){return e.value=null},go=function(){function t(){o(this,t)}return u(t,[{key:"Collection",get:function(){return this._ctx.table.db.Collection}},{key:"between",value:function(t,e,n,r){n=!1!==n,r=!0===r;try{return this._cmp(t,e)>0||0===this._cmp(t,e)&&(n||r)&&(!n||!r)?Yt(this):new this.Collection(this,(function(){return te(t,e,!n,!r)}))}catch(t){return Jt(this,io)}}},{key:"equals",value:function(t){return null==t?Jt(this,io):new this.Collection(this,(function(){return ee(t)}))}},{key:"above",value:function(t){return null==t?Jt(this,io):new this.Collection(this,(function(){return te(t,void 0,!0)}))}},{key:"aboveOrEqual",value:function(t){return null==t?Jt(this,io):new this.Collection(this,(function(){return te(t,void 0,!1)}))}},{key:"below",value:function(t){return null==t?Jt(this,io):new this.Collection(this,(function(){return te(void 0,t,!1,!0)}))}},{key:"belowOrEqual",value:function(t){return null==t?Jt(this,io):new this.Collection(this,(function(){return te(void 0,t)}))}},{key:"startsWith",value:function(t){return"string"!=typeof t?Jt(this,"String expected."):this.between(t,t+oo,!0,!0)}},{key:"startsWithIgnoreCase",value:function(t){return""===t?this.startsWith(t):Xt(this,(function(t,e){return 0===t.indexOf(e[0])}),[t],oo)}},{key:"equalsIgnoreCase",value:function(t){return Xt(this,(function(t,e){return t===e[0]}),[t],"")}},{key:"anyOfIgnoreCase",value:function(){var t=W.apply(fr,arguments);return 0===t.length?Yt(this):Xt(this,(function(t,e){return-1!==e.indexOf(t)}),t,"")}},{key:"startsWithAnyOfIgnoreCase",value:function(){var t=W.apply(fr,arguments);return 0===t.length?Yt(this):Xt(this,(function(t,e){return e.some((function(e){return 0===t.indexOf(e)}))}),t,oo)}},{key:"anyOf",value:function(){var t=this,e=W.apply(fr,arguments),n=this._cmp;try{e.sort(n)}catch(t){return Jt(this,io)}if(0===e.length)return Yt(this);var r=new this.Collection(this,(function(){return te(e[0],e[e.length-1])}));r._ondirectionchange=function(r){n="next"===r?t._ascending:t._descending,e.sort(n)};var o=0;return r._addAlgorithm((function(t,r,i){for(var u=t.key;n(u,e[o])>0;)if(++o===e.length)return r(i),!1;return 0===n(u,e[o])||(r((function(){t.continue(e[o])})),!1)})),r}},{key:"notEqual",value:function(t){return this.inAnyRange([[-1/0,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}},{key:"noneOf",value:function(){var t=W.apply(fr,arguments);if(0===t.length)return new this.Collection(this);try{t.sort(this._ascending)}catch(t){return Jt(this,io)}var e=t.reduce((function(t,e){return t?t.concat([[t[t.length-1][1],e]]):[[-1/0,e]]}),null);return e.push([t[t.length-1],this.db._maxKey]),this.inAnyRange(e,{includeLowers:!1,includeUppers:!1})}},{key:"inAnyRange",value:function(t,e){var n=this,r=function(t,e){return d(t[0],e[0])},o=this._cmp,i=this._ascending,u=this._descending,a=this._min,c=this._max;if(0===t.length)return Yt(this);if(!t.every((function(t){return void 0!==t[0]&&void 0!==t[1]&&i(t[0],t[1])<=0})))return Jt(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Sr.InvalidArgument);var s,l=!e||!1!==e.includeLowers,f=e&&!0===e.includeUppers,d=i;try{(s=t.reduce((function(t,e){for(var n=0,r=t.length;n<r;++n){var i=t[n];if(o(e[0],i[1])<0&&o(e[1],i[0])>0){i[0]=a(i[0],e[0]),i[1]=c(i[1],e[1]);break}}return n===r&&t.push(e),t}),[])).sort(r)}catch(t){return Jt(this,io)}var p=0,h=f?function(t){return i(t,s[p][1])>0}:function(t){return i(t,s[p][1])>=0},v=l?function(t){return u(t,s[p][0])>0}:function(t){return u(t,s[p][0])>=0},y=h,g=new this.Collection(this,(function(){return te(s[0][0],s[s.length-1][1],!l,!f)}));return g._ondirectionchange=function(t){"next"===t?(y=h,d=i):(y=v,d=u),s.sort(r)},g._addAlgorithm((function(t,e,r){for(var o=t.key;y(o);)if(++p===s.length)return e(r),!1;return!((h(u=o)||v(u))&&(0===n._cmp(o,s[p][1])||0===n._cmp(o,s[p][0])||e((function(){d===i?t.continue(s[p][0]):t.continue(s[p][1])})),1));var u})),g}},{key:"startsWithAnyOf",value:function(){var t=W.apply(fr,arguments);return t.every((function(t){return"string"==typeof t}))?0===t.length?Yt(this):this.inAnyRange(t.map((function(t){return[t,t+oo]}))):Jt(this,"startsWithAnyOf() only works with strings")}}]),t}(),mo=Bt(null,"storagemutated"),bo=function(){function t(){o(this,t)}return u(t,[{key:"_lock",value:function(){return H(!$r.global),++this._reculock,1!==this._reculock||$r.global||($r.lockOwnerFor=this),this}},{key:"_unlock",value:function(){if(H(!$r.global),0==--this._reculock)for($r.global||($r.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var t=this._blockedFuncs.shift();try{Pt(t[1],t[0])}catch(t){}}return this}},{key:"_locked",value:function(){return this._reculock&&$r.lockOwnerFor!==this}},{key:"create",value:function(t){var e=this;if(!this.mode)return this;var n=this.db.idbdb,r=this.db._state.dbOpenError;if(H(!this.idbtrans),!t&&!n)switch(r&&r.name){case"DatabaseClosedError":throw new Sr.DatabaseClosed(r);case"MissingAPIError":throw new Sr.MissingAPI(r.message,r);default:throw new Sr.OpenFailed(r)}if(!this.active)throw new Sr.TransactionInactive;return H(null===this._completion._state),(t=this.idbtrans=t||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):n.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=_t((function(n){re(n),e._reject(t.error)})),t.onabort=_t((function(n){re(n),e.active&&e._reject(new Sr.Abort(t.error)),e.active=!1,e.on("abort").fire(n)})),t.oncomplete=_t((function(){e.active=!1,e._resolve(),"mutatedParts"in t&&mo.storagemutated.fire(t.mutatedParts)})),this}},{key:"_promise",value:function(t,e,n){var r=this;if("readwrite"===t&&"readwrite"!==this.mode)return no(new Sr.ReadOnly("Transaction is readonly"));if(!this.active)return no(new Sr.TransactionInactive);if(this._locked())return new st((function(o,i){var u=r;r._blockedFuncs.push([function(){u._promise(t,e,n).then(o,i)},$r])}));if(n)return St((function(){var t=r,n=new st((function(n,r){t._lock();var o=e(n,r,t);o&&o.then&&o.then(n,r)}));return n.finally((function(){return t._unlock()})),n._lib=!0,n}));var o=new st((function(t,n){var o=e(t,n,r);o&&o.then&&o.then(t,n)}));return o._lib=!0,o}},{key:"_root",value:function(){return this.parent?this.parent._root():this}},{key:"waitFor",value:function(t){var e=this._root(),n=st.resolve(t);if(e._waitingFor)e._waitingFor=e._waitingFor.then((function(){return n}));else{e._waitingFor=n,e._waitingQueue=[];var r=e.idbtrans.objectStore(e.storeNames[0]);!function t(){for(++e._spinCount;e._waitingQueue.length;)e._waitingQueue.shift()();e._waitingFor&&(r.get(-1/0).onsuccess=t)}()}var o=e._waitingFor;return new st((function(t,r){n.then((function(n){return e._waitingQueue.push(_t(t.bind(null,n)))}),(function(t){return e._waitingQueue.push(_t(r.bind(null,t)))})).finally((function(){e._waitingFor===o&&(e._waitingFor=null)}))}))}},{key:"abort",value:function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Sr.Abort))}},{key:"table",value:function(t){var e=this._memoizedTables||(this._memoizedTables={});if(R(e,t))return e[t];var n=this.schema[t];if(!n)throw new Sr.NotFound("Table "+t+" not part of transaction");var r=new this.db.Table(t,n,this);return r.core=this.db.core.table(t),e[t]=r,r}}]),t}(),wo=function(t){try{return t.only([[]]),wo=function(){return[[]]},[[]]}catch(t){return wo=function(){return oo},oo}},_o=0,So=function(){function t(){o(this,t)}return u(t,[{key:"_parseStoresSpec",value:function(t,e){Wn(t).forEach((function(n){if(null!==t[n]){var r=t[n].split(",").map((function(t,e){var n=(t=t.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return oe(n,r||null,/\&/.test(t),/\*/.test(t),/\+\+/.test(t),Zn(r),0===e)})),o=r.shift();if(o.multi)throw new Sr.Schema("Primary key cannot be multi-valued");r.forEach((function(t){if(t.auto)throw new Sr.Schema("Only primary key can be marked as autoIncrement (++)");if(!t.keyPath)throw new Sr.Schema("Index must have a name and cannot be an empty string")})),e[n]=ue(n,o,r)}}))}},{key:"stores",value:function(t){var e=this.db;this._cfg.storesSource=this._cfg.storesSource?L(this._cfg.storesSource,t):t;var n=e._versions,r={},o={};return n.forEach((function(t){L(r,t._cfg.storesSource),o=t._cfg.dbschema={},t._parseStoresSpec(r,o)})),e._dbSchema=o,de(e,[e._allTables,e,e.Transaction.prototype]),fe(e,[e._allTables,e,e.Transaction.prototype,this._cfg.tables],Wn(o),o),e._storeNames=Wn(o),this}},{key:"upgrade",value:function(t){return this._cfg.contentUpgrade=ct(this._cfg.contentUpgrade||tt,t),this}}]),t}();function xo(t,e,n,r,o){return st.resolve().then((function(){var i=$r.transless||$r,u=t._createTransaction(e,n,t._dbSchema,r),a={trans:u,transless:i};if(r)u.idbtrans=r.idbtrans;else try{u.create(),t._state.PR1398_maxLoop=3}catch(r){return r.name===wr.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then((function(){return xo(t,e,n,null,o)}))):no(r)}var c,s=dr(o);s&&xt();var l=st.follow((function(){if(c=o.call(u,u))if(s){var t=Ot.bind(null,null);c.then(t,t)}else"function"==typeof c.next&&"function"==typeof c.throw&&(c=xe(c))}),a);return(c&&"function"==typeof c.then?st.resolve(c).then((function(t){return u.active?t:no(new Sr.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))})):l.then((function(){return c}))).then((function(t){return r&&u._resolve(),u._completion.then((function(){return t}))})).catch((function(t){return u._reject(t),no(t)}))}))}var Oo={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(t){return s({},t,{table:function(e){var n=function(e){var n,r,o=e.query.index;return o.isVirtual?s({},e,{query:{index:o,range:(n=e.query.range,r=o.keyTail,{type:1===n.type?2:n.type,lower:je(n.lower,n.lowerOpen?t.MAX_KEY:t.MIN_KEY,r),lowerOpen:!0,upper:je(n.upper,n.upperOpen?t.MIN_KEY:t.MAX_KEY,r),upperOpen:!0})}}):e},r=t.table(e),o=r.schema,i={},u=[];function a(t,e,n){var r=se(t),o=i[r]=i[r]||[],c=null==t?0:"string"==typeof t?1:t.length,l=e>0,f=s({},n,{isVirtual:l,keyTail:e,keyLength:c,extractKey:ae(t),unique:!l&&n.unique});return o.push(f),f.isPrimaryKey||u.push(f),c>1&&a(2===c?t[0]:t.slice(0,c-1),e+1,n),o.sort((function(t,e){return t.keyTail-e.keyTail})),f}var c=a(o.primaryKey.keyPath,0,o.primaryKey);i[":id"]=[c];var l=!0,f=!1,d=void 0;try{for(var p,h=o.indexes[Symbol.iterator]();!(l=(p=h.next()).done);l=!0){var v=p.value;a(v.keyPath,0,v)}}catch(t){f=!0,d=t}finally{try{l||null==h.return||h.return()}finally{if(f)throw d}}var y=s({},r,{schema:s({},o,{primaryKey:c,indexes:u,getIndexByKeyPath:function(t){var e=i[se(t)];return e&&e[0]}}),count:function(t){return r.count(n(t))},query:function(t){return r.query(n(t))},openCursor:function(e){var o=e.query.index,i=o.keyTail,u=o.isVirtual,a=o.keyLength;return u?r.openCursor(n(e)).then((function(n){return n&&(r=n,o=Object.create(r,{continue:{value:function(n){null!=n?r.continue(je(n,e.reverse?t.MAX_KEY:t.MIN_KEY,i)):e.unique?r.continue(r.key.slice(0,a).concat(e.reverse?t.MIN_KEY:t.MAX_KEY,i)):r.continue()}},continuePrimaryKey:{value:function(e,n){r.continuePrimaryKey(je(e,t.MAX_KEY,i),n)}},primaryKey:{get:function(){return r.primaryKey}},key:{get:function(){var t=r.key;return 1===a?t[0]:t.slice(0,a)}},value:{get:function(){return r.value}}}),o);var r,o})):r.openCursor(e)}});return y}})}};function jo(t,e,n,r){return n=n||{},r=r||"",Wn(t).forEach((function(o){if(R(e,o)){var i=t[o],u=e[o];if("object"==typeof i&&"object"==typeof u&&i&&u){var a=q(i);a!==q(u)?n[r+o]=e[o]:"Object"===a?jo(i,u,n,r+o+"."):i!==u&&(n[r+o]=e[o])}else i!==u&&(n[r+o]=e[o])}else n[r+o]=void 0})),Wn(e).forEach((function(o){R(t,o)||(n[r+o]=e[o])})),n}var Eo={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(t){return s({},t,{table:function(e){var n=t.table(e),r=n.schema.primaryKey,o=s({},n,{mutate:function(t){var o=function(t){var e,o,i=$r.trans,u=t.keys||(e=r,"delete"===(o=t).type?o.keys:o.keys||o.values.map(e.extractKey));if(!u)throw new Error("Keys missing");return"delete"!==(t="add"===t.type||"put"===t.type?s({},t,{keys:u}):s({},t)).type&&(t.values=f(t.values)),t.keys&&(t.keys=f(t.keys)),function(t,e,n){return"add"===e.type?Promise.resolve([]):t.getMany({trans:e.trans,keys:n,cache:"immutable"})}(n,t,u).then((function(e){var o=u.map((function(n,o){var u=e[o],s={onerror:null,onsuccess:null};if("delete"===t.type)a.fire.call(s,n,u,i);else if("add"===t.type||void 0===u){var f=c.fire.call(s,n,t.values[o],i);null==n&&null!=f&&(n=f,t.keys[o]=n,r.outbound||nr(t.values[o],r.keyPath,n))}else{var d=jo(u,t.values[o]),p=l.fire.call(s,d,n,u,i);if(p){var h=t.values[o];Object.keys(p).forEach((function(t){R(h,t)?h[t]=p[t]:nr(h,t,p[t])}))}}return s}));return n.mutate(t).then((function(n){for(var r=n.failures,i=n.results,a=n.numFailures,c=n.lastResult,s=0;s<u.length;++s){var l=i?i[s]:u[s],f=o[s];null==l?f.onerror&&f.onerror(r[s]):f.onsuccess&&f.onsuccess("put"===t.type&&e[s]?t.values[s]:l)}return{failures:r,results:i,numFailures:a,lastResult:c}})).catch((function(t){return o.forEach((function(e){return e.onerror&&e.onerror(t)})),Promise.reject(t)}))}))},i=$r.trans,u=i.table(e).hook,a=u.deleting,c=u.creating,l=u.updating;switch(t.type){case"add":if(c.fire===tt)break;return i._promise("readwrite",(function(){return o(t)}),!0);case"put":if(c.fire===tt&&l.fire===tt)break;return i._promise("readwrite",(function(){return o(t)}),!0);case"delete":if(a.fire===tt)break;return i._promise("readwrite",(function(){return o(t)}),!0);case"deleteRange":if(a.fire===tt)break;return i._promise("readwrite",(function(){return d((e=t).trans,e.range,1e4);var e}),!0)}return n.mutate(t);function d(t,e,i){return n.query({trans:t,values:!1,query:{index:r,range:e},limit:i}).then((function(n){var r=n.result;return o({type:"delete",keys:r,trans:t}).then((function(n){return n.numFailures>0?Promise.reject(n.failures[0]):r.length<i?{failures:[],numFailures:0,lastResult:void 0}:d(t,s({},e,{lower:r[r.length-1],lowerOpen:!0}),i)}))}))}}});return o}})}},Co={stack:"dbcore",level:-1,create:function(t){return{table:function(e){var n=t.table(e);return s({},n,{getMany:function(t){if(!t.cache)return n.getMany(t);var e=Ee(t.keys,t.trans._cache,"clone"===t.cache);return e?st.resolve(e):n.getMany(t).then((function(e){return t.trans._cache={keys:t.keys,values:"clone"===t.cache?K(e):e},e}))},mutate:function(t){return"add"!==t.type&&(t.trans._cache=null),n.mutate(t)}})}}}},ko=function(t,e){if(!this){var n=new ko;return t&&"d"in t&&L(n,t),n}L(this,arguments.length?{d:1,from:t,to:arguments.length>1?e:t}:{d:0})};function Ao(t,e,n){var r=ho(e,n);if(!isNaN(r)){if(r>0)throw RangeError();if(Ce(t))return L(t,{from:e,to:n,d:1});var o=t.l,i=t.r;if(ho(n,t.from)<0)return o?Ao(o,e,n):t.l={from:e,to:n,d:1,l:null,r:null},Pe(t);if(ho(e,t.to)>0)return i?Ao(i,e,n):t.r={from:e,to:n,d:1,l:null,r:null},Pe(t);ho(e,t.from)<0&&(t.from=e,t.l=null,t.d=i?i.d+1:1),ho(n,t.to)>0&&(t.to=n,t.r=null,t.d=t.l?t.l.d+1:1);var u=!t.r;o&&!t.l&&ke(t,o),i&&u&&ke(t,i)}}M(ko.prototype,a({add:function(t){return ke(this,t),this},addKey:function(t){return Ao(this,t,t),this},addKeys:function(t){var e=this;return t.forEach((function(t){return Ao(e,t,t)})),this}},sr,(function(){return Ae(this)})));var Po,Io={stack:"dbcore",level:0,create:function(t){var e=t.schema.name,n=new ko(t.MIN_KEY,t.MAX_KEY);return s({},t,{table:function(r){var o=t.table(r),i=o.schema,u=i.primaryKey,a=u.extractKey,c=u.outbound,f=s({},o,{mutate:function(t){var u=t.trans,a=u.mutatedParts||(u.mutatedParts={}),c=function(t){var n="idb://".concat(e,"/").concat(r,"/").concat(t);return a[n]||(a[n]=new ko)},s=c(""),f=c(":dels"),d=t.type,p=l("deleteRange"===t.type?[t.range]:"delete"===t.type?[t.keys]:t.values.length<50?[[],t.values]:[],2),h=p[0],v=p[1],y=t.trans._cache;return o.mutate(t).then((function(t){if(Zn(h)){"delete"!==d&&(h=t.results),s.addKeys(h);var e=Ee(h,y);e||"add"===d||f.addKeys(h),(e||v)&&(o=c,u=e,a=v,i.indexes.forEach((function(t){var e=function(e){return null!=e?t.extractKey(e):null},n=o(t.name||""),r=function(e){return t.multiEntry&&Zn(e)?e.forEach((function(t){return n.addKey(t)})):n.addKey(e)};(u||a).forEach((function(t,n){var o=u&&e(u[n]),i=a&&e(a[n]);0!==ho(o,i)&&(null!=o&&r(o),null!=i&&r(i))}))})))}else if(h){var r={from:h.lower,to:h.upper};f.add(r),s.add(r)}else s.add(n),f.add(n),i.indexes.forEach((function(t){return c(t.name).add(n)}));var o,u,a;return t}))}}),d=function(e){var n,r,o=e.query,i=o.index,u=o.range;return[i,new ko(null!==(n=u.lower)&&void 0!==n?n:t.MIN_KEY,null!==(r=u.upper)&&void 0!==r?r:t.MAX_KEY)]},p={get:function(t){return[u,new ko(t.key)]},getMany:function(t){return[u,(new ko).addKeys(t.keys)]},count:d,query:d,openCursor:d};return Wn(p).forEach((function(t){f[t]=function(i){var u=$r.subscr;if(u){var f=function(t){var n="idb://".concat(e,"/").concat(r,"/").concat(t);return u[n]||(u[n]=new ko)},d=f(""),h=f(":dels"),v=l(p[t](i),2),y=v[0],g=v[1];if(f(y.name||"").add(g),!y.isPrimaryKey){if("count"!==t){var m="query"===t&&c&&i.values&&o.query(s({},i,{values:!1}));return o[t].apply(this,arguments).then((function(e){if("query"===t){if(c&&i.values)return m.then((function(t){var n=t.result;return d.addKeys(n),e}));var n=i.values?e.result.map(a):e.result;i.values?d.addKeys(n):h.addKeys(n)}else if("openCursor"===t){var r=e,o=i.values;return r&&Object.create(r,{key:{get:function(){return h.addKey(r.primaryKey),r.key}},primaryKey:{get:function(){var t=r.primaryKey;return h.addKey(t),t}},value:{get:function(){return o&&d.addKey(r.primaryKey),r.value}}})}return e}))}h.add(n)}}return o[t].apply(this,arguments)}})),f}})}},To=function(){function t(e,n){var r=this;o(this,t),this._middlewares={},this.verno=0;var i=t.dependencies;this._options=n=s({addons:t.addons,autoOpen:!0,indexedDB:i.indexedDB,IDBKeyRange:i.IDBKeyRange},n),this._deps={indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange};var u=n.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var a,c,l,f,d={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:tt,dbReadyPromise:null,cancelOpen:tt,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};d.dbReadyPromise=new st((function(t){d.dbReadyResolve=t})),d.openCanceller=new st((function(t,e){d.cancelOpen=e})),this._state=d,this.name=e,this.on=Bt(this,"populate","blocked","versionchange","close",{ready:[ct,tt]}),this.on.ready.subscribe=U(this.on.ready.subscribe,(function(e){return function(n,o){var i=r;t.vip((function(){var t=i._state;if(t.openComplete)t.dbOpenError||st.resolve().then(n),o&&e(n);else if(t.onReadyBeingFired)t.onReadyBeingFired.push(n),o&&e(n);else{e(n);var r=i;o||e((function t(){r.on.ready.unsubscribe(n),r.on.ready.unsubscribe(t)}))}}))}})),this.Collection=(a=this,Nt(vo.prototype,(function(t,e){this.db=a;var n=fo,r=null;if(e)try{n=e()}catch(t){r=t}var o=t._ctx,i=o.table,u=i.hook.reading.fire;this._ctx={table:i,index:o.index,isPrimKey:!o.index||i.schema.primKey.keyPath&&o.index===i.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:r,or:o.or,valueMapper:u!==et?u:null}}))),this.Table=(f=this,Nt(po.prototype,(function(t,e,n){this.db=f,this._tx=n,this.name=t,this.schema=e,this.hook=f._allTables[t]?f._allTables[t].hook:Bt(null,{creating:[ot,tt],reading:[nt,et],updating:[ut,tt],deleting:[it,tt]})}))),this.Transaction=(l=this,Nt(bo.prototype,(function(t,e,n,r,o){var i=this;this.db=l,this.mode=t,this.storeNames=e,this.schema=n,this.chromeTransactionDurability=r,this.idbtrans=null,this.on=Bt(this,"complete","error","abort"),this.parent=o||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new st((function(t,e){i._resolve=t,i._reject=e})),this._completion.then((function(){i.active=!1,i.on.complete.fire()}),(function(t){var e=i.active;return i.active=!1,i.on.error.fire(t),i.parent?i.parent._reject(t):e&&i.idbtrans&&i.idbtrans.abort(),no(t)}))}))),this.Version=function(t){return Nt(So.prototype,(function(e){this.db=t,this._cfg={version:e,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))}(this),this.WhereClause=(c=this,Nt(go.prototype,(function(t,e,n){this.db=c,this._ctx={table:t,index:":id"===e?null:e,or:n};var r=c._deps.indexedDB;if(!r)throw new Sr.MissingAPI;this._cmp=this._ascending=r.cmp.bind(r),this._descending=function(t,e){return r.cmp(e,t)},this._max=function(t,e){return r.cmp(t,e)>0?t:e},this._min=function(t,e){return r.cmp(t,e)<0?t:e},this._IDBKeyRange=c._deps.IDBKeyRange}))),this.on("versionchange",(function(t){t.newVersion>0?console.warn("Another connection wants to upgrade database '".concat(r.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(r.name,"'. Closing db now to resume the delete request.")),r.close()})),this.on("blocked",(function(t){!t.newVersion||t.newVersion<t.oldVersion?console.warn("Dexie.delete('".concat(r.name,"') was blocked")):console.warn("Upgrade '".concat(r.name,"' blocked by other connection holding version ").concat(t.oldVersion/10))})),this._maxKey=wo(n.IDBKeyRange),this._createTransaction=function(t,e,n,o){return new r.Transaction(t,e,n,r._options.chromeTransactionDurability,o)},this._fireOnBlocked=function(t){var e=r;r.on("blocked").fire(t),uo.filter((function(t){return t.name===e.name&&t!==e&&!t._state.vcFired})).map((function(e){return e.on("versionchange").fire(t)}))},this.use(Oo),this.use(Eo),this.use(Io),this.use(Co),this.vip=Object.create(this,{_vip:{value:!0}}),u.forEach((function(t){return t(r)}))}return u(t,[{key:"version",value:function(t){if(isNaN(t)||t<.1)throw new Sr.Type("Given version is not a positive number");if(t=Math.round(10*t)/10,this.idbdb||this._state.isBeingOpened)throw new Sr.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,t);var e=this._versions,n=e.filter((function(e){return e._cfg.version===t}))[0];return n||(n=new this.Version(t),e.push(n),e.sort(pe),n.stores({}),this._state.autoSchema=!1,n)}},{key:"_whenReady",value:function(t){var e=this;return this.idbdb&&(this._state.openComplete||$r.letThrough||this._vip)?t():new st((function(t,n){if(e._state.openComplete)return n(new Sr.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return void n(new Sr.DatabaseClosed);e.open().catch(tt)}e._state.dbReadyPromise.then(t,n)})).then(t)}},{key:"use",value:function(t){var e=t.stack,n=t.create,r=t.level,o=t.name;o&&this.unuse({stack:e,name:o});var i=this._middlewares[e]||(this._middlewares[e]=[]);return i.push({stack:e,create:n,level:null==r?10:r,name:o}),i.sort((function(t,e){return t.level-e.level})),this}},{key:"unuse",value:function(t){var e=t.stack,n=t.name,r=t.create;return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter((function(t){return r?t.create!==r:!!n&&t.name!==n}))),this}},{key:"open",value:function(){return function(t){var e=function(){if(n.openCanceller!==o)throw new Sr.DatabaseClosed("db.open() was cancelled")},n=t._state,r=t._deps.indexedDB;if(n.isBeingOpened||t.idbdb)return n.dbReadyPromise.then((function(){return n.dbOpenError?no(n.dbOpenError):t}));pr&&(n.openCanceller._stackHolder=yr()),n.isBeingOpened=!0,n.dbOpenError=null,n.openComplete=!1;var o=n.openCanceller,i=n.dbReadyResolve,u=null,a=!1;return st.race([o,("undefined"==typeof navigator?st.resolve():Se()).then((function(){return new st((function(o,i){if(e(),!r)throw new Sr.MissingAPI;var c=t.name,s=n.autoSchema?r.open(c):r.open(c,Math.round(10*t.verno));if(!s)throw new Sr.MissingAPI;s.onerror=ne(i),s.onblocked=_t(t._fireOnBlocked),s.onupgradeneeded=_t((function(e){if(u=s.transaction,n.autoSchema&&!t._options.allowEmptyDB){s.onerror=re,u.abort(),s.result.close();var o=r.deleteDatabase(c);o.onsuccess=o.onerror=_t((function(){i(new Sr.NoSuchDatabase("Database ".concat(c," doesnt exist")))}))}else{u.onerror=ne(i);var l=e.oldVersion>Math.pow(2,62)?0:e.oldVersion;a=l<1,t._novip.idbdb=s.result,function(t,e,n,r){var o=t._dbSchema,i=t._createTransaction("readwrite",t._storeNames,o);i.create(n),i._completion.catch(r);var u=i._reject.bind(i),a=$r.transless||$r;St((function(){var r,c,s,l,f,d,p,h,v;$r.trans=i,$r.transless=a,0===e?(Wn(o).forEach((function(t){ve(n,t,o[t].primKey,o[t].indexes)})),le(t,n),st.follow((function(){return t.on.populate.fire(i)})).catch(u)):(r=t,c=e,s=i,l=n,f=r._novip,d=[],p=f._versions,h=f._dbSchema=ge(0,f.idbdb,l),v=!1,p.filter((function(t){return t._cfg.version>=c})).forEach((function(t){d.push((function(){var e=h,n=t._cfg.dbschema;me(f,e,l),me(f,n,l),h=f._dbSchema=n;var r=he(e,n);r.add.forEach((function(t){ve(l,t[0],t[1].primKey,t[1].indexes)})),r.change.forEach((function(t){if(t.recreate)throw new Sr.Upgrade("Not yet support for changing primary key");var e=l.objectStore(t.name);t.add.forEach((function(t){return ye(e,t)})),t.change.forEach((function(t){e.deleteIndex(t.name),ye(e,t)})),t.del.forEach((function(t){return e.deleteIndex(t)}))}));var o=t._cfg.contentUpgrade;if(o&&t._cfg.version>c){le(f,l),s._memoizedTables={},v=!0;var i=$(n);r.del.forEach((function(t){i[t]=e[t]})),de(f,[f.Transaction.prototype]),fe(f,[f.Transaction.prototype],Wn(i),i),s.schema=i;var u,a=dr(o);a&&xt();var d=st.follow((function(){if((u=o(s))&&a){var t=Ot.bind(null,null);u.then(t,t)}}));return u&&"function"==typeof u.then?st.resolve(u):d.then((function(){return u}))}})),d.push((function(e){var n,r;v&&co||(n=t._cfg.dbschema,r=e,[].slice.call(r.db.objectStoreNames).forEach((function(t){return null==n[t]&&r.db.deleteObjectStore(t)}))),de(f,[f.Transaction.prototype]),fe(f,[f.Transaction.prototype],f._storeNames,f._dbSchema),s.schema=f._dbSchema}))})),function t(){return d.length?st.resolve(d.shift()(s.idbtrans)).then(t):st.resolve()}().then((function(){var t,e;e=l,Wn(t=h).forEach((function(n){e.db.objectStoreNames.contains(n)||ve(e,n,t[n].primKey,t[n].indexes)}))}))).catch(u)}))}(t,l/10,u,i)}}),i),s.onsuccess=_t((function(){u=null;var e,r,i,l,f=t._novip.idbdb=s.result,d=N(f.objectStoreNames);if(d.length>0)try{var p=f.transaction(1===(l=d).length?l[0]:l,"readonly");n.autoSchema?function(t,e,n){var r=t._novip;r.verno=e.version/10;var o=r._dbSchema=ge(0,e,n);r._storeNames=N(e.objectStoreNames,0),fe(r,[r._allTables],Wn(o),o)}(t,f,p):(me(t,t._dbSchema,p),r=p,!((i=he(ge(0,(e=t).idbdb,r),e._dbSchema)).add.length||i.change.some((function(t){return t.add.length||t.change.length})))||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),le(t,p)}catch(t){}uo.push(t),f.onversionchange=_t((function(e){n.vcFired=!0,t.on("versionchange").fire(e)})),f.onclose=_t((function(e){t.on("close").fire(e)})),a&&function(t,e){var n=t.indexedDB,r=t.IDBKeyRange;!we(n)&&"__dbnames"!==e&&be(n,r).put({name:e}).catch(tt)}(t._deps,c),o()}),i)}))}))]).then((function(){return e(),n.onReadyBeingFired=[],st.resolve(_e((function(){return t.on.ready.fire(t.vip)}))).then((function e(){if(n.onReadyBeingFired.length>0){var r=n.onReadyBeingFired.reduce(ct,tt);return n.onReadyBeingFired=[],st.resolve(_e((function(){return r(t.vip)}))).then(e)}}))})).finally((function(){n.onReadyBeingFired=null,n.isBeingOpened=!1})).then((function(){return t})).catch((function(e){n.dbOpenError=e;try{u&&u.abort()}catch(t){}return o===n.openCanceller&&t._close(),no(e)})).finally((function(){n.openComplete=!0,i()}))}(this)}},{key:"_close",value:function(){var t=this._state,e=uo.indexOf(this);if(e>=0&&uo.splice(e,1),this.idbdb){try{this.idbdb.close()}catch(t){}this._novip.idbdb=null}t.dbReadyPromise=new st((function(e){t.dbReadyResolve=e})),t.openCanceller=new st((function(e,n){t.cancelOpen=n}))}},{key:"close",value:function(){this._close();var t=this._state;this._options.autoOpen=!1,t.dbOpenError=new Sr.DatabaseClosed,t.isBeingOpened&&t.cancelOpen(t.dbOpenError)}},{key:"delete",value:function(){var t=this,e=arguments.length>0,n=this._state;return new st((function(r,o){var i=t,u=function(){var t=i;i.close();var e=i._deps.indexedDB.deleteDatabase(i.name);e.onsuccess=_t((function(){!function(t,e){var n=t.indexedDB,r=t.IDBKeyRange;!we(n)&&"__dbnames"!==e&&be(n,r).delete(e).catch(tt)}(t._deps,t.name),r()})),e.onerror=ne(o),e.onblocked=i._fireOnBlocked};if(e)throw new Sr.InvalidArgument("Arguments not allowed in db.delete()");n.isBeingOpened?n.dbReadyPromise.then(u):u()}))}},{key:"backendDB",value:function(){return this.idbdb}},{key:"isOpen",value:function(){return null!==this.idbdb}},{key:"hasBeenClosed",value:function(){var t=this._state.dbOpenError;return t&&"DatabaseClosed"===t.name}},{key:"hasFailed",value:function(){return null!==this._state.dbOpenError}},{key:"dynamicallyOpened",value:function(){return this._state.autoSchema}},{key:"tables",get:function(){var t=this;return Wn(this._allTables).map((function(e){return t._allTables[e]}))}},{key:"transaction",value:function(){var t=Oe.apply(this,arguments);return this._transaction.apply(this,t)}},{key:"_transaction",value:function(t,e,n){var r=this,o=$r.trans;o&&o.db===this&&-1===t.indexOf("!")||(o=null);var i,u,a=-1!==t.indexOf("?");t=t.replace("!","").replace("?","");try{var s=this;if(u=e.map((function(t){var e=c(t,s.Table)?t.name:t;if("string"!=typeof e)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return e})),"r"==t||"readonly"===t)i="readonly";else{if("rw"!=t&&"readwrite"!=t)throw new Sr.InvalidArgument("Invalid transaction mode: "+t);i="readwrite"}if(o){if("readonly"===o.mode&&"readwrite"===i){if(!a)throw new Sr.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");o=null}o&&u.forEach((function(t){if(o&&-1===o.storeNames.indexOf(t)){if(!a)throw new Sr.SubTransaction("Table "+t+" not included in parent transaction.");o=null}})),a&&o&&!o.active&&(o=null)}}catch(t){return o?o._promise(null,(function(e,n){n(t)})):no(t)}var l=xo.bind(null,this,i,u,o,n);return o?o._promise(i,l,"lock"):$r.trans?Pt($r.transless,(function(){return r._whenReady(l)})):this._whenReady(l)}},{key:"table",value:function(t){if(!R(this._allTables,t))throw new Sr.InvalidTable("Table ".concat(t," does not exist"));return this._allTables[t]}}]),t}(),Lo="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable",Ro=function(){function t(e){o(this,t),this._subscribe=e}return u(t,[{key:"subscribe",value:function(t,e,n){return this._subscribe(t&&"function"!=typeof t?t:{next:t,error:e,complete:n})}},{key:Lo,value:function(){return this}}]),t}();try{Po={indexedDB:qn.indexedDB||qn.mozIndexedDB||qn.webkitIndexedDB||qn.msIndexedDB,IDBKeyRange:qn.IDBKeyRange||qn.webkitIDBKeyRange}}catch(t){Po={indexedDB:null,IDBKeyRange:null}}var Mo=To;M(Mo,s({},Or,{delete:function(t){return new Mo(t,{addons:[]}).delete()},exists:function(t){return new Mo(t,{addons:[]}).open().then((function(t){return t.close(),!0})).catch("NoSuchDatabaseError",(function(){return!1}))},getDatabaseNames:function(t){try{return function(t){var e=t.indexedDB,n=t.IDBKeyRange;return we(e)?Promise.resolve(e.databases()).then((function(t){return t.map((function(t){return t.name})).filter((function(t){return"__dbnames"!==t}))})):be(e,n).toCollection().primaryKeys()}(Mo.dependencies).then(t)}catch(t){return no(new Sr.MissingAPI)}},defineClass:function(){return function(t){L(this,t)}},ignoreTransaction:function(t){return $r.trans?Pt($r.transless,t):t()},vip:_e,async:function(t){return function(){try{var e=xe(t.apply(this,arguments));return e&&"function"==typeof e.then?e:st.resolve(e)}catch(t){return no(t)}}},spawn:function(t,e,n){try{var r=xe(t.apply(n,e||[]));return r&&"function"==typeof r.then?r:st.resolve(r)}catch(t){return no(t)}},currentTransaction:{get:function(){return $r.trans||null}},waitFor:function(t,e){var n=st.resolve("function"==typeof t?Mo.ignoreTransaction(t):t).timeout(e||6e4);return $r.trans?$r.trans.waitFor(n):n},Promise:st,debug:{get:function(){return pr},set:function(t){Z(t,"dexie"===t?function(){return!0}:lo)}},derive:B,extend:L,props:M,override:U,Events:Bt,on:mo,liveQuery:function(t){return new Ro((function(e){var n=function(){return Wn(u).some((function(t){return i[t]&&function(t,e){var n=Ae(e),r=n.next();if(r.done)return!1;for(var o=r.value,i=Ae(t),u=i.next(o.from),a=u.value;!r.done&&!u.done;){if(ho(a.from,o.to)<=0&&ho(a.to,o.from)>=0)return!0;ho(o.from,a.from)<0?o=(r=n.next(a.from)).value:a=(u=i.next(o.from)).value}return!1}(i[t],u[t])}))},r=dr(t),o=!1,i={},u={},a={get closed(){return o},unsubscribe:function(){o=!0,mo.storagemutated.unsubscribe(l)}};e.start&&e.start(a);var c=!1,s=!1,l=function(t){Te(i,t),n()&&f()},f=function(){if(!c&&!o){i={};var d={},p=function(e){r&&xt();var n=function(){return St(t,{subscr:e,trans:null})},o=$r.trans?Pt($r.transless,n):n();return r&&o.then(Ot,Ot),o}(d);s||(mo("storagemutated",l),s=!0),c=!0,Promise.resolve(p).then((function(t){c=!1,o||(n()?f():(i={},u=d,e.next&&e.next(t)))}),(function(t){c=!1,e.error&&e.error(t),a.unsubscribe()}))}};return f(),a}))},extendObservabilitySet:Te,getByKeyPath:er,setByKeyPath:nr,delByKeyPath:function(t,e){"string"==typeof e?nr(t,e,void 0):"length"in e&&[].map.call(e,(function(e){nr(t,e,void 0)}))},shallowClone:$,deepClone:K,getObjectDiff:jo,cmp:ho,asap:F,minKey:-1/0,addons:[],connections:uo,errnames:wr,dependencies:Po,semVer:"3.2.1",version:"3.2.1".split(".").map((function(t){return parseInt(t)})).reduce((function(t,e,n){return t+e/Math.pow(10,2*n)}))})),Mo.maxKey=wo(Mo.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(mo("storagemutated",(function(t){var e;Do||(ao?(e=document.createEvent("CustomEvent")).initCustomEvent("x-storagemutated-1",!0,!0,t):e=new CustomEvent("x-storagemutated-1",{detail:t}),Do=!0,dispatchEvent(e),Do=!1)})),addEventListener("x-storagemutated-1",(function(t){var e=t.detail;Do||Le(e)})));var Do=!1;if("undefined"!=typeof BroadcastChannel){var Bo=new BroadcastChannel("x-storagemutated-1");mo("storagemutated",(function(t){Do||Bo.postMessage(t)})),Bo.onmessage=function(t){t.data&&Le(t.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){mo("storagemutated",(function(t){try{Do||("undefined"!=typeof localStorage&&localStorage.setItem("x-storagemutated-1",JSON.stringify({trig:Math.random(),changedParts:t})),"object"==typeof self.clients&&f(self.clients.matchAll({includeUncontrolled:!0})).forEach((function(e){return e.postMessage({type:"x-storagemutated-1",changedParts:t})})))}catch(t){}})),addEventListener("storage",(function(t){if("x-storagemutated-1"===t.key){var e=JSON.parse(t.newValue);e&&Le(e.changedParts)}}));var No=self.document&&navigator.serviceWorker;No&&No.addEventListener("message",(function(t){var e=t.data;e&&"x-storagemutated-1"===e.type&&Le(e.changedParts)}))}st.rejectionMapper=function(t,e){if(!t||c(t,J)||c(t,TypeError)||c(t,SyntaxError)||!t.name||!xr[t.name])return t;var n=new xr[t.name](e||t.message,t);return"stack"in t&&D(n,"stack",{get:function(){return this.inner.stack}}),n},Z(pr,lo);var Uo=h(766),Ho=h(685);function Fo(t){return(Fo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Vo(t,e){return(Vo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var $o,zo=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":void 0===t?"undefined":d(t)},Ko=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vo(t,e)}(o,t);var e,n,r=(e=o,n=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(t){return!1}}(),function(){var t,r=Fo(e);if(n){var o=Fo(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return Re(this,t)});function o(){var t;return function(t,e){if(!c(t,e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this,"EsmOffline")).version(4).stores({syncQueue:"++id,userId,type,[userId+type]",dynamicOfflineData:"++id,type,identifier,*users,&[type+identifier]"}),t.syncQueue=t.table("syncQueue"),t.dynamicOfflineData=t.table("dynamicOfflineData"),t}return o}(To),qo=new Ko,Wo={},Zo=(0,Ho.createGlobalStore)("offline-synchronization",{});function Go(){return Go=Ne(Bn().mark((function t(){var e,n,r,o,i,u,a,c,s,l,f,d,p;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!Zo.getState().synchronization){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,qo.syncQueue.count();case 4:e=t.sent,n={},r=Object.entries(Wo),o=r.length,i={},u=new AbortController,a=function(){var t=Zo.getState().synchronization;Zo.setState({synchronization:He({},t,{pendingCount:t.pendingCount-1})})},t.prev=11,Zo.setState({synchronization:{totalCount:e,pendingCount:e,abortController:u}}),c=0;case 14:if(!(c<o&&r.length>0)){t.next=30;break}s=r.length;case 16:if(!s--){t.next=27;break}if(l=Fe(r[s],2),f=l[0],d=l[1],!(p=d.dependsOn.map((function(t){return n[t]}))).every(Boolean)){t.next=25;break}return i[f]={},t.next=23,Promise.all(p);case 23:n[f]=ze(d,i,u,a),r.splice(s,1);case 25:t.next=16;break;case 27:c++,t.next=14;break;case 30:return t.next=32,Promise.allSettled(Object.values(n));case 32:return t.prev=32,Zo.setState({synchronization:void 0}),t.finish(32);case 35:case"end":return t.stop()}}),t,null,[[11,,32,35]])}))),Go.apply(this,arguments)}function Jo(){return Jo=Ne(Bn().mark((function t(e,n,r,o){var i,u,a,c,s,l,f,d,p,h,v,y,g,m,b,w;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.type,u=e.dependsOn,a=e.process,c=[],s=[],t.next=5,Ke();case 5:return l=t.sent,t.next=8,qo.syncQueue.where({type:i,userId:l}).each((function(t,e){c.push([e.primaryKey,t.content,t.descriptor]),s.push(t.content)}));case 8:f=0;case 9:if(!(f<c.length)){t.next=31;break}return d=Fe(c[f],3),p=d[0],h=d[1],v=d[2],y=v.id,g=v.dependencies,m=void 0===g?[]:g,t.prev=11,t.next=14,a(h,{abort:r,index:f,items:s,userId:l,dependencies:m.map((function(t){var e=t.id,r=t.type;return u.includes(r)?n[r][e]:void 0}))});case 14:return b=t.sent,void 0!==y&&(n[i][y]=b),t.next=18,qo.syncQueue.delete(p);case 18:t.next=25;break;case 20:return t.prev=20,t.t0=t.catch(11),t.next=25,qo.syncQueue.update(p,{lastError:{name:null===t.t0||void 0===t.t0?void 0:t.t0.name,message:null!==(w=null===t.t0||void 0===t.t0?void 0:t.t0.message)&&void 0!==w?w:null===t.t0||void 0===t.t0?void 0:t.t0.toString()}});case 25:return t.prev=25,o(),t.finish(25);case 28:f++,t.next=9;break;case 31:case"end":return t.stop()}}),t,null,[[11,20,25,28]])}))),Jo.apply(this,arguments)}function Yo(){return(Yo=Ne(Bn().mark((function t(){var e;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Uo.getLoggedInUser)();case 2:return e=t.sent,t.abrupt("return",(null==e?void 0:e.uuid)||"*");case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Qo(){return(Qo=Ne(Bn().mark((function t(e,n,r,o){var i,u;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===(i=o&&o.id)){t.next=4;break}return t.next=4,qo.syncQueue.where({type:n,userId:e}).filter((function(t){return(null==t?void 0:t.descriptor.id)===i})).delete().catch(To.errnames.DatabaseClosed);case 4:return t.next=6,qo.syncQueue.add({type:n,content:r,userId:e,descriptor:o||{},createdOn:new Date}).catch(To.errnames.DatabaseClosed,(function(){return-1}));case 6:return u=t.sent,t.abrupt("return",u);case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Xo(){return(Xo=Ne(Bn().mark((function t(e,n,r){var o;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ke();case 2:return o=t.sent,t.next=5,qe(o,e,n,r);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ti(){return(ti=Ne(Bn().mark((function t(e,n){var r;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ge(e,n);case 2:return r=t.sent,t.abrupt("return",r.map((function(t){return t.content})));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ei(){return(ei=Ne(Bn().mark((function t(e,n){var r;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n?{type:n,userId:e}:{userId:e},t.next=3,qo.syncQueue.where(r).toArray().catch(To.errnames.DatabaseClosed,(function(){return[]}));case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ni(){return(ni=Ne(Bn().mark((function t(e){var n;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ke();case 2:return n=t.sent,t.next=5,Ze(n,e);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ri(){return(ri=Ne(Bn().mark((function t(e){var n;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ke();case 2:return n=t.sent,t.next=5,Ge(n,e);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function oi(){return(oi=Ne(Bn().mark((function t(e){return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,qo.syncQueue.get(e).catch(To.errnames.DatabaseClosed,(function(){}));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ii(){return(ii=Ne(Bn().mark((function t(e){var n,r,o;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,Qe(e);case 3:if(r=t.sent){t.next=6;break}throw new Error("No sync item with the ID ".concat(e," exists."));case 6:if(o=null===(n=Wo[r.type])||void 0===n?void 0:n.options.onBeginEditSyncItem){t.next=9;break}throw new Error("A sync item with the ID ".concat(e,' exists, but the associated handler (if one exists) doesn\'t support editing the item. You can avoid this error by either verifying that sync items of this type can be edited via the "canEditSynchronizationItemsOfType(type: string)" function or alternatively ensure that the synchronizaton handler for sync items of type "').concat(r.type,'" supports editing items.'));case 9:o(r);case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ui(){return(ui=Ne(Bn().mark((function t(e){return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,qo.syncQueue.delete(e).catch(To.errnames.DatabaseClosed);case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}for(var ai=new Uint8Array(16),ci=/^(?:[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,si=function(t){return"string"==typeof t&&ci.test(t)},li=[],fi=0;fi<256;++fi)li.push((fi+256).toString(16).substr(1));var di=function(t,e,n){var r=(t=t||{}).random||(t.rng||rn)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(li[t[e+0]]+li[t[e+1]]+li[t[e+2]]+li[t[e+3]]+"-"+li[t[e+4]]+li[t[e+5]]+"-"+li[t[e+6]]+li[t[e+7]]+"-"+li[t[e+8]]+li[t[e+9]]+"-"+li[t[e+10]]+li[t[e+11]]+li[t[e+12]]+li[t[e+13]]+li[t[e+14]]+li[t[e+15]]).toLowerCase();if(!si(n))throw TypeError("Stringified UUID is invalid");return n}(r)},pi="OFFLINE+",hi={};function vi(){return(vi=sn(Bn().mark((function t(e){var n;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_n();case 2:return n=t.sent,t.next=5,hn(n,e);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function yi(){return(yi=sn(Bn().mark((function t(e,n){var r,o;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n?{type:n,users:e}:{users:e},o=new Ko,t.next=4,o.dynamicOfflineData.where(r).toArray().catch(To.errnames.DatabaseClosed,(function(){return[]}));case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function gi(){return(gi=sn(Bn().mark((function t(e,n){var r;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_n();case 2:return r=t.sent,t.next=5,yn(r,e,n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function mi(){return(mi=sn(Bn().mark((function t(e,n,r){var o,i;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=new Ko,t.next=3,o.dynamicOfflineData.get({type:n,identifier:r}).catch(To.errnames.DatabaseClosed,(function(){}));case 3:if(i=t.sent){t.next=9;break}return t.next=7,o.dynamicOfflineData.add({users:[e],type:n,identifier:r}).catch(To.errnames.DatabaseClosed);case 7:t.next=12;break;case 9:if(i.users.includes(e)){t.next=12;break}return t.next=12,o.dynamicOfflineData.update(i.id,{users:ln(i.users).concat([e])}).catch(To.errnames.DatabaseClosed);case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function bi(){return(bi=sn(Bn().mark((function t(e,n){var r;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_n();case 2:return r=t.sent,t.next=5,mn(r,e,n);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function wi(){return(wi=sn(Bn().mark((function t(e,n,r){var o,i;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=new Ko,t.next=3,o.dynamicOfflineData.get({type:n,identifier:r,users:e}).catch(To.errnames.DatabaseClosed,(function(){}));case 3:if(!(i=t.sent)){t.next=12;break}if(!(i.users.length>1)){t.next=10;break}return t.next=8,o.dynamicOfflineData.update(i.id,{users:i.users.filter((function(t){return t!==e}))}).catch(To.errnames.DatabaseClosed);case 8:t.next=12;break;case 10:return t.next=12,o.dynamicOfflineData.delete(i.id).catch(To.errnames.DatabaseClosed);case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function _i(){return _i=sn(Bn().mark((function t(e,n){var r;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,pn(e);case 2:return r=t.sent,t.next=5,Promise.all(r.map(function(){var t=sn(Bn().mark((function t(e){return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",wn(e.type,e.identifier,n));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 5:case"end":return t.stop()}}),t)}))),_i.apply(this,arguments)}function Si(){return Si=sn(Bn().mark((function t(e,n,r){var o,i,u,a,c,s,l,f,d;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,vn(e,n);case 2:return o=new Ko,t.next=5,_n();case 5:return i=t.sent,t.next=8,o.dynamicOfflineData.get({type:e,identifier:n}).catch(To.errnames.DatabaseClosed,(function(){}));case 8:if(u=t.sent,a=fn().filter((function(t){return t.type===e})),u){t.next=12;break}return t.abrupt("return");case 12:return t.next=14,Promise.all(a.map(function(){var t=sn(Bn().mark((function t(e){var o,i,u;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.sync(n,r),t.abrupt("return",{id:e.id,error:void 0});case 5:return t.prev=5,t.t0=t.catch(0),u=null!==(i=null===(o=t.t0.message)||void 0===o?void 0:o.toString())&&void 0!==i?i:t.t0.toString(),t.abrupt("return",{id:e.id,error:u});case 11:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(e){return t.apply(this,arguments)}}()));case 14:if(c=t.sent,s=c.filter((function(t){return!t.error})).map((function(t){return t.id})),l=c.filter((function(t){return t.error})).map((function(t){return t.id})),f=c.filter((function(t){return t.error})).map((function(t){return{handlerId:t.id,message:t.error}})),d={syncedOn:new Date,syncedBy:i,succeededHandlers:s,erroredHandlers:l,errors:f},!u.id){t.next=22;break}return t.next=22,o.dynamicOfflineData.update(u.id,{syncState:d}).catch(To.errnames.DatabaseClosed);case 22:case"end":return t.stop()}}),t)}))),Si.apply(this,arguments)}function xi(){return(xi=sn(Bn().mark((function t(){var e;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Uo.getLoggedInUser)();case 2:if(e=t.sent.uuid){t.next=5;break}throw new Error("Using the dynamic offline data API requires a logged in user.");case 5:return t.abrupt("return",e);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Oi=(0,Ho.createGlobalStore)("offline-patients",{offlinePatientDataSyncState:{},handlers:{}});function ji(){return(ji=xn(Bn().mark((function t(e){return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Cn(),t.next=3,wn("patient",e);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}}(),v}())}}}))},9336:(t,e,n)=>{function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}t=n.nmd(t);var o=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};System.register(["react","@openmrs/esm-config","@openmrs/esm-extensions","@openmrs/esm-globals","react-dom","i18next","react-i18next","@openmrs/esm-api","dayjs"],(function(i,u){var a={},c={},s={},l={},f={},d={},p={},h={},v={};return{setters:[function(t){a.createContext=t.createContext,a.createElement=t.createElement,a.default=t.default,a.useCallback=t.useCallback,a.useContext=t.useContext,a.useDebugValue=t.useDebugValue,a.useEffect=t.useEffect,a.useLayoutEffect=t.useLayoutEffect,a.useMemo=t.useMemo,a.useReducer=t.useReducer,a.useRef=t.useRef,a.useState=t.useState},function(t){c.getConfigStore=t.getConfigStore,c.getExtensionConfigFromStore=t.getExtensionConfigFromStore,c.getExtensionsConfigStore=t.getExtensionsConfigStore,c.interpolateUrl=t.interpolateUrl,c.navigate=t.navigate},function(t){s.getConnectedExtensions=t.getConnectedExtensions,s.getExtensionInternalStore=t.getExtensionInternalStore,s.getExtensionStore=t.getExtensionStore,s.registerExtensionSlot=t.registerExtensionSlot,s.renderExtension=t.renderExtension},function(t){l.subscribeConnectivityChanged=t.subscribeConnectivityChanged},function(t){f.default=t.default},function(t){d.default=t.default},function(t){p.I18nextProvider=t.I18nextProvider},function(t){h.defaultVisitCustomRepresentation=t.defaultVisitCustomRepresentation,h.fetchCurrentPatient=t.fetchCurrentPatient,h.getCurrentUser=t.getCurrentUser,h.getLocations=t.getLocations,h.getSessionStore=t.getSessionStore,h.getVisitTypes=t.getVisitTypes,h.openmrsFetch=t.openmrsFetch,h.userHasAccess=t.userHasAccess},function(t){v.default=t.default}],execute:function(){i(function(){var i={332:function(t){t.exports=function(){"use strict";return function(t,e,n){e.prototype.isToday=function(){var t="YYYY-MM-DD",e=n();return this.format(t)===e.format(t)}}}()},891:function(t,e,n){var i;t=n.nmd(t),function(){var u,a=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},c=function(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var u=t[o];e(r,u,n(u),t)}return r},s=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t},l=function(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t},f=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0},d=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var u=t[n];e(u,n,t)&&(i[o++]=u)}return i},p=function(t,e){return!(null==t||!t.length)&&S(t,e,0)>-1},h=function(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1},v=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o},y=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t},g=function(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n},m=function(t,e,n,r){var o=null==t?0:t.length;for(r&&o&&(n=t[--o]);o--;)n=e(n,t[o],o,t);return n},b=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1},w=function(t,e,n){var r;return n(t,(function(t,n,o){if(e(t,n,o))return r=n,!1})),r},_=function(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1},S=function(t,e,n){return e==e?function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}(t,e,n):_(t,O,n)},x=function(t,e,n,r){for(var o=n-1,i=t.length;++o<i;)if(r(t[o],e))return o;return-1},O=function(t){return t!=t},j=function(t,e){var n=null==t?0:t.length;return n?A(t,e)/n:tt},E=function(t){return function(e){return null==e?u:e[t]}},C=function(t){return function(e){return null==t?u:t[e]}},k=function(t,e,n,r,o){return o(t,(function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)})),n},A=function(t,e){for(var n,r=-1,o=t.length;++r<o;){var i=e(t[r]);i!==u&&(n=n===u?i:n+i)}return n},P=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},I=function(t){return t?t.slice(0,q(t)+1).replace(Kt,""):t},T=function(t){return function(e){return t(e)}},L=function(t,e){return v(e,(function(e){return t[e]}))},R=function(t,e){return t.has(e)},M=function(t,e){for(var n=-1,r=t.length;++n<r&&S(e,t[n],0)>-1;);return n},D=function(t,e){for(var n=t.length;n--&&S(e,t[n],0)>-1;);return n},B=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r},N=function(t){return"\\"+Ve[t]},U=function(t){return De.test(t)},H=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n},F=function(t,e){return function(n){return t(e(n))}},V=function(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var u=t[n];u!==e&&u!==G||(t[n]=G,i[o++]=n)}return i},$=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},z=function(t){return U(t)?function(t){for(var e=Re.lastIndex=0;Re.test(t);)++e;return e}(t):un(t)},K=function(t){return U(t)?t.match(Re)||[]:t.split("")},q=function(t){for(var e=t.length;e--&&qt.test(t.charAt(e)););return e},W="Expected a function",Z="__lodash_hash_undefined__",G="__lodash_placeholder__",J=32,Y=128,Q=1/0,X=9007199254740991,tt=NaN,et=4294967295,nt=[["ary",Y],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",J],["partialRight",64],["rearg",256]],rt="[object Arguments]",ot="[object Array]",it="[object Boolean]",ut="[object Date]",at="[object Error]",ct="[object Function]",st="[object GeneratorFunction]",lt="[object Map]",ft="[object Number]",dt="[object Object]",pt="[object Promise]",ht="[object RegExp]",vt="[object Set]",yt="[object String]",gt="[object Symbol]",mt="[object WeakMap]",bt="[object ArrayBuffer]",wt="[object DataView]",_t="[object Float32Array]",St="[object Float64Array]",xt="[object Int8Array]",Ot="[object Int16Array]",jt="[object Int32Array]",Et="[object Uint8Array]",Ct="[object Uint8ClampedArray]",kt="[object Uint16Array]",At="[object Uint32Array]",Pt=/\b__p \+= '';/g,It=/\b(__p \+=) '' \+/g,Tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Lt=/&(?:amp|lt|gt|quot|#39);/g,Rt=/[&<>"']/g,Mt=RegExp(Lt.source),Dt=RegExp(Rt.source),Bt=/<%-([\s\S]+?)%>/g,Nt=/<%([\s\S]+?)%>/g,Ut=/<%=([\s\S]+?)%>/g,Ht=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ft=/^\w*$/,Vt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$t=/[\\^$.*+?()[\]{}|]/g,zt=RegExp($t.source),Kt=/^\s+/,qt=/\s/,Wt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Zt=/\{\n\/\* \[wrapped with (.+)\] \*/,Gt=/,? & /,Jt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yt=/[()=,{}\[\]\/\s]/,Qt=/\\(\\)?/g,Xt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,te=/\w*$/,ee=/^[-+]0x[0-9a-f]+$/i,ne=/^0b[01]+$/i,re=/^\[object .+?Constructor\]$/,oe=/^0o[0-7]+$/i,ie=/^(?:0|[1-9]\d*)$/,ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ae=/($^)/,ce=/['\n\r\u2028\u2029\\]/g,se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",le="a-z\\xdf-\\xf6\\xf8-\\xff",fe="A-Z\\xc0-\\xd6\\xd8-\\xde",de="\\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",pe="["+de+"]",he="["+se+"]",ve="\\d+",ye="["+le+"]",ge="[^\ud800-\udfff"+de+ve+"\\u2700-\\u27bf"+le+fe+"]",me="\ud83c[\udffb-\udfff]",be="[^\ud800-\udfff]",we="(?:\ud83c[\udde6-\uddff]){2}",_e="[\ud800-\udbff][\udc00-\udfff]",Se="["+fe+"]",xe="(?:"+ye+"|"+ge+")",Oe="(?:"+Se+"|"+ge+")",je="(?:['’](?:d|ll|m|re|s|t|ve))?",Ee="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ce="(?:"+he+"|"+me+")?",ke="[\\ufe0e\\ufe0f]?",Ae=ke+Ce+"(?:\\u200d(?:"+[be,we,_e].join("|")+")"+ke+Ce+")*",Pe="(?:"+["[\\u2700-\\u27bf]",we,_e].join("|")+")"+Ae,Ie="(?:"+[be+he+"?",he,we,_e,"[\ud800-\udfff]"].join("|")+")",Te=RegExp("['’]","g"),Le=RegExp(he,"g"),Re=RegExp(me+"(?="+me+")|"+Ie+Ae,"g"),Me=RegExp([Se+"?"+ye+"+"+je+"(?="+[pe,Se,"$"].join("|")+")",Oe+"+"+Ee+"(?="+[pe,Se+xe,"$"].join("|")+")",Se+"?"+xe+"+"+je,Se+"+"+Ee,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve,Pe].join("|"),"g"),De=RegExp("[\\u200d\ud800-\udfff"+se+"\\ufe0e\\ufe0f]"),Be=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ne=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ue=-1,He={};He[_t]=He[St]=He[xt]=He[Ot]=He[jt]=He[Et]=He[Ct]=He[kt]=He[At]=!0,He[rt]=He[ot]=He[bt]=He[it]=He[wt]=He[ut]=He[at]=He[ct]=He[lt]=He[ft]=He[dt]=He[ht]=He[vt]=He[yt]=He[mt]=!1;var Fe={};Fe[rt]=Fe[ot]=Fe[bt]=Fe[wt]=Fe[it]=Fe[ut]=Fe[_t]=Fe[St]=Fe[xt]=Fe[Ot]=Fe[jt]=Fe[lt]=Fe[ft]=Fe[dt]=Fe[ht]=Fe[vt]=Fe[yt]=Fe[gt]=Fe[Et]=Fe[Ct]=Fe[kt]=Fe[At]=!0,Fe[at]=Fe[ct]=Fe[mt]=!1;var Ve={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$e=parseFloat,ze=parseInt,Ke="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,qe="object"==typeof self&&self&&self.Object===Object&&self,We=Ke||qe||Function("return this")(),Ze=e&&!e.nodeType&&e,Ge=Ze&&t&&!t.nodeType&&t,Je=Ge&&Ge.exports===Ze,Ye=Je&&Ke.process,Qe=function(){try{return Ge&&Ge.require&&Ge.require("util").types||Ye&&Ye.binding&&Ye.binding("util")}catch(t){}}(),Xe=Qe&&Qe.isArrayBuffer,tn=Qe&&Qe.isDate,en=Qe&&Qe.isMap,nn=Qe&&Qe.isRegExp,rn=Qe&&Qe.isSet,on=Qe&&Qe.isTypedArray,un=E("length"),an=C({À:"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"}),cn=C({"&":"&","<":"<",">":">",'"':""","'":"'"}),sn=C({"&":"&","<":"<",">":">",""":'"',"'":"'"}),ln=function t(e){var n,i,C=function(t){if(Po(t)&&!Pa(t)&&!r(t,le)){if(r(t,se))return t;if(bi.call(t,"__wrapped__"))return no(t)}return new se(t)},qt=function(){},se=function(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=u},le=function(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=et,this.__views__=[]},fe=function(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}},de=function(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}},pe=function(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}},he=function(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new pe;++e<n;)this.add(t[e])},ve=function(t){var e=this.__data__=new de(t);this.size=e.size},ye=function(t,e){var n=Pa(t),r=!n&&Aa(t),o=!n&&!r&&Ta(t),i=!n&&!r&&!o&&Ba(t),u=n||r||o||i,a=u?P(t.length,di):[],c=a.length;for(var s in t)!e&&!bi.call(t,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Hr(s,c))||a.push(s);return a},ge=function(t){var e=t.length;return e?t[kn(0,e-1)]:u},me=function(t,e){return Xr(or(t),Ce(e,0,t.length))},be=function(t){return Xr(or(t))},we=function(t,e,n){(n!==u&&!So(t[e],n)||n===u&&!(e in t))&&je(t,e,n)},_e=function(t,e,n){var r=t[e];bi.call(t,e)&&So(r,n)&&(n!==u||e in t)||je(t,e,n)},Se=function(t,e){for(var n=t.length;n--;)if(So(t[n][0],e))return n;return-1},xe=function(t,e,n,r){return mu(t,(function(t,o,i){e(r,t,n(t),i)})),r},Oe=function(t,e){return t&&ir(e,zo(e),t)},je=function(t,e,n){"__proto__"==e&&Bi?Bi(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},Ee=function(t,e){for(var n=-1,r=e.length,o=ii(r),i=null==t;++n<r;)o[n]=i?u:Vo(t,e[n]);return o},Ce=function(t,e,n){return t==t&&(n!==u&&(t=t<=n?t:n),e!==u&&(t=t>=e?t:e)),t},ke=function(t,e,n){var r=n.length;if(null==t)return!r;for(t=li(t);r--;){var o=n[r],i=e[o],a=t[o];if(a===u&&!(o in t)||!i(a))return!1}return!0},Ae=function(t,e,n){if("function"!=typeof t)throw new pi(W);return Fu((function(){t.apply(u,n)}),e)},Pe=function(t,e,n,r){var o=-1,i=p,u=!0,a=t.length,c=[],s=e.length;if(!a)return c;n&&(e=v(e,T(n))),r?(i=h,u=!1):e.length>=200&&(i=R,u=!1,e=new he(e));t:for(;++o<a;){var l=t[o],f=null==n?l:n(l);if(l=r||0!==l?l:0,u&&f==f){for(var d=s;d--;)if(e[d]===f)continue t;c.push(l)}else i(e,f,r)||c.push(l)}return c},Ie=function(t,e){var n=!0;return mu(t,(function(t,r,o){return n=!!e(t,r,o)})),n},Re=function(t,e,n){for(var r=-1,o=t.length;++r<o;){var i=t[r],a=e(i);if(null!=a&&(c===u?a==a&&!Ro(a):n(a,c)))var c=a,s=i}return s},De=function(t,e){var n=[];return mu(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n},Ve=function(t,e){return t&&_u(t,e,zo)},Ke=function(t,e){return t&&Su(t,e,zo)},qe=function(t,e){return d(e,(function(e){return Eo(t[e])}))},Ze=function(t,e){for(var n=0,r=(e=Jn(e,t)).length;null!=t&&n<r;)t=t[to(e[n++])];return n&&n==r?t:u},Ge=function(t,e,n){var r=e(t);return Pa(t)?r:y(r,n(t))},Ye=function(t){return null==t?t===u?"[object Undefined]":"[object Null]":Di&&Di in li(t)?function(t){var e=bi.call(t,Di),n=t[Di];try{t[Di]=u;var r=!0}catch(t){}var o=Si.call(t);return r&&(e?t[Di]=n:delete t[Di]),o}(t):(e=t,Si.call(e));var e},Qe=function(t,e){return t>e},un=function(t,e){return null!=t&&bi.call(t,e)},fn=function(t,e){return null!=t&&e in li(t)},dn=function(t,e,n){for(var r=n?h:p,o=t[0].length,i=t.length,a=i,c=ii(i),s=1/0,l=[];a--;){var f=t[a];a&&e&&(f=v(f,T(e))),s=Gi(f.length,s),c[a]=!n&&(e||o>=120&&f.length>=120)?new he(a&&f):u}f=t[0];var d=-1,y=c[0];t:for(;++d<o&&l.length<s;){var g=f[d],m=e?e(g):g;if(g=n||0!==g?g:0,!(y?R(y,m):r(l,m,n))){for(a=i;--a;){var b=c[a];if(!(b?R(b,m):r(t[a],m,n)))continue t}y&&y.push(m),l.push(g)}}return l},pn=function(t,e,n){var r=null==(t=Zr(t,e=Jn(e,t)))?t:t[to(ao(e))];return null==r?u:a(r,t,n)},hn=function(t){return Po(t)&&Ye(t)==rt},vn=function(t,e,n,r){var o=n.length,i=o,a=!r;if(null==t)return!i;for(t=li(t);o--;){var c=n[o];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<i;){var s=(c=n[o])[0],l=t[s],f=c[1];if(a&&c[2]){if(l===u&&!(s in t))return!1}else{var d=new ve;if(r)var p=r(l,f,s,t,e,d);if(!(p===u?xu(f,l,3,r,d):p))return!1}}return!0},yn=function(t){return!(!Ao(t)||(e=t,_i&&_i in e))&&(Eo(t)?ji:re).test(eo(t));var e},gn=function(t){return"function"==typeof t?t:null==t?Qo:"object"==typeof t?Pa(t)?Sn(t[0],t[1]):_n(t):ni(t)},mn=function(t){if(!zr(t))return Wi(t);var e=[];for(var n in li(t))bi.call(t,n)&&"constructor"!=n&&e.push(n);return e},bn=function(t,e){return t<e},wn=function(t,e){var n=-1,r=xo(t)?ii(t.length):[];return mu(t,(function(t,o,i){r[++n]=e(t,o,i)})),r},_n=function(t){var e=Mr(t);return 1==e.length&&e[0][2]?qr(e[0][0],e[0][1]):function(n){return n===t||vn(n,t,e)}},Sn=function(t,e){return Vr(t)&&Kr(e)?qr(to(t),e):function(n){var r=Vo(n,t);return r===u&&r===e?$o(n,t):xu(e,r,3)}},xn=function(t,e){var n=t.length;if(n)return Hr(e+=e<0?n:0,n)?t[e]:u},On=function(t,e,n){e=e.length?v(e,(function(t){return Pa(t)?function(e){return Ze(e,1===t.length?t[0]:t)}:t})):[Qo];var r=-1;return e=v(e,T(Lr())),function(t,e){var r=t.length;for(t.sort((function(t,e){return function(t,e,n){for(var r=-1,o=t.criteria,i=e.criteria,u=o.length,a=n.length;++r<u;){var c=er(o[r],i[r]);if(c)return r>=a?c:c*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}));r--;)t[r]=t[r].value;return t}(wn(t,(function(t,n,o){return{criteria:v(e,(function(e){return e(t)})),index:++r,value:t}})))},jn=function(t,e,n){for(var r=-1,o=e.length,i={};++r<o;){var u=e[r],a=Ze(t,u);n(a,u)&&Ln(i,Jn(u,t),a)}return i},En=function(t,e,n,r){var o=r?x:S,i=-1,u=e.length,a=t;for(t===e&&(e=or(e)),n&&(a=v(t,T(n)));++i<u;)for(var c=0,s=e[i],l=n?n(s):s;(c=o(a,l,c,r))>-1;)a!==t&&Li.call(a,c,1),Li.call(t,c,1);return t},Cn=function(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;Hr(o)?Li.call(t,o,1):Vn(t,o)}}return t},kn=function(t,e){return t+Vi(Qi()*(e-t+1))},An=function(t,e){var n="";if(!t||e<1||e>X)return n;do{e%2&&(n+=t),(e=Vi(e/2))&&(t+=t)}while(e);return n},Pn=function(t,e){return Vu(Wr(t,e,Qo),t+"")},In=function(t){return ge(Wo(t))},Tn=function(t,e){var n=Wo(t);return Xr(n,Ce(e,0,n.length))},Ln=function(t,e,n,r){if(!Ao(t))return t;for(var o=-1,i=(e=Jn(e,t)).length,a=i-1,c=t;null!=c&&++o<i;){var s=to(e[o]),l=n;if("__proto__"===s||"constructor"===s||"prototype"===s)return t;if(o!=a){var f=c[s];(l=r?r(f,s,c):u)===u&&(l=Ao(f)?f:Hr(e[o+1])?[]:{})}_e(c,s,l),c=c[s]}return t},Rn=function(t){return Xr(Wo(t))},Mn=function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=ii(o);++r<o;)i[r]=t[r+e];return i},Dn=function(t,e){var n;return mu(t,(function(t,r,o){return!(n=e(t,r,o))})),!!n},Bn=function(t,e,n){var r=0,o=null==t?r:t.length;if("number"==typeof e&&e==e&&o<=2147483647){for(;r<o;){var i=r+o>>>1,u=t[i];null!==u&&!Ro(u)&&(n?u<=e:u<e)?r=i+1:o=i}return o}return Nn(t,e,Qo,n)},Nn=function(t,e,n,r){var o=0,i=null==t?0:t.length;if(0===i)return 0;for(var a=(e=n(e))!=e,c=null===e,s=Ro(e),l=e===u;o<i;){var f=Vi((o+i)/2),d=n(t[f]),p=d!==u,h=null===d,v=d==d,y=Ro(d);if(a)var g=r||v;else g=l?v&&(r||p):c?v&&p&&(r||!h):s?v&&p&&!h&&(r||!y):!h&&!y&&(r?d<=e:d<e);g?o=f+1:i=f}return Gi(i,4294967294)},Un=function(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var u=t[n],a=e?e(u):u;if(!n||!So(a,c)){var c=a;i[o++]=0===u?0:u}}return i},Hn=function(t){return"number"==typeof t?t:Ro(t)?tt:+t},Fn=function(t,e,n){var r=-1,o=p,i=t.length,u=!0,a=[],c=a;if(n)u=!1,o=h;else if(i>=200){var s=e?null:Iu(t);if(s)return $(s);u=!1,o=R,c=new he}else c=e?[]:a;t:for(;++r<i;){var l=t[r],f=e?e(l):l;if(l=n||0!==l?l:0,u&&f==f){for(var d=c.length;d--;)if(c[d]===f)continue t;e&&c.push(f),a.push(l)}else o(c,f,n)||(c!==a&&c.push(f),a.push(l))}return a},Vn=function(t,e){return null==(t=Zr(t,e=Jn(e,t)))||delete t[to(ao(e))]},$n=function(t,e,n,r){return Ln(t,e,n(Ze(t,e)),r)},zn=function(t,e,n,r){for(var o=t.length,i=r?o:-1;(r?i--:++i<o)&&e(t[i],i,t););return n?Mn(t,r?0:i,r?i+1:o):Mn(t,r?i+1:0,r?o:i)},Kn=function(t,e){var n=t;return r(n,le)&&(n=n.value()),g(e,(function(t,e){return e.func.apply(e.thisArg,y([t],e.args))}),n)},qn=function(t,e,n){var r=t.length;if(r<2)return r?Fn(t[0]):[];for(var o=-1,i=ii(r);++o<r;)for(var u=t[o],a=-1;++a<r;)a!=o&&(i[o]=Pe(i[o]||u,t[a],e,n));return Fn(wu(i,1),e,n)},Wn=function(t,e,n){for(var r=-1,o=t.length,i=e.length,a={};++r<o;){var c=r<i?e[r]:u;n(a,t[r],c)}return a},Zn=function(t){return Oo(t)?t:[]},Gn=function(t){return"function"==typeof t?t:Qo},Jn=function(t,e){return Pa(t)?t:Vr(t,e)?[t]:$u(Fo(t))},Yn=function(t,e,n){var r=t.length;return n=n===u?r:n,!e&&n>=r?t:Mn(t,e,n)},Qn=function(t,e){if(e)return t.slice();var n=t.length,r=Ai?Ai(n):new t.constructor(n);return t.copy(r),r},Xn=function(t){var e=new t.constructor(t.byteLength);return new ki(e).set(new ki(t)),e},tr=function(t,e){var n=e?Xn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)},er=function(t,e){if(t!==e){var n=t!==u,r=null===t,o=t==t,i=Ro(t),a=e!==u,c=null===e,s=e==e,l=Ro(e);if(!c&&!l&&!i&&t>e||i&&a&&s&&!c&&!l||r&&a&&s||!n&&s||!o)return 1;if(!r&&!i&&!l&&t<e||l&&n&&o&&!r&&!i||c&&n&&o||!a&&o||!s)return-1}return 0},nr=function(t,e,n,r){for(var o=-1,i=t.length,u=n.length,a=-1,c=e.length,s=Zi(i-u,0),l=ii(c+s),f=!r;++a<c;)l[a]=e[a];for(;++o<u;)(f||o<i)&&(l[n[o]]=t[o]);for(;s--;)l[a++]=t[o++];return l},rr=function(t,e,n,r){for(var o=-1,i=t.length,u=-1,a=n.length,c=-1,s=e.length,l=Zi(i-a,0),f=ii(l+s),d=!r;++o<l;)f[o]=t[o];for(var p=o;++c<s;)f[p+c]=e[c];for(;++u<a;)(d||o<i)&&(f[p+n[u]]=t[o++]);return f},or=function(t,e){var n=-1,r=t.length;for(e||(e=ii(r));++n<r;)e[n]=t[n];return e},ir=function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,a=e.length;++i<a;){var c=e[i],s=r?r(n[c],t[c],c,n,t):u;s===u&&(s=t[c]),o?je(n,c,s):_e(n,c,s)}return n},ur=function(t,e){return function(n,r){var o=Pa(n)?c:xe,i=e?e():{};return o(n,t,Lr(r,2),i)}},ar=function(t){return Pn((function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:u,a=o>2?n[2]:u;for(i=t.length>3&&"function"==typeof i?(o--,i):u,a&&Fr(n[0],n[1],a)&&(i=o<3?u:i,o=1),e=li(e);++r<o;){var c=n[r];c&&t(e,c,r,i)}return e}))},cr=function(t,e){return function(n,r){if(null==n)return n;if(!xo(n))return t(n,r);for(var o=n.length,i=e?o:-1,u=li(n);(e?i--:++i<o)&&!1!==r(u[i],i,u););return n}},sr=function(t){return function(e,n,r){for(var o=-1,i=li(e),u=r(e),a=u.length;a--;){var c=u[t?a:++o];if(!1===n(i[c],c,i))break}return e}},lr=function(t){return function(e){var n=U(e=Fo(e))?K(e):u,r=n?n[0]:e.charAt(0),o=n?Yn(n,1).join(""):e.slice(1);return r[t]()+o}},fr=function(t){return function(e){return g(Jo(Go(e).replace(Te,"")),t,"")}},dr=function(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=yu(t.prototype),r=t.apply(n,e);return Ao(r)?r:n}},pr=function(t){return function(e,n,r){var o=li(e);if(!xo(e)){var i=Lr(n,3);e=zo(e),n=function(t){return i(o[t],t,o)}}var a=t(e,n,r);return a>-1?o[i?e[a]:a]:u}},hr=function(t){return kr((function(e){var n=e.length,r=n,o=se.prototype.thru;for(t&&e.reverse();r--;){var i=e[r];if("function"!=typeof i)throw new pi(W);if(o&&!a&&"wrapper"==Ir(i))var a=new se([],!0)}for(r=a?r:n;++r<n;){var c=Ir(i=e[r]),s="wrapper"==c?Lu(i):u;a=s&&$r(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?a[Ir(s[0])].apply(a,s[3]):1==i.length&&$r(i)?a[c]():a.thru(i)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&Pa(r))return a.plant(r).value();for(var o=0,i=n?e[o].apply(this,t):r;++o<n;)i=e[o].call(this,i);return i}}))},vr=function(t,e){return function(n,r){return o=n,i=t,u=e(r),a={},Ve(o,(function(t,e,n){i(a,u(t),e,n)})),a;var o,i,u,a}},yr=function(t,e){return function(n,r){var o;if(n===u&&r===u)return e;if(n!==u&&(o=n),r!==u){if(o===u)return r;"string"==typeof n||"string"==typeof r?(n=Cu(n),r=Cu(r)):(n=Hn(n),r=Hn(r)),o=t(n,r)}return o}},gr=function(t){return kr((function(e){return e=v(e,T(Lr())),Pn((function(n){var r=this;return t(e,(function(t){return a(t,r,n)}))}))}))},mr=function(t,e){var n=(e=e===u?" ":Cu(e)).length;if(n<2)return n?An(e,t):e;var r=An(e,Fi(t/z(e)));return U(e)?Yn(K(r),0,t).join(""):r.slice(0,t)},br=function(t){return function(e,n,r){return r&&"number"!=typeof r&&Fr(e,n,r)&&(n=r=u),e=Do(e),n===u?(n=e,e=0):n=Do(n),function(t,e,n,r){for(var o=-1,i=Zi(Fi((e-t)/(n||1)),0),u=ii(i);i--;)u[r?i:++o]=t,t+=n;return u}(e,n,r=r===u?e<n?1:-1:Do(r),t)}},wr=function(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Uo(e),n=Uo(n)),t(e,n)}},_r=function(t,e,n,r,o,i,a,c,s,l){var f=8&e;e|=f?J:64,4&(e&=~(f?64:J))||(e&=-4);var d=[t,e,o,f?i:u,f?a:u,f?u:i,f?u:a,c,s,l],p=n.apply(u,d);return $r(t)&&Hu(p,d),p.placeholder=r,Yr(p,t,e)},Sr=function(t){var e=si[t];return function(t,n){if(t=Uo(t),(n=null==n?0:Gi(Bo(n),292))&&Ki(t)){var r=(Fo(t)+"e").split("e");return+((r=(Fo(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}},xr=function(t){return function(e){var n,r,o=Du(e);return o==lt?H(e):o==vt?function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}(e):(n=e,r=t(e),v(r,(function(t){return[t,n[t]]})))}},Or=function(t,e,n,o,i,c,s,l){var f=2&e;if(!f&&"function"!=typeof t)throw new pi(W);var d=o?o.length:0;if(d||(e&=-97,o=i=u),s=s===u?s:Zi(Bo(s),0),l=l===u?l:Bo(l),d-=i?i.length:0,64&e){var p=o,h=i;o=i=u}var v,y,g,m,b=f?u:Lu(t),w=[t,e,n,o,i,p,h,c,s,l];if(b&&function(t,e){var n=t[1],r=e[1],o=n|r,i=o<131,u=r==Y&&8==n||r==Y&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!i&&!u)return t;1&r&&(t[2]=e[2],o|=1&n?0:4);var a=e[3];if(a){var c=t[3];t[3]=c?nr(c,a,e[4]):a,t[4]=c?V(t[3],G):e[4]}(a=e[5])&&(c=t[5],t[5]=c?rr(c,a,e[6]):a,t[6]=c?V(t[5],G):e[6]),(a=e[7])&&(t[7]=a),r&Y&&(t[8]=null==t[8]?e[8]:Gi(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o}(w,b),t=w[0],e=w[1],n=w[2],o=w[3],i=w[4],!(l=w[9]=w[9]===u?f?0:t.length:Zi(w[9]-d,0))&&24&e&&(e&=-25),e&&1!=e)_=8==e||16==e?(y=e,g=l,m=dr(v=t),function t(){for(var e=arguments.length,n=ii(e),o=e,i=Tr(t);o--;)n[o]=arguments[o];var c=e<3&&n[0]!==i&&n[e-1]!==i?[]:V(n,i);return(e-=c.length)<g?_r(v,y,Pu,t.placeholder,u,n,c,u,u,g-e):a(this&&this!==We&&r(this,t)?m:v,this,n)}):e!=J&&33!=e||i.length?Pu.apply(u,w):function(t,e,n,o){var i=1&e,u=dr(t);return function e(){for(var c=-1,s=arguments.length,l=-1,f=o.length,d=ii(f+s),p=this&&this!==We&&r(this,e)?u:t;++l<f;)d[l]=o[l];for(;s--;)d[l++]=arguments[++c];return a(p,i?n:this,d)}}(t,e,n,o);else var _=function(t,e,n){var o=1&e,i=dr(t);return function e(){return(this&&this!==We&&r(this,e)?i:t).apply(o?n:this,arguments)}}(t,e,n);return Yr((b?ju:Hu)(_,w),t,e)},jr=function(t,e,n,r){return t===u||So(t,yi[n])&&!bi.call(r,n)?e:t},Er=function(t){return To(t)?u:t},Cr=function(t,e,n,r,o,i){var a=1&n,c=t.length,s=e.length;if(c!=s&&!(a&&s>c))return!1;var l=i.get(t),f=i.get(e);if(l&&f)return l==e&&f==t;var d=-1,p=!0,h=2&n?new he:u;for(i.set(t,e),i.set(e,t);++d<c;){var v=t[d],y=e[d];if(r)var g=a?r(y,v,d,e,t,i):r(v,y,d,t,e,i);if(g!==u){if(g)continue;p=!1;break}if(h){if(!b(e,(function(t,e){if(!R(h,e)&&(v===t||o(v,t,n,r,i)))return h.push(e)}))){p=!1;break}}else if(v!==y&&!o(v,y,n,r,i)){p=!1;break}}return i.delete(t),i.delete(e),p},kr=function(t){return Vu(Wr(t,u,io),t+"")},Ar=function(t){return Ge(t,zo,Ru)},Pr=function(t){return Ge(t,Ko,Mu)},Ir=function(t){for(var e=t.name+"",n=au[e],r=bi.call(au,e)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==t)return o.name}return e},Tr=function(t){return(bi.call(C,"placeholder")?C:t).placeholder},Lr=function(){var t=C.iteratee||Xo;return t=t===Xo?gn:t,arguments.length?t(arguments[0],arguments[1]):t},Rr=function(t,e){var n,r,i=t.__data__;return("string"==(r=o(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map},Mr=function(t){for(var e=zo(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,Kr(o)]}return e},Dr=function(t,e){var n,r=null==(n=t)?u:n[e];return yn(r)?r:u},Br=function(t,e,n){for(var r=-1,o=(e=Jn(e,t)).length,i=!1;++r<o;){var u=to(e[r]);if(!(i=null!=t&&n(t,u)))break;t=t[u]}return i||++r!=o?i:!!(o=null==t?0:t.length)&&ko(o)&&Hr(u,o)&&(Pa(t)||Aa(t))},Nr=function(t){return"function"!=typeof t.constructor||zr(t)?{}:yu(Pi(t))},Ur=function(t){return Pa(t)||Aa(t)||!!(Ri&&t&&t[Ri])},Hr=function(t,e){var n=void 0===t?"undefined":o(t);return!!(e=null==e?X:e)&&("number"==n||"symbol"!=n&&ie.test(t))&&t>-1&&t%1==0&&t<e},Fr=function(t,e,n){if(!Ao(n))return!1;var r=void 0===e?"undefined":o(e);return!!("number"==r?xo(n)&&Hr(e,n.length):"string"==r&&e in n)&&So(n[e],t)},Vr=function(t,e){if(Pa(t))return!1;var n=void 0===t?"undefined":o(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Ro(t))||Ft.test(t)||!Ht.test(t)||null!=e&&t in li(e)},$r=function(t){var e=Ir(t),n=C[e];if("function"!=typeof n||!(e in le.prototype))return!1;if(t===n)return!0;var r=Lu(n);return!!r&&t===r[0]},zr=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||yi)},Kr=function(t){return t==t&&!Ao(t)},qr=function(t,e){return function(n){return null!=n&&n[t]===e&&(e!==u||t in li(n))}},Wr=function(t,e,n){return e=Zi(e===u?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Zi(r.length-e,0),u=ii(i);++o<i;)u[o]=r[e+o];o=-1;for(var c=ii(e+1);++o<e;)c[o]=r[o];return c[e]=n(u),a(t,this,c)}},Zr=function(t,e){return e.length<2?t:Ze(t,Mn(e,0,-1))},Gr=function(t,e){for(var n=t.length,r=Gi(e.length,n),o=or(t);r--;){var i=e[r];t[r]=Hr(i,n)?o[i]:u}return t},Jr=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},Yr=function(t,e,n){var r,o,i,u=e+"";return Vu(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Wt,"{\n/* [wrapped with "+e+"] */\n")}(u,(o=(r=u.match(Zt))?r[1].split(Gt):[],i=n,s(nt,(function(t){var e="_."+t[0];i&t[1]&&!p(o,e)&&o.push(e)})),o.sort())))},Qr=function(t){var e=0,n=0;return function(){var r=Ji(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(u,arguments)}},Xr=function(t,e){var n=-1,r=t.length,o=r-1;for(e=e===u?r:e;++n<e;){var i=kn(n,o),a=t[i];t[i]=t[n],t[n]=a}return t.length=e,t},to=function(t){if("string"==typeof t||Ro(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},eo=function(t){if(null!=t){try{return mi.call(t)}catch(t){}try{return t+""}catch(t){}}return""},no=function(t){if(r(t,le))return t.clone();var e=new se(t.__wrapped__,t.__chain__);return e.__actions__=or(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e},ro=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:Bo(n);return o<0&&(o=Zi(r+o,0)),_(t,Lr(e,3),o)},oo=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==u&&(o=Bo(n),o=n<0?Zi(r+o,0):Gi(o,r-1)),_(t,Lr(e,3),o,!0)},io=function(t){return null!=t&&t.length?wu(t,1):[]},uo=function(t){return t&&t.length?t[0]:u},ao=function(t){var e=null==t?0:t.length;return e?t[e-1]:u},co=function(t,e){return t&&t.length&&e&&e.length?En(t,e):t},so=function(t){return null==t?t:Xi.call(t)},lo=function(t){if(!t||!t.length)return[];var e=0;return t=d(t,(function(t){if(Oo(t))return e=Zi(t.length,e),!0})),P(e,(function(e){return v(t,E(e))}))},fo=function(t,e){if(!t||!t.length)return[];var n=lo(t);return null==e?n:v(n,(function(t){return a(e,u,t)}))},po=function(t){var e=C(t);return e.__chain__=!0,e},ho=function(t,e){return e(t)},vo=function(t,e){return(Pa(t)?s:mu)(t,Lr(e,3))},yo=function(t,e){return(Pa(t)?l:bu)(t,Lr(e,3))},go=function(t,e){return(Pa(t)?v:wn)(t,Lr(e,3))},mo=function(t,e,n){return e=n?u:e,e=t&&null==e?t.length:e,Or(t,Y,u,u,u,u,e)},bo=function(t,e){var n;if("function"!=typeof e)throw new pi(W);return t=Bo(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=u),n}},wo=function(t,e,n){var r,o,i,a,c,s,l=0,f=!1,d=!1,p=!0;if("function"!=typeof t)throw new pi(W);function h(e){var n=r,i=o;return r=o=u,l=e,a=t.apply(i,n)}function v(t){return l=t,c=Fu(g,e),f?h(t):a}function y(t){var n=t-s;return s===u||n>=e||n<0||d&&t-l>=i}function g(){var t,n,r=ya();if(y(r))return m(r);c=Fu(g,(n=e-((t=r)-s),d?Gi(n,i-(t-l)):n))}function m(t){return c=u,p&&r?h(t):(r=o=u,a)}function b(){var t=ya(),n=y(t);if(r=arguments,o=this,s=t,n){if(c===u)return v(s);if(d)return Au(c),c=Fu(g,e),h(s)}return c===u&&(c=Fu(g,e)),a}return e=Uo(e)||0,Ao(n)&&(f=!!n.leading,i=(d="maxWait"in n)?Zi(Uo(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),b.cancel=function(){c!==u&&Au(c),l=0,r=s=o=c=u},b.flush=function(){return c===u?a:m(ya())},b},_o=function(t){if("function"!=typeof t)throw new pi(W);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}},So=function(t,e){return t===e||t!=t&&e!=e},xo=function(t){return null!=t&&ko(t.length)&&!Eo(t)},Oo=function(t){return Po(t)&&xo(t)},jo=function(t){if(!Po(t))return!1;var e=Ye(t);return e==at||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!To(t)},Eo=function(t){if(!Ao(t))return!1;var e=Ye(t);return e==ct||e==st||"[object AsyncFunction]"==e||"[object Proxy]"==e},Co=function(t){return"number"==typeof t&&t==Bo(t)},ko=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=X},Ao=function(t){var e=void 0===t?"undefined":o(t);return null!=t&&("object"==e||"function"==e)},Po=function(t){return null!=t&&"object"==typeof t},Io=function(t){return"number"==typeof t||Po(t)&&Ye(t)==ft},To=function(t){if(!Po(t)||Ye(t)!=dt)return!1;var e=Pi(t);if(null===e)return!0;var n=bi.call(e,"constructor")&&e.constructor;return"function"==typeof n&&r(n,n)&&mi.call(n)==xi},Lo=function(t){return"string"==typeof t||!Pa(t)&&Po(t)&&Ye(t)==yt},Ro=function(t){return"symbol"==(void 0===t?"undefined":o(t))||Po(t)&&Ye(t)==gt},Mo=function(t){if(!t)return[];if(xo(t))return Lo(t)?K(t):or(t);if(Mi&&t[Mi])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Mi]());var e=Du(t);return(e==lt?H:e==vt?$:Wo)(t)},Do=function(t){return t?(t=Uo(t))===Q||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},Bo=function(t){var e=Do(t),n=e%1;return e==e?n?e-n:e:0},No=function(t){return t?Ce(Bo(t),0,et):0},Uo=function(t){if("number"==typeof t)return t;if(Ro(t))return tt;if(Ao(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ao(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=I(t);var n=ne.test(t);return n||oe.test(t)?ze(t.slice(2),n?2:8):ee.test(t)?tt:+t},Ho=function(t){return ir(t,Ko(t))},Fo=function(t){return null==t?"":Cu(t)},Vo=function(t,e,n){var r=null==t?u:Ze(t,e);return r===u?n:r},$o=function(t,e){return null!=t&&Br(t,e,fn)},zo=function(t){return xo(t)?ye(t):mn(t)},Ko=function(t){return xo(t)?ye(t,!0):function(t){if(!Ao(t))return function(t){var e=[];if(null!=t)for(var n in li(t))e.push(n);return e}(t);var e=zr(t),n=[];for(var r in t)("constructor"!=r||!e&&bi.call(t,r))&&n.push(r);return n}(t)},qo=function(t,e){if(null==t)return{};var n=v(Pr(t),(function(t){return[t]}));return e=Lr(e),jn(t,n,(function(t,n){return e(t,n[0])}))},Wo=function(t){return null==t?[]:L(t,zo(t))},Zo=function(t){return sc(Fo(t).toLowerCase())},Go=function(t){return(t=Fo(t))&&t.replace(ue,an).replace(Le,"")},Jo=function(t,e,n){return t=Fo(t),(e=n?u:e)===u?(r=t,Be.test(r)?function(t){return t.match(Me)||[]}(t):function(t){return t.match(Jt)||[]}(t)):t.match(e)||[];var r},Yo=function(t){return function(){return t}},Qo=function(t){return t},Xo=function(t){return gn("function"==typeof t?t:gu(t,1))},ti=function(t,e,n){var r=zo(e),o=qe(e,r);null!=n||Ao(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=qe(e,zo(e)));var i=!(Ao(n)&&"chain"in n&&!n.chain),u=Eo(t);return s(o,(function(n){var r=e[n];t[n]=r,u&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__),o=n.__actions__=or(this.__actions__);return o.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,y([this.value()],arguments))})})),t},ei=function(){},ni=function(t){return Vr(t)?E(to(t)):(e=t,function(t){return Ze(t,e)});var e},ri=function(){return[]},oi=function(){return!1},ii=(e=null==e?We:ln.defaults(We.Object(),e,ln.pick(We,Ne))).Array,ui=e.Date,ai=e.Error,ci=e.Function,si=e.Math,li=e.Object,fi=e.RegExp,di=e.String,pi=e.TypeError,hi=ii.prototype,vi=ci.prototype,yi=li.prototype,gi=e["__core-js_shared__"],mi=vi.toString,bi=yi.hasOwnProperty,wi=0,_i=(n=/[^.]+$/.exec(gi&&gi.keys&&gi.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Si=yi.toString,xi=mi.call(li),Oi=We._,ji=fi("^"+mi.call(bi).replace($t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ei=Je?e.Buffer:u,Ci=e.Symbol,ki=e.Uint8Array,Ai=Ei?Ei.allocUnsafe:u,Pi=F(li.getPrototypeOf,li),Ii=li.create,Ti=yi.propertyIsEnumerable,Li=hi.splice,Ri=Ci?Ci.isConcatSpreadable:u,Mi=Ci?Ci.iterator:u,Di=Ci?Ci.toStringTag:u,Bi=function(){try{var t=Dr(li,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ni=e.clearTimeout!==We.clearTimeout&&e.clearTimeout,Ui=ui&&ui.now!==We.Date.now&&ui.now,Hi=e.setTimeout!==We.setTimeout&&e.setTimeout,Fi=si.ceil,Vi=si.floor,$i=li.getOwnPropertySymbols,zi=Ei?Ei.isBuffer:u,Ki=e.isFinite,qi=hi.join,Wi=F(li.keys,li),Zi=si.max,Gi=si.min,Ji=ui.now,Yi=e.parseInt,Qi=si.random,Xi=hi.reverse,tu=Dr(e,"DataView"),eu=Dr(e,"Map"),nu=Dr(e,"Promise"),ru=Dr(e,"Set"),ou=Dr(e,"WeakMap"),iu=Dr(li,"create"),uu=ou&&new ou,au={},cu=eo(tu),su=eo(eu),lu=eo(nu),fu=eo(ru),du=eo(ou),pu=Ci?Ci.prototype:u,hu=pu?pu.valueOf:u,vu=pu?pu.toString:u,yu=(i=function(){},function(t){if(!Ao(t))return{};if(Ii)return Ii(t);i.prototype=t;var e=new i;return i.prototype=u,e});function gu(t,e,n,r,o,i){var a,c=1&e,l=2&e,f=4&e;if(n&&(a=o?n(t,r,o,i):n(t)),a!==u)return a;if(!Ao(t))return t;var d,p,h,v=Pa(t);if(v){if(p=(d=t).length,h=new d.constructor(p),p&&"string"==typeof d[0]&&bi.call(d,"index")&&(h.index=d.index,h.input=d.input),a=h,!c)return or(t,a)}else{var y=Du(t),g=y==ct||y==st;if(Ta(t))return Qn(t,c);if(y==dt||y==rt||g&&!o){if(a=l||g?{}:Nr(t),!c)return l?function(t,e){return ir(t,Mu(t),e)}(t,function(t,e){return t&&ir(e,Ko(e),t)}(a,t)):function(t,e){return ir(t,Ru(t),e)}(t,Oe(a,t))}else{if(!Fe[y])return o?t:{};a=function(t,e,n){var r,o=t.constructor;switch(e){case bt:return Xn(t);case it:case ut:return new o(+t);case wt:return function(t,e){var n=e?Xn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case _t:case St:case xt:case Ot:case jt:case Et:case Ct:case kt:case At:return tr(t,n);case lt:return new o;case ft:case yt:return new o(t);case ht:return function(t){var e=new t.constructor(t.source,te.exec(t));return e.lastIndex=t.lastIndex,e}(t);case vt:return new o;case gt:return r=t,hu?li(hu.call(r)):{}}}(t,y,c)}}i||(i=new ve);var m=i.get(t);if(m)return m;i.set(t,a),Da(t)?t.forEach((function(r){a.add(gu(r,e,n,r,t,i))})):Ra(t)&&t.forEach((function(r,o){a.set(o,gu(r,e,n,o,t,i))}));var b=v?u:(f?l?Pr:Ar:l?Ko:zo)(t);return s(b||t,(function(r,o){b&&(r=t[o=r]),_e(a,o,gu(r,e,n,o,t,i))})),a}C.templateSettings={escape:Bt,evaluate:Nt,interpolate:Ut,variable:"",imports:{_:C}},(C.prototype=qt.prototype).constructor=C,se.prototype=yu(qt.prototype),se.prototype.constructor=se,le.prototype=yu(qt.prototype),le.prototype.constructor=le,fe.prototype.clear=function(){this.__data__=iu?iu(null):{},this.size=0},fe.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},fe.prototype.get=function(t){var e=this.__data__;if(iu){var n=e[t];return n===Z?u:n}return bi.call(e,t)?e[t]:u},fe.prototype.has=function(t){var e=this.__data__;return iu?e[t]!==u:bi.call(e,t)},fe.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=iu&&e===u?Z:e,this},de.prototype.clear=function(){this.__data__=[],this.size=0},de.prototype.delete=function(t){var e=this.__data__,n=Se(e,t);return!(n<0||(n==e.length-1?e.pop():Li.call(e,n,1),--this.size,0))},de.prototype.get=function(t){var e=this.__data__,n=Se(e,t);return n<0?u:e[n][1]},de.prototype.has=function(t){return Se(this.__data__,t)>-1},de.prototype.set=function(t,e){var n=this.__data__,r=Se(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},pe.prototype.clear=function(){this.size=0,this.__data__={hash:new fe,map:new(eu||de),string:new fe}},pe.prototype.delete=function(t){var e=Rr(this,t).delete(t);return this.size-=e?1:0,e},pe.prototype.get=function(t){return Rr(this,t).get(t)},pe.prototype.has=function(t){return Rr(this,t).has(t)},pe.prototype.set=function(t,e){var n=Rr(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},he.prototype.add=he.prototype.push=function(t){return this.__data__.set(t,Z),this},he.prototype.has=function(t){return this.__data__.has(t)},ve.prototype.clear=function(){this.__data__=new de,this.size=0},ve.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},ve.prototype.get=function(t){return this.__data__.get(t)},ve.prototype.has=function(t){return this.__data__.has(t)},ve.prototype.set=function(t,e){var n=this.__data__;if(r(n,de)){var o=n.__data__;if(!eu||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new pe(o)}return n.set(t,e),this.size=n.size,this};var mu=cr(Ve),bu=cr(Ke,!0);function wu(t,e,n,r,o){var i=-1,u=t.length;for(n||(n=Ur),o||(o=[]);++i<u;){var a=t[i];e>0&&n(a)?e>1?wu(a,e-1,n,r,o):y(o,a):r||(o[o.length]=a)}return o}var _u=sr(),Su=sr(!0);function xu(t,e,n,o,i){return t===e||(null==t||null==e||!Po(t)&&!Po(e)?t!=t&&e!=e:function(t,e,n,o,i,a){var c=Pa(t),s=Pa(e),l=c?ot:Du(t),f=s?ot:Du(e),d=(l=l==rt?dt:l)==dt,p=(f=f==rt?dt:f)==dt,h=l==f;if(h&&Ta(t)){if(!Ta(e))return!1;c=!0,d=!1}if(h&&!d)return a||(a=new ve),c||Ba(t)?Cr(t,e,n,o,i,a):function(t,e,n,r,o,i,u){switch(n){case wt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case bt:return!(t.byteLength!=e.byteLength||!i(new ki(t),new ki(e)));case it:case ut:case ft:return So(+t,+e);case at:return t.name==e.name&&t.message==e.message;case ht:case yt:return t==e+"";case lt:var a=H;case vt:var c=1&r;if(a||(a=$),t.size!=e.size&&!c)return!1;var s=u.get(t);if(s)return s==e;r|=2,u.set(t,e);var l=Cr(a(t),a(e),r,o,i,u);return u.delete(t),l;case gt:if(hu)return hu.call(t)==hu.call(e)}return!1}(t,e,l,n,o,i,a);if(!(1&n)){var v=d&&bi.call(t,"__wrapped__"),y=p&&bi.call(e,"__wrapped__");if(v||y){var g=v?t.value():t,m=y?e.value():e;return a||(a=new ve),i(g,m,n,o,a)}}return!!h&&(a||(a=new ve),function(t,e,n,o,i,a){var c=1&n,s=Ar(t),l=s.length;if(l!=Ar(e).length&&!c)return!1;for(var f=l;f--;){var d=s[f];if(!(c?d in e:bi.call(e,d)))return!1}var p=a.get(t),h=a.get(e);if(p&&h)return p==e&&h==t;var v=!0;a.set(t,e),a.set(e,t);for(var y=c;++f<l;){var g=t[d=s[f]],m=e[d];if(o)var b=c?o(m,g,d,e,t,a):o(g,m,d,t,e,a);if(!(b===u?g===m||i(g,m,n,o,a):b)){v=!1;break}y||(y="constructor"==d)}if(v&&!y){var w=t.constructor,_=e.constructor;w==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&r(w,w)&&"function"==typeof _&&r(_,_)||(v=!1)}return a.delete(t),a.delete(e),v}(t,e,n,o,i,a))}(t,e,n,o,xu,i))}function Ou(t,e,n,r,o){t!==e&&_u(e,(function(i,a){if(o||(o=new ve),Ao(i))!function(t,e,n,r,o,i,a){var c=Jr(t,n),s=Jr(e,n),l=a.get(s);if(l)we(t,n,l);else{var f=i?i(c,s,n+"",t,e,a):u,d=f===u;if(d){var p=Pa(s),h=!p&&Ta(s),v=!p&&!h&&Ba(s);f=s,p||h||v?Pa(c)?f=c:Oo(c)?f=or(c):h?(d=!1,f=Qn(s,!0)):v?(d=!1,f=tr(s,!0)):f=[]:To(s)||Aa(s)?(f=c,Aa(c)?f=Ho(c):Ao(c)&&!Eo(c)||(f=Nr(s))):d=!1}d&&(a.set(s,f),o(f,s,r,i,a),a.delete(s)),we(t,n,f)}}(t,e,a,n,Ou,r,o);else{var c=r?r(Jr(t,a),i,a+"",t,e,o):u;c===u&&(c=i),we(t,a,c)}}),Ko)}var ju=uu?function(t,e){return uu.set(t,e),t}:Qo,Eu=Bi?function(t,e){return Bi(t,"toString",{configurable:!0,enumerable:!1,value:Yo(e),writable:!0})}:Qo;function Cu(t){if("string"==typeof t)return t;if(Pa(t))return v(t,Cu)+"";if(Ro(t))return vu?vu.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}var ku=Pn,Au=Ni||function(t){return We.clearTimeout(t)};function Pu(t,e,n,o,i,a,c,s,l,f){var d=e&Y,p=1&e,h=2&e,v=24&e,y=512&e,g=h?u:dr(t);return function u(){for(var m=arguments.length,b=ii(m),w=m;w--;)b[w]=arguments[w];if(v)var _=Tr(u),S=B(b,_);if(o&&(b=nr(b,o,i,v)),a&&(b=rr(b,a,c,v)),m-=S,v&&m<f){var x=V(b,_);return _r(t,e,Pu,u.placeholder,n,b,x,s,l,f-m)}var O=p?n:this,j=h?O[t]:t;return m=b.length,s?b=Gr(b,s):y&&m>1&&b.reverse(),d&&l<m&&(b.length=l),this&&this!==We&&r(this,u)&&(j=g||dr(j)),j.apply(O,b)}}var Iu=ru&&1/$(new ru([,-0]))[1]==Q?function(t){return new ru(t)}:ei;function Tu(t,e,n,r,o,i){return Ao(t)&&Ao(e)&&(i.set(e,t),Ou(t,e,u,Tu,i),i.delete(e)),t}var Lu=uu?function(t){return uu.get(t)}:ei,Ru=$i?function(t){return null==t?[]:(t=li(t),d($i(t),(function(e){return Ti.call(t,e)})))}:ri,Mu=$i?function(t){for(var e=[];t;)y(e,Ru(t)),t=Pi(t);return e}:ri,Du=Ye;(tu&&Du(new tu(new ArrayBuffer(1)))!=wt||eu&&Du(new eu)!=lt||nu&&Du(nu.resolve())!=pt||ru&&Du(new ru)!=vt||ou&&Du(new ou)!=mt)&&(Du=function(t){var e=Ye(t),n=e==dt?t.constructor:u,r=n?eo(n):"";if(r)switch(r){case cu:return wt;case su:return lt;case lu:return pt;case fu:return vt;case du:return mt}return e});var Bu,Nu,Uu=gi?Eo:oi,Hu=Qr(ju),Fu=Hi||function(t,e){return We.setTimeout(t,e)},Vu=Qr(Eu),$u=(Bu=_a((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Vt,(function(t,n,r,o){e.push(r?o.replace(Qt,"$1"):n||t)})),e}),(function(t){return 500===Nu.size&&Nu.clear(),t})),Nu=Bu.cache,Bu),zu=Pn((function(t,e){return Oo(t)?Pe(t,wu(e,1,Oo,!0)):[]})),Ku=Pn((function(t,e){var n=ao(e);return Oo(n)&&(n=u),Oo(t)?Pe(t,wu(e,1,Oo,!0),Lr(n,2)):[]})),qu=Pn((function(t,e){var n=ao(e);return Oo(n)&&(n=u),Oo(t)?Pe(t,wu(e,1,Oo,!0),u,n):[]})),Wu=Pn((function(t){var e=v(t,Zn);return e.length&&e[0]===t[0]?dn(e):[]})),Zu=Pn((function(t){var e=ao(t),n=v(t,Zn);return e===ao(n)?e=u:n.pop(),n.length&&n[0]===t[0]?dn(n,Lr(e,2)):[]})),Gu=Pn((function(t){var e=ao(t),n=v(t,Zn);return(e="function"==typeof e?e:u)&&n.pop(),n.length&&n[0]===t[0]?dn(n,u,e):[]})),Ju=Pn(co),Yu=kr((function(t,e){var n=null==t?0:t.length,r=Ee(t,e);return Cn(t,v(e,(function(t){return Hr(t,n)?+t:t})).sort(er)),r})),Qu=Pn((function(t){return Fn(wu(t,1,Oo,!0))})),Xu=Pn((function(t){var e=ao(t);return Oo(e)&&(e=u),Fn(wu(t,1,Oo,!0),Lr(e,2))})),ta=Pn((function(t){var e=ao(t);return e="function"==typeof e?e:u,Fn(wu(t,1,Oo,!0),u,e)})),ea=Pn((function(t,e){return Oo(t)?Pe(t,e):[]})),na=Pn((function(t){return qn(d(t,Oo))})),ra=Pn((function(t){var e=ao(t);return Oo(e)&&(e=u),qn(d(t,Oo),Lr(e,2))})),oa=Pn((function(t){var e=ao(t);return e="function"==typeof e?e:u,qn(d(t,Oo),u,e)})),ia=Pn(lo),ua=Pn((function(t){var e=t.length,n=e>1?t[e-1]:u;return n="function"==typeof n?(t.pop(),n):u,fo(t,n)})),aa=kr((function(t){var e=t.length,n=e?t[0]:0,o=this.__wrapped__,i=function(e){return Ee(e,t)};return e>1||this.__actions__.length||!r(o,le)||!Hr(n)?this.thru(i):((o=o.slice(n,+n+(e?1:0))).__actions__.push({func:ho,args:[i],thisArg:u}),new se(o,this.__chain__).thru((function(t){return e&&!t.length&&t.push(u),t})))})),ca=ur((function(t,e,n){bi.call(t,n)?++t[n]:je(t,n,1)})),sa=pr(ro),la=pr(oo),fa=ur((function(t,e,n){bi.call(t,n)?t[n].push(e):je(t,n,[e])})),da=Pn((function(t,e,n){var r=-1,o="function"==typeof e,i=xo(t)?ii(t.length):[];return mu(t,(function(t){i[++r]=o?a(e,t,n):pn(t,e,n)})),i})),pa=ur((function(t,e,n){je(t,n,e)})),ha=ur((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),va=Pn((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Fr(t,e[0],e[1])?e=[]:n>2&&Fr(e[0],e[1],e[2])&&(e=[e[0]]),On(t,wu(e,1),[])})),ya=Ui||function(){return We.Date.now()},ga=Pn((function(t,e,n){var r=1;if(n.length){var o=V(n,Tr(ga));r|=J}return Or(t,r,e,n,o)})),ma=Pn((function(t,e,n){var r=3;if(n.length){var o=V(n,Tr(ma));r|=J}return Or(e,r,t,n,o)})),ba=Pn((function(t,e){return Ae(t,1,e)})),wa=Pn((function(t,e,n){return Ae(t,Uo(e)||0,n)}));function _a(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new pi(W);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return n.cache=i.set(o,u)||i,u};return n.cache=new(_a.Cache||pe),n}_a.Cache=pe;var Sa,xa=ku((function(t,e){var n=(e=1==e.length&&Pa(e[0])?v(e[0],T(Lr())):v(wu(e,1),T(Lr()))).length;return Pn((function(r){for(var o=-1,i=Gi(r.length,n);++o<i;)r[o]=e[o].call(this,r[o]);return a(t,this,r)}))})),Oa=Pn((function(t,e){var n=V(e,Tr(Oa));return Or(t,J,u,e,n)})),ja=Pn((function(t,e){var n=V(e,Tr(ja));return Or(t,64,u,e,n)})),Ea=kr((function(t,e){return Or(t,256,u,u,u,e)})),Ca=wr(Qe),ka=wr((function(t,e){return t>=e})),Aa=hn(function(){return arguments}())?hn:function(t){return Po(t)&&bi.call(t,"callee")&&!Ti.call(t,"callee")},Pa=ii.isArray,Ia=Xe?T(Xe):function(t){return Po(t)&&Ye(t)==bt},Ta=zi||oi,La=tn?T(tn):function(t){return Po(t)&&Ye(t)==ut},Ra=en?T(en):function(t){return Po(t)&&Du(t)==lt},Ma=nn?T(nn):function(t){return Po(t)&&Ye(t)==ht},Da=rn?T(rn):function(t){return Po(t)&&Du(t)==vt},Ba=on?T(on):function(t){return Po(t)&&ko(t.length)&&!!He[Ye(t)]},Na=wr(bn),Ua=wr((function(t,e){return t<=e})),Ha=ar((function(t,e){if(zr(e)||xo(e))ir(e,zo(e),t);else for(var n in e)bi.call(e,n)&&_e(t,n,e[n])})),Fa=ar((function(t,e){ir(e,Ko(e),t)})),Va=ar((function(t,e,n,r){ir(e,Ko(e),t,r)})),$a=ar((function(t,e,n,r){ir(e,zo(e),t,r)})),za=kr(Ee),Ka=Pn((function(t,e){t=li(t);var n=-1,r=e.length,o=r>2?e[2]:u;for(o&&Fr(e[0],e[1],o)&&(r=1);++n<r;)for(var i=e[n],a=Ko(i),c=-1,s=a.length;++c<s;){var l=a[c],f=t[l];(f===u||So(f,yi[l])&&!bi.call(t,l))&&(t[l]=i[l])}return t})),qa=Pn((function(t){return t.push(u,Tu),a(Ya,u,t)})),Wa=vr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Si.call(e)),t[e]=n}),Yo(Qo)),Za=vr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Si.call(e)),bi.call(t,e)?t[e].push(n):t[e]=[n]}),Lr),Ga=Pn(pn),Ja=ar((function(t,e,n){Ou(t,e,n)})),Ya=ar((function(t,e,n,r){Ou(t,e,n,r)})),Qa=kr((function(t,e){var n={};if(null==t)return n;var r=!1;e=v(e,(function(e){return e=Jn(e,t),r||(r=e.length>1),e})),ir(t,Pr(t),n),r&&(n=gu(n,7,Er));for(var o=e.length;o--;)Vn(n,e[o]);return n})),Xa=kr((function(t,e){return null==t?{}:jn(n=t,e,(function(t,e){return $o(n,e)}));var n})),tc=xr(zo),ec=xr(Ko),nc=fr((function(t,e,n){return e=e.toLowerCase(),t+(n?Zo(e):e)})),rc=fr((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),oc=fr((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),ic=lr("toLowerCase"),uc=fr((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),ac=fr((function(t,e,n){return t+(n?" ":"")+sc(e)})),cc=fr((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),sc=lr("toUpperCase"),lc=Pn((function(t,e){try{return a(t,u,e)}catch(t){return jo(t)?t:new ai(t)}})),fc=kr((function(t,e){return s(e,(function(e){e=to(e),je(t,e,ga(t[e],t))})),t})),dc=hr(),pc=hr(!0),hc=Pn((function(t,e){return function(n){return pn(n,t,e)}})),vc=Pn((function(t,e){return function(n){return pn(t,n,e)}})),yc=gr(v),gc=gr(f),mc=gr(b),bc=br(),wc=br(!0),_c=yr((function(t,e){return t+e}),0),Sc=Sr("ceil"),xc=yr((function(t,e){return t/e}),1),Oc=Sr("floor"),jc=yr((function(t,e){return t*e}),1),Ec=Sr("round"),Cc=yr((function(t,e){return t-e}),0);return C.after=function(t,e){if("function"!=typeof e)throw new pi(W);return t=Bo(t),function(){if(--t<1)return e.apply(this,arguments)}},C.ary=mo,C.assign=Ha,C.assignIn=Fa,C.assignInWith=Va,C.assignWith=$a,C.at=za,C.before=bo,C.bind=ga,C.bindAll=fc,C.bindKey=ma,C.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Pa(t)?t:[t]},C.chain=po,C.chunk=function(t,e,n){e=(n?Fr(t,e,n):e===u)?1:Zi(Bo(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var o=0,i=0,a=ii(Fi(r/e));o<r;)a[i++]=Mn(t,o,o+=e);return a},C.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,o=[];++e<n;){var i=t[e];i&&(o[r++]=i)}return o},C.concat=function(){var t=arguments.length;if(!t)return[];for(var e=ii(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return y(Pa(n)?or(n):[n],wu(e,1))},C.cond=function(t){var e=null==t?0:t.length,n=Lr();return t=e?v(t,(function(t){if("function"!=typeof t[1])throw new pi(W);return[n(t[0]),t[1]]})):[],Pn((function(n){for(var r=-1;++r<e;){var o=t[r];if(a(o[0],this,n))return a(o[1],this,n)}}))},C.conforms=function(t){return e=gu(t,1),n=zo(e),function(t){return ke(t,e,n)};var e,n},C.constant=Yo,C.countBy=ca,C.create=function(t,e){var n=yu(t);return null==e?n:Oe(n,e)},C.curry=function t(e,n,r){var o=Or(e,8,u,u,u,u,u,n=r?u:n);return o.placeholder=t.placeholder,o},C.curryRight=function t(e,n,r){var o=Or(e,16,u,u,u,u,u,n=r?u:n);return o.placeholder=t.placeholder,o},C.debounce=wo,C.defaults=Ka,C.defaultsDeep=qa,C.defer=ba,C.delay=wa,C.difference=zu,C.differenceBy=Ku,C.differenceWith=qu,C.drop=function(t,e,n){var r=null==t?0:t.length;return r?Mn(t,(e=n||e===u?1:Bo(e))<0?0:e,r):[]},C.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?Mn(t,0,(e=r-(e=n||e===u?1:Bo(e)))<0?0:e):[]},C.dropRightWhile=function(t,e){return t&&t.length?zn(t,Lr(e,3),!0,!0):[]},C.dropWhile=function(t,e){return t&&t.length?zn(t,Lr(e,3),!0):[]},C.fill=function(t,e,n,r){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&Fr(t,e,n)&&(n=0,r=o),function(t,e,n,r){var o=t.length;for((n=Bo(n))<0&&(n=-n>o?0:o+n),(r=r===u||r>o?o:Bo(r))<0&&(r+=o),r=n>r?0:No(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},C.filter=function(t,e){return(Pa(t)?d:De)(t,Lr(e,3))},C.flatMap=function(t,e){return wu(go(t,e),1)},C.flatMapDeep=function(t,e){return wu(go(t,e),Q)},C.flatMapDepth=function(t,e,n){return n=n===u?1:Bo(n),wu(go(t,e),n)},C.flatten=io,C.flattenDeep=function(t){return null!=t&&t.length?wu(t,Q):[]},C.flattenDepth=function(t,e){return null!=t&&t.length?wu(t,e=e===u?1:Bo(e)):[]},C.flip=function(t){return Or(t,512)},C.flow=dc,C.flowRight=pc,C.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r},C.functions=function(t){return null==t?[]:qe(t,zo(t))},C.functionsIn=function(t){return null==t?[]:qe(t,Ko(t))},C.groupBy=fa,C.initial=function(t){return null!=t&&t.length?Mn(t,0,-1):[]},C.intersection=Wu,C.intersectionBy=Zu,C.intersectionWith=Gu,C.invert=Wa,C.invertBy=Za,C.invokeMap=da,C.iteratee=Xo,C.keyBy=pa,C.keys=zo,C.keysIn=Ko,C.map=go,C.mapKeys=function(t,e){var n={};return e=Lr(e,3),Ve(t,(function(t,r,o){je(n,e(t,r,o),t)})),n},C.mapValues=function(t,e){var n={};return e=Lr(e,3),Ve(t,(function(t,r,o){je(n,r,e(t,r,o))})),n},C.matches=function(t){return _n(gu(t,1))},C.matchesProperty=function(t,e){return Sn(t,gu(e,1))},C.memoize=_a,C.merge=Ja,C.mergeWith=Ya,C.method=hc,C.methodOf=vc,C.mixin=ti,C.negate=_o,C.nthArg=function(t){return t=Bo(t),Pn((function(e){return xn(e,t)}))},C.omit=Qa,C.omitBy=function(t,e){return qo(t,_o(Lr(e)))},C.once=function(t){return bo(2,t)},C.orderBy=function(t,e,n,r){return null==t?[]:(Pa(e)||(e=null==e?[]:[e]),Pa(n=r?u:n)||(n=null==n?[]:[n]),On(t,e,n))},C.over=yc,C.overArgs=xa,C.overEvery=gc,C.overSome=mc,C.partial=Oa,C.partialRight=ja,C.partition=ha,C.pick=Xa,C.pickBy=qo,C.property=ni,C.propertyOf=function(t){return function(e){return null==t?u:Ze(t,e)}},C.pull=Ju,C.pullAll=co,C.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?En(t,e,Lr(n,2)):t},C.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?En(t,e,u,n):t},C.pullAt=Yu,C.range=bc,C.rangeRight=wc,C.rearg=Ea,C.reject=function(t,e){return(Pa(t)?d:De)(t,_o(Lr(e,3)))},C.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],i=t.length;for(e=Lr(e,3);++r<i;){var u=t[r];e(u,r,t)&&(n.push(u),o.push(r))}return Cn(t,o),n},C.rest=function(t,e){if("function"!=typeof t)throw new pi(W);return Pn(t,e=e===u?e:Bo(e))},C.reverse=so,C.sampleSize=function(t,e,n){return e=(n?Fr(t,e,n):e===u)?1:Bo(e),(Pa(t)?me:Tn)(t,e)},C.set=function(t,e,n){return null==t?t:Ln(t,e,n)},C.setWith=function(t,e,n,r){return r="function"==typeof r?r:u,null==t?t:Ln(t,e,n,r)},C.shuffle=function(t){return(Pa(t)?be:Rn)(t)},C.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Fr(t,e,n)?(e=0,n=r):(e=null==e?0:Bo(e),n=n===u?r:Bo(n)),Mn(t,e,n)):[]},C.sortBy=va,C.sortedUniq=function(t){return t&&t.length?Un(t):[]},C.sortedUniqBy=function(t,e){return t&&t.length?Un(t,Lr(e,2)):[]},C.split=function(t,e,n){return n&&"number"!=typeof n&&Fr(t,e,n)&&(e=n=u),(n=n===u?et:n>>>0)?(t=Fo(t))&&("string"==typeof e||null!=e&&!Ma(e))&&!(e=Cu(e))&&U(t)?Yn(K(t),0,n):t.split(e,n):[]},C.spread=function(t,e){if("function"!=typeof t)throw new pi(W);return e=null==e?0:Zi(Bo(e),0),Pn((function(n){var r=n[e],o=Yn(n,0,e);return r&&y(o,r),a(t,this,o)}))},C.tail=function(t){var e=null==t?0:t.length;return e?Mn(t,1,e):[]},C.take=function(t,e,n){return t&&t.length?Mn(t,0,(e=n||e===u?1:Bo(e))<0?0:e):[]},C.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Mn(t,(e=r-(e=n||e===u?1:Bo(e)))<0?0:e,r):[]},C.takeRightWhile=function(t,e){return t&&t.length?zn(t,Lr(e,3),!1,!0):[]},C.takeWhile=function(t,e){return t&&t.length?zn(t,Lr(e,3)):[]},C.tap=function(t,e){return e(t),t},C.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new pi(W);return Ao(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),wo(t,e,{leading:r,maxWait:e,trailing:o})},C.thru=ho,C.toArray=Mo,C.toPairs=tc,C.toPairsIn=ec,C.toPath=function(t){return Pa(t)?v(t,to):Ro(t)?[t]:or($u(Fo(t)))},C.toPlainObject=Ho,C.transform=function(t,e,n){var r=Pa(t),o=r||Ta(t)||Ba(t);if(e=Lr(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:Ao(t)&&Eo(i)?yu(Pi(t)):{}}return(o?s:Ve)(t,(function(t,r,o){return e(n,t,r,o)})),n},C.unary=function(t){return mo(t,1)},C.union=Qu,C.unionBy=Xu,C.unionWith=ta,C.uniq=function(t){return t&&t.length?Fn(t):[]},C.uniqBy=function(t,e){return t&&t.length?Fn(t,Lr(e,2)):[]},C.uniqWith=function(t,e){return e="function"==typeof e?e:u,t&&t.length?Fn(t,u,e):[]},C.unset=function(t,e){return null==t||Vn(t,e)},C.unzip=lo,C.unzipWith=fo,C.update=function(t,e,n){return null==t?t:$n(t,e,Gn(n))},C.updateWith=function(t,e,n,r){return r="function"==typeof r?r:u,null==t?t:$n(t,e,Gn(n),r)},C.values=Wo,C.valuesIn=function(t){return null==t?[]:L(t,Ko(t))},C.without=ea,C.words=Jo,C.wrap=function(t,e){return Oa(Gn(e),t)},C.xor=na,C.xorBy=ra,C.xorWith=oa,C.zip=ia,C.zipObject=function(t,e){return Wn(t||[],e||[],_e)},C.zipObjectDeep=function(t,e){return Wn(t||[],e||[],Ln)},C.zipWith=ua,C.entries=tc,C.entriesIn=ec,C.extend=Fa,C.extendWith=Va,ti(C,C),C.add=_c,C.attempt=lc,C.camelCase=nc,C.capitalize=Zo,C.ceil=Sc,C.clamp=function(t,e,n){return n===u&&(n=e,e=u),n!==u&&(n=(n=Uo(n))==n?n:0),e!==u&&(e=(e=Uo(e))==e?e:0),Ce(Uo(t),e,n)},C.clone=function(t){return gu(t,4)},C.cloneDeep=function(t){return gu(t,5)},C.cloneDeepWith=function(t,e){return gu(t,5,e="function"==typeof e?e:u)},C.cloneWith=function(t,e){return gu(t,4,e="function"==typeof e?e:u)},C.conformsTo=function(t,e){return null==e||ke(t,e,zo(e))},C.deburr=Go,C.defaultTo=function(t,e){return null==t||t!=t?e:t},C.divide=xc,C.endsWith=function(t,e,n){t=Fo(t),e=Cu(e);var r=t.length,o=n=n===u?r:Ce(Bo(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},C.eq=So,C.escape=function(t){return(t=Fo(t))&&Dt.test(t)?t.replace(Rt,cn):t},C.escapeRegExp=function(t){return(t=Fo(t))&&zt.test(t)?t.replace($t,"\\$&"):t},C.every=function(t,e,n){var r=Pa(t)?f:Ie;return n&&Fr(t,e,n)&&(e=u),r(t,Lr(e,3))},C.find=sa,C.findIndex=ro,C.findKey=function(t,e){return w(t,Lr(e,3),Ve)},C.findLast=la,C.findLastIndex=oo,C.findLastKey=function(t,e){return w(t,Lr(e,3),Ke)},C.floor=Oc,C.forEach=vo,C.forEachRight=yo,C.forIn=function(t,e){return null==t?t:_u(t,Lr(e,3),Ko)},C.forInRight=function(t,e){return null==t?t:Su(t,Lr(e,3),Ko)},C.forOwn=function(t,e){return t&&Ve(t,Lr(e,3))},C.forOwnRight=function(t,e){return t&&Ke(t,Lr(e,3))},C.get=Vo,C.gt=Ca,C.gte=ka,C.has=function(t,e){return null!=t&&Br(t,e,un)},C.hasIn=$o,C.head=uo,C.identity=Qo,C.includes=function(t,e,n,r){t=xo(t)?t:Wo(t),n=n&&!r?Bo(n):0;var o=t.length;return n<0&&(n=Zi(o+n,0)),Lo(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&S(t,e,n)>-1},C.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:Bo(n);return o<0&&(o=Zi(r+o,0)),S(t,e,o)},C.inRange=function(t,e,n){return e=Do(e),n===u?(n=e,e=0):n=Do(n),(r=t=Uo(t))>=Gi(o=e,i=n)&&r<Zi(o,i);var r,o,i},C.invoke=Ga,C.isArguments=Aa,C.isArray=Pa,C.isArrayBuffer=Ia,C.isArrayLike=xo,C.isArrayLikeObject=Oo,C.isBoolean=function(t){return!0===t||!1===t||Po(t)&&Ye(t)==it},C.isBuffer=Ta,C.isDate=La,C.isElement=function(t){return Po(t)&&1===t.nodeType&&!To(t)},C.isEmpty=function(t){if(null==t)return!0;if(xo(t)&&(Pa(t)||"string"==typeof t||"function"==typeof t.splice||Ta(t)||Ba(t)||Aa(t)))return!t.length;var e=Du(t);if(e==lt||e==vt)return!t.size;if(zr(t))return!mn(t).length;for(var n in t)if(bi.call(t,n))return!1;return!0},C.isEqual=function(t,e){return xu(t,e)},C.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:u)?n(t,e):u;return r===u?xu(t,e,u,n):!!r},C.isError=jo,C.isFinite=function(t){return"number"==typeof t&&Ki(t)},C.isFunction=Eo,C.isInteger=Co,C.isLength=ko,C.isMap=Ra,C.isMatch=function(t,e){return t===e||vn(t,e,Mr(e))},C.isMatchWith=function(t,e,n){return n="function"==typeof n?n:u,vn(t,e,Mr(e),n)},C.isNaN=function(t){return Io(t)&&t!=+t},C.isNative=function(t){if(Uu(t))throw new ai("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return yn(t)},C.isNil=function(t){return null==t},C.isNull=function(t){return null===t},C.isNumber=Io,C.isObject=Ao,C.isObjectLike=Po,C.isPlainObject=To,C.isRegExp=Ma,C.isSafeInteger=function(t){return Co(t)&&t>=-9007199254740991&&t<=X},C.isSet=Da,C.isString=Lo,C.isSymbol=Ro,C.isTypedArray=Ba,C.isUndefined=function(t){return t===u},C.isWeakMap=function(t){return Po(t)&&Du(t)==mt},C.isWeakSet=function(t){return Po(t)&&"[object WeakSet]"==Ye(t)},C.join=function(t,e){return null==t?"":qi.call(t,e)},C.kebabCase=rc,C.last=ao,C.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==u&&(o=(o=Bo(n))<0?Zi(r+o,0):Gi(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):_(t,O,o,!0)},C.lowerCase=oc,C.lowerFirst=ic,C.lt=Na,C.lte=Ua,C.max=function(t){return t&&t.length?Re(t,Qo,Qe):u},C.maxBy=function(t,e){return t&&t.length?Re(t,Lr(e,2),Qe):u},C.mean=function(t){return j(t,Qo)},C.meanBy=function(t,e){return j(t,Lr(e,2))},C.min=function(t){return t&&t.length?Re(t,Qo,bn):u},C.minBy=function(t,e){return t&&t.length?Re(t,Lr(e,2),bn):u},C.stubArray=ri,C.stubFalse=oi,C.stubObject=function(){return{}},C.stubString=function(){return""},C.stubTrue=function(){return!0},C.multiply=jc,C.nth=function(t,e){return t&&t.length?xn(t,Bo(e)):u},C.noConflict=function(){return We._===this&&(We._=Oi),this},C.noop=ei,C.now=ya,C.pad=function(t,e,n){t=Fo(t);var r=(e=Bo(e))?z(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return mr(Vi(o),n)+t+mr(Fi(o),n)},C.padEnd=function(t,e,n){t=Fo(t);var r=(e=Bo(e))?z(t):0;return e&&r<e?t+mr(e-r,n):t},C.padStart=function(t,e,n){t=Fo(t);var r=(e=Bo(e))?z(t):0;return e&&r<e?mr(e-r,n)+t:t},C.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),Yi(Fo(t).replace(Kt,""),e||0)},C.random=function(t,e,n){if(n&&"boolean"!=typeof n&&Fr(t,e,n)&&(e=n=u),n===u&&("boolean"==typeof e?(n=e,e=u):"boolean"==typeof t&&(n=t,t=u)),t===u&&e===u?(t=0,e=1):(t=Do(t),e===u?(e=t,t=0):e=Do(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=Qi();return Gi(t+o*(e-t+$e("1e-"+((o+"").length-1))),e)}return kn(t,e)},C.reduce=function(t,e,n){var r=Pa(t)?g:k,o=arguments.length<3;return r(t,Lr(e,4),n,o,mu)},C.reduceRight=function(t,e,n){var r=Pa(t)?m:k,o=arguments.length<3;return r(t,Lr(e,4),n,o,bu)},C.repeat=function(t,e,n){return e=(n?Fr(t,e,n):e===u)?1:Bo(e),An(Fo(t),e)},C.replace=function(){var t=arguments,e=Fo(t[0]);return t.length<3?e:e.replace(t[1],t[2])},C.result=function(t,e,n){var r=-1,o=(e=Jn(e,t)).length;for(o||(o=1,t=u);++r<o;){var i=null==t?u:t[to(e[r])];i===u&&(r=o,i=n),t=Eo(i)?i.call(t):i}return t},C.round=Ec,C.runInContext=t,C.sample=function(t){return(Pa(t)?ge:In)(t)},C.size=function(t){if(null==t)return 0;if(xo(t))return Lo(t)?z(t):t.length;var e=Du(t);return e==lt||e==vt?t.size:mn(t).length},C.snakeCase=uc,C.some=function(t,e,n){var r=Pa(t)?b:Dn;return n&&Fr(t,e,n)&&(e=u),r(t,Lr(e,3))},C.sortedIndex=function(t,e){return Bn(t,e)},C.sortedIndexBy=function(t,e,n){return Nn(t,e,Lr(n,2))},C.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=Bn(t,e);if(r<n&&So(t[r],e))return r}return-1},C.sortedLastIndex=function(t,e){return Bn(t,e,!0)},C.sortedLastIndexBy=function(t,e,n){return Nn(t,e,Lr(n,2),!0)},C.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=Bn(t,e,!0)-1;if(So(t[n],e))return n}return-1},C.startCase=ac,C.startsWith=function(t,e,n){return t=Fo(t),n=null==n?0:Ce(Bo(n),0,t.length),e=Cu(e),t.slice(n,n+e.length)==e},C.subtract=Cc,C.sum=function(t){return t&&t.length?A(t,Qo):0},C.sumBy=function(t,e){return t&&t.length?A(t,Lr(e,2)):0},C.template=function(t,e,n){var r=C.templateSettings;n&&Fr(t,e,n)&&(e=u),t=Fo(t),e=Va({},e,r,jr);var o,i,a=Va({},e.imports,r.imports,jr),c=zo(a),s=L(a,c),l=0,f=e.interpolate||ae,d="__p += '",p=fi((e.escape||ae).source+"|"+f.source+"|"+(f===Ut?Xt:ae).source+"|"+(e.evaluate||ae).source+"|$","g"),h="//# sourceURL="+(bi.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ue+"]")+"\n";t.replace(p,(function(e,n,r,u,a,c){return r||(r=u),d+=t.slice(l,c).replace(ce,N),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),a&&(i=!0,d+="';\n"+a+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+e.length,e})),d+="';\n";var v=bi.call(e,"variable")&&e.variable;if(v){if(Yt.test(v))throw new ai("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(i?d.replace(Pt,""):d).replace(It,"$1").replace(Tt,"$1;"),d="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var y=lc((function(){return ci(c,h+"return "+d).apply(u,s)}));if(y.source=d,jo(y))throw y;return y},C.times=function(t,e){if((t=Bo(t))<1||t>X)return[];var n=et,r=Gi(t,et);e=Lr(e),t-=et;for(var o=P(r,e);++n<t;)e(n);return o},C.toFinite=Do,C.toInteger=Bo,C.toLength=No,C.toLower=function(t){return Fo(t).toLowerCase()},C.toNumber=Uo,C.toSafeInteger=function(t){return t?Ce(Bo(t),-9007199254740991,X):0===t?t:0},C.toString=Fo,C.toUpper=function(t){return Fo(t).toUpperCase()},C.trim=function(t,e,n){if((t=Fo(t))&&(n||e===u))return I(t);if(!t||!(e=Cu(e)))return t;var r=K(t),o=K(e);return Yn(r,M(r,o),D(r,o)+1).join("")},C.trimEnd=function(t,e,n){if((t=Fo(t))&&(n||e===u))return t.slice(0,q(t)+1);if(!t||!(e=Cu(e)))return t;var r=K(t);return Yn(r,0,D(r,K(e))+1).join("")},C.trimStart=function(t,e,n){if((t=Fo(t))&&(n||e===u))return t.replace(Kt,"");if(!t||!(e=Cu(e)))return t;var r=K(t);return Yn(r,M(r,K(e))).join("")},C.truncate=function(t,e){var n=30,r="...";if(Ao(e)){var o="separator"in e?e.separator:o;n="length"in e?Bo(e.length):n,r="omission"in e?Cu(e.omission):r}var i=(t=Fo(t)).length;if(U(t)){var a=K(t);i=a.length}if(n>=i)return t;var c=n-z(r);if(c<1)return r;var s=a?Yn(a,0,c).join(""):t.slice(0,c);if(o===u)return s+r;if(a&&(c+=s.length-c),Ma(o)){if(t.slice(c).search(o)){var l,f=s;for(o.global||(o=fi(o.source,Fo(te.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var d=l.index;s=s.slice(0,d===u?c:d)}}else if(t.indexOf(Cu(o),c)!=c){var p=s.lastIndexOf(o);p>-1&&(s=s.slice(0,p))}return s+r},C.unescape=function(t){return(t=Fo(t))&&Mt.test(t)?t.replace(Lt,sn):t},C.uniqueId=function(t){var e=++wi;return Fo(t)+e},C.upperCase=cc,C.upperFirst=sc,C.each=vo,C.eachRight=yo,C.first=uo,ti(C,(Sa={},Ve(C,(function(t,e){bi.call(C.prototype,e)||(Sa[e]=t)})),Sa),{chain:!1}),C.VERSION="4.17.21",s(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){C[t].placeholder=C})),s(["drop","take"],(function(t,e){le.prototype[t]=function(n){n=n===u?1:Zi(Bo(n),0);var r=this.__filtered__&&!e?new le(this):this.clone();return r.__filtered__?r.__takeCount__=Gi(n,r.__takeCount__):r.__views__.push({size:Gi(n,et),type:t+(r.__dir__<0?"Right":"")}),r},le.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),s(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;le.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Lr(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),s(["head","last"],(function(t,e){var n="take"+(e?"Right":"");le.prototype[t]=function(){return this[n](1).value()[0]}})),s(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");le.prototype[t]=function(){return this.__filtered__?new le(this):this[n](1)}})),le.prototype.compact=function(){return this.filter(Qo)},le.prototype.find=function(t){return this.filter(t).head()},le.prototype.findLast=function(t){return this.reverse().find(t)},le.prototype.invokeMap=Pn((function(t,e){return"function"==typeof t?new le(this):this.map((function(n){return pn(n,t,e)}))})),le.prototype.reject=function(t){return this.filter(_o(Lr(t)))},le.prototype.slice=function(t,e){t=Bo(t);var n=this;return n.__filtered__&&(t>0||e<0)?new le(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==u&&(n=(e=Bo(e))<0?n.dropRight(-e):n.take(e-t)),n)},le.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},le.prototype.toArray=function(){return this.take(et)},Ve(le.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),o=/^(?:head|last)$/.test(e),i=C[o?"take"+("last"==e?"Right":""):e],a=o||/^find/.test(e);i&&(C.prototype[e]=function(){var e=this.__wrapped__,c=o?[1]:arguments,s=r(e,le),l=c[0],f=s||Pa(e),d=function(t){var e=i.apply(C,y([t],c));return o&&p?e[0]:e};f&&n&&"function"==typeof l&&1!=l.length&&(s=f=!1);var p=this.__chain__,h=!!this.__actions__.length,v=a&&!p,g=s&&!h;if(!a&&f){e=g?e:new le(this);var m=t.apply(e,c);return m.__actions__.push({func:ho,args:[d],thisArg:u}),new se(m,p)}return v&&g?t.apply(this,c):(m=this.thru(d),v?o?m.value()[0]:m.value():m)})})),s(["pop","push","shift","sort","splice","unshift"],(function(t){var e=hi[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);C.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(Pa(o)?o:[],t)}return this[n]((function(n){return e.apply(Pa(n)?n:[],t)}))}})),Ve(le.prototype,(function(t,e){var n=C[e];if(n){var r=n.name+"";bi.call(au,r)||(au[r]=[]),au[r].push({name:e,func:n})}})),au[Pu(u,2).name]=[{name:"wrapper",func:u}],le.prototype.clone=function(){var t=new le(this.__wrapped__);return t.__actions__=or(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=or(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=or(this.__views__),t},le.prototype.reverse=function(){if(this.__filtered__){var t=new le(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},le.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Pa(t),r=e<0,o=n?t.length:0,i=function(t,e,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],u=i.size;switch(i.type){case"drop":t+=u;break;case"dropRight":e-=u;break;case"take":e=Gi(e,t+u);break;case"takeRight":t=Zi(t,e-u)}}return{start:t,end:e}}(0,o,this.__views__),u=i.start,a=i.end,c=a-u,s=r?a:u-1,l=this.__iteratees__,f=l.length,d=0,p=Gi(c,this.__takeCount__);if(!n||!r&&o==c&&p==c)return Kn(t,this.__actions__);var h=[];t:for(;c--&&d<p;){for(var v=-1,y=t[s+=e];++v<f;){var g=l[v],m=g.iteratee,b=g.type,w=m(y);if(2==b)y=w;else if(!w){if(1==b)continue t;break t}}h[d++]=y}return h},C.prototype.at=aa,C.prototype.chain=function(){return po(this)},C.prototype.commit=function(){return new se(this.value(),this.__chain__)},C.prototype.next=function(){this.__values__===u&&(this.__values__=Mo(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?u:this.__values__[this.__index__++]}},C.prototype.plant=function(t){for(var e,n=this;r(n,qt);){var o=no(n);o.__index__=0,o.__values__=u,e?i.__wrapped__=o:e=o;var i=o;n=n.__wrapped__}return i.__wrapped__=t,e},C.prototype.reverse=function(){var t=this.__wrapped__;if(r(t,le)){var e=t;return this.__actions__.length&&(e=new le(this)),(e=e.reverse()).__actions__.push({func:ho,args:[so],thisArg:u}),new se(e,this.__chain__)}return this.thru(so)},C.prototype.toJSON=C.prototype.valueOf=C.prototype.value=function(){return Kn(this.__wrapped__,this.__actions__)},C.prototype.first=C.prototype.head,Mi&&(C.prototype[Mi]=function(){return this}),C}();We._=ln,(i=function(){return ln}.call(e,n,e,t))===u||(t.exports=i)}.call(this)},385:function(){System.register([],(function(t,e){return{execute:function(){t(function(){var t={968:function(t,e,n){var r=n(577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},577:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.y=e,r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t}();var o={};return(0,r(968).s)(1),function(){"use strict";var t=function(t,e){for(var n in e)t[n]=e[n];return t},e=function(e){var n=function(t){for(var e=[],n=0;n<o.length;n++)o[n]===t?t=null:e.push(o[n]);o=e},r=function(n,r,i){e=r?n:t(t({},e),n);for(var u=o,a=0;a<u.length;a++)u[a](e,i)},o=[];return e=e||{},{action:function(t){var n=function(e){r(e,!1,t)};return function(){for(var r=arguments,o=[e],i=0;i<arguments.length;i++)o.push(r[i]);var u=t.apply(this,o);if(null!=u)return u.then?u.then(n):n(u)}},setState:r,subscribe:function(t){return o.push(t),function(){n(t)}},unsubscribe:n,getState:function(){return e}}},n=function(t,n){var r=s[t];if(r)return r.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):r.value.setState(n,!0),r.active=!0,r.value;var o=e(n);return s[t]={value:o,active:!0},o},i=function(t,n){var r=s[t];if(!r){var o=e(n);return s[t]={value:o,active:!1},o}return r.value},u=function(t){return n("app",t)},a=function(){return i("app",{})},c=function(t,e,n){var r=e(t.getState());return t.subscribe((function(t){var o=e(t);o!==r&&(r=o,n(o))}))};r.r(o),r.d(o,{createAppState:function(){return u},createGlobalStore:function(){return n},getAppState:function(){return a},getGlobalStore:function(){return i},subscribeTo:function(){return c}});var s={}}(),o}())}}}))},968:function(t,e,n){var r=n(577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},577:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger},766:function(t){"use strict";t.exports=h},824:function(t){"use strict";t.exports=c},45:function(t){"use strict";t.exports=s},728:function(t){"use strict";t.exports=l},688:function(t){"use strict";t.exports=v},64:function(t){"use strict";t.exports=d},954:function(t){"use strict";t.exports=a},493:function(t){"use strict";t.exports=f},281:function(t){"use strict";t.exports=p}},y={};function g(t){var e=y[t];if(void 0!==e)return e.exports;var n=y[t]={id:t,loaded:!1,exports:{}};return i[t].call(n.exports,n,n.exports,g),n.loaded=!0,n.exports}g.y=u,g.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return g.d(e,{a:e}),e},g.d=function(t,e){for(var n in e)g.o(e,n)&&!g.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},g.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),g.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},g.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},g.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){var t;g.g.importScripts&&(t=g.g.location+"");var e=g.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),g.p=t}();var m={};return(0,g(968).s)(1),function(){"use strict";var i=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},u=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},a=function(t){return function(e){var n,r=function(t){if(Array.isArray(t))return t}(n=(0,Lt.useState)(t.getState()))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(n)||function(t,e){if(t){if("string"==typeof t)return i(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,2):void 0}}(n)||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.")}(),o=r[0],a=r[1];(0,Lt.useEffect)((function(){return t.subscribe((function(t){return a(t)}))}),[]);var c={};return e&&(c=(0,Lt.useMemo)((function(){return function(t,e){"function"==typeof e&&(e=e(t));var n={};for(var r in e)n[r]=t.action(e[r]);return n}(t,e)}),[t,e])),function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){u(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t}({},o,c)}},c=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},s=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},l=function(){var t,e=function(t){if(Array.isArray(t))return t}(t=(0,Lt.useState)(window.navigator.onLine))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t)||function(t,e){if(t){if("string"==typeof t)return s(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,2):void 0}}(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.")}(),n=e[0],r=e[1];return(0,Lt.useEffect)((function(){return(0,Ht.subscribeConnectivityChanged)((function(t){var e=t.online;return r(e)}))}),[]),n},f=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},d=function(t){var e,n=function(t){if(Array.isArray(t))return t}(e=(0,Lt.useState)([]))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e)||function(t,e){if(t){if("string"==typeof t)return f(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],o=n[1];return(0,Lt.useEffect)((function(){var e=function(e){var n,i,u=null!==(i=null===(n=e.slots[t])||void 0===n?void 0:n.assignedExtensions)&&void 0!==i?i:[];(0,Ft.isEqual)(u,r)||o(u)};return e((0,Nt.getExtensionStore)().getState()),(0,Nt.getExtensionStore)().subscribe(e)}),[t,r]),r},p=function(t){var e=l(),n=d(t);return(0,Lt.useMemo)((function(){return(0,Nt.getConnectedExtensions)(n,e)}),[n,e])},h=function(t){var e=(0,Lt.useContext)(Rt).moduleName;if(!e)throw Error("ComponentContext has not been provided. This should come from @openmrs/esm-react-utils.");return(0,Lt.useEffect)((function(){(0,Nt.registerExtensionSlot)(e,t)}),[]),{extensions:p(t),extensionSlotName:t,extensionSlotModuleName:e}},v=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},y=function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){v(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t},b=function(t){return t},w=function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n},_=function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{};n%2?w(Object(r),!0).forEach((function(e){S(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))},r=1;r<arguments.length;r++)n(r);return t},S=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},x=function(t,e){var n;if("function"!=typeof(n=e.domElement?function(){return e.domElement}:e.domElementGetter?e.domElementGetter:t.domElementGetter?t.domElementGetter:function(t){var e=t.appName||t.name;if(!e)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var n="single-spa-application:".concat(e);return function(){var t=document.getElementById(n);return t||((t=document.createElement("div")).id=n,document.body.appendChild(t)),t}}(e)))throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(e.name,"'. Expected a function, received ").concat(qt(n)));return function(){var t=n(e);if(!r(t,HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(e.name,"'. Expected HTMLElement, received ").concat(qt(t)));return t}},O=function(t){if("object"!==Kt(t))throw new Error("single-spa-react requires a configuration object");var e=_(_({},Zt),t);if(!e.React)throw new Error("single-spa-react must be passed opts.React");if(!e.ReactDOM)throw new Error("single-spa-react must be passed opts.ReactDOM");if(!e.rootComponent&&!e.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(e.errorBoundary&&"function"!=typeof e.errorBoundary)throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!Wt&&e.React.createContext&&(Wt=e.React.createContext()),e.SingleSpaRoot=function(t){function e(t){e.displayName="SingleSpaRoot(".concat(t.name,")")}return e.prototype=Object.create(t.React.Component.prototype),e.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},e.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},e.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},e}(e);var n={bootstrap:j.bind(null,e),mount:E.bind(null,e),unmount:C.bind(null,e)};return e.parcelCanUpdate&&(n.update=k.bind(null,e)),n},j=function(t,e){return t.rootComponent?Promise.resolve():t.loadRootComponent(e).then((function(e){t.rootComponent=e}))},E=function(t,e){return new Promise((function(n,r){t.suppressComponentDidCatchWarning||!function(t){if(!(t&&"string"==typeof t.version&&t.version.indexOf(".")>=0))return!1;var e=t.version.slice(0,t.version.indexOf("."));try{return Number(e)>=16}catch(t){return!1}}(t.React)||t.errorBoundary||(t.rootComponent.prototype?t.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(e.name||e.appName||e.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(e.name||e.appName||e.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=A(t,e,(function(){n(this)})),i=x(t,e)(),u=function(t){var e=t.opts,n=t.elementToRender,r=t.domElement,o="function"==typeof e.renderType?e.renderType():e.renderType;if(["createRoot","unstable_createRoot","createBlockingRoot","unstable_createBlockingRoot"].indexOf(o)>=0){var i=e.ReactDOM[o](r);return i.render(n),i}return"hydrate"===o?e.ReactDOM.hydrate(n,r):e.ReactDOM.render(n,r),null}({elementToRender:o,domElement:i,opts:t});t.domElements[e.name]=i,t.renderResults[e.name]=u}))},C=function(t,e){return new Promise((function(n){t.unmountFinished=n;var r=t.renderResults[e.name];r&&r.unmount?r.unmount():t.ReactDOM.unmountComponentAtNode(t.domElements[e.name]),delete t.domElements[e.name],delete t.renderResults[e.name]}))},k=function(t,e){return new Promise((function(n){t.updateResolves[e.name]||(t.updateResolves[e.name]=[]),t.updateResolves[e.name].push(n);var r=A(t,e,null),o=t.renderResults[e.name];if(o&&o.render)o.render(r);else{var i=x(t,e)();t.ReactDOM.render(r,i)}}))},A=function(t,e,n){var r=t.React.createElement(t.rootComponent,e),o=Wt?t.React.createElement(Wt.Provider,{value:e},r):r;return(t.errorBoundary||e.errorBoundary||t.errorBoundaryClass||e.errorBoundaryClass)&&(t.errorBoundaryClass=t.errorBoundaryClass||e.errorBoundaryClass||function(t,e){function n(e){t.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},n.displayName="SingleSpaReactErrorBoundary(".concat(e.name,")")}return n.prototype=Object.create(t.React.Component.prototype),n.prototype.render=function(){return this.state.caughtError?(t.errorBoundary||e.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},n.prototype.componentDidCatch=function(t,e){this.setState({caughtError:t,caughtErrorInfo:e})},n}(t,e),o=t.React.createElement(t.errorBoundaryClass,e,o)),t.React.createElement(t.SingleSpaRoot,_(_({},e),{},{mountFinished:n,updateFinished:function(){t.updateResolves[e.name]&&(t.updateResolves[e.name].forEach((function(t){return t()})),delete t.updateResolves[e.name])},unmountFinished:function(){setTimeout(t.unmountFinished)}}),o)},P=function(t,e){return!e||"object"!==te(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e},I=function(t){if("object"!=typeof t||"string"!=typeof t.featureName||"string"!=typeof t.moduleName)throw new Error("Invalid options");var e=Object.assign({},ne,t);return function(t){var n;return(n=function(n){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xt(t,e)}(a,n);var o,i,u=(o=a,i=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(t){return!1}}(),function(){var t,e=Qt(o);if(i){var n=Qt(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return P(this,t)});function a(t){var n;return function(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=u.call(this,t)).state={caughtError:null,caughtErrorInfo:null,config:{moduleName:e.moduleName,extension:t._extensionContext}},n}var c=a.prototype;return c.componentDidCatch=function(t,n){n&&n.componentStack&&(t.extra=Object.assign(t.extra||{},{componentStack:n.componentStack})),e.throwErrorsToConsole&&setTimeout((function(){throw t})),this.setState({caughtError:t,caughtErrorInfo:n})},c.render=function(){if(this.state.caughtError)return Lt.default.createElement("div",null,"An error has occurred. Please try reloading the page.");var n=this,r=Lt.default.createElement(Rt.Provider,{value:this.state.config},Lt.default.createElement(Lt.default.Suspense,{fallback:null},e.disableTranslations?Lt.default.createElement(t,Yt({},this.props)):Lt.default.createElement(re,{ns:e.moduleName,forceUpdate:function(){return n.forceUpdate()}},Lt.default.createElement(Jt.I18nextProvider,{i18n:ee,defaultNS:e.moduleName},Lt.default.createElement(t,Yt({},this.props))))));return e.strictMode||!Lt.default.StrictMode?r:Lt.default.createElement(Lt.default.StrictMode,null,r)},a}(Lt.default.Component)).displayName="OpenmrsReactComponent(".concat(e.featureName,")"),n}},T=function(t,e){return O({React:Lt.default,ReactDOM:zt.default,rootComponent:I(e)(t)})},L=function(t,e){return function(){return t().then((function(t){return T(t.default,e)}))}},R=function(t,e){return function(){return Promise.resolve(T(t,e))}},M=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},D=function(t){var e,n=function(t){if(Array.isArray(t))return t}(e=(0,Lt.useState)([]))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e)||function(t,e){if(t){if("string"==typeof t)return M(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(t,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],o=n[1];return(0,Lt.useEffect)((function(){return(0,Nt.getExtensionStore)().subscribe((function(e){var n,i,u=null!==(i=null===(n=e.slots[t])||void 0===n?void 0:n.assignedExtensions.map((function(t){return t.id})))&&void 0!==i?i:[];(0,Ft.isEqual)(u,r)||o(u)}))}),[]),r},B=function(t){(0,Lt.useEffect)((function(){if(t){var e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=e}}}),[t])},N=function(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}},U=function(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}},H=function(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}},F=function(t){var e=this.__data__=new se(t);this.size=e.size},V=function(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new He;++e<n;)this.add(t[e])},$=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},z=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},K=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return $(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},q=function(){var t=(0,Lt.useContext)(Rt),e=t.moduleName,n=t.extension;if(!e&&!n)throw Error('No ComponentContext has been provided. This should come from "openmrsComponentDecorator".\nUsually this is already applied when using "getAsyncLifecycle" or "getSyncLifecycle".');var r=function(t){var e,n,r,o,i,u,a=(0,Lt.useMemo)((function(){return(0,Mt.getConfigStore)(t)}),[t]),c=t,s=(e=a,o=(r=K((0,Lt.useState)((n=e,function(){var t=n.getState();return t.loaded&&t.config?t.config:null})),2))[0],i=r[1],(0,Lt.useEffect)((function(){return null==e?void 0:e.subscribe((function(t){t.loaded&&t.config&&i(t.config)}))}),[e]),o);if(!s)throw tr[c]||(tr[c]=(u=a,new Promise((function(t){var e=u.subscribe((function(n){n.loaded&&n.config&&(t(n.config),e())}))})))),tr[c];return s}(e),o=function(t){var e,n,r=(0,Lt.useMemo)(Mt.getExtensionsConfigStore,[]),o=function(t,e){var n,r,o=K((0,Lt.useState)((n=t,(r=e)?function(){var t=n.getState(),e=(0,Mt.getExtensionConfigFromStore)(t,r.extensionSlotName,r.extensionId);if(e.loaded&&e.config)return e.config}:null)),2),i=o[0],u=o[1];return(0,Lt.useEffect)((function(){if(e)return t.subscribe((function(t){var n=(0,Mt.getExtensionConfigFromStore)(t,e.extensionSlotName,e.extensionId);n.loaded&&n.config&&!Xn(n.config,i)&&u(n.config)}))}),[t,e,i]),i}(r,t);if(!o&&t){var i="".concat(t.extensionSlotName,"-").concat(t.extensionId);throw!tr[i]&&r&&(tr[i]=(e=r,n=t,new Promise((function(t){var r=e.subscribe((function(e){var o=(0,Mt.getExtensionConfigFromStore)(e,n.extensionSlotName,n.extensionId);o.loaded&&o.config&&(t(o.config),r())}))})))),tr[i]}return o||{}}(n),i=(0,Lt.useMemo)((function(){return function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){z(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t}({},r,o)}),[r,o]);return i},W=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},Z=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},G=function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){Z(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t},J=function(){var t=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return t&&t[1]},Y=function(t,e){switch(e.type){case qn.loadPatient:return G({},t,{patientUuid:e.patientUuid,patient:null,isPendingUuid:!1,isLoadingPatient:!0,err:null});case qn.newPatient:return G({},t,{patient:e.patient,isPendingUuid:!1,isLoadingPatient:!1,err:null});case qn.loadError:return G({},t,{patient:null,isPendingUuid:!1,isLoadingPatient:!1,err:e.err});default:return t}},Q=function(t){var e,n=function(t){if(Array.isArray(t))return t}(e=(0,Lt.useReducer)(Y,G({},rr,{patientUuid:null!=t?t:null,isPendingUuid:!t,isLoadingPatient:!!t})))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e)||function(t,e){if(t){if("string"==typeof t)return W(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(t,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],o=n[1];return(0,Lt.useEffect)((function(){if(r.isPendingUuid){var t=J();o(t?{type:qn.loadPatient,patientUuid:t}:{type:qn.newPatient,patient:null})}var e=!0;return r.isLoadingPatient&&r.patientUuid&&(0,er.fetchCurrentPatient)(r.patientUuid).then((function(t){return e&&o({patient:t.data,type:qn.newPatient})}),(function(t){return e&&o({err:t,type:qn.loadError})})),function(){e=!1}}),[r.isPendingUuid,r.isLoadingPatient,r.patientUuid]),(0,Lt.useEffect)((function(){var t=function(t){var e=J();e!=r.patientUuid&&o({type:qn.loadPatient,patientUuid:e})};return window.addEventListener("single-spa:routing-event",t),function(){return window.removeEventListener("single-spa:routing-event",t)}}),[r.patientUuid]),{isLoading:r.isPendingUuid||r.isLoadingPatient,patient:r.patient,patientUuid:null!=t?t:r.patientUuid,error:r.err}},X=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},tt=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},et=function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){tt(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t},nt=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return X(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},rt=function(){var t=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return t&&t[1]},ot=function(t,e){switch(e.type){case nr.loadPatient:return et({},t,{patient:null,isLoadingPatient:!0,err:null});case nr.newPatient:return et({},t,{patient:e.patient,isLoadingPatient:!1,err:null});case nr.loadError:return et({},t,{patient:null,isLoadingPatient:!1,err:e.err});default:return t}},it=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rt(),e=nt((0,Lt.useReducer)(ot,ar),2),n=e[0],r=e[1];return(0,Lt.useEffect)((function(){var e=!0;return t?((0,er.fetchCurrentPatient)(t).then((function(t){return e&&r({patient:t.data,type:nr.newPatient})}),(function(t){return e&&r({err:t,type:nr.loadError})})),r({type:nr.loadPatient})):r({type:nr.newPatient,patient:null}),function(){e=!1}}),[t]),[n.isLoadingPatient,n.patient,t,n.err]},ut=function(t){var e=p(t);return(0,Lt.useMemo)((function(){return Object.fromEntries(e.map((function(t){return[t.name,t.meta]})))}),[e])},at=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},ct=function(){var t,e=(t=(0,Lt.useState)(0),function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t)||function(t,e){if(t){if("string"==typeof t)return at(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(t,2):void 0}}(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.")}())[1];return(0,Lt.useCallback)((function(){e((function(t){return t+1}))}),[])},st=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},lt=function(){var t="tablet";return document.body.classList.forEach((function(e){switch(e){case"omrs-breakpoint-lt-tablet":t="phone";break;case"omrs-breakpoint-gt-tablet":t="desktop"}})),t},ft=function(){var t,e=function(t){if(Array.isArray(t))return t}(t=(0,Lt.useState)(lt))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t)||function(t,e){if(t){if("string"==typeof t)return st(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(t,2):void 0}}(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.")}(),n=e[0],r=e[1];return(0,Lt.useEffect)((function(){var t=function(){r(lt())};return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}),[]),n},dt=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},pt=function(){var t,e=function(t){if(Array.isArray(t))return t}(t=(0,Lt.useState)([]))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t)||function(t,e){if(t){if("string"==typeof t)return dt(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dt(t,2):void 0}}(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.")}(),n=e[0],r=e[1];return(0,Lt.useEffect)((function(){var t=(0,er.getLocations)().subscribe((function(t){r(t)}),(function(t){console.error(t)}));return function(){return t.unsubscribe()}}),[]),n},ht=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=(0,Lt.useRef)(null);return(0,Lt.useEffect)((function(){if(e){var r=function(e){var r;(null==n||null===(r=n.current)||void 0===r?void 0:r.contains(e.target))||t(e)};return window.addEventListener("click",r),function(){return window.removeEventListener("click",r)}}}),[t,e]),n},vt=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},yt=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},gt=function(){var t,e=function(t){if(Array.isArray(t))return t}(t=(0,Lt.useState)(null))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t)||function(t,e){if(t){if("string"==typeof t)return yt(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yt(t,2):void 0}}(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.")}(),n=e[0],r=e[1],o=null;if(!n){if(or){var i=(0,er.getSessionStore)().getState();i.loaded&&(o=i.session)}else or=new Promise((function(t){var e=function(e){var n=e.loaded,r=e.session;n&&(t(r),o=r,ir&&ir(),ir=void 0)};e((0,er.getSessionStore)().getState()),o||(ir=(0,er.getSessionStore)().subscribe(e))}));if(!o)throw or;r(o)}(0,Lt.useEffect)((function(){return ir||(ir=(0,er.getSessionStore)().subscribe((function(t){var e=t.loaded,n=t.session;e&&(o=n,r(n))}))),function(){ir&&ir(),ir=void 0}}),[]);var u=n||o;if(!u)throw or?(console.warn("useSessionUser is in an unexpected state. Attempting to recover."),or):Error("useSessionUser is in an invalid state.");return u},mt=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},bt=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},wt=function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){bt(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t},_t=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return mt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},St=function(t,e){"function"==typeof e&&(e=e(t));var n={};for(var r in e)n[r]=t.action(e[r]);return n},xt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dr,n=arguments.length>2?arguments[2]:void 0,r=_t((0,Lt.useState)((function(){return e(t.getState())})),2),o=r[0],i=r[1];(0,Lt.useEffect)((function(){return(0,fr.subscribeTo)(t,e,i)}),[t,e]);var u={};return n&&(u=(0,Lt.useMemo)((function(){return St(t,n)}),[t,n])),wt({},o,u)},Ot=function(t,e){return xt(t,dr,e)},jt=function(t,e,n,o){return new(n||(n=Promise))((function(i,u){function a(t){try{s(o.next(t))}catch(t){u(t)}}function c(t){try{s(o.throw(t))}catch(t){u(t)}}function s(t){var e;t.done?i(t.value):(e=t.value,r(e,n)?e:new n((function(t){t(e)}))).then(a,c)}s((o=o.apply(t,e||[])).next())}))},Et=function(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},Ct=function(t){var e,n=eo(t?"/ws/rest/v1/visit?patient=".concat(t,"&v=").concat(er.defaultVisitCustomRepresentation,"&includeInactive=false"):null,er.openmrsFetch),r=n.data,o=n.error;return{error:o,mutate:n.mutate,isValidating:n.isValidating,currentVisit:(0,Lt.useMemo)((function(){return null!==(e=null==r?void 0:r.data.results.find((function(t){return null===t.stopDatetime&&(0,no.default)(t.startDatetime).isToday()})))&&void 0!==e?e:null}),[null==r?void 0:r.data.results]),isLoading:!r&&!o}},kt=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},At=function(){var t,e=function(t){if(Array.isArray(t))return t}(t=(0,Lt.useState)([]))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t)||function(t,e){if(t){if("string"==typeof t)return kt(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kt(t,2):void 0}}(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.")}(),n=e[0],r=e[1];return(0,Lt.useEffect)((function(){var t=(0,er.getVisitTypes)().subscribe((function(t){r(t)}),(function(t){return console.error(t)}));return function(){return t.unsubscribe()}}),[]),n},Pt=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},It=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Pt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},Tt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=It((0,Lt.useState)(1),2),r=n[0],o=n[1],i=(0,Lt.useMemo)((function(){return Math.max(1,Math.ceil(t.length/e))}),[t.length,e]),u=(0,Lt.useMemo)((function(){var n=(r-1)*e,o=(r+0)*e;return t.slice(n,o)}),[t,r,e]);return{results:u,totalPages:i,currentPage:r,paginated:t.length>e,showNextButton:r<i,showPreviousButton:r>1,goTo:function(t){o(Math.max(1,Math.min(i,t)))},goToNext:function(){r<i&&o(r+1)},goToPrevious:function(){r>1&&o(r-1)}}};g.r(m),g.d(m,{ComponentContext:function(){return Rt},ConfigurableLink:function(){return Bt},Extension:function(){return Ut},ExtensionSlot:function(){return $t},UserHasAccess:function(){return lr},createUseStore:function(){return a},getAsyncExtensionLifecycle:function(){return oe},getAsyncLifecycle:function(){return L},getLifecycle:function(){return T},getSyncLifecycle:function(){return R},openmrsComponentDecorator:function(){return I},useAssignedExtensionIds:function(){return D},useAssignedExtensions:function(){return d},useBodyScrollLock:function(){return B},useConfig:function(){return q},useConnectedExtensions:function(){return p},useConnectivity:function(){return l},useCurrentPatient:function(){return it},useExtensionInternalStore:function(){return cr},useExtensionSlot:function(){return h},useExtensionSlotMeta:function(){return ut},useExtensionStore:function(){return sr},useForceUpdate:function(){return ct},useLayoutType:function(){return ft},useLocations:function(){return pt},useOnClickOutside:function(){return ht},usePagination:function(){return Tt},usePatient:function(){return Q},useSession:function(){return gt},useStore:function(){return xt},useStoreWithActions:function(){return Ot},useVisit:function(){return Ct},useVisitTypes:function(){return At}});var Lt=g(954),Rt=Lt.default.createContext({moduleName:""}),Mt=g(824);function Dt(){return Dt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Dt.apply(this,arguments)}var Bt=function(t){var e=t.to,n=t.children,r=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,["to","children"]);return Lt.default.createElement("a",Dt({onClick:function(t){return r=e,void((n=t).metaKey||n.ctrlKey||n.shiftKey||0!=n.button||(n.preventDefault(),(0,Mt.navigate)({to:r})));var n,r},href:(0,Mt.interpolateUrl)(e)},r),n)},Nt=g(45),Ut=function(t){var e,n=t.state,r=t.wrap,o=function(t){if(Array.isArray(t))return t}(e=(0,Lt.useState)())||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e)||function(t,e){if(t){if("string"==typeof t)return c(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],u=o[1],a=(0,Lt.useContext)(Rt).extension,s=(0,Lt.useCallback)((function(t){u(t)}),[]);(0,Lt.useEffect)((function(){if(null!=i&&a)return(0,Nt.renderExtension)(i,a.extensionSlotName,a.extensionSlotModuleName,a.extensionId,void 0,n)}),[null==a?void 0:a.extensionSlotName,null==a?void 0:a.extensionId,null==a?void 0:a.extensionSlotModuleName,n,i]);var l=Lt.default.createElement("div",{ref:s,"data-extension-id":null==a?void 0:a.extensionId,style:{position:"relative"}});return a&&r?r(l,a):l},Ht=g(728),Ft=g(891);function Vt(){return Vt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Vt.apply(this,arguments)}var $t=function(t){var e=t.extensionSlotName,n=t.select,r=void 0===n?b:n,o=t.children,i=t.state,u=t.style,a=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,["extensionSlotName","select","children","state","style"]),c=(0,Lt.useRef)(null),s=h(e),l=s.extensions,f=s.extensionSlotModuleName,d=(0,Lt.useRef)(i);(function(t,e){if(t===e)return!0;if(!t&&e)return!1;if(t&&!e)return!1;if("object"!=typeof t||"object"!=typeof e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(!(i in e)||e[i]!==t[i])return!1}return!0})(d.current,i)||(d.current=i);var p=(0,Lt.useMemo)((function(){return e&&r(l).map((function(t){return Lt.default.createElement(Rt.Provider,{key:t.id,value:{moduleName:f,extension:{extensionId:t.id,extensionSlotName:e,extensionSlotModuleName:f}}},null!=o?o:Lt.default.createElement(Ut,{state:d.current}))}))}),[r,l,e,d.current]);return Lt.default.createElement("div",Vt({ref:c,"data-extension-slot-name":e,"data-extension-slot-module-name":f,style:y({},u,{position:"relative"})},a),p)},zt=g(493);function Kt(t){return(Kt="function"==typeof Symbol&&"symbol"==o(Symbol.iterator)?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":o(t)})(t)}function qt(t){return(qt="function"==typeof Symbol&&"symbol"==o(Symbol.iterator)?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":o(t)})(t)}var Wt=null;try{Wt=n(6983).createContext()}catch(t){}var Zt={React:null,ReactDOM:null,rootComponent:null,loadRootComponent:null,renderType:null,errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{}},Gt=g(64),Jt=g(281);function Yt(){return Yt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Yt.apply(this,arguments)}function Qt(t){return(Qt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Xt(t,e){return(Xt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var te=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":void 0===t?"undefined":o(t)},ee=Gt.default.default||Gt.default,ne={strictMode:!0,throwErrorsToConsole:!0,disableTranslations:!1},re=function(t){(0,Lt.useEffect)((function(){return ee.on("languageChanged",t.forceUpdate),function(){return ee.off("languageChanged",t.forceUpdate)}}),[t.forceUpdate]);var e=(0,Lt.useRef)(null);if(e.current)throw e.current;if(!ee.hasLoadedNamespace(t.ns)){var n=setTimeout((function(){console.warn("openmrsComponentDecorator: the React suspense promise for i18next.loadNamespaces(['".concat(t.ns,"']) did not resolve nor reject after three seconds. This could mean you have multiple versions of i18next and haven't made i18next a webpack external in all projects."))}),3e3);throw ee.loadNamespaces([t.ns]).then((function(){return clearTimeout(n)})).catch((function(t){clearTimeout(n),e.current=t}))}return Lt.default.createElement(Lt.default.Fragment,null,t.children)},oe=L,ie=function(t,e){return t===e||t!=t&&e!=e},ue=function(t,e){for(var n=t.length;n--;)if(ie(t[n][0],e))return n;return-1},ae=Array.prototype.splice;N.prototype.clear=function(){this.__data__=[],this.size=0},N.prototype.delete=function(t){var e=this.__data__,n=ue(e,t);return!(n<0||(n==e.length-1?e.pop():ae.call(e,n,1),--this.size,0))},N.prototype.get=function(t){var e=this.__data__,n=ue(e,t);return n<0?void 0:e[n][1]},N.prototype.has=function(t){return ue(this.__data__,t)>-1},N.prototype.set=function(t,e){var n=this.__data__,r=ue(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var ce,se=N,le="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,fe="object"==typeof self&&self&&self.Object===Object&&self,de=le||fe||Function("return this")(),pe=de.Symbol,he=Object.prototype,ve=he.hasOwnProperty,ye=he.toString,ge=pe?pe.toStringTag:void 0,me=Object.prototype.toString,be=pe?pe.toStringTag:void 0,we=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":be&&be in Object(t)?function(t){var e=ve.call(t,ge),n=t[ge];try{t[ge]=void 0;var r=!0}catch(t){}var o=ye.call(t);return r&&(e?t[ge]=n:delete t[ge]),o}(t):(e=t,me.call(e));var e},_e=function(t){var e=void 0===t?"undefined":o(t);return null!=t&&("object"==e||"function"==e)},Se=function(t){if(!_e(t))return!1;var e=we(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},xe=de["__core-js_shared__"],Oe=(ce=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||""))?"Symbol(src)_1."+ce:"",je=Function.prototype.toString,Ee=function(t){if(null!=t){try{return je.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Ce=/^\[object .+?Constructor\]$/,ke=Function.prototype,Ae=Object.prototype,Pe=ke.toString,Ie=Ae.hasOwnProperty,Te=RegExp("^"+Pe.call(Ie).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Le=function(t,e){var n,r=null==(n=t)?void 0:n[e];return function(t){return!(!_e(t)||(e=t,Oe&&Oe in e))&&(Se(t)?Te:Ce).test(Ee(t));var e}(r)?r:void 0},Re=Le(de,"Map"),Me=Le(Object,"create"),De=Object.prototype.hasOwnProperty,Be=Object.prototype.hasOwnProperty;U.prototype.clear=function(){this.__data__=Me?Me(null):{},this.size=0},U.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},U.prototype.get=function(t){var e=this.__data__;if(Me){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return De.call(e,t)?e[t]:void 0},U.prototype.has=function(t){var e=this.__data__;return Me?void 0!==e[t]:Be.call(e,t)},U.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Me&&void 0===e?"__lodash_hash_undefined__":e,this};var Ne=U,Ue=function(t,e){var n,r,i=t.__data__;return("string"==(r=o(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map};H.prototype.clear=function(){this.size=0,this.__data__={hash:new Ne,map:new(Re||se),string:new Ne}},H.prototype.delete=function(t){var e=Ue(this,t).delete(t);return this.size-=e?1:0,e},H.prototype.get=function(t){return Ue(this,t).get(t)},H.prototype.has=function(t){return Ue(this,t).has(t)},H.prototype.set=function(t,e){var n=Ue(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var He=H;F.prototype.clear=function(){this.__data__=new se,this.size=0},F.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},F.prototype.get=function(t){return this.__data__.get(t)},F.prototype.has=function(t){return this.__data__.has(t)},F.prototype.set=function(t,e){var n=this.__data__;if(r(n,se)){var o=n.__data__;if(!Re||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new He(o)}return n.set(t,e),this.size=n.size,this};var Fe=F;V.prototype.add=V.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},V.prototype.has=function(t){return this.__data__.has(t)};var Ve=V,$e=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1},ze=function(t,e){return t.has(e)},Ke=function(t,e,n,r,o,i){var u=1&n,a=t.length,c=e.length;if(a!=c&&!(u&&c>a))return!1;var s=i.get(t),l=i.get(e);if(s&&l)return s==e&&l==t;var f=-1,d=!0,p=2&n?new Ve:void 0;for(i.set(t,e),i.set(e,t);++f<a;){var h=t[f],v=e[f];if(r)var y=u?r(v,h,f,e,t,i):r(h,v,f,t,e,i);if(void 0!==y){if(y)continue;d=!1;break}if(p){if(!$e(e,(function(t,e){if(!ze(p,e)&&(h===t||o(h,t,n,r,i)))return p.push(e)}))){d=!1;break}}else if(h!==v&&!o(h,v,n,r,i)){d=!1;break}}return i.delete(t),i.delete(e),d},qe=de.Uint8Array,We=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n},Ze=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},Ge=pe?pe.prototype:void 0,Je=Ge?Ge.valueOf:void 0,Ye=Array.isArray,Qe=Object.prototype.propertyIsEnumerable,Xe=Object.getOwnPropertySymbols,tn=Xe?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var u=t[n];e(u)&&(i[o++]=u)}return i}(Xe(t),(function(e){return Qe.call(t,e)})))}:function(){return[]},en=function(t){return null!=t&&"object"==typeof t},nn=function(t){return en(t)&&"[object Arguments]"==we(t)},rn=Object.prototype,on=rn.hasOwnProperty,un=rn.propertyIsEnumerable,an=nn(function(){return arguments}())?nn:function(t){return en(t)&&on.call(t,"callee")&&!un.call(t,"callee")},cn=an,sn=e&&!e.nodeType&&e,ln=sn&&t&&!t.nodeType&&t,fn=ln&&ln.exports===sn?de.Buffer:void 0,dn=(fn?fn.isBuffer:void 0)||function(){return!1},pn=/^(?:0|[1-9]\d*)$/,hn=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},vn={};vn["[object Float32Array]"]=vn["[object Float64Array]"]=vn["[object Int8Array]"]=vn["[object Int16Array]"]=vn["[object Int32Array]"]=vn["[object Uint8Array]"]=vn["[object Uint8ClampedArray]"]=vn["[object Uint16Array]"]=vn["[object Uint32Array]"]=!0,vn["[object Arguments]"]=vn["[object Array]"]=vn["[object ArrayBuffer]"]=vn["[object Boolean]"]=vn["[object DataView]"]=vn["[object Date]"]=vn["[object Error]"]=vn["[object Function]"]=vn["[object Map]"]=vn["[object Number]"]=vn["[object Object]"]=vn["[object RegExp]"]=vn["[object Set]"]=vn["[object String]"]=vn["[object WeakMap]"]=!1;var yn,gn,mn,bn=e&&!e.nodeType&&e,wn=bn&&t&&!t.nodeType&&t,_n=wn&&wn.exports===bn&&le.process,Sn=function(){try{return wn&&wn.require&&wn.require("util").types||_n&&_n.binding&&_n.binding("util")}catch(t){}}(),xn=Sn&&Sn.isTypedArray,On=xn?(yn=xn,function(t){return yn(t)}):function(t){return en(t)&&hn(t.length)&&!!vn[we(t)]},jn=Object.prototype.hasOwnProperty,En=Object.prototype,Cn=(gn=Object.keys,mn=Object,function(t){return gn(mn(t))}),kn=Object.prototype.hasOwnProperty,An=function(t){return n=tn,r=function(t){return null!=(e=t)&&hn(e.length)&&!Se(e)?function(t,e){var n,r,i,u=Ye(t),a=!u&&cn(t),c=!u&&!a&&dn(t),s=!u&&!a&&!c&&On(t),l=u||a||c||s,f=l?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],d=f.length;for(var p in t)!jn.call(t,p)||l&&("length"==p||c&&("offset"==p||"parent"==p)||s&&("buffer"==p||"byteLength"==p||"byteOffset"==p)||(r=d,i=void 0===(n=p)?"undefined":o(n),(r=null==r?9007199254740991:r)&&("number"==i||"symbol"!=i&&pn.test(n))&&n>-1&&n%1==0&&n<r))||f.push(p);return f}(t):function(t){if(n=(e=t)&&e.constructor,e!==("function"==typeof n&&n.prototype||En))return Cn(t);var e,n,r=[];for(var o in Object(t))kn.call(t,o)&&"constructor"!=o&&r.push(o);return r}(t);var e}(e=t),Ye(e)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(e));var e,n,r},Pn=Object.prototype.hasOwnProperty,In=Le(de,"DataView"),Tn=Le(de,"Promise"),Ln=Le(de,"Set"),Rn=Le(de,"WeakMap"),Mn="[object Map]",Dn="[object Promise]",Bn="[object Set]",Nn="[object WeakMap]",Un="[object DataView]",Hn=Ee(In),Fn=Ee(Re),Vn=Ee(Tn),$n=Ee(Ln),zn=Ee(Rn),Kn=we;(In&&Kn(new In(new ArrayBuffer(1)))!=Un||Re&&Kn(new Re)!=Mn||Tn&&Kn(Tn.resolve())!=Dn||Ln&&Kn(new Ln)!=Bn||Rn&&Kn(new Rn)!=Nn)&&(Kn=function(t){var e=we(t),n="[object Object]"==e?t.constructor:void 0,r=n?Ee(n):"";if(r)switch(r){case Hn:return Un;case Fn:return Mn;case Vn:return Dn;case $n:return Bn;case zn:return Nn}return e});var qn,Wn=Kn,Zn="[object Arguments]",Gn="[object Array]",Jn="[object Object]",Yn=Object.prototype.hasOwnProperty,Qn=function t(e,n,o,i,u){return e===n||(null==e||null==n||!en(e)&&!en(n)?e!=e&&n!=n:function(t,e,n,o,i,u){var a=Ye(t),c=Ye(e),s=a?Gn:Wn(t),l=c?Gn:Wn(e),f=(s=s==Zn?Jn:s)==Jn,d=(l=l==Zn?Jn:l)==Jn,p=s==l;if(p&&dn(t)){if(!dn(e))return!1;a=!0,f=!1}if(p&&!f)return u||(u=new Fe),a||On(t)?Ke(t,e,n,o,i,u):function(t,e,n,r,o,i,u){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new qe(t),new qe(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ie(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=We;case"[object Set]":var c=1&r;if(a||(a=Ze),t.size!=e.size&&!c)return!1;var s=u.get(t);if(s)return s==e;r|=2,u.set(t,e);var l=Ke(a(t),a(e),r,o,i,u);return u.delete(t),l;case"[object Symbol]":if(Je)return Je.call(t)==Je.call(e)}return!1}(t,e,s,n,o,i,u);if(!(1&n)){var h=f&&Yn.call(t,"__wrapped__"),v=d&&Yn.call(e,"__wrapped__");if(h||v){var y=h?t.value():t,g=v?e.value():e;return u||(u=new Fe),i(y,g,n,o,u)}}return!!p&&(u||(u=new Fe),function(t,e,n,o,i,u){var a=1&n,c=An(t),s=c.length;if(s!=An(e).length&&!a)return!1;for(var l=s;l--;){var f=c[l];if(!(a?f in e:Pn.call(e,f)))return!1}var d=u.get(t),p=u.get(e);if(d&&p)return d==e&&p==t;var h=!0;u.set(t,e),u.set(e,t);for(var v=a;++l<s;){var y=t[f=c[l]],g=e[f];if(o)var m=a?o(g,y,f,e,t,u):o(y,g,f,t,e,u);if(!(void 0===m?y===g||i(y,g,n,o,u):m)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&r(b,b)&&"function"==typeof w&&r(w,w)||(h=!1)}return u.delete(t),u.delete(e),h}(t,e,n,o,i,u))}(e,n,o,i,t,u))},Xn=function(t,e){return Qn(t,e)},tr={},er=g(766);!function(t){t.loadPatient="loadPatient",t.newPatient="newPatient",t.loadError="patientLoadError"}(qn||(qn={}));var nr,rr={patientUuid:null,patient:null,isPendingUuid:!0,isLoadingPatient:!1,err:null};!function(t){t.loadPatient="loadPatient",t.newPatient="newPatient",t.loadError="patientLloadErroroadError"}(nr||(nr={}));var or,ir,ur,ar={patient:null,isLoadingPatient:!0,err:null},cr=a((0,Nt.getExtensionInternalStore)()),sr=a((0,Nt.getExtensionStore)()),lr=function(t){var e,n=t.privilege,r=t.children,o=function(t){if(Array.isArray(t))return t}(e=(0,Lt.useState)(null))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(e)||function(t,e){if(t){if("string"==typeof t)return vt(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vt(t,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=o[0],u=o[1];return(0,Lt.useEffect)((function(){var t=(0,er.getCurrentUser)({includeAuthStatus:!1}).subscribe(u);return function(){return t.unsubscribe()}}),[]),i&&(0,er.userHasAccess)(n,i)?Lt.default.createElement(Lt.default.Fragment,null,r):null},fr=g(385),dr=function(t){return t},pr=function(){},hr=void 0,vr=Object,yr=function(t){return t===hr},gr=function(t){return"function"==typeof t},mr=function(t,e){return vr.assign({},t,e)},br="undefined",wr=function(){return("undefined"==typeof window?"undefined":o(window))!=br},_r=new WeakMap,Sr=0,xr=function(t){var e,n,r=void 0===t?"undefined":o(t),i=t&&t.constructor,u=i==Date;if(vr(t)!==t||u||i==RegExp)e=u?t.toJSON():"symbol"==r?t.toString():"string"==r?JSON.stringify(t):""+t;else{if(e=_r.get(t))return e;if(e=++Sr+"~",_r.set(t,e),i==Array){for(e="@",n=0;n<t.length;n++)e+=xr(t[n])+",";_r.set(t,e)}if(i==vr){e="#";for(var a=vr.keys(t).sort();!yr(n=a.pop());)yr(t[n])||(e+=n+":"+xr(t[n])+",");_r.set(t,e)}}return e},Or=!0,jr=wr(),Er=("undefined"==typeof document?"undefined":o(document))!=br,Cr=jr&&window.addEventListener?window.addEventListener.bind(window):pr,kr=Er?document.addEventListener.bind(document):pr,Ar=jr&&window.removeEventListener?window.removeEventListener.bind(window):pr,Pr=Er?document.removeEventListener.bind(document):pr,Ir={isOnline:function(){return Or},isVisible:function(){var t=Er&&document.visibilityState;return yr(t)||"hidden"!==t}},Tr={initFocus:function(t){return kr("visibilitychange",t),Cr("focus",t),function(){Pr("visibilitychange",t),Ar("focus",t)}},initReconnect:function(t){var e=function(){Or=!0,t()},n=function(){Or=!1};return Cr("online",e),Cr("offline",n),function(){Ar("online",e),Ar("offline",n)}}},Lr=!wr()||"Deno"in window,Rr=Lr?Lt.useEffect:Lt.useLayoutEffect,Mr="undefined"!=typeof navigator&&navigator.connection,Dr=!Lr&&Mr&&(["slow-2g","2g"].includes(Mr.effectiveType)||Mr.saveData),Br=function(t){if(gr(t))try{t=t()}catch(e){t=""}var e=[].concat(t);return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?xr(t):"",e,t?"$swr$"+t:""]},Nr=new WeakMap,Ur=function(t,e,n,r,o,i,u){void 0===u&&(u=!0);var a=Nr.get(t),c=a[0],s=a[1],l=a[3],f=c[e],d=s[e];if(u&&d)for(var p=0;p<d.length;++p)d[p](n,r,o);return i&&(delete l[e],f&&f[0])?f[0](2).then((function(){return t.get(e)})):t.get(e)},Hr=0,Fr=function(){return++Hr},Vr=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return jt(void 0,void 0,void 0,(function(){var e,n,r,o,i,u,a,c,s,l,f,d,p,h,v,y,g,m,b,w;return Et(this,(function(_){switch(_.label){case 0:if(e=t[0],n=t[1],r=t[2],o=t[3],u=!!yr((i="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||i.populateCache,a=!1!==i.revalidate,c=!1!==i.rollbackOnError,s=i.optimisticData,l=Br(n),f=l[0],d=l[2],!f)return[2];if(p=Nr.get(e),h=p[2],t.length<3)return[2,Ur(e,f,e.get(f),hr,hr,a,!0)];if(v=r,g=Fr(),h[f]=[g,0],m=!yr(s),b=e.get(f),m&&(e.set(f,s),Ur(e,f,s)),gr(v))try{v=v(e.get(f))}catch(t){y=t}return v&&gr(v.then)?[4,v.catch((function(t){y=t}))]:[3,2];case 1:if(v=_.sent(),g!==h[f][0]){if(y)throw y;return[2,v]}y&&m&&c&&(u=!0,v=b,e.set(f,b)),_.label=2;case 2:return u&&(y||(gr(u)&&(v=u(v,b)),e.set(f,v)),e.set(d,mr(e.get(d),{error:y}))),h[f][1]=Fr(),[4,Ur(e,f,v,y,hr,a,!!u)];case 3:if(w=_.sent(),y)throw y;return[2,u?w:v]}}))}))},$r=function(t,e){for(var n in t)t[n][0]&&t[n][0](e)},zr=function(t,e){if(!Nr.has(t)){var n=mr(Tr,e),r={},o=Vr.bind(hr,t),i=pr;if(Nr.set(t,[r,{},{},{},o]),!Lr){var u=n.initFocus(setTimeout.bind(hr,$r.bind(hr,r,0))),a=n.initReconnect(setTimeout.bind(hr,$r.bind(hr,r,1)));i=function(){u&&u(),a&&a(),Nr.delete(t)}}return[t,o,i]}return[t,Nr.get(t)[4]]},Kr=zr(new Map),qr=Kr[0],Wr=Kr[1],Zr=mr({onLoadingSlow:pr,onSuccess:pr,onError:pr,onErrorRetry:function(t,e,n,r,o){var i=n.errorRetryCount,u=o.retryCount,a=~~((Math.random()+.5)*(1<<(u<8?u:8)))*n.errorRetryInterval;!yr(i)&&u>i||setTimeout(r,a,o)},onDiscarded:pr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Dr?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Dr?5e3:3e3,compare:function(t,e){return xr(t)==xr(e)},isPaused:function(){return!1},cache:qr,mutate:Wr,fallback:{}},Ir),Gr=function(t,e){var n=mr(t,e);if(e){var r=t.use,o=t.fallback,i=e.use,u=e.fallback;r&&i&&(n.use=r.concat(i)),o&&u&&(n.fallback=mr(o,u))}return n},Jr=(0,Lt.createContext)({}),Yr=function(t){return gr(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}]},Qr=function(){return mr(Zr,(0,Lt.useContext)(Jr))},Xr=function(t,e,n){var r=e[t]||(e[t]=[]);return r.push(n),function(){var t=r.indexOf(n);t>=0&&(r[t]=r[r.length-1],r.pop())}},to={dedupe:!0},eo=(vr.defineProperty((function(t){var e=t.value,n=Gr((0,Lt.useContext)(Jr),e),r=e&&e.provider,o=(0,Lt.useState)((function(){return r?zr(r(n.cache||qr),e):hr}))[0];return o&&(n.cache=o[0],n.mutate=o[1]),Rr((function(){return o?o[2]:hr}),[]),(0,Lt.createElement)(Jr.Provider,mr(t,{value:n}))}),"default",{value:Zr}),ur=function(t,e,n){var r=n.cache,i=n.compare,u=n.fallbackData,a=n.suspense,c=n.revalidateOnMount,s=n.refreshInterval,l=n.refreshWhenHidden,f=n.refreshWhenOffline,d=Nr.get(r),p=d[0],h=d[1],v=d[2],y=d[3],g=Br(t),m=g[0],b=g[1],w=g[2],_=(0,Lt.useRef)(!1),S=(0,Lt.useRef)(!1),x=(0,Lt.useRef)(m),O=(0,Lt.useRef)(e),j=(0,Lt.useRef)(n),E=function(){return j.current},C=function(){return E().isVisible()&&E().isOnline()},k=function(t){return r.set(w,mr(r.get(w),t))},A=r.get(m),P=yr(u)?n.fallback[m]:u,I=yr(A)?P:A,T=r.get(w)||{},L=T.error,R=!_.current,M=function(){return R&&!yr(c)?c:!E().isPaused()&&(a?!yr(I):yr(I)||n.revalidateIfStale)},D=!(!m||!e)&&(!!T.isValidating||R&&M()),B=function(t,e){var n=(0,Lt.useState)({})[1],r=(0,Lt.useRef)(t),o=(0,Lt.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,Lt.useCallback)((function(t){var i=!1,u=r.current;for(var a in t){var c=a;u[c]!==t[c]&&(u[c]=t[c],o.current[c]&&(i=!0))}i&&!e.current&&n({})}),[]);return Rr((function(){r.current=t})),[r,o.current,i]}({data:I,error:L,isValidating:D},S),N=B[0],U=B[1],H=B[2],F=(0,Lt.useCallback)((function(t){return jt(void 0,void 0,void 0,(function(){var e,o,u,a,c,s,l,f,d,p,h,g,w;return Et(this,(function(j){switch(j.label){case 0:if(e=O.current,!m||!e||S.current||E().isPaused())return[2,!1];a=!0,c=t||{},s=!y[m]||!c.dedupe,l=function(){return!S.current&&m===x.current&&_.current},f=function(){var t=y[m];t&&t[1]===u&&delete y[m]},d={isValidating:!1},p=function(){k({isValidating:!1}),l()&&H(d)},k({isValidating:!0}),H({isValidating:!0}),j.label=1;case 1:return j.trys.push([1,3,,4]),s&&(Ur(r,m,N.current.data,N.current.error,!0),n.loadingTimeout&&!r.get(m)&&setTimeout((function(){a&&l()&&E().onLoadingSlow(m,n)}),n.loadingTimeout),y[m]=[e.apply(void 0,b),Fr()]),w=y[m],o=w[0],u=w[1],[4,o];case 2:return o=j.sent(),s&&setTimeout(f,n.dedupingInterval),y[m]&&y[m][1]===u?(k({error:hr}),d.error=hr,h=v[m],!yr(h)&&(u<=h[0]||u<=h[1]||0===h[1])?(p(),s&&l()&&E().onDiscarded(m),[2,!1]):(i(N.current.data,o)?d.data=N.current.data:d.data=o,i(r.get(m),o)||r.set(m,o),s&&l()&&E().onSuccess(o,m,n),[3,4])):(s&&l()&&E().onDiscarded(m),[2,!1]);case 3:return g=j.sent(),f(),E().isPaused()||(k({error:g}),d.error=g,s&&l()&&(E().onError(g,m,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||gr(n.shouldRetryOnError)&&n.shouldRetryOnError(g))&&C()&&E().onErrorRetry(g,m,n,F,{retryCount:(c.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return a=!1,p(),l()&&s&&Ur(r,m,d.data,d.error,!1),[2,!0]}}))}))}),[m]),V=(0,Lt.useCallback)(Vr.bind(hr,r,(function(){return x.current})),[]);if(Rr((function(){O.current=e,j.current=n})),Rr((function(){if(m){var t=m!==x.current,e=F.bind(hr,to),n=0,r=Xr(m,h,(function(t,e,n){H(mr({error:e,isValidating:n},i(N.current.data,t)?hr:{data:t}))})),u=Xr(m,p,(function(t){if(0==t){var r=Date.now();E().revalidateOnFocus&&r>n&&C()&&(n=r+E().focusThrottleInterval,e())}else if(1==t)E().revalidateOnReconnect&&C()&&e();else if(2==t)return F()}));return S.current=!1,x.current=m,_.current=!0,t&&H({data:I,error:L,isValidating:D}),M()&&(yr(I)||Lr?e():(a=e,wr()&&o(window.requestAnimationFrame)!=br?window.requestAnimationFrame(a):setTimeout(a,1))),function(){S.current=!0,r(),u()}}var a}),[m,F]),Rr((function(){var t,e=function(){var e=gr(s)?s(I):s;e&&-1!==t&&(t=setTimeout(n,e))},n=function(){N.current.error||!l&&!E().isVisible()||!f&&!E().isOnline()?e():F(to).then(e)};return e(),function(){t&&(clearTimeout(t),t=-1)}}),[s,l,f,F]),(0,Lt.useDebugValue)(I),a&&yr(I)&&m)throw O.current=e,j.current=n,S.current=!1,yr(L)?F(to):L;return{mutate:V,get data(){return U.data=!0,I},get error(){return U.error=!0,L},get isValidating(){return U.isValidating=!0,D}}},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Qr(),r=Yr(t),o=r[0],i=r[1],u=r[2],a=Gr(n,u),c=ur,s=a.use;if(s)for(var l=s.length;l-- >0;)c=s[l](c);return c(o,i||a.fetcher,a)}),no=g(688),ro=g(332),oo=g.n(ro);no.default.extend(oo())}(),m}())}}}))},1493:()=>{System.register([],(function(t,e){return{execute:function(){t(function(){var t={968:function(t,e,n){var r=n(577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},577:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.y=e,r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t}();var o={};return(0,r(968).s)(1),function(){"use strict";var t=function(t,e){for(var n in e)t[n]=e[n];return t},e=function(e){var n=[];function r(t){for(var e=[],r=0;r<n.length;r++)n[r]===t?t=null:e.push(n[r]);n=e}function o(r,o,i){e=o?r:t(t({},e),r);for(var u=n,a=0;a<u.length;a++)u[a](e,i)}return e=e||{},{action:function(t){function n(e){o(e,!1,t)}return function(){for(var r=arguments,o=[e],i=0;i<arguments.length;i++)o.push(r[i]);var u=t.apply(this,o);if(null!=u)return u.then?u.then(n):n(u)}},setState:o,subscribe:function(t){return n.push(t),function(){r(t)}},unsubscribe:r,getState:function(){return e}}},n=function(t,n){var r=s[t];if(r)return r.active?console.error("Cannot override an existing store. Make sure that stores are only created once."):r.value.setState(n,!0),r.active=!0,r.value;var o=e(n);return s[t]={value:o,active:!0},o},i=function(t,n){var r=s[t];if(!r){var o=e(n);return s[t]={value:o,active:!1},o}return r.value},u=function(t){return n("app",t)},a=function(){return i("app",{})},c=function(t,e,n){var r=e(t.getState());return t.subscribe((function(t){var o=e(t);o!==r&&(r=o,n(o))}))};r.r(o),r.d(o,{createAppState:function(){return u},createGlobalStore:function(){return n},getAppState:function(){return a},getGlobalStore:function(){return i},subscribeTo:function(){return c}});var s={}}(),o}())}}}))},2390:()=>{System.register(["@openmrs/esm-extensions","@openmrs/esm-react-utils","@openmrs/esm-state","react","react-dom","rxjs"],(function(t,e){var n={},r={},o={},i={},u={},a={};return{setters:[function(){},function(){},function(t){o.createGlobalStore=t.createGlobalStore},function(){},function(){},function(t){a.Subject=t.Subject}],execute:function(){t(function(){var t={584:function(t,e,n){var r=n(518).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},518:function(t,e,n){e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&i>=0;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var u=r.slice(0,i+1);return n.protocol+"//"+n.host+u},Number.isInteger},78:function(){var t=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":void 0===t?"undefined":(e=t)&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;var e};System.register(["@openmrs/esm-state","single-spa"],(function(e,n){var r={},o={};return{setters:[function(t){r.createGlobalStore=t.createGlobalStore,r.getGlobalStore=t.getGlobalStore},function(t){o.navigateToUrl=t.navigateToUrl}],execute:function(){e(function(){"use strict";var e={685:function(t){t.exports=r},645:function(t){t.exports=o}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,i),o.exports}i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var u={};return function(){var e=function(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]},n=function(t){return function n(r){return 0===arguments.length||e(r)?n:t.apply(this,arguments)}},r=function(t){return function r(o,i){switch(arguments.length){case 0:return r;case 1:return e(o)?r:n((function(e){return t(o,e)}));default:return e(o)&&e(i)?r:e(o)?n((function(e){return t(e,i)})):e(i)?n((function(e){return t(o,e)})):t(o,i)}}},o=function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n},a=function(t,e,n){for(var r=0,o=n.length;r<o;){if(t(e,n[r]))return!0;r+=1}return!1},c=function(t,e){return Object.prototype.hasOwnProperty.call(e,t)},s=function(t,e,n,r){var i=function(t,e){return ct(t,e,n.slice(),r.slice())},u=o(t);return!a((function(t,e){return!a(i,e,t)}),o(e),u)},l=function(t){return function o(i,u,a){switch(arguments.length){case 0:return o;case 1:return e(i)?o:r((function(e,n){return t(i,e,n)}));case 2:return e(i)&&e(u)?o:e(i)?r((function(e,n){return t(e,u,n)})):e(u)?r((function(e,n){return t(i,e,n)})):n((function(e){return t(i,u,e)}));default:return e(i)&&e(u)&&e(a)?o:e(i)&&e(u)?r((function(e,n){return t(e,n,a)})):e(i)&&e(a)?r((function(e,n){return t(e,u,n)})):e(u)&&e(a)?r((function(e,n){return t(i,e,n)})):e(i)?n((function(e){return t(e,u,a)})):e(u)?n((function(e){return t(i,e,a)})):e(a)?n((function(e){return t(i,u,e)})):t(i,u,a)}}},f=function(t,e,n){for(var r=n.next();!r.done;){if((e=t["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)},d=function(t,e,n,r){return t["@@transducer/result"](n[r](mt(t["@@transducer/step"],t),e))},p=function(t){return"[object Object]"===Object.prototype.toString.call(t)},h=function(t,e){return function(n){if(!t(n))return"function"==typeof e?e(n):e}},v=function(){try{return JSON.parse(localStorage.getItem("openmrs:configAreDevDefaultsOn")||"false")}catch(t){return!1}},y=function(t){return(0,Pt.getGlobalStore)("config-module-".concat(t),{config:null,loaded:!1})},g=function(){return(0,Pt.getGlobalStore)("config-extension-slots",{slots:{}})},m=function(t){return b(g().getState(),t)},b=function(t,e){var n=t.slots[e];return null!=n?n:{loaded:!1,config:{}}},w=function(){return(0,Pt.getGlobalStore)("config-extensions",{configs:{}})},_=function(t,e){return S(w().getState(),t,e)},S=function(t,e,n){var r,o=null===(r=t.configs[e])||void 0===r?void 0:r[n];return null!=o?o:{loaded:!1,config:null}},x=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},O=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},j=function(t){for(var e=arguments,n=function(n){var r=null!=e[n]?e[n]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){O(t,e,r[e])}))},r=1;r<arguments.length;r++)n(r);return t},E=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||k(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},C=function(t){return function(t){if(Array.isArray(t))return x(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||k(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},k=function(t,e){if(t){if("string"==typeof t)return x(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(t,e):void 0}},A=function(t,e){var n=!0,r=!1,o=void 0;try{for(var i,u=Object.keys(t.schemas)[Symbol.iterator]();!(n=(i=u.next()).done);n=!0){var a=i.value,c=F(a,t,e);y(a).setState({loaded:!0,config:c})}}catch(t){r=!0,o=t}finally{try{n||null==u.return||u.return()}finally{if(r)throw o}}},P=function(t,e){var n,r,o=(n=$(H(t,e)),function(t){var e=!0,n=!1,r=void 0;try{for(var o,i=Object.entries(t)[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){var u=E(o.value,2),a=u[0],c=u[1],s=!0,l=!1,f=void 0;try{for(var d,p=Object.entries(c)[Symbol.iterator]();!(s=(d=p.next()).done);s=!0){var h=E(d.value,2),v=h[0];U(h[1],a,v)}}catch(t){l=!0,f=t}finally{try{s||null==p.return||p.return()}finally{if(l)throw f}}}}catch(t){n=!0,r=t}finally{try{e||null==i.return||i.return()}finally{if(n)throw r}}}(r=Object.keys(n).reduce((function(t,e){var r,o;return(null===(r=n[e])||void 0===r?void 0:r.extensionSlots)&&(t[e]=null===(o=n[e])||void 0===o?void 0:o.extensionSlots),t}),{})),Object.keys(r).reduce((function(t,e){return j({},t,r[e])}),{})),i=Object.fromEntries(Object.entries(o).map((function(t){var e=E(t,2);return[e[0],{loaded:!0,config:e[1]}]}))),u=g(),a=u.getState(),c={slots:j({},a.slots,i)};st(a,c)||u.setState(c)},I=function(t,e){var n=function(t,e){var n=Bt(pt(t.schemas)),r=C(t.providedConfigs.map((function(t){return[t.config,t.source]}))).concat([[e.config,"temporary config"]]),o=!0,i=!1,u=void 0;try{for(var a,c=r[Symbol.iterator]();!(o=(a=c.next()).done);o=!0){var s=E(a.value,2);n=$([n,Nt(s[0],s[1])])}}catch(t){i=!0,u=t}finally{try{o||null==c.return||c.return()}finally{if(i)throw u}}return n}(t,e);Dt.setState({config:n})},T=function(t,e,n){var r={},o=!0,i=!1,u=void 0;try{for(var a,c=e.mountedExtensions[Symbol.iterator]();!(o=(a=c.next()).done);o=!0){var s=a.value,l=N(s.slotModuleName,s.extensionModuleName,s.slotName,s.extensionId,t,n);r[s.slotName]=j({},r[s.slotName],O({},s.extensionId,{config:l,loaded:!0}))}}catch(t){i=!0,u=t}finally{try{o||null==c.return||c.return()}finally{if(i)throw u}}w().setState({configs:r})},L=function(t,e){Ut(t,e);var n=Tt.getState();Tt.setState({schemas:j({},n.schemas,O({},t,e))})},R=function(t,e){Ut(t,e);var n=Tt.getState();n.schemas[t]&&console.warn("Config schema for extension ".concat(t," already exists. If there are multiple extensions with this same name, one will probably crash.")),Tt.setState({schemas:j({},n.schemas,O({},t,e))})},M=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"provided",n=Tt.getState();Tt.setState({providedConfigs:C(n.providedConfigs).concat([{source:e,config:t}])})},D=function(t){return new Promise((function(e){var n=function(t){t.loaded&&t.config&&(e(t.config),o&&o())},r=y(t);n(r.getState());var o=r.subscribe(n)}))},B=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];z(t,e,n);var o=Vt(t,e,r);return Ft(t,o,n),o},N=function(t,e,n,r,o,i){var u,a,c,s,l=E(r.split("#"),1)[0],f=o.schemas[l],d=f?l:e,p=H(o,i),h=V(t,p),v=null!==(s=null==h||null===(u=h.extensionSlots)||void 0===u||null===(a=u[n])||void 0===a||null===(c=a.configure)||void 0===c?void 0:c[r])&&void 0!==s?s:{},y=$([V(d,p),v]),g=null!=f?f:o.schemas[e];z(g,y,d);var m=Vt(g,y,o.devDefaultsAreOn);return Ft(g,m,d),delete m.extensionSlots,m},U=function(t,e,n){var r="Extension slot config '".concat(e,".extensionSlots.").concat(n),o=Object.keys(t).filter((function(t){return!["add","remove","order","configure"].includes(t)}));o.length&&console.error(r+"' contains invalid keys '".concat(o.join("', '"),"'")),t.add&&(Array.isArray(t.add)&&t.add.every((function(t){return"string"==typeof t}))||console.error(r+".add' is invalid. Must be an array of strings (extension IDs)")),t.remove&&(Array.isArray(t.remove)&&t.remove.every((function(t){return"string"==typeof t}))||console.error(r+".remove' is invalid. Must be an array of strings (extension IDs)")),t.order&&(Array.isArray(t.order)&&t.order.every((function(t){return"string"==typeof t}))||console.error(r+".order' is invalid. Must be an array of strings (extension IDs)")),t.configure&&(Z(t.configure)||console.error(r+".configure' is invalid. Must be an object with extension IDs for keys"))},H=function(t,e){return C(t.providedConfigs.map((function(t){return t.config}))).concat([e.config])},F=function(t,e,n){if(!e.schemas.hasOwnProperty(t))throw Error("No config schema has been defined for "+t);var r=e.schemas[t],o=V(t,H(e,n));z(r,o,t);var i=Vt(r,o,e.devDefaultsAreOn);return Ft(r,i,t),delete i.extensionSlots,i},V=function(t,e){return $(e.map((function(e){return e[t]})).filter((function(t){return!!t})))},$=function(t){return wt(xt)({},t)},z=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!0,o=!1,i=void 0;try{for(var u,a=Object.keys(e)[Symbol.iterator]();!(r=(u=a.next()).done);r=!0){var c=u.value,s=e[c],l=n+"."+c,f=t[c];t.hasOwnProperty(c)?Ht(f,s,l):"extensionSlots"===c&&""!==n||console.error("Unknown config key '".concat(l,"' provided. Ignoring."))}}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}},K=function(t,e,n){e&&q(t,[{Array:Ot,Boolean:jt,ConceptUuid:At,Number:Et,Object:kt,String:Ct,UUID:At,PersonAttributeTypeUuid:At,PatientIdentifierTypeUuid:At}[e]],n)},q=function(t,e,n){if(e)try{var r=!0,o=!1,i=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done);r=!0){var c=(0,u.value)(n);"string"==typeof c&&("object"==typeof n?console.error("Invalid configuration for ".concat(t,": ").concat(c)):console.error("Invalid configuration value ".concat(n," for ").concat(t,": ").concat(c)))}}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}}catch(e){console.error('Skipping invalid validator at "'.concat(t,'". Encountered error\n\t').concat(e))}},W=function(t){return!!t&&Object.keys(t).filter((function(t){return!["_default","_validators"].includes(t)})).length>0},Z=function(t){return"object"==typeof t&&!Array.isArray(t)&&null!==t},G=function(t){var e=window.getOpenmrsSpaBase().replace(/\/$/,"");return J(t,{openmrsBase:window.openmrsBase,openmrsSpaBase:e}).replace(/^\/\//,"/")},J=function(t,e){return Object.keys(e).reduce((function(t,n){return t.split("${"+n+"}").join(e[n])}),t)},Y=function(t){var e=t.to,n=window.getOpenmrsSpaBase().replace(/\/$/,""),r=G(e);r.startsWith(n)?(0,$t.navigateToUrl)(r):window.location.assign(r)};i.r(u),i.d(u,{Type:function(){return ft},configExtensionStore:function(){return Mt},configInternalStore:function(){return Tt},defineConfigSchema:function(){return L},defineExtensionConfigSchema:function(){return R},getConfig:function(){return D},getConfigStore:function(){return y},getExtensionConfig:function(){return _},getExtensionConfigFromStore:function(){return S},getExtensionSlotConfig:function(){return m},getExtensionSlotConfigFromStore:function(){return b},getExtensionSlotsConfigStore:function(){return g},getExtensionsConfigStore:function(){return w},implementerToolsConfigStore:function(){return Dt},inRange:function(){return zt},interpolateString:function(){return J},interpolateUrl:function(){return G},isUrl:function(){return qt},isUrlWithTemplateParameters:function(){return Kt},navigate:function(){return Y},oneOf:function(){return Wt},processConfig:function(){return B},provide:function(){return M},temporaryConfigStore:function(){return Rt},validator:function(){return h},validators:function(){return Zt}});var Q="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e},X=Object.prototype.toString,tt=function(){return"[object Arguments]"===X.call(arguments)?function(t){return"[object Arguments]"===X.call(t)}:function(t){return c("callee",t)}}(),et=tt,nt=!{toString:null}.propertyIsEnumerable("toString"),rt=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],ot=function(){return arguments.propertyIsEnumerable("length")}(),it=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1},ut="function"!=typeof Object.keys||ot?n((function(t){if(Object(t)!==t)return[];var e,n,r=[],o=ot&&et(t);for(e in t)!c(e,t)||o&&"length"===e||(r[r.length]=e);if(nt)for(n=rt.length-1;n>=0;)c(e=rt[n],t)&&!it(r,e)&&(r[r.length]=e),n-=1;return r})):n((function(t){return Object(t)!==t?[]:Object.keys(t)})),at=n((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function ct(e,n,r,o){if(Q(e,n))return!0;var i,u,a=at(e);if(a!==at(n))return!1;if(null==e||null==n)return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof n.equals)return"function"==typeof e.equals&&e.equals(n)&&"function"==typeof n.equals&&n.equals(e);switch(a){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(i=e.constructor,null==(u=String(i).match(/^function (\w*)/))?"":u[1]))return e===n;break;case"Boolean":case"Number":case"String":if((void 0===e?"undefined":t(e))!=(void 0===n?"undefined":t(n))||!Q(e.valueOf(),n.valueOf()))return!1;break;case"Date":if(!Q(e.valueOf(),n.valueOf()))return!1;break;case"Error":return e.name===n.name&&e.message===n.message;case"RegExp":if(e.source!==n.source||e.global!==n.global||e.ignoreCase!==n.ignoreCase||e.multiline!==n.multiline||e.sticky!==n.sticky||e.unicode!==n.unicode)return!1}for(var l=r.length-1;l>=0;){if(r[l]===e)return o[l]===n;l-=1}switch(a){case"Map":return e.size===n.size&&s(e.entries(),n.entries(),r.concat([e]),o.concat([n]));case"Set":return e.size===n.size&&s(e.values(),n.values(),r.concat([e]),o.concat([n]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var f=ut(e);if(f.length!==ut(n).length)return!1;var d=r.concat([e]),p=o.concat([n]);for(l=f.length-1;l>=0;){var h=f[l];if(!c(h,n)||!ct(n[h],e[h],d,p))return!1;l-=1}return!0}var st=r((function(t,e){return ct(t,e,[],[])}));function lt(t,e,n,r){var o,i=function(o){for(var i=e.length,u=0;u<i;){if(t===e[u])return n[u];u+=1}for(var a in e[u+1]=t,n[u+1]=o,t)o[a]=r?lt(t[a],e,n,!0):t[a];return o};switch(at(t)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(t.valueOf());case"RegExp":return o=t,new RegExp(o.source,(o.global?"g":"")+(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.sticky?"y":"")+(o.unicode?"u":""));default:return t}}var ft,dt,pt=n((function(t){return null!=t&&"function"==typeof t.clone?t.clone():lt(t,[],[],!0)})),ht=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)},vt=n((function(t){return!!ht(t)||!!t&&"object"==typeof t&&(e=t,!("[object String]"===Object.prototype.toString.call(e)))&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1));var e})),yt=function(){var t=function(t){this.f=t};return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}(),gt=r((function(t,e){return function(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,o){return e.apply(this,arguments)};case 5:return function(t,n,r,o,i){return e.apply(this,arguments)};case 6:return function(t,n,r,o,i,u){return e.apply(this,arguments)};case 7:return function(t,n,r,o,i,u,a){return e.apply(this,arguments)};case 8:return function(t,n,r,o,i,u,a,c){return e.apply(this,arguments)};case 9:return function(t,n,r,o,i,u,a,c,s){return e.apply(this,arguments)};case 10:return function(t,n,r,o,i,u,a,c,s,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}(t.length,(function(){return t.apply(e,arguments)}))})),mt=gt,bt="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",wt=l((function(t,e,n){if("function"==typeof t&&(t=new yt(t)),vt(n))return function(t,e,n){for(var r=0,o=n.length;r<o;){if((e=t["@@transducer/step"](e,n[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}(t,e,n);if("function"==typeof n["fantasy-land/reduce"])return d(t,e,n,"fantasy-land/reduce");if(null!=n[bt])return f(t,e,n[bt]());if("function"==typeof n.next)return f(t,e,n);if("function"==typeof n.reduce)return d(t,e,n,"reduce");throw new TypeError("reduce: list must be array or iterable")})),_t=l((function(t,e,n){var r,o={};for(r in e)c(r,e)&&(o[r]=c(r,n)?t(r,e[r],n[r]):e[r]);for(r in n)c(r,n)&&!c(r,o)&&(o[r]=n[r]);return o})),St=l((function t(e,n,r){return _t((function(n,r,o){return p(r)&&p(o)?t(e,r,o):e(n,r,o)}),n,r)})),xt=r((function(t,e){return St((function(t,e,n){return n}),t,e)}));(dt=ft||(ft={})).Array="Array",dt.Boolean="Boolean",dt.ConceptUuid="ConceptUuid",dt.Number="Number",dt.Object="Object",dt.String="String",dt.UUID="UUID",dt.PersonAttributeTypeUuid="PersonAttributeTypeUuid",dt.PatientIdentifierTypeUuid="PatientIdentifierTypeUuid";var Ot=h((function(t){return Array.isArray(t)}),"must be an array"),jt=h((function(t){return"boolean"==typeof t}),"must be a boolean"),Et=h((function(t){return"number"==typeof t}),"must be a number"),Ct=h((function(t){return"string"==typeof t}),"must be a string"),kt=h((function(t){return"object"==typeof t&&!Array.isArray(t)&&null!==t}),"must be an object (not an array or null)"),At=h((function(t){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)||/^[0-9a-f]{36}$/i.test(t)}),"must be a valid UUID or a 36-character hexadecimal string"),Pt=i(685),It={providedConfigs:[],schemas:{},devDefaultsAreOn:v()},Tt=(0,Pt.createGlobalStore)("config-internal",It),Lt=v();Tt.subscribe((function(t){var e;t.devDefaultsAreOn!=Lt&&(e=t.devDefaultsAreOn,localStorage.setItem("openmrs:configAreDevDefaultsOn",JSON.stringify(e)),Lt=t.devDefaultsAreOn)}));var Rt=(0,Pt.createGlobalStore)("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(t){return{}}}()});Rt.subscribe((function(t){var e;e=t.config,localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(e))}));var Mt=(0,Pt.createGlobalStore)("config-store-of-extension-state",{mountedExtensions:[]}),Dt=(0,Pt.createGlobalStore)("config-implementer-tools",{config:{}});function Bt(t){return t.hasOwnProperty("_default")?j({},t,{_value:t._default,_source:"default"}):Z(t)?Object.keys(t).reduce((function(e,n){return e[n]=Bt(t[n]),e}),{}):{}}function Nt(t,e){return Z(t)?Object.keys(t).reduce((function(n,r){return n[r]=Nt(t[r],e),n}),{}):{_value:t,_source:e}}function Ut(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r="Please verify that you are running the latest version and, if so, alert the maintainer.",o=!0,i=!1,u=void 0;try{for(var a,c=function(o,i){var u=i.value,a=n+(n&&".")+u,c=e[u];if(!Z(c))return console.error("".concat(t," has bad config schema definition for key '").concat(a,"'. ").concat(r)),"continue";c.hasOwnProperty("_default")||Ut(t,c,a);var s=c._elements;if(W(s)&&Ut(t,s,a+"._elements"),c._validators){var l=!0,f=!1,d=void 0;try{for(var p,h=c._validators[Symbol.iterator]();!(l=(p=h.next()).done);l=!0){var v=p.value;"function"!=typeof v&&console.error("".concat(t," has invalid validator for key '").concat(a,"' ").concat(r,".")+"\n\nIf you're the maintainer: validators must be functions that return either "+"undefined or an error string. Received ".concat(v,"."))}}catch(t){f=!0,d=t}finally{try{l||null==h.return||h.return()}finally{if(f)throw d}}}var y=c._type;y&&!Object.values(ft).includes(y)&&console.error("".concat(t," has invalid type for key '").concat(a,"' ").concat(r,".")+"\n\nIf you're the maintainer: the allowed types are ".concat(Object.values(ft).join(", "),". ")+"Received '".concat(y,"'")),Object.keys(c).every((function(t){return["_description","_validators","_elements","_type"].includes(t)}))&&!n.includes("._elements")&&console.error("".concat(t," has bad config schema definition for key '").concat(a,"'. ").concat(r,".")+"\n\nIf you're the maintainer: all config elements must have a default. "+"Received ".concat(JSON.stringify(c))),s&&y&&![ft.Array,ft.Object].includes(y)&&console.error("".concat(t," has bad config schema definition for key '").concat(a,"'. ").concat(r,".")+"\n\nIf you're the maintainer: the 'elements' key only works with '_type' equal to 'Array' or 'Object'. "+"Received ".concat(JSON.stringify(y)))},s=Object.keys(e).filter((function(t){return!t.startsWith("_")}))[Symbol.iterator]();!(o=(a=s.next()).done);o=!0)c(s,a)}catch(t){i=!0,u=t}finally{try{o||null==s.return||s.return()}finally{if(i)throw u}}}function Ht(t,e,n){K(n,t._type,e),Z(e)?t._type===ft.Object?function(t,e,n){if(t._elements){var r=!0,o=!1,i=void 0;try{for(var u,a=Object.keys(e)[Symbol.iterator]();!(r=(u=a.next()).done);r=!0){var c=u.value,s=e[c];z(t._elements,s,"".concat(n,".").concat(c))}}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}}}(t,e,n):t.hasOwnProperty("_default")||z(t,e,n):t._type===ft.Array&&function(t,e,n){if(W(t._elements))for(var r=0;r<e.length;r++)Ht(t._elements,e[r],"".concat(n,"[").concat(r,"]"));for(var o=0;o<e.length;o++){var i;K("".concat(n,"[").concat(o,"]"),null===(i=t._elements)||void 0===i?void 0:i._type,e[o])}}(t,e,n)}function Ft(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(t)if(e!==t._default&&q(n,t._validators,e),Z(e)){var r=!0,o=!1,i=void 0;try{for(var u,a=Object.keys(e)[Symbol.iterator]();!(r=(u=a.next()).done);r=!0){var c=u.value,s=e[c],l=n+"."+c,f=t[c];t._type===ft.Object&&t._elements?Ft(t._elements,s,l):Ft(f,s,l)}}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}}else if(Array.isArray(e)&&t._elements)for(var d=0;d<e.length;d++)Ft(t._elements,e[d],"".concat(n,"[").concat(d,"]"))}A(Tt.getState(),Rt.getState()),Tt.subscribe((function(t){return A(t,Rt.getState())})),Rt.subscribe((function(t){return A(Tt.getState(),t)})),I(Tt.getState(),Rt.getState()),Tt.subscribe((function(t){return I(t,Rt.getState())})),Rt.subscribe((function(t){return I(Tt.getState(),t)})),P(Tt.getState(),Rt.getState()),Tt.subscribe((function(t){return P(t,Rt.getState())})),Rt.subscribe((function(t){return P(Tt.getState(),t)})),T(Tt.getState(),Mt.getState(),Rt.getState()),Tt.subscribe((function(t){T(t,Mt.getState(),Rt.getState())})),Mt.subscribe((function(t){T(Tt.getState(),t,Rt.getState())})),Rt.subscribe((function(t){T(Tt.getState(),Mt.getState(),t)}));var Vt=function(t,e,n){var r=pt(e);if(!t)return r;var o=!0,i=!1,u=void 0;try{for(var a,c=function(e,o){var i=o.value,u=r[i],a=t[i];if(a&&a.hasOwnProperty("_default")){if(!r.hasOwnProperty(i)){var c=a._devDefault||a._default;r[i]=n?c:a._default}var s=a._elements;if(u&&W(s))if(a._type===ft.Array&&Array.isArray(u)){var l=u.map((function(t){return Vt(s,t,n)}));r[i]=l}else if(a._type===ft.Object){var f=!0,d=!1,p=void 0;try{for(var h,v=Object.keys(u)[Symbol.iterator]();!(f=(h=v.next()).done);f=!0){var y=h.value;u[y]=Vt(s,u[y],n)}}catch(t){d=!0,p=t}finally{try{f||null==v.return||v.return()}finally{if(d)throw p}}}}else if(Z(a)){var g=r.hasOwnProperty(i)?u:{};Z(g)&&(r[i]=Vt(a,g,n))}},s=Object.keys(t)[Symbol.iterator]();!(o=(a=s.next()).done);o=!0)c(0,a)}catch(t){i=!0,u=t}finally{try{o||null==s.return||s.return()}finally{if(i)throw u}}return r},$t=i(645),zt=function(t,e){return h((function(n){return t<=n&&n<=e}),"must be between ".concat(t," and ").concat(e))},Kt=function(t){var e=t.concat(["openmrsBase","openmrsSpaBase"]);return h((function(t){if(!t||"string"!=typeof t)return!1;for(var n=/\${(.*?)}/g,r=n.exec(t);r;){if(!e.includes(r[1]))return!1;r=n.exec(t)}return!0}),"Should be a URL or path. The allowed template parameters are "+e.map((function(t){return"${"+t+"}"})).join(", "))},qt=Kt([]),Wt=function(t){return h((function(e){return t.includes(e)}),"Must be one of the following: '".concat(t.join("', '"),"'."))},Zt={inRange:zt,isUrl:qt,isUrlWithTemplateParameters:Kt,oneOf:Wt}}(),u}())}}}))},991:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/callend/access_time24px">\n <path id="icon/callend/access_time24px" d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-.22-13h-.06c-.4 0-.72.32-.72.72v4.72c0 .35.18.68.49.86l4.15 2.49c.34.2.78.1.98-.24.21-.34.1-.79-.25-.99l-3.87-2.3V7.72c0-.4-.32-.72-.72-.72z" />\n </g>\n <title>Access time rounded</title>\n</svg>'},662:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <g id="icon/content/add-24px">\n <path d="M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z"/>\n </g>\n <title>Add rounded</title>\n</svg>\n'},865:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/arrow_back_24px">\n <path id="icon/navigation/arrow_back_24px_2" d="M18.7912 11.005H7.62124L12.5012 6.12499C12.8912 5.73499 12.8912 5.09499 12.5012 4.70499C12.3144 4.51774 12.0608 4.41251 11.7962 4.41251C11.5317 4.41251 11.2781 4.51774 11.0912 4.70499L4.50124 11.295C4.11124 11.685 4.11124 12.315 4.50124 12.705L11.0912 19.295C11.4812 19.685 12.1112 19.685 12.5012 19.295C12.8912 18.905 12.8912 18.275 12.5012 17.885L7.62124 13.005H18.7912C19.3412 13.005 19.7912 12.555 19.7912 12.005C19.7912 11.455 19.3412 11.005 18.7912 11.005Z"/>\n </g>\n <title>Arrow back rounded</title>\n</svg>\n'},646:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/arrow_downward_24px">\n <path id="icon/navigation/arrow_downward_24px_2" d="M11.005 5.20874V16.3787L6.12498 11.4987C5.73498 11.1087 5.09498 11.1087 4.70498 11.4987C4.31498 11.8887 4.31498 12.5187 4.70498 12.9087L11.295 19.4987C11.685 19.8887 12.315 19.8887 12.705 19.4987L19.295 12.9087C19.685 12.5187 19.685 11.8887 19.295 11.4987C19.1081 11.3115 18.8545 11.2063 18.59 11.2063C18.3255 11.2063 18.0718 11.3115 17.885 11.4987L13.005 16.3787V5.20874C13.005 4.65874 12.555 4.20874 12.005 4.20874C11.455 4.20874 11.005 4.65874 11.005 5.20874Z"/>\n </g>\n <title>Arrow downward rounded</title>\n</svg>\n'},509:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1z"/>\n <title>Arrow forward rounded</title>\n</svg>'},250:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/arrow_upward_24px">\n <path id="icon/navigation/arrow_upward_24px_2" d="M13 18.7913V7.62126L17.88 12.5013C18.27 12.8913 18.91 12.8913 19.3 12.5013C19.69 12.1113 19.69 11.4813 19.3 11.0913L12.71 4.50126C12.5231 4.314 12.2695 4.20877 12.005 4.20877C11.7405 4.20877 11.4868 4.314 11.3 4.50126L4.69997 11.0813C4.30997 11.4713 4.30997 12.1013 4.69997 12.4913C5.08997 12.8813 5.71997 12.8813 6.10997 12.4913L11 7.62126V18.7913C11 19.3413 11.45 19.7913 12 19.7913C12.55 19.7913 13 19.3413 13 18.7913Z"/>\n </g>\n <title>Arrow upward rounded </title>\n</svg>\n'},142:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/callend/calendar24px">\n <path d="M20 3h-1V2c0-.55-.45-1-1-1s-1 .45-1 1v1H7V2c0-.55-.45-1-1-1s-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 18H5c-.55 0-1-.45-1-1V8h16v12c0 .55-.45 1-1 1z"/>\n </g>\n <title>Calendar rounded</title>\n</svg>'},451:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>\n <title>Check circle</title>\n</svg>\n'},61:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_down_24px">\n <path id="icon/navigation/chevron_down_24px" d="M8.12 9.29L12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7c-.39-.39-.39-1.02 0-1.41.39-.38 1.03-.39 1.42 0z"/>\n </g>\n <title>Chevron down</title>\n</svg>\n'},76:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_left_24px">\n <path id="icon/navigation/chevron_left_24px_2" d="M15 6.70499C14.8132 6.51774 14.5595 6.41251 14.295 6.41251C14.0305 6.41251 13.7769 6.51774 13.59 6.70499L9.00002 11.295C8.61002 11.685 8.61002 12.315 9.00002 12.705L13.59 17.295C13.98 17.685 14.61 17.685 15 17.295C15.39 16.905 15.39 16.275 15 15.885L11.12 11.995L15 8.11499C15.39 7.72499 15.38 7.08499 15 6.70499Z"/>\n </g>\n <title>Chevron left</title>\n</svg>\n'},600:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_right_24px">\n <path id="icon/navigation/chevron_right_24px_2" d="M9.00002 6.71063C8.61002 7.10063 8.61002 7.73063 9.00002 8.12063L12.88 12.0006L9.00002 15.8806C8.61002 16.2706 8.61002 16.9006 9.00002 17.2906C9.39002 17.6806 10.02 17.6806 10.41 17.2906L15 12.7006C15.39 12.3106 15.39 11.6806 15 11.2906L10.41 6.70063C10.03 6.32063 9.39002 6.32063 9.00002 6.71063Z"/>\n </g>\n <title>Chevron right</title>\n</svg>\n'},40:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/chevron_up_24px">\n <path d="M11.29 8.71L6.7 13.3c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 10.83l3.88 3.88c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 8.71c-.38-.39-1.02-.39-1.41 0z"/>\n </g>\n <title>Chevron up</title>\n</svg>\n'},714:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M18.3 5.71c-.39-.39-1.02-.39-1.41 0L12 10.59 7.11 5.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"/>\n <title>Close icon</title>\n</svg>'},752:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z" />\n <title>Download icon</title>\n</svg>'},862:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n<g id="icon/navigation/home_24px">\n <path id="icon/navigation/home_24px" d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z"/>\n</g>\n<title>Home rounded</title>\n</svg>'},601:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/important_notification_24px_rounded">\n <path d="M12 23c1.1 0 1.99-.89 1.99-1.99h-3.98c0 1.1.89 1.99 1.99 1.99zm8.29-4.71L19 17v-6c0-3.35-2.36-6.15-5.5-6.83V3c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v1.17C7.36 4.85 5 7.65 5 11v6l-1.29 1.29c-.63.63-.19 1.71.7 1.71h15.17c.9 0 1.34-1.08.71-1.71zM13 16h-2v-2h2v2zm0-5c0 .55-.45 1-1 1s-1-.45-1-1V9c0-.55.45-1 1-1s1 .45 1 1v2z"/>\n </g>\n <title>Important notification</title>\n</svg>\n'},879:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24">\n <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/>\n <path d="M0 0h24v24H0z" class="omrs-icon-location"/>\n <title>Location icon</title>\n</svg>'},739:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/navigation/menu_24px">\n <path id="icon/navigation/menu_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M4 8C3.44995 8 3 7.54999 3 7C3 6.45001 3.44995 6 4 6H20C20.55 6 21 6.45001 21 7C21 7.54999 20.55 8 20 8H4ZM4 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11H4C3.44995 11 3 11.45 3 12C3 12.55 3.44995 13 4 13ZM4 18H20C20.55 18 21 17.55 21 17C21 16.45 20.55 16 20 16H4C3.44995 16 3 16.45 3 17C3 17.55 3.44995 18 4 18Z"/>\n </g>\n <title>Menu rounded</title>\n</svg>\n'},524:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/content/add-24px">\n <path d="M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1z"/>\n </g>\n <title>Remove rounded</title>\n</svg>\n'},787:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/search_24px">\n <path id="icon/action/search_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M15.1865 14.4716H15.9765L20.2165 18.7316C20.6266 19.1416 20.6266 19.8116 20.2165 20.2216C19.8065 20.6316 19.1366 20.6316 18.7265 20.2216L14.4765 15.9716V15.1816L14.2065 14.9016C12.8065 16.1016 10.8966 16.7216 8.86655 16.3816C6.08652 15.9116 3.86655 13.5916 3.52658 10.7916C3.00656 6.56158 6.5665 3.00158 10.7966 3.52157C13.5965 3.86157 15.9166 6.08157 16.3866 8.86157C16.7265 10.8916 16.1065 12.8016 14.9066 14.2016L15.1865 14.4716ZM5.47653 9.97155C5.47653 12.4615 7.48654 14.4716 9.97653 14.4716C12.4665 14.4716 14.4765 12.4615 14.4765 9.97155C14.4765 7.48156 12.4665 5.47155 9.97653 5.47155C7.48654 5.47155 5.47653 7.48156 5.47653 9.97155Z"/>\n </g>\n <title>Search rounded</title>\n</svg>\n'},592:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/supervised_user_circle_24px">\n <path id="icon/action/supervised_user_circle_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M12 2C6.47998 2 2 6.48001 2 12C2 17.52 6.47998 22 12 22C17.52 22 22 17.52 22 12C22 6.48001 17.52 2 12 2ZM15.61 8.34C16.6801 8.34 17.54 9.19998 17.54 10.27C17.54 11.34 16.6801 12.2 15.61 12.2C14.54 12.2 13.6801 11.34 13.6801 10.27C13.67 9.19998 14.54 8.34 15.61 8.34ZM11.97 9.12C11.97 7.82001 10.91 6.76001 9.60999 6.76001C8.30005 6.76001 7.25 7.81 7.25 9.12C7.25 10.42 8.31006 11.48 9.60999 11.48C10.91 11.48 11.97 10.42 11.97 9.12ZM9.60999 15.89V19.64C7.20996 18.89 5.30994 17.04 4.46997 14.68C5.52002 13.56 8.14001 12.99 9.60999 12.99C10.14 12.99 10.8099 13.07 11.51 13.21C9.87 14.08 9.60999 15.23 9.60999 15.89ZM11.21 19.96C11.47 19.99 11.73 20 12 20C15.39 20 18.2799 17.88 19.45 14.91C18.5299 14.15 16.6799 13.76 15.61 13.76C14.1499 13.76 11.21 14.47 11.21 15.89V19.96Z"/>\n </g>\n <title>Supervised user circle rounded</title>\n</svg>\n'},141:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/visibility_24px">\n <path id="icon/action/visibility_24px_2" fill-rule="evenodd" clip-rule="evenodd" d="M12 4.5C7 4.5 2.72998 7.60999 1 12C2.72998 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.60999 17 4.5 12 4.5ZM12 17C9.23999 17 7 14.76 7 12C7 9.23999 9.23999 7 12 7C14.76 7 17 9.23999 17 12C17 14.76 14.76 17 12 17ZM9 12C9 10.34 10.34 9 12 9C13.66 9 15 10.34 15 12C15 13.66 13.66 15 12 15C10.34 15 9 13.66 9 12Z"/>\n </g>\n <title>Visibility rounded</title>\n</svg>\n'},647:function(t){"use strict";t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="icon/action/visibility_24px">\n <path d="M15.85 3.85L17.3 5.3l-2.18 2.16c-.39.39-.39 1.03 0 1.42.39.39 1.03.39 1.42 0L18.7 6.7l1.45 1.45c.31.31.85.09.85-.36V3.5c0-.28-.22-.5-.5-.5h-4.29c-.45 0-.67.54-.36.85zm-12 4.3L5.3 6.7l2.16 2.18c.39.39 1.03.39 1.42 0 .39-.39.39-1.03 0-1.42L6.7 5.3l1.45-1.45c.31-.31.09-.85-.36-.85H3.5c-.28 0-.5.22-.5.5v4.29c0 .45.54.67.85.36zm4.3 12L6.7 18.7l2.18-2.16c.39-.39.39-1.03 0-1.42-.39-.39-1.03-.39-1.42 0L5.3 17.3l-1.45-1.45c-.31-.31-.85-.09-.85.36v4.29c0 .28.22.5.5.5h4.29c.45 0 .67-.54.36-.85zm12-4.3L18.7 17.3l-2.16-2.18c-.39-.39-1.03-.39-1.42 0-.39.39-.39 1.03 0 1.42l2.18 2.16-1.45 1.45c-.31.31-.09.85.36.85h4.29c.28 0 .5-.22.5-.5v-4.29c0-.45-.54-.67-.85-.36z" />\n </g>\n <title>\n Zoom Out \n </title>\n</svg>'},885:function(t){"use strict";t.exports='<svg viewBox="0 0 380 119" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.29 40.3278C45.3275 35.2904 52.2878 32.1739 59.9776 32.1739C67.6466 32.1739 74.5911 35.2765 79.6245 40.29L79.6454 21.7502C73.7513 18.7143 67.0622 17 59.9776 17C52.8891 17 46.1652 18.9309 40.2692 21.9679L40.29 40.3278Z" fill="var(--logo-red)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6454 79.6712C74.6079 84.7096 67.6506 87.8251 59.9608 87.8251C52.2918 87.8251 45.3473 84.7236 40.3099 79.709L40.29 98.2498C46.1871 101.285 52.8732 103 59.9608 103C67.0493 103 73.7374 101.285 79.6315 98.2488L79.6454 79.6712Z" fill="var(--logo-orange)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.3278 79.6961C35.2904 74.6586 32.1739 67.7012 32.1739 60.0114C32.1739 52.3425 35.2755 45.399 40.29 40.3616L21.7492 40.3417C18.7143 46.2378 17 52.9229 17 60.0114C17 67.1 18.7143 73.7881 21.7522 79.6831L40.3278 79.6961Z" fill="var(--logo-purple)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6344 40.289C84.6719 45.3255 87.7883 52.2868 87.7883 59.9766C87.7883 67.6456 84.6868 74.5901 79.6712 79.6225L98.213 79.6434C101.248 73.7493 102.962 67.0612 102.962 59.9766C102.962 52.8871 101.248 46.198 98.211 40.302L79.6344 40.289Z" fill="var(--logo-green)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M156.184 60.0025C156.184 51.2543 150.066 44.2264 141.159 44.2264C132.25 44.2264 126.134 51.2543 126.134 60.0025C126.134 68.7507 132.25 75.7816 141.159 75.7816C150.066 75.7816 156.184 68.7507 156.184 60.0025ZM121.303 60.0025C121.303 48.5205 129.621 40.0436 141.159 40.0436C152.695 40.0436 161.014 48.5205 161.014 60.0025C161.014 71.4875 152.695 79.9674 141.159 79.9674C129.621 79.9674 121.303 71.4875 121.303 60.0025Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M179.514 75.5401C185.021 75.5401 188.564 71.4 188.564 66.0585C188.564 60.717 185.021 56.575 179.514 56.575C174.009 56.575 170.468 60.717 170.468 66.0585C170.468 71.4 174.009 75.5401 179.514 75.5401ZM166.22 53.3064H170.468V57.0102H170.578C172.922 54.2853 176.027 52.6506 179.732 52.6506C187.746 52.6506 193.14 58.32 193.14 66.0585C193.14 73.6887 187.527 79.4645 180.388 79.4645C175.808 79.4645 172.157 77.1749 170.578 74.286H170.468V90.87H166.22V53.3064Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.773 63.7679C217.61 59.4629 214.773 56.575 210.087 56.575C205.402 56.575 202.297 59.4629 201.752 63.7679H217.773ZM221.426 74.1796C218.425 78.0484 214.83 79.4645 210.087 79.4645C202.077 79.4645 197.173 73.4711 197.173 66.0585C197.173 58.157 202.732 52.6506 210.253 52.6506C217.449 52.6506 222.349 57.5568 222.349 66.0049V67.3673H201.752C202.077 71.7797 205.456 75.5401 210.087 75.5401C213.737 75.5401 216.192 74.2333 218.207 71.6723L221.426 74.1796Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.854 59.3565C227.854 57.0102 227.638 54.9959 227.638 53.3064H231.669C231.669 54.6689 231.779 56.083 231.779 57.5012H231.889C233.033 54.9959 236.195 52.6506 240.389 52.6506C247.094 52.6506 250.088 56.9029 250.088 63.0603V78.8086H245.84V63.4986C245.84 59.2462 243.984 56.575 240.007 56.575C234.504 56.575 232.104 60.554 232.104 66.3865V78.8086H227.854V59.3565Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M259.211 41.0085H265.919L278.8 70.7909H278.907L291.889 41.0085H298.438V78.9994H293.932V47.1242H293.826L280.192 78.9994H277.454L263.825 47.1242H263.718V78.9994H259.211V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M312.392 57.7516H316.415C321.407 57.7516 327.902 57.7516 327.902 51.47C327.902 45.9992 323.126 45.1943 318.725 45.1943H312.392V57.7516ZM307.886 41.0085H317.597C324.949 41.0085 332.729 42.0798 332.729 51.47C332.729 56.9973 329.135 60.5948 323.234 61.507L334.018 78.9994H328.493L318.189 61.9364H312.392V78.9994H307.886V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M358.123 47.7125C356.617 45.2986 353.936 44.2264 351.197 44.2264C347.224 44.2264 343.097 46.1056 343.097 50.6113C343.097 54.1005 345.028 55.6577 351.091 57.5906C356.994 59.4688 362.468 61.3997 362.468 68.858C362.468 76.4246 355.973 79.9674 349.108 79.9674C344.706 79.9674 339.983 78.5174 337.408 74.7063L341.27 71.5412C342.88 74.3347 346.1 75.7816 349.375 75.7816C353.237 75.7816 357.638 73.5277 357.638 69.18C357.638 64.5112 354.473 63.7063 347.71 61.4524C342.344 59.6805 338.268 57.3183 338.268 50.989C338.268 43.6907 344.545 40.0436 351.197 40.0436C355.438 40.0436 359.033 41.2222 361.822 44.4947L358.123 47.7125Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M185.885 90.9982H187.309L190.043 97.3236H190.066L192.824 90.9982H194.215V99.0676H193.258V92.2971H193.234L190.34 99.0676H189.758L186.864 92.2971H186.842V99.0676H185.885V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M198.386 90.9982H203.457V91.8867H199.343V94.4168H203.184V95.3062H199.343V98.1782H203.663V99.0676H198.386V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M207.891 98.1782H209.713C211.561 98.1782 212.963 97.2431 212.963 95.0319C212.963 92.8218 211.561 91.8867 209.713 91.8867H207.891V98.1782ZM206.934 90.9982H210.034C211.617 90.9982 213.987 92.0586 213.987 95.0319C213.987 98.0083 211.617 99.0676 210.034 99.0676H206.934V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.007 99.0676H217.965V90.9982H217.007V99.0676Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.105 92.6628C226.627 92.0119 225.863 91.6819 225.088 91.6819C223.288 91.6819 222.011 93.266 222.011 95.0319C222.011 96.9012 223.277 98.3839 225.088 98.3839C226.068 98.3839 226.855 97.9844 227.425 97.255L228.143 97.8582C227.425 98.8281 226.377 99.2724 225.088 99.2724C222.774 99.2724 220.986 97.4826 220.986 95.0319C220.986 92.6628 222.695 90.7935 225.088 90.7935C226.183 90.7935 227.254 91.1701 227.937 92.0586L227.105 92.6628Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M233.557 92.2295H233.533L231.858 96.1947H235.152L233.557 92.2295ZM233.123 90.9982H234.023L237.453 99.0676H236.336L235.516 97.0841H231.482L230.65 99.0676H229.568L233.123 90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M240.006 90.9982H240.964V98.1782H244.656V99.0676H240.006V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M252.793 94.5539H253.648C254.708 94.5539 256.087 94.5539 256.087 93.2203C256.087 92.0586 255.073 91.8867 254.139 91.8867H252.793V94.5539ZM251.836 90.9982H253.899C255.46 90.9982 257.113 91.2258 257.113 93.2203C257.113 94.3939 256.349 95.1582 255.095 95.3519L257.386 99.0676H256.213L254.023 95.4434H252.793V99.0676H251.836V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M260.51 90.9982H265.58V91.8867H261.468V94.4168H265.308V95.3062H261.468V98.1782H265.786V99.0676H260.51V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M274.402 92.6628C273.923 92.0119 273.16 91.6819 272.384 91.6819C270.584 91.6819 269.307 93.266 269.307 95.0319C269.307 96.9012 270.573 98.3839 272.384 98.3839C273.364 98.3839 274.151 97.9844 274.72 97.255L275.438 97.8582C274.72 98.8281 273.672 99.2724 272.384 99.2724C270.071 99.2724 268.282 97.4826 268.282 95.0319C268.282 92.6628 269.991 90.7935 272.384 90.7935C273.478 90.7935 274.55 91.1701 275.234 92.0586L274.402 92.6628Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M284.739 95.0319C284.739 93.1746 283.439 91.6819 281.548 91.6819C279.656 91.6819 278.357 93.1746 278.357 95.0319C278.357 96.8903 279.656 98.3839 281.548 98.3839C283.439 98.3839 284.739 96.8903 284.739 95.0319ZM277.33 95.0319C277.33 92.5932 279.097 90.7935 281.548 90.7935C283.998 90.7935 285.765 92.5932 285.765 95.0319C285.765 97.4726 283.998 99.2724 281.548 99.2724C279.097 99.2724 277.33 97.4726 277.33 95.0319Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M289.514 94.5539H290.369C291.428 94.5539 292.807 94.5539 292.807 93.2203C292.807 92.0586 291.793 91.8867 290.859 91.8867H289.514V94.5539ZM288.556 90.9982H290.618C292.181 90.9982 293.833 91.2258 293.833 93.2203C293.833 94.3939 293.07 95.1582 291.817 95.3519L294.106 99.0676H292.933L290.744 95.4434H289.514V99.0676H288.556V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M297.81 98.1782H299.635C301.48 98.1782 302.881 97.2431 302.881 95.0319C302.881 92.8218 301.48 91.8867 299.635 91.8867H297.81V98.1782ZM296.853 90.9982H299.953C301.538 90.9982 303.909 92.0586 303.909 95.0319C303.909 98.0083 301.538 99.0676 299.953 99.0676H296.853V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M315.407 92.4223C315.089 91.9095 314.517 91.6819 313.937 91.6819C313.093 91.6819 312.216 92.0814 312.216 93.0384C312.216 93.7788 312.626 94.1097 313.914 94.5202C315.168 94.9187 316.331 95.3291 316.331 96.9132C316.331 98.5201 314.951 99.2724 313.493 99.2724C312.558 99.2724 311.555 98.9643 311.007 98.1554L311.828 97.4826C312.17 98.0759 312.854 98.3839 313.549 98.3839C314.37 98.3839 315.303 97.9049 315.303 96.9807C315.303 95.9899 314.633 95.818 313.196 95.341C312.057 94.9644 311.19 94.4625 311.19 93.1189C311.19 91.5677 312.523 90.7935 313.937 90.7935C314.837 90.7935 315.601 91.0439 316.193 91.7386L315.407 92.4223Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M320.844 95.5914L317.835 90.9982H319.054L321.323 94.6454L323.658 90.9982H324.81L321.8 95.5914V99.0676H320.844V95.5914Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M330.565 92.4223C330.245 91.9095 329.675 91.6819 329.094 91.6819C328.251 91.6819 327.374 92.0814 327.374 93.0384C327.374 93.7788 327.784 94.1097 329.072 94.5202C330.326 94.9187 331.487 95.3291 331.487 96.9132C331.487 98.5201 330.109 99.2724 328.65 99.2724C327.716 99.2724 326.713 98.9643 326.165 98.1554L326.986 97.4826C327.328 98.0759 328.012 98.3839 328.707 98.3839C329.528 98.3839 330.461 97.9049 330.461 96.9807C330.461 95.9899 329.79 95.818 328.354 95.341C327.215 94.9644 326.348 94.4625 326.348 93.1189C326.348 91.5677 327.681 90.7935 329.094 90.7935C329.995 90.7935 330.759 91.0439 331.351 91.7386L330.565 92.4223Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M339.283 91.8867H336.617V99.0676H335.659V91.8867H332.992V90.9982H339.283V91.8867Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M341.665 90.9982H346.736V91.8867H342.623V94.4168H346.463V95.3062H342.623V98.1782H346.942V99.0676H341.665V90.9982Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M349.905 90.9982H351.329L354.064 97.3236H354.087L356.845 90.9982H358.236V99.0676H357.278V92.2971H357.255L354.361 99.0676H353.779L350.884 92.2971H350.863V99.0676H349.905V90.9982Z" fill="var(--logo-black)"/>\n</svg>\n'},575:function(t){"use strict";t.exports='<svg id="omrs-logo-icon" width="121" height="118" viewBox="0 0 121 118" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.436 39.474C45.505 34.405 52.509 31.269 60.247 31.269C67.964 31.269 74.952 34.391 80.017 39.436L80.038 20.78C74.107 17.725 67.376 16 60.247 16C53.114 16 46.348 17.943 40.415 20.999L40.436 39.474Z" fill="var(--logo-red)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M80.038 79.064C74.969 84.134 67.968 87.269 60.23 87.269C52.513 87.269 45.525 84.148 40.456 79.102L40.436 97.759C46.37 100.813 53.098 102.539 60.23 102.539C67.363 102.539 74.093 100.813 80.024 97.758L80.038 79.064Z" fill="var(--logo-orange)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.474 79.089C35.405 74.02 32.269 67.019 32.269 59.281C32.269 51.564 35.39 44.577 40.436 39.508L21.779 39.488C18.725 45.421 17 52.148 17 59.281C17 66.414 18.725 73.144 21.782 79.076L40.474 79.089Z" fill="var(--logo-purple)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M80.027 39.435C85.096 44.503 88.232 51.508 88.232 59.246C88.232 66.963 85.111 73.951 80.064 79.015L98.722 79.036C101.776 73.105 103.501 66.375 103.501 59.246C103.501 52.112 101.776 45.381 98.72 39.448L80.027 39.435Z" fill="var(--logo-green)"/>\n</svg>\n'},93:function(t){"use strict";t.exports='<svg id="omrs-logo-partial" viewBox="0 0 380 119" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.2901 40.3278C45.3275 35.2904 52.2879 32.1739 59.9777 32.1739C67.6466 32.1739 74.5911 35.2765 79.6246 40.29L79.6454 21.7502C73.7514 18.7143 67.0623 17 59.9777 17C52.8891 17 46.1653 18.9309 40.2692 21.9679L40.2901 40.3278Z" fill="var(--logo-red)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6454 79.6712C74.6079 84.7096 67.6506 87.8251 59.9608 87.8251C52.2918 87.8251 45.3473 84.7236 40.3099 79.709L40.29 98.2498C46.1871 101.285 52.8732 103 59.9608 103C67.0493 103 73.7374 101.285 79.6315 98.2488L79.6454 79.6712Z" fill="var(--logo-orange)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.3278 79.6961C35.2904 74.6586 32.1739 67.7012 32.1739 60.0114C32.1739 52.3425 35.2755 45.399 40.29 40.3616L21.7492 40.3417C18.7143 46.2378 17 52.9229 17 60.0114C17 67.1 18.7143 73.7881 21.7522 79.6831L40.3278 79.6961Z" fill="var(--logo-purple)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6344 40.289C84.6718 45.3255 87.7883 52.2868 87.7883 59.9766C87.7883 67.6456 84.6867 74.5901 79.6712 79.6225L98.213 79.6434C101.248 73.7493 102.962 67.0612 102.962 59.9766C102.962 52.8871 101.248 46.198 98.211 40.302L79.6344 40.289Z" fill="var(--logo-green)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M156.184 60.0025C156.184 51.2543 150.066 44.2264 141.159 44.2264C132.25 44.2264 126.134 51.2543 126.134 60.0025C126.134 68.7507 132.25 75.7816 141.159 75.7816C150.066 75.7816 156.184 68.7507 156.184 60.0025ZM121.303 60.0025C121.303 48.5205 129.621 40.0436 141.159 40.0436C152.695 40.0436 161.014 48.5205 161.014 60.0025C161.014 71.4875 152.695 79.9674 141.159 79.9674C129.621 79.9674 121.303 71.4875 121.303 60.0025Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M179.514 75.5401C185.021 75.5401 188.564 71.4 188.564 66.0585C188.564 60.717 185.021 56.575 179.514 56.575C174.009 56.575 170.468 60.717 170.468 66.0585C170.468 71.4 174.009 75.5401 179.514 75.5401ZM166.22 53.3064H170.468V57.0102H170.578C172.922 54.2853 176.027 52.6506 179.732 52.6506C187.746 52.6506 193.14 58.32 193.14 66.0585C193.14 73.6887 187.527 79.4645 180.388 79.4645C175.808 79.4645 172.157 77.1749 170.578 74.286H170.468V90.87H166.22V53.3064Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.773 63.7679C217.61 59.4629 214.773 56.575 210.087 56.575C205.402 56.575 202.297 59.4629 201.752 63.7679H217.773ZM221.426 74.1796C218.425 78.0484 214.83 79.4645 210.087 79.4645C202.077 79.4645 197.173 73.4711 197.173 66.0585C197.173 58.157 202.732 52.6506 210.253 52.6506C217.449 52.6506 222.349 57.5568 222.349 66.0049V67.3673H201.752C202.077 71.7797 205.456 75.5401 210.087 75.5401C213.737 75.5401 216.192 74.2333 218.207 71.6723L221.426 74.1796Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.854 59.3565C227.854 57.0102 227.638 54.9959 227.638 53.3064H231.669C231.669 54.6689 231.779 56.083 231.779 57.5012H231.889C233.033 54.9959 236.195 52.6506 240.389 52.6506C247.094 52.6506 250.088 56.9029 250.088 63.0603V78.8086H245.84V63.4986C245.84 59.2462 243.984 56.575 240.007 56.575C234.504 56.575 232.104 60.554 232.104 66.3865V78.8086H227.854V59.3565Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M259.211 41.0085H265.919L278.8 70.7909H278.907L291.889 41.0085H298.438V78.9994H293.932V47.1242H293.826L280.192 78.9994H277.454L263.825 47.1242H263.718V78.9994H259.211V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M312.392 57.7516H316.415C321.407 57.7516 327.902 57.7516 327.902 51.47C327.902 45.9992 323.126 45.1943 318.725 45.1943H312.392V57.7516ZM307.886 41.0085H317.597C324.949 41.0085 332.729 42.0798 332.729 51.47C332.729 56.9973 329.135 60.5948 323.234 61.5071L334.018 78.9994H328.493L318.189 61.9364H312.392V78.9994H307.886V41.0085Z" fill="var(--logo-black)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M358.123 47.7125C356.617 45.2986 353.936 44.2264 351.197 44.2264C347.224 44.2264 343.097 46.1056 343.097 50.6113C343.097 54.1005 345.028 55.6577 351.091 57.5906C356.994 59.4688 362.468 61.3997 362.468 68.858C362.468 76.4246 355.973 79.9674 349.108 79.9674C344.706 79.9674 339.983 78.5174 337.408 74.7063L341.27 71.5412C342.88 74.3347 346.1 75.7816 349.375 75.7816C353.237 75.7816 357.638 73.5277 357.638 69.18C357.638 64.5112 354.473 63.7063 347.71 61.4524C342.344 59.6805 338.268 57.3183 338.268 50.989C338.268 43.6907 344.545 40.0436 351.197 40.0436C355.438 40.0436 359.033 41.2222 361.822 44.4947L358.123 47.7125Z" fill="var(--logo-black)"/>\n</svg>\n'},839:function(t){"use strict";t.exports='<svg id="omrs-logo-white" viewBox="0 0 380 119" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.2901 40.3278C45.3275 35.2904 52.2879 32.1739 59.9777 32.1739C67.6466 32.1739 74.5911 35.2765 79.6246 40.29L79.6454 21.7502C73.7514 18.7143 67.0623 17 59.9777 17C52.8891 17 46.1653 18.9309 40.2692 21.9679L40.2901 40.3278Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6454 79.6712C74.6079 84.7096 67.6506 87.8251 59.9608 87.8251C52.2918 87.8251 45.3473 84.7236 40.3099 79.709L40.29 98.2498C46.1871 101.285 52.8732 103 59.9608 103C67.0493 103 73.7374 101.285 79.6315 98.2488L79.6454 79.6712Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M40.3278 79.6961C35.2904 74.6586 32.1739 67.7012 32.1739 60.0114C32.1739 52.3425 35.2755 45.399 40.29 40.3616L21.7492 40.3417C18.7143 46.2378 17 52.9229 17 60.0114C17 67.1 18.7143 73.7881 21.7522 79.6831L40.3278 79.6961Z" fill="var(--logo-grey)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M79.6344 40.289C84.6718 45.3255 87.7883 52.2868 87.7883 59.9766C87.7883 67.6456 84.6867 74.5901 79.6712 79.6225L98.213 79.6434C101.248 73.7493 102.962 67.0612 102.962 59.9766C102.962 52.8871 101.248 46.198 98.211 40.302L79.6344 40.289Z" fill="var(--logo-grey)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M156.184 60.0025C156.184 51.2543 150.066 44.2264 141.159 44.2264C132.25 44.2264 126.134 51.2543 126.134 60.0025C126.134 68.7507 132.25 75.7816 141.159 75.7816C150.066 75.7816 156.184 68.7507 156.184 60.0025ZM121.303 60.0025C121.303 48.5205 129.621 40.0436 141.159 40.0436C152.695 40.0436 161.014 48.5205 161.014 60.0025C161.014 71.4875 152.695 79.9674 141.159 79.9674C129.621 79.9674 121.303 71.4875 121.303 60.0025Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M179.514 75.5401C185.021 75.5401 188.564 71.4 188.564 66.0585C188.564 60.717 185.021 56.575 179.514 56.575C174.009 56.575 170.468 60.717 170.468 66.0585C170.468 71.4 174.009 75.5401 179.514 75.5401ZM166.22 53.3064H170.468V57.0102H170.578C172.922 54.2853 176.027 52.6506 179.732 52.6506C187.746 52.6506 193.14 58.32 193.14 66.0585C193.14 73.6887 187.527 79.4645 180.388 79.4645C175.808 79.4645 172.157 77.1749 170.578 74.286H170.468V90.87H166.22V53.3064Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M217.773 63.7679C217.61 59.4629 214.773 56.575 210.087 56.575C205.402 56.575 202.297 59.4629 201.752 63.7679H217.773ZM221.426 74.1796C218.425 78.0484 214.83 79.4645 210.087 79.4645C202.077 79.4645 197.173 73.4711 197.173 66.0585C197.173 58.157 202.732 52.6506 210.253 52.6506C217.449 52.6506 222.349 57.5568 222.349 66.0049V67.3673H201.752C202.077 71.7797 205.456 75.5401 210.087 75.5401C213.737 75.5401 216.192 74.2333 218.207 71.6723L221.426 74.1796Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M227.854 59.3565C227.854 57.0102 227.638 54.9959 227.638 53.3064H231.669C231.669 54.6689 231.779 56.083 231.779 57.5012H231.889C233.033 54.9959 236.195 52.6506 240.389 52.6506C247.094 52.6506 250.088 56.9029 250.088 63.0603V78.8086H245.84V63.4986C245.84 59.2462 243.984 56.575 240.007 56.575C234.504 56.575 232.104 60.554 232.104 66.3865V78.8086H227.854V59.3565Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M259.211 41.0085H265.919L278.8 70.7909H278.907L291.889 41.0085H298.438V78.9994H293.932V47.1242H293.826L280.192 78.9994H277.454L263.825 47.1242H263.718V78.9994H259.211V41.0085Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M312.392 57.7516H316.415C321.407 57.7516 327.902 57.7516 327.902 51.47C327.902 45.9992 323.126 45.1943 318.725 45.1943H312.392V57.7516ZM307.886 41.0085H317.597C324.949 41.0085 332.729 42.0798 332.729 51.47C332.729 56.9973 329.135 60.5948 323.234 61.5071L334.018 78.9994H328.493L318.189 61.9364H312.392V78.9994H307.886V41.0085Z" fill="var(--logo-white)"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M358.123 47.7125C356.617 45.2986 353.936 44.2264 351.197 44.2264C347.224 44.2264 343.097 46.1056 343.097 50.6113C343.097 54.1005 345.028 55.6577 351.091 57.5906C356.994 59.4688 362.468 61.3997 362.468 68.858C362.468 76.4246 355.973 79.9674 349.108 79.9674C344.706 79.9674 339.983 78.5174 337.408 74.7063L341.27 71.5412C342.88 74.3347 346.1 75.7816 349.375 75.7816C353.237 75.7816 357.638 73.5277 357.638 69.18C357.638 64.5112 354.473 63.7063 347.71 61.4524C342.344 59.6805 338.268 57.3183 338.268 50.989C338.268 43.6907 344.545 40.0436 351.197 40.0436C355.438 40.0436 359.033 41.2222 361.822 44.4947L358.123 47.7125Z" fill="var(--logo-white)"/>\n</svg>\n'},45:function(t){"use strict";t.exports=n},740:function(t){"use strict";t.exports=r},685:function(t){"use strict";t.exports=o},954:function(t){"use strict";t.exports=i},493:function(t){"use strict";t.exports=u},792:function(t){"use strict";t.exports=a}},c={};function s(e){var n=c[e];if(void 0!==n)return n.exports;var r=c[e]={exports:{}};return t[e](r,r.exports,s),r.exports}s.y=e,s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;s.g.importScripts&&(t=s.g.location+"");var e=s.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");n.length&&(t=n[n.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=t}();var l={};return(0,s(584).s)(1),function(){"use strict";var t=function(t,e){var n=(new DOMParser).parseFromString(e,"text/html").querySelector("svg");n&&(n.id=t,i.appendChild(n))},e=s(885),n=s(93),r=s(575),o=s(839),i=document.createElement("div"),u=function(){document.body.appendChild(i)};i.id="omrs-svgs-container",i.style.display="none","complete"===document.readyState?u():window.addEventListener("load",u);var a=s(141),c=s(739),l=s(787),f=s(865),d=s(509),p=s(646),h=s(250),v=s(76),y=s(600),g=s(40),m=s(61),b=s(592),w=s(862),_=s(714),S=s(601),x=s(142),O=s(991),j=s(662),E=s(524),C=s(451),k=s(647),A=s(879),P=s(752),I=s(78);s(954),s(493);var T=s(792);new T.Subject,new T.Subject,s(45);var L,R=s(685);(0,R.createGlobalStore)("globalModalState",{modalContainer:null,modalStack:[]}),window.getComputedStyle(document.body).overflow,s(740),(0,R.createGlobalStore)("left-nav",{slotName:null,basePath:window.spaBase}),L=function(t,e){document.documentElement.style.setProperty(t,e)},(0,I.defineConfigSchema)("@openmrs/esm-styleguide",{"Brand color #1":{_default:"#005d5d",_type:I.Type.String},"Brand color #2":{_default:"#004144",_type:I.Type.String},"Brand color #3":{_default:"#007d79",_type:I.Type.String}}),(0,I.getConfigStore)("@openmrs/esm-styleguide").subscribe((function(t){t.loaded&&t.config&&(L("--brand-01",t.config["Brand color #1"]),L("--brand-02",t.config["Brand color #2"]),L("--brand-03",t.config["Brand color #3"]))})),t("omrs-logo-full-color",e),t("omrs-logo-full-mono",e),t("omrs-logo-full-grey",e),t("omrs-logo-partial-color",n),t("omrs-logo-partial-mono",n),t("omrs-logo-partial-grey",n),t("omrs-logo-icon-color",r),t("omrs-logo-icon-mono",r),t("omrs-logo-icon-grey",r),t("omrs-logo-white",o),t("omrs-icon-visibility",a),t("omrs-icon-menu",c),t("omrs-icon-search",l),t("omrs-icon-arrow-back",f),t("omrs-icon-arrow-forward",d),t("omrs-icon-arrow-downward",p),t("omrs-icon-arrow-upward",h),t("omrs-icon-chevron-left",v),t("omrs-icon-chevron-right",y),t("omrs-icon-chevron-up",g),t("omrs-icon-chevron-down",m),t("omrs-icon-supervised-user-circle",b),t("omrs-icon-home",w),t("omrs-icon-close",_),t("omrs-icon-important-notification",S),t("omrs-icon-calendar",x),t("omrs-icon-access-time",O),t("omrs-icon-add",j),t("omrs-icon-remove",E),t("omrs-icon-check-circle",C),t("omrs-icon-zoomoutmap",k),t("omrs-icon-location",A),t("omrs-icon-download",P)}(),function(){"use strict";s.r(l)}(),l}())}}}))}}]);
|