@nmshd/app-runtime 3.2.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/buildInformation.js +4 -4
  2. package/dist/events/ExternalEventReceivedEvent.d.ts +3 -6
  3. package/dist/events/ExternalEventReceivedEvent.d.ts.map +1 -1
  4. package/dist/events/ExternalEventReceivedEvent.js +2 -5
  5. package/dist/events/ExternalEventReceivedEvent.js.map +1 -1
  6. package/dist/modules/pushNotifications/IBackboneEventContent.d.ts +1 -1
  7. package/dist/modules/pushNotifications/IBackboneEventContent.d.ts.map +1 -1
  8. package/dist/modules/pushNotifications/PushNotificationModule.d.ts +1 -0
  9. package/dist/modules/pushNotifications/PushNotificationModule.d.ts.map +1 -1
  10. package/dist/modules/pushNotifications/PushNotificationModule.js +12 -6
  11. package/dist/modules/pushNotifications/PushNotificationModule.js.map +1 -1
  12. package/dist/modules/runtimeEvents/MessageReceivedModule.d.ts.map +1 -1
  13. package/dist/modules/runtimeEvents/MessageReceivedModule.js +1 -2
  14. package/dist/modules/runtimeEvents/MessageReceivedModule.js.map +1 -1
  15. package/dist/multiAccount/MultiAccountController.d.ts +2 -0
  16. package/dist/multiAccount/MultiAccountController.d.ts.map +1 -1
  17. package/dist/multiAccount/MultiAccountController.js +16 -0
  18. package/dist/multiAccount/MultiAccountController.js.map +1 -1
  19. package/dist/multiAccount/data/LocalAccount.d.ts +2 -0
  20. package/dist/multiAccount/data/LocalAccount.d.ts.map +1 -1
  21. package/dist/multiAccount/data/LocalAccount.js +5 -0
  22. package/dist/multiAccount/data/LocalAccount.js.map +1 -1
  23. package/dist/multiAccount/data/LocalAccountDTO.d.ts +1 -0
  24. package/dist/multiAccount/data/LocalAccountDTO.d.ts.map +1 -1
  25. package/dist/multiAccount/data/LocalAccountMapper.d.ts.map +1 -1
  26. package/dist/multiAccount/data/LocalAccountMapper.js +2 -1
  27. package/dist/multiAccount/data/LocalAccountMapper.js.map +1 -1
  28. package/dist/multiAccount/data/LocalAccountSession.d.ts +1 -0
  29. package/dist/multiAccount/data/LocalAccountSession.d.ts.map +1 -1
  30. package/package.json +7 -14
  31. package/lib-web/nmshd.app-runtime.js +0 -23962
  32. package/lib-web/nmshd.app-runtime.min.js +0 -3
  33. package/ui5.yaml +0 -9
@@ -1,3 +0,0 @@
1
- /*! For license information please see nmshd.app-runtime.min.js.LICENSE.txt */
2
- var NMSHDAppRuntime;(()=>{var e={142:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.DatabaseType=void 0,function(e){e.LokiJs="LokiJs",e.MongoDb="MongoDb"}(r||(t.DatabaseType=r={}))},4057:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9200:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1925:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6439:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3203:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(142),t),i(r(4057),t),i(r(9200),t),i(r(1925),t),i(r(6439),t)},1505:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},865:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LokiJsCollection=void 0;const n=r(3203);t.LokiJsCollection=class LokiJsCollection{collection;name;databaseType=n.DatabaseType.LokiJs;constructor(e){this.collection=e,this.name=e.name}async create(e){if(e)return"function"==typeof e.toJSON&&(e=e.toJSON()),this.collection.insert(e),e}async read(e){return this.collection.chain().find({id:e}).limit(1).data()[0]}async update(e,t){return"function"==typeof t.toJSON&&(t=t.toJSON()),t.$loki=e.$loki,t.meta=e.meta,this.collection.update(t),t}async delete(e){"string"==typeof e&&(e={id:e}),"function"==typeof e.toJSON&&(e=e.toJSON());const t=this.collection.chain().find(e);return!(t.data().length<1)&&(t.remove(),!0)}async list(){return this.collection.chain().data()}async find(e,t){let r=this.collection.chain().find(e);return t&&(t.skip&&(r=r.offset(t.skip)),t.limit&&(r=r.limit(t.limit))),r.data()}async findOne(e){return this.collection.chain().find(e).limit(1).data()[0]}async count(e){return this.collection.count(e)}async exists(e){return await this.count(e)>0}}},776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LokiJsCollectionProvider=void 0;const n=r(865),i=r(7631);t.LokiJsCollectionProvider=class LokiJsCollectionProvider{db;onClosed;constructor(e,t){this.db=e,this.onClosed=t}getLokidbCollection(e){let t=this.db.getCollection(e);return null===t&&(t=this.db.addCollection(e)),t}getCollection(e){const t=new n.LokiJsCollection(this.getLokidbCollection(e));return Promise.resolve(t)}getMap(e){const t=new i.LokiJsMap(this.getLokidbCollection(e));return Promise.resolve(t)}async close(){await new Promise((e=>this.db.saveDatabase(e))),await new Promise((e=>this.db.close(e))),this.onClosed()}}},5725:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LokiJsConnection=void 0;const i=n(r(5514)),a=r(776);class LokiJsConnection{folder;databaseFactory;lokiJsOptions;providers;static defaultDatabaseFactory={create:(e,t)=>new i.default(e,t)};constructor(e,t=LokiJsConnection.defaultDatabaseFactory,r={}){this.folder=e,this.databaseFactory=t,this.lokiJsOptions=r,this.providers=new Map}static fileSystem(e,t){return new LokiJsConnection(e,this.defaultDatabaseFactory,{...t,persistenceMethod:"fs"})}static localStorage(e){return new LokiJsConnection("",this.defaultDatabaseFactory,{...e,persistenceMethod:"localStorage"})}static inMemory(e){return new LokiJsConnection("",this.defaultDatabaseFactory,{...e,persistenceMethod:"memory"})}onCollectionClosed(e){this.providers.delete(e)}async deleteDatabase(e){const t=(await this.getDatabase(e)).db;await new Promise(((e,r)=>t.deleteDatabase((t=>{t&&r(t),e()})))),this.providers.delete(e)}async getDatabase(e){const t=this.providers.get(e);if(t)return t;const r=this;return await new Promise((t=>{const n=this.databaseFactory.create(`${this.folder}/${e}.db`,{...this.lokiJsOptions,autoload:!0,autosave:!0,autosaveInterval:5e3,autoloadCallback:()=>{const i=new a.LokiJsCollectionProvider(n,(()=>r.onCollectionClosed(e)));r.providers.set(e,i),t(i)}})}))}async closeAllProviders(){const e=Array.from(this.providers.values()).map((e=>e.close()));await Promise.all(e)}async close(){await this.closeAllProviders()}}t.LokiJsConnection=LokiJsConnection},7631:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LokiJsMap=void 0;const n=r(3203);t.LokiJsMap=class LokiJsMap{collection;name;databaseType=n.DatabaseType.LokiJs;_map;constructor(e){this.collection=e,this.collection=e,this.name=e.name}async set(e,t){void 0===this._map&&await this.initMap(),"function"==typeof t.toJSON&&(t=t.toJSON());const r=this._map.get(e);this._map.set(e,{name:e,value:t});const n=this.collection.chain().find({name:e}).limit(1).data();r&&0!==n.length?this.collection.update({$loki:n[0].$loki,meta:n[0].meta,name:e,value:t}):this.collection.insert({name:e,value:t})}async get(e){void 0===this._map&&await this.initMap();const t=this._map.get(e);return void 0!==t?t.value:null}async delete(e){return!!this._map.has(e)&&(this._map.delete(e),this.collection.chain().find({name:e}).remove(),!0)}async initMap(){const e=new Map,t=await this.list();for(const r of t)e.set(r.name,{name:r.name,meta:r.meta,$loki:r.$loki,value:r.value});return this._map=e,e}async find(e){return this.collection.find({name:{$regex:e}})}async list(){return this.collection.chain().data()}}},3887:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9351:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(1505),t),i(r(865),t),i(r(776),t),i(r(5725),t),i(r(7631),t),i(r(3887),t)},1587:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8432:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3941:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Debug="debug",e.Release="release",e.Webapp="webapp"}(r||(r={}))},1140:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9617:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.PushServices=void 0,function(e){e.apns="apns",e.fcm="fcm",e.none="none"}(r||(t.PushServices=r={}))},2864:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7619:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7133:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.NativeFileStorage=void 0,function(e){e.Temp="temp",e.Home="home",e.Data="data",e.App="app"}(r||(t.NativeFileStorage=r={}))},599:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7146:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2915:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2352:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},158:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1616:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9249:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},175:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4794:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.NativeErrorCodes=void 0,function(e){e.NOT_IMPLEMENTED_ERROR="NOT_IMPLEMENTED_ERROR",e.BIOMETRIC_UNKNOWN_ERROR="BIOMETRIC_UNKNOWN_ERROR",e.BIOMETRIC_UNAVAILABLE="BIOMETRIC_UNAVAILABLE",e.BIOMETRIC_AUTHENTICATION_FAILED="BIOMETRIC_AUTHENTICATION_FAILED",e.BIOMETRIC_SDK_NOT_SUPPORTED="BIOMETRIC_SDK_NOT_SUPPORTED",e.BIOMETRIC_HARDWARE_NOT_SUPPORTED="BIOMETRIC_HARDWARE_NOT_SUPPORTED",e.BIOMETRIC_PERMISSION_NOT_GRANTED="BIOMETRIC_PERMISSION_NOT_GRANTED",e.BIOMETRIC_NOT_ENROLLED="BIOMETRIC_NOT_ENROLLED",e.BIOMETRIC_INTERNAL_PLUGIN_ERROR="BIOMETRIC_INTERNAL_PLUGIN_ERROR",e.BIOMETRIC_DISMISSED="BIOMETRIC_DISMISSED",e.BIOMETRIC_PIN_OR_PATTERN_DISMISSED="BIOMETRIC_PIN_OR_PATTERN_DISMISSED",e.BIOMETRIC_SCREEN_GUARD_UNSECURED="BIOMETRIC_SCREEN_GUARD_UNSECURED",e.BIOMETRIC_LOCKED_OUT="BIOMETRIC_LOCKED_OUT",e.BIOMETRIC_LOCKED_OUT_PERMANENT="BIOMETRIC_LOCKED_OUT_PERMANENT",e.BIOMETRIC_SECRET_NOT_FOUND="BIOMETRIC_SECRET_NOT_FOUND",e.SCANNER_CANCELLED="SCANNER_CANCELLED",e.SCANNER_TIMEOUT="SCANNER_TIMEOUT",e.SCANNER_UNKNOWN="SCANNER_UNKNOWN",e.KEYCHAIN_UNKNOWN="KEYCHAIN_UNKNOWN",e.KEYCHAIN_NOT_FOUND="KEYCHAIN_NOT_FOUND",e.FILESYSTEM_UNKNOWN="FILESYSTEM_UNKNOWN",e.FILESYSTEM_NOT_FOUND="FILESYSTEM_NOT_FOUND",e.FILESYSTEM_SECURITY="FILESYSTEM_SECURITY",e.FILESYSTEM_NO_MODIFICATION_ALLOWED="FILESYSTEM_NO_MODIFICATION_ALLOWED",e.FILESYSTEM_INVALID_MODIFICATION="FILESYSTEM_INVALID_MODIFICATION",e.FILESYSTEM_PATH_EXISTS="FILESYSTEM_PATH_EXISTS",e.FILESYSTEM_SELECTION_CANCELLED="FILESYSTEM_SELECTION_CANCELLED",e.CONFIG_UNKNOWN="CONFIG_UNKNOWN",e.CONFIG_FILESYSTEM="CONFIG_FILESYSTEM",e.CONFIG_INIT="CONFIG_INIT",e.CONFIG_NOT_FOUND="CONFIG_NOT_FOUND",e.BOOTSTRAP_ALREADY_INITIALIZED="BOOTSTRAP_ALREADY_INITIALIZED",e.BOOTSTRAP_NOT_INITIALIZED="BOOTSTRAP_NOT_INITIALIZED",e.THEME_COULD_NOT_BE_APPLIED="THEME_COULD_NOT_BE_APPLIED",e.NOTIFICATION_UNKNOWN="NOTIFICATION_UNKNOWN"}(r||(t.NativeErrorCodes=r={}))},8660:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NativeEvent=void 0;const n=r(1917);class NativeEvent extends n.Event{}t.NativeEvent=NativeEvent},683:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackButtonEvent=t.ThemeEvent=t.ThemeTextStyle=t.AppCloseEvent=t.AppReadyEvent=t.FileViewEvent=t.UrlOpenEvent=t.ConfigurationRemoveEvent=t.ConfigurationSetEvent=t.ConfigurationSaveEvent=t.RemoteNotificationEvent=t.RemoteNotificationRegistrationEvent=void 0;const n=r(8660);class RemoteNotificationRegistrationEvent extends n.NativeEvent{constructor(e){super(RemoteNotificationRegistrationEvent.namespace),this.token=e}}t.RemoteNotificationRegistrationEvent=RemoteNotificationRegistrationEvent,RemoteNotificationRegistrationEvent.namespace="RemoteNotificationRegistration";class RemoteNotificationEvent extends n.NativeEvent{constructor(e){super(RemoteNotificationEvent.namespace),this.notification=e}}t.RemoteNotificationEvent=RemoteNotificationEvent,RemoteNotificationEvent.namespace="RemoteNotification";class ConfigurationSaveEvent extends n.NativeEvent{constructor(){super(ConfigurationSaveEvent.namespace)}}t.ConfigurationSaveEvent=ConfigurationSaveEvent,ConfigurationSaveEvent.namespace="ConfigurationSave";class ConfigurationSetEvent extends n.NativeEvent{constructor(e,t){super(ConfigurationSetEvent.namespace),this.key=e,this.value=t}}t.ConfigurationSetEvent=ConfigurationSetEvent,ConfigurationSetEvent.namespace="ConfigurationSet";class ConfigurationRemoveEvent extends n.NativeEvent{constructor(e){super(ConfigurationRemoveEvent.namespace),this.key=e}}t.ConfigurationRemoveEvent=ConfigurationRemoveEvent,ConfigurationRemoveEvent.namespace="ConfigurationRemove";class UrlOpenEvent extends n.NativeEvent{constructor(e){super(UrlOpenEvent.namespace),this.url=e}}t.UrlOpenEvent=UrlOpenEvent,UrlOpenEvent.namespace="UrlOpenEvent";class FileViewEvent extends n.NativeEvent{constructor(e){super(FileViewEvent.namespace),this.uri=e}}t.FileViewEvent=FileViewEvent,FileViewEvent.namespace="FileViewEvent";class AppReadyEvent extends n.NativeEvent{constructor(){super(AppReadyEvent.namespace)}}t.AppReadyEvent=AppReadyEvent,AppReadyEvent.namespace="AppReadyEvent";class AppCloseEvent extends n.NativeEvent{constructor(){super(AppCloseEvent.namespace)}}var i;t.AppCloseEvent=AppCloseEvent,AppCloseEvent.namespace="AppCloseEvent",function(e){e.Dark="dark",e.Light="light"}(i||(t.ThemeTextStyle=i={}));class ThemeEvent extends n.NativeEvent{constructor(e,t,r,n){super(ThemeEvent.namespace),this.backgroundColor=e,this.textStyle=t,this.textColor=r,this.image=n}}t.ThemeEvent=ThemeEvent,ThemeEvent.namespace="ThemeEvent";class BackButtonEvent extends n.NativeEvent{constructor(){super(BackButtonEvent.namespace)}}t.BackButtonEvent=BackButtonEvent,BackButtonEvent.namespace="BackButtonEvent"},626:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.NativePlatform=void 0,function(e){e.Cordova="Cordova",e.Node="Node",e.Web="Web"}(r||(t.NativePlatform=r={}))},2241:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(1587),t),i(r(8432),t),i(r(3941),t),i(r(1140),t),i(r(9617),t),i(r(2864),t),i(r(7619),t),i(r(7133),t),i(r(599),t),i(r(7146),t),i(r(2915),t),i(r(2352),t),i(r(158),t),i(r(1616),t),i(r(9249),t),i(r(175),t),i(r(4794),t),i(r(8660),t),i(r(683),t),i(r(626),t)},8072:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7040:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEventNamespaceFromObject=t.EventBus=void 0;t.EventBus=class EventBus{},t.getEventNamespaceFromObject=function getEventNamespaceFromObject(e){return e.namespace}},4226:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionTargetInfo=void 0;class SubscriptionTargetInfo{namespace;constructor(e){this.namespace=e}static from(e){return e instanceof Function?new ConstructorSubscriptionTargetInfo(e):new NamespaceSubscriptionTargetInfo(e)}}t.SubscriptionTargetInfo=SubscriptionTargetInfo;class ConstructorSubscriptionTargetInfo extends SubscriptionTargetInfo{constructorFunction;constructor(e){super(function getEventNamespaceFromClass(e){return e.namespace}(e)),this.constructorFunction=e}isCompatibleWith(e){return e instanceof this.constructorFunction}}class NamespaceSubscriptionTargetInfo extends SubscriptionTargetInfo{constructor(e){super(e)}isCompatibleWith(e){return!0}}},6465:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventEmitter2EventBus=void 0;const n=r(9902);r(864);const i=r(7040),a=r(4226);t.EventEmitter2EventBus=class EventEmitter2EventBus{errorCallback;emitter;listeners=new Map;nextId=0;invocationPromises=[];constructor(e,t){this.errorCallback=e,this.emitter=new n.EventEmitter2({maxListeners:50,verboseMemoryLeak:!0,...t,wildcard:!0})}subscribe(e,t){return this.registerHandler(e,t)}subscribeOnce(e,t){return this.registerHandler(e,t,!0)}unsubscribe(e){return this.unregisterHandler(e)}registerHandler(e,t,r=!1){const n=a.SubscriptionTargetInfo.from(e),i=this.nextId++,handlerWrapper=async e=>{if(!n.isCompatibleWith(e))return;const a=(async()=>await t(e))();this.invocationPromises.push(a),await a.catch((e=>this.errorCallback(e,n.namespace))),this.invocationPromises=this.invocationPromises.filter((e=>e!==a)),r&&this.listeners.delete(i)};if(r){const e=this.emitter.once(n.namespace,handlerWrapper,{objectify:!0});return this.listeners.set(i,e),i}const o=this.emitter.on(n.namespace,handlerWrapper,{objectify:!0});return this.listeners.set(i,o),i}unregisterHandler(e){const t=this.listeners.get(e);return!!t&&(t.off(),this.listeners.delete(e),!0)}publish(e){const t=(0,i.getEventNamespaceFromObject)(e);if(!t)throw Error("The event needs a namespace. Use the EventNamespace-decorator in order to define a namespace for a event.");this.emitter.emit(t,e)}async close(e){this.emitter.removeAllListeners();const t=Promise.all(this.invocationPromises).catch((()=>{}));if(!e)return void await t;let r;const n=new Promise(((t,n)=>{r=setTimeout((()=>{n(new Error("timeout exceeded while waiting for events to process"))}),e)}));await Promise.race([t,n]),clearTimeout(r)}}},8756:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(7040),t),i(r(6465),t)},1347:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataEvent=void 0;const n=r(7179);class DataEvent extends n.Event{data;constructor(e,t){super(e),this.data=t}}t.DataEvent=DataEvent},7179:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0;t.Event=class Event{namespace;constructor(e){this.namespace=e}}},4647:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(1347),t),i(r(7179),t)},1917:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(8756),t),i(r(4647),t),i(r(4186),t),i(r(967),t),i(r(9787),t),i(r(8072),t),i(r(3395),t),i(r(7106),t)},4186:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.log=void 0;const i=n(r(4191));t.log=function log(e){return function(t,r,n){const a=n.value;return n.value=function(...t){const n=this;try{e?.logParams?n.log.trace(`Calling ${r}(${t.map((e=>(0,i.default)(e))).join(", ")})`):n.log.trace(`Calling ${r}`);const o=a.apply(this,t);return e?.logReturnValue?n.log.trace(`Returning from ${r} with: ${(0,i.default)(o)}`):n.log.trace(`Returning from ${r}`),o}catch(e){throw e instanceof Error&&e.stack&&(e.stack=e.stack.split("\n").filter((e=>!e.includes(".propertyDescriptorDoNotChangeMyNamePlease.value"))).join("\n")),n.log.error(`Error in ${r}:`,e),e}},n}}},967:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.measureExcecutionTime=void 0,t.measureExcecutionTime=function measureExcecutionTime(e,t,r){const n=r.value;return r.value=async function(...e){const t=Date.now(),r=await n.apply(this,e),i=Date.now();return console.info(`Execution time: ${i-t}ms`),r},r}},9787:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomString=void 0,t.randomString=function randomString(e,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"){let r="";const n=t.length;for(let i=0;i<e;i++)r+=t.charAt(Math.floor(Math.random()*n));return r}},4439:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApplicationError=void 0;class ApplicationError extends Error{code;data;constructor(e,t,r){super(t),this.code=e,this.data=r}equals(e){return this.code===e.code}toString(){return JSON.stringify({code:this.code,message:this.message,data:this.data},void 0,2)}}t.ApplicationError=ApplicationError},34:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Result=void 0;class Result{_isSuccess;_error;_value;constructor(e,t,r){if(e&&r)throw new Error("InvalidOperation: A result cannot be successful and contain an error");if(!e&&!r)throw new Error("InvalidOperation: A failing result needs to contain an error");if(void 0!==t&&!e)throw new Error("InvalidOperation: A value is only useful in case of a success.");this._value=t,this._isSuccess=e,this._error=r}get isSuccess(){return this._isSuccess}get isError(){return!this._isSuccess}get error(){return this._error}get value(){if(!this.isSuccess)throw new Error(`Can't get the value of an error result. Use 'error' instead. Root error: \r\n${this.error}`);return this._value}static ok(e){return new Result(!0,e)}static fail(e){return new Result(!1,void 0,e)}}t.Result=Result},3395:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(4439),t),i(r(34),t)},7106:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sleep=void 0,t.sleep=function sleep(e){return new Promise((t=>{setTimeout(t,e)}))}},864:()=>{var e;!function(e){!function(t){var r="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),n=makeExporter(e);function makeExporter(e,t){return function(r,n){"function"!=typeof e[r]&&Object.defineProperty(e,r,{configurable:!0,writable:!0,value:n}),t&&t(r,n)}}void 0===r.Reflect?r.Reflect=e:n=makeExporter(r.Reflect,n),function(e){var t=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,n=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,o={__proto__:[]}instanceof Array,s=!a&&!o,c={create:a?function(){return MakeDictionary(Object.create(null))}:o?function(){return MakeDictionary({__proto__:null})}:function(){return MakeDictionary({})},has:s?function(e,r){return t.call(e,r)}:function(e,t){return t in e},get:s?function(e,r){return t.call(e,r)?e[r]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,f=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?CreateMapPolyfill():Map,h=l||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?CreateSetPolyfill():Set,d=new(l||"function"!=typeof WeakMap?CreateWeakMapPolyfill():WeakMap);function decorate(e,t,r,n){if(IsUndefined(r)){if(!IsArray(e))throw new TypeError;if(!IsConstructor(t))throw new TypeError;return DecorateConstructor(e,t)}if(!IsArray(e))throw new TypeError;if(!IsObject(t))throw new TypeError;if(!IsObject(n)&&!IsUndefined(n)&&!IsNull(n))throw new TypeError;return IsNull(n)&&(n=void 0),DecorateProperty(e,t,r=ToPropertyKey(r),n)}function metadata(e,t){function decorator(r,n){if(!IsObject(r))throw new TypeError;if(!IsUndefined(n)&&!IsPropertyKey(n))throw new TypeError;OrdinaryDefineOwnMetadata(e,t,r,n)}return decorator}function defineMetadata(e,t,r,n){if(!IsObject(r))throw new TypeError;return IsUndefined(n)||(n=ToPropertyKey(n)),OrdinaryDefineOwnMetadata(e,t,r,n)}function hasMetadata(e,t,r){if(!IsObject(t))throw new TypeError;return IsUndefined(r)||(r=ToPropertyKey(r)),OrdinaryHasMetadata(e,t,r)}function hasOwnMetadata(e,t,r){if(!IsObject(t))throw new TypeError;return IsUndefined(r)||(r=ToPropertyKey(r)),OrdinaryHasOwnMetadata(e,t,r)}function getMetadata(e,t,r){if(!IsObject(t))throw new TypeError;return IsUndefined(r)||(r=ToPropertyKey(r)),OrdinaryGetMetadata(e,t,r)}function getOwnMetadata(e,t,r){if(!IsObject(t))throw new TypeError;return IsUndefined(r)||(r=ToPropertyKey(r)),OrdinaryGetOwnMetadata(e,t,r)}function getMetadataKeys(e,t){if(!IsObject(e))throw new TypeError;return IsUndefined(t)||(t=ToPropertyKey(t)),OrdinaryMetadataKeys(e,t)}function getOwnMetadataKeys(e,t){if(!IsObject(e))throw new TypeError;return IsUndefined(t)||(t=ToPropertyKey(t)),OrdinaryOwnMetadataKeys(e,t)}function deleteMetadata(e,t,r){if(!IsObject(t))throw new TypeError;IsUndefined(r)||(r=ToPropertyKey(r));var n=GetOrCreateMetadataMap(t,r,!1);if(IsUndefined(n))return!1;if(!n.delete(e))return!1;if(n.size>0)return!0;var i=d.get(t);return i.delete(r),i.size>0||d.delete(t),!0}function DecorateConstructor(e,t){for(var r=e.length-1;r>=0;--r){var n=(0,e[r])(t);if(!IsUndefined(n)&&!IsNull(n)){if(!IsConstructor(n))throw new TypeError;t=n}}return t}function DecorateProperty(e,t,r,n){for(var i=e.length-1;i>=0;--i){var a=(0,e[i])(t,r,n);if(!IsUndefined(a)&&!IsNull(a)){if(!IsObject(a))throw new TypeError;n=a}}return n}function GetOrCreateMetadataMap(e,t,r){var n=d.get(e);if(IsUndefined(n)){if(!r)return;n=new f,d.set(e,n)}var i=n.get(t);if(IsUndefined(i)){if(!r)return;i=new f,n.set(t,i)}return i}function OrdinaryHasMetadata(e,t,r){if(OrdinaryHasOwnMetadata(e,t,r))return!0;var n=OrdinaryGetPrototypeOf(t);return!IsNull(n)&&OrdinaryHasMetadata(e,n,r)}function OrdinaryHasOwnMetadata(e,t,r){var n=GetOrCreateMetadataMap(t,r,!1);return!IsUndefined(n)&&ToBoolean(n.has(e))}function OrdinaryGetMetadata(e,t,r){if(OrdinaryHasOwnMetadata(e,t,r))return OrdinaryGetOwnMetadata(e,t,r);var n=OrdinaryGetPrototypeOf(t);return IsNull(n)?void 0:OrdinaryGetMetadata(e,n,r)}function OrdinaryGetOwnMetadata(e,t,r){var n=GetOrCreateMetadataMap(t,r,!1);if(!IsUndefined(n))return n.get(e)}function OrdinaryDefineOwnMetadata(e,t,r,n){GetOrCreateMetadataMap(r,n,!0).set(e,t)}function OrdinaryMetadataKeys(e,t){var r=OrdinaryOwnMetadataKeys(e,t),n=OrdinaryGetPrototypeOf(e);if(null===n)return r;var i=OrdinaryMetadataKeys(n,t);if(i.length<=0)return r;if(r.length<=0)return i;for(var a=new h,o=[],s=0,c=r;s<c.length;s++){var u=c[s];a.has(u)||(a.add(u),o.push(u))}for(var l=0,f=i;l<f.length;l++){u=f[l];a.has(u)||(a.add(u),o.push(u))}return o}function OrdinaryOwnMetadataKeys(e,t){var r=[],n=GetOrCreateMetadataMap(e,t,!1);if(IsUndefined(n))return r;for(var i=GetIterator(n.keys()),a=0;;){var o=IteratorStep(i);if(!o)return r.length=a,r;var s=IteratorValue(o);try{r[a]=s}catch(e){try{IteratorClose(i)}finally{throw e}}a++}}function Type(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function IsUndefined(e){return void 0===e}function IsNull(e){return null===e}function IsSymbol(e){return"symbol"==typeof e}function IsObject(e){return"object"==typeof e?null!==e:"function"==typeof e}function ToPrimitive(e,t){switch(Type(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var r=3===t?"string":5===t?"number":"default",i=GetMethod(e,n);if(void 0!==i){var a=i.call(e,r);if(IsObject(a))throw new TypeError;return a}return OrdinaryToPrimitive(e,"default"===r?"number":r)}function OrdinaryToPrimitive(e,t){if("string"===t){var r=e.toString;if(IsCallable(r))if(!IsObject(i=r.call(e)))return i;if(IsCallable(n=e.valueOf))if(!IsObject(i=n.call(e)))return i}else{var n;if(IsCallable(n=e.valueOf))if(!IsObject(i=n.call(e)))return i;var i,a=e.toString;if(IsCallable(a))if(!IsObject(i=a.call(e)))return i}throw new TypeError}function ToBoolean(e){return!!e}function ToString(e){return""+e}function ToPropertyKey(e){var t=ToPrimitive(e,3);return IsSymbol(t)?t:ToString(t)}function IsArray(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function IsCallable(e){return"function"==typeof e}function IsConstructor(e){return"function"==typeof e}function IsPropertyKey(e){switch(Type(e)){case 3:case 4:return!0;default:return!1}}function GetMethod(e,t){var r=e[t];if(null!=r){if(!IsCallable(r))throw new TypeError;return r}}function GetIterator(e){var t=GetMethod(e,i);if(!IsCallable(t))throw new TypeError;var r=t.call(e);if(!IsObject(r))throw new TypeError;return r}function IteratorValue(e){return e.value}function IteratorStep(e){var t=e.next();return!t.done&&t}function IteratorClose(e){var t=e.return;t&&t.call(e)}function OrdinaryGetPrototypeOf(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===u)return t;if(t!==u)return t;var r=e.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return t;var i=n.constructor;return"function"!=typeof i||i===e?t:i}function CreateMapPolyfill(){var e={},t=[],r=function(){function MapIterator(e,t,r){this._index=0,this._keys=e,this._values=t,this._selector=r}return MapIterator.prototype["@@iterator"]=function(){return this},MapIterator.prototype[i]=function(){return this},MapIterator.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var r=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},MapIterator.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},MapIterator.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},MapIterator}();return function(){function Map(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(Map.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Map.prototype.has=function(e){return this._find(e,!1)>=0},Map.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},Map.prototype.set=function(e,t){var r=this._find(e,!0);return this._values[r]=t,this},Map.prototype.delete=function(t){var r=this._find(t,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},Map.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},Map.prototype.keys=function(){return new r(this._keys,this._values,getKey)},Map.prototype.values=function(){return new r(this._keys,this._values,getValue)},Map.prototype.entries=function(){return new r(this._keys,this._values,getEntry)},Map.prototype["@@iterator"]=function(){return this.entries()},Map.prototype[i]=function(){return this.entries()},Map.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},Map}();function getKey(e,t){return e}function getValue(e,t){return t}function getEntry(e,t){return[e,t]}}function CreateSetPolyfill(){return function(){function Set(){this._map=new f}return Object.defineProperty(Set.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),Set.prototype.has=function(e){return this._map.has(e)},Set.prototype.add=function(e){return this._map.set(e,e),this},Set.prototype.delete=function(e){return this._map.delete(e)},Set.prototype.clear=function(){this._map.clear()},Set.prototype.keys=function(){return this._map.keys()},Set.prototype.values=function(){return this._map.values()},Set.prototype.entries=function(){return this._map.entries()},Set.prototype["@@iterator"]=function(){return this.keys()},Set.prototype[i]=function(){return this.keys()},Set}()}function CreateWeakMapPolyfill(){var e=16,r=c.create(),n=CreateUniqueKey();return function(){function WeakMap(){this._key=CreateUniqueKey()}return WeakMap.prototype.has=function(e){var t=GetOrCreateWeakMapTable(e,!1);return void 0!==t&&c.has(t,this._key)},WeakMap.prototype.get=function(e){var t=GetOrCreateWeakMapTable(e,!1);return void 0!==t?c.get(t,this._key):void 0},WeakMap.prototype.set=function(e,t){return GetOrCreateWeakMapTable(e,!0)[this._key]=t,this},WeakMap.prototype.delete=function(e){var t=GetOrCreateWeakMapTable(e,!1);return void 0!==t&&delete t[this._key]},WeakMap.prototype.clear=function(){this._key=CreateUniqueKey()},WeakMap}();function CreateUniqueKey(){var e;do{e="@@WeakMap@@"+CreateUUID()}while(c.has(r,e));return r[e]=!0,e}function GetOrCreateWeakMapTable(e,r){if(!t.call(e,n)){if(!r)return;Object.defineProperty(e,n,{value:c.create()})}return e[n]}function FillRandomBytes(e,t){for(var r=0;r<t;++r)e[r]=255*Math.random()|0;return e}function GenRandomBytes(e){return"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(e)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(e)):FillRandomBytes(new Uint8Array(e),e):FillRandomBytes(new Array(e),e)}function CreateUUID(){var t=GenRandomBytes(e);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var r="",n=0;n<e;++n){var i=t[n];4!==n&&6!==n&&8!==n||(r+="-"),i<16&&(r+="0"),r+=i.toString(16).toLowerCase()}return r}}function MakeDictionary(e){return e.__=void 0,delete e.__,e}e("decorate",decorate),e("metadata",metadata),e("defineMetadata",defineMetadata),e("hasMetadata",hasMetadata),e("hasOwnMetadata",hasOwnMetadata),e("getMetadata",getMetadata),e("getOwnMetadata",getOwnMetadata),e("getMetadataKeys",getMetadataKeys),e("getOwnMetadataKeys",getOwnMetadataKeys),e("deleteMetadata",deleteMetadata)}(n)}()}(e||(e={}))},9902:(e,t,r)=>{var n;!function(i){var a=Object.hasOwnProperty,o=Array.isArray?Array.isArray:function _isArray(e){return"[object Array]"===Object.prototype.toString.call(e)},s="object"==typeof process&&"function"==typeof process.nextTick,c="function"==typeof Symbol,u="object"==typeof Reflect,l="function"==typeof setImmediate?setImmediate:setTimeout,f=c?u&&"function"==typeof Reflect.ownKeys?Reflect.ownKeys:function(e){var t=Object.getOwnPropertyNames(e);return t.push.apply(t,Object.getOwnPropertySymbols(e)),t}:Object.keys;function init(){this._events={},this._conf&&configure.call(this,this._conf)}function configure(e){e&&(this._conf=e,e.delimiter&&(this.delimiter=e.delimiter),e.maxListeners!==i&&(this._maxListeners=e.maxListeners),e.wildcard&&(this.wildcard=e.wildcard),e.newListener&&(this._newListener=e.newListener),e.removeListener&&(this._removeListener=e.removeListener),e.verboseMemoryLeak&&(this.verboseMemoryLeak=e.verboseMemoryLeak),e.ignoreErrors&&(this.ignoreErrors=e.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function logPossibleMemoryLeak(e,t){var r="(node) warning: possible EventEmitter memory leak detected. "+e+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(r+=" Event name: "+t+"."),"undefined"!=typeof process&&process.emitWarning){var n=new Error(r);n.name="MaxListenersExceededWarning",n.emitter=this,n.count=e,process.emitWarning(n)}else console.error(r),console.trace&&console.trace()}var toArray=function(e,t,r){var n=arguments.length;switch(n){case 0:return[];case 1:return[e];case 2:return[e,t];case 3:return[e,t,r];default:for(var i=new Array(n);n--;)i[n]=arguments[n];return i}};function toObject(e,t){for(var r={},n=e.length,a=t?t.length:0,o=0;o<n;o++)r[e[o]]=o<a?t[o]:i;return r}function TargetObserver(e,t,r){var n,i;if(this._emitter=e,this._target=t,this._listeners={},this._listenersCount=0,(r.on||r.off)&&(n=r.on,i=r.off),t.addEventListener?(n=t.addEventListener,i=t.removeEventListener):t.addListener?(n=t.addListener,i=t.removeListener):t.on&&(n=t.on,i=t.off),!n&&!i)throw Error("target does not implement any known event API");if("function"!=typeof n)throw TypeError("on method must be a function");if("function"!=typeof i)throw TypeError("off method must be a function");this._on=n,this._off=i;var a=e._observers;a?a.push(this):e._observers=[this]}function resolveOptions(e,t,r,n){var o=Object.assign({},t);if(!e)return o;if("object"!=typeof e)throw TypeError("options must be an object");var s,c,u,l=Object.keys(e),f=l.length;function reject(e){throw Error('Invalid "'+s+'" option value'+(e?". Reason: "+e:""))}for(var h=0;h<f;h++){if(s=l[h],!n&&!a.call(t,s))throw Error('Unknown "'+s+'" option');(c=e[s])!==i&&(u=r[s],o[s]=u?u(c,reject):c)}return o}function constructorReducer(e,t){return"function"==typeof e&&e.hasOwnProperty("prototype")||t("value must be a constructor"),e}function makeTypeReducer(e){var t="value must be type of "+e.join("|"),r=e.length,n=e[0],i=e[1];return 1===r?function(e,r){if(typeof e===n)return e;r(t)}:2===r?function(e,r){var a=typeof e;if(a===n||a===i)return e;r(t)}:function(n,i){for(var a=typeof n,o=r;o-- >0;)if(a===e[o])return n;i(t)}}Object.assign(TargetObserver.prototype,{subscribe:function(e,t,r){var n=this,i=this._target,a=this._emitter,o=this._listeners,handler=function(){var n=toArray.apply(null,arguments),o={data:n,name:t,original:e};r?!1!==r.call(i,o)&&a.emit.apply(a,[o.name].concat(n)):a.emit.apply(a,[t].concat(n))};if(o[e])throw Error("Event '"+e+"' is already listening");this._listenersCount++,a._newListener&&a._removeListener&&!n._onNewListener?(this._onNewListener=function(r){r===t&&null===o[e]&&(o[e]=handler,n._on.call(i,e,handler))},a.on("newListener",this._onNewListener),this._onRemoveListener=function(r){r===t&&!a.hasListeners(r)&&o[e]&&(o[e]=null,n._off.call(i,e,handler))},o[e]=null,a.on("removeListener",this._onRemoveListener)):(o[e]=handler,n._on.call(i,e,handler))},unsubscribe:function(e){var t,r,n,i=this,a=this._listeners,o=this._emitter,s=this._off,c=this._target;if(e&&"string"!=typeof e)throw TypeError("event must be a string");function clearRefs(){i._onNewListener&&(o.off("newListener",i._onNewListener),o.off("removeListener",i._onRemoveListener),i._onNewListener=null,i._onRemoveListener=null);var e=findTargetIndex.call(o,i);o._observers.splice(e,1)}if(e){if(!(t=a[e]))return;s.call(c,e,t),delete a[e],--this._listenersCount||clearRefs()}else{for(n=(r=f(a)).length;n-- >0;)e=r[n],s.call(c,e,a[e]);this._listeners={},this._listenersCount=0,clearRefs()}}});var h=makeTypeReducer(["function"]),d=makeTypeReducer(["object","function"]);function makeCancelablePromise(e,t,r){var n,i,a,o=0,s=new e((function(c,u,l){function cleanup(){i&&(i=null),o&&(clearTimeout(o),o=0)}r=resolveOptions(r,{timeout:0,overload:!1},{timeout:function(e,t){return("number"!=typeof(e*=1)||e<0||!Number.isFinite(e))&&t("timeout must be a positive number"),e}}),n=!r.overload&&"function"==typeof e.prototype.cancel&&"function"==typeof l;var _resolve=function(e){cleanup(),c(e)},_reject=function(e){cleanup(),u(e)};n?t(_resolve,_reject,l):(i=[function(e){_reject(e||Error("canceled"))}],t(_resolve,_reject,(function(e){if(a)throw Error("Unable to subscribe on cancel event asynchronously");if("function"!=typeof e)throw TypeError("onCancel callback must be a function");i.push(e)})),a=!0),r.timeout>0&&(o=setTimeout((function(){var e=Error("timeout");e.code="ETIMEDOUT",o=0,s.cancel(e),u(e)}),r.timeout))}));return n||(s.cancel=function(e){if(i){for(var t=i.length,r=1;r<t;r++)i[r](e);i[0](e),i=null}}),s}function findTargetIndex(e){var t=this._observers;if(!t)return-1;for(var r=t.length,n=0;n<r;n++)if(t[n]._target===e)return n;return-1}function searchListenerTree(e,t,r,n,i){if(!r)return null;if(0===n){var a=typeof t;if("string"===a){var o,s,c=0,u=0,l=this.delimiter,h=l.length;if(-1!==(s=t.indexOf(l))){o=new Array(5);do{o[c++]=t.slice(u,s),u=s+h}while(-1!==(s=t.indexOf(l,u)));o[c++]=t.slice(u),t=o,i=c}else t=[t],i=1}else"object"===a?i=t.length:(t=[t],i=1)}var d,p,v,y,g,b,_,m=null,E=t[n],w=t[n+1];if(n===i)r._listeners&&("function"==typeof r._listeners?(e&&e.push(r._listeners),m=[r]):(e&&e.push.apply(e,r._listeners),m=[r]));else{if("*"===E){for(s=(b=f(r)).length;s-- >0;)"_listeners"!==(d=b[s])&&(_=searchListenerTree(e,t,r[d],n+1,i))&&(m?m.push.apply(m,_):m=_);return m}if("**"===E){for((g=n+1===i||n+2===i&&"*"===w)&&r._listeners&&(m=searchListenerTree(e,t,r,i,i)),s=(b=f(r)).length;s-- >0;)"_listeners"!==(d=b[s])&&("*"===d||"**"===d?(r[d]._listeners&&!g&&(_=searchListenerTree(e,t,r[d],i,i))&&(m?m.push.apply(m,_):m=_),_=searchListenerTree(e,t,r[d],n,i)):_=searchListenerTree(e,t,r[d],d===w?n+2:n,i),_&&(m?m.push.apply(m,_):m=_));return m}r[E]&&(m=searchListenerTree(e,t,r[E],n+1,i))}if((p=r["*"])&&searchListenerTree(e,t,p,n+1,i),v=r["**"])if(n<i)for(v._listeners&&searchListenerTree(e,t,v,i,i),s=(b=f(v)).length;s-- >0;)"_listeners"!==(d=b[s])&&(d===w?searchListenerTree(e,t,v[d],n+2,i):d===E?searchListenerTree(e,t,v[d],n+1,i):((y={})[d]=v[d],searchListenerTree(e,t,{"**":y},n+1,i)));else v._listeners?searchListenerTree(e,t,v,i,i):v["*"]&&v["*"]._listeners&&searchListenerTree(e,t,v["*"],i,i);return m}function growListenerTree(e,t,r){var n,i,a=0,o=0,s=this.delimiter,c=s.length;if("string"==typeof e)if(-1!==(n=e.indexOf(s))){i=new Array(5);do{i[a++]=e.slice(o,n),o=n+c}while(-1!==(n=e.indexOf(s,o)));i[a++]=e.slice(o)}else i=[e],a=1;else i=e,a=e.length;if(a>1)for(n=0;n+1<a;n++)if("**"===i[n]&&"**"===i[n+1])return;var u,l=this.listenerTree;for(n=0;n<a;n++)if(l=l[u=i[n]]||(l[u]={}),n===a-1)return l._listeners?("function"==typeof l._listeners&&(l._listeners=[l._listeners]),r?l._listeners.unshift(t):l._listeners.push(t),!l._listeners.warned&&this._maxListeners>0&&l._listeners.length>this._maxListeners&&(l._listeners.warned=!0,logPossibleMemoryLeak.call(this,l._listeners.length,u))):l._listeners=t,!0;return!0}function collectTreeEvents(e,t,r,n){for(var i,a,o,s,c=f(e),u=c.length,l=e._listeners;u-- >0;)i=e[a=c[u]],o="_listeners"===a?r:r?r.concat(a):[a],s=n||"symbol"==typeof a,l&&t.push(s?o:o.join(this.delimiter)),"object"==typeof i&&collectTreeEvents.call(this,i,t,o,s);return t}function recursivelyGarbageCollect(e){for(var t,r,n,i=f(e),a=i.length;a-- >0;)(t=e[r=i[a]])&&(n=!0,"_listeners"===r||recursivelyGarbageCollect(t)||delete e[r]);return n}function Listener(e,t,r){this.emitter=e,this.event=t,this.listener=r}function setupListener(e,t,r){if(!0===r)a=!0;else if(!1===r)n=!0;else{if(!r||"object"!=typeof r)throw TypeError("options should be an object or true");var n=r.async,a=r.promisify,o=r.nextTick,c=r.objectify}if(n||o||a){var u=t,f=t._origin||t;if(o&&!s)throw Error("process.nextTick is not supported");a===i&&(a="AsyncFunction"===t.constructor.name),t=function(){var e=arguments,t=this,r=this.event;return a?o?Promise.resolve():new Promise((function(e){l(e)})).then((function(){return t.event=r,u.apply(t,e)})):(o?process.nextTick:l)((function(){t.event=r,u.apply(t,e)}))},t._async=!0,t._origin=f}return[t,c?new Listener(this,e,t):this]}function EventEmitter(e){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,configure.call(this,e)}Listener.prototype.off=function(){return this.emitter.off(this.event,this.listener),this},EventEmitter.EventEmitter2=EventEmitter,EventEmitter.prototype.listenTo=function(e,t,r){if("object"!=typeof e)throw TypeError("target musts be an object");var n=this;function listen(t){if("object"!=typeof t)throw TypeError("events must be an object");var i,a=r.reducers,o=findTargetIndex.call(n,e);i=-1===o?new TargetObserver(n,e,r):n._observers[o];for(var s,c=f(t),u=c.length,l="function"==typeof a,h=0;h<u;h++)s=c[h],i.subscribe(s,t[s]||s,l?a:a&&a[s])}return r=resolveOptions(r,{on:i,off:i,reducers:i},{on:h,off:h,reducers:d}),o(t)?listen(toObject(t)):listen("string"==typeof t?toObject(t.split(/\s+/)):t),this},EventEmitter.prototype.stopListeningTo=function(e,t){var r=this._observers;if(!r)return!1;var n,i=r.length,a=!1;if(e&&"object"!=typeof e)throw TypeError("target should be an object");for(;i-- >0;)n=r[i],e&&n._target!==e||(n.unsubscribe(t),a=!0);return a},EventEmitter.prototype.delimiter=".",EventEmitter.prototype.setMaxListeners=function(e){e!==i&&(this._maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e)},EventEmitter.prototype.getMaxListeners=function(){return this._maxListeners},EventEmitter.prototype.event="",EventEmitter.prototype.once=function(e,t,r){return this._once(e,t,!1,r)},EventEmitter.prototype.prependOnceListener=function(e,t,r){return this._once(e,t,!0,r)},EventEmitter.prototype._once=function(e,t,r,n){return this._many(e,1,t,r,n)},EventEmitter.prototype.many=function(e,t,r,n){return this._many(e,t,r,!1,n)},EventEmitter.prototype.prependMany=function(e,t,r,n){return this._many(e,t,r,!0,n)},EventEmitter.prototype._many=function(e,t,r,n,i){var a=this;if("function"!=typeof r)throw new Error("many only accepts instances of Function");function listener(){return 0==--t&&a.off(e,listener),r.apply(this,arguments)}return listener._origin=r,this._on(e,listener,n,i)},EventEmitter.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||init.call(this);var e,t,r,n,i,a,o=arguments[0],s=this.wildcard;if("newListener"===o&&!this._newListener&&!this._events.newListener)return!1;if(s&&(e=o,"newListener"!==o&&"removeListener"!==o&&"object"==typeof o)){if(r=o.length,c)for(n=0;n<r;n++)if("symbol"==typeof o[n]){a=!0;break}a||(o=o.join(this.delimiter))}var u,l=arguments.length;if(this._all&&this._all.length)for(n=0,r=(u=this._all.slice()).length;n<r;n++)switch(this.event=o,l){case 1:u[n].call(this,o);break;case 2:u[n].call(this,o,arguments[1]);break;case 3:u[n].call(this,o,arguments[1],arguments[2]);break;default:u[n].apply(this,arguments)}if(s)u=[],searchListenerTree.call(this,u,e,this.listenerTree,0,r);else{if("function"==typeof(u=this._events[o])){switch(this.event=o,l){case 1:u.call(this);break;case 2:u.call(this,arguments[1]);break;case 3:u.call(this,arguments[1],arguments[2]);break;default:for(t=new Array(l-1),i=1;i<l;i++)t[i-1]=arguments[i];u.apply(this,t)}return!0}u&&(u=u.slice())}if(u&&u.length){if(l>3)for(t=new Array(l-1),i=1;i<l;i++)t[i-1]=arguments[i];for(n=0,r=u.length;n<r;n++)switch(this.event=o,l){case 1:u[n].call(this);break;case 2:u[n].call(this,arguments[1]);break;case 3:u[n].call(this,arguments[1],arguments[2]);break;default:u[n].apply(this,t)}return!0}if(!this.ignoreErrors&&!this._all&&"error"===o)throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},EventEmitter.prototype.emitAsync=function(){if(!this._events&&!this._all)return!1;this._events||init.call(this);var e,t,r,n,i,a,o=arguments[0],s=this.wildcard;if("newListener"===o&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);if(s&&(e=o,"newListener"!==o&&"removeListener"!==o&&"object"==typeof o)){if(n=o.length,c)for(i=0;i<n;i++)if("symbol"==typeof o[i]){t=!0;break}t||(o=o.join(this.delimiter))}var u,l=[],f=arguments.length;if(this._all)for(i=0,n=this._all.length;i<n;i++)switch(this.event=o,f){case 1:l.push(this._all[i].call(this,o));break;case 2:l.push(this._all[i].call(this,o,arguments[1]));break;case 3:l.push(this._all[i].call(this,o,arguments[1],arguments[2]));break;default:l.push(this._all[i].apply(this,arguments))}if(s?(u=[],searchListenerTree.call(this,u,e,this.listenerTree,0)):u=this._events[o],"function"==typeof u)switch(this.event=o,f){case 1:l.push(u.call(this));break;case 2:l.push(u.call(this,arguments[1]));break;case 3:l.push(u.call(this,arguments[1],arguments[2]));break;default:for(r=new Array(f-1),a=1;a<f;a++)r[a-1]=arguments[a];l.push(u.apply(this,r))}else if(u&&u.length){if(u=u.slice(),f>3)for(r=new Array(f-1),a=1;a<f;a++)r[a-1]=arguments[a];for(i=0,n=u.length;i<n;i++)switch(this.event=o,f){case 1:l.push(u[i].call(this));break;case 2:l.push(u[i].call(this,arguments[1]));break;case 3:l.push(u[i].call(this,arguments[1],arguments[2]));break;default:l.push(u[i].apply(this,r))}}else if(!this.ignoreErrors&&!this._all&&"error"===o)return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(l)},EventEmitter.prototype.on=function(e,t,r){return this._on(e,t,!1,r)},EventEmitter.prototype.prependListener=function(e,t,r){return this._on(e,t,!0,r)},EventEmitter.prototype.onAny=function(e){return this._onAny(e,!1)},EventEmitter.prototype.prependAny=function(e){return this._onAny(e,!0)},EventEmitter.prototype.addListener=EventEmitter.prototype.on,EventEmitter.prototype._onAny=function(e,t){if("function"!=typeof e)throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),t?this._all.unshift(e):this._all.push(e),this},EventEmitter.prototype._on=function(e,t,r,n){if("function"==typeof e)return this._onAny(e,t),this;if("function"!=typeof t)throw new Error("on only accepts instances of Function");this._events||init.call(this);var a,o=this;return n!==i&&(t=(a=setupListener.call(this,e,t,n))[0],o=a[1]),this._newListener&&this.emit("newListener",e,t),this.wildcard?(growListenerTree.call(this,e,t,r),o):(this._events[e]?("function"==typeof this._events[e]&&(this._events[e]=[this._events[e]]),r?this._events[e].unshift(t):this._events[e].push(t),!this._events[e].warned&&this._maxListeners>0&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,logPossibleMemoryLeak.call(this,this._events[e].length,e))):this._events[e]=t,o)},EventEmitter.prototype.off=function(e,t){if("function"!=typeof t)throw new Error("removeListener only takes instances of Function");var r,n=[];if(this.wildcard){var i="string"==typeof e?e.split(this.delimiter):e.slice();if(!(n=searchListenerTree.call(this,null,i,this.listenerTree,0)))return this}else{if(!this._events[e])return this;r=this._events[e],n.push({_listeners:r})}for(var a=0;a<n.length;a++){var s=n[a];if(r=s._listeners,o(r)){for(var c=-1,u=0,l=r.length;u<l;u++)if(r[u]===t||r[u].listener&&r[u].listener===t||r[u]._origin&&r[u]._origin===t){c=u;break}if(c<0)continue;return this.wildcard?s._listeners.splice(c,1):this._events[e].splice(c,1),0===r.length&&(this.wildcard?delete s._listeners:delete this._events[e]),this._removeListener&&this.emit("removeListener",e,t),this}(r===t||r.listener&&r.listener===t||r._origin&&r._origin===t)&&(this.wildcard?delete s._listeners:delete this._events[e],this._removeListener&&this.emit("removeListener",e,t))}return this.listenerTree&&recursivelyGarbageCollect(this.listenerTree),this},EventEmitter.prototype.offAny=function(e){var t,r=0,n=0;if(e&&this._all&&this._all.length>0){for(r=0,n=(t=this._all).length;r<n;r++)if(e===t[r])return t.splice(r,1),this._removeListener&&this.emit("removeListenerAny",e),this}else{if(t=this._all,this._removeListener)for(r=0,n=t.length;r<n;r++)this.emit("removeListenerAny",t[r]);this._all=[]}return this},EventEmitter.prototype.removeListener=EventEmitter.prototype.off,EventEmitter.prototype.removeAllListeners=function(e){if(e===i)return!this._events||init.call(this),this;if(this.wildcard){var t,r=searchListenerTree.call(this,null,e,this.listenerTree,0);if(!r)return this;for(t=0;t<r.length;t++)r[t]._listeners=null;this.listenerTree&&recursivelyGarbageCollect(this.listenerTree)}else this._events&&(this._events[e]=null);return this},EventEmitter.prototype.listeners=function(e){var t,r,n,a,o,s=this._events;if(e===i){if(this.wildcard)throw Error("event name required for wildcard emitter");if(!s)return[];for(a=(t=f(s)).length,n=[];a-- >0;)"function"==typeof(r=s[t[a]])?n.push(r):n.push.apply(n,r);return n}if(this.wildcard){if(!(o=this.listenerTree))return[];var c=[],u="string"==typeof e?e.split(this.delimiter):e.slice();return searchListenerTree.call(this,c,u,o,0),c}return s&&(r=s[e])?"function"==typeof r?[r]:r:[]},EventEmitter.prototype.eventNames=function(e){var t=this._events;return this.wildcard?collectTreeEvents.call(this,this.listenerTree,[],null,e):t?f(t):[]},EventEmitter.prototype.listenerCount=function(e){return this.listeners(e).length},EventEmitter.prototype.hasListeners=function(e){if(this.wildcard){var t=[],r="string"==typeof e?e.split(this.delimiter):e.slice();return searchListenerTree.call(this,t,r,this.listenerTree,0),t.length>0}var n=this._events,a=this._all;return!!(a&&a.length||n&&(e===i?f(n).length:n[e]))},EventEmitter.prototype.listenersAny=function(){return this._all?this._all:[]},EventEmitter.prototype.waitFor=function(e,t){var r=this,n=typeof t;return"number"===n?t={timeout:t}:"function"===n&&(t={filter:t}),makeCancelablePromise((t=resolveOptions(t,{timeout:0,filter:i,handleError:!1,Promise,overload:!1},{filter:h,Promise:constructorReducer})).Promise,(function(n,i,a){function listener(){var a=t.filter;if(!a||a.apply(r,arguments))if(r.off(e,listener),t.handleError){var o=arguments[0];o?i(o):n(toArray.apply(null,arguments).slice(1))}else n(toArray.apply(null,arguments))}a((function(){r.off(e,listener)})),r._on(e,listener,!1)}),{timeout:t.timeout,overload:t.overload})};var p=EventEmitter.prototype;Object.defineProperties(EventEmitter,{defaultMaxListeners:{get:function(){return p._maxListeners},set:function(e){if("number"!=typeof e||e<0||Number.isNaN(e))throw TypeError("n must be a non-negative number");p._maxListeners=e},enumerable:!0},once:{value:function once(e,t,r){return makeCancelablePromise((r=resolveOptions(r,{Promise,timeout:0,overload:!1},{Promise:constructorReducer})).Promise,(function(r,n,i){var a;if("function"==typeof e.addEventListener)return a=function(){r(toArray.apply(null,arguments))},i((function(){e.removeEventListener(t,a)})),void e.addEventListener(t,a,{once:!0});var o,eventListener=function(){o&&e.removeListener("error",o),r(toArray.apply(null,arguments))};"error"!==t&&(o=function(r){e.removeListener(t,eventListener),n(r)},e.once("error",o)),i((function(){o&&e.removeListener("error",o),e.removeListener(t,eventListener)})),e.once(t,eventListener)}),{timeout:r.timeout,overload:r.overload})},writable:!0,configurable:!0}}),Object.defineProperties(p,{_maxListeners:{value:10,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),(n=function(){return EventEmitter}.call(t,r,t,e))===i||(e.exports=n)}()},4191:(e,t)=>{function serializer(e,t){var r=[],n=[];return null==t&&(t=function(e,t){return r[0]===t?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(t)).join(".")+"]"}),function(i,a){if(r.length>0){var o=r.indexOf(this);~o?r.splice(o+1):r.push(this),~o?n.splice(o,1/0,i):n.push(i),~r.indexOf(a)&&(a=t.call(this,i,a))}else r.push(a);return null==e?a:e.call(this,i,a)}}(e.exports=function stringify(e,t,r,n){return JSON.stringify(e,serializer(t,n),r)}).getSerialize=serializer},5250:function(e,t,r){var n;e=r.nmd(e),function(){var i,a="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",c=16,u=32,l=64,f=128,h=256,d=1/0,p=9007199254740991,v=NaN,y=4294967295,g=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",u],["partialRight",l],["rearg",h]],b="[object Arguments]",_="[object Array]",m="[object Boolean]",E="[object Date]",w="[object Error]",O="[object Function]",A="[object GeneratorFunction]",S="[object Map]",R="[object Number]",I="[object Object]",M="[object Promise]",C="[object RegExp]",T="[object Set]",L="[object String]",j="[object Symbol]",P="[object WeakMap]",k="[object ArrayBuffer]",x="[object DataView]",N="[object Float32Array]",D="[object Float64Array]",F="[object Int8Array]",U="[object Int16Array]",B="[object Int32Array]",W="[object Uint8Array]",z="[object Uint8ClampedArray]",K="[object Uint16Array]",G="[object Uint32Array]",q=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,J=/[&<>"']/g,Y=RegExp(V.source),Z=RegExp(J.source),X=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,re=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(ie.source),oe=/^\s+/,se=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,he=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ve=/\w*$/,ye=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,_e=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,Ee=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,Oe=/['\n\r\u2028\u2029\\]/g,Ae="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Re="\\u2700-\\u27bf",Ie="a-z\\xdf-\\xf6\\xf8-\\xff",Me="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Le="['’]",je="["+Ae+"]",Pe="["+Te+"]",ke="["+Se+"]",xe="\\d+",Ne="["+Re+"]",De="["+Ie+"]",Fe="[^"+Ae+Te+xe+Re+Ie+Me+"]",Ue="\\ud83c[\\udffb-\\udfff]",Be="[^"+Ae+"]",We="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",Ke="["+Me+"]",Ge="\\u200d",qe="(?:"+De+"|"+Fe+")",He="(?:"+Ke+"|"+Fe+")",$e="(?:['’](?:d|ll|m|re|s|t|ve))?",Ve="(?:['’](?:D|LL|M|RE|S|T|VE))?",Je="(?:"+ke+"|"+Ue+")"+"?",Ye="["+Ce+"]?",Ze=Ye+Je+("(?:"+Ge+"(?:"+[Be,We,ze].join("|")+")"+Ye+Je+")*"),Xe="(?:"+[Ne,We,ze].join("|")+")"+Ze,Qe="(?:"+[Be+ke+"?",ke,We,ze,je].join("|")+")",et=RegExp(Le,"g"),tt=RegExp(ke,"g"),rt=RegExp(Ue+"(?="+Ue+")|"+Qe+Ze,"g"),nt=RegExp([Ke+"?"+De+"+"+$e+"(?="+[Pe,Ke,"$"].join("|")+")",He+"+"+Ve+"(?="+[Pe,Ke+qe,"$"].join("|")+")",Ke+"?"+qe+"+"+$e,Ke+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xe,Xe].join("|"),"g"),it=RegExp("["+Ge+Ae+Se+Ce+"]"),at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,ct={};ct[N]=ct[D]=ct[F]=ct[U]=ct[B]=ct[W]=ct[z]=ct[K]=ct[G]=!0,ct[b]=ct[_]=ct[k]=ct[m]=ct[x]=ct[E]=ct[w]=ct[O]=ct[S]=ct[R]=ct[I]=ct[C]=ct[T]=ct[L]=ct[P]=!1;var ut={};ut[b]=ut[_]=ut[k]=ut[x]=ut[m]=ut[E]=ut[N]=ut[D]=ut[F]=ut[U]=ut[B]=ut[S]=ut[R]=ut[I]=ut[C]=ut[T]=ut[L]=ut[j]=ut[W]=ut[z]=ut[K]=ut[G]=!0,ut[w]=ut[O]=ut[P]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ft=parseFloat,ht=parseInt,dt="object"==typeof global&&global&&global.Object===Object&&global,pt="object"==typeof self&&self&&self.Object===Object&&self,vt=dt||pt||Function("return this")(),yt=t&&!t.nodeType&&t,gt=yt&&e&&!e.nodeType&&e,bt=gt&&gt.exports===yt,_t=bt&&dt.process,mt=function(){try{var e=gt&&gt.require&&gt.require("util").types;return e||_t&&_t.binding&&_t.binding("util")}catch(e){}}(),Et=mt&&mt.isArrayBuffer,wt=mt&&mt.isDate,Ot=mt&&mt.isMap,At=mt&&mt.isRegExp,St=mt&&mt.isSet,Rt=mt&&mt.isTypedArray;function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function arrayAggregator(e,t,r,n){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(n,o,r(o),e)}return n}function arrayEach(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function arrayEachRight(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function arrayEvery(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function arrayFilter(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}function arrayIncludes(e,t){return!!(null==e?0:e.length)&&baseIndexOf(e,t,0)>-1}function arrayIncludesWith(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function arrayMap(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function arrayPush(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function arrayReduce(e,t,r,n){var i=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++i]);++i<a;)r=t(r,e[i],i,e);return r}function arrayReduceRight(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function arraySome(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var It=baseProperty("length");function baseFindKey(e,t,r){var n;return r(e,(function(e,r,i){if(t(e,r,i))return n=r,!1})),n}function baseFindIndex(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function baseIndexOf(e,t,r){return t==t?function strictIndexOf(e,t,r){var n=r-1,i=e.length;for(;++n<i;)if(e[n]===t)return n;return-1}(e,t,r):baseFindIndex(e,baseIsNaN,r)}function baseIndexOfWith(e,t,r,n){for(var i=r-1,a=e.length;++i<a;)if(n(e[i],t))return i;return-1}function baseIsNaN(e){return e!=e}function baseMean(e,t){var r=null==e?0:e.length;return r?baseSum(e,t)/r:v}function baseProperty(e){return function(t){return null==t?i:t[e]}}function basePropertyOf(e){return function(t){return null==e?i:e[t]}}function baseReduce(e,t,r,n,i){return i(e,(function(e,i,a){r=n?(n=!1,e):t(r,e,i,a)})),r}function baseSum(e,t){for(var r,n=-1,a=e.length;++n<a;){var o=t(e[n]);o!==i&&(r=r===i?o:r+o)}return r}function baseTimes(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function baseTrim(e){return e?e.slice(0,trimmedEndIndex(e)+1).replace(oe,""):e}function baseUnary(e){return function(t){return e(t)}}function baseValues(e,t){return arrayMap(t,(function(t){return e[t]}))}function cacheHas(e,t){return e.has(t)}function charsStartIndex(e,t){for(var r=-1,n=e.length;++r<n&&baseIndexOf(t,e[r],0)>-1;);return r}function charsEndIndex(e,t){for(var r=e.length;r--&&baseIndexOf(t,e[r],0)>-1;);return r}var Mt=basePropertyOf({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Ct=basePropertyOf({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function escapeStringChar(e){return"\\"+lt[e]}function hasUnicode(e){return it.test(e)}function mapToArray(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function overArg(e,t){return function(r){return e(t(r))}}function replaceHolders(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var o=e[r];o!==t&&o!==s||(e[r]=s,a[i++]=r)}return a}function setToArray(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function setToPairs(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function stringSize(e){return hasUnicode(e)?function unicodeSize(e){var t=rt.lastIndex=0;for(;rt.test(e);)++t;return t}(e):It(e)}function stringToArray(e){return hasUnicode(e)?function unicodeToArray(e){return e.match(rt)||[]}(e):function asciiToArray(e){return e.split("")}(e)}function trimmedEndIndex(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var Tt=basePropertyOf({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Lt=function runInContext(e){var t,r=(e=null==e?vt:Lt.defaults(vt.Object(),e,Lt.pick(vt,ot))).Array,n=e.Date,se=e.Error,Ae=e.Function,Se=e.Math,Re=e.Object,Ie=e.RegExp,Me=e.String,Ce=e.TypeError,Te=r.prototype,Le=Ae.prototype,je=Re.prototype,Pe=e["__core-js_shared__"],ke=Le.toString,xe=je.hasOwnProperty,Ne=0,De=(t=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"",Fe=je.toString,Ue=ke.call(Re),Be=vt._,We=Ie("^"+ke.call(xe).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=bt?e.Buffer:i,Ke=e.Symbol,Ge=e.Uint8Array,qe=ze?ze.allocUnsafe:i,He=overArg(Re.getPrototypeOf,Re),$e=Re.create,Ve=je.propertyIsEnumerable,Je=Te.splice,Ye=Ke?Ke.isConcatSpreadable:i,Ze=Ke?Ke.iterator:i,Xe=Ke?Ke.toStringTag:i,Qe=function(){try{var e=getNative(Re,"defineProperty");return e({},"",{}),e}catch(e){}}(),rt=e.clearTimeout!==vt.clearTimeout&&e.clearTimeout,it=n&&n.now!==vt.Date.now&&n.now,lt=e.setTimeout!==vt.setTimeout&&e.setTimeout,dt=Se.ceil,pt=Se.floor,yt=Re.getOwnPropertySymbols,gt=ze?ze.isBuffer:i,_t=e.isFinite,mt=Te.join,It=overArg(Re.keys,Re),jt=Se.max,Pt=Se.min,kt=n.now,xt=e.parseInt,Nt=Se.random,Dt=Te.reverse,Ft=getNative(e,"DataView"),Ut=getNative(e,"Map"),Bt=getNative(e,"Promise"),Wt=getNative(e,"Set"),zt=getNative(e,"WeakMap"),Kt=getNative(Re,"create"),Gt=zt&&new zt,qt={},Ht=toSource(Ft),$t=toSource(Ut),Vt=toSource(Bt),Jt=toSource(Wt),Yt=toSource(zt),Zt=Ke?Ke.prototype:i,Xt=Zt?Zt.valueOf:i,Qt=Zt?Zt.toString:i;function lodash(e){if(isObjectLike(e)&&!nn(e)&&!(e instanceof LazyWrapper)){if(e instanceof LodashWrapper)return e;if(xe.call(e,"__wrapped__"))return wrapperClone(e)}return new LodashWrapper(e)}var er=function(){function object(){}return function(e){if(!isObject(e))return{};if($e)return $e(e);object.prototype=e;var t=new object;return object.prototype=i,t}}();function baseLodash(){}function LodashWrapper(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function LazyWrapper(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function Hash(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ListCache(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function MapCache(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function SetCache(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new MapCache;++t<r;)this.add(e[t])}function Stack(e){var t=this.__data__=new ListCache(e);this.size=t.size}function arrayLikeKeys(e,t){var r=nn(e),n=!r&&rn(e),i=!r&&!n&&on(e),a=!r&&!n&&!i&&fn(e),o=r||n||i||a,s=o?baseTimes(e.length,Me):[],c=s.length;for(var u in e)!t&&!xe.call(e,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||isIndex(u,c))||s.push(u);return s}function arraySample(e){var t=e.length;return t?e[baseRandom(0,t-1)]:i}function arraySampleSize(e,t){return shuffleSelf(copyArray(e),baseClamp(t,0,e.length))}function arrayShuffle(e){return shuffleSelf(copyArray(e))}function assignMergeValue(e,t,r){(r!==i&&!eq(e[t],r)||r===i&&!(t in e))&&baseAssignValue(e,t,r)}function assignValue(e,t,r){var n=e[t];xe.call(e,t)&&eq(n,r)&&(r!==i||t in e)||baseAssignValue(e,t,r)}function assocIndexOf(e,t){for(var r=e.length;r--;)if(eq(e[r][0],t))return r;return-1}function baseAggregator(e,t,r,n){return tr(e,(function(e,i,a){t(n,e,r(e),a)})),n}function baseAssign(e,t){return e&&copyObject(t,keys(t),e)}function baseAssignValue(e,t,r){"__proto__"==t&&Qe?Qe(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function baseAt(e,t){for(var n=-1,a=t.length,o=r(a),s=null==e;++n<a;)o[n]=s?i:get(e,t[n]);return o}function baseClamp(e,t,r){return e==e&&(r!==i&&(e=e<=r?e:r),t!==i&&(e=e>=t?e:t)),e}function baseClone(e,t,r,n,a,o){var s,c=1&t,u=2&t,l=4&t;if(r&&(s=a?r(e,n,a,o):r(e)),s!==i)return s;if(!isObject(e))return e;var f=nn(e);if(f){if(s=function initCloneArray(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&xe.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!c)return copyArray(e,s)}else{var h=dr(e),d=h==O||h==A;if(on(e))return cloneBuffer(e,c);if(h==I||h==b||d&&!a){if(s=u||d?{}:initCloneObject(e),!c)return u?function copySymbolsIn(e,t){return copyObject(e,hr(e),t)}(e,function baseAssignIn(e,t){return e&&copyObject(t,keysIn(t),e)}(s,e)):function copySymbols(e,t){return copyObject(e,fr(e),t)}(e,baseAssign(s,e))}else{if(!ut[h])return a?e:{};s=function initCloneByTag(e,t,r){var n=e.constructor;switch(t){case k:return cloneArrayBuffer(e);case m:case E:return new n(+e);case x:return function cloneDataView(e,t){var r=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case N:case D:case F:case U:case B:case W:case z:case K:case G:return cloneTypedArray(e,r);case S:return new n;case R:case L:return new n(e);case C:return function cloneRegExp(e){var t=new e.constructor(e.source,ve.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new n;case j:return function cloneSymbol(e){return Xt?Re(Xt.call(e)):{}}(e)}}(e,h,c)}}o||(o=new Stack);var p=o.get(e);if(p)return p;o.set(e,s),ln(e)?e.forEach((function(n){s.add(baseClone(n,t,r,n,e,o))})):cn(e)&&e.forEach((function(n,i){s.set(i,baseClone(n,t,r,i,e,o))}));var v=f?i:(l?u?getAllKeysIn:getAllKeys:u?keysIn:keys)(e);return arrayEach(v||e,(function(n,i){v&&(n=e[i=n]),assignValue(s,i,baseClone(n,t,r,i,e,o))})),s}function baseConformsTo(e,t,r){var n=r.length;if(null==e)return!n;for(e=Re(e);n--;){var a=r[n],o=t[a],s=e[a];if(s===i&&!(a in e)||!o(s))return!1}return!0}function baseDelay(e,t,r){if("function"!=typeof e)throw new Ce(a);return yr((function(){e.apply(i,r)}),t)}function baseDifference(e,t,r,n){var i=-1,a=arrayIncludes,o=!0,s=e.length,c=[],u=t.length;if(!s)return c;r&&(t=arrayMap(t,baseUnary(r))),n?(a=arrayIncludesWith,o=!1):t.length>=200&&(a=cacheHas,o=!1,t=new SetCache(t));e:for(;++i<s;){var l=e[i],f=null==r?l:r(l);if(l=n||0!==l?l:0,o&&f==f){for(var h=u;h--;)if(t[h]===f)continue e;c.push(l)}else a(t,f,n)||c.push(l)}return c}lodash.templateSettings={escape:X,evaluate:Q,interpolate:ee,variable:"",imports:{_:lodash}},lodash.prototype=baseLodash.prototype,lodash.prototype.constructor=lodash,LodashWrapper.prototype=er(baseLodash.prototype),LodashWrapper.prototype.constructor=LodashWrapper,LazyWrapper.prototype=er(baseLodash.prototype),LazyWrapper.prototype.constructor=LazyWrapper,Hash.prototype.clear=function hashClear(){this.__data__=Kt?Kt(null):{},this.size=0},Hash.prototype.delete=function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hash.prototype.get=function hashGet(e){var t=this.__data__;if(Kt){var r=t[e];return r===o?i:r}return xe.call(t,e)?t[e]:i},Hash.prototype.has=function hashHas(e){var t=this.__data__;return Kt?t[e]!==i:xe.call(t,e)},Hash.prototype.set=function hashSet(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Kt&&t===i?o:t,this},ListCache.prototype.clear=function listCacheClear(){this.__data__=[],this.size=0},ListCache.prototype.delete=function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);return!(r<0)&&(r==t.length-1?t.pop():Je.call(t,r,1),--this.size,!0)},ListCache.prototype.get=function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?i:t[r][1]},ListCache.prototype.has=function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1},ListCache.prototype.set=function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},MapCache.prototype.clear=function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Ut||ListCache),string:new Hash}},MapCache.prototype.delete=function mapCacheDelete(e){var t=getMapData(this,e).delete(e);return this.size-=t?1:0,t},MapCache.prototype.get=function mapCacheGet(e){return getMapData(this,e).get(e)},MapCache.prototype.has=function mapCacheHas(e){return getMapData(this,e).has(e)},MapCache.prototype.set=function mapCacheSet(e,t){var r=getMapData(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},SetCache.prototype.add=SetCache.prototype.push=function setCacheAdd(e){return this.__data__.set(e,o),this},SetCache.prototype.has=function setCacheHas(e){return this.__data__.has(e)},Stack.prototype.clear=function stackClear(){this.__data__=new ListCache,this.size=0},Stack.prototype.delete=function stackDelete(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Stack.prototype.get=function stackGet(e){return this.__data__.get(e)},Stack.prototype.has=function stackHas(e){return this.__data__.has(e)},Stack.prototype.set=function stackSet(e,t){var r=this.__data__;if(r instanceof ListCache){var n=r.__data__;if(!Ut||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new MapCache(n)}return r.set(e,t),this.size=r.size,this};var tr=createBaseEach(baseForOwn),rr=createBaseEach(baseForOwnRight,!0);function baseEvery(e,t){var r=!0;return tr(e,(function(e,n,i){return r=!!t(e,n,i)})),r}function baseExtremum(e,t,r){for(var n=-1,a=e.length;++n<a;){var o=e[n],s=t(o);if(null!=s&&(c===i?s==s&&!isSymbol(s):r(s,c)))var c=s,u=o}return u}function baseFilter(e,t){var r=[];return tr(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function baseFlatten(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=isFlattenable),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?baseFlatten(s,t-1,r,n,i):arrayPush(i,s):n||(i[i.length]=s)}return i}var nr=createBaseFor(),ir=createBaseFor(!0);function baseForOwn(e,t){return e&&nr(e,t,keys)}function baseForOwnRight(e,t){return e&&ir(e,t,keys)}function baseFunctions(e,t){return arrayFilter(t,(function(t){return isFunction(e[t])}))}function baseGet(e,t){for(var r=0,n=(t=castPath(t,e)).length;null!=e&&r<n;)e=e[toKey(t[r++])];return r&&r==n?e:i}function baseGetAllKeys(e,t,r){var n=t(e);return nn(e)?n:arrayPush(n,r(e))}function baseGetTag(e){return null==e?e===i?"[object Undefined]":"[object Null]":Xe&&Xe in Re(e)?function getRawTag(e){var t=xe.call(e,Xe),r=e[Xe];try{e[Xe]=i;var n=!0}catch(e){}var a=Fe.call(e);n&&(t?e[Xe]=r:delete e[Xe]);return a}(e):function objectToString(e){return Fe.call(e)}(e)}function baseGt(e,t){return e>t}function baseHas(e,t){return null!=e&&xe.call(e,t)}function baseHasIn(e,t){return null!=e&&t in Re(e)}function baseIntersection(e,t,n){for(var a=n?arrayIncludesWith:arrayIncludes,o=e[0].length,s=e.length,c=s,u=r(s),l=1/0,f=[];c--;){var h=e[c];c&&t&&(h=arrayMap(h,baseUnary(t))),l=Pt(h.length,l),u[c]=!n&&(t||o>=120&&h.length>=120)?new SetCache(c&&h):i}h=e[0];var d=-1,p=u[0];e:for(;++d<o&&f.length<l;){var v=h[d],y=t?t(v):v;if(v=n||0!==v?v:0,!(p?cacheHas(p,y):a(f,y,n))){for(c=s;--c;){var g=u[c];if(!(g?cacheHas(g,y):a(e[c],y,n)))continue e}p&&p.push(y),f.push(v)}}return f}function baseInvoke(e,t,r){var n=null==(e=parent(e,t=castPath(t,e)))?e:e[toKey(last(t))];return null==n?i:apply(n,e,r)}function baseIsArguments(e){return isObjectLike(e)&&baseGetTag(e)==b}function baseIsEqual(e,t,r,n,a){return e===t||(null==e||null==t||!isObjectLike(e)&&!isObjectLike(t)?e!=e&&t!=t:function baseIsEqualDeep(e,t,r,n,a,o){var s=nn(e),c=nn(t),u=s?_:dr(e),l=c?_:dr(t),f=(u=u==b?I:u)==I,h=(l=l==b?I:l)==I,d=u==l;if(d&&on(e)){if(!on(t))return!1;s=!0,f=!1}if(d&&!f)return o||(o=new Stack),s||fn(e)?equalArrays(e,t,r,n,a,o):function equalByTag(e,t,r,n,i,a,o){switch(r){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case k:return!(e.byteLength!=t.byteLength||!a(new Ge(e),new Ge(t)));case m:case E:case R:return eq(+e,+t);case w:return e.name==t.name&&e.message==t.message;case C:case L:return e==t+"";case S:var s=mapToArray;case T:var c=1&n;if(s||(s=setToArray),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=2,o.set(e,t);var l=equalArrays(s(e),s(t),n,i,a,o);return o.delete(e),l;case j:if(Xt)return Xt.call(e)==Xt.call(t)}return!1}(e,t,u,r,n,a,o);if(!(1&r)){var p=f&&xe.call(e,"__wrapped__"),v=h&&xe.call(t,"__wrapped__");if(p||v){var y=p?e.value():e,g=v?t.value():t;return o||(o=new Stack),a(y,g,r,n,o)}}if(!d)return!1;return o||(o=new Stack),function equalObjects(e,t,r,n,a,o){var s=1&r,c=getAllKeys(e),u=c.length,l=getAllKeys(t),f=l.length;if(u!=f&&!s)return!1;var h=u;for(;h--;){var d=c[h];if(!(s?d in t:xe.call(t,d)))return!1}var p=o.get(e),v=o.get(t);if(p&&v)return p==t&&v==e;var y=!0;o.set(e,t),o.set(t,e);var g=s;for(;++h<u;){var b=e[d=c[h]],_=t[d];if(n)var m=s?n(_,b,d,t,e,o):n(b,_,d,e,t,o);if(!(m===i?b===_||a(b,_,r,n,o):m)){y=!1;break}g||(g="constructor"==d)}if(y&&!g){var E=e.constructor,w=t.constructor;E==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof w&&w instanceof w||(y=!1)}return o.delete(e),o.delete(t),y}(e,t,r,n,a,o)}(e,t,r,n,baseIsEqual,a))}function baseIsMatch(e,t,r,n){var a=r.length,o=a,s=!n;if(null==e)return!o;for(e=Re(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){var u=(c=r[a])[0],l=e[u],f=c[1];if(s&&c[2]){if(l===i&&!(u in e))return!1}else{var h=new Stack;if(n)var d=n(l,f,u,e,t,h);if(!(d===i?baseIsEqual(f,l,3,n,h):d))return!1}}return!0}function baseIsNative(e){return!(!isObject(e)||function isMasked(e){return!!De&&De in e}(e))&&(isFunction(e)?We:be).test(toSource(e))}function baseIteratee(e){return"function"==typeof e?e:null==e?identity:"object"==typeof e?nn(e)?baseMatchesProperty(e[0],e[1]):baseMatches(e):property(e)}function baseKeys(e){if(!isPrototype(e))return It(e);var t=[];for(var r in Re(e))xe.call(e,r)&&"constructor"!=r&&t.push(r);return t}function baseKeysIn(e){if(!isObject(e))return function nativeKeysIn(e){var t=[];if(null!=e)for(var r in Re(e))t.push(r);return t}(e);var t=isPrototype(e),r=[];for(var n in e)("constructor"!=n||!t&&xe.call(e,n))&&r.push(n);return r}function baseLt(e,t){return e<t}function baseMap(e,t){var n=-1,i=isArrayLike(e)?r(e.length):[];return tr(e,(function(e,r,a){i[++n]=t(e,r,a)})),i}function baseMatches(e){var t=getMatchData(e);return 1==t.length&&t[0][2]?matchesStrictComparable(t[0][0],t[0][1]):function(r){return r===e||baseIsMatch(r,e,t)}}function baseMatchesProperty(e,t){return isKey(e)&&isStrictComparable(t)?matchesStrictComparable(toKey(e),t):function(r){var n=get(r,e);return n===i&&n===t?hasIn(r,e):baseIsEqual(t,n,3)}}function baseMerge(e,t,r,n,a){e!==t&&nr(t,(function(o,s){if(a||(a=new Stack),isObject(o))!function baseMergeDeep(e,t,r,n,a,o,s){var c=safeGet(e,r),u=safeGet(t,r),l=s.get(u);if(l)return void assignMergeValue(e,r,l);var f=o?o(c,u,r+"",e,t,s):i,h=f===i;if(h){var d=nn(u),p=!d&&on(u),v=!d&&!p&&fn(u);f=u,d||p||v?nn(c)?f=c:isArrayLikeObject(c)?f=copyArray(c):p?(h=!1,f=cloneBuffer(u,!0)):v?(h=!1,f=cloneTypedArray(u,!0)):f=[]:isPlainObject(u)||rn(u)?(f=c,rn(c)?f=toPlainObject(c):isObject(c)&&!isFunction(c)||(f=initCloneObject(u))):h=!1}h&&(s.set(u,f),a(f,u,n,o,s),s.delete(u));assignMergeValue(e,r,f)}(e,t,s,r,baseMerge,n,a);else{var c=n?n(safeGet(e,s),o,s+"",e,t,a):i;c===i&&(c=o),assignMergeValue(e,s,c)}}),keysIn)}function baseNth(e,t){var r=e.length;if(r)return isIndex(t+=t<0?r:0,r)?e[t]:i}function baseOrderBy(e,t,r){t=t.length?arrayMap(t,(function(e){return nn(e)?function(t){return baseGet(t,1===e.length?e[0]:e)}:e})):[identity];var n=-1;t=arrayMap(t,baseUnary(getIteratee()));var i=baseMap(e,(function(e,r,i){var a=arrayMap(t,(function(t){return t(e)}));return{criteria:a,index:++n,value:e}}));return function baseSortBy(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(i,(function(e,t){return function compareMultiple(e,t,r){var n=-1,i=e.criteria,a=t.criteria,o=i.length,s=r.length;for(;++n<o;){var c=compareAscending(i[n],a[n]);if(c)return n>=s?c:c*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function basePickBy(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],s=baseGet(e,o);r(s,o)&&baseSet(a,castPath(o,e),s)}return a}function basePullAll(e,t,r,n){var i=n?baseIndexOfWith:baseIndexOf,a=-1,o=t.length,s=e;for(e===t&&(t=copyArray(t)),r&&(s=arrayMap(e,baseUnary(r)));++a<o;)for(var c=0,u=t[a],l=r?r(u):u;(c=i(s,l,c,n))>-1;)s!==e&&Je.call(s,c,1),Je.call(e,c,1);return e}function basePullAt(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==a){var a=i;isIndex(i)?Je.call(e,i,1):baseUnset(e,i)}}return e}function baseRandom(e,t){return e+pt(Nt()*(t-e+1))}function baseRepeat(e,t){var r="";if(!e||t<1||t>p)return r;do{t%2&&(r+=e),(t=pt(t/2))&&(e+=e)}while(t);return r}function baseRest(e,t){return gr(overRest(e,t,identity),e+"")}function baseSample(e){return arraySample(values(e))}function baseSampleSize(e,t){var r=values(e);return shuffleSelf(r,baseClamp(t,0,r.length))}function baseSet(e,t,r,n){if(!isObject(e))return e;for(var a=-1,o=(t=castPath(t,e)).length,s=o-1,c=e;null!=c&&++a<o;){var u=toKey(t[a]),l=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(a!=s){var f=c[u];(l=n?n(f,u,c):i)===i&&(l=isObject(f)?f:isIndex(t[a+1])?[]:{})}assignValue(c,u,l),c=c[u]}return e}var ar=Gt?function(e,t){return Gt.set(e,t),e}:identity,or=Qe?function(e,t){return Qe(e,"toString",{configurable:!0,enumerable:!1,value:constant(t),writable:!0})}:identity;function baseShuffle(e){return shuffleSelf(values(e))}function baseSlice(e,t,n){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=r(a);++i<a;)o[i]=e[i+t];return o}function baseSome(e,t){var r;return tr(e,(function(e,n,i){return!(r=t(e,n,i))})),!!r}function baseSortedIndex(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;n<i;){var a=n+i>>>1,o=e[a];null!==o&&!isSymbol(o)&&(r?o<=t:o<t)?n=a+1:i=a}return i}return baseSortedIndexBy(e,t,identity,r)}function baseSortedIndexBy(e,t,r,n){var a=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=r(t))!=t,c=null===t,u=isSymbol(t),l=t===i;a<o;){var f=pt((a+o)/2),h=r(e[f]),d=h!==i,p=null===h,v=h==h,y=isSymbol(h);if(s)var g=n||v;else g=l?v&&(n||d):c?v&&d&&(n||!p):u?v&&d&&!p&&(n||!y):!p&&!y&&(n?h<=t:h<t);g?a=f+1:o=f}return Pt(o,4294967294)}function baseSortedUniq(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var o=e[r],s=t?t(o):o;if(!r||!eq(s,c)){var c=s;a[i++]=0===o?0:o}}return a}function baseToNumber(e){return"number"==typeof e?e:isSymbol(e)?v:+e}function baseToString(e){if("string"==typeof e)return e;if(nn(e))return arrayMap(e,baseToString)+"";if(isSymbol(e))return Qt?Qt.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function baseUniq(e,t,r){var n=-1,i=arrayIncludes,a=e.length,o=!0,s=[],c=s;if(r)o=!1,i=arrayIncludesWith;else if(a>=200){var u=t?null:ur(e);if(u)return setToArray(u);o=!1,i=cacheHas,c=new SetCache}else c=t?[]:s;e:for(;++n<a;){var l=e[n],f=t?t(l):l;if(l=r||0!==l?l:0,o&&f==f){for(var h=c.length;h--;)if(c[h]===f)continue e;t&&c.push(f),s.push(l)}else i(c,f,r)||(c!==s&&c.push(f),s.push(l))}return s}function baseUnset(e,t){return null==(e=parent(e,t=castPath(t,e)))||delete e[toKey(last(t))]}function baseUpdate(e,t,r,n){return baseSet(e,t,r(baseGet(e,t)),n)}function baseWhile(e,t,r,n){for(var i=e.length,a=n?i:-1;(n?a--:++a<i)&&t(e[a],a,e););return r?baseSlice(e,n?0:a,n?a+1:i):baseSlice(e,n?a+1:0,n?i:a)}function baseWrapperValue(e,t){var r=e;return r instanceof LazyWrapper&&(r=r.value()),arrayReduce(t,(function(e,t){return t.func.apply(t.thisArg,arrayPush([e],t.args))}),r)}function baseXor(e,t,n){var i=e.length;if(i<2)return i?baseUniq(e[0]):[];for(var a=-1,o=r(i);++a<i;)for(var s=e[a],c=-1;++c<i;)c!=a&&(o[a]=baseDifference(o[a]||s,e[c],t,n));return baseUniq(baseFlatten(o,1),t,n)}function baseZipObject(e,t,r){for(var n=-1,a=e.length,o=t.length,s={};++n<a;){var c=n<o?t[n]:i;r(s,e[n],c)}return s}function castArrayLikeObject(e){return isArrayLikeObject(e)?e:[]}function castFunction(e){return"function"==typeof e?e:identity}function castPath(e,t){return nn(e)?e:isKey(e,t)?[e]:br(toString(e))}var sr=baseRest;function castSlice(e,t,r){var n=e.length;return r=r===i?n:r,!t&&r>=n?e:baseSlice(e,t,r)}var cr=rt||function(e){return vt.clearTimeout(e)};function cloneBuffer(e,t){if(t)return e.slice();var r=e.length,n=qe?qe(r):new e.constructor(r);return e.copy(n),n}function cloneArrayBuffer(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function cloneTypedArray(e,t){var r=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function compareAscending(e,t){if(e!==t){var r=e!==i,n=null===e,a=e==e,o=isSymbol(e),s=t!==i,c=null===t,u=t==t,l=isSymbol(t);if(!c&&!l&&!o&&e>t||o&&s&&u&&!c&&!l||n&&s&&u||!r&&u||!a)return 1;if(!n&&!o&&!l&&e<t||l&&r&&a&&!n&&!o||c&&r&&a||!s&&a||!u)return-1}return 0}function composeArgs(e,t,n,i){for(var a=-1,o=e.length,s=n.length,c=-1,u=t.length,l=jt(o-s,0),f=r(u+l),h=!i;++c<u;)f[c]=t[c];for(;++a<s;)(h||a<o)&&(f[n[a]]=e[a]);for(;l--;)f[c++]=e[a++];return f}function composeArgsRight(e,t,n,i){for(var a=-1,o=e.length,s=-1,c=n.length,u=-1,l=t.length,f=jt(o-c,0),h=r(f+l),d=!i;++a<f;)h[a]=e[a];for(var p=a;++u<l;)h[p+u]=t[u];for(;++s<c;)(d||a<o)&&(h[p+n[s]]=e[a++]);return h}function copyArray(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function copyObject(e,t,r,n){var a=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var c=t[o],u=n?n(r[c],e[c],c,r,e):i;u===i&&(u=e[c]),a?baseAssignValue(r,c,u):assignValue(r,c,u)}return r}function createAggregator(e,t){return function(r,n){var i=nn(r)?arrayAggregator:baseAggregator,a=t?t():{};return i(r,e,getIteratee(n,2),a)}}function createAssigner(e){return baseRest((function(t,r){var n=-1,a=r.length,o=a>1?r[a-1]:i,s=a>2?r[2]:i;for(o=e.length>3&&"function"==typeof o?(a--,o):i,s&&isIterateeCall(r[0],r[1],s)&&(o=a<3?i:o,a=1),t=Re(t);++n<a;){var c=r[n];c&&e(t,c,n,o)}return t}))}function createBaseEach(e,t){return function(r,n){if(null==r)return r;if(!isArrayLike(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Re(r);(t?a--:++a<i)&&!1!==n(o[a],a,o););return r}}function createBaseFor(e){return function(t,r,n){for(var i=-1,a=Re(t),o=n(t),s=o.length;s--;){var c=o[e?s:++i];if(!1===r(a[c],c,a))break}return t}}function createCaseFirst(e){return function(t){var r=hasUnicode(t=toString(t))?stringToArray(t):i,n=r?r[0]:t.charAt(0),a=r?castSlice(r,1).join(""):t.slice(1);return n[e]()+a}}function createCompounder(e){return function(t){return arrayReduce(words(deburr(t).replace(et,"")),e,"")}}function createCtor(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=er(e.prototype),n=e.apply(r,t);return isObject(n)?n:r}}function createFind(e){return function(t,r,n){var a=Re(t);if(!isArrayLike(t)){var o=getIteratee(r,3);t=keys(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,n);return s>-1?a[o?t[s]:s]:i}}function createFlow(e){return flatRest((function(t){var r=t.length,n=r,o=LodashWrapper.prototype.thru;for(e&&t.reverse();n--;){var s=t[n];if("function"!=typeof s)throw new Ce(a);if(o&&!c&&"wrapper"==getFuncName(s))var c=new LodashWrapper([],!0)}for(n=c?n:r;++n<r;){var u=getFuncName(s=t[n]),l="wrapper"==u?lr(s):i;c=l&&isLaziable(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[getFuncName(l[0])].apply(c,l[3]):1==s.length&&isLaziable(s)?c[u]():c.thru(s)}return function(){var e=arguments,n=e[0];if(c&&1==e.length&&nn(n))return c.plant(n).value();for(var i=0,a=r?t[i].apply(this,e):n;++i<r;)a=t[i].call(this,a);return a}}))}function createHybrid(e,t,n,a,o,s,c,u,l,h){var d=t&f,p=1&t,v=2&t,y=24&t,g=512&t,b=v?i:createCtor(e);return function wrapper(){for(var f=arguments.length,_=r(f),m=f;m--;)_[m]=arguments[m];if(y)var E=getHolder(wrapper),w=function countHolders(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(_,E);if(a&&(_=composeArgs(_,a,o,y)),s&&(_=composeArgsRight(_,s,c,y)),f-=w,y&&f<h){var O=replaceHolders(_,E);return createRecurry(e,t,createHybrid,wrapper.placeholder,n,_,O,u,l,h-f)}var A=p?n:this,S=v?A[e]:e;return f=_.length,u?_=function reorder(e,t){var r=e.length,n=Pt(t.length,r),a=copyArray(e);for(;n--;){var o=t[n];e[n]=isIndex(o,r)?a[o]:i}return e}(_,u):g&&f>1&&_.reverse(),d&&l<f&&(_.length=l),this&&this!==vt&&this instanceof wrapper&&(S=b||createCtor(S)),S.apply(A,_)}}function createInverter(e,t){return function(r,n){return function baseInverter(e,t,r,n){return baseForOwn(e,(function(e,i,a){t(n,r(e),i,a)})),n}(r,e,t(n),{})}}function createMathOperation(e,t){return function(r,n){var a;if(r===i&&n===i)return t;if(r!==i&&(a=r),n!==i){if(a===i)return n;"string"==typeof r||"string"==typeof n?(r=baseToString(r),n=baseToString(n)):(r=baseToNumber(r),n=baseToNumber(n)),a=e(r,n)}return a}}function createOver(e){return flatRest((function(t){return t=arrayMap(t,baseUnary(getIteratee())),baseRest((function(r){var n=this;return e(t,(function(e){return apply(e,n,r)}))}))}))}function createPadding(e,t){var r=(t=t===i?" ":baseToString(t)).length;if(r<2)return r?baseRepeat(t,e):t;var n=baseRepeat(t,dt(e/stringSize(t)));return hasUnicode(t)?castSlice(stringToArray(n),0,e).join(""):n.slice(0,e)}function createRange(e){return function(t,n,a){return a&&"number"!=typeof a&&isIterateeCall(t,n,a)&&(n=a=i),t=toFinite(t),n===i?(n=t,t=0):n=toFinite(n),function baseRange(e,t,n,i){for(var a=-1,o=jt(dt((t-e)/(n||1)),0),s=r(o);o--;)s[i?o:++a]=e,e+=n;return s}(t,n,a=a===i?t<n?1:-1:toFinite(a),e)}}function createRelationalOperation(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=toNumber(t),r=toNumber(r)),e(t,r)}}function createRecurry(e,t,r,n,a,o,s,c,f,h){var d=8&t;t|=d?u:l,4&(t&=~(d?l:u))||(t&=-4);var p=[e,t,a,d?o:i,d?s:i,d?i:o,d?i:s,c,f,h],v=r.apply(i,p);return isLaziable(e)&&vr(v,p),v.placeholder=n,setWrapToString(v,e,t)}function createRound(e){var t=Se[e];return function(e,r){if(e=toNumber(e),(r=null==r?0:Pt(toInteger(r),292))&&_t(e)){var n=(toString(e)+"e").split("e");return+((n=(toString(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var ur=Wt&&1/setToArray(new Wt([,-0]))[1]==d?function(e){return new Wt(e)}:noop;function createToPairs(e){return function(t){var r=dr(t);return r==S?mapToArray(t):r==T?setToPairs(t):function baseToPairs(e,t){return arrayMap(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function createWrap(e,t,n,o,d,p,v,y){var g=2&t;if(!g&&"function"!=typeof e)throw new Ce(a);var b=o?o.length:0;if(b||(t&=-97,o=d=i),v=v===i?v:jt(toInteger(v),0),y=y===i?y:toInteger(y),b-=d?d.length:0,t&l){var _=o,m=d;o=d=i}var E=g?i:lr(e),w=[e,t,n,o,d,_,m,p,v,y];if(E&&function mergeData(e,t){var r=e[1],n=t[1],i=r|n,a=i<131,o=n==f&&8==r||n==f&&r==h&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!a&&!o)return e;1&n&&(e[2]=t[2],i|=1&r?0:4);var c=t[3];if(c){var u=e[3];e[3]=u?composeArgs(u,c,t[4]):c,e[4]=u?replaceHolders(e[3],s):t[4]}(c=t[5])&&(u=e[5],e[5]=u?composeArgsRight(u,c,t[6]):c,e[6]=u?replaceHolders(e[5],s):t[6]);(c=t[7])&&(e[7]=c);n&f&&(e[8]=null==e[8]?t[8]:Pt(e[8],t[8]));null==e[9]&&(e[9]=t[9]);return e[0]=t[0],e[1]=i,e}(w,E),e=w[0],t=w[1],n=w[2],o=w[3],d=w[4],!(y=w[9]=w[9]===i?g?0:e.length:jt(w[9]-b,0))&&24&t&&(t&=-25),t&&1!=t)O=8==t||t==c?function createCurry(e,t,n){var a=createCtor(e);return function wrapper(){for(var o=arguments.length,s=r(o),c=o,u=getHolder(wrapper);c--;)s[c]=arguments[c];var l=o<3&&s[0]!==u&&s[o-1]!==u?[]:replaceHolders(s,u);return(o-=l.length)<n?createRecurry(e,t,createHybrid,wrapper.placeholder,i,s,l,i,i,n-o):apply(this&&this!==vt&&this instanceof wrapper?a:e,this,s)}}(e,t,y):t!=u&&33!=t||d.length?createHybrid.apply(i,w):function createPartial(e,t,n,i){var a=1&t,o=createCtor(e);return function wrapper(){for(var t=-1,s=arguments.length,c=-1,u=i.length,l=r(u+s),f=this&&this!==vt&&this instanceof wrapper?o:e;++c<u;)l[c]=i[c];for(;s--;)l[c++]=arguments[++t];return apply(f,a?n:this,l)}}(e,t,n,o);else var O=function createBind(e,t,r){var n=1&t,i=createCtor(e);return function wrapper(){return(this&&this!==vt&&this instanceof wrapper?i:e).apply(n?r:this,arguments)}}(e,t,n);return setWrapToString((E?ar:vr)(O,w),e,t)}function customDefaultsAssignIn(e,t,r,n){return e===i||eq(e,je[r])&&!xe.call(n,r)?t:e}function customDefaultsMerge(e,t,r,n,a,o){return isObject(e)&&isObject(t)&&(o.set(t,e),baseMerge(e,t,i,customDefaultsMerge,o),o.delete(t)),e}function customOmitClone(e){return isPlainObject(e)?i:e}function equalArrays(e,t,r,n,a,o){var s=1&r,c=e.length,u=t.length;if(c!=u&&!(s&&u>c))return!1;var l=o.get(e),f=o.get(t);if(l&&f)return l==t&&f==e;var h=-1,d=!0,p=2&r?new SetCache:i;for(o.set(e,t),o.set(t,e);++h<c;){var v=e[h],y=t[h];if(n)var g=s?n(y,v,h,t,e,o):n(v,y,h,e,t,o);if(g!==i){if(g)continue;d=!1;break}if(p){if(!arraySome(t,(function(e,t){if(!cacheHas(p,t)&&(v===e||a(v,e,r,n,o)))return p.push(t)}))){d=!1;break}}else if(v!==y&&!a(v,y,r,n,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function flatRest(e){return gr(overRest(e,i,flatten),e+"")}function getAllKeys(e){return baseGetAllKeys(e,keys,fr)}function getAllKeysIn(e){return baseGetAllKeys(e,keysIn,hr)}var lr=Gt?function(e){return Gt.get(e)}:noop;function getFuncName(e){for(var t=e.name+"",r=qt[t],n=xe.call(qt,t)?r.length:0;n--;){var i=r[n],a=i.func;if(null==a||a==e)return i.name}return t}function getHolder(e){return(xe.call(lodash,"placeholder")?lodash:e).placeholder}function getIteratee(){var e=lodash.iteratee||iteratee;return e=e===iteratee?baseIteratee:e,arguments.length?e(arguments[0],arguments[1]):e}function getMapData(e,t){var r=e.__data__;return function isKeyable(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function getMatchData(e){for(var t=keys(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,isStrictComparable(i)]}return t}function getNative(e,t){var r=function getValue(e,t){return null==e?i:e[t]}(e,t);return baseIsNative(r)?r:i}var fr=yt?function(e){return null==e?[]:(e=Re(e),arrayFilter(yt(e),(function(t){return Ve.call(e,t)})))}:stubArray,hr=yt?function(e){for(var t=[];e;)arrayPush(t,fr(e)),e=He(e);return t}:stubArray,dr=baseGetTag;function hasPath(e,t,r){for(var n=-1,i=(t=castPath(t,e)).length,a=!1;++n<i;){var o=toKey(t[n]);if(!(a=null!=e&&r(e,o)))break;e=e[o]}return a||++n!=i?a:!!(i=null==e?0:e.length)&&isLength(i)&&isIndex(o,i)&&(nn(e)||rn(e))}function initCloneObject(e){return"function"!=typeof e.constructor||isPrototype(e)?{}:er(He(e))}function isFlattenable(e){return nn(e)||rn(e)||!!(Ye&&e&&e[Ye])}function isIndex(e,t){var r=typeof e;return!!(t=null==t?p:t)&&("number"==r||"symbol"!=r&&me.test(e))&&e>-1&&e%1==0&&e<t}function isIterateeCall(e,t,r){if(!isObject(r))return!1;var n=typeof t;return!!("number"==n?isArrayLike(r)&&isIndex(t,r.length):"string"==n&&t in r)&&eq(r[t],e)}function isKey(e,t){if(nn(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!isSymbol(e))||(re.test(e)||!te.test(e)||null!=t&&e in Re(t))}function isLaziable(e){var t=getFuncName(e),r=lodash[t];if("function"!=typeof r||!(t in LazyWrapper.prototype))return!1;if(e===r)return!0;var n=lr(r);return!!n&&e===n[0]}(Ft&&dr(new Ft(new ArrayBuffer(1)))!=x||Ut&&dr(new Ut)!=S||Bt&&dr(Bt.resolve())!=M||Wt&&dr(new Wt)!=T||zt&&dr(new zt)!=P)&&(dr=function(e){var t=baseGetTag(e),r=t==I?e.constructor:i,n=r?toSource(r):"";if(n)switch(n){case Ht:return x;case $t:return S;case Vt:return M;case Jt:return T;case Yt:return P}return t});var pr=Pe?isFunction:stubFalse;function isPrototype(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||je)}function isStrictComparable(e){return e==e&&!isObject(e)}function matchesStrictComparable(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==i||e in Re(r)))}}function overRest(e,t,n){return t=jt(t===i?e.length-1:t,0),function(){for(var i=arguments,a=-1,o=jt(i.length-t,0),s=r(o);++a<o;)s[a]=i[t+a];a=-1;for(var c=r(t+1);++a<t;)c[a]=i[a];return c[t]=n(s),apply(e,this,c)}}function parent(e,t){return t.length<2?e:baseGet(e,baseSlice(t,0,-1))}function safeGet(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var vr=shortOut(ar),yr=lt||function(e,t){return vt.setTimeout(e,t)},gr=shortOut(or);function setWrapToString(e,t,r){var n=t+"";return gr(e,function insertWrapDetails(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(n,function updateWrapDetails(e,t){return arrayEach(g,(function(r){var n="_."+r[0];t&r[1]&&!arrayIncludes(e,n)&&e.push(n)})),e.sort()}(function getWrapDetails(e){var t=e.match(ue);return t?t[1].split(le):[]}(n),r)))}function shortOut(e){var t=0,r=0;return function(){var n=kt(),a=16-(n-r);if(r=n,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function shuffleSelf(e,t){var r=-1,n=e.length,a=n-1;for(t=t===i?n:t;++r<t;){var o=baseRandom(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var br=function memoizeCapped(e){var t=memoize(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,(function(e,r,n,i){t.push(n?i.replace(de,"$1"):r||e)})),t}));function toKey(e){if("string"==typeof e||isSymbol(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function toSource(e){if(null!=e){try{return ke.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function wrapperClone(e){if(e instanceof LazyWrapper)return e.clone();var t=new LodashWrapper(e.__wrapped__,e.__chain__);return t.__actions__=copyArray(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var _r=baseRest((function(e,t){return isArrayLikeObject(e)?baseDifference(e,baseFlatten(t,1,isArrayLikeObject,!0)):[]})),mr=baseRest((function(e,t){var r=last(t);return isArrayLikeObject(r)&&(r=i),isArrayLikeObject(e)?baseDifference(e,baseFlatten(t,1,isArrayLikeObject,!0),getIteratee(r,2)):[]})),Er=baseRest((function(e,t){var r=last(t);return isArrayLikeObject(r)&&(r=i),isArrayLikeObject(e)?baseDifference(e,baseFlatten(t,1,isArrayLikeObject,!0),i,r):[]}));function findIndex(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:toInteger(r);return i<0&&(i=jt(n+i,0)),baseFindIndex(e,getIteratee(t,3),i)}function findLastIndex(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=n-1;return r!==i&&(a=toInteger(r),a=r<0?jt(n+a,0):Pt(a,n-1)),baseFindIndex(e,getIteratee(t,3),a,!0)}function flatten(e){return(null==e?0:e.length)?baseFlatten(e,1):[]}function head(e){return e&&e.length?e[0]:i}var wr=baseRest((function(e){var t=arrayMap(e,castArrayLikeObject);return t.length&&t[0]===e[0]?baseIntersection(t):[]})),Or=baseRest((function(e){var t=last(e),r=arrayMap(e,castArrayLikeObject);return t===last(r)?t=i:r.pop(),r.length&&r[0]===e[0]?baseIntersection(r,getIteratee(t,2)):[]})),Ar=baseRest((function(e){var t=last(e),r=arrayMap(e,castArrayLikeObject);return(t="function"==typeof t?t:i)&&r.pop(),r.length&&r[0]===e[0]?baseIntersection(r,i,t):[]}));function last(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Sr=baseRest(pullAll);function pullAll(e,t){return e&&e.length&&t&&t.length?basePullAll(e,t):e}var Rr=flatRest((function(e,t){var r=null==e?0:e.length,n=baseAt(e,t);return basePullAt(e,arrayMap(t,(function(e){return isIndex(e,r)?+e:e})).sort(compareAscending)),n}));function reverse(e){return null==e?e:Dt.call(e)}var Ir=baseRest((function(e){return baseUniq(baseFlatten(e,1,isArrayLikeObject,!0))})),Mr=baseRest((function(e){var t=last(e);return isArrayLikeObject(t)&&(t=i),baseUniq(baseFlatten(e,1,isArrayLikeObject,!0),getIteratee(t,2))})),Cr=baseRest((function(e){var t=last(e);return t="function"==typeof t?t:i,baseUniq(baseFlatten(e,1,isArrayLikeObject,!0),i,t)}));function unzip(e){if(!e||!e.length)return[];var t=0;return e=arrayFilter(e,(function(e){if(isArrayLikeObject(e))return t=jt(e.length,t),!0})),baseTimes(t,(function(t){return arrayMap(e,baseProperty(t))}))}function unzipWith(e,t){if(!e||!e.length)return[];var r=unzip(e);return null==t?r:arrayMap(r,(function(e){return apply(t,i,e)}))}var Tr=baseRest((function(e,t){return isArrayLikeObject(e)?baseDifference(e,t):[]})),Lr=baseRest((function(e){return baseXor(arrayFilter(e,isArrayLikeObject))})),jr=baseRest((function(e){var t=last(e);return isArrayLikeObject(t)&&(t=i),baseXor(arrayFilter(e,isArrayLikeObject),getIteratee(t,2))})),Pr=baseRest((function(e){var t=last(e);return t="function"==typeof t?t:i,baseXor(arrayFilter(e,isArrayLikeObject),i,t)})),kr=baseRest(unzip);var xr=baseRest((function(e){var t=e.length,r=t>1?e[t-1]:i;return r="function"==typeof r?(e.pop(),r):i,unzipWith(e,r)}));function chain(e){var t=lodash(e);return t.__chain__=!0,t}function thru(e,t){return t(e)}var Nr=flatRest((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,interceptor=function(t){return baseAt(t,e)};return!(t>1||this.__actions__.length)&&n instanceof LazyWrapper&&isIndex(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:thru,args:[interceptor],thisArg:i}),new LodashWrapper(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(interceptor)}));var Dr=createAggregator((function(e,t,r){xe.call(e,r)?++e[r]:baseAssignValue(e,r,1)}));var Fr=createFind(findIndex),Ur=createFind(findLastIndex);function forEach(e,t){return(nn(e)?arrayEach:tr)(e,getIteratee(t,3))}function forEachRight(e,t){return(nn(e)?arrayEachRight:rr)(e,getIteratee(t,3))}var Br=createAggregator((function(e,t,r){xe.call(e,r)?e[r].push(t):baseAssignValue(e,r,[t])}));var Wr=baseRest((function(e,t,n){var i=-1,a="function"==typeof t,o=isArrayLike(e)?r(e.length):[];return tr(e,(function(e){o[++i]=a?apply(t,e,n):baseInvoke(e,t,n)})),o})),zr=createAggregator((function(e,t,r){baseAssignValue(e,r,t)}));function map(e,t){return(nn(e)?arrayMap:baseMap)(e,getIteratee(t,3))}var Kr=createAggregator((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var Gr=baseRest((function(e,t){if(null==e)return[];var r=t.length;return r>1&&isIterateeCall(e,t[0],t[1])?t=[]:r>2&&isIterateeCall(t[0],t[1],t[2])&&(t=[t[0]]),baseOrderBy(e,baseFlatten(t,1),[])})),qr=it||function(){return vt.Date.now()};function ary(e,t,r){return t=r?i:t,t=e&&null==t?e.length:t,createWrap(e,f,i,i,i,i,t)}function before(e,t){var r;if("function"!=typeof t)throw new Ce(a);return e=toInteger(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var Hr=baseRest((function(e,t,r){var n=1;if(r.length){var i=replaceHolders(r,getHolder(Hr));n|=u}return createWrap(e,n,t,r,i)})),$r=baseRest((function(e,t,r){var n=3;if(r.length){var i=replaceHolders(r,getHolder($r));n|=u}return createWrap(t,n,e,r,i)}));function debounce(e,t,r){var n,o,s,c,u,l,f=0,h=!1,d=!1,p=!0;if("function"!=typeof e)throw new Ce(a);function invokeFunc(t){var r=n,a=o;return n=o=i,f=t,c=e.apply(a,r)}function shouldInvoke(e){var r=e-l;return l===i||r>=t||r<0||d&&e-f>=s}function timerExpired(){var e=qr();if(shouldInvoke(e))return trailingEdge(e);u=yr(timerExpired,function remainingWait(e){var r=t-(e-l);return d?Pt(r,s-(e-f)):r}(e))}function trailingEdge(e){return u=i,p&&n?invokeFunc(e):(n=o=i,c)}function debounced(){var e=qr(),r=shouldInvoke(e);if(n=arguments,o=this,l=e,r){if(u===i)return function leadingEdge(e){return f=e,u=yr(timerExpired,t),h?invokeFunc(e):c}(l);if(d)return cr(u),u=yr(timerExpired,t),invokeFunc(l)}return u===i&&(u=yr(timerExpired,t)),c}return t=toNumber(t)||0,isObject(r)&&(h=!!r.leading,s=(d="maxWait"in r)?jt(toNumber(r.maxWait)||0,t):s,p="trailing"in r?!!r.trailing:p),debounced.cancel=function cancel(){u!==i&&cr(u),f=0,n=l=o=u=i},debounced.flush=function flush(){return u===i?c:trailingEdge(qr())},debounced}var Vr=baseRest((function(e,t){return baseDelay(e,1,t)})),Jr=baseRest((function(e,t,r){return baseDelay(e,toNumber(t)||0,r)}));function memoize(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ce(a);var memoized=function(){var r=arguments,n=t?t.apply(this,r):r[0],i=memoized.cache;if(i.has(n))return i.get(n);var a=e.apply(this,r);return memoized.cache=i.set(n,a)||i,a};return memoized.cache=new(memoize.Cache||MapCache),memoized}function negate(e){if("function"!=typeof e)throw new Ce(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}memoize.Cache=MapCache;var Yr=sr((function(e,t){var r=(t=1==t.length&&nn(t[0])?arrayMap(t[0],baseUnary(getIteratee())):arrayMap(baseFlatten(t,1),baseUnary(getIteratee()))).length;return baseRest((function(n){for(var i=-1,a=Pt(n.length,r);++i<a;)n[i]=t[i].call(this,n[i]);return apply(e,this,n)}))})),Zr=baseRest((function(e,t){var r=replaceHolders(t,getHolder(Zr));return createWrap(e,u,i,t,r)})),Xr=baseRest((function(e,t){var r=replaceHolders(t,getHolder(Xr));return createWrap(e,l,i,t,r)})),Qr=flatRest((function(e,t){return createWrap(e,h,i,i,i,t)}));function eq(e,t){return e===t||e!=e&&t!=t}var en=createRelationalOperation(baseGt),tn=createRelationalOperation((function(e,t){return e>=t})),rn=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&xe.call(e,"callee")&&!Ve.call(e,"callee")},nn=r.isArray,an=Et?baseUnary(Et):function baseIsArrayBuffer(e){return isObjectLike(e)&&baseGetTag(e)==k};function isArrayLike(e){return null!=e&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}var on=gt||stubFalse,sn=wt?baseUnary(wt):function baseIsDate(e){return isObjectLike(e)&&baseGetTag(e)==E};function isError(e){if(!isObjectLike(e))return!1;var t=baseGetTag(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!isPlainObject(e)}function isFunction(e){if(!isObject(e))return!1;var t=baseGetTag(e);return t==O||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function isInteger(e){return"number"==typeof e&&e==toInteger(e)}function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function isObject(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function isObjectLike(e){return null!=e&&"object"==typeof e}var cn=Ot?baseUnary(Ot):function baseIsMap(e){return isObjectLike(e)&&dr(e)==S};function isNumber(e){return"number"==typeof e||isObjectLike(e)&&baseGetTag(e)==R}function isPlainObject(e){if(!isObjectLike(e)||baseGetTag(e)!=I)return!1;var t=He(e);if(null===t)return!0;var r=xe.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ke.call(r)==Ue}var un=At?baseUnary(At):function baseIsRegExp(e){return isObjectLike(e)&&baseGetTag(e)==C};var ln=St?baseUnary(St):function baseIsSet(e){return isObjectLike(e)&&dr(e)==T};function isString(e){return"string"==typeof e||!nn(e)&&isObjectLike(e)&&baseGetTag(e)==L}function isSymbol(e){return"symbol"==typeof e||isObjectLike(e)&&baseGetTag(e)==j}var fn=Rt?baseUnary(Rt):function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!ct[baseGetTag(e)]};var hn=createRelationalOperation(baseLt),dn=createRelationalOperation((function(e,t){return e<=t}));function toArray(e){if(!e)return[];if(isArrayLike(e))return isString(e)?stringToArray(e):copyArray(e);if(Ze&&e[Ze])return function iteratorToArray(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ze]());var t=dr(e);return(t==S?mapToArray:t==T?setToArray:values)(e)}function toFinite(e){return e?(e=toNumber(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function toInteger(e){var t=toFinite(e),r=t%1;return t==t?r?t-r:t:0}function toLength(e){return e?baseClamp(toInteger(e),0,y):0}function toNumber(e){if("number"==typeof e)return e;if(isSymbol(e))return v;if(isObject(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=baseTrim(e);var r=ge.test(e);return r||_e.test(e)?ht(e.slice(2),r?2:8):ye.test(e)?v:+e}function toPlainObject(e){return copyObject(e,keysIn(e))}function toString(e){return null==e?"":baseToString(e)}var pn=createAssigner((function(e,t){if(isPrototype(t)||isArrayLike(t))copyObject(t,keys(t),e);else for(var r in t)xe.call(t,r)&&assignValue(e,r,t[r])})),vn=createAssigner((function(e,t){copyObject(t,keysIn(t),e)})),yn=createAssigner((function(e,t,r,n){copyObject(t,keysIn(t),e,n)})),gn=createAssigner((function(e,t,r,n){copyObject(t,keys(t),e,n)})),bn=flatRest(baseAt);var _n=baseRest((function(e,t){e=Re(e);var r=-1,n=t.length,a=n>2?t[2]:i;for(a&&isIterateeCall(t[0],t[1],a)&&(n=1);++r<n;)for(var o=t[r],s=keysIn(o),c=-1,u=s.length;++c<u;){var l=s[c],f=e[l];(f===i||eq(f,je[l])&&!xe.call(e,l))&&(e[l]=o[l])}return e})),mn=baseRest((function(e){return e.push(i,customDefaultsMerge),apply(Sn,i,e)}));function get(e,t,r){var n=null==e?i:baseGet(e,t);return n===i?r:n}function hasIn(e,t){return null!=e&&hasPath(e,t,baseHasIn)}var En=createInverter((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=r}),constant(identity)),wn=createInverter((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),xe.call(e,t)?e[t].push(r):e[t]=[r]}),getIteratee),On=baseRest(baseInvoke);function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}function keysIn(e){return isArrayLike(e)?arrayLikeKeys(e,!0):baseKeysIn(e)}var An=createAssigner((function(e,t,r){baseMerge(e,t,r)})),Sn=createAssigner((function(e,t,r,n){baseMerge(e,t,r,n)})),Rn=flatRest((function(e,t){var r={};if(null==e)return r;var n=!1;t=arrayMap(t,(function(t){return t=castPath(t,e),n||(n=t.length>1),t})),copyObject(e,getAllKeysIn(e),r),n&&(r=baseClone(r,7,customOmitClone));for(var i=t.length;i--;)baseUnset(r,t[i]);return r}));var In=flatRest((function(e,t){return null==e?{}:function basePick(e,t){return basePickBy(e,t,(function(t,r){return hasIn(e,r)}))}(e,t)}));function pickBy(e,t){if(null==e)return{};var r=arrayMap(getAllKeysIn(e),(function(e){return[e]}));return t=getIteratee(t),basePickBy(e,r,(function(e,r){return t(e,r[0])}))}var Mn=createToPairs(keys),Cn=createToPairs(keysIn);function values(e){return null==e?[]:baseValues(e,keys(e))}var Tn=createCompounder((function(e,t,r){return t=t.toLowerCase(),e+(r?capitalize(t):t)}));function capitalize(e){return Dn(toString(e).toLowerCase())}function deburr(e){return(e=toString(e))&&e.replace(Ee,Mt).replace(tt,"")}var Ln=createCompounder((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),jn=createCompounder((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Pn=createCaseFirst("toLowerCase");var kn=createCompounder((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var xn=createCompounder((function(e,t,r){return e+(r?" ":"")+Dn(t)}));var Nn=createCompounder((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Dn=createCaseFirst("toUpperCase");function words(e,t,r){return e=toString(e),(t=r?i:t)===i?function hasUnicodeWord(e){return at.test(e)}(e)?function unicodeWords(e){return e.match(nt)||[]}(e):function asciiWords(e){return e.match(fe)||[]}(e):e.match(t)||[]}var Fn=baseRest((function(e,t){try{return apply(e,i,t)}catch(e){return isError(e)?e:new se(e)}})),Un=flatRest((function(e,t){return arrayEach(t,(function(t){t=toKey(t),baseAssignValue(e,t,Hr(e[t],e))})),e}));function constant(e){return function(){return e}}var Bn=createFlow(),Wn=createFlow(!0);function identity(e){return e}function iteratee(e){return baseIteratee("function"==typeof e?e:baseClone(e,1))}var zn=baseRest((function(e,t){return function(r){return baseInvoke(r,e,t)}})),Kn=baseRest((function(e,t){return function(r){return baseInvoke(e,r,t)}}));function mixin(e,t,r){var n=keys(t),i=baseFunctions(t,n);null!=r||isObject(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=baseFunctions(t,keys(t)));var a=!(isObject(r)&&"chain"in r&&!r.chain),o=isFunction(e);return arrayEach(i,(function(r){var n=t[r];e[r]=n,o&&(e.prototype[r]=function(){var t=this.__chain__;if(a||t){var r=e(this.__wrapped__);return(r.__actions__=copyArray(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,arrayPush([this.value()],arguments))})})),e}function noop(){}var Gn=createOver(arrayMap),qn=createOver(arrayEvery),Hn=createOver(arraySome);function property(e){return isKey(e)?baseProperty(toKey(e)):function basePropertyDeep(e){return function(t){return baseGet(t,e)}}(e)}var $n=createRange(),Vn=createRange(!0);function stubArray(){return[]}function stubFalse(){return!1}var Jn=createMathOperation((function(e,t){return e+t}),0),Yn=createRound("ceil"),Zn=createMathOperation((function(e,t){return e/t}),1),Xn=createRound("floor");var Qn,ei=createMathOperation((function(e,t){return e*t}),1),ti=createRound("round"),ri=createMathOperation((function(e,t){return e-t}),0);return lodash.after=function after(e,t){if("function"!=typeof t)throw new Ce(a);return e=toInteger(e),function(){if(--e<1)return t.apply(this,arguments)}},lodash.ary=ary,lodash.assign=pn,lodash.assignIn=vn,lodash.assignInWith=yn,lodash.assignWith=gn,lodash.at=bn,lodash.before=before,lodash.bind=Hr,lodash.bindAll=Un,lodash.bindKey=$r,lodash.castArray=function castArray(){if(!arguments.length)return[];var e=arguments[0];return nn(e)?e:[e]},lodash.chain=chain,lodash.chunk=function chunk(e,t,n){t=(n?isIterateeCall(e,t,n):t===i)?1:jt(toInteger(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var o=0,s=0,c=r(dt(a/t));o<a;)c[s++]=baseSlice(e,o,o+=t);return c},lodash.compact=function compact(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var a=e[t];a&&(i[n++]=a)}return i},lodash.concat=function concat(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return arrayPush(nn(n)?copyArray(n):[n],baseFlatten(t,1))},lodash.cond=function cond(e){var t=null==e?0:e.length,r=getIteratee();return e=t?arrayMap(e,(function(e){if("function"!=typeof e[1])throw new Ce(a);return[r(e[0]),e[1]]})):[],baseRest((function(r){for(var n=-1;++n<t;){var i=e[n];if(apply(i[0],this,r))return apply(i[1],this,r)}}))},lodash.conforms=function conforms(e){return function baseConforms(e){var t=keys(e);return function(r){return baseConformsTo(r,e,t)}}(baseClone(e,1))},lodash.constant=constant,lodash.countBy=Dr,lodash.create=function create(e,t){var r=er(e);return null==t?r:baseAssign(r,t)},lodash.curry=function curry(e,t,r){var n=createWrap(e,8,i,i,i,i,i,t=r?i:t);return n.placeholder=curry.placeholder,n},lodash.curryRight=function curryRight(e,t,r){var n=createWrap(e,c,i,i,i,i,i,t=r?i:t);return n.placeholder=curryRight.placeholder,n},lodash.debounce=debounce,lodash.defaults=_n,lodash.defaultsDeep=mn,lodash.defer=Vr,lodash.delay=Jr,lodash.difference=_r,lodash.differenceBy=mr,lodash.differenceWith=Er,lodash.drop=function drop(e,t,r){var n=null==e?0:e.length;return n?baseSlice(e,(t=r||t===i?1:toInteger(t))<0?0:t,n):[]},lodash.dropRight=function dropRight(e,t,r){var n=null==e?0:e.length;return n?baseSlice(e,0,(t=n-(t=r||t===i?1:toInteger(t)))<0?0:t):[]},lodash.dropRightWhile=function dropRightWhile(e,t){return e&&e.length?baseWhile(e,getIteratee(t,3),!0,!0):[]},lodash.dropWhile=function dropWhile(e,t){return e&&e.length?baseWhile(e,getIteratee(t,3),!0):[]},lodash.fill=function fill(e,t,r,n){var a=null==e?0:e.length;return a?(r&&"number"!=typeof r&&isIterateeCall(e,t,r)&&(r=0,n=a),function baseFill(e,t,r,n){var a=e.length;for((r=toInteger(r))<0&&(r=-r>a?0:a+r),(n=n===i||n>a?a:toInteger(n))<0&&(n+=a),n=r>n?0:toLength(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},lodash.filter=function filter(e,t){return(nn(e)?arrayFilter:baseFilter)(e,getIteratee(t,3))},lodash.flatMap=function flatMap(e,t){return baseFlatten(map(e,t),1)},lodash.flatMapDeep=function flatMapDeep(e,t){return baseFlatten(map(e,t),d)},lodash.flatMapDepth=function flatMapDepth(e,t,r){return r=r===i?1:toInteger(r),baseFlatten(map(e,t),r)},lodash.flatten=flatten,lodash.flattenDeep=function flattenDeep(e){return(null==e?0:e.length)?baseFlatten(e,d):[]},lodash.flattenDepth=function flattenDepth(e,t){return(null==e?0:e.length)?baseFlatten(e,t=t===i?1:toInteger(t)):[]},lodash.flip=function flip(e){return createWrap(e,512)},lodash.flow=Bn,lodash.flowRight=Wn,lodash.fromPairs=function fromPairs(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n},lodash.functions=function functions(e){return null==e?[]:baseFunctions(e,keys(e))},lodash.functionsIn=function functionsIn(e){return null==e?[]:baseFunctions(e,keysIn(e))},lodash.groupBy=Br,lodash.initial=function initial(e){return(null==e?0:e.length)?baseSlice(e,0,-1):[]},lodash.intersection=wr,lodash.intersectionBy=Or,lodash.intersectionWith=Ar,lodash.invert=En,lodash.invertBy=wn,lodash.invokeMap=Wr,lodash.iteratee=iteratee,lodash.keyBy=zr,lodash.keys=keys,lodash.keysIn=keysIn,lodash.map=map,lodash.mapKeys=function mapKeys(e,t){var r={};return t=getIteratee(t,3),baseForOwn(e,(function(e,n,i){baseAssignValue(r,t(e,n,i),e)})),r},lodash.mapValues=function mapValues(e,t){var r={};return t=getIteratee(t,3),baseForOwn(e,(function(e,n,i){baseAssignValue(r,n,t(e,n,i))})),r},lodash.matches=function matches(e){return baseMatches(baseClone(e,1))},lodash.matchesProperty=function matchesProperty(e,t){return baseMatchesProperty(e,baseClone(t,1))},lodash.memoize=memoize,lodash.merge=An,lodash.mergeWith=Sn,lodash.method=zn,lodash.methodOf=Kn,lodash.mixin=mixin,lodash.negate=negate,lodash.nthArg=function nthArg(e){return e=toInteger(e),baseRest((function(t){return baseNth(t,e)}))},lodash.omit=Rn,lodash.omitBy=function omitBy(e,t){return pickBy(e,negate(getIteratee(t)))},lodash.once=function once(e){return before(2,e)},lodash.orderBy=function orderBy(e,t,r,n){return null==e?[]:(nn(t)||(t=null==t?[]:[t]),nn(r=n?i:r)||(r=null==r?[]:[r]),baseOrderBy(e,t,r))},lodash.over=Gn,lodash.overArgs=Yr,lodash.overEvery=qn,lodash.overSome=Hn,lodash.partial=Zr,lodash.partialRight=Xr,lodash.partition=Kr,lodash.pick=In,lodash.pickBy=pickBy,lodash.property=property,lodash.propertyOf=function propertyOf(e){return function(t){return null==e?i:baseGet(e,t)}},lodash.pull=Sr,lodash.pullAll=pullAll,lodash.pullAllBy=function pullAllBy(e,t,r){return e&&e.length&&t&&t.length?basePullAll(e,t,getIteratee(r,2)):e},lodash.pullAllWith=function pullAllWith(e,t,r){return e&&e.length&&t&&t.length?basePullAll(e,t,i,r):e},lodash.pullAt=Rr,lodash.range=$n,lodash.rangeRight=Vn,lodash.rearg=Qr,lodash.reject=function reject(e,t){return(nn(e)?arrayFilter:baseFilter)(e,negate(getIteratee(t,3)))},lodash.remove=function remove(e,t){var r=[];if(!e||!e.length)return r;var n=-1,i=[],a=e.length;for(t=getIteratee(t,3);++n<a;){var o=e[n];t(o,n,e)&&(r.push(o),i.push(n))}return basePullAt(e,i),r},lodash.rest=function rest(e,t){if("function"!=typeof e)throw new Ce(a);return baseRest(e,t=t===i?t:toInteger(t))},lodash.reverse=reverse,lodash.sampleSize=function sampleSize(e,t,r){return t=(r?isIterateeCall(e,t,r):t===i)?1:toInteger(t),(nn(e)?arraySampleSize:baseSampleSize)(e,t)},lodash.set=function set(e,t,r){return null==e?e:baseSet(e,t,r)},lodash.setWith=function setWith(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:baseSet(e,t,r,n)},lodash.shuffle=function shuffle(e){return(nn(e)?arrayShuffle:baseShuffle)(e)},lodash.slice=function slice(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&isIterateeCall(e,t,r)?(t=0,r=n):(t=null==t?0:toInteger(t),r=r===i?n:toInteger(r)),baseSlice(e,t,r)):[]},lodash.sortBy=Gr,lodash.sortedUniq=function sortedUniq(e){return e&&e.length?baseSortedUniq(e):[]},lodash.sortedUniqBy=function sortedUniqBy(e,t){return e&&e.length?baseSortedUniq(e,getIteratee(t,2)):[]},lodash.split=function split(e,t,r){return r&&"number"!=typeof r&&isIterateeCall(e,t,r)&&(t=r=i),(r=r===i?y:r>>>0)?(e=toString(e))&&("string"==typeof t||null!=t&&!un(t))&&!(t=baseToString(t))&&hasUnicode(e)?castSlice(stringToArray(e),0,r):e.split(t,r):[]},lodash.spread=function spread(e,t){if("function"!=typeof e)throw new Ce(a);return t=null==t?0:jt(toInteger(t),0),baseRest((function(r){var n=r[t],i=castSlice(r,0,t);return n&&arrayPush(i,n),apply(e,this,i)}))},lodash.tail=function tail(e){var t=null==e?0:e.length;return t?baseSlice(e,1,t):[]},lodash.take=function take(e,t,r){return e&&e.length?baseSlice(e,0,(t=r||t===i?1:toInteger(t))<0?0:t):[]},lodash.takeRight=function takeRight(e,t,r){var n=null==e?0:e.length;return n?baseSlice(e,(t=n-(t=r||t===i?1:toInteger(t)))<0?0:t,n):[]},lodash.takeRightWhile=function takeRightWhile(e,t){return e&&e.length?baseWhile(e,getIteratee(t,3),!1,!0):[]},lodash.takeWhile=function takeWhile(e,t){return e&&e.length?baseWhile(e,getIteratee(t,3)):[]},lodash.tap=function tap(e,t){return t(e),e},lodash.throttle=function throttle(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new Ce(a);return isObject(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),debounce(e,t,{leading:n,maxWait:t,trailing:i})},lodash.thru=thru,lodash.toArray=toArray,lodash.toPairs=Mn,lodash.toPairsIn=Cn,lodash.toPath=function toPath(e){return nn(e)?arrayMap(e,toKey):isSymbol(e)?[e]:copyArray(br(toString(e)))},lodash.toPlainObject=toPlainObject,lodash.transform=function transform(e,t,r){var n=nn(e),i=n||on(e)||fn(e);if(t=getIteratee(t,4),null==r){var a=e&&e.constructor;r=i?n?new a:[]:isObject(e)&&isFunction(a)?er(He(e)):{}}return(i?arrayEach:baseForOwn)(e,(function(e,n,i){return t(r,e,n,i)})),r},lodash.unary=function unary(e){return ary(e,1)},lodash.union=Ir,lodash.unionBy=Mr,lodash.unionWith=Cr,lodash.uniq=function uniq(e){return e&&e.length?baseUniq(e):[]},lodash.uniqBy=function uniqBy(e,t){return e&&e.length?baseUniq(e,getIteratee(t,2)):[]},lodash.uniqWith=function uniqWith(e,t){return t="function"==typeof t?t:i,e&&e.length?baseUniq(e,i,t):[]},lodash.unset=function unset(e,t){return null==e||baseUnset(e,t)},lodash.unzip=unzip,lodash.unzipWith=unzipWith,lodash.update=function update(e,t,r){return null==e?e:baseUpdate(e,t,castFunction(r))},lodash.updateWith=function updateWith(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:baseUpdate(e,t,castFunction(r),n)},lodash.values=values,lodash.valuesIn=function valuesIn(e){return null==e?[]:baseValues(e,keysIn(e))},lodash.without=Tr,lodash.words=words,lodash.wrap=function wrap(e,t){return Zr(castFunction(t),e)},lodash.xor=Lr,lodash.xorBy=jr,lodash.xorWith=Pr,lodash.zip=kr,lodash.zipObject=function zipObject(e,t){return baseZipObject(e||[],t||[],assignValue)},lodash.zipObjectDeep=function zipObjectDeep(e,t){return baseZipObject(e||[],t||[],baseSet)},lodash.zipWith=xr,lodash.entries=Mn,lodash.entriesIn=Cn,lodash.extend=vn,lodash.extendWith=yn,mixin(lodash,lodash),lodash.add=Jn,lodash.attempt=Fn,lodash.camelCase=Tn,lodash.capitalize=capitalize,lodash.ceil=Yn,lodash.clamp=function clamp(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=(r=toNumber(r))==r?r:0),t!==i&&(t=(t=toNumber(t))==t?t:0),baseClamp(toNumber(e),t,r)},lodash.clone=function clone(e){return baseClone(e,4)},lodash.cloneDeep=function cloneDeep(e){return baseClone(e,5)},lodash.cloneDeepWith=function cloneDeepWith(e,t){return baseClone(e,5,t="function"==typeof t?t:i)},lodash.cloneWith=function cloneWith(e,t){return baseClone(e,4,t="function"==typeof t?t:i)},lodash.conformsTo=function conformsTo(e,t){return null==t||baseConformsTo(e,t,keys(t))},lodash.deburr=deburr,lodash.defaultTo=function defaultTo(e,t){return null==e||e!=e?t:e},lodash.divide=Zn,lodash.endsWith=function endsWith(e,t,r){e=toString(e),t=baseToString(t);var n=e.length,a=r=r===i?n:baseClamp(toInteger(r),0,n);return(r-=t.length)>=0&&e.slice(r,a)==t},lodash.eq=eq,lodash.escape=function escape(e){return(e=toString(e))&&Z.test(e)?e.replace(J,Ct):e},lodash.escapeRegExp=function escapeRegExp(e){return(e=toString(e))&&ae.test(e)?e.replace(ie,"\\$&"):e},lodash.every=function every(e,t,r){var n=nn(e)?arrayEvery:baseEvery;return r&&isIterateeCall(e,t,r)&&(t=i),n(e,getIteratee(t,3))},lodash.find=Fr,lodash.findIndex=findIndex,lodash.findKey=function findKey(e,t){return baseFindKey(e,getIteratee(t,3),baseForOwn)},lodash.findLast=Ur,lodash.findLastIndex=findLastIndex,lodash.findLastKey=function findLastKey(e,t){return baseFindKey(e,getIteratee(t,3),baseForOwnRight)},lodash.floor=Xn,lodash.forEach=forEach,lodash.forEachRight=forEachRight,lodash.forIn=function forIn(e,t){return null==e?e:nr(e,getIteratee(t,3),keysIn)},lodash.forInRight=function forInRight(e,t){return null==e?e:ir(e,getIteratee(t,3),keysIn)},lodash.forOwn=function forOwn(e,t){return e&&baseForOwn(e,getIteratee(t,3))},lodash.forOwnRight=function forOwnRight(e,t){return e&&baseForOwnRight(e,getIteratee(t,3))},lodash.get=get,lodash.gt=en,lodash.gte=tn,lodash.has=function has(e,t){return null!=e&&hasPath(e,t,baseHas)},lodash.hasIn=hasIn,lodash.head=head,lodash.identity=identity,lodash.includes=function includes(e,t,r,n){e=isArrayLike(e)?e:values(e),r=r&&!n?toInteger(r):0;var i=e.length;return r<0&&(r=jt(i+r,0)),isString(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&baseIndexOf(e,t,r)>-1},lodash.indexOf=function indexOf(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:toInteger(r);return i<0&&(i=jt(n+i,0)),baseIndexOf(e,t,i)},lodash.inRange=function inRange(e,t,r){return t=toFinite(t),r===i?(r=t,t=0):r=toFinite(r),function baseInRange(e,t,r){return e>=Pt(t,r)&&e<jt(t,r)}(e=toNumber(e),t,r)},lodash.invoke=On,lodash.isArguments=rn,lodash.isArray=nn,lodash.isArrayBuffer=an,lodash.isArrayLike=isArrayLike,lodash.isArrayLikeObject=isArrayLikeObject,lodash.isBoolean=function isBoolean(e){return!0===e||!1===e||isObjectLike(e)&&baseGetTag(e)==m},lodash.isBuffer=on,lodash.isDate=sn,lodash.isElement=function isElement(e){return isObjectLike(e)&&1===e.nodeType&&!isPlainObject(e)},lodash.isEmpty=function isEmpty(e){if(null==e)return!0;if(isArrayLike(e)&&(nn(e)||"string"==typeof e||"function"==typeof e.splice||on(e)||fn(e)||rn(e)))return!e.length;var t=dr(e);if(t==S||t==T)return!e.size;if(isPrototype(e))return!baseKeys(e).length;for(var r in e)if(xe.call(e,r))return!1;return!0},lodash.isEqual=function isEqual(e,t){return baseIsEqual(e,t)},lodash.isEqualWith=function isEqualWith(e,t,r){var n=(r="function"==typeof r?r:i)?r(e,t):i;return n===i?baseIsEqual(e,t,i,r):!!n},lodash.isError=isError,lodash.isFinite=function isFinite(e){return"number"==typeof e&&_t(e)},lodash.isFunction=isFunction,lodash.isInteger=isInteger,lodash.isLength=isLength,lodash.isMap=cn,lodash.isMatch=function isMatch(e,t){return e===t||baseIsMatch(e,t,getMatchData(t))},lodash.isMatchWith=function isMatchWith(e,t,r){return r="function"==typeof r?r:i,baseIsMatch(e,t,getMatchData(t),r)},lodash.isNaN=function isNaN(e){return isNumber(e)&&e!=+e},lodash.isNative=function isNative(e){if(pr(e))throw new se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return baseIsNative(e)},lodash.isNil=function isNil(e){return null==e},lodash.isNull=function isNull(e){return null===e},lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isObjectLike=isObjectLike,lodash.isPlainObject=isPlainObject,lodash.isRegExp=un,lodash.isSafeInteger=function isSafeInteger(e){return isInteger(e)&&e>=-9007199254740991&&e<=p},lodash.isSet=ln,lodash.isString=isString,lodash.isSymbol=isSymbol,lodash.isTypedArray=fn,lodash.isUndefined=function isUndefined(e){return e===i},lodash.isWeakMap=function isWeakMap(e){return isObjectLike(e)&&dr(e)==P},lodash.isWeakSet=function isWeakSet(e){return isObjectLike(e)&&"[object WeakSet]"==baseGetTag(e)},lodash.join=function join(e,t){return null==e?"":mt.call(e,t)},lodash.kebabCase=Ln,lodash.last=last,lodash.lastIndexOf=function lastIndexOf(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=n;return r!==i&&(a=(a=toInteger(r))<0?jt(n+a,0):Pt(a,n-1)),t==t?function strictLastIndexOf(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,a):baseFindIndex(e,baseIsNaN,a,!0)},lodash.lowerCase=jn,lodash.lowerFirst=Pn,lodash.lt=hn,lodash.lte=dn,lodash.max=function max(e){return e&&e.length?baseExtremum(e,identity,baseGt):i},lodash.maxBy=function maxBy(e,t){return e&&e.length?baseExtremum(e,getIteratee(t,2),baseGt):i},lodash.mean=function mean(e){return baseMean(e,identity)},lodash.meanBy=function meanBy(e,t){return baseMean(e,getIteratee(t,2))},lodash.min=function min(e){return e&&e.length?baseExtremum(e,identity,baseLt):i},lodash.minBy=function minBy(e,t){return e&&e.length?baseExtremum(e,getIteratee(t,2),baseLt):i},lodash.stubArray=stubArray,lodash.stubFalse=stubFalse,lodash.stubObject=function stubObject(){return{}},lodash.stubString=function stubString(){return""},lodash.stubTrue=function stubTrue(){return!0},lodash.multiply=ei,lodash.nth=function nth(e,t){return e&&e.length?baseNth(e,toInteger(t)):i},lodash.noConflict=function noConflict(){return vt._===this&&(vt._=Be),this},lodash.noop=noop,lodash.now=qr,lodash.pad=function pad(e,t,r){e=toString(e);var n=(t=toInteger(t))?stringSize(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return createPadding(pt(i),r)+e+createPadding(dt(i),r)},lodash.padEnd=function padEnd(e,t,r){e=toString(e);var n=(t=toInteger(t))?stringSize(e):0;return t&&n<t?e+createPadding(t-n,r):e},lodash.padStart=function padStart(e,t,r){e=toString(e);var n=(t=toInteger(t))?stringSize(e):0;return t&&n<t?createPadding(t-n,r)+e:e},lodash.parseInt=function parseInt(e,t,r){return r||null==t?t=0:t&&(t=+t),xt(toString(e).replace(oe,""),t||0)},lodash.random=function random(e,t,r){if(r&&"boolean"!=typeof r&&isIterateeCall(e,t,r)&&(t=r=i),r===i&&("boolean"==typeof t?(r=t,t=i):"boolean"==typeof e&&(r=e,e=i)),e===i&&t===i?(e=0,t=1):(e=toFinite(e),t===i?(t=e,e=0):t=toFinite(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var a=Nt();return Pt(e+a*(t-e+ft("1e-"+((a+"").length-1))),t)}return baseRandom(e,t)},lodash.reduce=function reduce(e,t,r){var n=nn(e)?arrayReduce:baseReduce,i=arguments.length<3;return n(e,getIteratee(t,4),r,i,tr)},lodash.reduceRight=function reduceRight(e,t,r){var n=nn(e)?arrayReduceRight:baseReduce,i=arguments.length<3;return n(e,getIteratee(t,4),r,i,rr)},lodash.repeat=function repeat(e,t,r){return t=(r?isIterateeCall(e,t,r):t===i)?1:toInteger(t),baseRepeat(toString(e),t)},lodash.replace=function replace(){var e=arguments,t=toString(e[0]);return e.length<3?t:t.replace(e[1],e[2])},lodash.result=function result(e,t,r){var n=-1,a=(t=castPath(t,e)).length;for(a||(a=1,e=i);++n<a;){var o=null==e?i:e[toKey(t[n])];o===i&&(n=a,o=r),e=isFunction(o)?o.call(e):o}return e},lodash.round=ti,lodash.runInContext=runInContext,lodash.sample=function sample(e){return(nn(e)?arraySample:baseSample)(e)},lodash.size=function size(e){if(null==e)return 0;if(isArrayLike(e))return isString(e)?stringSize(e):e.length;var t=dr(e);return t==S||t==T?e.size:baseKeys(e).length},lodash.snakeCase=kn,lodash.some=function some(e,t,r){var n=nn(e)?arraySome:baseSome;return r&&isIterateeCall(e,t,r)&&(t=i),n(e,getIteratee(t,3))},lodash.sortedIndex=function sortedIndex(e,t){return baseSortedIndex(e,t)},lodash.sortedIndexBy=function sortedIndexBy(e,t,r){return baseSortedIndexBy(e,t,getIteratee(r,2))},lodash.sortedIndexOf=function sortedIndexOf(e,t){var r=null==e?0:e.length;if(r){var n=baseSortedIndex(e,t);if(n<r&&eq(e[n],t))return n}return-1},lodash.sortedLastIndex=function sortedLastIndex(e,t){return baseSortedIndex(e,t,!0)},lodash.sortedLastIndexBy=function sortedLastIndexBy(e,t,r){return baseSortedIndexBy(e,t,getIteratee(r,2),!0)},lodash.sortedLastIndexOf=function sortedLastIndexOf(e,t){if(null==e?0:e.length){var r=baseSortedIndex(e,t,!0)-1;if(eq(e[r],t))return r}return-1},lodash.startCase=xn,lodash.startsWith=function startsWith(e,t,r){return e=toString(e),r=null==r?0:baseClamp(toInteger(r),0,e.length),t=baseToString(t),e.slice(r,r+t.length)==t},lodash.subtract=ri,lodash.sum=function sum(e){return e&&e.length?baseSum(e,identity):0},lodash.sumBy=function sumBy(e,t){return e&&e.length?baseSum(e,getIteratee(t,2)):0},lodash.template=function template(e,t,r){var n=lodash.templateSettings;r&&isIterateeCall(e,t,r)&&(t=i),e=toString(e),t=yn({},t,n,customDefaultsAssignIn);var a,o,s=yn({},t.imports,n.imports,customDefaultsAssignIn),c=keys(s),u=baseValues(s,c),l=0,f=t.interpolate||we,h="__p += '",d=Ie((t.escape||we).source+"|"+f.source+"|"+(f===ee?pe:we).source+"|"+(t.evaluate||we).source+"|$","g"),p="//# sourceURL="+(xe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(d,(function(t,r,n,i,s,c){return n||(n=i),h+=e.slice(l,c).replace(Oe,escapeStringChar),r&&(a=!0,h+="' +\n__e("+r+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),n&&(h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),h+="';\n";var v=xe.call(t,"variable")&&t.variable;if(v){if(he.test(v))throw new se("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(q,""):h).replace(H,"$1").replace($,"$1;"),h="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var y=Fn((function(){return Ae(c,p+"return "+h).apply(i,u)}));if(y.source=h,isError(y))throw y;return y},lodash.times=function times(e,t){if((e=toInteger(e))<1||e>p)return[];var r=y,n=Pt(e,y);t=getIteratee(t),e-=y;for(var i=baseTimes(n,t);++r<e;)t(r);return i},lodash.toFinite=toFinite,lodash.toInteger=toInteger,lodash.toLength=toLength,lodash.toLower=function toLower(e){return toString(e).toLowerCase()},lodash.toNumber=toNumber,lodash.toSafeInteger=function toSafeInteger(e){return e?baseClamp(toInteger(e),-9007199254740991,p):0===e?e:0},lodash.toString=toString,lodash.toUpper=function toUpper(e){return toString(e).toUpperCase()},lodash.trim=function trim(e,t,r){if((e=toString(e))&&(r||t===i))return baseTrim(e);if(!e||!(t=baseToString(t)))return e;var n=stringToArray(e),a=stringToArray(t);return castSlice(n,charsStartIndex(n,a),charsEndIndex(n,a)+1).join("")},lodash.trimEnd=function trimEnd(e,t,r){if((e=toString(e))&&(r||t===i))return e.slice(0,trimmedEndIndex(e)+1);if(!e||!(t=baseToString(t)))return e;var n=stringToArray(e);return castSlice(n,0,charsEndIndex(n,stringToArray(t))+1).join("")},lodash.trimStart=function trimStart(e,t,r){if((e=toString(e))&&(r||t===i))return e.replace(oe,"");if(!e||!(t=baseToString(t)))return e;var n=stringToArray(e);return castSlice(n,charsStartIndex(n,stringToArray(t))).join("")},lodash.truncate=function truncate(e,t){var r=30,n="...";if(isObject(t)){var a="separator"in t?t.separator:a;r="length"in t?toInteger(t.length):r,n="omission"in t?baseToString(t.omission):n}var o=(e=toString(e)).length;if(hasUnicode(e)){var s=stringToArray(e);o=s.length}if(r>=o)return e;var c=r-stringSize(n);if(c<1)return n;var u=s?castSlice(s,0,c).join(""):e.slice(0,c);if(a===i)return u+n;if(s&&(c+=u.length-c),un(a)){if(e.slice(c).search(a)){var l,f=u;for(a.global||(a=Ie(a.source,toString(ve.exec(a))+"g")),a.lastIndex=0;l=a.exec(f);)var h=l.index;u=u.slice(0,h===i?c:h)}}else if(e.indexOf(baseToString(a),c)!=c){var d=u.lastIndexOf(a);d>-1&&(u=u.slice(0,d))}return u+n},lodash.unescape=function unescape(e){return(e=toString(e))&&Y.test(e)?e.replace(V,Tt):e},lodash.uniqueId=function uniqueId(e){var t=++Ne;return toString(e)+t},lodash.upperCase=Nn,lodash.upperFirst=Dn,lodash.each=forEach,lodash.eachRight=forEachRight,lodash.first=head,mixin(lodash,(Qn={},baseForOwn(lodash,(function(e,t){xe.call(lodash.prototype,t)||(Qn[t]=e)})),Qn),{chain:!1}),lodash.VERSION="4.17.21",arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){lodash[e].placeholder=lodash})),arrayEach(["drop","take"],(function(e,t){LazyWrapper.prototype[e]=function(r){r=r===i?1:jt(toInteger(r),0);var n=this.__filtered__&&!t?new LazyWrapper(this):this.clone();return n.__filtered__?n.__takeCount__=Pt(r,n.__takeCount__):n.__views__.push({size:Pt(r,y),type:e+(n.__dir__<0?"Right":"")}),n},LazyWrapper.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),arrayEach(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;LazyWrapper.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:getIteratee(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),arrayEach(["head","last"],(function(e,t){var r="take"+(t?"Right":"");LazyWrapper.prototype[e]=function(){return this[r](1).value()[0]}})),arrayEach(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");LazyWrapper.prototype[e]=function(){return this.__filtered__?new LazyWrapper(this):this[r](1)}})),LazyWrapper.prototype.compact=function(){return this.filter(identity)},LazyWrapper.prototype.find=function(e){return this.filter(e).head()},LazyWrapper.prototype.findLast=function(e){return this.reverse().find(e)},LazyWrapper.prototype.invokeMap=baseRest((function(e,t){return"function"==typeof e?new LazyWrapper(this):this.map((function(r){return baseInvoke(r,e,t)}))})),LazyWrapper.prototype.reject=function(e){return this.filter(negate(getIteratee(e)))},LazyWrapper.prototype.slice=function(e,t){e=toInteger(e);var r=this;return r.__filtered__&&(e>0||t<0)?new LazyWrapper(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(r=(t=toInteger(t))<0?r.dropRight(-t):r.take(t-e)),r)},LazyWrapper.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},LazyWrapper.prototype.toArray=function(){return this.take(y)},baseForOwn(LazyWrapper.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),a=lodash[n?"take"+("last"==t?"Right":""):t],o=n||/^find/.test(t);a&&(lodash.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,c=t instanceof LazyWrapper,u=s[0],l=c||nn(t),interceptor=function(e){var t=a.apply(lodash,arrayPush([e],s));return n&&f?t[0]:t};l&&r&&"function"==typeof u&&1!=u.length&&(c=l=!1);var f=this.__chain__,h=!!this.__actions__.length,d=o&&!f,p=c&&!h;if(!o&&l){t=p?t:new LazyWrapper(this);var v=e.apply(t,s);return v.__actions__.push({func:thru,args:[interceptor],thisArg:i}),new LodashWrapper(v,f)}return d&&p?e.apply(this,s):(v=this.thru(interceptor),d?n?v.value()[0]:v.value():v)})})),arrayEach(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);lodash.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(nn(i)?i:[],e)}return this[r]((function(r){return t.apply(nn(r)?r:[],e)}))}})),baseForOwn(LazyWrapper.prototype,(function(e,t){var r=lodash[t];if(r){var n=r.name+"";xe.call(qt,n)||(qt[n]=[]),qt[n].push({name:t,func:r})}})),qt[createHybrid(i,2).name]=[{name:"wrapper",func:i}],LazyWrapper.prototype.clone=function lazyClone(){var e=new LazyWrapper(this.__wrapped__);return e.__actions__=copyArray(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=copyArray(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=copyArray(this.__views__),e},LazyWrapper.prototype.reverse=function lazyReverse(){if(this.__filtered__){var e=new LazyWrapper(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},LazyWrapper.prototype.value=function lazyValue(){var e=this.__wrapped__.value(),t=this.__dir__,r=nn(e),n=t<0,i=r?e.length:0,a=function getView(e,t,r){var n=-1,i=r.length;for(;++n<i;){var a=r[n],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=Pt(t,e+o);break;case"takeRight":e=jt(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,c=s-o,u=n?s:o-1,l=this.__iteratees__,f=l.length,h=0,d=Pt(c,this.__takeCount__);if(!r||!n&&i==c&&d==c)return baseWrapperValue(e,this.__actions__);var p=[];e:for(;c--&&h<d;){for(var v=-1,y=e[u+=t];++v<f;){var g=l[v],b=g.iteratee,_=g.type,m=b(y);if(2==_)y=m;else if(!m){if(1==_)continue e;break e}}p[h++]=y}return p},lodash.prototype.at=Nr,lodash.prototype.chain=function wrapperChain(){return chain(this)},lodash.prototype.commit=function wrapperCommit(){return new LodashWrapper(this.value(),this.__chain__)},lodash.prototype.next=function wrapperNext(){this.__values__===i&&(this.__values__=toArray(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},lodash.prototype.plant=function wrapperPlant(e){for(var t,r=this;r instanceof baseLodash;){var n=wrapperClone(r);n.__index__=0,n.__values__=i,t?a.__wrapped__=n:t=n;var a=n;r=r.__wrapped__}return a.__wrapped__=e,t},lodash.prototype.reverse=function wrapperReverse(){var e=this.__wrapped__;if(e instanceof LazyWrapper){var t=e;return this.__actions__.length&&(t=new LazyWrapper(this)),(t=t.reverse()).__actions__.push({func:thru,args:[reverse],thisArg:i}),new LodashWrapper(t,this.__chain__)}return this.thru(reverse)},lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__)},lodash.prototype.first=lodash.prototype.head,Ze&&(lodash.prototype[Ze]=function wrapperToIterator(){return this}),lodash}();vt._=Lt,(n=function(){return Lt}.call(t,r,t,e))===i||(e.exports=n)}.call(this)},8571:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createAppConfig=void 0;const n=r(2984),i=r(5250);t.createAppConfig=function createAppConfig(...e){const t={accountsDbName:"accounts",transportLibrary:{realm:n.Realm.Prod,datawalletEnabled:!0},modules:{appLaunch:{name:"appLaunch",displayName:"App Launch Module",location:"appLaunch",enabled:!0},pushNotification:{name:"pushNotification",displayName:"Push Notification Module",location:"pushNotification",enabled:!0},mailReceived:{name:"mailReceived",displayName:"Mail Received Module",location:"mailReceived",enabled:!0},onboardingChangeReceived:{name:"onboardingChangeReceived",displayName:"Onboarding Change Received Module",location:"onboardingChangeReceived",enabled:!0},messageReceived:{name:"messageReceived",displayName:"Message Received Module",location:"messageReceived",enabled:!0},relationshipChanged:{name:"relationshipChanged",displayName:"Relationship Changed Module",location:"relationshipChanged",enabled:!0},relationshipTemplateProcessed:{name:"relationshipTemplateProcessed",displayName:"Relationship Template Processed",location:"relationshipTemplateProcessed",enabled:!0},decider:{displayName:"Decider Module",name:"DeciderModule",location:"@nmshd/runtime:DeciderModule",enabled:!0},request:{displayName:"Request Module",name:"RequestModule",location:"@nmshd/runtime:RequestModule",enabled:!0},attributeListener:{enabled:!0,name:"AttributeListenerModule",displayName:"Attribute Listener",location:"@nmshd/runtime:AttributeListenerModule"},notification:{enabled:!0,name:"NotificationModule",displayName:"Notification Module",location:"@nmshd/runtime:NotificationModule"}},allowMultipleAccountsWithSameAddress:!1};return(0,i.defaultsDeep)({},...e,t)}},8245:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AppRuntime=void 0;const n=r(9351),i=r(1917),a=r(8334),o=r(8681),s=r(2984),c=r(8571),u=r(1030),l=r(8302),f=r(3494),h=r(4044),d=r(5168),p=r(4243),v=r(5),y=r(141);class AppRuntime extends o.Runtime{constructor(e,t){super(t,e.loggerFactory),this._nativeEnvironment=e,this.sessionStorage=new v.SessionStorage,this.translationProvider={translate:e=>Promise.resolve(i.Result.ok(e))},this._stringProcessor=new l.AppStringProcessor(this,this.loggerFactory)}get config(){return this.runtimeConfig}async uiBridge(){if(this._uiBridge)return this._uiBridge;if(this._uiBridgeResolver)return await this._uiBridgeResolver.promise;let resolve=()=>"";const e=new Promise((e=>resolve=e));this._uiBridgeResolver={promise:e,resolve};try{return await this._uiBridgeResolver.promise}finally{this._uiBridgeResolver=void 0}}registerUIBridge(e){return this._uiBridge?y.UserfriendlyResult.fail(u.AppRuntimeErrors.startup.uiBridgeAlreadyRegistered()):(this._uiBridge=e,this._uiBridgeResolver?.resolve(e),y.UserfriendlyResult.ok(void 0))}get multiAccountController(){return this._multiAccountController}get accountServices(){return this._accountServices}get nativeEnvironment(){return this._nativeEnvironment}get currentAccount(){return this.sessionStorage.currentSession.account}get currentSession(){return this.sessionStorage.currentSession}getSessions(){return this.sessionStorage.getSessions()}get stringProcessor(){return this._stringProcessor}async login(e,t){const r=await super.login(e,t),n=new h.AppServices(this,r.transportServices,r.consumptionServices,r.dataViewExpander);return{...r,appServices:n}}async getServices(e){const t=await this.getOrCreateSession(e.toString());return{transportServices:t.transportServices,consumptionServices:t.consumptionServices,appServices:t.appServices,dataViewExpander:t.expander}}async selectAccount(e){const t=await this.getOrCreateSession(e);return this.sessionStorage.currentSession=t,this.eventBus.publish(new f.AccountSelectedEvent(t.address,t.account.id)),await this.multiAccountController.updateLastAccessedAt(t.account.id),t}async getOrCreateSession(e){const t=this.sessionStorage.findSession(e);return t||await this.createSession(e)}async createSession(e){const t=20===e.length?e:(await this.multiAccountController.getAccountByAddress(e)).id.toString();if(this.currentSessionPromise?.accountId===t)return await this.currentSessionPromise.promise;if(this.currentSessionPromise)return await this.currentSessionPromise.promise.catch((()=>{})),await this.createSession(t);this.currentSessionPromise={promise:this._createSession(t),accountId:t};try{return await this.currentSessionPromise.promise}finally{this.currentSessionPromise=void 0}}async _createSession(e){const[t,r]=await this._multiAccountController.selectAccount(s.CoreId.from(e));if(!t.address)throw u.AppRuntimeErrors.general.addressUnavailable().logWith(this.logger);const n=await new a.ConsumptionController(this.transport,r).init(),i=await this.login(r,n);this.logger.debug(`Finished login to ${e}.`);const o={address:t.address.toString(),account:p.LocalAccountMapper.toLocalAccountDTO(t),consumptionServices:i.consumptionServices,transportServices:i.transportServices,expander:i.dataViewExpander,appServices:i.appServices,accountController:r,consumptionController:n};return this.sessionStorage.addSession(o),o}async requestAccountSelection(e="i18n://uibridge.accountSelection.title",t="i18n://uibridge.accountSelection.description"){const r=await this.accountServices.getAccounts(),n=await this.uiBridge(),i=await n.requestAccountSelection(r,e,t);return i.isError?y.UserfriendlyResult.fail(u.AppRuntimeErrors.general.noAccountAvailable(i.error)):(i.value&&await this.selectAccount(i.value.id),y.UserfriendlyResult.ok(i.value))}async selectRelationship(e){if(!e)return void(this.currentSession.selectedRelationship=void 0);const t=await this.currentSession.appServices.relationships.renderRelationship(e);if(t.isError)throw t.error;const r=t.value;this.currentSession.selectedRelationship=r,this.eventBus.publish(new f.RelationshipSelectedEvent(this.currentSession.address,r))}getHealth(){return Promise.resolve({isHealthy:!0,services:{}})}async initAccount(){this._multiAccountController=new p.MultiAccountController(this.transport,this.runtimeConfig,this.lokiConnection,this.sessionStorage),await this._multiAccountController.init(),this._accountServices=new p.AccountServices(this._multiAccountController)}static async create(e,t){if(!e.isInitialized){const t=await e.init();if(!t.isSuccess)throw u.AppRuntimeErrors.startup.bootstrapError(t.error)}const r=e.nativeEnvironment.configAccess.get("applePushEnvironment"),n=r.isError?void 0:r.value,i=e.nativeEnvironment.configAccess.get("applicationId").value,a=e.nativeEnvironment.configAccess.get("transport").value,o=t?(0,c.createAppConfig)({transportLibrary:a,applicationId:i,applePushEnvironment:n},t):(0,c.createAppConfig)({transportLibrary:a,applicationId:i,applePushEnvironment:n}),s=new AppRuntime(e.nativeEnvironment,o);return await s.init(),s.logger.trace("Runtime initialized"),s}static async createAndStart(e,t){const r=await this.create(e,t);return await r.start(),r.logger.trace("Runtime started"),r}createDatabaseConnection(){return this.logger.trace("Creating DatabaseConnection to LokiJS"),this.lokiConnection=new n.LokiJsConnection("./data",this.nativeEnvironment.databaseFactory),this.logger.trace("Finished initialization of LokiJS connection."),Promise.resolve(this.lokiConnection)}static{this.moduleRegistry={appLaunch:d.AppLaunchModule,appSync:d.AppSyncModule,pushNotification:d.PushNotificationModule,mailReceived:d.MailReceivedModule,onboardingChangeReceived:d.OnboardingChangeReceivedModule,messageReceived:d.MessageReceivedModule,relationshipChanged:d.RelationshipChangedModule,relationshipTemplateProcessed:d.RelationshipTemplateProcessedModule}}static registerModule(e,t){this.moduleRegistry[e]=t}loadModule(e){const t=AppRuntime.moduleRegistry[e.location];if(!t){const t=new Error(`Module '${this.getModuleName(e)}' could not be loaded, because it was not registered. Please register all modules before running init.`);return this.logger.error(t),Promise.reject(t)}const r=new t(this,e,this.loggerFactory.getLogger(t));return this.modules.add(r),this.logger.info(`Module '${this.getModuleName(e)}' was loaded successfully.`),Promise.resolve()}async stop(){const logError=e=>this.logger.error(e);await super.stop().catch(logError),await this.lokiConnection.close().catch(logError)}registerTranslationProvider(e){this.translationProvider=e}async translate(e,...t){return await this.translationProvider.translate(e,...t)}}t.AppRuntime=AppRuntime},4547:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AppRuntimeError=void 0;const n=r(1917);class AppRuntimeError extends n.ApplicationError{logWith(e){return e.error(e),this}}t.AppRuntimeError=AppRuntimeError},1030:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AppRuntimeErrors=void 0;const n=r(5040);class General{currentSessionUnavailable(){return new n.UserfriendlyApplicationError("error.appruntime.general.currentSessionUnavailable","The currentSession is not available. Try to execute login before this operation.")}addressUnavailable(){return new n.UserfriendlyApplicationError("error.appruntime.general.addressUnavailable","The address of the account is not available. This might be a permanent problem caused by a failed login.")}appServicesUnavailable(){return new n.UserfriendlyApplicationError("error.appruntime.general.appServicesUnavailable","The app services are not available. Try to execute login before this operation.")}noAccountAvailable(e){return new n.UserfriendlyApplicationError("error.appruntime.general.noAccountAvailable","There is no account available for this action.","It seems no eligible account is available for this action.",e)}}class Startup{bootstrapError(e){return new n.UserfriendlyApplicationError("error.runtime.startup.BootstrapError","There was an error while bootstrapping.",void 0,e)}bootstrapperNotInitialized(){return new n.UserfriendlyApplicationError("error.runtime.startup.BootstrapNotInitialized","The given bootstrapper is not initialized.")}uiBridgeAlreadyRegistered(){return new n.UserfriendlyApplicationError("error.appruntime.startup.uiBridgeAlreadyRegistered","The ui bridge was already registered for this runtime instance.")}wrongURL(){return new n.UserfriendlyApplicationError("error.appruntime.startup.WrongURL","The given URL to start the App is in a wrong format.")}wrongCode(){return new n.UserfriendlyApplicationError("error.appruntime.startup.WrongCode","The given code is in a wrong format.")}}class PushNotificationModule{subscriptionNotPossible(e,t){return new n.UserfriendlyApplicationError("error.runtime.module.PushNotificationModule.SubscriptionNotPossible",`Subscribing to the NativeEventBus was not possible. Root cause: '${e}'`,"The backbone has no push connection with this app. You might have to refresh the app manually.",t)}unsubscriptionNotPossible(e,t){return new n.UserfriendlyApplicationError("error.runtime.module.PushNotificationModule.UnsubscriptionNotPossible",`Unsubscribing from the NativeEventBus was not possible. Root cause: '${e}'`,"The backbone still might have a push connection with this app. You might receive some unwanted notifications.",t)}tokenRegistrationNotPossible(e,t){return new n.UserfriendlyApplicationError("error.runtime.module.PushNotificationModule.TokenRegistrationNotPossible",`Registering the Push Notification Token for the account was not possible. Root cause: '${e}'`,"The backbone has no push connection with this app. You might have to refresh the app manually.",t)}}class MultiAccount{wrongRealm(){return new n.UserfriendlyApplicationError("error.runtime.MultiAccount.WrongRealm","The given realm is invalid.")}}class Modules{constructor(){this.pushNotificationModule=new PushNotificationModule}}class AppRuntimeErrors{static{this.general=new General}static{this.startup=new Startup}static{this.modules=new Modules}static{this.multiAccount=new MultiAccount}}t.AppRuntimeErrors=AppRuntimeErrors},385:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8302:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AppStringProcessor=void 0;const n=r(1391),i=r(8681),a=r(2984),o=r(1030),s=r(5040),c=r(141);t.AppStringProcessor=class AppStringProcessor{constructor(e,t){this.runtime=e,this.logger=t.getLogger(this.constructor)}async processURL(e,t){const r=(e=e.trim()).substring(0,11);return r.startsWith("nmshd://qr#")||"nmshd://tr#"===r?await this.processTruncatedReference(e.substring(11),t):c.UserfriendlyResult.fail(o.AppRuntimeErrors.startup.wrongURL())}async processTruncatedReference(e,t){if(t)return await this._handleTruncatedReference(e,t);if(e.startsWith(i.Base64ForIdPrefix.File)||e.startsWith(i.Base64ForIdPrefix.RelationshipTemplate)){const t=await this.runtime.requestAccountSelection();return t.isError?(this.logger.error("Could not query account",t.error),c.UserfriendlyResult.fail(t.error)):t.value?await this._handleTruncatedReference(e,t.value):(this.logger.info("User cancelled account selection"),c.UserfriendlyResult.ok(void 0))}if(!e.startsWith(i.Base64ForIdPrefix.Token)){const e=o.AppRuntimeErrors.startup.wrongCode();return c.UserfriendlyResult.fail(e)}const r=await this.runtime.anonymousServices.tokens.loadPeerTokenByTruncatedReference({reference:e});if(r.isError)return c.UserfriendlyResult.fail(s.UserfriendlyApplicationError.fromError(r.error));const n=r.value,u=this.parseTokenContent(n.content);if(!u){const e=o.AppRuntimeErrors.startup.wrongCode();return c.UserfriendlyResult.fail(e)}if(u instanceof a.TokenContentDeviceSharedSecret){const e=await this.runtime.uiBridge();return await e.showDeviceOnboarding(i.DeviceMapper.toDeviceOnboardingInfoDTO(u.sharedSecret)),c.UserfriendlyResult.ok(void 0)}const l=await this.runtime.requestAccountSelection();if(l.isError)return c.UserfriendlyResult.fail(l.error);const f=l.value;return f?await this._handleTruncatedReference(e,f):(this.logger.info("User cancelled account selection"),c.UserfriendlyResult.ok(void 0))}async _handleTruncatedReference(e,t){const r=await this.runtime.getServices(t.id),n=await this.runtime.uiBridge(),i=await r.transportServices.account.loadItemFromTruncatedReference({reference:e});if(i.isError)return"error.runtime.validation.invalidPropertyValue"===i.error.code?c.UserfriendlyResult.fail(new s.UserfriendlyApplicationError("error.appStringProcessor.truncatedReferenceInvalid","The given code does not contain a valid truncated reference.")):c.UserfriendlyResult.fail(s.UserfriendlyApplicationError.fromError(i.error));switch(i.value.type){case"File":const e=await r.dataViewExpander.expandFileDTO(i.value.value);await n.showFile(t,e);break;case"RelationshipTemplate":break;case"Token":return c.UserfriendlyResult.fail(new s.UserfriendlyApplicationError("error.appStringProcessor.notSupportedTokenContent","The scanned code is not supported in this context"));case"DeviceOnboardingInfo":return c.UserfriendlyResult.fail(new s.UserfriendlyApplicationError("error.appStringProcessor.deviceOnboardingNotAllowed","The token contained a device onboarding info, but this is not allowed in this context."))}return c.UserfriendlyResult.ok(void 0)}parseTokenContent(e){try{return n.Serializable.fromUnknown(e)}catch(e){return void this.logger.info("Could not parse token content",e)}}}},5:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionStorage=void 0;const n=r(1030);t.SessionStorage=class SessionStorage{constructor(){this._availableSessions=[]}set currentSession(e){this._currentSession=e}get currentSession(){if(!this._currentSession)throw n.AppRuntimeErrors.general.currentSessionUnavailable();return this._currentSession}getSessions(){return this._availableSessions}findSession(e){return this._availableSessions.find((t=>t.account.address===e||t.account.id===e))}addSession(e){if(this.findSession(e.account.id))throw new Error("Session already exists");this._availableSessions.push(e)}removeSession(e){const t=this.findSession(e);t&&this._availableSessions.splice(this._availableSessions.indexOf(t),1)}}},5040:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserfriendlyApplicationError=void 0;const n=r(4547);class UserfriendlyApplicationError extends n.AppRuntimeError{constructor(e,t,r,n){super(e,t,n),this.userfriendlyMessage=r,r||(this.userfriendlyMessage=`i18n://${e}`)}static fromError(e,t){return new UserfriendlyApplicationError(e.code,e.message,t,e.data)}}t.UserfriendlyApplicationError=UserfriendlyApplicationError},141:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserfriendlyResult=void 0;const n=r(1917);class UserfriendlyResult extends n.Result{}t.UserfriendlyResult=UserfriendlyResult},3870:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildInformation=void 0;const n=r(1391),i=r(8334),a=r(2344),o=r(922),s=r(8681),c=r(2984);t.buildInformation={version:"3.2.0",build:"65",date:"2024-04-09T13:52:44+00:00",commit:"3a175d3b3aa55c1abb812effdc45026acd26236b",dependencies:{"@js-soft/docdb-access-loki":"^1.1.0","@js-soft/native-abstractions":"^1.2.2",lodash:"^4.17.21"},libraries:{serval:n.buildInformation,crypto:o.buildInformation,transport:c.buildInformation,consumption:i.buildInformation,content:a.buildInformation,runtime:s.buildInformation}}},2626:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccountSelectedEvent=void 0;const n=r(8681);class AccountSelectedEvent extends n.DataEvent{static{this.namespace="runtime.accountSelected"}constructor(e,t){super(AccountSelectedEvent.namespace,e,{localAccountId:t,address:e})}}t.AccountSelectedEvent=AccountSelectedEvent},4179:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DatawalletSynchronizedEvent=void 0;const n=r(8681);class DatawalletSynchronizedEvent extends n.DataEvent{static{this.namespace="app.datawalletSynchronized"}constructor(e){super(DatawalletSynchronizedEvent.namespace,e,void 0)}}t.DatawalletSynchronizedEvent=DatawalletSynchronizedEvent},8878:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalEventReceivedEvent=void 0;const n=r(8681);class ExternalEventReceivedEvent extends n.DataEvent{static{this.namespace="app.externalEventReceived"}constructor(e,t,r){super(ExternalEventReceivedEvent.namespace,e,{messages:t,relationships:r})}}t.ExternalEventReceivedEvent=ExternalEventReceivedEvent},8850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MailReceivedEvent=void 0;const n=r(8681);class MailReceivedEvent extends n.DataEvent{static{this.namespace="app.mailReceived"}constructor(e,t){super(MailReceivedEvent.namespace,e,t)}}t.MailReceivedEvent=MailReceivedEvent},696:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OnboardingChangeReceivedEvent=void 0;const n=r(8681);class OnboardingChangeReceivedEvent extends n.DataEvent{static{this.namespace="app.onboardingChangeReceived"}constructor(e,t,r,n){super(OnboardingChangeReceivedEvent.namespace,e,{change:t,relationship:r,identity:n})}}t.OnboardingChangeReceivedEvent=OnboardingChangeReceivedEvent},6603:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RelationshipSelectedEvent=void 0;const n=r(8681);class RelationshipSelectedEvent extends n.DataEvent{static{this.namespace="app.relationshipSelected"}constructor(e,t){super(RelationshipSelectedEvent.namespace,e,t)}}t.RelationshipSelectedEvent=RelationshipSelectedEvent},3494:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(2626),t),i(r(4179),t),i(r(8878),t),i(r(8850),t),i(r(696),t),i(r(6603),t)},3191:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AppServices=void 0;const n=r(1420);t.AppServices=class AppServices{constructor(e,t,r,i){this.relationships=new n.AppRelationshipFacade(e,t,r,i)}}},5239:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AppRelationshipFacade=void 0;const n=r(141),i=r(3769);class AppRelationshipFacade extends i.AppRuntimeFacade{async renderActiveRelationships(){return await this.getRelationships({query:{status:"Active"}})}async renderAllRelationships(){return await this.getRelationships({})}async renderRelationship(e){return await this.getRelationship({id:e})}async renderRelationshipItems(e,t){const r=await this.transportServices.messages.getMessages({query:{"recipients.relationshipId":e}});if(r.isError)return await this.parseErrorResult(r);const i=[...await this.expander.expandMessageDTOs(r.value)].sort(((e,t)=>new Date(t.date??0).valueOf()-new Date(e.date??0).valueOf())).slice(0,t);return n.UserfriendlyResult.ok(i)}async acceptRelationshipCreationChange(e,t){const r=await this.transportServices.relationships.getRelationship({id:e});if(r.isError)return await this.parseErrorResult(r);const n=r.value.changes[0].id;return await this.acceptRelationshipChange({relationshipId:e,changeId:n,content:t})}async rejectRelationshipCreationChange(e,t){const r=await this.transportServices.relationships.getRelationship({id:e});if(r.isError)return await this.parseErrorResult(r);const n=r.value.changes[0].id;return await this.rejectRelationshipChange({relationshipId:e,changeId:n,content:t})}async revokeRelationshipCreationChange(e,t){const r=await this.transportServices.relationships.getRelationship({id:e});if(r.isError)return await this.parseErrorResult(r);const n=r.value.changes[0].id;return await this.revokeRelationshipChange({relationshipId:e,changeId:n,content:t})}async getRelationships(e){const t=await this.transportServices.relationships.getRelationships(e);return await this.handleResult(t,(e=>this.expander.expandRelationshipDTOs(e)))}async getRelationship(e){const t=await this.transportServices.relationships.getRelationship(e);return await this.handleResult(t,(e=>this.expander.expandRelationshipDTO(e)))}async getRelationshipByAddress(e){const t=await this.transportServices.relationships.getRelationshipByAddress(e);return await this.handleResult(t,(e=>this.expander.expandRelationshipDTO(e)))}async createRelationship(e){const t=await this.transportServices.relationships.createRelationship(e);return await this.handleResult(t,(e=>this.expander.expandRelationshipDTO(e)))}async acceptRelationshipChange(e){const t=await this.transportServices.relationships.acceptRelationshipChange(e);return await this.handleResult(t,(e=>this.expander.expandRelationshipDTO(e)))}async rejectRelationshipChange(e){const t=await this.transportServices.relationships.rejectRelationshipChange(e);return await this.handleResult(t,(e=>this.expander.expandRelationshipDTO(e)))}async revokeRelationshipChange(e){const t=await this.transportServices.relationships.revokeRelationshipChange(e);return await this.handleResult(t,(e=>this.expander.expandRelationshipDTO(e)))}}t.AppRelationshipFacade=AppRelationshipFacade},3769:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AppRuntimeFacade=void 0;const n=r(5040),i=r(141);t.AppRuntimeFacade=class AppRuntimeFacade{constructor(e,t,r,n){this.runtime=e,this.transportServices=t,this.consumptionServices=r,this.expander=n}async parseErrorResult(e){const t=await this.runtime.translate(e.error.code);return t.isSuccess?i.UserfriendlyResult.fail(n.UserfriendlyApplicationError.fromError(e.error,t.value)):i.UserfriendlyResult.fail(n.UserfriendlyApplicationError.fromError(e.error,e.error.code))}async handleResult(e,t){if(e.isError)return await this.parseErrorResult(e);const r=await t(e.value);return i.UserfriendlyResult.ok(r)}}},1420:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(5239),t)},4044:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(3191),t),i(r(3931),t)},3931:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7806:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(8571),t),i(r(8245),t),i(r(4547),t),i(r(1030),t),i(r(385),t),i(r(5040),t),i(r(141),t),i(r(3870),t),i(r(3494),t),i(r(4044),t),i(r(5168),t),i(r(4243),t),i(r(3996),t)},4319:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AppRuntimeModule=void 0;const n=r(8681);class AppRuntimeModule extends n.RuntimeModule{constructor(){super(...arguments),this.nativeEventSubscriptionIds=[]}subscribeToNativeEvent(e,t){const r=this.runtime.nativeEnvironment.eventBus.subscribe(e,t);if(r.isError)throw this.logger.error(r.error),r.error;this.nativeEventSubscriptionIds.push(r.value)}unsubscribeFromAllEvents(){super.unsubscribeFromAllEvents(),this.nativeEventSubscriptionIds.forEach((e=>this.runtime.nativeEnvironment.eventBus.unsubscribe(e))),this.nativeEventSubscriptionIds.splice(0)}}t.AppRuntimeModule=AppRuntimeModule},5733:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AppLaunchModule=t.AppLaunchModuleError=void 0;const n=r(2241),i=r(4547),a=r(4319);class AppLaunchModuleError extends i.AppRuntimeError{}t.AppLaunchModuleError=AppLaunchModuleError;class AppLaunchModule extends a.AppRuntimeModule{async init(){}start(){this.subscribeToNativeEvent(n.UrlOpenEvent,this.handleUrlOpen.bind(this))}async handleUrlOpen(e){const t=await this.runtime.stringProcessor.processURL(e.url);if(t.isSuccess)return;const r=await this.runtime.uiBridge();await r.showError(t.error)}stop(){this.unsubscribeFromAllEvents()}}t.AppLaunchModule=AppLaunchModule},5673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MailReceivedModule=t.MailReceivedModuleError=void 0;const n=r(4547),i=r(3494),a=r(4319);class MailReceivedModuleError extends n.AppRuntimeError{}t.MailReceivedModuleError=MailReceivedModuleError;class MailReceivedModule extends a.AppRuntimeModule{async init(){}start(){this.subscribeToEvent(i.MailReceivedEvent,this.handleMailReceived.bind(this))}async handleMailReceived(e){const t=await this.runtime.getOrCreateSession(e.eventTargetAddress),r=e.data,n=r.createdBy;await this.runtime.nativeEnvironment.notificationAccess.schedule(r.name,r.createdBy.name,{callback:async()=>{await(await this.runtime.uiBridge()).showMessage(t.account,n,r)}})}stop(){this.unsubscribeFromAllEvents()}}t.MailReceivedModule=MailReceivedModule},8359:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OnboardingChangeReceivedModule=t.OnboardingChangeReceivedModuleError=void 0;const n=r(8681),i=r(4547),a=r(3494),o=r(4319);class OnboardingChangeReceivedModuleError extends i.AppRuntimeError{}t.OnboardingChangeReceivedModuleError=OnboardingChangeReceivedModuleError;class OnboardingChangeReceivedModule extends o.AppRuntimeModule{async init(){}start(){this.subscribeToEvent(a.OnboardingChangeReceivedEvent,this.handleOnboardingChangeReceived.bind(this))}async handleOnboardingChangeReceived(e){const t=e.data.change,r=e.data.identity;let i="",a="";const o=await this.runtime.getOrCreateSession(e.eventTargetAddress);switch(t.status){case n.RelationshipChangeStatus.Accepted:i="Kontaktanfrage genehmigt",a=`Du kannst nun mit ${r.name} kommunizieren`;break;case n.RelationshipChangeStatus.Pending:i="Kontaktanfrage erhalten",a=`Du hast eine Kontaktanfrage von ${r.name} erhalten`;break;case n.RelationshipChangeStatus.Rejected:i="Kontaktanfrage abgelehnt",a=`${r.name} hat ihre Kontaktanfrage abgelehnt`;break;case n.RelationshipChangeStatus.Revoked:i="Kontaktanfrage zurückgezogen",a=`${r.name} hat die Kontaktanfrage zurückgezogen`}await this.runtime.nativeEnvironment.notificationAccess.schedule(i,a,{callback:async()=>{const e=await this.runtime.uiBridge();await e.showRelationship(o.account,r)}})}stop(){this.unsubscribeFromAllEvents()}}t.OnboardingChangeReceivedModule=OnboardingChangeReceivedModule},2977:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RelationshipTemplateProcessedModule=void 0;const n=r(8681),i=r(5040),a=r(4319);class RelationshipTemplateProcessedModule extends a.AppRuntimeModule{async init(){}start(){this.subscribeToEvent(n.RelationshipTemplateProcessedEvent,this.handleUrlOpen.bind(this))}async handleUrlOpen(e){const t=await this.runtime.getServices(e.eventTargetAddress),r=await this.runtime.uiBridge(),a=await this.runtime.accountServices.getAccountByAddress(e.eventTargetAddress),o=e.data;switch(o.result){case n.RelationshipTemplateProcessedResult.ManualRequestDecisionRequired:case n.RelationshipTemplateProcessedResult.NonCompletedRequestExists:{const e=await t.consumptionServices.incomingRequests.getRequest({id:o.requestId});if(e.isError)return void this.logger.error(e.error);const n=await t.dataViewExpander.expandLocalRequestDTO(e.value);await r.showRequest(a,n);break}case n.RelationshipTemplateProcessedResult.RelationshipExists:{const e=await t.transportServices.relationships.getRelationship({id:o.relationshipId});if(e.isError)return void this.logger.error(e.error);const n=await t.dataViewExpander.expandRelationshipDTO(e.value);await r.showRelationship(a,n);break}case n.RelationshipTemplateProcessedResult.NoRequest:await r.showError(new i.UserfriendlyApplicationError("error.relationshipTemplateProcessedModule.relationshipTemplateNotSupported","The relationship template content is not supported."));break;case n.RelationshipTemplateProcessedResult.Error:await r.showError(new i.UserfriendlyApplicationError("error.relationshipTemplateProcessedModule.relationshipTemplateProcessingError","An error occurred while processing the relationship template."))}}stop(){this.unsubscribeFromAllEvents()}}t.RelationshipTemplateProcessedModule=RelationshipTemplateProcessedModule},3909:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(5733),t),i(r(5673),t),i(r(8359),t),i(r(2977),t)},2795:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AppSyncModule=void 0;const n=r(4319);class AppSyncModule extends n.AppRuntimeModule{constructor(){super(...arguments),this.started=!1}get isStarted(){return this.started}init(){}start(){this.sync().catch((e=>{this.logger.error(e)})),this.started=!0}async sync(){for(const e of this.runtime.getSessions()){const t=await e.transportServices.account.syncEverything();t.isError&&this.logger.error(t.error)}this.started&&(this.syncTimeout=setTimeout((()=>this.sync()),1e3*this.configuration.interval))}stop(){this.started=!1,clearTimeout(this.syncTimeout)}}t.AppSyncModule=AppSyncModule},547:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(2795),t)},5168:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(3909),t),i(r(4319),t),i(r(547),t),i(r(6483),t),i(r(6762),t)},4364:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.BackboneEventName=void 0,function(e){e.DatawalletModificationsCreated="DatawalletModificationsCreated",e.ExternalEventCreated="ExternalEventCreated"}(r||(t.BackboneEventName=r={}))},2804:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PushNotificationModule=void 0;const n=r(2241),i=r(1917),a=r(1030),o=r(3494),s=r(4319),c=r(4364);class PushNotificationModule extends s.AppRuntimeModule{async init(){}start(){this.subscribeToNativeEvent(n.RemoteNotificationEvent,this.handleRemoteNotification.bind(this)),this.subscribeToNativeEvent(n.RemoteNotificationRegistrationEvent,this.handleTokenRegistration.bind(this)),this.subscribeToEvent(o.AccountSelectedEvent,this.handleAccountSelected.bind(this))}async handleRemoteNotification(e){this.logger.trace("PushNotificationModule.handleRemoteNotification",e);const t=e.notification.content;try{const e=await this.runtime.getServices(t.accRef);switch(t.eventName){case c.BackboneEventName.DatawalletModificationsCreated:const r=await e.transportServices.account.syncDatawallet();if(r.isError)return void this.logger.error(r);this.runtime.eventBus.publish(new o.DatawalletSynchronizedEvent(t.accRef));break;case c.BackboneEventName.ExternalEventCreated:const n=await e.transportServices.account.syncEverything();if(n.isError)return void this.logger.error(n);this.runtime.eventBus.publish(new o.ExternalEventReceivedEvent(t.accRef,n.value.messages,n.value.relationships))}}catch(e){this.logger.error(e)}}async handleTokenRegistration(e){try{this.logger.trace("PushNotificationModule.handleTokenRegistration",e);for(const t of this.runtime.getSessions())await this.registerPushTokenForLocalAccount(t.account.address,e.token)}catch(e){this.logger.error(e)}}async handleAccountSelected(e){this.logger.trace("PushNotificationModule.handleAccountSelected",e);const t=this.getNotificationTokenFromConfig();t.isError?this.logger.error(t.error):await this.registerPushTokenForLocalAccount(e.data.address,t.value)}async registerPushTokenForLocalAccount(e,t){if(!t)throw a.AppRuntimeErrors.modules.pushNotificationModule.tokenRegistrationNotPossible("The registered token was empty. This might be the case if you did not allow push notifications.").logWith(this.logger);const r=await this.runtime.getServices(e),n=await r.transportServices.account.getDeviceInfo();if(n.isError)throw a.AppRuntimeErrors.modules.pushNotificationModule.tokenRegistrationNotPossible("No device for this account found",n.error).logWith(this.logger);const i=this.runtime.nativeEnvironment.deviceInfoAccess.deviceInfo.pushService,o=this.runtime.config.applicationId,s=t,c=this.runtime.config.applePushEnvironment,u=await r.transportServices.account.registerPushNotificationToken({platform:i,handle:s,appId:o,environment:c});if(u.isError)throw a.AppRuntimeErrors.modules.pushNotificationModule.tokenRegistrationNotPossible(u.error.message,u.error).logWith(this.logger);this.logger.info(`PushNotificationModule.registerPushTokenForLocalAccount: Token ${s} registered for account ${e} on platform ${i}${c?` (${c})`:""} and appId ${o}`)}getNotificationTokenFromConfig(){const e=this.runtime.nativeEnvironment.configAccess.get("pushToken");return e.isError&&i.Result.fail(e.error),i.Result.ok(e.value)}stop(){this.unsubscribeFromAllEvents()}}t.PushNotificationModule=PushNotificationModule},6483:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(4364),t),i(r(2804),t)},4314:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageReceivedModule=t.MessageReceivedModuleError=void 0;const n=r(8681),i=r(4547),a=r(3494),o=r(4319);class MessageReceivedModuleError extends i.AppRuntimeError{}t.MessageReceivedModuleError=MessageReceivedModuleError;class MessageReceivedModule extends o.AppRuntimeModule{async init(){}start(){this.subscribeToEvent(n.MessageReceivedEvent,this.handleMessageReceived.bind(this))}async handleMessageReceived(e){const t=await this.runtime.getServices(e.eventTargetAddress),r=await t.dataViewExpander.expandMessageDTO(e.data);if("MailDVO"===r.type){const t=r;this.runtime.eventBus.publish(new a.MailReceivedEvent(e.eventTargetAddress,t))}}stop(){this.unsubscribeFromAllEvents()}}t.MessageReceivedModule=MessageReceivedModule},1288:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RelationshipChangedModule=t.RelationshipChangedModuleError=void 0;const n=r(8681),i=r(4547),a=r(3494),o=r(4319);class RelationshipChangedModuleError extends i.AppRuntimeError{}t.RelationshipChangedModuleError=RelationshipChangedModuleError;class RelationshipChangedModule extends o.AppRuntimeModule{async init(){}start(){this.subscribeToEvent(n.RelationshipChangedEvent,this.handleRelationshipChanged.bind(this))}async handleRelationshipChanged(e){const t=e.data;if(1!==t.changes.length)return;const r=t.changes[0];if(!r.response&&r.request.createdBy===e.eventTargetAddress)return;if(r.response&&r.response.createdBy===e.eventTargetAddress)return;const n=await this.runtime.getServices(e.eventTargetAddress),i=await n.dataViewExpander.expandRelationshipDTO(t);this.runtime.eventBus.publish(new a.OnboardingChangeReceivedEvent(e.eventTargetAddress,r,t,i))}stop(){this.unsubscribeFromAllEvents()}}t.RelationshipChangedModule=RelationshipChangedModule},6762:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(4314),t),i(r(1288),t)},8952:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccountServices=void 0;const n=r(8681),i=r(2984),a=r(1030),o=r(8185);t.AccountServices=class AccountServices{constructor(e){this.multiAccountController=e}async createAccount(e,t){if(e!==i.Realm.Dev&&e!==i.Realm.Prod&&e!==i.Realm.Stage)throw a.AppRuntimeErrors.multiAccount.wrongRealm();const[r]=await this.multiAccountController.createAccount(e,t);return o.LocalAccountMapper.toLocalAccountDTO(r)}async onboardAccount(e,t){const r=n.DeviceMapper.toDeviceSharedSecret(e),[i]=await this.multiAccountController.onboardDevice(r,t);return o.LocalAccountMapper.toLocalAccountDTO(i)}async getAccounts(){return(await this.multiAccountController.getAccounts()).map((e=>o.LocalAccountMapper.toLocalAccountDTO(e)))}async getAccount(e){const t=await this.multiAccountController.getAccount(i.CoreId.from(e));return o.LocalAccountMapper.toLocalAccountDTO(t)}async deleteAccount(e){await this.multiAccountController.deleteAccount(i.CoreId.from(e))}async getAccountByAddress(e){const t=await this.multiAccountController.getAccountByAddress(e);return o.LocalAccountMapper.toLocalAccountDTO(t)}async clearAccounts(){await this.multiAccountController.clearAccounts()}async renameAccount(e,t){await this.multiAccountController.renameLocalAccount(i.CoreId.from(e),t)}}},1643:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiAccountController=void 0;const n=r(2984),i=r(7292);class MultiAccountController{get transport(){return this._transport}get path(){return this._path}constructor(e,t,r,i){this.config=t,this.databaseConnection=r,this.sessionStorage=i,this._dbClosed=!1,this._openAccounts={},this._transport=e,this._log=n.TransportLoggerFactory.getLogger(MultiAccountController)}async init(){return this._log.trace("opening accounts DB"),this._db=await this.transport.createDatabase(this.config.accountsDbName),this._log.trace("accounts DB opened."),this._dbClosed=!1,this._localAccounts=await this._db.getCollection("LocalAccounts"),this}async close(){await this.closeAccounts(),this._db&&!this._dbClosed&&(this._log.trace(`Closing LokiDB for path ${this.path}`),await this._db.close(),this._dbClosed=!0)}async getAccount(e){const t=await this._localAccounts.read(e.toString());if(!t)throw n.CoreErrors.general.recordNotFound(i.LocalAccount,e.toString()).logWith(this._log);return i.LocalAccount.from(t)}async getAccountByAddress(e){const t=await this._localAccounts.findOne({address:e});if(!t)throw n.CoreErrors.general.recordNotFound(i.LocalAccount,e).logWith(this._log);return i.LocalAccount.from(t)}async getAccounts(){return(await this._localAccounts.list()).map((e=>i.LocalAccount.from(e)))}async selectAccount(e){this._log.trace(`Selecting LocalAccount with id ${e}...`);const t=await this._localAccounts.read(e.toString());if(!t)throw n.CoreErrors.general.recordNotFound(i.LocalAccount,e.toString()).logWith(this._log);let r=i.LocalAccount.from(t);if(this._openAccounts[r.id.toString()])return[r,this._openAccounts[r.id.toString()]];this._log.trace(`Opening DB for account ${r.id}...`);const a=await this.transport.createDatabase(`acc-${r.id.toString()}`);this._log.trace(`DB for account ${e} opened.`),this._log.trace(`Initializing AccountController for local account ${e}...`);const o=new n.AccountController(this.transport,a,this.transport.config);return await o.init(),this._log.trace(`AccountController for local account ${e} initialized.`),this._openAccounts[r.id.toString()]=o,r.address||(r=await this.updateLocalAccountAddress(r.id,o.identity.address)),[r,o]}async deleteAccount(e){const[t,r]=await this.selectAccount(e);await r.unregisterPushNotificationToken(),await r.activeDevice.markAsOffboarded(),await r.close(),delete this._openAccounts[t.id.toString()],await this.databaseConnection.deleteDatabase(`acc-${e.toString()}`),await this._localAccounts.delete({id:e.toString()}),this.sessionStorage.removeSession(e.toString())}async clearAccounts(){await this._localAccounts.delete({})}async closeAccounts(){for(const e of Object.values(this._openAccounts))await(e?.close())}async onboardDevice(e,t){if((await this._localAccounts.find({address:e.identity.address.toString()})).length>0&&!this.config.allowMultipleAccountsWithSameAddress)throw new n.CoreError("error.app-runtime.onboardedAccountAlreadyExists",`An account with the address '${e.identity.address.toString()}' already exists in this app-runtime instance.`).logWith(this._log);this._log.trace(`Onboarding device ${e.id} for identity ${e.identity.address}...`);const r=await n.CoreId.generate(),a=i.LocalAccount.from({id:r,address:e.identity.address,directory:".",realm:e.identity.realm,name:t??e.name??e.identity.address.toString(),order:-1});await this._localAccounts.create(a),this._log.trace("Local account created."),this._log.trace(`Opening DB for account ${r}...`);const o=await this.transport.createDatabase(`acc-${r.toString()}`);this._log.trace(`DB for account ${r} opened.`),this._log.trace(`Initializing AccountController for local account ${r}...`);const s=new n.AccountController(this.transport,o,this.transport.config);await s.init(e),this._log.trace(`AccountController for local account ${r} initialized.`),this._openAccounts[r.toString()]=s;return[await this.updateLocalAccountAddress(a.id,s.identity.address),s]}async createAccount(e,t){this._log.trace(`Creating account for realm ${e}.`);const r=await n.CoreId.generate();let a=i.LocalAccount.from({id:r,directory:".",realm:e,name:t,order:-1});await this._localAccounts.create(a),this._log.trace("Local account created."),this._log.trace(`Opening DB for account ${r}...`);const o=await this.transport.createDatabase(`acc-${r.toString()}`);this._log.trace(`DB for account ${r} opened.`),this._log.trace(`Initializing AccountController for local account ${r}...`);const s=new n.AccountController(this.transport,o,this.transport.config);return await s.init(),this._log.trace(`AccountController for local account ${r} initialized.`),this._openAccounts[r.toString()]=s,a=await this.updateLocalAccountAddress(a.id,s.identity.address),[a,s]}async updateLocalAccountAddress(e,t){const r=await this._localAccounts.read(e.toString());if(!r)throw n.CoreErrors.general.recordNotFound(i.LocalAccount,e.toString()).logWith(this._log);const a=i.LocalAccount.from(r);return a.address=t,await this._localAccounts.update(r,a),a}async renameLocalAccount(e,t){const r=await this._localAccounts.read(e.toString());if(!r)throw n.CoreErrors.general.recordNotFound(i.LocalAccount,e.toString()).logWith(this._log);const a=i.LocalAccount.from(r);a.name=t,await this._localAccounts.update(r,a)}async updateLastAccessedAt(e){const t=await this._localAccounts.read(e);if(!t)throw n.CoreErrors.general.recordNotFound(i.LocalAccount,e).logWith(this._log);const r=i.LocalAccount.from(t);r.lastAccessedAt=n.CoreDate.utc(),await this._localAccounts.update(t,r)}}t.MultiAccountController=MultiAccountController},7292:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,r,o):i(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.LocalAccount=void 0;const a=r(1391),o=r(2984);let s=class LocalAccount extends o.CoreSerializable{static from(e){return this.fromAny(e)}};t.LocalAccount=s,n([(0,a.validate)(),(0,a.serialize)(),i("design:type",o.CoreId)],s.prototype,"id",void 0),n([(0,a.validate)({nullable:!0}),(0,a.serialize)(),i("design:type",o.CoreAddress)],s.prototype,"address",void 0),n([(0,a.validate)(),(0,a.serialize)(),i("design:type",String)],s.prototype,"name",void 0),n([(0,a.validate)(),(0,a.serialize)(),i("design:type",String)],s.prototype,"realm",void 0),n([(0,a.validate)(),(0,a.serialize)(),i("design:type",String)],s.prototype,"directory",void 0),n([(0,a.validate)(),(0,a.serialize)(),i("design:type",Number)],s.prototype,"order",void 0),n([(0,a.validate)({nullable:!0}),(0,a.serialize)(),i("design:type",o.CoreDate)],s.prototype,"lastAccessedAt",void 0),t.LocalAccount=s=n([(0,a.type)("LocalAccount")],s)},5103:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalAccountMapper=void 0;t.LocalAccountMapper=class LocalAccountMapper{static toLocalAccountDTO(e){return{id:e.id.toString(),address:e.address?.toString(),name:e.name,realm:e.realm,directory:e.directory.toString(),order:e.order,lastAccessedAt:e.lastAccessedAt?.toString()}}}},9106:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4243:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(8952),t),i(r(7292),t),i(r(5103),t),i(r(8185),t),i(r(9106),t),i(r(1643),t)},3996:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8334:e=>{"use strict";e.exports=NMSHDConsumption},2344:e=>{"use strict";e.exports=NMSHDContent},922:e=>{"use strict";e.exports=NMSHDCrypto},8681:e=>{"use strict";e.exports=NMSHDRuntime},2984:e=>{"use strict";e.exports=NMSHDTransport},1391:e=>{"use strict";e.exports=TSServal},5514:e=>{"use strict";e.exports=loki}},t={};function __webpack_require__(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,__webpack_require__),i.loaded=!0,i.exports}__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r=__webpack_require__(7806);NMSHDAppRuntime=r})();
3
- //# sourceMappingURL=nmshd.app-runtime.min.js.map
package/ui5.yaml DELETED
@@ -1,9 +0,0 @@
1
- ---
2
- specVersion: "2.0"
3
- type: module
4
- resources:
5
- configuration:
6
- paths:
7
- /resources/nmshd.app-runtime/: ./lib-web/
8
- metadata:
9
- name: nmshd.app-runtime