!function(t){if("object"==typeofn&&void0!==e)e.exports=t();elseif("function"==typeofdefine&&define.amd)define([],t);else{("undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this).localforage=t()}}(function(){returnfunctione(n,t,r){functiono(a,u){if(!t[a]){if(!n[a]){varc="function"==typeofrequire&&require;if(!u&&c)returnc(a,!0);if(i)returni(a,!0);varf=newError("Cannot find module '"+a+"'");throwf.code="MODULE_NOT_FOUND",f}vars=t[a]={exports:{}};n[a][0].call(s.exports,function(e){vart=n[a][1][e];returno(t||e)},s,s.exports,e,n,t,r)}returnt[a].exports}for(vari="function"==typeofrequire&&require,a=0;a<r.length;a++)o(r[a]);returno}({1:[function(e,n,t){(function(e){"use strict";vart,r,o=e.MutationObserver||e.WebKitMutationObserver;if(o){vari=0,a=newo(s),u=e.document.createTextNode("");a.observe(u,{characterData:!0}),t=function(){u.data=i=++i%2}}elseif(e.setImmediate||void0===e.MessageChannel)t="document"ine&&"onreadystatechange"ine.document.createElement("script")?function(){varn=e.document.createElement("script");n.onreadystatechange=function(){s(),n.onreadystatechange=null,n.parentNode.removeChild(n),n=null},e.document.documentElement.appendChild(n)}:function(){setTimeout(s,0)};else{varc=newe.MessageChannel;c.port1.onmessage=s,t=function(){c.port2.postMessage(0)}}varf=[];functions(){vare,n;r=!0;for(vart=f.length;t;){for(n=f,f=[],e=-1;++e<t;)n[e]();t=f.length}r=!1}n.exports=function(e){1!==f.push(e)||r||t()}}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{}],2:[function(e,n,t){"use strict";varr=e(1);functiono(){}vari={},a=["REJECTED"],u=["FULFILLED"],c=["PENDING"];functionf(e){if("function"!=typeofe)thrownewTypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void0,e!==o&&v(this,e)}functions(e,n,t){this.promise=e,"function"==typeofn&&(this.onFulfilled=n,this.callFulfilled=this.otherCallFulfilled),"function"==typeoft&&(this.onRejected=t,this.callRejected=this.otherCallRejected)}functionl(e,n,t){r(function(){varr;try{r=n(t)}catch(n){returni.reject(e,n)}r===e?i.reject(e,newTypeError("Cannot resolve promise with itself")):i.resolve(e,r)})}functiond(e){varn=e&&e.then;if(e&&("object"==typeofe||"function"==typeofe)&&"function"==typeofn)returnfunction(){n.apply(e,arguments)}}functionv(e,n){vart=!1;functionr(n){t||(t=!0,i.reject(e,n))}functiono(n){t||(t=!0,i.resolve(e,n))}vara=h(function(){n(o,r)});"error"===a.status&&r(a.value)}functionh(e,n){vart={};try{t.value=e(n),t.status="success"}catch(e){t.status="error",t.value=e}returnt}n.exports=f,f.prototype.catch=function(e){returnthis.then(null,e)},f.prototype.then=function(e,n){if("function"!=typeofe&&this.state===u||"function"!=typeofn&&this.state===a)returnthis;vart=newthis.constructor(o);this.state!==c?l(t,this.state===u?e:n,this.outcome):this.queue.push(news(t,e,n));returnt},s.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},s.prototype.otherCallFulfilled=function(e){l(this.promise,this.onFulfilled,e)},s.prototype.callRejected=function(e){i.reject(this.promise,e)},s.prototype.otherCallRejected=function(e){l(this.promise,this.onRejected,e)},i.resolve=function(e,n){vart=h(d,n);if("error"===t.status)returni.reject(e,t.value);varr=t.value;if(r)v(e,r);else{e.state=u,e.outcome=n;for(varo=-1,a=e.queue.length;++o<a;)e.queue[o].callFulfilled(n)}returne},i.reject=function(e,n){e.state=a,e.outcome=n;for(vart=-1,r=e.queue.length;++t<r;)e.queue[t].callRejected(n);returne},f.resolve=function(e){if(einstanceofthis)returne;returni.resolve(newthis(o),e)},f.reject=function(e){varn=newthis(o);returni.reject(n,e)},f.all=function(e){varn=this;if("[object Array]"!==Object.prototype.toString.call(e))returnthis.reject(newTypeError("must be an array"));vart=e.length,r=!1;if(!t)returnthis.resolve([]);vara=newArray(t),u=0,c=-1,f=newthis(o);for(;++c<t;)s(e[c],c);returnf;functions(e,o){n.resolve(e).then(function(e){a[o]=e,++u!==t||r||(r=!0,i.resolve(f,a))},function(e){r||(r=!0,i.reject(f,e))})}},f.race=function(e){varn=this;if("[object Array]"!==Object.prototype.toString.call(e))returnthis.reject(newTypeError("must be an array"));vart=e.length,r=!1;if(!t)returnthis.resolve([]);vara=-1,u=newthis(o);for(;++a<t;)c=e[a],n.resolve(c).then(function(e){r||(r=!0,i.resolve(u,e))},function(e){r||(r=!0,i.reject(u,e))});varc;returnu}},{1:1}],3:[function(e,n,t){(function(n){"use strict";"function"!=typeofn.Promise&&(n.Promise=e(2))}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{2:2}],4:[function(e,n,t){"use strict";varr="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe};varo=function(){try{if("undefined"!=typeofindexedDB)returnindexedDB;if("undefined"!=typeofwebkitIndexedDB)returnwebkitIndexedDB;if("undefined"!=typeofmozIndexedDB)returnmozIndexedDB;if("undefined"!=typeofOIndexedDB)returnOIndexedDB;if("undefined"!=typeofmsIndexedDB)returnmsIndexedDB}catch(e){return}}();functioni(e,n){e=e||[],n=n||{};try{returnnewBlob(e,n)}catch(o){if("TypeError"!==o.name)throwo;for(vart=new("undefined"!=typeofBlobBuilder?BlobBuilder:"undefined"!=typeofMSBlobBuilder?MSBlobBuilder:"undefined"!=typeofMozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)t.append(e[r]);returnt.getBlob(n.type)}}"undefined"==typeofPromise&&e(3);vara=Promise;functionu(e,n){n&&e.then(function(e){n(null,e)},function(e){n(e)})}functionc(e,n,t){"function"==typeofn&&e.then(n),"function"==typeoft&&e.catch(t)}functionf(e){return"string"!=typeofe&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}functions(){if(arguments.length&&"function"==typeofarguments[arguments.length-1])returnarguments[arguments.length-1]}varl="local-forage-detect-blob-support",d=void0,v={},h=Object.prototype.toString,y="readonly",p="readwrite";functionb(e){return"boolean"==typeofd?a.resolve(d):function(e){returnnewa(function(n){vart=e.transaction(l,p),r=i([""]);t.objectStore(l).put(r,"key"),t.onabort=function(e){e.preventDefault(),e.stopPropagation(),n(!1)},t.oncomplete=function(){vare=navigator.userAgent.match(/Chrome\/(\d+)/),t=navigator.userAgent.match(/Edge\//);n(t||!e||parseInt(e[1],10)>=43)}}).catch(function(){return!1})}(e).then(function(e){returnd=e})}functionm(e){varn=v[e.name],t={};t.promise=newa(function(e,n){t.resolve=e,t.reject=n}),n.deferredOperations.push(t),n.dbReady?n.dbReady=n.dbReady.then(function(){returnt.promise}):n.dbReady=t.promise}functiong(e){varn=v[e.name].deferredOperations.pop();if(n)returnn.resolve(),n.promise}function_(e,n){vart=v[e.name].deferredOperations.pop();if(t)returnt.reject(n),t.promise}functionw(e,n){returnnewa(function(t,r){if(v[e.name]=v[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!n)returnt(e.db);m(e),e.db.close()}vari=[e.name];n&&i.push(e.version);vara=o.open.apply(o,i);n&&(a.onupgradeneeded=function(n){vart=a.result;try{t.createObjectStore(e.storeName),n.oldVersion<=1&&t.createObjectStore(l)}catch(t){if("ConstraintError"!==t.name)throwt;console.warn('The database "'+e.name+'" has been upgraded from version '+n.oldVersion+" to version "+n.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),r(a.error)},a.onsuccess=function(){t(a.result),g(e)}})}functionI(e){returnw(e,!1)}functionS(e){returnw(e,!0)}functionE(e,n){if(!e.db)return!0;vart=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,o=e.version>e.db.version;if(r&&(e.version!==n&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),o||t){if(t){vari=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}functionN(e){returni([function(e){for(varn=e.length,t=newArrayBuffer(n),r=newUint8Array(t),o=0;o<n;o++)r[o]=e.charCodeAt(o);returnt}(atob(e.data))],{type:e.type})}functionj(e){returne&&e.__local_forage_encoded_blob}functionO(e){varn=this,t=n._initReady().then(function(){vare=v[n._dbInfo.name];if(e&&e.dbReady)returne.dbReady});returnc(t,e,e),t}functionR(e,n,t,r){void0===r&&(r=1);try{varo=e.db.transaction(e.storeName,n);t(null,o)}catch(o){if(r>0&&(!e.db||"InvalidStateError"===o.name||"NotFoundError"===o.name))returna.resolve().then(function(){if(!e.db||"NotFoundError"===o.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)returne.db&&(e.version=e.db.version+1),S(e)}).then(function(){returnfunction(e){m(e);for(varn=v[e.name],t=n.forages,r=0;r<t.length;r++){varo=t[r];o._dbInfo.db&&(o._dbInfo.db.close(),o._dbInfo.db=null)}returne.db=null,I(e).then(function(n){returne.db=n,E(e)?S(e):n}).then(function(r){e.db=n.db=r;for(varo=0;o<t.length;o++)t[o]._dbInfo.db=r}).catch(function(n){throw_(e,n),n})}(e).then(function(){R(e,n,t,r-1)})}).catch(t);t(o)}}varA={_driver:"asyncStorage",_initStorage:function(e){varn=this,t={db:null};if(e)for(varrine)t[r]=e[r];varo=v[t.name];o||(o={forages:[],db:null,dbReady:null,deferredOperations:[]},v[t.name]=o),o.forages.push(n),n._initReady||(n._initReady=n.ready,n.ready=O);vari=[];functionu(){returna.resolve()}for(varc=0;c<o.forages.length;c++){varf=o.forages[c];f!==n&&i.push(f._initReady().catch(u))}vars=o.forages.slice(0);returna.all(i).then(function(){returnt.db=o.db,I(t)}).then(function(e){returnt.db=e,E(t,n._defaultConfig.version)?S(t):e}).then(function(e){t.db=o.db=e,n._dbInfo=t;for(varr=0;r<s.length;r++){vari=s[r];i!==n&&(i._dbInfo.db=t.db,i._dbInfo.version=t.version)}})},_support:function(){try{if(!o)return!1;vare="undefined"!=typeofopenDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),n="function"==typeoffetch&&-1!==fetch.toString().indexOf("[native code");return(!e||n)&&"undefined"!=typeofindexedDB&&"undefined"!=typeofIDBKeyRange}catch(e){return!1}}(),iterate:function(e,n){vart=this,r=newa(function(n,r){t.ready().then(function(){R(t._dbInfo,y,function(o,i){if(o)returnr(o);try{vara=i.objectStore(t._dbInfo.storeName).openCursor(),u=1;a.onsuccess=function(){vart=a.result;if(t){varr=t.value;j(r)&&(r=N(r));varo=e(r,t.key,u++);void0!==o?n(o):t.continue()}elsen()},a.onerror=function(){r(a.error)}}catch(e){r(e)}})}).catch(r)});returnu(r,n),r},getItem:function(e,n){vart=this;e=f(e);varr=newa(function(n,r){t.ready().then(function(){R(t._dbInfo,y,function(o,i){if(o)returnr(o);try{vara=i.objectStore(t._dbInfo.storeName).get(e);a.onsuccess=function(){vare=a.result;void0===e&&(e=null),j(e)&&(e=N(e)),n(e)},a.onerror=function(){r(a.error)}}catch(e){r(e)}})}).catch(r)});returnu(r,n),r},setItem:function(e,n,t){varr=this;e=f(e);varo=newa(function(t,o){vari;r.ready().then(function(){returni=r._dbInfo,"[object Blob]"===h.call(n)?b(i.db).then(function(e){returne?n:(t=n,newa(function(e,n){varr=newFileReader;r.onerror=n,r.onloadend=function(n){varr=btoa(n.target.result||"");e({__local_forage_encoded_blob:!0,data:r,type:t.type})},r.readAsBinaryString(t)}));vart}):n}).then(function(n){R(r._dbInfo,p,function(i,a){if(i)returno(i);try{varu=a.objectStore(r._dbInfo.storeName);null===n&&(n=void0);varc=u.put(n,e);a.oncomplete=function(){void0===n&&(n=null),t(n)},a.onabort=a.onerror=function(){vare=c.error?c.error:c.transaction.error;o(e)}}catch(e){o(e)}})}).catch(o)});returnu(o,t),o},removeItem:function(e,n){vart=this;e=f(e);varr=newa(function(n,r){t.ready().then(function(){R(t._dbInfo,p,function(o,i){if(o)returnr(o);try{vara=i.objectStore(t._dbInfo.storeName).delete(e);i.oncomplete=function(){n()},i.onerror=function(){r(a.error)},i.onabort=function(){vare=a.error?a.error:a.transaction.error;r(e)}}catch(e){r(e)}})}).catch(r)});returnu(r,n),r},clear:function(e){varn=this,t=newa(function(e,t){n.ready().then(function(){R(n._dbInfo,p,function(r,o){if(r)returnt(r);try{vari=o.objectStore(n._dbInfo.storeName).clear();o.oncomplete=function(){e()},o.onabort=o.onerror=function(){vare=i.error?i.error:i.transaction.error;t(e)}}catch(e){t(e)}})}).catch(t)});returnu(t,e),t},length:function(e){varn=this,t=newa(function(e,t){n.ready().then(function(){R(n._dbInfo,y,function(r,o){if(r)returnt(r);try{vari=o.objectStore(n._dbInfo.storeName).count();i.onsuccess=function(){e(i.result)},i.onerror=function(){t(i.error)}}catch(e){t(e)}})}).catch(t)});returnu(t,e),t},key:function(e,n){vart=this,r=newa(function(n,r){e<0?n(null):t.ready().then(function(){R(t._dbInfo,y,function(o,i){if(o)returnr(o);try{vara=i.objectStore(t._dbInfo.storeName),u=!1,c=a.openCursor();c.onsuccess=function(){vart=c.result;t?0===e?n(t.key):u?n(t.key):(u=!0,t.advance(e)):n(null)},c.onerror=function(){r(c.error)}}catch(e){r(e)}})}).catch(r)});returnu(r,n),r},keys:function(e){varn=this,t=newa(function(e,t){n.ready().then(function(){R(n._dbInfo,y,function(r,o){if(r)returnt(r);try{vari=o.objectStore(n._dbInfo.storeName).openCursor(),a=[];i.onsuccess=function(){varn=i.result;n?(a.push(n.key),n.continue()):e(a)},i.onerror=function(){t(i.error)}}catch(e){t(e)}})}).catch(t)});returnu(t,e),t},dropInstance:function(e,n){n=s.apply(this,arguments);vart,r=this.config();if((e="function"!=typeofe&&e||{}).name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName),e.name){vari=e.name===r.name&&this._dbInfo.db?a.resolve(this._dbInfo.db):I(e).then(function(n){vart=v[e.name],r=t.forages;t.db=n;for(varo=0;o<r.length;o++)r[o]._dbInfo.db=n;returnn});t=e.storeName?i.then(function(n){if(n.objectStoreNames.contains(e.storeName)){vart=n.version+1;m(e);varr=v[e.name],i=r.forages;n.close();for(varu=0;u<i.length;u++){varc=i[u];c._dbInfo.db=null,c._dbInfo.version=t}returnnewa(function(n,r){vari=o.open(e.name,t);i.onerror=function(e){i.result.close(),r(e)},i.onupgradeneeded=function(){i.result.deleteObjectStore(e.storeName)},i.onsuccess=function(){vare=i.result;e.close(),n(e)}}).then(function(e){r.db=e;for(varn=0;n<i.length;n++){vart=i[n];t._dbInfo.db=e,g(t._dbInfo)}}).catch(function(n){throw(_(e,n)||a.resolve()).catch(function(){}),n})}}):i.then(function(n){m(e);vart=v[e.name],r=t.forages;n.close();for(vari=0;i<r.length;i++)r[i]._dbInfo.db=null;returnnewa(function(n,t){varr=o.deleteDatabase(e.name);r.onerror=r.onblocked=function(e){varn=r.result;n&&n.close(),t(e)},r.onsuccess=function(){vare=r.result;e&&e.close(),n(e)}}).then(function(e){t.db=e;for(varn=0;n<r.length;n++)g(r[n]._dbInfo)}).catch(function(n){throw(_(e,n)||a.resolve()).catch(function(){}),n})})}elset=a.reject("Invalid arguments");returnu(t,n),t}};varx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",D="~~local_forage_type~",B=/^~~local_forage_type~([^~]+)~/,k="__lfsc__:",T=k.length,C="arbf",F="blob",L="si08",M="ui08",P="uic8",z="si16",U="si32",q="ur16",W="ui32",H="fl32",Q="fl64",K=T+C.length,X=Object.prototype.toString;functionG(e){varn,t,r,o,i,a=.75*e.length,u=e.length,c=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);varf=newArrayBuffer(a),s=newUint8Array(f);for(n=0;n<u;n+=4)t=x.indexOf(e[n]),r=x.indexOf(e[n+1]),o=x.indexOf(e[n+2]),i=x.indexOf(e[n+3]),s[c++]=t<<2|r>>4,s[c++]=(15&r)<<4|o>>2,s[c++]=(3&o)<<6|63&i;returnf}functionJ(e){varn,t=newUint8Array(e),r="";for(n=0;n<t.length;n+=3)r+=x[t[n]>>2],r+=x[(3&t[n])<<4|t[n+1]>>4],r+=x[(15&t[n+1])<<2|t[n+2]>>6],r+=x[63&t[n+2]];returnt.length%3==2?r=r.substring(0,r.length-1)+"=":t.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}varV={serialize:function(e,n){vart="";if(e&&(t=X.call(e)),e&&("[object ArrayBuffer]"===t||e.buffer&&"[object ArrayBuffer]"===X.call(e.buffer))){varr,o=k;einstanceofArrayBuffer?(r=e,o+=C):(r=e.buffer,"[object Int8Array]"===t?o+=L:"[object Uint8Array]"===t?o+=M:"[object Uint8ClampedArray]"===t?o+=P:"[object Int16Array]"===t?o+=z:"[object Uint16Array]"===t?o+=q:"[object Int32Array]"===t?o+=U:"[object Uint32Array]"===t?o+=W:"[object Float32Array]"===t?o+=H:"[object Float64Array]"===t?o+=Q:n(newError("Failed to get type for BinaryArray"))),n(o+J(r))}elseif("[object Blob]"===t){vari=newFileReader;i.onload=function(){vart=D+e.type+"~"+J(this.result);n(k+F+t)},i.readAsArrayBuffer(e)}elsetry{n(JSON.stringify(e))}catch(t){console.error("Couldn't convert value into a JSON string: ",e),n(null,t)}},deserialize:function(e){if(e.substring(0,T)!==k)returnJSON.parse(e);varn,t=e.substring(K),r=e.substring(T,K);if(r===F&&B.test(t)){varo=t.match(B);n=o[1],t=t.substring(o[0].length)}vara=G(t);switch(r){caseC:returna;caseF:returni([a],{type:n});caseL:returnnewInt8Array(a);caseM:returnnewUint8Array(a);caseP:returnnewUint8ClampedArray(a);casez:returnnewInt16Array(a);caseq:returnnewUint16Array(a);caseU:returnnewInt32Array(a);caseW:returnnewUint32Array(a);caseH:returnnewFloat32Array(a);caseQ:returnnewFloat64Array(a);default:thrownewError("Unkown type: "+r)}},stringToBuffer:G,bufferToString:J};functionY(e,n,t,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+n.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],t,r)}functionZ(e,n,t,r,o,i){e.executeSql(t,r,o,function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[n.storeName],function(e,u){u.rows.length?i(e,a):Y(e,n,function(){e.executeSql(t,r,o,i)},i)},i):i(e,a)},i)}var$={_driver:"webSQLStorage",_initStorage:function(e){varn=this,t={db:null};if(e)for(varrine)t[r]="string"!=typeofe[r]?e[r].toString():e[r];varo=newa(function(e,r){try{t.db=openDatabase(t.name,String(t.version),t.description,t.size)}catch(e){returnr(e)}t.db.transaction(function(o){Y(o,t,function(){n._dbInfo=t,e()},function(e,n){r(n)})},r)});returnt.serializer=V,o},_support:"function"==typeofopenDatabase,iterate:function(e,n){vart=this,r=newa(function(n,r){t.ready().then(function(){varo=t._dbInfo;o.db.transaction(function(t){Z(t,o,"SELECT * FROM "+o.storeName,[],function(t,r){for(vari=r.rows,a=i.length,u=0;u<a;u++){varc=i.item(u),f=c.value;if(f&&(f=o.serializer.deserialize(f)),void0!==(f=e(f,c.key,u+1)))returnvoidn(f)}n()},function(e,n){r(n)})})}).catch(r)});returnu(r,n),r},getItem:function(e,n){vart=this;e=f(e);varr=newa(function(n,r){t.ready().then(function(){varo=t._dbInfo;o.db.transaction(function(t){Z(t,o,"SELECT * FROM "+o.storeName+" WHERE key = ? LIMIT 1",[e],function(e,t){varr=t.rows.length?t.rows.item(0).value:null;r&&(r=o.serializer.deserialize(r)),n(r)},function(e,n){r(n)})})}).catch(r)});returnu(r,n),r},setItem:function(e,n,t){returnfunctione(n,t,r,o){vari=this;n=f(n);varc=newa(function(a,u){i.ready().then(function(){void0===t&&(t=null);varc=t,f=i._dbInfo;f.serializer.serialize(t,function(t,s){s?u(s):f.db.transaction(function(e){Z(e,f,"INSERT OR REPLACE INTO "+f.storeName+" (key, value) VALUES (?, ?)",[n,t],function(){a(c)},function(e,n){u(n)})},function(t){if(t.code===t.QUOTA_ERR){if(o>0)returnvoida(e.apply(i,[n,c,r,o-1]));u(t)}})})}).catch(u)});returnu(c,r),c}.apply(this,[e,n,t,1])},removeItem:function(e,n){vart=this;e=f(e);varr=newa(function(n,r){t.ready().then(function(){varo=t._dbInfo;o.db.transaction(function(t){Z(t,o,"DELETE FROM "+o.storeName+" WHERE key = ?",[e],function(){n()},function(e,n){r(n)})})}).catch(r)});returnu(r,n),r},clear:function(e){varn=this,t=newa(function(e,t){n.ready().then(function(){varr=n._dbInfo;r.db.transaction(function(n){Z(n,r,"DELETE FROM "+r.storeName,[],function(){e()},function(e,n){t(n)})})}).catch(t)});returnu(t,e),t},length:function(e){varn=this,t=newa(function(e,t){n.ready().then(function(){varr=n._dbInfo;r.db.transaction(function(n){Z(n,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],function(n,t){varr=t.rows.item(0).c;e(r)},function(e,n){t(n)})})}).catch(t)});returnu(t,e),t},key:function(e,n){vart=this,r=newa(function(n,r){t.ready().then(function(){varo=t._dbInfo;o.db.transaction(function(t){Z(t,o,"SELECT key FROM "+o.storeName+" WHERE id = ? LIMIT 1",[e+1],function(e,t){varr=t.rows.length?t.rows.item(0).key:null;n(r)},function(e,n){r(n)})})}).catch(r)});returnu(r,n),r},keys:function(e){varn=this,t=newa(function(e,t){n.ready().then(function(){varr=n._dbInfo;r.db.transaction(function(n){Z(n,r,"SELECT key FROM "+r.storeName,[],function(n,t){for(varr=[],o=0;o<t.rows.length;o++)r.push(t.rows.item(o).key);e(r)},function(e,n){t(n)})})}).catch(t)});returnu(t,e),t},dropInstance:function(e,n){n=s.apply(this,arguments);vart=this.config();(e="function"!=typeofe&&e||{}).name||(e.name=e.name||t.name,e.storeName=e.storeName||t.storeName);varr,o=this;returnu(r=e.name?newa(function(n){varr;r=e.name===t.name?o._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?n({db:r,storeNames:[e.storeName]}):n(function(e){returnnewa(function(n,t){e.transaction(function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(t,r){for(varo=[],i=0;i<r.rows.length;i++)o.push(r.rows.item(i).name);n({db:e,storeNames:o})},function(e,n){t(n)})},function(e){t(e)})})}(r))}).then(function(e){returnnewa(function(n,t){e.db.transaction(function(r){functiono(e){returnnewa(function(n,t){r.executeSql("DROP TABLE IF EXISTS "+e,[],function(){n()},function(e,n){t(n)})})}for(vari=[],u=0,c=e.storeNames.length;u<c;u++)i.push(o(e.storeNames[u]));a.all(i).then(function(){n()}).catch(function(e){t(e)})},function(e){t(e)})})}):a.reject("Invalid arguments"),n),r}};functionee(e,n){vart=e.name+"/";returne.storeName!==n.storeName&&(t+=e.storeName+"/"),t}functionne(){return!function(){try{returnlocalStorage.setItem("_localforage_support_test",!0),localStorage.removeItem("_localforage_support_test"),!1}catch(e){return!0}}()||localStorage.length>0}varte={_driver:"localStorageWrapper",_initStorage:function(e){varn={};if(e)for(vartine)n[t]=e[t];returnn.keyPrefix=ee(e,this._defaultConfig),ne()?(this._dbInfo=n,n.serializer=V,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeoflocalStorage&&"setItem"inlocalStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,n){vart=this,r=t.ready().then(function(){for(varn=t._dbInfo,r=n.keyPrefix,o=r.length,i=localStorage.length,a=1,u=0;u<i;u++){varc=localStorage.key(u);if(0===c.indexOf(r)){varf=localStorage.getItem(c);if(f&&(f=n.serializer.deserialize(f)),void0!==(f=e(f,c.substring(o),a++)))returnf}}});returnu(r,n),r},getItem:function(e,n){vart=this;e=f(e);varr=t.ready().then(function(){varn=t._dbInfo,r=localStorage.getItem(n.keyPrefix+e);returnr&&(r=n.serializer.deserialize(r)),r});returnu(r,n),r},setItem:function(e,n,t){varr=this;e=f(e);varo=r.ready().then(function(){void0===n&&(n=null);vart=n;returnnewa(function(o,i){vara=r._dbInfo;a.serializer.serialize(n,function(n,r){if(r)i(r);elsetry{localStorage.setItem(a.keyPrefix+e,n),o(t)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||i(e),i(e)}})})});returnu(o,t),o},removeItem:function(e,n){vart=this;e=f(e);varr=t.ready().then(function(){varn=t._dbInfo;localStorage.removeItem(n.keyPrefix+e)});returnu(r,n),r},clear:function(e){varn=this,t=n.ready().then(function(){for(vare=n._dbInfo.keyPrefix,t=localStorage.length-1;t>=0;t--){varr=localStorage.key(t);0===r.indexOf(e)&&localStorage.removeItem(r)}});returnu(t,e),t},length:function(e){varn=this.keys().then(function(e){returne.length});returnu(n,e),n},key:function(e,n){vart=this,r=t.ready().then(function(){varn,r=t._dbInfo;try{n=localStorage.key(e)}catch(e){n=null}returnn&&(n=n.substring(r.keyPrefix.length)),n});returnu(r,n),r},keys:function(e){varn=this,t=n.ready().then(function(){for(vare=n._dbInfo,t=localStorage.length,r=[],o=0;o<t;o++){vari=localStorage.key(o);0===i.indexOf(e.keyPrefix)&&r.push(i.substring(e.keyPrefix.length))}returnr});returnu(t,e),t},dropInstance:function(e,n){if(n=s.apply(this,arguments),!(e="function"!=typeofe&&e||{}).name){vart=this.config();e.name=e.name||t.name,e.storeName=e.storeName||t.storeName}varr,o=this;returnu(r=e.name?newa(function(n){e.storeName?n(ee(e,o._defaultConfig)):n(e.name+"/")}).then(function(e){for(varn=localStorage.length-1;n>=0;n--){vart=localStorage.key(n);0===t.indexOf(e)&&localStorage.removeItem(t)}}):a.reject("Invalid arguments"),n),r}},re=function(e,n){for(vart,r,o=e.length,i=0;i<o;){if((t=e[i])===(r=n)||"number"==typeoft&&"number"==typeofr&&isNaN(t)&&isNaN(r))return!0;i++}return!1},oe=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},ie={},ae={},ue={INDEXEDDB:A,WEBSQL:$,LOCALSTORAGE:te},ce=[ue.INDEXEDDB._driver,ue.WEBSQL._driver,ue.LOCALSTORAGE._driver],fe=["dropInstance"],se=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(fe),le={description:"",driver:ce.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};functionde(e,n){e[n]=function(){vart=arguments;returne.ready().then(function(){returne[n].apply(e,t)})}}functionve(){for(vare=1;e<arguments.length;e++){varn=arguments[e];if(n)for(vartinn)n.hasOwnProperty(t)&&(oe(n[t])?arguments[0][t]=n[t].slice():arguments[0][t]=n[t])}returnarguments[0]}varhe=new(function(){functione(n){for(vartinfunction(e,n){if(!(einstanceofn))thrownewTypeError("Cannot call a class as a function")}(this,e),ue)if(ue.hasOwnProperty(t)){varr=ue[t],o=r._driver;this[t]=o,ie[o]||this.defineDriver(r)}this._defaultConfig=ve({},le),this._config=ve({},this._defaultConfig,n),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}returne.prototype.config=function(e){if("object"===(void0===e?"undefined":r(e))){if(this._ready)returnnewError("Can't call config() after localforage has been used.");for(varnine){if("storeName"===n&&(e[n]=e[n].replace(/\W/g,"_")),"version"===n&&"number"!=typeofe[n])returnnewError("Database version must be a number.");this._config[n]=e[n]}return!("driver"ine&&e.driver)||this.setDriver(this._config.driver)}return"string"==typeofe?this._config[e]:this._config},e.prototype.defineDriver=function(e,n,t){varr=newa(function(n,t){try{varr=e._driver,o=newError("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)returnvoidt(o);for(vari=se.concat("_initStorage"),c=0,f=i.length;c<f;c++){vars=i[c];if((!re(fe,s)||e[s])&&"function"!=typeofe[s])returnvoidt(o)}!function(){for(varn=function(e){returnfunction(){varn=newError("Method "+e+" is not implemented by the current driver"),t=a.reject(n);returnu(t,arguments[arguments.length-1]),t}},t=0,r=fe.length;t<r;t++){varo=fe[t];e[o]||(e[o]=n(o))}}();varl=function(t){ie[r]&&console.info("Redefining LocalForage driver: "+r),ie[r]=e,ae[r]=t,n()};"_support"ine?e._support&&"function"==typeofe._support?e._support().then(l,t):l(!!e._support):l(!0)}catch(e){t(e)}});returnc(r,n,t),r},e.prototype.driver=function(){returnthis._driver||null},e.prototype.getDriver=function(e,n,t){varr=ie[e]?a.resolve(ie[e]):a.reject(newError("Driver not found."));returnc(r,n,t),r},e.prototype.getSerializer=function(e){varn=a.resolve(V);returnc(n,e),n},e.prototype.ready=function(e){varn=this,t=n._driverSet.then(function(){returnnull===n._ready&&(n._ready=n._initDriver()),n._ready});returnc(t,e,e),t},e.prototype.setDriver=function(e,n,t){varr=this;oe(e)||(e=[e]);varo=this._getSupportedDrivers(e);functioni(){r._config.driver=r.driver()}functionu(e){returnr._extend(e),i(),r._ready=r._initStorage(r._config),r._ready}varf=null!==this._driverSet?this._driverSet.catch(function(){returna.resolve()}):a.resolve();returnthis._driverSet=f.then(function(){vare=o[0];returnr._dbInfo=null,r._ready=null,r.getDriver(e).then(function(e){r._driver=e._driver,i(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(e){returnfunction(){varn=0;returnfunctiont(){for(;n<e.length;){varo=e[n];returnn++,r._dbInfo=null,r._ready=null,r.getDriver(o).then(u).catch(t)}i();varc=newError("No available storage method found.");returnr._driverSet=a.reject(c),r._driverSet}()}}(o)})}).catch(function(){i();vare=newError("No available storage method found.");returnr._driverSet=a.reject(e),r._driverSet}),c(this._driverSet,n,t),this._driverSet},e.prototype.supports=function(e){return!!ae[e]},e.prototype._extend=function(e){ve(this,e)},e.prototype._getSupportedDrivers=function(e){for(varn=[],t=0,r=e.length;t<r;t++){varo=e[t];this.supports(o)&&n.push(o)}returnn},e.prototype._wrapLibraryMethodsWithReady=function(){for(vare=0,n=se.length;e<n;e++)de(this,se[e])},e.prototype.createInstance=function(n){returnnewe(n)},e}());n.exports=he},{3:3}]},{},[4])(4)})},function(e,n,t){"use strict";t.r(n);varr=t(0),o=t.n(r);functioni(){returnclients.matchAll({includeUncontrolled:!0}).then(function(e){returne.filter(function(e){return"window"===e.type})})}self.addEventListener("push",function(e){e.data&&e.waitUntil(o.a.getItem("vuex-lz").then(function(e){returne.config.webPushNotifications}).then(function(n){returnn&&i().then(function(n){vart=e.data.json();if(0===n.length)returnself.registration.showNotification(t.title,t)})}))}),self.addEventListener("notificationclick",function(e){e.notification.close(),e.waitUntil(i().then(function(e){for(varn=0;n<e.length;n++){vart=e[n];if("/"===t.url&&"focus"int)returnt.focus()}if(clients.openWindow)returnclients.openWindow("/")}))})}]);