export default function(){if("undefined"==typeof history)return{get:function(){},set:function(){},getTransit:function(){},setTransit:function(){},reset:function(){},flush:function(){}};var t=!0;void 0===window.__histore_transit&&(window.__histore_transit={},window.__histore_transit_id=-1,t=!1);var i,r=function(){history.replaceState(window.__histore_transit)};return t||(history.pushState=(i=history.pushState,function(t,r,n){if(history.replaceState(window.__histore_transit),void 0!==window.__histore_reset)for(var e in window.__histore_reset)Object.prototype.hasOwnProperty.call(window.__histore_reset,e)&&(window.__histore_transit[e]=window.__histore_reset[e]);return i.call(history,Object.assign({},history.state,t||{},window.__histore_transit),r,n)}),history.replaceState=function(t){return function(i,r,n){return t.call(history,Object.assign({},history.state,i||{}),r,n)}}(history.replaceState)),{set:function(t,i,n){void 0===n&&(n=!1),clearTimeout(window.__histore_transit_id),window.__histore_transit[t]=i,n?r():window.__histore_transit_id=setTimeout(function(){return r()},100)},get:function(t){return history.state&&history.state[t]},getTransit:function(t){return window.__histore_transit[t]},setTransit:function(t,i){window.__histore_transit[t]=i},flush:r,reset:function(t){window.__histore_reset=t}}};
//# sourceMappingURL=histore.m.js.map
