Your IP : 18.119.142.107


Current Path : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/ui/vue3/vuex/dist/
Upload File :
Current File : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/ui/vue3/vuex/dist/vuex.bundle.js.map

{"version":3,"sources":["../src/wrap/start.js","../src/builder/database/indexeddb.js","../src/builder/database/localstorage.js","../src/builder/database/jnsharedstorage.js","../src/builder/model.js","../src/builder/builder.js","../src/vuex.js","../src/wrap/end.js"],"names":["BuilderDatabaseIndexedDB","constructor","config","siteId","userId","storage","name","code","window","md5","db","Dexie","version","stores","data","get","Promise","resolve","reject","where","equals","first","then","value","error","set","put","clear","delete","BuilderDatabaseLocalStorage","enabled","Type","isUndefined","localStorage","setItem","getItem","removeItem","e","result","isString","prepareValueAfterGet","JSON","parse","stringify","prepareValueBeforeSet","Array","map","element","Date","isObjectLike","index","hasOwnProperty","startsWith","substring","toISOString","BuilderDatabaseJnSharedStorage","isJnContext","ApplicationStorage","console","Application","sharedStorage","env","BuilderModel","create","getName","getState","getElementState","params","getStateSaveException","undefined","getGetters","getActions","getMutations","getNestedModules","validate","fields","options","setVariables","variables","logger","store","getVariable","defaultValue","nameParts","toString","split","length","Object","assign","i","getNamespace","namespace","setNamespace","databaseConfig","useDatabase","active","updateDriver","type","isInteger","timeout","BuilderDatabaseType","indexedDb","jnSharedStorage","useNamespace","BitrixVue","developerMode","warn","getStore","getModule","state","module","getNestedModule","nestedModule","instance","namespaced","getters","actions","mutations","getModuleWithDefaultState","getSaveTimeout","getLoadTimeout","getLoadedState","saveState","isSaveAvailable","lastSaveState","saveStateTimeout","setTimeout","lastState","isFunction","cloneState","clearState","commit","clearDatabase","isSaveNeeded","payload","checkFunction","filter","field","setStore","Store","prepareNestedModules","nestedModules","entries","preparedNestedModules","forEach","moduleName","convertToArray","object","push","exceptions","concat","param","args","log","info","clearTimeout","cacheTimeout","loadTimeout","cache","currentState","newState","key","modules","vuexBuilderModelClearState","freeze","Builder","init","Vuex","models","builded","addModel","model","addDynamicModel","hasModule","find","stored","promise","registerModule","removeDynamicModel","unregisterModule","setDatabaseConfig","clearModelState","callback","results","all","build","promises","createStore","builder","syncBuild","getDevtoolsGlobalHook","getTarget","__VUE_DEVTOOLS_GLOBAL_HOOK__","navigator","global","HOOK_SETUP","setupDevtoolsPlugin","pluginDescriptor","setupFn","hook","emit","target","list","__VUE_DEVTOOLS_PLUGINS__","storeKey","useStore","inject","f","deepCopy","obj","hit","c","original","copy","isArray","keys","forEachValue","fn","isObject","isPromise","val","assert","condition","msg","Error","partial","arg","genericSubscribe","subs","indexOf","prepend","unshift","splice","resetStore","hot","_actions","_mutations","_wrappedGetters","_modulesNamespaceMap","installModule","_modules","root","resetStoreState","oldState","_state","_makeLocalGettersCache","wrappedGetters","computedObj","defineProperty","enumerable","reactive","strict","enableStrictMode","_withCommit","rootState","path","isRoot","join","parentState","getNestedState","slice","local","context","makeLocalContext","forEachMutation","mutation","namespacedType","registerMutation","forEachAction","action","handler","registerAction","forEachGetter","getter","registerGetter","forEachChild","child","noNamespace","dispatch","_type","_payload","_options","unifyObjectStyle","defineProperties","makeLocalGetters","gettersProxy","splitPos","localType","entry","wrappedMutationHandler","call","wrappedActionHandler","res","rootGetters","_devtoolHook","catch","err","rawGetter","wrappedGetter","watch","_committing","deep","flush","reduce","LABEL_VUEX_BINDINGS","MUTATIONS_LAYER_ID","ACTIONS_LAYER_ID","INSPECTOR_ID","actionId","addDevtools","app","id","label","homepage","logo","packageName","componentStateTypes","api","addTimelineLayer","color","COLOR_LIME_500","addInspector","icon","treeFilterPlaceholder","on","getInspectorTree","inspectorId","nodes","flattenStoreForInspectorTree","rootNodes","formatStoreForInspectorTree","getInspectorState","modulePath","nodeId","formatStoreForInspectorState","getStoreModule","editInspectorState","Boolean","subscribe","notifyComponentUpdate","sendInspectorTree","sendInspectorState","addTimelineEvent","layerId","event","time","now","title","subscribeAction","before","_id","_time","groupId","subtitle","after","duration","_custom","display","tooltip","COLOR_DARK","COLOR_WHITE","TAG_NAMESPACED","textColor","backgroundColor","extractNameFromPath","tags","children","_children","includes","endsWith","gettersKeys","storeState","editable","tree","transformPathsToObjectTree","canThrow","leafKey","pop","p","abstract","moduleMap","names","n","cb","Module","rawModule","runtime","_rawModule","rawState","prototypeAccessors$1","configurable","prototype","addChild","removeChild","getChild","hasChild","update","ModuleCollection","rawRootModule","register","update$1","this$1$1","assertRawModule","newModule","parent","rawChildModule","unregister","isRegistered","targetModule","functionAssert","expected","objectAssert","assertTypes","assertOptions","makeAssertionMessage","buf","plugins","devtools","_actionSubscribers","_subscribers","_devtools","ref","boundDispatch","boundCommit","plugin","prototypeAccessors","install","injectKey","provide","globalProperties","$store","useDevtools","v","commitIterator","sub","silent","watch$1","replaceState","preserveState","hotUpdate","newOptions","committing","mapState","normalizeNamespace","states","isValidMap","normalizeMap","mappedState","getModuleByNamespace","vuex","mapMutations","mappedMutation","len","arguments","apply","mapGetters","mappedGetter","mapActions","mappedAction","createNamespacedHelpers","bind","charAt","helper","createLogger","collapsed","stateBefore","stateAfter","transformer","mutationTransformer","mut","actionFilter","actionTransformer","act","logMutations","logActions","prevState","nextState","formattedTime","getFormattedTime","formattedMutation","message","startMessage","endMessage","formattedAction","groupCollapsed","group","groupEnd","pad","getHours","getMinutes","getSeconds","getMilliseconds","repeat","str","times","num","maxLength"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;CChBA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAKO,MAAMA,wBAAwB,CACrC;GACCC,WAAW,CAACC,MAAM,GAAG,EAAE,EACvB;KACC,IAAI,CAACC,MAAM,GAAGD,MAAM,CAACC,MAAM,IAAI,SAAS;KACxC,IAAI,CAACC,MAAM,GAAGF,MAAM,CAACE,MAAM,IAAI,CAAC;KAChC,IAAI,CAACC,OAAO,GAAGH,MAAM,CAACG,OAAO,IAAI,SAAS;KAC1C,IAAI,CAACC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C;CACzC;CAEA,SAASN,GAAG,CAAEQ,GAAG,EAAEC,SAAS,EAAE;GAC5B,OAAOJ,MAAM,CAAC,GAAG,EAAEI,SAAS,GAAGD,GAAG,CAAC3Z,QAAQ,EAAE,CAACE,MAAM,CAAC,GAAGyZ,GAAG;CAC7D;AAEA,CACA;;AAEA,OAAMne,OAAO,GAAG,OAAO;;;;;;;;;;;;;;;;;;;;;ACp9CvB","file":"vuex.bundle.js.map","sourcesContent":[null,"/**\n * Bitrix Vuex wrapper\n * IndexedDB driver for Vuex Builder\n *\n * @package bitrix\n * @subpackage ui\n * @copyright 2001-2022 Bitrix\n */\n\nimport {md5} from \"main.md5\";\nimport {Dexie} from \"ui.dexie\";\n\nexport class BuilderDatabaseIndexedDB\n{\n\tconstructor(config = {}): void\n\t{\n\t\tthis.siteId = config.siteId || 'default';\n\t\tthis.userId = config.userId || 0;\n\t\tthis.storage = config.storage || 'default';\n\t\tthis.name = config.name || '';\n\n\t\tthis.code = (window.md5 || md5)(\n\t\t\tthis.siteId+'/'+\n\t\t\tthis.userId+'/'+\n\t\t\tthis.storage+'/'+\n\t\t\tthis.name\n\t\t);\n\n\t\tthis.db = new Dexie('bx-vuex-model');\n\n\t\tthis.db.version(1).stores({\n\t\t\tdata: \"code, value\",\n\t\t});\n\t}\n\n\tget(): Promise<any>\n\t{\n\t\treturn new Promise((resolve, reject) =>\n\t\t{\n\t\t\tthis.db.data.where('code').equals(this.code).first().then(data => {\n\t\t\t\tresolve(data? data.value: null);\n\t\t\t}, error => {\n\t\t\t\treject(error);\n\t\t\t});\n\t\t});\n\t}\n\n\tset(value): Promise<boolean>\n\t{\n\t\treturn new Promise((resolve, reject) =>\n\t\t{\n\t\t\tthis.db.data.put({code: this.code, value}).then(() => {\n\t\t\t\tresolve(true);\n\t\t\t}, error => {\n\t\t\t\treject(error);\n\t\t\t});\n\t\t});\n\t}\n\n\tclear(): Promise<boolean>\n\t{\n\t\treturn new Promise((resolve, reject) =>\n\t\t{\n\t\t\tthis.db.data.delete(this.code).then(() => {\n\t\t\t\tresolve(true);\n\t\t\t}, error => {\n\t\t\t\treject(error);\n\t\t\t});\n\t\t});\n\t}\n}","/**\n * Bitrix Vuex wrapper\n * LocalStorage driver for Vuex Builder\n *\n * @package bitrix\n * @subpackage ui\n * @copyright 2001-2022 Bitrix\n */\n\nimport {md5} from \"main.md5\";\nimport {Type} from \"main.core\";\n\nexport class BuilderDatabaseLocalStorage\n{\n\tconstructor(config = {}): void\n\t{\n\t\tthis.siteId = config.siteId || 'default';\n\t\tthis.userId = config.userId || 0;\n\t\tthis.storage = config.storage || 'default';\n\t\tthis.name = config.name || '';\n\n\t\tthis.enabled = false;\n\n\t\tif (!Type.isUndefined(window.localStorage))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\twindow.localStorage.setItem('__bx_test_ls_feature__', 'ok');\n\t\t\t\tif (window.localStorage.getItem('__bx_test_ls_feature__') === 'ok')\n\t\t\t\t{\n\t\t\t\t\twindow.localStorage.removeItem('__bx_test_ls_feature__');\n\t\t\t\t\tthis.enabled = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(e)\n\t\t\t{\n\t\t\t}\n\t\t}\n\n\t\tthis.code = 'bx-vuex-'+(window.md5 || md5)(\n\t\t\tthis.siteId+'/'+\n\t\t\tthis.userId+'/'+\n\t\t\tthis.storage+'/'+\n\t\t\tthis.name\n\t\t);\n\t}\n\n\tget(): Promise<any>\n\t{\n\t\treturn new Promise((resolve, reject) =>\n\t\t{\n\t\t\tif (!this.enabled)\n\t\t\t{\n\t\t\t\tresolve(null);\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tconst result = window.localStorage.getItem(this.code);\n\t\t\tif (!Type.isString(result))\n\t\t\t{\n\t\t\t\tresolve(null);\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tresolve(\n\t\t\t\t\tthis.prepareValueAfterGet(\n\t\t\t\t\t\tJSON.parse(result)\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\t\t\tcatch(error)\n\t\t\t{\n\t\t\t\treject(error);\n\t\t\t}\n\t\t});\n\t}\n\n\tset(value): Promise<boolean>\n\t{\n\t\treturn new Promise((resolve) =>\n\t\t{\n\t\t\tif (this.enabled)\n\t\t\t{\n\t\t\t\twindow.localStorage.setItem(this.code, JSON.stringify(this.prepareValueBeforeSet(value)));\n\t\t\t}\n\t\t\tresolve(true);\n\t\t});\n\t}\n\n\tclear(): Promise<boolean>\n\t{\n\t\treturn new Promise((resolve) =>\n\t\t{\n\t\t\tif (this.enabled)\n\t\t\t{\n\t\t\t\twindow.localStorage.removeItem(this.code);\n\t\t\t}\n\t\t\tresolve(true);\n\t\t});\n\t}\n\n\t/**\n\t * @private\n\t */\n\tprepareValueAfterGet(value): any\n\t{\n\t\tif (value instanceof Array)\n\t\t{\n\t\t\tvalue = value.map(element => this.prepareValueAfterGet(element));\n\t\t}\n\t\telse if (value instanceof Date)\n\t\t{\n\t\t}\n\t\telse if (Type.isObjectLike(value))\n\t\t{\n\t\t\tfor (const index in value)\n\t\t\t{\n\t\t\t\tif (value.hasOwnProperty(index))\n\t\t\t\t{\n\t\t\t\t\tvalue[index] = this.prepareValueAfterGet(value[index]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (Type.isString(value))\n\t\t{\n\t\t\tif (value.startsWith('#DT#'))\n\t\t\t{\n\t\t\t\tvalue = new Date(value.substring(4));\n\t\t\t}\n\t\t}\n\n\t\treturn value;\n\t}\n\n\t/**\n\t * @private\n\t */\n\tprepareValueBeforeSet(value): any\n\t{\n\t\tif (value instanceof Array)\n\t\t{\n\t\t\tvalue = value.map(element => this.prepareValueBeforeSet(element));\n\t\t}\n\t\telse if (value instanceof Date)\n\t\t{\n\t\t\tvalue = '#DT#'+value.toISOString();\n\t\t}\n\t\telse if (Type.isObjectLike(value))\n\t\t{\n\t\t\tfor (const index in value)\n\t\t\t{\n\t\t\t\tif (value.hasOwnProperty(index))\n\t\t\t\t{\n\t\t\t\t\tvalue[index] = this.prepareValueBeforeSet(value[index]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn value;\n\t}\n}","/**\n * Bitrix Vuex wrapper\n * BitrixMobile ApplicationStorage driver for Vuex Builder\n *\n * @package bitrix\n * @subpackage ui\n * @copyright 2001-2022 Bitrix\n */\n\nimport {md5} from \"main.md5\";\nimport {Type} from \"main.core\";\n\nexport class BuilderDatabaseJnSharedStorage\n{\n\tconstructor(config = {}): void\n\t{\n\t\tthis.siteId = config.siteId || 'default';\n\t\tthis.userId = config.userId || 0;\n\t\tthis.storage = config.storage || 'default';\n\t\tthis.name = config.name || '';\n\n\t\tthis.code = (window.md5 || md5)(\n\t\t\tthis.siteId+'/'+\n\t\t\tthis.userId+'/'+\n\t\t\tthis.storage+'/'+\n\t\t\tthis.name\n\t\t);\n\n\t\tif (!this.isJnContext() && Type.isUndefined(ApplicationStorage))\n\t\t{\n\t\t\tconsole.error('ApplicationStorage is not defined, load \"webcomponent/storage\" extension.')\n\t\t}\n\t}\n\n\tget(): Promise<object>\n\t{\n\t\treturn new Promise((resolve) =>\n\t\t{\n\t\t\tif (this.isJnContext())\n\t\t\t{\n\t\t\t\tconst result = Application.sharedStorage.get(this.code);\n\t\t\t\tresolve(result? result: null);\n\t\t\t}\n\t\t\telse if (!Type.isUndefined(ApplicationStorage))\n\t\t\t{\n\t\t\t\tApplicationStorage.get(this.code, null)\n\t\t\t\t\t.then(data => resolve(this.prepareValueAfterGet(JSON.parse(data))))\n\t\t\t\t;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tresolve(null);\n\t\t\t}\n\t\t});\n\t}\n\n\tset(value): Promise<void>\n\t{\n\t\treturn new Promise((resolve) =>\n\t\t{\n\t\t\tif (this.isJnContext())\n\t\t\t{\n\t\t\t\tApplication.sharedStorage().set(\n\t\t\t\t\tthis.code,\n\t\t\t\t\tJSON.stringify(this.prepareValueBeforeSet(value))\n\t\t\t\t);\n\t\t\t\tresolve();\n\t\t\t}\n\t\t\telse if (!Type.isUndefined(ApplicationStorage))\n\t\t\t{\n\t\t\t\tApplicationStorage.set(\n\t\t\t\t\tthis.code,\n\t\t\t\t\tJSON.stringify(this.prepareValueBeforeSet(value))\n\t\t\t\t).then(() => resolve());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tresolve();\n\t\t\t}\n\t\t});\n\t}\n\n\tclear(): Promise<void>\n\t{\n\t\treturn this.set(null);\n\t}\n\n\t/**\n\t * @private\n\t */\n\tisJnContext(): boolean\n\t{\n\t\treturn !Type.isUndefined(env);\n\t}\n\n\t/**\n\t * @private\n\t */\n\tprepareValueAfterGet(value): any\n\t{\n\t\tif (value instanceof Array)\n\t\t{\n\t\t\tvalue = value.map(element => this.prepareValueAfterGet(element));\n\t\t}\n\t\telse if (value instanceof Date)\n\t\t{\n\t\t}\n\t\telse if (Type.isObjectLike(value))\n\t\t{\n\t\t\tfor (const index in value)\n\t\t\t{\n\t\t\t\tif (value.hasOwnProperty(index))\n\t\t\t\t{\n\t\t\t\t\tvalue[index] = this.prepareValueAfterGet(value[index]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (Type.isString(value))\n\t\t{\n\t\t\tif (value.startsWith('#DT#'))\n\t\t\t{\n\t\t\t\tvalue = new Date(value.substring(4));\n\t\t\t}\n\t\t}\n\n\t\treturn value;\n\t}\n\n\t/**\n\t * @private\n\t */\n\tprepareValueBeforeSet(value): any\n\t{\n\t\tif (value instanceof Array)\n\t\t{\n\t\t\tvalue = value.map(element => this.prepareValueBeforeSet(element));\n\t\t}\n\t\telse if (value instanceof Date)\n\t\t{\n\t\t\tvalue = '#DT#'+value.toISOString();\n\t\t}\n\t\telse if (Type.isObjectLike(value))\n\t\t{\n\t\t\tfor (const index in value)\n\t\t\t{\n\t\t\t\tif (value.hasOwnProperty(index))\n\t\t\t\t{\n\t\t\t\t\tvalue[index] = this.prepareValueBeforeSet(value[index]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn value;\n\t}\n}","/**\n * Bitrix Vuex wrapper\n * Interface Vuex model (Vuex builder model)\n *\n * @package bitrix\n * @subpackage ui\n * @copyright 2001-2022 Bitrix\n */\n\nimport {BuilderDatabaseIndexedDB} from \"./database/indexeddb.js\";\nimport {BuilderDatabaseLocalStorage} from \"./database/localstorage.js\";\nimport {BuilderDatabaseJnSharedStorage} from \"./database/jnsharedstorage.js\";\nimport {BuilderDatabaseType} from \"./builder.js\";\nimport {Store} from \"./../vuex\";\nimport {BitrixVue} from 'ui.vue3';\nimport {Type} from 'main.core';\n\nexport class BuilderModel\n{\n\tstatic create(): BuilderModel\n\t{\n\t\treturn new this();\n\t}\n\n\tgetName(): string\n\t{\n\t\treturn '';\n\t}\n\n\tgetState(): Object\n\t{\n\t\treturn {};\n\t}\n\n\t/**\n\t * Get default element state for models with collection.\n\t *\n \t * @override\n\t * @returns {Object}\n\t */\n\tgetElementState(params = {}): Object\n\t{\n\t\treturn {};\n\t}\n\n\t/**\n\t * Get object containing fields to exclude during the save to database.\n\t *\n \t * @override\n\t * @returns {Object|undefined}\n\t */\n\tgetStateSaveException(): undefined\n\t{\n\t\treturn undefined;\n\t}\n\n\tgetGetters(): Object\n\t{\n\t\treturn {};\n\t}\n\n\tgetActions(): Object\n\t{\n\t\treturn {};\n\t}\n\n\tgetMutations(): Object\n\t{\n\t\treturn {};\n\t}\n\n\tgetNestedModules(): {[moduleName: string]: BuilderModel}\n\t{\n\t\treturn {};\n\t}\n\n\tvalidate(fields, options = {}): Object\n\t{\n\t\treturn {};\n\t}\n\n\tsetVariables(variables = {}): BuilderModel\n\t{\n\t\tif (!Type.isObjectLike(variables))\n\t\t{\n\t\t\tthis.logger('error', 'BuilderModel.setVariables: passed variables is not a Object', 'Model: '+this.getName(), {variables}, store);\n\t\t\treturn this;\n\t\t}\n\n\t\tthis.variables = variables;\n\n\t\treturn this;\n\t}\n\n\tgetVariable(name, defaultValue = undefined): any\n\t{\n\t\tif (!name)\n\t\t{\n\t\t\treturn defaultValue;\n\t\t}\n\n\t\tconst nameParts = name.toString().split('.');\n\t\tif (nameParts.length === 1)\n\t\t{\n\t\t\treturn this.variables[nameParts[0]];\n\t\t}\n\n\t\tlet result;\n\t\tlet variables = Object.assign({}, this.variables);\n\n\t\tfor (let i = 0; i < nameParts.length; i++)\n\t\t{\n\t\t\tif (!Type.isUndefined(variables[nameParts[i]]))\n\t\t\t{\n\t\t\t\tvariables = result = variables[nameParts[i]];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tresult = defaultValue;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}\n\n\tgetNamespace(): string\n\t{\n\t\treturn this.namespace? this.namespace: this.getName();\n\t}\n\n\tsetNamespace(name): BuilderModel\n\t{\n\t\tthis.namespace = name.toString();\n\t\tthis.databaseConfig.name = this.namespace;\n\n\t\treturn this;\n\t}\n\n\t/**\n\t * Set database config for model or disable this feature.\n\t *\n\t * @param active {boolean}\n\t * @param config {{name: String, siteId: String, userId: Number, type: BuilderDatabaseType, storage: String, siteId: String, userId: Number, timeout: Number}}\n\t *\n\t * @returns {BuilderModel}\n\t */\n\tuseDatabase(active, config = {}): BuilderModel\n\t{\n\t\tthis.databaseConfig.active = !!active;\n\n\t\tlet updateDriver = this.db === null;\n\t\tif (config.type)\n\t\t{\n\t\t\tthis.databaseConfig.type = config.type.toString();\n\t\t\tupdateDriver = true;\n\t\t}\n\t\tif (config.storage)\n\t\t{\n\t\t\tthis.databaseConfig.storage = config.storage.toString();\n\t\t}\n\t\tif (config.siteId)\n\t\t{\n\t\t\tthis.databaseConfig.siteId = config.siteId.toString();\n\t\t}\n\t\tif (config.userId)\n\t\t{\n\t\t\tthis.databaseConfig.userId = config.userId;\n\t\t}\n\t\tif (Type.isInteger(config.timeout))\n\t\t{\n\t\t\tthis.databaseConfig.timeout = config.timeout;\n\t\t}\n\n\t\tif (!this.databaseConfig.active && this.db !== null)\n\t\t{\n\t\t\tthis.databaseConfig.type = null;\n\t\t\tupdateDriver = true;\n\t\t}\n\n\t\tif (updateDriver)\n\t\t{\n\t\t\tif (this.databaseConfig.type === BuilderDatabaseType.indexedDb)\n\t\t\t{\n\t\t\t\tthis.db = new BuilderDatabaseIndexedDB(this.databaseConfig);\n\t\t\t}\n\t\t\telse if (this.databaseConfig.type === BuilderDatabaseType.localStorage)\n\t\t\t{\n\t\t\t\tthis.db = new BuilderDatabaseLocalStorage(this.databaseConfig);\n\t\t\t}\n\t\t\telse if (this.databaseConfig.type === BuilderDatabaseType.jnSharedStorage)\n\t\t\t{\n\t\t\t\tthis.db = new BuilderDatabaseJnSharedStorage(this.databaseConfig);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.db = null;\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t}\n\n\t/**\n\t * @returns {BuilderModel}\n\t * @deprecated\n\t */\n\tuseNamespace(active): BuilderModel\n\t{\n\t\tif (BitrixVue.developerMode)\n\t\t{\n\t\t\tif (active)\n\t\t\t{\n\t\t\t\tconsole.warn('BuilderModel: Method `useNamespace` is deprecated, please remove this call.');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tconsole.error('BuilderModel: Method `useNamespace` is deprecated, using Vuex.Builder without namespaces is no longer supported.');\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t}\n\n\t/**\n\t * @returns {Promise}\n\t * @deprecated use getModule instead.\n\t */\n\tgetStore(): Promise<Object>\n\t{\n\t\tconsole.warn('BuilderModel: Method `getStore` is deprecated, please remove this call.');\n\t\treturn this.getModule();\n\t}\n\n\tgetModule(): Promise<Object>\n\t{\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tconst namespace = this.namespace? this.namespace: this.getName();\n\t\t\tif (!namespace)\n\t\t\t{\n\t\t\t\tthis.logger('error', 'VuexModel.getStore: current model can not be run in Vuex modules mode', this.getState());\n\t\t\t\treject();\n\t\t\t}\n\n\t\t\tif (this.db)\n\t\t\t{\n\t\t\t\tthis.#getStoreFromDatabase().then(state => resolve({\n\t\t\t\t\tnamespace,\n\t\t\t\t\tmodule: this.#createStore(state)\n\t\t\t\t}));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tresolve({\n\t\t\t\t\tnamespace,\n\t\t\t\t\tmodule: this.#createStore(this.getState())\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\n\tgetNestedModule(nestedModule: BuilderModel): Object\n\t{\n\t\tconst map = {'constructor': nestedModule};\n\t\tconst instance = new map['constructor']();\n\n\t\treturn {\n\t\t\tnamespaced: true,\n\t\t\tstate: instance.getState(),\n\t\t\tgetters: instance.getGetters(),\n\t\t\tactions: instance.getActions(),\n\t\t\tmutations: instance.getMutations()\n\t\t};\n\t}\n\n\tgetModuleWithDefaultState(): Object\n\t{\n\t\tconst namespace = this.namespace? this.namespace: this.getName();\n\t\tif (!namespace)\n\t\t{\n\t\t\tthis.logger('error', 'VuexModel.getStore: current model can not be run in Vuex modules mode', this.getState());\n\t\t\treturn null;\n\t\t}\n\n\t\treturn {\n\t\t\tnamespace,\n\t\t\tmodule: this.#createStore(this.getState())\n\t\t};\n\t}\n\n\tgetSaveTimeout(): number\n\t{\n\t\treturn 150;\n\t}\n\n\tgetLoadTimeout(): number | boolean\n\t{\n\t\treturn 1000;\n\t}\n\n\t/**\n\t * Get state after load from database\n\t *\n \t * @param state {Object}\n\t *\n\t * @override\n\t *\n\t * @returns {Object}\n\t */\n\tgetLoadedState(state = {}): Object\n\t{\n\t\treturn state;\n\t}\n\n\t/**\n\t * Save current state after change state to database\n\t *\n \t * @param state {Object|function}\n\t *\n\t * @returns {boolean}\n\t */\n\tsaveState(state = {}): boolean\n\t{\n\t\tif (!this.isSaveAvailable())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\tthis.lastSaveState = state;\n\n\t\tif (this.saveStateTimeout)\n\t\t{\n\t\t\tthis.logger('log', 'VuexModel.saveState: wait save...', this.getName());\n\t\t\treturn true;\n\t\t}\n\n\t\tthis.logger('log', 'VuexModel.saveState: start saving', this.getName());\n\n\t\tlet timeout = this.getSaveTimeout();\n\t\tif (Type.isInteger(this.databaseConfig.timeout))\n\t\t{\n\t\t\ttimeout = this.databaseConfig.timeout;\n\t\t}\n\n\t\tthis.saveStateTimeout = setTimeout(() =>\n\t\t{\n\t\t\tthis.logger('log', 'VuexModel.saveState: saved!', this.getName());\n\t\t\tlet lastState = this.lastSaveState;\n\t\t\tif (Type.isFunction(lastState))\n\t\t\t{\n\t\t\t\tlastState = lastState();\n\t\t\t\tif (!Type.isObjectLike(lastState) || !lastState)\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.db.set(\n\t\t\t\tthis.cloneState(lastState, this.getStateSaveException())\n\t\t\t);\n\n\t\t\tthis.lastState = null;\n\t\t\tthis.saveStateTimeout = null;\n\t\t}, timeout);\n\n\t\treturn true;\n\t}\n\n\t/**\n\t * Reset current store to default state\n\t **\n\t * @returns {Promise|boolean}\n\t */\n\tclearState(): Promise<Object> | boolean\n\t{\n\t\tif (this.store)\n\t\t{\n\t\t\tthis.store.commit(this.getNamespace()+'/'+'vuexBuilderModelClearState');\n\n\t\t\treturn true;\n\t\t}\n\n\t\treturn this.saveState(\n\t\t\tthis.getState()\n\t\t);\n\t}\n\n\t/**\n\t * Clear database only, store state does not change\n\t **\n\t * @returns {boolean}\n\t */\n\tclearDatabase(): boolean\n\t{\n\t\tif (!this.isSaveAvailable())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\tthis.db.clear();\n\n\t\treturn true;\n\t}\n\n\t/**\n\t * @return boolean\n\t */\n\tisSaveAvailable(): boolean\n\t{\n\t\treturn this.db && this.databaseConfig.active;\n\t}\n\n\tisSaveNeeded(payload): boolean\n\t{\n\t\tif (!this.isSaveAvailable())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tconst checkFunction = function(payload, filter = null): boolean\n\t\t{\n\t\t\tif (!filter)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tfor (const field in payload)\n\t\t\t{\n\t\t\t\tif (!payload.hasOwnProperty(field))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (Type.isUndefined(filter[field]))\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\telse if (Type.isObjectLike(filter[field]))\n\t\t\t\t{\n\t\t\t\t\tconst result = checkFunction(payload[field], filter[field]);\n\t\t\t\t\tif (result)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\t\t};\n\n\t\treturn checkFunction(payload, this.getStateSaveException());\n\t}\n\n\t/**\n\t * Create new instance of model.\n\t */\n\tconstructor(): void\n\t{\n\t\tthis.databaseConfig = {\n\t\t\ttype: BuilderDatabaseType.indexedDb,\n\t\t\tactive: null,\n\t\t\tstorage: 'default',\n\t\t\tname: this.getName(),\n\t\t\tsiteId: 'default',\n\t\t\tuserId: 0,\n\t\t\ttimeout: null\n\t\t};\n\n\t\tthis.db = null;\n\t\tthis.store = null;\n\n\t\tthis.namespace = null;\n\n\t\tthis.variables = {};\n\t}\n\n\tsetStore(store): BuilderModel\n\t{\n\t\tif (!(store instanceof Store))\n\t\t{\n\t\t\tthis.logger('error', 'VuexModel.setStore: passed store is not a Vuex.Store', store);\n\t\t\treturn this;\n\t\t}\n\n\t\tthis.store = store;\n\t\treturn this;\n\t}\n\n\t#getStoreFromDatabase(): Promise<Object>\n\t{\n\t\tclearTimeout(this.cacheTimeout);\n\t\treturn new Promise((resolve) =>\n\t\t{\n\t\t\tconst loadTimeout = this.getLoadTimeout();\n\n\t\t\tif (\n\t\t\t\tloadTimeout !== false\n\t\t\t\t&& Type.isInteger(loadTimeout)\n\t\t\t)\n\t\t\t{\n\t\t\t\tthis.cacheTimeout = setTimeout(() => {\n\t\t\t\t\tthis.logger('warn', 'VuexModel.getStoreFromDatabase: Cache loading timeout', this.getName());\n\t\t\t\t\tresolve(this.getState());\n\t\t\t\t}, loadTimeout);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.cacheTimeout = null;\n\t\t\t}\n\n\t\t\tthis.db.get().then(cache =>\n\t\t\t{\n\t\t\t\tclearTimeout(this.cacheTimeout);\n\t\t\t\tcache = this.getLoadedState(cache? cache: {});\n\n\t\t\t\tlet state = this.getState();\n\t\t\t\tif (cache)\n\t\t\t\t{\n\t\t\t\t\tstate = BuilderModel.#mergeState(state, cache);\n\t\t\t\t}\n\n\t\t\t\tresolve(state);\n\t\t\t},\n\t\t\t() =>\n\t\t\t{\n\t\t\t\tclearTimeout(this.cacheTimeout);\n\t\t\t\tresolve(this.getState());\n\t\t\t})\n\t\t});\n\t}\n\n\tstatic #mergeState(currentState, newState): Object\n\t{\n\t\tfor (const key in currentState)\n\t\t{\n\t\t\tif (!currentState.hasOwnProperty(key))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (Type.isUndefined(newState[key]))\n\t\t\t{\n\t\t\t\tnewState[key] = currentState[key];\n\t\t\t}\n\t\t\telse if (\n\t\t\t\t!(newState[key] instanceof Array)\n\t\t\t\t&& Type.isObjectLike(newState[key])\n\t\t\t\t&& Type.isObjectLike(currentState[key])\n\t\t\t)\n\t\t\t{\n\t\t\t\tnewState[key] = Object.assign({}, currentState[key], newState[key]);\n\t\t\t}\n\t\t}\n\n\t\treturn newState;\n\t}\n\n\t#createStore(state): Object\n\t{\n\t\tconst result = {\n\t\t\tnamespaced: true,\n\t\t\tstate,\n\t\t\tgetters: this.getGetters(),\n\t\t\tactions: this.getActions(),\n\t\t\tmutations: this.getMutations()\n\t\t};\n\n\t\tconst nestedModules = this.prepareNestedModules();\n\t\tif (nestedModules)\n\t\t{\n\t\t\tresult.modules = nestedModules;\n\t\t}\n\n\t\tresult.mutations.vuexBuilderModelClearState = (state) => {\n\t\t\tstate = Object.assign(state, this.getState());\n\t\t\tthis.saveState(state);\n\t\t};\n\n\t\treturn result;\n\t}\n\n\tprepareNestedModules(): ?Object\n\t{\n\t\tconst nestedModules = Object.entries(this.getNestedModules());\n\t\tif (nestedModules.length === 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tconst preparedNestedModules = {};\n\t\tnestedModules.forEach(([moduleName, module]) => {\n\t\t\tpreparedNestedModules[moduleName] = this.getNestedModule(module);\n\t\t});\n\n\t\treturn preparedNestedModules;\n\t}\n\n\tstatic convertToArray(object): Array\n\t{\n\t\tconst result = [];\n\t\tfor (const i in object)\n\t\t{\n\t\t\tif (object.hasOwnProperty(i))\n\t\t\t{\n\t\t\t\tresult.push(object[i]);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\n\tcloneState(element, exceptions = undefined): Object\n\t{\n\t\tlet result;\n\n\t\tif (element instanceof Array)\n\t\t{\n\t\t\tresult = [].concat(\n\t\t\t\telement.map(element => this.cloneState(element))\n\t\t\t);\n\t\t}\n\t\telse if (element instanceof Date)\n\t\t{\n\t\t\tresult = new Date(element.toISOString());\n\t\t}\n\t\telse if (Type.isObjectLike(element))\n\t\t{\n\t\t\tresult = {};\n\t\t\tfor (const param in element)\n\t\t\t{\n\t\t\t\tif (!element.hasOwnProperty(param))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (\n\t\t\t\t\tType.isUndefined(exceptions)\n\t\t\t\t\t|| Type.isUndefined(exceptions[param])\n\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\tresult[param] = this.cloneState(element[param])\n\t\t\t\t}\n\t\t\t\telse if (Type.isObjectLike(exceptions[param]))\n\t\t\t\t{\n\t\t\t\t\tresult[param] = this.cloneState(element[param], exceptions[param])\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresult = element;\n\t\t}\n\n\t\treturn result;\n\t}\n\n\tlogger(type, ...args): void\n\t{\n\t\tif (type === 'error')\n\t\t{\n\t\t\tconsole.error(...args);\n\t\t\treturn;\n\t\t}\n\t\telse if (!BitrixVue.developerMode)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tif (type === 'log')\n\t\t{\n\t\t\t// eslint-disable-next-line no-console\n\t\t\tconsole.log(...args);\n\t\t}\n\t\telse if (type === 'info')\n\t\t{\n\t\t\tconsole.info(...args);\n\t\t}\n\t\telse if (type === 'warn')\n\t\t{\n\t\t\tconsole.warn(...args);\n\t\t}\n\t}\n}","/**\n * Bitrix Vuex wrapper\n * Vuex builder\n *\n * @package bitrix\n * @subpackage ui\n * @copyright 2001-2022 Bitrix\n */\n\nimport {createStore} from \"../vuex\";\nimport {BuilderModel} from \"./model.js\";\nimport {Type} from \"main.core\";\n\nexport const BuilderDatabaseType = Object.freeze({\n\tindexedDb: 'indexedDb',\n\tlocalStorage: 'localStorage',\n\tjnSharedStorage: 'jnSharedStorage',\n});\n\nexport class Builder\n{\n\t/**\n\t * Create new instance of builder.\n\t *\n\t * @returns {Builder}\n\t */\n\tstatic create(): Builder\n\t{\n\t\tif (BitrixVue.developerMode)\n\t\t{\n\t\t\tconsole.warn('VuexBuilder: Method VuexBuilder.create is deprecated, use VuexBuilder.init instead.');\n\t\t}\n\n\t\treturn new this;\n\t}\n\n\t/**\n\t * Create new instance of builder and initialize Vuex store\n\t *\n\t * @param store {Vuex}\n\t *\n\t * @returns {Builder}\n\t */\n\tstatic init(store): Builder\n\t{\n\t\tif (store)\n\t\t{\n\t\t\tif (!(store instanceof Vuex.Store))\n\t\t\t{\n\t\t\t\tconsole.warn('VuexBuilder.init: passed store is not a Vuex.Store', store);\n\t\t\t\treturn new this;\n\t\t\t}\n\t\t}\n\n\t\treturn new this(store);\n\t}\n\n\tconstructor(store): void\n\t{\n\t\tthis.models = [];\n\n\t\tthis.databaseConfig = {\n\t\t\tname: null,\n\t\t\ttype: null,\n\t\t\tsiteId: null,\n\t\t\tuserId: null,\n\t\t\ttimeout: null,\n\t\t};\n\n\t\tthis.store = store;\n\n\t\tthis.builded = false;\n\t}\n\n\t/**\n\t * Add Vuex module.\n\t *\n\t * @param model {BuilderModel}\n\t *\n\t * @returns {Builder}\n\t */\n\taddModel(model): Builder\n\t{\n\t\tif (this.builded)\n\t\t{\n\t\t\treturn this;\n\t\t}\n\n\t\tif (!(model instanceof BuilderModel))\n\t\t{\n\t\t\tconsole.error('VuexBuilder.addModel: passed model is not a BuilderModel', model);\n\t\t\treturn this;\n\t\t}\n\n\t\tthis.models.push(model);\n\n\t\treturn this;\n\t}\n\n\t/**\n\t * Add dynamic Vuex module.\n\t *\n\t * @param model {BuilderModel}\n\t *\n\t * @returns {Promise}\n\t */\n\taddDynamicModel(model): Promise<void>\n\t{\n\t\tif (!(model instanceof BuilderModel))\n\t\t{\n\t\t\treturn new Promise((resolve, reject) =>\n\t\t\t{\n\t\t\t\tconsole.error('VuexBuilder.addDynamicModel: passed model is not a BuilderModel', model);\n\t\t\t\treject('MODEL_ERROR');\n\t\t\t});\n\t\t}\n\n\t\tif (\n\t\t\tthis.store.hasModule(model.getNamespace())\n\t\t\t|| this.models.find(stored => stored.getNamespace() === model.getNamespace())\n\t\t)\n\t\t{\n\t\t\treturn new Promise((resolve, reject) =>\n\t\t\t{\n\t\t\t\tconsole.error('BX.VuexBuilder.addDynamicModel: model `'+model.getNamespace()+'` was not added because it is already registered.');\n\t\t\t\treject('DUPLICATE_MODEL');\n\t\t\t});\n\t\t}\n\n\t\tthis.models.push(model);\n\n\t\tif (this.databaseConfig.active && model.databaseConfig.active !== false)\n\t\t{\n\t\t\tmodel.useDatabase(true, this.databaseConfig)\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmodel.useDatabase(false);\n\t\t}\n\n\t\tmodel.setStore(this.store)\n\n\t\tconst promise = model.getModule();\n\n\t\treturn new Promise((resolve, reject) =>\n\t\t{\n\t\t\tpromise.then(result => {\n\t\t\t\tthis.store.registerModule(result.namespace, result.module);\n\t\t\t\tresolve();\n\t\t\t}, error => {\n\t\t\t\tconsole.error('BX.VuexBuilder.addDynamicModel: storage was not created due to runtime errors.', error? error: '');\n\t\t\t\treject('ERROR_IN_MODEL');\n\t\t\t});\n\t\t});\n\t}\n\n\t/**\n\t * Remove dynamic Vuex module.\n\t *\n\t * @param namespace {string}\n\t *\n\t * @returns {Builder}\n\t */\n\tremoveDynamicModel(namespace): Builder\n\t{\n\t\tif (!this.builded)\n\t\t{\n\t\t\tconsole.error('BX.VuexBuilder.removeDynamicModel: you cannot use the method until builder is built.');\n\t\t\treturn this;\n\t\t}\n\n\t\tif (!this.store.hasModule(namespace))\n\t\t{\n\t\t\tconsole.error('BX.VuexBuilder.removeDynamicModel: module `'+namespace+'` not registered.');\n\t\t\treturn this;\n\t\t}\n\n\t\tthis.models = this.models.filter(stored => stored.getNamespace() !== namespace);\n\n\t\tthis.store.unregisterModule(namespace);\n\n\t\treturn this;\n\t}\n\n\t/**\n\t * @returns {Builder}\n\t * @deprecated\n\t */\n\tuseNamespace(active): Builder\n\t{\n\t\tif (BitrixVue.developerMode)\n\t\t{\n\t\t\tif (active)\n\t\t\t{\n\t\t\t\tconsole.warn('VuexBuilder: Method `useNamespace` is deprecated, please remove this call.');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tconsole.error('VuexBuilder: Method `useNamespace` is deprecated, using VuexBuilder without namespaces is no longer supported.');\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t}\n\n\t/**\n\t * Set database config for all models (except models with \"no database\" option).\n\t *\n\t * @param config {{name: String, siteId: String, userId: Number, type: DatabaseType, timeout: Number}}\n\t * @returns {Builder}\n\t */\n\tsetDatabaseConfig(config = {}): Builder\n\t{\n\t\tif (!Type.isObjectLike(config))\n\t\t{\n\t\t\treturn this;\n\t\t}\n\n\t\tthis.databaseConfig.active = true;\n\t\tthis.databaseConfig.storage = config.name;\n\n\t\tthis.databaseConfig.type = config.type || this.databaseConfig.type;\n\t\tthis.databaseConfig.siteId = config.siteId || this.databaseConfig.siteId;\n\t\tthis.databaseConfig.userId = config.userId || this.databaseConfig.userId;\n\t\tthis.databaseConfig.timeout = !Type.isUndefined(config.timeout)? config.timeout: this.databaseConfig.timeout;\n\n\t\treturn this;\n\t}\n\n\tclearModelState(callback = null): Promise<boolean>\n\t{\n\t\tif (!this.builded)\n\t\t{\n\t\t\treturn new Promise((resolve, reject) =>\n\t\t\t{\n\t\t\t\tconsole.error('BX.VuexBuilder.clearModelState: you cannot use the method until builder is built.');\n\t\t\t\tif (!Type.isFunction(callback))\n\t\t\t\t{\n\t\t\t\t\treject('BUILDER_NOT_BUILD');\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tconst results = [];\n\n\t\tthis.models.forEach(model => {\n\t\t\tresults.push(model.clearState());\n\t\t});\n\n\t\treturn new Promise((resolve, reject) =>\n\t\t{\n\t\t\tPromise.all(results).then(() =>\n\t\t\t{\n\t\t\t\tresolve(true);\n\t\t\t\tif (Type.isFunction(callback))\n\t\t\t\t{\n\t\t\t\t\tcallback(true);\n\t\t\t\t}\n\t\t\t}, error =>\n\t\t\t{\n\t\t\t\tconsole.error('BX.VuexBuilder.clearModelState: storage was not clear due to runtime errors.', error? error: '');\n\t\t\t\tif (!Type.isFunction(callback))\n\t\t\t\t{\n\t\t\t\t\treject('ERROR_WHILE_CLEARING');\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\n\tclearDatabase(): Promise<boolean>\n\t{\n\t\tif (!this.builded)\n\t\t{\n\t\t\treturn new Promise((resolve, reject) =>\n\t\t\t{\n\t\t\t\tconsole.error('BX.VuexBuilder.clearModelState: you cannot use the method until builder is built.');\n\t\t\t\treject('BUILDER_NOT_BUILD');\n\t\t\t});\n\t\t}\n\n\t\tthis.models.forEach(model => model.clearDatabase());\n\n\t\treturn new Promise((resolve) => resolve(true));\n\t}\n\n\t/**\n\t * Build Vuex Store asynchronously\n\t *\n\t * @param callback {Function|null}\n\t * @returns {Promise<object>}\n\t */\n\tbuild(callback = null): Promise<Object>\n\t{\n\t\tif (this.builded)\n\t\t{\n\t\t\treturn this;\n\t\t}\n\n\t\tconst promises = [];\n\n\t\tif (!this.store)\n\t\t{\n\t\t\tthis.store = createStore();\n\t\t}\n\n\t\tthis.models.forEach(model =>\n\t\t{\n\t\t\tif (this.databaseConfig.active && model.databaseConfig.active !== false)\n\t\t\t{\n\t\t\t\tmodel.useDatabase(true, this.databaseConfig);\n\t\t\t}\n\n\t\t\tmodel.setStore(this.store);\n\n\t\t\tpromises.push(model.getModule());\n\t\t});\n\n\t\treturn new Promise((resolve, reject) =>\n\t\t{\n\t\t\tPromise.all(promises).then(modules =>\n\t\t\t{\n\t\t\t\tmodules.forEach(result => {\n\t\t\t\t\tthis.store.registerModule(result.namespace, result.module);\n\t\t\t\t});\n\n\t\t\t\tconst result = {\n\t\t\t\t\tstore: this.store,\n\t\t\t\t\tmodels: this.models,\n\t\t\t\t\tbuilder: this\n\t\t\t\t};\n\n\t\t\t\tthis.builded = true;\n\n\t\t\t\tif (Type.isFunction(callback))\n\t\t\t\t{\n\t\t\t\t\tcallback(result);\n\t\t\t\t}\n\n\t\t\t\tresolve(result);\n\t\t\t}, error => {\n\t\t\t\tconsole.error('BX.VuexBuilder.create: storage was not created due to runtime errors.', error? error: '');\n\t\t\t\tif (!Type.isFunction(callback))\n\t\t\t\t{\n\t\t\t\t\treject('ERROR_IN_MODEL');\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\n\t/**\n\t * Build Vuex Store synchronously\n\t *\n\t * @returns {Object}\n\t */\n\tsyncBuild(): Object\n\t{\n\t\tif (this.builded)\n\t\t{\n\t\t\treturn {\n\t\t\t\tstore: this.store,\n\t\t\t\tmodels: this.models,\n\t\t\t\tbuilder: this\n\t\t\t};\n\t\t}\n\n\t\tif (!this.store)\n\t\t{\n\t\t\tthis.store = createStore();\n\t\t}\n\n\t\tif (this.databaseConfig.active)\n\t\t{\n\t\t\tif (BitrixVue.developerMode)\n\t\t\t{\n\t\t\t\tconsole.error('VuexBuilder: Method `syncBuild` creates storage in synchronous mode, the database does not work in this mode.');\n\t\t\t}\n\n\t\t\tthis.databaseConfig.active = false;\n\t\t}\n\n\t\tthis.models.forEach(model =>\n\t\t{\n\t\t\tmodel.useDatabase(false);\n\t\t\tmodel.setStore(this.store);\n\n\t\t\tconst {namespace, module} = model.getModuleWithDefaultState();\n\t\t\tthis.store.registerModule(namespace, module);\n\t\t});\n\n\t\tthis.builded = true;\n\n\t\treturn {\n\t\t\tstore: this.store,\n\t\t\tmodels: this.models,\n\t\t\tbuilder: this\n\t\t};\n\t}\n}","/*!\n * vuex v4.0.2\n * (c) 2021 Evan You\n * @license MIT\n *\n * @source: https://unpkg.com/vuex@4.0.2/dist/vuex.esm-browser.js\n */\n\n/**\n * Modify list for integration with Bitrix Framework:\n * - remove global export;\n * - remove import '@vue/devtools-api', add function setupDevtoolsPlugin\n * - replace utf8 symbols in function \"endMessage\"\n */\n\nimport {Builder, BuilderDatabaseType} from \"./builder/builder.js\";\nimport {BuilderModel} from \"./builder/model.js\";\nexport {Builder, BuilderModel, BuilderDatabaseType}\n\nimport { inject, reactive, watch } from 'ui.vue3';\n\nfunction getDevtoolsGlobalHook() {\n\treturn getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;\n}\nfunction getTarget() {\n\t// @ts-ignore\n\treturn typeof navigator !== 'undefined'\n\t\t? window\n\t\t: typeof global !== 'undefined'\n\t\t\t? global\n\t\t\t: {};\n}\n\nconst HOOK_SETUP = 'devtools-plugin:setup';\n\nfunction setupDevtoolsPlugin(pluginDescriptor, setupFn) {\n\tconst hook = getDevtoolsGlobalHook();\n\tif (hook) {\n\t\thook.emit(HOOK_SETUP, pluginDescriptor, setupFn);\n\t}\n\telse {\n\t\tconst target = getTarget();\n\t\tconst list = target.__VUE_DEVTOOLS_PLUGINS__ = target.__VUE_DEVTOOLS_PLUGINS__ || [];\n\t\tlist.push({\n\t\t\tpluginDescriptor,\n\t\t\tsetupFn\n\t\t});\n\t}\n}\n\n// origin-start\n\nvar storeKey = 'store';\n\nfunction useStore (key) {\n  if ( key === void 0 ) key = null;\n\n  return inject(key !== null ? key : storeKey)\n}\n\n/**\n * Get the first item that pass the test\n * by second argument function\n *\n * @param {Array} list\n * @param {Function} f\n * @return {*}\n */\nfunction find (list, f) {\n  return list.filter(f)[0]\n}\n\n/**\n * Deep copy the given object considering circular structure.\n * This function caches all nested objects and its copies.\n * If it detects circular structure, use cached copy to avoid infinite loop.\n *\n * @param {*} obj\n * @param {Array<Object>} cache\n * @return {*}\n */\nfunction deepCopy (obj, cache) {\n  if ( cache === void 0 ) cache = [];\n\n  // just return if obj is immutable value\n  if (obj === null || typeof obj !== 'object') {\n    return obj\n  }\n\n  // if obj is hit, it is in circular structure\n  var hit = find(cache, function (c) { return c.original === obj; });\n  if (hit) {\n    return hit.copy\n  }\n\n  var copy = Array.isArray(obj) ? [] : {};\n  // put the copy into cache at first\n  // because we want to refer it in recursive deepCopy\n  cache.push({\n    original: obj,\n    copy: copy\n  });\n\n  Object.keys(obj).forEach(function (key) {\n    copy[key] = deepCopy(obj[key], cache);\n  });\n\n  return copy\n}\n\n/**\n * forEach for object\n */\nfunction forEachValue (obj, fn) {\n  Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });\n}\n\nfunction isObject (obj) {\n  return obj !== null && typeof obj === 'object'\n}\n\nfunction isPromise (val) {\n  return val && typeof val.then === 'function'\n}\n\nfunction assert (condition, msg) {\n  if (!condition) { throw new Error((\"[vuex] \" + msg)) }\n}\n\nfunction partial (fn, arg) {\n  return function () {\n    return fn(arg)\n  }\n}\n\nfunction genericSubscribe (fn, subs, options) {\n  if (subs.indexOf(fn) < 0) {\n    options && options.prepend\n      ? subs.unshift(fn)\n      : subs.push(fn);\n  }\n  return function () {\n    var i = subs.indexOf(fn);\n    if (i > -1) {\n      subs.splice(i, 1);\n    }\n  }\n}\n\nfunction resetStore (store, hot) {\n  store._actions = Object.create(null);\n  store._mutations = Object.create(null);\n  store._wrappedGetters = Object.create(null);\n  store._modulesNamespaceMap = Object.create(null);\n  var state = store.state;\n  // init all modules\n  installModule(store, state, [], store._modules.root, true);\n  // reset state\n  resetStoreState(store, state, hot);\n}\n\nfunction resetStoreState (store, state, hot) {\n  var oldState = store._state;\n\n  // bind store public getters\n  store.getters = {};\n  // reset local getters cache\n  store._makeLocalGettersCache = Object.create(null);\n  var wrappedGetters = store._wrappedGetters;\n  var computedObj = {};\n  forEachValue(wrappedGetters, function (fn, key) {\n    // use computed to leverage its lazy-caching mechanism\n    // direct inline function use will lead to closure preserving oldState.\n    // using partial to return function with only arguments preserved in closure environment.\n    computedObj[key] = partial(fn, store);\n    Object.defineProperty(store.getters, key, {\n      // TODO: use `computed` when it's possible. at the moment we can't due to\n      // https://github.com/vuejs/vuex/pull/1883\n      get: function () { return computedObj[key](); },\n      enumerable: true // for local getters\n    });\n  });\n\n  store._state = reactive({\n    data: state\n  });\n\n  // enable strict mode for new state\n  if (store.strict) {\n    enableStrictMode(store);\n  }\n\n  if (oldState) {\n    if (hot) {\n      // dispatch changes in all subscribed watchers\n      // to force getter re-evaluation for hot reloading.\n      store._withCommit(function () {\n        oldState.data = null;\n      });\n    }\n  }\n}\n\nfunction installModule (store, rootState, path, module, hot) {\n  var isRoot = !path.length;\n  var namespace = store._modules.getNamespace(path);\n\n  // register in namespace map\n  if (module.namespaced) {\n    if (store._modulesNamespaceMap[namespace] && true) {\n      console.error((\"[vuex] duplicate namespace \" + namespace + \" for the namespaced module \" + (path.join('/'))));\n    }\n    store._modulesNamespaceMap[namespace] = module;\n  }\n\n  // set state\n  if (!isRoot && !hot) {\n    var parentState = getNestedState(rootState, path.slice(0, -1));\n    var moduleName = path[path.length - 1];\n    store._withCommit(function () {\n      {\n        if (moduleName in parentState) {\n          console.warn(\n            (\"[vuex] state field \\\"\" + moduleName + \"\\\" was overridden by a module with the same name at \\\"\" + (path.join('.')) + \"\\\"\")\n          );\n        }\n      }\n      parentState[moduleName] = module.state;\n    });\n  }\n\n  var local = module.context = makeLocalContext(store, namespace, path);\n\n  module.forEachMutation(function (mutation, key) {\n    var namespacedType = namespace + key;\n    registerMutation(store, namespacedType, mutation, local);\n  });\n\n  module.forEachAction(function (action, key) {\n    var type = action.root ? key : namespace + key;\n    var handler = action.handler || action;\n    registerAction(store, type, handler, local);\n  });\n\n  module.forEachGetter(function (getter, key) {\n    var namespacedType = namespace + key;\n    registerGetter(store, namespacedType, getter, local);\n  });\n\n  module.forEachChild(function (child, key) {\n    installModule(store, rootState, path.concat(key), child, hot);\n  });\n}\n\n/**\n * make localized dispatch, commit, getters and state\n * if there is no namespace, just use root ones\n */\nfunction makeLocalContext (store, namespace, path) {\n  var noNamespace = namespace === '';\n\n  var local = {\n    dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n      var args = unifyObjectStyle(_type, _payload, _options);\n      var payload = args.payload;\n      var options = args.options;\n      var type = args.type;\n\n      if (!options || !options.root) {\n        type = namespace + type;\n        if (!store._actions[type]) {\n          console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n          return\n        }\n      }\n\n      return store.dispatch(type, payload)\n    },\n\n    commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n      var args = unifyObjectStyle(_type, _payload, _options);\n      var payload = args.payload;\n      var options = args.options;\n      var type = args.type;\n\n      if (!options || !options.root) {\n        type = namespace + type;\n        if (!store._mutations[type]) {\n          console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n          return\n        }\n      }\n\n      store.commit(type, payload, options);\n    }\n  };\n\n  // getters and state object must be gotten lazily\n  // because they will be changed by state update\n  Object.defineProperties(local, {\n    getters: {\n      get: noNamespace\n        ? function () { return store.getters; }\n        : function () { return makeLocalGetters(store, namespace); }\n    },\n    state: {\n      get: function () { return getNestedState(store.state, path); }\n    }\n  });\n\n  return local\n}\n\nfunction makeLocalGetters (store, namespace) {\n  if (!store._makeLocalGettersCache[namespace]) {\n    var gettersProxy = {};\n    var splitPos = namespace.length;\n    Object.keys(store.getters).forEach(function (type) {\n      // skip if the target getter is not match this namespace\n      if (type.slice(0, splitPos) !== namespace) { return }\n\n      // extract local getter type\n      var localType = type.slice(splitPos);\n\n      // Add a port to the getters proxy.\n      // Define as getter property because\n      // we do not want to evaluate the getters in this time.\n      Object.defineProperty(gettersProxy, localType, {\n        get: function () { return store.getters[type]; },\n        enumerable: true\n      });\n    });\n    store._makeLocalGettersCache[namespace] = gettersProxy;\n  }\n\n  return store._makeLocalGettersCache[namespace]\n}\n\nfunction registerMutation (store, type, handler, local) {\n  var entry = store._mutations[type] || (store._mutations[type] = []);\n  entry.push(function wrappedMutationHandler (payload) {\n    handler.call(store, local.state, payload);\n  });\n}\n\nfunction registerAction (store, type, handler, local) {\n  var entry = store._actions[type] || (store._actions[type] = []);\n  entry.push(function wrappedActionHandler (payload) {\n    var res = handler.call(store, {\n      dispatch: local.dispatch,\n      commit: local.commit,\n      getters: local.getters,\n      state: local.state,\n      rootGetters: store.getters,\n      rootState: store.state\n    }, payload);\n    if (!isPromise(res)) {\n      res = Promise.resolve(res);\n    }\n    if (store._devtoolHook) {\n      return res.catch(function (err) {\n        store._devtoolHook.emit('vuex:error', err);\n        throw err\n      })\n    } else {\n      return res\n    }\n  });\n}\n\nfunction registerGetter (store, type, rawGetter, local) {\n  if (store._wrappedGetters[type]) {\n    {\n      console.error((\"[vuex] duplicate getter key: \" + type));\n    }\n    return\n  }\n  store._wrappedGetters[type] = function wrappedGetter (store) {\n    return rawGetter(\n      local.state, // local state\n      local.getters, // local getters\n      store.state, // root state\n      store.getters // root getters\n    )\n  };\n}\n\nfunction enableStrictMode (store) {\n  watch(function () { return store._state.data; }, function () {\n    {\n      assert(store._committing, \"do not mutate vuex store state outside mutation handlers.\");\n    }\n  }, { deep: true, flush: 'sync' });\n}\n\nfunction getNestedState (state, path) {\n  return path.reduce(function (state, key) { return state[key]; }, state)\n}\n\nfunction unifyObjectStyle (type, payload, options) {\n  if (isObject(type) && type.type) {\n    options = payload;\n    payload = type;\n    type = type.type;\n  }\n\n  {\n    assert(typeof type === 'string', (\"expects string as the type, but found \" + (typeof type) + \".\"));\n  }\n\n  return { type: type, payload: payload, options: options }\n}\n\nvar LABEL_VUEX_BINDINGS = 'vuex bindings';\nvar MUTATIONS_LAYER_ID = 'vuex:mutations';\nvar ACTIONS_LAYER_ID = 'vuex:actions';\nvar INSPECTOR_ID = 'vuex';\n\nvar actionId = 0;\n\nfunction addDevtools (app, store) {\n  setupDevtoolsPlugin(\n    {\n      id: 'org.vuejs.vuex',\n      app: app,\n      label: 'Vuex',\n      homepage: 'https://next.vuex.vuejs.org/',\n      logo: 'https://vuejs.org/images/icons/favicon-96x96.png',\n      packageName: 'vuex',\n      componentStateTypes: [LABEL_VUEX_BINDINGS]\n    },\n    function (api) {\n      api.addTimelineLayer({\n        id: MUTATIONS_LAYER_ID,\n        label: 'Vuex Mutations',\n        color: COLOR_LIME_500\n      });\n\n      api.addTimelineLayer({\n        id: ACTIONS_LAYER_ID,\n        label: 'Vuex Actions',\n        color: COLOR_LIME_500\n      });\n\n      api.addInspector({\n        id: INSPECTOR_ID,\n        label: 'Vuex',\n        icon: 'storage',\n        treeFilterPlaceholder: 'Filter stores...'\n      });\n\n      api.on.getInspectorTree(function (payload) {\n        if (payload.app === app && payload.inspectorId === INSPECTOR_ID) {\n          if (payload.filter) {\n            var nodes = [];\n            flattenStoreForInspectorTree(nodes, store._modules.root, payload.filter, '');\n            payload.rootNodes = nodes;\n          } else {\n            payload.rootNodes = [\n              formatStoreForInspectorTree(store._modules.root, '')\n            ];\n          }\n        }\n      });\n\n      api.on.getInspectorState(function (payload) {\n        if (payload.app === app && payload.inspectorId === INSPECTOR_ID) {\n          var modulePath = payload.nodeId;\n          makeLocalGetters(store, modulePath);\n          payload.state = formatStoreForInspectorState(\n            getStoreModule(store._modules, modulePath),\n            modulePath === 'root' ? store.getters : store._makeLocalGettersCache,\n            modulePath\n          );\n        }\n      });\n\n      api.on.editInspectorState(function (payload) {\n        if (payload.app === app && payload.inspectorId === INSPECTOR_ID) {\n          var modulePath = payload.nodeId;\n          var path = payload.path;\n          if (modulePath !== 'root') {\n            path = modulePath.split('/').filter(Boolean).concat( path);\n          }\n          store._withCommit(function () {\n            payload.set(store._state.data, path, payload.state.value);\n          });\n        }\n      });\n\n      store.subscribe(function (mutation, state) {\n        var data = {};\n\n        if (mutation.payload) {\n          data.payload = mutation.payload;\n        }\n\n        data.state = state;\n\n        api.notifyComponentUpdate();\n        api.sendInspectorTree(INSPECTOR_ID);\n        api.sendInspectorState(INSPECTOR_ID);\n\n        api.addTimelineEvent({\n          layerId: MUTATIONS_LAYER_ID,\n          event: {\n            time: Date.now(),\n            title: mutation.type,\n            data: data\n          }\n        });\n      });\n\n      store.subscribeAction({\n        before: function (action, state) {\n          var data = {};\n          if (action.payload) {\n            data.payload = action.payload;\n          }\n          action._id = actionId++;\n          action._time = Date.now();\n          data.state = state;\n\n          api.addTimelineEvent({\n            layerId: ACTIONS_LAYER_ID,\n            event: {\n              time: action._time,\n              title: action.type,\n              groupId: action._id,\n              subtitle: 'start',\n              data: data\n            }\n          });\n        },\n        after: function (action, state) {\n          var data = {};\n          var duration = Date.now() - action._time;\n          data.duration = {\n            _custom: {\n              type: 'duration',\n              display: (duration + \"ms\"),\n              tooltip: 'Action duration',\n              value: duration\n            }\n          };\n          if (action.payload) {\n            data.payload = action.payload;\n          }\n          data.state = state;\n\n          api.addTimelineEvent({\n            layerId: ACTIONS_LAYER_ID,\n            event: {\n              time: Date.now(),\n              title: action.type,\n              groupId: action._id,\n              subtitle: 'end',\n              data: data\n            }\n          });\n        }\n      });\n    }\n  );\n}\n\n// extracted from tailwind palette\nvar COLOR_LIME_500 = 0x84cc16;\nvar COLOR_DARK = 0x666666;\nvar COLOR_WHITE = 0xffffff;\n\nvar TAG_NAMESPACED = {\n  label: 'namespaced',\n  textColor: COLOR_WHITE,\n  backgroundColor: COLOR_DARK\n};\n\n/**\n * @param {string} path\n */\nfunction extractNameFromPath (path) {\n  return path && path !== 'root' ? path.split('/').slice(-2, -1)[0] : 'Root'\n}\n\n/**\n * @param {*} module\n * @return {import('@vue/devtools-api').CustomInspectorNode}\n */\nfunction formatStoreForInspectorTree (module, path) {\n  return {\n    id: path || 'root',\n    // all modules end with a `/`, we want the last segment only\n    // cart/ -> cart\n    // nested/cart/ -> cart\n    label: extractNameFromPath(path),\n    tags: module.namespaced ? [TAG_NAMESPACED] : [],\n    children: Object.keys(module._children).map(function (moduleName) { return formatStoreForInspectorTree(\n        module._children[moduleName],\n        path + moduleName + '/'\n      ); }\n    )\n  }\n}\n\n/**\n * @param {import('@vue/devtools-api').CustomInspectorNode[]} result\n * @param {*} module\n * @param {string} filter\n * @param {string} path\n */\nfunction flattenStoreForInspectorTree (result, module, filter, path) {\n  if (path.includes(filter)) {\n    result.push({\n      id: path || 'root',\n      label: path.endsWith('/') ? path.slice(0, path.length - 1) : path || 'Root',\n      tags: module.namespaced ? [TAG_NAMESPACED] : []\n    });\n  }\n  Object.keys(module._children).forEach(function (moduleName) {\n    flattenStoreForInspectorTree(result, module._children[moduleName], filter, path + moduleName + '/');\n  });\n}\n\n/**\n * @param {*} module\n * @return {import('@vue/devtools-api').CustomInspectorState}\n */\nfunction formatStoreForInspectorState (module, getters, path) {\n  getters = path === 'root' ? getters : getters[path];\n  var gettersKeys = Object.keys(getters);\n  var storeState = {\n    state: Object.keys(module.state).map(function (key) { return ({\n      key: key,\n      editable: true,\n      value: module.state[key]\n    }); })\n  };\n\n  if (gettersKeys.length) {\n    var tree = transformPathsToObjectTree(getters);\n    storeState.getters = Object.keys(tree).map(function (key) { return ({\n      key: key.endsWith('/') ? extractNameFromPath(key) : key,\n      editable: false,\n      value: canThrow(function () { return tree[key]; })\n    }); });\n  }\n\n  return storeState\n}\n\nfunction transformPathsToObjectTree (getters) {\n  var result = {};\n  Object.keys(getters).forEach(function (key) {\n    var path = key.split('/');\n    if (path.length > 1) {\n      var target = result;\n      var leafKey = path.pop();\n      path.forEach(function (p) {\n        if (!target[p]) {\n          target[p] = {\n            _custom: {\n              value: {},\n              display: p,\n              tooltip: 'Module',\n              abstract: true\n            }\n          };\n        }\n        target = target[p]._custom.value;\n      });\n      target[leafKey] = canThrow(function () { return getters[key]; });\n    } else {\n      result[key] = canThrow(function () { return getters[key]; });\n    }\n  });\n  return result\n}\n\nfunction getStoreModule (moduleMap, path) {\n  var names = path.split('/').filter(function (n) { return n; });\n  return names.reduce(\n    function (module, moduleName, i) {\n      var child = module[moduleName];\n      if (!child) {\n        throw new Error((\"Missing module \\\"\" + moduleName + \"\\\" for path \\\"\" + path + \"\\\".\"))\n      }\n      return i === names.length - 1 ? child : child._children\n    },\n    path === 'root' ? moduleMap : moduleMap.root._children\n  )\n}\n\nfunction canThrow (cb) {\n  try {\n    return cb()\n  } catch (e) {\n    return e\n  }\n}\n\n// Base data struct for store's module, package with some attribute and method\nvar Module = function Module (rawModule, runtime) {\n  this.runtime = runtime;\n  // Store some children item\n  this._children = Object.create(null);\n  // Store the origin module object which passed by programmer\n  this._rawModule = rawModule;\n  var rawState = rawModule.state;\n\n  // Store the origin module's state\n  this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};\n};\n\nvar prototypeAccessors$1 = { namespaced: { configurable: true } };\n\nprototypeAccessors$1.namespaced.get = function () {\n  return !!this._rawModule.namespaced\n};\n\nModule.prototype.addChild = function addChild (key, module) {\n  this._children[key] = module;\n};\n\nModule.prototype.removeChild = function removeChild (key) {\n  delete this._children[key];\n};\n\nModule.prototype.getChild = function getChild (key) {\n  return this._children[key]\n};\n\nModule.prototype.hasChild = function hasChild (key) {\n  return key in this._children\n};\n\nModule.prototype.update = function update (rawModule) {\n  this._rawModule.namespaced = rawModule.namespaced;\n  if (rawModule.actions) {\n    this._rawModule.actions = rawModule.actions;\n  }\n  if (rawModule.mutations) {\n    this._rawModule.mutations = rawModule.mutations;\n  }\n  if (rawModule.getters) {\n    this._rawModule.getters = rawModule.getters;\n  }\n};\n\nModule.prototype.forEachChild = function forEachChild (fn) {\n  forEachValue(this._children, fn);\n};\n\nModule.prototype.forEachGetter = function forEachGetter (fn) {\n  if (this._rawModule.getters) {\n    forEachValue(this._rawModule.getters, fn);\n  }\n};\n\nModule.prototype.forEachAction = function forEachAction (fn) {\n  if (this._rawModule.actions) {\n    forEachValue(this._rawModule.actions, fn);\n  }\n};\n\nModule.prototype.forEachMutation = function forEachMutation (fn) {\n  if (this._rawModule.mutations) {\n    forEachValue(this._rawModule.mutations, fn);\n  }\n};\n\nObject.defineProperties( Module.prototype, prototypeAccessors$1 );\n\nvar ModuleCollection = function ModuleCollection (rawRootModule) {\n  // register root module (Vuex.Store options)\n  this.register([], rawRootModule, false);\n};\n\nModuleCollection.prototype.get = function get (path) {\n  return path.reduce(function (module, key) {\n    return module.getChild(key)\n  }, this.root)\n};\n\nModuleCollection.prototype.getNamespace = function getNamespace (path) {\n  var module = this.root;\n  return path.reduce(function (namespace, key) {\n    module = module.getChild(key);\n    return namespace + (module.namespaced ? key + '/' : '')\n  }, '')\n};\n\nModuleCollection.prototype.update = function update$1 (rawRootModule) {\n  update([], this.root, rawRootModule);\n};\n\nModuleCollection.prototype.register = function register (path, rawModule, runtime) {\n  var this$1$1 = this;\n  if ( runtime === void 0 ) runtime = true;\n\n  {\n    assertRawModule(path, rawModule);\n  }\n\n  var newModule = new Module(rawModule, runtime);\n  if (path.length === 0) {\n    this.root = newModule;\n  } else {\n    var parent = this.get(path.slice(0, -1));\n    parent.addChild(path[path.length - 1], newModule);\n  }\n\n  // register nested modules\n  if (rawModule.modules) {\n    forEachValue(rawModule.modules, function (rawChildModule, key) {\n      this$1$1.register(path.concat(key), rawChildModule, runtime);\n    });\n  }\n};\n\nModuleCollection.prototype.unregister = function unregister (path) {\n  var parent = this.get(path.slice(0, -1));\n  var key = path[path.length - 1];\n  var child = parent.getChild(key);\n\n  if (!child) {\n    {\n      console.warn(\n        \"[vuex] trying to unregister module '\" + key + \"', which is \" +\n        \"not registered\"\n      );\n    }\n    return\n  }\n\n  if (!child.runtime) {\n    return\n  }\n\n  parent.removeChild(key);\n};\n\nModuleCollection.prototype.isRegistered = function isRegistered (path) {\n  var parent = this.get(path.slice(0, -1));\n  var key = path[path.length - 1];\n\n  if (parent) {\n    return parent.hasChild(key)\n  }\n\n  return false\n};\n\nfunction update (path, targetModule, newModule) {\n  {\n    assertRawModule(path, newModule);\n  }\n\n  // update target module\n  targetModule.update(newModule);\n\n  // update nested modules\n  if (newModule.modules) {\n    for (var key in newModule.modules) {\n      if (!targetModule.getChild(key)) {\n        {\n          console.warn(\n            \"[vuex] trying to add a new module '\" + key + \"' on hot reloading, \" +\n            'manual reload is needed'\n          );\n        }\n        return\n      }\n      update(\n        path.concat(key),\n        targetModule.getChild(key),\n        newModule.modules[key]\n      );\n    }\n  }\n}\n\nvar functionAssert = {\n  assert: function (value) { return typeof value === 'function'; },\n  expected: 'function'\n};\n\nvar objectAssert = {\n  assert: function (value) { return typeof value === 'function' ||\n    (typeof value === 'object' && typeof value.handler === 'function'); },\n  expected: 'function or object with \"handler\" function'\n};\n\nvar assertTypes = {\n  getters: functionAssert,\n  mutations: functionAssert,\n  actions: objectAssert\n};\n\nfunction assertRawModule (path, rawModule) {\n  Object.keys(assertTypes).forEach(function (key) {\n    if (!rawModule[key]) { return }\n\n    var assertOptions = assertTypes[key];\n\n    forEachValue(rawModule[key], function (value, type) {\n      assert(\n        assertOptions.assert(value),\n        makeAssertionMessage(path, key, type, value, assertOptions.expected)\n      );\n    });\n  });\n}\n\nfunction makeAssertionMessage (path, key, type, value, expected) {\n  var buf = key + \" should be \" + expected + \" but \\\"\" + key + \".\" + type + \"\\\"\";\n  if (path.length > 0) {\n    buf += \" in module \\\"\" + (path.join('.')) + \"\\\"\";\n  }\n  buf += \" is \" + (JSON.stringify(value)) + \".\";\n  return buf\n}\n\nfunction createStore (options) {\n  return new Store(options)\n}\n\nvar Store = function Store (options) {\n  var this$1$1 = this;\n  if ( options === void 0 ) options = {};\n\n  {\n    assert(typeof Promise !== 'undefined', \"vuex requires a Promise polyfill in this browser.\");\n    assert(this instanceof Store, \"store must be called with the new operator.\");\n  }\n\n  var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];\n  var strict = options.strict; if ( strict === void 0 ) strict = false;\n  var devtools = options.devtools;\n\n  // store internal state\n  this._committing = false;\n  this._actions = Object.create(null);\n  this._actionSubscribers = [];\n  this._mutations = Object.create(null);\n  this._wrappedGetters = Object.create(null);\n  this._modules = new ModuleCollection(options);\n  this._modulesNamespaceMap = Object.create(null);\n  this._subscribers = [];\n  this._makeLocalGettersCache = Object.create(null);\n  this._devtools = devtools;\n\n  // bind commit and dispatch to self\n  var store = this;\n  var ref = this;\n  var dispatch = ref.dispatch;\n  var commit = ref.commit;\n  this.dispatch = function boundDispatch (type, payload) {\n    return dispatch.call(store, type, payload)\n  };\n  this.commit = function boundCommit (type, payload, options) {\n    return commit.call(store, type, payload, options)\n  };\n\n  // strict mode\n  this.strict = strict;\n\n  var state = this._modules.root.state;\n\n  // init root module.\n  // this also recursively registers all sub-modules\n  // and collects all module getters inside this._wrappedGetters\n  installModule(this, state, [], this._modules.root);\n\n  // initialize the store state, which is responsible for the reactivity\n  // (also registers _wrappedGetters as computed properties)\n  resetStoreState(this, state);\n\n  // apply plugins\n  plugins.forEach(function (plugin) { return plugin(this$1$1); });\n};\n\nvar prototypeAccessors = { state: { configurable: true } };\n\nStore.prototype.install = function install (app, injectKey) {\n  app.provide(injectKey || storeKey, this);\n  app.config.globalProperties.$store = this;\n\n  var useDevtools = this._devtools !== undefined\n    ? this._devtools\n    : true ;\n\n  if (useDevtools) {\n    addDevtools(app, this);\n  }\n};\n\nprototypeAccessors.state.get = function () {\n  return this._state.data\n};\n\nprototypeAccessors.state.set = function (v) {\n  {\n    assert(false, \"use store.replaceState() to explicit replace store state.\");\n  }\n};\n\nStore.prototype.commit = function commit (_type, _payload, _options) {\n  var this$1$1 = this;\n\n  // check object-style commit\n  var ref = unifyObjectStyle(_type, _payload, _options);\n  var type = ref.type;\n  var payload = ref.payload;\n  var options = ref.options;\n\n  var mutation = { type: type, payload: payload };\n  var entry = this._mutations[type];\n  if (!entry) {\n    {\n      console.error((\"[vuex] unknown mutation type: \" + type));\n    }\n    return\n  }\n  this._withCommit(function () {\n    entry.forEach(function commitIterator (handler) {\n      handler(payload);\n    });\n  });\n\n  this._subscribers\n    .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe\n    .forEach(function (sub) { return sub(mutation, this$1$1.state); });\n\n  if (\n    options && options.silent\n  ) {\n    console.warn(\n      \"[vuex] mutation type: \" + type + \". Silent option has been removed. \" +\n      'Use the filter functionality in the vue-devtools'\n    );\n  }\n};\n\nStore.prototype.dispatch = function dispatch (_type, _payload) {\n  var this$1$1 = this;\n\n  // check object-style dispatch\n  var ref = unifyObjectStyle(_type, _payload);\n  var type = ref.type;\n  var payload = ref.payload;\n\n  var action = { type: type, payload: payload };\n  var entry = this._actions[type];\n  if (!entry) {\n    {\n      console.error((\"[vuex] unknown action type: \" + type));\n    }\n    return\n  }\n\n  try {\n    this._actionSubscribers\n      .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe\n      .filter(function (sub) { return sub.before; })\n      .forEach(function (sub) { return sub.before(action, this$1$1.state); });\n  } catch (e) {\n    {\n      console.warn(\"[vuex] error in before action subscribers: \");\n      console.error(e);\n    }\n  }\n\n  var result = entry.length > 1\n    ? Promise.all(entry.map(function (handler) { return handler(payload); }))\n    : entry[0](payload);\n\n  return new Promise(function (resolve, reject) {\n    result.then(function (res) {\n      try {\n        this$1$1._actionSubscribers\n          .filter(function (sub) { return sub.after; })\n          .forEach(function (sub) { return sub.after(action, this$1$1.state); });\n      } catch (e) {\n        {\n          console.warn(\"[vuex] error in after action subscribers: \");\n          console.error(e);\n        }\n      }\n      resolve(res);\n    }, function (error) {\n      try {\n        this$1$1._actionSubscribers\n          .filter(function (sub) { return sub.error; })\n          .forEach(function (sub) { return sub.error(action, this$1$1.state, error); });\n      } catch (e) {\n        {\n          console.warn(\"[vuex] error in error action subscribers: \");\n          console.error(e);\n        }\n      }\n      reject(error);\n    });\n  })\n};\n\nStore.prototype.subscribe = function subscribe (fn, options) {\n  return genericSubscribe(fn, this._subscribers, options)\n};\n\nStore.prototype.subscribeAction = function subscribeAction (fn, options) {\n  var subs = typeof fn === 'function' ? { before: fn } : fn;\n  return genericSubscribe(subs, this._actionSubscribers, options)\n};\n\nStore.prototype.watch = function watch$1 (getter, cb, options) {\n  var this$1$1 = this;\n\n  {\n    assert(typeof getter === 'function', \"store.watch only accepts a function.\");\n  }\n  return watch(function () { return getter(this$1$1.state, this$1$1.getters); }, cb, Object.assign({}, options))\n};\n\nStore.prototype.replaceState = function replaceState (state) {\n  var this$1$1 = this;\n\n  this._withCommit(function () {\n    this$1$1._state.data = state;\n  });\n};\n\nStore.prototype.registerModule = function registerModule (path, rawModule, options) {\n  if ( options === void 0 ) options = {};\n\n  if (typeof path === 'string') { path = [path]; }\n\n  {\n    assert(Array.isArray(path), \"module path must be a string or an Array.\");\n    assert(path.length > 0, 'cannot register the root module by using registerModule.');\n  }\n\n  this._modules.register(path, rawModule);\n  installModule(this, this.state, path, this._modules.get(path), options.preserveState);\n  // reset store to update getters...\n  resetStoreState(this, this.state);\n};\n\nStore.prototype.unregisterModule = function unregisterModule (path) {\n  var this$1$1 = this;\n\n  if (typeof path === 'string') { path = [path]; }\n\n  {\n    assert(Array.isArray(path), \"module path must be a string or an Array.\");\n  }\n\n  this._modules.unregister(path);\n  this._withCommit(function () {\n    var parentState = getNestedState(this$1$1.state, path.slice(0, -1));\n    delete parentState[path[path.length - 1]];\n  });\n  resetStore(this);\n};\n\nStore.prototype.hasModule = function hasModule (path) {\n  if (typeof path === 'string') { path = [path]; }\n\n  {\n    assert(Array.isArray(path), \"module path must be a string or an Array.\");\n  }\n\n  return this._modules.isRegistered(path)\n};\n\nStore.prototype.hotUpdate = function hotUpdate (newOptions) {\n  this._modules.update(newOptions);\n  resetStore(this, true);\n};\n\nStore.prototype._withCommit = function _withCommit (fn) {\n  var committing = this._committing;\n  this._committing = true;\n  fn();\n  this._committing = committing;\n};\n\nObject.defineProperties( Store.prototype, prototypeAccessors );\n\n/**\n * Reduce the code which written in Vue.js for getting the state.\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.\n * @param {Object}\n */\nvar mapState = normalizeNamespace(function (namespace, states) {\n  var res = {};\n  if (!isValidMap(states)) {\n    console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');\n  }\n  normalizeMap(states).forEach(function (ref) {\n    var key = ref.key;\n    var val = ref.val;\n\n    res[key] = function mappedState () {\n      var state = this.$store.state;\n      var getters = this.$store.getters;\n      if (namespace) {\n        var module = getModuleByNamespace(this.$store, 'mapState', namespace);\n        if (!module) {\n          return\n        }\n        state = module.context.state;\n        getters = module.context.getters;\n      }\n      return typeof val === 'function'\n        ? val.call(this, state, getters)\n        : state[val]\n    };\n    // mark vuex getter for devtools\n    res[key].vuex = true;\n  });\n  return res\n});\n\n/**\n * Reduce the code which written in Vue.js for committing the mutation\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.\n * @return {Object}\n */\nvar mapMutations = normalizeNamespace(function (namespace, mutations) {\n  var res = {};\n  if (!isValidMap(mutations)) {\n    console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');\n  }\n  normalizeMap(mutations).forEach(function (ref) {\n    var key = ref.key;\n    var val = ref.val;\n\n    res[key] = function mappedMutation () {\n      var args = [], len = arguments.length;\n      while ( len-- ) args[ len ] = arguments[ len ];\n\n      // Get the commit method from store\n      var commit = this.$store.commit;\n      if (namespace) {\n        var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);\n        if (!module) {\n          return\n        }\n        commit = module.context.commit;\n      }\n      return typeof val === 'function'\n        ? val.apply(this, [commit].concat(args))\n        : commit.apply(this.$store, [val].concat(args))\n    };\n  });\n  return res\n});\n\n/**\n * Reduce the code which written in Vue.js for getting the getters\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} getters\n * @return {Object}\n */\nvar mapGetters = normalizeNamespace(function (namespace, getters) {\n  var res = {};\n  if (!isValidMap(getters)) {\n    console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');\n  }\n  normalizeMap(getters).forEach(function (ref) {\n    var key = ref.key;\n    var val = ref.val;\n\n    // The namespace has been mutated by normalizeNamespace\n    val = namespace + val;\n    res[key] = function mappedGetter () {\n      if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {\n        return\n      }\n      if (!(val in this.$store.getters)) {\n        console.error((\"[vuex] unknown getter: \" + val));\n        return\n      }\n      return this.$store.getters[val]\n    };\n    // mark vuex getter for devtools\n    res[key].vuex = true;\n  });\n  return res\n});\n\n/**\n * Reduce the code which written in Vue.js for dispatch the action\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.\n * @return {Object}\n */\nvar mapActions = normalizeNamespace(function (namespace, actions) {\n  var res = {};\n  if (!isValidMap(actions)) {\n    console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');\n  }\n  normalizeMap(actions).forEach(function (ref) {\n    var key = ref.key;\n    var val = ref.val;\n\n    res[key] = function mappedAction () {\n      var args = [], len = arguments.length;\n      while ( len-- ) args[ len ] = arguments[ len ];\n\n      // get dispatch function from store\n      var dispatch = this.$store.dispatch;\n      if (namespace) {\n        var module = getModuleByNamespace(this.$store, 'mapActions', namespace);\n        if (!module) {\n          return\n        }\n        dispatch = module.context.dispatch;\n      }\n      return typeof val === 'function'\n        ? val.apply(this, [dispatch].concat(args))\n        : dispatch.apply(this.$store, [val].concat(args))\n    };\n  });\n  return res\n});\n\n/**\n * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object\n * @param {String} namespace\n * @return {Object}\n */\nvar createNamespacedHelpers = function (namespace) { return ({\n  mapState: mapState.bind(null, namespace),\n  mapGetters: mapGetters.bind(null, namespace),\n  mapMutations: mapMutations.bind(null, namespace),\n  mapActions: mapActions.bind(null, namespace)\n}); };\n\n/**\n * Normalize the map\n * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]\n * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]\n * @param {Array|Object} map\n * @return {Object}\n */\nfunction normalizeMap (map) {\n  if (!isValidMap(map)) {\n    return []\n  }\n  return Array.isArray(map)\n    ? map.map(function (key) { return ({ key: key, val: key }); })\n    : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })\n}\n\n/**\n * Validate whether given map is valid or not\n * @param {*} map\n * @return {Boolean}\n */\nfunction isValidMap (map) {\n  return Array.isArray(map) || isObject(map)\n}\n\n/**\n * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.\n * @param {Function} fn\n * @return {Function}\n */\nfunction normalizeNamespace (fn) {\n  return function (namespace, map) {\n    if (typeof namespace !== 'string') {\n      map = namespace;\n      namespace = '';\n    } else if (namespace.charAt(namespace.length - 1) !== '/') {\n      namespace += '/';\n    }\n    return fn(namespace, map)\n  }\n}\n\n/**\n * Search a special module from store by namespace. if module not exist, print error message.\n * @param {Object} store\n * @param {String} helper\n * @param {String} namespace\n * @return {Object}\n */\nfunction getModuleByNamespace (store, helper, namespace) {\n  var module = store._modulesNamespaceMap[namespace];\n  if (!module) {\n    console.error((\"[vuex] module namespace not found in \" + helper + \"(): \" + namespace));\n  }\n  return module\n}\n\n// Credits: borrowed code from fcomb/redux-logger\n\nfunction createLogger (ref) {\n  if ( ref === void 0 ) ref = {};\n  var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;\n  var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };\n  var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };\n  var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };\n  var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };\n  var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };\n  var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;\n  var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;\n  var logger = ref.logger; if ( logger === void 0 ) logger = console;\n\n  return function (store) {\n    var prevState = deepCopy(store.state);\n\n    if (typeof logger === 'undefined') {\n      return\n    }\n\n    if (logMutations) {\n      store.subscribe(function (mutation, state) {\n        var nextState = deepCopy(state);\n\n        if (filter(mutation, prevState, nextState)) {\n          var formattedTime = getFormattedTime();\n          var formattedMutation = mutationTransformer(mutation);\n          var message = \"mutation \" + (mutation.type) + formattedTime;\n\n          startMessage(logger, message, collapsed);\n          logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));\n          logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);\n          logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));\n          endMessage(logger);\n        }\n\n        prevState = nextState;\n      });\n    }\n\n    if (logActions) {\n      store.subscribeAction(function (action, state) {\n        if (actionFilter(action, state)) {\n          var formattedTime = getFormattedTime();\n          var formattedAction = actionTransformer(action);\n          var message = \"action \" + (action.type) + formattedTime;\n\n          startMessage(logger, message, collapsed);\n          logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);\n          endMessage(logger);\n        }\n      });\n    }\n  }\n}\n\nfunction startMessage (logger, message, collapsed) {\n  var startMessage = collapsed\n    ? logger.groupCollapsed\n    : logger.group;\n\n  // render\n  try {\n    startMessage.call(logger, message);\n  } catch (e) {\n    logger.log(message);\n  }\n}\n\nfunction endMessage (logger) {\n  try {\n    logger.groupEnd();\n  } catch (e) {\n    logger.log('--- log end ---');\n  }\n}\n\nfunction getFormattedTime () {\n  var time = new Date();\n  return (\" @ \" + (pad(time.getHours(), 2)) + \":\" + (pad(time.getMinutes(), 2)) + \":\" + (pad(time.getSeconds(), 2)) + \".\" + (pad(time.getMilliseconds(), 3)))\n}\n\nfunction repeat (str, times) {\n  return (new Array(times + 1)).join(str)\n}\n\nfunction pad (num, maxLength) {\n  return repeat('0', maxLength - num.toString().length) + num\n}\n\nexport { Store, createLogger, createNamespacedHelpers, createStore, mapActions, mapGetters, mapMutations, mapState, storeKey, useStore };\n// origin-end\n\nconst version = '4.0.2';\nexport {version}\n\n",null]}