/*! For license information please see pages-SearchPage.839b0809.chunk.js.LICENSE.txt */
(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[0],{"+/7S":function(t,e,n){n("Rvgf")("iterator")},"+BqG":function(t,e,n){var r=n("4wiq"),o=n("RpL+"),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},"+K+b":function(t,e,n){var r=n("JHRd");t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},"+U1h":function(t,e,n){var r=n("03ZO"),o=n("Y6hy"),i=n("B0s0");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(a){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},"+YUa":function(t,e,n){"use strict";var r=n("Yo2p"),o=n("Bw1r"),i=n("hkIh"),a=n("53GT"),s=n("xnEm").f,u=n("1Vnf"),c=n("HkKV"),l=n("DcKJ"),f=n("W2Ac"),h=a.set,p=a.getterFor("Array Iterator");t.exports=u(Array,"Array",(function(t,e){h(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,c(void 0,!0)):c("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values");var d=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==d.name)try{s(d,"name",{value:"values"})}catch(v){}},"+iFO":function(t,e,n){var r=n("dTAl"),o=n("LcsW"),i=n("6sVZ");t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(t))}},"/sSW":function(t,e,n){var r=n("+BqG"),o=n("LIjv"),i=n("jfrp"),a=n("xnEm");t.exports=function(t,e,n){for(var s=o(e),u=a.f,c=i.f,l=0;l<s.length;l++){var f=s[l];r(t,f)||n&&r(n,f)||u(t,f,c(e,f))}}},"031f":function(t,e,n){"use strict";var r=n("4wiq"),o=n("pROP"),i=n("mESY"),a=n("+BqG"),s=n("Gjit"),u=n("orrc"),c=Function,l=r([].concat),f=r([].join),h={},p=function(t,e,n){if(!a(h,e)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";h[e]=c("C,a","return new C("+f(r,",")+")")}return h[e](t,n)};t.exports=u?c.bind:function(t){var e=o(this),n=e.prototype,r=s(arguments,1),a=function(){var n=l(r,s(arguments));return this instanceof a?p(e,n.length,n):e.apply(t,n)};return i(n)&&(a.prototype=n),a}},"03ZO":function(t,e,n){var r=n("4wiq"),o=n("pROP");t.exports=function(t,e,n){try{return r(o(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(i){}}},"0dUG":function(t,e,n){var r=n("xZj3");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"1+5i":function(t,e,n){var r=n("w/wX"),o=n("sEf8"),i=n("mdPL"),a=i&&i.isSet,s=a?o(a):r;t.exports=s},"11UE":function(t,e,n){var r=n("tD7+");t.exports=function(t){return r(t.length)}},"1MgG":function(t,e,n){var r=n("4wiq"),o=n("xZj3"),i=n("eDf4"),a=n("+BqG"),s=n("W2Ac"),u=n("3mqj").CONFIGURABLE,c=n("52Wu"),l=n("53GT"),f=l.enforce,h=l.get,p=String,d=Object.defineProperty,v=r("".slice),y=r("".replace),m=r([].join),b=s&&!o((function(){return 8!==d((function(){}),"length",{value:8}).length})),g=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===v(p(e),0,7)&&(e="["+y(p(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||u&&t.name!==e)&&(s?d(t,"name",{value:e,configurable:!0}):t.name=e),b&&n&&a(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var r=f(t);return a(r,"source")||(r.source=m(g,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return i(this)&&h(this).source||c(this)}),"toString")},"1Vnf":function(t,e,n){"use strict";var r=n("szlw"),o=n("JVs5"),i=n("DcKJ"),a=n("3mqj"),s=n("eDf4"),u=n("aS5Z"),c=n("PEQI"),l=n("+U1h"),f=n("e1XL"),h=n("w1io"),p=n("esM1"),d=n("4Tei"),v=n("hkIh"),y=n("Q7rv"),m=a.PROPER,b=a.CONFIGURABLE,g=y.IteratorPrototype,w=y.BUGGY_SAFARI_ITERATORS,x=d("iterator"),_=function(){return this};t.exports=function(t,e,n,a,d,y,S){u(n,e,a);var O,k,j,E=function(t){if(t===d&&C)return C;if(!w&&t in P)return P[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},A=e+" Iterator",T=!1,P=t.prototype,I=P[x]||P["@@iterator"]||d&&P[d],C=!w&&I||E(d),D="Array"==e&&P.entries||I;if(D&&(O=c(D.call(new t)))!==Object.prototype&&O.next&&(i||c(O)===g||(l?l(O,g):s(O[x])||p(O,x,_)),f(O,A,!0,!0),i&&(v[A]=_)),m&&"values"==d&&I&&"values"!==I.name&&(!i&&b?h(P,"name","values"):(T=!0,C=function(){return o(I,this)})),d)if(k={values:E("values"),keys:y?C:E("keys"),entries:E("entries")},S)for(j in k)(w||T||!(j in P))&&p(P,j,k[j]);else r({target:e,proto:!0,forced:w||T},k);return i&&!S||P[x]===C||p(P,x,C,{name:d}),v[e]=C,k}},"2JmJ":function(t,e,n){var r=n("DsG2"),o=n("eDf4"),i=n("Dr2v"),a=n("4Tei")("toStringTag"),s=Object,u="Arguments"==i(function(){return arguments}());t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=s(t),a))?n:u?i(e):"Object"==(r=i(e))&&o(e.callee)?"Arguments":r}},"35Mb":function(t,e,n){"use strict";n.d(e,"b",(function(){return nr})),n.d(e,"a",(function(){return rr}));var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function o(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}var i="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,a=Object.keys,s=Array.isArray;function u(t,e){return"object"!==typeof e||a(e).forEach((function(n){t[n]=e[n]})),t}"undefined"===typeof Promise||i.Promise||(i.Promise=Promise);var c=Object.getPrototypeOf,l={}.hasOwnProperty;function f(t,e){return l.call(t,e)}function h(t,e){"function"===typeof e&&(e=e(c(t))),("undefined"===typeof Reflect?a:Reflect.ownKeys)(e).forEach((function(n){d(t,n,e[n])}))}var p=Object.defineProperty;function d(t,e,n,r){p(t,e,u(n&&f(n,"get")&&"function"===typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function v(t){return{from:function(e){return t.prototype=Object.create(e.prototype),d(t.prototype,"constructor",t),{extend:h.bind(null,t.prototype)}}}}var y=Object.getOwnPropertyDescriptor;function m(t,e){var n;return y(t,e)||(n=c(t))&&m(n,e)}var b=[].slice;function g(t,e,n){return b.call(t,e,n)}function w(t,e){return e(t)}function x(t){if(!t)throw new Error("Assertion Failed")}function _(t){i.setImmediate?setImmediate(t):setTimeout(t,0)}function S(t,e){return t.reduce((function(t,n,r){var o=e(n,r);return o&&(t[o[0]]=o[1]),t}),{})}function O(t,e){if(f(t,e))return t[e];if(!e)return t;if("string"!==typeof e){for(var n=[],r=0,o=e.length;r<o;++r){var i=O(t,e[r]);n.push(i)}return n}var a=e.indexOf(".");if(-1!==a){var s=t[e.substr(0,a)];return void 0===s?void 0:O(s,e.substr(a+1))}}function k(t,e,n){if(t&&void 0!==e&&(!("isFrozen"in Object)||!Object.isFrozen(t)))if("string"!==typeof e&&"length"in e){x("string"!==typeof n&&"length"in n);for(var r=0,o=e.length;r<o;++r)k(t,e[r],n[r])}else{var i=e.indexOf(".");if(-1!==i){var a=e.substr(0,i),u=e.substr(i+1);if(""===u)void 0===n?s(t)&&!isNaN(parseInt(a))?t.splice(a,1):delete t[a]:t[a]=n;else{var c=t[a];c&&f(t,a)||(c=t[a]={}),k(c,u,n)}}else void 0===n?s(t)&&!isNaN(parseInt(e))?t.splice(e,1):delete t[e]:t[e]=n}}function j(t){var e={};for(var n in t)f(t,n)&&(e[n]=t[n]);return e}var E=[].concat;function A(t){return E.apply([],t)}var T="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(A([8,16,32,64].map((function(t){return["Int","Uint","Float"].map((function(e){return e+t+"Array"}))})))).filter((function(t){return i[t]})),P=T.map((function(t){return i[t]}));S(T,(function(t){return[t,!0]}));var I=null;function C(t){I="undefined"!==typeof WeakMap&&new WeakMap;var e=function t(e){if(!e||"object"!==typeof e)return e;var n=I&&I.get(e);if(n)return n;if(s(e)){n=[],I&&I.set(e,n);for(var r=0,o=e.length;r<o;++r)n.push(t(e[r]))}else if(P.indexOf(e.constructor)>=0)n=e;else{var i=c(e);for(var a in n=i===Object.prototype?{}:Object.create(i),I&&I.set(e,n),e)f(e,a)&&(n[a]=t(e[a]))}return n}(t);return I=null,e}var D={}.toString;function K(t){return D.call(t).slice(8,-1)}var N="undefined"!==typeof Symbol?Symbol.iterator:"@@iterator",M="symbol"===typeof N?function(t){var e;return null!=t&&(e=t[N])&&e.apply(t)}:function(){return null},R={};function B(t){var e,n,r,o;if(1===arguments.length){if(s(t))return t.slice();if(this===R&&"string"===typeof t)return[t];if(o=M(t)){for(n=[];!(r=o.next()).done;)n.push(r.value);return n}if(null==t)return[t];if("number"===typeof(e=t.length)){for(n=new Array(e);e--;)n[e]=t[e];return n}return[t]}for(e=arguments.length,n=new Array(e);e--;)n[e]=arguments[e];return n}var F="undefined"!==typeof Symbol?function(t){return"AsyncFunction"===t[Symbol.toStringTag]}:function(){return!1},q="undefined"!==typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function L(t,e){q=t,z=e}var z=function(){return!0},G=!new Error("").stack;function H(){if(G)try{throw H.arguments,new Error}catch(t){return t}return new Error}function W(t,e){var n=t.stack;return n?(e=e||0,0===n.indexOf(t.name)&&(e+=(t.name+t.message).split("\n").length),n.split("\n").slice(e).filter(z).map((function(t){return"\n"+t})).join("")):""}var U=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Y=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(U),V={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function Z(t,e){this._e=H(),this.name=t,this.message=e}function Q(t,e){return t+". Errors: "+Object.keys(e).map((function(t){return e[t].toString()})).filter((function(t,e,n){return n.indexOf(t)===e})).join("\n")}function X(t,e,n,r){this._e=H(),this.failures=e,this.failedKeys=r,this.successCount=n,this.message=Q(t,e)}function J(t,e){this._e=H(),this.name="BulkError",this.failures=Object.keys(e).map((function(t){return e[t]})),this.failuresByPos=e,this.message=Q(t,e)}v(Z).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+W(this._e,2))}},toString:function(){return this.name+": "+this.message}}),v(X).from(Z),v(J).from(Z);var $=Y.reduce((function(t,e){return t[e]=e+"Error",t}),{}),tt=Z,et=Y.reduce((function(t,e){var n=e+"Error";function r(t,r){this._e=H(),this.name=n,t?"string"===typeof t?(this.message=t+(r?"\n "+r:""),this.inner=r||null):"object"===typeof t&&(this.message=t.name+" "+t.message,this.inner=t):(this.message=V[e]||n,this.inner=null)}return v(r).from(tt),t[e]=r,t}),{});et.Syntax=SyntaxError,et.Type=TypeError,et.Range=RangeError;var nt=U.reduce((function(t,e){return t[e+"Error"]=et[e],t}),{});var rt=Y.reduce((function(t,e){return-1===["Syntax","Type","Range"].indexOf(e)&&(t[e+"Error"]=et[e]),t}),{});function ot(){}function it(t){return t}function at(t,e){return null==t||t===it?e:function(n){return e(t(n))}}function st(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function ut(t,e){return t===ot?e:function(){var n=t.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var i=e.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?st(r,this.onsuccess):r),o&&(this.onerror=this.onerror?st(o,this.onerror):o),void 0!==i?i:n}}function ct(t,e){return t===ot?e:function(){t.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,e.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?st(n,this.onsuccess):n),r&&(this.onerror=this.onerror?st(r,this.onerror):r)}}function lt(t,e){return t===ot?e:function(n){var r=t.apply(this,arguments);u(n,r);var o=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var a=e.apply(this,arguments);return o&&(this.onsuccess=this.onsuccess?st(o,this.onsuccess):o),i&&(this.onerror=this.onerror?st(i,this.onerror):i),void 0===r?void 0===a?void 0:a:u(r,a)}}function ft(t,e){return t===ot?e:function(){return!1!==e.apply(this,arguments)&&t.apply(this,arguments)}}function ht(t,e){return t===ot?e:function(){var n=t.apply(this,arguments);if(n&&"function"===typeof n.then){for(var r=this,o=arguments.length,i=new Array(o);o--;)i[o]=arguments[o];return n.then((function(){return e.apply(r,i)}))}return e.apply(this,arguments)}}rt.ModifyError=X,rt.DexieError=Z,rt.BulkError=J;var pt={},dt="undefined"===typeof Promise?[]:function(){var t=Promise.resolve();if("undefined"===typeof crypto||!crypto.subtle)return[t,c(t),t];var e=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[e,c(e),t]}(),vt=dt[0],yt=dt[1],mt=dt[2],bt=yt&&yt.then,gt=vt&&vt.constructor,wt=!!mt,xt=!1,_t=mt?function(){mt.then(Ht)}:i.setImmediate?setImmediate.bind(null,Ht):i.MutationObserver?function(){var t=document.createElement("div");new MutationObserver((function(){Ht(),t=null})).observe(t,{attributes:!0}),t.setAttribute("i","1")}:function(){setTimeout(Ht,0)},St=function(t,e){Ct.push([t,e]),kt&&(_t(),kt=!1)},Ot=!0,kt=!0,jt=[],Et=[],At=null,Tt=it,Pt={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:de,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((function(t){try{de(t[0],t[1])}catch(e){}}))}},It=Pt,Ct=[],Dt=0,Kt=[];function Nt(t){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=ot,this._lib=!1;var e=this._PSD=It;if(q&&(this._stackHolder=H(),this._prev=null,this._numPrev=0),"function"!==typeof t){if(t!==pt)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Ft(this,this._value))}this._state=null,this._value=null,++e.ref,Bt(this,t)}var Mt={get:function(){var t=It,e=te;function n(n,r){var o=this,i=!t.global&&(t!==It||e!==te),a=i&&!oe(),s=new Nt((function(e,s){Lt(o,new Rt(he(n,t,i,a),he(r,t,i,a),e,s,t))}));return q&&Gt(s,this),s}return n.prototype=pt,n},set:function(t){d(this,"then",t&&t.prototype===pt?Mt:{get:function(){return t},set:Mt.set})}};function Rt(t,e,n,r,o){this.onFulfilled="function"===typeof t?t:null,this.onRejected="function"===typeof e?e:null,this.resolve=n,this.reject=r,this.psd=o}function Bt(t,e){try{e((function(e){if(null===t._state){if(e===t)throw new TypeError("A promise cannot be resolved with itself.");var n=t._lib&&Wt();e&&"function"===typeof e.then?Bt(t,(function(t,n){e instanceof Nt?e._then(t,n):e.then(t,n)})):(t._state=!0,t._value=e,qt(t)),n&&Ut()}}),Ft.bind(null,t))}catch(n){Ft(t,n)}}function Ft(t,e){if(Et.push(e),null===t._state){var n=t._lib&&Wt();e=Tt(e),t._state=!1,t._value=e,q&&null!==e&&"object"===typeof e&&!e._promise&&function(t,e,n){try{t.apply(null,n)}catch(r){e&&e(r)}}((function(){var n=m(e,"stack");e._promise=t,d(e,"stack",{get:function(){return xt?n&&(n.get?n.get.apply(e):n.value):t.stack}})})),function(t){jt.some((function(e){return e._value===t._value}))||jt.push(t)}(t),qt(t),n&&Ut()}}function qt(t){var e=t._listeners;t._listeners=[];for(var n=0,r=e.length;n<r;++n)Lt(t,e[n]);var o=t._PSD;--o.ref||o.finalize(),0===Dt&&(++Dt,St((function(){0===--Dt&&Yt()}),[]))}function Lt(t,e){if(null!==t._state){var n=t._state?e.onFulfilled:e.onRejected;if(null===n)return(t._state?e.resolve:e.reject)(t._value);++e.psd.ref,++Dt,St(zt,[n,t,e])}else t._listeners.push(e)}function zt(t,e,n){try{At=e;var r,o=e._value;e._state?r=t(o):(Et.length&&(Et=[]),r=t(o),-1===Et.indexOf(o)&&function(t){var e=jt.length;for(;e;)if(jt[--e]._value===t._value)return void jt.splice(e,1)}(e)),n.resolve(r)}catch(i){n.reject(i)}finally{At=null,0===--Dt&&Yt(),--n.psd.ref||n.psd.finalize()}}function Gt(t,e){var n=e?e._numPrev+1:0;n<100&&(t._prev=e,t._numPrev=n)}function Ht(){Wt()&&Ut()}function Wt(){var t=Ot;return Ot=!1,kt=!1,t}function Ut(){var t,e,n;do{for(;Ct.length>0;)for(t=Ct,Ct=[],n=t.length,e=0;e<n;++e){var r=t[e];r[0].apply(null,r[1])}}while(Ct.length>0);Ot=!0,kt=!0}function Yt(){var t=jt;jt=[],t.forEach((function(t){t._PSD.onunhandled.call(null,t._value,t)}));for(var e=Kt.slice(0),n=e.length;n;)e[--n]()}function Vt(t){return new Nt(pt,!1,t)}function Zt(t,e){var n=It;return function(){var r=Wt(),o=It;try{return ue(n,!0),t.apply(this,arguments)}catch(i){e&&e(i)}finally{ue(o,!1),r&&Ut()}}}h(Nt.prototype,{then:Mt,_then:function(t,e){Lt(this,new Rt(null,null,t,e,It))},catch:function(t){if(1===arguments.length)return this.then(null,t);var e=arguments[0],n=arguments[1];return"function"===typeof e?this.then(null,(function(t){return t instanceof e?n(t):Vt(t)})):this.then(null,(function(t){return t&&t.name===e?n(t):Vt(t)}))},finally:function(t){return this.then((function(e){return t(),e}),(function(e){return t(),Vt(e)}))},stack:{get:function(){if(this._stack)return this._stack;try{xt=!0;var t=function t(e,n,r){if(n.length===r)return n;var o="";if(!1===e._state){var i,a,s=e._value;null!=s?(i=s.name||"Error",a=s.message||s,o=W(s,0)):(i=s,a=""),n.push(i+(a?": "+a:"")+o)}q&&((o=W(e._stackHolder,2))&&-1===n.indexOf(o)&&n.push(o),e._prev&&t(e._prev,n,r));return n}(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=t),t}finally{xt=!1}}},timeout:function(t,e){var n=this;return t<1/0?new Nt((function(r,o){var i=setTimeout((function(){return o(new et.Timeout(e))}),t);n.then(r,o).finally(clearTimeout.bind(null,i))})):this}}),"undefined"!==typeof Symbol&&Symbol.toStringTag&&d(Nt.prototype,Symbol.toStringTag,"Dexie.Promise"),Pt.env=ce(),h(Nt,{all:function(){var t=B.apply(null,arguments).map(ie);return new Nt((function(e,n){0===t.length&&e([]);var r=t.length;t.forEach((function(o,i){return Nt.resolve(o).then((function(n){t[i]=n,--r||e(t)}),n)}))}))},resolve:function(t){if(t instanceof Nt)return t;if(t&&"function"===typeof t.then)return new Nt((function(e,n){t.then(e,n)}));var e=new Nt(pt,!0,t);return Gt(e,At),e},reject:Vt,race:function(){var t=B.apply(null,arguments).map(ie);return new Nt((function(e,n){t.map((function(t){return Nt.resolve(t).then(e,n)}))}))},PSD:{get:function(){return It},set:function(t){return It=t}},totalEchoes:{get:function(){return te}},newPSD:ne,usePSD:le,scheduler:{get:function(){return St},set:function(t){St=t}},rejectionMapper:{get:function(){return Tt},set:function(t){Tt=t}},follow:function(t,e){return new Nt((function(n,r){return ne((function(e,n){var r=It;r.unhandleds=[],r.onunhandled=n,r.finalize=st((function(){var t=this;!function(t){Kt.push((function e(){t(),Kt.splice(Kt.indexOf(e),1)})),++Dt,St((function(){0===--Dt&&Yt()}),[])}((function(){0===t.unhandleds.length?e():n(t.unhandleds[0])}))}),r.finalize),t()}),e,n,r)}))}}),gt&&(gt.allSettled&&d(Nt,"allSettled",(function(){var t=B.apply(null,arguments).map(ie);return new Nt((function(e){0===t.length&&e([]);var n=t.length,r=new Array(n);t.forEach((function(t,o){return Nt.resolve(t).then((function(t){return r[o]={status:"fulfilled",value:t}}),(function(t){return r[o]={status:"rejected",reason:t}})).then((function(){return--n||e(r)}))}))}))})),gt.any&&"undefined"!==typeof AggregateError&&d(Nt,"any",(function(){var t=B.apply(null,arguments).map(ie);return new Nt((function(e,n){0===t.length&&n(new AggregateError([]));var r=t.length,o=new Array(r);t.forEach((function(t,i){return Nt.resolve(t).then((function(t){return e(t)}),(function(t){o[i]=t,--r||n(new AggregateError(o))}))}))}))})));var Qt={awaits:0,echoes:0,id:0},Xt=0,Jt=[],$t=0,te=0,ee=0;function ne(t,e,n,r){var o=It,i=Object.create(o);i.parent=o,i.ref=0,i.global=!1,i.id=++ee;var a=Pt.env;i.env=wt?{Promise:Nt,PromiseProp:{value:Nt,configurable:!0,writable:!0},all:Nt.all,race:Nt.race,allSettled:Nt.allSettled,any:Nt.any,resolve:Nt.resolve,reject:Nt.reject,nthen:pe(a.nthen,i),gthen:pe(a.gthen,i)}:{},e&&u(i,e),++o.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var s=le(i,t,n,r);return 0===i.ref&&i.finalize(),s}function re(){return Qt.id||(Qt.id=++Xt),++Qt.awaits,Qt.echoes+=100,Qt.id}function oe(){return!!Qt.awaits&&(0===--Qt.awaits&&(Qt.id=0),Qt.echoes=100*Qt.awaits,!0)}function ie(t){return Qt.echoes&&t&&t.constructor===gt?(re(),t.then((function(t){return oe(),t}),(function(t){return oe(),ve(t)}))):t}function ae(t){++te,Qt.echoes&&0!==--Qt.echoes||(Qt.echoes=Qt.id=0),Jt.push(It),ue(t,!0)}function se(){var t=Jt[Jt.length-1];Jt.pop(),ue(t,!1)}function ue(t,e){var n=It;if((e?!Qt.echoes||$t++&&t===It:!$t||--$t&&t===It)||fe(e?ae.bind(null,t):se),t!==It&&(It=t,n===Pt&&(Pt.env=ce()),wt)){var r=Pt.env.Promise,o=t.env;yt.then=o.nthen,r.prototype.then=o.gthen,(n.global||t.global)&&(Object.defineProperty(i,"Promise",o.PromiseProp),r.all=o.all,r.race=o.race,r.resolve=o.resolve,r.reject=o.reject,o.allSettled&&(r.allSettled=o.allSettled),o.any&&(r.any=o.any))}}function ce(){var t=i.Promise;return wt?{Promise:t,PromiseProp:Object.getOwnPropertyDescriptor(i,"Promise"),all:t.all,race:t.race,allSettled:t.allSettled,any:t.any,resolve:t.resolve,reject:t.reject,nthen:yt.then,gthen:t.prototype.then}:{}}function le(t,e,n,r,o){var i=It;try{return ue(t,!0),e(n,r,o)}finally{ue(i,!1)}}function fe(t){bt.call(vt,t)}function he(t,e,n,r){return"function"!==typeof t?t:function(){var o=It;n&&re(),ue(e,!0);try{return t.apply(this,arguments)}finally{ue(o,!1),r&&fe(oe)}}}function pe(t,e){return function(n,r){return t.call(this,he(n,e),he(r,e))}}-1===(""+bt).indexOf("[native code]")&&(re=oe=ot);function de(t,e){var n;try{n=e.onuncatched(t)}catch(a){}if(!1!==n)try{var r,o={promise:e,reason:t};if(i.document&&document.createEvent?((r=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),u(r,o)):i.CustomEvent&&u(r=new CustomEvent("unhandledrejection",{detail:o}),o),r&&i.dispatchEvent&&(dispatchEvent(r),!i.PromiseRejectionEvent&&i.onunhandledrejection))try{i.onunhandledrejection(r)}catch(s){}q&&r&&!r.defaultPrevented&&console.warn("Unhandled rejection: "+(t.stack||t))}catch(a){}}var ve=Nt.reject;var ye=String.fromCharCode(65535),me="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",be=[],ge="undefined"!==typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),we=ge,xe=ge,_e=function(t){return!/(dexie\.js|dexie\.min\.js)/.test(t)};function Se(t,e){return t?e?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:t:e}var Oe={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function ke(t){return"string"!==typeof t||/\./.test(t)?function(t){return t}:function(e){return void 0===e[t]&&t in e&&delete(e=C(e))[t],e}}var je=function(){function t(){}return t.prototype._trans=function(t,e,n){var r=this._tx||It.trans,o=this.name;function i(t,n,r){if(!r.schema[o])throw new et.NotFound("Table "+o+" not part of transaction");return e(r.idbtrans,r)}var a=Wt();try{return r&&r.db===this.db?r===It.trans?r._promise(t,i,n):ne((function(){return r._promise(t,i,n)}),{trans:r,transless:It.transless||It}):function t(e,n,r,o){if(e.idbdb&&(e._state.openComplete||It.letThrough||e._vip)){var i=e._createTransaction(n,r,e._dbSchema);try{i.create(),e._state.PR1398_maxLoop=3}catch(a){return a.name===$.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((function(){return t(e,n,r,o)}))):ve(a)}return i._promise(n,(function(t,e){return ne((function(){return It.trans=i,o(t,e,i)}))})).then((function(t){return i._completion.then((function(){return t}))}))}if(e._state.openComplete)return ve(new et.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return ve(new et.DatabaseClosed);e.open().catch(ot)}return e._state.dbReadyPromise.then((function(){return t(e,n,r,o)}))}(this.db,t,[this.name],i)}finally{a&&Ut()}},t.prototype.get=function(t,e){var n=this;return t&&t.constructor===Object?this.where(t).first(e):this._trans("readonly",(function(e){return n.core.get({trans:e,key:t}).then((function(t){return n.hook.reading.fire(t)}))})).then(e)},t.prototype.where=function(t){if("string"===typeof t)return new this.db.WhereClause(this,t);if(s(t))return new this.db.WhereClause(this,"["+t.join("+")+"]");var e=a(t);if(1===e.length)return this.where(e[0]).equals(t[e[0]]);var n=this.schema.indexes.concat(this.schema.primKey).filter((function(t){return t.compound&&e.every((function(e){return t.keyPath.indexOf(e)>=0}))&&t.keyPath.every((function(t){return e.indexOf(t)>=0}))}))[0];if(n&&this.db._maxKey!==ye)return this.where(n.name).equals(n.keyPath.map((function(e){return t[e]})));!n&&q&&console.warn("The query "+JSON.stringify(t)+" on "+this.name+" would benefit of a compound index ["+e.join("+")+"]");var r=this.schema.idxByName,o=this.db._deps.indexedDB;function i(t,e){try{return 0===o.cmp(t,e)}catch(n){return!1}}var u=e.reduce((function(e,n){var o=e[0],a=e[1],u=r[n],c=t[n];return[o||u,o||!u?Se(a,u&&u.multi?function(t){var e=O(t,n);return s(e)&&e.some((function(t){return i(c,t)}))}:function(t){return i(c,O(t,n))}):a]}),[null,null]),c=u[0],l=u[1];return c?this.where(c.name).equals(t[c.keyPath]).filter(l):n?this.filter(l):this.where(e).equals("")},t.prototype.filter=function(t){return this.toCollection().and(t)},t.prototype.count=function(t){return this.toCollection().count(t)},t.prototype.offset=function(t){return this.toCollection().offset(t)},t.prototype.limit=function(t){return this.toCollection().limit(t)},t.prototype.each=function(t){return this.toCollection().each(t)},t.prototype.toArray=function(t){return this.toCollection().toArray(t)},t.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},t.prototype.orderBy=function(t){return new this.db.Collection(new this.db.WhereClause(this,s(t)?"["+t.join("+")+"]":t))},t.prototype.reverse=function(){return this.toCollection().reverse()},t.prototype.mapToClass=function(t){this.schema.mappedClass=t;var e=function(e){if(!e)return e;var n=Object.create(t.prototype);for(var r in e)if(f(e,r))try{n[r]=e[r]}catch(o){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=e,this.hook("reading",e),t},t.prototype.defineClass=function(){return this.mapToClass((function(t){u(this,t)}))},t.prototype.add=function(t,e){var n=this,r=this.schema.primKey,o=r.auto,i=r.keyPath,a=t;return i&&o&&(a=ke(i)(t)),this._trans("readwrite",(function(t){return n.core.mutate({trans:t,type:"add",keys:null!=e?[e]:null,values:[a]})})).then((function(t){return t.numFailures?Nt.reject(t.failures[0]):t.lastResult})).then((function(e){if(i)try{k(t,i,e)}catch(n){}return e}))},t.prototype.update=function(t,e){if("object"!==typeof t||s(t))return this.where(":id").equals(t).modify(e);var n=O(t,this.schema.primKey.keyPath);if(void 0===n)return ve(new et.InvalidArgument("Given object does not contain its primary key"));try{"function"!==typeof e?a(e).forEach((function(n){k(t,n,e[n])})):e(t,{value:t,primKey:n})}catch(Mn){}return this.where(":id").equals(n).modify(e)},t.prototype.put=function(t,e){var n=this,r=this.schema.primKey,o=r.auto,i=r.keyPath,a=t;return i&&o&&(a=ke(i)(t)),this._trans("readwrite",(function(t){return n.core.mutate({trans:t,type:"put",values:[a],keys:null!=e?[e]:null})})).then((function(t){return t.numFailures?Nt.reject(t.failures[0]):t.lastResult})).then((function(e){if(i)try{k(t,i,e)}catch(n){}return e}))},t.prototype.delete=function(t){var e=this;return this._trans("readwrite",(function(n){return e.core.mutate({trans:n,type:"delete",keys:[t]})})).then((function(t){return t.numFailures?Nt.reject(t.failures[0]):void 0}))},t.prototype.clear=function(){var t=this;return this._trans("readwrite",(function(e){return t.core.mutate({trans:e,type:"deleteRange",range:Oe})})).then((function(t){return t.numFailures?Nt.reject(t.failures[0]):void 0}))},t.prototype.bulkGet=function(t){var e=this;return this._trans("readonly",(function(n){return e.core.getMany({keys:t,trans:n}).then((function(t){return t.map((function(t){return e.hook.reading.fire(t)}))}))}))},t.prototype.bulkAdd=function(t,e,n){var r=this,o=Array.isArray(e)?e:void 0,i=(n=n||(o?void 0:e))?n.allKeys:void 0;return this._trans("readwrite",(function(e){var n=r.schema.primKey,a=n.auto,s=n.keyPath;if(s&&o)throw new et.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(o&&o.length!==t.length)throw new et.InvalidArgument("Arguments objects and keys must have the same length");var u=t.length,c=s&&a?t.map(ke(s)):t;return r.core.mutate({trans:e,type:"add",keys:o,values:c,wantResults:i}).then((function(t){var e=t.numFailures,n=t.results,o=t.lastResult,a=t.failures;if(0===e)return i?n:o;throw new J(r.name+".bulkAdd(): "+e+" of "+u+" operations failed",a)}))}))},t.prototype.bulkPut=function(t,e,n){var r=this,o=Array.isArray(e)?e:void 0,i=(n=n||(o?void 0:e))?n.allKeys:void 0;return this._trans("readwrite",(function(e){var n=r.schema.primKey,a=n.auto,s=n.keyPath;if(s&&o)throw new et.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(o&&o.length!==t.length)throw new et.InvalidArgument("Arguments objects and keys must have the same length");var u=t.length,c=s&&a?t.map(ke(s)):t;return r.core.mutate({trans:e,type:"put",keys:o,values:c,wantResults:i}).then((function(t){var e=t.numFailures,n=t.results,o=t.lastResult,a=t.failures;if(0===e)return i?n:o;throw new J(r.name+".bulkPut(): "+e+" of "+u+" operations failed",a)}))}))},t.prototype.bulkDelete=function(t){var e=this,n=t.length;return this._trans("readwrite",(function(n){return e.core.mutate({trans:n,type:"delete",keys:t})})).then((function(t){var r=t.numFailures,o=t.lastResult,i=t.failures;if(0===r)return o;throw new J(e.name+".bulkDelete(): "+r+" of "+n+" operations failed",i)}))},t}();function Ee(t){var e={},n=function(n,r){if(r){for(var o=arguments.length,i=new Array(o-1);--o;)i[o-1]=arguments[o];return e[n].subscribe.apply(null,i),t}if("string"===typeof n)return e[n]};n.addEventType=i;for(var r=1,o=arguments.length;r<o;++r)i(arguments[r]);return n;function i(t,r,o){if("object"===typeof t)return u(t);r||(r=ft),o||(o=ot);var i={subscribers:[],fire:o,subscribe:function(t){-1===i.subscribers.indexOf(t)&&(i.subscribers.push(t),i.fire=r(i.fire,t))},unsubscribe:function(t){i.subscribers=i.subscribers.filter((function(e){return e!==t})),i.fire=i.subscribers.reduce(r,o)}};return e[t]=n[t]=i,i}function u(t){a(t).forEach((function(e){var n=t[e];if(s(n))i(e,t[e][0],t[e][1]);else{if("asap"!==n)throw new et.InvalidArgument("Invalid event config");var r=i(e,it,(function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];r.subscribers.forEach((function(t){_((function(){t.apply(null,e)}))}))}))}}))}}function Ae(t,e){return v(e).from({prototype:t}),e}function Te(t,e){return!(t.filter||t.algorithm||t.or)&&(e?t.justLimit:!t.replayFilter)}function Pe(t,e){t.filter=Se(t.filter,e)}function Ie(t,e,n){var r=t.replayFilter;t.replayFilter=r?function(){return Se(r(),e())}:e,t.justLimit=n&&!r}function Ce(t,e){if(t.isPrimKey)return e.primaryKey;var n=e.getIndexByKeyPath(t.index);if(!n)throw new et.Schema("KeyPath "+t.index+" on object store "+e.name+" is not indexed");return n}function De(t,e,n){var r=Ce(t,e.schema);return e.openCursor({trans:n,values:!t.keysOnly,reverse:"prev"===t.dir,unique:!!t.unique,query:{index:r,range:t.range}})}function Ke(t,e,n,r){var o=t.replayFilter?Se(t.filter,t.replayFilter()):t.filter;if(t.or){var i={},a=function(t,n,r){if(!o||o(n,r,(function(t){return n.stop(t)}),(function(t){return n.fail(t)}))){var a=n.primaryKey,s=""+a;"[object ArrayBuffer]"===s&&(s=""+new Uint8Array(a)),f(i,s)||(i[s]=!0,e(t,n,r))}};return Promise.all([t.or._iterate(a,n),Ne(De(t,r,n),t.algorithm,a,!t.keysOnly&&t.valueMapper)])}return Ne(De(t,r,n),Se(t.algorithm,o),e,!t.keysOnly&&t.valueMapper)}function Ne(t,e,n,r){var o=Zt(r?function(t,e,o){return n(r(t),e,o)}:n);return t.then((function(t){if(t)return t.start((function(){var n=function(){return t.continue()};e&&!e(t,(function(t){return n=t}),(function(e){t.stop(e),n=ot}),(function(e){t.fail(e),n=ot}))||o(t.value,t,(function(t){return n=t})),n()}))}))}function Me(t,e){try{var n=Re(t),r=Re(e);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return t>e?1:t<e?-1:0;case"binary":return function(t,e){for(var n=t.length,r=e.length,o=n<r?n:r,i=0;i<o;++i)if(t[i]!==e[i])return t[i]<e[i]?-1:1;return n===r?0:n<r?-1:1}(Be(t),Be(e));case"Array":return function(t,e){for(var n=t.length,r=e.length,o=n<r?n:r,i=0;i<o;++i){var a=Me(t[i],e[i]);if(0!==a)return a}return n===r?0:n<r?-1:1}(t,e)}}catch(Mn){}return NaN}function Re(t){var e=typeof t;if("object"!==e)return e;if(ArrayBuffer.isView(t))return"binary";var n=K(t);return"ArrayBuffer"===n?"binary":n}function Be(t){return t instanceof Uint8Array?t:ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(t)}var Fe=function(){function t(){}return t.prototype._read=function(t,e){var n=this._ctx;return n.error?n.table._trans(null,ve.bind(null,n.error)):n.table._trans("readonly",t).then(e)},t.prototype._write=function(t){var e=this._ctx;return e.error?e.table._trans(null,ve.bind(null,e.error)):e.table._trans("readwrite",t,"locked")},t.prototype._addAlgorithm=function(t){var e=this._ctx;e.algorithm=Se(e.algorithm,t)},t.prototype._iterate=function(t,e){return Ke(this._ctx,t,e,this._ctx.table.core)},t.prototype.clone=function(t){var e=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return t&&u(n,t),e._ctx=n,e},t.prototype.raw=function(){return this._ctx.valueMapper=null,this},t.prototype.each=function(t){var e=this._ctx;return this._read((function(n){return Ke(e,t,n,e.table.core)}))},t.prototype.count=function(t){var e=this;return this._read((function(t){var n=e._ctx,r=n.table.core;if(Te(n,!0))return r.count({trans:t,query:{index:Ce(n,r.schema),range:n.range}}).then((function(t){return Math.min(t,n.limit)}));var o=0;return Ke(n,(function(){return++o,!1}),t,r).then((function(){return o}))})).then(t)},t.prototype.sortBy=function(t,e){var n=t.split(".").reverse(),r=n[0],o=n.length-1;function i(t,e){return e?i(t[n[e]],e-1):t[r]}var a="next"===this._ctx.dir?1:-1;function s(t,e){var n=i(t,o),r=i(e,o);return n<r?-a:n>r?a:0}return this.toArray((function(t){return t.sort(s)})).then(e)},t.prototype.toArray=function(t){var e=this;return this._read((function(t){var n=e._ctx;if("next"===n.dir&&Te(n,!0)&&n.limit>0){var r=n.valueMapper,o=Ce(n,n.table.core.schema);return n.table.core.query({trans:t,limit:n.limit,values:!0,query:{index:o,range:n.range}}).then((function(t){var e=t.result;return r?e.map(r):e}))}var i=[];return Ke(n,(function(t){return i.push(t)}),t,n.table.core).then((function(){return i}))}),t)},t.prototype.offset=function(t){var e=this._ctx;return t<=0||(e.offset+=t,Te(e)?Ie(e,(function(){var e=t;return function(t,n){return 0===e||(1===e?(--e,!1):(n((function(){t.advance(e),e=0})),!1))}})):Ie(e,(function(){var e=t;return function(){return--e<0}}))),this},t.prototype.limit=function(t){return this._ctx.limit=Math.min(this._ctx.limit,t),Ie(this._ctx,(function(){var e=t;return function(t,n,r){return--e<=0&&n(r),e>=0}}),!0),this},t.prototype.until=function(t,e){return Pe(this._ctx,(function(n,r,o){return!t(n.value)||(r(o),e)})),this},t.prototype.first=function(t){return this.limit(1).toArray((function(t){return t[0]})).then(t)},t.prototype.last=function(t){return this.reverse().first(t)},t.prototype.filter=function(t){var e,n;return Pe(this._ctx,(function(e){return t(e.value)})),e=this._ctx,n=t,e.isMatch=Se(e.isMatch,n),this},t.prototype.and=function(t){return this.filter(t)},t.prototype.or=function(t){return new this.db.WhereClause(this._ctx.table,t,this)},t.prototype.reverse=function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},t.prototype.desc=function(){return this.reverse()},t.prototype.eachKey=function(t){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each((function(e,n){t(n.key,n)}))},t.prototype.eachUniqueKey=function(t){return this._ctx.unique="unique",this.eachKey(t)},t.prototype.eachPrimaryKey=function(t){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each((function(e,n){t(n.primaryKey,n)}))},t.prototype.keys=function(t){var e=this._ctx;e.keysOnly=!e.isMatch;var n=[];return this.each((function(t,e){n.push(e.key)})).then((function(){return n})).then(t)},t.prototype.primaryKeys=function(t){var e=this._ctx;if("next"===e.dir&&Te(e,!0)&&e.limit>0)return this._read((function(t){var n=Ce(e,e.table.core.schema);return e.table.core.query({trans:t,values:!1,limit:e.limit,query:{index:n,range:e.range}})})).then((function(t){return t.result})).then(t);e.keysOnly=!e.isMatch;var n=[];return this.each((function(t,e){n.push(e.primaryKey)})).then((function(){return n})).then(t)},t.prototype.uniqueKeys=function(t){return this._ctx.unique="unique",this.keys(t)},t.prototype.firstKey=function(t){return this.limit(1).keys((function(t){return t[0]})).then(t)},t.prototype.lastKey=function(t){return this.reverse().firstKey(t)},t.prototype.distinct=function(){var t=this._ctx,e=t.index&&t.table.schema.idxByName[t.index];if(!e||!e.multi)return this;var n={};return Pe(this._ctx,(function(t){var e=t.primaryKey.toString(),r=f(n,e);return n[e]=!0,!r})),this},t.prototype.modify=function(t){var e=this,n=this._ctx;return this._write((function(r){var o;if("function"===typeof t)o=t;else{var i=a(t),s=i.length;o=function(e){for(var n=!1,r=0;r<s;++r){var o=i[r],a=t[o];O(e,o)!==a&&(k(e,o,a),n=!0)}return n}}var u=n.table.core,c=u.schema.primaryKey,l=c.outbound,f=c.extractKey,h=e.db._options.modifyChunkSize||200,p=[],d=0,v=[],y=function(t,e){var n=e.failures,r=e.numFailures;d+=t-r;for(var o=0,i=a(n);o<i.length;o++){var s=i[o];p.push(n[s])}};return e.clone().primaryKeys().then((function(e){var i=function(a){var s=Math.min(h,e.length-a);return u.getMany({trans:r,keys:e.slice(a,a+s),cache:"immutable"}).then((function(c){for(var p=[],d=[],v=l?[]:null,m=[],b=0;b<s;++b){var g=c[b],w={value:C(g),primKey:e[a+b]};!1!==o.call(w,w.value,w)&&(null==w.value?m.push(e[a+b]):l||0===Me(f(g),f(w.value))?(d.push(w.value),l&&v.push(e[a+b])):(m.push(e[a+b]),p.push(w.value)))}var x=Te(n)&&n.limit===1/0&&("function"!==typeof t||t===qe)&&{index:n.index,range:n.range};return Promise.resolve(p.length>0&&u.mutate({trans:r,type:"add",values:p}).then((function(t){for(var e in t.failures)m.splice(parseInt(e),1);y(p.length,t)}))).then((function(){return(d.length>0||x&&"object"===typeof t)&&u.mutate({trans:r,type:"put",keys:v,values:d,criteria:x,changeSpec:"function"!==typeof t&&t}).then((function(t){return y(d.length,t)}))})).then((function(){return(m.length>0||x&&t===qe)&&u.mutate({trans:r,type:"delete",keys:m,criteria:x}).then((function(t){return y(m.length,t)}))})).then((function(){return e.length>a+s&&i(a+h)}))}))};return i(0).then((function(){if(p.length>0)throw new X("Error modifying one or more objects",p,d,v);return e.length}))}))}))},t.prototype.delete=function(){var t=this._ctx,e=t.range;return Te(t)&&(t.isPrimKey&&!xe||3===e.type)?this._write((function(n){var r=t.table.core.schema.primaryKey,o=e;return t.table.core.count({trans:n,query:{index:r,range:o}}).then((function(e){return t.table.core.mutate({trans:n,type:"deleteRange",range:o}).then((function(t){var n=t.failures;t.lastResult,t.results;var r=t.numFailures;if(r)throw new X("Could not delete some values",Object.keys(n).map((function(t){return n[t]})),e-r);return e-r}))}))})):this.modify(qe)},t}(),qe=function(t,e){return e.value=null};function Le(t,e){return t<e?-1:t===e?0:1}function ze(t,e){return t>e?-1:t===e?0:1}function Ge(t,e,n){var r=t instanceof Ze?new t.Collection(t):t;return r._ctx.error=n?new n(e):new TypeError(e),r}function He(t){return new t.Collection(t,(function(){return Ve("")})).limit(0)}function We(t,e,n,r,o,i){for(var a=Math.min(t.length,r.length),s=-1,u=0;u<a;++u){var c=e[u];if(c!==r[u])return o(t[u],n[u])<0?t.substr(0,u)+n[u]+n.substr(u+1):o(t[u],r[u])<0?t.substr(0,u)+r[u]+n.substr(u+1):s>=0?t.substr(0,s)+e[s]+n.substr(s+1):null;o(t[u],c)<0&&(s=u)}return a<r.length&&"next"===i?t+n.substr(t.length):a<t.length&&"prev"===i?t.substr(0,n.length):s<0?null:t.substr(0,s)+r[s]+n.substr(s+1)}function Ue(t,e,n,r){var o,i,a,s,u,c,l,f=n.length;if(!n.every((function(t){return"string"===typeof t})))return Ge(t,"String expected.");function h(t){o=function(t){return"next"===t?function(t){return t.toUpperCase()}:function(t){return t.toLowerCase()}}(t),i=function(t){return"next"===t?function(t){return t.toLowerCase()}:function(t){return t.toUpperCase()}}(t),a="next"===t?Le:ze;var e=n.map((function(t){return{lower:i(t),upper:o(t)}})).sort((function(t,e){return a(t.lower,e.lower)}));s=e.map((function(t){return t.upper})),u=e.map((function(t){return t.lower})),c=t,l="next"===t?"":r}h("next");var p=new t.Collection(t,(function(){return Ye(s[0],u[f-1]+r)}));p._ondirectionchange=function(t){h(t)};var d=0;return p._addAlgorithm((function(t,n,r){var o=t.key;if("string"!==typeof o)return!1;var h=i(o);if(e(h,u,d))return!0;for(var p=null,v=d;v<f;++v){var y=We(o,h,s[v],u[v],a,c);null===y&&null===p?d=v+1:(null===p||a(p,y)>0)&&(p=y)}return n(null!==p?function(){t.continue(p+l)}:r),!1})),p}function Ye(t,e,n,r){return{type:2,lower:t,upper:e,lowerOpen:n,upperOpen:r}}function Ve(t){return{type:1,lower:t,upper:t}}var Ze=function(){function t(){}return Object.defineProperty(t.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),t.prototype.between=function(t,e,n,r){n=!1!==n,r=!0===r;try{return this._cmp(t,e)>0||0===this._cmp(t,e)&&(n||r)&&(!n||!r)?He(this):new this.Collection(this,(function(){return Ye(t,e,!n,!r)}))}catch(o){return Ge(this,me)}},t.prototype.equals=function(t){return null==t?Ge(this,me):new this.Collection(this,(function(){return Ve(t)}))},t.prototype.above=function(t){return null==t?Ge(this,me):new this.Collection(this,(function(){return Ye(t,void 0,!0)}))},t.prototype.aboveOrEqual=function(t){return null==t?Ge(this,me):new this.Collection(this,(function(){return Ye(t,void 0,!1)}))},t.prototype.below=function(t){return null==t?Ge(this,me):new this.Collection(this,(function(){return Ye(void 0,t,!1,!0)}))},t.prototype.belowOrEqual=function(t){return null==t?Ge(this,me):new this.Collection(this,(function(){return Ye(void 0,t)}))},t.prototype.startsWith=function(t){return"string"!==typeof t?Ge(this,"String expected."):this.between(t,t+ye,!0,!0)},t.prototype.startsWithIgnoreCase=function(t){return""===t?this.startsWith(t):Ue(this,(function(t,e){return 0===t.indexOf(e[0])}),[t],ye)},t.prototype.equalsIgnoreCase=function(t){return Ue(this,(function(t,e){return t===e[0]}),[t],"")},t.prototype.anyOfIgnoreCase=function(){var t=B.apply(R,arguments);return 0===t.length?He(this):Ue(this,(function(t,e){return-1!==e.indexOf(t)}),t,"")},t.prototype.startsWithAnyOfIgnoreCase=function(){var t=B.apply(R,arguments);return 0===t.length?He(this):Ue(this,(function(t,e){return e.some((function(e){return 0===t.indexOf(e)}))}),t,ye)},t.prototype.anyOf=function(){var t=this,e=B.apply(R,arguments),n=this._cmp;try{e.sort(n)}catch(i){return Ge(this,me)}if(0===e.length)return He(this);var r=new this.Collection(this,(function(){return Ye(e[0],e[e.length-1])}));r._ondirectionchange=function(r){n="next"===r?t._ascending:t._descending,e.sort(n)};var o=0;return r._addAlgorithm((function(t,r,i){for(var a=t.key;n(a,e[o])>0;)if(++o===e.length)return r(i),!1;return 0===n(a,e[o])||(r((function(){t.continue(e[o])})),!1)})),r},t.prototype.notEqual=function(t){return this.inAnyRange([[-1/0,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},t.prototype.noneOf=function(){var t=B.apply(R,arguments);if(0===t.length)return new this.Collection(this);try{t.sort(this._ascending)}catch(n){return Ge(this,me)}var e=t.reduce((function(t,e){return t?t.concat([[t[t.length-1][1],e]]):[[-1/0,e]]}),null);return e.push([t[t.length-1],this.db._maxKey]),this.inAnyRange(e,{includeLowers:!1,includeUppers:!1})},t.prototype.inAnyRange=function(t,e){var n=this,r=this._cmp,o=this._ascending,i=this._descending,a=this._min,s=this._max;if(0===t.length)return He(this);if(!t.every((function(t){return void 0!==t[0]&&void 0!==t[1]&&o(t[0],t[1])<=0})))return Ge(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",et.InvalidArgument);var u=!e||!1!==e.includeLowers,c=e&&!0===e.includeUppers;var l,f=o;function h(t,e){return f(t[0],e[0])}try{(l=t.reduce((function(t,e){for(var n=0,o=t.length;n<o;++n){var i=t[n];if(r(e[0],i[1])<0&&r(e[1],i[0])>0){i[0]=a(i[0],e[0]),i[1]=s(i[1],e[1]);break}}return n===o&&t.push(e),t}),[])).sort(h)}catch(b){return Ge(this,me)}var p=0,d=c?function(t){return o(t,l[p][1])>0}:function(t){return o(t,l[p][1])>=0},v=u?function(t){return i(t,l[p][0])>0}:function(t){return i(t,l[p][0])>=0};var y=d,m=new this.Collection(this,(function(){return Ye(l[0][0],l[l.length-1][1],!u,!c)}));return m._ondirectionchange=function(t){"next"===t?(y=d,f=o):(y=v,f=i),l.sort(h)},m._addAlgorithm((function(t,e,r){for(var i=t.key;y(i);)if(++p===l.length)return e(r),!1;return!!function(t){return!d(t)&&!v(t)}(i)||(0===n._cmp(i,l[p][1])||0===n._cmp(i,l[p][0])||e((function(){f===o?t.continue(l[p][0]):t.continue(l[p][1])})),!1)})),m},t.prototype.startsWithAnyOf=function(){var t=B.apply(R,arguments);return t.every((function(t){return"string"===typeof t}))?0===t.length?He(this):this.inAnyRange(t.map((function(t){return[t,t+ye]}))):Ge(this,"startsWithAnyOf() only works with strings")},t}();function Qe(t){return Zt((function(e){return Xe(e),t(e.target.error),!1}))}function Xe(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault()}var Je=Ee(null,"storagemutated"),$e=function(){function t(){}return t.prototype._lock=function(){return x(!It.global),++this._reculock,1!==this._reculock||It.global||(It.lockOwnerFor=this),this},t.prototype._unlock=function(){if(x(!It.global),0===--this._reculock)for(It.global||(It.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var t=this._blockedFuncs.shift();try{le(t[1],t[0])}catch(e){}}return this},t.prototype._locked=function(){return this._reculock&&It.lockOwnerFor!==this},t.prototype.create=function(t){var e=this;if(!this.mode)return this;var n=this.db.idbdb,r=this.db._state.dbOpenError;if(x(!this.idbtrans),!t&&!n)switch(r&&r.name){case"DatabaseClosedError":throw new et.DatabaseClosed(r);case"MissingAPIError":throw new et.MissingAPI(r.message,r);default:throw new et.OpenFailed(r)}if(!this.active)throw new et.TransactionInactive;return x(null===this._completion._state),(t=this.idbtrans=t||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):n.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=Zt((function(n){Xe(n),e._reject(t.error)})),t.onabort=Zt((function(n){Xe(n),e.active&&e._reject(new et.Abort(t.error)),e.active=!1,e.on("abort").fire(n)})),t.oncomplete=Zt((function(){e.active=!1,e._resolve(),"mutatedParts"in t&&Je.storagemutated.fire(t.mutatedParts)})),this},t.prototype._promise=function(t,e,n){var r=this;if("readwrite"===t&&"readwrite"!==this.mode)return ve(new et.ReadOnly("Transaction is readonly"));if(!this.active)return ve(new et.TransactionInactive);if(this._locked())return new Nt((function(o,i){r._blockedFuncs.push([function(){r._promise(t,e,n).then(o,i)},It])}));if(n)return ne((function(){var t=new Nt((function(t,n){r._lock();var o=e(t,n,r);o&&o.then&&o.then(t,n)}));return t.finally((function(){return r._unlock()})),t._lib=!0,t}));var o=new Nt((function(t,n){var o=e(t,n,r);o&&o.then&&o.then(t,n)}));return o._lib=!0,o},t.prototype._root=function(){return this.parent?this.parent._root():this},t.prototype.waitFor=function(t){var e=this._root(),n=Nt.resolve(t);if(e._waitingFor)e._waitingFor=e._waitingFor.then((function(){return n}));else{e._waitingFor=n,e._waitingQueue=[];var r=e.idbtrans.objectStore(e.storeNames[0]);!function t(){for(++e._spinCount;e._waitingQueue.length;)e._waitingQueue.shift()();e._waitingFor&&(r.get(-1/0).onsuccess=t)}()}var o=e._waitingFor;return new Nt((function(t,r){n.then((function(n){return e._waitingQueue.push(Zt(t.bind(null,n)))}),(function(t){return e._waitingQueue.push(Zt(r.bind(null,t)))})).finally((function(){e._waitingFor===o&&(e._waitingFor=null)}))}))},t.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new et.Abort))},t.prototype.table=function(t){var e=this._memoizedTables||(this._memoizedTables={});if(f(e,t))return e[t];var n=this.schema[t];if(!n)throw new et.NotFound("Table "+t+" not part of transaction");var r=new this.db.Table(t,n,this);return r.core=this.db.core.table(t),e[t]=r,r},t}();function tn(t,e,n,r,o,i,a){return{name:t,keyPath:e,unique:n,multi:r,auto:o,compound:i,src:(n&&!a?"&":"")+(r?"*":"")+(o?"++":"")+en(e)}}function en(t){return"string"===typeof t?t:t?"["+[].join.call(t,"+")+"]":""}function nn(t,e,n){return{name:t,primKey:e,indexes:n,mappedClass:null,idxByName:S(n,(function(t){return[t.name,t]}))}}var rn=function(t){try{return t.only([[]]),rn=function(){return[[]]},[[]]}catch(e){return rn=function(){return ye},ye}};function on(t){return null==t?function(){}:"string"===typeof t?function(t){return 1===t.split(".").length?function(e){return e[t]}:function(e){return O(e,t)}}(t):function(e){return O(e,t)}}function an(t){return[].slice.call(t)}var sn=0;function un(t){return null==t?":id":"string"===typeof t?t:"["+t.join("+")+"]"}function cn(t,e,n){function r(t){if(3===t.type)return null;if(4===t.type)throw new Error("Cannot convert never type to IDBKeyRange");var n=t.lower,r=t.upper,o=t.lowerOpen,i=t.upperOpen;return void 0===n?void 0===r?null:e.upperBound(r,!!i):void 0===r?e.lowerBound(n,!!o):e.bound(n,r,!!o,!!i)}var o=function(t,e){var n=an(t.objectStoreNames);return{schema:{name:t.name,tables:n.map((function(t){return e.objectStore(t)})).map((function(t){var e=t.keyPath,n=t.autoIncrement,r=s(e),o=null==e,i={},a={name:t.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:o,compound:r,keyPath:e,autoIncrement:n,unique:!0,extractKey:on(e)},indexes:an(t.indexNames).map((function(e){return t.index(e)})).map((function(t){var e=t.name,n=t.unique,r=t.multiEntry,o=t.keyPath,a={name:e,compound:s(o),keyPath:o,unique:n,multiEntry:r,extractKey:on(o)};return i[un(o)]=a,a})),getIndexByKeyPath:function(t){return i[un(t)]}};return i[":id"]=a.primaryKey,null!=e&&(i[un(e)]=a.primaryKey),a}))},hasGetAll:n.length>0&&"getAll"in e.objectStore(n[0])&&!("undefined"!==typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(t,n),i=o.schema,a=o.hasGetAll,u=i.tables.map((function(t){return function(t){var e=t.name;return{name:e,schema:t,mutate:function(t){var n=t.trans,o=t.type,i=t.keys,a=t.values,s=t.range;return new Promise((function(t,u){t=Zt(t);var c=n.objectStore(e),l=null==c.keyPath,f="put"===o||"add"===o;if(!f&&"delete"!==o&&"deleteRange"!==o)throw new Error("Invalid operation type: "+o);var h,p=(i||a||{length:1}).length;if(i&&a&&i.length!==a.length)throw new Error("Given keys array must have same length as given values array.");if(0===p)return t({numFailures:0,failures:{},results:[],lastResult:void 0});var d=[],v=[],y=0,m=function(t){++y,Xe(t)};if("deleteRange"===o){if(4===s.type)return t({numFailures:y,failures:v,results:[],lastResult:void 0});3===s.type?d.push(h=c.clear()):d.push(h=c.delete(r(s)))}else{var b=f?l?[a,i]:[a,null]:[i,null],g=b[0],w=b[1];if(f)for(var x=0;x<p;++x)d.push(h=w&&void 0!==w[x]?c[o](g[x],w[x]):c[o](g[x])),h.onerror=m;else for(x=0;x<p;++x)d.push(h=c[o](g[x])),h.onerror=m}var _=function(e){var n=e.target.result;d.forEach((function(t,e){return null!=t.error&&(v[e]=t.error)})),t({numFailures:y,failures:v,results:"delete"===o?i:d.map((function(t){return t.result})),lastResult:n})};h.onerror=function(t){m(t),_(t)},h.onsuccess=_}))},getMany:function(t){var n=t.trans,r=t.keys;return new Promise((function(t,o){t=Zt(t);for(var i,a=n.objectStore(e),s=r.length,u=new Array(s),c=0,l=0,f=function(e){var n=e.target;u[n._pos]=n.result,++l===c&&t(u)},h=Qe(o),p=0;p<s;++p){null!=r[p]&&((i=a.get(r[p]))._pos=p,i.onsuccess=f,i.onerror=h,++c)}0===c&&t(u)}))},get:function(t){var n=t.trans,r=t.key;return new Promise((function(t,o){t=Zt(t);var i=n.objectStore(e).get(r);i.onsuccess=function(e){return t(e.target.result)},i.onerror=Qe(o)}))},query:function(t){return function(n){return new Promise((function(o,i){o=Zt(o);var a=n.trans,s=n.values,u=n.limit,c=n.query,l=u===1/0?void 0:u,f=c.index,h=c.range,p=a.objectStore(e),d=f.isPrimaryKey?p:p.index(f.name),v=r(h);if(0===u)return o({result:[]});if(t){var y=s?d.getAll(v,l):d.getAllKeys(v,l);y.onsuccess=function(t){return o({result:t.target.result})},y.onerror=Qe(i)}else{var m=0,b=s||!("openKeyCursor"in d)?d.openCursor(v):d.openKeyCursor(v),g=[];b.onsuccess=function(t){var e=b.result;return e?(g.push(s?e.value:e.primaryKey),++m===u?o({result:g}):void e.continue()):o({result:g})},b.onerror=Qe(i)}}))}}(a),openCursor:function(t){var n=t.trans,o=t.values,i=t.query,a=t.reverse,s=t.unique;return new Promise((function(t,u){t=Zt(t);var c=i.index,l=i.range,f=n.objectStore(e),h=c.isPrimaryKey?f:f.index(c.name),p=a?s?"prevunique":"prev":s?"nextunique":"next",d=o||!("openKeyCursor"in h)?h.openCursor(r(l),p):h.openKeyCursor(r(l),p);d.onerror=Qe(u),d.onsuccess=Zt((function(e){var r=d.result;if(r){r.___id=++sn,r.done=!1;var o=r.continue.bind(r),i=r.continuePrimaryKey;i&&(i=i.bind(r));var a=r.advance.bind(r),s=function(){throw new Error("Cursor not stopped")};r.trans=n,r.stop=r.continue=r.continuePrimaryKey=r.advance=function(){throw new Error("Cursor not started")},r.fail=Zt(u),r.next=function(){var t=this,e=1;return this.start((function(){return e--?t.continue():t.stop()})).then((function(){return t}))},r.start=function(t){var e=new Promise((function(t,e){t=Zt(t),d.onerror=Qe(e),r.fail=e,r.stop=function(e){r.stop=r.continue=r.continuePrimaryKey=r.advance=s,t(e)}})),n=function(){if(d.result)try{t()}catch(e){r.fail(e)}else r.done=!0,r.start=function(){throw new Error("Cursor behind last entry")},r.stop()};return d.onsuccess=Zt((function(t){d.onsuccess=n,n()})),r.continue=o,r.continuePrimaryKey=i,r.advance=a,n(),e},t(r)}else t(null)}),u)}))},count:function(t){var n=t.query,o=t.trans,i=n.index,a=n.range;return new Promise((function(t,n){var s=o.objectStore(e),u=i.isPrimaryKey?s:s.index(i.name),c=r(a),l=c?u.count(c):u.count();l.onsuccess=Zt((function(e){return t(e.target.result)})),l.onerror=Qe(n)}))}}}(t)})),c={};return u.forEach((function(t){return c[t.name]=t})),{stack:"dbcore",transaction:t.transaction.bind(t),table:function(t){if(!c[t])throw new Error("Table '"+t+"' not found");return c[t]},MIN_KEY:-1/0,MAX_KEY:rn(e),schema:i}}function ln(t,e,n,o){var i=n.IDBKeyRange;return n.indexedDB,{dbcore:function(t,e){return e.reduce((function(t,e){var n=e.create;return r(r({},t),n(t))}),t)}(cn(e,i,o),t.dbcore)}}function fn(t,e){var n=t._novip,r=e.db,o=ln(n._middlewares,r,n._deps,e);n.core=o.dbcore,n.tables.forEach((function(t){var e=t.name;n.core.schema.tables.some((function(t){return t.name===e}))&&(t.core=n.core.table(e),n[e]instanceof n.Table&&(n[e].core=t.core))}))}function hn(t,e,n,r){var o=t._novip;n.forEach((function(t){var n=r[t];e.forEach((function(e){var r=m(e,t);(!r||"value"in r&&void 0===r.value)&&(e===o.Transaction.prototype||e instanceof o.Transaction?d(e,t,{get:function(){return this.table(t)},set:function(e){p(this,t,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):e[t]=new o.Table(t,n))}))}))}function pn(t,e){var n=t._novip;e.forEach((function(t){for(var e in t)t[e]instanceof n.Table&&delete t[e]}))}function dn(t,e){return t._cfg.version-e._cfg.version}function vn(t,e,n,r){var o=t._dbSchema,i=t._createTransaction("readwrite",t._storeNames,o);i.create(n),i._completion.catch(r);var s=i._reject.bind(i),u=It.transless||It;ne((function(){It.trans=i,It.transless=u,0===e?(a(o).forEach((function(t){mn(n,t,o[t].primKey,o[t].indexes)})),fn(t,n),Nt.follow((function(){return t.on.populate.fire(i)})).catch(s)):function(t,e,n,r){var o=t._novip,i=[],s=o._versions,u=o._dbSchema=gn(o,o.idbdb,r),c=!1;function l(){return i.length?Nt.resolve(i.shift()(n.idbtrans)).then(l):Nt.resolve()}return s.filter((function(t){return t._cfg.version>=e})).forEach((function(t){i.push((function(){var i=u,s=t._cfg.dbschema;wn(o,i,r),wn(o,s,r),u=o._dbSchema=s;var l=yn(i,s);l.add.forEach((function(t){mn(r,t[0],t[1].primKey,t[1].indexes)})),l.change.forEach((function(t){if(t.recreate)throw new et.Upgrade("Not yet support for changing primary key");var e=r.objectStore(t.name);t.add.forEach((function(t){return bn(e,t)})),t.change.forEach((function(t){e.deleteIndex(t.name),bn(e,t)})),t.del.forEach((function(t){return e.deleteIndex(t)}))}));var f=t._cfg.contentUpgrade;if(f&&t._cfg.version>e){fn(o,r),n._memoizedTables={},c=!0;var h=j(s);l.del.forEach((function(t){h[t]=i[t]})),pn(o,[o.Transaction.prototype]),hn(o,[o.Transaction.prototype],a(h),h),n.schema=h;var p,d=F(f);d&&re();var v=Nt.follow((function(){if((p=f(n))&&d){var t=oe.bind(null,null);p.then(t,t)}}));return p&&"function"===typeof p.then?Nt.resolve(p):v.then((function(){return p}))}})),i.push((function(e){c&&we||function(t,e){[].slice.call(e.db.objectStoreNames).forEach((function(n){return null==t[n]&&e.db.deleteObjectStore(n)}))}(t._cfg.dbschema,e);pn(o,[o.Transaction.prototype]),hn(o,[o.Transaction.prototype],o._storeNames,o._dbSchema),n.schema=o._dbSchema}))})),l().then((function(){var t,e;e=r,a(t=u).forEach((function(n){e.db.objectStoreNames.contains(n)||mn(e,n,t[n].primKey,t[n].indexes)}))}))}(t,e,i,n).catch(s)}))}function yn(t,e){var n,r={del:[],add:[],change:[]};for(n in t)e[n]||r.del.push(n);for(n in e){var o=t[n],i=e[n];if(o){var a={name:n,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(o.primKey.keyPath||"")!==""+(i.primKey.keyPath||"")||o.primKey.auto!==i.primKey.auto&&!ge)a.recreate=!0,r.change.push(a);else{var s=o.idxByName,u=i.idxByName,c=void 0;for(c in s)u[c]||a.del.push(c);for(c in u){var l=s[c],f=u[c];l?l.src!==f.src&&a.change.push(f):a.add.push(f)}(a.del.length>0||a.add.length>0||a.change.length>0)&&r.change.push(a)}}else r.add.push([n,i])}return r}function mn(t,e,n,r){var o=t.db.createObjectStore(e,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach((function(t){return bn(o,t)})),o}function bn(t,e){t.createIndex(e.name,e.keyPath,{unique:e.unique,multiEntry:e.multi})}function gn(t,e,n){var r={};return g(e.objectStoreNames,0).forEach((function(t){for(var e=n.objectStore(t),o=e.keyPath,i=tn(en(o),o||"",!1,!1,!!e.autoIncrement,o&&"string"!==typeof o,!0),a=[],s=0;s<e.indexNames.length;++s){var u=e.index(e.indexNames[s]);o=u.keyPath;var c=tn(u.name,o,!!u.unique,!!u.multiEntry,!1,o&&"string"!==typeof o,!1);a.push(c)}r[t]=nn(t,i,a)})),r}function wn(t,e,n){for(var r=t._novip,o=n.db.objectStoreNames,a=0;a<o.length;++a){var s=o[a],u=n.objectStore(s);r._hasGetAll="getAll"in u;for(var c=0;c<u.indexNames.length;++c){var l=u.indexNames[c],f=u.index(l).keyPath,h="string"===typeof f?f:"["+g(f).join("+")+"]";if(e[s]){var p=e[s].idxByName[h];p&&(p.name=l,delete e[s].idxByName[h],e[s].idxByName[l]=p)}}}"undefined"!==typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&i.WorkerGlobalScope&&i instanceof i.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(r._hasGetAll=!1)}var xn=function(){function t(){}return t.prototype._parseStoresSpec=function(t,e){a(t).forEach((function(n){if(null!==t[n]){var r=t[n].split(",").map((function(t,e){var n=(t=t.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return tn(n,r||null,/\&/.test(t),/\*/.test(t),/\+\+/.test(t),s(r),0===e)})),o=r.shift();if(o.multi)throw new et.Schema("Primary key cannot be multi-valued");r.forEach((function(t){if(t.auto)throw new et.Schema("Only primary key can be marked as autoIncrement (++)");if(!t.keyPath)throw new et.Schema("Index must have a name and cannot be an empty string")})),e[n]=nn(n,o,r)}}))},t.prototype.stores=function(t){var e=this.db;this._cfg.storesSource=this._cfg.storesSource?u(this._cfg.storesSource,t):t;var n=e._versions,r={},o={};return n.forEach((function(t){u(r,t._cfg.storesSource),o=t._cfg.dbschema={},t._parseStoresSpec(r,o)})),e._dbSchema=o,pn(e,[e._allTables,e,e.Transaction.prototype]),hn(e,[e._allTables,e,e.Transaction.prototype,this._cfg.tables],a(o),o),e._storeNames=a(o),this},t.prototype.upgrade=function(t){return this._cfg.contentUpgrade=ht(this._cfg.contentUpgrade||ot,t),this},t}();function _n(t,e){var n=t._dbNamesDB;return n||(n=t._dbNamesDB=new Yn("__dbnames",{addons:[],indexedDB:t,IDBKeyRange:e})).version(1).stores({dbnames:"name"}),n.table("dbnames")}function Sn(t){return t&&"function"===typeof t.databases}function On(t,e){var n=t.indexedDB,r=t.IDBKeyRange;!Sn(n)&&"__dbnames"!==e&&_n(n,r).delete(e).catch(ot)}function kn(t){return ne((function(){return It.letThrough=!0,t()}))}function jn(){var t;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(e){var n=function(){return indexedDB.databases().finally(e)};t=setInterval(n,100),n()})).finally((function(){return clearInterval(t)})):Promise.resolve()}function En(t){var e=t._state,n=t._deps.indexedDB;if(e.isBeingOpened||t.idbdb)return e.dbReadyPromise.then((function(){return e.dbOpenError?ve(e.dbOpenError):t}));q&&(e.openCanceller._stackHolder=H()),e.isBeingOpened=!0,e.dbOpenError=null,e.openComplete=!1;var r=e.openCanceller;function o(){if(e.openCanceller!==r)throw new et.DatabaseClosed("db.open() was cancelled")}var i=e.dbReadyResolve,s=null,u=!1;return Nt.race([r,("undefined"===typeof navigator?Nt.resolve():jn()).then((function(){return new Nt((function(r,i){if(o(),!n)throw new et.MissingAPI;var c=t.name,l=e.autoSchema?n.open(c):n.open(c,Math.round(10*t.verno));if(!l)throw new et.MissingAPI;l.onerror=Qe(i),l.onblocked=Zt(t._fireOnBlocked),l.onupgradeneeded=Zt((function(r){if(s=l.transaction,e.autoSchema&&!t._options.allowEmptyDB){l.onerror=Xe,s.abort(),l.result.close();var o=n.deleteDatabase(c);o.onsuccess=o.onerror=Zt((function(){i(new et.NoSuchDatabase("Database "+c+" doesnt exist"))}))}else{s.onerror=Qe(i);var a=r.oldVersion>Math.pow(2,62)?0:r.oldVersion;u=a<1,t._novip.idbdb=l.result,vn(t,a/10,s,i)}}),i),l.onsuccess=Zt((function(){s=null;var n,o=t._novip.idbdb=l.result,i=g(o.objectStoreNames);if(i.length>0)try{var f=o.transaction(1===(n=i).length?n[0]:n,"readonly");e.autoSchema?function(t,e,n){var r=t._novip;r.verno=e.version/10;var o=r._dbSchema=gn(0,e,n);r._storeNames=g(e.objectStoreNames,0),hn(r,[r._allTables],a(o),o)}(t,o,f):(wn(t,t._dbSchema,f),function(t,e){var n=yn(gn(0,t.idbdb,e),t._dbSchema);return!(n.add.length||n.change.some((function(t){return t.add.length||t.change.length})))}(t,f)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),fn(t,f)}catch(h){}be.push(t),o.onversionchange=Zt((function(n){e.vcFired=!0,t.on("versionchange").fire(n)})),o.onclose=Zt((function(e){t.on("close").fire(e)})),u&&function(t,e){var n=t.indexedDB,r=t.IDBKeyRange;!Sn(n)&&"__dbnames"!==e&&_n(n,r).put({name:e}).catch(ot)}(t._deps,c),r()}),i)}))}))]).then((function(){return o(),e.onReadyBeingFired=[],Nt.resolve(kn((function(){return t.on.ready.fire(t.vip)}))).then((function n(){if(e.onReadyBeingFired.length>0){var r=e.onReadyBeingFired.reduce(ht,ot);return e.onReadyBeingFired=[],Nt.resolve(kn((function(){return r(t.vip)}))).then(n)}}))})).finally((function(){e.onReadyBeingFired=null,e.isBeingOpened=!1})).then((function(){return t})).catch((function(n){e.dbOpenError=n;try{s&&s.abort()}catch(Mn){}return r===e.openCanceller&&t._close(),ve(n)})).finally((function(){e.openComplete=!0,i()}))}function An(t){var e=function(e){return t.next(e)},n=o(e),r=o((function(e){return t.throw(e)}));function o(t){return function(e){var o=t(e),i=o.value;return o.done?i:i&&"function"===typeof i.then?i.then(n,r):s(i)?Promise.all(i).then(n,r):n(i)}}return o(e)()}function Tn(t,e,n){var r=arguments.length;if(r<2)throw new et.InvalidArgument("Too few arguments");for(var o=new Array(r-1);--r;)o[r-1]=arguments[r];n=o.pop();var i=A(o);return[t,i,n]}function Pn(t,e,n,r,o){return Nt.resolve().then((function(){var i=It.transless||It,a=t._createTransaction(e,n,t._dbSchema,r),s={trans:a,transless:i};if(r)a.idbtrans=r.idbtrans;else try{a.create(),t._state.PR1398_maxLoop=3}catch(f){return f.name===$.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then((function(){return Pn(t,e,n,null,o)}))):ve(f)}var u,c=F(o);c&&re();var l=Nt.follow((function(){if(u=o.call(a,a))if(c){var t=oe.bind(null,null);u.then(t,t)}else"function"===typeof u.next&&"function"===typeof u.throw&&(u=An(u))}),s);return(u&&"function"===typeof u.then?Nt.resolve(u).then((function(t){return a.active?t:ve(new et.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))})):l.then((function(){return u}))).then((function(t){return r&&a._resolve(),a._completion.then((function(){return t}))})).catch((function(t){return a._reject(t),ve(t)}))}))}function In(t,e,n){for(var r=s(t)?t.slice():[t],o=0;o<n;++o)r.push(e);return r}var Cn={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(t){return r(r({},t),{table:function(e){var n=t.table(e),o=n.schema,i={},a=[];function s(t,e,n){var o=un(t),u=i[o]=i[o]||[],c=null==t?0:"string"===typeof t?1:t.length,l=e>0,f=r(r({},n),{isVirtual:l,keyTail:e,keyLength:c,extractKey:on(t),unique:!l&&n.unique});(u.push(f),f.isPrimaryKey||a.push(f),c>1)&&s(2===c?t[0]:t.slice(0,c-1),e+1,n);return u.sort((function(t,e){return t.keyTail-e.keyTail})),f}var u=s(o.primaryKey.keyPath,0,o.primaryKey);i[":id"]=[u];for(var c=0,l=o.indexes;c<l.length;c++){var f=l[c];s(f.keyPath,0,f)}function h(e){var n,o,i=e.query.index;return i.isVirtual?r(r({},e),{query:{index:i,range:(n=e.query.range,o=i.keyTail,{type:1===n.type?2:n.type,lower:In(n.lower,n.lowerOpen?t.MAX_KEY:t.MIN_KEY,o),lowerOpen:!0,upper:In(n.upper,n.upperOpen?t.MIN_KEY:t.MAX_KEY,o),upperOpen:!0})}}):e}return r(r({},n),{schema:r(r({},o),{primaryKey:u,indexes:a,getIndexByKeyPath:function(t){var e=i[un(t)];return e&&e[0]}}),count:function(t){return n.count(h(t))},query:function(t){return n.query(h(t))},openCursor:function(e){var r=e.query.index,o=r.keyTail,i=r.isVirtual,a=r.keyLength;if(!i)return n.openCursor(e);return n.openCursor(h(e)).then((function(n){return n&&function(n){return Object.create(n,{continue:{value:function(r){null!=r?n.continue(In(r,e.reverse?t.MAX_KEY:t.MIN_KEY,o)):e.unique?n.continue(n.key.slice(0,a).concat(e.reverse?t.MIN_KEY:t.MAX_KEY,o)):n.continue()}},continuePrimaryKey:{value:function(e,r){n.continuePrimaryKey(In(e,t.MAX_KEY,o),r)}},primaryKey:{get:function(){return n.primaryKey}},key:{get:function(){var t=n.key;return 1===a?t[0]:t.slice(0,a)}},value:{get:function(){return n.value}}})}(n)}))}})}})}};function Dn(t,e,n,r){return n=n||{},r=r||"",a(t).forEach((function(o){if(f(e,o)){var i=t[o],a=e[o];if("object"===typeof i&&"object"===typeof a&&i&&a){var s=K(i);s!==K(a)?n[r+o]=e[o]:"Object"===s?Dn(i,a,n,r+o+"."):i!==a&&(n[r+o]=e[o])}else i!==a&&(n[r+o]=e[o])}else n[r+o]=void 0})),a(e).forEach((function(o){f(t,o)||(n[r+o]=e[o])})),n}var Kn={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(t){return r(r({},t),{table:function(e){var n=t.table(e),i=n.schema.primaryKey;return r(r({},n),{mutate:function(t){var a=It.trans,s=a.table(e).hook,u=s.deleting,c=s.creating,l=s.updating;switch(t.type){case"add":if(c.fire===ot)break;return a._promise("readwrite",(function(){return h(t)}),!0);case"put":if(c.fire===ot&&l.fire===ot)break;return a._promise("readwrite",(function(){return h(t)}),!0);case"delete":if(u.fire===ot)break;return a._promise("readwrite",(function(){return h(t)}),!0);case"deleteRange":if(u.fire===ot)break;return a._promise("readwrite",(function(){return function(t){return function t(e,o,a){return n.query({trans:e,values:!1,query:{index:i,range:o},limit:a}).then((function(n){var i=n.result;return h({type:"delete",keys:i,trans:e}).then((function(n){return n.numFailures>0?Promise.reject(n.failures[0]):i.length<a?{failures:[],numFailures:0,lastResult:void 0}:t(e,r(r({},o),{lower:i[i.length-1],lowerOpen:!0}),a)}))}))}(t.trans,t.range,1e4)}(t)}),!0)}return n.mutate(t);function h(t){var e=It.trans,a=t.keys||function(t,e){return"delete"===e.type?e.keys:e.keys||e.values.map(t.extractKey)}(i,t);if(!a)throw new Error("Keys missing");return"delete"!==(t="add"===t.type||"put"===t.type?r(r({},t),{keys:a}):r({},t)).type&&(t.values=o([],t.values,!0)),t.keys&&(t.keys=o([],t.keys,!0)),function(t,e,n){return"add"===e.type?Promise.resolve([]):t.getMany({trans:e.trans,keys:n,cache:"immutable"})}(n,t,a).then((function(r){var o=a.map((function(n,o){var a=r[o],s={onerror:null,onsuccess:null};if("delete"===t.type)u.fire.call(s,n,a,e);else if("add"===t.type||void 0===a){var h=c.fire.call(s,n,t.values[o],e);null==n&&null!=h&&(n=h,t.keys[o]=n,i.outbound||k(t.values[o],i.keyPath,n))}else{var p=Dn(a,t.values[o]),d=l.fire.call(s,p,n,a,e);if(d){var v=t.values[o];Object.keys(d).forEach((function(t){f(v,t)?v[t]=d[t]:k(v,t,d[t])}))}}return s}));return n.mutate(t).then((function(e){for(var n=e.failures,i=e.results,s=e.numFailures,u=e.lastResult,c=0;c<a.length;++c){var l=i?i[c]:a[c],f=o[c];null==l?f.onerror&&f.onerror(n[c]):f.onsuccess&&f.onsuccess("put"===t.type&&r[c]?t.values[c]:l)}return{failures:n,results:i,numFailures:s,lastResult:u}})).catch((function(t){return o.forEach((function(e){return e.onerror&&e.onerror(t)})),Promise.reject(t)}))}))}}})}})}};function Nn(t,e,n){try{if(!e)return null;if(e.keys.length<t.length)return null;for(var r=[],o=0,i=0;o<e.keys.length&&i<t.length;++o)0===Me(e.keys[o],t[i])&&(r.push(n?C(e.values[o]):e.values[o]),++i);return r.length===t.length?r:null}catch(Mn){return null}}var Mn,Rn={stack:"dbcore",level:-1,create:function(t){return{table:function(e){var n=t.table(e);return r(r({},n),{getMany:function(t){if(!t.cache)return n.getMany(t);var e=Nn(t.keys,t.trans._cache,"clone"===t.cache);return e?Nt.resolve(e):n.getMany(t).then((function(e){return t.trans._cache={keys:t.keys,values:"clone"===t.cache?C(e):e},e}))},mutate:function(t){return"add"!==t.type&&(t.trans._cache=null),n.mutate(t)}})}}}};function Bn(t){return!("from"in t)}var Fn=function(t,e){if(!this){var n=new Fn;return t&&"d"in t&&u(n,t),n}u(this,arguments.length?{d:1,from:t,to:arguments.length>1?e:t}:{d:0})};function qn(t,e,n){var r=Me(e,n);if(!isNaN(r)){if(r>0)throw RangeError();if(Bn(t))return u(t,{from:e,to:n,d:1});var o=t.l,i=t.r;if(Me(n,t.from)<0)return o?qn(o,e,n):t.l={from:e,to:n,d:1,l:null,r:null},Gn(t);if(Me(e,t.to)>0)return i?qn(i,e,n):t.r={from:e,to:n,d:1,l:null,r:null},Gn(t);Me(e,t.from)<0&&(t.from=e,t.l=null,t.d=i?i.d+1:1),Me(n,t.to)>0&&(t.to=n,t.r=null,t.d=t.l?t.l.d+1:1);var a=!t.r;o&&!t.l&&Ln(t,o),i&&a&&Ln(t,i)}}function Ln(t,e){Bn(e)||function t(e,n){var r=n.from,o=n.to,i=n.l,a=n.r;qn(e,r,o),i&&t(e,i),a&&t(e,a)}(t,e)}function zn(t){var e=Bn(t)?null:{s:0,n:t};return{next:function(t){for(var n=arguments.length>0;e;)switch(e.s){case 0:if(e.s=1,n)for(;e.n.l&&Me(t,e.n.from)<0;)e={up:e,n:e.n.l,s:1};else for(;e.n.l;)e={up:e,n:e.n.l,s:1};case 1:if(e.s=2,!n||Me(t,e.n.to)<=0)return{value:e.n,done:!1};case 2:if(e.n.r){e.s=3,e={up:e,n:e.n.r,s:0};continue}case 3:e=e.up}return{done:!0}}}}function Gn(t){var e,n,o=((null===(e=t.r)||void 0===e?void 0:e.d)||0)-((null===(n=t.l)||void 0===n?void 0:n.d)||0),i=o>1?"r":o<-1?"l":"";if(i){var a="r"===i?"l":"r",s=r({},t),u=t[i];t.from=u.from,t.to=u.to,t[i]=u[i],s[i]=u[a],t[a]=s,s.d=Hn(s)}t.d=Hn(t)}function Hn(t){var e=t.r,n=t.l;return(e?n?Math.max(e.d,n.d):e.d:n?n.d:0)+1}h(Fn.prototype,((Mn={add:function(t){return Ln(this,t),this},addKey:function(t){return qn(this,t,t),this},addKeys:function(t){var e=this;return t.forEach((function(t){return qn(e,t,t)})),this}})[N]=function(){return zn(this)},Mn));var Wn={stack:"dbcore",level:0,create:function(t){var e=t.schema.name,n=new Fn(t.MIN_KEY,t.MAX_KEY);return r(r({},t),{table:function(o){var i=t.table(o),u=i.schema,c=u.primaryKey,l=c.extractKey,f=c.outbound,h=r(r({},i),{mutate:function(t){var r=t.trans,a=r.mutatedParts||(r.mutatedParts={}),c=function(t){var n="idb://"+e+"/"+o+"/"+t;return a[n]||(a[n]=new Fn)},l=c(""),f=c(":dels"),h=t.type,p="deleteRange"===t.type?[t.range]:"delete"===t.type?[t.keys]:t.values.length<50?[[],t.values]:[],d=p[0],v=p[1],y=t.trans._cache;return i.mutate(t).then((function(t){if(s(d)){"delete"!==h&&(d=t.results),l.addKeys(d);var e=Nn(d,y);e||"add"===h||f.addKeys(d),(e||v)&&function(t,e,n,r){e.indexes.forEach((function(e){var o=t(e.name||"");function i(t){return null!=t?e.extractKey(t):null}var a=function(t){return e.multiEntry&&s(t)?t.forEach((function(t){return o.addKey(t)})):o.addKey(t)};(n||r).forEach((function(t,e){var o=n&&i(n[e]),s=r&&i(r[e]);0!==Me(o,s)&&(null!=o&&a(o),null!=s&&a(s))}))}))}(c,u,e,v)}else if(d){var r={from:d.lower,to:d.upper};f.add(r),l.add(r)}else l.add(n),f.add(n),u.indexes.forEach((function(t){return c(t.name).add(n)}));return t}))}}),p=function(e){var n,r,o=e.query,i=o.index,a=o.range;return[i,new Fn(null!==(n=a.lower)&&void 0!==n?n:t.MIN_KEY,null!==(r=a.upper)&&void 0!==r?r:t.MAX_KEY)]},d={get:function(t){return[c,new Fn(t.key)]},getMany:function(t){return[c,(new Fn).addKeys(t.keys)]},count:p,query:p,openCursor:p};return a(d).forEach((function(t){h[t]=function(a){var s=It.subscr;if(s){var u=function(t){var n="idb://"+e+"/"+o+"/"+t;return s[n]||(s[n]=new Fn)},c=u(""),h=u(":dels"),p=d[t](a),v=p[0],y=p[1];if(u(v.name||"").add(y),!v.isPrimaryKey){if("count"!==t){var m="query"===t&&f&&a.values&&i.query(r(r({},a),{values:!1}));return i[t].apply(this,arguments).then((function(e){if("query"===t){if(f&&a.values)return m.then((function(t){var n=t.result;return c.addKeys(n),e}));var n=a.values?e.result.map(l):e.result;a.values?c.addKeys(n):h.addKeys(n)}else if("openCursor"===t){var r=e,o=a.values;return r&&Object.create(r,{key:{get:function(){return h.addKey(r.primaryKey),r.key}},primaryKey:{get:function(){var t=r.primaryKey;return h.addKey(t),t}},value:{get:function(){return o&&c.addKey(r.primaryKey),r.value}}})}return e}))}h.add(n)}}return i[t].apply(this,arguments)}})),h}})}};var Un,Yn=function(){function t(e,n){var o=this;this._middlewares={},this.verno=0;var i=t.dependencies;this._options=n=r({addons:t.addons,autoOpen:!0,indexedDB:i.indexedDB,IDBKeyRange:i.IDBKeyRange},n),this._deps={indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange};var a=n.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var s={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:ot,dbReadyPromise:null,cancelOpen:ot,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};s.dbReadyPromise=new Nt((function(t){s.dbReadyResolve=t})),s.openCanceller=new Nt((function(t,e){s.cancelOpen=e})),this._state=s,this.name=e,this.on=Ee(this,"populate","blocked","versionchange","close",{ready:[ht,ot]}),this.on.ready.subscribe=w(this.on.ready.subscribe,(function(e){return function(n,r){t.vip((function(){var t=o._state;if(t.openComplete)t.dbOpenError||Nt.resolve().then(n),r&&e(n);else if(t.onReadyBeingFired)t.onReadyBeingFired.push(n),r&&e(n);else{e(n);var i=o;r||e((function t(){i.on.ready.unsubscribe(n),i.on.ready.unsubscribe(t)}))}}))}})),this.Collection=function(t){return Ae(Fe.prototype,(function(e,n){this.db=t;var r=Oe,o=null;if(n)try{r=n()}catch(u){o=u}var i=e._ctx,a=i.table,s=a.hook.reading.fire;this._ctx={table:a,index:i.index,isPrimKey:!i.index||a.schema.primKey.keyPath&&i.index===a.schema.primKey.name,range:r,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:o,or:i.or,valueMapper:s!==it?s:null}}))}(this),this.Table=function(t){return Ae(je.prototype,(function(e,n,r){this.db=t,this._tx=r,this.name=e,this.schema=n,this.hook=t._allTables[e]?t._allTables[e].hook:Ee(null,{creating:[ut,ot],reading:[at,it],updating:[lt,ot],deleting:[ct,ot]})}))}(this),this.Transaction=function(t){return Ae($e.prototype,(function(e,n,r,o,i){var a=this;this.db=t,this.mode=e,this.storeNames=n,this.schema=r,this.chromeTransactionDurability=o,this.idbtrans=null,this.on=Ee(this,"complete","error","abort"),this.parent=i||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Nt((function(t,e){a._resolve=t,a._reject=e})),this._completion.then((function(){a.active=!1,a.on.complete.fire()}),(function(t){var e=a.active;return a.active=!1,a.on.error.fire(t),a.parent?a.parent._reject(t):e&&a.idbtrans&&a.idbtrans.abort(),ve(t)}))}))}(this),this.Version=function(t){return Ae(xn.prototype,(function(e){this.db=t,this._cfg={version:e,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))}(this),this.WhereClause=function(t){return Ae(Ze.prototype,(function(e,n,r){this.db=t,this._ctx={table:e,index:":id"===n?null:n,or:r};var o=t._deps.indexedDB;if(!o)throw new et.MissingAPI;this._cmp=this._ascending=o.cmp.bind(o),this._descending=function(t,e){return o.cmp(e,t)},this._max=function(t,e){return o.cmp(t,e)>0?t:e},this._min=function(t,e){return o.cmp(t,e)<0?t:e},this._IDBKeyRange=t._deps.IDBKeyRange}))}(this),this.on("versionchange",(function(t){t.newVersion>0?console.warn("Another connection wants to upgrade database '"+o.name+"'. Closing db now to resume the upgrade."):console.warn("Another connection wants to delete database '"+o.name+"'. Closing db now to resume the delete request."),o.close()})),this.on("blocked",(function(t){!t.newVersion||t.newVersion<t.oldVersion?console.warn("Dexie.delete('"+o.name+"') was blocked"):console.warn("Upgrade '"+o.name+"' blocked by other connection holding version "+t.oldVersion/10)})),this._maxKey=rn(n.IDBKeyRange),this._createTransaction=function(t,e,n,r){return new o.Transaction(t,e,n,o._options.chromeTransactionDurability,r)},this._fireOnBlocked=function(t){o.on("blocked").fire(t),be.filter((function(t){return t.name===o.name&&t!==o&&!t._state.vcFired})).map((function(e){return e.on("versionchange").fire(t)}))},this.use(Cn),this.use(Kn),this.use(Wn),this.use(Rn),this.vip=Object.create(this,{_vip:{value:!0}}),a.forEach((function(t){return t(o)}))}return t.prototype.version=function(t){if(isNaN(t)||t<.1)throw new et.Type("Given version is not a positive number");if(t=Math.round(10*t)/10,this.idbdb||this._state.isBeingOpened)throw new et.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,t);var e=this._versions,n=e.filter((function(e){return e._cfg.version===t}))[0];return n||(n=new this.Version(t),e.push(n),e.sort(dn),n.stores({}),this._state.autoSchema=!1,n)},t.prototype._whenReady=function(t){var e=this;return this.idbdb&&(this._state.openComplete||It.letThrough||this._vip)?t():new Nt((function(t,n){if(e._state.openComplete)return n(new et.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return void n(new et.DatabaseClosed);e.open().catch(ot)}e._state.dbReadyPromise.then(t,n)})).then(t)},t.prototype.use=function(t){var e=t.stack,n=t.create,r=t.level,o=t.name;o&&this.unuse({stack:e,name:o});var i=this._middlewares[e]||(this._middlewares[e]=[]);return i.push({stack:e,create:n,level:null==r?10:r,name:o}),i.sort((function(t,e){return t.level-e.level})),this},t.prototype.unuse=function(t){var e=t.stack,n=t.name,r=t.create;return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter((function(t){return r?t.create!==r:!!n&&t.name!==n}))),this},t.prototype.open=function(){return En(this)},t.prototype._close=function(){var t=this._state,e=be.indexOf(this);if(e>=0&&be.splice(e,1),this.idbdb){try{this.idbdb.close()}catch(n){}this._novip.idbdb=null}t.dbReadyPromise=new Nt((function(e){t.dbReadyResolve=e})),t.openCanceller=new Nt((function(e,n){t.cancelOpen=n}))},t.prototype.close=function(){this._close();var t=this._state;this._options.autoOpen=!1,t.dbOpenError=new et.DatabaseClosed,t.isBeingOpened&&t.cancelOpen(t.dbOpenError)},t.prototype.delete=function(){var t=this,e=arguments.length>0,n=this._state;return new Nt((function(r,o){var i=function(){t.close();var e=t._deps.indexedDB.deleteDatabase(t.name);e.onsuccess=Zt((function(){On(t._deps,t.name),r()})),e.onerror=Qe(o),e.onblocked=t._fireOnBlocked};if(e)throw new et.InvalidArgument("Arguments not allowed in db.delete()");n.isBeingOpened?n.dbReadyPromise.then(i):i()}))},t.prototype.backendDB=function(){return this.idbdb},t.prototype.isOpen=function(){return null!==this.idbdb},t.prototype.hasBeenClosed=function(){var t=this._state.dbOpenError;return t&&"DatabaseClosed"===t.name},t.prototype.hasFailed=function(){return null!==this._state.dbOpenError},t.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(t.prototype,"tables",{get:function(){var t=this;return a(this._allTables).map((function(e){return t._allTables[e]}))},enumerable:!1,configurable:!0}),t.prototype.transaction=function(){var t=Tn.apply(this,arguments);return this._transaction.apply(this,t)},t.prototype._transaction=function(t,e,n){var r=this,o=It.trans;o&&o.db===this&&-1===t.indexOf("!")||(o=null);var i,a,s=-1!==t.indexOf("?");t=t.replace("!","").replace("?","");try{if(a=e.map((function(t){var e=t instanceof r.Table?t.name:t;if("string"!==typeof e)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return e})),"r"==t||"readonly"===t)i="readonly";else{if("rw"!=t&&"readwrite"!=t)throw new et.InvalidArgument("Invalid transaction mode: "+t);i="readwrite"}if(o){if("readonly"===o.mode&&"readwrite"===i){if(!s)throw new et.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");o=null}o&&a.forEach((function(t){if(o&&-1===o.storeNames.indexOf(t)){if(!s)throw new et.SubTransaction("Table "+t+" not included in parent transaction.");o=null}})),s&&o&&!o.active&&(o=null)}}catch(c){return o?o._promise(null,(function(t,e){e(c)})):ve(c)}var u=Pn.bind(null,this,i,a,o,n);return o?o._promise(i,u,"lock"):It.trans?le(It.transless,(function(){return r._whenReady(u)})):this._whenReady(u)},t.prototype.table=function(t){if(!f(this._allTables,t))throw new et.InvalidTable("Table "+t+" does not exist");return this._allTables[t]},t}(),Vn="undefined"!==typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable",Zn=function(){function t(t){this._subscribe=t}return t.prototype.subscribe=function(t,e,n){return this._subscribe(t&&"function"!==typeof t?t:{next:t,error:e,complete:n})},t.prototype[Vn]=function(){return this},t}();function Qn(t,e){return a(e).forEach((function(n){Ln(t[n]||(t[n]=new Fn),e[n])})),t}try{Un={indexedDB:i.indexedDB||i.mozIndexedDB||i.webkitIndexedDB||i.msIndexedDB,IDBKeyRange:i.IDBKeyRange||i.webkitIDBKeyRange}}catch(or){Un={indexedDB:null,IDBKeyRange:null}}var Xn=Yn;function Jn(t){var e=$n;try{$n=!0,Je.storagemutated.fire(t)}finally{$n=e}}h(Xn,r(r({},rt),{delete:function(t){return new Xn(t,{addons:[]}).delete()},exists:function(t){return new Xn(t,{addons:[]}).open().then((function(t){return t.close(),!0})).catch("NoSuchDatabaseError",(function(){return!1}))},getDatabaseNames:function(t){try{return function(t){var e=t.indexedDB,n=t.IDBKeyRange;return Sn(e)?Promise.resolve(e.databases()).then((function(t){return t.map((function(t){return t.name})).filter((function(t){return"__dbnames"!==t}))})):_n(e,n).toCollection().primaryKeys()}(Xn.dependencies).then(t)}catch(Mn){return ve(new et.MissingAPI)}},defineClass:function(){return function(t){u(this,t)}},ignoreTransaction:function(t){return It.trans?le(It.transless,t):t()},vip:kn,async:function(t){return function(){try{var e=An(t.apply(this,arguments));return e&&"function"===typeof e.then?e:Nt.resolve(e)}catch(or){return ve(or)}}},spawn:function(t,e,n){try{var r=An(t.apply(n,e||[]));return r&&"function"===typeof r.then?r:Nt.resolve(r)}catch(or){return ve(or)}},currentTransaction:{get:function(){return It.trans||null}},waitFor:function(t,e){var n=Nt.resolve("function"===typeof t?Xn.ignoreTransaction(t):t).timeout(e||6e4);return It.trans?It.trans.waitFor(n):n},Promise:Nt,debug:{get:function(){return q},set:function(t){L(t,"dexie"===t?function(){return!0}:_e)}},derive:v,extend:u,props:h,override:w,Events:Ee,on:Je,liveQuery:function(t){return new Zn((function(e){var n=F(t);var r=!1,o={},i={},s={get closed(){return r},unsubscribe:function(){r=!0,Je.storagemutated.unsubscribe(f)}};e.start&&e.start(s);var u=!1,c=!1;function l(){return a(i).some((function(t){return o[t]&&function(t,e){var n=zn(e),r=n.next();if(r.done)return!1;for(var o=r.value,i=zn(t),a=i.next(o.from),s=a.value;!r.done&&!a.done;){if(Me(s.from,o.to)<=0&&Me(s.to,o.from)>=0)return!0;Me(o.from,s.from)<0?o=(r=n.next(s.from)).value:s=(a=i.next(o.from)).value}return!1}(o[t],i[t])}))}var f=function(t){Qn(o,t),l()&&h()},h=function(){if(!u&&!r){o={};var a={},p=function(e){n&&re();var r=function(){return ne(t,{subscr:e,trans:null})},o=It.trans?le(It.transless,r):r();return n&&o.then(oe,oe),o}(a);c||(Je("storagemutated",f),c=!0),u=!0,Promise.resolve(p).then((function(t){u=!1,r||(l()?h():(o={},i=a,e.next&&e.next(t)))}),(function(t){u=!1,e.error&&e.error(t),s.unsubscribe()}))}};return h(),s}))},extendObservabilitySet:Qn,getByKeyPath:O,setByKeyPath:k,delByKeyPath:function(t,e){"string"===typeof e?k(t,e,void 0):"length"in e&&[].map.call(e,(function(e){k(t,e,void 0)}))},shallowClone:j,deepClone:C,getObjectDiff:Dn,cmp:Me,asap:_,minKey:-1/0,addons:[],connections:be,errnames:$,dependencies:Un,semVer:"3.2.3",version:"3.2.3".split(".").map((function(t){return parseInt(t)})).reduce((function(t,e,n){return t+e/Math.pow(10,2*n)}))})),Xn.maxKey=rn(Xn.dependencies.IDBKeyRange),"undefined"!==typeof dispatchEvent&&"undefined"!==typeof addEventListener&&(Je("storagemutated",(function(t){var e;$n||(ge?(e=document.createEvent("CustomEvent")).initCustomEvent("x-storagemutated-1",!0,!0,t):e=new CustomEvent("x-storagemutated-1",{detail:t}),$n=!0,dispatchEvent(e),$n=!1)})),addEventListener("x-storagemutated-1",(function(t){var e=t.detail;$n||Jn(e)})));var $n=!1;if("undefined"!==typeof BroadcastChannel){var tr=new BroadcastChannel("x-storagemutated-1");"function"===typeof tr.unref&&tr.unref(),Je("storagemutated",(function(t){$n||tr.postMessage(t)})),tr.onmessage=function(t){t.data&&Jn(t.data)}}else if("undefined"!==typeof self&&"undefined"!==typeof navigator){Je("storagemutated",(function(t){try{$n||("undefined"!==typeof localStorage&&localStorage.setItem("x-storagemutated-1",JSON.stringify({trig:Math.random(),changedParts:t})),"object"===typeof self.clients&&o([],self.clients.matchAll({includeUncontrolled:!0}),!0).forEach((function(e){return e.postMessage({type:"x-storagemutated-1",changedParts:t})})))}catch(Mn){}})),"undefined"!==typeof addEventListener&&addEventListener("storage",(function(t){if("x-storagemutated-1"===t.key){var e=JSON.parse(t.newValue);e&&Jn(e.changedParts)}}));var er=self.document&&navigator.serviceWorker;er&&er.addEventListener("message",(function(t){var e=t.data;e&&"x-storagemutated-1"===e.type&&Jn(e.changedParts)}))}Nt.rejectionMapper=function(t,e){if(!t||t instanceof Z||t instanceof TypeError||t instanceof SyntaxError||!t.name||!nt[t.name])return t;var n=new nt[t.name](e||t.message,t);return"stack"in t&&d(n,"stack",{get:function(){return this.inner.stack}}),n},L(q,_e);var nr=new Yn("pushDatabase"),rr=new Yn("bookmarksDatabase");nr.version(1).stores({messages:"++id, uuid"}),rr.version(1).stores({messages:"++id, uuid, article"})},"3OWR":function(t,e,n){var r=n("MrPd"),o=n("juv8"),i=n("LsHQ"),a=n("MMmD"),s=n("6sVZ"),u=n("7GkX"),c=Object.prototype.hasOwnProperty,l=i((function(t,e){if(s(e)||a(e))o(e,u(e),t);else for(var n in e)c.call(e,n)&&r(t,n,e[n])}));t.exports=l},"3mqj":function(t,e,n){var r=n("W2Ac"),o=n("+BqG"),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(i,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},"3vah":function(t,e,n){var r=n("LHWz"),o=n("eDf4"),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},"4Tei":function(t,e,n){var r=n("LHWz"),o=n("Avys"),i=n("+BqG"),a=n("bq/A"),s=n("ok90"),u=n("gg2M"),c=r.Symbol,l=o("wks"),f=u?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return i(l,t)||(l[t]=s&&i(c,t)?c[t]:f("Symbol."+t)),l[t]}},"4aqD":function(t,e,n){"use strict";var r=n("szlw"),o=n("LHWz"),i=n("JVs5"),a=n("4wiq"),s=n("DcKJ"),u=n("W2Ac"),c=n("ok90"),l=n("xZj3"),f=n("+BqG"),h=n("GOOj"),p=n("Y6hy"),d=n("Yo2p"),v=n("8z+Y"),y=n("QICv"),m=n("PEjt"),b=n("HyK6"),g=n("niYQ"),w=n("N0Qq"),x=n("HMdW"),_=n("pfAL"),S=n("jfrp"),O=n("xnEm"),k=n("aLLH"),j=n("I62h"),E=n("esM1"),A=n("zRp7"),T=n("Avys"),P=n("7BeB"),I=n("SfKh"),C=n("bq/A"),D=n("4Tei"),K=n("X1e3"),N=n("Rvgf"),M=n("hLh5"),R=n("e1XL"),B=n("53GT"),F=n("vwUX").forEach,q=P("hidden"),L=B.set,z=B.getterFor("Symbol"),G=Object.prototype,H=o.Symbol,W=H&&H.prototype,U=o.TypeError,Y=o.QObject,V=S.f,Z=O.f,Q=x.f,X=j.f,J=a([].push),$=T("symbols"),tt=T("op-symbols"),et=T("wks"),nt=!Y||!Y.prototype||!Y.prototype.findChild,rt=u&&l((function(){return 7!=b(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=V(G,e);r&&delete G[e],Z(t,e,n),r&&t!==G&&Z(G,e,r)}:Z,ot=function(t,e){var n=$[t]=b(W);return L(n,{type:"Symbol",tag:t,description:e}),u||(n.description=e),n},it=function(t,e,n){t===G&&it(tt,e,n),p(t);var r=v(e);return p(n),f($,r)?(n.enumerable?(f(t,q)&&t[q][r]&&(t[q][r]=!1),n=b(n,{enumerable:m(0,!1)})):(f(t,q)||Z(t,q,m(1,{})),t[q][r]=!0),rt(t,r,n)):Z(t,r,n)},at=function(t,e){p(t);var n=d(e),r=g(n).concat(lt(n));return F(r,(function(e){u&&!i(st,n,e)||it(t,e,n[e])})),t},st=function(t){var e=v(t),n=i(X,this,e);return!(this===G&&f($,e)&&!f(tt,e))&&(!(n||!f(this,e)||!f($,e)||f(this,q)&&this[q][e])||n)},ut=function(t,e){var n=d(t),r=v(e);if(n!==G||!f($,r)||f(tt,r)){var o=V(n,r);return!o||!f($,r)||f(n,q)&&n[q][r]||(o.enumerable=!0),o}},ct=function(t){var e=Q(d(t)),n=[];return F(e,(function(t){f($,t)||f(I,t)||J(n,t)})),n},lt=function(t){var e=t===G,n=Q(e?tt:d(t)),r=[];return F(n,(function(t){!f($,t)||e&&!f(G,t)||J(r,$[t])})),r};c||(E(W=(H=function(){if(h(W,this))throw U("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,e=C(t),n=function(t){this===G&&i(n,tt,t),f(this,q)&&f(this[q],e)&&(this[q][e]=!1),rt(this,e,m(1,t))};return u&&nt&&rt(G,e,{configurable:!0,set:n}),ot(e,t)}).prototype,"toString",(function(){return z(this).tag})),E(H,"withoutSetter",(function(t){return ot(C(t),t)})),j.f=st,O.f=it,k.f=at,S.f=ut,w.f=x.f=ct,_.f=lt,K.f=function(t){return ot(D(t),t)},u&&(A(W,"description",{configurable:!0,get:function(){return z(this).description}}),s||E(G,"propertyIsEnumerable",st,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:H}),F(g(et),(function(t){N(t)})),r({target:"Symbol",stat:!0,forced:!c},{useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?b(t):at(b(t),e)},defineProperty:it,defineProperties:at,getOwnPropertyDescriptor:ut}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ct}),M(),R(H,"Symbol"),I[q]=!0},"4wiq":function(t,e,n){var r=n("orrc"),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);t.exports=r?a:function(t){return function(){return i.apply(t,arguments)}}},"52Wu":function(t,e,n){var r=n("4wiq"),o=n("eDf4"),i=n("TGyr"),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},"53GT":function(t,e,n){var r,o,i,a=n("3vah"),s=n("LHWz"),u=n("mESY"),c=n("w1io"),l=n("+BqG"),f=n("TGyr"),h=n("7BeB"),p=n("SfKh"),d=s.TypeError,v=s.WeakMap;if(a||f.state){var y=f.state||(f.state=new v);y.get=y.get,y.has=y.has,y.set=y.set,r=function(t,e){if(y.has(t))throw d("Object already initialized");return e.facade=t,y.set(t,e),e},o=function(t){return y.get(t)||{}},i=function(t){return y.has(t)}}else{var m=h("state");p[m]=!0,r=function(t,e){if(l(t,m))throw d("Object already initialized");return e.facade=t,c(t,m,e),e},o=function(t){return l(t,m)?t[m]:{}},i=function(t){return l(t,m)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw d("Incompatible receiver, "+t+" required");return n}}}},"5ANw":function(t,e,n){var r=n("szlw"),o=n("+BqG"),i=n("RKsz"),a=n("B8MI"),s=n("Avys"),u=n("vY6g"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!i(t))throw TypeError(a(t)+" is not a symbol");if(o(c,t))return c[t]}})},"5Tg0":function(t,e,n){(function(t){var r=n("Kz5y"),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}}).call(this,n("YuTi")(t))},"6+Fx":function(t,e,n){var r=n("DsG2"),o=n("esM1"),i=n("lZX+");r||o(Object.prototype,"toString",i,{unsafe:!0})},"6l0v":function(t,e,n){"use strict";n.r(e),n.d(e,"HomePage",(function(){return P}));var r=n("wx14"),o=n("1OyB"),i=n("vuIU"),a=n("Ji7U"),s=n("LK+K"),u=n("q1tI"),c=n.n(u),l=n("ANjH"),f=n("/MKj"),h=n("qhky"),p=n("OADI"),d=n("0srb"),v=c.a.createElement,y=function(t){return v(h.default,null,v("script",{type:"application/ld+json"},"".concat(JSON.stringify({"@context":"https://schema.org","@graph":[{"@type":"Organization",name:"House and Garden South Africa",alternateName:"H&G SA",url:"https://www.houseandgarden.co.za",logo:"https://www.houseandgarden.co.za/logo.jpg",sameAs:["https://www.facebook.com/HouseGardenSA/","https://www.youtube.com/channel/UC17OWNqdopaDxqz0vOCwhFg","https://www.instagram.com/houseandgardensa/","https://www.linkedin.com/company/cond\xe9-nast-independent-magazines-south-africa/mycompany/?viewAsMember=true","https://twitter.com/HouseGardenSA","https://www.tiktok.com/@houseandgardensa","https://za.pinterest.com/housegardensa/"]},{"@type":"WebSite",name:"House and Garden South Africa",url:"https://www.houseandgarden.co.za",headline:"House & Garden Decorations | South Africa's Finest Decor Magazine",potentialAction:{"@type":"SearchAction",target:"https://www.houseandgarden.co.za/search?q={search_term_string}","query-input":"required name=search_term_string"}}]}))))},m=n("kHmz"),b=n("azCW"),g=n.n(b),w=n("rQwP"),x=n("itc3"),_=n("OGoB"),S=n("Ty5D"),O=c.a.createElement,k=function(t){var e=t.articles,n=(t.section,t.noImage),r=(t.isConnected,t.moreButton),o=Object(S.useLocation)();return Object(u.useEffect)((function(){window.adngin&&window.adngin.queue.push((function(){window.adngin.cmd.startAuction(["leaderboard-2","instream"])}))}),[o.pathname]),O(c.a.Fragment,null,e.map((function(t,e){return O(u.Fragment,{key:t.contentKey},e<=10&&O(w.a,{article:t,noImage:n}),O(x.MobileElse,null,e%18===0&&e>15&&O("div",{id:"adngin-instream-0",className:"advert-in-article"})),O(x.Mobile,null,2===e&&O(_.a,null)),e>10&&O(w.a,{article:t,noImage:n,lazy:!0}),O(x.MobileElse,null,8===e&&O("div",{id:"adngin-leaderboard-2-0",className:"advert-leaderboard-2"})),Number.isInteger((e+5)/4)&&O(x.Mobile,null,O("article",{className:"advert"},O("div",{id:"adngin-instream-0",className:"advert-in-article"}))))})),r)},j=n("ZWFX"),E=n("dlDD"),A=n.n(E),T=c.a.createElement,P=function(t){Object(a.a)(n,t);var e=Object(s.a)(n);function n(t){var r;return Object(o.a)(this,n),(r=e.call(this,t)).state={isEmpty:!0,is600:!1,hasMounted:!1},r}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.setState({hasMounted:!0}),window.adngin&&window.adngin.queue.push((function(){window.adngin.cmd.startAuction(["leaderboard-2","leaderboard-3","wingbanner-left","wingbanner-right","halfpage-1","mpu-1","instream"])}))}},{key:"render",value:function(){return T(c.a.Fragment,null,T(m.a,{useSmall:this.props.useSmall,isConnected:this.props.isConnected,location:this.props.location,onSlotRenderEndedLeft:this.props.onSlotRenderEndedLeft,onSlotRenderEndedRight:this.props.onSlotRenderEndedRight}),T(h.default,{title:"House & Garden Decorations | South Africa's Finest Decor Magazine"},T("meta",{property:"og:url",content:"https://www.houseandgarden.co.za"}),T("meta",{name:"description",content:"House & Garden South Africa offers you the best inspiration when it comes to landscaping, home decor, gardening advice, recipes and must see travel destinations."}),T("meta",{itemProp:"description",content:"House & Garden South Africa offers you the best inspiration when it comes to landscaping, home decor, gardening advice, recipes and must see travel destinations."}),T("meta",{property:"og:description",content:"House & Garden South Africa offers you the best inspiration when it comes to landscaping, home decor, gardening advice, recipes and must see travel destinations."}),T("meta",{name:"twitter:site",content:"https://twitter.com/HouseGardenSA"}),T("meta",{name:"twitter:creator",content:"https://twitter.com/HouseGardenSA"}),T("meta",{name:"twitter:description",content:"House & Garden South Africa offers you the best inspiration when it comes to landscaping, home decor, gardening advice, recipes and must see travel destinations."}),T("meta",{name:"twitter:title",content:"House & Garden Decorations | South Africa's Finest Decor Magazine"}),T("meta",{name:"twitter:card",content:"summary_large_image"}),T("meta",{name:"twitter:image:src",content:A.a})),T(y,this.props),T("span",null,T("div",{id:"adngin-leaderboard-1-0",className:"advert-leaderboard-1"})),T("div",{className:"wrapper article-listing",ref:this.setStickyRef},T(d.Articles,Object(r.a)({},this.props,{component:k,section:"all-content-feed",count:18,pageSize:18,noImage:g.a,withMore:!0})),T(j.a,Object(r.a)({},this.props,{section:"homepage",sticky:this.state.sticky}),T("div",null,this.state.hasMounted&&T(x.DesktopTablet,null,T(_.a,null))))),this.state.hasMounted&&T(x.MobileElse,null,T("div",{id:"adngin-leaderboard-3-0",className:"advert-leaderboard-3"})))}}]),n}(u.Component);e.default=Object(f.connect)((function(t){return{articles:t.articles}}),(function(t){return Object(l.bindActionCreators)({Prefetch:p.b},t)}))(P)},"6r0g":function(t,e,n){var r=n("zMKt")("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},"7BeB":function(t,e,n){var r=n("Avys"),o=n("bq/A"),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},"8kdZ":function(t,e,n){n("szlw")({target:"Object",stat:!0},{setPrototypeOf:n("+U1h")})},"8z+Y":function(t,e,n){var r=n("vzvg"),o=n("RKsz");t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},"9dZH":function(t,e,n){},ATIt:function(t,e,n){"use strict";var r=n("x+uP"),o=n("HaE+"),i=n("q1tI"),a=n.n(i),s=n("55Ip"),u=n("zuR4"),c=n("Qyje"),l=n.n(c),f=n("j8mP"),h=n("82UI"),p=n.n(h),d=n("dlDD"),v=n.n(d),y=a.a.createElement,m=function(t){var e=t.componentText,n=t.subscribeConcept;return y("button",{className:"follow-me-btn",onClick:function(){return n()}},e)};e.a=function(t){var e=t.topic,n=t.followText,c=t.unFollowText,h=t.template||m,d=Object(i.useState)(!1),b=d[0],g=d[1],w=Object(i.useState)(!1),x=w[0],_=w[1],S=Object(i.useState)(!1),O=S[0],k=S[1],j=Object(i.useState)(!1),E=j[0],A=j[1];function T(t,e){if(!e)return console.log("*** isSubscribedToConcept: User is not subscribed to any push notifications"),Promise.resolve(!1);var n=l.a.stringify({titleKey:"hag",endpoint:e&&e.endpoint||""});return u.a.post("https://push.iol.io/topics",n,{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(e){var n=e.data.filter((function(e){return e.topic===t}));return console.log("*** subscriptions response",e.status,e.data,"subscribed:",n.length>0),n.length>0})).catch((function(t){return console.log("*** isSubscribedToConcept error:",t.message),!1}))}function P(t,n){var r={topic:t,titleKey:"hag",subscription:JSON.stringify(n)};console.log("*** FollowConcept:","Subscribing",r),console.log("Calling",b?"unsubscribe":"subscribe",e.name),u.a.post("https://push.iol.io"+(b?"/unsubscribe":"/subscribe"),l.a.stringify(r),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){return g(!b)})).catch((function(t){return console.log(b?"Unsubscribe":"Subscribe","Error:",t.message),!1}))}Object(i.useEffect)((function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistration().then((function(t){console.log("*** FollowConcept: registration",t),A(t)}))}),[]),Object(i.useEffect)((function(){console.log("*** FollowConcept: registration",E),E&&E.pushManager&&E.pushManager.getSubscription().then((function(t){console.log("*** FollowConcept: subscription",t),k(t)}))}),[E]),Object(i.useEffect)((function(){function t(){return(t=Object(o.a)(Object(r.a)().mark((function t(){var n;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,T(e.topic,O);case 2:n=t.sent,g(n);case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}console.log("FollowConcept setIsSubscribed",e.name,O,e.topic),function(){t.apply(this,arguments)}()}),[O,e.topic]);var I=!("undefined"===typeof window.navigator||!O);return I?y(h,{componentText:I&&b?c:n,subscribeConcept:function(){return P(e.topic,O)}}):E&&E.pushManager?y(a.a.Fragment,null,x&&y(p.a,{visible:!0},y("div",{className:"push-notification"},y("div",null,y("img",{src:v.a,alt:"House & Garden"})),y("div",{color:"grey"},y("p",null,"Small problem.."),y("p",null,"You have chosen to block notifications."),y("p",null,"To follow stories requires you to enable notifications in your browser settings."),y("div",{display:"flex",justifycontent:"flex-end"},y(s.Link,{onClick:function(){return _(!1)},to:"/help"},"Help"),y("button",{onClick:function(){return _(!1)}},"OK"))))),y(h,{componentText:n,subscribeConcept:function(){return t=e.topic,console.log("*** FollowConcept:","Registering and subscribing"),void E.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Object(f.c)("BOhM2CjvSR-t3HkWz6XU1w5viVCxLrjbUPiqkwTNuJIr-Ns-IbRh1qtkQCVPRkKCiRqYPjCCnT_Dkfo9ZCrEnEM")}).then((function(e){return console.log("User IS now subscribed."),k(e),P(t,e)})).catch((function(t){console.log("Failed to subscribe the user: ",t),_(!0),k(!1)}));var t}})):null}},Avys:function(t,e,n){var r=n("DcKJ"),o=n("TGyr");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.1",mode:r?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})},B0s0:function(t,e,n){var r=n("eDf4"),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},B8MI:function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},"Bje/":function(t,e,n){"use strict";var r=n("q1tI"),o=n.n(r),i=n("yCm8"),a=n("ATIt"),s=n("55Ip"),u=o.a.createElement;e.a=function(t){return u(o.a.Fragment,null,u("div",{className:"author-bio"},u(i.ImageOrNoImage,{shape:"square",width:450,image:{url:t.imageUrl},alt:t.name,noImage:t.noImage}),u("h4",null,u(s.Link,{to:"/"+t.slug},t.name)),t.description&&u("p",null,t.description),u(a.a,{topic:{topic:t.uuid,type:"author",name:t.name},followText:"Follow My Stories",unFollowText:"Unfollow My Stories"})))}},Bsj1:function(t,e,n){var r=n("TsPY"),o=n("B8MI"),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a constructor")}},Bw1r:function(t,e,n){var r=n("4Tei"),o=n("HyK6"),i=n("xnEm").f,a=r("unscopables"),s=Array.prototype;void 0==s[a]&&i(s,a,{configurable:!0,value:o(null)}),t.exports=function(t){s[a][t]=!0}},CvoT:function(t,e,n){var r=n("4wiq"),o=n("xZj3"),i=n("Dr2v"),a=Object,s=r("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?s(t,""):a(t)}:a},DKAt:function(t,e,n){var r=n("szlw"),o=n("W2Ac"),i=n("xnEm").f;r({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},DSVV:function(t,e,n){var r=n("4wiq"),o=n("FTia"),i=n("eDf4"),a=n("Dr2v"),s=n("QICv"),u=r([].push);t.exports=function(t){if(i(t))return t;if(o(t)){for(var e=t.length,n=[],r=0;r<e;r++){var c=t[r];"string"==typeof c?u(n,c):"number"!=typeof c&&"Number"!=a(c)&&"String"!=a(c)||u(n,s(c))}var l=n.length,f=!0;return function(t,e){if(f)return f=!1,e;if(o(this))return e;for(var r=0;r<l;r++)if(n[r]===t)return e}}}},DcKJ:function(t,e){t.exports=!1},Dr2v:function(t,e,n){var r=n("4wiq"),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},DsG2:function(t,e,n){var r={};r[n("4Tei")("toStringTag")]="z",t.exports="[object z]"===String(r)},Dtfp:function(t,e,n){var r=n("szlw"),o=n("sCZI"),i=n("yG9A"),a=n("031f"),s=n("Bsj1"),u=n("Y6hy"),c=n("mESY"),l=n("HyK6"),f=n("xZj3"),h=o("Reflect","construct"),p=Object.prototype,d=[].push,v=f((function(){function t(){}return!(h((function(){}),[],t)instanceof t)})),y=!f((function(){h((function(){}))})),m=v||y;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(t,e){s(t),u(e);var n=arguments.length<3?t:s(arguments[2]);if(y&&!v)return h(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return i(d,r,e),new(i(a,t,r))}var o=n.prototype,f=l(c(o)?o:p),m=i(t,f,e);return c(m)?m:f}})},"Dw+G":function(t,e,n){var r=n("juv8"),o=n("mTTR");t.exports=function(t,e){return t&&r(e,o(e),t)}},DzJC:function(t,e,n){var r=n("sEfC"),o=n("GoyQ");t.exports=function(t,e,n){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(t,e,{leading:i,maxWait:e,trailing:a})}},EEGq:function(t,e,n){var r=n("juv8"),o=n("oCl/");t.exports=function(t,e){return r(t,o(t),e)}},F5Zs:function(t,e,n){var r=n("pROP"),o=n("j0Et");t.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n)}},FTia:function(t,e,n){var r=n("Dr2v");t.exports=Array.isArray||function(t){return"Array"==r(t)}},Fyp5:function(t,e,n){var r,o,i=n("LHWz"),a=n("Qkng"),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},G8w8:function(t,e,n){t.exports=n.p+"static/media/no-search-results-v2.f76581a0.svg"},GLMc:function(t,e,n){var r=n("c5/t");t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},GOOj:function(t,e,n){var r=n("4wiq");t.exports=r({}.isPrototypeOf)},Gi0A:function(t,e,n){var r=n("QqLw"),o=n("ExA7");t.exports=function(t){return o(t)&&"[object Map]"==r(t)}},Gjit:function(t,e,n){var r=n("4wiq");t.exports=r([].slice)},HMdW:function(t,e,n){var r=n("Dr2v"),o=n("Yo2p"),i=n("N0Qq").f,a=n("NKpN"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"==r(t)?function(t){try{return i(t)}catch(e){return a(s)}}(t):i(o(t))}},HRax:function(t,e,n){var r=n("LHWz");t.exports=r},HfWI:function(t,e,n){var r=n("szlw"),o=n("xZj3"),i=n("RpL+"),a=n("PEQI"),s=n("0dUG");r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(t){return a(i(t))}})},HjHI:function(t,e,n){var r=n("JVs5"),o=n("eDf4"),i=n("mESY"),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&o(n=t.toString)&&!i(s=r(n,t)))return s;if(o(n=t.valueOf)&&!i(s=r(n,t)))return s;if("string"!==e&&o(n=t.toString)&&!i(s=r(n,t)))return s;throw a("Can't convert object to primitive value")}},HkKV:function(t,e){t.exports=function(t,e){return{value:t,done:e}}},HyK6:function(t,e,n){var r,o=n("Y6hy"),i=n("aLLH"),a=n("rRP5"),s=n("SfKh"),u=n("K4hL"),c=n("zMKt"),l=n("7BeB"),f=l("IE_PROTO"),h=function(){},p=function(t){return"<script>"+t+"<\/script>"},d=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}v="undefined"!=typeof document?document.domain&&r?d(r):function(){var t,e=c("iframe");return e.style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F}():d(r);for(var t=a.length;t--;)delete v.prototype[a[t]];return v()};s[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h.prototype=o(t),n=new h,h.prototype=null,n[f]=t):n=v(),void 0===e?n:i.f(n,e)}},I62h:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},J54O:function(t,e,n){"use strict";var r=n("8z+Y"),o=n("xnEm"),i=n("PEjt");t.exports=function(t,e,n){var a=r(e);a in t?o.f(t,a,i(0,n)):t[a]=n}},JVs5:function(t,e,n){var r=n("orrc"),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},K4hL:function(t,e,n){var r=n("sCZI");t.exports=r("document","documentElement")},Keil:function(t,e,n){n("4aqD"),n("owxc"),n("5ANw"),n("zM/4"),n("cuZ9")},LHWz:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("yLpj"))},LIjv:function(t,e,n){var r=n("sCZI"),o=n("4wiq"),i=n("N0Qq"),a=n("pfAL"),s=n("Y6hy"),u=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(s(t)),n=a.f;return n?u(e,n(t)):e}},LsHQ:function(t,e,n){var r=n("EA7m"),o=n("mv/X");t.exports=function(t){return r((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var u=n[r];u&&t(e,u,r,a)}return e}))}},N0Qq:function(t,e,n){var r=n("UZoB"),o=n("rRP5").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},NKpN:function(t,e,n){var r=n("gheS"),o=n("11UE"),i=n("J54O"),a=Array,s=Math.max;t.exports=function(t,e,n){for(var u=o(t),c=r(e,u),l=r(void 0===n?u:n,u),f=a(s(l-c,0)),h=0;c<l;c++,h++)i(f,h,t[c]);return f.length=h,f}},NrgV:function(t,e,n){"use strict";var r=n("wx14"),o=n("iuhU"),i=n("q1tI"),a=n.n(i),s=n("ZeOK"),u=n("ICNK"),c=n("Y53p"),l=n("H+2d");function f(t){var e=t.active,n=t.children,i=t.className,h=t.content,p=t.disabled,d=t.indeterminate,v=t.inline,y=t.inverted,m=t.size,b=Object(o.default)("ui",m,Object(s.a)(e,"active"),Object(s.a)(p,"disabled"),Object(s.a)(d,"indeterminate"),Object(s.a)(y,"inverted"),Object(s.a)(n||h,"text"),Object(s.b)(v,"inline"),"loader",i),g=Object(u.a)(f,t),w=Object(c.a)(f,t);return a.a.createElement(w,Object(r.a)({},g,{className:b}),l.a.isNil(n)?h:n)}f.handledProps=["active","as","children","className","content","disabled","indeterminate","inline","inverted","size"],f.propTypes={},e.a=f},OBhP:function(t,e,n){var r=n("fmRc"),o=n("gFfm"),i=n("MrPd"),a=n("WwFo"),s=n("Dw+G"),u=n("5Tg0"),c=n("Q1l4"),l=n("VOtZ"),f=n("EEGq"),h=n("qZTm"),p=n("G6z8"),d=n("QqLw"),v=n("yHx3"),y=n("wrZu"),m=n("+iFO"),b=n("Z0cm"),g=n("DSRE"),w=n("zEVN"),x=n("GoyQ"),_=n("1+5i"),S=n("7GkX"),O=n("mTTR"),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,t.exports=function t(e,n,j,E,A,T){var P,I=1&n,C=2&n,D=4&n;if(j&&(P=A?j(e,E,A,T):j(e)),void 0!==P)return P;if(!x(e))return e;var K=b(e);if(K){if(P=v(e),!I)return c(e,P)}else{var N=d(e),M="[object Function]"==N||"[object GeneratorFunction]"==N;if(g(e))return u(e,I);if("[object Object]"==N||"[object Arguments]"==N||M&&!A){if(P=C||M?{}:m(e),!I)return C?f(e,s(P,e)):l(e,a(P,e))}else{if(!k[N])return A?e:{};P=y(e,N,I)}}T||(T=new r);var R=T.get(e);if(R)return R;T.set(e,P),_(e)?e.forEach((function(r){P.add(t(r,n,j,r,e,T))})):w(e)&&e.forEach((function(r,o){P.set(o,t(r,n,j,o,e,T))}));var B=K?void 0:(D?C?p:h:C?O:S)(e);return o(B||e,(function(r,o){B&&(r=e[o=r]),i(P,o,t(r,n,j,o,e,T))})),P}},OHzr:function(t,e,n){},PEQI:function(t,e,n){var r=n("+BqG"),o=n("eDf4"),i=n("RpL+"),a=n("7BeB"),s=n("0dUG"),u=a("IE_PROTO"),c=Object,l=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=i(t);if(r(e,u))return e[u];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof c?l:null}},PEjt:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},Q1Sd:function(t,e,n){"use strict";n.r(e);var r=n("wx14"),o=n("1OyB"),i=n("vuIU"),a=n("Ji7U"),s=n("LK+K"),u=n("q1tI"),c=n.n(u),l=n("qhky"),f=n("/MKj"),h=n("0srb"),p=n("kHmz"),d=n("ANjH"),v=n("Ty5D"),y=n("ilJE"),m=n("L80f"),b=n("itc3"),g=n("ZWFX"),w=n("azCW"),x=n.n(w),_=n("OGoB"),S=n("Bje/"),O=c.a.createElement,k=function(t){Object(a.a)(n,t);var e=Object(s.a)(n);function n(t){var r;return Object(o.a)(this,n),(r=e.call(this,t)).state={hasMounted:!1},r.props.authors.hasFetched||t.fetchAuthors(),r}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.setState({hasMounted:!0}),window.adngin&&window.adngin.queue.push((function(){window.adngin.cmd.startAuction(["leaderboard-2","leaderboard-3","wingbanner-left","wingbanner-right","halfpage-1","mpu-1"])}))}},{key:"render",value:function(){var t=this.props;return O(c.a.Fragment,null,O(l.default,{titleTemplate:"%s",title:t.title||Object(m.getSectionLabel)(t.section)},O("meta",{property:"og:type",content:"section"}),O("meta",{name:"description",content:t.description}),O("meta",{itemProp:"description",content:t.description}),O("meta",{property:"og:description",content:t.description}),O("meta",{property:"og:url",content:t.url}),O("meta",{property:"keywords",content:t.keywords}),O("meta",{name:"twitter:description",content:t.description})),O(p.a,{useSmall:t.useSmall}),O("div",{id:"adngin-leaderboard-1-0",className:"advert-leaderboard-1"}),O("div",{className:"wrapper article-listing"},t.authors&&t.authors.authors&&O("div",{className:"author article-list"},O("div",{className:"author-bio no-divider"},O("h1",null,"Authors"),O("p",null,"Follow your favourite authors here to be notified of all their latest articles."),O("p",null,"This option is not available to all web browsers.")),t.authors.authors.map((function(t,e){return O(S.a,Object(r.a)({key:e},t,{noImage:x.a}))}))),this.state.hasMounted?O(g.a,t,O(b.DesktopTablet,null,O(_.a,null))):O(g.a,t)),O(b.MobileElse,null,O("div",{id:"adngin-leaderboard-3-0",className:"advert-leaderboard-3"})),O(h.SectionMeta,t))}}]),n}(c.a.Component);k.defaultProps={section:"homepage"};e.default=Object(v.withRouter)(Object(f.connect)((function(t){return{authors:t.authors}}),(function(t){return Object(d.bindActionCreators)({fetchAuthors:y.b},t)}))(k))},Q7rv:function(t,e,n){"use strict";var r,o,i,a=n("xZj3"),s=n("eDf4"),u=n("mESY"),c=n("HyK6"),l=n("PEQI"),f=n("esM1"),h=n("4Tei"),p=n("DcKJ"),d=h("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):v=!0),!u(r)||a((function(){var t={};return r[d].call(t)!==t}))?r={}:p&&(r=c(r)),s(r[d])||f(r,d,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},QICv:function(t,e,n){var r=n("2JmJ"),o=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},QIyF:function(t,e,n){var r=n("Kz5y");t.exports=function(){return r.Date.now()}},Qkng:function(t,e){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},Qqun:function(t,e,n){var r=n("j0Et"),o=TypeError;t.exports=function(t){if(r(t))throw o("Can't call method on "+t);return t}},RKsz:function(t,e,n){var r=n("sCZI"),o=n("eDf4"),i=n("GOOj"),a=n("gg2M"),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,s(t))}},"RpL+":function(t,e,n){var r=n("Qqun"),o=Object;t.exports=function(t){return o(r(t))}},Rvgf:function(t,e,n){var r=n("HRax"),o=n("+BqG"),i=n("X1e3"),a=n("xnEm").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},SfKh:function(t,e){t.exports={}},TGyr:function(t,e,n){var r=n("LHWz"),o=n("uqF2"),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},TsPY:function(t,e,n){var r=n("4wiq"),o=n("xZj3"),i=n("eDf4"),a=n("2JmJ"),s=n("sCZI"),u=n("52Wu"),c=function(){},l=[],f=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,p=r(h.exec),d=!h.exec(c),v=function(t){if(!i(t))return!1;try{return f(c,l,t),!0}catch(e){return!1}},y=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!p(h,u(t))}catch(e){return!0}};y.sham=!0,t.exports=!f||o((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?y:v},UZoB:function(t,e,n){var r=n("4wiq"),o=n("+BqG"),i=n("Yo2p"),a=n("yozl").indexOf,s=n("SfKh"),u=r([].push);t.exports=function(t,e){var n,r=i(t),c=0,l=[];for(n in r)!o(s,n)&&o(r,n)&&u(l,n);for(;e.length>c;)o(r,n=e[c++])&&(~a(l,n)||u(l,n));return l}},UfqS:function(t,e,n){var r=n("ir1D"),o=n("pROP"),i=n("orrc"),a=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},VOtZ:function(t,e,n){var r=n("juv8"),o=n("MvSz");t.exports=function(t,e){return r(t,o(t),e)}},W2Ac:function(t,e,n){var r=n("xZj3");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},WiGv:function(t,e,n){var r=n("FTia"),o=n("TsPY"),i=n("mESY"),a=n("4Tei")("species"),s=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(o(e)&&(e===s||r(e.prototype))||i(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},WkSO:function(t,e,n){"use strict";var r=n("f9pX").charAt,o=n("QICv"),i=n("53GT"),a=n("1Vnf"),s=n("HkKV"),u=i.set,c=i.getterFor("String Iterator");a(String,"String",(function(t){u(this,{type:"String Iterator",string:o(t),index:0})}),(function(){var t,e=c(this),n=e.string,o=e.index;return o>=n.length?s(void 0,!0):(t=r(n,o),e.index+=t.length,s(t,!1))}))},WwFo:function(t,e,n){var r=n("juv8"),o=n("7GkX");t.exports=function(t,e){return t&&r(e,o(e),t)}},"X+CG":function(t,e,n){var r=n("WiGv");t.exports=function(t,e){return new(r(t))(0===e?0:e)}},X1e3:function(t,e,n){var r=n("4Tei");e.f=r},XVRt:function(t,e,n){t.exports=n.p+"static/media/notifications-ico.2720215b.svg"},XYm9:function(t,e,n){var r=n("+K+b");t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},Y6hy:function(t,e,n){var r=n("mESY"),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not an object")}},Yo2p:function(t,e,n){var r=n("CvoT"),o=n("Qqun");t.exports=function(t){return r(o(t))}},ZWFX:function(t,e,n){"use strict";var r=n("1OyB"),o=n("vuIU"),i=n("JX7q"),a=n("Ji7U"),s=n("LK+K"),u=n("q1tI"),c=n.n(u),l=n("qhky"),f=n("JkJM"),h=n("ez+O"),p=(n("8kdZ"),n("HfWI"),n("6+Fx"),n("Dtfp"),n("DKAt"),n("Keil"),n("weF/"),n("+/7S"),n("+YUa"),n("WkSO"),n("nNRg"),n("17x9")),d=n.n(p),v=n("3OWR"),y=n.n(v),m=n("uhBA"),b=n.n(m),g=!1;if("undefined"!==typeof window)try{var w=Object.defineProperty({},"passive",{get:function(){g=!0}});window.addEventListener("test",null,w),window.removeEventListener("test",null,w)}catch(ne){}var x=g,_={connections:{},EE:new b.a,enableResizeInfo:!1,enableScrollInfo:!1,listeners:{},removers:[],supportPassiveEvent:x},S=_.supportPassiveEvent,O={capture:!1,passive:!1};var k=function(t,e,n,r){var o="addEventListener",i="removeEventListener",a=e,s=!!S&&y()({},O,r);return!t.addEventListener&&t.attachEvent&&(o="attachEvent",i="detachEvent",a="on"+e),t[o](a,n,s),{remove:function(){t[i](e,n)}}},j=!1;if("undefined"!==typeof navigator){var E=navigator.userAgent.match(/MSIE (\d+\.\d+)/);E&&(j=parseFloat(E[1],10)<9)}var A=j,T=n("uM7l"),P=n.n(T),I=n("DzJC"),C=n.n(I),D=n("vN+2"),K=n.n(D),N=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function M(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var R={width:0,height:0},B={delta:0,top:0},F={axisIntention:"",startX:0,startY:0,deltaX:0,deltaY:0},q=function(t){var e={x:0,y:0},n=document.body,r=document.documentElement;return t.pageX||t.pageY?(e.x=t.pageX,e.y=t.pageY):(e.x=t.clientX+n.scrollLeft+r.scrollLeft,e.y=t.clientY+n.scrollTop+r.scrollTop),e},L=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};M(this,t);var n=(e.mainType||"").toLowerCase(),r=(e.subType||"").toLowerCase();this.mainType=n,this.subType=r,this.type=n+r.charAt(0).toUpperCase()+r.slice(1)||"",this.scroll=B,this.resize=R,this.touch=F}return N(t,[{key:"update",value:function(t){var e=this.mainType,n=this.subType,r=document.documentElement;if(_.enableScrollInfo&&("scroll"===e||"touchmove"===e)){var o=r.scrollTop+document.body.scrollTop;o!==this.scroll.top&&(this.scroll.delta=o-this.scroll.top,this.scroll.top=o)}if(_.enableResizeInfo&&"resize"===e&&(this.resize.width=window.innerWidth||r.clientWidth,this.resize.height=window.innerHeight||r.clientHeight),_.enableTouchInfo&&t.touches&&("touchstart"===e||"touchmove"===e||"touchend"===e)){var i=void 0,a=void 0,s=void 0;"touchstart"===e||"start"===n?(i=q(t.touches[0]),this.touch.axisIntention="",this.touch.startX=i.x,this.touch.startY=i.y,this.touch.deltaX=0,this.touch.deltaY=0):"touchmove"===e&&(i=q(t.touches[0]),this.touch.deltaX=i.x-this.touch.startX,this.touch.deltaY=i.y-this.touch.startY,""===this.touch.axisIntention&&(a=Math.abs(this.touch.deltaX),s=Math.abs(this.touch.deltaY),a>5&&a>=s?this.touch.axisIntention="x":s>5&&s>a&&(this.touch.axisIntention="y")))}}}]),t}(),z=n("xEkU"),G=n.n(z),H=Date.now||function(){return(new Date).getTime()};var W=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15,n=void 0,r=void 0,o=0,i=0,a=function a(){var s=H();e-(s-o)<=0?(o=s,i=0,t.apply(n,r)):i=G()(a)};return function(){n=this,r=arguments,i||(i=G()(a))}},U=_.connections,Y=_.EE,V=_.listeners,Z=_.removers,Q=void 0,X=void 0,J=void 0,$=0;function tt(t){return t.id||"target-id-"+$++}function et(t,e,n,r){return Y.on(t,e||K.a,n),U[r=r||t]=(U[r]||0)+1,{_type:t,_cb:e,_ctx:n,unsubscribe:function(){if(this._type){Y.removeListener(t,e,n),U[r]--,0===U[r]&&(V[r].remove(),V[r]=void 0),this._type=void 0,this._cb=void 0,this._ctx=void 0;for(var o=Z.length-1;o>=0;o--){if(Z[o]===this){Z.splice(o,1);break}}}}}}function nt(t,e,n){return function(r,o,i,a){var s=i.context,u=i.target,c=u&&tt(u),l=c?":"+c:"",f=e+"Start:"+r+l,h=e+"End:"+r+l,p=e+":"+r+l,d=et(n+":"+r+l,o,s,p);if(Z.push(d),V[p])return d;var v={start:new L({mainType:e,subType:"start"}),main:new L({mainType:e}),end:new L({mainType:e,subType:"end"})};"raf"===r?(r=16,b=W(b)):r>0&&(b=C()(b,r));var y=void 0;function m(t){v.end.update(t),Y.emit(h,t,v.end),y=null}function b(t){y||(v.start.update(t),Y.emit(f,t,v.start)),clearTimeout(y),v.main.update(t),Y.emit(p,t,v.main),y=A?setTimeout((function(){m(P()(t))}),r+100):setTimeout(m.bind(null,t),r+100)}return V[p]=k(u||t,e,b,a),d}}function rt(t,e){return function(n,r,o,i){var a=o.context,s=o.target,u=s&&tt(s),c=e+":0"+(u?":"+u:""),l=et(c,r,a);if(Z.push(l),V[c])return l;var f=new L({mainType:e});return V[c]=k(s||t,e,(function(t){f.update(t),Y.emit(c,t,f)}),i),l}}"undefined"!==typeof window&&(J=(Q=(X=window).document||document).body);var ot={scrollStart:nt(X,"scroll","scrollStart"),scrollEnd:nt(X,"scroll","scrollEnd"),scroll:nt(X,"scroll","scroll"),resizeStart:nt(X,"resize","resizeStart"),resizeEnd:nt(X,"resize","resizeEnd"),resize:nt(X,"resize","resize"),visibilitychange:rt(Q,"visibilitychange"),touchmoveStart:nt(J,"touchmove","touchmoveStart"),touchmoveEnd:nt(J,"touchmove","touchmoveEnd"),touchmove:nt(J,"touchmove","touchmove"),touchstart:rt(J,"touchstart"),touchend:rt(J,"touchend")};var it=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.useRAF||!1,o=parseInt(n.throttleRate,10),i=n.eventOptions;return isNaN(o)&&(o=50),r&&(o="raf"),A&&(o=0),_.enableScrollInfo=_.enableScrollInfo||n.enableScrollInfo||!1,_.enableResizeInfo=_.enableResizeInfo||n.enableResizeInfo||!1,_.enableTouchInfo=_.enableTouchInfo||n.enableTouchInfo||!1,ot[t](o,e,n,i)};_.removers;var at="undefined"!==typeof window;function st(){0}var ut=at?it:st,ct=n("TSYQ"),lt=n.n(ct),ft=n("Gytx"),ht=n.n(ft);function pt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dt(t){return(dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function yt(t,e){return(yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function mt(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=wt(t);if(e){var o=wt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bt(this,n)}}function bt(t,e){if(e&&("object"===dt(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return gt(t)}function gt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wt(t){return(wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var xt,_t,St,Ot,kt,jt="transform",Et=!0,At=0,Tt=-1,Pt=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yt(t,e)}(i,t);var e,n,r,o=mt(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).handleResize=n.handleResize.bind(gt(n)),n.handleScroll=n.handleScroll.bind(gt(n)),n.handleScrollStart=n.handleScrollStart.bind(gt(n)),n.delta=0,n.stickyTop=0,n.stickyBottom=0,n.frozen=!1,n.skipNextScrollEvent=!1,n.scrollTop=-1,n.bottomBoundaryTarget,n.topTarget,n.subscribers,n.state={top:0,bottom:0,width:0,height:0,x:0,y:0,topBoundary:0,bottomBoundary:1/0,status:0,pos:0,activated:!1},n}return e=i,(n=[{key:"getTargetHeight",value:function(t){return t&&t.offsetHeight||0}},{key:"getTopPosition",value:function(t){return"string"===typeof(t=t||this.props.top||0)&&(this.topTarget||(this.topTarget=xt.querySelector(t)),t=this.getTargetHeight(this.topTarget)),t}},{key:"getTargetBottom",value:function(t){if(!t)return-1;var e=t.getBoundingClientRect();return this.scrollTop+e.bottom}},{key:"getBottomBoundary",value:function(t){var e=t||this.props.bottomBoundary;return"object"===dt(e)&&(e=e.value||e.target||0),"string"===typeof e&&(this.bottomBoundaryTarget||(this.bottomBoundaryTarget=xt.querySelector(e)),e=this.getTargetBottom(this.bottomBoundaryTarget)),e&&e>0?e:1/0}},{key:"reset",value:function(){this.setState({status:0,pos:0})}},{key:"release",value:function(t){this.setState({status:1,pos:t-this.state.y})}},{key:"fix",value:function(t){this.setState({status:2,pos:t})}},{key:"updateInitialDimension",value:function(t){if(t=t||{},this.outerElement&&this.innerElement){var e=this.outerElement.getBoundingClientRect(),n=this.innerElement.getBoundingClientRect(),r=e.width||e.right-e.left,o=n.height||n.bottom-n.top,i=e.top+this.scrollTop;this.setState({top:this.getTopPosition(t.top),bottom:Math.min(this.state.top+o,Tt),width:r,height:o,x:e.left,y:i,bottomBoundary:this.getBottomBoundary(t.bottomBoundary),topBoundary:i})}}},{key:"handleResize",value:function(t,e){this.props.shouldFreeze()||(Tt=e.resize.height,this.updateInitialDimension(),this.update())}},{key:"handleScrollStart",value:function(t,e){this.frozen=this.props.shouldFreeze(),this.frozen||(this.scrollTop===e.scroll.top?this.skipNextScrollEvent=!0:(this.scrollTop=e.scroll.top,this.updateInitialDimension()))}},{key:"handleScroll",value:function(t,e){this.skipNextScrollEvent?this.skipNextScrollEvent=!1:(At=e.scroll.delta,this.scrollTop=e.scroll.top,this.update())}},{key:"update",value:function(){if(!this.props.enabled||this.state.bottomBoundary-this.state.topBoundary<=this.state.height||0===this.state.width&&0===this.state.height)0!==this.state.status&&this.reset();else{var t=At,e=this.scrollTop+this.state.top,n=this.scrollTop+this.state.bottom;if(e<=this.state.topBoundary)this.reset();else if(n>=this.state.bottomBoundary)this.stickyBottom=this.state.bottomBoundary,this.stickyTop=this.stickyBottom-this.state.height,this.release(this.stickyTop);else if(this.state.height>Tt-this.state.top)switch(this.state.status){case 0:this.release(this.state.y),this.stickyTop=this.state.y,this.stickyBottom=this.stickyTop+this.state.height;case 1:this.stickyBottom=this.stickyTop+this.state.height,t>0&&n>this.stickyBottom?this.fix(this.state.bottom-this.state.height):t<0&&e<this.stickyTop&&this.fix(this.state.top);break;case 2:var r=!0,o=this.state.pos,i=this.state.height;if(t>0&&o===this.state.top)this.stickyTop=e-t,this.stickyBottom=this.stickyTop+i;else if(t<0&&o===this.state.bottom-i)this.stickyBottom=n-t,this.stickyTop=this.stickyBottom-i;else if(o!==this.state.bottom-i&&o!==this.state.top){var a=o+i-this.state.bottom;this.stickyBottom=n-t+a,this.stickyTop=this.stickyBottom-i}else r=!1;r&&this.release(this.stickyTop)}else this.fix(this.state.top);this.delta=t}}},{key:"componentDidUpdate",value:function(t,e){var n=this;e.status!==this.state.status&&this.props.onStateChange&&this.props.onStateChange({status:this.state.status}),this.props.top!==e.top&&(this.updateInitialDimension(),this.update()),!ht()(this.props,t)&&(t.enabled!==this.props.enabled?this.props.enabled?this.setState({activated:!0},(function(){n.updateInitialDimension(),n.update()})):this.setState({activated:!1},(function(){n.reset()})):t.top===this.props.top&&t.bottomBoundary===this.props.bottomBoundary||(this.updateInitialDimension(),this.update()))}},{key:"componentWillUnmount",value:function(){for(var t=(this.subscribers||[]).length-1;t>=0;t--)this.subscribers[t].unsubscribe()}},{key:"componentDidMount",value:function(){kt||(kt=window,xt=document,St=xt.documentElement,_t=xt.body,Tt=kt.innerHeight||St.clientHeight,(Ot=window.Modernizr)&&Ot.prefixed&&(Et=Ot.csstransforms3d,jt=Ot.prefixed("transform"))),this.scrollTop=_t.scrollTop+St.scrollTop,this.props.enabled&&(this.setState({activated:!0}),this.updateInitialDimension(),this.update()),this.subscribers=[ut("scrollStart",this.handleScrollStart.bind(this),{useRAF:!0}),ut("scroll",this.handleScroll.bind(this),{useRAF:!0,enableScrollInfo:!0}),ut("resize",this.handleResize.bind(this),{enableResizeInfo:!0})]}},{key:"translate",value:function(t,e){Et&&this.props.enableTransforms&&this.state.activated?t[jt]="translate3d(0,"+Math.round(e)+"px,0)":t.top=e+"px"}},{key:"shouldComponentUpdate",value:function(t,e){return!this.props.shouldFreeze()&&!(ht()(this.props,t)&&ht()(this.state,e))}},{key:"render",value:function(){var t,e=this,n={position:2===this.state.status?"fixed":"relative",top:2===this.state.status?"0px":"",zIndex:this.props.innerZ},r={};this.translate(n,this.state.pos),0!==this.state.status&&(n.width=this.state.width+"px",r.height=this.state.height+"px");var o=lt()("sticky-outer-wrapper",this.props.className,(pt(t={},this.props.activeClass,2===this.state.status),pt(t,this.props.releasedClass,1===this.state.status),t)),i=lt()("sticky-inner-wrapper",this.props.innerClass,pt({},this.props.innerActiveClass,2===this.state.status)),a=this.props.children;return c.a.createElement("div",{ref:function(t){e.outerElement=t},className:o,style:r},c.a.createElement("div",{ref:function(t){e.innerElement=t},className:i,style:n},"function"===typeof a?a({status:this.state.status}):a))}}])&&vt(e.prototype,n),r&&vt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(u.Component);Pt.displayName="Sticky",Pt.defaultProps={shouldFreeze:function(){return!1},enabled:!0,top:0,bottomBoundary:0,enableTransforms:!0,activeClass:"active",releasedClass:"released",onStateChange:null,innerClass:"",innerActiveClass:""},Pt.propTypes={enabled:d.a.bool,top:d.a.oneOfType([d.a.string,d.a.number]),bottomBoundary:d.a.oneOfType([d.a.object,d.a.string,d.a.number]),enableTransforms:d.a.bool,activeClass:d.a.string,releasedClass:d.a.string,innerClass:d.a.string,innerActiveClass:d.a.string,className:d.a.string,onStateChange:d.a.func,shouldFreeze:d.a.func,innerZ:d.a.oneOfType([d.a.string,d.a.number])},Pt.STATUS_ORIGINAL=0,Pt.STATUS_RELEASED=1,Pt.STATUS_FIXED=2;var It=Pt,Ct=n("/MKj"),Dt=n("ANjH"),Kt=n("nZn3"),Nt=n("itc3"),Mt=n("diH0"),Rt=n("55Ip"),Bt=n("yCm8"),Ft=n("azCW"),qt=n.n(Ft),Lt=c.a.createElement,zt=function(t){var e=t.article;t.noImage;return Lt("article",null,Lt(Rt.Link,{to:"/"+e.getCanonicalUri()},Lt(Bt.ImageOrNoImage,{image:e.getImageObject(),width:120,alt:e.headline,shape:"square",noImage:qt.a})),Lt("p",null,Lt(Rt.Link,{to:"/"+e.getSectionId()},e.getGrandSectionId())),Lt("p",null,Lt(Rt.Link,{to:"/"+e.getCanonicalUri()},e.headline),("SPONSORED"===e.sponsoredIndicator||"SPONSORED_EXPIRED"===e.sponsoredIndicator)&&Lt("small",{className:"sponsored"},"Sponsored"),("NATIVE"===e.sponsoredIndicator||"NATIVE_EXPIRED"===e.sponsoredIndicator)&&Lt("small",{className:"native"},"Partnered")))},Gt=n("0srb"),Ht=c.a.createElement,Wt=function(t){return Ht(c.a.Fragment,null,Ht("h2",null,"Most Popular"),Ht(Gt.Articles,{section:t.section||"news",page0Limit:t.pageSize+1,pageSize:t.pageSize+1,fetchArticles:t.fetchMostReadArticles,noImage:t.noImage,notFound:function(){return Ht("div",null,"Oops!")},noDiv:!0,fetchMoreArticles:function(){},articles:t.articles,component:function(e){return e.articles.filter((function(e){return e.contentKey!==t.contentKey})).slice(0,t.pageSize).map((function(e,n){return Ht("div",{key:"mr-"+e.uuid,className:t.className},Ht(zt,{article:e}))}))}}))};Wt.defaultProps={pageSize:3};var Ut=Object(Ct.connect)((function(t){return{articles:t.mostReadArticles}}),(function(t){return Object(Dt.bindActionCreators)({fetchMostReadArticles:Mt.b},t)}))(Wt),Yt=n("wAi/"),Vt=n("35Mb"),Zt=n("8FTj"),Qt=n("XVRt"),Xt=n.n(Qt),Jt=c.a.createElement,$t=function(t){var e=Object(u.useState)(0),n=e[0],r=e[1];return Object(u.useEffect)((function(){var t=Object(Zt.a)("NotificationsLastViewed");Vt.b.messages.toArray().then((function(e){return r(e.filter((function(e){return Date.parse(e.timestamp)>Date.parse(t)})).length)}))}),[]),Jt(Yt.a,{to:"/my-notifications",mr:10,title:"View recent push notifications.",className:"my-notifications"},Jt("div",null,Jt("img",{src:Xt.a,alt:"View "+n+" recent articles pushed to you."}),n>0&&Jt("span",null,Jt("span",null,n))),Jt("div",null,"View my notifications"))},te=c.a.createElement,ee=function(t){Object(a.a)(n,t);var e=Object(s.a)(n);function n(t){var o;return Object(r.a)(this,n),(o=e.call(this,t)).handleSubmit=o.handleSubmit.bind(Object(i.a)(o)),o.handleChange=o.handleChange.bind(Object(i.a)(o)),o.state={hasMounted:!1},o}return Object(o.a)(n,[{key:"componentDidMount",value:function(){this.setState({hasMounted:!0})}},{key:"handleChange",value:function(t){var e={};e[t.target.name]=t.target.value,this.props.updateForm(e)}},{key:"validateName",value:function(t){return t.match(/^[`a-zA-Z\xe0\xe8\xec\xf2\xf9\xc0\xc8\xcc\xd2\xd9\xe1\xe9\xed\xf3\xfa\xfd\xc1\xc9\xcd\xd3\xda\xdd\xe2\xea\xee\xf4\xfb\xc2\xca\xce\xd4\xdb\xe3\xf1\xf5\xc3\xd1\xd5\xe4\xeb\xef\xf6\xfc\xff\xc4\xcb\xcf\xd6\xdc\u0178\xe7\xc7\xdf\xd8\xf8\xc5\xe5\xc6\xe6\u0153' -]{2,45}$/i)}},{key:"validateEmail",value:function(t){return t.match(/^[^.@][^@]+@{1}[^@]+\.[^@]+[^.@]$/i)}},{key:"handleSubmit",value:function(t){return t.preventDefault(),this.validateEmail(this.props.email)?this.validateName(this.props.firstName)&&this.validateName(this.props.lastName)?(this.props.subscribeNewsletter({email:this.props.email,firstName:this.props.firstName,lastName:this.props.lastName}),!0):(this.props.updateForm({error:"Please enter valid first and last names"}),!1):(this.props.updateForm({error:"Please enter a valid email address"}),!1)}},{key:"render",value:function(){var t=this.props,e=!t.hasSubmitted&&!t.isSubmitting,n=t.isSubmitting,r=t.hasSubmitted;return te("aside",{className:"sidebar",id:"sidebar"},te(Nt.Mobile,null,te("div",{id:"adngin-leaderboard-3-0",className:"advert-leaderboard-3"})),this.state.hasMounted&&te(Nt.DesktopTablet,{values:{deviceWidth:Nt.defaultWidth}},te("div",{className:"follow-us"},te("span",null,"Follow us"),te("nav",null,te("ul",null,te("li",null,te("a",{href:"https://www.linkedin.com/company/cond\xe9-nast-independent-magazines-south-africa/mycompany/?viewAsMember=true",target:"_blank",rel:"noopener noreferrer",title:"Follow House and Garden on LinkedIn"},te(Kt.LinkedIn,{width:"18",height:"18"}))),te("li",null,te("a",{href:"https://www.facebook.com/HouseGardenSA/",target:"_blank",rel:"noopener noreferrer",title:"Like House and Garden on Facebook"},te(Kt.Facebook,{width:"18",height:"18"}))),te("li",null,te("a",{href:"https://www.instagram.com/houseandgardensa/",target:"_blank",rel:"noopener noreferrer",title:"Follow House and Garden on Instagram"},te(Kt.Instagram,{width:"18",height:"18"}))),te("li",null,te("a",{href:"https://za.pinterest.com/housegardensa/",target:"_blank",rel:"noopener noreferrer",title:"Follow House and Garden on Pinterest"},te(Kt.Pinterest,{width:"18",height:"18"}))),te("li",null,te("a",{href:"https://twitter.com/HouseGardenSA",target:"_blank",rel:"noopener noreferrer",title:"Follow House and Garden on Twitter"},te(Kt.Twitter,{width:"18",height:"18",fill:"white"}))),te("li",null,te("a",{href:"https://www.youtube.com/channel/UC17OWNqdopaDxqz0vOCwhFg",target:"_blank",rel:"noopener noreferrer",title:"Subscribe to House and Garden on Youtube"},te(Kt.Youtube,{width:"18",height:"18"}))),te("li",null,te("a",{href:"https://www.tiktok.com/@houseandgardensa",target:"_blank",rel:"noopener noreferrer",title:"Subscribe to House and Garden on TikTok "},te(Kt.TikTok,{width:"18",height:"18"}))))))),te("div",{className:"sidebar-search"},te("form",{action:"/search",method:"get"},te("input",{type:"search",placeholder:"Search House & Garden",name:"q",id:"q"}),te("button",null,te(Kt.Search,null)))),te($t,null),t.children,this.state.hasMounted&&te("div",{id:"adngin-mpu-1-0",className:"advert-sidebar"}),te("div",{className:"newsletter-subscribe"},te("h5",null,"Sign up to your weekly dose of inspiration"),e&&te(c.a.Fragment,null,te("form",{name:"item-form",id:"item-form",onSubmit:this.handleSubmit},t.error&&te("small",{style:{color:"red"}},this.props.error?this.props.error:"An error occured, please try again"),te("input",{type:"text",name:"firstName",placeholder:"First Name",id:"firstName",value:this.props.firstName,onChange:this.handleChange,required:!0}),te("input",{type:"text",name:"lastName",placeholder:"Last Name",id:"lastName",value:this.props.lastName,onChange:this.handleChange}),te("input",{type:"email",name:"email",placeholder:"Email Address",id:"email",value:this.props.email,onChange:this.handleChange,required:!0}),te("button",{type:"submit"},"Subscribe"))),n&&te(c.a.Fragment,null,te(l.default,{title:"Article"}),te(f.Segment,null,te(f.Dimmer,{active:!0},te(f.Loader,{indeterminate:!0,size:"large"},"Submitting subscription.....")))),r&&te(c.a.Fragment,null,te(l.default,{title:"Article"}),te("h3",null,"Thank you for Subscribing!"),te("p",null,"We have sent a confirmation email to the email address that you provided. Click on the link in the email to confirm your subscription to our newsletter."))),te("div",null,te("div",{id:"adngin-mpu-2-0",className:"advert-sidebar"})),te("div",{className:"sidebar-articles"},te(Ut,{section:t.section,className:"side-articles",noImage:qt.a,contentKey:this.props.contentKey})),te(c.a.Fragment,null,this.state.hasMounted&&te(Nt.Desktop,null,te(It,{bottomBoundary:"#sidebar",top:122},te("div",{id:"adngin-halfpage-1-0",className:"advert-sidebar"}))),this.state.hasMounted&&te(Nt.Tablet,null,te("div",{id:"adngin-halfpage-1-0",className:"advert-sidebar"}))))}}]),n}(u.Component);e.a=Object(Ct.connect)((function(t){return Object.assign({},t.subscribe)}),(function(t){return Object(Dt.bindActionCreators)({subscribeNewsletter:h.c,updateForm:h.d,reinitialize:h.b},t)}))(ee)},ZpKF:function(t,e,n){"use strict";n.r(e),n.d(e,"SearchPage",(function(){return R}));var r=n("1OyB"),o=n("vuIU"),i=n("JX7q"),a=n("Ji7U"),s=n("LK+K"),u=n("q1tI"),c=n.n(u),l=n("ANjH"),f=n("/MKj"),h=n("3mGJ"),p=n("ezNy"),d=n("NrgV"),v={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function y(t){var e=function(t){if("number"===typeof t)return{value:t,unit:"px"};var e,n=(t.match(/^[0-9.]*/)||"").toString();e=n.includes(".")?parseFloat(n):parseInt(n,10);var r=(t.match(/[^0-9]*$/)||"").toString();return v[r]?{value:e,unit:r}:(console.warn("React Spinners: ".concat(t," is not a valid css value. Defaulting to ").concat(e,"px.")),{value:e,unit:"px"})}(t);return"".concat(e.value).concat(e.unit)}var m=function(){return(m=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},b=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n},g=function(t,e,n){var r="react-spinners-".concat(t,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var o=document.createElement("style");document.head.appendChild(o);var i=o.sheet,a="\n    @keyframes ".concat(r," {\n      ").concat(e,"\n    }\n  ");return i&&i.insertRule(a,0),r}("PulseLoader","0% {transform: scale(1); opacity: 1} 45% {transform: scale(0.1); opacity: 0.7} 80% {transform: scale(1); opacity: 1}","pulse");var w=function(t){var e=t.loading,n=void 0===e||e,r=t.color,o=void 0===r?"#000000":r,i=t.speedMultiplier,a=void 0===i?1:i,s=t.cssOverride,c=void 0===s?{}:s,l=t.size,f=void 0===l?15:l,h=t.margin,p=void 0===h?2:h,d=b(t,["loading","color","speedMultiplier","cssOverride","size","margin"]),v=m({display:"inherit"},c),w=function(t){return{backgroundColor:o,width:y(f),height:y(f),margin:y(p),borderRadius:"100%",display:"inline-block",animation:"".concat(g," ").concat(.75/a,"s ").concat(.12*t/a,"s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)"),animationFillMode:"both"}};return n?u.createElement("span",m({style:v},d),u.createElement("span",{style:w(1)}),u.createElement("span",{style:w(2)}),u.createElement("span",{style:w(3)})):null},x=(n("OHzr"),n("9dZH"),n("4itl"),n("Qyje")),_=n.n(x),S=n("qhky"),O=n("6rlZ"),k=n("4I37"),j=n.n(k),E=n("azCW"),A=n.n(E),T=n("G8w8"),P=n.n(T),I=n("ZWFX"),C=n("rQwP"),D=n("nZn3"),K=n("OGoB"),N=n("itc3"),M=c.a.createElement,R=function(t){Object(a.a)(n,t);var e=Object(s.a)(n);function n(){var t;return Object(r.a)(this,n),(t=e.call(this)).state={isHidden:!1},t.page=0,t.index=0,t.pageSize=15,t.handleViewMore=t.handleViewMore.bind(Object(i.a)(t)),t}return Object(o.a)(n,[{key:"componentDidUpdate",value:function(t){t.query!==this.props.query&&this.props.searchArticles(this.props.query,this.index,this.pageSize)}},{key:"UNSAFE_componentWillMount",value:function(){var t=this.props.articles,e=new Date(this.props.lastFetch||0),n=new Date;this.params=this.props.query?{q:this.props.query}:_.a.parse(this.props.location.search,{ignoreQueryPrefix:!0}),this.page=this.params.page||1,(!t||n-e>1e3)&&this.props.searchArticles(this.params.q,this.index,this.pageSize)}},{key:"componentDidMount",value:function(){this.setState({isHidden:!this.state.isHidden}),window.adngin&&window.adngin.queue.push((function(){window.adngin.cmd.startAuction(["leaderboard-3","halfpage-1","mpu-1"])}))}},{key:"handleViewMore",value:function(){var t=Math.max(this.index,0),e=Math.max(this.page,0)*this.pageSize;this.props.searchArticlesMore(this.params.q,t+e,this.pageSize),this.page++}},{key:"render",value:function(){if(this.props.isEmpty||this.props.hasError)return M("div",{className:"wrapper no-results"},M("div",{id:"adngin-leaderboard-1-0",className:"advert-leaderboard-1"}),M("img",{src:P.a,alt:"No search results"}),M("h1",null,"Nothing to see here"),M("div",null,M("p",null,"Your search for ",M("strong",null,this.props.query)," returned no results.")),M("div",{className:"no-results-search"},M("form",{action:"/search",method:"get"},M("input",{type:"search",placeholder:"Search House & Garden",name:"q",id:"q"}),M("button",null,M(D.Search,null)))),M("div",{id:"adngin-leaderboard-3-0",className:"advert-leaderboard-3"}));if(this.props.articles&&this.props.articles.length&&this.props.hasFetched){var t=this.props.articles.map((function(t){return new j.a(t)}));return M("div",{className:"wrapper"},M("div",{id:"adngin-leaderboard-1-0",className:"advert-leaderboard-1"}),M("h1",null,"Search Results for ",M("em",null,this.props.query)),M("div",{className:"wrapper article-listing"},M("div",{className:"article-list",itemType:"http://schema.org/ItemList"},t.map((function(t,e){return M(u.Fragment,{key:t.contentKey},e<=2&&M(C.a,{article:t,noImage:A.a}),e>2&&M(C.a,{article:t,noImage:A.a}),2===e&&M(N.Mobile,null,M(K.a,null)))})),this.props.hasMore&&M("div",{id:"buttonContainer",className:"more-from-btn noScript"},M(c.a.Fragment,null,M(w,{color:"#B10015",loading:this.props.isLoadingMore,margin:"10px"}),M("button",{id:"viewMoreButton",onClick:this.handleViewMore}," View More")),M(S.default,null,M("link",{rel:"canonical",itemprop:"url",href:"https://www.houseandgarden.co.za"+this.props.location.pathname+"?query="+this.props.query}))),this.props.children),M(I.a,{section:this.props.section},M(N.DesktopTablet,null,M(K.a,null)))),M("div",{id:"adngin-leaderboard-3-0",className:"advert-leaderboard-3"}))}return M(h.a,null,M(p.a,{active:!0},M(d.a,{indeterminate:!0,size:"large"},"Loading...")))}}]),n}(u.Component);R.defaultProps={articles:{}};e.default=Object(f.connect)((function(t){return t.search}),(function(t){return Object(l.bindActionCreators)({searchArticles:O.b,searchArticlesMore:O.c},t)}))(R)},a0yg:function(t,e,n){var r=n("W2Ac"),o=n("xZj3"),i=n("zMKt");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},aLLH:function(t,e,n){var r=n("W2Ac"),o=n("ma6D"),i=n("xnEm"),a=n("Y6hy"),s=n("Yo2p"),u=n("niYQ");e.f=r&&!o?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),o=u(e),c=o.length,l=0;c>l;)i.f(t,n=o[l++],r[n]);return t}},aS5Z:function(t,e,n){"use strict";var r=n("Q7rv").IteratorPrototype,o=n("HyK6"),i=n("PEjt"),a=n("e1XL"),s=n("hkIh"),u=function(){return this};t.exports=function(t,e,n,c){var l=e+" Iterator";return t.prototype=o(r,{next:i(+!c,n)}),a(t,l,!1,!0),s[l]=u,t}},b2z7:function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},bQgK:function(t,e,n){(function(e){(function(){var n,r,o,i,a,s;"undefined"!==typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!==typeof e&&null!==e&&e.hrtime?(t.exports=function(){return(n()-a)/1e6},r=e.hrtime,i=(n=function(){var t;return 1e9*(t=r())[0]+t[1]})(),s=1e9*e.uptime(),a=i-s):Date.now?(t.exports=function(){return Date.now()-o},o=Date.now()):(t.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(this,n("8oxB"))},"bq/A":function(t,e,n){var r=n("4wiq"),o=0,i=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},"c5/t":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:n)(e)}},cuZ9:function(t,e,n){var r=n("szlw"),o=n("ok90"),i=n("xZj3"),a=n("pfAL"),s=n("RpL+");r({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}})},e1XL:function(t,e,n){var r=n("xnEm").f,o=n("+BqG"),i=n("4Tei")("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!o(t,i)&&r(t,i,{configurable:!0,value:e})}},eDf4:function(t,e,n){var r=n("wOhn"),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},esM1:function(t,e,n){var r=n("eDf4"),o=n("xnEm"),i=n("1MgG"),a=n("uqF2");t.exports=function(t,e,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:e;if(r(n)&&i(n,c,s),s.global)u?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(u=!0):delete t[e]}catch(l){}u?t[e]=n:o.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},f9pX:function(t,e,n){var r=n("4wiq"),o=n("GLMc"),i=n("QICv"),a=n("Qqun"),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(t){return function(e,n){var r,l,f=i(a(e)),h=o(n),p=f.length;return h<0||h>=p?t?"":void 0:(r=u(f,h))<55296||r>56319||h+1===p||(l=u(f,h+1))<56320||l>57343?t?s(f,h):r:t?c(f,h,h+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},gg2M:function(t,e,n){var r=n("ok90");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},gheS:function(t,e,n){var r=n("GLMc"),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},hLh5:function(t,e,n){var r=n("JVs5"),o=n("sCZI"),i=n("4Tei"),a=n("esM1");t.exports=function(){var t=o("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=i("toPrimitive");e&&!e[s]&&a(e,s,(function(t){return r(n,this)}),{arity:1})}},hkIh:function(t,e){t.exports={}},ir1D:function(t,e,n){var r=n("Dr2v"),o=n("4wiq");t.exports=function(t){if("Function"===r(t))return o(t)}},j0Et:function(t,e){t.exports=function(t){return null===t||void 0===t}},jfrp:function(t,e,n){var r=n("W2Ac"),o=n("JVs5"),i=n("I62h"),a=n("PEjt"),s=n("Yo2p"),u=n("8z+Y"),c=n("+BqG"),l=n("a0yg"),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=u(e),l)try{return f(t,e)}catch(n){}if(c(t,e))return a(!o(i.f,t,e),t[e])}},juv8:function(t,e,n){var r=n("MrPd"),o=n("hypo");t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var s=-1,u=e.length;++s<u;){var c=e[s],l=i?i(n[c],t[c],c,n,t):void 0;void 0===l&&(l=t[c]),a?o(n,c,l):r(n,c,l)}return n}},kHmz:function(t,e,n){"use strict";var r=n("q1tI"),o=n.n(r),i=n("itc3"),a=o.a.createElement;e.a=function(t){var e=t.useSmall;return a("span",null,a(i.HagDesktop,{values:{deviceWidth:i.defaultWidth}},a("div",{className:"wing-banners horizontal-center"+(e?" reduced-header":"")},a("div",{id:"adngin-wingbanner-left-0",className:"advert-wingbanner-left"}),a("div",{id:"adngin-wingbanner-right-0",className:"advert-wingbanner-right"}))))}},"lZX+":function(t,e,n){"use strict";var r=n("DsG2"),o=n("2JmJ");t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},mESY:function(t,e,n){var r=n("eDf4"),o=n("wOhn"),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===i}:function(t){return"object"==typeof t?null!==t:r(t)}},ma6D:function(t,e,n){var r=n("W2Ac"),o=n("xZj3");t.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},nNRg:function(t,e,n){var r=n("LHWz"),o=n("wUBo"),i=n("6r0g"),a=n("+YUa"),s=n("w1io"),u=n("4Tei"),c=u("iterator"),l=u("toStringTag"),f=a.values,h=function(t,e){if(t){if(t[c]!==f)try{s(t,c,f)}catch(r){t[c]=f}if(t[l]||s(t,l,e),o[e])for(var n in a)if(t[n]!==a[n])try{s(t,n,a[n])}catch(r){t[n]=a[n]}}};for(var p in o)h(r[p]&&r[p].prototype,p);h(i,"DOMTokenList")},niYQ:function(t,e,n){var r=n("UZoB"),o=n("rRP5");t.exports=Object.keys||function(t){return r(t,o)}},ok90:function(t,e,n){var r=n("Fyp5"),o=n("xZj3");t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},orrc:function(t,e,n){var r=n("xZj3");t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"otv/":function(t,e,n){var r=n("nmnc"),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},owxc:function(t,e,n){var r=n("szlw"),o=n("sCZI"),i=n("+BqG"),a=n("QICv"),s=n("Avys"),u=n("vY6g"),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=a(t);if(i(c,e))return c[e];var n=o("Symbol")(e);return c[e]=n,l[n]=e,n}})},pROP:function(t,e,n){var r=n("eDf4"),o=n("B8MI"),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a function")}},pfAL:function(t,e){e.f=Object.getOwnPropertySymbols},rQwP:function(t,e,n){"use strict";var r=n("q1tI"),o=n.n(r),i=n("55Ip"),a=n("yCm8"),s=o.a.createElement;e.a=function(t){var e=t.article,n=t.noImage;t.lazy;return s("article",{key:e.contentKey,"aria-label":"article"},s(i.Link,{to:"/"+e.getCanonicalUri()},s("div",{className:"article-list-img"},s(a.ImageOrNoImage,{shape:"square",width:400,image:e.image,alt:e.headline,noImage:n})),s("h4",{role:"heading"},e.headline),("SPONSORED"===e.sponsoredIndicator||"SPONSORED_EXPIRED"===e.sponsoredIndicator)&&s("small",{className:"sponsored"},"Sponsored"),("NATIVE"===e.sponsoredIndicator||"NATIVE_EXPIRED"===e.sponsoredIndicator)&&s("small",{className:"native"},"Partnered"),s("p",null,e.abstract)))}},rRP5:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},sCZI:function(t,e,n){var r=n("LHWz"),o=n("eDf4"),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},sEfC:function(t,e,n){var r=n("GoyQ"),o=n("QIyF"),i=n("tLB3"),a=Math.max,s=Math.min;t.exports=function(t,e,n){var u,c,l,f,h,p,d=0,v=!1,y=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function b(e){var n=u,r=c;return u=c=void 0,d=e,f=t.apply(r,n)}function g(t){return d=t,h=setTimeout(x,e),v?b(t):f}function w(t){var n=t-p;return void 0===p||n>=e||n<0||y&&t-d>=l}function x(){var t=o();if(w(t))return _(t);h=setTimeout(x,function(t){var n=e-(t-p);return y?s(n,l-(t-d)):n}(t))}function _(t){return h=void 0,m&&u?b(t):(u=c=void 0,f)}function S(){var t=o(),n=w(t);if(u=arguments,c=this,p=t,n){if(void 0===h)return g(p);if(y)return clearTimeout(h),h=setTimeout(x,e),b(p)}return void 0===h&&(h=setTimeout(x,e)),f}return e=i(e)||0,r(n)&&(v=!!n.leading,l=(y="maxWait"in n)?a(i(n.maxWait)||0,e):l,m="trailing"in n?!!n.trailing:m),S.cancel=function(){void 0!==h&&clearTimeout(h),d=0,u=p=c=h=void 0},S.flush=function(){return void 0===h?f:_(o())},S}},szlw:function(t,e,n){var r=n("LHWz"),o=n("jfrp").f,i=n("w1io"),a=n("esM1"),s=n("uqF2"),u=n("/sSW"),c=n("xo7b");t.exports=function(t,e){var n,l,f,h,p,d=t.target,v=t.global,y=t.stat;if(n=v?r:y?r[d]||s(d,{}):(r[d]||{}).prototype)for(l in e){if(h=e[l],f=t.dontCallGetSet?(p=o(n,l))&&p.value:n[l],!c(v?l:d+(y?".":"#")+l,t.forced)&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(t.sham||f&&f.sham)&&i(h,"sham",!0),a(n,l,h,t)}}},"tD7+":function(t,e,n){var r=n("GLMc"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},uM7l:function(t,e,n){var r=n("OBhP");t.exports=function(t){return r(t,4)}},uhBA:function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,o="~";function i(){}function a(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function s(t,e,n,r,i){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||t,i),u=o?o+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function u(t,e){0===--t._eventsCount?t._events=new i:delete t._events[e]}function c(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(o=!1)),c.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)r.call(t,e)&&n.push(o?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},c.prototype.listeners=function(t){var e=o?o+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,i=n.length,a=new Array(i);r<i;r++)a[r]=n[r].fn;return a},c.prototype.listenerCount=function(t){var e=o?o+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,r,i,a){var s=o?o+t:t;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,r),!0;case 5:return l.fn.call(l.context,e,n,r,i),!0;case 6:return l.fn.call(l.context,e,n,r,i,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var h,p=l.length;for(c=0;c<p;c++)switch(l[c].once&&this.removeListener(t,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,e);break;case 3:l[c].fn.call(l[c].context,e,n);break;case 4:l[c].fn.call(l[c].context,e,n,r);break;default:if(!u)for(h=1,u=new Array(f-1);h<f;h++)u[h-1]=arguments[h];l[c].fn.apply(l[c].context,u)}}return!0},c.prototype.on=function(t,e,n){return s(this,t,e,n,!1)},c.prototype.once=function(t,e,n){return s(this,t,e,n,!0)},c.prototype.removeListener=function(t,e,n,r){var i=o?o+t:t;if(!this._events[i])return this;if(!e)return u(this,i),this;var a=this._events[i];if(a.fn)a.fn!==e||r&&!a.once||n&&a.context!==n||u(this,i);else{for(var s=0,c=[],l=a.length;s<l;s++)(a[s].fn!==e||r&&!a[s].once||n&&a[s].context!==n)&&c.push(a[s]);c.length?this._events[i]=1===c.length?c[0]:c:u(this,i)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=o?o+t:t,this._events[e]&&u(this,e)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=o,c.EventEmitter=c,t.exports=c},uqF2:function(t,e,n){var r=n("LHWz"),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},vY6g:function(t,e,n){var r=n("ok90");t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},vwUX:function(t,e,n){var r=n("UfqS"),o=n("4wiq"),i=n("CvoT"),a=n("RpL+"),s=n("11UE"),u=n("X+CG"),c=o([].push),l=function(t){var e=1==t,n=2==t,o=3==t,l=4==t,f=6==t,h=7==t,p=5==t||f;return function(d,v,y,m){for(var b,g,w=a(d),x=i(w),_=r(v,y),S=s(x),O=0,k=m||u,j=e?k(d,S):n||h?k(d,0):void 0;S>O;O++)if((p||O in x)&&(g=_(b=x[O],O,w),t))if(e)j[O]=g;else if(g)switch(t){case 3:return!0;case 5:return b;case 6:return O;case 2:c(j,b)}else switch(t){case 4:return!1;case 7:c(j,b)}return f?-1:o||l?l:j}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},vzvg:function(t,e,n){var r=n("JVs5"),o=n("mESY"),i=n("RKsz"),a=n("F5Zs"),s=n("HjHI"),u=n("4Tei"),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,u=a(t,l);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!o(n)||i(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},"w/wX":function(t,e,n){var r=n("QqLw"),o=n("ExA7");t.exports=function(t){return o(t)&&"[object Set]"==r(t)}},w1io:function(t,e,n){var r=n("W2Ac"),o=n("xnEm"),i=n("PEjt");t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"wAi/":function(t,e,n){"use strict";var r=n("q1tI"),o=n.n(r),i=n("55Ip"),a=o.a.createElement;e.a=function(t){var e=t.className,n=t.to,r=t.keyProp,o=t.replace,s=t.onClick,u=t.children;return a(i.Link,{key:r,to:n,replace:o,onClick:s,className:e},u)}},wOhn:function(t,e){var n="object"==typeof document&&document.all,r="undefined"==typeof n&&void 0!==n;t.exports={all:n,IS_HTMLDDA:r}},wUBo:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"weF/":function(t,e,n){"use strict";var r=n("szlw"),o=n("W2Ac"),i=n("LHWz"),a=n("4wiq"),s=n("+BqG"),u=n("eDf4"),c=n("GOOj"),l=n("QICv"),f=n("zRp7"),h=n("/sSW"),p=i.Symbol,d=p&&p.prototype;if(o&&u(p)&&(!("description"in d)||void 0!==p().description)){var v={},y=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=c(d,this)?new p(t):void 0===t?p():p(t);return""===t&&(v[e]=!0),e};h(y,p),y.prototype=d,d.constructor=y;var m="Symbol(test)"==String(p("test")),b=a(d.valueOf),g=a(d.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),_=a("".slice);f(d,"description",{configurable:!0,get:function(){var t=b(this);if(s(v,t))return"";var e=g(t),n=m?_(e,7,-1):x(e,w,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:y})}},wrZu:function(t,e,n){var r=n("+K+b"),o=n("XYm9"),i=n("b2z7"),a=n("otv/"),s=n("yP5f");t.exports=function(t,e,n){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return o(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return i(t);case"[object Set]":return new u;case"[object Symbol]":return a(t)}}},xEkU:function(t,e,n){(function(e){for(var r=n("bQgK"),o="undefined"===typeof window?e:window,i=["moz","webkit"],a="AnimationFrame",s=o["request"+a],u=o["cancel"+a]||o["cancelRequest"+a],c=0;!s&&c<i.length;c++)s=o[i[c]+"Request"+a],u=o[i[c]+"Cancel"+a]||o[i[c]+"CancelRequest"+a];if(!s||!u){var l=0,f=0,h=[];s=function(t){if(0===h.length){var e=r(),n=Math.max(0,1e3/60-(e-l));l=n+e,setTimeout((function(){var t=h.slice(0);h.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(l)}catch(n){setTimeout((function(){throw n}),0)}}),Math.round(n))}return h.push({handle:++f,callback:t,cancelled:!1}),f},u=function(t){for(var e=0;e<h.length;e++)h[e].handle===t&&(h[e].cancelled=!0)}}t.exports=function(t){return s.call(o,t)},t.exports.cancel=function(){u.apply(o,arguments)},t.exports.polyfill=function(t){t||(t=o),t.requestAnimationFrame=s,t.cancelAnimationFrame=u}}).call(this,n("yLpj"))},xZj3:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},xnEm:function(t,e,n){var r=n("W2Ac"),o=n("a0yg"),i=n("ma6D"),a=n("Y6hy"),s=n("8z+Y"),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor;e.f=r?i?function(t,e,n){if(a(t),e=s(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=l(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),o)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},xo7b:function(t,e,n){var r=n("xZj3"),o=n("eDf4"),i=/#|\.prototype\./,a=function(t,e){var n=u[s(t)];return n==l||n!=c&&(o(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},yG9A:function(t,e,n){var r=n("orrc"),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},yHx3:function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},yP5f:function(t,e,n){var r=n("+K+b");t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},yozl:function(t,e,n){var r=n("Yo2p"),o=n("gheS"),i=n("11UE"),a=function(t){return function(e,n,a){var s,u=r(e),c=i(u),l=o(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},zEVN:function(t,e,n){var r=n("Gi0A"),o=n("sEf8"),i=n("mdPL"),a=i&&i.isMap,s=a?o(a):r;t.exports=s},"zM/4":function(t,e,n){var r=n("szlw"),o=n("sCZI"),i=n("yG9A"),a=n("JVs5"),s=n("4wiq"),u=n("xZj3"),c=n("eDf4"),l=n("RKsz"),f=n("Gjit"),h=n("DSVV"),p=n("ok90"),d=String,v=o("JSON","stringify"),y=s(/./.exec),m=s("".charAt),b=s("".charCodeAt),g=s("".replace),w=s(1..toString),x=/[\uD800-\uDFFF]/g,_=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,O=!p||u((function(){var t=o("Symbol")();return"[null]"!=v([t])||"{}"!=v({a:t})||"{}"!=v(Object(t))})),k=u((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),j=function(t,e){var n=f(arguments),r=h(e);if(c(r)||void 0!==t&&!l(t))return n[1]=function(t,e){if(c(r)&&(e=a(r,this,d(t),e)),!l(e))return e},i(v,null,n)},E=function(t,e,n){var r=m(n,e-1),o=m(n,e+1);return y(_,t)&&!y(S,o)||y(S,t)&&!y(_,r)?"\\u"+w(b(t,0),16):t};v&&r({target:"JSON",stat:!0,arity:3,forced:O||k},{stringify:function(t,e,n){var r=f(arguments),o=i(O?j:v,null,r);return k&&"string"==typeof o?g(o,x,E):o}})},zMKt:function(t,e,n){var r=n("LHWz"),o=n("mESY"),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},zRp7:function(t,e,n){var r=n("1MgG"),o=n("xnEm");t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),o.f(t,e,n)}}}]);
//# sourceMappingURL=pages-SearchPage.839b0809.chunk.js.map