p3x-redis-ui-material
Version:
💿 The p3x-redis-ui-material web interface that connects to the p3x-redis-ui-server via http and socket.io
23 lines (20 loc) • 993 kB
JavaScript
/*!
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
For more information about all licenses, please see 121.5d73bb40fed4d299d9b9.js.LICENSE.txt
*/
(()=>{var e={2718:(e,t,n)=>{"use strict";n.r(t)},5208:(e,t,n)=>{"use strict";n.d(t,{ng:()=>o});var r=n(9667),i=angular,o=r&&r.module?r:i},1410:(e,t,n)=>{"use strict";var r,i,o,a=n(5208),s=n(6016);function c(e){var t=e.match(/^\s*({[^}]*})\s*$/);t&&(e="("+t[1]+")");var n=e.replace(/\n/g," ").match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/);if(!n||4!==n.length)throw new Error("Invalid state ref '"+e+"'");return{state:n[1]||null,paramExpr:n[3]||null}}function u(e){var t=e.parent().inheritedData("$uiView"),n=(0,s.parse)("$cfg.path")(t);return n?(0,s.tail)(n).state.name:void 0}function l(e,t,n){var r=n.uiState||e.current.name,i=(0,s.extend)(function(e,t){return{relative:u(e)||t.$current,inherit:!0,source:"sref"}}(t,e),n.uiStateOpts||{}),o=e.href(r,n.uiStateParams,i);return{uiState:r,uiStateParams:n.uiStateParams,uiStateOpts:i,href:o}}function d(e){var t="[object SVGAnimatedString]"===Object.prototype.toString.call(e.prop("href")),n="FORM"===e[0].nodeName;return{attr:n?"action":t?"xlink:href":"href",isAnchor:"A"===e.prop("tagName").toUpperCase(),clickable:!n}}function m(e,t,n,r,i){return function(o){var a=o.which||o.button,s=i();if(!(a>1||o.ctrlKey||o.metaKey||o.shiftKey||o.altKey||e.attr("target"))){var c=n((function(){e.attr("disabled")||t.go(s.uiState,s.uiStateParams,s.uiStateOpts)}));o.preventDefault();var u=r.isAnchor&&!s.href?1:0;o.preventDefault=function(){u--<=0&&n.cancel(c)}}}}function h(e,t,n,r){var i;r&&(i=r.events),(0,s.isArray)(i)||(i=["click"]);for(var o=e.on?"on":"bind",a=0,c=i;a<c.length;a++){var u=c[a];e[o](u,n)}t.$on("$destroy",(function(){for(var t=e.off?"off":"unbind",r=0,o=i;r<o.length;r++){var a=o[r];e[t](a,n)}}))}r=["$uiRouter","$timeout",function(e,t){var n=e.stateService;return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(r,i,o,a){var u=d(i),f=a[1]||a[0],p=null,g={},v=function(){return l(n,i,g)},b=c(o.uiSref);function y(){var e=v();p&&p(),f&&(p=f.$$addStateInfo(e.uiState,e.uiStateParams)),null!=e.href&&o.$set(u.attr,e.href)}if(g.uiState=b.state,g.uiStateOpts=o.uiSrefOpts?r.$eval(o.uiSrefOpts):{},b.paramExpr&&(r.$watch(b.paramExpr,(function(e){g.uiStateParams=(0,s.extend)({},e),y()}),!0),g.uiStateParams=(0,s.extend)({},r.$eval(b.paramExpr))),y(),r.$on("$destroy",e.stateRegistry.onStatesChanged(y)),r.$on("$destroy",e.transitionService.onSuccess({},y)),u.clickable){var $=m(i,n,t,u,v);h(i,r,$,g.uiStateOpts)}}}}],i=["$uiRouter","$timeout",function(e,t){var n=e.stateService;return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(r,i,o,a){var c,u=d(i),f=a[1]||a[0],p=null,g={},v=function(){return l(n,i,g)},b=["uiState","uiStateParams","uiStateOpts"],y=b.reduce((function(e,t){return e[t]=s.noop,e}),{});function $(){var e=v();p&&p(),f&&(p=f.$$addStateInfo(e.uiState,e.uiStateParams)),null!=e.href&&o.$set(u.attr,e.href)}b.forEach((function(e){g[e]=o[e]?r.$eval(o[e]):null,o.$observe(e,(function(t){y[e](),y[e]=r.$watch(t,(function(t){g[e]=t,$()}),!0)}))})),$(),r.$on("$destroy",e.stateRegistry.onStatesChanged($)),r.$on("$destroy",e.transitionService.onSuccess({},$)),u.clickable&&(c=m(i,n,t,u,v),h(i,r,c,g.uiStateOpts))}}}],o=["$state","$stateParams","$interpolate","$uiRouter",function(e,t,n,r){return{restrict:"A",controller:["$scope","$element","$attrs",function(t,i,o){var a,l,d,m,h,f=[];a=n(o.uiSrefActiveEq||"",!1)(t);try{l=t.$eval(o.uiSrefActive)}catch(e){}function p(e){e.promise.then(y,s.noop)}function g(){v(l)}function v(e){(0,s.isObject)(e)&&(f=[],(0,s.forEach)(e,(function(e,n){var r=function(e,n){var r=c(e);b(r.state,t.$eval(r.paramExpr),n)};(0,s.isString)(e)?r(e,n):(0,s.isArray)(e)&&(0,s.forEach)(e,(function(e){r(e,n)}))})))}function b(t,n,r){var o={state:e.get(t,u(i))||{name:t},params:n,activeClass:r};return f.push(o),function(){(0,s.removeFrom)(f)(o)}}function y(){var n=function(e){return e.split(/\s/).filter(s.identity)},r=function(e){return e.map((function(e){return e.activeClass})).map(n).reduce(s.unnestR,[])},o=r(f).concat(n(a)).reduce(s.uniqR,[]),c=r(f.filter((function(t){return e.includes(t.state.name,t.params)}))),u=!!f.filter((function(t){return e.is(t.state.name,t.params)})).length?n(a):[],l=c.concat(u).reduce(s.uniqR,[]),d=o.filter((function(e){return!(0,s.inArray)(l,e)}));t.$evalAsync((function(){l.forEach((function(e){return i.addClass(e)})),d.forEach((function(e){return i.removeClass(e)}))}))}v(l=l||n(o.uiSrefActive||"",!1)(t)),this.$$addStateInfo=function(e,t){if(!((0,s.isObject)(l)&&f.length>0)){var n=b(e,t,l);return y(),n}},t.$on("$destroy",(d=r.stateRegistry.onStatesChanged(g),m=r.transitionService.onStart({},p),h=t.$on("$stateChangeSuccess",y),function(){d(),m(),h()})),r.globals.transition&&p(r.globals.transition),y()}]}}],a.ng.module("ui.router.state").directive("uiSref",r).directive("uiSrefActive",o).directive("uiSrefActiveEq",o).directive("uiState",i)},979:(e,t,n)=>{"use strict";var r,i=n(6016),o=n(5208),a=n(3364),s=n(7822);function c(e,t,n,r,s){var c=(0,i.parse)("viewDecl.controllerAs"),u=(0,i.parse)("viewDecl.resolveAs");return{restrict:"ECA",priority:-400,compile:function(r){var l=r.html();return r.empty(),function(r,m){var h=m.data("$uiView");if(!h)return m.html(l),void e(m.contents())(r);var f=h.$cfg||{viewDecl:{},getTemplate:i.noop},p=f.path&&new i.ResolveContext(f.path);m.html(f.getTemplate(m,p)||l),i.trace.traceUIViewFill(h.$uiView,m.html());var g=e(m.contents()),v=f.controller,b=c(f),y=u(f),$=p&&(0,a.v)(p);if(r[y]=$,v){var E=t(v,(0,i.extend)({},$,{$scope:r,$element:m}));b&&(r[b]=E,r[b][y]=$),m.data("$ngControllerController",E),m.children().data("$ngControllerController",E),d(s,n,E,r,f)}if((0,i.isString)(f.component))var w=(0,i.kebobString)(f.component),C=new RegExp("^(x-|data-)?"+w+"$","i"),_=r.$watch((function(){var e=[].slice.call(m[0].children).filter((function(e){return e&&e.tagName&&C.exec(e.tagName)}));return e&&o.ng.element(e).data("$"+f.component+"Controller")}),(function(e){e&&(d(s,n,e,r,f),_())}));g(r)}}}}r=["$view","$animate","$uiViewScroll","$interpolate","$q",function(e,t,n,r,a){var c={$cfg:{viewDecl:{$context:e._pluginapi._rootViewContext()}},$uiView:{}},u={count:0,restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(l,d,m){return function(l,d,h){var f,p,g,v,b=h.onload||"",y=h.autoscroll,$={enter:function(e,n,r){o.ng.version.minor>2?t.enter(e,null,n).then(r):t.enter(e,null,n,r)},leave:function(e,n){o.ng.version.minor>2?t.leave(e).then(n):t.leave(e,n)}},E=d.inheritedData("$uiView")||c,w=r(h.uiView||h.name||"")(l)||"$default",C={$type:"ng1",id:u.count++,name:w,fqn:E.$uiView.fqn?E.$uiView.fqn+"."+w:w,config:null,configUpdated:function(e){if(e&&!(e instanceof s.Kt))return;if(t=v,n=e,t===n)return;var t,n;i.trace.traceUIViewConfigUpdated(C,e&&e.viewDecl&&e.viewDecl.$context),v=e,M(e)},get creationContext(){var e=(0,i.parse)("$cfg.viewDecl.$context")(E),t=(0,i.parse)("$uiView.creationContext")(E);return e||t}};i.trace.traceUIViewEvent("Linking",C),d.data("$uiView",{$uiView:C}),M();var _=e.registerUIView(C);function M(e){var t=l.$new(),r=a.defer(),o=a.defer(),s={$cfg:e,$uiView:C},c={$animEnter:r.promise,$animLeave:o.promise,$$animLeave:o};t.$emit("$viewContentLoading",w);var u=m(t,(function(e){e.data("$uiViewAnim",c),e.data("$uiView",s),$.enter(e,d,(function(){r.resolve(),g&&g.$emit("$viewContentAnimationEnded"),((0,i.isDefined)(y)&&!y||l.$eval(y))&&n(e)})),function(){if(f&&(i.trace.traceUIViewEvent("Removing (previous) el",f.data("$uiView")),f.remove(),f=null),g&&(i.trace.traceUIViewEvent("Destroying scope",C),g.$destroy(),g=null),p){var e=p.data("$uiViewAnim");i.trace.traceUIViewEvent("Animate out",e),$.leave(p,(function(){e.$$animLeave.resolve(),f=null})),f=p,p=null}}()}));p=u,(g=t).$emit("$viewContentLoaded",e||v),g.$eval(b)}l.$on("$destroy",(function(){i.trace.traceUIViewEvent("Destroying/Unregistering",C),_()}))}}};return u}],c.$inject=["$compile","$controller","$transitions","$view","$q"];var u="function"==typeof o.ng.module("ui.router").component,l=0;function d(e,t,n,r,o){!(0,i.isFunction)(n.$onInit)||(o.viewDecl.component||o.viewDecl.componentProvider)&&u||n.$onInit();var a=(0,i.tail)(o.path).state.self,s={bind:n};if((0,i.isFunction)(n.uiOnParamsChanged)){var c=new i.ResolveContext(o.path).getResolvable("$transition$").data;r.$on("$destroy",t.onSuccess({},(function(e){if(e!==c&&-1===e.exiting().indexOf(a)){var t=e.params("to"),r=e.params("from"),o=function(e){return e.paramSchema},s=e.treeChanges("to").map(o).reduce(i.unnestR,[]),u=e.treeChanges("from").map(o).reduce(i.unnestR,[]),l=s.filter((function(e){var n=u.indexOf(e);return-1===n||!u[n].type.equals(t[e.id],r[e.id])}));if(l.length){var d=l.map((function(e){return e.id})),m=(0,i.filter)(t,(function(e,t){return-1!==d.indexOf(t)}));n.uiOnParamsChanged(m,e)}}}),s))}if((0,i.isFunction)(n.uiCanExit)){var d=l++,m="_uiCanExitIds",h=function(e){return!!e&&(e[m]&&!0===e[m][d]||h(e.redirectedFrom()))},f={exiting:a.name};r.$on("$destroy",t.onBefore(f,(function(t){var r,i=t[m]=t[m]||{};return h(t)||(r=e.when(n.uiCanExit(t))).then((function(e){return i[d]=!1!==e})),r}),s))}}o.ng.module("ui.router.state").directive("uiView",r),o.ng.module("ui.router.state").directive("uiView",c)},5070:(e,t,n)=>{"use strict";n.r(t),n.d(t,{$injector:()=>u.$injector,$q:()=>u.$q,BaseLocationServices:()=>u.BaseLocationServices,BaseUrlRule:()=>u.BaseUrlRule,BrowserLocationConfig:()=>u.BrowserLocationConfig,Category:()=>u.Category,DefType:()=>u.DefType,Glob:()=>u.Glob,HashLocationService:()=>u.HashLocationService,HookBuilder:()=>u.HookBuilder,MemoryLocationConfig:()=>u.MemoryLocationConfig,MemoryLocationService:()=>u.MemoryLocationService,NATIVE_INJECTOR_TOKEN:()=>u.NATIVE_INJECTOR_TOKEN,Ng1ViewConfig:()=>a.Kt,Param:()=>u.Param,ParamFactory:()=>u.ParamFactory,ParamType:()=>u.ParamType,ParamTypes:()=>u.ParamTypes,PathNode:()=>u.PathNode,PathUtils:()=>u.PathUtils,PushStateLocationService:()=>u.PushStateLocationService,Queue:()=>u.Queue,RegisteredHook:()=>u.RegisteredHook,RejectType:()=>u.RejectType,Rejection:()=>u.Rejection,Resolvable:()=>u.Resolvable,ResolveContext:()=>u.ResolveContext,StateBuilder:()=>u.StateBuilder,StateMatcher:()=>u.StateMatcher,StateObject:()=>u.StateObject,StateParams:()=>u.StateParams,StateProvider:()=>s.v,StateQueueManager:()=>u.StateQueueManager,StateRegistry:()=>u.StateRegistry,StateService:()=>u.StateService,TargetState:()=>u.TargetState,Trace:()=>u.Trace,Transition:()=>u.Transition,TransitionEventType:()=>u.TransitionEventType,TransitionHook:()=>u.TransitionHook,TransitionHookPhase:()=>u.TransitionHookPhase,TransitionHookScope:()=>u.TransitionHookScope,TransitionService:()=>u.TransitionService,UIRouter:()=>u.UIRouter,UIRouterGlobals:()=>u.UIRouterGlobals,UIRouterPluginBase:()=>u.UIRouterPluginBase,UrlConfig:()=>u.UrlConfig,UrlMatcher:()=>u.UrlMatcher,UrlMatcherFactory:()=>u.UrlMatcherFactory,UrlRouter:()=>u.UrlRouter,UrlRouterProvider:()=>c.E,UrlRuleFactory:()=>u.UrlRuleFactory,UrlRules:()=>u.UrlRules,UrlService:()=>u.UrlService,ViewService:()=>u.ViewService,_extend:()=>u._extend,_inArray:()=>u._inArray,_pushTo:()=>u._pushTo,_removeFrom:()=>u._removeFrom,all:()=>u.all,allTrueR:()=>u.allTrueR,ancestors:()=>u.ancestors,and:()=>u.and,any:()=>u.any,anyTrueR:()=>u.anyTrueR,applyPairs:()=>u.applyPairs,arrayTuples:()=>u.arrayTuples,assertFn:()=>u.assertFn,assertMap:()=>u.assertMap,assertPredicate:()=>u.assertPredicate,beforeAfterSubstr:()=>u.beforeAfterSubstr,buildUrl:()=>u.buildUrl,compose:()=>u.compose,copy:()=>u.copy,core:()=>u,createProxyFunctions:()=>u.createProxyFunctions,curry:()=>u.curry,default:()=>l,defaultResolvePolicy:()=>u.defaultResolvePolicy,defaultTransOpts:()=>u.defaultTransOpts,defaults:()=>u.defaults,deregAll:()=>u.deregAll,eq:()=>u.eq,equals:()=>u.equals,extend:()=>u.extend,filter:()=>u.filter,find:()=>u.find,flatten:()=>u.flatten,flattenR:()=>u.flattenR,fnToString:()=>u.fnToString,forEach:()=>u.forEach,fromJson:()=>u.fromJson,functionToString:()=>u.functionToString,getLocals:()=>o.v,getNg1ViewConfigFactory:()=>a.qj,getParams:()=>u.getParams,hashLocationPlugin:()=>u.hashLocationPlugin,hostRegex:()=>u.hostRegex,identity:()=>u.identity,inArray:()=>u.inArray,inherit:()=>u.inherit,invoke:()=>u.invoke,is:()=>u.is,isArray:()=>u.isArray,isDate:()=>u.isDate,isDefined:()=>u.isDefined,isFunction:()=>u.isFunction,isInjectable:()=>u.isInjectable,isNull:()=>u.isNull,isNullOrUndefined:()=>u.isNullOrUndefined,isNumber:()=>u.isNumber,isObject:()=>u.isObject,isPromise:()=>u.isPromise,isRegExp:()=>u.isRegExp,isString:()=>u.isString,isUndefined:()=>u.isUndefined,joinNeighborsR:()=>u.joinNeighborsR,kebobString:()=>u.kebobString,keyValsToObjectR:()=>u.keyValsToObjectR,locationPluginFactory:()=>u.locationPluginFactory,makeEvent:()=>u.makeEvent,makeStub:()=>u.makeStub,map:()=>u.map,mapObj:()=>u.mapObj,matchState:()=>u.matchState,maxLength:()=>u.maxLength,memoryLocationPlugin:()=>u.memoryLocationPlugin,mergeR:()=>u.mergeR,ng1ViewsBuilder:()=>a.AX,noop:()=>u.noop,not:()=>u.not,omit:()=>u.omit,or:()=>u.or,padString:()=>u.padString,pairs:()=>u.pairs,parse:()=>u.parse,parseUrl:()=>u.parseUrl,pattern:()=>u.pattern,pick:()=>u.pick,pipe:()=>u.pipe,pluck:()=>u.pluck,prop:()=>u.prop,propEq:()=>u.propEq,pushR:()=>u.pushR,pushStateLocationPlugin:()=>u.pushStateLocationPlugin,pushTo:()=>u.pushTo,removeFrom:()=>u.removeFrom,resolvablesBuilder:()=>u.resolvablesBuilder,resolvePolicies:()=>u.resolvePolicies,root:()=>u.root,services:()=>u.services,servicesPlugin:()=>u.servicesPlugin,silenceUncaughtInPromise:()=>u.silenceUncaughtInPromise,silentRejection:()=>u.silentRejection,splitEqual:()=>u.splitEqual,splitHash:()=>u.splitHash,splitOnDelim:()=>u.splitOnDelim,splitQuery:()=>u.splitQuery,stringify:()=>u.stringify,stripLastPathElement:()=>u.stripLastPathElement,tail:()=>u.tail,toJson:()=>u.toJson,trace:()=>u.trace,trimHashVal:()=>u.trimHashVal,uniqR:()=>u.uniqR,unnest:()=>u.unnest,unnestR:()=>u.unnestR,val:()=>u.val,values:()=>u.values,watchDigests:()=>o.R});var r=n(5473),i={};for(const e in r)["default","core"].indexOf(e)<0&&(i[e]=()=>r[e]);n.d(t,i);var o=n(3364),a=n(7822),s=n(6758),c=n(3011),u=(n(1410),n(6408),n(979),n(9520),n(6016));const l="ui.router"},5473:()=>{},3364:(e,t,n)=>{"use strict";n.d(t,{v:()=>C,R:()=>w});var r=n(5208),i=n(6016),o=n(7822),a=function(){function e(){var e=this;this._useHttp=r.ng.version.minor<3,this.$get=["$http","$templateCache","$injector",function(t,n,r){return e.$templateRequest=r.has&&r.has("$templateRequest")&&r.get("$templateRequest"),e.$http=t,e.$templateCache=n,e}]}return e.prototype.useHttpService=function(e){this._useHttp=e},e.prototype.fromConfig=function(e,t,n){var r=function(e){return i.services.$q.when(e).then((function(e){return{template:e}}))},o=function(e){return i.services.$q.when(e).then((function(e){return{component:e}}))};return(0,i.isDefined)(e.template)?r(this.fromString(e.template,t)):(0,i.isDefined)(e.templateUrl)?r(this.fromUrl(e.templateUrl,t)):(0,i.isDefined)(e.templateProvider)?r(this.fromProvider(e.templateProvider,t,n)):(0,i.isDefined)(e.component)?o(e.component):(0,i.isDefined)(e.componentProvider)?o(this.fromComponentProvider(e.componentProvider,t,n)):r("<ui-view></ui-view>")},e.prototype.fromString=function(e,t){return(0,i.isFunction)(e)?e(t):e},e.prototype.fromUrl=function(e,t){return(0,i.isFunction)(e)&&(e=e(t)),null==e?null:this._useHttp?this.$http.get(e,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then((function(e){return e.data})):this.$templateRequest(e)},e.prototype.fromProvider=function(e,t,n){var r=i.services.$injector.annotate(e),o=(0,i.isArray)(e)?(0,i.tail)(e):e;return new i.Resolvable("",o,r).get(n)},e.prototype.fromComponentProvider=function(e,t,n){var r=i.services.$injector.annotate(e),o=(0,i.isArray)(e)?(0,i.tail)(e):e;return new i.Resolvable("",o,r).get(n)},e.prototype.makeComponentTemplate=function(e,t,n,o){o=o||{};var a=r.ng.version.minor>=3?"::":"",c=function(e){var t=(0,i.kebobString)(e);return/^(x|data)-/.exec(t)?"x-"+t:t},u=function(e){var t=i.services.$injector.get(e+"Directive");if(!t||!t.length)throw new Error("Unable to find component named '"+e+"'");return t.map(s).reduce(i.unnestR,[])}(n).map((function(n){var r=n.name,s=n.type,u=c(r);if(e.attr(u)&&!o[r])return u+"='"+e.attr(u)+"'";var l=o[r]||r;if("@"===s)return u+"='{{"+a+"$resolve."+l+"}}'";if("&"===s){var d=t.getResolvable(l),m=d&&d.data,h=m&&i.services.$injector.annotate(m)||[];return u+"='$resolve."+l+((0,i.isArray)(m)?"["+(m.length-1)+"]":"")+"("+h.join(",")+")'"}return u+"='"+a+"$resolve."+l+"'"})).join(" "),l=c(n);return"<"+l+" "+u+"></"+l+">"},e}();var s=function(e){return(0,i.isObject)(e.bindToController)?c(e.bindToController):c(e.scope)},c=function(e){return Object.keys(e||{}).map((function(t){return[t,/^([=<@&])[?]?(.*)/.exec(e[t])]})).filter((function(e){return(0,i.isDefined)(e)&&(0,i.isArray)(e[1])})).map((function(e){return{name:e[1][2]||e[0],type:e[1][1]}}))},u=n(6758),l=function(e){return function(t){var n=t[e],r="onExit"===e?"from":"to";return n?function(e,t){var o=new i.ResolveContext(e.treeChanges(r)).subContext(t.$$state()),a=(0,i.extend)(C(o),{$state$:t,$transition$:e});return i.services.$injector.invoke(n,this,a)}:void 0}},d=function(){function e(e){this._urlListeners=[],this.$locationProvider=e;var t=(0,i.val)(e);(0,i.createProxyFunctions)(t,this,t,["hashPrefix"])}return e.monkeyPatchPathParameterType=function(e){var t=e.urlMatcherFactory.type("path");t.encode=function(e){return null!=e?e.toString().replace(/(~|\/)/g,(function(e){return{"~":"~~","/":"~2F"}[e]})):e},t.decode=function(e){return null!=e?e.toString().replace(/(~~|~2F)/g,(function(e){return{"~~":"~","~2F":"/"}[e]})):e}},e.prototype.dispose=function(){},e.prototype.onChange=function(e){var t=this;return this._urlListeners.push(e),function(){return(0,i.removeFrom)(t._urlListeners)(e)}},e.prototype.html5Mode=function(){var e=this.$locationProvider.html5Mode();return(e=(0,i.isObject)(e)?e.enabled:e)&&this.$sniffer.history},e.prototype.baseHref=function(){return this._baseHref||(this._baseHref=this.$browser.baseHref()||this.$window.location.pathname)},e.prototype.url=function(e,t,n){return void 0===t&&(t=!1),(0,i.isDefined)(e)&&this.$location.url(e),t&&this.$location.replace(),n&&this.$location.state(n),this.$location.url()},e.prototype._runtimeServices=function(e,t,n,r,o){var a=this;this.$location=t,this.$sniffer=n,this.$browser=r,this.$window=o,e.$on("$locationChangeSuccess",(function(e){return a._urlListeners.forEach((function(t){return t(e)}))}));var s=(0,i.val)(t);(0,i.createProxyFunctions)(s,this,s,["replace","path","search","hash"]),(0,i.createProxyFunctions)(s,this,s,["port","protocol","host"])},e}(),m=n(3011);r.ng.module("ui.router.angular1",[]);var h=r.ng.module("ui.router.init",["ng"]),f=r.ng.module("ui.router.util",["ui.router.init"]),p=r.ng.module("ui.router.router",["ui.router.util"]),g=r.ng.module("ui.router.state",["ui.router.router","ui.router.util","ui.router.angular1"]),v=r.ng.module("ui.router",["ui.router.init","ui.router.state","ui.router.angular1"]),b=(r.ng.module("ui.router.compat",["ui.router"]),null);function y(e){(b=this.router=new i.UIRouter).stateProvider=new u.v(b.stateRegistry,b.stateService),b.stateRegistry.decorator("views",o.AX),b.stateRegistry.decorator("onExit",l("onExit")),b.stateRegistry.decorator("onRetain",l("onRetain")),b.stateRegistry.decorator("onEnter",l("onEnter")),b.viewService._pluginapi._viewConfigFactory("ng1",(0,o.qj)()),b.urlService.config._decodeParams=!1;var t=b.locationService=b.locationConfig=new d(e);function n(e,n,r,i,o,a,s){return t._runtimeServices(o,e,i,n,r),delete b.router,delete b.$get,b}return d.monkeyPatchPathParameterType(b),b.router=b,b.$get=n,n.$inject=["$location","$browser","$window","$sniffer","$rootScope","$http","$templateCache"],b}y.$inject=["$locationProvider"];var $=function(e){return["$uiRouterProvider",function(t){var n=t.router[e];return n.$get=function(){return n},n}]};function E(e,t,n){if(i.services.$injector=e,i.services.$q=t,!Object.prototype.hasOwnProperty.call(e,"strictDi"))try{e.invoke((function(e){}))}catch(t){e.strictDi=!!/strict mode/.exec(t&&t.toString())}n.stateRegistry.get().map((function(e){return e.$$state().resolvables})).reduce(i.unnestR,[]).filter((function(e){return"deferred"===e.deps})).forEach((function(t){return t.deps=e.annotate(t.resolveFn,e.strictDi)}))}E.$inject=["$injector","$q","$uiRouter"];function w(e){e.$watch((function(){i.trace.approximateDigests++}))}w.$inject=["$rootScope"],h.provider("$uiRouter",y),p.provider("$urlRouter",["$uiRouterProvider",function(e){return e.urlRouterProvider=new m.E(e)}]),f.provider("$urlService",$("urlService")),f.provider("$urlMatcherFactory",["$uiRouterProvider",function(){return b.urlMatcherFactory}]),f.provider("$templateFactory",(function(){return new a})),g.provider("$stateRegistry",$("stateRegistry")),g.provider("$uiRouterGlobals",$("globals")),g.provider("$transitions",$("transitionService")),g.provider("$state",["$uiRouterProvider",function(){return(0,i.extend)(b.stateProvider,{$get:function(){return b.stateService}})}]),g.factory("$stateParams",["$uiRouter",function(e){return e.globals.params}]),v.factory("$view",(function(){return b.viewService})),v.service("$trace",(function(){return i.trace})),v.run(w),f.run(["$urlMatcherFactory",function(e){}]),g.run(["$state",function(e){}]),p.run(["$urlRouter",function(e){}]),h.run(E);var C=function(e){return e.getTokens().filter(i.isString).map((function(t){var n=e.getResolvable(t);return[t,"NOWAIT"===e.getPolicy(n).async?n.promise:n.data]})).reduce(i.applyPairs,{})}},6408:(e,t,n)=>{"use strict";var r=n(5208);function i(e){var t=function(t,n,r){return e.is(t,n,r)};return t.$stateful=!0,t}function o(e){var t=function(t,n,r){return e.includes(t,n,r)};return t.$stateful=!0,t}i.$inject=["$state"],o.$inject=["$state"],r.ng.module("ui.router.state").filter("isState",i).filter("includedByState",o)},6758:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});var r=n(6016),i=function(){function e(t,n){this.stateRegistry=t,this.stateService=n,(0,r.createProxyFunctions)((0,r.val)(e.prototype),this,(0,r.val)(this))}return e.prototype.decorator=function(e,t){return this.stateRegistry.decorator(e,t)||this},e.prototype.state=function(e,t){return(0,r.isObject)(e)?t=e:t.name=e,this.stateRegistry.register(t),this},e.prototype.onInvalid=function(e){return this.stateService.onInvalid(e)},e}()},7822:(e,t,n)=>{"use strict";n.d(t,{AX:()=>a,Kt:()=>c,qj:()=>i});var r=n(6016);function i(){var e=null;return function(t,n){return e=e||r.services.$injector.get("$templateFactory"),[new c(t,n,e)]}}var o=function(e,t){return e.reduce((function(e,n){return e||(0,r.isDefined)(t[n])}),!1)};function a(e){if(!e.parent)return{};var t=["component","bindings","componentProvider"],n=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),i=t.concat(n);if((0,r.isDefined)(e.views)&&o(i,e))throw new Error("State '"+e.name+"' has a 'views' object. It cannot also have \"view properties\" at the state level. Move the following properties into a view (in the 'views' object): "+i.filter((function(t){return(0,r.isDefined)(e[t])})).join(", "));var a={},s=e.views||{$default:(0,r.pick)(e,i)};return(0,r.forEach)(s,(function(i,s){if(s=s||"$default",(0,r.isString)(i)&&(i={component:i}),i=(0,r.extend)({},i),o(t,i)&&o(n,i))throw new Error("Cannot combine: "+t.join("|")+" with: "+n.join("|")+" in stateview: '"+s+"@"+e.name+"'");i.resolveAs=i.resolveAs||"$resolve",i.$type="ng1",i.$context=e,i.$name=s;var c=r.ViewService.normalizeUIViewTarget(i.$context,i.$name);i.$uiViewName=c.uiViewName,i.$uiViewContextAnchor=c.uiViewContextAnchor,a[s]=i})),a}var s=0,c=function(){function e(e,t,n){var r=this;this.path=e,this.viewDecl=t,this.factory=n,this.$id=s++,this.loaded=!1,this.getTemplate=function(e,t){return r.component?r.factory.makeComponentTemplate(e,t,r.component,r.viewDecl.bindings):r.template}}return e.prototype.load=function(){var e=this,t=r.services.$q,n=new r.ResolveContext(this.path),i=this.path.reduce((function(e,t){return(0,r.extend)(e,t.paramValues)}),{}),o={template:t.when(this.factory.fromConfig(this.viewDecl,i,n)),controller:t.when(this.getController(n))};return t.all(o).then((function(t){return r.trace.traceViewServiceEvent("Loaded",e),e.controller=t.controller,(0,r.extend)(e,t.template),e}))},e.prototype.getController=function(e){var t=this.viewDecl.controllerProvider;if(!(0,r.isInjectable)(t))return this.viewDecl.controller;var n=r.services.$injector.annotate(t),i=(0,r.isArray)(t)?(0,r.tail)(t):t;return new r.Resolvable("",i,n).get(e)},e}()},3011:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(6016),i=function(){function e(e){this.router=e}return e.injectableHandler=function(e,t){return function(n){return r.services.$injector.invoke(t,null,{$match:n,$stateParams:e.globals.params})}},e.prototype.$get=function(){var e=this.router.urlService;return this.router.urlRouter.update(!0),e.interceptDeferred||e.listen(),this.router.urlRouter},e.prototype.rule=function(e){var t=this;if(!(0,r.isFunction)(e))throw new Error("'rule' must be a function");var n=new r.BaseUrlRule((function(){return e(r.services.$injector,t.router.locationService)}),r.identity);return this.router.urlService.rules.rule(n),this},e.prototype.otherwise=function(e){var t=this,n=this.router.urlService.rules;if((0,r.isString)(e))n.otherwise(e);else{if(!(0,r.isFunction)(e))throw new Error("'rule' must be a string or function");n.otherwise((function(){return e(r.services.$injector,t.router.locationService)}))}return this},e.prototype.when=function(t,n){return((0,r.isArray)(n)||(0,r.isFunction)(n))&&(n=e.injectableHandler(this.router,n)),this.router.urlService.rules.when(t,n),this},e.prototype.deferIntercept=function(e){this.router.urlService.deferIntercept(e)},e}()},9520:(e,t,n)=>{"use strict";n(5208).ng.module("ui.router.state").provider("$uiViewScroll",(function(){var e=!1;this.useAnchorScroll=function(){e=!0},this.$get=["$anchorScroll","$timeout",function(t,n){return e?t:function(e){return n((function(){e[0].scrollIntoView()}),0,!1)}}]}))},6016:(e,t,n)=>{"use strict";n.r(t),n.d(t,{$injector:()=>Kn,$q:()=>Yn,BaseLocationServices:()=>nr,BaseUrlRule:()=>cn,BrowserLocationConfig:()=>lr,Category:()=>nt,DefType:()=>dt,Glob:()=>Re,HashLocationService:()=>ir,HookBuilder:()=>Xt,MemoryLocationConfig:()=>ur,MemoryLocationService:()=>ar,NATIVE_INJECTOR_TOKEN:()=>Tt,Param:()=>pt,ParamFactory:()=>on,ParamType:()=>ut,ParamTypes:()=>gt,PathNode:()=>bt,PathUtils:()=>$t,PushStateLocationService:()=>cr,Queue:()=>Ie,RegisteredHook:()=>Gt,RejectType:()=>Ne,Rejection:()=>Pe,Resolvable:()=>Ct,ResolveContext:()=>kt,StateBuilder:()=>jt,StateMatcher:()=>Vt,StateObject:()=>Ut,StateParams:()=>vt,StateQueueManager:()=>qt,StateRegistry:()=>Bt,StateService:()=>Bn,TargetState:()=>yt,Trace:()=>st,Transition:()=>Qt,TransitionEventType:()=>Fn,TransitionHook:()=>zt,TransitionHookPhase:()=>Lt,TransitionHookScope:()=>Ft,TransitionService:()=>qn,UIRouter:()=>$n,UIRouterGlobals:()=>mn,UIRouterPluginBase:()=>pr,UrlConfig:()=>pn,UrlMatcher:()=>nn,UrlMatcherFactory:()=>an,UrlRouter:()=>ln,UrlRuleFactory:()=>sn,UrlRules:()=>fn,UrlService:()=>gn,ViewService:()=>dn,_extend:()=>Ae,_inArray:()=>X,_pushTo:()=>ee,_removeFrom:()=>Q,all:()=>h,allTrueR:()=>he,ancestors:()=>ie,and:()=>d,any:()=>f,anyTrueR:()=>fe,applyPairs:()=>xe,arrayTuples:()=>Me,assertFn:()=>Ce,assertMap:()=>we,assertPredicate:()=>Ee,beforeAfterSubstr:()=>Be,buildUrl:()=>Jn,compose:()=>o,copy:()=>ke,createProxyFunctions:()=>W,curry:()=>i,defaultResolvePolicy:()=>wt,defaultTransOpts:()=>Vn,defaults:()=>ne,deregAll:()=>te,eq:()=>g,equals:()=>B,extend:()=>q,filter:()=>ce,find:()=>ue,flatten:()=>$e,flattenR:()=>ge,fnToString:()=>Ve,forEach:()=>V,fromJson:()=>j,functionToString:()=>Ue,getParams:()=>Zn,hashLocationPlugin:()=>mr,hostRegex:()=>Ye,identity:()=>Y,inArray:()=>K,inherit:()=>G,invoke:()=>b,is:()=>p,isArray:()=>S,isDate:()=>N,isDefined:()=>C,isFunction:()=>x,isInjectable:()=>D,isNull:()=>_,isNullOrUndefined:()=>M,isNumber:()=>T,isObject:()=>A,isPromise:()=>R,isRegExp:()=>O,isString:()=>k,isUndefined:()=>w,joinNeighborsR:()=>Qe,kebobString:()=>je,keyValsToObjectR:()=>Xn,locationPluginFactory:()=>er,makeEvent:()=>Kt,makeStub:()=>I,map:()=>de,mapObj:()=>le,matchState:()=>Wt,maxLength:()=>Le,memoryLocationPlugin:()=>fr,mergeR:()=>re,noop:()=>z,not:()=>l,omit:()=>ae,or:()=>m,padString:()=>Fe,pairs:()=>_e,parse:()=>u,parseUrl:()=>Qn,pattern:()=>y,pick:()=>oe,pipe:()=>a,pluck:()=>se,prop:()=>s,propEq:()=>c,pushR:()=>ve,pushStateLocationPlugin:()=>hr,pushTo:()=>J,removeFrom:()=>Z,resolvablesBuilder:()=>Pt,resolvePolicies:()=>Et,root:()=>L,services:()=>H,servicesPlugin:()=>dr,silenceUncaughtInPromise:()=>Oe,silentRejection:()=>De,splitEqual:()=>Ke,splitHash:()=>We,splitOnDelim:()=>Ze,splitQuery:()=>Ge,stringify:()=>qe,stripLastPathElement:()=>ze,tail:()=>Te,toJson:()=>U,trace:()=>ct,trimHashVal:()=>Xe,uniqR:()=>be,unnest:()=>ye,unnestR:()=>pe,val:()=>v,values:()=>me});var r=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};function i(e){return function t(){if(arguments.length>=e.length)return e.apply(this,arguments);var n=Array.prototype.slice.call(arguments);return t.bind.apply(t,r([this],n,!1))}}function o(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.apply(null,[].slice.call(arguments).reverse())}var s=function(e){return function(t){return t&&t[e]}},c=i((function(e,t,n){return n&&n[e]===t})),u=function(e){return a.apply(null,e.split(".").map(s))},l=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return!e.apply(null,t)}};function d(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.apply(null,n)&&t.apply(null,n)}}function m(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.apply(null,n)||t.apply(null,n)}}var h=function(e){return function(t){return t.reduce((function(t,n){return t&&!!e(n)}),!0)}},f=function(e){return function(t){return t.reduce((function(t,n){return t||!!e(n)}),!1)}},p=function(e){return function(t){return null!=t&&t.constructor===e||t instanceof e}},g=function(e){return function(t){return e===t}},v=function(e){return function(){return e}};function b(e,t){return function(n){return n[e].apply(n,t)}}function y(e){return function(t){for(var n=0;n<e.length;n++)if(e[n][0](t))return e[n][1](t)}}var $=Object.prototype.toString,E=function(e){return function(t){return typeof t===e}},w=E("undefined"),C=l(w),_=function(e){return null===e},M=m(_,w),x=E("function"),T=E("number"),k=E("string"),A=function(e){return null!==e&&"object"==typeof e},S=Array.isArray,N=function(e){return"[object Date]"===$.call(e)},O=function(e){return"[object RegExp]"===$.call(e)};function D(e){if(S(e)&&e.length){var t=e.slice(0,-1),n=e.slice(-1);return!(t.filter(l(k)).length||n.filter(l(x)).length)}return x(e)}var R=d(A,a(s("then"),x)),I=function(e,t){return t.reduce((function(t,n){return t[n]=(r="".concat(e,".").concat(String(n),"()"),function(){throw new Error("No implementation for ".concat(r,". The framework specific code did not implement this method."))}),t;var r}),{})},H={$q:void 0,$injector:void 0},P=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},L="object"==typeof self&&self.self===self&&self||"object"==typeof n.g&&n.g.global===n.g&&n.g||void 0,F=L.angular||{},j=F.fromJson||JSON.parse.bind(JSON),U=F.toJson||JSON.stringify.bind(JSON),V=F.forEach||function(e,t,n){if(S(e))return e.forEach(t,n);Object.keys(e).forEach((function(n){return t(e[n],n)}))},q=Object.assign||Ae,B=F.equals||Se;function Y(e){return e}function z(){}function W(e,t,n,r,i){void 0===i&&(i=!1);var o=function(t){return e()[t].bind(n())};return(r=r||Object.keys(e())).reduce((function(e,n){var r;return e[n]=i?(r=n,function(){return t[r]=o(r),t[r].apply(null,arguments)}):o(n),e}),t)}var G=function(e,t){return q(Object.create(e),t)},K=i(X);function X(e,t){return-1!==e.indexOf(t)}var Z=i(Q);function Q(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),e}var J=i(ee);function ee(e,t){return e.push(t),t}var te=function(e){return e.slice().forEach((function(t){"function"==typeof t&&t(),Z(e,t)}))};function ne(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=q.apply(void 0,P([{}],t.reverse(),!1));return q(r,oe(e||{},Object.keys(r)))}var re=function(e,t){return q(e,t)};function ie(e,t){var n=[];for(var r in e.path){if(e.path[r]!==t.path[r])break;n.push(e.path[r])}return n}function oe(e,t){var n={};for(var r in e)-1!==t.indexOf(r)&&(n[r]=e[r]);return n}function ae(e,t){return Object.keys(e).filter(l(K(t))).reduce((function(t,n){return t[n]=e[n],t}),{})}function se(e,t){return de(e,s(t))}function ce(e,t){var n=S(e),r=n?[]:{},i=n?function(e){return r.push(e)}:function(e,t){return r[t]=e};return V(e,(function(e,n){t(e,n)&&i(e,n)})),r}function ue(e,t){var n;return V(e,(function(e,r){n||t(e,r)&&(n=e)})),n}var le=de;function de(e,t,n){return n=n||(S(e)?[]:{}),V(e,(function(e,r){return n[r]=t(e,r)})),n}var me=function(e){return Object.keys(e).map((function(t){return e[t]}))},he=function(e,t){return e&&t},fe=function(e,t){return e||t},pe=function(e,t){return e.concat(t)},ge=function(e,t){return S(t)?e.concat(t.reduce(ge,[])):ve(e,t)};function ve(e,t){return e.push(t),e}var be=function(e,t){return K(e,t)?e:ve(e,t)},ye=function(e){return e.reduce(pe,[])},$e=function(e){return e.reduce(ge,[])},Ee=Ce,we=Ce;function Ce(e,t){return void 0===t&&(t="assert failure"),function(n){var r=e(n);if(!r)throw new Error(x(t)?t(n):t);return r}}var _e=function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))};function Me(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(0===e.length)return[];for(var n=e.reduce((function(e,t){return Math.min(t.length,e)}),9007199254740991),r=[],i=function(t){switch(e.length){case 1:r.push([e[0][t]]);break;case 2:r.push([e[0][t],e[1][t]]);break;case 3:r.push([e[0][t],e[1][t],e[2][t]]);break;case 4:r.push([e[0][t],e[1][t],e[2][t],e[3][t]]);break;default:r.push(e.map((function(e){return e[t]})))}},o=0;o<n;o++)i(o);return r}function xe(e,t){var n,r;if(S(t)&&(n=t[0],r=t[1]),!k(n))throw new Error("invalid parameters to applyPairs");return e[n]=r,e}function Te(e){return e.length&&e[e.length-1]||void 0}function ke(e,t){return t&&Object.keys(t).forEach((function(e){return delete t[e]})),t||(t={}),q(t,e)}function Ae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n)for(var r=Object.keys(n),i=0;i<r.length;i++)e[r[i]]=n[r[i]]}return e}function Se(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n=typeof e;if(n!==typeof t||"object"!==n)return!1;var r,i,o=[e,t];if(h(S)(o))return i=t,(r=e).length===i.length&&Me(r,i).reduce((function(e,t){return e&&Se(t[0],t[1])}),!0);if(h(N)(o))return e.getTime()===t.getTime();if(h(O)(o))return e.toString()===t.toString();if(h(x)(o))return!0;if([x,S,N,O].map(f).reduce((function(e,t){return e||!!t(o)}),!1))return!1;var a={};for(var s in e){if(!Se(e[s],t[s]))return!1;a[s]=!0}for(var s in t)if(!a[s])return!1;return!0}var Ne,Oe=function(e){return e.catch((function(e){return 0}))&&e},De=function(e){return Oe(H.$q.reject(e))},Re=function(){function e(e){this.text=e,this.glob=e.split(".");var t=this.text.split(".").map((function(e){return"**"===e?"(?:|(?:\\.[^.]*)*)":"*"===e?"\\.[^.]*":"\\."+e})).join("");this.regexp=new RegExp("^"+t+"$")}return e.is=function(e){return!!/[!,*]+/.exec(e)},e.fromString=function(t){return e.is(t)?new e(t):null},e.prototype.matches=function(e){return this.regexp.test("."+e)},e}(),Ie=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=null),this._items=e,this._limit=t,this._evictListeners=[],this.onEvict=J(this._evictListeners)}return e.prototype.enqueue=function(e){var t=this._items;return t.push(e),this._limit&&t.length>this._limit&&this.evict(),e},e.prototype.evict=function(){var e=this._items.shift();return this._evictListeners.forEach((function(t){return t(e)})),e},e.prototype.dequeue=function(){if(this.size())return this._items.splice(0,1)[0]},e.prototype.clear=function(){var e=this._items;return this._items=[],e},e.prototype.size=function(){return this._items.length},e.prototype.remove=function(e){var t=this._items.indexOf(e);return t>-1&&this._items.splice(t,1)[0]},e.prototype.peekTail=function(){return this._items[this._items.length-1]},e.prototype.peekHead=function(){if(this.size())return this._items[0]},e}();!function(e){e[e.SUPERSEDED=2]="SUPERSEDED",e[e.ABORTED=3]="ABORTED",e[e.INVALID=4]="INVALID",e[e.IGNORED=5]="IGNORED",e[e.ERROR=6]="ERROR"}(Ne||(Ne={}));var He=0,Pe=function(){function e(e,t,n){this.$id=He++,this.type=e,this.message=t,this.detail=n}return e.isRejectionPromise=function(t){return t&&"function"==typeof t.then&&p(e)(t._transitionRejection)},e.superseded=function(t,n){var r=new e(Ne.SUPERSEDED,"The transition has been superseded by a different transition",t);return n&&n.redirected&&(r.redirected=!0),r},e.redirected=function(t){return e.superseded(t,{redirected:!0})},e.invalid=function(t){return new e(Ne.INVALID,"This transition is invalid",t)},e.ignored=function(t){return new e(Ne.IGNORED,"The transition was ignored",t)},e.aborted=function(t){return new e(Ne.ABORTED,"The transition has been aborted",t)},e.errored=function(t){return new e(Ne.ERROR,"The transition errored",t)},e.normalize=function(t){return p(e)(t)?t:e.errored(t)},e.prototype.toString=function(){var e,t=(e=this.detail)&&e.toString!==Object.prototype.toString?e.toString():qe(e),n=this,r=n.$id,i=n.type,o=n.message;return"Transition Rejection($id: ".concat(r," type: ").concat(i,", message: ").concat(o,", detail: ").concat(t,")")},e.prototype.toPromise=function(){return q(De(this),{_transitionRejection:this})},e}();function Le(e,t){return t.length<=e?t:t.substr(0,e-3)+"..."}function Fe(e,t){for(;t.length<e;)t+=" ";return t}function je(e){return e.replace(/^([A-Z])/,(function(e){return e.toLowerCase()})).replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}))}function Ue(e){var t=Ve(e),n=t.match(/^(function [^ ]+\([^)]*\))/),r=n?n[1]:t,i=e.name||"";return i&&r.match(/function \(/)?"function "+i+r.substr(9):r}function Ve(e){var t=S(e)?e.slice(-1)[0]:e;return t&&t.toString()||"undefined"}function qe(e){var t=[],n=Pe.isRejectionPromise,r=y([[w,v("undefined")],[_,v("null")],[R,v("[Promise]")],[n,function(e){return e._transitionRejection.toString()}],[function(e){return A(e)&&!S(e)&&e.constructor!==Object&&x(e.toString)},function(e){return e.toString()}],[D,Ue],[v(!0),Y]]);function i(e){if(A(e)){if(-1!==t.indexOf(e))return"[circular ref]";t.push(e)}return r(e)}return w(e)?i(e):JSON.stringify(e,(function(e,t){return i(t)})).replace(/\\"/g,'"')}var Be=function(e){return function(t){if(!t)return["",""];var n=t.indexOf(e);return-1===n?[t,""]:[t.substr(0,n),t.substr(n+1)]}},Ye=new RegExp("^(?:[a-z]+:)?//[^/]+/"),ze=function(e){return e.replace(/\/[^/]*$/,"")},We=Be("#"),Ge=Be("?"),Ke=Be("="),Xe=function(e){return e?e.replace(/^#/,""):""};function Ze(e){var t=new RegExp("("+e+")","g");return function(e){return e.split(t).filter(Y)}}function Qe(e,t){return k(Te(e))&&k(t)?e.slice(0,-1).concat(Te(e)+t):ve(e,t)}var Je={log:z,error:z,table:z};var et="undefined"!=typeof document&&document.documentMode&&9===document.documentMode?window&&window.console?function(e){var t=function(t){return Function.prototype.bind.call(t,e)};return{log:t(e.log),error:t(e.log),table:t(e.log)}}(window.console):Je:console.table&&console.error?console:function(e){var t=e.log.bind(e);return{log:t,error:e.error?e.error.bind(e):t,table:e.table?e.table.bind(e):t}}(console);function tt(e){if(!e)return"ui-view (defunct)";var t=e.creationContext?e.creationContext.name||"(root)":"(none)";return"[ui-view#".concat(e.id," ").concat(e.$type,":").concat(e.fqn," (").concat(e.name,"@").concat(t,")]")}var nt;function rt(e){return T(e)?nt[e]:nt[nt[e]]}!function(e){e[e.RESOLVE=0]="RESOLVE",e[e.TRANSITION=1]="TRANSITION",e[e.HOOK=2]="HOOK",e[e.UIVIEW=3]="UIVIEW",e[e.VIEWCONFIG=4]="VIEWCONFIG"}(nt||(nt={}));var it=u("$id"),ot=u("router.$id"),at=function(e){return"Transition #".concat(it(e),"-").concat(ot(e))},st=function(){function e(){this._enabled={},this.approximateDigests=0}return e.prototype._set=function(e,t){var n=this;t.length||(t=Object.keys(nt).map((function(e){return parseInt(e,10)})).filter((function(e){return!isNaN(e)})).map((function(e){return nt[e]}))),t.map(rt).forEach((function(t){return n._enabled[t]=e}))},e.prototype.enable=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._set(!0,e)},e.prototype.disable=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._set(!1,e)},e.prototype.enabled=function(e){return!!this._enabled[rt(e)]},e.prototype.traceTransitionStart=function(e){this.enabled(nt.TRANSITION)&&et.log("".concat(at(e),": Started -> ").concat(qe(e)))},e.prototype.traceTransitionIgnored=function(e){this.enabled(nt.TRANSITION)&&et.log("".concat(at(e),": Ignored <> ").concat(qe(e)))},e.prototype.traceHookInvocation=function(e,t,n){if(this.enabled(nt.HOOK)){var r=u("traceData.hookType")(n)||"internal",i=u("traceData.context.state.name")(n)||u("traceData.context")(n)||"unknown",o=Ue(e.registeredHook.callback);et.log("".concat(at(t),": Hook -> ").concat(r," context: ").concat(i,", ").concat(Le(200,o)))}},e.prototype.traceHookResult=function(e,t,n){this.enabled(nt.HOOK)&&et.log("".concat(at(t),": <- Hook returned: ").concat(Le(200,qe(e))))},e.prototype.traceResolvePath=function(e,t,n){this.enabled(nt.RESOLVE)&&et.log("".concat(at(n),": Resolving ").concat(e," (").concat(t,")"))},e.prototype.traceResolvableResolved=function(e,t){this.enabled(nt.RESOLVE)&&et.log("".concat(at(t),": <- Resolved ").concat(e," to: ").concat(Le(200,qe(e.data))))},e.prototype.traceError=function(e,t){this.enabled(nt.TRANSITION)&&et.log("".concat(at(t),": <- Rejected ").concat(qe(t),", reason: ").concat(e))},e.prototype.traceSuccess=function(e,t){this.enabled(nt.TRANSITION)&&et.log("".concat(at(t),": <- Success ").concat(qe(t),", final state: ").concat(e.name))},e.prototype.traceUIViewEvent=function(e,t,n){void 0===n&&(n=""),this.enabled(nt.UIVIEW)&&et.log("ui-view: ".concat(Fe(30,e)," ").concat(tt(t)).concat(n))},e.prototype.traceUIViewConfigUpdated=function(e,t){this.enabled(nt.UIVIEW)&&this.traceUIViewEvent("Updating",e," with ViewConfig from context='".concat(t,"'"))},e.prototype.traceUIViewFill=function(e,t){this.enabled(nt.UIVIEW)&&this.traceUIViewEvent("Fill",e," with: ".concat(Le(200,t)))},e.prototype.traceViewSync=function(e){if(this.enabled(nt.VIEWCONFIG)){var t="uiview component fqn",n=e.map((function(e){var n,r=e.uiView,i=e.viewConfig,o=r&&r.fqn,a=i&&"".concat(i.viewDecl.$context.name,": (").concat(i.viewDecl.$name,")");return(n={})[t]=o,n["view config state (view name)"]=a,n})).sort((function(e,n){return(e[t]||"").localeCompare(n[t]||"")}));et.table(n)}},e.prototype.traceViewServiceEvent=function(e,t){this.enabled(nt.VIEWCONFIG)&&et.log("VIEWCONFIG: ".concat(e," ").concat(function(e){var t=e.viewDecl,n=t.$context.name||"(root)";return"[View#".concat(e.$id," from '").concat(n,"' state]: target ui-view: '").concat(t.$uiViewName,"@").concat(t.$uiViewContextAnchor,"'")}(t)))},e.prototype.traceViewServiceUIViewEvent=function(e,t){this.enabled(nt.VIEWCONFIG)&&et.log("VIEWCONFIG: ".concat(e," ").concat(tt(t)))},e}(),ct=new st,ut=function(){function e(e){this.pattern=/.*/,this.inherit=!0,q(this,e)}return e.prototype.is=function(e,t){return!0},e.prototype.encode=function(e,t){return e},e.prototype.decode=function(e,t){return e},e.prototype.equals=function(e,t){return e==t},e.prototype.$subPattern=function(){var e=this.pattern.toString();return e.substr(1,e.length-2)},e.prototype.toString=function(){return"{ParamType:".concat(this.name,"}")},e.prototype.$normalize=function(e){return this.is(e)?e:this.decode(e)},e.prototype.$asArray=function(e,t){if(!e)return this;if("auto"===e&&!t)throw new Error("'auto' array mode is for query parameters only");return new lt(this,e)},e}();function lt(e,t){var n=this;function r(e){return S(e)?e:C(e)?[e]:[]}function i(e,n){return function(i){if(S(i)&&0===i.length)return i;var o=de(r(i),e);return!0===n?0===ce(o,(function(e){return!e})).length:function(e){switch(e.length){case 0:return;case 1:return"auto"===t?e[0]:e;default:return e}}(o)}}function o(e){return function(t,n){var i=r(t),o=r(n);if(i.length!==o.length)return!1;for(var a=0;a<i.length;a++)if(!e(i[a],o[a]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach((function(t){var r=e[t].bind(e),a="equals"===t?o:i;n[t]=a(r)})),q(this,{dynamic:e.dynamic,name:e.name,pattern:e.pattern,inherit:e.inherit,raw:e.raw,is:i(e.is.bind(e),!0),$arrayMode:t})}var dt,mt=Object.prototype.hasOwnProperty;function ht(e,t,n){var r=!1===n.reloadOnSearch&&t===dt.SEARCH||void 0,i=ue([n.dynamic,r],C),o=C(i)?{dynamic:i}:{},a=function(e){function t(){return e.value}e=function(e){return 0===["value","type","squash","array","dynamic"].filter(mt.bind(e||{})).length}(e)?{value:e}:e,t.__cacheable=!0;var n=D(e.value)?e.value:t;return q(e,{$$fn:n})}(n&&n.params&&n.params[e]);return q(o,a)}!function(e){e[e.PATH=0]="PATH",e[e.SEARCH=1]="SEARCH",e[e.CONFIG=2]="CONFIG"}(dt||(dt={}));var ft,pt=function(){function e(e,t,n,r,i){var o=ht(e,n,i);t=function(e,t,n,r,i){if(e.type&&t&&"string"!==t.name)throw new Error("Param '".concat(r,"' has two type configurations."));if(e.type&&t&&"string"===t.name&&i.type(e.type))return i.type(e.type);if(t)return t;if(!e.type){var o=n===dt.CONFIG?"any":n===dt.PATH?"path":n===dt.SEARCH?"query":"string";return i.type(o)}return e.type instanceof ut?e.type:i.type(e.type)}(o,t,n,e,r.paramTypes);var a,c,u=(a={array:n===dt.SEARCH&&"auto"},c=e.match(/\[\]$/)?{array:!0}:{},q(a,c,o).array);t=u?t.$asArray(u,n===dt.SEARCH):t;var l=void 0!==o.value||n===dt.SEARCH,d=C(o.dynamic)?!!o.dynamic:!!t.dynamic,m=C(o.raw)?!!o.raw:!!t.raw,h=function(e,t,n){var r=e.squash;if(!t||!1===r)return!1;if(!C(r)||null==r)return n;if(!0===r||k(r))return r;throw new Error("Invalid squash policy: '".concat(r,"'. Valid policies: false, true, or arbitrary string"))}(o,l,r.defaultSquashPolicy()),f=function(e,t,n,r){var i=[{from:"",to:n||t?void 0:""},{from:null,to:n||t?void 0:""}],o=S(e.replace)?e.replace:[];k(r)&&o.push({from:r,to:void 0});var a=de(o,s("from"));return ce(i,(function(e){return-1===a.indexOf(e.from)})).concat(o)}(o,u,l,h),p=C(o.inherit)?!!o.inherit:!!t.inherit;q(this,{id:e,type:t,location:n,isOptional:l,dynamic:d,raw:m,squash:h,replace:f,inherit:p,array:u,config:o})}return e.values=function(e,t){void 0===t&&(t={});for(var n={},r=0,i=e;r<i.length;r++){var o=i[r];n[o.id]=o.value(t[o.id])}return n},e.changed=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e.filter((function(e){return!e.type.equals(t[e.id],n[e.id])}))},e.equals=function(t,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),0===e.changed(t,n,r).length},e.validates=function(e,t){return void 0===t&&(t={}),e.map((function(e){return e.validates(t[e.id])})).reduce(he,!0)},e.prototype.isDefaultValue=function(e){return this.isOptional&&this.type.equals(this.value(),e)},e.prototype.value=function(e){var t=this;return e=function(e){for(var n=0,r=t.replace;n<r.length;n++){var i=r[n];if(i.from===e)return i.to}return e}(e),w(e)?function(){if(t._defaultValueCache)return t._defaultValueCache.defaultValue;if(!H.$injector)throw new Error("Injectable functions cannot be called at configuration time");var e=H.$injector.invoke(t.config.$$fn);if(null!=e&&!t.type.is(e))throw new Error("Default value (".concat(e,") for parameter '").concat(t.id,"' is not an instance of ParamType (").concat(t.type.name,")"));return t.config.$$fn.__cacheable&&(t._defaultValueCache={defaultValue:e}),e}():this.type.$normalize(e)},e.prototype.isSearch=function(){return this.location===dt.SEARCH},e.prototype.validates=function(e){if((w(e)||null===e)&&this.isOptional)return!0;var t=this.type.$normalize(e);if(!this.type.is(t))return!1;var n=this.type.encode(t);return!(k(n)&&!this.type.pattern.exec(n))},e.prototype.toString=function(){return"{Param:".concat(this.id," ").concat(this.type," squash: '").concat(this.squash,"' optional: ").concat(this.isOptional,"}")},e}(),gt=function(){function e(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=oe(e.prototype,["hash","string","query","path","int","bool","date","json","any"]);this.types=G(de(this.defaultTypes,(function(e,t){return new ut(q({name:t},e))})),{})}return e.prototype.dispose=function(){this.types={}},e.prototype.type=function(e,t,n){if(!C(t))return this.types[e];if(this.types.hasOw