text: define("router5PersistentParamsPlugin",function(){"use strict";var e={};e.defineProperty=function(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e},e["extends"]=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};var r=function(r){return Object.keys(r).filter(function(e){return void 0!==r[e]}).reduce(function(t,n){return e["extends"]({},t,e.defineProperty({},n,r[n]))},{})},t=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return function(n){var u=Array.isArray(t)?t.reduce(function(r,t){return e["extends"]({},r,e.defineProperty({},t,void 0))},{}):t,i=Object.keys(u),a=n.rootNode.path.split("?")[0]+i.length?"?"+i.join("&"):"";n.rootNode.setPath(a);var o=n.buildPath,c=n.buildState;return n.buildPath=function(t,i){var a=e["extends"]({},r(u),i);return o.call(n,t,a)},n.buildState=function(t,i){var a=e["extends"]({},r(u),i);return c.call(n,t,a)},{name:"PERSISTENT_PARAMS",onTransitionSuccess:function(e){Object.keys(e.params).filter(function(e){return-1!==i.indexOf(e)}).forEach(function(r){return u[r]=e.params[r]})}}}};return t});