@openmrs/esm-framework 6.3.1-pre.3077 → 6.3.1-pre.3081

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.
@@ -1,2 +1,2 @@
1
- (()=>{var e={1690:function(){"use strict";function e(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var t,n,r,i={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?i.enableCssCustomProperties=!0:i.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?i.enableCssGrid=!0:i.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE?"true"===process.env.CARBON_ENABLE_V11_RELEASE?i.enableV11Release=!0:i.enableV11Release=!1:i.enableV11Release=!0,process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST?i.enableExperimentalTileContrast=!0:i.enableExperimentalTileContrast=!1,process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS?i.enableV12TileDefaultIcons=!0:i.enableV12TileDefaultIcons=!1,process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS?i.enableV12TileRadioIcons=!0:i.enableV12TileRadioIcons=!1,process.env.CARBON_ENABLE_V12_OVERFLOWMENU&&"true"===process.env.CARBON_ENABLE_V12_OVERFLOWMENU?i.enableV12Overflowmenu=!0:i.enableV12Overflowmenu=!1,process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE&&"true"===process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE?i.enableTreeviewControllable=!0:i.enableTreeviewControllable=!1,process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS&&"true"===process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS?i.enableV12StructuredListVisibleIcons=!0:i.enableV12StructuredListVisibleIcons=!1,process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS?i.enableExperimentalFocusWrapWithoutSentinels=!0:i.enableExperimentalFocusWrapWithoutSentinels=!1,process.env.CARBON_ENABLE_DIALOG_ELEMENT&&"true"===process.env.CARBON_ENABLE_DIALOG_ELEMENT?i.enableDialogElement=!0:i.enableDialogElement=!1,process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES&&"true"===process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES?i.enableV12DynamicFloatingStyles=!0:i.enableV12DynamicFloatingStyles=!1}catch(e){i.enableCssCustomProperties=!1,i.enableCssGrid=!1,i.enableV11Release=!0,i.enableExperimentalTileContrast=!1,i.enableV12TileDefaultIcons=!1,i.enableV12TileRadioIcons=!1,i.enableV12Overflowmenu=!1,i.enableTreeviewControllable=!1,i.enableV12StructuredListVisibleIcons=!1,i.enableExperimentalFocusWrapWithoutSentinels=!1,i.enableDialogElement=!1,i.enableV12DynamicFloatingStyles=!1}var o=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:i.enableCssCustomProperties},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:i.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:i.enableV11Release},{name:"enable-experimental-tile-contrast",description:"Enable the experimental tile improved contrast styles\n",enabled:i.enableExperimentalTileContrast},{name:"enable-v12-tile-default-icons",description:"Enable rendering of default icons in the tile components\n",enabled:i.enableV12TileDefaultIcons},{name:"enable-v12-tile-radio-icons",description:"Enable rendering of radio icons in the RadioTile component\n",enabled:i.enableV12TileRadioIcons},{name:"enable-v12-overflowmenu",description:"Enable the use of the v12 OverflowMenu leveraging the Menu subcomponents\n",enabled:i.enableV12Overflowmenu},{name:"enable-treeview-controllable",description:"Enable the new TreeView controllable API\n",enabled:i.enableTreeviewControllable},{name:"enable-v12-structured-list-visible-icons",description:"Enable rendering of radio icons in the StructuredList component\n",enabled:i.enableV12StructuredListVisibleIcons},{name:"enable-experimental-focus-wrap-without-sentinels",description:"Enable the new focus wrap behavior that doesn't use sentinel nodes\n",enabled:i.enableExperimentalFocusWrapWithoutSentinels},{name:"enable-dialog-element",description:"Enable components to utilize the native dialog element\n",enabled:i.enableDialogElement},{name:"enable-v12-dynamic-floating-styles",description:"Enable dynamic setting of floating styles for components like Popover, Tooltip, etc.\n",enabled:i.enableV12DynamicFloatingStyles}];function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}for(var c=(n=function e(t){var n=this,r=e;if(null!=r&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?!r[Symbol.hasInstance](this):!(this instanceof r))throw TypeError("Cannot call a class as a function");this.flags=new Map,t&&Object.keys(t).forEach(function(e){n.flags.set(e,t[e])})},r=[{key:"checkForFlag",value:function(e){if(!this.flags.has(e))throw Error("Unable to find a feature flag with the name: `".concat(e,"`"))}},{key:"add",value:function(e,t){if(this.flags.has(e))throw Error("The feature flag: ".concat(e," already exists"));this.flags.set(e,t)}},{key:"enable",value:function(e){this.checkForFlag(e),this.flags.set(e,!0)}},{key:"disable",value:function(e){this.checkForFlag(e),this.flags.set(e,!1)}},{key:"merge",value:function(e){var t=this;Object.keys(e).forEach(function(n){t.flags.set(n,e[n])})}},{key:"mergeWithScope",value:function(e){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}(e.flags);try{for(n.s();!(t=n.n()).done;){var r,i=(r=t.value,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,u=!1;try{o=(n=n.call(e)).next,!1;for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(r,2)||s(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],a=i[1];this.flags.has(o)||this.flags.set(o,a)}}catch(e){n.e(e)}finally{n.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}],function(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,function(t){var n=function(t,n){if("object"!=(void 0===t?"undefined":e(t))||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,n||"default");if("object"!=(void 0===i?"undefined":e(i)))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==(void 0===n?"undefined":e(n))?n:n+""}(i.key),i)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n),u=new c(void 0),l=0;l<o.length;l++){var f=o[l];u.add(f.name,f.enabled)}!function(){u.merge.apply(u,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1,"enable-v12-tile-radio-icons":!1,"enable-v12-structured-list-visible-icons":!1,"enable-v12-dynamic-floating-styles":!1})},3126:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(1690),t()}catch(e){t(e)}})},7530:function(e,t){var n,r;n=this,r=function(){return function(e,t,n){t.prototype.isToday=function(){var e="YYYY-MM-DD",t=n();return this.format(e)===t.format(e)}}},"object"==(t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)?e.exports=r():"function"==typeof define&&define.amd?define(r):(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_isToday=r()},3270:function(e,t,n){!function(t){"use strict";var r=n(8573);function i(e){return function(t,n){var r;return(void 0===t?"undefined":(r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&(n=t,t=null),null==t&&(t=new Date().toString()),n||(n={}),e.call(this,t,n)}}var o=e.exports={generate:i(function(e,t){return new r(e,t)})};t&&(t.fn.geopattern=i(function(e,n){return this.each(function(){var r=t(this).attr("data-title-sha");r&&(n=t.extend({hash:r},n));var i=o.generate(e,n);t(this).css("background-image",i.toDataUrl())})}))}("undefined"!=typeof jQuery?jQuery:null)},5090:function(e){"use strict";e.exports={hex2rgb:function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,r){return t+t+n+n+r+r});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},rgb2hex:function(e){return"#"+["r","g","b"].map(function(t){return("0"+e[t].toString(16)).slice(-2)}).join("")},rgb2hsl:function(e){var t,n,r=e.r,i=e.g,o=e.b,a=Math.max(r/=255,i/=255,o/=255),s=Math.min(r,i,o),c=(a+s)/2;if(a===s)t=n=0;else{var u=a-s;switch(n=c>.5?u/(2-a-s):u/(a+s),a){case r:t=(i-o)/u+6*(i<o);break;case i:t=(o-r)/u+2;break;case o:t=(r-i)/u+4}t/=6}return{h:t,s:n,l:c}},hsl2rgb:function(e){function t(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var n,r,i,o=e.h,a=e.s,s=e.l;if(0===a)n=r=i=s;else{var c=s<.5?s*(1+a):s+a-s*a,u=2*s-c;n=t(u,c,o+1/3),r=t(u,c,o),i=t(u,c,o-1/3)}return{r:Math.round(255*n),g:Math.round(255*r),b:Math.round(255*i)}},rgb2rgbString:function(e){return"rgb("+[e.r,e.g,e.b].join(",")+")"}}},8573:function(e,t,n){"use strict";var r=n(5884),i=n(5090),o=n(5794),a=n(5107),s={baseColor:"#933c3c"},c=["octogons","overlappingCircles","plusSigns","xes","sineWaves","hexagons","overlappingRings","plaid","triangles","squares","concentricCircles","diamonds","tessellation","nestedSquares","mosaicSquares","chevrons"],u="#000";function l(e,t,n){return parseInt(e.substr(t,n||1),16)}function f(e,t,n,r,i){return(parseFloat(e)-t)*(i-r)/(n-t)+r}function h(e){return e%2==0?"#ddd":"#222"}function d(e){return f(e,0,15,.02,.15)}var p=e.exports=function(e,t){return this.opts=r({},s,t),this.hash=t.hash||o(e),this.svg=new a,this.generateBackground(),this.generatePattern(),this};function y(e){return[[e,0,e,3*e],[0,e,3*e,e]]}function v(e){return[0,0,e,e,0,e,0,0].join(",")}function b(e,t,n,r,i){var o=v(r),a=d(i[0]),s=h(i[0]),c={stroke:u,"stroke-opacity":.02,"fill-opacity":a,fill:s};e.polyline(o,c).transform({translate:[t+r,n],scale:[-1,1]}),e.polyline(o,c).transform({translate:[t+r,n+2*r],scale:[1,-1]}),c={stroke:u,"stroke-opacity":.02,"fill-opacity":a=d(i[1]),fill:s=h(i[1])},e.polyline(o,c).transform({translate:[t+r,n+2*r],scale:[-1,-1]}),e.polyline(o,c).transform({translate:[t+r,n],scale:[1,1]})}function m(e,t,n,r,i){var o=d(i),a=h(i),s=v(r),c={stroke:u,"stroke-opacity":.02,"fill-opacity":o,fill:a};e.polyline(s,c).transform({translate:[t,n+r],scale:[1,-1]}),e.polyline(s,c).transform({translate:[t+2*r,n+r],scale:[-1,-1]}),e.polyline(s,c).transform({translate:[t,n+r],scale:[1,1]}),e.polyline(s,c).transform({translate:[t+2*r,n+r],scale:[-1,1]})}p.prototype.toSvg=function(){return this.svg.toString()},p.prototype.toString=function(){return this.toSvg()},p.prototype.toBase64=function(){var e,t=this.toSvg();return"undefined"!=typeof window&&"function"==typeof window.btoa?window.btoa(t):new Buffer(t).toString("base64")},p.prototype.toDataUri=function(){return"data:image/svg+xml;base64,"+this.toBase64()},p.prototype.toDataUrl=function(){return'url("'+this.toDataUri()+'")'},p.prototype.generateBackground=function(){var e,t,n,r;this.opts.color?n=i.hex2rgb(this.opts.color):(t=f(l(this.hash,14,3),0,4095,0,359),r=l(this.hash,17),(e=i.rgb2hsl(i.hex2rgb(this.opts.baseColor))).h=(360*e.h-t+360)%360/360,r%2==0?e.s=Math.min(1,(100*e.s+r)/100):e.s=Math.max(0,(100*e.s-r)/100),n=i.hsl2rgb(e)),this.color=i.rgb2hex(n),this.svg.rect(0,0,"100%","100%",{fill:i.rgb2rgbString(n)})},p.prototype.generatePattern=function(){var e=this.opts.generator;if(e){if(0>c.indexOf(e))throw Error("The generator "+e+" does not exist.")}else e=c[l(this.hash,20)];return this["geo"+e.slice(0,1).toUpperCase()+e.slice(1)]()},p.prototype.geoHexagons=function(){var e,t,n,r,i,o,a,s,c,p=f(l(this.hash,0),0,15,8,60),y=p*Math.sqrt(3),v=2*p,b=(s=p/2,[0,c=Math.sin(60*Math.PI/180)*p,s,0,s+p,0,2*p,c,s+p,2*c,s,2*c,0,c].join(","));for(this.svg.setWidth(3*v+3*p),this.svg.setHeight(6*y),t=0,a=0;a<6;a++)for(o=0;o<6;o++)i=l(this.hash,t),e=o%2==0?a*y:a*y+y/2,n=d(i),r={fill:h(i),"fill-opacity":n,stroke:u,"stroke-opacity":.02},this.svg.polyline(b,r).transform({translate:[o*p*1.5-v/2,e-y/2]}),0===o&&this.svg.polyline(b,r).transform({translate:[6*p*1.5-v/2,e-y/2]}),0===a&&(e=o%2==0?6*y:6*y+y/2,this.svg.polyline(b,r).transform({translate:[o*p*1.5-v/2,e-y/2]})),0===o&&0===a&&this.svg.polyline(b,r).transform({translate:[6*p*1.5-v/2,5*y+y/2]}),t++},p.prototype.geoSineWaves=function(){var e,t,n,r,i,o,a,s=Math.floor(f(l(this.hash,0),0,15,100,400)),c=Math.floor(f(l(this.hash,1),0,15,30,100)),u=Math.floor(f(l(this.hash,2),0,15,3,30));for(this.svg.setWidth(s),this.svg.setHeight(36*u),t=0;t<36;t++)n=d(o=l(this.hash,t)),e=h(o),a=s/4*.7,i={fill:"none",stroke:e,opacity:n,"stroke-width":""+u+"px"},r="M0 "+c+" C "+a+" 0, "+(s/2-a)+" 0, "+s/2+" "+c+" S "+(s-a)+" "+2*c+", "+s+" "+c+" S "+(1.5*s-a)+" 0, "+1.5*s+", "+c,this.svg.path(r,i).transform({translate:[-s/4,u*t-1.5*c]}),this.svg.path(r,i).transform({translate:[-s/4,u*t-1.5*c+36*u]})},p.prototype.geoChevrons=function(){var e,t,n,r,i,o,a,s=f(l(this.hash,0),0,15,30,80),c=f(l(this.hash,0),0,15,30,80),p=(e=.66*c,[[0,0,s/2,c-e,s/2,c,0,e,0,0],[s/2,c-e,s,0,s,e,s/2,c,s/2,c-e]].map(function(e){return e.join(",")}));for(this.svg.setWidth(6*s),this.svg.setHeight(6*c*.66),t=0,a=0;a<6;a++)for(o=0;o<6;o++)n=d(i=l(this.hash,t)),r={stroke:u,"stroke-opacity":.02,fill:h(i),"fill-opacity":n,"stroke-width":1},this.svg.group(r).transform({translate:[o*s,a*c*.66-c/2]}).polyline(p).end(),0===a&&this.svg.group(r).transform({translate:[o*s,6*c*.66-c/2]}).polyline(p).end(),t+=1},p.prototype.geoPlusSigns=function(){var e,t,n,r,i,o,a,s,c=f(l(this.hash,0),0,15,10,25),p=3*c,v=y(c);for(this.svg.setWidth(12*c),this.svg.setHeight(12*c),n=0,s=0;s<6;s++)for(a=0;a<6;a++)r=d(o=l(this.hash,n)),t=h(o),e=+(s%2!=0),i={fill:t,stroke:u,"stroke-opacity":.02,"fill-opacity":r},this.svg.group(i).transform({translate:[a*p-a*c+e*c-c,s*p-s*c-p/2]}).rect(v).end(),0===a&&this.svg.group(i).transform({translate:[4*p-a*c+e*c-c,s*p-s*c-p/2]}).rect(v).end(),0===s&&this.svg.group(i).transform({translate:[a*p-a*c+e*c-c,4*p-s*c-p/2]}).rect(v).end(),0===a&&0===s&&this.svg.group(i).transform({translate:[4*p-a*c+e*c-c,4*p-s*c-p/2]}).rect(v).end(),n++},p.prototype.geoXes=function(){var e,t,n,r,i,o,a,s=f(l(this.hash,0),0,15,10,25),c=y(s),u=3*s*.943;for(this.svg.setWidth(3*u),this.svg.setHeight(3*u),t=0,a=0;a<6;a++)for(o=0;o<6;o++)n=d(i=l(this.hash,t)),e=o%2==0?a*u-.5*u:a*u-.5*u+u/4,r={fill:h(i),opacity:n},this.svg.group(r).transform({translate:[o*u/2-u/2,e-a*u/2],rotate:[45,u/2,u/2]}).rect(c).end(),0===o&&this.svg.group(r).transform({translate:[6*u/2-u/2,e-a*u/2],rotate:[45,u/2,u/2]}).rect(c).end(),0===a&&(e=o%2==0?6*u-u/2:6*u-u/2+u/4,this.svg.group(r).transform({translate:[o*u/2-u/2,e-6*u/2],rotate:[45,u/2,u/2]}).rect(c).end()),5===a&&this.svg.group(r).transform({translate:[o*u/2-u/2,e-11*u/2],rotate:[45,u/2,u/2]}).rect(c).end(),0===o&&0===a&&this.svg.group(r).transform({translate:[6*u/2-u/2,e-6*u/2],rotate:[45,u/2,u/2]}).rect(c).end(),t++},p.prototype.geoOverlappingCircles=function(){var e,t,n,r,i,o,a=f(l(this.hash,0),0,15,25,200)/2;for(this.svg.setWidth(6*a),this.svg.setHeight(6*a),e=0,o=0;o<6;o++)for(i=0;i<6;i++)t=d(r=l(this.hash,e)),n={fill:h(r),opacity:t},this.svg.circle(i*a,o*a,a,n),0===i&&this.svg.circle(6*a,o*a,a,n),0===o&&this.svg.circle(i*a,6*a,a,n),0===i&&0===o&&this.svg.circle(6*a,6*a,a,n),e++},p.prototype.geoOctogons=function(){var e,t,n,r,i,o,a,s=f(l(this.hash,0),0,15,10,60),c=[e=.33*s,0,s-e,0,s,e,s,s-e,s-e,s,e,s,0,s-e,0,e,e,0].join(",");for(this.svg.setWidth(6*s),this.svg.setHeight(6*s),n=0,a=0;a<6;a++)for(o=0;o<6;o++)r=d(i=l(this.hash,n)),t=h(i),this.svg.polyline(c,{fill:t,"fill-opacity":r,stroke:u,"stroke-opacity":.02}).transform({translate:[o*s,a*s]}),n+=1},p.prototype.geoSquares=function(){var e,t,n,r,i,o,a=f(l(this.hash,0),0,15,10,60);for(this.svg.setWidth(6*a),this.svg.setHeight(6*a),t=0,o=0;o<6;o++)for(i=0;i<6;i++)n=d(r=l(this.hash,t)),e=h(r),this.svg.rect(i*a,o*a,a,a,{fill:e,"fill-opacity":n,stroke:u,"stroke-opacity":.02}),t+=1},p.prototype.geoConcentricCircles=function(){var e,t,n,r,i,o,a=f(l(this.hash,0),0,15,10,60),s=a/5;for(this.svg.setWidth((a+s)*6),this.svg.setHeight((a+s)*6),t=0,o=0;o<6;o++)for(i=0;i<6;i++)n=d(r=l(this.hash,t)),e=h(r),this.svg.circle(i*a+i*s+(a+s)/2,o*a+o*s+(a+s)/2,a/2,{fill:"none",stroke:e,opacity:n,"stroke-width":s+"px"}),n=d(r=l(this.hash,39-t)),e=h(r),this.svg.circle(i*a+i*s+(a+s)/2,o*a+o*s+(a+s)/2,a/4,{fill:e,"fill-opacity":n}),t+=1},p.prototype.geoOverlappingRings=function(){var e,t,n,r,i,o,a=f(l(this.hash,0),0,15,10,60),s=a/4;for(this.svg.setWidth(6*a),this.svg.setHeight(6*a),e=0,o=0;o<6;o++)for(i=0;i<6;i++)t=d(r=l(this.hash,e)),n={fill:"none",stroke:h(r),opacity:t,"stroke-width":s+"px"},this.svg.circle(i*a,o*a,a-s/2,n),0===i&&this.svg.circle(6*a,o*a,a-s/2,n),0===o&&this.svg.circle(i*a,6*a,a-s/2,n),0===i&&0===o&&this.svg.circle(6*a,6*a,a-s/2,n),e+=1},p.prototype.geoTriangles=function(){var e,t,n,r,i,o,a,s,c=f(l(this.hash,0),0,15,15,80),p=c/2*Math.sqrt(3),y=[s=c/2,0,c,p,0,p,s,0].join(",");for(this.svg.setWidth(3*c),this.svg.setHeight(6*p),e=0,a=0;a<6;a++)for(o=0;o<6;o++)t=d(i=l(this.hash,e)),r={fill:h(i),"fill-opacity":t,stroke:u,"stroke-opacity":.02},n=a%2==0?180*(o%2==0):180*(o%2!=0),this.svg.polyline(y,r).transform({translate:[o*c*.5-c/2,p*a],rotate:[n,c/2,p/2]}),0===o&&this.svg.polyline(y,r).transform({translate:[6*c*.5-c/2,p*a],rotate:[n,c/2,p/2]}),e+=1},p.prototype.geoDiamonds=function(){var e,t,n,r,i,o,a,s=f(l(this.hash,0),0,15,10,50),c=f(l(this.hash,1),0,15,10,50),p=[s/2,0,s,c/2,s/2,c,0,c/2].join(",");for(this.svg.setWidth(6*s),this.svg.setHeight(3*c),t=0,a=0;a<6;a++)for(o=0;o<6;o++)n=d(i=l(this.hash,t)),r={fill:h(i),"fill-opacity":n,stroke:u,"stroke-opacity":.02},e=a%2==0?0:s/2,this.svg.polyline(p,r).transform({translate:[o*s-s/2+e,c/2*a-c/2]}),0===o&&this.svg.polyline(p,r).transform({translate:[6*s-s/2+e,c/2*a-c/2]}),0===a&&this.svg.polyline(p,r).transform({translate:[o*s-s/2+e,c/2*6-c/2]}),0===o&&0===a&&this.svg.polyline(p,r).transform({translate:[6*s-s/2+e,c/2*6-c/2]}),t+=1},p.prototype.geoNestedSquares=function(){var e,t,n,r,i,o,a,s=f(l(this.hash,0),0,15,4,12),c=7*s;for(this.svg.setWidth((c+s)*6+6*s),this.svg.setHeight((c+s)*6+6*s),t=0,a=0;a<6;a++)for(o=0;o<6;o++)n=d(i=l(this.hash,t)),r={fill:"none",stroke:h(i),opacity:n,"stroke-width":s+"px"},this.svg.rect(o*c+o*s*2+s/2,a*c+a*s*2+s/2,c,c,r),n=d(i=l(this.hash,39-t)),r={fill:"none",stroke:h(i),opacity:n,"stroke-width":s+"px"},this.svg.rect(o*c+o*s*2+s/2+2*s,a*c+a*s*2+s/2+2*s,3*s,3*s,r),t+=1},p.prototype.geoMosaicSquares=function(){var e,t,n,r=f(l(this.hash,0),0,15,15,50);for(this.svg.setWidth(8*r),this.svg.setHeight(8*r),e=0,n=0;n<4;n++)for(t=0;t<4;t++)t%2==0?n%2==0?m(this.svg,t*r*2,n*r*2,r,l(this.hash,e)):b(this.svg,t*r*2,n*r*2,r,[l(this.hash,e),l(this.hash,e+1)]):n%2==0?b(this.svg,t*r*2,n*r*2,r,[l(this.hash,e),l(this.hash,e+1)]):m(this.svg,t*r*2,n*r*2,r,l(this.hash,e)),e+=1},p.prototype.geoPlaid=function(){var e,t,n,r,i,o,a,s=0,c=0;for(t=0;t<36;)s+=l(this.hash,t)+5,n=d(a=l(this.hash,t+1)),e=h(a),i=a+5,this.svg.rect(0,s,"100%",i,{opacity:n,fill:e}),s+=i,t+=2;for(t=0;t<36;)c+=l(this.hash,t)+5,n=d(a=l(this.hash,t+1)),e=h(a),o=a+5,this.svg.rect(c,0,o,"100%",{opacity:n,fill:e}),c+=o,t+=2;this.svg.setWidth(c),this.svg.setHeight(s)},p.prototype.geoTessellation=function(){var e,t,n,r,i=f(l(this.hash,0),0,15,5,40),o=i*Math.sqrt(3),a=2*i,s=i/2*Math.sqrt(3),c=[0,0,s,i/2,0,i,0,0].join(","),p=3*i+2*s,y=2*o+2*i;for(this.svg.setWidth(p),this.svg.setHeight(y),e=0;e<20;e++)switch(t=d(r=l(this.hash,e)),n={stroke:u,"stroke-opacity":.02,fill:h(r),"fill-opacity":t,"stroke-width":1},e){case 0:this.svg.rect(-i/2,-i/2,i,i,n),this.svg.rect(p-i/2,-i/2,i,i,n),this.svg.rect(-i/2,y-i/2,i,i,n),this.svg.rect(p-i/2,y-i/2,i,i,n);break;case 1:this.svg.rect(a/2+s,o/2,i,i,n);break;case 2:this.svg.rect(-i/2,y/2-i/2,i,i,n),this.svg.rect(p-i/2,y/2-i/2,i,i,n);break;case 3:this.svg.rect(a/2+s,1.5*o+i,i,i,n);break;case 4:this.svg.polyline(c,n).transform({translate:[i/2,-i/2],rotate:[0,i/2,s/2]}),this.svg.polyline(c,n).transform({translate:[i/2,y- -i/2],rotate:[0,i/2,s/2],scale:[1,-1]});break;case 5:this.svg.polyline(c,n).transform({translate:[p-i/2,-i/2],rotate:[0,i/2,s/2],scale:[-1,1]}),this.svg.polyline(c,n).transform({translate:[p-i/2,y+i/2],rotate:[0,i/2,s/2],scale:[-1,-1]});break;case 6:this.svg.polyline(c,n).transform({translate:[p/2+i/2,o/2]});break;case 7:this.svg.polyline(c,n).transform({translate:[p-p/2-i/2,o/2],scale:[-1,1]});break;case 8:this.svg.polyline(c,n).transform({translate:[p/2+i/2,y-o/2],scale:[1,-1]});break;case 9:this.svg.polyline(c,n).transform({translate:[p-p/2-i/2,y-o/2],scale:[-1,-1]});break;case 10:this.svg.polyline(c,n).transform({translate:[i/2,y/2-i/2]});break;case 11:this.svg.polyline(c,n).transform({translate:[p-i/2,y/2-i/2],scale:[-1,1]});break;case 12:this.svg.rect(0,0,i,i,n).transform({translate:[i/2,i/2],rotate:[-30,0,0]});break;case 13:this.svg.rect(0,0,i,i,n).transform({scale:[-1,1],translate:[-p+i/2,i/2],rotate:[-30,0,0]});break;case 14:this.svg.rect(0,0,i,i,n).transform({translate:[i/2,y/2-i/2-i],rotate:[30,0,i]});break;case 15:this.svg.rect(0,0,i,i,n).transform({scale:[-1,1],translate:[-p+i/2,y/2-i/2-i],rotate:[30,0,i]});break;case 16:this.svg.rect(0,0,i,i,n).transform({scale:[1,-1],translate:[i/2,-y+y/2-i/2-i],rotate:[30,0,i]});break;case 17:this.svg.rect(0,0,i,i,n).transform({scale:[-1,-1],translate:[-p+i/2,-y+y/2-i/2-i],rotate:[30,0,i]});break;case 18:this.svg.rect(0,0,i,i,n).transform({scale:[1,-1],translate:[i/2,-y+i/2],rotate:[-30,0,0]});break;case 19:this.svg.rect(0,0,i,i,n).transform({scale:[-1,-1],translate:[-p+i/2,-y+i/2],rotate:[-30,0,0]})}}},5794:function(e){"use strict";function t(){var e=0x67452301,t=0xefcdab89,n=0x98badcfe,r=0x10325476,i=0xc3d2e1f0,o=new Uint32Array(80),a=0,s=24,c=0;function u(){for(var s,c,u=16;u<80;u++){var l=o[u-3]^o[u-8]^o[u-14]^o[u-16];o[u]=l<<1|l>>>31}var f=e,h=t,d=n,p=r,y=i;for(u=0;u<80;u++){u<20?(s=p^h&(d^p),c=0x5a827999):u<40?(s=h^d^p,c=0x6ed9eba1):u<60?(s=h&d|p&(h|d),c=0x8f1bbcdc):(s=h^d^p,c=0xca62c1d6);var v=(f<<5|f>>>27)+s+y+c+(0|o[u]);y=p,p=d,d=h<<30|h>>>2,h=f,f=v}for(u=0,e=e+f|0,t=t+h|0,n=n+d|0,r=r+p|0,i=i+y|0,a=0;u<16;u++)o[u]=0}function l(e){o[a]|=(255&e)<<s,s?s-=8:(a++,s=24),16===a&&u()}function f(e){for(var t="",n=28;n>=0;n-=4)t+=(e>>n&15).toString(16);return t}return{update:function(e){if("string"==typeof e){var t=e.length;c+=8*t;for(var n=0;n<t;n++)l(e.charCodeAt(n));return}var r=e.length;c+=8*r;for(var i=0;i<r;i++)l(e[i])},digest:function(){l(128),(a>14||14===a&&s<24)&&u(),a=14,s=24,l(0),l(0),l(c>0xffffffffff?c/0x10000000000:0),l(c>0xffffffff?c/0x100000000:0);for(var o=24;o>=0;o-=8)l(c>>o);return f(e)+f(t)+f(n)+f(r)+f(i)}}}e.exports=function(e){if(void 0===e)return t();var n=t();return n.update(e),n.digest()}},5107:function(e,t,n){"use strict";var r=n(5884),i=n(531);function o(){return this.width=100,this.height=100,this.svg=i("svg"),this.context=[],this.setAttributes(this.svg,{xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height}),this}e.exports=o,o.prototype.currentContext=function(){return this.context[this.context.length-1]||this.svg},o.prototype.end=function(){return this.context.pop(),this},o.prototype.currentNode=function(){var e=this.currentContext();return e.lastChild||e},o.prototype.transform=function(e){return this.currentNode().setAttribute("transform",Object.keys(e).map(function(t){return t+"("+e[t].join(",")+")"}).join(" ")),this},o.prototype.setAttributes=function(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})},o.prototype.setWidth=function(e){this.svg.setAttribute("width",Math.floor(e))},o.prototype.setHeight=function(e){this.svg.setAttribute("height",Math.floor(e))},o.prototype.toString=function(){return this.svg.toString()},o.prototype.rect=function(e,t,n,o,a){var s=this;if(Array.isArray(e))return e.forEach(function(e){s.rect.apply(s,e.concat(a))}),this;var c=i("rect");return this.currentContext().appendChild(c),this.setAttributes(c,r({x:e,y:t,width:n,height:o},a)),this},o.prototype.circle=function(e,t,n,o){var a=i("circle");return this.currentContext().appendChild(a),this.setAttributes(a,r({cx:e,cy:t,r:n},o)),this},o.prototype.path=function(e,t){var n=i("path");return this.currentContext().appendChild(n),this.setAttributes(n,r({d:e},t)),this},o.prototype.polyline=function(e,t){var n=this;if(Array.isArray(e))return e.forEach(function(e){n.polyline(e,t)}),this;var o=i("polyline");return this.currentContext().appendChild(o),this.setAttributes(o,r({points:e},t)),this},o.prototype.group=function(e){var t=i("g");return this.currentContext().appendChild(t),this.context.push(t),this.setAttributes(t,r({},e)),this}},531:function(e){"use strict";var t=e.exports=function(e){return(null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](this):this instanceof t)?(this.tagName=e,this.attributes=Object.create(null),this.children=[],this.lastChild=null,this):new t(e)};t.prototype.appendChild=function(e){return this.children.push(e),this.lastChild=e,this},t.prototype.setAttribute=function(e,t){return this.attributes[e]=t,this},t.prototype.toString=function(){var e=this;return["<",e.tagName,Object.keys(e.attributes).map(function(t){return[" ",t,'="',e.attributes[t],'"'].join("")}).join(""),">",e.children.map(function(e){return e.toString()}).join(""),"</",e.tagName,">"].join("")}},5884:function(e){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(e){if(!e||"[object Object]"!==n.call(e)||e.nodeType||e.setInterval)return!1;var r,i=t.call(e,"constructor"),o=t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)}e.exports=function e(){var t,n,i,o,a,s,c,u=arguments[0]||{},l=1,f=arguments.length,h=!1;for("boolean"==typeof u&&(h=u,u=arguments[1]||{},l=2),(void 0===u?"undefined":(t=u)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)!="object"&&"function"!=typeof u&&(u={});l<f;l++)if(null!=(n=arguments[l]))for(i in n)o=u[i],u!==(a=n[i])&&(h&&a&&(r(a)||(s=Array.isArray(a)))?(s?(s=!1,c=o&&Array.isArray(o)?o:[]):c=o&&r(o)?o:{},u[i]=e(h,c,a)):void 0!==a&&(u[i]=a));return u}},9011:function(e,t,n){"use strict";var r=n(7362);r.createRoot,r.hydrateRoot},9245:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Jg:()=>c});var i=n(5),o=e([i]);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}i=(o.then?(await o)():o)[0];var s={flags:function(){var e={},t=!0,n=!1,r=void 0;try{for(var i,o=Object.keys(localStorage)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;if(a.startsWith("openmrs:feature-flag:")){var s=a.replace("openmrs:feature-flag:",""),c=JSON.parse(localStorage.getItem("openmrs:feature-flag-meta:".concat(s))||"{}");e[s]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({enabled:"true"===localStorage.getItem(a)},c)}}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}return e}()},c=(0,i.zJ)("feature-flags",s);c.subscribe(function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=Object.entries(e.flags)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var s,c=(s=i.value,function(e){if(Array.isArray(e))return e}(s)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}(s,2)||function(e,t){if(e){if("string"==typeof e)return a(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}}(s,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],l=c[1];localStorage.setItem("openmrs:feature-flag:".concat(u),l.enabled.toString()),localStorage.setItem("openmrs:feature-flag-meta:".concat(u),JSON.stringify({label:l.label,description:l.description}))}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}}),r()}catch(e){r(e)}})},4874:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Jg:()=>i.Jg});var i=n(9245),o=e([i]);i=(o.then?(await o)():o)[0],r()}catch(e){r(e)}})},541:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9245),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},6747:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(208),i=n(3009),o=n(6211);n(1525);var a=n(1871),s=n(541),c=n(2142),u=n(6887),l=n(9711),f=n(7418),h=n(3487),d=n(1556),p=e([r,i,o,a,s,c,u,l,f,h,d]);[r,i,o,a,s,c,u,l,f,h,d]=p.then?(await p)():p,t()}catch(e){t(e)}})},8968:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=n(1950),o=n(5376);n(1525);var a=n(658),s=n(4874),c=n(2189),u=n(2295),l=n(957),f=n(5),h=n(2894),d=n(1285),p=e([r,i,o,a,s,c,u,l,f,h,d]);[r,i,o,a,s,c,u,l,f,h,d]=p.then?(await p)():p,t()}catch(e){t(e)}})},464:function(){},3670:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(1950),i=n(3597),o=e([r]);(r=(o.then?(await o)():o)[0]).Dy.String,r.z2.oneOf(i.l),r.Dy.String,r.z2.oneOf(i.l),r.Dy.String,r.Dy.String,r.Dy.String,r.Dy.Array,r.Dy.UUID,r.Dy.String,r.Dy.ConceptUuid,r.Dy.Object,r.z2.oneOf(["buddhist","chinese","coptic","dangi","ethioaa","ethiopic","gregory","hebrew","indian","islamic","islamic-umalqura","islamic-tbla","islamic-civil","islamic-rgsa","iso8601","japanese","persian","roc","islamicc"]),r.Dy.Object,r.Dy.String,t()}catch(e){t(e)}})},9681:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(271);var i=n(957),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},7111:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9681),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},6493:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(957),o=n(4813),a=n(7063),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},3055:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7032),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},3823:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},5436:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(4813),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},3479:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(2306),o=n(7032),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},7542:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(271);var i=n(957),o=n(7032),a=n(7063),s=n(2306),c=n(3479),u=n(6493),l=n(3823),f=n(3055),h=n(5436),d=e([r,i,o,a,s,c,u,l,f,h]);[r,i,o,a,s,c,u,l,f,h]=d.then?(await d)():d,t()}catch(e){t(e)}})},4813:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},6900:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7542),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2306:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],(0,r.createContext)(null),t()}catch(e){t(e)}})},7063:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(1338),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},251:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3126),i=n(957),o=n(810),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},755:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(251),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2182:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(3126),o=n(1285),a=n(957),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},6877:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(2182),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2363:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(271);var i=n(957),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},7032:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(2363),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2894:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(464);var r=n(3670),i=n(7111),o=n(6900),a=n(755),s=n(6877),c=n(2363),u=n(2471),l=n(6166),f=n(4050),h=n(953),d=n(8740),p=n(420),y=n(7668),v=n(3205),b=n(1374),m=n(5124),g=n(1119),w=n(5514),x=n(7783),E=n(7221),O=n(7360),S=n(400),k=e([r,i,o,a,s,c,u,l,f,h,d,p,y,v,b,m,g,w,x,E,O,S]);[r,i,o,a,s,c,u,l,f,h,d,p,y,v,b,m,g,w,x,E,O,S]=k.then?(await k)():k,t()}catch(e){t(e)}})},2471:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(3126),o=n(957),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},6166:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3669),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},3669:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(6747),o=n(7987),a=n(3126),s=n(1616),c=e([r,i,o,a,s]);[r,i,o,a,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},1616:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7987),o=n(9847),a=n(1448),s=n(6997),c=n(957),u=n(953),l=e([r,i,o,a,s,c,u]);[r,i,o,a,s,c,u]=l.then?(await l)():l,t()}catch(e){t(e)}})},4050:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7134),i=n(5),o=n(658);n(1525);var a=e([r,o,i]);[r,o,i]=a.then?(await a)():a,(0,i.jk)("modalState",{modalContainer:null,modalStack:[]}),window.getComputedStyle(document.body).overflow,t()}catch(e){t(e)}})},8740:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(3126),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},9875:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8740),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},1226:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(420),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},953:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8999),o=n(1226),a=n(9875);n(9011);var s=e([r,o,a,i]);[r,o,a,i]=s.then?(await s)():s,new i.Subject,new i.Subject,t()}catch(e){t(e)}})},420:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(3126),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},7668:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6118),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},6118:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(271);var i=n(1950),o=n(1285),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},6530:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(957),o=n(1285),a=n(9681),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},7225:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(271);var i=n(3126),o=n(1285),a=n(957),s=n(5641),c=n(4330),u=n(6287),l=e([r,i,o,a,s,c,u]);[r,i,o,a,s,c,u]=l.then?(await l)():l,t()}catch(e){t(e)}})},5783:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(3126),o=n(1285),a=n(3487),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},5641:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(9847),o=n(6997),a=n(957),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},4330:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),o=n(6997),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},6287:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=n(5941),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},3205:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(2565),i=n(5557),o=n(6530),a=n(5783),s=n(7225),c=e([r,i,o,a,s]);[r,i,o,a,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},5557:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(3126),o=n(957),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},2565:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(271);var i=n(957),o=n(1285),a=n(7032),s=n(5557),c=e([r,i,o,a,s]);[r,i,o,a,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},1374:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(1774),i=n(1858),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},1774:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(3270);var i=n(3126),o=n(7987),a=n(1858),s=n(3259),c=e([r,i,o,a,s]);[r,i,o,a,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},3259:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7987),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},1858:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5941),i=n(6997),o=n(957),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},5124:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(271);var i=n(957),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},3487:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(953),i=n(7221),o=n(4050),a=n(2203),s=n(5514),c=n(2471),u=n(6877),l=n(6900),f=n(1119),h=n(3205),d=n(1374),p=n(7111),y=n(2363),v=n(7668),b=n(5124),m=n(6166),g=n(755),w=e([r,i,o,a,s,c,u,l,f,h,d,p,y,v,b,m,g]);[r,i,o,a,s,c,u,l,f,h,d,p,y,v,b,m,g]=w.then?(await w)():w,t()}catch(e){t(e)}})},1119:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(134),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},134:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(3126),o=n(957),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},9499:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7783),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},5514:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(9011);var i=n(8999),o=n(9499),a=e([r,o,i]);[r,o,i]=a.then?(await a)():a,new i.Subject,t()}catch(e){t(e)}})},7783:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(271);var i=n(3126),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},1772:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7360),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},7221:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(9011);var i=n(8999),o=n(1772),a=e([r,o,i]);[r,o,i]=a.then?(await a)():a,new i.Subject,t()}catch(e){t(e)}})},7360:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(3126),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},3597:function(e,t,n){"use strict";n.d(t,{l:()=>r});var r=["red","magenta","purple","blue","teal","cyan","gray","green","warm-gray","cool-gray","high-contrast","outline"]},6665:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(271);var i=n(3126),o=n(957),a=n(200),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},7334:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(271);var i=n(957),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},8540:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7987);n(271);var o=n(3126),a=n(957),s=n(1285),c=n(7032),u=n(4018),l=n(200),f=n(76),h=n(7334),d=e([r,i,o,a,s,c,u,l,f,h]);[r,i,o,a,s,c,u,l,f,h]=d.then?(await d)():d,t()}catch(e){t(e)}})},76:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7134),o=n(6914),a=n(3126),s=n(1285),c=n(3030),u=e([r,i,o,a,s,c]);[r,i,o,a,s,c]=u.then?(await u)():u,t()}catch(e){t(e)}})},400:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6665),i=n(7334),o=n(8540),a=n(4018),s=n(200),c=e([r,i,o,a,s]);[r,i,o,a,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},4018:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7987),o=n(3126),a=n(2189);n(1525);var s=n(200),c=e([r,i,o,a,s]);[r,i,o,a,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},2203:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6665),i=n(8540),o=n(200),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},3030:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(200),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},200:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(658),o=n(2189),a=n(5),s=n(1285),c=n(957),u=e([r,i,o,s,c,a]);[r,i,o,s,c,a]=u.then?(await u)():u,(0,a.jk)("workspace",{context:"",openWorkspaces:[],prompt:null,workspaceWindowState:"normal",workspaceGroup:void 0}),t()}catch(e){t(e)}})},1338:function(e){"use strict";e.exports=import("dayjs").then(function(e){return e})},2021:function(e){"use strict";e.exports=import("i18next").then(function(e){return e})},810:function(e){"use strict";e.exports=import("react").then(function(e){return e})},7362:function(e){"use strict";e.exports=import("react-dom").then(function(e){return e})},7987:function(e){"use strict";e.exports=import("react-i18next").then(function(e){return e})},8999:function(e){"use strict";e.exports=import("rxjs").then(function(e){return e})},7134:function(e){"use strict";e.exports=import("single-spa").then(function(e){return e})},5941:function(e){"use strict";e.exports=import("swr").then(function(e){return e})},9847:function(e){"use strict";e.exports=import("swr/immutable").then(function(e){return e})},1448:function(e){"use strict";e.exports=import("swr/infinite").then(function(e){return e})},271:function(e){function t(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(e=i(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if((void 0===e?"undefined":t(e))!=="object")return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var o="";for(var a in e)n.call(e,a)&&e[a]&&(o=i(o,a));return o}(a)))}return e}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):"function"==typeof define&&"object"===t(define.amd)&&define.amd?define("classnames",[],function(){return r}):window.classNames=r}()},4197:function(e,t,n){"use strict";let r;n.d(t,{ZP:()=>nu});let i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,o=Object.keys,a=Array.isArray;function s(e,t){return"object"!=typeof t||o(t).forEach(function(n){e[n]=t[n]}),e}"undefined"==typeof Promise||i.Promise||(i.Promise=Promise);let c=Object.getPrototypeOf,u={}.hasOwnProperty;function l(e,t){return u.call(e,t)}function f(e,t){"function"==typeof t&&(t=t(c(e))),("undefined"==typeof Reflect?o:Reflect.ownKeys)(t).forEach(n=>{d(e,n,t[n])})}let h=Object.defineProperty;function d(e,t,n,r){h(e,t,s(n&&l(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function p(e){return{from:function(t){return e.prototype=Object.create(t.prototype),d(e.prototype,"constructor",e),{extend:f.bind(null,e.prototype)}}}}let y=Object.getOwnPropertyDescriptor;function v(e,t){let n;return y(e,t)||(n=c(e))&&v(n,t)}let b=[].slice;function m(e,t,n){return b.call(e,t,n)}function g(e,t){return t(e)}function w(e){if(!e)throw Error("Assertion Failed")}function x(e){i.setImmediate?setImmediate(e):setTimeout(e,0)}function E(e,t){return e.reduce((e,n,r)=>{var i=t(n,r);return i&&(e[i[0]]=i[1]),e},{})}function O(e,t){if(l(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,i=t.length;r<i;++r){var o=O(e,t[r]);n.push(o)}return n}var a=t.indexOf(".");if(-1!==a){var s=e[t.substr(0,a)];return void 0===s?void 0:O(s,t.substr(a+1))}}function S(e,t,n){if(e&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){w("string"!=typeof n&&"length"in n);for(var r=0,i=t.length;r<i;++r)S(e,t[r],n[r])}else{var o=t.indexOf(".");if(-1!==o){var s=t.substr(0,o),c=t.substr(o+1);if(""===c)void 0===n?a(e)&&!isNaN(parseInt(s))?e.splice(s,1):delete e[s]:e[s]=n;else{var u=e[s];u&&l(e,s)||(u=e[s]={}),S(u,c,n)}}else void 0===n?a(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function k(e){var t={};for(var n in e)l(e,n)&&(t[n]=e[n]);return t}let j=[].concat;function A(e){return j.apply([],e)}let P="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(A([8,16,32,64].map(e=>["Int","Uint","Float"].map(t=>t+e+"Array")))).filter(e=>i[e]),C=P.map(e=>i[e]);E(P,e=>[e,!0]);let D=null;function I(e){D="undefined"!=typeof WeakMap&&new WeakMap;let t=function e(t){if(!t||"object"!=typeof t)return t;let n=D&&D.get(t);if(n)return n;if(a(t)){n=[],D&&D.set(t,n);for(var r=0,i=t.length;r<i;++r)n.push(e(t[r]))}else if(C.indexOf(t.constructor)>=0)n=t;else{let r=c(t);for(var o in n=r===Object.prototype?{}:Object.create(r),D&&D.set(t,n),t)l(t,o)&&(n[o]=e(t[o]))}return n}(e);return D=null,t}let{toString:T}={};function R(e){return T.call(e).slice(8,-1)}let N="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",B="symbol"==typeof N?function(e){var t;return null!=e&&(t=e[N])&&t.apply(e)}:function(){return null},M={};function K(e){var t,n,r,i;if(1==arguments.length){if(a(e))return e.slice();if(this===M&&"string"==typeof e)return[e];if(i=B(e)){for(n=[];!(r=i.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=Array(t);t--;)n[t]=arguments[t];return n}let L="undefined"!=typeof Symbol?e=>"AsyncFunction"===e[Symbol.toStringTag]:()=>!1;var U="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href),F=()=>!0;let q=!Error("").stack;function V(){if(q)try{throw V.arguments,Error()}catch(e){return e}return Error()}function W(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(F).map(e=>"\n"+e).join("")):""}var Z=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],z=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(Z),$={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"};function H(e,t){this._e=V(),this.name=e,this.message=t}function X(e,t){return e+". Errors: "+Object.keys(t).map(e=>t[e].toString()).filter((e,t,n)=>n.indexOf(e)===t).join("\n")}function J(e,t,n,r){this._e=V(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=X(e,t)}function G(e,t){this._e=V(),this.name="BulkError",this.failures=Object.keys(t).map(e=>t[e]),this.failuresByPos=t,this.message=X(e,t)}p(H).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+W(this._e,2))}},toString:function(){return this.name+": "+this.message}}),p(J).from(H),p(G).from(H);var Q=z.reduce((e,t)=>(e[t]=t+"Error",e),{}),Y=z.reduce((e,t)=>{var n=t+"Error";function r(e,r){this._e=V(),this.name=n,e?"string"==typeof e?(this.message=`${e}${r?"\n "+r:""}`,this.inner=r||null):"object"==typeof e&&(this.message=`${e.name} ${e.message}`,this.inner=e):(this.message=$[t]||n,this.inner=null)}return p(r).from(H),e[t]=r,e},{});Y.Syntax=SyntaxError,Y.Type=TypeError,Y.Range=RangeError;var ee=Z.reduce((e,t)=>(e[t+"Error"]=Y[t],e),{}),et=z.reduce((e,t)=>(-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=Y[t]),e),{});function en(){}function er(e){return e}function ei(e,t){return null==e||e===er?t:function(n){return t(e(n))}}function eo(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function ea(e,t){return e===en?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?eo(r,this.onsuccess):r),i&&(this.onerror=this.onerror?eo(i,this.onerror):i),void 0!==o?o:n}}function es(e,t){return e===en?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?eo(n,this.onsuccess):n),r&&(this.onerror=this.onerror?eo(r,this.onerror):r)}}function ec(e,t){return e===en?t:function(n){var r=e.apply(this,arguments);s(n,r);var i=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?eo(i,this.onsuccess):i),o&&(this.onerror=this.onerror?eo(o,this.onerror):o),void 0===r?void 0===a?void 0:a:s(r,a)}}function eu(e,t){return e===en?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function el(e,t){return e===en?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,i=arguments.length,o=Array(i);i--;)o[i]=arguments[i];return n.then(function(){return t.apply(r,o)})}return t.apply(this,arguments)}}et.ModifyError=J,et.DexieError=H,et.BulkError=G;var ef={};let[eh,ed,ep]="undefined"==typeof Promise?[]:(()=>{let e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,c(e),e];let t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,c(t),e]})(),ey=ed&&ed.then,ev=eh&&eh.constructor,eb=!!ep;var em=!1,eg=ep?()=>{ep.then(eU)}:i.setImmediate?setImmediate.bind(null,eU):i.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver(()=>{eU(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(eU,0)},ew=function(e,t){eP.push([e,t]),ex&&(eg(),ex=!1)},e_=!0,ex=!0,eE=[],eO=[],eS=null,ek=er,ej={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:e4,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(e=>{try{e4(e[0],e[1])}catch(e){}})}},eA=ej,eP=[],eC=0,eD=[];function eI(e){if("object"!=typeof this)throw TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=en,this._lib=!1;var t=this._PSD=eA;if(U&&(this._stackHolder=V(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==ef)throw TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&eN(this,this._value))}this._state=null,this._value=null,++t.ref,function e(t,n){try{n(n=>{if(null===t._state){if(n===t)throw TypeError("A promise cannot be resolved with itself.");var r=t._lib&&eF();n&&"function"==typeof n.then?e(t,(e,t)=>{n instanceof eI?n._then(e,t):n.then(e,t)}):(t._state=!0,t._value=n,eB(t)),r&&eq()}},eN.bind(null,t))}catch(e){eN(t,e)}}(this,e)}let eT={get:function(){var e=eA,t=eJ;function n(n,r){var i=!e.global&&(e!==eA||t!==eJ);let o=i&&!e0();var a=new eI((t,a)=>{eM(this,new eR(e9(n,e,i,o),e9(r,e,i,o),t,a,e))});return U&&eL(a,this),a}return n.prototype=ef,n},set:function(e){d(this,"then",e&&e.prototype===ef?eT:{get:function(){return e},set:eT.set})}};function eR(e,t,n,r,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=i}function eN(e,t){if(eO.push(t),null===e._state){var n=e._lib&&eF();t=ek(t),e._state=!1,e._value=t,U&&null!==t&&"object"==typeof t&&!t._promise&&function(e,t,n){try{e.apply(null,void 0)}catch(e){}}(()=>{var n=v(t,"stack");t._promise=e,d(t,"stack",{get:()=>em?n&&(n.get?n.get.apply(t):n.value):e.stack})}),eE.some(t=>t._value===e._value)||eE.push(e),eB(e),n&&eq()}}function eB(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)eM(e,t[n]);var i=e._PSD;--i.ref||i.finalize(),0===eC&&(++eC,ew(()=>{0==--eC&&eV()},[]))}function eM(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++eC,ew(eK,[n,e,t])}else e._listeners.push(t)}function eK(e,t,n){try{eS=t;var r,i=t._value;t._state?r=e(i):(eO.length&&(eO=[]),r=e(i),-1===eO.indexOf(i)&&function(e){for(var t=eE.length;t;)if(eE[--t]._value===e._value)return void eE.splice(t,1)}(t)),n.resolve(r)}catch(e){n.reject(e)}finally{eS=null,0==--eC&&eV(),--n.psd.ref||n.psd.finalize()}}function eL(e,t){var n=t?t._numPrev+1:0;n<100&&(e._prev=t,e._numPrev=n)}function eU(){eF()&&eq()}function eF(){var e=e_;return e_=!1,ex=!1,e}function eq(){var e,t,n;do for(;eP.length>0;)for(e=eP,eP=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}while(eP.length>0);e_=!0,ex=!0}function eV(){var e=eE;eE=[],e.forEach(e=>{e._PSD.onunhandled.call(null,e._value,e)});for(var t=eD.slice(0),n=t.length;n;)t[--n]()}function eW(e){return new eI(ef,!1,e)}function eZ(e,t){var n=eA;return function(){var r=eF(),i=eA;try{return e5(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{e5(i,!1),r&&eq()}}}f(eI.prototype,{then:eT,_then:function(e,t){eM(this,new eR(null,null,e,t,eA))},catch:function(e){if(1==arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"==typeof t?this.then(null,e=>e instanceof t?n(e):eW(e)):this.then(null,e=>e&&e.name===t?n(e):eW(e))},finally:function(e){return this.then(t=>(e(),t),t=>(e(),eW(t)))},stack:{get:function(){if(this._stack)return this._stack;try{em=!0;var e=(function e(t,n,r){if(n.length===r)return n;var i="";if(!1===t._state){var o,a,s=t._value;null!=s?(o=s.name||"Error",a=s.message||s,i=W(s,0)):(o=s,a=""),n.push(o+(a?": "+a:"")+i)}return U&&((i=W(t._stackHolder,2))&&-1===n.indexOf(i)&&n.push(i),t._prev&&e(t._prev,n,r)),n})(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{em=!1}}},timeout:function(e,t){return e<1/0?new eI((n,r)=>{var i=setTimeout(()=>r(new Y.Timeout(t)),e);this.then(n,r).finally(clearTimeout.bind(null,i))}):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&d(eI.prototype,Symbol.toStringTag,"Dexie.Promise"),ej.env=e6(),f(eI,{all:function(){var e=K.apply(null,arguments).map(e1);return new eI(function(t,n){0===e.length&&t([]);var r=e.length;e.forEach((i,o)=>eI.resolve(i).then(n=>{e[o]=n,--r||t(e)},n))})},resolve:e=>{if(e instanceof eI)return e;if(e&&"function"==typeof e.then)return new eI((t,n)=>{e.then(t,n)});var t=new eI(ef,!0,e);return eL(t,eS),t},reject:eW,race:function(){var e=K.apply(null,arguments).map(e1);return new eI((t,n)=>{e.map(e=>eI.resolve(e).then(t,n))})},PSD:{get:()=>eA,set:e=>eA=e},totalEchoes:{get:()=>eJ},newPSD:eQ,usePSD:e3,scheduler:{get:()=>ew,set:e=>{ew=e}},rejectionMapper:{get:()=>ek,set:e=>{ek=e}},follow:(e,t)=>new eI((n,r)=>eQ((t,n)=>{var r=eA;r.unhandleds=[],r.onunhandled=n,r.finalize=eo(function(){var e;e=()=>{0===this.unhandleds.length?t():n(this.unhandleds[0])},eD.push(function t(){e(),eD.splice(eD.indexOf(t),1)}),++eC,ew(()=>{0==--eC&&eV()},[])},r.finalize),e()},t,n,r))}),ev&&(ev.allSettled&&d(eI,"allSettled",function(){let e=K.apply(null,arguments).map(e1);return new eI(t=>{0===e.length&&t([]);let n=e.length,r=Array(n);e.forEach((e,i)=>eI.resolve(e).then(e=>r[i]={status:"fulfilled",value:e},e=>r[i]={status:"rejected",reason:e}).then(()=>--n||t(r)))})}),ev.any&&"undefined"!=typeof AggregateError&&d(eI,"any",function(){let e=K.apply(null,arguments).map(e1);return new eI((t,n)=>{0===e.length&&n(AggregateError([]));let r=e.length,i=Array(r);e.forEach((e,o)=>eI.resolve(e).then(e=>t(e),e=>{i[o]=e,--r||n(AggregateError(i))}))})}));let ez={awaits:0,echoes:0,id:0};var e$=0,eH=[],eX=0,eJ=0,eG=0;function eQ(e,t,n,r){var i=eA,o=Object.create(i);o.parent=i,o.ref=0,o.global=!1,o.id=++eG;var a=ej.env;o.env=eb?{Promise:eI,PromiseProp:{value:eI,configurable:!0,writable:!0},all:eI.all,race:eI.race,allSettled:eI.allSettled,any:eI.any,resolve:eI.resolve,reject:eI.reject,nthen:e7(a.nthen,o),gthen:e7(a.gthen,o)}:{},t&&s(o,t),++i.ref,o.finalize=function(){--this.parent.ref||this.parent.finalize()};var c=e3(o,e,n,r);return 0===o.ref&&o.finalize(),c}function eY(){return ez.id||(ez.id=++e$),++ez.awaits,ez.echoes+=100,ez.id}function e0(){return!!ez.awaits&&(0==--ez.awaits&&(ez.id=0),ez.echoes=100*ez.awaits,!0)}function e1(e){return ez.echoes&&e&&e.constructor===ev?(eY(),e.then(e=>(e0(),e),e=>(e0(),te(e)))):e}function e2(e){++eJ,ez.echoes&&0!=--ez.echoes||(ez.echoes=ez.id=0),eH.push(eA),e5(e,!0)}function e8(){var e=eH[eH.length-1];eH.pop(),e5(e,!1)}function e5(e,t){var n,r=eA;if((t?!ez.echoes||eX++&&e===eA:!eX||--eX&&e===eA)||(n=t?e2.bind(null,e):e8,ey.call(eh,n)),e!==eA&&(eA=e,r===ej&&(ej.env=e6()),eb)){var o=ej.env.Promise,a=e.env;ed.then=a.nthen,o.prototype.then=a.gthen,(r.global||e.global)&&(Object.defineProperty(i,"Promise",a.PromiseProp),o.all=a.all,o.race=a.race,o.resolve=a.resolve,o.reject=a.reject,a.allSettled&&(o.allSettled=a.allSettled),a.any&&(o.any=a.any))}}function e6(){var e=i.Promise;return eb?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(i,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:ed.then,gthen:e.prototype.then}:{}}function e3(e,t,n,r,i){var o=eA;try{return e5(e,!0),t(n,r,i)}finally{e5(o,!1)}}function e9(e,t,n,r){return"function"!=typeof e?e:function(){var i,o=eA;n&&eY(),e5(t,!0);try{return e.apply(this,arguments)}finally{e5(o,!1),r&&(i=e0,ey.call(eh,i))}}}function e7(e,t){return function(n,r){return e.call(this,e9(n,t),e9(r,t))}}function e4(e,t){var n;try{n=t.onuncatched(e)}catch(e){}if(!1!==n)try{var r,o={promise:t,reason:e};if(i.document&&document.createEvent?((r=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),s(r,o)):i.CustomEvent&&s(r=new CustomEvent("unhandledrejection",{detail:o}),o),r&&i.dispatchEvent&&(dispatchEvent(r),!i.PromiseRejectionEvent&&i.onunhandledrejection))try{i.onunhandledrejection(r)}catch(e){}U&&r&&!r.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch(e){}}-1===(""+ey).indexOf("[native code]")&&(eY=e0=en);var te=eI.reject;let tt=String.fromCharCode(65535),tn="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",tr=[],ti="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),to=e=>!/(dexie\.js|dexie\.min\.js)/.test(e);function ta(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}let ts={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function tc(e){return"string"!=typeof e||/\./.test(e)?e=>e:t=>(void 0===t[e]&&e in t&&delete(t=I(t))[e],t)}class tu{_trans(e,t,n){let r=this._tx||eA.trans,i=this.name;function o(e,n,r){if(!r.schema[i])throw new Y.NotFound("Table "+i+" not part of transaction");return t(r.idbtrans,r)}let a=eF();try{return r&&r.db===this.db?r===eA.trans?r._promise(e,o,n):eQ(()=>r._promise(e,o,n),{trans:r,transless:eA.transless||eA}):function e(t,n,r,i){if(t.idbdb&&(t._state.openComplete||eA.letThrough||t._vip)){var o=t._createTransaction(n,r,t._dbSchema);try{o.create(),t._state.PR1398_maxLoop=3}catch(o){return o.name===Q.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>e(t,n,r,i))):te(o)}return o._promise(n,(e,t)=>eQ(()=>(eA.trans=o,i(e,t,o)))).then(e=>o._completion.then(()=>e))}if(t._state.openComplete)return te(new Y.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return te(new Y.DatabaseClosed);t.open().catch(en)}return t._state.dbReadyPromise.then(()=>e(t,n,r,i))}(this.db,e,[this.name],o)}finally{a&&eq()}}get(e,t){return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",t=>this.core.get({trans:t,key:e}).then(e=>this.hook.reading.fire(e))).then(t)}where(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(a(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);let t=o(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);let n=this.schema.indexes.concat(this.schema.primKey).filter(e=>e.compound&&t.every(t=>e.keyPath.indexOf(t)>=0)&&e.keyPath.every(e=>t.indexOf(e)>=0))[0];if(n&&this.db._maxKey!==tt)return this.where(n.name).equals(n.keyPath.map(t=>e[t]));!n&&U&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${t.join("+")}]`);let{idxByName:r}=this.schema,i=this.db._deps.indexedDB;function s(e,t){try{return 0===i.cmp(e,t)}catch(e){return!1}}let[c,u]=t.reduce(([t,n],i)=>{let o=r[i],c=e[i];return[t||o,t||!o?ta(n,o&&o.multi?e=>{let t=O(e,i);return a(t)&&t.some(e=>s(c,e))}:e=>s(c,O(e,i))):n]},[null,null]);return c?this.where(c.name).equals(e[c.keyPath]).filter(u):n?this.filter(u):this.where(t).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,a(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;let t=t=>{if(!t)return t;let n=Object.create(e.prototype);for(var r in t)if(l(t,r))try{n[r]=t[r]}catch(e){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e}defineClass(){return this.mapToClass(function(e){s(this,e)})}add(e,t){let{auto:n,keyPath:r}=this.schema.primKey,i=e;return r&&n&&(i=tc(r)(e)),this._trans("readwrite",e=>this.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[i]})).then(e=>e.numFailures?eI.reject(e.failures[0]):e.lastResult).then(t=>{if(r)try{S(e,r,t)}catch(e){}return t})}update(e,t){if("object"!=typeof e||a(e))return this.where(":id").equals(e).modify(t);{let n=O(e,this.schema.primKey.keyPath);if(void 0===n)return te(new Y.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?o(t).forEach(n=>{S(e,n,t[n])}):t(e,{value:e,primKey:n})}catch(e){}return this.where(":id").equals(n).modify(t)}}put(e,t){let{auto:n,keyPath:r}=this.schema.primKey,i=e;return r&&n&&(i=tc(r)(e)),this._trans("readwrite",e=>this.core.mutate({trans:e,type:"put",values:[i],keys:null!=t?[t]:null})).then(e=>e.numFailures?eI.reject(e.failures[0]):e.lastResult).then(t=>{if(r)try{S(e,r,t)}catch(e){}return t})}delete(e){return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"delete",keys:[e]})).then(e=>e.numFailures?eI.reject(e.failures[0]):void 0)}clear(){return this._trans("readwrite",e=>this.core.mutate({trans:e,type:"deleteRange",range:ts})).then(e=>e.numFailures?eI.reject(e.failures[0]):void 0)}bulkGet(e){return this._trans("readonly",t=>this.core.getMany({keys:e,trans:t}).then(e=>e.map(e=>this.hook.reading.fire(e))))}bulkAdd(e,t,n){let r=Array.isArray(t)?t:void 0,i=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",t=>{let{auto:n,keyPath:o}=this.schema.primKey;if(o&&r)throw new Y.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new Y.InvalidArgument("Arguments objects and keys must have the same length");let a=e.length,s=o&&n?e.map(tc(o)):e;return this.core.mutate({trans:t,type:"add",keys:r,values:s,wantResults:i}).then(({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return i?t:n;throw new G(`${this.name}.bulkAdd(): ${e} of ${a} operations failed`,r)})})}bulkPut(e,t,n){let r=Array.isArray(t)?t:void 0,i=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",t=>{let{auto:n,keyPath:o}=this.schema.primKey;if(o&&r)throw new Y.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new Y.InvalidArgument("Arguments objects and keys must have the same length");let a=e.length,s=o&&n?e.map(tc(o)):e;return this.core.mutate({trans:t,type:"put",keys:r,values:s,wantResults:i}).then(({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return i?t:n;throw new G(`${this.name}.bulkPut(): ${e} of ${a} operations failed`,r)})})}bulkDelete(e){let t=e.length;return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"delete",keys:e})).then(({numFailures:e,lastResult:n,failures:r})=>{if(0===e)return n;throw new G(`${this.name}.bulkDelete(): ${e} of ${t} operations failed`,r)})}}function tl(e){var t={},n=function(n,r){if(r){for(var i=arguments.length,o=Array(i-1);--i;)o[i-1]=arguments[i];return t[n].subscribe.apply(null,o),e}if("string"==typeof n)return t[n]};n.addEventType=s;for(var r=1,i=arguments.length;r<i;++r)s(arguments[r]);return n;function s(e,r,i){if("object"==typeof e){var c;return void o(c=e).forEach(function(e){var t=c[e];if(a(t))s(e,c[e][0],c[e][1]);else{if("asap"!==t)throw new Y.InvalidArgument("Invalid event config");var n=s(e,er,function(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];n.subscribers.forEach(function(e){x(function(){e.apply(null,t)})})})}})}r||(r=eu),i||(i=en);var u={subscribers:[],fire:i,subscribe:function(e){-1===u.subscribers.indexOf(e)&&(u.subscribers.push(e),u.fire=r(u.fire,e))},unsubscribe:function(e){u.subscribers=u.subscribers.filter(function(t){return t!==e}),u.fire=u.subscribers.reduce(r,i)}};return t[e]=n[e]=u,u}}function tf(e,t){return p(t).from({prototype:e}),t}function th(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function td(e,t){e.filter=ta(e.filter,t)}function tp(e,t,n){var r=e.replayFilter;e.replayFilter=r?()=>ta(r(),t()):t,e.justLimit=n&&!r}function ty(e,t){if(e.isPrimKey)return t.primaryKey;let n=t.getIndexByKeyPath(e.index);if(!n)throw new Y.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function tv(e,t,n){let r=ty(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function tb(e,t,n,r){let i=e.replayFilter?ta(e.filter,e.replayFilter()):e.filter;if(e.or){let o={},a=(e,n,r)=>{if(!i||i(n,r,e=>n.stop(e),e=>n.fail(e))){var a=n.primaryKey,s=""+a;"[object ArrayBuffer]"===s&&(s=""+new Uint8Array(a)),l(o,s)||(o[s]=!0,t(e,n,r))}};return Promise.all([e.or._iterate(a,n),tm(tv(e,r,n),e.algorithm,a,!e.keysOnly&&e.valueMapper)])}return tm(tv(e,r,n),ta(e.algorithm,i),t,!e.keysOnly&&e.valueMapper)}function tm(e,t,n,r){var i=eZ(r?(e,t,i)=>n(r(e),t,i):n);return e.then(e=>{if(e)return e.start(()=>{var n=()=>e.continue();t&&!t(e,e=>n=e,t=>{e.stop(t),n=en},t=>{e.fail(t),n=en})||i(e.value,e,e=>n=e),n()})})}function tg(e,t){try{let n=tw(e),r=tw(t);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 e>t?1:e<t?-1:0;case"binary":return function(e,t){let n=e.length,r=t.length,i=n<r?n:r;for(let n=0;n<i;++n)if(e[n]!==t[n])return e[n]<t[n]?-1:1;return n===r?0:n<r?-1:1}(t_(e),t_(t));case"Array":return function(e,t){let n=e.length,r=t.length,i=n<r?n:r;for(let n=0;n<i;++n){let r=tg(e[n],t[n]);if(0!==r)return r}return n===r?0:n<r?-1:1}(e,t)}}catch(e){}return NaN}function tw(e){let t=typeof e;if("object"!==t)return t;if(ArrayBuffer.isView(e))return"binary";let n=R(e);return"ArrayBuffer"===n?"binary":n}function t_(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}class tx{_read(e,t){var n=this._ctx;return n.error?n.table._trans(null,te.bind(null,n.error)):n.table._trans("readonly",e).then(t)}_write(e){var t=this._ctx;return t.error?t.table._trans(null,te.bind(null,t.error)):t.table._trans("readwrite",e,"locked")}_addAlgorithm(e){var t=this._ctx;t.algorithm=ta(t.algorithm,e)}_iterate(e,t){return tb(this._ctx,e,t,this._ctx.table.core)}clone(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&s(n,e),t._ctx=n,t}raw(){return this._ctx.valueMapper=null,this}each(e){var t=this._ctx;return this._read(n=>tb(t,e,n,t.table.core))}count(e){return this._read(e=>{let t=this._ctx,n=t.table.core;if(th(t,!0))return n.count({trans:e,query:{index:ty(t,n.schema),range:t.range}}).then(e=>Math.min(e,t.limit));var r=0;return tb(t,()=>(++r,!1),e,n).then(()=>r)}).then(e)}sortBy(e,t){let n=e.split(".").reverse(),r=n[0],i=n.length-1;function o(e,t){return t?o(e[n[t]],t-1):e[r]}var a="next"===this._ctx.dir?1:-1;function s(e,t){var n=o(e,i),r=o(t,i);return n<r?-a:n>r?a:0}return this.toArray(function(e){return e.sort(s)}).then(t)}toArray(e){return this._read(e=>{var t=this._ctx;if("next"===t.dir&&th(t,!0)&&t.limit>0){let{valueMapper:n}=t,r=ty(t,t.table.core.schema);return t.table.core.query({trans:e,limit:t.limit,values:!0,query:{index:r,range:t.range}}).then(({result:e})=>n?e.map(n):e)}{let n=[];return tb(t,e=>n.push(e),e,t.table.core).then(()=>n)}},e)}offset(e){var t=this._ctx;return e<=0||(t.offset+=e,th(t)?tp(t,()=>{var t=e;return(e,n)=>0===t||(1===t?--t:n(()=>{e.advance(t),t=0}),!1)}):tp(t,()=>{var t=e;return()=>--t<0})),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),tp(this._ctx,()=>{var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}},!0),this}until(e,t){return td(this._ctx,function(n,r,i){return!e(n.value)||(r(i),t)}),this}first(e){return this.limit(1).toArray(function(e){return e[0]}).then(e)}last(e){return this.reverse().first(e)}filter(e){var t;return td(this._ctx,function(t){return e(t.value)}),(t=this._ctx).isMatch=ta(t.isMatch,e),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.key,n)})}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.primaryKey,n)})}keys(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.key)}).then(function(){return n}).then(e)}primaryKeys(e){var t=this._ctx;if("next"===t.dir&&th(t,!0)&&t.limit>0)return this._read(e=>{var n=ty(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})}).then(({result:e})=>e).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.primaryKey)}).then(function(){return n}).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys(function(e){return e[0]}).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return td(this._ctx,function(e){var t=e.primaryKey.toString(),r=l(n,t);return n[t]=!0,!r}),this}modify(e){var t=this._ctx;return this._write(n=>{var r;if("function"==typeof e)r=e;else{var i=o(e),a=i.length;r=function(t){for(var n=!1,r=0;r<a;++r){var o=i[r],s=e[o];O(t,o)!==s&&(S(t,o,s),n=!0)}return n}}let s=t.table.core,{outbound:c,extractKey:u}=s.schema.primaryKey,l=this.db._options.modifyChunkSize||200,f=[],h=0,d=[],p=(e,t)=>{let{failures:n,numFailures:r}=t;for(let t of(h+=e-r,o(n)))f.push(n[t])};return this.clone().primaryKeys().then(i=>{let o=a=>{let f=Math.min(l,i.length-a);return s.getMany({trans:n,keys:i.slice(a,a+f),cache:"immutable"}).then(h=>{let d=[],y=[],v=c?[]:null,b=[];for(let e=0;e<f;++e){let t=h[e],n={value:I(t),primKey:i[a+e]};!1!==r.call(n,n.value,n)&&(null==n.value?b.push(i[a+e]):c||0===tg(u(t),u(n.value))?(y.push(n.value),c&&v.push(i[a+e])):(b.push(i[a+e]),d.push(n.value)))}let m=th(t)&&t.limit===1/0&&("function"!=typeof e||e===tE)&&{index:t.index,range:t.range};return Promise.resolve(d.length>0&&s.mutate({trans:n,type:"add",values:d}).then(e=>{for(let t in e.failures)b.splice(parseInt(t),1);p(d.length,e)})).then(()=>(y.length>0||m&&"object"==typeof e)&&s.mutate({trans:n,type:"put",keys:v,values:y,criteria:m,changeSpec:"function"!=typeof e&&e}).then(e=>p(y.length,e))).then(()=>(b.length>0||m&&e===tE)&&s.mutate({trans:n,type:"delete",keys:b,criteria:m}).then(e=>p(b.length,e))).then(()=>i.length>a+f&&o(a+l))})};return o(0).then(()=>{if(f.length>0)throw new J("Error modifying one or more objects",f,h,d);return i.length})})})}delete(){var e=this._ctx,t=e.range;return th(e)&&(e.isPrimKey&&!ti||3===t.type)?this._write(n=>{let{primaryKey:r}=e.table.core.schema;return e.table.core.count({trans:n,query:{index:r,range:t}}).then(r=>e.table.core.mutate({trans:n,type:"deleteRange",range:t}).then(({failures:e,lastResult:t,results:n,numFailures:i})=>{if(i)throw new J("Could not delete some values",Object.keys(e).map(t=>e[t]),r-i);return r-i}))}):this.modify(tE)}}let tE=(e,t)=>t.value=null;function tO(e,t){return e<t?-1:+(e!==t)}function tS(e,t){return e>t?-1:+(e!==t)}function tk(e,t,n){var r=e instanceof tD?new e.Collection(e):e;return r._ctx.error=n?new n(t):TypeError(t),r}function tj(e){return new e.Collection(e,()=>tC("")).limit(0)}function tA(e,t,n,r){var i,o,a,s,c,u,l,f=n.length;if(!n.every(e=>"string"==typeof e))return tk(e,"String expected.");function h(e){i="next"===e?e=>e.toUpperCase():e=>e.toLowerCase(),o="next"===e?e=>e.toLowerCase():e=>e.toUpperCase(),a="next"===e?tO:tS;var t=n.map(function(e){return{lower:o(e),upper:i(e)}}).sort(function(e,t){return a(e.lower,t.lower)});s=t.map(function(e){return e.upper}),c=t.map(function(e){return e.lower}),u=e,l="next"===e?"":r}h("next");var d=new e.Collection(e,()=>tP(s[0],c[f-1]+r));d._ondirectionchange=function(e){h(e)};var p=0;return d._addAlgorithm(function(e,n,r){var i=e.key;if("string"!=typeof i)return!1;var h=o(i);if(t(h,c,p))return!0;for(var d=null,y=p;y<f;++y){var v=function(e,t,n,r,i,o){for(var a=Math.min(e.length,r.length),s=-1,c=0;c<a;++c){var u=t[c];if(u!==r[c])return 0>i(e[c],n[c])?e.substr(0,c)+n[c]+n.substr(c+1):0>i(e[c],r[c])?e.substr(0,c)+r[c]+n.substr(c+1):s>=0?e.substr(0,s)+t[s]+n.substr(s+1):null;0>i(e[c],u)&&(s=c)}return a<r.length&&"next"===o?e+n.substr(e.length):a<e.length&&"prev"===o?e.substr(0,n.length):s<0?null:e.substr(0,s)+r[s]+n.substr(s+1)}(i,h,s[y],c[y],a,u);null===v&&null===d?p=y+1:(null===d||a(d,v)>0)&&(d=v)}return n(null!==d?function(){e.continue(d+l)}:r),!1}),d}function tP(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function tC(e){return{type:1,lower:e,upper:e}}class tD{get Collection(){return this._ctx.table.db.Collection}between(e,t,n,r){n=!1!==n,r=!0===r;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?tj(this):new this.Collection(this,()=>tP(e,t,!n,!r))}catch(e){return tk(this,tn)}}equals(e){return null==e?tk(this,tn):new this.Collection(this,()=>tC(e))}above(e){return null==e?tk(this,tn):new this.Collection(this,()=>tP(e,void 0,!0))}aboveOrEqual(e){return null==e?tk(this,tn):new this.Collection(this,()=>tP(e,void 0,!1))}below(e){return null==e?tk(this,tn):new this.Collection(this,()=>tP(void 0,e,!1,!0))}belowOrEqual(e){return null==e?tk(this,tn):new this.Collection(this,()=>tP(void 0,e))}startsWith(e){return"string"!=typeof e?tk(this,"String expected."):this.between(e,e+tt,!0,!0)}startsWithIgnoreCase(e){return""===e?this.startsWith(e):tA(this,(e,t)=>0===e.indexOf(t[0]),[e],tt)}equalsIgnoreCase(e){return tA(this,(e,t)=>e===t[0],[e],"")}anyOfIgnoreCase(){var e=K.apply(M,arguments);return 0===e.length?tj(this):tA(this,(e,t)=>-1!==t.indexOf(e),e,"")}startsWithAnyOfIgnoreCase(){var e=K.apply(M,arguments);return 0===e.length?tj(this):tA(this,(e,t)=>t.some(t=>0===e.indexOf(t)),e,tt)}anyOf(){let e=K.apply(M,arguments),t=this._cmp;try{e.sort(t)}catch(e){return tk(this,tn)}if(0===e.length)return tj(this);let n=new this.Collection(this,()=>tP(e[0],e[e.length-1]));n._ondirectionchange=n=>{t="next"===n?this._ascending:this._descending,e.sort(t)};let r=0;return n._addAlgorithm((n,i,o)=>{let a=n.key;for(;t(a,e[r])>0;)if(++r===e.length)return i(o),!1;return 0===t(a,e[r])||(i(()=>{n.continue(e[r])}),!1)}),n}notEqual(e){return this.inAnyRange([[-1/0,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){let e=K.apply(M,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return tk(this,tn)}let t=e.reduce((e,t)=>e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]],null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,t){let n=this._cmp,r=this._ascending,i=this._descending,o=this._min,a=this._max;if(0===e.length)return tj(this);if(!e.every(e=>void 0!==e[0]&&void 0!==e[1]&&0>=r(e[0],e[1])))return tk(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Y.InvalidArgument);let s=!t||!1!==t.includeLowers,c=t&&!0===t.includeUppers,u,l=r;function f(e,t){return l(e[0],t[0])}try{(u=e.reduce(function(e,t){let r=0,i=e.length;for(;r<i;++r){let i=e[r];if(0>n(t[0],i[1])&&n(t[1],i[0])>0){i[0]=o(i[0],t[0]),i[1]=a(i[1],t[1]);break}}return r===i&&e.push(t),e},[])).sort(f)}catch(e){return tk(this,tn)}let h=0,d=c?e=>r(e,u[h][1])>0:e=>r(e,u[h][1])>=0,p=s?e=>i(e,u[h][0])>0:e=>i(e,u[h][0])>=0,y=d,v=new this.Collection(this,()=>tP(u[0][0],u[u.length-1][1],!s,!c));return v._ondirectionchange=e=>{"next"===e?(y=d,l=r):(y=p,l=i),u.sort(f)},v._addAlgorithm((e,t,n)=>{for(var i=e.key;y(i);)if(++h===u.length)return t(n),!1;return!!(!d(i)&&!p(i))||(0===this._cmp(i,u[h][1])||0===this._cmp(i,u[h][0])||t(()=>{l===r?e.continue(u[h][0]):e.continue(u[h][1])}),!1)}),v}startsWithAnyOf(){let e=K.apply(M,arguments);return e.every(e=>"string"==typeof e)?0===e.length?tj(this):this.inAnyRange(e.map(e=>[e,e+tt])):tk(this,"startsWithAnyOf() only works with strings")}}function tI(e){return eZ(function(t){return tT(t),e(t.target.error),!1})}function tT(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}let tR=tl(null,"storagemutated");class tN{_lock(){return w(!eA.global),++this._reculock,1!==this._reculock||eA.global||(eA.lockOwnerFor=this),this}_unlock(){if(w(!eA.global),0==--this._reculock)for(eA.global||(eA.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{e3(e[1],e[0])}catch(e){}}return this}_locked(){return this._reculock&&eA.lockOwnerFor!==this}create(e){if(!this.mode)return this;let t=this.db.idbdb,n=this.db._state.dbOpenError;if(w(!this.idbtrans),!e&&!t)switch(n&&n.name){case"DatabaseClosedError":throw new Y.DatabaseClosed(n);case"MissingAPIError":throw new Y.MissingAPI(n.message,n);default:throw new Y.OpenFailed(n)}if(!this.active)throw new Y.TransactionInactive;return w(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):t.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=eZ(t=>{tT(t),this._reject(e.error)}),e.onabort=eZ(t=>{tT(t),this.active&&this._reject(new Y.Abort(e.error)),this.active=!1,this.on("abort").fire(t)}),e.oncomplete=eZ(()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&tR.storagemutated.fire(e.mutatedParts)}),this}_promise(e,t,n){if("readwrite"===e&&"readwrite"!==this.mode)return te(new Y.ReadOnly("Transaction is readonly"));if(!this.active)return te(new Y.TransactionInactive);if(this._locked())return new eI((r,i)=>{this._blockedFuncs.push([()=>{this._promise(e,t,n).then(r,i)},eA])});if(n)return eQ(()=>{var e=new eI((e,n)=>{this._lock();let r=t(e,n,this);r&&r.then&&r.then(e,n)});return e.finally(()=>this._unlock()),e._lib=!0,e});var r=new eI((e,n)=>{var r=t(e,n,this);r&&r.then&&r.then(e,n)});return r._lib=!0,r}_root(){return this.parent?this.parent._root():this}waitFor(e){var t=this._root();let n=eI.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then(()=>n);else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var i=t._waitingFor;return new eI((e,r)=>{n.then(n=>t._waitingQueue.push(eZ(e.bind(null,n))),e=>t._waitingQueue.push(eZ(r.bind(null,e)))).finally(()=>{t._waitingFor===i&&(t._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Y.Abort))}table(e){let t=this._memoizedTables||(this._memoizedTables={});if(l(t,e))return t[e];let n=this.schema[e];if(!n)throw new Y.NotFound("Table "+e+" not part of transaction");let r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r}}function tB(e,t,n,r,i,o,a){return{name:e,keyPath:t,unique:n,multi:r,auto:i,compound:o,src:(n&&!a?"&":"")+(r?"*":"")+(i?"++":"")+tM(t)}}function tM(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function tK(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:E(n,e=>[e.name,e])}}let tL=e=>{try{return e.only([[]]),tL=()=>[[]],[[]]}catch(e){return tL=()=>tt,tt}};function tU(e){return null==e?()=>{}:"string"==typeof e?1===e.split(".").length?t=>t[e]:t=>O(t,e):t=>O(t,e)}function tF(e){return[].slice.call(e)}let tq=0;function tV(e){return null==e?":id":"string"==typeof e?e:`[${e.join("+")}]`}function tW({_novip:e},t){let n=t.db,r=function(e,t,{IDBKeyRange:n,indexedDB:r},i){var o;return{dbcore:(o=function(e,t,n){function r(e){if(3===e.type)return null;if(4===e.type)throw Error("Cannot convert never type to IDBKeyRange");let{lower:n,upper:r,lowerOpen:i,upperOpen:o}=e;return void 0===n?void 0===r?null:t.upperBound(r,!!o):void 0===r?t.lowerBound(n,!!i):t.bound(n,r,!!i,!!o)}let{schema:i,hasGetAll:o}=function(e,t){let n=tF(e.objectStoreNames);return{schema:{name:e.name,tables:n.map(e=>t.objectStore(e)).map(e=>{let{keyPath:t,autoIncrement:n}=e,r=a(t),i=null==t,o={},s={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:i,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:tU(t)},indexes:tF(e.indexNames).map(t=>e.index(t)).map(e=>{let{name:t,unique:n,multiEntry:r,keyPath:i}=e,s={name:t,compound:a(i),keyPath:i,unique:n,multiEntry:r,extractKey:tU(i)};return o[tV(i)]=s,s}),getIndexByKeyPath:e=>o[tV(e)]};return o[":id"]=s.primaryKey,null!=t&&(o[tV(t)]=s.primaryKey),s})},hasGetAll:n.length>0&&"getAll"in t.objectStore(n[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,n),s=i.tables.map(e=>(function(e){let t=e.name;return{name:t,schema:e,mutate:function({trans:e,type:n,keys:i,values:o,range:a}){return new Promise((s,c)=>{let u;s=eZ(s);let l=e.objectStore(t),f=null==l.keyPath,h="put"===n||"add"===n;if(!h&&"delete"!==n&&"deleteRange"!==n)throw Error("Invalid operation type: "+n);let{length:d}=i||o||{length:1};if(i&&o&&i.length!==o.length)throw Error("Given keys array must have same length as given values array.");if(0===d)return s({numFailures:0,failures:{},results:[],lastResult:void 0});let p=[],y=[],v=0,b=e=>{++v,tT(e)};if("deleteRange"===n){if(4===a.type)return s({numFailures:v,failures:y,results:[],lastResult:void 0});3===a.type?p.push(u=l.clear()):p.push(u=l.delete(r(a)))}else{let[e,t]=h?f?[o,i]:[o,null]:[i,null];if(h)for(let r=0;r<d;++r)p.push(u=t&&void 0!==t[r]?l[n](e[r],t[r]):l[n](e[r])),u.onerror=b;else for(let t=0;t<d;++t)p.push(u=l[n](e[t])),u.onerror=b}let m=e=>{let t=e.target.result;p.forEach((e,t)=>null!=e.error&&(y[t]=e.error)),s({numFailures:v,failures:y,results:"delete"===n?i:p.map(e=>e.result),lastResult:t})};u.onerror=e=>{b(e),m(e)},u.onsuccess=m})},getMany:({trans:e,keys:n})=>new Promise((r,i)=>{r=eZ(r);let o=e.objectStore(t),a=n.length,s=Array(a),c,u=0,l=0,f=e=>{let t=e.target;s[t._pos]=t.result,++l===u&&r(s)},h=tI(i);for(let e=0;e<a;++e)null!=n[e]&&((c=o.get(n[e]))._pos=e,c.onsuccess=f,c.onerror=h,++u);0===u&&r(s)}),get:({trans:e,key:n})=>new Promise((r,i)=>{r=eZ(r);let o=e.objectStore(t).get(n);o.onsuccess=e=>r(e.target.result),o.onerror=tI(i)}),query:e=>new Promise((n,i)=>{n=eZ(n);let{trans:a,values:s,limit:c,query:u}=e,l=c===1/0?void 0:c,{index:f,range:h}=u,d=a.objectStore(t),p=f.isPrimaryKey?d:d.index(f.name),y=r(h);if(0===c)return n({result:[]});if(o){let e=s?p.getAll(y,l):p.getAllKeys(y,l);e.onsuccess=e=>n({result:e.target.result}),e.onerror=tI(i)}else{let e=0,t=!s&&"openKeyCursor"in p?p.openKeyCursor(y):p.openCursor(y),r=[];t.onsuccess=i=>{let o=t.result;return o?(r.push(s?o.value:o.primaryKey),++e===c?n({result:r}):void o.continue()):n({result:r})},t.onerror=tI(i)}}),openCursor:function({trans:e,values:n,query:i,reverse:o,unique:a}){return new Promise((s,c)=>{s=eZ(s);let{index:u,range:l}=i,f=e.objectStore(t),h=u.isPrimaryKey?f:f.index(u.name),d=o?a?"prevunique":"prev":a?"nextunique":"next",p=!n&&"openKeyCursor"in h?h.openKeyCursor(r(l),d):h.openCursor(r(l),d);p.onerror=tI(c),p.onsuccess=eZ(t=>{let n=p.result;if(!n)return void s(null);n.___id=++tq,n.done=!1;let r=n.continue.bind(n),i=n.continuePrimaryKey;i&&(i=i.bind(n));let o=n.advance.bind(n),a=()=>{throw Error("Cursor not stopped")};n.trans=e,n.stop=n.continue=n.continuePrimaryKey=n.advance=()=>{throw Error("Cursor not started")},n.fail=eZ(c),n.next=function(){let e=1;return this.start(()=>e--?this.continue():this.stop()).then(()=>this)},n.start=e=>{let t=new Promise((e,t)=>{e=eZ(e),p.onerror=tI(t),n.fail=t,n.stop=t=>{n.stop=n.continue=n.continuePrimaryKey=n.advance=a,e(t)}}),s=()=>{if(p.result)try{e()}catch(e){n.fail(e)}else n.done=!0,n.start=()=>{throw Error("Cursor behind last entry")},n.stop()};return p.onsuccess=eZ(e=>{p.onsuccess=s,s()}),n.continue=r,n.continuePrimaryKey=i,n.advance=o,s(),t},s(n)},c)})},count({query:e,trans:n}){let{index:i,range:o}=e;return new Promise((e,a)=>{let s=n.objectStore(t),c=i.isPrimaryKey?s:s.index(i.name),u=r(o),l=u?c.count(u):c.count();l.onsuccess=eZ(t=>e(t.target.result)),l.onerror=tI(a)})}}})(e)),c={};return s.forEach(e=>c[e.name]=e),{stack:"dbcore",transaction:e.transaction.bind(e),table(e){if(!c[e])throw Error(`Table '${e}' not found`);return c[e]},MIN_KEY:-1/0,MAX_KEY:tL(t),schema:i}}(t,n,i),e.dbcore.reduce((e,{create:t})=>({...e,...t(e)}),o))}}(e._middlewares,n,e._deps,t);e.core=r.dbcore,e.tables.forEach(t=>{let n=t.name;e.core.schema.tables.some(e=>e.name===n)&&(t.core=e.core.table(n),e[n]instanceof e.Table&&(e[n].core=t.core))})}function tZ({_novip:e},t,n,r){n.forEach(n=>{let i=r[n];t.forEach(t=>{let r=v(t,n);(!r||"value"in r&&void 0===r.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?d(t,n,{get(){return this.table(n)},set(e){h(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,i))})})}function tz({_novip:e},t){t.forEach(t=>{for(let n in t)t[n]instanceof e.Table&&delete t[n]})}function t$(e,t){return e._cfg.version-t._cfg.version}function tH(e,t){let n,r={del:[],add:[],change:[]};for(n in e)t[n]||r.del.push(n);for(n in t){let i=e[n],o=t[n];if(i){let e={name:n,def:o,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")==""+(o.primKey.keyPath||"")&&(i.primKey.auto===o.primKey.auto||ti)){let t,n=i.idxByName,a=o.idxByName;for(t in n)a[t]||e.del.push(t);for(t in a){let r=n[t],i=a[t];r?r.src!==i.src&&e.change.push(i):e.add.push(i)}(e.del.length>0||e.add.length>0||e.change.length>0)&&r.change.push(e)}else e.recreate=!0,r.change.push(e)}else r.add.push([n,o])}return r}function tX(e,t,n,r){let i=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach(e=>tJ(i,e)),i}function tJ(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function tG(e,t,n){let r={};return m(t.objectStoreNames,0).forEach(e=>{let t=n.objectStore(e),i=t.keyPath,o=tB(tM(i),i||"",!1,!1,!!t.autoIncrement,i&&"string"!=typeof i,!0),a=[];for(let e=0;e<t.indexNames.length;++e){let n=t.index(t.indexNames[e]);i=n.keyPath;var s=tB(n.name,i,!!n.unique,!!n.multiEntry,!1,i&&"string"!=typeof i,!1);a.push(s)}r[e]=tK(e,o,a)}),r}function tQ({_novip:e},t,n){let r=n.db.objectStoreNames;for(let i=0;i<r.length;++i){let o=r[i],a=n.objectStore(o);e._hasGetAll="getAll"in a;for(let e=0;e<a.indexNames.length;++e){let n=a.indexNames[e],r=a.index(n).keyPath,i="string"==typeof r?r:"["+m(r).join("+")+"]";if(t[o]){let e=t[o].idxByName[i];e&&(e.name=n,delete t[o].idxByName[i],t[o].idxByName[n]=e)}}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&i.WorkerGlobalScope&&i instanceof i.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}class tY{_parseStoresSpec(e,t){o(e).forEach(n=>{if(null!==e[n]){var r=e[n].split(",").map((e,t)=>{let n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return tB(n,r||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),a(r),0===t)}),i=r.shift();if(i.multi)throw new Y.Schema("Primary key cannot be multi-valued");r.forEach(e=>{if(e.auto)throw new Y.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new Y.Schema("Index must have a name and cannot be an empty string")}),t[n]=tK(n,i,r)}})}stores(e){let t=this.db;this._cfg.storesSource=this._cfg.storesSource?s(this._cfg.storesSource,e):e;let n=t._versions,r={},i={};return n.forEach(e=>{s(r,e._cfg.storesSource),i=e._cfg.dbschema={},e._parseStoresSpec(r,i)}),t._dbSchema=i,tz(t,[t._allTables,t,t.Transaction.prototype]),tZ(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],o(i),i),t._storeNames=o(i),this}upgrade(e){return this._cfg.contentUpgrade=el(this._cfg.contentUpgrade||en,e),this}}function t0(e,t){let n=e._dbNamesDB;return n||(n=e._dbNamesDB=new nu("__dbnames",{addons:[],indexedDB:e,IDBKeyRange:t})).version(1).stores({dbnames:"name"}),n.table("dbnames")}function t1(e){return e&&"function"==typeof e.databases}function t2(e){return eQ(function(){return eA.letThrough=!0,e()})}function t8(e){var t=t=>e.next(t),n=i(t),r=i(t=>e.throw(t));function i(e){return t=>{var i=e(t),o=i.value;return i.done?o:o&&"function"==typeof o.then?o.then(n,r):a(o)?Promise.all(o).then(n,r):n(o)}}return i(t)()}function t5(e,t,n){var r=arguments.length;if(r<2)throw new Y.InvalidArgument("Too few arguments");for(var i=Array(r-1);--r;)i[r-1]=arguments[r];return n=i.pop(),[e,A(i),n]}function t6(e,t,n){let r=a(e)?e.slice():[e];for(let e=0;e<n;++e)r.push(t);return r}let t3={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return{...e,table(t){let n=e.table(t),{schema:r}=n,i={},o=[];function a(e,t,n){let r=tV(e),s=i[r]=i[r]||[],c=null==e?0:"string"==typeof e?1:e.length,u=t>0,l={...n,isVirtual:u,keyTail:t,keyLength:c,extractKey:tU(e),unique:!u&&n.unique};return s.push(l),l.isPrimaryKey||o.push(l),c>1&&a(2===c?e[0]:e.slice(0,c-1),t+1,n),s.sort((e,t)=>e.keyTail-t.keyTail),l}let s=a(r.primaryKey.keyPath,0,r.primaryKey);for(let e of(i[":id"]=[s],r.indexes))a(e.keyPath,0,e);function c(t){var n,r;let i=t.query.index;return i.isVirtual?{...t,query:{index:i,range:(n=t.query.range,r=i.keyTail,{type:1===n.type?2:n.type,lower:t6(n.lower,n.lowerOpen?e.MAX_KEY:e.MIN_KEY,r),lowerOpen:!0,upper:t6(n.upper,n.upperOpen?e.MIN_KEY:e.MAX_KEY,r),upperOpen:!0})}}:t}return{...n,schema:{...r,primaryKey:s,indexes:o,getIndexByKeyPath:function(e){let t=i[tV(e)];return t&&t[0]}},count:e=>n.count(c(e)),query:e=>n.query(c(e)),openCursor(t){let{keyTail:r,isVirtual:i,keyLength:o}=t.query.index;return i?n.openCursor(c(t)).then(n=>n&&Object.create(n,{continue:{value:function(i){null!=i?n.continue(t6(i,t.reverse?e.MAX_KEY:e.MIN_KEY,r)):t.unique?n.continue(n.key.slice(0,o).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,r)):n.continue()}},continuePrimaryKey:{value(t,i){n.continuePrimaryKey(t6(t,e.MAX_KEY,r),i)}},primaryKey:{get:()=>n.primaryKey},key:{get(){let e=n.key;return 1===o?e[0]:e.slice(0,o)}},value:{get:()=>n.value}})):n.openCursor(t)}}}}}};function t9(e,t,n,r){return n=n||{},r=r||"",o(e).forEach(i=>{if(l(t,i)){var o=e[i],a=t[i];if("object"==typeof o&&"object"==typeof a&&o&&a){let e=R(o);e!==R(a)?n[r+i]=t[i]:"Object"===e?t9(o,a,n,r+i+"."):o!==a&&(n[r+i]=t[i])}else o!==a&&(n[r+i]=t[i])}else n[r+i]=void 0}),o(t).forEach(i=>{l(e,i)||(n[r+i]=t[i])}),n}let t7={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){let n=e.table(t),{primaryKey:r}=n.schema;return{...n,mutate(e){let i=eA.trans,{deleting:o,creating:a,updating:s}=i.table(t).hook;switch(e.type){case"add":if(a.fire===en)break;return i._promise("readwrite",()=>c(e),!0);case"put":if(a.fire===en&&s.fire===en)break;return i._promise("readwrite",()=>c(e),!0);case"delete":if(o.fire===en)break;return i._promise("readwrite",()=>c(e),!0);case"deleteRange":if(o.fire===en)break;return i._promise("readwrite",()=>(function e(t,i,o){return n.query({trans:t,values:!1,query:{index:r,range:i},limit:o}).then(({result:n})=>c({type:"delete",keys:n,trans:t}).then(r=>r.numFailures>0?Promise.reject(r.failures[0]):n.length<o?{failures:[],numFailures:0,lastResult:void 0}:e(t,{...i,lower:n[n.length-1],lowerOpen:!0},o)))})(e.trans,e.range,1e4),!0)}return n.mutate(e);function c(e){var t,i;let c=eA.trans,u=e.keys||("delete"===(t=e).type?t.keys:t.keys||t.values.map(r.extractKey));if(!u)throw Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?{...e,keys:u}:{...e}).type&&(e.values=[...e.values]),e.keys&&(e.keys=[...e.keys]),("add"===(i=e).type?Promise.resolve([]):n.getMany({trans:i.trans,keys:u,cache:"immutable"})).then(t=>{let i=u.map((n,i)=>{let u=t[i],f={onerror:null,onsuccess:null};if("delete"===e.type)o.fire.call(f,n,u,c);else if("add"===e.type||void 0===u){let t=a.fire.call(f,n,e.values[i],c);null==n&&null!=t&&(n=t,e.keys[i]=n,r.outbound||S(e.values[i],r.keyPath,n))}else{let t=t9(u,e.values[i]),r=s.fire.call(f,t,n,u,c);if(r){let t=e.values[i];Object.keys(r).forEach(e=>{l(t,e)?t[e]=r[e]:S(t,e,r[e])})}}return f});return n.mutate(e).then(({failures:n,results:r,numFailures:o,lastResult:a})=>{for(let o=0;o<u.length;++o){let a=r?r[o]:u[o],s=i[o];null==a?s.onerror&&s.onerror(n[o]):s.onsuccess&&s.onsuccess("put"===e.type&&t[o]?e.values[o]:a)}return{failures:n,results:r,numFailures:o,lastResult:a}}).catch(e=>(i.forEach(t=>t.onerror&&t.onerror(e)),Promise.reject(e)))})}}}}})};function t4(e,t,n){try{if(!t||t.keys.length<e.length)return null;let r=[];for(let i=0,o=0;i<t.keys.length&&o<e.length;++i)0===tg(t.keys[i],e[o])&&(r.push(n?I(t.values[i]):t.values[i]),++o);return r.length===e.length?r:null}catch(e){return null}}let ne={stack:"dbcore",level:-1,create:e=>({table:t=>{let n=e.table(t);return{...n,getMany:e=>{if(!e.cache)return n.getMany(e);let t=t4(e.keys,e.trans._cache,"clone"===e.cache);return t?eI.resolve(t):n.getMany(e).then(t=>(e.trans._cache={keys:e.keys,values:"clone"===e.cache?I(t):t},t))},mutate:e=>("add"!==e.type&&(e.trans._cache=null),n.mutate(e))}}})};function nt(e){return!("from"in e)}let nn=function(e,t){if(!this){let t=new nn;return e&&"d"in e&&s(t,e),t}s(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function nr(e,t,n){let r=tg(t,n);if(isNaN(r))return;if(r>0)throw RangeError();if(nt(e))return s(e,{from:t,to:n,d:1});let i=e.l,o=e.r;if(0>tg(n,e.from))return i?nr(i,t,n):e.l={from:t,to:n,d:1,l:null,r:null},na(e);if(tg(t,e.to)>0)return o?nr(o,t,n):e.r={from:t,to:n,d:1,l:null,r:null},na(e);0>tg(t,e.from)&&(e.from=t,e.l=null,e.d=o?o.d+1:1),tg(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);let a=!e.r;i&&!e.l&&ni(e,i),o&&a&&ni(e,o)}function ni(e,t){nt(t)||function e(t,{from:n,to:r,l:i,r:o}){nr(t,n,r),i&&e(t,i),o&&e(t,o)}(e,t)}function no(e){let t=nt(e)?null:{s:0,n:e};return{next(e){let n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&0>tg(e,t.n.from);)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||0>=tg(e,t.n.to))return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function na(e){var t,n;let r=((null==(t=e.r)?void 0:t.d)||0)-((null==(n=e.l)?void 0:n.d)||0),i=r>1?"r":r<-1?"l":"";if(i){let t="r"===i?"l":"r",n={...e},r=e[i];e.from=r.from,e.to=r.to,e[i]=r[i],n[i]=r[t],e[t]=n,n.d=ns(n)}e.d=ns(e)}function ns({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}f(nn.prototype,{add(e){return ni(this,e),this},addKey(e){return nr(this,e,e),this},addKeys(e){return e.forEach(e=>nr(this,e,e)),this},[N](){return no(this)}});let nc={stack:"dbcore",level:0,create:e=>{let t=e.schema.name,n=new nn(e.MIN_KEY,e.MAX_KEY);return{...e,table:r=>{let i=e.table(r),{schema:s}=i,{primaryKey:c}=s,{extractKey:u,outbound:l}=c,f={...i,mutate:e=>{let o=e.trans,c=o.mutatedParts||(o.mutatedParts={}),u=e=>{let n=`idb://${t}/${r}/${e}`;return c[n]||(c[n]=new nn)},l=u(""),f=u(":dels"),{type:h}=e,[d,p]="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[],y=e.trans._cache;return i.mutate(e).then(e=>{if(a(d)){"delete"!==h&&(d=e.results),l.addKeys(d);let t=t4(d,y);t||"add"===h||f.addKeys(d),(t||p)&&s.indexes.forEach(function(e){let n=u(e.name||"");function r(t){return null!=t?e.extractKey(t):null}let i=t=>e.multiEntry&&a(t)?t.forEach(e=>n.addKey(e)):n.addKey(t);(t||p).forEach((e,n)=>{let o=t&&r(t[n]),a=p&&r(p[n]);0!==tg(o,a)&&(null!=o&&i(o),null!=a&&i(a))})})}else if(d){let e={from:d.lower,to:d.upper};f.add(e),l.add(e)}else l.add(n),f.add(n),s.indexes.forEach(e=>u(e.name).add(n));return e})}},h=({query:{index:t,range:n}})=>{var r,i;return[t,new nn(null!=(r=n.lower)?r:e.MIN_KEY,null!=(i=n.upper)?i:e.MAX_KEY)]},d={get:e=>[c,new nn(e.key)],getMany:e=>[c,(new nn).addKeys(e.keys)],count:h,query:h,openCursor:h};return o(d).forEach(e=>{f[e]=function(o){let{subscr:a}=eA;if(a){let s=e=>{let n=`idb://${t}/${r}/${e}`;return a[n]||(a[n]=new nn)},c=s(""),f=s(":dels"),[h,p]=d[e](o);if(s(h.name||"").add(p),!h.isPrimaryKey){if("count"!==e){let t="query"===e&&l&&o.values&&i.query({...o,values:!1});return i[e].apply(this,arguments).then(n=>{if("query"===e){if(l&&o.values)return t.then(({result:e})=>(c.addKeys(e),n));let e=o.values?n.result.map(u):n.result;o.values?c.addKeys(e):f.addKeys(e)}else if("openCursor"===e){let e=o.values;return n&&Object.create(n,{key:{get:()=>(f.addKey(n.primaryKey),n.key)},primaryKey:{get(){let e=n.primaryKey;return f.addKey(e),e}},value:{get:()=>(e&&c.addKey(n.primaryKey),n.value)}})}return n})}f.add(n)}}return i[e].apply(this,arguments)}}),f}}}};class nu{constructor(e,t){var n,r,i,o,a;this._middlewares={},this.verno=0;let s=nu.dependencies;this._options=t={addons:nu.addons,autoOpen:!0,indexedDB:s.indexedDB,IDBKeyRange:s.IDBKeyRange,...t},this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange};let{addons:c}=t;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;let u={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:en,dbReadyPromise:null,cancelOpen:en,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};u.dbReadyPromise=new eI(e=>{u.dbReadyResolve=e}),u.openCanceller=new eI((e,t)=>{u.cancelOpen=t}),this._state=u,this.name=e,this.on=tl(this,"populate","blocked","versionchange","close",{ready:[el,en]}),this.on.ready.subscribe=g(this.on.ready.subscribe,e=>(t,n)=>{nu.vip(()=>{let r=this._state;if(r.openComplete)r.dbOpenError||eI.resolve().then(t),n&&e(t);else if(r.onReadyBeingFired)r.onReadyBeingFired.push(t),n&&e(t);else{e(t);let r=this;n||e(function e(){r.on.ready.unsubscribe(t),r.on.ready.unsubscribe(e)})}})}),this.Collection=(n=this,tf(tx.prototype,function(e,t){this.db=n;let r=ts,i=null;if(t)try{r=t()}catch(e){i=e}let o=e._ctx,a=o.table,s=a.hook.reading.fire;this._ctx={table:a,index:o.index,isPrimKey:!o.index||a.schema.primKey.keyPath&&o.index===a.schema.primKey.name,range:r,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:i,or:o.or,valueMapper:s!==er?s:null}})),this.Table=(r=this,tf(tu.prototype,function(e,t,n){this.db=r,this._tx=n,this.name=e,this.schema=t,this.hook=r._allTables[e]?r._allTables[e].hook:tl(null,{creating:[ea,en],reading:[ei,er],updating:[ec,en],deleting:[es,en]})})),this.Transaction=(i=this,tf(tN.prototype,function(e,t,n,r,o){this.db=i,this.mode=e,this.storeNames=t,this.schema=n,this.chromeTransactionDurability=r,this.idbtrans=null,this.on=tl(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 eI((e,t)=>{this._resolve=e,this._reject=t}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},e=>{var t=this.active;return this.active=!1,this.on.error.fire(e),this.parent?this.parent._reject(e):t&&this.idbtrans&&this.idbtrans.abort(),te(e)})})),this.Version=(o=this,tf(tY.prototype,function(e){this.db=o,this._cfg={version:e,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(a=this,tf(tD.prototype,function(e,t,n){this.db=a,this._ctx={table:e,index:":id"===t?null:t,or:n};let r=a._deps.indexedDB;if(!r)throw new Y.MissingAPI;this._cmp=this._ascending=r.cmp.bind(r),this._descending=(e,t)=>r.cmp(t,e),this._max=(e,t)=>r.cmp(e,t)>0?e:t,this._min=(e,t)=>0>r.cmp(e,t)?e:t,this._IDBKeyRange=a._deps.IDBKeyRange})),this.on("versionchange",e=>{e.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()}),this.on("blocked",e=>{!e.newVersion||e.newVersion<e.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${e.oldVersion/10}`)}),this._maxKey=tL(t.IDBKeyRange),this._createTransaction=(e,t,n,r)=>new this.Transaction(e,t,n,this._options.chromeTransactionDurability,r),this._fireOnBlocked=e=>{this.on("blocked").fire(e),tr.filter(e=>e.name===this.name&&e!==this&&!e._state.vcFired).map(t=>t.on("versionchange").fire(e))},this.use(t3),this.use(t7),this.use(nc),this.use(ne),this.vip=Object.create(this,{_vip:{value:!0}}),c.forEach(e=>e(this))}version(e){if(isNaN(e)||e<.1)throw new Y.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new Y.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);let t=this._versions;var n=t.filter(t=>t._cfg.version===e)[0];return n||(n=new this.Version(e),t.push(n),t.sort(t$),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(e){return this.idbdb&&(this._state.openComplete||eA.letThrough||this._vip)?e():new eI((e,t)=>{if(this._state.openComplete)return t(new Y.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void t(new Y.DatabaseClosed);this.open().catch(en)}this._state.dbReadyPromise.then(e,t)}).then(e)}use({stack:e,create:t,level:n,name:r}){r&&this.unuse({stack:e,name:r});let i=this._middlewares[e]||(this._middlewares[e]=[]);return i.push({stack:e,create:t,level:null==n?10:n,name:r}),i.sort((e,t)=>e.level-t.level),this}unuse({stack:e,name:t,create:n}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter(e=>n?e.create!==n:!!t&&e.name!==t)),this}open(){return function(e){var t;let n=e._state,{indexedDB:r}=e._deps;if(n.isBeingOpened||e.idbdb)return n.dbReadyPromise.then(()=>n.dbOpenError?te(n.dbOpenError):e);U&&(n.openCanceller._stackHolder=V()),n.isBeingOpened=!0,n.dbOpenError=null,n.openComplete=!1;let i=n.openCanceller;function a(){if(n.openCanceller!==i)throw new Y.DatabaseClosed("db.open() was cancelled")}let s=n.dbReadyResolve,c=null,u=!1;return eI.race([i,("undefined"==typeof navigator?eI.resolve():!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()).then(()=>new eI((t,i)=>{if(a(),!r)throw new Y.MissingAPI;let s=e.name,l=n.autoSchema?r.open(s):r.open(s,Math.round(10*e.verno));if(!l)throw new Y.MissingAPI;l.onerror=tI(i),l.onblocked=eZ(e._fireOnBlocked),l.onupgradeneeded=eZ(t=>{if(c=l.transaction,n.autoSchema&&!e._options.allowEmptyDB){l.onerror=tT,c.abort(),l.result.close();let e=r.deleteDatabase(s);e.onsuccess=e.onerror=eZ(()=>{i(new Y.NoSuchDatabase(`Database ${s} doesnt exist`))})}else{c.onerror=tI(i);var a=t.oldVersion>0x4000000000000000?0:t.oldVersion;u=a<1,e._novip.idbdb=l.result,function(e,t,n,r){let i=e._dbSchema,a=e._createTransaction("readwrite",e._storeNames,i);a.create(n),a._completion.catch(r);let s=a._reject.bind(a),c=eA.transless||eA;eQ(()=>{eA.trans=a,eA.transless=c,0===t?(o(i).forEach(e=>{tX(n,e,i[e].primKey,i[e].indexes)}),tW(e,n),eI.follow(()=>e.on.populate.fire(a)).catch(s)):(function({_novip:e},t,n,r){let i=[],a=e._versions,s=e._dbSchema=tG(e,e.idbdb,r),c=!1;return a.filter(e=>e._cfg.version>=t).forEach(a=>{i.push(()=>{let i=s,u=a._cfg.dbschema;tQ(e,i,r),tQ(e,u,r),s=e._dbSchema=u;let l=tH(i,u);l.add.forEach(e=>{tX(r,e[0],e[1].primKey,e[1].indexes)}),l.change.forEach(e=>{if(e.recreate)throw new Y.Upgrade("Not yet support for changing primary key");{let t=r.objectStore(e.name);e.add.forEach(e=>tJ(t,e)),e.change.forEach(e=>{t.deleteIndex(e.name),tJ(t,e)}),e.del.forEach(e=>t.deleteIndex(e))}});let f=a._cfg.contentUpgrade;if(f&&a._cfg.version>t){let t;tW(e,r),n._memoizedTables={},c=!0;let a=k(u);l.del.forEach(e=>{a[e]=i[e]}),tz(e,[e.Transaction.prototype]),tZ(e,[e.Transaction.prototype],o(a),a),n.schema=a;let s=L(f);s&&eY();let h=eI.follow(()=>{if((t=f(n))&&s){var e=e0.bind(null,null);t.then(e,e)}});return t&&"function"==typeof t.then?eI.resolve(t):h.then(()=>t)}}),i.push(t=>{var r;c&&ti||(r=a._cfg.dbschema,[].slice.call(t.db.objectStoreNames).forEach(e=>null==r[e]&&t.db.deleteObjectStore(e))),tz(e,[e.Transaction.prototype]),tZ(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),n.schema=e._dbSchema})}),(function e(){return i.length?eI.resolve(i.shift()(n.idbtrans)).then(e):eI.resolve()})().then(()=>{var e;o(e=s).forEach(t=>{r.db.objectStoreNames.contains(t)||tX(r,t,e[t].primKey,e[t].indexes)})})})(e,t,a,n).catch(s)})}(e,a/10,c,i)}},i),l.onsuccess=eZ(()=>{c=null;let r=e._novip.idbdb=l.result,i=m(r.objectStoreNames);if(i.length>0)try{let t=r.transaction(1===i.length?i[0]:i,"readonly");n.autoSchema?function({_novip:e},t,n){e.verno=t.version/10;let r=e._dbSchema=tG(0,t,n);e._storeNames=m(t.objectStoreNames,0),tZ(e,[e._allTables],o(r),r)}(e,r,t):(tQ(e,e._dbSchema,t),function(e,t){let n=tH(tG(0,e.idbdb,t),e._dbSchema);return!(n.add.length||n.change.some(e=>e.add.length||e.change.length))}(e,t)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),tW(e,t)}catch(e){}tr.push(e),r.onversionchange=eZ(t=>{n.vcFired=!0,e.on("versionchange").fire(t)}),r.onclose=eZ(t=>{e.on("close").fire(t)}),u&&function({indexedDB:e,IDBKeyRange:t},n){t1(e)||"__dbnames"===n||t0(e,t).put({name:n}).catch(en)}(e._deps,s),t()},i)}))]).then(()=>(a(),n.onReadyBeingFired=[],eI.resolve(t2(()=>e.on.ready.fire(e.vip))).then(function t(){if(n.onReadyBeingFired.length>0){let r=n.onReadyBeingFired.reduce(el,en);return n.onReadyBeingFired=[],eI.resolve(t2(()=>r(e.vip))).then(t)}}))).finally(()=>{n.onReadyBeingFired=null,n.isBeingOpened=!1}).then(()=>e).catch(t=>{n.dbOpenError=t;try{c&&c.abort()}catch(e){}return i===n.openCanceller&&e._close(),te(t)}).finally(()=>{n.openComplete=!0,s()})}(this)}_close(){let e=this._state,t=tr.indexOf(this);if(t>=0&&tr.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this._novip.idbdb=null}e.dbReadyPromise=new eI(t=>{e.dbReadyResolve=t}),e.openCanceller=new eI((t,n)=>{e.cancelOpen=n})}close(){this._close();let e=this._state;this._options.autoOpen=!1,e.dbOpenError=new Y.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){let e=arguments.length>0,t=this._state;return new eI((n,r)=>{let i=()=>{this.close();var e=this._deps.indexedDB.deleteDatabase(this.name);e.onsuccess=eZ(()=>{!function({indexedDB:e,IDBKeyRange:t},n){t1(e)||"__dbnames"===n||t0(e,t).delete(n).catch(en)}(this._deps,this.name),n()}),e.onerror=tI(r),e.onblocked=this._fireOnBlocked};if(e)throw new Y.InvalidArgument("Arguments not allowed in db.delete()");t.isBeingOpened?t.dbReadyPromise.then(i):i()})}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){let e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return o(this._allTables).map(e=>this._allTables[e])}transaction(){let e=t5.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,t,n){let r,i,o=eA.trans;o&&o.db===this&&-1===e.indexOf("!")||(o=null);let a=-1!==e.indexOf("?");e=e.replace("!","").replace("?","");try{if(i=t.map(e=>{var t=e instanceof this.Table?e.name:e;if("string"!=typeof t)throw TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t}),"r"==e||"readonly"===e)r="readonly";else{if("rw"!=e&&"readwrite"!=e)throw new Y.InvalidArgument("Invalid transaction mode: "+e);r="readwrite"}if(o){if("readonly"===o.mode&&"readwrite"===r){if(!a)throw new Y.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");o=null}o&&i.forEach(e=>{if(o&&-1===o.storeNames.indexOf(e)){if(!a)throw new Y.SubTransaction("Table "+e+" not included in parent transaction.");o=null}}),a&&o&&!o.active&&(o=null)}}catch(e){return o?o._promise(null,(t,n)=>{n(e)}):te(e)}let s=(function e(t,n,r,i,o){return eI.resolve().then(()=>{let a,s=eA.transless||eA,c=t._createTransaction(n,r,t._dbSchema,i);if(i)c.idbtrans=i.idbtrans;else try{c.create(),t._state.PR1398_maxLoop=3}catch(i){return i.name===Q.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>e(t,n,r,null,o))):te(i)}let u=L(o);u&&eY();let l=eI.follow(()=>{if(a=o.call(c,c))if(u){var e=e0.bind(null,null);a.then(e,e)}else"function"==typeof a.next&&"function"==typeof a.throw&&(a=t8(a))},{trans:c,transless:s});return(a&&"function"==typeof a.then?eI.resolve(a).then(e=>c.active?e:te(new Y.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):l.then(()=>a)).then(e=>(i&&c._resolve(),c._completion.then(()=>e))).catch(e=>(c._reject(e),te(e)))})}).bind(null,this,r,i,o,n);return o?o._promise(r,s,"lock"):eA.trans?e3(eA.transless,()=>this._whenReady(s)):this._whenReady(s)}table(e){if(!l(this._allTables,e))throw new Y.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}let nl="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";class nf{constructor(e){this._subscribe=e}subscribe(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})}[nl](){return this}}function nh(e,t){return o(t).forEach(n=>{ni(e[n]||(e[n]=new nn),t[n])}),e}try{r={indexedDB:i.indexedDB||i.mozIndexedDB||i.webkitIndexedDB||i.msIndexedDB,IDBKeyRange:i.IDBKeyRange||i.webkitIDBKeyRange}}catch(e){r={indexedDB:null,IDBKeyRange:null}}function nd(e){let t=np;try{np=!0,tR.storagemutated.fire(e)}finally{np=t}}f(nu,{...et,delete:e=>new nu(e,{addons:[]}).delete(),exists:e=>new nu(e,{addons:[]}).open().then(e=>(e.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(e){try{return(function({indexedDB:e,IDBKeyRange:t}){return t1(e)?Promise.resolve(e.databases()).then(e=>e.map(e=>e.name).filter(e=>"__dbnames"!==e)):t0(e,t).toCollection().primaryKeys()})(nu.dependencies).then(e)}catch(e){return te(new Y.MissingAPI)}},defineClass:()=>function(e){s(this,e)},ignoreTransaction:e=>eA.trans?e3(eA.transless,e):e(),vip:t2,async:function(e){return function(){try{var t=t8(e.apply(this,arguments));return t&&"function"==typeof t.then?t:eI.resolve(t)}catch(e){return te(e)}}},spawn:function(e,t,n){try{var r=t8(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:eI.resolve(r)}catch(e){return te(e)}},currentTransaction:{get:()=>eA.trans||null},waitFor:function(e,t){let n=eI.resolve("function"==typeof e?nu.ignoreTransaction(e):e).timeout(t||6e4);return eA.trans?eA.trans.waitFor(n):n},Promise:eI,debug:{get:()=>U,set:e=>{U=e,F="dexie"===e?()=>!0:to}},derive:p,extend:s,props:f,override:g,Events:tl,on:tR,liveQuery:function(e){return new nf(t=>{let n=L(e),r=!1,i={},a={},s={get closed(){return r},unsubscribe:()=>{r=!0,tR.storagemutated.unsubscribe(f)}};t.start&&t.start(s);let c=!1,u=!1;function l(){return o(a).some(e=>i[e]&&function(e,t){let n=no(t),r=n.next();if(r.done)return!1;let i=r.value,o=no(e),a=o.next(i.from),s=a.value;for(;!r.done&&!a.done;){if(0>=tg(s.from,i.to)&&tg(s.to,i.from)>=0)return!0;0>tg(i.from,s.from)?i=(r=n.next(s.from)).value:s=(a=o.next(i.from)).value}return!1}(i[e],a[e]))}let f=e=>{nh(i,e),l()&&h()},h=()=>{if(c||r)return;i={};let o={},d=function(t){n&&eY();let r=()=>eQ(e,{subscr:t,trans:null}),i=eA.trans?e3(eA.transless,r):r();return n&&i.then(e0,e0),i}(o);u||(tR("storagemutated",f),u=!0),c=!0,Promise.resolve(d).then(e=>{c=!1,r||(l()?h():(i={},a=o,t.next&&t.next(e)))},e=>{c=!1,t.error&&t.error(e),s.unsubscribe()})};return h(),s})},extendObservabilitySet:nh,getByKeyPath:O,setByKeyPath:S,delByKeyPath:function(e,t){"string"==typeof t?S(e,t,void 0):"length"in t&&[].map.call(t,function(t){S(e,t,void 0)})},shallowClone:k,deepClone:I,getObjectDiff:t9,cmp:tg,asap:x,minKey:-1/0,addons:[],connections:tr,errnames:Q,dependencies:r,semVer:"3.2.3",version:"3.2.3".split(".").map(e=>parseInt(e)).reduce((e,t,n)=>e+t/Math.pow(10,2*n))}),nu.maxKey=tL(nu.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(tR("storagemutated",e=>{if(!np){let t;ti?(t=document.createEvent("CustomEvent")).initCustomEvent("x-storagemutated-1",!0,!0,e):t=new CustomEvent("x-storagemutated-1",{detail:e}),np=!0,dispatchEvent(t),np=!1}}),addEventListener("x-storagemutated-1",({detail:e})=>{np||nd(e)}));let np=!1;if("undefined"!=typeof BroadcastChannel){let e=new BroadcastChannel("x-storagemutated-1");"function"==typeof e.unref&&e.unref(),tR("storagemutated",t=>{np||e.postMessage(t)}),e.onmessage=e=>{e.data&&nd(e.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){tR("storagemutated",e=>{try{np||("undefined"!=typeof localStorage&&localStorage.setItem("x-storagemutated-1",JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(t=>t.postMessage({type:"x-storagemutated-1",changedParts:e})))}catch(e){}}),"undefined"!=typeof addEventListener&&addEventListener("storage",e=>{if("x-storagemutated-1"===e.key){let t=JSON.parse(e.newValue);t&&nd(t.changedParts)}});let e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",function({data:e}){e&&"x-storagemutated-1"===e.type&&nd(e.changedParts)})}eI.rejectionMapper=function(e,t){if(!e||e instanceof H||e instanceof TypeError||e instanceof SyntaxError||!e.name||!ee[e.name])return e;var n=new ee[e.name](t||e.message,e);return"stack"in e&&d(n,"stack",{get:function(){return this.inner.stack}}),n},F=to},1844:function(e,t,n){"use strict";n.d(t,{M:()=>i});let r=e=>{let t,n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,i,o);return o},i=e=>e?r(e):r},7713:function(e,t,n){"use strict";n.d(t,{Z:()=>tt});let r=function(e,t){return e===t||e!=e&&t!=t},i=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return -1};var o,a,s,c,u,l=Array.prototype.splice;function f(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}f.prototype.clear=function(){this.__data__=[],this.size=0},f.prototype.delete=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():l.call(t,n,1),--this.size,!0)},f.prototype.get=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]},f.prototype.has=function(e){return i(this.__data__,e)>-1},f.prototype.set=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var h=("undefined"==typeof global?"undefined":(o=global)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)=="object"&&global&&global.Object===Object&&global,d=("undefined"==typeof self?"undefined":(a=self)&&"undefined"!=typeof Symbol&&a.constructor===Symbol?"symbol":typeof a)=="object"&&self&&self.Object===Object&&self,p=h||d||Function("return this")(),y=p.Symbol,v=Object.prototype,b=v.hasOwnProperty,m=v.toString,g=y?y.toStringTag:void 0;let w=function(e){var t=b.call(e,g),n=e[g];try{e[g]=void 0;var r=!0}catch(e){}var i=m.call(e);return r&&(t?e[g]=n:delete e[g]),i};var x=Object.prototype.toString,E=y?y.toStringTag:void 0;let O=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":E&&E in Object(e)?w(e):x.call(e)},S=function(e){var t=void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return null!=e&&("object"==t||"function"==t)},k=function(e){if(!S(e))return!1;var t=O(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var j=p["__core-js_shared__"],A=(s=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"",P=Function.prototype.toString;let C=function(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var D=/^\[object .+?Constructor\]$/,I=Object.prototype,T=Function.prototype.toString,R=I.hasOwnProperty,N=RegExp("^"+T.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let B=function(e){return!!S(e)&&(!A||!(A in e))&&(k(e)?N:D).test(C(e))},M=function(e,t){var n=null==e?void 0:e[t];return B(n)?n:void 0};var K=M(p,"Map"),L=M(Object,"create"),U=Object.prototype.hasOwnProperty,F=Object.prototype.hasOwnProperty;function q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}q.prototype.clear=function(){this.__data__=L?L(null):{},this.size=0},q.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},q.prototype.get=function(e){var t=this.__data__;if(L){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return U.call(t,e)?t[e]:void 0},q.prototype.has=function(e){var t=this.__data__;return L?void 0!==t[e]:F.call(t,e)},q.prototype.set=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=L&&void 0===t?"__lodash_hash_undefined__":t,this};let V=function(e){var t=void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},W=function(e,t){var n=e.__data__;return V(t)?n["string"==typeof t?"string":"hash"]:n.map};function Z(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function z(e){var t=this.__data__=new f(e);this.size=t.size}function $(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Z;++t<n;)this.add(e[t])}Z.prototype.clear=function(){this.size=0,this.__data__={hash:new q,map:new(K||f),string:new q}},Z.prototype.delete=function(e){var t=W(this,e).delete(e);return this.size-=!!t,t},Z.prototype.get=function(e){return W(this,e).get(e)},Z.prototype.has=function(e){return W(this,e).has(e)},Z.prototype.set=function(e,t){var n=W(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this},z.prototype.clear=function(){this.__data__=new f,this.size=0},z.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},z.prototype.get=function(e){return this.__data__.get(e)},z.prototype.has=function(e){return this.__data__.has(e)},z.prototype.set=function(e,t){var n,r=this.__data__;if(n=r,null!=f&&"undefined"!=typeof Symbol&&f[Symbol.hasInstance]?!!f[Symbol.hasInstance](n):n instanceof f){var i=r.__data__;if(!K||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Z(i)}return r.set(e,t),this.size=r.size,this},$.prototype.add=$.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},$.prototype.has=function(e){return this.__data__.has(e)};let H=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},X=function(e,t,n,r,i,o){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(e),l=o.get(t);if(u&&l)return u==t&&l==e;var f=-1,h=!0,d=2&n?new $:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var p=e[f],y=t[f];if(r)var v=a?r(y,p,f,t,e,o):r(p,y,f,e,t,o);if(void 0!==v){if(v)continue;h=!1;break}if(d){if(!H(t,function(e,t){if(!d.has(t)&&(p===e||i(p,e,n,r,o)))return d.push(t)})){h=!1;break}}else if(!(p===y||i(p,y,n,r,o))){h=!1;break}}return o.delete(e),o.delete(t),h};var J=p.Uint8Array;let G=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n},Q=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n};var Y=y?y.prototype:void 0,ee=Y?Y.valueOf:void 0;let et=function(e,t,n,i,o,a,s){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!a(new J(e),new J(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var c=G;case"[object Set]":var u=1&i;if(c||(c=Q),e.size!=t.size&&!u)break;var l=s.get(e);if(l)return l==t;i|=2,s.set(e,t);var f=X(c(e),c(t),i,o,a,s);return s.delete(e),f;case"[object Symbol]":if(ee)return ee.call(e)==ee.call(t)}return!1},en=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e};var er=Array.isArray;let ei=function(e,t,n){var r=t(e);return er(e)?r:en(r,n(e))},eo=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o};var ea=Object.prototype.propertyIsEnumerable,es=Object.getOwnPropertySymbols,ec=es?function(e){return null==e?[]:eo(es(e=Object(e)),function(t){return ea.call(e,t)})}:function(){return[]};let eu=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},el=function(e){return null!=e&&(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"},ef=function(e){return el(e)&&"[object Arguments]"==O(e)};var eh=Object.prototype,ed=eh.hasOwnProperty,ep=eh.propertyIsEnumerable,ey=ef(function(){return arguments}())?ef:function(e){return el(e)&&ed.call(e,"callee")&&!ep.call(e,"callee")};function ev(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var eb=("undefined"==typeof exports?"undefined":ev(exports))=="object"&&exports&&!exports.nodeType&&exports,em=eb&&("undefined"==typeof module?"undefined":ev(module))=="object"&&module&&!module.nodeType&&module,eg=em&&em.exports===eb?p.Buffer:void 0;let ew=(eg?eg.isBuffer:void 0)||function(){return!1};var e_=/^(?:0|[1-9]\d*)$/;let ex=function(e,t){var n=void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==n||"symbol"!=n&&e_.test(e))&&e>-1&&e%1==0&&e<t},eE=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff};var eO={};function eS(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}eO["[object Float32Array]"]=eO["[object Float64Array]"]=eO["[object Int8Array]"]=eO["[object Int16Array]"]=eO["[object Int32Array]"]=eO["[object Uint8Array]"]=eO["[object Uint8ClampedArray]"]=eO["[object Uint16Array]"]=eO["[object Uint32Array]"]=!0,eO["[object Arguments]"]=eO["[object Array]"]=eO["[object ArrayBuffer]"]=eO["[object Boolean]"]=eO["[object DataView]"]=eO["[object Date]"]=eO["[object Error]"]=eO["[object Function]"]=eO["[object Map]"]=eO["[object Number]"]=eO["[object Object]"]=eO["[object RegExp]"]=eO["[object Set]"]=eO["[object String]"]=eO["[object WeakMap]"]=!1;var ek=("undefined"==typeof exports?"undefined":eS(exports))=="object"&&exports&&!exports.nodeType&&exports,ej=ek&&("undefined"==typeof module?"undefined":eS(module))=="object"&&module&&!module.nodeType&&module,eA=ej&&ej.exports===ek&&h.process,eP=function(){try{var e=ej&&ej.require&&ej.require("util").types;if(e)return e;return eA&&eA.binding&&eA.binding("util")}catch(e){}}(),eC=eP&&eP.isTypedArray,eD=eC?function(e){return eC(e)}:function(e){return el(e)&&eE(e.length)&&!!eO[O(e)]},eI=Object.prototype.hasOwnProperty;let eT=function(e,t){var n=er(e),r=!n&&ey(e),i=!n&&!r&&ew(e),o=!n&&!r&&!i&&eD(e),a=n||r||i||o,s=a?eu(e.length,String):[],c=s.length;for(var u in e)(t||eI.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ex(u,c)))&&s.push(u);return s};var eR=Object.prototype;let eN=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eR)};var eB=(c=Object.keys,u=Object,function(e){return c(u(e))}),eM=Object.prototype.hasOwnProperty;let eK=function(e){if(!eN(e))return eB(e);var t=[];for(var n in Object(e))eM.call(e,n)&&"constructor"!=n&&t.push(n);return t},eL=function(e){return null!=e&&eE(e.length)&&!k(e)?eT(e):eK(e)},eU=function(e){return ei(e,eL,ec)};function eF(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var eq=Object.prototype.hasOwnProperty;let eV=function(e,t,n,r,i,o){var a=1&n,s=eU(e),c=s.length;if(c!=eU(t).length&&!a)return!1;for(var u=c;u--;){var l=s[u];if(!(a?l in t:eq.call(t,l)))return!1}var f=o.get(e),h=o.get(t);if(f&&h)return f==t&&h==e;var d=!0;o.set(e,t),o.set(t,e);for(var p=a;++u<c;){var y=e[l=s[u]],v=t[l];if(r)var b=a?r(v,y,l,t,e,o):r(y,v,l,e,t,o);if(!(void 0===b?y===v||i(y,v,n,r,o):b)){d=!1;break}p||(p="constructor"==l)}if(d&&!p){var m=e.constructor,g=t.constructor;m!=g&&"constructor"in e&&"constructor"in t&&!("function"==typeof m&&eF(m,m)&&"function"==typeof g&&eF(g,g))&&(d=!1)}return o.delete(e),o.delete(t),d};var eW=M(p,"DataView"),eZ=M(p,"Promise"),ez=M(p,"Set"),e$=M(p,"WeakMap"),eH="[object Map]",eX="[object Promise]",eJ="[object Set]",eG="[object WeakMap]",eQ="[object DataView]",eY=C(eW),e0=C(K),e1=C(eZ),e2=C(ez),e8=C(e$),e5=O;(eW&&e5(new eW(new ArrayBuffer(1)))!=eQ||K&&e5(new K)!=eH||eZ&&e5(eZ.resolve())!=eX||ez&&e5(new ez)!=eJ||e$&&e5(new e$)!=eG)&&(e5=function(e){var t=O(e),n="[object Object]"==t?e.constructor:void 0,r=n?C(n):"";if(r)switch(r){case eY:return eQ;case e0:return eH;case e1:return eX;case e2:return eJ;case e8:return eG}return t});let e6=e5;var e3="[object Arguments]",e9="[object Array]",e7="[object Object]",e4=Object.prototype.hasOwnProperty;let te=function(e,t,n,r,i,o){var a=er(e),s=er(t),c=a?e9:e6(e),u=s?e9:e6(t);c=c==e3?e7:c,u=u==e3?e7:u;var l=c==e7,f=u==e7,h=c==u;if(h&&ew(e)){if(!ew(t))return!1;a=!0,l=!1}if(h&&!l)return o||(o=new z),a||eD(e)?X(e,t,n,r,i,o):et(e,t,c,n,r,i,o);if(!(1&n)){var d=l&&e4.call(e,"__wrapped__"),p=f&&e4.call(t,"__wrapped__");if(d||p){var y=d?e.value():e,v=p?t.value():t;return o||(o=new z),i(y,v,n,r,o)}}return!!h&&(o||(o=new z),eV(e,t,n,r,i,o))},tt=function(e,t){return function e(t,n,r,i,o){return t===n||(null!=t&&null!=n&&(el(t)||el(n))?te(t,n,r,i,e,o):t!=t&&n!=n)}(e,t)}},3033:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=function(e){return void 0===e}},1030:function(e,t,n){"use strict";n.d(t,{Z:()=>o});var r=n(876),i=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var n=this.hash(e),r=this.map[n];r||(this.map[n]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var n in e)t.push(Object.prototype.toString.call(e[n]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(var t in this.map)for(var n=this.map[t],r=0;r<n.length;r+=1){var i=n[r];if(i[0]===e)return i[1]}return}var o=this.hash(e),n=this.map[o];if(n)for(var r=0;r<n.length;r+=1){var i=n[r];if(i[0]===e)return i[1]}},e}();let o=(0,n(1085).Z)(function(e){return null!=e&&"function"==typeof e.clone?e.clone():function e(t,n,o){if(o||(o=new i),function(e){var t=void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return null==e||"object"!=t&&"function"!=t}(t))return t;var a=function(r){var i=o.get(t);if(i)return i;for(var a in o.set(t,r),t)Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=n?e(t[a],!0,o):t[a]);return r};switch((0,r.Z)(t)){case"Object":return a(Object.create(Object.getPrototypeOf(t)));case"Array":return a(Array(t.length));case"Date":return new Date(t.valueOf());case"RegExp":return new RegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}(e,!0)})},2483:function(e,t,n){"use strict";n.d(t,{Z:()=>w});var r=n(8823);function i(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function o(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}var a=n(87);let s="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var c=n(1085),u=Object.prototype.toString,l=function(){return"[object Arguments]"===u.call(arguments)?function(e){return"[object Arguments]"===u.call(e)}:function(e){return(0,a.Z)("callee",e)}}(),f=!({toString:null}).propertyIsEnumerable("toString"),h=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],d=function(){return arguments.propertyIsEnumerable("length")}(),p=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},y="function"!=typeof Object.keys||d?(0,c.Z)(function(e){if(Object(e)!==e)return[];var t,n,r=[],i=d&&l(e);for(t in e)(0,a.Z)(t,e)&&(!i||"length"!==t)&&(r[r.length]=t);if(f)for(n=h.length-1;n>=0;)t=h[n],(0,a.Z)(t,e)&&!p(r,t)&&(r[r.length]=t),n-=1;return r}):(0,c.Z)(function(e){return Object(e)!==e?[]:Object.keys(e)}),v=n(876);function b(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function m(e,t,n,r){var a=i(e);function s(e,t){return g(e,t,n.slice(),r.slice())}return!o(function(e,t){return!o(s,t,e)},i(t),a)}function g(e,t,n,r){if(s(e,t))return!0;var i,o=(0,v.Z)(e);if(o!==(0,v.Z)(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(null==(i=String(e.constructor).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(!((void 0===e?"undefined":b(e))===(void 0===t?"undefined":b(t))&&s(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!s(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var c=n.length-1;c>=0;){if(n[c]===e)return r[c]===t;c-=1}switch(o){case"Map":if(e.size!==t.size)return!1;return m(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":if(e.size!==t.size)return!1;return m(e.values(),t.values(),n.concat([e]),r.concat([t]));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 u=y(e);if(u.length!==y(t).length)return!1;var l=n.concat([e]),f=r.concat([t]);for(c=u.length-1;c>=0;){var h=u[c];if(!((0,a.Z)(h,t)&&g(t[h],e[h],l,f)))return!1;c-=1}return!0}let w=(0,r.Z)(function(e,t){return g(e,t,[],[])})},1085:function(e,t,n){"use strict";n.d(t,{Z:()=>i});var r=n(6563);function i(e){return function t(n){return 0==arguments.length||(0,r.Z)(n)?t:e.apply(this,arguments)}}},8823:function(e,t,n){"use strict";n.d(t,{Z:()=>o});var r=n(1085),i=n(6563);function o(e){return function t(n,o){switch(arguments.length){case 0:return t;case 1:return(0,i.Z)(n)?t:(0,r.Z)(function(t){return e(n,t)});default:return(0,i.Z)(n)&&(0,i.Z)(o)?t:(0,i.Z)(n)?(0,r.Z)(function(t){return e(t,o)}):(0,i.Z)(o)?(0,r.Z)(function(t){return e(n,t)}):e(n,o)}}}},2377:function(e,t,n){"use strict";n.d(t,{Z:()=>a});var r=n(1085),i=n(8823),o=n(6563);function a(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return(0,o.Z)(n)?t:(0,i.Z)(function(t,r){return e(n,t,r)});case 2:return(0,o.Z)(n)&&(0,o.Z)(a)?t:(0,o.Z)(n)?(0,i.Z)(function(t,n){return e(t,a,n)}):(0,o.Z)(a)?(0,i.Z)(function(t,r){return e(n,t,r)}):(0,r.Z)(function(t){return e(n,a,t)});default:return(0,o.Z)(n)&&(0,o.Z)(a)&&(0,o.Z)(s)?t:(0,o.Z)(n)&&(0,o.Z)(a)?(0,i.Z)(function(t,n){return e(t,n,s)}):(0,o.Z)(n)&&(0,o.Z)(s)?(0,i.Z)(function(t,n){return e(t,a,n)}):(0,o.Z)(a)&&(0,o.Z)(s)?(0,i.Z)(function(t,r){return e(n,t,r)}):(0,o.Z)(n)?(0,r.Z)(function(t){return e(t,a,s)}):(0,o.Z)(a)?(0,r.Z)(function(t){return e(n,t,s)}):(0,o.Z)(s)?(0,r.Z)(function(t){return e(n,a,t)}):e(n,a,s)}}}},87:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(t,e)}n.d(t,{Z:()=>r})},6563:function(e,t,n){"use strict";function r(e){return null!=e&&(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&!0===e["@@functional/placeholder"]}n.d(t,{Z:()=>r})},6291:function(e,t,n){"use strict";n.d(t,{Z:()=>u});var r=n(8823),i=n(2377);function o(e){return"[object Object]"===Object.prototype.toString.call(e)}var a=n(87),s=(0,i.Z)(function(e,t,n){var r,i={};for(r in n=n||{},t=t||{})(0,a.Z)(r,t)&&(i[r]=(0,a.Z)(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)(0,a.Z)(r,n)&&!(0,a.Z)(r,i)&&(i[r]=n[r]);return i}),c=(0,i.Z)(function e(t,n,r){return s(function(n,r,i){return o(r)&&o(i)?e(t,r,i):t(n,r,i)},n,r)});let u=(0,r.Z)(function(e,t){return c(function(e,t,n){return n},e,t)})},3644:function(e,t,n){"use strict";n.d(t,{Z:()=>p});var r,i,o,a=n(2377),s=n(1085);let c=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};var u=(0,s.Z)(function(e){return!!c(e)||!!e&&(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&"[object String]"!==Object.prototype.toString.call(e)&&(0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}),l="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",f=(0,n(8823).Z)(function(e,t){var n=e.length,r=function(){return e.apply(t,arguments)};switch(n){case 0:return function(){return r.apply(this,arguments)};case 1:return function(e){return r.apply(this,arguments)};case 2:return function(e,t){return r.apply(this,arguments)};case 3:return function(e,t,n){return r.apply(this,arguments)};case 4:return function(e,t,n,i){return r.apply(this,arguments)};case 5:return function(e,t,n,i,o){return r.apply(this,arguments)};case 6:return function(e,t,n,i,o,a){return r.apply(this,arguments)};case 7:return function(e,t,n,i,o,a,s){return r.apply(this,arguments)};case 8:return function(e,t,n,i,o,a,s,c){return r.apply(this,arguments)};case 9:return function(e,t,n,i,o,a,s,c,u){return r.apply(this,arguments)};case 10:return function(e,t,n,i,o,a,s,c,u,l){return r.apply(this,arguments)};default:throw Error("First argument to _arity must be a non-negative integer no greater than ten")}}),h=(r=function(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)},i=function(e,t,n,r){return e["@@transducer/result"](n[r](f(e["@@transducer/step"],e),t))},o=function(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)},function(e,t,n){if(u(n))return r(e,t,n);if(null==n)return t;if("function"==typeof n["fantasy-land/reduce"])return i(e,t,n,"fantasy-land/reduce");if(null!=n[l])return o(e,t,n[l]());if("function"==typeof n.next)return o(e,t,n);if("function"==typeof n.reduce)return i(e,t,n,"reduce");throw TypeError("reduce: list must be array or iterable")}),d=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();let p=(0,a.Z)(function(e,t,n){return h("function"==typeof e?new d(e):e,t,n)})},876:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=(0,n(1085).Z)(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)})},6914:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(4295),i=n(810),o=e([i]);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}i=(o.then?(await o)():o)[0];var d=function(e){var t=i.Component;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");p.prototype=Object.create(t&&t.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),t&&f(p,t);var n,o,a,d=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=l(p);if(n){var r=l(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);var i=e;if(i&&("object"==(void 0===i?"undefined":i&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)||"function"==typeof i))return i;if(void 0!==i)throw TypeError("Derived constructors may only return object or undefined");return h(this)});function p(e){var t;if(function(e,t){if(null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!t[Symbol.hasInstance](e):!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,p),u(h(t=d.call(this,e)),"handleRef",function(e){t.el=e}),u(h(t),"addThingToDo",function(e,n){t.state.hasError&&"unmount"!==e||(t.nextThingToDo=(t.nextThingToDo||Promise.resolve()).then(function(){if(!t.unmounted||"unmount"===e)return n.apply(void 0,arguments)}).catch(function(n){throw t.nextThingToDo=Promise.resolve(),t.setState({hasError:!0}),n&&n.message&&(n.message="During '".concat(e,"', parcel threw an error: ").concat(n.message)),t.props.handleError?t.props.handleError(n):setTimeout(function(){throw n}),n}))}),u(h(t),"getParcelProps",function(){var e=s(s({},t.props),{},{domElement:t.el});return delete e.mountParcel,delete e.config,delete e.wrapWith,delete e.wrapStyle,delete e.appendTo,delete e.handleError,delete e.parcelDidMount,e}),t.state={hasError:!1},!e.config)throw Error("single-spa-react's Parcel component requires the 'config' prop to either be a parcel config or a loading function that returns a promise. See https://github.com/single-spa/single-spa-react");return t}return o=[{key:"componentDidMount",value:function(){var e=this;this.unmounted=!1,this.addThingToDo("mount",function(){var t,n=e.props.mountParcel||e.mountParcel;if(!n)throw Error("\n <Parcel /> was not passed a mountParcel prop, nor is it rendered where mountParcel is within the React context.\n If you are using <Parcel /> within a module that is not a single-spa application, you will need to import mountRootParcel from single-spa and pass it into <Parcel /> as a mountParcel prop \n ");return e.el?t=e.el:(e.createdDomElement=t=document.createElement(e.props.wrapWith),Object.keys(e.props.wrapStyle).forEach(function(n){t.style[n]=e.props.wrapStyle[n]}),e.props.appendTo.appendChild(t)),e.parcel=n(e.props.config,s({domElement:t},e.getParcelProps())),e.parcel.mountPromise.then(e.props.parcelDidMount),e.parcel.mountPromise})}},{key:"componentDidUpdate",value:function(){var e=this;this.addThingToDo("update",function(){if(e.parcel&&e.parcel.update)return e.parcel.update(e.getParcelProps())})}},{key:"componentWillUnmount",value:function(){var e=this;this.addThingToDo("unmount",function(){if(e.parcel&&"MOUNTED"===e.parcel.getStatus())return e.parcel.unmount()}),this.createdDomElement&&this.createdDomElement.parentNode.removeChild(this.createdDomElement),this.unmounted=!0}},{key:"render",value:function(){var e=this;if(this.props.appendTo)return r.a&&r.a.Consumer?i.createElement(r.a.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):null;var t=r.a&&r.a.Consumer?i.createElement(r.a.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):void 0;return i.createElement(this.props.wrapWith,{ref:this.handleRef,style:this.props.wrapStyle,className:this.props.wrapClassName},t)}}],c(p.prototype,o),a&&c(p,a),p}();u(d,"defaultProps",{wrapWith:"div",wrapStyle:{},parcelDidMount:function(){}}),t()}catch(e){t(e)}})},4295:function(e,t,n){"use strict";n.d(t,{a:()=>r});var r=null;try{r=require("react").createContext()}catch(e){}},8815:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Qf:()=>u,y9:()=>l}),n(1525);var i=n(5),o=n(3033),a=n(8999),s=n(5310),c=e([a,s,i]);[a,s,i]=c.then?(await c)():c;var u=(0,i.jk)("session",{loaded:!1,session:null});function l(e,t){var n,r;if(void 0===t)return!!e;if(!e)return!0;return n=e,r=t,("string"==typeof n?!(0,o.Z)(r.privileges.find(function(e){return n===e.display})):Array.isArray(n)?n.every(function(e){return!(0,o.Z)(r.privileges.find(function(t){return e===t.display}))}):((0,o.Z)(n)||console.error('Could not understand privileges "'.concat(n,'"')),!0))||!(0,o.Z)(t.roles.find(function(e){return"System Developer"===e.display}))}u.subscribe(function(e){var t,n,r,i,o;e.loaded&&e.session&&((o=null!=(i=null==(r=(t=e.session).user)||null==(n=r.userProperties)?void 0:n.defaultLocale)?i:t.locale)&&o.includes("_")&&(o=o.replaceAll("_","-")),function(e){if(void 0===e||"string"!=typeof e)return!1;try{new Intl.Locale(e)}catch(e){return!1}return!0}(o)&&o!==document.documentElement.getAttribute("lang")&&document.documentElement.setAttribute("lang",o))}),r()}catch(e){r(e)}})},6997:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Qf:()=>i.Qf,y9:()=>i.y9});var i=n(8815),o=n(5310),a=n(219),s=e([i,o,a]);[i,o,a]=s.then?(await s)():s,r()}catch(e){r(e)}})},5310:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(8999),i=n(1950),o=n(2189),a=e([r,i,o]);function s(e,t,n){return(s=f()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&u(i,n.prototype),i}).apply(null,arguments)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t="function"==typeof Map?new Map:void 0;return(l=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return s(e,arguments,c(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,e)})(e)}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}[r,i,o]=a.then?(await a)():a,l(Error),t()}catch(e){t(e)}})},208:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(8815),i=n(5310),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},219:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(1950),i=n(8815),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},1950:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{$w:()=>o.$w,Dy:()=>s.D,Gr:()=>o.Gr,R2:()=>o.R2,_z:()=>o._z,sR:()=>o.sR,z2:()=>a.z2});var i=n(2396),o=n(8280),a=n(8502),s=n(1335),c=e([i,o]);[i,o]=c.then?(await c)():c,r()}catch(e){r(e)}})},2396:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(2483),i=n(1030),o=n(3644),a=n(6291),s=n(1335),c=n(6376),u=n(3590),l=n(8280),f=e([l]);function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){d(e,t,n[t])})}return e}function y(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}(e,t)||g(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function g(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}}l=(f.then?(await f)():f)[0],x(l.hv.getState(),l.DK.getState()),l.hv.subscribe(function(e){return x(e,l.DK.getState())}),l.DK.subscribe(function(e){return x(l.hv.getState(),e)}),O(l.hv.getState(),l.DK.getState()),l.hv.subscribe(function(e){return O(e,l.DK.getState())}),l.DK.subscribe(function(e){return O(l.hv.getState(),e)}),E(l.hv.getState(),l.DK.getState()),l.hv.subscribe(function(e){return E(e,l.DK.getState())}),l.DK.subscribe(function(e){return E(l.hv.getState(),e)}),S(l.hv.getState(),l.R2.getState(),l.DK.getState()),l.hv.subscribe(function(e){S(e,l.R2.getState(),l.DK.getState())}),l.R2.subscribe(function(e){S(l.hv.getState(),e,l.DK.getState())}),l.DK.subscribe(function(e){S(l.hv.getState(),l.R2.getState(),e)});var w=new Set;function x(e,t){var n=!0,r=!1,i=void 0;try{for(var o,a=Object.keys(e.schemas)[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,c=(0,l.pR)(s);if(e.moduleLoaded[s]){var u=function(e,t,n){var r=t.schemas[e],i=j(e,k(t,n));P(r,i,e);var o=T(r,i);return C(r,o,e),delete o.extensionSlots,o}(s,e,t);c.setState({translationOverridesLoaded:!0,loaded:!0,config:u})}else{var f=function(e,t,n){var r=j(e,k(t,n)),i=T(K,r);return C(K,i,e),delete i.extensionSlots,i}(s,e,t);c.setState({translationOverridesLoaded:!0,loaded:!1,config:f})}}}catch(e){r=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}}function E(e,t){var n,i,o,a,s=(n=e,i=t,o=A(k(n,i)),a=Object.keys(o).reduce(function(e,t){var n,r;return(null==(n=o[t])?void 0:n.extensionSlots)&&(e[t]=null==(r=o[t])?void 0:r.extensionSlots),e},{}),function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=Object.entries(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=v(i.value,2),s=a[0],c=a[1],u=!0,l=!1,f=void 0;try{for(var h,d=Object.entries(c)[Symbol.iterator]();!(u=(h=d.next()).done);u=!0){var p=v(h.value,2),y=p[0],b=p[1];!function(e,t,n){var r="".concat(t,".extensionSlots.").concat(n),i="Extension slot config '".concat(r,"'"),o=Object.keys(e).filter(function(e){return!["add","remove","order","configure"].includes(e)});o.length&&B(r,i+"' contains invalid keys '".concat(o.join("', '"),"'")),!e.add||Array.isArray(e.add)&&e.add.every(function(e){return"string"==typeof e})||B(r,i+".add' is invalid. Must be an array of strings (extension IDs)"),!e.remove||Array.isArray(e.remove)&&e.remove.every(function(e){return"string"==typeof e})||B(r,i+".remove' is invalid. Must be an array of strings (extension IDs)"),!e.order||Array.isArray(e.order)&&e.order.every(function(e){return"string"==typeof e})||B(r,i+".order' is invalid. Must be an array of strings (extension IDs)"),e.configure&&!N(e.configure)&&B(r,i+".configure' is invalid. Must be an object with extension IDs for keys")}(b,s,y)}}catch(e){l=!0,f=e}finally{try{u||null==d.return||d.return()}finally{if(l)throw f}}}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}}(a),Object.keys(a).reduce(function(e,t){return e=p({},e,a[t])},{})),c=Object.fromEntries(Object.entries(s).map(function(e){var t=v(e,2),n=t[0],r=t[1];return[n,{loaded:!0,config:r}]})),u=(0,l.Gr)(),f=u.getState(),h={slots:p({},f.slots,c)};(0,r.Z)(f,h)||u.setState(h)}function O(e,t){var n=function(e,t){var n=function e(t){return t.hasOwnProperty("_default")?y(p({},t),{_value:t._default,_source:"default"}):N(t)?Object.keys(t).reduce(function(n,r){return n[r]=e(t[r]),n},{}):{}}((0,i.Z)(e.schemas)),r=b(e.providedConfigs.map(function(e){return[e.config,e.source]})).concat([[t.config,"temporary config"]]),o=!0,a=!1,s=void 0;try{for(var c,u=r[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var l=v(c.value,2),f=l[0],h=l[1];n=A([n,function e(t,n){return N(t)?Object.keys(t).reduce(function(r,i){return r[i]=e(t[i],n),r},{}):{_value:t,_source:n}}(f,h)])}}catch(e){a=!0,s=e}finally{try{o||null==u.return||u.return()}finally{if(a)throw s}}return n}(e,t);l.HN.setState({config:n})}function S(e,t,n){var r={},i=!0,o=!1,a=void 0;try{for(var s,c=t.mountedExtensions[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){var u=s.value,f=function(e,t,n,r,i,o){var a,s,c,u,l,f=(a=r,v(a.split("#"),1)[0]),h=i.schemas[f],d=h?f:t,p=k(i,o),y=j(e,p),b=null!=(l=null==y||null==(u=y.extensionSlots)||null==(c=u[n])||null==(s=c.configure)?void 0:s[r])?l:{},m=j(d,p),g=A([m,b]),w=null!=h?h:i.schemas[t];P(w,g,d);var x=T(w,g);return C(w,x,d),delete x.extensionSlots,x}(u.slotModuleName,u.extensionModuleName,u.slotName,u.extensionId,e,n);r[u.slotName]=y(p({},r[u.slotName]),d({},u.extensionId,{config:f,loaded:!0}))}}catch(e){o=!0,a=e}finally{try{i||null==c.return||c.return()}finally{if(o)throw a}}(0,l._z)().setState({configs:r})}function k(e,t){return b(e.providedConfigs.map(function(e){return e.config})).concat([t.config])}function j(e,t){var n=t.map(function(t){return t[e]}).filter(function(e){return!!e});return A(n)}function A(e){return(0,o.Z)(a.Z)({},e)}function P(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!0,i=!1,o=void 0;try{for(var a,c=Object.keys(t)[Symbol.iterator]();!(r=(a=c.next()).done);r=!0){var u=a.value,l=t[u],f=n+"."+u,h=e[u];if(!e.hasOwnProperty(u)){("extensionSlots"!==u||""===n)&&B(f,"Unknown config key '".concat(f,"' provided. Ignoring."));continue}(function e(t,n,r){D(r,t._type,n),N(n)?t._type===s.D.Object?function(t,n,r){if(t._elements){var i=!0,o=!1,a=void 0;try{for(var s,c=Object.keys(n)[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){var u=s.value,l=n[u];e(t._elements,l,"".concat(r,".").concat(u))}}catch(e){o=!0,a=e}finally{try{i||null==c.return||c.return()}finally{if(o)throw a}}}}(t,n,r):t.hasOwnProperty("_default")||t.hasOwnProperty("_type")||P(t,n,r):t._type===s.D.Array&&function(t,n,r){var i;if(D(r,s.D.Array,n)){if(R(t._elements))for(var o=0;o<n.length;o++)e(t._elements,n[o],"".concat(r,"[").concat(o,"]"));for(var a=0;a<n.length;a++)D("".concat(r,"[").concat(a,"]"),null==(i=t._elements)?void 0:i._type,n[a])}}(t,n,r)})(h,l,f)}}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}}function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(e){if(t!==e._default&&I(n,e._validators,t),N(t)){var r=!0,i=!1,o=void 0;try{for(var a,c=Object.keys(t)[Symbol.iterator]();!(r=(a=c.next()).done);r=!0){var u=a.value,l=t[u],f=n+"."+u,h=e[u];e._type===s.D.Object&&e._elements?C(e._elements,l,f):C(h,l,f)}}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}}else if(Array.isArray(t)&&e._elements)for(var d=0;d<t.length;d++)C(e._elements,t[d],"".concat(n,"[").concat(d,"]"))}}function D(e,t,n){if(t){var r={Array:c.kJ,Boolean:c.jn,ConceptUuid:c.K8,Number:c.hj,Object:c.Kn,String:c.HD,UUID:c.K8,PersonAttributeTypeUuid:c.K8,PatientIdentifierTypeUuid:c.K8};return I(e,[r[t]],n)}return!0}function I(e,t,n){var r=!0;if(t)try{var i=!0,o=!1,a=void 0;try{for(var s,c=t[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){var u=(0,s.value)(n);if("string"==typeof u){var l=(void 0===n?"undefined":m(n))==="object"?"Invalid configuration for ".concat(e,": ").concat(u):"Invalid configuration value ".concat(n," for ").concat(e,": ").concat(u);B(e,l),r=!1}}}catch(e){o=!0,a=e}finally{try{i||null==c.return||c.return()}finally{if(o)throw a}}}catch(t){console.error('Skipping invalid validator at "'.concat(e,'". Encountered error\n ').concat(t))}return r}var T=function(e,t){var n=(0,i.Z)(t);if(!e)return n;var r=!0,o=!1,a=void 0;try{for(var c,u=Object.keys(e)[Symbol.iterator]();!(r=(c=u.next()).done);r=!0)!function(){var t=c.value,r=n[t],i=e[t];if(i&&(i.hasOwnProperty("_type")||i.hasOwnProperty("_default"))){n.hasOwnProperty(t)||(n[t]=i._default);var o=i._elements;if(r&&R(o)){if(i._type===s.D.Array&&Array.isArray(r)){var a=r.map(function(e){return T(o,e)});n[t]=a}else if(i._type===s.D.Object){var u=!0,l=!1,f=void 0;try{for(var h,d=Object.keys(r)[Symbol.iterator]();!(u=(h=d.next()).done);u=!0){var p=h.value;r[p]=T(o,r[p])}}catch(e){l=!0,f=e}finally{try{u||null==d.return||d.return()}finally{if(l)throw f}}}}}else if(N(i)){var y=null!=r?r:{};N(y)&&(n[t]=T(i,y))}}()}catch(e){o=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}return n};function R(e){return!!e&&Object.keys(e).filter(function(e){return!["_default","_validators"].includes(e)}).length>0}function N(e){return(void 0===e?"undefined":m(e))==="object"&&!Array.isArray(e)&&null!==e}function B(e,t){var n="".concat(e,":::").concat(t);w||(w=new Set),w.has(n)||(console.error(t),w.add(n))}var M={"Translation overrides":{_description:"Per-language overrides for frontend translations should be keyed by language code and each language dictionary contains the translation key and the display value",_type:s.D.Object,_default:{},_validators:[(0,u.s)(function(e){return Object.keys(e).every(function(e){return/^[a-z]{2,3}(-[A-Z]{2,3})?$/.test(e)})},function(e){var t=Object.keys(e).filter(function(e){return!/^[a-z]{2,3}(-[A-Z]{2,3})?$/.test(e)});return"The 'Translation overrides' object should have language codes for keys. Language codes must be in the form of a two-to-three letter language code optionally followed by a hyphen and a two-to-three letter country code. The following keys do not conform: ".concat(t.join(", "),".")})]}},K=p({"Display conditions":{privileges:{_description:"The privilege(s) the user must have to use this extension",_type:s.D.Array,_default:[]}}},M);t()}catch(e){t(e)}})},8280:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{$w:()=>f,DK:()=>s,Gr:()=>l,HN:()=>p,R2:()=>c,_z:()=>h,hv:()=>a,pR:()=>u,sR:()=>d});var i=n(5),o=e([i]);i=(o.then?(await o)():o)[0];var a=(0,i.jk)("config-internal",{providedConfigs:[],schemas:{},moduleLoaded:{}}),s=(0,i.jk)("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(e){return{}}}()});s.subscribe(function(e){var t;t=e.config,localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(t))});var c=(0,i.jk)("config-store-of-extension-state",{mountedExtensions:[]});function u(e){return(0,i.zJ)("config-module-".concat(e),{config:null,loaded:!1,translationOverridesLoaded:!1})}function l(){return(0,i.zJ)("config-extension-slots",{slots:{}})}function f(e,t){var n=e.slots[t];return null!=n?n:{loaded:!1,config:{}}}function h(){return(0,i.zJ)("config-extensions",{configs:{}})}function d(e,t,n){var r,i=null==(r=e.configs[t])?void 0:r[n];return null!=i?i:{loaded:!1,config:null}}var p=(0,i.jk)("config-implementer-tools",{config:{}});r()}catch(e){r(e)}})},3009:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(8502);var r=n(2396),i=n(8280),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},1335:function(e,t,n){"use strict";n.d(t,{D:()=>i});var r,i=((r={}).Array="Array",r.Boolean="Boolean",r.ConceptUuid="ConceptUuid",r.Number="Number",r.Object="Object",r.String="String",r.UUID="UUID",r.PersonAttributeTypeUuid="PersonAttributeTypeUuid",r.PatientIdentifierTypeUuid="PatientIdentifierTypeUuid",r)},6376:function(e,t,n){"use strict";n.d(t,{HD:()=>s,K8:()=>u,Kn:()=>c,hj:()=>a,jn:()=>o,kJ:()=>i});var r=n(3590),i=(0,r.s)(function(e){return Array.isArray(e)},"must be an array"),o=(0,r.s)(function(e){return"boolean"==typeof e},"must be a boolean"),a=(0,r.s)(function(e){return"number"==typeof e},"must be a number"),s=(0,r.s)(function(e){return"string"==typeof e},"must be a string"),c=(0,r.s)(function(e){return(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&!Array.isArray(e)&&null!==e},"must be an object (not an array or null)"),u=(0,r.s)(function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)||/^[0-9a-f]{36}$/i.test(e)},"must be a valid UUID or a 36-character hexadecimal string")},3590:function(e,t,n){"use strict";function r(e,t){return function(n){if(!e(n))if("function"==typeof t)return t(n);else return t}}n.d(t,{s:()=>r})},8502:function(e,t,n){"use strict";n.d(t,{z2:()=>o});var r=n(3590),i=function(e){var t=e.concat(["openmrsBase","openmrsSpaBase"]);return(0,r.s)(function(e){if(!e||"string"!=typeof e)return!1;for(var n=/\${(.*?)}/g,r=n.exec(e);r;){if(!t.includes(r[1]))return!1;r=n.exec(e)}return!0},"Should be a URL or path. The allowed template parameters are "+t.map(function(e){return"${"+e+"}"}).join(", "))},o={inRange:function(e,t){return(0,r.s)(function(n){return e<=n&&n<=t},"must be between ".concat(e," and ").concat(t))},isUrl:i([]),isUrlWithTemplateParameters:i,oneOf:function(e){return(0,r.s)(function(t){return e.includes(t)},"Must be one of the following: '".concat(e.join("', '"),"'."))}}},9284:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},7960:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=n(2295),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},5376:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9284),i=n(7960),o=n(8678),a=n(4750),s=n(9882),c=e([r,i,o,a,s]);[r,i,o,a,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},8678:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},6211:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9284),i=n(7960),o=n(9882),a=n(4750),s=n(8678),c=e([r,i,o,a,s]);[r,i,o,a,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},4750:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},9882:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=n(5),o=n(8999),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a;var s=function(){try{return JSON.parse(sessionStorage.getItem("openmrs:visitStoreState")||"null")}catch(e){return null}}()||{patientUuid:null,manuallySetVisitUuid:null,mutateVisitCallbacks:{}};(0,i.zJ)("visit",s).subscribe(function(e){var t;t=e,sessionStorage.setItem("openmrs:visitStoreState",JSON.stringify(t))}),new o.BehaviorSubject(null),t()}catch(e){t(e)}})},1525:function(e,t,n){"use strict";var r=n(8795);window.onerror=function(e){return console.error("Unexpected error: ",e),(0,r.dO)({description:null!=e?e:"Oops! An unexpected error occurred.",kind:"error",title:"Error"}),!1},window.onunhandledrejection=function(e){var t;console.error("Unhandled rejection: ",e.reason),(0,r.dO)({description:null!=(t=e.reason)?t:"Oops! An unhandled promise rejection occurred.",kind:"error",title:"Error"})}},5623:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}n.d(t,{po:()=>k});var s,c,u=function(){function e(){i(this,e)}return a(e,[{key:"add",value:function(e,t,n){if("string"!=typeof arguments[0])for(var r in arguments[0])this.add(r,arguments[0][r],arguments[1]);else(Array.isArray(e)?e:[e]).forEach(function(e){this[e]=this[e]||[],t&&this[e][n?"unshift":"push"](t)},this)}},{key:"run",value:function(e,t){this[e]=this[e]||[],this[e].forEach(function(e){e.call(t&&t.context?t.context:t,t)})}}]),e}(),l=function(){function e(t){i(this,e),this.jsep=t,this.registered={}}return a(e,[{key:"register",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach(function(t){if((void 0===t?"undefined":t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)!="object"||!t.name||!t.init)throw Error("Invalid JSEP plugin format");e.registered[t.name]||(t.init(e.jsep),e.registered[t.name]=t)})}}]),e}(),f=function(){function e(t){i(this,e),this.expr=t,this.index=0}return a(e,[{key:"char",get:function(){return this.expr.charAt(this.index)}},{key:"code",get:function(){return this.expr.charCodeAt(this.index)}},{key:"throwError",value:function(e){var t=Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}},{key:"runHook",value:function(t,n){if(e.hooks[t]){var r={context:this,node:n};return e.hooks.run(t,r),r.node}return n}},{key:"searchHook",value:function(t){if(e.hooks[t]){var n={context:this};return e.hooks[t].find(function(e){return e.call(n.context,n),n.node}),n.node}}},{key:"gobbleSpaces",value:function(){for(var t=this.code;t===e.SPACE_CODE||t===e.TAB_CODE||t===e.LF_CODE||t===e.CR_CODE;)t=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}},{key:"parse",value:function(){this.runHook("before-all");var t=this.gobbleExpressions(),n=1===t.length?t[0]:{type:e.COMPOUND,body:t};return this.runHook("after-all",n)}},{key:"gobbleExpressions",value:function(t){for(var n,r,i=[];this.index<this.expr.length;)if((n=this.code)===e.SEMCOL_CODE||n===e.COMMA_CODE)this.index++;else if(r=this.gobbleExpression())i.push(r);else if(this.index<this.expr.length){if(n===t)break;this.throwError('Unexpected "'+this.char+'"')}return i}},{key:"gobbleExpression",value:function(){var e=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",e)}},{key:"gobbleBinaryOp",value:function(){this.gobbleSpaces();for(var t=this.expr.substr(this.index,e.max_binop_len),n=t.length;n>0;){if(e.binary_ops.hasOwnProperty(t)&&(!e.isIdentifierStart(this.code)||this.index+t.length<this.expr.length&&!e.isIdentifierPart(this.expr.charCodeAt(this.index+t.length))))return this.index+=n,t;t=t.substr(0,--n)}return!1}},{key:"gobbleBinaryExpression",value:function(){var t,n,r,i,o,a,s,c,u,l;if(!(a=this.gobbleToken())||!(n=this.gobbleBinaryOp()))return a;for(o={value:n,prec:e.binaryPrecedence(n),right_a:e.right_associative.has(n)},(s=this.gobbleToken())||this.throwError("Expected expression after "+n),i=[a,o,s];n=this.gobbleBinaryOp();){if(0===(r=e.binaryPrecedence(n))){this.index-=n.length;break}for(o={value:n,prec:r,right_a:e.right_associative.has(n)},u=n;i.length>2&&(l=i[i.length-2],o.right_a&&l.right_a?r>l.prec:r<=l.prec);)s=i.pop(),n=i.pop().value,a=i.pop(),t={type:e.BINARY_EXP,operator:n,left:a,right:s},i.push(t);(t=this.gobbleToken())||this.throwError("Expected expression after "+u),i.push(o,t)}for(c=i.length-1,t=i[c];c>1;)t={type:e.BINARY_EXP,operator:i[c-1].value,left:i[c-2],right:t},c-=2;return t}},{key:"gobbleToken",value:function(){var t,n,r,i;if(this.gobbleSpaces(),i=this.searchHook("gobble-token"))return this.runHook("after-token",i);if(t=this.code,e.isDecimalDigit(t)||t===e.PERIOD_CODE)return this.gobbleNumericLiteral();if(t===e.SQUOTE_CODE||t===e.DQUOTE_CODE)i=this.gobbleStringLiteral();else if(t===e.OBRACK_CODE)i=this.gobbleArray();else{for(r=(n=this.expr.substr(this.index,e.max_unop_len)).length;r>0;){if(e.unary_ops.hasOwnProperty(n)&&(!e.isIdentifierStart(this.code)||this.index+n.length<this.expr.length&&!e.isIdentifierPart(this.expr.charCodeAt(this.index+n.length)))){this.index+=r;var o=this.gobbleToken();return o||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:e.UNARY_EXP,operator:n,argument:o,prefix:!0})}n=n.substr(0,--r)}e.isIdentifierStart(t)?(i=this.gobbleIdentifier(),e.literals.hasOwnProperty(i.name)?i={type:e.LITERAL,value:e.literals[i.name],raw:i.name}:i.name===e.this_str&&(i={type:e.THIS_EXP})):t===e.OPAREN_CODE&&(i=this.gobbleGroup())}return i?(i=this.gobbleTokenProperty(i),this.runHook("after-token",i)):this.runHook("after-token",!1)}},{key:"gobbleTokenProperty",value:function(t){this.gobbleSpaces();for(var n=this.code;n===e.PERIOD_CODE||n===e.OBRACK_CODE||n===e.OPAREN_CODE||n===e.QUMARK_CODE;){var r=void 0;if(n===e.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==e.PERIOD_CODE)break;r=!0,this.index+=2,this.gobbleSpaces(),n=this.code}this.index++,n===e.OBRACK_CODE?((t={type:e.MEMBER_EXP,computed:!0,object:t,property:this.gobbleExpression()}).property||this.throwError('Unexpected "'+this.char+'"'),this.gobbleSpaces(),(n=this.code)!==e.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):n===e.OPAREN_CODE?t={type:e.CALL_EXP,arguments:this.gobbleArguments(e.CPAREN_CODE),callee:t}:(n===e.PERIOD_CODE||r)&&(r&&this.index--,this.gobbleSpaces(),t={type:e.MEMBER_EXP,computed:!1,object:t,property:this.gobbleIdentifier()}),r&&(t.optional=!0),this.gobbleSpaces(),n=this.code}return t}},{key:"gobbleNumericLiteral",value:function(){for(var t,n,r="";e.isDecimalDigit(this.code);)r+=this.expr.charAt(this.index++);if(this.code===e.PERIOD_CODE)for(r+=this.expr.charAt(this.index++);e.isDecimalDigit(this.code);)r+=this.expr.charAt(this.index++);if("e"===(t=this.char)||"E"===t){for(r+=this.expr.charAt(this.index++),("+"===(t=this.char)||"-"===t)&&(r+=this.expr.charAt(this.index++));e.isDecimalDigit(this.code);)r+=this.expr.charAt(this.index++);e.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+r+this.char+")")}return n=this.code,e.isIdentifierStart(n)?this.throwError("Variable names cannot start with a number ("+r+this.char+")"):(n===e.PERIOD_CODE||1===r.length&&r.charCodeAt(0)===e.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:e.LITERAL,value:parseFloat(r),raw:r}}},{key:"gobbleStringLiteral",value:function(){for(var t="",n=this.index,r=this.expr.charAt(this.index++),i=!1;this.index<this.expr.length;){var o=this.expr.charAt(this.index++);if(o===r){i=!0;break}if("\\"===o)switch(o=this.expr.charAt(this.index++)){case"n":t+="\n";break;case"r":t+="\r";break;case"t":t+=" ";break;case"b":t+="\b";break;case"f":t+="\f";break;case"v":t+="\v";break;default:t+=o}else t+=o}return i||this.throwError('Unclosed quote after "'+t+'"'),{type:e.LITERAL,value:t,raw:this.expr.substring(n,this.index)}}},{key:"gobbleIdentifier",value:function(){var t=this.code,n=this.index;for(e.isIdentifierStart(t)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length;)if(t=this.code,e.isIdentifierPart(t))this.index++;else break;return{type:e.IDENTIFIER,name:this.expr.slice(n,this.index)}}},{key:"gobbleArguments",value:function(t){for(var n=[],r=!1,i=0;this.index<this.expr.length;){this.gobbleSpaces();var o=this.code;if(o===t){r=!0,this.index++,t===e.CPAREN_CODE&&i&&i>=n.length&&this.throwError("Unexpected token "+String.fromCharCode(t));break}if(o===e.COMMA_CODE){if(this.index++,++i!==n.length){if(t===e.CPAREN_CODE)this.throwError("Unexpected token ,");else if(t===e.CBRACK_CODE)for(var a=n.length;a<i;a++)n.push(null)}}else if(n.length!==i&&0!==i)this.throwError("Expected comma");else{var s=this.gobbleExpression();s&&s.type!==e.COMPOUND||this.throwError("Expected comma"),n.push(s)}}return r||this.throwError("Expected "+String.fromCharCode(t)),n}},{key:"gobbleGroup",value:function(){this.index++;var t=this.gobbleExpressions(e.CPAREN_CODE);if(this.code===e.CPAREN_CODE)return(this.index++,1===t.length)?t[0]:!!t.length&&{type:e.SEQUENCE_EXP,expressions:t};this.throwError("Unclosed (")}},{key:"gobbleArray",value:function(){return this.index++,{type:e.ARRAY_EXP,elements:this.gobbleArguments(e.CBRACK_CODE)}}}],[{key:"version",get:function(){return"1.4.0"}},{key:"toString",value:function(){return"JavaScript Expression Parser (JSEP) v"+e.version}},{key:"addUnaryOp",value:function(t){return e.max_unop_len=Math.max(t.length,e.max_unop_len),e.unary_ops[t]=1,e}},{key:"addBinaryOp",value:function(t,n,r){return e.max_binop_len=Math.max(t.length,e.max_binop_len),e.binary_ops[t]=n,r?e.right_associative.add(t):e.right_associative.delete(t),e}},{key:"addIdentifierChar",value:function(t){return e.additional_identifier_chars.add(t),e}},{key:"addLiteral",value:function(t,n){return e.literals[t]=n,e}},{key:"removeUnaryOp",value:function(t){return delete e.unary_ops[t],t.length===e.max_unop_len&&(e.max_unop_len=e.getMaxKeyLen(e.unary_ops)),e}},{key:"removeAllUnaryOps",value:function(){return e.unary_ops={},e.max_unop_len=0,e}},{key:"removeIdentifierChar",value:function(t){return e.additional_identifier_chars.delete(t),e}},{key:"removeBinaryOp",value:function(t){return delete e.binary_ops[t],t.length===e.max_binop_len&&(e.max_binop_len=e.getMaxKeyLen(e.binary_ops)),e.right_associative.delete(t),e}},{key:"removeAllBinaryOps",value:function(){return e.binary_ops={},e.max_binop_len=0,e}},{key:"removeLiteral",value:function(t){return delete e.literals[t],e}},{key:"removeAllLiterals",value:function(){return e.literals={},e}},{key:"parse",value:function(t){return new e(t).parse()}},{key:"getMaxKeyLen",value:function(e){var t,n;return(t=Math).max.apply(t,[0].concat(function(e){if(Array.isArray(e))return r(e)}(n=Object.keys(e).map(function(e){return e.length}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return r(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}},{key:"isDecimalDigit",value:function(e){return e>=48&&e<=57}},{key:"binaryPrecedence",value:function(t){return e.binary_ops[t]||0}},{key:"isIdentifierStart",value:function(t){return t>=65&&t<=90||t>=97&&t<=122||t>=128&&!e.binary_ops[String.fromCharCode(t)]||e.additional_identifier_chars.has(String.fromCharCode(t))}},{key:"isIdentifierPart",value:function(t){return e.isIdentifierStart(t)||e.isDecimalDigit(t)}}]),e}();Object.assign(f,{hooks:new u,plugins:new l(f),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"??":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),f.max_unop_len=f.getMaxKeyLen(f.unary_ops),f.max_binop_len=f.getMaxKeyLen(f.binary_ops);var h=function(e){return new f(e).parse()},d=Object.getOwnPropertyNames(function e(){i(this,e)});Object.getOwnPropertyNames(f).filter(function(e){return!d.includes(e)&&void 0===h[e]}).forEach(function(e){h[e]=f[e]}),h.Jsep=f,h.plugins.register({name:"ternary",init:function(e){e.hooks.add("after-expression",function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;var n=t.node,r=this.gobbleExpression();if(r||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;var i=this.gobbleExpression();if(i||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:n,consequent:r,alternate:i},n.operator&&e.binary_ops[n.operator]<=.9){for(var o=n;o.right.operator&&e.binary_ops[o.right.operator]<=.9;)o=o.right;t.node.test=o.right,o.right=t.node,t.node=n}}else this.throwError("Expected :")}})}});var p="ArrowFunctionExpression";function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var b={Array:Array,Boolean:Boolean,Symbol:Symbol,Infinity:1/0,NaN:NaN,Math:Math,Number:Number,BigInt:BigInt,String:String,RegExp:RegExp,JSON:JSON,isFinite:isFinite,isNaN:isNaN,parseFloat:parseFloat,parseInt:parseInt,decodeURI:decodeURI,encodeURI:encodeURI,encodeURIComponent:encodeURIComponent,Object:{__proto__:void 0,assign:Object.assign.bind(null),fromEntries:Object.fromEntries.bind(null),hasOwn:Object.hasOwn.bind(null),keys:Object.keys.bind(null),is:Object.is.bind(null),values:Object.values.bind(null)}};function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t,n){return(g=S()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&x(i,n.prototype),i}).apply(null,arguments)}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(S=function(){return!!e})()}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;if("string"!=typeof e&&((void 0===e?"undefined":O(e))!=="object"||!e||!("type"in e)))throw"Unknown expression type ".concat(e,". Expressions must either be a string or pre-compiled string.");null==i&&(i={});var a=(t=i,n=b,(r={thisObj:void 0,variables:w({},t),globals:w({},n),addVariables:function(e){return this.variables=w({},this.variables,e),this}}).addVariables.bind(r),r),s=A("string"==typeof e?h(e):e,a);if(o(s))return s;throw{type:"Invalid result",message:"string"==typeof e?"The expression ".concat(e," did not produce a valid result"):"The expression did not produce a valid result"}}(e,t,j)}function j(e){return"boolean"==typeof e}function A(e,t){switch(e.type){case"UnaryExpression":var n,r,i,o,a,s,c,u,l,f,h,d,p=e,y=t,v=A(p.argument,y);switch(p.operator){case"+":return+v;case"-":return-v;case"~":return~v;case"!":return!v;default:throw"Expression evaluator does not support operator '".concat(p.operator,"''")}case"BinaryExpression":var b=e,m=t,w=A(b.left,m),x=A(b.right,m);switch(b.operator){case"+":return w+x;case"-":return w-x;case"*":return w*x;case"/":return w/x;case"%":return w%x;case"**":return Math.pow(w,x);case"==":return w==x;case"===":return w===x;case"!=":return w!=x;case"!==":return w!==x;case">":return w>x;case">=":return w>=x;case"<":return w<x;case"<=":return w<=x;case"in":return w in x;case"&&":return w&&x;case"||":return w||x;case"??":return null!=w?w:x;default:throw"Expression evaluator does not support operator '".concat(b.operator,"' operator")}case"ConditionalExpression":return S=e,k=t,A(S.test,k)?A(S.consequent,k):A(S.alternate,k);case"CallExpression":var S,k,j,T=e,R=t,N=null==(j=T.arguments)?void 0:j.map(C(R)),B=A(T.callee,R);if(B){if("function"!=typeof B)throw"".concat(I(T.callee)," is not a function")}else throw"No function named ".concat(I(T.callee)," is defined in this context");return B.apply(void 0,E(N));case"ArrowFunctionExpression":return L=e,U=t,W=null!=(q=null==(F=L.params)?void 0:F.map(function(e){if("Identifier"===e.type)return e.name;throw"Cannot handle parameter of type ".concat(e.type)}))?q:[],(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length<W.length)throw"Required argument(s) ".concat(W.slice(t.length,-1).join(", ")," were not provided");var r=Object.fromEntries(W.reduce(function(e,n,r){var i=t[r];return function e(t){var n;if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"function"==typeof t||null===t||(null!=(n=RegExp)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n))return!0;if((void 0===t?"undefined":O(t))==="object"){var r=!0,i=!1,o=void 0;try{for(var a,s=Object.keys(t)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var c=a.value;if(!e(t[c]))return!1}}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return!0}if(Array.isArray(t)){var u=!0,l=!1,f=void 0;try{for(var h,d=t[Symbol.iterator]();!(u=(h=d.next()).done);u=!0){var p=h.value;if(!e(p))return!1}}catch(e){l=!0,f=e}finally{try{u||null==d.return||d.return()}finally{if(l)throw f}}}return!1}(i)&&e.push([n,i]),e},[]));return A(L.body,U.addVariables(r))}).bind(null!=(V=U.thisObj)?V:null);case"MemberExpression":return function(e,t){var n,r=A(e.object,t);if(void 0===r)switch(e.object.type){case"Identifier":var i=P(e.object,t);throw ReferenceError("ReferenceError: ".concat(i," is not defined"));case"MemberExpression":var o=P(e.property,t);throw TypeError("TypeError: cannot read properties of undefined (reading '".concat(o,"')"));default:throw"VisitMemberExpression does not support operator '".concat(e.object.type,"' type")}var a=r;if("string"==typeof r)a=String.prototype;else if("number"==typeof r)a=Number.prototype;else if("function"==typeof r);else if((void 0===r?"undefined":O(r))!=="object")throw"VisitMemberExpression does not support member access on type ".concat(void 0===r?"undefined":O(r));switch(t.thisObj=a,e.property.type){case"Identifier":case"MemberExpression":n=A(e.property,t);break;default:var s=A(e.property,t);if(void 0===s)throw{type:"Illegal property access",message:"No property was supplied to the property access"};D(s),n=r[s]}return"function"==typeof n?n.bind(r):n}(e,t);case"ArrayExpression":return Z=e,z=t,null==($=Z.elements)?void 0:$.map(C(z));case"SequenceExpression":return H=e,X=t,(J=H.expressions.map(C(X)))[J.length-1];case"NewExpression":var M=e,K=t;if(M.callee&&"Identifier"===M.callee.type){var L,U,F,q,V,W,Z,z,$,H,X,J,G,Q=null==(G=M.arguments)?void 0:G.map(C(K));switch(M.callee.name){case"Date":return g(Date,E(Q));case"RegExp":return g(RegExp,E(Q));default:throw"Cannot instantiate object of type ".concat(M.callee.name)}}if(M.callee)throw"new must be called with either Date or RegExp";throw'Could not handle "new" without a specified class';case"Literal":return r=0,D((n=e).value),n.value;case"Identifier":var Y=e,ee=t;D(Y.name);var et=ee.thisObj;if(et&&((void 0===et?"undefined":O(et))==="object"||"function"==typeof et)&&Y.name in et){var en=et[Y.name];return D(en),en}if(ee.variables&&Y.name in ee.variables){var er=ee.variables[Y.name];return D(er),er}return Y.name in ee.globals?ee.globals[Y.name]:void 0;case"TemplateLiteral":return i=e,o=t,l=null!=(c=null==(a=i.expressions)?void 0:a.map(C(o)))?c:[],(f=null!=(u=null==(s=i.quasis)?void 0:s.map(C(o)))?u:[]).filter(function(e){return!e.tail}).map(function(e){return e.value}).join("")+l.join("")+f.filter(function(e){return e.tail}).map(function(e){return e.value}).join("");case"TemplateElement":return d=0,{value:(h=e).cooked,tail:h.tail};default:throw"Expression evaluator does not support expression of type '".concat(e.type,"'")}}function P(e,t){switch(e.type){case"Literal":return e.value;case"Identifier":return e.name;case"MemberExpression":return P(e.property,t);default:throw"VisitExpressionName does not support expression of type '".concat(e.type,"'")}}function C(e){return function(t){return null===t?null:A(t,e)}}function D(e){if("__proto__"===e||"prototype"===e||"constructor"===e)throw{type:"Illegal property access",message:"Cannot access the ".concat(e," property of objects")}}function I(e){if(!e)return null;if("MemberExpression"===e.type){var t;return null==(t=e.property)?void 0:t.name}return e.name}s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},b),c=c={Promise:Promise},Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(c)).forEach(function(e){Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(c,e))}),h.plugins.register({name:"arrow",init:function(e){e.addBinaryOp("=>",.1,!0),e.hooks.add("gobble-expression",function(t){if(this.gobbleSpaces(),this.code===e.OPAREN_CODE){var n=this.index;if(this.index++,this.gobbleSpaces(),this.code===e.CPAREN_CODE){this.index++;var r=this.gobbleBinaryOp();if("=>"===r){var i=this.gobbleBinaryExpression();i||this.throwError("Expected expression after "+r),t.node={type:p,params:null,body:i};return}}this.index=n}}),e.hooks.add("after-expression",function(t){!function t(n){n&&(Object.values(n).forEach(function(e){e&&(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&t(e)}),"=>"===n.operator&&(n.type=p,n.params=n.left?[n.left]:null,n.body=n.right,n.params&&n.params[0].type===e.SEQUENCE_EXP&&(n.params=n.params[0].expressions),delete n.left,delete n.right,delete n.operator))}(t.node)})}}),h.plugins.register({name:"new",init:function(e){e.addUnaryOp("new"),e.hooks.add("after-token",function(t){var n=t.node;if(n&&"new"===n.operator){n.argument&&[e.CALL_EXP,e.MEMBER_EXP].includes(n.argument.type)||this.throwError("Expected new function()"),t.node=n.argument;for(var r=t.node;r.type===e.MEMBER_EXP||r.type===e.CALL_EXP&&r.callee.type===e.MEMBER_EXP;)r=r.type===e.MEMBER_EXP?r.object:r.callee.object;r.type="NewExpression"}})}}),h.plugins.register({name:"numbers",init:function(e){function t(e){return"x"===e||"X"===e?(this.index+=2,[[48,57],[65,70],[97,102]]):"b"===e||"B"===e?(this.index+=2,[[48,49]]):"o"===e||"O"===e||e>="0"&&e<="7"?(this.index+=e<="7"?1:2,[[48,55]]):null}function n(t){var n=this,r=this.index,i="",o=function(){for(;e.isDecimalDigit(n.code)||95===n.code;)95===n.code?n.index++:i+=n.expr.charAt(n.index++)};o(),this.code===e.PERIOD_CODE&&(i+=this.expr.charAt(this.index++),o());var a=this.char;("e"===a||"E"===a)&&(i+=this.expr.charAt(this.index++),("+"===(a=this.char)||"-"===a)&&(i+=this.expr.charAt(this.index++)),o(),e.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+i+this.char+")"));var s=this.code;if(e.isIdentifierStart(s))this.throwError("Variable names cannot start with a number ("+i+this.char+")");else if(s===e.PERIOD_CODE){i.length>1&&this.throwError("Unexpected period ".concat(JSON.stringify({chCode:s,number:i},null,2))),this.index=r;return}t.node={type:e.LITERAL,value:parseFloat(i),raw:this.expr.substring(r,this.index)}}e.hooks.add("gobble-token",function(r){if(48===this.code){var i=this.index,o=this.expr.charAt(this.index+1),a=t.call(this,o);if(a){for(var s,c,u,l="";s=this.code,c=a,95===s||c.some(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return y(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1];return s>=n&&s<=r});)95===this.code?this.index++:l+=this.expr.charAt(this.index++);if(e.isIdentifierPart(this.code)){if(e.isDecimalDigit(this.code)&&e.isDecimalDigit(o.charCodeAt(0))){this.index=i+1,n.call(this,r);return}this.throwError("unexpected char within number")}r.node={type:e.LITERAL,value:parseInt(l,"x"===(u=o)||"X"===u?16:"b"===u||"B"===u?2:8),raw:this.expr.substring(i,this.index)}}}else(e.isDecimalDigit(this.code)||this.code===e.PERIOD_CODE)&&n.call(this,r)})}}),h.plugins.register({name:"regex",init:function(e){e.hooks.add("gobble-token",function(t){if(47===this.code){for(var n=++this.index,r=!1;this.index<this.expr.length;){if(47===this.code&&!r){for(var i=this.expr.slice(n,this.index),o="";++this.index<this.expr.length;){var a=this.code;if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57)o+=this.char;else break}var s=void 0;try{s=new RegExp(i,o)}catch(e){this.throwError(e.message)}return t.node={type:e.LITERAL,value:s,raw:this.expr.slice(n-1,this.index)},t.node=this.gobbleTokenProperty(t.node),t.node}this.code===e.OBRACK_CODE?r=!0:r&&this.code===e.CBRACK_CODE&&(r=!1),this.index+=92===this.code?2:1}this.throwError("Unclosed Regex")}})}}),h.plugins.register({name:"ternary",init:function(e){e.hooks.add("after-expression",function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;var n=t.node,r=this.gobbleExpression();if(r||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;var i=this.gobbleExpression();if(i||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:n,consequent:r,alternate:i},n.operator&&e.binary_ops[n.operator]<=.9){for(var o=n;o.right.operator&&e.binary_ops[o.right.operator]<=.9;)o=o.right;t.node.test=o.right,o.right=t.node,t.node=n}}else this.throwError("Expected :")}})}}),h.plugins.register({name:"jsepTemplateLiteral",init:function(e){function t(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(96===this.code){for(var n={type:"TemplateLiteral",quasis:[],expressions:[]},r="",i="",o=!1,a=this.expr.length,s=function(){return n.quasis.push({type:"TemplateElement",value:{raw:i,cooked:r},tail:o})};this.index<a;){var c,u,l=this.expr.charAt(++this.index);if("`"===l)return this.index+=1,o=!0,s(),e.node=n,t&&(e.node=this.gobbleTokenProperty(e.node)),e.node;if("$"===l&&"{"===this.expr.charAt(this.index+1))this.index+=2,s(),i="",r="",(u=n.expressions).push.apply(u,function(e){if(Array.isArray(e))return v(e)}(c=this.gobbleExpressions(125))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(c)||function(e,t){if(e){if("string"==typeof e)return v(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}}(c)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),125!==this.code&&this.throwError("unclosed ${");else if("\\"===l)switch(i+=l,l=this.expr.charAt(++this.index),i+=l,l){case"n":r+="\n";break;case"r":r+="\r";break;case"t":r+=" ";break;case"b":r+="\b";break;case"f":r+="\f";break;case"v":r+="\v";break;default:r+=l}else r+=l,i+=l}this.throwError("Unclosed `")}}e.hooks.add("gobble-token",t),e.hooks.add("after-token",function(n){if((n.node.type===e.IDENTIFIER||n.node.type===e.MEMBER_EXP)&&96===this.code)return n.node={type:"TaggedTemplateExpression",tag:n.node,quasi:t.bind(this)(n,!1)},n.node=this.gobbleTokenProperty(n.node),n.node})}}),h.addBinaryOp("in",7),h.addBinaryOp("??",1)},3390:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=n(1950),o=n(5623),a=n(4874),s=n(8795),c=n(9418),u=n(7713),l=n(131),f=n(1734),h=e([f,a,i,r,l]);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}(e,t)||v(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}}[f,a,i,r,l]=h.then?(await h)():h;var b=(0,f.Co)(),m=(0,f.yw)(),g=(0,i.Gr)(),w=(0,i._z)();function x(e,t,n,a,s){var f={},h=(0,c.G)(),d=Object.entries(a.flags).filter(function(e){return p(e,2)[1].enabled}).map(function(e){return p(e,1)[0]}),v=!0,g=!1,w=void 0;try{for(var x,E=Object.entries(e.slots)[Symbol.iterator]();!(v=(x=E.next()).done);v=!0){var k=p(x.value,2),j=k[0],A=k[1],P=(0,i.$w)(t,A.name).config,C=function(e,t,n,a,s,c,u){var f=t.slots[e].attachedIds,h=function(e,t){var n=e.add||[],r=e.remove||[],i=e.order||[],o=b.getState().extensions;return y(t).concat(y(n)).filter(function(e){return!r.includes(e)}).sort(function(e,n){var r,a,s=S(e,i,null==(r=o[O(e)])?void 0:r.order,t),c=S(n,i,null==(a=o[O(n)])?void 0:a.order,t);return -1===c?-1:-1===s?1:s-c})}(n,f),d=[],p=!0,v=!1,m=void 0;try{for(var g,w=h[Symbol.iterator]();!(p=(g=w.next()).done);p=!0){var x=g.value,E=(0,i.sR)(a,e,x).config,k=O(x),j=t.extensions[k];if(j){var A,P,C,D,I,T,R,N,B,M,K,L=null!=(T=null!=(I=null==E||null==(A=E["Display conditions"])?void 0:A.privileges)?I:j.privileges)?T:[];if(L&&("string"==typeof L||Array.isArray(L)&&L.length>0)&&(!(null==u?void 0:u.user)||!(0,r.y9)(L,u.user)))continue;var U=null!=(R=null==E||null==(P=E["Display conditions"])?void 0:P.expression)?R:null;if(null!==U)try{if(!(0,o.po)(U,{session:u}))continue}catch(e){console.error("Error while evaluating expression ".concat(U),e);continue}if(j.featureFlag&&!s.includes(j.featureFlag)||window.offlineEnabled&&!(0,l.g)(c,j.online,j.offline))continue;d.push({id:x,name:k,moduleName:j.moduleName,config:E,featureFlag:j.featureFlag,meta:j.meta,online:null==(B=null!=(N=null==E||null==(C=E["Display conditions"])?void 0:C.online)?N:j.online)||B,offline:null!=(K=null!=(M=null==E||null==(D=E["Display conditions"])?void 0:D.offline)?M:j.offline)&&K})}}}catch(e){v=!0,m=e}finally{try{p||null==w.return||w.return()}finally{if(v)throw m}}return d}(j,e,P,n,d,h,s.session);f[j]={moduleName:A.moduleName,assignedExtensions:C}}}catch(e){g=!0,w=e}finally{try{v||null==E.return||E.return()}finally{if(g)throw w}}(0,u.Z)(m.getState().slots,f)||m.setState({slots:f})}function E(){x(b.getState(),g.getState(),w.getState(),a.Jg.getState(),r.Qf.getState())}function O(e){return p(e.split("#"),1)[0]}function S(e,t,n,r){var i=t.indexOf(e);if(-1!==i)return i;if(void 0!==n)return 1e3+n;var o=r.indexOf(e);return -1!==o?2e3+o:-1}b.subscribe(function(e){x(e,g.getState(),w.getState(),a.Jg.getState(),r.Qf.getState())}),g.subscribe(function(e){x(b.getState(),e,w.getState(),a.Jg.getState(),r.Qf.getState())}),w.subscribe(function(e){x(b.getState(),g.getState(),e,a.Jg.getState(),r.Qf.getState())}),a.Jg.subscribe(function(e){x(b.getState(),g.getState(),w.getState(),e,r.Qf.getState())}),r.Qf.subscribe(function(e){x(b.getState(),g.getState(),w.getState(),a.Jg.getState(),e)}),E(),(0,s.XS)(E),t()}catch(e){t(e)}})},131:function(e,t,n){"use strict";n.a(e,async function(e,r){try{function i(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!(e?t:n)}n.d(t,{g:()=>i}),r()}catch(e){r(e)}})},658:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Co:()=>u.Co,yw:()=>u.yw});var i=n(3390),o=n(9213),a=n(2398),s=n(5364),c=n(3012),u=n(1734),l=e([i,o,a,s,c,u]);[i,o,a,s,c,u]=l.then?(await l)():l,r()}catch(e){r(e)}})},9213:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5),i=e([r]);r=(i.then?(await i)():i)[0],(0,r.jk)("left-nav",{slotName:null,basePath:window.spaBase,mode:"normal"}),t()}catch(e){t(e)}})},2398:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5),i=n(658),o=e([i,r]);[i,r]=o.then?(await o)():o,(0,r.jk)("modalRegistry",{modals:{}}),t()}catch(e){t(e)}})},1871:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3390),i=n(9213),o=n(3012),a=n(1734),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},3012:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7134),i=n(3390),o=n(1734),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},1734:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Co:()=>u,yw:()=>l});var i=n(7713),o=n(1950),a=n(5),s=e([a,o]);[a,o]=s.then?(await s)():s;var c=(0,a.jk)("extensionsInternal",{slots:{},extensions:{}}),u=function(){return(0,a.zJ)("extensionsInternal",{slots:{},extensions:{}})},l=function(){return(0,a.zJ)("extensions",{slots:{}})};function f(e){var t=[],n=!0,r=!1,a=void 0;try{for(var s,c=Object.values(e.extensions)[Symbol.iterator]();!(n=(s=c.next()).done);n=!0){var u=s.value,l=!0,f=!1,h=void 0;try{for(var d,p=u.instances[Symbol.iterator]();!(l=(d=p.next()).done);l=!0){var y=d.value;t.push({slotModuleName:y.slotModuleName,extensionModuleName:u.moduleName,slotName:y.slotName,extensionId:y.id})}}catch(e){f=!0,h=e}finally{try{l||null==p.return||p.return()}finally{if(f)throw h}}}}catch(e){r=!0,a=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw a}}(0,i.Z)(o.R2.getState().mountedExtensions,t)||o.R2.setState({mountedExtensions:t})}f(c.getState()),c.subscribe(f),r()}catch(e){r(e)}})},5364:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(658),i=n(5),o=n(1285),a=e([r,o,i]);[r,o,i]=a.then?(await a)():a,(0,i.jk)("workspaceRegistrations",{workspaces:{}}),(0,i.jk)("workspaceGroups",{workspaceGroups:{}}),t()}catch(e){t(e)}})},8795:function(e,t,n){"use strict";n.d(t,{XS:()=>i,dO:()=>o});var r="openmrs:connectivity-changed";function i(e){if(!window.offlineEnabled)return function(){};var t=function(t){return e(t.detail)};return window.addEventListener(r,t),function(){return window.removeEventListener(r,t)}}function o(e){window.dispatchEvent(new CustomEvent("openmrs:toast-shown",{detail:e}))}},3500:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5),i=e([r]);r=(i.then?(await i)():i)[0],(0,r.jk)("breadcrumbs",[]),t()}catch(e){t(e)}})},1672:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3500),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},7279:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3686),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2189:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3500),i=n(1672),o=n(7279),a=n(3686),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},3686:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7134),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2142:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3500),i=n(1672),o=n(7279),a=n(3686),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},7737:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997);n(4197),n(5730);var i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2295:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(3741),n(7533);var r=n(88),i=n(5342),o=n(7737);n(5730);var a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},5730:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(o=function(){return!!e})()}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>s});var s=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(){var e,n,i;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");return i=["EsmOffline"],n=r(n=t),a(e=function(e,t){var n;if(t&&("object"==((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,o()?Reflect.construct(n,i||[],r(this).constructor):n.apply(this,i)),"syncQueue",void 0),a(e,"dynamicOfflineData",void 0),e.version(4).stores({syncQueue:"++id,userId,type,[userId+type]",dynamicOfflineData:"++id,type,identifier,*users,&[type+identifier]"}),e.syncQueue=e.table("syncQueue"),e.dynamicOfflineData=e.table("dynamicOfflineData"),e}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e),t}(n(4197).ZP)},5342:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5),i=n(7737),o=e([i,r]);[i,r]=o.then?(await o)():o,(0,r.jk)("offline-patients",{offlinePatientDataSyncState:{},handlers:{}}),t()}catch(e){t(e)}})},6887:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5342);n(7533);var i=n(88),o=n(7737);n(5730);var a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},7533:function(e,t,n){"use strict";n(3741)},3741:function(){"use strict";try{self["workbox:window:6.5.4"]&&_()}catch(e){}function e(e,t){return new Promise(function(n){var r=new MessageChannel;r.port1.onmessage=function(e){n(e.data)},e.postMessage(t,[r.port2])})}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}try{self["workbox:core:6.5.4"]&&_()}catch(e){}var r=function(){var e=this;this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})};function i(e,t){var n=location.href;return new URL(e,n).href===new URL(t,n).href}var o=function(e,t){this.type=e,Object.assign(this,t)};function a(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function s(){}var c={type:"SKIP_WAITING"};function u(e,t){if(!t)return e&&e.then?e.then(s):Promise.resolve()}!function(n){function s(e,t){var s,c;return void 0===t&&(t={}),(s=n.call(this)||this).nn={},s.tn=0,s.rn=new r,s.en=new r,s.on=new r,s.un=0,s.an=new Set,s.cn=function(){var e=s.fn,t=e.installing;s.tn>0||!i(t.scriptURL,s.sn.toString())||performance.now()>s.un+6e4?(s.vn=t,e.removeEventListener("updatefound",s.cn)):(s.hn=t,s.an.add(t),s.rn.resolve(t)),++s.tn,t.addEventListener("statechange",s.ln)},s.ln=function(e){var t=s.fn,n=e.target,r=n.state,i=n===s.vn,a={sw:n,isExternal:i,originalEvent:e};!i&&s.mn&&(a.isUpdate=!0),s.dispatchEvent(new o(r,a)),"installed"===r?s.wn=self.setTimeout(function(){"installed"===r&&t.waiting===n&&s.dispatchEvent(new o("waiting",a))},200):"activating"===r&&(clearTimeout(s.wn),i||s.en.resolve(n))},s.dn=function(e){var t=s.hn,n=t!==navigator.serviceWorker.controller;s.dispatchEvent(new o("controlling",{isExternal:n,originalEvent:e,sw:t,isUpdate:s.mn})),n||s.on.resolve(t)},c=function(e){var t=e.data,n=e.ports,r=e.source;return a(s.getSW(),function(){s.an.has(r)&&s.dispatchEvent(new o("message",{data:t,originalEvent:e,ports:n,sw:r}))})},s.gn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(c.apply(this,e))}catch(e){return Promise.reject(e)}},s.sn=e,s.nn=t,navigator.serviceWorker.addEventListener("message",s.gn),s}s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.__proto__=n;var l,f=s.prototype;f.register=function(e){var t=(void 0===e?{}:e).immediate,n=void 0!==t&&t;try{var r,s,c,l=this;return r=function(){if(!n&&"complete"!==document.readyState)return u(new Promise(function(e){return window.addEventListener("load",e)}))},s=function(){return l.mn=!!navigator.serviceWorker.controller,l.yn=l.pn(),a(l.bn(),function(e){l.fn=e,l.yn&&(l.hn=l.yn,l.en.resolve(l.yn),l.on.resolve(l.yn),l.yn.addEventListener("statechange",l.ln,{once:!0}));var t=l.fn.waiting;return t&&i(t.scriptURL,l.sn.toString())&&(l.hn=t,Promise.resolve().then(function(){l.dispatchEvent(new o("waiting",{sw:t,wasWaitingBeforeRegister:!0}))}).then(function(){})),l.hn&&(l.rn.resolve(l.hn),l.an.add(l.hn)),l.fn.addEventListener("updatefound",l.cn),navigator.serviceWorker.addEventListener("controllerchange",l.dn),l.fn})},(c=r())&&c.then?c.then(s):s(c)}catch(e){return Promise.reject(e)}},f.update=function(){try{return this.fn?u(this.fn.update()):void 0}catch(e){return Promise.reject(e)}},f.getSW=function(){return void 0!==this.hn?Promise.resolve(this.hn):this.rn.promise},f.messageSW=function(t){try{return a(this.getSW(),function(n){return e(n,t)})}catch(e){return Promise.reject(e)}},f.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&e(this.fn.waiting,c)},f.pn=function(){var e=navigator.serviceWorker.controller;return e&&i(e.scriptURL,this.sn.toString())?e:void 0},f.bn=function(){try{var e=this;return function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}(function(){return a(navigator.serviceWorker.register(e.sn,e.nn),function(t){return e.un=performance.now(),t})},function(e){throw e})}catch(e){return Promise.reject(e)}},t(s.prototype,[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}]),l&&t(s,l)}(function(){function e(){this.Pn=new Map}var t=e.prototype;return t.addEventListener=function(e,t){this.Sn(e).add(t)},t.removeEventListener=function(e,t){this.Sn(e).delete(t)},t.dispatchEvent=function(e){e.target=this;for(var t,r=function(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,void 0):void 0}}(e))){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}(this.Sn(e.type));!(t=r()).done;)(0,t.value)(e)},t.Sn=function(e){return this.Pn.has(e)||this.Pn.set(e,new Set),this.Pn.get(e)},e}())},88:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(4197);var r=n(6997),i=n(5),o=n(5730),a=e([r,i]);[r,i]=a.then?(await a)():a,new o.A,(0,i.jk)("offline-synchronization",{}),t()}catch(e){t(e)}})},4208:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],(0,r.createContext)({moduleName:"",featureName:""}),t()}catch(e){t(e)}})},2626:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(2189),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},9631:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(658),i=n(810),o=n(957),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},3840:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(4208),o=n(9631),a=n(3062),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},2570:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(1519),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},7348:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},3077:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=n(810),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},1528:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(9011),n(4295);var i=n(5487),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},957:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(4208),i=n(2626),o=n(9631),a=n(3840),s=n(2570),c=n(7348),u=n(3077),l=n(1528),f=n(5487),h=n(8553),d=n(7741),p=n(2071),y=n(9186),v=n(2844),b=n(425),m=n(9020),g=n(4238),w=n(9921),x=n(1782),E=n(1519),O=n(2903),S=n(7890),k=n(3062),j=n(9669),A=n(7990),P=n(6457),C=n(7265),D=n(1657),I=n(1780),T=n(9725),R=n(9469),N=n(1615),B=n(7240),M=n(4406),K=n(5933),L=n(4895),U=n(1850),F=n(7719),q=n(6827),V=n(3059),W=n(3743),Z=n(1880),z=n(7625),$=n(3839),H=n(5959),X=n(1587),J=n(1445),G=n(1639),Q=n(9484),Y=n(4087),ee=e([r,i,o,a,s,c,u,l,f,h,d,p,y,v,b,m,g,w,x,E,O,S,k,j,A,P,C,D,I,T,R,N,B,M,K,L,U,F,q,V,W,Z,z,$,H,X,J,G,Q,Y]);[r,i,o,a,s,c,u,l,f,h,d,p,y,v,b,m,g,w,x,E,O,S,k,j,A,P,C,D,I,T,R,N,B,M,K,L,U,F,q,V,W,Z,z,$,H,X,J,G,Q,Y]=ee.then?(await ee)():ee,t()}catch(e){t(e)}})},5487:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7987),o=n(5941),a=n(6997),s=n(4208),c=e([r,i,o,a,s]);[r,i,o,a,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},9711:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(2626),i=n(9631),o=n(3840),a=n(3077),s=n(1528),c=n(2570),u=n(7348),l=n(8553),f=n(7741),h=n(9186),d=n(2071),p=n(2844),y=n(425),v=n(9020),b=n(4238),m=n(9921),g=n(1782),w=n(1519),x=n(2903),E=n(9669),O=n(6457),S=n(7990),k=n(7265),j=n(1615),A=n(7240),P=n(4406),C=n(5933),D=n(4895),I=n(1850),T=n(7719),R=n(3059),N=n(1880),B=n(4087),M=n(7625),K=n(3839),L=n(5959),U=n(1587),F=n(6827),q=n(3743),V=n(9469),W=n(9725),Z=n(1780),z=n(9484),$=n(1639),H=n(1445),X=e([r,i,o,a,s,c,u,l,f,h,d,p,y,v,b,m,g,w,x,E,O,S,k,j,A,P,C,D,I,T,R,N,B,M,K,L,U,F,q,V,W,Z,z,$,H]);[r,i,o,a,s,c,u,l,f,h,d,p,y,v,b,m,g,w,x,E,O,S,k,j,A,P,C,D,I,T,R,N,B,M,K,L,U,F,q,V,W,Z,z,$,H]=X.then?(await X)():X,t()}catch(e){t(e)}})},8553:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},7741:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2071:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(658),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},9186:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7990),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2844:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),o=n(6997),a=n(5376),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},425:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},9020:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(1950),o=n(4208),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},4238:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9186),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},9921:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},1782:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},1519:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2903:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(9847),o=n(6997),a=e([r,i,o]);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}[r,i,o]=a.then?(await a)():a,[["admissionDecisionConcept","ref"],["admissionEncounterType","ref"],["admissionForm","ref"],["atFacilityVisitType","ref"],["bedAssignmentEncounterType","ref"],["cancelADTRequestEncounterType","ref"],["checkInClerkEncounterRole","ref"],["checkInEncounterType","ref"],["clinicianEncounterRole","ref"],["conceptSourcesForDiagnosisSearch","ref"],["consultEncounterType","ref"],["consultFreeTextCommentsConcept","ref"],["denyAdmissionConcept","ref"],["diagnosisMetadata","ref"],["diagnosisSets","ref"],["dischargeForm","ref"],["dispositionDescriptor","ref"],["dispositions","ref"],["emrApiConceptSource","ref"],["exitFromInpatientEncounterType","ref"],["extraPatientIdentifierTypes","ref"],["fullPrivilegeLevel","ref"],["highPrivilegeLevel","ref"],["identifierTypesToSearch","ref"],["inpatientNoteEncounterType","ref"],["lastViewedPatientSizeLimit","ref"],["metadataSourceName","ref"],["motherChildRelationshipType","ref"],["narrowerThanConceptMapType","ref"],["nonDiagnosisConceptSets","ref"],["orderingProviderEncounterRole","ref"],["patientDiedConcept","ref"],["personImageDirectory","ref"],["primaryIdentifierType","ref"],["sameAsConceptMapType","ref"],["suppressedDiagnosisConcepts","ref"],["supportsAdmissionLocationTag","(uuid,display,name,links)"],["supportsLoginLocationTag","(uuid,display,name,links)"],["supportsTransferLocationTag","(uuid,display,name,links)"],["supportsVisitsLocationTag","(uuid,display,name,links)"],["telephoneAttributeType","ref"],["testPatientPersonAttributeType","ref"],["transferForm","ref"],["transferRequestEncounterType","ref"],["transferWithinHospitalEncounterType","ref"],["unknownCauseOfDeathConcept","ref"],["unknownLocation","ref"],["unknownPatientPersonAttributeType","ref"],["unknownProvider","ref"],["visitAssignmentHandlerAdjustEncounterTimeOfDayIfNecessary","ref"],["visitExpireHours","ref"],["visitNoteEncounterType","ref"]].map(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return s(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1];return"".concat(n,":").concat(r)}).join(","),t()}catch(e){t(e)}})},7890:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(658),i=n(7625),o=e([i,r]);[i,r]=o.then?(await o)():o,(0,i.NV)((0,r.Co)()),t()}catch(e){t(e)}})},3062:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(658),o=n(4208),a=n(9186),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},9669:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(9186),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},7990:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(658),i=n(7625),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},6457:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(658),i=n(7625),o=e([i,r]);[i,r]=o.then?(await o)():o,(0,i.NV)((0,r.yw)()),t()}catch(e){t(e)}})},7265:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7625),i=n(4874),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},1780:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9469),i=n(1445),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},9725:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9469),i=n(1639),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},9469:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=n(9484),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},1657:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},1615:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},7240:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(658),o=n(4208),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},4406:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(658),i=n(7625),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},5933:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5376),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},4895:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},1850:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},1445:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(1639),o=n(9484),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},1639:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=n(810),o=n(1448),a=n(9484),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},9484:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=n(810),o=n(5941),a=n(9847),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},7719:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),o=n(6997),a=n(8553),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},6827:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},3059:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),o=n(5376),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},3743:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),o=n(6997),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},1880:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(957),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},4087:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=n(810),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},7625:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{NV:()=>l});var i=n(5),o=n(810),a=e([i,o]);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}(e,t)||u(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}}function l(e){return function(t){var n=c((0,o.useState)(e.getState()),2),r=n[0],i=n[1];(0,o.useEffect)(function(){return e.subscribe(function(e){return i(e)})},[]);var a=(0,o.useMemo)(function(){return t?function(e,t){"function"==typeof t&&(t=t(e));var n={},r=!0,i=!1,o=void 0;try{for(var a,l=Object.entries(t)[Symbol.iterator]();!(r=(a=l.next()).done);r=!0)!function(){var t=c(a.value,2),r=t[0],i=t[1];n[r]=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];e.setState(function(e){return i.apply(void 0,[e].concat(function(e){if(Array.isArray(e))return s(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||u(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))})}}()}catch(e){i=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}(e,t):{}},[t]);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},r,a)}}[i,o]=a.then?(await a)():a,r()}catch(e){r(e)}})},3839:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),o=n(1338),a=n(7530),s=n(6997),c=n(5376),u=n(5959),l=e([r,i,s,c,u,o]);[r,i,s,c,u,o]=l.then?(await l)():l,o.default.extend(a),t()}catch(e){t(e)}})},5959:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5376),o=n(7625),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},1587:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5376),i=n(810),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},5:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{jk:()=>i.jk,zJ:()=>i.zJ});var i=n(9790),o=e([i]);i=(o.then?(await o)():o)[0],r()}catch(e){r(e)}})},7418:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9790),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},9790:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{jk:()=>a,zJ:()=>s});var i=n(1844),o={};function a(e,t){var n=o[e];if(n)return n.active?console.error("Attempted to override the existing store ".concat(e,". Make sure that stores are only created once.")):n.value.setState(t,!0),n.active=!0,n.value;var r=(0,i.M)()(function(){return t});return o[e]={value:r,active:!0},r}function s(e,t){var n=o[e];if(!n){var r=(0,i.M)()(function(){return null!=t?t:{}});return o[e]={value:r,active:!1},r}return n.value}setTimeout(function(){"development"===window.spaEnv&&(window.stores=o)},1e3),r()}catch(e){r(e)}})},1285:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(3762);var r=n(2021),i=e([r]);((r=(i.then?(await i)():i)[0]).default.default||r.default).on("initialized",function(){window.i18next.loadNamespaces(["core"])}),t()}catch(e){t(e)}})},1556:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(1285),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},3762:function(){"use strict";var e,t;e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},{address1:"Address line 1",address2:"Address line 2",address3:"Address line 3",address4:"Address line 4",address5:"Address line 5",address6:"Address line 6",city:"City",cityVillage:"City",country:"Country",countyDistrict:"District",district:"District",postalCode:"Postal code",state:"State",stateProvince:"State"},{closeAllOpenedWorkspaces:"Discard changes in {{count}} workspaces",closingAllWorkspacesPromptBody:"There may be unsaved changes in the following workspaces. Do you want to discard changes in the following workspaces? {{workspaceNames}}",closingAllWorkspacesPromptTitle:"You have unsaved changes",discard:"Discard",hide:"Hide",maximize:"Maximize",minimize:"Minimize",openAnyway:"Open anyway",unsavedChangesInOpenedWorkspace:"You may have unsaved changes in the opened workspace. Do you want to discard these changes?",unsavedChangesInWorkspace:'There may be unsaved changes in "{{workspaceName}}". Please save them before opening another workspace.',unsavedChangesTitleText:"Unsaved changes",workspaceHeader:"Workspace header"}),t=t={actions:"Actions",address:"Address",age:"Age",cancel:"Cancel",change:"Change",Clinic:"Clinic",close:"Close",confirm:"Confirm",contactAdministratorIfIssuePersists:"Contact your system administrator if the problem persists.",contactDetails:"Contact details",delete:"Delete",edit:"Edit",error:"Error",errorCopy:"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.",female:"Female",loading:"Loading",male:"Male",other:"Other",patientIdentifierSticker:"Patient identifier sticker",patientLists:"Patient lists",print:"Print",printError:"Print error",printErrorExplainer:"An error occurred in {{errorLocation}}",printIdentifierSticker:"Print identifier sticker",printing:"Printing",relationships:"Relationships",resetOverrides:"Reset overrides",save:"Save",scriptLoadingFailed:"Error: Script failed to load",scriptLoadingError:"Failed to load overridden script from {{url}}. Please check that the bundled script is available at the expected URL. Click the button below to reset all import map overrides.",seeMoreLists:"See {{count}} more lists",sex:"Sex",showLess:"Show less",showMore:"Show more",toggleDevTools:"Toggle dev tools",unknown:"Unknown"},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})},9418:function(e,t,n){"use strict";function r(e){return!window.offlineEnabled||(null!=e?e:navigator.onLine)}n.d(t,{G:()=>r})}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}(()=>{var e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",r="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",i=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},o=n=>n.map(n=>{if(null!==n&&"object"==typeof n){if(n[e])return n;if(n.then){var o=[];o.d=0,n.then(e=>{a[t]=e,i(o)},e=>{a[r]=e,i(o)});var a={};return a[e]=e=>e(o),a}}var s={};return s[e]=function(){},s[t]=n,s});n.a=(n,a,s)=>{s&&((c=[]).d=-1);var c,u,l,f,h=new Set,d=n.exports,p=new Promise((e,t)=>{f=t,l=e});p[t]=d,p[e]=e=>{c&&e(c),h.forEach(e),p.catch(function(){})},n.exports=p,a(n=>{u=o(n);var i,a=()=>u.map(e=>{if(e[r])throw e[r];return e[t]}),s=new Promise(t=>{(i=()=>t(a)).r=0;var n=e=>e!==c&&!h.has(e)&&(h.add(e),e&&!e.d&&(i.r++,e.push(i)));u.map(t=>t[e](n))});return i.r?s:a()},e=>(e?f(p[r]=e):l(d),i(c))),c&&c.d<0&&(c.d=0)}})(),n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.rv=()=>"1.3.11",n.ruid="bundler=rspack@1.3.11",n(8968)})();
1
+ (()=>{var e={1690:function(){"use strict";function e(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var t,n,r,i={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?i.enableCssCustomProperties=!0:i.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?i.enableCssGrid=!0:i.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE?"true"===process.env.CARBON_ENABLE_V11_RELEASE?i.enableV11Release=!0:i.enableV11Release=!1:i.enableV11Release=!0,process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST?i.enableExperimentalTileContrast=!0:i.enableExperimentalTileContrast=!1,process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS?i.enableV12TileDefaultIcons=!0:i.enableV12TileDefaultIcons=!1,process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_RADIO_ICONS?i.enableV12TileRadioIcons=!0:i.enableV12TileRadioIcons=!1,process.env.CARBON_ENABLE_V12_OVERFLOWMENU&&"true"===process.env.CARBON_ENABLE_V12_OVERFLOWMENU?i.enableV12Overflowmenu=!0:i.enableV12Overflowmenu=!1,process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE&&"true"===process.env.CARBON_ENABLE_TREEVIEW_CONTROLLABLE?i.enableTreeviewControllable=!0:i.enableTreeviewControllable=!1,process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS&&"true"===process.env.CARBON_ENABLE_V12_STRUCTURED_LIST_VISIBLE_ICONS?i.enableV12StructuredListVisibleIcons=!0:i.enableV12StructuredListVisibleIcons=!1,process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_FOCUS_WRAP_WITHOUT_SENTINELS?i.enableExperimentalFocusWrapWithoutSentinels=!0:i.enableExperimentalFocusWrapWithoutSentinels=!1,process.env.CARBON_ENABLE_DIALOG_ELEMENT&&"true"===process.env.CARBON_ENABLE_DIALOG_ELEMENT?i.enableDialogElement=!0:i.enableDialogElement=!1,process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES&&"true"===process.env.CARBON_ENABLE_V12_DYNAMIC_FLOATING_STYLES?i.enableV12DynamicFloatingStyles=!0:i.enableV12DynamicFloatingStyles=!1}catch(e){i.enableCssCustomProperties=!1,i.enableCssGrid=!1,i.enableV11Release=!0,i.enableExperimentalTileContrast=!1,i.enableV12TileDefaultIcons=!1,i.enableV12TileRadioIcons=!1,i.enableV12Overflowmenu=!1,i.enableTreeviewControllable=!1,i.enableV12StructuredListVisibleIcons=!1,i.enableExperimentalFocusWrapWithoutSentinels=!1,i.enableDialogElement=!1,i.enableV12DynamicFloatingStyles=!1}var o=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:i.enableCssCustomProperties},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:i.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:i.enableV11Release},{name:"enable-experimental-tile-contrast",description:"Enable the experimental tile improved contrast styles\n",enabled:i.enableExperimentalTileContrast},{name:"enable-v12-tile-default-icons",description:"Enable rendering of default icons in the tile components\n",enabled:i.enableV12TileDefaultIcons},{name:"enable-v12-tile-radio-icons",description:"Enable rendering of radio icons in the RadioTile component\n",enabled:i.enableV12TileRadioIcons},{name:"enable-v12-overflowmenu",description:"Enable the use of the v12 OverflowMenu leveraging the Menu subcomponents\n",enabled:i.enableV12Overflowmenu},{name:"enable-treeview-controllable",description:"Enable the new TreeView controllable API\n",enabled:i.enableTreeviewControllable},{name:"enable-v12-structured-list-visible-icons",description:"Enable rendering of radio icons in the StructuredList component\n",enabled:i.enableV12StructuredListVisibleIcons},{name:"enable-experimental-focus-wrap-without-sentinels",description:"Enable the new focus wrap behavior that doesn't use sentinel nodes\n",enabled:i.enableExperimentalFocusWrapWithoutSentinels},{name:"enable-dialog-element",description:"Enable components to utilize the native dialog element\n",enabled:i.enableDialogElement},{name:"enable-v12-dynamic-floating-styles",description:"Enable dynamic setting of floating styles for components like Popover, Tooltip, etc.\n",enabled:i.enableV12DynamicFloatingStyles}];function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}for(var c=(n=function e(t){var n=this,r=e;if(null!=r&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?!r[Symbol.hasInstance](this):!(this instanceof r))throw TypeError("Cannot call a class as a function");this.flags=new Map,t&&Object.keys(t).forEach(function(e){n.flags.set(e,t[e])})},r=[{key:"checkForFlag",value:function(e){if(!this.flags.has(e))throw Error("Unable to find a feature flag with the name: `".concat(e,"`"))}},{key:"add",value:function(e,t){if(this.flags.has(e))throw Error("The feature flag: ".concat(e," already exists"));this.flags.set(e,t)}},{key:"enable",value:function(e){this.checkForFlag(e),this.flags.set(e,!0)}},{key:"disable",value:function(e){this.checkForFlag(e),this.flags.set(e,!1)}},{key:"merge",value:function(e){var t=this;Object.keys(e).forEach(function(n){t.flags.set(n,e[n])})}},{key:"mergeWithScope",value:function(e){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}(e.flags);try{for(n.s();!(t=n.n()).done;){var r,i=(r=t.value,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,u=!1;try{o=(n=n.call(e)).next,!1;for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(r,2)||s(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],a=i[1];this.flags.has(o)||this.flags.set(o,a)}}catch(e){n.e(e)}finally{n.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}],function(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,function(t){var n=function(t,n){if("object"!=(void 0===t?"undefined":e(t))||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,n||"default");if("object"!=(void 0===i?"undefined":e(i)))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==(void 0===n?"undefined":e(n))?n:n+""}(i.key),i)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n),u=new c(void 0),l=0;l<o.length;l++){var f=o[l];u.add(f.name,f.enabled)}!function(){u.merge.apply(u,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1,"enable-v12-tile-radio-icons":!1,"enable-v12-structured-list-visible-icons":!1,"enable-v12-dynamic-floating-styles":!1})},3126:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(1690),t()}catch(e){t(e)}})},7530:function(e,t){var n,r;n=this,r=function(){return function(e,t,n){t.prototype.isToday=function(){var e="YYYY-MM-DD",t=n();return this.format(e)===t.format(e)}}},"object"==(t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)?e.exports=r():"function"==typeof define&&define.amd?define(r):(n="undefined"!=typeof globalThis?globalThis:n||self).dayjs_plugin_isToday=r()},3270:function(e,t,n){!function(t){"use strict";var r=n(8573);function i(e){return function(t,n){var r;return(void 0===t?"undefined":(r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)=="object"&&(n=t,t=null),null==t&&(t=new Date().toString()),n||(n={}),e.call(this,t,n)}}var o=e.exports={generate:i(function(e,t){return new r(e,t)})};t&&(t.fn.geopattern=i(function(e,n){return this.each(function(){var r=t(this).attr("data-title-sha");r&&(n=t.extend({hash:r},n));var i=o.generate(e,n);t(this).css("background-image",i.toDataUrl())})}))}("undefined"!=typeof jQuery?jQuery:null)},5090:function(e){"use strict";e.exports={hex2rgb:function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,r){return t+t+n+n+r+r});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},rgb2hex:function(e){return"#"+["r","g","b"].map(function(t){return("0"+e[t].toString(16)).slice(-2)}).join("")},rgb2hsl:function(e){var t,n,r=e.r,i=e.g,o=e.b,a=Math.max(r/=255,i/=255,o/=255),s=Math.min(r,i,o),c=(a+s)/2;if(a===s)t=n=0;else{var u=a-s;switch(n=c>.5?u/(2-a-s):u/(a+s),a){case r:t=(i-o)/u+6*(i<o);break;case i:t=(o-r)/u+2;break;case o:t=(r-i)/u+4}t/=6}return{h:t,s:n,l:c}},hsl2rgb:function(e){function t(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var n,r,i,o=e.h,a=e.s,s=e.l;if(0===a)n=r=i=s;else{var c=s<.5?s*(1+a):s+a-s*a,u=2*s-c;n=t(u,c,o+1/3),r=t(u,c,o),i=t(u,c,o-1/3)}return{r:Math.round(255*n),g:Math.round(255*r),b:Math.round(255*i)}},rgb2rgbString:function(e){return"rgb("+[e.r,e.g,e.b].join(",")+")"}}},8573:function(e,t,n){"use strict";var r=n(5884),i=n(5090),o=n(5794),a=n(5107),s={baseColor:"#933c3c"},c=["octogons","overlappingCircles","plusSigns","xes","sineWaves","hexagons","overlappingRings","plaid","triangles","squares","concentricCircles","diamonds","tessellation","nestedSquares","mosaicSquares","chevrons"],u="#000";function l(e,t,n){return parseInt(e.substr(t,n||1),16)}function f(e,t,n,r,i){return(parseFloat(e)-t)*(i-r)/(n-t)+r}function h(e){return e%2==0?"#ddd":"#222"}function d(e){return f(e,0,15,.02,.15)}var p=e.exports=function(e,t){return this.opts=r({},s,t),this.hash=t.hash||o(e),this.svg=new a,this.generateBackground(),this.generatePattern(),this};function y(e){return[[e,0,e,3*e],[0,e,3*e,e]]}function v(e){return[0,0,e,e,0,e,0,0].join(",")}function b(e,t,n,r,i){var o=v(r),a=d(i[0]),s=h(i[0]),c={stroke:u,"stroke-opacity":.02,"fill-opacity":a,fill:s};e.polyline(o,c).transform({translate:[t+r,n],scale:[-1,1]}),e.polyline(o,c).transform({translate:[t+r,n+2*r],scale:[1,-1]}),c={stroke:u,"stroke-opacity":.02,"fill-opacity":a=d(i[1]),fill:s=h(i[1])},e.polyline(o,c).transform({translate:[t+r,n+2*r],scale:[-1,-1]}),e.polyline(o,c).transform({translate:[t+r,n],scale:[1,1]})}function m(e,t,n,r,i){var o=d(i),a=h(i),s=v(r),c={stroke:u,"stroke-opacity":.02,"fill-opacity":o,fill:a};e.polyline(s,c).transform({translate:[t,n+r],scale:[1,-1]}),e.polyline(s,c).transform({translate:[t+2*r,n+r],scale:[-1,-1]}),e.polyline(s,c).transform({translate:[t,n+r],scale:[1,1]}),e.polyline(s,c).transform({translate:[t+2*r,n+r],scale:[-1,1]})}p.prototype.toSvg=function(){return this.svg.toString()},p.prototype.toString=function(){return this.toSvg()},p.prototype.toBase64=function(){var e,t=this.toSvg();return"undefined"!=typeof window&&"function"==typeof window.btoa?window.btoa(t):new Buffer(t).toString("base64")},p.prototype.toDataUri=function(){return"data:image/svg+xml;base64,"+this.toBase64()},p.prototype.toDataUrl=function(){return'url("'+this.toDataUri()+'")'},p.prototype.generateBackground=function(){var e,t,n,r;this.opts.color?n=i.hex2rgb(this.opts.color):(t=f(l(this.hash,14,3),0,4095,0,359),r=l(this.hash,17),(e=i.rgb2hsl(i.hex2rgb(this.opts.baseColor))).h=(360*e.h-t+360)%360/360,r%2==0?e.s=Math.min(1,(100*e.s+r)/100):e.s=Math.max(0,(100*e.s-r)/100),n=i.hsl2rgb(e)),this.color=i.rgb2hex(n),this.svg.rect(0,0,"100%","100%",{fill:i.rgb2rgbString(n)})},p.prototype.generatePattern=function(){var e=this.opts.generator;if(e){if(0>c.indexOf(e))throw Error("The generator "+e+" does not exist.")}else e=c[l(this.hash,20)];return this["geo"+e.slice(0,1).toUpperCase()+e.slice(1)]()},p.prototype.geoHexagons=function(){var e,t,n,r,i,o,a,s,c,p=f(l(this.hash,0),0,15,8,60),y=p*Math.sqrt(3),v=2*p,b=(s=p/2,[0,c=Math.sin(60*Math.PI/180)*p,s,0,s+p,0,2*p,c,s+p,2*c,s,2*c,0,c].join(","));for(this.svg.setWidth(3*v+3*p),this.svg.setHeight(6*y),t=0,a=0;a<6;a++)for(o=0;o<6;o++)i=l(this.hash,t),e=o%2==0?a*y:a*y+y/2,n=d(i),r={fill:h(i),"fill-opacity":n,stroke:u,"stroke-opacity":.02},this.svg.polyline(b,r).transform({translate:[o*p*1.5-v/2,e-y/2]}),0===o&&this.svg.polyline(b,r).transform({translate:[6*p*1.5-v/2,e-y/2]}),0===a&&(e=o%2==0?6*y:6*y+y/2,this.svg.polyline(b,r).transform({translate:[o*p*1.5-v/2,e-y/2]})),0===o&&0===a&&this.svg.polyline(b,r).transform({translate:[6*p*1.5-v/2,5*y+y/2]}),t++},p.prototype.geoSineWaves=function(){var e,t,n,r,i,o,a,s=Math.floor(f(l(this.hash,0),0,15,100,400)),c=Math.floor(f(l(this.hash,1),0,15,30,100)),u=Math.floor(f(l(this.hash,2),0,15,3,30));for(this.svg.setWidth(s),this.svg.setHeight(36*u),t=0;t<36;t++)n=d(o=l(this.hash,t)),e=h(o),a=s/4*.7,i={fill:"none",stroke:e,opacity:n,"stroke-width":""+u+"px"},r="M0 "+c+" C "+a+" 0, "+(s/2-a)+" 0, "+s/2+" "+c+" S "+(s-a)+" "+2*c+", "+s+" "+c+" S "+(1.5*s-a)+" 0, "+1.5*s+", "+c,this.svg.path(r,i).transform({translate:[-s/4,u*t-1.5*c]}),this.svg.path(r,i).transform({translate:[-s/4,u*t-1.5*c+36*u]})},p.prototype.geoChevrons=function(){var e,t,n,r,i,o,a,s=f(l(this.hash,0),0,15,30,80),c=f(l(this.hash,0),0,15,30,80),p=(e=.66*c,[[0,0,s/2,c-e,s/2,c,0,e,0,0],[s/2,c-e,s,0,s,e,s/2,c,s/2,c-e]].map(function(e){return e.join(",")}));for(this.svg.setWidth(6*s),this.svg.setHeight(6*c*.66),t=0,a=0;a<6;a++)for(o=0;o<6;o++)n=d(i=l(this.hash,t)),r={stroke:u,"stroke-opacity":.02,fill:h(i),"fill-opacity":n,"stroke-width":1},this.svg.group(r).transform({translate:[o*s,a*c*.66-c/2]}).polyline(p).end(),0===a&&this.svg.group(r).transform({translate:[o*s,6*c*.66-c/2]}).polyline(p).end(),t+=1},p.prototype.geoPlusSigns=function(){var e,t,n,r,i,o,a,s,c=f(l(this.hash,0),0,15,10,25),p=3*c,v=y(c);for(this.svg.setWidth(12*c),this.svg.setHeight(12*c),n=0,s=0;s<6;s++)for(a=0;a<6;a++)r=d(o=l(this.hash,n)),t=h(o),e=+(s%2!=0),i={fill:t,stroke:u,"stroke-opacity":.02,"fill-opacity":r},this.svg.group(i).transform({translate:[a*p-a*c+e*c-c,s*p-s*c-p/2]}).rect(v).end(),0===a&&this.svg.group(i).transform({translate:[4*p-a*c+e*c-c,s*p-s*c-p/2]}).rect(v).end(),0===s&&this.svg.group(i).transform({translate:[a*p-a*c+e*c-c,4*p-s*c-p/2]}).rect(v).end(),0===a&&0===s&&this.svg.group(i).transform({translate:[4*p-a*c+e*c-c,4*p-s*c-p/2]}).rect(v).end(),n++},p.prototype.geoXes=function(){var e,t,n,r,i,o,a,s=f(l(this.hash,0),0,15,10,25),c=y(s),u=3*s*.943;for(this.svg.setWidth(3*u),this.svg.setHeight(3*u),t=0,a=0;a<6;a++)for(o=0;o<6;o++)n=d(i=l(this.hash,t)),e=o%2==0?a*u-.5*u:a*u-.5*u+u/4,r={fill:h(i),opacity:n},this.svg.group(r).transform({translate:[o*u/2-u/2,e-a*u/2],rotate:[45,u/2,u/2]}).rect(c).end(),0===o&&this.svg.group(r).transform({translate:[6*u/2-u/2,e-a*u/2],rotate:[45,u/2,u/2]}).rect(c).end(),0===a&&(e=o%2==0?6*u-u/2:6*u-u/2+u/4,this.svg.group(r).transform({translate:[o*u/2-u/2,e-6*u/2],rotate:[45,u/2,u/2]}).rect(c).end()),5===a&&this.svg.group(r).transform({translate:[o*u/2-u/2,e-11*u/2],rotate:[45,u/2,u/2]}).rect(c).end(),0===o&&0===a&&this.svg.group(r).transform({translate:[6*u/2-u/2,e-6*u/2],rotate:[45,u/2,u/2]}).rect(c).end(),t++},p.prototype.geoOverlappingCircles=function(){var e,t,n,r,i,o,a=f(l(this.hash,0),0,15,25,200)/2;for(this.svg.setWidth(6*a),this.svg.setHeight(6*a),e=0,o=0;o<6;o++)for(i=0;i<6;i++)t=d(r=l(this.hash,e)),n={fill:h(r),opacity:t},this.svg.circle(i*a,o*a,a,n),0===i&&this.svg.circle(6*a,o*a,a,n),0===o&&this.svg.circle(i*a,6*a,a,n),0===i&&0===o&&this.svg.circle(6*a,6*a,a,n),e++},p.prototype.geoOctogons=function(){var e,t,n,r,i,o,a,s=f(l(this.hash,0),0,15,10,60),c=[e=.33*s,0,s-e,0,s,e,s,s-e,s-e,s,e,s,0,s-e,0,e,e,0].join(",");for(this.svg.setWidth(6*s),this.svg.setHeight(6*s),n=0,a=0;a<6;a++)for(o=0;o<6;o++)r=d(i=l(this.hash,n)),t=h(i),this.svg.polyline(c,{fill:t,"fill-opacity":r,stroke:u,"stroke-opacity":.02}).transform({translate:[o*s,a*s]}),n+=1},p.prototype.geoSquares=function(){var e,t,n,r,i,o,a=f(l(this.hash,0),0,15,10,60);for(this.svg.setWidth(6*a),this.svg.setHeight(6*a),t=0,o=0;o<6;o++)for(i=0;i<6;i++)n=d(r=l(this.hash,t)),e=h(r),this.svg.rect(i*a,o*a,a,a,{fill:e,"fill-opacity":n,stroke:u,"stroke-opacity":.02}),t+=1},p.prototype.geoConcentricCircles=function(){var e,t,n,r,i,o,a=f(l(this.hash,0),0,15,10,60),s=a/5;for(this.svg.setWidth((a+s)*6),this.svg.setHeight((a+s)*6),t=0,o=0;o<6;o++)for(i=0;i<6;i++)n=d(r=l(this.hash,t)),e=h(r),this.svg.circle(i*a+i*s+(a+s)/2,o*a+o*s+(a+s)/2,a/2,{fill:"none",stroke:e,opacity:n,"stroke-width":s+"px"}),n=d(r=l(this.hash,39-t)),e=h(r),this.svg.circle(i*a+i*s+(a+s)/2,o*a+o*s+(a+s)/2,a/4,{fill:e,"fill-opacity":n}),t+=1},p.prototype.geoOverlappingRings=function(){var e,t,n,r,i,o,a=f(l(this.hash,0),0,15,10,60),s=a/4;for(this.svg.setWidth(6*a),this.svg.setHeight(6*a),e=0,o=0;o<6;o++)for(i=0;i<6;i++)t=d(r=l(this.hash,e)),n={fill:"none",stroke:h(r),opacity:t,"stroke-width":s+"px"},this.svg.circle(i*a,o*a,a-s/2,n),0===i&&this.svg.circle(6*a,o*a,a-s/2,n),0===o&&this.svg.circle(i*a,6*a,a-s/2,n),0===i&&0===o&&this.svg.circle(6*a,6*a,a-s/2,n),e+=1},p.prototype.geoTriangles=function(){var e,t,n,r,i,o,a,s,c=f(l(this.hash,0),0,15,15,80),p=c/2*Math.sqrt(3),y=[s=c/2,0,c,p,0,p,s,0].join(",");for(this.svg.setWidth(3*c),this.svg.setHeight(6*p),e=0,a=0;a<6;a++)for(o=0;o<6;o++)t=d(i=l(this.hash,e)),r={fill:h(i),"fill-opacity":t,stroke:u,"stroke-opacity":.02},n=a%2==0?180*(o%2==0):180*(o%2!=0),this.svg.polyline(y,r).transform({translate:[o*c*.5-c/2,p*a],rotate:[n,c/2,p/2]}),0===o&&this.svg.polyline(y,r).transform({translate:[6*c*.5-c/2,p*a],rotate:[n,c/2,p/2]}),e+=1},p.prototype.geoDiamonds=function(){var e,t,n,r,i,o,a,s=f(l(this.hash,0),0,15,10,50),c=f(l(this.hash,1),0,15,10,50),p=[s/2,0,s,c/2,s/2,c,0,c/2].join(",");for(this.svg.setWidth(6*s),this.svg.setHeight(3*c),t=0,a=0;a<6;a++)for(o=0;o<6;o++)n=d(i=l(this.hash,t)),r={fill:h(i),"fill-opacity":n,stroke:u,"stroke-opacity":.02},e=a%2==0?0:s/2,this.svg.polyline(p,r).transform({translate:[o*s-s/2+e,c/2*a-c/2]}),0===o&&this.svg.polyline(p,r).transform({translate:[6*s-s/2+e,c/2*a-c/2]}),0===a&&this.svg.polyline(p,r).transform({translate:[o*s-s/2+e,c/2*6-c/2]}),0===o&&0===a&&this.svg.polyline(p,r).transform({translate:[6*s-s/2+e,c/2*6-c/2]}),t+=1},p.prototype.geoNestedSquares=function(){var e,t,n,r,i,o,a,s=f(l(this.hash,0),0,15,4,12),c=7*s;for(this.svg.setWidth((c+s)*6+6*s),this.svg.setHeight((c+s)*6+6*s),t=0,a=0;a<6;a++)for(o=0;o<6;o++)n=d(i=l(this.hash,t)),r={fill:"none",stroke:h(i),opacity:n,"stroke-width":s+"px"},this.svg.rect(o*c+o*s*2+s/2,a*c+a*s*2+s/2,c,c,r),n=d(i=l(this.hash,39-t)),r={fill:"none",stroke:h(i),opacity:n,"stroke-width":s+"px"},this.svg.rect(o*c+o*s*2+s/2+2*s,a*c+a*s*2+s/2+2*s,3*s,3*s,r),t+=1},p.prototype.geoMosaicSquares=function(){var e,t,n,r=f(l(this.hash,0),0,15,15,50);for(this.svg.setWidth(8*r),this.svg.setHeight(8*r),e=0,n=0;n<4;n++)for(t=0;t<4;t++)t%2==0?n%2==0?m(this.svg,t*r*2,n*r*2,r,l(this.hash,e)):b(this.svg,t*r*2,n*r*2,r,[l(this.hash,e),l(this.hash,e+1)]):n%2==0?b(this.svg,t*r*2,n*r*2,r,[l(this.hash,e),l(this.hash,e+1)]):m(this.svg,t*r*2,n*r*2,r,l(this.hash,e)),e+=1},p.prototype.geoPlaid=function(){var e,t,n,r,i,o,a,s=0,c=0;for(t=0;t<36;)s+=l(this.hash,t)+5,n=d(a=l(this.hash,t+1)),e=h(a),i=a+5,this.svg.rect(0,s,"100%",i,{opacity:n,fill:e}),s+=i,t+=2;for(t=0;t<36;)c+=l(this.hash,t)+5,n=d(a=l(this.hash,t+1)),e=h(a),o=a+5,this.svg.rect(c,0,o,"100%",{opacity:n,fill:e}),c+=o,t+=2;this.svg.setWidth(c),this.svg.setHeight(s)},p.prototype.geoTessellation=function(){var e,t,n,r,i=f(l(this.hash,0),0,15,5,40),o=i*Math.sqrt(3),a=2*i,s=i/2*Math.sqrt(3),c=[0,0,s,i/2,0,i,0,0].join(","),p=3*i+2*s,y=2*o+2*i;for(this.svg.setWidth(p),this.svg.setHeight(y),e=0;e<20;e++)switch(t=d(r=l(this.hash,e)),n={stroke:u,"stroke-opacity":.02,fill:h(r),"fill-opacity":t,"stroke-width":1},e){case 0:this.svg.rect(-i/2,-i/2,i,i,n),this.svg.rect(p-i/2,-i/2,i,i,n),this.svg.rect(-i/2,y-i/2,i,i,n),this.svg.rect(p-i/2,y-i/2,i,i,n);break;case 1:this.svg.rect(a/2+s,o/2,i,i,n);break;case 2:this.svg.rect(-i/2,y/2-i/2,i,i,n),this.svg.rect(p-i/2,y/2-i/2,i,i,n);break;case 3:this.svg.rect(a/2+s,1.5*o+i,i,i,n);break;case 4:this.svg.polyline(c,n).transform({translate:[i/2,-i/2],rotate:[0,i/2,s/2]}),this.svg.polyline(c,n).transform({translate:[i/2,y- -i/2],rotate:[0,i/2,s/2],scale:[1,-1]});break;case 5:this.svg.polyline(c,n).transform({translate:[p-i/2,-i/2],rotate:[0,i/2,s/2],scale:[-1,1]}),this.svg.polyline(c,n).transform({translate:[p-i/2,y+i/2],rotate:[0,i/2,s/2],scale:[-1,-1]});break;case 6:this.svg.polyline(c,n).transform({translate:[p/2+i/2,o/2]});break;case 7:this.svg.polyline(c,n).transform({translate:[p-p/2-i/2,o/2],scale:[-1,1]});break;case 8:this.svg.polyline(c,n).transform({translate:[p/2+i/2,y-o/2],scale:[1,-1]});break;case 9:this.svg.polyline(c,n).transform({translate:[p-p/2-i/2,y-o/2],scale:[-1,-1]});break;case 10:this.svg.polyline(c,n).transform({translate:[i/2,y/2-i/2]});break;case 11:this.svg.polyline(c,n).transform({translate:[p-i/2,y/2-i/2],scale:[-1,1]});break;case 12:this.svg.rect(0,0,i,i,n).transform({translate:[i/2,i/2],rotate:[-30,0,0]});break;case 13:this.svg.rect(0,0,i,i,n).transform({scale:[-1,1],translate:[-p+i/2,i/2],rotate:[-30,0,0]});break;case 14:this.svg.rect(0,0,i,i,n).transform({translate:[i/2,y/2-i/2-i],rotate:[30,0,i]});break;case 15:this.svg.rect(0,0,i,i,n).transform({scale:[-1,1],translate:[-p+i/2,y/2-i/2-i],rotate:[30,0,i]});break;case 16:this.svg.rect(0,0,i,i,n).transform({scale:[1,-1],translate:[i/2,-y+y/2-i/2-i],rotate:[30,0,i]});break;case 17:this.svg.rect(0,0,i,i,n).transform({scale:[-1,-1],translate:[-p+i/2,-y+y/2-i/2-i],rotate:[30,0,i]});break;case 18:this.svg.rect(0,0,i,i,n).transform({scale:[1,-1],translate:[i/2,-y+i/2],rotate:[-30,0,0]});break;case 19:this.svg.rect(0,0,i,i,n).transform({scale:[-1,-1],translate:[-p+i/2,-y+i/2],rotate:[-30,0,0]})}}},5794:function(e){"use strict";function t(){var e=0x67452301,t=0xefcdab89,n=0x98badcfe,r=0x10325476,i=0xc3d2e1f0,o=new Uint32Array(80),a=0,s=24,c=0;function u(){for(var s,c,u=16;u<80;u++){var l=o[u-3]^o[u-8]^o[u-14]^o[u-16];o[u]=l<<1|l>>>31}var f=e,h=t,d=n,p=r,y=i;for(u=0;u<80;u++){u<20?(s=p^h&(d^p),c=0x5a827999):u<40?(s=h^d^p,c=0x6ed9eba1):u<60?(s=h&d|p&(h|d),c=0x8f1bbcdc):(s=h^d^p,c=0xca62c1d6);var v=(f<<5|f>>>27)+s+y+c+(0|o[u]);y=p,p=d,d=h<<30|h>>>2,h=f,f=v}for(u=0,e=e+f|0,t=t+h|0,n=n+d|0,r=r+p|0,i=i+y|0,a=0;u<16;u++)o[u]=0}function l(e){o[a]|=(255&e)<<s,s?s-=8:(a++,s=24),16===a&&u()}function f(e){for(var t="",n=28;n>=0;n-=4)t+=(e>>n&15).toString(16);return t}return{update:function(e){if("string"==typeof e){var t=e.length;c+=8*t;for(var n=0;n<t;n++)l(e.charCodeAt(n));return}var r=e.length;c+=8*r;for(var i=0;i<r;i++)l(e[i])},digest:function(){l(128),(a>14||14===a&&s<24)&&u(),a=14,s=24,l(0),l(0),l(c>0xffffffffff?c/0x10000000000:0),l(c>0xffffffff?c/0x100000000:0);for(var o=24;o>=0;o-=8)l(c>>o);return f(e)+f(t)+f(n)+f(r)+f(i)}}}e.exports=function(e){if(void 0===e)return t();var n=t();return n.update(e),n.digest()}},5107:function(e,t,n){"use strict";var r=n(5884),i=n(531);function o(){return this.width=100,this.height=100,this.svg=i("svg"),this.context=[],this.setAttributes(this.svg,{xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height}),this}e.exports=o,o.prototype.currentContext=function(){return this.context[this.context.length-1]||this.svg},o.prototype.end=function(){return this.context.pop(),this},o.prototype.currentNode=function(){var e=this.currentContext();return e.lastChild||e},o.prototype.transform=function(e){return this.currentNode().setAttribute("transform",Object.keys(e).map(function(t){return t+"("+e[t].join(",")+")"}).join(" ")),this},o.prototype.setAttributes=function(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})},o.prototype.setWidth=function(e){this.svg.setAttribute("width",Math.floor(e))},o.prototype.setHeight=function(e){this.svg.setAttribute("height",Math.floor(e))},o.prototype.toString=function(){return this.svg.toString()},o.prototype.rect=function(e,t,n,o,a){var s=this;if(Array.isArray(e))return e.forEach(function(e){s.rect.apply(s,e.concat(a))}),this;var c=i("rect");return this.currentContext().appendChild(c),this.setAttributes(c,r({x:e,y:t,width:n,height:o},a)),this},o.prototype.circle=function(e,t,n,o){var a=i("circle");return this.currentContext().appendChild(a),this.setAttributes(a,r({cx:e,cy:t,r:n},o)),this},o.prototype.path=function(e,t){var n=i("path");return this.currentContext().appendChild(n),this.setAttributes(n,r({d:e},t)),this},o.prototype.polyline=function(e,t){var n=this;if(Array.isArray(e))return e.forEach(function(e){n.polyline(e,t)}),this;var o=i("polyline");return this.currentContext().appendChild(o),this.setAttributes(o,r({points:e},t)),this},o.prototype.group=function(e){var t=i("g");return this.currentContext().appendChild(t),this.context.push(t),this.setAttributes(t,r({},e)),this}},531:function(e){"use strict";var t=e.exports=function(e){return(null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](this):this instanceof t)?(this.tagName=e,this.attributes=Object.create(null),this.children=[],this.lastChild=null,this):new t(e)};t.prototype.appendChild=function(e){return this.children.push(e),this.lastChild=e,this},t.prototype.setAttribute=function(e,t){return this.attributes[e]=t,this},t.prototype.toString=function(){var e=this;return["<",e.tagName,Object.keys(e.attributes).map(function(t){return[" ",t,'="',e.attributes[t],'"'].join("")}).join(""),">",e.children.map(function(e){return e.toString()}).join(""),"</",e.tagName,">"].join("")}},5884:function(e){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(e){if(!e||"[object Object]"!==n.call(e)||e.nodeType||e.setInterval)return!1;var r,i=t.call(e,"constructor"),o=t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)}e.exports=function e(){var t,n,i,o,a,s,c,u=arguments[0]||{},l=1,f=arguments.length,h=!1;for("boolean"==typeof u&&(h=u,u=arguments[1]||{},l=2),(void 0===u?"undefined":(t=u)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)!="object"&&"function"!=typeof u&&(u={});l<f;l++)if(null!=(n=arguments[l]))for(i in n)o=u[i],u!==(a=n[i])&&(h&&a&&(r(a)||(s=Array.isArray(a)))?(s?(s=!1,c=o&&Array.isArray(o)?o:[]):c=o&&r(o)?o:{},u[i]=e(h,c,a)):void 0!==a&&(u[i]=a));return u}},9011:function(e,t,n){"use strict";var r=n(7362);r.createRoot,r.hydrateRoot},9245:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Jg:()=>c});var i=n(5),o=e([i]);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}i=(o.then?(await o)():o)[0];var s={flags:function(){var e={},t=!0,n=!1,r=void 0;try{for(var i,o=Object.keys(localStorage)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;if(a.startsWith("openmrs:feature-flag:")){var s=a.replace("openmrs:feature-flag:",""),c=JSON.parse(localStorage.getItem("openmrs:feature-flag-meta:".concat(s))||"{}");e[s]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({enabled:"true"===localStorage.getItem(a)},c)}}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}return e}()},c=(0,i.zJ)("feature-flags",s);c.subscribe(function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=Object.entries(e.flags)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var s,c=(s=i.value,function(e){if(Array.isArray(e))return e}(s)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}(s,2)||function(e,t){if(e){if("string"==typeof e)return a(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}}(s,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],l=c[1];localStorage.setItem("openmrs:feature-flag:".concat(u),l.enabled.toString()),localStorage.setItem("openmrs:feature-flag-meta:".concat(u),JSON.stringify({label:l.label,description:l.description}))}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}}),r()}catch(e){r(e)}})},4874:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Jg:()=>i.Jg});var i=n(9245),o=e([i]);i=(o.then?(await o)():o)[0],r()}catch(e){r(e)}})},541:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9245),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},6747:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(208),i=n(3009),o=n(6211);n(1525);var a=n(1871),s=n(541),c=n(2142),u=n(6887),l=n(9711),f=n(7418),h=n(3487),d=n(1556),p=e([r,i,o,a,s,c,u,l,f,h,d]);[r,i,o,a,s,c,u,l,f,h,d]=p.then?(await p)():p,t()}catch(e){t(e)}})},8968:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=n(1950),o=n(5376);n(1525);var a=n(658),s=n(4874),c=n(2189),u=n(2295),l=n(957),f=n(5),h=n(2894),d=n(1285),p=e([r,i,o,a,s,c,u,l,f,h,d]);[r,i,o,a,s,c,u,l,f,h,d]=p.then?(await p)():p,t()}catch(e){t(e)}})},464:function(){},3670:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(1950),i=n(3597),o=e([r]);(r=(o.then?(await o)():o)[0]).Dy.String,r.z2.oneOf(i.l),r.Dy.String,r.z2.oneOf(i.l),r.Dy.String,r.Dy.String,r.Dy.String,r.Dy.Array,r.Dy.UUID,r.Dy.String,r.Dy.ConceptUuid,r.Dy.Object,r.z2.oneOf(["buddhist","chinese","coptic","dangi","ethioaa","ethiopic","gregory","hebrew","indian","islamic","islamic-umalqura","islamic-tbla","islamic-civil","islamic-rgsa","iso8601","japanese","persian","roc","islamicc"]),r.Dy.Object,r.Dy.String,t()}catch(e){t(e)}})},9681:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(271);var i=n(957),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},7111:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9681),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},9960:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(271);var i=n(7987),o=n(6747),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},6493:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(957),o=n(4813),a=n(7063),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},3055:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7032),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},3823:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},5436:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(4813),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},3479:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(2306),o=n(7032),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},7542:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(271);var i=n(957),o=n(7032),a=n(7063),s=n(2306),c=n(3479),u=n(6493),l=n(3823),f=n(3055),h=n(5436),d=e([r,i,o,a,s,c,u,l,f,h]);[r,i,o,a,s,c,u,l,f,h]=d.then?(await d)():d,t()}catch(e){t(e)}})},4813:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},6900:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7542),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2306:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],(0,r.createContext)(null),t()}catch(e){t(e)}})},7063:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(1338),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},251:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3126),i=n(957),o=n(810),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},755:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(251),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2182:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(3126),o=n(1285),a=n(957),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},6877:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(2182),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2363:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(271);var i=n(957),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},7032:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(2363),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2894:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(464);var r=n(3670),i=n(7111),o=n(9960),a=n(6900),s=n(755),c=n(6877),u=n(2363),l=n(2471),f=n(6166),h=n(4050),d=n(953),p=n(8740),y=n(420),v=n(7668),b=n(3205),m=n(1374),g=n(5124),w=n(1119),x=n(5514),E=n(7783),O=n(7221),S=n(7360),k=n(400),j=e([r,i,o,a,s,c,u,l,f,h,d,p,y,v,b,m,g,w,x,E,O,S,k]);[r,i,o,a,s,c,u,l,f,h,d,p,y,v,b,m,g,w,x,E,O,S,k]=j.then?(await j)():j,t()}catch(e){t(e)}})},2471:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(3126),o=n(957),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},6166:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3669),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},3669:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(6747),o=n(7987),a=n(3126),s=n(1616),c=e([r,i,o,a,s]);[r,i,o,a,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},1616:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7987),o=n(9847),a=n(1448),s=n(6997),c=n(957),u=n(953),l=e([r,i,o,a,s,c,u]);[r,i,o,a,s,c,u]=l.then?(await l)():l,t()}catch(e){t(e)}})},4050:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7134),i=n(5),o=n(658);n(1525);var a=e([r,o,i]);[r,o,i]=a.then?(await a)():a,(0,i.jk)("modalState",{modalContainer:null,modalStack:[]}),window.getComputedStyle(document.body).overflow,t()}catch(e){t(e)}})},8740:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(3126),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},9875:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8740),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},1226:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(420),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},953:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(8999),o=n(1226),a=n(9875);n(9011);var s=e([r,o,a,i]);[r,o,a,i]=s.then?(await s)():s,new i.Subject,new i.Subject,t()}catch(e){t(e)}})},420:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(3126),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},7668:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6118),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},6118:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(271);var i=n(1950),o=n(1285),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},6530:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(957),o=n(1285),a=n(9681),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},7225:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(271);var i=n(3126),o=n(1285),a=n(957),s=n(5641),c=n(4330),u=n(6287),l=e([r,i,o,a,s,c,u]);[r,i,o,a,s,c,u]=l.then?(await l)():l,t()}catch(e){t(e)}})},5783:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(3126),o=n(1285),a=n(3487),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},5641:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(9847),o=n(6997),a=n(957),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},4330:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),o=n(6997),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},6287:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=n(5941),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},3205:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(2565),i=n(5557),o=n(6530),a=n(5783),s=n(7225),c=e([r,i,o,a,s]);[r,i,o,a,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},5557:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(3126),o=n(957),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},2565:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(271);var i=n(957),o=n(1285),a=n(7032),s=n(5557),c=e([r,i,o,a,s]);[r,i,o,a,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},1374:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(1774),i=n(1858),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},1774:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(3270);var i=n(3126),o=n(7987),a=n(1858),s=n(3259),c=e([r,i,o,a,s]);[r,i,o,a,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},3259:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7987),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},1858:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5941),i=n(6997),o=n(957),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},5124:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(271);var i=n(957),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},3487:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(953),i=n(7221),o=n(4050),a=n(2203),s=n(5514),c=n(2471),u=n(9960),l=n(6877),f=n(6900),h=n(1119),d=n(3205),p=n(1374),y=n(7111),v=n(2363),b=n(7668),m=n(5124),g=n(6166),w=n(755),x=e([r,i,o,a,s,c,u,l,f,h,d,p,y,v,b,m,g,w]);[r,i,o,a,s,c,u,l,f,h,d,p,y,v,b,m,g,w]=x.then?(await x)():x,t()}catch(e){t(e)}})},1119:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(134),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},134:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(3126),o=n(957),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},9499:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7783),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},5514:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(9011);var i=n(8999),o=n(9499),a=e([r,o,i]);[r,o,i]=a.then?(await a)():a,new i.Subject,t()}catch(e){t(e)}})},7783:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(271);var i=n(3126),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},1772:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7360),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},7221:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(9011);var i=n(8999),o=n(1772),a=e([r,o,i]);[r,o,i]=a.then?(await a)():a,new i.Subject,t()}catch(e){t(e)}})},7360:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(3126),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},3597:function(e,t,n){"use strict";n.d(t,{l:()=>r});var r=["red","magenta","purple","blue","teal","cyan","gray","green","warm-gray","cool-gray","high-contrast","outline"]},6665:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(271);var i=n(3126),o=n(957),a=n(200),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},7334:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(271);var i=n(957),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},8540:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7987);n(271);var o=n(3126),a=n(957),s=n(1285),c=n(7032),u=n(4018),l=n(200),f=n(76),h=n(7334),d=e([r,i,o,a,s,c,u,l,f,h]);[r,i,o,a,s,c,u,l,f,h]=d.then?(await d)():d,t()}catch(e){t(e)}})},76:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7134),o=n(6914),a=n(3126),s=n(1285),c=n(3030),u=e([r,i,o,a,s,c]);[r,i,o,a,s,c]=u.then?(await u)():u,t()}catch(e){t(e)}})},400:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6665),i=n(7334),o=n(8540),a=n(4018),s=n(200),c=e([r,i,o,a,s]);[r,i,o,a,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},4018:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7987),o=n(3126),a=n(2189);n(1525);var s=n(200),c=e([r,i,o,a,s]);[r,i,o,a,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},2203:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6665),i=n(8540),o=n(200),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},3030:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(200),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},200:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(658),o=n(2189),a=n(5),s=n(1285),c=n(957),u=e([r,i,o,s,c,a]);[r,i,o,s,c,a]=u.then?(await u)():u,(0,a.jk)("workspace",{context:"",openWorkspaces:[],prompt:null,workspaceWindowState:"normal",workspaceGroup:void 0}),t()}catch(e){t(e)}})},1338:function(e){"use strict";e.exports=import("dayjs").then(function(e){return e})},2021:function(e){"use strict";e.exports=import("i18next").then(function(e){return e})},810:function(e){"use strict";e.exports=import("react").then(function(e){return e})},7362:function(e){"use strict";e.exports=import("react-dom").then(function(e){return e})},7987:function(e){"use strict";e.exports=import("react-i18next").then(function(e){return e})},8999:function(e){"use strict";e.exports=import("rxjs").then(function(e){return e})},7134:function(e){"use strict";e.exports=import("single-spa").then(function(e){return e})},5941:function(e){"use strict";e.exports=import("swr").then(function(e){return e})},9847:function(e){"use strict";e.exports=import("swr/immutable").then(function(e){return e})},1448:function(e){"use strict";e.exports=import("swr/infinite").then(function(e){return e})},271:function(e){function t(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(e=i(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if((void 0===e?"undefined":t(e))!=="object")return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var o="";for(var a in e)n.call(e,a)&&e[a]&&(o=i(o,a));return o}(a)))}return e}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):"function"==typeof define&&"object"===t(define.amd)&&define.amd?define("classnames",[],function(){return r}):window.classNames=r}()},4197:function(e,t,n){"use strict";let r;n.d(t,{ZP:()=>nu});let i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,o=Object.keys,a=Array.isArray;function s(e,t){return"object"!=typeof t||o(t).forEach(function(n){e[n]=t[n]}),e}"undefined"==typeof Promise||i.Promise||(i.Promise=Promise);let c=Object.getPrototypeOf,u={}.hasOwnProperty;function l(e,t){return u.call(e,t)}function f(e,t){"function"==typeof t&&(t=t(c(e))),("undefined"==typeof Reflect?o:Reflect.ownKeys)(t).forEach(n=>{d(e,n,t[n])})}let h=Object.defineProperty;function d(e,t,n,r){h(e,t,s(n&&l(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function p(e){return{from:function(t){return e.prototype=Object.create(t.prototype),d(e.prototype,"constructor",e),{extend:f.bind(null,e.prototype)}}}}let y=Object.getOwnPropertyDescriptor;function v(e,t){let n;return y(e,t)||(n=c(e))&&v(n,t)}let b=[].slice;function m(e,t,n){return b.call(e,t,n)}function g(e,t){return t(e)}function w(e){if(!e)throw Error("Assertion Failed")}function x(e){i.setImmediate?setImmediate(e):setTimeout(e,0)}function E(e,t){return e.reduce((e,n,r)=>{var i=t(n,r);return i&&(e[i[0]]=i[1]),e},{})}function O(e,t){if(l(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,i=t.length;r<i;++r){var o=O(e,t[r]);n.push(o)}return n}var a=t.indexOf(".");if(-1!==a){var s=e[t.substr(0,a)];return void 0===s?void 0:O(s,t.substr(a+1))}}function S(e,t,n){if(e&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){w("string"!=typeof n&&"length"in n);for(var r=0,i=t.length;r<i;++r)S(e,t[r],n[r])}else{var o=t.indexOf(".");if(-1!==o){var s=t.substr(0,o),c=t.substr(o+1);if(""===c)void 0===n?a(e)&&!isNaN(parseInt(s))?e.splice(s,1):delete e[s]:e[s]=n;else{var u=e[s];u&&l(e,s)||(u=e[s]={}),S(u,c,n)}}else void 0===n?a(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function k(e){var t={};for(var n in e)l(e,n)&&(t[n]=e[n]);return t}let j=[].concat;function A(e){return j.apply([],e)}let P="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(A([8,16,32,64].map(e=>["Int","Uint","Float"].map(t=>t+e+"Array")))).filter(e=>i[e]),C=P.map(e=>i[e]);E(P,e=>[e,!0]);let D=null;function I(e){D="undefined"!=typeof WeakMap&&new WeakMap;let t=function e(t){if(!t||"object"!=typeof t)return t;let n=D&&D.get(t);if(n)return n;if(a(t)){n=[],D&&D.set(t,n);for(var r=0,i=t.length;r<i;++r)n.push(e(t[r]))}else if(C.indexOf(t.constructor)>=0)n=t;else{let r=c(t);for(var o in n=r===Object.prototype?{}:Object.create(r),D&&D.set(t,n),t)l(t,o)&&(n[o]=e(t[o]))}return n}(e);return D=null,t}let{toString:T}={};function R(e){return T.call(e).slice(8,-1)}let N="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",B="symbol"==typeof N?function(e){var t;return null!=e&&(t=e[N])&&t.apply(e)}:function(){return null},M={};function K(e){var t,n,r,i;if(1==arguments.length){if(a(e))return e.slice();if(this===M&&"string"==typeof e)return[e];if(i=B(e)){for(n=[];!(r=i.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=Array(t);t--;)n[t]=arguments[t];return n}let L="undefined"!=typeof Symbol?e=>"AsyncFunction"===e[Symbol.toStringTag]:()=>!1;var U="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href),F=()=>!0;let q=!Error("").stack;function V(){if(q)try{throw V.arguments,Error()}catch(e){return e}return Error()}function W(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(F).map(e=>"\n"+e).join("")):""}var Z=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],z=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(Z),$={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"};function H(e,t){this._e=V(),this.name=e,this.message=t}function X(e,t){return e+". Errors: "+Object.keys(t).map(e=>t[e].toString()).filter((e,t,n)=>n.indexOf(e)===t).join("\n")}function J(e,t,n,r){this._e=V(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=X(e,t)}function G(e,t){this._e=V(),this.name="BulkError",this.failures=Object.keys(t).map(e=>t[e]),this.failuresByPos=t,this.message=X(e,t)}p(H).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+W(this._e,2))}},toString:function(){return this.name+": "+this.message}}),p(J).from(H),p(G).from(H);var Q=z.reduce((e,t)=>(e[t]=t+"Error",e),{}),Y=z.reduce((e,t)=>{var n=t+"Error";function r(e,r){this._e=V(),this.name=n,e?"string"==typeof e?(this.message=`${e}${r?"\n "+r:""}`,this.inner=r||null):"object"==typeof e&&(this.message=`${e.name} ${e.message}`,this.inner=e):(this.message=$[t]||n,this.inner=null)}return p(r).from(H),e[t]=r,e},{});Y.Syntax=SyntaxError,Y.Type=TypeError,Y.Range=RangeError;var ee=Z.reduce((e,t)=>(e[t+"Error"]=Y[t],e),{}),et=z.reduce((e,t)=>(-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=Y[t]),e),{});function en(){}function er(e){return e}function ei(e,t){return null==e||e===er?t:function(n){return t(e(n))}}function eo(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function ea(e,t){return e===en?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?eo(r,this.onsuccess):r),i&&(this.onerror=this.onerror?eo(i,this.onerror):i),void 0!==o?o:n}}function es(e,t){return e===en?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?eo(n,this.onsuccess):n),r&&(this.onerror=this.onerror?eo(r,this.onerror):r)}}function ec(e,t){return e===en?t:function(n){var r=e.apply(this,arguments);s(n,r);var i=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?eo(i,this.onsuccess):i),o&&(this.onerror=this.onerror?eo(o,this.onerror):o),void 0===r?void 0===a?void 0:a:s(r,a)}}function eu(e,t){return e===en?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function el(e,t){return e===en?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,i=arguments.length,o=Array(i);i--;)o[i]=arguments[i];return n.then(function(){return t.apply(r,o)})}return t.apply(this,arguments)}}et.ModifyError=J,et.DexieError=H,et.BulkError=G;var ef={};let[eh,ed,ep]="undefined"==typeof Promise?[]:(()=>{let e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,c(e),e];let t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,c(t),e]})(),ey=ed&&ed.then,ev=eh&&eh.constructor,eb=!!ep;var em=!1,eg=ep?()=>{ep.then(eU)}:i.setImmediate?setImmediate.bind(null,eU):i.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver(()=>{eU(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(eU,0)},ew=function(e,t){eP.push([e,t]),ex&&(eg(),ex=!1)},e_=!0,ex=!0,eE=[],eO=[],eS=null,ek=er,ej={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:e4,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(e=>{try{e4(e[0],e[1])}catch(e){}})}},eA=ej,eP=[],eC=0,eD=[];function eI(e){if("object"!=typeof this)throw TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=en,this._lib=!1;var t=this._PSD=eA;if(U&&(this._stackHolder=V(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==ef)throw TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&eN(this,this._value))}this._state=null,this._value=null,++t.ref,function e(t,n){try{n(n=>{if(null===t._state){if(n===t)throw TypeError("A promise cannot be resolved with itself.");var r=t._lib&&eF();n&&"function"==typeof n.then?e(t,(e,t)=>{n instanceof eI?n._then(e,t):n.then(e,t)}):(t._state=!0,t._value=n,eB(t)),r&&eq()}},eN.bind(null,t))}catch(e){eN(t,e)}}(this,e)}let eT={get:function(){var e=eA,t=eJ;function n(n,r){var i=!e.global&&(e!==eA||t!==eJ);let o=i&&!e0();var a=new eI((t,a)=>{eM(this,new eR(e9(n,e,i,o),e9(r,e,i,o),t,a,e))});return U&&eL(a,this),a}return n.prototype=ef,n},set:function(e){d(this,"then",e&&e.prototype===ef?eT:{get:function(){return e},set:eT.set})}};function eR(e,t,n,r,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=i}function eN(e,t){if(eO.push(t),null===e._state){var n=e._lib&&eF();t=ek(t),e._state=!1,e._value=t,U&&null!==t&&"object"==typeof t&&!t._promise&&function(e,t,n){try{e.apply(null,void 0)}catch(e){}}(()=>{var n=v(t,"stack");t._promise=e,d(t,"stack",{get:()=>em?n&&(n.get?n.get.apply(t):n.value):e.stack})}),eE.some(t=>t._value===e._value)||eE.push(e),eB(e),n&&eq()}}function eB(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)eM(e,t[n]);var i=e._PSD;--i.ref||i.finalize(),0===eC&&(++eC,ew(()=>{0==--eC&&eV()},[]))}function eM(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++eC,ew(eK,[n,e,t])}else e._listeners.push(t)}function eK(e,t,n){try{eS=t;var r,i=t._value;t._state?r=e(i):(eO.length&&(eO=[]),r=e(i),-1===eO.indexOf(i)&&function(e){for(var t=eE.length;t;)if(eE[--t]._value===e._value)return void eE.splice(t,1)}(t)),n.resolve(r)}catch(e){n.reject(e)}finally{eS=null,0==--eC&&eV(),--n.psd.ref||n.psd.finalize()}}function eL(e,t){var n=t?t._numPrev+1:0;n<100&&(e._prev=t,e._numPrev=n)}function eU(){eF()&&eq()}function eF(){var e=e_;return e_=!1,ex=!1,e}function eq(){var e,t,n;do for(;eP.length>0;)for(e=eP,eP=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}while(eP.length>0);e_=!0,ex=!0}function eV(){var e=eE;eE=[],e.forEach(e=>{e._PSD.onunhandled.call(null,e._value,e)});for(var t=eD.slice(0),n=t.length;n;)t[--n]()}function eW(e){return new eI(ef,!1,e)}function eZ(e,t){var n=eA;return function(){var r=eF(),i=eA;try{return e5(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{e5(i,!1),r&&eq()}}}f(eI.prototype,{then:eT,_then:function(e,t){eM(this,new eR(null,null,e,t,eA))},catch:function(e){if(1==arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"==typeof t?this.then(null,e=>e instanceof t?n(e):eW(e)):this.then(null,e=>e&&e.name===t?n(e):eW(e))},finally:function(e){return this.then(t=>(e(),t),t=>(e(),eW(t)))},stack:{get:function(){if(this._stack)return this._stack;try{em=!0;var e=(function e(t,n,r){if(n.length===r)return n;var i="";if(!1===t._state){var o,a,s=t._value;null!=s?(o=s.name||"Error",a=s.message||s,i=W(s,0)):(o=s,a=""),n.push(o+(a?": "+a:"")+i)}return U&&((i=W(t._stackHolder,2))&&-1===n.indexOf(i)&&n.push(i),t._prev&&e(t._prev,n,r)),n})(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{em=!1}}},timeout:function(e,t){return e<1/0?new eI((n,r)=>{var i=setTimeout(()=>r(new Y.Timeout(t)),e);this.then(n,r).finally(clearTimeout.bind(null,i))}):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&d(eI.prototype,Symbol.toStringTag,"Dexie.Promise"),ej.env=e6(),f(eI,{all:function(){var e=K.apply(null,arguments).map(e1);return new eI(function(t,n){0===e.length&&t([]);var r=e.length;e.forEach((i,o)=>eI.resolve(i).then(n=>{e[o]=n,--r||t(e)},n))})},resolve:e=>{if(e instanceof eI)return e;if(e&&"function"==typeof e.then)return new eI((t,n)=>{e.then(t,n)});var t=new eI(ef,!0,e);return eL(t,eS),t},reject:eW,race:function(){var e=K.apply(null,arguments).map(e1);return new eI((t,n)=>{e.map(e=>eI.resolve(e).then(t,n))})},PSD:{get:()=>eA,set:e=>eA=e},totalEchoes:{get:()=>eJ},newPSD:eQ,usePSD:e3,scheduler:{get:()=>ew,set:e=>{ew=e}},rejectionMapper:{get:()=>ek,set:e=>{ek=e}},follow:(e,t)=>new eI((n,r)=>eQ((t,n)=>{var r=eA;r.unhandleds=[],r.onunhandled=n,r.finalize=eo(function(){var e;e=()=>{0===this.unhandleds.length?t():n(this.unhandleds[0])},eD.push(function t(){e(),eD.splice(eD.indexOf(t),1)}),++eC,ew(()=>{0==--eC&&eV()},[])},r.finalize),e()},t,n,r))}),ev&&(ev.allSettled&&d(eI,"allSettled",function(){let e=K.apply(null,arguments).map(e1);return new eI(t=>{0===e.length&&t([]);let n=e.length,r=Array(n);e.forEach((e,i)=>eI.resolve(e).then(e=>r[i]={status:"fulfilled",value:e},e=>r[i]={status:"rejected",reason:e}).then(()=>--n||t(r)))})}),ev.any&&"undefined"!=typeof AggregateError&&d(eI,"any",function(){let e=K.apply(null,arguments).map(e1);return new eI((t,n)=>{0===e.length&&n(AggregateError([]));let r=e.length,i=Array(r);e.forEach((e,o)=>eI.resolve(e).then(e=>t(e),e=>{i[o]=e,--r||n(AggregateError(i))}))})}));let ez={awaits:0,echoes:0,id:0};var e$=0,eH=[],eX=0,eJ=0,eG=0;function eQ(e,t,n,r){var i=eA,o=Object.create(i);o.parent=i,o.ref=0,o.global=!1,o.id=++eG;var a=ej.env;o.env=eb?{Promise:eI,PromiseProp:{value:eI,configurable:!0,writable:!0},all:eI.all,race:eI.race,allSettled:eI.allSettled,any:eI.any,resolve:eI.resolve,reject:eI.reject,nthen:e7(a.nthen,o),gthen:e7(a.gthen,o)}:{},t&&s(o,t),++i.ref,o.finalize=function(){--this.parent.ref||this.parent.finalize()};var c=e3(o,e,n,r);return 0===o.ref&&o.finalize(),c}function eY(){return ez.id||(ez.id=++e$),++ez.awaits,ez.echoes+=100,ez.id}function e0(){return!!ez.awaits&&(0==--ez.awaits&&(ez.id=0),ez.echoes=100*ez.awaits,!0)}function e1(e){return ez.echoes&&e&&e.constructor===ev?(eY(),e.then(e=>(e0(),e),e=>(e0(),te(e)))):e}function e2(e){++eJ,ez.echoes&&0!=--ez.echoes||(ez.echoes=ez.id=0),eH.push(eA),e5(e,!0)}function e8(){var e=eH[eH.length-1];eH.pop(),e5(e,!1)}function e5(e,t){var n,r=eA;if((t?!ez.echoes||eX++&&e===eA:!eX||--eX&&e===eA)||(n=t?e2.bind(null,e):e8,ey.call(eh,n)),e!==eA&&(eA=e,r===ej&&(ej.env=e6()),eb)){var o=ej.env.Promise,a=e.env;ed.then=a.nthen,o.prototype.then=a.gthen,(r.global||e.global)&&(Object.defineProperty(i,"Promise",a.PromiseProp),o.all=a.all,o.race=a.race,o.resolve=a.resolve,o.reject=a.reject,a.allSettled&&(o.allSettled=a.allSettled),a.any&&(o.any=a.any))}}function e6(){var e=i.Promise;return eb?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(i,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:ed.then,gthen:e.prototype.then}:{}}function e3(e,t,n,r,i){var o=eA;try{return e5(e,!0),t(n,r,i)}finally{e5(o,!1)}}function e9(e,t,n,r){return"function"!=typeof e?e:function(){var i,o=eA;n&&eY(),e5(t,!0);try{return e.apply(this,arguments)}finally{e5(o,!1),r&&(i=e0,ey.call(eh,i))}}}function e7(e,t){return function(n,r){return e.call(this,e9(n,t),e9(r,t))}}function e4(e,t){var n;try{n=t.onuncatched(e)}catch(e){}if(!1!==n)try{var r,o={promise:t,reason:e};if(i.document&&document.createEvent?((r=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),s(r,o)):i.CustomEvent&&s(r=new CustomEvent("unhandledrejection",{detail:o}),o),r&&i.dispatchEvent&&(dispatchEvent(r),!i.PromiseRejectionEvent&&i.onunhandledrejection))try{i.onunhandledrejection(r)}catch(e){}U&&r&&!r.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch(e){}}-1===(""+ey).indexOf("[native code]")&&(eY=e0=en);var te=eI.reject;let tt=String.fromCharCode(65535),tn="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",tr=[],ti="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),to=e=>!/(dexie\.js|dexie\.min\.js)/.test(e);function ta(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}let ts={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function tc(e){return"string"!=typeof e||/\./.test(e)?e=>e:t=>(void 0===t[e]&&e in t&&delete(t=I(t))[e],t)}class tu{_trans(e,t,n){let r=this._tx||eA.trans,i=this.name;function o(e,n,r){if(!r.schema[i])throw new Y.NotFound("Table "+i+" not part of transaction");return t(r.idbtrans,r)}let a=eF();try{return r&&r.db===this.db?r===eA.trans?r._promise(e,o,n):eQ(()=>r._promise(e,o,n),{trans:r,transless:eA.transless||eA}):function e(t,n,r,i){if(t.idbdb&&(t._state.openComplete||eA.letThrough||t._vip)){var o=t._createTransaction(n,r,t._dbSchema);try{o.create(),t._state.PR1398_maxLoop=3}catch(o){return o.name===Q.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>e(t,n,r,i))):te(o)}return o._promise(n,(e,t)=>eQ(()=>(eA.trans=o,i(e,t,o)))).then(e=>o._completion.then(()=>e))}if(t._state.openComplete)return te(new Y.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return te(new Y.DatabaseClosed);t.open().catch(en)}return t._state.dbReadyPromise.then(()=>e(t,n,r,i))}(this.db,e,[this.name],o)}finally{a&&eq()}}get(e,t){return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",t=>this.core.get({trans:t,key:e}).then(e=>this.hook.reading.fire(e))).then(t)}where(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(a(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);let t=o(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);let n=this.schema.indexes.concat(this.schema.primKey).filter(e=>e.compound&&t.every(t=>e.keyPath.indexOf(t)>=0)&&e.keyPath.every(e=>t.indexOf(e)>=0))[0];if(n&&this.db._maxKey!==tt)return this.where(n.name).equals(n.keyPath.map(t=>e[t]));!n&&U&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${t.join("+")}]`);let{idxByName:r}=this.schema,i=this.db._deps.indexedDB;function s(e,t){try{return 0===i.cmp(e,t)}catch(e){return!1}}let[c,u]=t.reduce(([t,n],i)=>{let o=r[i],c=e[i];return[t||o,t||!o?ta(n,o&&o.multi?e=>{let t=O(e,i);return a(t)&&t.some(e=>s(c,e))}:e=>s(c,O(e,i))):n]},[null,null]);return c?this.where(c.name).equals(e[c.keyPath]).filter(u):n?this.filter(u):this.where(t).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,a(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;let t=t=>{if(!t)return t;let n=Object.create(e.prototype);for(var r in t)if(l(t,r))try{n[r]=t[r]}catch(e){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e}defineClass(){return this.mapToClass(function(e){s(this,e)})}add(e,t){let{auto:n,keyPath:r}=this.schema.primKey,i=e;return r&&n&&(i=tc(r)(e)),this._trans("readwrite",e=>this.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[i]})).then(e=>e.numFailures?eI.reject(e.failures[0]):e.lastResult).then(t=>{if(r)try{S(e,r,t)}catch(e){}return t})}update(e,t){if("object"!=typeof e||a(e))return this.where(":id").equals(e).modify(t);{let n=O(e,this.schema.primKey.keyPath);if(void 0===n)return te(new Y.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?o(t).forEach(n=>{S(e,n,t[n])}):t(e,{value:e,primKey:n})}catch(e){}return this.where(":id").equals(n).modify(t)}}put(e,t){let{auto:n,keyPath:r}=this.schema.primKey,i=e;return r&&n&&(i=tc(r)(e)),this._trans("readwrite",e=>this.core.mutate({trans:e,type:"put",values:[i],keys:null!=t?[t]:null})).then(e=>e.numFailures?eI.reject(e.failures[0]):e.lastResult).then(t=>{if(r)try{S(e,r,t)}catch(e){}return t})}delete(e){return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"delete",keys:[e]})).then(e=>e.numFailures?eI.reject(e.failures[0]):void 0)}clear(){return this._trans("readwrite",e=>this.core.mutate({trans:e,type:"deleteRange",range:ts})).then(e=>e.numFailures?eI.reject(e.failures[0]):void 0)}bulkGet(e){return this._trans("readonly",t=>this.core.getMany({keys:e,trans:t}).then(e=>e.map(e=>this.hook.reading.fire(e))))}bulkAdd(e,t,n){let r=Array.isArray(t)?t:void 0,i=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",t=>{let{auto:n,keyPath:o}=this.schema.primKey;if(o&&r)throw new Y.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new Y.InvalidArgument("Arguments objects and keys must have the same length");let a=e.length,s=o&&n?e.map(tc(o)):e;return this.core.mutate({trans:t,type:"add",keys:r,values:s,wantResults:i}).then(({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return i?t:n;throw new G(`${this.name}.bulkAdd(): ${e} of ${a} operations failed`,r)})})}bulkPut(e,t,n){let r=Array.isArray(t)?t:void 0,i=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",t=>{let{auto:n,keyPath:o}=this.schema.primKey;if(o&&r)throw new Y.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new Y.InvalidArgument("Arguments objects and keys must have the same length");let a=e.length,s=o&&n?e.map(tc(o)):e;return this.core.mutate({trans:t,type:"put",keys:r,values:s,wantResults:i}).then(({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return i?t:n;throw new G(`${this.name}.bulkPut(): ${e} of ${a} operations failed`,r)})})}bulkDelete(e){let t=e.length;return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"delete",keys:e})).then(({numFailures:e,lastResult:n,failures:r})=>{if(0===e)return n;throw new G(`${this.name}.bulkDelete(): ${e} of ${t} operations failed`,r)})}}function tl(e){var t={},n=function(n,r){if(r){for(var i=arguments.length,o=Array(i-1);--i;)o[i-1]=arguments[i];return t[n].subscribe.apply(null,o),e}if("string"==typeof n)return t[n]};n.addEventType=s;for(var r=1,i=arguments.length;r<i;++r)s(arguments[r]);return n;function s(e,r,i){if("object"==typeof e){var c;return void o(c=e).forEach(function(e){var t=c[e];if(a(t))s(e,c[e][0],c[e][1]);else{if("asap"!==t)throw new Y.InvalidArgument("Invalid event config");var n=s(e,er,function(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];n.subscribers.forEach(function(e){x(function(){e.apply(null,t)})})})}})}r||(r=eu),i||(i=en);var u={subscribers:[],fire:i,subscribe:function(e){-1===u.subscribers.indexOf(e)&&(u.subscribers.push(e),u.fire=r(u.fire,e))},unsubscribe:function(e){u.subscribers=u.subscribers.filter(function(t){return t!==e}),u.fire=u.subscribers.reduce(r,i)}};return t[e]=n[e]=u,u}}function tf(e,t){return p(t).from({prototype:e}),t}function th(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function td(e,t){e.filter=ta(e.filter,t)}function tp(e,t,n){var r=e.replayFilter;e.replayFilter=r?()=>ta(r(),t()):t,e.justLimit=n&&!r}function ty(e,t){if(e.isPrimKey)return t.primaryKey;let n=t.getIndexByKeyPath(e.index);if(!n)throw new Y.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function tv(e,t,n){let r=ty(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function tb(e,t,n,r){let i=e.replayFilter?ta(e.filter,e.replayFilter()):e.filter;if(e.or){let o={},a=(e,n,r)=>{if(!i||i(n,r,e=>n.stop(e),e=>n.fail(e))){var a=n.primaryKey,s=""+a;"[object ArrayBuffer]"===s&&(s=""+new Uint8Array(a)),l(o,s)||(o[s]=!0,t(e,n,r))}};return Promise.all([e.or._iterate(a,n),tm(tv(e,r,n),e.algorithm,a,!e.keysOnly&&e.valueMapper)])}return tm(tv(e,r,n),ta(e.algorithm,i),t,!e.keysOnly&&e.valueMapper)}function tm(e,t,n,r){var i=eZ(r?(e,t,i)=>n(r(e),t,i):n);return e.then(e=>{if(e)return e.start(()=>{var n=()=>e.continue();t&&!t(e,e=>n=e,t=>{e.stop(t),n=en},t=>{e.fail(t),n=en})||i(e.value,e,e=>n=e),n()})})}function tg(e,t){try{let n=tw(e),r=tw(t);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 e>t?1:e<t?-1:0;case"binary":return function(e,t){let n=e.length,r=t.length,i=n<r?n:r;for(let n=0;n<i;++n)if(e[n]!==t[n])return e[n]<t[n]?-1:1;return n===r?0:n<r?-1:1}(t_(e),t_(t));case"Array":return function(e,t){let n=e.length,r=t.length,i=n<r?n:r;for(let n=0;n<i;++n){let r=tg(e[n],t[n]);if(0!==r)return r}return n===r?0:n<r?-1:1}(e,t)}}catch(e){}return NaN}function tw(e){let t=typeof e;if("object"!==t)return t;if(ArrayBuffer.isView(e))return"binary";let n=R(e);return"ArrayBuffer"===n?"binary":n}function t_(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}class tx{_read(e,t){var n=this._ctx;return n.error?n.table._trans(null,te.bind(null,n.error)):n.table._trans("readonly",e).then(t)}_write(e){var t=this._ctx;return t.error?t.table._trans(null,te.bind(null,t.error)):t.table._trans("readwrite",e,"locked")}_addAlgorithm(e){var t=this._ctx;t.algorithm=ta(t.algorithm,e)}_iterate(e,t){return tb(this._ctx,e,t,this._ctx.table.core)}clone(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&s(n,e),t._ctx=n,t}raw(){return this._ctx.valueMapper=null,this}each(e){var t=this._ctx;return this._read(n=>tb(t,e,n,t.table.core))}count(e){return this._read(e=>{let t=this._ctx,n=t.table.core;if(th(t,!0))return n.count({trans:e,query:{index:ty(t,n.schema),range:t.range}}).then(e=>Math.min(e,t.limit));var r=0;return tb(t,()=>(++r,!1),e,n).then(()=>r)}).then(e)}sortBy(e,t){let n=e.split(".").reverse(),r=n[0],i=n.length-1;function o(e,t){return t?o(e[n[t]],t-1):e[r]}var a="next"===this._ctx.dir?1:-1;function s(e,t){var n=o(e,i),r=o(t,i);return n<r?-a:n>r?a:0}return this.toArray(function(e){return e.sort(s)}).then(t)}toArray(e){return this._read(e=>{var t=this._ctx;if("next"===t.dir&&th(t,!0)&&t.limit>0){let{valueMapper:n}=t,r=ty(t,t.table.core.schema);return t.table.core.query({trans:e,limit:t.limit,values:!0,query:{index:r,range:t.range}}).then(({result:e})=>n?e.map(n):e)}{let n=[];return tb(t,e=>n.push(e),e,t.table.core).then(()=>n)}},e)}offset(e){var t=this._ctx;return e<=0||(t.offset+=e,th(t)?tp(t,()=>{var t=e;return(e,n)=>0===t||(1===t?--t:n(()=>{e.advance(t),t=0}),!1)}):tp(t,()=>{var t=e;return()=>--t<0})),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),tp(this._ctx,()=>{var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}},!0),this}until(e,t){return td(this._ctx,function(n,r,i){return!e(n.value)||(r(i),t)}),this}first(e){return this.limit(1).toArray(function(e){return e[0]}).then(e)}last(e){return this.reverse().first(e)}filter(e){var t;return td(this._ctx,function(t){return e(t.value)}),(t=this._ctx).isMatch=ta(t.isMatch,e),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.key,n)})}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.primaryKey,n)})}keys(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.key)}).then(function(){return n}).then(e)}primaryKeys(e){var t=this._ctx;if("next"===t.dir&&th(t,!0)&&t.limit>0)return this._read(e=>{var n=ty(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})}).then(({result:e})=>e).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.primaryKey)}).then(function(){return n}).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys(function(e){return e[0]}).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return td(this._ctx,function(e){var t=e.primaryKey.toString(),r=l(n,t);return n[t]=!0,!r}),this}modify(e){var t=this._ctx;return this._write(n=>{var r;if("function"==typeof e)r=e;else{var i=o(e),a=i.length;r=function(t){for(var n=!1,r=0;r<a;++r){var o=i[r],s=e[o];O(t,o)!==s&&(S(t,o,s),n=!0)}return n}}let s=t.table.core,{outbound:c,extractKey:u}=s.schema.primaryKey,l=this.db._options.modifyChunkSize||200,f=[],h=0,d=[],p=(e,t)=>{let{failures:n,numFailures:r}=t;for(let t of(h+=e-r,o(n)))f.push(n[t])};return this.clone().primaryKeys().then(i=>{let o=a=>{let f=Math.min(l,i.length-a);return s.getMany({trans:n,keys:i.slice(a,a+f),cache:"immutable"}).then(h=>{let d=[],y=[],v=c?[]:null,b=[];for(let e=0;e<f;++e){let t=h[e],n={value:I(t),primKey:i[a+e]};!1!==r.call(n,n.value,n)&&(null==n.value?b.push(i[a+e]):c||0===tg(u(t),u(n.value))?(y.push(n.value),c&&v.push(i[a+e])):(b.push(i[a+e]),d.push(n.value)))}let m=th(t)&&t.limit===1/0&&("function"!=typeof e||e===tE)&&{index:t.index,range:t.range};return Promise.resolve(d.length>0&&s.mutate({trans:n,type:"add",values:d}).then(e=>{for(let t in e.failures)b.splice(parseInt(t),1);p(d.length,e)})).then(()=>(y.length>0||m&&"object"==typeof e)&&s.mutate({trans:n,type:"put",keys:v,values:y,criteria:m,changeSpec:"function"!=typeof e&&e}).then(e=>p(y.length,e))).then(()=>(b.length>0||m&&e===tE)&&s.mutate({trans:n,type:"delete",keys:b,criteria:m}).then(e=>p(b.length,e))).then(()=>i.length>a+f&&o(a+l))})};return o(0).then(()=>{if(f.length>0)throw new J("Error modifying one or more objects",f,h,d);return i.length})})})}delete(){var e=this._ctx,t=e.range;return th(e)&&(e.isPrimKey&&!ti||3===t.type)?this._write(n=>{let{primaryKey:r}=e.table.core.schema;return e.table.core.count({trans:n,query:{index:r,range:t}}).then(r=>e.table.core.mutate({trans:n,type:"deleteRange",range:t}).then(({failures:e,lastResult:t,results:n,numFailures:i})=>{if(i)throw new J("Could not delete some values",Object.keys(e).map(t=>e[t]),r-i);return r-i}))}):this.modify(tE)}}let tE=(e,t)=>t.value=null;function tO(e,t){return e<t?-1:+(e!==t)}function tS(e,t){return e>t?-1:+(e!==t)}function tk(e,t,n){var r=e instanceof tD?new e.Collection(e):e;return r._ctx.error=n?new n(t):TypeError(t),r}function tj(e){return new e.Collection(e,()=>tC("")).limit(0)}function tA(e,t,n,r){var i,o,a,s,c,u,l,f=n.length;if(!n.every(e=>"string"==typeof e))return tk(e,"String expected.");function h(e){i="next"===e?e=>e.toUpperCase():e=>e.toLowerCase(),o="next"===e?e=>e.toLowerCase():e=>e.toUpperCase(),a="next"===e?tO:tS;var t=n.map(function(e){return{lower:o(e),upper:i(e)}}).sort(function(e,t){return a(e.lower,t.lower)});s=t.map(function(e){return e.upper}),c=t.map(function(e){return e.lower}),u=e,l="next"===e?"":r}h("next");var d=new e.Collection(e,()=>tP(s[0],c[f-1]+r));d._ondirectionchange=function(e){h(e)};var p=0;return d._addAlgorithm(function(e,n,r){var i=e.key;if("string"!=typeof i)return!1;var h=o(i);if(t(h,c,p))return!0;for(var d=null,y=p;y<f;++y){var v=function(e,t,n,r,i,o){for(var a=Math.min(e.length,r.length),s=-1,c=0;c<a;++c){var u=t[c];if(u!==r[c])return 0>i(e[c],n[c])?e.substr(0,c)+n[c]+n.substr(c+1):0>i(e[c],r[c])?e.substr(0,c)+r[c]+n.substr(c+1):s>=0?e.substr(0,s)+t[s]+n.substr(s+1):null;0>i(e[c],u)&&(s=c)}return a<r.length&&"next"===o?e+n.substr(e.length):a<e.length&&"prev"===o?e.substr(0,n.length):s<0?null:e.substr(0,s)+r[s]+n.substr(s+1)}(i,h,s[y],c[y],a,u);null===v&&null===d?p=y+1:(null===d||a(d,v)>0)&&(d=v)}return n(null!==d?function(){e.continue(d+l)}:r),!1}),d}function tP(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function tC(e){return{type:1,lower:e,upper:e}}class tD{get Collection(){return this._ctx.table.db.Collection}between(e,t,n,r){n=!1!==n,r=!0===r;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?tj(this):new this.Collection(this,()=>tP(e,t,!n,!r))}catch(e){return tk(this,tn)}}equals(e){return null==e?tk(this,tn):new this.Collection(this,()=>tC(e))}above(e){return null==e?tk(this,tn):new this.Collection(this,()=>tP(e,void 0,!0))}aboveOrEqual(e){return null==e?tk(this,tn):new this.Collection(this,()=>tP(e,void 0,!1))}below(e){return null==e?tk(this,tn):new this.Collection(this,()=>tP(void 0,e,!1,!0))}belowOrEqual(e){return null==e?tk(this,tn):new this.Collection(this,()=>tP(void 0,e))}startsWith(e){return"string"!=typeof e?tk(this,"String expected."):this.between(e,e+tt,!0,!0)}startsWithIgnoreCase(e){return""===e?this.startsWith(e):tA(this,(e,t)=>0===e.indexOf(t[0]),[e],tt)}equalsIgnoreCase(e){return tA(this,(e,t)=>e===t[0],[e],"")}anyOfIgnoreCase(){var e=K.apply(M,arguments);return 0===e.length?tj(this):tA(this,(e,t)=>-1!==t.indexOf(e),e,"")}startsWithAnyOfIgnoreCase(){var e=K.apply(M,arguments);return 0===e.length?tj(this):tA(this,(e,t)=>t.some(t=>0===e.indexOf(t)),e,tt)}anyOf(){let e=K.apply(M,arguments),t=this._cmp;try{e.sort(t)}catch(e){return tk(this,tn)}if(0===e.length)return tj(this);let n=new this.Collection(this,()=>tP(e[0],e[e.length-1]));n._ondirectionchange=n=>{t="next"===n?this._ascending:this._descending,e.sort(t)};let r=0;return n._addAlgorithm((n,i,o)=>{let a=n.key;for(;t(a,e[r])>0;)if(++r===e.length)return i(o),!1;return 0===t(a,e[r])||(i(()=>{n.continue(e[r])}),!1)}),n}notEqual(e){return this.inAnyRange([[-1/0,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){let e=K.apply(M,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return tk(this,tn)}let t=e.reduce((e,t)=>e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]],null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,t){let n=this._cmp,r=this._ascending,i=this._descending,o=this._min,a=this._max;if(0===e.length)return tj(this);if(!e.every(e=>void 0!==e[0]&&void 0!==e[1]&&0>=r(e[0],e[1])))return tk(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Y.InvalidArgument);let s=!t||!1!==t.includeLowers,c=t&&!0===t.includeUppers,u,l=r;function f(e,t){return l(e[0],t[0])}try{(u=e.reduce(function(e,t){let r=0,i=e.length;for(;r<i;++r){let i=e[r];if(0>n(t[0],i[1])&&n(t[1],i[0])>0){i[0]=o(i[0],t[0]),i[1]=a(i[1],t[1]);break}}return r===i&&e.push(t),e},[])).sort(f)}catch(e){return tk(this,tn)}let h=0,d=c?e=>r(e,u[h][1])>0:e=>r(e,u[h][1])>=0,p=s?e=>i(e,u[h][0])>0:e=>i(e,u[h][0])>=0,y=d,v=new this.Collection(this,()=>tP(u[0][0],u[u.length-1][1],!s,!c));return v._ondirectionchange=e=>{"next"===e?(y=d,l=r):(y=p,l=i),u.sort(f)},v._addAlgorithm((e,t,n)=>{for(var i=e.key;y(i);)if(++h===u.length)return t(n),!1;return!!(!d(i)&&!p(i))||(0===this._cmp(i,u[h][1])||0===this._cmp(i,u[h][0])||t(()=>{l===r?e.continue(u[h][0]):e.continue(u[h][1])}),!1)}),v}startsWithAnyOf(){let e=K.apply(M,arguments);return e.every(e=>"string"==typeof e)?0===e.length?tj(this):this.inAnyRange(e.map(e=>[e,e+tt])):tk(this,"startsWithAnyOf() only works with strings")}}function tI(e){return eZ(function(t){return tT(t),e(t.target.error),!1})}function tT(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}let tR=tl(null,"storagemutated");class tN{_lock(){return w(!eA.global),++this._reculock,1!==this._reculock||eA.global||(eA.lockOwnerFor=this),this}_unlock(){if(w(!eA.global),0==--this._reculock)for(eA.global||(eA.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{e3(e[1],e[0])}catch(e){}}return this}_locked(){return this._reculock&&eA.lockOwnerFor!==this}create(e){if(!this.mode)return this;let t=this.db.idbdb,n=this.db._state.dbOpenError;if(w(!this.idbtrans),!e&&!t)switch(n&&n.name){case"DatabaseClosedError":throw new Y.DatabaseClosed(n);case"MissingAPIError":throw new Y.MissingAPI(n.message,n);default:throw new Y.OpenFailed(n)}if(!this.active)throw new Y.TransactionInactive;return w(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):t.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=eZ(t=>{tT(t),this._reject(e.error)}),e.onabort=eZ(t=>{tT(t),this.active&&this._reject(new Y.Abort(e.error)),this.active=!1,this.on("abort").fire(t)}),e.oncomplete=eZ(()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&tR.storagemutated.fire(e.mutatedParts)}),this}_promise(e,t,n){if("readwrite"===e&&"readwrite"!==this.mode)return te(new Y.ReadOnly("Transaction is readonly"));if(!this.active)return te(new Y.TransactionInactive);if(this._locked())return new eI((r,i)=>{this._blockedFuncs.push([()=>{this._promise(e,t,n).then(r,i)},eA])});if(n)return eQ(()=>{var e=new eI((e,n)=>{this._lock();let r=t(e,n,this);r&&r.then&&r.then(e,n)});return e.finally(()=>this._unlock()),e._lib=!0,e});var r=new eI((e,n)=>{var r=t(e,n,this);r&&r.then&&r.then(e,n)});return r._lib=!0,r}_root(){return this.parent?this.parent._root():this}waitFor(e){var t=this._root();let n=eI.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then(()=>n);else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var i=t._waitingFor;return new eI((e,r)=>{n.then(n=>t._waitingQueue.push(eZ(e.bind(null,n))),e=>t._waitingQueue.push(eZ(r.bind(null,e)))).finally(()=>{t._waitingFor===i&&(t._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Y.Abort))}table(e){let t=this._memoizedTables||(this._memoizedTables={});if(l(t,e))return t[e];let n=this.schema[e];if(!n)throw new Y.NotFound("Table "+e+" not part of transaction");let r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r}}function tB(e,t,n,r,i,o,a){return{name:e,keyPath:t,unique:n,multi:r,auto:i,compound:o,src:(n&&!a?"&":"")+(r?"*":"")+(i?"++":"")+tM(t)}}function tM(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function tK(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:E(n,e=>[e.name,e])}}let tL=e=>{try{return e.only([[]]),tL=()=>[[]],[[]]}catch(e){return tL=()=>tt,tt}};function tU(e){return null==e?()=>{}:"string"==typeof e?1===e.split(".").length?t=>t[e]:t=>O(t,e):t=>O(t,e)}function tF(e){return[].slice.call(e)}let tq=0;function tV(e){return null==e?":id":"string"==typeof e?e:`[${e.join("+")}]`}function tW({_novip:e},t){let n=t.db,r=function(e,t,{IDBKeyRange:n,indexedDB:r},i){var o;return{dbcore:(o=function(e,t,n){function r(e){if(3===e.type)return null;if(4===e.type)throw Error("Cannot convert never type to IDBKeyRange");let{lower:n,upper:r,lowerOpen:i,upperOpen:o}=e;return void 0===n?void 0===r?null:t.upperBound(r,!!o):void 0===r?t.lowerBound(n,!!i):t.bound(n,r,!!i,!!o)}let{schema:i,hasGetAll:o}=function(e,t){let n=tF(e.objectStoreNames);return{schema:{name:e.name,tables:n.map(e=>t.objectStore(e)).map(e=>{let{keyPath:t,autoIncrement:n}=e,r=a(t),i=null==t,o={},s={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:i,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:tU(t)},indexes:tF(e.indexNames).map(t=>e.index(t)).map(e=>{let{name:t,unique:n,multiEntry:r,keyPath:i}=e,s={name:t,compound:a(i),keyPath:i,unique:n,multiEntry:r,extractKey:tU(i)};return o[tV(i)]=s,s}),getIndexByKeyPath:e=>o[tV(e)]};return o[":id"]=s.primaryKey,null!=t&&(o[tV(t)]=s.primaryKey),s})},hasGetAll:n.length>0&&"getAll"in t.objectStore(n[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,n),s=i.tables.map(e=>(function(e){let t=e.name;return{name:t,schema:e,mutate:function({trans:e,type:n,keys:i,values:o,range:a}){return new Promise((s,c)=>{let u;s=eZ(s);let l=e.objectStore(t),f=null==l.keyPath,h="put"===n||"add"===n;if(!h&&"delete"!==n&&"deleteRange"!==n)throw Error("Invalid operation type: "+n);let{length:d}=i||o||{length:1};if(i&&o&&i.length!==o.length)throw Error("Given keys array must have same length as given values array.");if(0===d)return s({numFailures:0,failures:{},results:[],lastResult:void 0});let p=[],y=[],v=0,b=e=>{++v,tT(e)};if("deleteRange"===n){if(4===a.type)return s({numFailures:v,failures:y,results:[],lastResult:void 0});3===a.type?p.push(u=l.clear()):p.push(u=l.delete(r(a)))}else{let[e,t]=h?f?[o,i]:[o,null]:[i,null];if(h)for(let r=0;r<d;++r)p.push(u=t&&void 0!==t[r]?l[n](e[r],t[r]):l[n](e[r])),u.onerror=b;else for(let t=0;t<d;++t)p.push(u=l[n](e[t])),u.onerror=b}let m=e=>{let t=e.target.result;p.forEach((e,t)=>null!=e.error&&(y[t]=e.error)),s({numFailures:v,failures:y,results:"delete"===n?i:p.map(e=>e.result),lastResult:t})};u.onerror=e=>{b(e),m(e)},u.onsuccess=m})},getMany:({trans:e,keys:n})=>new Promise((r,i)=>{r=eZ(r);let o=e.objectStore(t),a=n.length,s=Array(a),c,u=0,l=0,f=e=>{let t=e.target;s[t._pos]=t.result,++l===u&&r(s)},h=tI(i);for(let e=0;e<a;++e)null!=n[e]&&((c=o.get(n[e]))._pos=e,c.onsuccess=f,c.onerror=h,++u);0===u&&r(s)}),get:({trans:e,key:n})=>new Promise((r,i)=>{r=eZ(r);let o=e.objectStore(t).get(n);o.onsuccess=e=>r(e.target.result),o.onerror=tI(i)}),query:e=>new Promise((n,i)=>{n=eZ(n);let{trans:a,values:s,limit:c,query:u}=e,l=c===1/0?void 0:c,{index:f,range:h}=u,d=a.objectStore(t),p=f.isPrimaryKey?d:d.index(f.name),y=r(h);if(0===c)return n({result:[]});if(o){let e=s?p.getAll(y,l):p.getAllKeys(y,l);e.onsuccess=e=>n({result:e.target.result}),e.onerror=tI(i)}else{let e=0,t=!s&&"openKeyCursor"in p?p.openKeyCursor(y):p.openCursor(y),r=[];t.onsuccess=i=>{let o=t.result;return o?(r.push(s?o.value:o.primaryKey),++e===c?n({result:r}):void o.continue()):n({result:r})},t.onerror=tI(i)}}),openCursor:function({trans:e,values:n,query:i,reverse:o,unique:a}){return new Promise((s,c)=>{s=eZ(s);let{index:u,range:l}=i,f=e.objectStore(t),h=u.isPrimaryKey?f:f.index(u.name),d=o?a?"prevunique":"prev":a?"nextunique":"next",p=!n&&"openKeyCursor"in h?h.openKeyCursor(r(l),d):h.openCursor(r(l),d);p.onerror=tI(c),p.onsuccess=eZ(t=>{let n=p.result;if(!n)return void s(null);n.___id=++tq,n.done=!1;let r=n.continue.bind(n),i=n.continuePrimaryKey;i&&(i=i.bind(n));let o=n.advance.bind(n),a=()=>{throw Error("Cursor not stopped")};n.trans=e,n.stop=n.continue=n.continuePrimaryKey=n.advance=()=>{throw Error("Cursor not started")},n.fail=eZ(c),n.next=function(){let e=1;return this.start(()=>e--?this.continue():this.stop()).then(()=>this)},n.start=e=>{let t=new Promise((e,t)=>{e=eZ(e),p.onerror=tI(t),n.fail=t,n.stop=t=>{n.stop=n.continue=n.continuePrimaryKey=n.advance=a,e(t)}}),s=()=>{if(p.result)try{e()}catch(e){n.fail(e)}else n.done=!0,n.start=()=>{throw Error("Cursor behind last entry")},n.stop()};return p.onsuccess=eZ(e=>{p.onsuccess=s,s()}),n.continue=r,n.continuePrimaryKey=i,n.advance=o,s(),t},s(n)},c)})},count({query:e,trans:n}){let{index:i,range:o}=e;return new Promise((e,a)=>{let s=n.objectStore(t),c=i.isPrimaryKey?s:s.index(i.name),u=r(o),l=u?c.count(u):c.count();l.onsuccess=eZ(t=>e(t.target.result)),l.onerror=tI(a)})}}})(e)),c={};return s.forEach(e=>c[e.name]=e),{stack:"dbcore",transaction:e.transaction.bind(e),table(e){if(!c[e])throw Error(`Table '${e}' not found`);return c[e]},MIN_KEY:-1/0,MAX_KEY:tL(t),schema:i}}(t,n,i),e.dbcore.reduce((e,{create:t})=>({...e,...t(e)}),o))}}(e._middlewares,n,e._deps,t);e.core=r.dbcore,e.tables.forEach(t=>{let n=t.name;e.core.schema.tables.some(e=>e.name===n)&&(t.core=e.core.table(n),e[n]instanceof e.Table&&(e[n].core=t.core))})}function tZ({_novip:e},t,n,r){n.forEach(n=>{let i=r[n];t.forEach(t=>{let r=v(t,n);(!r||"value"in r&&void 0===r.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?d(t,n,{get(){return this.table(n)},set(e){h(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,i))})})}function tz({_novip:e},t){t.forEach(t=>{for(let n in t)t[n]instanceof e.Table&&delete t[n]})}function t$(e,t){return e._cfg.version-t._cfg.version}function tH(e,t){let n,r={del:[],add:[],change:[]};for(n in e)t[n]||r.del.push(n);for(n in t){let i=e[n],o=t[n];if(i){let e={name:n,def:o,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")==""+(o.primKey.keyPath||"")&&(i.primKey.auto===o.primKey.auto||ti)){let t,n=i.idxByName,a=o.idxByName;for(t in n)a[t]||e.del.push(t);for(t in a){let r=n[t],i=a[t];r?r.src!==i.src&&e.change.push(i):e.add.push(i)}(e.del.length>0||e.add.length>0||e.change.length>0)&&r.change.push(e)}else e.recreate=!0,r.change.push(e)}else r.add.push([n,o])}return r}function tX(e,t,n,r){let i=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach(e=>tJ(i,e)),i}function tJ(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function tG(e,t,n){let r={};return m(t.objectStoreNames,0).forEach(e=>{let t=n.objectStore(e),i=t.keyPath,o=tB(tM(i),i||"",!1,!1,!!t.autoIncrement,i&&"string"!=typeof i,!0),a=[];for(let e=0;e<t.indexNames.length;++e){let n=t.index(t.indexNames[e]);i=n.keyPath;var s=tB(n.name,i,!!n.unique,!!n.multiEntry,!1,i&&"string"!=typeof i,!1);a.push(s)}r[e]=tK(e,o,a)}),r}function tQ({_novip:e},t,n){let r=n.db.objectStoreNames;for(let i=0;i<r.length;++i){let o=r[i],a=n.objectStore(o);e._hasGetAll="getAll"in a;for(let e=0;e<a.indexNames.length;++e){let n=a.indexNames[e],r=a.index(n).keyPath,i="string"==typeof r?r:"["+m(r).join("+")+"]";if(t[o]){let e=t[o].idxByName[i];e&&(e.name=n,delete t[o].idxByName[i],t[o].idxByName[n]=e)}}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&i.WorkerGlobalScope&&i instanceof i.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}class tY{_parseStoresSpec(e,t){o(e).forEach(n=>{if(null!==e[n]){var r=e[n].split(",").map((e,t)=>{let n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return tB(n,r||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),a(r),0===t)}),i=r.shift();if(i.multi)throw new Y.Schema("Primary key cannot be multi-valued");r.forEach(e=>{if(e.auto)throw new Y.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new Y.Schema("Index must have a name and cannot be an empty string")}),t[n]=tK(n,i,r)}})}stores(e){let t=this.db;this._cfg.storesSource=this._cfg.storesSource?s(this._cfg.storesSource,e):e;let n=t._versions,r={},i={};return n.forEach(e=>{s(r,e._cfg.storesSource),i=e._cfg.dbschema={},e._parseStoresSpec(r,i)}),t._dbSchema=i,tz(t,[t._allTables,t,t.Transaction.prototype]),tZ(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],o(i),i),t._storeNames=o(i),this}upgrade(e){return this._cfg.contentUpgrade=el(this._cfg.contentUpgrade||en,e),this}}function t0(e,t){let n=e._dbNamesDB;return n||(n=e._dbNamesDB=new nu("__dbnames",{addons:[],indexedDB:e,IDBKeyRange:t})).version(1).stores({dbnames:"name"}),n.table("dbnames")}function t1(e){return e&&"function"==typeof e.databases}function t2(e){return eQ(function(){return eA.letThrough=!0,e()})}function t8(e){var t=t=>e.next(t),n=i(t),r=i(t=>e.throw(t));function i(e){return t=>{var i=e(t),o=i.value;return i.done?o:o&&"function"==typeof o.then?o.then(n,r):a(o)?Promise.all(o).then(n,r):n(o)}}return i(t)()}function t5(e,t,n){var r=arguments.length;if(r<2)throw new Y.InvalidArgument("Too few arguments");for(var i=Array(r-1);--r;)i[r-1]=arguments[r];return n=i.pop(),[e,A(i),n]}function t6(e,t,n){let r=a(e)?e.slice():[e];for(let e=0;e<n;++e)r.push(t);return r}let t3={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return{...e,table(t){let n=e.table(t),{schema:r}=n,i={},o=[];function a(e,t,n){let r=tV(e),s=i[r]=i[r]||[],c=null==e?0:"string"==typeof e?1:e.length,u=t>0,l={...n,isVirtual:u,keyTail:t,keyLength:c,extractKey:tU(e),unique:!u&&n.unique};return s.push(l),l.isPrimaryKey||o.push(l),c>1&&a(2===c?e[0]:e.slice(0,c-1),t+1,n),s.sort((e,t)=>e.keyTail-t.keyTail),l}let s=a(r.primaryKey.keyPath,0,r.primaryKey);for(let e of(i[":id"]=[s],r.indexes))a(e.keyPath,0,e);function c(t){var n,r;let i=t.query.index;return i.isVirtual?{...t,query:{index:i,range:(n=t.query.range,r=i.keyTail,{type:1===n.type?2:n.type,lower:t6(n.lower,n.lowerOpen?e.MAX_KEY:e.MIN_KEY,r),lowerOpen:!0,upper:t6(n.upper,n.upperOpen?e.MIN_KEY:e.MAX_KEY,r),upperOpen:!0})}}:t}return{...n,schema:{...r,primaryKey:s,indexes:o,getIndexByKeyPath:function(e){let t=i[tV(e)];return t&&t[0]}},count:e=>n.count(c(e)),query:e=>n.query(c(e)),openCursor(t){let{keyTail:r,isVirtual:i,keyLength:o}=t.query.index;return i?n.openCursor(c(t)).then(n=>n&&Object.create(n,{continue:{value:function(i){null!=i?n.continue(t6(i,t.reverse?e.MAX_KEY:e.MIN_KEY,r)):t.unique?n.continue(n.key.slice(0,o).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,r)):n.continue()}},continuePrimaryKey:{value(t,i){n.continuePrimaryKey(t6(t,e.MAX_KEY,r),i)}},primaryKey:{get:()=>n.primaryKey},key:{get(){let e=n.key;return 1===o?e[0]:e.slice(0,o)}},value:{get:()=>n.value}})):n.openCursor(t)}}}}}};function t9(e,t,n,r){return n=n||{},r=r||"",o(e).forEach(i=>{if(l(t,i)){var o=e[i],a=t[i];if("object"==typeof o&&"object"==typeof a&&o&&a){let e=R(o);e!==R(a)?n[r+i]=t[i]:"Object"===e?t9(o,a,n,r+i+"."):o!==a&&(n[r+i]=t[i])}else o!==a&&(n[r+i]=t[i])}else n[r+i]=void 0}),o(t).forEach(i=>{l(e,i)||(n[r+i]=t[i])}),n}let t7={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){let n=e.table(t),{primaryKey:r}=n.schema;return{...n,mutate(e){let i=eA.trans,{deleting:o,creating:a,updating:s}=i.table(t).hook;switch(e.type){case"add":if(a.fire===en)break;return i._promise("readwrite",()=>c(e),!0);case"put":if(a.fire===en&&s.fire===en)break;return i._promise("readwrite",()=>c(e),!0);case"delete":if(o.fire===en)break;return i._promise("readwrite",()=>c(e),!0);case"deleteRange":if(o.fire===en)break;return i._promise("readwrite",()=>(function e(t,i,o){return n.query({trans:t,values:!1,query:{index:r,range:i},limit:o}).then(({result:n})=>c({type:"delete",keys:n,trans:t}).then(r=>r.numFailures>0?Promise.reject(r.failures[0]):n.length<o?{failures:[],numFailures:0,lastResult:void 0}:e(t,{...i,lower:n[n.length-1],lowerOpen:!0},o)))})(e.trans,e.range,1e4),!0)}return n.mutate(e);function c(e){var t,i;let c=eA.trans,u=e.keys||("delete"===(t=e).type?t.keys:t.keys||t.values.map(r.extractKey));if(!u)throw Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?{...e,keys:u}:{...e}).type&&(e.values=[...e.values]),e.keys&&(e.keys=[...e.keys]),("add"===(i=e).type?Promise.resolve([]):n.getMany({trans:i.trans,keys:u,cache:"immutable"})).then(t=>{let i=u.map((n,i)=>{let u=t[i],f={onerror:null,onsuccess:null};if("delete"===e.type)o.fire.call(f,n,u,c);else if("add"===e.type||void 0===u){let t=a.fire.call(f,n,e.values[i],c);null==n&&null!=t&&(n=t,e.keys[i]=n,r.outbound||S(e.values[i],r.keyPath,n))}else{let t=t9(u,e.values[i]),r=s.fire.call(f,t,n,u,c);if(r){let t=e.values[i];Object.keys(r).forEach(e=>{l(t,e)?t[e]=r[e]:S(t,e,r[e])})}}return f});return n.mutate(e).then(({failures:n,results:r,numFailures:o,lastResult:a})=>{for(let o=0;o<u.length;++o){let a=r?r[o]:u[o],s=i[o];null==a?s.onerror&&s.onerror(n[o]):s.onsuccess&&s.onsuccess("put"===e.type&&t[o]?e.values[o]:a)}return{failures:n,results:r,numFailures:o,lastResult:a}}).catch(e=>(i.forEach(t=>t.onerror&&t.onerror(e)),Promise.reject(e)))})}}}}})};function t4(e,t,n){try{if(!t||t.keys.length<e.length)return null;let r=[];for(let i=0,o=0;i<t.keys.length&&o<e.length;++i)0===tg(t.keys[i],e[o])&&(r.push(n?I(t.values[i]):t.values[i]),++o);return r.length===e.length?r:null}catch(e){return null}}let ne={stack:"dbcore",level:-1,create:e=>({table:t=>{let n=e.table(t);return{...n,getMany:e=>{if(!e.cache)return n.getMany(e);let t=t4(e.keys,e.trans._cache,"clone"===e.cache);return t?eI.resolve(t):n.getMany(e).then(t=>(e.trans._cache={keys:e.keys,values:"clone"===e.cache?I(t):t},t))},mutate:e=>("add"!==e.type&&(e.trans._cache=null),n.mutate(e))}}})};function nt(e){return!("from"in e)}let nn=function(e,t){if(!this){let t=new nn;return e&&"d"in e&&s(t,e),t}s(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function nr(e,t,n){let r=tg(t,n);if(isNaN(r))return;if(r>0)throw RangeError();if(nt(e))return s(e,{from:t,to:n,d:1});let i=e.l,o=e.r;if(0>tg(n,e.from))return i?nr(i,t,n):e.l={from:t,to:n,d:1,l:null,r:null},na(e);if(tg(t,e.to)>0)return o?nr(o,t,n):e.r={from:t,to:n,d:1,l:null,r:null},na(e);0>tg(t,e.from)&&(e.from=t,e.l=null,e.d=o?o.d+1:1),tg(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);let a=!e.r;i&&!e.l&&ni(e,i),o&&a&&ni(e,o)}function ni(e,t){nt(t)||function e(t,{from:n,to:r,l:i,r:o}){nr(t,n,r),i&&e(t,i),o&&e(t,o)}(e,t)}function no(e){let t=nt(e)?null:{s:0,n:e};return{next(e){let n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&0>tg(e,t.n.from);)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||0>=tg(e,t.n.to))return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function na(e){var t,n;let r=((null==(t=e.r)?void 0:t.d)||0)-((null==(n=e.l)?void 0:n.d)||0),i=r>1?"r":r<-1?"l":"";if(i){let t="r"===i?"l":"r",n={...e},r=e[i];e.from=r.from,e.to=r.to,e[i]=r[i],n[i]=r[t],e[t]=n,n.d=ns(n)}e.d=ns(e)}function ns({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}f(nn.prototype,{add(e){return ni(this,e),this},addKey(e){return nr(this,e,e),this},addKeys(e){return e.forEach(e=>nr(this,e,e)),this},[N](){return no(this)}});let nc={stack:"dbcore",level:0,create:e=>{let t=e.schema.name,n=new nn(e.MIN_KEY,e.MAX_KEY);return{...e,table:r=>{let i=e.table(r),{schema:s}=i,{primaryKey:c}=s,{extractKey:u,outbound:l}=c,f={...i,mutate:e=>{let o=e.trans,c=o.mutatedParts||(o.mutatedParts={}),u=e=>{let n=`idb://${t}/${r}/${e}`;return c[n]||(c[n]=new nn)},l=u(""),f=u(":dels"),{type:h}=e,[d,p]="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[],y=e.trans._cache;return i.mutate(e).then(e=>{if(a(d)){"delete"!==h&&(d=e.results),l.addKeys(d);let t=t4(d,y);t||"add"===h||f.addKeys(d),(t||p)&&s.indexes.forEach(function(e){let n=u(e.name||"");function r(t){return null!=t?e.extractKey(t):null}let i=t=>e.multiEntry&&a(t)?t.forEach(e=>n.addKey(e)):n.addKey(t);(t||p).forEach((e,n)=>{let o=t&&r(t[n]),a=p&&r(p[n]);0!==tg(o,a)&&(null!=o&&i(o),null!=a&&i(a))})})}else if(d){let e={from:d.lower,to:d.upper};f.add(e),l.add(e)}else l.add(n),f.add(n),s.indexes.forEach(e=>u(e.name).add(n));return e})}},h=({query:{index:t,range:n}})=>{var r,i;return[t,new nn(null!=(r=n.lower)?r:e.MIN_KEY,null!=(i=n.upper)?i:e.MAX_KEY)]},d={get:e=>[c,new nn(e.key)],getMany:e=>[c,(new nn).addKeys(e.keys)],count:h,query:h,openCursor:h};return o(d).forEach(e=>{f[e]=function(o){let{subscr:a}=eA;if(a){let s=e=>{let n=`idb://${t}/${r}/${e}`;return a[n]||(a[n]=new nn)},c=s(""),f=s(":dels"),[h,p]=d[e](o);if(s(h.name||"").add(p),!h.isPrimaryKey){if("count"!==e){let t="query"===e&&l&&o.values&&i.query({...o,values:!1});return i[e].apply(this,arguments).then(n=>{if("query"===e){if(l&&o.values)return t.then(({result:e})=>(c.addKeys(e),n));let e=o.values?n.result.map(u):n.result;o.values?c.addKeys(e):f.addKeys(e)}else if("openCursor"===e){let e=o.values;return n&&Object.create(n,{key:{get:()=>(f.addKey(n.primaryKey),n.key)},primaryKey:{get(){let e=n.primaryKey;return f.addKey(e),e}},value:{get:()=>(e&&c.addKey(n.primaryKey),n.value)}})}return n})}f.add(n)}}return i[e].apply(this,arguments)}}),f}}}};class nu{constructor(e,t){var n,r,i,o,a;this._middlewares={},this.verno=0;let s=nu.dependencies;this._options=t={addons:nu.addons,autoOpen:!0,indexedDB:s.indexedDB,IDBKeyRange:s.IDBKeyRange,...t},this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange};let{addons:c}=t;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;let u={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:en,dbReadyPromise:null,cancelOpen:en,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};u.dbReadyPromise=new eI(e=>{u.dbReadyResolve=e}),u.openCanceller=new eI((e,t)=>{u.cancelOpen=t}),this._state=u,this.name=e,this.on=tl(this,"populate","blocked","versionchange","close",{ready:[el,en]}),this.on.ready.subscribe=g(this.on.ready.subscribe,e=>(t,n)=>{nu.vip(()=>{let r=this._state;if(r.openComplete)r.dbOpenError||eI.resolve().then(t),n&&e(t);else if(r.onReadyBeingFired)r.onReadyBeingFired.push(t),n&&e(t);else{e(t);let r=this;n||e(function e(){r.on.ready.unsubscribe(t),r.on.ready.unsubscribe(e)})}})}),this.Collection=(n=this,tf(tx.prototype,function(e,t){this.db=n;let r=ts,i=null;if(t)try{r=t()}catch(e){i=e}let o=e._ctx,a=o.table,s=a.hook.reading.fire;this._ctx={table:a,index:o.index,isPrimKey:!o.index||a.schema.primKey.keyPath&&o.index===a.schema.primKey.name,range:r,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:i,or:o.or,valueMapper:s!==er?s:null}})),this.Table=(r=this,tf(tu.prototype,function(e,t,n){this.db=r,this._tx=n,this.name=e,this.schema=t,this.hook=r._allTables[e]?r._allTables[e].hook:tl(null,{creating:[ea,en],reading:[ei,er],updating:[ec,en],deleting:[es,en]})})),this.Transaction=(i=this,tf(tN.prototype,function(e,t,n,r,o){this.db=i,this.mode=e,this.storeNames=t,this.schema=n,this.chromeTransactionDurability=r,this.idbtrans=null,this.on=tl(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 eI((e,t)=>{this._resolve=e,this._reject=t}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},e=>{var t=this.active;return this.active=!1,this.on.error.fire(e),this.parent?this.parent._reject(e):t&&this.idbtrans&&this.idbtrans.abort(),te(e)})})),this.Version=(o=this,tf(tY.prototype,function(e){this.db=o,this._cfg={version:e,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(a=this,tf(tD.prototype,function(e,t,n){this.db=a,this._ctx={table:e,index:":id"===t?null:t,or:n};let r=a._deps.indexedDB;if(!r)throw new Y.MissingAPI;this._cmp=this._ascending=r.cmp.bind(r),this._descending=(e,t)=>r.cmp(t,e),this._max=(e,t)=>r.cmp(e,t)>0?e:t,this._min=(e,t)=>0>r.cmp(e,t)?e:t,this._IDBKeyRange=a._deps.IDBKeyRange})),this.on("versionchange",e=>{e.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()}),this.on("blocked",e=>{!e.newVersion||e.newVersion<e.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${e.oldVersion/10}`)}),this._maxKey=tL(t.IDBKeyRange),this._createTransaction=(e,t,n,r)=>new this.Transaction(e,t,n,this._options.chromeTransactionDurability,r),this._fireOnBlocked=e=>{this.on("blocked").fire(e),tr.filter(e=>e.name===this.name&&e!==this&&!e._state.vcFired).map(t=>t.on("versionchange").fire(e))},this.use(t3),this.use(t7),this.use(nc),this.use(ne),this.vip=Object.create(this,{_vip:{value:!0}}),c.forEach(e=>e(this))}version(e){if(isNaN(e)||e<.1)throw new Y.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new Y.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);let t=this._versions;var n=t.filter(t=>t._cfg.version===e)[0];return n||(n=new this.Version(e),t.push(n),t.sort(t$),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(e){return this.idbdb&&(this._state.openComplete||eA.letThrough||this._vip)?e():new eI((e,t)=>{if(this._state.openComplete)return t(new Y.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void t(new Y.DatabaseClosed);this.open().catch(en)}this._state.dbReadyPromise.then(e,t)}).then(e)}use({stack:e,create:t,level:n,name:r}){r&&this.unuse({stack:e,name:r});let i=this._middlewares[e]||(this._middlewares[e]=[]);return i.push({stack:e,create:t,level:null==n?10:n,name:r}),i.sort((e,t)=>e.level-t.level),this}unuse({stack:e,name:t,create:n}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter(e=>n?e.create!==n:!!t&&e.name!==t)),this}open(){return function(e){var t;let n=e._state,{indexedDB:r}=e._deps;if(n.isBeingOpened||e.idbdb)return n.dbReadyPromise.then(()=>n.dbOpenError?te(n.dbOpenError):e);U&&(n.openCanceller._stackHolder=V()),n.isBeingOpened=!0,n.dbOpenError=null,n.openComplete=!1;let i=n.openCanceller;function a(){if(n.openCanceller!==i)throw new Y.DatabaseClosed("db.open() was cancelled")}let s=n.dbReadyResolve,c=null,u=!1;return eI.race([i,("undefined"==typeof navigator?eI.resolve():!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()).then(()=>new eI((t,i)=>{if(a(),!r)throw new Y.MissingAPI;let s=e.name,l=n.autoSchema?r.open(s):r.open(s,Math.round(10*e.verno));if(!l)throw new Y.MissingAPI;l.onerror=tI(i),l.onblocked=eZ(e._fireOnBlocked),l.onupgradeneeded=eZ(t=>{if(c=l.transaction,n.autoSchema&&!e._options.allowEmptyDB){l.onerror=tT,c.abort(),l.result.close();let e=r.deleteDatabase(s);e.onsuccess=e.onerror=eZ(()=>{i(new Y.NoSuchDatabase(`Database ${s} doesnt exist`))})}else{c.onerror=tI(i);var a=t.oldVersion>0x4000000000000000?0:t.oldVersion;u=a<1,e._novip.idbdb=l.result,function(e,t,n,r){let i=e._dbSchema,a=e._createTransaction("readwrite",e._storeNames,i);a.create(n),a._completion.catch(r);let s=a._reject.bind(a),c=eA.transless||eA;eQ(()=>{eA.trans=a,eA.transless=c,0===t?(o(i).forEach(e=>{tX(n,e,i[e].primKey,i[e].indexes)}),tW(e,n),eI.follow(()=>e.on.populate.fire(a)).catch(s)):(function({_novip:e},t,n,r){let i=[],a=e._versions,s=e._dbSchema=tG(e,e.idbdb,r),c=!1;return a.filter(e=>e._cfg.version>=t).forEach(a=>{i.push(()=>{let i=s,u=a._cfg.dbschema;tQ(e,i,r),tQ(e,u,r),s=e._dbSchema=u;let l=tH(i,u);l.add.forEach(e=>{tX(r,e[0],e[1].primKey,e[1].indexes)}),l.change.forEach(e=>{if(e.recreate)throw new Y.Upgrade("Not yet support for changing primary key");{let t=r.objectStore(e.name);e.add.forEach(e=>tJ(t,e)),e.change.forEach(e=>{t.deleteIndex(e.name),tJ(t,e)}),e.del.forEach(e=>t.deleteIndex(e))}});let f=a._cfg.contentUpgrade;if(f&&a._cfg.version>t){let t;tW(e,r),n._memoizedTables={},c=!0;let a=k(u);l.del.forEach(e=>{a[e]=i[e]}),tz(e,[e.Transaction.prototype]),tZ(e,[e.Transaction.prototype],o(a),a),n.schema=a;let s=L(f);s&&eY();let h=eI.follow(()=>{if((t=f(n))&&s){var e=e0.bind(null,null);t.then(e,e)}});return t&&"function"==typeof t.then?eI.resolve(t):h.then(()=>t)}}),i.push(t=>{var r;c&&ti||(r=a._cfg.dbschema,[].slice.call(t.db.objectStoreNames).forEach(e=>null==r[e]&&t.db.deleteObjectStore(e))),tz(e,[e.Transaction.prototype]),tZ(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),n.schema=e._dbSchema})}),(function e(){return i.length?eI.resolve(i.shift()(n.idbtrans)).then(e):eI.resolve()})().then(()=>{var e;o(e=s).forEach(t=>{r.db.objectStoreNames.contains(t)||tX(r,t,e[t].primKey,e[t].indexes)})})})(e,t,a,n).catch(s)})}(e,a/10,c,i)}},i),l.onsuccess=eZ(()=>{c=null;let r=e._novip.idbdb=l.result,i=m(r.objectStoreNames);if(i.length>0)try{let t=r.transaction(1===i.length?i[0]:i,"readonly");n.autoSchema?function({_novip:e},t,n){e.verno=t.version/10;let r=e._dbSchema=tG(0,t,n);e._storeNames=m(t.objectStoreNames,0),tZ(e,[e._allTables],o(r),r)}(e,r,t):(tQ(e,e._dbSchema,t),function(e,t){let n=tH(tG(0,e.idbdb,t),e._dbSchema);return!(n.add.length||n.change.some(e=>e.add.length||e.change.length))}(e,t)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),tW(e,t)}catch(e){}tr.push(e),r.onversionchange=eZ(t=>{n.vcFired=!0,e.on("versionchange").fire(t)}),r.onclose=eZ(t=>{e.on("close").fire(t)}),u&&function({indexedDB:e,IDBKeyRange:t},n){t1(e)||"__dbnames"===n||t0(e,t).put({name:n}).catch(en)}(e._deps,s),t()},i)}))]).then(()=>(a(),n.onReadyBeingFired=[],eI.resolve(t2(()=>e.on.ready.fire(e.vip))).then(function t(){if(n.onReadyBeingFired.length>0){let r=n.onReadyBeingFired.reduce(el,en);return n.onReadyBeingFired=[],eI.resolve(t2(()=>r(e.vip))).then(t)}}))).finally(()=>{n.onReadyBeingFired=null,n.isBeingOpened=!1}).then(()=>e).catch(t=>{n.dbOpenError=t;try{c&&c.abort()}catch(e){}return i===n.openCanceller&&e._close(),te(t)}).finally(()=>{n.openComplete=!0,s()})}(this)}_close(){let e=this._state,t=tr.indexOf(this);if(t>=0&&tr.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this._novip.idbdb=null}e.dbReadyPromise=new eI(t=>{e.dbReadyResolve=t}),e.openCanceller=new eI((t,n)=>{e.cancelOpen=n})}close(){this._close();let e=this._state;this._options.autoOpen=!1,e.dbOpenError=new Y.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){let e=arguments.length>0,t=this._state;return new eI((n,r)=>{let i=()=>{this.close();var e=this._deps.indexedDB.deleteDatabase(this.name);e.onsuccess=eZ(()=>{!function({indexedDB:e,IDBKeyRange:t},n){t1(e)||"__dbnames"===n||t0(e,t).delete(n).catch(en)}(this._deps,this.name),n()}),e.onerror=tI(r),e.onblocked=this._fireOnBlocked};if(e)throw new Y.InvalidArgument("Arguments not allowed in db.delete()");t.isBeingOpened?t.dbReadyPromise.then(i):i()})}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){let e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return o(this._allTables).map(e=>this._allTables[e])}transaction(){let e=t5.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,t,n){let r,i,o=eA.trans;o&&o.db===this&&-1===e.indexOf("!")||(o=null);let a=-1!==e.indexOf("?");e=e.replace("!","").replace("?","");try{if(i=t.map(e=>{var t=e instanceof this.Table?e.name:e;if("string"!=typeof t)throw TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t}),"r"==e||"readonly"===e)r="readonly";else{if("rw"!=e&&"readwrite"!=e)throw new Y.InvalidArgument("Invalid transaction mode: "+e);r="readwrite"}if(o){if("readonly"===o.mode&&"readwrite"===r){if(!a)throw new Y.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");o=null}o&&i.forEach(e=>{if(o&&-1===o.storeNames.indexOf(e)){if(!a)throw new Y.SubTransaction("Table "+e+" not included in parent transaction.");o=null}}),a&&o&&!o.active&&(o=null)}}catch(e){return o?o._promise(null,(t,n)=>{n(e)}):te(e)}let s=(function e(t,n,r,i,o){return eI.resolve().then(()=>{let a,s=eA.transless||eA,c=t._createTransaction(n,r,t._dbSchema,i);if(i)c.idbtrans=i.idbtrans;else try{c.create(),t._state.PR1398_maxLoop=3}catch(i){return i.name===Q.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>e(t,n,r,null,o))):te(i)}let u=L(o);u&&eY();let l=eI.follow(()=>{if(a=o.call(c,c))if(u){var e=e0.bind(null,null);a.then(e,e)}else"function"==typeof a.next&&"function"==typeof a.throw&&(a=t8(a))},{trans:c,transless:s});return(a&&"function"==typeof a.then?eI.resolve(a).then(e=>c.active?e:te(new Y.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):l.then(()=>a)).then(e=>(i&&c._resolve(),c._completion.then(()=>e))).catch(e=>(c._reject(e),te(e)))})}).bind(null,this,r,i,o,n);return o?o._promise(r,s,"lock"):eA.trans?e3(eA.transless,()=>this._whenReady(s)):this._whenReady(s)}table(e){if(!l(this._allTables,e))throw new Y.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}let nl="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";class nf{constructor(e){this._subscribe=e}subscribe(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})}[nl](){return this}}function nh(e,t){return o(t).forEach(n=>{ni(e[n]||(e[n]=new nn),t[n])}),e}try{r={indexedDB:i.indexedDB||i.mozIndexedDB||i.webkitIndexedDB||i.msIndexedDB,IDBKeyRange:i.IDBKeyRange||i.webkitIDBKeyRange}}catch(e){r={indexedDB:null,IDBKeyRange:null}}function nd(e){let t=np;try{np=!0,tR.storagemutated.fire(e)}finally{np=t}}f(nu,{...et,delete:e=>new nu(e,{addons:[]}).delete(),exists:e=>new nu(e,{addons:[]}).open().then(e=>(e.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(e){try{return(function({indexedDB:e,IDBKeyRange:t}){return t1(e)?Promise.resolve(e.databases()).then(e=>e.map(e=>e.name).filter(e=>"__dbnames"!==e)):t0(e,t).toCollection().primaryKeys()})(nu.dependencies).then(e)}catch(e){return te(new Y.MissingAPI)}},defineClass:()=>function(e){s(this,e)},ignoreTransaction:e=>eA.trans?e3(eA.transless,e):e(),vip:t2,async:function(e){return function(){try{var t=t8(e.apply(this,arguments));return t&&"function"==typeof t.then?t:eI.resolve(t)}catch(e){return te(e)}}},spawn:function(e,t,n){try{var r=t8(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:eI.resolve(r)}catch(e){return te(e)}},currentTransaction:{get:()=>eA.trans||null},waitFor:function(e,t){let n=eI.resolve("function"==typeof e?nu.ignoreTransaction(e):e).timeout(t||6e4);return eA.trans?eA.trans.waitFor(n):n},Promise:eI,debug:{get:()=>U,set:e=>{U=e,F="dexie"===e?()=>!0:to}},derive:p,extend:s,props:f,override:g,Events:tl,on:tR,liveQuery:function(e){return new nf(t=>{let n=L(e),r=!1,i={},a={},s={get closed(){return r},unsubscribe:()=>{r=!0,tR.storagemutated.unsubscribe(f)}};t.start&&t.start(s);let c=!1,u=!1;function l(){return o(a).some(e=>i[e]&&function(e,t){let n=no(t),r=n.next();if(r.done)return!1;let i=r.value,o=no(e),a=o.next(i.from),s=a.value;for(;!r.done&&!a.done;){if(0>=tg(s.from,i.to)&&tg(s.to,i.from)>=0)return!0;0>tg(i.from,s.from)?i=(r=n.next(s.from)).value:s=(a=o.next(i.from)).value}return!1}(i[e],a[e]))}let f=e=>{nh(i,e),l()&&h()},h=()=>{if(c||r)return;i={};let o={},d=function(t){n&&eY();let r=()=>eQ(e,{subscr:t,trans:null}),i=eA.trans?e3(eA.transless,r):r();return n&&i.then(e0,e0),i}(o);u||(tR("storagemutated",f),u=!0),c=!0,Promise.resolve(d).then(e=>{c=!1,r||(l()?h():(i={},a=o,t.next&&t.next(e)))},e=>{c=!1,t.error&&t.error(e),s.unsubscribe()})};return h(),s})},extendObservabilitySet:nh,getByKeyPath:O,setByKeyPath:S,delByKeyPath:function(e,t){"string"==typeof t?S(e,t,void 0):"length"in t&&[].map.call(t,function(t){S(e,t,void 0)})},shallowClone:k,deepClone:I,getObjectDiff:t9,cmp:tg,asap:x,minKey:-1/0,addons:[],connections:tr,errnames:Q,dependencies:r,semVer:"3.2.3",version:"3.2.3".split(".").map(e=>parseInt(e)).reduce((e,t,n)=>e+t/Math.pow(10,2*n))}),nu.maxKey=tL(nu.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(tR("storagemutated",e=>{if(!np){let t;ti?(t=document.createEvent("CustomEvent")).initCustomEvent("x-storagemutated-1",!0,!0,e):t=new CustomEvent("x-storagemutated-1",{detail:e}),np=!0,dispatchEvent(t),np=!1}}),addEventListener("x-storagemutated-1",({detail:e})=>{np||nd(e)}));let np=!1;if("undefined"!=typeof BroadcastChannel){let e=new BroadcastChannel("x-storagemutated-1");"function"==typeof e.unref&&e.unref(),tR("storagemutated",t=>{np||e.postMessage(t)}),e.onmessage=e=>{e.data&&nd(e.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){tR("storagemutated",e=>{try{np||("undefined"!=typeof localStorage&&localStorage.setItem("x-storagemutated-1",JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(t=>t.postMessage({type:"x-storagemutated-1",changedParts:e})))}catch(e){}}),"undefined"!=typeof addEventListener&&addEventListener("storage",e=>{if("x-storagemutated-1"===e.key){let t=JSON.parse(e.newValue);t&&nd(t.changedParts)}});let e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",function({data:e}){e&&"x-storagemutated-1"===e.type&&nd(e.changedParts)})}eI.rejectionMapper=function(e,t){if(!e||e instanceof H||e instanceof TypeError||e instanceof SyntaxError||!e.name||!ee[e.name])return e;var n=new ee[e.name](t||e.message,e);return"stack"in e&&d(n,"stack",{get:function(){return this.inner.stack}}),n},F=to},1844:function(e,t,n){"use strict";n.d(t,{M:()=>i});let r=e=>{let t,n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,i,o);return o},i=e=>e?r(e):r},7713:function(e,t,n){"use strict";n.d(t,{Z:()=>tt});let r=function(e,t){return e===t||e!=e&&t!=t},i=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return -1};var o,a,s,c,u,l=Array.prototype.splice;function f(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}f.prototype.clear=function(){this.__data__=[],this.size=0},f.prototype.delete=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():l.call(t,n,1),--this.size,!0)},f.prototype.get=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]},f.prototype.has=function(e){return i(this.__data__,e)>-1},f.prototype.set=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var h=("undefined"==typeof global?"undefined":(o=global)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)=="object"&&global&&global.Object===Object&&global,d=("undefined"==typeof self?"undefined":(a=self)&&"undefined"!=typeof Symbol&&a.constructor===Symbol?"symbol":typeof a)=="object"&&self&&self.Object===Object&&self,p=h||d||Function("return this")(),y=p.Symbol,v=Object.prototype,b=v.hasOwnProperty,m=v.toString,g=y?y.toStringTag:void 0;let w=function(e){var t=b.call(e,g),n=e[g];try{e[g]=void 0;var r=!0}catch(e){}var i=m.call(e);return r&&(t?e[g]=n:delete e[g]),i};var x=Object.prototype.toString,E=y?y.toStringTag:void 0;let O=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":E&&E in Object(e)?w(e):x.call(e)},S=function(e){var t=void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return null!=e&&("object"==t||"function"==t)},k=function(e){if(!S(e))return!1;var t=O(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var j=p["__core-js_shared__"],A=(s=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"",P=Function.prototype.toString;let C=function(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var D=/^\[object .+?Constructor\]$/,I=Object.prototype,T=Function.prototype.toString,R=I.hasOwnProperty,N=RegExp("^"+T.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let B=function(e){return!!S(e)&&(!A||!(A in e))&&(k(e)?N:D).test(C(e))},M=function(e,t){var n=null==e?void 0:e[t];return B(n)?n:void 0};var K=M(p,"Map"),L=M(Object,"create"),U=Object.prototype.hasOwnProperty,F=Object.prototype.hasOwnProperty;function q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}q.prototype.clear=function(){this.__data__=L?L(null):{},this.size=0},q.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},q.prototype.get=function(e){var t=this.__data__;if(L){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return U.call(t,e)?t[e]:void 0},q.prototype.has=function(e){var t=this.__data__;return L?void 0!==t[e]:F.call(t,e)},q.prototype.set=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=L&&void 0===t?"__lodash_hash_undefined__":t,this};let V=function(e){var t=void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},W=function(e,t){var n=e.__data__;return V(t)?n["string"==typeof t?"string":"hash"]:n.map};function Z(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function z(e){var t=this.__data__=new f(e);this.size=t.size}function $(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Z;++t<n;)this.add(e[t])}Z.prototype.clear=function(){this.size=0,this.__data__={hash:new q,map:new(K||f),string:new q}},Z.prototype.delete=function(e){var t=W(this,e).delete(e);return this.size-=!!t,t},Z.prototype.get=function(e){return W(this,e).get(e)},Z.prototype.has=function(e){return W(this,e).has(e)},Z.prototype.set=function(e,t){var n=W(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this},z.prototype.clear=function(){this.__data__=new f,this.size=0},z.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},z.prototype.get=function(e){return this.__data__.get(e)},z.prototype.has=function(e){return this.__data__.has(e)},z.prototype.set=function(e,t){var n,r=this.__data__;if(n=r,null!=f&&"undefined"!=typeof Symbol&&f[Symbol.hasInstance]?!!f[Symbol.hasInstance](n):n instanceof f){var i=r.__data__;if(!K||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Z(i)}return r.set(e,t),this.size=r.size,this},$.prototype.add=$.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},$.prototype.has=function(e){return this.__data__.has(e)};let H=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},X=function(e,t,n,r,i,o){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(e),l=o.get(t);if(u&&l)return u==t&&l==e;var f=-1,h=!0,d=2&n?new $:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var p=e[f],y=t[f];if(r)var v=a?r(y,p,f,t,e,o):r(p,y,f,e,t,o);if(void 0!==v){if(v)continue;h=!1;break}if(d){if(!H(t,function(e,t){if(!d.has(t)&&(p===e||i(p,e,n,r,o)))return d.push(t)})){h=!1;break}}else if(!(p===y||i(p,y,n,r,o))){h=!1;break}}return o.delete(e),o.delete(t),h};var J=p.Uint8Array;let G=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n},Q=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n};var Y=y?y.prototype:void 0,ee=Y?Y.valueOf:void 0;let et=function(e,t,n,i,o,a,s){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!a(new J(e),new J(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var c=G;case"[object Set]":var u=1&i;if(c||(c=Q),e.size!=t.size&&!u)break;var l=s.get(e);if(l)return l==t;i|=2,s.set(e,t);var f=X(c(e),c(t),i,o,a,s);return s.delete(e),f;case"[object Symbol]":if(ee)return ee.call(e)==ee.call(t)}return!1},en=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e};var er=Array.isArray;let ei=function(e,t,n){var r=t(e);return er(e)?r:en(r,n(e))},eo=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o};var ea=Object.prototype.propertyIsEnumerable,es=Object.getOwnPropertySymbols,ec=es?function(e){return null==e?[]:eo(es(e=Object(e)),function(t){return ea.call(e,t)})}:function(){return[]};let eu=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},el=function(e){return null!=e&&(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"},ef=function(e){return el(e)&&"[object Arguments]"==O(e)};var eh=Object.prototype,ed=eh.hasOwnProperty,ep=eh.propertyIsEnumerable,ey=ef(function(){return arguments}())?ef:function(e){return el(e)&&ed.call(e,"callee")&&!ep.call(e,"callee")};function ev(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var eb=("undefined"==typeof exports?"undefined":ev(exports))=="object"&&exports&&!exports.nodeType&&exports,em=eb&&("undefined"==typeof module?"undefined":ev(module))=="object"&&module&&!module.nodeType&&module,eg=em&&em.exports===eb?p.Buffer:void 0;let ew=(eg?eg.isBuffer:void 0)||function(){return!1};var e_=/^(?:0|[1-9]\d*)$/;let ex=function(e,t){var n=void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==n||"symbol"!=n&&e_.test(e))&&e>-1&&e%1==0&&e<t},eE=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff};var eO={};function eS(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}eO["[object Float32Array]"]=eO["[object Float64Array]"]=eO["[object Int8Array]"]=eO["[object Int16Array]"]=eO["[object Int32Array]"]=eO["[object Uint8Array]"]=eO["[object Uint8ClampedArray]"]=eO["[object Uint16Array]"]=eO["[object Uint32Array]"]=!0,eO["[object Arguments]"]=eO["[object Array]"]=eO["[object ArrayBuffer]"]=eO["[object Boolean]"]=eO["[object DataView]"]=eO["[object Date]"]=eO["[object Error]"]=eO["[object Function]"]=eO["[object Map]"]=eO["[object Number]"]=eO["[object Object]"]=eO["[object RegExp]"]=eO["[object Set]"]=eO["[object String]"]=eO["[object WeakMap]"]=!1;var ek=("undefined"==typeof exports?"undefined":eS(exports))=="object"&&exports&&!exports.nodeType&&exports,ej=ek&&("undefined"==typeof module?"undefined":eS(module))=="object"&&module&&!module.nodeType&&module,eA=ej&&ej.exports===ek&&h.process,eP=function(){try{var e=ej&&ej.require&&ej.require("util").types;if(e)return e;return eA&&eA.binding&&eA.binding("util")}catch(e){}}(),eC=eP&&eP.isTypedArray,eD=eC?function(e){return eC(e)}:function(e){return el(e)&&eE(e.length)&&!!eO[O(e)]},eI=Object.prototype.hasOwnProperty;let eT=function(e,t){var n=er(e),r=!n&&ey(e),i=!n&&!r&&ew(e),o=!n&&!r&&!i&&eD(e),a=n||r||i||o,s=a?eu(e.length,String):[],c=s.length;for(var u in e)(t||eI.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ex(u,c)))&&s.push(u);return s};var eR=Object.prototype;let eN=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eR)};var eB=(c=Object.keys,u=Object,function(e){return c(u(e))}),eM=Object.prototype.hasOwnProperty;let eK=function(e){if(!eN(e))return eB(e);var t=[];for(var n in Object(e))eM.call(e,n)&&"constructor"!=n&&t.push(n);return t},eL=function(e){return null!=e&&eE(e.length)&&!k(e)?eT(e):eK(e)},eU=function(e){return ei(e,eL,ec)};function eF(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var eq=Object.prototype.hasOwnProperty;let eV=function(e,t,n,r,i,o){var a=1&n,s=eU(e),c=s.length;if(c!=eU(t).length&&!a)return!1;for(var u=c;u--;){var l=s[u];if(!(a?l in t:eq.call(t,l)))return!1}var f=o.get(e),h=o.get(t);if(f&&h)return f==t&&h==e;var d=!0;o.set(e,t),o.set(t,e);for(var p=a;++u<c;){var y=e[l=s[u]],v=t[l];if(r)var b=a?r(v,y,l,t,e,o):r(y,v,l,e,t,o);if(!(void 0===b?y===v||i(y,v,n,r,o):b)){d=!1;break}p||(p="constructor"==l)}if(d&&!p){var m=e.constructor,g=t.constructor;m!=g&&"constructor"in e&&"constructor"in t&&!("function"==typeof m&&eF(m,m)&&"function"==typeof g&&eF(g,g))&&(d=!1)}return o.delete(e),o.delete(t),d};var eW=M(p,"DataView"),eZ=M(p,"Promise"),ez=M(p,"Set"),e$=M(p,"WeakMap"),eH="[object Map]",eX="[object Promise]",eJ="[object Set]",eG="[object WeakMap]",eQ="[object DataView]",eY=C(eW),e0=C(K),e1=C(eZ),e2=C(ez),e8=C(e$),e5=O;(eW&&e5(new eW(new ArrayBuffer(1)))!=eQ||K&&e5(new K)!=eH||eZ&&e5(eZ.resolve())!=eX||ez&&e5(new ez)!=eJ||e$&&e5(new e$)!=eG)&&(e5=function(e){var t=O(e),n="[object Object]"==t?e.constructor:void 0,r=n?C(n):"";if(r)switch(r){case eY:return eQ;case e0:return eH;case e1:return eX;case e2:return eJ;case e8:return eG}return t});let e6=e5;var e3="[object Arguments]",e9="[object Array]",e7="[object Object]",e4=Object.prototype.hasOwnProperty;let te=function(e,t,n,r,i,o){var a=er(e),s=er(t),c=a?e9:e6(e),u=s?e9:e6(t);c=c==e3?e7:c,u=u==e3?e7:u;var l=c==e7,f=u==e7,h=c==u;if(h&&ew(e)){if(!ew(t))return!1;a=!0,l=!1}if(h&&!l)return o||(o=new z),a||eD(e)?X(e,t,n,r,i,o):et(e,t,c,n,r,i,o);if(!(1&n)){var d=l&&e4.call(e,"__wrapped__"),p=f&&e4.call(t,"__wrapped__");if(d||p){var y=d?e.value():e,v=p?t.value():t;return o||(o=new z),i(y,v,n,r,o)}}return!!h&&(o||(o=new z),eV(e,t,n,r,i,o))},tt=function(e,t){return function e(t,n,r,i,o){return t===n||(null!=t&&null!=n&&(el(t)||el(n))?te(t,n,r,i,e,o):t!=t&&n!=n)}(e,t)}},3033:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=function(e){return void 0===e}},1030:function(e,t,n){"use strict";n.d(t,{Z:()=>o});var r=n(876),i=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var n=this.hash(e),r=this.map[n];r||(this.map[n]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var n in e)t.push(Object.prototype.toString.call(e[n]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(var t in this.map)for(var n=this.map[t],r=0;r<n.length;r+=1){var i=n[r];if(i[0]===e)return i[1]}return}var o=this.hash(e),n=this.map[o];if(n)for(var r=0;r<n.length;r+=1){var i=n[r];if(i[0]===e)return i[1]}},e}();let o=(0,n(1085).Z)(function(e){return null!=e&&"function"==typeof e.clone?e.clone():function e(t,n,o){if(o||(o=new i),function(e){var t=void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;return null==e||"object"!=t&&"function"!=t}(t))return t;var a=function(r){var i=o.get(t);if(i)return i;for(var a in o.set(t,r),t)Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=n?e(t[a],!0,o):t[a]);return r};switch((0,r.Z)(t)){case"Object":return a(Object.create(Object.getPrototypeOf(t)));case"Array":return a(Array(t.length));case"Date":return new Date(t.valueOf());case"RegExp":return new RegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}(e,!0)})},2483:function(e,t,n){"use strict";n.d(t,{Z:()=>w});var r=n(8823);function i(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function o(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}var a=n(87);let s="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var c=n(1085),u=Object.prototype.toString,l=function(){return"[object Arguments]"===u.call(arguments)?function(e){return"[object Arguments]"===u.call(e)}:function(e){return(0,a.Z)("callee",e)}}(),f=!({toString:null}).propertyIsEnumerable("toString"),h=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],d=function(){return arguments.propertyIsEnumerable("length")}(),p=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},y="function"!=typeof Object.keys||d?(0,c.Z)(function(e){if(Object(e)!==e)return[];var t,n,r=[],i=d&&l(e);for(t in e)(0,a.Z)(t,e)&&(!i||"length"!==t)&&(r[r.length]=t);if(f)for(n=h.length-1;n>=0;)t=h[n],(0,a.Z)(t,e)&&!p(r,t)&&(r[r.length]=t),n-=1;return r}):(0,c.Z)(function(e){return Object(e)!==e?[]:Object.keys(e)}),v=n(876);function b(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function m(e,t,n,r){var a=i(e);function s(e,t){return g(e,t,n.slice(),r.slice())}return!o(function(e,t){return!o(s,t,e)},i(t),a)}function g(e,t,n,r){if(s(e,t))return!0;var i,o=(0,v.Z)(e);if(o!==(0,v.Z)(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(null==(i=String(e.constructor).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(!((void 0===e?"undefined":b(e))===(void 0===t?"undefined":b(t))&&s(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!s(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var c=n.length-1;c>=0;){if(n[c]===e)return r[c]===t;c-=1}switch(o){case"Map":if(e.size!==t.size)return!1;return m(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":if(e.size!==t.size)return!1;return m(e.values(),t.values(),n.concat([e]),r.concat([t]));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 u=y(e);if(u.length!==y(t).length)return!1;var l=n.concat([e]),f=r.concat([t]);for(c=u.length-1;c>=0;){var h=u[c];if(!((0,a.Z)(h,t)&&g(t[h],e[h],l,f)))return!1;c-=1}return!0}let w=(0,r.Z)(function(e,t){return g(e,t,[],[])})},1085:function(e,t,n){"use strict";n.d(t,{Z:()=>i});var r=n(6563);function i(e){return function t(n){return 0==arguments.length||(0,r.Z)(n)?t:e.apply(this,arguments)}}},8823:function(e,t,n){"use strict";n.d(t,{Z:()=>o});var r=n(1085),i=n(6563);function o(e){return function t(n,o){switch(arguments.length){case 0:return t;case 1:return(0,i.Z)(n)?t:(0,r.Z)(function(t){return e(n,t)});default:return(0,i.Z)(n)&&(0,i.Z)(o)?t:(0,i.Z)(n)?(0,r.Z)(function(t){return e(t,o)}):(0,i.Z)(o)?(0,r.Z)(function(t){return e(n,t)}):e(n,o)}}}},2377:function(e,t,n){"use strict";n.d(t,{Z:()=>a});var r=n(1085),i=n(8823),o=n(6563);function a(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return(0,o.Z)(n)?t:(0,i.Z)(function(t,r){return e(n,t,r)});case 2:return(0,o.Z)(n)&&(0,o.Z)(a)?t:(0,o.Z)(n)?(0,i.Z)(function(t,n){return e(t,a,n)}):(0,o.Z)(a)?(0,i.Z)(function(t,r){return e(n,t,r)}):(0,r.Z)(function(t){return e(n,a,t)});default:return(0,o.Z)(n)&&(0,o.Z)(a)&&(0,o.Z)(s)?t:(0,o.Z)(n)&&(0,o.Z)(a)?(0,i.Z)(function(t,n){return e(t,n,s)}):(0,o.Z)(n)&&(0,o.Z)(s)?(0,i.Z)(function(t,n){return e(t,a,n)}):(0,o.Z)(a)&&(0,o.Z)(s)?(0,i.Z)(function(t,r){return e(n,t,r)}):(0,o.Z)(n)?(0,r.Z)(function(t){return e(t,a,s)}):(0,o.Z)(a)?(0,r.Z)(function(t){return e(n,t,s)}):(0,o.Z)(s)?(0,r.Z)(function(t){return e(n,a,t)}):e(n,a,s)}}}},87:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(t,e)}n.d(t,{Z:()=>r})},6563:function(e,t,n){"use strict";function r(e){return null!=e&&(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&!0===e["@@functional/placeholder"]}n.d(t,{Z:()=>r})},6291:function(e,t,n){"use strict";n.d(t,{Z:()=>u});var r=n(8823),i=n(2377);function o(e){return"[object Object]"===Object.prototype.toString.call(e)}var a=n(87),s=(0,i.Z)(function(e,t,n){var r,i={};for(r in n=n||{},t=t||{})(0,a.Z)(r,t)&&(i[r]=(0,a.Z)(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)(0,a.Z)(r,n)&&!(0,a.Z)(r,i)&&(i[r]=n[r]);return i}),c=(0,i.Z)(function e(t,n,r){return s(function(n,r,i){return o(r)&&o(i)?e(t,r,i):t(n,r,i)},n,r)});let u=(0,r.Z)(function(e,t){return c(function(e,t,n){return n},e,t)})},3644:function(e,t,n){"use strict";n.d(t,{Z:()=>p});var r,i,o,a=n(2377),s=n(1085);let c=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};var u=(0,s.Z)(function(e){return!!c(e)||!!e&&(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&"[object String]"!==Object.prototype.toString.call(e)&&(0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}),l="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",f=(0,n(8823).Z)(function(e,t){var n=e.length,r=function(){return e.apply(t,arguments)};switch(n){case 0:return function(){return r.apply(this,arguments)};case 1:return function(e){return r.apply(this,arguments)};case 2:return function(e,t){return r.apply(this,arguments)};case 3:return function(e,t,n){return r.apply(this,arguments)};case 4:return function(e,t,n,i){return r.apply(this,arguments)};case 5:return function(e,t,n,i,o){return r.apply(this,arguments)};case 6:return function(e,t,n,i,o,a){return r.apply(this,arguments)};case 7:return function(e,t,n,i,o,a,s){return r.apply(this,arguments)};case 8:return function(e,t,n,i,o,a,s,c){return r.apply(this,arguments)};case 9:return function(e,t,n,i,o,a,s,c,u){return r.apply(this,arguments)};case 10:return function(e,t,n,i,o,a,s,c,u,l){return r.apply(this,arguments)};default:throw Error("First argument to _arity must be a non-negative integer no greater than ten")}}),h=(r=function(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)},i=function(e,t,n,r){return e["@@transducer/result"](n[r](f(e["@@transducer/step"],e),t))},o=function(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)},function(e,t,n){if(u(n))return r(e,t,n);if(null==n)return t;if("function"==typeof n["fantasy-land/reduce"])return i(e,t,n,"fantasy-land/reduce");if(null!=n[l])return o(e,t,n[l]());if("function"==typeof n.next)return o(e,t,n);if("function"==typeof n.reduce)return i(e,t,n,"reduce");throw TypeError("reduce: list must be array or iterable")}),d=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();let p=(0,a.Z)(function(e,t,n){return h("function"==typeof e?new d(e):e,t,n)})},876:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=(0,n(1085).Z)(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)})},6914:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(4295),i=n(810),o=e([i]);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}i=(o.then?(await o)():o)[0];var d=function(e){var t=i.Component;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");p.prototype=Object.create(t&&t.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),t&&f(p,t);var n,o,a,d=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=l(p);if(n){var r=l(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);var i=e;if(i&&("object"==(void 0===i?"undefined":i&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)||"function"==typeof i))return i;if(void 0!==i)throw TypeError("Derived constructors may only return object or undefined");return h(this)});function p(e){var t;if(function(e,t){if(null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!t[Symbol.hasInstance](e):!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,p),u(h(t=d.call(this,e)),"handleRef",function(e){t.el=e}),u(h(t),"addThingToDo",function(e,n){t.state.hasError&&"unmount"!==e||(t.nextThingToDo=(t.nextThingToDo||Promise.resolve()).then(function(){if(!t.unmounted||"unmount"===e)return n.apply(void 0,arguments)}).catch(function(n){throw t.nextThingToDo=Promise.resolve(),t.setState({hasError:!0}),n&&n.message&&(n.message="During '".concat(e,"', parcel threw an error: ").concat(n.message)),t.props.handleError?t.props.handleError(n):setTimeout(function(){throw n}),n}))}),u(h(t),"getParcelProps",function(){var e=s(s({},t.props),{},{domElement:t.el});return delete e.mountParcel,delete e.config,delete e.wrapWith,delete e.wrapStyle,delete e.appendTo,delete e.handleError,delete e.parcelDidMount,e}),t.state={hasError:!1},!e.config)throw Error("single-spa-react's Parcel component requires the 'config' prop to either be a parcel config or a loading function that returns a promise. See https://github.com/single-spa/single-spa-react");return t}return o=[{key:"componentDidMount",value:function(){var e=this;this.unmounted=!1,this.addThingToDo("mount",function(){var t,n=e.props.mountParcel||e.mountParcel;if(!n)throw Error("\n <Parcel /> was not passed a mountParcel prop, nor is it rendered where mountParcel is within the React context.\n If you are using <Parcel /> within a module that is not a single-spa application, you will need to import mountRootParcel from single-spa and pass it into <Parcel /> as a mountParcel prop \n ");return e.el?t=e.el:(e.createdDomElement=t=document.createElement(e.props.wrapWith),Object.keys(e.props.wrapStyle).forEach(function(n){t.style[n]=e.props.wrapStyle[n]}),e.props.appendTo.appendChild(t)),e.parcel=n(e.props.config,s({domElement:t},e.getParcelProps())),e.parcel.mountPromise.then(e.props.parcelDidMount),e.parcel.mountPromise})}},{key:"componentDidUpdate",value:function(){var e=this;this.addThingToDo("update",function(){if(e.parcel&&e.parcel.update)return e.parcel.update(e.getParcelProps())})}},{key:"componentWillUnmount",value:function(){var e=this;this.addThingToDo("unmount",function(){if(e.parcel&&"MOUNTED"===e.parcel.getStatus())return e.parcel.unmount()}),this.createdDomElement&&this.createdDomElement.parentNode.removeChild(this.createdDomElement),this.unmounted=!0}},{key:"render",value:function(){var e=this;if(this.props.appendTo)return r.a&&r.a.Consumer?i.createElement(r.a.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):null;var t=r.a&&r.a.Consumer?i.createElement(r.a.Consumer,null,function(t){return e.mountParcel=t?t.mountParcel:null,null}):void 0;return i.createElement(this.props.wrapWith,{ref:this.handleRef,style:this.props.wrapStyle,className:this.props.wrapClassName},t)}}],c(p.prototype,o),a&&c(p,a),p}();u(d,"defaultProps",{wrapWith:"div",wrapStyle:{},parcelDidMount:function(){}}),t()}catch(e){t(e)}})},4295:function(e,t,n){"use strict";n.d(t,{a:()=>r});var r=null;try{r=require("react").createContext()}catch(e){}},8815:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Qf:()=>u,y9:()=>l}),n(1525);var i=n(5),o=n(3033),a=n(8999),s=n(5310),c=e([a,s,i]);[a,s,i]=c.then?(await c)():c;var u=(0,i.jk)("session",{loaded:!1,session:null});function l(e,t){var n,r;if(void 0===t)return!!e;if(!e)return!0;return n=e,r=t,("string"==typeof n?!(0,o.Z)(r.privileges.find(function(e){return n===e.display})):Array.isArray(n)?n.every(function(e){return!(0,o.Z)(r.privileges.find(function(t){return e===t.display}))}):((0,o.Z)(n)||console.error('Could not understand privileges "'.concat(n,'"')),!0))||!(0,o.Z)(t.roles.find(function(e){return"System Developer"===e.display}))}u.subscribe(function(e){var t,n,r,i,o;e.loaded&&e.session&&((o=null!=(i=null==(r=(t=e.session).user)||null==(n=r.userProperties)?void 0:n.defaultLocale)?i:t.locale)&&o.includes("_")&&(o=o.replaceAll("_","-")),function(e){if(void 0===e||"string"!=typeof e)return!1;try{new Intl.Locale(e)}catch(e){return!1}return!0}(o)&&o!==document.documentElement.getAttribute("lang")&&document.documentElement.setAttribute("lang",o))}),r()}catch(e){r(e)}})},6997:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Qf:()=>i.Qf,y9:()=>i.y9});var i=n(8815),o=n(5310),a=n(219),s=e([i,o,a]);[i,o,a]=s.then?(await s)():s,r()}catch(e){r(e)}})},5310:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(8999),i=n(1950),o=n(2189),a=e([r,i,o]);function s(e,t,n){return(s=f()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&u(i,n.prototype),i}).apply(null,arguments)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t="function"==typeof Map?new Map:void 0;return(l=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return s(e,arguments,c(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,e)})(e)}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}[r,i,o]=a.then?(await a)():a,l(Error),t()}catch(e){t(e)}})},208:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(8815),i=n(5310),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},219:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(1950),i=n(8815),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},1950:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{$w:()=>o.$w,Dy:()=>s.D,Gr:()=>o.Gr,R2:()=>o.R2,_z:()=>o._z,sR:()=>o.sR,z2:()=>a.z2});var i=n(2396),o=n(8280),a=n(8502),s=n(1335),c=e([i,o]);[i,o]=c.then?(await c)():c,r()}catch(e){r(e)}})},2396:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(2483),i=n(1030),o=n(3644),a=n(6291),s=n(1335),c=n(6376),u=n(3590),l=n(8280),f=e([l]);function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){d(e,t,n[t])})}return e}function y(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}(e,t)||g(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function g(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}}l=(f.then?(await f)():f)[0],x(l.hv.getState(),l.DK.getState()),l.hv.subscribe(function(e){return x(e,l.DK.getState())}),l.DK.subscribe(function(e){return x(l.hv.getState(),e)}),O(l.hv.getState(),l.DK.getState()),l.hv.subscribe(function(e){return O(e,l.DK.getState())}),l.DK.subscribe(function(e){return O(l.hv.getState(),e)}),E(l.hv.getState(),l.DK.getState()),l.hv.subscribe(function(e){return E(e,l.DK.getState())}),l.DK.subscribe(function(e){return E(l.hv.getState(),e)}),S(l.hv.getState(),l.R2.getState(),l.DK.getState()),l.hv.subscribe(function(e){S(e,l.R2.getState(),l.DK.getState())}),l.R2.subscribe(function(e){S(l.hv.getState(),e,l.DK.getState())}),l.DK.subscribe(function(e){S(l.hv.getState(),l.R2.getState(),e)});var w=new Set;function x(e,t){var n=!0,r=!1,i=void 0;try{for(var o,a=Object.keys(e.schemas)[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,c=(0,l.pR)(s);if(e.moduleLoaded[s]){var u=function(e,t,n){var r=t.schemas[e],i=j(e,k(t,n));P(r,i,e);var o=T(r,i);return C(r,o,e),delete o.extensionSlots,o}(s,e,t);c.setState({translationOverridesLoaded:!0,loaded:!0,config:u})}else{var f=function(e,t,n){var r=j(e,k(t,n)),i=T(K,r);return C(K,i,e),delete i.extensionSlots,i}(s,e,t);c.setState({translationOverridesLoaded:!0,loaded:!1,config:f})}}}catch(e){r=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}}function E(e,t){var n,i,o,a,s=(n=e,i=t,o=A(k(n,i)),a=Object.keys(o).reduce(function(e,t){var n,r;return(null==(n=o[t])?void 0:n.extensionSlots)&&(e[t]=null==(r=o[t])?void 0:r.extensionSlots),e},{}),function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=Object.entries(e)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=v(i.value,2),s=a[0],c=a[1],u=!0,l=!1,f=void 0;try{for(var h,d=Object.entries(c)[Symbol.iterator]();!(u=(h=d.next()).done);u=!0){var p=v(h.value,2),y=p[0],b=p[1];!function(e,t,n){var r="".concat(t,".extensionSlots.").concat(n),i="Extension slot config '".concat(r,"'"),o=Object.keys(e).filter(function(e){return!["add","remove","order","configure"].includes(e)});o.length&&B(r,i+"' contains invalid keys '".concat(o.join("', '"),"'")),!e.add||Array.isArray(e.add)&&e.add.every(function(e){return"string"==typeof e})||B(r,i+".add' is invalid. Must be an array of strings (extension IDs)"),!e.remove||Array.isArray(e.remove)&&e.remove.every(function(e){return"string"==typeof e})||B(r,i+".remove' is invalid. Must be an array of strings (extension IDs)"),!e.order||Array.isArray(e.order)&&e.order.every(function(e){return"string"==typeof e})||B(r,i+".order' is invalid. Must be an array of strings (extension IDs)"),e.configure&&!N(e.configure)&&B(r,i+".configure' is invalid. Must be an object with extension IDs for keys")}(b,s,y)}}catch(e){l=!0,f=e}finally{try{u||null==d.return||d.return()}finally{if(l)throw f}}}}catch(e){n=!0,r=e}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}}(a),Object.keys(a).reduce(function(e,t){return e=p({},e,a[t])},{})),c=Object.fromEntries(Object.entries(s).map(function(e){var t=v(e,2),n=t[0],r=t[1];return[n,{loaded:!0,config:r}]})),u=(0,l.Gr)(),f=u.getState(),h={slots:p({},f.slots,c)};(0,r.Z)(f,h)||u.setState(h)}function O(e,t){var n=function(e,t){var n=function e(t){return t.hasOwnProperty("_default")?y(p({},t),{_value:t._default,_source:"default"}):N(t)?Object.keys(t).reduce(function(n,r){return n[r]=e(t[r]),n},{}):{}}((0,i.Z)(e.schemas)),r=b(e.providedConfigs.map(function(e){return[e.config,e.source]})).concat([[t.config,"temporary config"]]),o=!0,a=!1,s=void 0;try{for(var c,u=r[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var l=v(c.value,2),f=l[0],h=l[1];n=A([n,function e(t,n){return N(t)?Object.keys(t).reduce(function(r,i){return r[i]=e(t[i],n),r},{}):{_value:t,_source:n}}(f,h)])}}catch(e){a=!0,s=e}finally{try{o||null==u.return||u.return()}finally{if(a)throw s}}return n}(e,t);l.HN.setState({config:n})}function S(e,t,n){var r={},i=!0,o=!1,a=void 0;try{for(var s,c=t.mountedExtensions[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){var u=s.value,f=function(e,t,n,r,i,o){var a,s,c,u,l,f=(a=r,v(a.split("#"),1)[0]),h=i.schemas[f],d=h?f:t,p=k(i,o),y=j(e,p),b=null!=(l=null==y||null==(u=y.extensionSlots)||null==(c=u[n])||null==(s=c.configure)?void 0:s[r])?l:{},m=j(d,p),g=A([m,b]),w=null!=h?h:i.schemas[t];P(w,g,d);var x=T(w,g);return C(w,x,d),delete x.extensionSlots,x}(u.slotModuleName,u.extensionModuleName,u.slotName,u.extensionId,e,n);r[u.slotName]=y(p({},r[u.slotName]),d({},u.extensionId,{config:f,loaded:!0}))}}catch(e){o=!0,a=e}finally{try{i||null==c.return||c.return()}finally{if(o)throw a}}(0,l._z)().setState({configs:r})}function k(e,t){return b(e.providedConfigs.map(function(e){return e.config})).concat([t.config])}function j(e,t){var n=t.map(function(t){return t[e]}).filter(function(e){return!!e});return A(n)}function A(e){return(0,o.Z)(a.Z)({},e)}function P(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!0,i=!1,o=void 0;try{for(var a,c=Object.keys(t)[Symbol.iterator]();!(r=(a=c.next()).done);r=!0){var u=a.value,l=t[u],f=n+"."+u,h=e[u];if(!e.hasOwnProperty(u)){("extensionSlots"!==u||""===n)&&B(f,"Unknown config key '".concat(f,"' provided. Ignoring."));continue}(function e(t,n,r){D(r,t._type,n),N(n)?t._type===s.D.Object?function(t,n,r){if(t._elements){var i=!0,o=!1,a=void 0;try{for(var s,c=Object.keys(n)[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){var u=s.value,l=n[u];e(t._elements,l,"".concat(r,".").concat(u))}}catch(e){o=!0,a=e}finally{try{i||null==c.return||c.return()}finally{if(o)throw a}}}}(t,n,r):t.hasOwnProperty("_default")||t.hasOwnProperty("_type")||P(t,n,r):t._type===s.D.Array&&function(t,n,r){var i;if(D(r,s.D.Array,n)){if(R(t._elements))for(var o=0;o<n.length;o++)e(t._elements,n[o],"".concat(r,"[").concat(o,"]"));for(var a=0;a<n.length;a++)D("".concat(r,"[").concat(a,"]"),null==(i=t._elements)?void 0:i._type,n[a])}}(t,n,r)})(h,l,f)}}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}}function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(e){if(t!==e._default&&I(n,e._validators,t),N(t)){var r=!0,i=!1,o=void 0;try{for(var a,c=Object.keys(t)[Symbol.iterator]();!(r=(a=c.next()).done);r=!0){var u=a.value,l=t[u],f=n+"."+u,h=e[u];e._type===s.D.Object&&e._elements?C(e._elements,l,f):C(h,l,f)}}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}}else if(Array.isArray(t)&&e._elements)for(var d=0;d<t.length;d++)C(e._elements,t[d],"".concat(n,"[").concat(d,"]"))}}function D(e,t,n){if(t){var r={Array:c.kJ,Boolean:c.jn,ConceptUuid:c.K8,Number:c.hj,Object:c.Kn,String:c.HD,UUID:c.K8,PersonAttributeTypeUuid:c.K8,PatientIdentifierTypeUuid:c.K8};return I(e,[r[t]],n)}return!0}function I(e,t,n){var r=!0;if(t)try{var i=!0,o=!1,a=void 0;try{for(var s,c=t[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){var u=(0,s.value)(n);if("string"==typeof u){var l=(void 0===n?"undefined":m(n))==="object"?"Invalid configuration for ".concat(e,": ").concat(u):"Invalid configuration value ".concat(n," for ").concat(e,": ").concat(u);B(e,l),r=!1}}}catch(e){o=!0,a=e}finally{try{i||null==c.return||c.return()}finally{if(o)throw a}}}catch(t){console.error('Skipping invalid validator at "'.concat(e,'". Encountered error\n ').concat(t))}return r}var T=function(e,t){var n=(0,i.Z)(t);if(!e)return n;var r=!0,o=!1,a=void 0;try{for(var c,u=Object.keys(e)[Symbol.iterator]();!(r=(c=u.next()).done);r=!0)!function(){var t=c.value,r=n[t],i=e[t];if(i&&(i.hasOwnProperty("_type")||i.hasOwnProperty("_default"))){n.hasOwnProperty(t)||(n[t]=i._default);var o=i._elements;if(r&&R(o)){if(i._type===s.D.Array&&Array.isArray(r)){var a=r.map(function(e){return T(o,e)});n[t]=a}else if(i._type===s.D.Object){var u=!0,l=!1,f=void 0;try{for(var h,d=Object.keys(r)[Symbol.iterator]();!(u=(h=d.next()).done);u=!0){var p=h.value;r[p]=T(o,r[p])}}catch(e){l=!0,f=e}finally{try{u||null==d.return||d.return()}finally{if(l)throw f}}}}}else if(N(i)){var y=null!=r?r:{};N(y)&&(n[t]=T(i,y))}}()}catch(e){o=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}return n};function R(e){return!!e&&Object.keys(e).filter(function(e){return!["_default","_validators"].includes(e)}).length>0}function N(e){return(void 0===e?"undefined":m(e))==="object"&&!Array.isArray(e)&&null!==e}function B(e,t){var n="".concat(e,":::").concat(t);w||(w=new Set),w.has(n)||(console.error(t),w.add(n))}var M={"Translation overrides":{_description:"Per-language overrides for frontend translations should be keyed by language code and each language dictionary contains the translation key and the display value",_type:s.D.Object,_default:{},_validators:[(0,u.s)(function(e){return Object.keys(e).every(function(e){return/^[a-z]{2,3}(-[A-Z]{2,3})?$/.test(e)})},function(e){var t=Object.keys(e).filter(function(e){return!/^[a-z]{2,3}(-[A-Z]{2,3})?$/.test(e)});return"The 'Translation overrides' object should have language codes for keys. Language codes must be in the form of a two-to-three letter language code optionally followed by a hyphen and a two-to-three letter country code. The following keys do not conform: ".concat(t.join(", "),".")})]}},K=p({"Display conditions":{privileges:{_description:"The privilege(s) the user must have to use this extension",_type:s.D.Array,_default:[]}}},M);t()}catch(e){t(e)}})},8280:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{$w:()=>f,DK:()=>s,Gr:()=>l,HN:()=>p,R2:()=>c,_z:()=>h,hv:()=>a,pR:()=>u,sR:()=>d});var i=n(5),o=e([i]);i=(o.then?(await o)():o)[0];var a=(0,i.jk)("config-internal",{providedConfigs:[],schemas:{},moduleLoaded:{}}),s=(0,i.jk)("temporary-config",{config:function(){try{return JSON.parse(localStorage.getItem("openmrs:temporaryConfig")||"{}")}catch(e){return{}}}()});s.subscribe(function(e){var t;t=e.config,localStorage.setItem("openmrs:temporaryConfig",JSON.stringify(t))});var c=(0,i.jk)("config-store-of-extension-state",{mountedExtensions:[]});function u(e){return(0,i.zJ)("config-module-".concat(e),{config:null,loaded:!1,translationOverridesLoaded:!1})}function l(){return(0,i.zJ)("config-extension-slots",{slots:{}})}function f(e,t){var n=e.slots[t];return null!=n?n:{loaded:!1,config:{}}}function h(){return(0,i.zJ)("config-extensions",{configs:{}})}function d(e,t,n){var r,i=null==(r=e.configs[t])?void 0:r[n];return null!=i?i:{loaded:!1,config:null}}var p=(0,i.jk)("config-implementer-tools",{config:{}});r()}catch(e){r(e)}})},3009:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(8502);var r=n(2396),i=n(8280),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},1335:function(e,t,n){"use strict";n.d(t,{D:()=>i});var r,i=((r={}).Array="Array",r.Boolean="Boolean",r.ConceptUuid="ConceptUuid",r.Number="Number",r.Object="Object",r.String="String",r.UUID="UUID",r.PersonAttributeTypeUuid="PersonAttributeTypeUuid",r.PatientIdentifierTypeUuid="PatientIdentifierTypeUuid",r)},6376:function(e,t,n){"use strict";n.d(t,{HD:()=>s,K8:()=>u,Kn:()=>c,hj:()=>a,jn:()=>o,kJ:()=>i});var r=n(3590),i=(0,r.s)(function(e){return Array.isArray(e)},"must be an array"),o=(0,r.s)(function(e){return"boolean"==typeof e},"must be a boolean"),a=(0,r.s)(function(e){return"number"==typeof e},"must be a number"),s=(0,r.s)(function(e){return"string"==typeof e},"must be a string"),c=(0,r.s)(function(e){return(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&!Array.isArray(e)&&null!==e},"must be an object (not an array or null)"),u=(0,r.s)(function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)||/^[0-9a-f]{36}$/i.test(e)},"must be a valid UUID or a 36-character hexadecimal string")},3590:function(e,t,n){"use strict";function r(e,t){return function(n){if(!e(n))if("function"==typeof t)return t(n);else return t}}n.d(t,{s:()=>r})},8502:function(e,t,n){"use strict";n.d(t,{z2:()=>o});var r=n(3590),i=function(e){var t=e.concat(["openmrsBase","openmrsSpaBase"]);return(0,r.s)(function(e){if(!e||"string"!=typeof e)return!1;for(var n=/\${(.*?)}/g,r=n.exec(e);r;){if(!t.includes(r[1]))return!1;r=n.exec(e)}return!0},"Should be a URL or path. The allowed template parameters are "+t.map(function(e){return"${"+e+"}"}).join(", "))},o={inRange:function(e,t){return(0,r.s)(function(n){return e<=n&&n<=t},"must be between ".concat(e," and ").concat(t))},isUrl:i([]),isUrlWithTemplateParameters:i,oneOf:function(e){return(0,r.s)(function(t){return e.includes(t)},"Must be one of the following: '".concat(e.join("', '"),"'."))}}},9284:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},7960:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=n(2295),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},5376:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9284),i=n(7960),o=n(8678),a=n(4750),s=n(9882),c=e([r,i,o,a,s]);[r,i,o,a,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},8678:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},6211:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9284),i=n(7960),o=n(9882),a=n(4750),s=n(8678),c=e([r,i,o,a,s]);[r,i,o,a,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},4750:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},9882:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=n(5),o=n(8999),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a;var s=function(){try{return JSON.parse(sessionStorage.getItem("openmrs:visitStoreState")||"null")}catch(e){return null}}()||{patientUuid:null,manuallySetVisitUuid:null,mutateVisitCallbacks:{}};(0,i.zJ)("visit",s).subscribe(function(e){var t;t=e,sessionStorage.setItem("openmrs:visitStoreState",JSON.stringify(t))}),new o.BehaviorSubject(null),t()}catch(e){t(e)}})},1525:function(e,t,n){"use strict";var r=n(8795);window.onerror=function(e){return console.error("Unexpected error: ",e),(0,r.dO)({description:null!=e?e:"Oops! An unexpected error occurred.",kind:"error",title:"Error"}),!1},window.onunhandledrejection=function(e){var t;console.error("Unhandled rejection: ",e.reason),(0,r.dO)({description:null!=(t=e.reason)?t:"Oops! An unhandled promise rejection occurred.",kind:"error",title:"Error"})}},5623:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}n.d(t,{po:()=>k});var s,c,u=function(){function e(){i(this,e)}return a(e,[{key:"add",value:function(e,t,n){if("string"!=typeof arguments[0])for(var r in arguments[0])this.add(r,arguments[0][r],arguments[1]);else(Array.isArray(e)?e:[e]).forEach(function(e){this[e]=this[e]||[],t&&this[e][n?"unshift":"push"](t)},this)}},{key:"run",value:function(e,t){this[e]=this[e]||[],this[e].forEach(function(e){e.call(t&&t.context?t.context:t,t)})}}]),e}(),l=function(){function e(t){i(this,e),this.jsep=t,this.registered={}}return a(e,[{key:"register",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach(function(t){if((void 0===t?"undefined":t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)!="object"||!t.name||!t.init)throw Error("Invalid JSEP plugin format");e.registered[t.name]||(t.init(e.jsep),e.registered[t.name]=t)})}}]),e}(),f=function(){function e(t){i(this,e),this.expr=t,this.index=0}return a(e,[{key:"char",get:function(){return this.expr.charAt(this.index)}},{key:"code",get:function(){return this.expr.charCodeAt(this.index)}},{key:"throwError",value:function(e){var t=Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}},{key:"runHook",value:function(t,n){if(e.hooks[t]){var r={context:this,node:n};return e.hooks.run(t,r),r.node}return n}},{key:"searchHook",value:function(t){if(e.hooks[t]){var n={context:this};return e.hooks[t].find(function(e){return e.call(n.context,n),n.node}),n.node}}},{key:"gobbleSpaces",value:function(){for(var t=this.code;t===e.SPACE_CODE||t===e.TAB_CODE||t===e.LF_CODE||t===e.CR_CODE;)t=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}},{key:"parse",value:function(){this.runHook("before-all");var t=this.gobbleExpressions(),n=1===t.length?t[0]:{type:e.COMPOUND,body:t};return this.runHook("after-all",n)}},{key:"gobbleExpressions",value:function(t){for(var n,r,i=[];this.index<this.expr.length;)if((n=this.code)===e.SEMCOL_CODE||n===e.COMMA_CODE)this.index++;else if(r=this.gobbleExpression())i.push(r);else if(this.index<this.expr.length){if(n===t)break;this.throwError('Unexpected "'+this.char+'"')}return i}},{key:"gobbleExpression",value:function(){var e=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",e)}},{key:"gobbleBinaryOp",value:function(){this.gobbleSpaces();for(var t=this.expr.substr(this.index,e.max_binop_len),n=t.length;n>0;){if(e.binary_ops.hasOwnProperty(t)&&(!e.isIdentifierStart(this.code)||this.index+t.length<this.expr.length&&!e.isIdentifierPart(this.expr.charCodeAt(this.index+t.length))))return this.index+=n,t;t=t.substr(0,--n)}return!1}},{key:"gobbleBinaryExpression",value:function(){var t,n,r,i,o,a,s,c,u,l;if(!(a=this.gobbleToken())||!(n=this.gobbleBinaryOp()))return a;for(o={value:n,prec:e.binaryPrecedence(n),right_a:e.right_associative.has(n)},(s=this.gobbleToken())||this.throwError("Expected expression after "+n),i=[a,o,s];n=this.gobbleBinaryOp();){if(0===(r=e.binaryPrecedence(n))){this.index-=n.length;break}for(o={value:n,prec:r,right_a:e.right_associative.has(n)},u=n;i.length>2&&(l=i[i.length-2],o.right_a&&l.right_a?r>l.prec:r<=l.prec);)s=i.pop(),n=i.pop().value,a=i.pop(),t={type:e.BINARY_EXP,operator:n,left:a,right:s},i.push(t);(t=this.gobbleToken())||this.throwError("Expected expression after "+u),i.push(o,t)}for(c=i.length-1,t=i[c];c>1;)t={type:e.BINARY_EXP,operator:i[c-1].value,left:i[c-2],right:t},c-=2;return t}},{key:"gobbleToken",value:function(){var t,n,r,i;if(this.gobbleSpaces(),i=this.searchHook("gobble-token"))return this.runHook("after-token",i);if(t=this.code,e.isDecimalDigit(t)||t===e.PERIOD_CODE)return this.gobbleNumericLiteral();if(t===e.SQUOTE_CODE||t===e.DQUOTE_CODE)i=this.gobbleStringLiteral();else if(t===e.OBRACK_CODE)i=this.gobbleArray();else{for(r=(n=this.expr.substr(this.index,e.max_unop_len)).length;r>0;){if(e.unary_ops.hasOwnProperty(n)&&(!e.isIdentifierStart(this.code)||this.index+n.length<this.expr.length&&!e.isIdentifierPart(this.expr.charCodeAt(this.index+n.length)))){this.index+=r;var o=this.gobbleToken();return o||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:e.UNARY_EXP,operator:n,argument:o,prefix:!0})}n=n.substr(0,--r)}e.isIdentifierStart(t)?(i=this.gobbleIdentifier(),e.literals.hasOwnProperty(i.name)?i={type:e.LITERAL,value:e.literals[i.name],raw:i.name}:i.name===e.this_str&&(i={type:e.THIS_EXP})):t===e.OPAREN_CODE&&(i=this.gobbleGroup())}return i?(i=this.gobbleTokenProperty(i),this.runHook("after-token",i)):this.runHook("after-token",!1)}},{key:"gobbleTokenProperty",value:function(t){this.gobbleSpaces();for(var n=this.code;n===e.PERIOD_CODE||n===e.OBRACK_CODE||n===e.OPAREN_CODE||n===e.QUMARK_CODE;){var r=void 0;if(n===e.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==e.PERIOD_CODE)break;r=!0,this.index+=2,this.gobbleSpaces(),n=this.code}this.index++,n===e.OBRACK_CODE?((t={type:e.MEMBER_EXP,computed:!0,object:t,property:this.gobbleExpression()}).property||this.throwError('Unexpected "'+this.char+'"'),this.gobbleSpaces(),(n=this.code)!==e.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):n===e.OPAREN_CODE?t={type:e.CALL_EXP,arguments:this.gobbleArguments(e.CPAREN_CODE),callee:t}:(n===e.PERIOD_CODE||r)&&(r&&this.index--,this.gobbleSpaces(),t={type:e.MEMBER_EXP,computed:!1,object:t,property:this.gobbleIdentifier()}),r&&(t.optional=!0),this.gobbleSpaces(),n=this.code}return t}},{key:"gobbleNumericLiteral",value:function(){for(var t,n,r="";e.isDecimalDigit(this.code);)r+=this.expr.charAt(this.index++);if(this.code===e.PERIOD_CODE)for(r+=this.expr.charAt(this.index++);e.isDecimalDigit(this.code);)r+=this.expr.charAt(this.index++);if("e"===(t=this.char)||"E"===t){for(r+=this.expr.charAt(this.index++),("+"===(t=this.char)||"-"===t)&&(r+=this.expr.charAt(this.index++));e.isDecimalDigit(this.code);)r+=this.expr.charAt(this.index++);e.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+r+this.char+")")}return n=this.code,e.isIdentifierStart(n)?this.throwError("Variable names cannot start with a number ("+r+this.char+")"):(n===e.PERIOD_CODE||1===r.length&&r.charCodeAt(0)===e.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:e.LITERAL,value:parseFloat(r),raw:r}}},{key:"gobbleStringLiteral",value:function(){for(var t="",n=this.index,r=this.expr.charAt(this.index++),i=!1;this.index<this.expr.length;){var o=this.expr.charAt(this.index++);if(o===r){i=!0;break}if("\\"===o)switch(o=this.expr.charAt(this.index++)){case"n":t+="\n";break;case"r":t+="\r";break;case"t":t+=" ";break;case"b":t+="\b";break;case"f":t+="\f";break;case"v":t+="\v";break;default:t+=o}else t+=o}return i||this.throwError('Unclosed quote after "'+t+'"'),{type:e.LITERAL,value:t,raw:this.expr.substring(n,this.index)}}},{key:"gobbleIdentifier",value:function(){var t=this.code,n=this.index;for(e.isIdentifierStart(t)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length;)if(t=this.code,e.isIdentifierPart(t))this.index++;else break;return{type:e.IDENTIFIER,name:this.expr.slice(n,this.index)}}},{key:"gobbleArguments",value:function(t){for(var n=[],r=!1,i=0;this.index<this.expr.length;){this.gobbleSpaces();var o=this.code;if(o===t){r=!0,this.index++,t===e.CPAREN_CODE&&i&&i>=n.length&&this.throwError("Unexpected token "+String.fromCharCode(t));break}if(o===e.COMMA_CODE){if(this.index++,++i!==n.length){if(t===e.CPAREN_CODE)this.throwError("Unexpected token ,");else if(t===e.CBRACK_CODE)for(var a=n.length;a<i;a++)n.push(null)}}else if(n.length!==i&&0!==i)this.throwError("Expected comma");else{var s=this.gobbleExpression();s&&s.type!==e.COMPOUND||this.throwError("Expected comma"),n.push(s)}}return r||this.throwError("Expected "+String.fromCharCode(t)),n}},{key:"gobbleGroup",value:function(){this.index++;var t=this.gobbleExpressions(e.CPAREN_CODE);if(this.code===e.CPAREN_CODE)return(this.index++,1===t.length)?t[0]:!!t.length&&{type:e.SEQUENCE_EXP,expressions:t};this.throwError("Unclosed (")}},{key:"gobbleArray",value:function(){return this.index++,{type:e.ARRAY_EXP,elements:this.gobbleArguments(e.CBRACK_CODE)}}}],[{key:"version",get:function(){return"1.4.0"}},{key:"toString",value:function(){return"JavaScript Expression Parser (JSEP) v"+e.version}},{key:"addUnaryOp",value:function(t){return e.max_unop_len=Math.max(t.length,e.max_unop_len),e.unary_ops[t]=1,e}},{key:"addBinaryOp",value:function(t,n,r){return e.max_binop_len=Math.max(t.length,e.max_binop_len),e.binary_ops[t]=n,r?e.right_associative.add(t):e.right_associative.delete(t),e}},{key:"addIdentifierChar",value:function(t){return e.additional_identifier_chars.add(t),e}},{key:"addLiteral",value:function(t,n){return e.literals[t]=n,e}},{key:"removeUnaryOp",value:function(t){return delete e.unary_ops[t],t.length===e.max_unop_len&&(e.max_unop_len=e.getMaxKeyLen(e.unary_ops)),e}},{key:"removeAllUnaryOps",value:function(){return e.unary_ops={},e.max_unop_len=0,e}},{key:"removeIdentifierChar",value:function(t){return e.additional_identifier_chars.delete(t),e}},{key:"removeBinaryOp",value:function(t){return delete e.binary_ops[t],t.length===e.max_binop_len&&(e.max_binop_len=e.getMaxKeyLen(e.binary_ops)),e.right_associative.delete(t),e}},{key:"removeAllBinaryOps",value:function(){return e.binary_ops={},e.max_binop_len=0,e}},{key:"removeLiteral",value:function(t){return delete e.literals[t],e}},{key:"removeAllLiterals",value:function(){return e.literals={},e}},{key:"parse",value:function(t){return new e(t).parse()}},{key:"getMaxKeyLen",value:function(e){var t,n;return(t=Math).max.apply(t,[0].concat(function(e){if(Array.isArray(e))return r(e)}(n=Object.keys(e).map(function(e){return e.length}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return r(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}},{key:"isDecimalDigit",value:function(e){return e>=48&&e<=57}},{key:"binaryPrecedence",value:function(t){return e.binary_ops[t]||0}},{key:"isIdentifierStart",value:function(t){return t>=65&&t<=90||t>=97&&t<=122||t>=128&&!e.binary_ops[String.fromCharCode(t)]||e.additional_identifier_chars.has(String.fromCharCode(t))}},{key:"isIdentifierPart",value:function(t){return e.isIdentifierStart(t)||e.isDecimalDigit(t)}}]),e}();Object.assign(f,{hooks:new u,plugins:new l(f),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"??":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),f.max_unop_len=f.getMaxKeyLen(f.unary_ops),f.max_binop_len=f.getMaxKeyLen(f.binary_ops);var h=function(e){return new f(e).parse()},d=Object.getOwnPropertyNames(function e(){i(this,e)});Object.getOwnPropertyNames(f).filter(function(e){return!d.includes(e)&&void 0===h[e]}).forEach(function(e){h[e]=f[e]}),h.Jsep=f,h.plugins.register({name:"ternary",init:function(e){e.hooks.add("after-expression",function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;var n=t.node,r=this.gobbleExpression();if(r||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;var i=this.gobbleExpression();if(i||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:n,consequent:r,alternate:i},n.operator&&e.binary_ops[n.operator]<=.9){for(var o=n;o.right.operator&&e.binary_ops[o.right.operator]<=.9;)o=o.right;t.node.test=o.right,o.right=t.node,t.node=n}}else this.throwError("Expected :")}})}});var p="ArrowFunctionExpression";function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var b={Array:Array,Boolean:Boolean,Symbol:Symbol,Infinity:1/0,NaN:NaN,Math:Math,Number:Number,BigInt:BigInt,String:String,RegExp:RegExp,JSON:JSON,isFinite:isFinite,isNaN:isNaN,parseFloat:parseFloat,parseInt:parseInt,decodeURI:decodeURI,encodeURI:encodeURI,encodeURIComponent:encodeURIComponent,Object:{__proto__:void 0,assign:Object.assign.bind(null),fromEntries:Object.fromEntries.bind(null),hasOwn:Object.hasOwn.bind(null),keys:Object.keys.bind(null),is:Object.is.bind(null),values:Object.values.bind(null)}};function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t,n){return(g=S()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&x(i,n.prototype),i}).apply(null,arguments)}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(S=function(){return!!e})()}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;if("string"!=typeof e&&((void 0===e?"undefined":O(e))!=="object"||!e||!("type"in e)))throw"Unknown expression type ".concat(e,". Expressions must either be a string or pre-compiled string.");null==i&&(i={});var a=(t=i,n=b,(r={thisObj:void 0,variables:w({},t),globals:w({},n),addVariables:function(e){return this.variables=w({},this.variables,e),this}}).addVariables.bind(r),r),s=A("string"==typeof e?h(e):e,a);if(o(s))return s;throw{type:"Invalid result",message:"string"==typeof e?"The expression ".concat(e," did not produce a valid result"):"The expression did not produce a valid result"}}(e,t,j)}function j(e){return"boolean"==typeof e}function A(e,t){switch(e.type){case"UnaryExpression":var n,r,i,o,a,s,c,u,l,f,h,d,p=e,y=t,v=A(p.argument,y);switch(p.operator){case"+":return+v;case"-":return-v;case"~":return~v;case"!":return!v;default:throw"Expression evaluator does not support operator '".concat(p.operator,"''")}case"BinaryExpression":var b=e,m=t,w=A(b.left,m),x=A(b.right,m);switch(b.operator){case"+":return w+x;case"-":return w-x;case"*":return w*x;case"/":return w/x;case"%":return w%x;case"**":return Math.pow(w,x);case"==":return w==x;case"===":return w===x;case"!=":return w!=x;case"!==":return w!==x;case">":return w>x;case">=":return w>=x;case"<":return w<x;case"<=":return w<=x;case"in":return w in x;case"&&":return w&&x;case"||":return w||x;case"??":return null!=w?w:x;default:throw"Expression evaluator does not support operator '".concat(b.operator,"' operator")}case"ConditionalExpression":return S=e,k=t,A(S.test,k)?A(S.consequent,k):A(S.alternate,k);case"CallExpression":var S,k,j,T=e,R=t,N=null==(j=T.arguments)?void 0:j.map(C(R)),B=A(T.callee,R);if(B){if("function"!=typeof B)throw"".concat(I(T.callee)," is not a function")}else throw"No function named ".concat(I(T.callee)," is defined in this context");return B.apply(void 0,E(N));case"ArrowFunctionExpression":return L=e,U=t,W=null!=(q=null==(F=L.params)?void 0:F.map(function(e){if("Identifier"===e.type)return e.name;throw"Cannot handle parameter of type ".concat(e.type)}))?q:[],(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length<W.length)throw"Required argument(s) ".concat(W.slice(t.length,-1).join(", ")," were not provided");var r=Object.fromEntries(W.reduce(function(e,n,r){var i=t[r];return function e(t){var n;if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"function"==typeof t||null===t||(null!=(n=RegExp)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n))return!0;if((void 0===t?"undefined":O(t))==="object"){var r=!0,i=!1,o=void 0;try{for(var a,s=Object.keys(t)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var c=a.value;if(!e(t[c]))return!1}}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return!0}if(Array.isArray(t)){var u=!0,l=!1,f=void 0;try{for(var h,d=t[Symbol.iterator]();!(u=(h=d.next()).done);u=!0){var p=h.value;if(!e(p))return!1}}catch(e){l=!0,f=e}finally{try{u||null==d.return||d.return()}finally{if(l)throw f}}}return!1}(i)&&e.push([n,i]),e},[]));return A(L.body,U.addVariables(r))}).bind(null!=(V=U.thisObj)?V:null);case"MemberExpression":return function(e,t){var n,r=A(e.object,t);if(void 0===r)switch(e.object.type){case"Identifier":var i=P(e.object,t);throw ReferenceError("ReferenceError: ".concat(i," is not defined"));case"MemberExpression":var o=P(e.property,t);throw TypeError("TypeError: cannot read properties of undefined (reading '".concat(o,"')"));default:throw"VisitMemberExpression does not support operator '".concat(e.object.type,"' type")}var a=r;if("string"==typeof r)a=String.prototype;else if("number"==typeof r)a=Number.prototype;else if("function"==typeof r);else if((void 0===r?"undefined":O(r))!=="object")throw"VisitMemberExpression does not support member access on type ".concat(void 0===r?"undefined":O(r));switch(t.thisObj=a,e.property.type){case"Identifier":case"MemberExpression":n=A(e.property,t);break;default:var s=A(e.property,t);if(void 0===s)throw{type:"Illegal property access",message:"No property was supplied to the property access"};D(s),n=r[s]}return"function"==typeof n?n.bind(r):n}(e,t);case"ArrayExpression":return Z=e,z=t,null==($=Z.elements)?void 0:$.map(C(z));case"SequenceExpression":return H=e,X=t,(J=H.expressions.map(C(X)))[J.length-1];case"NewExpression":var M=e,K=t;if(M.callee&&"Identifier"===M.callee.type){var L,U,F,q,V,W,Z,z,$,H,X,J,G,Q=null==(G=M.arguments)?void 0:G.map(C(K));switch(M.callee.name){case"Date":return g(Date,E(Q));case"RegExp":return g(RegExp,E(Q));default:throw"Cannot instantiate object of type ".concat(M.callee.name)}}if(M.callee)throw"new must be called with either Date or RegExp";throw'Could not handle "new" without a specified class';case"Literal":return r=0,D((n=e).value),n.value;case"Identifier":var Y=e,ee=t;D(Y.name);var et=ee.thisObj;if(et&&((void 0===et?"undefined":O(et))==="object"||"function"==typeof et)&&Y.name in et){var en=et[Y.name];return D(en),en}if(ee.variables&&Y.name in ee.variables){var er=ee.variables[Y.name];return D(er),er}return Y.name in ee.globals?ee.globals[Y.name]:void 0;case"TemplateLiteral":return i=e,o=t,l=null!=(c=null==(a=i.expressions)?void 0:a.map(C(o)))?c:[],(f=null!=(u=null==(s=i.quasis)?void 0:s.map(C(o)))?u:[]).filter(function(e){return!e.tail}).map(function(e){return e.value}).join("")+l.join("")+f.filter(function(e){return e.tail}).map(function(e){return e.value}).join("");case"TemplateElement":return d=0,{value:(h=e).cooked,tail:h.tail};default:throw"Expression evaluator does not support expression of type '".concat(e.type,"'")}}function P(e,t){switch(e.type){case"Literal":return e.value;case"Identifier":return e.name;case"MemberExpression":return P(e.property,t);default:throw"VisitExpressionName does not support expression of type '".concat(e.type,"'")}}function C(e){return function(t){return null===t?null:A(t,e)}}function D(e){if("__proto__"===e||"prototype"===e||"constructor"===e)throw{type:"Illegal property access",message:"Cannot access the ".concat(e," property of objects")}}function I(e){if(!e)return null;if("MemberExpression"===e.type){var t;return null==(t=e.property)?void 0:t.name}return e.name}s=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},b),c=c={Promise:Promise},Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(c)).forEach(function(e){Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(c,e))}),h.plugins.register({name:"arrow",init:function(e){e.addBinaryOp("=>",.1,!0),e.hooks.add("gobble-expression",function(t){if(this.gobbleSpaces(),this.code===e.OPAREN_CODE){var n=this.index;if(this.index++,this.gobbleSpaces(),this.code===e.CPAREN_CODE){this.index++;var r=this.gobbleBinaryOp();if("=>"===r){var i=this.gobbleBinaryExpression();i||this.throwError("Expected expression after "+r),t.node={type:p,params:null,body:i};return}}this.index=n}}),e.hooks.add("after-expression",function(t){!function t(n){n&&(Object.values(n).forEach(function(e){e&&(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)=="object"&&t(e)}),"=>"===n.operator&&(n.type=p,n.params=n.left?[n.left]:null,n.body=n.right,n.params&&n.params[0].type===e.SEQUENCE_EXP&&(n.params=n.params[0].expressions),delete n.left,delete n.right,delete n.operator))}(t.node)})}}),h.plugins.register({name:"new",init:function(e){e.addUnaryOp("new"),e.hooks.add("after-token",function(t){var n=t.node;if(n&&"new"===n.operator){n.argument&&[e.CALL_EXP,e.MEMBER_EXP].includes(n.argument.type)||this.throwError("Expected new function()"),t.node=n.argument;for(var r=t.node;r.type===e.MEMBER_EXP||r.type===e.CALL_EXP&&r.callee.type===e.MEMBER_EXP;)r=r.type===e.MEMBER_EXP?r.object:r.callee.object;r.type="NewExpression"}})}}),h.plugins.register({name:"numbers",init:function(e){function t(e){return"x"===e||"X"===e?(this.index+=2,[[48,57],[65,70],[97,102]]):"b"===e||"B"===e?(this.index+=2,[[48,49]]):"o"===e||"O"===e||e>="0"&&e<="7"?(this.index+=e<="7"?1:2,[[48,55]]):null}function n(t){var n=this,r=this.index,i="",o=function(){for(;e.isDecimalDigit(n.code)||95===n.code;)95===n.code?n.index++:i+=n.expr.charAt(n.index++)};o(),this.code===e.PERIOD_CODE&&(i+=this.expr.charAt(this.index++),o());var a=this.char;("e"===a||"E"===a)&&(i+=this.expr.charAt(this.index++),("+"===(a=this.char)||"-"===a)&&(i+=this.expr.charAt(this.index++)),o(),e.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+i+this.char+")"));var s=this.code;if(e.isIdentifierStart(s))this.throwError("Variable names cannot start with a number ("+i+this.char+")");else if(s===e.PERIOD_CODE){i.length>1&&this.throwError("Unexpected period ".concat(JSON.stringify({chCode:s,number:i},null,2))),this.index=r;return}t.node={type:e.LITERAL,value:parseFloat(i),raw:this.expr.substring(r,this.index)}}e.hooks.add("gobble-token",function(r){if(48===this.code){var i=this.index,o=this.expr.charAt(this.index+1),a=t.call(this,o);if(a){for(var s,c,u,l="";s=this.code,c=a,95===s||c.some(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return y(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1];return s>=n&&s<=r});)95===this.code?this.index++:l+=this.expr.charAt(this.index++);if(e.isIdentifierPart(this.code)){if(e.isDecimalDigit(this.code)&&e.isDecimalDigit(o.charCodeAt(0))){this.index=i+1,n.call(this,r);return}this.throwError("unexpected char within number")}r.node={type:e.LITERAL,value:parseInt(l,"x"===(u=o)||"X"===u?16:"b"===u||"B"===u?2:8),raw:this.expr.substring(i,this.index)}}}else(e.isDecimalDigit(this.code)||this.code===e.PERIOD_CODE)&&n.call(this,r)})}}),h.plugins.register({name:"regex",init:function(e){e.hooks.add("gobble-token",function(t){if(47===this.code){for(var n=++this.index,r=!1;this.index<this.expr.length;){if(47===this.code&&!r){for(var i=this.expr.slice(n,this.index),o="";++this.index<this.expr.length;){var a=this.code;if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57)o+=this.char;else break}var s=void 0;try{s=new RegExp(i,o)}catch(e){this.throwError(e.message)}return t.node={type:e.LITERAL,value:s,raw:this.expr.slice(n-1,this.index)},t.node=this.gobbleTokenProperty(t.node),t.node}this.code===e.OBRACK_CODE?r=!0:r&&this.code===e.CBRACK_CODE&&(r=!1),this.index+=92===this.code?2:1}this.throwError("Unclosed Regex")}})}}),h.plugins.register({name:"ternary",init:function(e){e.hooks.add("after-expression",function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;var n=t.node,r=this.gobbleExpression();if(r||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;var i=this.gobbleExpression();if(i||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:n,consequent:r,alternate:i},n.operator&&e.binary_ops[n.operator]<=.9){for(var o=n;o.right.operator&&e.binary_ops[o.right.operator]<=.9;)o=o.right;t.node.test=o.right,o.right=t.node,t.node=n}}else this.throwError("Expected :")}})}}),h.plugins.register({name:"jsepTemplateLiteral",init:function(e){function t(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(96===this.code){for(var n={type:"TemplateLiteral",quasis:[],expressions:[]},r="",i="",o=!1,a=this.expr.length,s=function(){return n.quasis.push({type:"TemplateElement",value:{raw:i,cooked:r},tail:o})};this.index<a;){var c,u,l=this.expr.charAt(++this.index);if("`"===l)return this.index+=1,o=!0,s(),e.node=n,t&&(e.node=this.gobbleTokenProperty(e.node)),e.node;if("$"===l&&"{"===this.expr.charAt(this.index+1))this.index+=2,s(),i="",r="",(u=n.expressions).push.apply(u,function(e){if(Array.isArray(e))return v(e)}(c=this.gobbleExpressions(125))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(c)||function(e,t){if(e){if("string"==typeof e)return v(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}}(c)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),125!==this.code&&this.throwError("unclosed ${");else if("\\"===l)switch(i+=l,l=this.expr.charAt(++this.index),i+=l,l){case"n":r+="\n";break;case"r":r+="\r";break;case"t":r+=" ";break;case"b":r+="\b";break;case"f":r+="\f";break;case"v":r+="\v";break;default:r+=l}else r+=l,i+=l}this.throwError("Unclosed `")}}e.hooks.add("gobble-token",t),e.hooks.add("after-token",function(n){if((n.node.type===e.IDENTIFIER||n.node.type===e.MEMBER_EXP)&&96===this.code)return n.node={type:"TaggedTemplateExpression",tag:n.node,quasi:t.bind(this)(n,!1)},n.node=this.gobbleTokenProperty(n.node),n.node})}}),h.addBinaryOp("in",7),h.addBinaryOp("??",1)},3390:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=n(1950),o=n(5623),a=n(4874),s=n(8795),c=n(9418),u=n(7713),l=n(131),f=n(1734),h=e([f,a,i,r,l]);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}(e,t)||v(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}}[f,a,i,r,l]=h.then?(await h)():h;var b=(0,f.Co)(),m=(0,f.yw)(),g=(0,i.Gr)(),w=(0,i._z)();function x(e,t,n,a,s){var f={},h=(0,c.G)(),d=Object.entries(a.flags).filter(function(e){return p(e,2)[1].enabled}).map(function(e){return p(e,1)[0]}),v=!0,g=!1,w=void 0;try{for(var x,E=Object.entries(e.slots)[Symbol.iterator]();!(v=(x=E.next()).done);v=!0){var k=p(x.value,2),j=k[0],A=k[1],P=(0,i.$w)(t,A.name).config,C=function(e,t,n,a,s,c,u){var f=t.slots[e].attachedIds,h=function(e,t){var n=e.add||[],r=e.remove||[],i=e.order||[],o=b.getState().extensions;return y(t).concat(y(n)).filter(function(e){return!r.includes(e)}).sort(function(e,n){var r,a,s=S(e,i,null==(r=o[O(e)])?void 0:r.order,t),c=S(n,i,null==(a=o[O(n)])?void 0:a.order,t);return -1===c?-1:-1===s?1:s-c})}(n,f),d=[],p=!0,v=!1,m=void 0;try{for(var g,w=h[Symbol.iterator]();!(p=(g=w.next()).done);p=!0){var x=g.value,E=(0,i.sR)(a,e,x).config,k=O(x),j=t.extensions[k];if(j){var A,P,C,D,I,T,R,N,B,M,K,L=null!=(T=null!=(I=null==E||null==(A=E["Display conditions"])?void 0:A.privileges)?I:j.privileges)?T:[];if(L&&("string"==typeof L||Array.isArray(L)&&L.length>0)&&(!(null==u?void 0:u.user)||!(0,r.y9)(L,u.user)))continue;var U=null!=(R=null==E||null==(P=E["Display conditions"])?void 0:P.expression)?R:null;if(null!==U)try{if(!(0,o.po)(U,{session:u}))continue}catch(e){console.error("Error while evaluating expression ".concat(U),e);continue}if(j.featureFlag&&!s.includes(j.featureFlag)||window.offlineEnabled&&!(0,l.g)(c,j.online,j.offline))continue;d.push({id:x,name:k,moduleName:j.moduleName,config:E,featureFlag:j.featureFlag,meta:j.meta,online:null==(B=null!=(N=null==E||null==(C=E["Display conditions"])?void 0:C.online)?N:j.online)||B,offline:null!=(K=null!=(M=null==E||null==(D=E["Display conditions"])?void 0:D.offline)?M:j.offline)&&K})}}}catch(e){v=!0,m=e}finally{try{p||null==w.return||w.return()}finally{if(v)throw m}}return d}(j,e,P,n,d,h,s.session);f[j]={moduleName:A.moduleName,assignedExtensions:C}}}catch(e){g=!0,w=e}finally{try{v||null==E.return||E.return()}finally{if(g)throw w}}(0,u.Z)(m.getState().slots,f)||m.setState({slots:f})}function E(){x(b.getState(),g.getState(),w.getState(),a.Jg.getState(),r.Qf.getState())}function O(e){return p(e.split("#"),1)[0]}function S(e,t,n,r){var i=t.indexOf(e);if(-1!==i)return i;if(void 0!==n)return 1e3+n;var o=r.indexOf(e);return -1!==o?2e3+o:-1}b.subscribe(function(e){x(e,g.getState(),w.getState(),a.Jg.getState(),r.Qf.getState())}),g.subscribe(function(e){x(b.getState(),e,w.getState(),a.Jg.getState(),r.Qf.getState())}),w.subscribe(function(e){x(b.getState(),g.getState(),e,a.Jg.getState(),r.Qf.getState())}),a.Jg.subscribe(function(e){x(b.getState(),g.getState(),w.getState(),e,r.Qf.getState())}),r.Qf.subscribe(function(e){x(b.getState(),g.getState(),w.getState(),a.Jg.getState(),e)}),E(),(0,s.XS)(E),t()}catch(e){t(e)}})},131:function(e,t,n){"use strict";n.a(e,async function(e,r){try{function i(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!(e?t:n)}n.d(t,{g:()=>i}),r()}catch(e){r(e)}})},658:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Co:()=>u.Co,yw:()=>u.yw});var i=n(3390),o=n(9213),a=n(2398),s=n(5364),c=n(3012),u=n(1734),l=e([i,o,a,s,c,u]);[i,o,a,s,c,u]=l.then?(await l)():l,r()}catch(e){r(e)}})},9213:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5),i=e([r]);r=(i.then?(await i)():i)[0],(0,r.jk)("left-nav",{slotName:null,basePath:window.spaBase,mode:"normal"}),t()}catch(e){t(e)}})},2398:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5),i=n(658),o=e([i,r]);[i,r]=o.then?(await o)():o,(0,r.jk)("modalRegistry",{modals:{}}),t()}catch(e){t(e)}})},1871:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3390),i=n(9213),o=n(3012),a=n(1734),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},3012:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7134),i=n(3390),o=n(1734),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},1734:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{Co:()=>u,yw:()=>l});var i=n(7713),o=n(1950),a=n(5),s=e([a,o]);[a,o]=s.then?(await s)():s;var c=(0,a.jk)("extensionsInternal",{slots:{},extensions:{}}),u=function(){return(0,a.zJ)("extensionsInternal",{slots:{},extensions:{}})},l=function(){return(0,a.zJ)("extensions",{slots:{}})};function f(e){var t=[],n=!0,r=!1,a=void 0;try{for(var s,c=Object.values(e.extensions)[Symbol.iterator]();!(n=(s=c.next()).done);n=!0){var u=s.value,l=!0,f=!1,h=void 0;try{for(var d,p=u.instances[Symbol.iterator]();!(l=(d=p.next()).done);l=!0){var y=d.value;t.push({slotModuleName:y.slotModuleName,extensionModuleName:u.moduleName,slotName:y.slotName,extensionId:y.id})}}catch(e){f=!0,h=e}finally{try{l||null==p.return||p.return()}finally{if(f)throw h}}}}catch(e){r=!0,a=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw a}}(0,i.Z)(o.R2.getState().mountedExtensions,t)||o.R2.setState({mountedExtensions:t})}f(c.getState()),c.subscribe(f),r()}catch(e){r(e)}})},5364:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(658),i=n(5),o=n(1285),a=e([r,o,i]);[r,o,i]=a.then?(await a)():a,(0,i.jk)("workspaceRegistrations",{workspaces:{}}),(0,i.jk)("workspaceGroups",{workspaceGroups:{}}),t()}catch(e){t(e)}})},8795:function(e,t,n){"use strict";n.d(t,{XS:()=>i,dO:()=>o});var r="openmrs:connectivity-changed";function i(e){if(!window.offlineEnabled)return function(){};var t=function(t){return e(t.detail)};return window.addEventListener(r,t),function(){return window.removeEventListener(r,t)}}function o(e){window.dispatchEvent(new CustomEvent("openmrs:toast-shown",{detail:e}))}},3500:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5),i=e([r]);r=(i.then?(await i)():i)[0],(0,r.jk)("breadcrumbs",[]),t()}catch(e){t(e)}})},1672:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3500),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},7279:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3686),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2189:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3500),i=n(1672),o=n(7279),a=n(3686),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},3686:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7134),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2142:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(3500),i=n(1672),o=n(7279),a=n(3686),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},7737:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997);n(4197),n(5730);var i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2295:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(3741),n(7533);var r=n(88),i=n(5342),o=n(7737);n(5730);var a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},5730:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(o=function(){return!!e})()}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>s});var s=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(){var e,n,i;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");return i=["EsmOffline"],n=r(n=t),a(e=function(e,t){var n;if(t&&("object"==((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,o()?Reflect.construct(n,i||[],r(this).constructor):n.apply(this,i)),"syncQueue",void 0),a(e,"dynamicOfflineData",void 0),e.version(4).stores({syncQueue:"++id,userId,type,[userId+type]",dynamicOfflineData:"++id,type,identifier,*users,&[type+identifier]"}),e.syncQueue=e.table("syncQueue"),e.dynamicOfflineData=e.table("dynamicOfflineData"),e}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e),t}(n(4197).ZP)},5342:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5),i=n(7737),o=e([i,r]);[i,r]=o.then?(await o)():o,(0,r.jk)("offline-patients",{offlinePatientDataSyncState:{},handlers:{}}),t()}catch(e){t(e)}})},6887:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5342);n(7533);var i=n(88),o=n(7737);n(5730);var a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},7533:function(e,t,n){"use strict";n(3741)},3741:function(){"use strict";try{self["workbox:window:6.5.4"]&&_()}catch(e){}function e(e,t){return new Promise(function(n){var r=new MessageChannel;r.port1.onmessage=function(e){n(e.data)},e.postMessage(t,[r.port2])})}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}try{self["workbox:core:6.5.4"]&&_()}catch(e){}var r=function(){var e=this;this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})};function i(e,t){var n=location.href;return new URL(e,n).href===new URL(t,n).href}var o=function(e,t){this.type=e,Object.assign(this,t)};function a(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function s(){}var c={type:"SKIP_WAITING"};function u(e,t){if(!t)return e&&e.then?e.then(s):Promise.resolve()}!function(n){function s(e,t){var s,c;return void 0===t&&(t={}),(s=n.call(this)||this).nn={},s.tn=0,s.rn=new r,s.en=new r,s.on=new r,s.un=0,s.an=new Set,s.cn=function(){var e=s.fn,t=e.installing;s.tn>0||!i(t.scriptURL,s.sn.toString())||performance.now()>s.un+6e4?(s.vn=t,e.removeEventListener("updatefound",s.cn)):(s.hn=t,s.an.add(t),s.rn.resolve(t)),++s.tn,t.addEventListener("statechange",s.ln)},s.ln=function(e){var t=s.fn,n=e.target,r=n.state,i=n===s.vn,a={sw:n,isExternal:i,originalEvent:e};!i&&s.mn&&(a.isUpdate=!0),s.dispatchEvent(new o(r,a)),"installed"===r?s.wn=self.setTimeout(function(){"installed"===r&&t.waiting===n&&s.dispatchEvent(new o("waiting",a))},200):"activating"===r&&(clearTimeout(s.wn),i||s.en.resolve(n))},s.dn=function(e){var t=s.hn,n=t!==navigator.serviceWorker.controller;s.dispatchEvent(new o("controlling",{isExternal:n,originalEvent:e,sw:t,isUpdate:s.mn})),n||s.on.resolve(t)},c=function(e){var t=e.data,n=e.ports,r=e.source;return a(s.getSW(),function(){s.an.has(r)&&s.dispatchEvent(new o("message",{data:t,originalEvent:e,ports:n,sw:r}))})},s.gn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(c.apply(this,e))}catch(e){return Promise.reject(e)}},s.sn=e,s.nn=t,navigator.serviceWorker.addEventListener("message",s.gn),s}s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.__proto__=n;var l,f=s.prototype;f.register=function(e){var t=(void 0===e?{}:e).immediate,n=void 0!==t&&t;try{var r,s,c,l=this;return r=function(){if(!n&&"complete"!==document.readyState)return u(new Promise(function(e){return window.addEventListener("load",e)}))},s=function(){return l.mn=!!navigator.serviceWorker.controller,l.yn=l.pn(),a(l.bn(),function(e){l.fn=e,l.yn&&(l.hn=l.yn,l.en.resolve(l.yn),l.on.resolve(l.yn),l.yn.addEventListener("statechange",l.ln,{once:!0}));var t=l.fn.waiting;return t&&i(t.scriptURL,l.sn.toString())&&(l.hn=t,Promise.resolve().then(function(){l.dispatchEvent(new o("waiting",{sw:t,wasWaitingBeforeRegister:!0}))}).then(function(){})),l.hn&&(l.rn.resolve(l.hn),l.an.add(l.hn)),l.fn.addEventListener("updatefound",l.cn),navigator.serviceWorker.addEventListener("controllerchange",l.dn),l.fn})},(c=r())&&c.then?c.then(s):s(c)}catch(e){return Promise.reject(e)}},f.update=function(){try{return this.fn?u(this.fn.update()):void 0}catch(e){return Promise.reject(e)}},f.getSW=function(){return void 0!==this.hn?Promise.resolve(this.hn):this.rn.promise},f.messageSW=function(t){try{return a(this.getSW(),function(n){return e(n,t)})}catch(e){return Promise.reject(e)}},f.messageSkipWaiting=function(){this.fn&&this.fn.waiting&&e(this.fn.waiting,c)},f.pn=function(){var e=navigator.serviceWorker.controller;return e&&i(e.scriptURL,this.sn.toString())?e:void 0},f.bn=function(){try{var e=this;return function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}(function(){return a(navigator.serviceWorker.register(e.sn,e.nn),function(t){return e.un=performance.now(),t})},function(e){throw e})}catch(e){return Promise.reject(e)}},t(s.prototype,[{key:"active",get:function(){return this.en.promise}},{key:"controlling",get:function(){return this.on.promise}}]),l&&t(s,l)}(function(){function e(){this.Pn=new Map}var t=e.prototype;return t.addEventListener=function(e,t){this.Sn(e).add(t)},t.removeEventListener=function(e,t){this.Sn(e).delete(t)},t.dispatchEvent=function(e){e.target=this;for(var t,r=function(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,void 0):void 0}}(e))){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}(this.Sn(e.type));!(t=r()).done;)(0,t.value)(e)},t.Sn=function(e){return this.Pn.has(e)||this.Pn.set(e,new Set),this.Pn.get(e)},e}())},88:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(4197);var r=n(6997),i=n(5),o=n(5730),a=e([r,i]);[r,i]=a.then?(await a)():a,new o.A,(0,i.jk)("offline-synchronization",{}),t()}catch(e){t(e)}})},4208:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],(0,r.createContext)({moduleName:"",featureName:""}),t()}catch(e){t(e)}})},2626:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(2189),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},9631:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(658),i=n(810),o=n(957),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},3840:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(4208),o=n(9631),a=n(3062),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},2570:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(1519),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},7348:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},3077:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=n(810),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},1528:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810);n(9011),n(4295);var i=n(5487),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},957:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(4208),i=n(2626),o=n(9631),a=n(3840),s=n(2570),c=n(7348),u=n(3077),l=n(1528),f=n(5487),h=n(8553),d=n(7741),p=n(2071),y=n(9186),v=n(2844),b=n(425),m=n(9020),g=n(4238),w=n(9921),x=n(1782),E=n(1519),O=n(2903),S=n(7890),k=n(3062),j=n(9669),A=n(7990),P=n(6457),C=n(7265),D=n(1657),I=n(1780),T=n(9725),R=n(9469),N=n(1615),B=n(7240),M=n(4406),K=n(5933),L=n(4895),U=n(1850),F=n(7719),q=n(6827),V=n(3059),W=n(3743),Z=n(1880),z=n(7625),$=n(3839),H=n(5959),X=n(1587),J=n(1445),G=n(1639),Q=n(9484),Y=n(4087),ee=e([r,i,o,a,s,c,u,l,f,h,d,p,y,v,b,m,g,w,x,E,O,S,k,j,A,P,C,D,I,T,R,N,B,M,K,L,U,F,q,V,W,Z,z,$,H,X,J,G,Q,Y]);[r,i,o,a,s,c,u,l,f,h,d,p,y,v,b,m,g,w,x,E,O,S,k,j,A,P,C,D,I,T,R,N,B,M,K,L,U,F,q,V,W,Z,z,$,H,X,J,G,Q,Y]=ee.then?(await ee)():ee,t()}catch(e){t(e)}})},5487:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(7987),o=n(5941),a=n(6997),s=n(4208),c=e([r,i,o,a,s]);[r,i,o,a,s]=c.then?(await c)():c,t()}catch(e){t(e)}})},9711:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(2626),i=n(9631),o=n(3840),a=n(3077),s=n(1528),c=n(2570),u=n(7348),l=n(8553),f=n(7741),h=n(9186),d=n(2071),p=n(2844),y=n(425),v=n(9020),b=n(4238),m=n(9921),g=n(1782),w=n(1519),x=n(2903),E=n(9669),O=n(6457),S=n(7990),k=n(7265),j=n(1615),A=n(7240),P=n(4406),C=n(5933),D=n(4895),I=n(1850),T=n(7719),R=n(3059),N=n(1880),B=n(4087),M=n(7625),K=n(3839),L=n(5959),U=n(1587),F=n(6827),q=n(3743),V=n(9469),W=n(9725),Z=n(1780),z=n(9484),$=n(1639),H=n(1445),X=e([r,i,o,a,s,c,u,l,f,h,d,p,y,v,b,m,g,w,x,E,O,S,k,j,A,P,C,D,I,T,R,N,B,M,K,L,U,F,q,V,W,Z,z,$,H]);[r,i,o,a,s,c,u,l,f,h,d,p,y,v,b,m,g,w,x,E,O,S,k,j,A,P,C,D,I,T,R,N,B,M,K,L,U,F,q,V,W,Z,z,$,H]=X.then?(await X)():X,t()}catch(e){t(e)}})},8553:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},7741:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2071:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(658),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},9186:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7990),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2844:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),o=n(6997),a=n(5376),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},425:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},9020:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(1950),o=n(4208),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},4238:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9186),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},9921:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},1782:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},1519:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},2903:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(9847),o=n(6997),a=e([r,i,o]);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}[r,i,o]=a.then?(await a)():a,[["admissionDecisionConcept","ref"],["admissionEncounterType","ref"],["admissionForm","ref"],["atFacilityVisitType","ref"],["bedAssignmentEncounterType","ref"],["cancelADTRequestEncounterType","ref"],["checkInClerkEncounterRole","ref"],["checkInEncounterType","ref"],["clinicianEncounterRole","ref"],["conceptSourcesForDiagnosisSearch","ref"],["consultEncounterType","ref"],["consultFreeTextCommentsConcept","ref"],["denyAdmissionConcept","ref"],["diagnosisMetadata","ref"],["diagnosisSets","ref"],["dischargeForm","ref"],["dispositionDescriptor","ref"],["dispositions","ref"],["emrApiConceptSource","ref"],["exitFromInpatientEncounterType","ref"],["extraPatientIdentifierTypes","ref"],["fullPrivilegeLevel","ref"],["highPrivilegeLevel","ref"],["identifierTypesToSearch","ref"],["inpatientNoteEncounterType","ref"],["lastViewedPatientSizeLimit","ref"],["metadataSourceName","ref"],["motherChildRelationshipType","ref"],["narrowerThanConceptMapType","ref"],["nonDiagnosisConceptSets","ref"],["orderingProviderEncounterRole","ref"],["patientDiedConcept","ref"],["personImageDirectory","ref"],["primaryIdentifierType","ref"],["sameAsConceptMapType","ref"],["suppressedDiagnosisConcepts","ref"],["supportsAdmissionLocationTag","(uuid,display,name,links)"],["supportsLoginLocationTag","(uuid,display,name,links)"],["supportsTransferLocationTag","(uuid,display,name,links)"],["supportsVisitsLocationTag","(uuid,display,name,links)"],["telephoneAttributeType","ref"],["testPatientPersonAttributeType","ref"],["transferForm","ref"],["transferRequestEncounterType","ref"],["transferWithinHospitalEncounterType","ref"],["unknownCauseOfDeathConcept","ref"],["unknownLocation","ref"],["unknownPatientPersonAttributeType","ref"],["unknownProvider","ref"],["visitAssignmentHandlerAdjustEncounterTimeOfDayIfNecessary","ref"],["visitExpireHours","ref"],["visitNoteEncounterType","ref"]].map(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return s(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=t[0],r=t[1];return"".concat(n,":").concat(r)}).join(","),t()}catch(e){t(e)}})},7890:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(658),i=n(7625),o=e([i,r]);[i,r]=o.then?(await o)():o,(0,i.NV)((0,r.Co)()),t()}catch(e){t(e)}})},3062:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(658),o=n(4208),a=n(9186),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},9669:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(9186),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},7990:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(658),i=n(7625),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},6457:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(658),i=n(7625),o=e([i,r]);[i,r]=o.then?(await o)():o,(0,i.NV)((0,r.yw)()),t()}catch(e){t(e)}})},7265:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(7625),i=n(4874),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},1780:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9469),i=n(1445),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},9725:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9469),i=n(1639),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},9469:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=n(9484),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},1657:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},1615:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},7240:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(658),o=n(4208),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},4406:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(658),i=n(7625),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},5933:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5376),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},4895:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},1850:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},1445:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(1639),o=n(9484),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},1639:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=n(810),o=n(1448),a=n(9484),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},9484:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=n(810),o=n(5941),a=n(9847),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},7719:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),o=n(6997),a=n(8553),s=e([r,i,o,a]);[r,i,o,a]=s.then?(await s)():s,t()}catch(e){t(e)}})},6827:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},3059:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),o=n(5376),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},3743:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),o=n(6997),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},1880:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(957),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},4087:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(6997),i=n(810),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},7625:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{NV:()=>l});var i=n(5),o=n(810),a=e([i,o]);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}(e,t)||u(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}}function l(e){return function(t){var n=c((0,o.useState)(e.getState()),2),r=n[0],i=n[1];(0,o.useEffect)(function(){return e.subscribe(function(e){return i(e)})},[]);var a=(0,o.useMemo)(function(){return t?function(e,t){"function"==typeof t&&(t=t(e));var n={},r=!0,i=!1,o=void 0;try{for(var a,l=Object.entries(t)[Symbol.iterator]();!(r=(a=l.next()).done);r=!0)!function(){var t=c(a.value,2),r=t[0],i=t[1];n[r]=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];e.setState(function(e){return i.apply(void 0,[e].concat(function(e){if(Array.isArray(e))return s(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||u(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))})}}()}catch(e){i=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}(e,t):{}},[t]);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},r,a)}}[i,o]=a.then?(await a)():a,r()}catch(e){r(e)}})},3839:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5941),o=n(1338),a=n(7530),s=n(6997),c=n(5376),u=n(5959),l=e([r,i,s,c,u,o]);[r,i,s,c,u,o]=l.then?(await l)():l,o.default.extend(a),t()}catch(e){t(e)}})},5959:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(810),i=n(5376),o=n(7625),a=e([r,i,o]);[r,i,o]=a.then?(await a)():a,t()}catch(e){t(e)}})},1587:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(5376),i=n(810),o=e([r,i]);[r,i]=o.then?(await o)():o,t()}catch(e){t(e)}})},5:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{jk:()=>i.jk,zJ:()=>i.zJ});var i=n(9790),o=e([i]);i=(o.then?(await o)():o)[0],r()}catch(e){r(e)}})},7418:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(9790),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},9790:function(e,t,n){"use strict";n.a(e,async function(e,r){try{n.d(t,{jk:()=>a,zJ:()=>s});var i=n(1844),o={};function a(e,t){var n=o[e];if(n)return n.active?console.error("Attempted to override the existing store ".concat(e,". Make sure that stores are only created once.")):n.value.setState(t,!0),n.active=!0,n.value;var r=(0,i.M)()(function(){return t});return o[e]={value:r,active:!0},r}function s(e,t){var n=o[e];if(!n){var r=(0,i.M)()(function(){return null!=t?t:{}});return o[e]={value:r,active:!1},r}return n.value}setTimeout(function(){"development"===window.spaEnv&&(window.stores=o)},1e3),r()}catch(e){r(e)}})},1285:function(e,t,n){"use strict";n.a(e,async function(e,t){try{n(3762);var r=n(2021),i=e([r]);((r=(i.then?(await i)():i)[0]).default.default||r.default).on("initialized",function(){window.i18next.loadNamespaces(["core"])}),t()}catch(e){t(e)}})},1556:function(e,t,n){"use strict";n.a(e,async function(e,t){try{var r=n(1285),i=e([r]);r=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},3762:function(){"use strict";var e,t;e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},{address1:"Address line 1",address2:"Address line 2",address3:"Address line 3",address4:"Address line 4",address5:"Address line 5",address6:"Address line 6",city:"City",cityVillage:"City",country:"Country",countyDistrict:"District",district:"District",postalCode:"Postal code",state:"State",stateProvince:"State"},{closeAllOpenedWorkspaces:"Discard changes in {{count}} workspaces",closingAllWorkspacesPromptBody:"There may be unsaved changes in the following workspaces. Do you want to discard changes in the following workspaces? {{workspaceNames}}",closingAllWorkspacesPromptTitle:"You have unsaved changes",discard:"Discard",hide:"Hide",maximize:"Maximize",minimize:"Minimize",openAnyway:"Open anyway",unsavedChangesInOpenedWorkspace:"You may have unsaved changes in the opened workspace. Do you want to discard these changes?",unsavedChangesInWorkspace:'There may be unsaved changes in "{{workspaceName}}". Please save them before opening another workspace.',unsavedChangesTitleText:"Unsaved changes",workspaceHeader:"Workspace header"}),t=t={actions:"Actions",address:"Address",age:"Age",cancel:"Cancel",change:"Change",Clinic:"Clinic",close:"Close",confirm:"Confirm",contactAdministratorIfIssuePersists:"Contact your system administrator if the problem persists.",contactDetails:"Contact details",delete:"Delete",edit:"Edit",error:"Error",errorCopy:"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.",female:"Female",loading:"Loading",male:"Male",other:"Other",patientIdentifierSticker:"Patient identifier sticker",patientLists:"Patient lists",print:"Print",printError:"Print error",printErrorExplainer:"An error occurred in {{errorLocation}}",printIdentifierSticker:"Print identifier sticker",printing:"Printing",relationships:"Relationships",resetOverrides:"Reset overrides",save:"Save",scriptLoadingFailed:"Error: Script failed to load",scriptLoadingError:"Failed to load overridden script from {{url}}. Please check that the bundled script is available at the expected URL. Click the button below to reset all import map overrides.",seeMoreLists:"See {{count}} more lists",sex:"Sex",showLess:"Show less",showMore:"Show more",toggleDevTools:"Toggle dev tools",unknown:"Unknown"},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})},9418:function(e,t,n){"use strict";function r(e){return!window.offlineEnabled||(null!=e?e:navigator.onLine)}n.d(t,{G:()=>r})}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}(()=>{var e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",r="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",i=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},o=n=>n.map(n=>{if(null!==n&&"object"==typeof n){if(n[e])return n;if(n.then){var o=[];o.d=0,n.then(e=>{a[t]=e,i(o)},e=>{a[r]=e,i(o)});var a={};return a[e]=e=>e(o),a}}var s={};return s[e]=function(){},s[t]=n,s});n.a=(n,a,s)=>{s&&((c=[]).d=-1);var c,u,l,f,h=new Set,d=n.exports,p=new Promise((e,t)=>{f=t,l=e});p[t]=d,p[e]=e=>{c&&e(c),h.forEach(e),p.catch(function(){})},n.exports=p,a(n=>{u=o(n);var i,a=()=>u.map(e=>{if(e[r])throw e[r];return e[t]}),s=new Promise(t=>{(i=()=>t(a)).r=0;var n=e=>e!==c&&!h.has(e)&&(h.add(e),e&&!e.d&&(i.r++,e.push(i)));u.map(t=>t[e](n))});return i.r?s:a()},e=>(e?f(p[r]=e):l(d),i(c))),c&&c.d<0&&(c.d=0)}})(),n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.rv=()=>"1.3.11",n.ruid="bundler=rspack@1.3.11",n(8968)})();
2
2
  //# sourceMappingURL=openmrs-esm-framework.js.map