Built motion from commit (unavailable).|2.5.30
[motion2.git] / snippet / 3.0.0 / scripts / chat-ab94cf03.js
1 (self.webpackChunkmotion_chat=self.webpackChunkmotion_chat||[]).push([["chat-ab94cf03"],{"./node_modules/@uirouter/core/lib-esm/hooks/lazyLoad.js":(e,t,r)=>{"use strict";r.d(t,{v:()=>i,A:()=>s});var n=r("./node_modules/@uirouter/core/lib-esm/common/coreservices.js"),o=function(e){var t=e.router,r=e.entering().filter((function(e){return!!e.$$state().lazyLoad})).map((function(t){return s(e,t)}));return n.u.$q.all(r).then((function(){if("url"!==e.originalTransition().options().source){var r=e.targetState();return t.stateService.target(r.identifier(),r.params(),r.options())}var n=t.urlService,o=n.match(n.parts()),i=o&&o.rule;if(i&&"STATE"===i.type){var s=i.state,u=o.match;return t.stateService.target(s,u,e.options())}t.urlService.sync()}))},i=function(e){return e.onBefore({entering:function(e){return!!e.lazyLoad}},o)};function s(e,t){var r=t.$$state().lazyLoad,o=r._promise;return o||(o=r._promise=n.u.$q.when(r(e,t)).then((function(t){return t&&Array.isArray(t.states)&&t.states.forEach((function(t){return e.router.stateRegistry.register(t)})),t})).then((function(e){return delete t.lazyLoad,delete t.$$state().lazyLoad,delete r._promise,e}),(function(e){return delete r._promise,n.u.$q.reject(e)}))),o}},"./node_modules/@uirouter/core/lib-esm/interface.js":(e,t,r)=>{},"./node_modules/@uirouter/core/lib-esm/params/interface.js":()=>{},"./node_modules/@uirouter/core/lib-esm/params/param.js":(e,t,r)=>{"use strict";r.d(t,{_:()=>n,d:()=>l});var n,o=r("./node_modules/@uirouter/core/lib-esm/common/common.js"),i=r("./node_modules/@uirouter/core/lib-esm/common/hof.js"),s=r("./node_modules/@uirouter/core/lib-esm/common/predicates.js"),u=r("./node_modules/@uirouter/core/lib-esm/common/coreservices.js"),a=r("./node_modules/@uirouter/core/lib-esm/params/paramType.js"),c=Object.prototype.hasOwnProperty;!function(e){e[e.PATH=0]="PATH",e[e.SEARCH=1]="SEARCH",e[e.CONFIG=2]="CONFIG"}(n||(n={}));var l=function(){function e(e,t,r,u,l){var h=function(e,t,r){var i=!1===r.reloadOnSearch&&t===n.SEARCH||void 0,u=(0,o.sE)([r.dynamic,i],s.$K),a=(0,s.$K)(u)?{dynamic:u}:{},l=function(e){function t(){return e.value}e=function(e){return 0===["value","type","squash","array","dynamic"].filter(c.bind(e||{})).length}(e)?{value:e}:e,t.__cacheable=!0;var r=(0,s.Qh)(e.value)?e.value:t;return(0,o.l7)(e,{$$fn:r})}(r&&r.params&&r.params[e]);return(0,o.l7)(a,l)}(e,r,l);t=function(e,t,r,o,i){if(e.type&&t&&"string"!==t.name)throw new Error("Param '"+o+"' 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 s=r===n.CONFIG?"any":r===n.PATH?"path":r===n.SEARCH?"query":"string";return i.type(s)}return e.type instanceof a._?e.type:i.type(e.type)}(h,t,r,e,u.paramTypes);var f,d,p=(f={array:r===n.SEARCH&&"auto"},d=e.match(/\[\]$/)?{array:!0}:{},(0,o.l7)(f,d,h).array);t=p?t.$asArray(p,r===n.SEARCH):t;var m=void 0!==h.value||r===n.SEARCH,v=(0,s.$K)(h.dynamic)?!!h.dynamic:!!t.dynamic,_=(0,s.$K)(h.raw)?!!h.raw:!!t.raw,y=function(e,t,r){var n=e.squash;if(!t||!1===n)return!1;if(!(0,s.$K)(n)||null==n)return r;if(!0===n||(0,s.HD)(n))return n;throw new Error("Invalid squash policy: '"+n+"'. Valid policies: false, true, or arbitrary string")}(h,m,u.defaultSquashPolicy()),g=function(e,t,r,n){var u=[{from:"",to:r||t?void 0:""},{from:null,to:r||t?void 0:""}],a=(0,s.kJ)(e.replace)?e.replace:[];(0,s.HD)(n)&&a.push({from:n,to:void 0});var c=(0,o.UI)(a,(0,i.vg)("from"));return(0,o.hX)(u,(function(e){return-1===c.indexOf(e.from)})).concat(a)}(h,p,m,y),b=(0,s.$K)(h.inherit)?!!h.inherit:!!t.inherit;(0,o.l7)(this,{id:e,type:t,location:r,isOptional:m,dynamic:v,raw:_,squash:y,replace:g,inherit:b,array:p,config:h})}return e.values=function(e,t){void 0===t&&(t={});for(var r={},n=0,o=e;n<o.length;n++){var i=o[n];r[i.id]=i.value(t[i.id])}return r},e.changed=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),e.filter((function(e){return!e.type.equals(t[e.id],r[e.id])}))},e.equals=function(t,r,n){return void 0===r&&(r={}),void 0===n&&(n={}),0===e.changed(t,r,n).length},e.validates=function(e,t){return void 0===t&&(t={}),e.map((function(e){return e.validates(t[e.id])})).reduce(o.XC,!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 r=0,n=t.replace;r<n.length;r++){var o=n[r];if(o.from===e)return o.to}return e}(e),(0,s.o8)(e)?function(){if(t._defaultValueCache)return t._defaultValueCache.defaultValue;if(!u.u.$injector)throw new Error("Injectable functions cannot be called at configuration time");var e=u.u.$injector.invoke(t.config.$$fn);if(null!=e&&!t.type.is(e))throw new Error("Default value ("+e+") for parameter '"+t.id+"' is not an instance of ParamType ("+t.type.name+")");return t.config.$$fn.__cacheable&&(t._defaultValueCache={defaultValue:e}),e}():this.type.$normalize(e)},e.prototype.isSearch=function(){return this.location===n.SEARCH},e.prototype.validates=function(e){if(((0,s.o8)(e)||null===e)&&this.isOptional)return!0;var t=this.type.$normalize(e);if(!this.type.is(t))return!1;var r=this.type.encode(t);return!((0,s.HD)(r)&&!this.type.pattern.exec(r))},e.prototype.toString=function(){return"{Param:"+this.id+" "+this.type+" squash: '"+this.squash+"' optional: "+this.isOptional+"}"},e}()},"./node_modules/@uirouter/core/lib-esm/params/paramType.js":(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r("./node_modules/@uirouter/core/lib-esm/common/common.js"),o=r("./node_modules/@uirouter/core/lib-esm/common/predicates.js"),i=function(){function e(e){this.pattern=/.*/,this.inherit=!0,(0,n.l7)(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:"+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 s(this,e)},e}();function s(e,t){var r=this;function i(e){return(0,o.kJ)(e)?e:(0,o.$K)(e)?[e]:[]}function s(e,r){return function(s){if((0,o.kJ)(s)&&0===s.length)return s;var u=i(s),a=(0,n.UI)(u,e);return!0===r?0===(0,n.hX)(a,(function(e){return!e})).length:function(e){switch(e.length){case 0:return;case 1:return"auto"===t?e[0]:e;default:return e}}(a)}}function u(e){return function(t,r){var n=i(t),o=i(r);if(n.length!==o.length)return!1;for(var s=0;s<n.length;s++)if(!e(n[s],o[s]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach((function(t){var n=e[t].bind(e),o="equals"===t?u:s;r[t]=o(n)})),(0,n.l7)(this,{dynamic:e.dynamic,name:e.name,pattern:e.pattern,inherit:e.inherit,raw:e.raw,is:s(e.is.bind(e),!0),$arrayMode:t})}},"./node_modules/@uirouter/core/lib-esm/params/paramTypes.js":(e,t,r)=>{"use strict";r.d(t,{p:()=>c});var n,o=r("./node_modules/@uirouter/core/lib-esm/common/common.js"),i=r("./node_modules/@uirouter/core/lib-esm/common/predicates.js"),s=r("./node_modules/@uirouter/core/lib-esm/common/hof.js"),u=r("./node_modules/@uirouter/core/lib-esm/common/coreservices.js"),a=r("./node_modules/@uirouter/core/lib-esm/params/paramType.js"),c=function(){function e(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=(0,o.ei)(e.prototype,["hash","string","query","path","int","bool","date","json","any"]),this.types=(0,o.ED)((0,o.UI)(this.defaultTypes,(function(e,t){return new a._((0,o.l7)({name:t},e))})),{})}return e.prototype.dispose=function(){this.types={}},e.prototype.type=function(e,t,r){if(!(0,i.$K)(t))return this.types[e];if(this.types.hasOwnProperty(e))throw new Error("A type named '"+e+"' has already been defined.");return this.types[e]=new a._((0,o.l7)({name:e},t)),r&&(this.typeQueue.push({name:e,def:r}),this.enqueue||this._flushTypeQueue()),this},e.prototype._flushTypeQueue=function(){for(;this.typeQueue.length;){var e=this.typeQueue.shift();if(e.pattern)throw new Error("You cannot override a type's .pattern at runtime.");(0,o.l7)(this.types[e.name],u.u.$injector.invoke(e.def))}},e}();n=function(e){var t=function(e){return null!=e?e.toString():e},r={encode:t,decode:t,is:(0,s.is)(String),pattern:/.*/,equals:function(e,t){return e==t}};return(0,o.l7)({},r,e)},(0,o.l7)(c.prototype,{string:n({}),path:n({pattern:/[^/]*/}),query:n({}),hash:n({inherit:!1}),int:n({decode:function(e){return parseInt(e,10)},is:function(e){return!(0,i.le)(e)&&this.decode(e.toString())===e},pattern:/-?\d+/}),bool:n({encode:function(e){return e?1:0},decode:function(e){return 0!==parseInt(e,10)},is:(0,s.is)(Boolean),pattern:/0|1/}),date:n({encode:function(e){return this.is(e)?[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("-"):void 0},decode:function(e){if(this.is(e))return e;var t=this.capture.exec(e);return t?new Date(t[1],t[2]-1,t[3]):void 0},is:function(e){return e instanceof Date&&!isNaN(e.valueOf())},equals:function(e,t){return["getFullYear","getMonth","getDate"].reduce((function(r,n){return r&&e[n]()===t[n]()}),!0)},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/}),json:n({encode:o.Qs,decode:o.xZ,is:(0,s.is)(Object),equals:o.fS,pattern:/[^/]*/}),any:n({encode:o.yR,decode:o.yR,is:function(){return!0},equals:o.fS})})},"./node_modules/@uirouter/core/lib-esm/params/stateParams.js":(e,t,r)=>{"use strict";r.d(t,{i:()=>o});var n=r("./node_modules/@uirouter/core/lib-esm/common/common.js"),o=function(){function e(e){void 0===e&&(e={}),(0,n.l7)(this,e)}return e.prototype.$inherit=function(e,t,r){var o,i=(0,n.mX)(t,r),s={},u=[];for(var a in i)if(i[a]&&i[a].params&&(o=Object.keys(i[a].params)).length)for(var c in o)u.indexOf(o[c])>=0||(u.push(o[c]),s[o[c]]=this[o[c]]);return(0,n.l7)({},s,e)},e}()},"./node_modules/@uirouter/core/lib-esm/path/pathNode.js":(e,t,r)=>{"use strict";r.d(t,{V:()=>s});var n=r("./node_modules/@uirouter/core/lib-esm/common/common.js"),o=r("./node_modules/@uirouter/core/lib-esm/common/hof.js"),i=r("./node_modules/@uirouter/core/lib-esm/params/param.js"),s=function(){function e(t){if(t instanceof e){var r=t;this.state=r.state,this.paramSchema=r.paramSchema.slice(),this.paramValues=(0,n.l7)({},r.paramValues),this.resolvables=r.resolvables.slice(),this.views=r.views&&r.views.slice()}else{var o=t;this.state=o,this.paramSchema=o.parameters({inherit:!1}),this.paramValues={},this.resolvables=o.resolvables.map((function(e){return e.clone()}))}}return e.prototype.clone=function(){return new e(this)},e.prototype.applyRawParams=function(e){return this.paramValues=this.paramSchema.reduce((function(t,r){return(0,n.bb)(t,[(o=r).id,o.value(e[o.id])]);var o}),{}),this},e.prototype.parameter=function(e){return(0,n.sE)(this.paramSchema,(0,o.OH)("id",e))},e.prototype.equals=function(e,t){var r=this.diff(e,t);return r&&0===r.length},e.prototype.diff=function(e,t){if(this.state!==e.state)return!1;var r=t?t(this):this.paramSchema;return i.d.changed(r,this.paramValues,e.paramValues)},e.clone=function(e){return e.clone()},e}()},"./node_modules/@uirouter/core/lib-esm/path/pathUtils.js":(e,t,r)=>{"use strict";r.d(t,{C:()=>u});var n=r("./node_modules/@uirouter/core/lib-esm/common/common.js"),o=r("./node_modules/@uirouter/core/lib-esm/common/hof.js"),i=r("./node_modules/@uirouter/core/lib-esm/state/targetState.js"),s=r("./node_modules/@uirouter/core/lib-esm/path/pathNode.js"),u=function(){function e(){}return e.makeTargetState=function(e,t){var r=(0,n.Gb)(t).state;return new i.F(e,r,t.map((0,o.vg)("paramValues")).reduce(n.LQ,{}),{})},e.buildPath=function(e){var t=e.params();return e.$state().path.map((function(e){return new s.V(e).applyRawParams(t)}))},e.buildToPath=function(t,r){var n=e.buildPath(r);return r.options().inherit?e.inheritParams(t,n,Object.keys(r.params())):n},e.applyViewConfigs=function(t,r,o){r.filter((function(e){return(0,n.d3)(o,e.state)})).forEach((function(o){var i=(0,n.VO)(o.state.views||{}),s=e.subPath(r,(function(e){return e===o})),u=i.map((function(e){return t.createViewConfig(s,e)}));o.views=u.reduce(n.M7,[])}))},e.inheritParams=function(e,t,r){void 0===r&&(r=[]);var i=e.map((function(e){return e.paramSchema})).reduce(n.M7,[]).filter((function(e){return!e.inherit})).map((0,o.vg)("id"));return t.map((function(t){var u=(0,n.l7)({},t&&t.paramValues),a=(0,n.ei)(u,r);u=(0,n.CE)(u,r);var c,l,h,f=(0,n.CE)((c=e,l=t.state,h=(0,n.sE)(c,(0,o.OH)("state",l)),(0,n.l7)({},h&&h.paramValues)||{}),i),d=(0,n.l7)(u,f,a);return new s.V(t.state).applyRawParams(d)}))},e.treeChanges=function(t,r,n){for(var o,i,s,u,a,c,l=Math.min(t.length,r.length),h=0;h<l&&t[h].state!==n&&(o=t[h],i=r[h],o.equals(i,e.nonDynamicParams));)h++;u=(s=t).slice(0,h),a=s.slice(h);var f=u.map((function(e,t){var n=e.clone();return n.paramValues=r[t].paramValues,n}));return c=r.slice(h),{from:s,to:f.concat(c),retained:u,retainedWithToParams:f,exiting:a,entering:c}},e.matching=function(e,t,r){var o=!1;return(0,n.ym)(e,t).reduce((function(e,t){var n=t[0],i=t[1];return(o=o||!n.equals(i,r))?e:e.concat(n)}),[])},e.equals=function(t,r,n){return t.length===r.length&&e.matching(t,r,n).length===t.length},e.subPath=function(e,t){var r=(0,n.sE)(e,t),o=e.indexOf(r);return-1===o?void 0:e.slice(0,o+1)},e.nonDynamicParams=function(e){return e.state.parameters({inherit:!1}).filter((function(e){return!e.dynamic}))},e.paramValues=function(e){return e.reduce((function(e,t){return(0,n.l7)(e,t.paramValues)}),{})},e}()},"./node_modules/@uirouter/core/lib-esm/resolve/interface.js":(e,t,r)=>{"use strict";r.d(t,{u:()=>n});var n={when:{LAZY:"LAZY",EAGER:"EAGER"},async:{WAIT:"WAIT",NOWAIT:"NOWAIT"}}},"./node_modules/@uirouter/core/lib-esm/resolve/resolvable.js":(e,t,r)=>{"use strict";r.d(t,{X:()=>a});var n=r("./node_modules/@uirouter/core/lib-esm/common/common.js"),o=r("./node_modules/@uirouter/core/lib-esm/common/coreservices.js"),i=r("./node_modules/@uirouter/core/lib-esm/common/trace.js"),s=r("./node_modules/@uirouter/core/lib-esm/common/strings.js"),u=r("./node_modules/@uirouter/core/lib-esm/common/predicates.js"),a=function(){function e(t,r,i,s,a){if(this.resolved=!1,this.promise=void 0,t instanceof e)(0,n.l7)(this,t);else if((0,u.mf)(r)){if((0,u.le)(t))throw new Error("new Resolvable(): token argument is required");if(!(0,u.mf)(r))throw new Error("new Resolvable(): resolveFn argument must be a function");this.token=t,this.policy=s,this.resolveFn=r,this.deps=i||[],this.data=a,this.resolved=void 0!==a,this.promise=this.resolved?o.u.$q.when(this.data):void 0}else if((0,u.Kn)(t)&&t.token&&(t.hasOwnProperty("resolveFn")||t.hasOwnProperty("data"))){var c=t;return new e(c.token,c.resolveFn,c.deps,c.policy,c.data)}}return e.prototype.getPolicy=function(e){var t=this.policy||{},r=e&&e.resolvePolicy||{};return{when:t.when||r.when||"LAZY",async:t.async||r.async||"WAIT"}},e.prototype.resolve=function(e,t){var r=this,s=o.u.$q,a=e.findNode(this),c=a&&a.state,l=this.getPolicy(c).async,h=(0,u.mf)(l)?l:n.yR;return this.promise=s.when().then((function(){return s.all(e.getDependencies(r).map((function(r){return r.get(e,t)})))})).then((function(e){return r.resolveFn.apply(null,e)})).then(h).then((function(e){return r.data=e,r.resolved=!0,r.resolveFn=null,i.g4.traceResolvableResolved(r,t),r.data}))},e.prototype.get=function(e,t){return this.promise||this.resolve(e,t)},e.prototype.toString=function(){return"Resolvable(token: "+(0,s.Pz)(this.token)+", requires: ["+this.deps.map(s.Pz)+"])"},e.prototype.clone=function(){return new e(this)},e.fromData=function(t,r){return new e(t,(function(){return r}),null,null,r)},e}()},"./node_modules/@uirouter/core/lib-esm/resolve/resolveContext.js":(e,t,r)=>{"use strict";r.d(t,{l:()=>m});var n=r("./node_modules/@uirouter/core/lib-esm/common/common.js"),o=r("./node_modules/@uirouter/core/lib-esm/common/hof.js"),i=r("./node_modules/@uirouter/core/lib-esm/common/trace.js"),s=r("./node_modules/@uirouter/core/lib-esm/common/coreservices.js"),u=r("./node_modules/@uirouter/core/lib-esm/resolve/interface.js"),a=r("./node_modules/@uirouter/core/lib-esm/resolve/resolvable.js"),c=r("./node_modules/@uirouter/core/lib-esm/path/pathUtils.js"),l=r("./node_modules/@uirouter/core/lib-esm/common/strings.js"),h=r("./node_modules/@uirouter/core/lib-esm/common/index.js"),f=u.u.when,d=[f.EAGER,f.LAZY],p=[f.EAGER],m=function(){function e(e){this._path=e}return e.prototype.getTokens=function(){return this._path.reduce((function(e,t){return e.concat(t.resolvables.map((function(e){return e.token})))}),[]).reduce(n.v_,[])},e.prototype.getResolvable=function(e){var t=this._path.map((function(e){return e.resolvables})).reduce(n.M7,[]).filter((function(t){return t.token===e}));return(0,n.Gb)(t)},e.prototype.getPolicy=function(e){var t=this.findNode(e);return e.getPolicy(t.state)},e.prototype.subContext=function(t){return new e(c.C.subPath(this._path,(function(e){return e.state===t})))},e.prototype.addResolvables=function(e,t){var r=(0,n.sE)(this._path,(0,o.OH)("state",t)),i=e.map((function(e){return e.token}));r.resolvables=r.resolvables.filter((function(e){return-1===i.indexOf(e.token)})).concat(e)},e.prototype.resolvePath=function(e,t){var r=this;void 0===e&&(e="LAZY");var a=((0,n.d3)(d,e)?e:"LAZY")===u.u.when.EAGER?p:d;i.g4.traceResolvePath(this._path,e,t);var c=function(e,t){return function(o){return(0,n.d3)(e,r.getPolicy(o)[t])}},l=this._path.reduce((function(e,n){var i=n.resolvables.filter(c(a,"when")),s=i.filter(c(["NOWAIT"],"async")),u=i.filter((0,o.ff)(c(["NOWAIT"],"async"))),l=r.subContext(n.state),h=function(e){return e.get(l,t).then((function(t){return{token:e.token,value:t}}))};return s.forEach(h),e.concat(u.map(h))}),[]);return s.u.$q.all(l)},e.prototype.injector=function(){return this._injector||(this._injector=new v(this))},e.prototype.findNode=function(e){return(0,n.sE)(this._path,(function(t){return(0,n.d3)(t.resolvables,e)}))},e.prototype.getDependencies=function(e){var t=this,r=this.findNode(e),o=(c.C.subPath(this._path,(function(e){return e===r}))||this._path).reduce((function(e,t){return e.concat(t.resolvables)}),[]).filter((function(t){return t!==e}));return e.deps.map((function(e){var r=o.filter((function(t){return t.token===e}));if(r.length)return(0,n.Gb)(r);var i=t.injector().getNative(e);if((0,h.wV)(i))throw new Error("Could not find Dependency Injection token: "+(0,l.Pz)(e));return new a.X(e,(function(){return i}),[],i)}))},e}(),v=function(){function e(e){this.context=e,this.native=this.get("Native Injector")||s.u.$injector}return e.prototype.get=function(e){var t=this.context.getResolvable(e);if(t){if("NOWAIT"===this.context.getPolicy(t).async)return t.get(this.context);if(!t.resolved)throw new Error("Resolvable async .get() not complete:"+(0,l.Pz)(t.token));return t.data}return this.getNative(e)},e.prototype.getAsync=function(e){var t=this.context.getResolvable(e);return t?t.get(this.context):s.u.$q.when(this.native.get(e))},e.prototype.getNative=function(e){return this.native&&this.native.get(e)},e}()},"./node_modules/@uirouter/core/lib-esm/router.js":(e,t,r)=>{"use strict";r.d(t,{a:()=>y});var n=r("./node_modules/@uirouter/core/lib-esm/url/urlMatcherFactory.js"),o=r("./node_modules/@uirouter/core/lib-esm/url/urlRouter.js"),i=r("./node_modules/@uirouter/core/lib-esm/transition/transitionService.js"),s=r("./node_modules/@uirouter/core/lib-esm/view/view.js"),u=r("./node_modules/@uirouter/core/lib-esm/state/stateRegistry.js"),a=r("./node_modules/@uirouter/core/lib-esm/state/stateService.js"),c=r("./node_modules/@uirouter/core/lib-esm/globals.js"),l=r("./node_modules/@uirouter/core/lib-esm/common/common.js"),h=r("./node_modules/@uirouter/core/lib-esm/common/predicates.js"),f=r("./node_modules/@uirouter/core/lib-esm/url/urlService.js"),d=r("./node_modules/@uirouter/core/lib-esm/common/trace.js"),p=r("./node_modules/@uirouter/core/lib-esm/common/index.js"),m=0,v=(0,p.HV)("LocationServices",["url","path","search","hash","onChange"]),_=(0,p.HV)("LocationConfig",["port","protocol","host","baseHref","html5Mode","hashPrefix"]),y=function(){function e(e,t){void 0===e&&(e=v),void 0===t&&(t=_),this.locationService=e,this.locationConfig=t,this.$id=m++,this._disposed=!1,this._disposables=[],this.trace=d.g4,this.viewService=new s.s(this),this.globals=new c.k,this.transitionService=new i.Z(this),this.urlMatcherFactory=new n.y(this),this.urlRouter=new o.g(this),this.urlService=new f.i(this),this.stateRegistry=new u.q(this),this.stateService=new a.b(this),this._plugins={},this.viewService._pluginapi._rootViewContext(this.stateRegistry.root()),this.globals.$current=this.stateRegistry.root(),this.globals.current=this.globals.$current.self,this.disposable(this.globals),this.disposable(this.stateService),this.disposable(this.stateRegistry),this.disposable(this.transitionService),this.disposable(this.urlService),this.disposable(e),this.disposable(t)}return e.prototype.disposable=function(e){this._disposables.push(e)},e.prototype.dispose=function(e){var t=this;e&&(0,h.mf)(e.dispose)?e.dispose(this):(this._disposed=!0,this._disposables.slice().forEach((function(e){try{"function"==typeof e.dispose&&e.dispose(t),(0,l.nA)(t._disposables,e)}catch(e){}})))},e.prototype.plugin=function(e,t){void 0===t&&(t={});var r=new e(this,t);if(!r.name)throw new Error("Required property `name` missing on plugin: "+r);return this._disposables.push(r),this._plugins[r.name]=r},e.prototype.getPlugin=function(e){return e?this._plugins[e]:(0,l.VO)(this._plugins)},e}()},"./node_modules/@uirouter/core/lib-esm/state/interface.js":()=>{},"./node_modules/@uirouter/core/lib-esm/state/stateBuilder.js":(e,t,r)=>{"use strict";r.d(t,{t:()=>_});var n=r("./node_modules/@uirouter/core/lib-esm/common/common.js"),o=r("./node_modules/@uirouter/core/lib-esm/common/predicates.js"),i=r("./node_modules/@uirouter/core/lib-esm/common/strings.js"),s=r("./node_modules/@uirouter/core/lib-esm/common/hof.js"),u=r("./node_modules/@uirouter/core/lib-esm/resolve/resolvable.js"),a=r("./node_modules/@uirouter/core/lib-esm/common/coreservices.js");function c(e){return e.name}function l(e){return e.self.$$state=function(){return e},e.self}function h(e){return e.parent&&e.parent.data&&(e.data=e.self.data=(0,n.ED)(e.parent.data,e.data)),e.data}var f=function(e,t){return function(r){var i=r.self;if(i&&i.url&&i.name&&i.name.match(/\.\*\*$/)){var s={};(0,n.JG)(i,s),s.url+="{remainder:any}",i=s}var u=r.parent,a=function(e){if(!(0,o.HD)(e))return!1;var t="^"===e.charAt(0);return{val:t?e.substring(1):e,root:t}}(i.url),c=a?e.compile(a.val,{state:i}):i.url;if(!c)return null;if(!e.isMatcher(c))throw new Error("Invalid url '"+c+"' in state '"+r+"'");return a&&a.root?c:(u&&u.navigable||t()).url.append(c)}},d=function(e){return function(t){return!e(t)&&t.url?t:t.parent?t.parent.navigable:null}};function p(e){return e.parent?e.parent.path.concat(e):[e]}function m(e){var t=e.parent?(0,n.l7)({},e.parent.includes):{};return t[e.name]=!0,t}function v(e){var t,r,c=function(e){return e.provide||e.token},l=(0,s.uj)([[(0,s.vg)("resolveFn"),function(e){return new u.X(c(e),e.resolveFn,e.deps,e.policy)}],[(0,s.vg)("useFactory"),function(e){return new u.X(c(e),e.useFactory,e.deps||e.dependencies,e.policy)}],[(0,s.vg)("useClass"),function(e){return new u.X(c(e),(function(){return new e.useClass}),[],e.policy)}],[(0,s.vg)("useValue"),function(e){return new u.X(c(e),(function(){return e.useValue}),[],e.policy,e.useValue)}],[(0,s.vg)("useExisting"),function(e){return new u.X(c(e),n.yR,[e.useExisting],e.policy)}]]),h=(0,s.uj)([[(0,s.zG)((0,s.vg)("val"),o.HD),function(e){return new u.X(e.token,n.yR,[e.val],e.policy)}],[(0,s.zG)((0,s.vg)("val"),o.kJ),function(e){return new u.X(e.token,(0,n.Gb)(e.val),e.val.slice(0,-1),e.policy)}],[(0,s.zG)((0,s.vg)("val"),o.mf),function(e){return new u.X(e.token,e.val,(t=e.val,r=a.u.$injector,t.$inject||r&&r.annotate(t,r.strictDi)||"deferred"),e.policy);var t,r}]]),f=(0,s.uj)([[(0,s.is)(u.X),function(e){return e}],[function(e){return!(!e.token||!e.resolveFn)},l],[function(e){return!(!e.provide&&!e.token||!(e.useValue||e.useFactory||e.useExisting||e.useClass))},l],[function(e){return!!(e&&e.val&&((0,o.HD)(e.val)||(0,o.kJ)(e.val)||(0,o.mf)(e.val)))},h],[(0,s.P0)(!0),function(e){throw new Error("Invalid resolve value: "+(0,i.Pz)(e))}]]),d=e.resolve;return((0,o.kJ)(d)?d:(t=d,r=e.resolvePolicy||{},Object.keys(t||{}).map((function(e){return{token:e,val:t[e],deps:void 0,policy:r[e]}})))).map(f)}var _=function(){function e(e,t){this.matcher=e;var r,o=this,i=function(){return e.find("")},u=function(e){return""===e.name};this.builders={name:[c],self:[l],parent:[function(t){return u(t)?null:e.find(o.parentName(t))||i()}],data:[h],url:[f(t,i)],navigable:[d(u)],params:[(r=t.paramFactory,function(e){var t=e.url&&e.url.parameters({inherit:!1})||[],o=(0,n.VO)((0,n.js)((0,n.CE)(e.params||{},t.map((0,s.vg)("id"))),(function(t,n){return r.fromConfig(n,null,e.self)})));return t.concat(o).map((function(e){return[e.id,e]})).reduce(n.bb,{})})],views:[],path:[p],includes:[m],resolvables:[v]}}return e.prototype.builder=function(e,t){var r=this.builders,n=r[e]||[];return(0,o.HD)(e)&&!(0,o.$K)(t)?n.length>1?n:n[0]:(0,o.HD)(e)&&(0,o.mf)(t)?(r[e]=n,r[e].push(t),function(){return r[e].splice(r[e].indexOf(t,1))&&null}):void 0},e.prototype.build=function(e){var t=this.matcher,r=this.builders,o=this.parentName(e);if(o&&!t.find(o,void 0,!1))return null;for(var i in r)if(r.hasOwnProperty(i)){var s=r[i].reduce((function(e,t){return function(r){return t(r,e)}}),n.ZT);e[i]=s(e)}return e},e.prototype.parentName=function(e){var t=e.name||"",r=t.split(".");if("**"===r.pop()&&r.pop(),r.length){if(e.parent)throw new Error("States that specify the 'parent:' property should not have a '.' in their name ("+t+")");return r.join(".")}return e.parent?(0,o.HD)(e.parent)?e.parent:e.parent.name:""},e.prototype.name=function(e){var t=e.name;if(-1!==t.indexOf(".")||!e.parent)return t;var r=(0,o.HD)(e.parent)?e.parent:e.parent.name;return r?r+"."+t:t},e}()},"./node_modules/@uirouter/core/lib-esm/state/stateMatcher.js":(e,t,r)=>{"use strict";r.d(t,{Q:()=>s});var n=r("./node_modules/@uirouter/core/lib-esm/common/predicates.js"),o=r("./node_modules/@uirouter/core/lib-esm/common/common.js"),i=r("./node_modules/@uirouter/core/lib-esm/common/safeConsole.js"),s=function(){function e(e){this._states=e}return e.prototype.isRelative=function(e){return 0===(e=e||"").indexOf(".")||0===e.indexOf("^")},e.prototype.find=function(e,t,r){if(void 0===r&&(r=!0),e||""===e){var s=(0,n.HD)(e),u=s?e:e.name;this.isRelative(u)&&(u=this.resolvePath(u,t));var a=this._states[u];if(a&&(s||!(s||a!==e&&a.self!==e)))return a;if(s&&r){var c=(0,o.VO)(this._states).filter((function(e){return e.__stateObjectCache.nameGlob&&e.__stateObjectCache.nameGlob.matches(u)}));return c.length>1&&i.L.error("stateMatcher.find: Found multiple matches for "+u+" using glob: ",c.map((function(e){return e.name}))),c[0]}}},e.prototype.resolvePath=function(e,t){if(!t)throw new Error("No reference point given for path '"+e+"'");for(var r=this.find(t),n=e.split("."),o=n.length,i=0,s=r;i<o;i++)if(""!==n[i]||0!==i){if("^"!==n[i])break;if(!s.parent)throw new Error("Path '"+e+"' not valid for state '"+r.name+"'");s=s.parent}else s=r;var u=n.slice(i).join(".");return s.name+(s.name&&u?".":"")+u},e}()},"./node_modules/@uirouter/core/lib-esm/state/stateObject.js":(e,t,r)=>{"use strict";r.d(t,{l:()=>u});var n=r("./node_modules/@uirouter/core/lib-esm/common/common.js"),o=r("./node_modules/@uirouter/core/lib-esm/common/hof.js"),i=r("./node_modules/@uirouter/core/lib-esm/common/glob.js"),s=r("./node_modules/@uirouter/core/lib-esm/common/predicates.js"),u=function(){function e(t){return e.create(t||{})}return e.create=function(t){t=e.isStateClass(t)?new t:t;var r=(0,n.ED)((0,n.ED)(t,e.prototype));return t.$$state=function(){return r},r.self=t,r.__stateObjectCache={nameGlob:i.r.fromString(r.name)},r},e.prototype.is=function(e){return this===e||this.self===e||this.fqn()===e},e.prototype.fqn=function(){if(!(this.parent&&this.parent instanceof this.constructor))return this.name;var e=this.parent.fqn();return e?e+"."+this.name:this.name},e.prototype.root=function(){return this.parent&&this.parent.root()||this},e.prototype.parameters=function(e){return((e=(0,n.ce)(e,{inherit:!0,matchingKeys:null})).inherit&&this.parent&&this.parent.parameters()||[]).concat((0,n.VO)(this.params)).filter((function(t){return!e.matchingKeys||e.matchingKeys.hasOwnProperty(t.id)}))},e.prototype.parameter=function(e,t){return void 0===t&&(t={}),this.url&&this.url.parameter(e,t)||(0,n.sE)((0,n.VO)(this.params),(0,o.OH)("id",e))||t.inherit&&this.parent&&this.parent.parameter(e)},e.prototype.toString=function(){return this.fqn()},e.isStateClass=function(e){return(0,s.mf)(e)&&!0===e.__uiRouterState},e.isStateDeclaration=function(e){return(0,s.mf)(e.$$state)},e.isState=function(e){return(0,s.Kn)(e.__stateObjectCache)},e}()},"./node_modules/@uirouter/core/lib-esm/state/stateQueueManager.js":(e,t,r)=>{"use strict";r.d(t,{L:()=>i});var n=r("./node_modules/@uirouter/core/lib-esm/common/index.js"),o=r("./node_modules/@uirouter/core/lib-esm/state/stateObject.js"),i=function(){function e(e,t,r,n){this.router=e,this.states=t,this.builder=r,this.listeners=n,this.queue=[]}return e.prototype.dispose=function(){this.queue=[]},e.prototype.register=function(e){var t=this.queue,r=o.l.create(e),i=r.name;if(!(0,n.HD)(i))throw new Error("State must have a valid name");if(this.states.hasOwnProperty(i)||(0,n.d3)(t.map((0,n.vg)("name")),i))throw new Error("State '"+i+"' is already defined");return t.push(r),this.flush(),r},e.prototype.flush=function(){for(var e=this,t=this,r=t.queue,n=t.states,o=t.builder,i=[],s=[],u={},a=function(t){return e.states.hasOwnProperty(t)&&e.states[t]},c=function(){i.length&&e.listeners.forEach((function(e){return e("registered",i.map((function(e){return e.self})))}))};r.length>0;){var l=r.shift(),h=l.name,f=o.build(l),d=s.indexOf(l);if(f){var p=a(h);if(p&&p.name===h)throw new Error("State '"+h+"' is already defined");var m=a(h+".**");m&&this.router.stateRegistry.deregister(m),n[h]=l,this.attachRoute(l),d>=0&&s.splice(d,1),i.push(l)}else{var v=u[h];if(u[h]=r.length,d>=0&&v===r.length)return r.push(l),c(),n;d<0&&s.push(l),r.push(l)}}return c(),n},e.prototype.attachRoute=function(e){if(!e.abstract&&e.url){var t=this.router.urlService.rules;t.rule(t.urlRuleFactory.create(e))}},e}()},"./node_modules/@uirouter/core/lib-esm/state/stateRegistry.js":(e,t,r)=>{"use strict";r.d(t,{q:()=>a});var n=r("./node_modules/@uirouter/core/lib-esm/state/stateMatcher.js"),o=r("./node_modules/@uirouter/core/lib-esm/state/stateBuilder.js"),i=r("./node_modules/@uirouter/core/lib-esm/state/stateQueueManager.js"),s=r("./node_modules/@uirouter/core/lib-esm/common/common.js"),u=r("./node_modules/@uirouter/core/lib-esm/common/hof.js"),a=function(){function e(e){this.router=e,this.states={},this.listeners=[],this.matcher=new n.Q(this.states),this.builder=new o.t(this.matcher,e.urlMatcherFactory),this.stateQueue=new i.L(e,this.states,this.builder,this.listeners),this._registerRoot()}return e.prototype._registerRoot=function(){(this._root=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0})).navigable=null},e.prototype.dispose=function(){var e=this;this.stateQueue.dispose(),this.listeners=[],this.get().forEach((function(t){return e.get(t)&&e.deregister(t)}))},e.prototype.onStatesChanged=function(e){return this.listeners.push(e),function(){(0,s.nA)(this.listeners)(e)}.bind(this)},e.prototype.root=function(){return this._root},e.prototype.register=function(e){return this.stateQueue.register(e)},e.prototype._deregisterTree=function(e){var t=this,r=this.get().map((function(e){return e.$$state()})),n=function(e){var t=r.filter((function(t){return-1!==e.indexOf(t.parent)}));return 0===t.length?t:t.concat(n(t))},o=n([e]),i=[e].concat(o).reverse();return i.forEach((function(e){var r=t.router.urlService.rules;r.rules().filter((0,u.OH)("state",e)).forEach((function(e){return r.removeRule(e)})),delete t.states[e.name]})),i},e.prototype.deregister=function(e){var t=this.get(e);if(!t)throw new Error("Can't deregister state; not found: "+e);var r=this._deregisterTree(t.$$state());return this.listeners.forEach((function(e){return e("deregistered",r.map((function(e){return e.self})))})),r},e.prototype.get=function(e,t){var r=this;if(0===arguments.length)return Object.keys(this.states).map((function(e){return r.states[e].self}));var n=this.matcher.find(e,t);return n&&n.self||null},e.prototype.decorator=function(e,t){return this.builder.builder(e,t)},e}()},"./node_modules/@uirouter/core/lib-esm/state/targetState.js":(e,t,r)=>{"use strict";r.d(t,{F:()=>s});var n=r("./node_modules/@uirouter/core/lib-esm/common/predicates.js"),o=r("./node_modules/@uirouter/core/lib-esm/common/strings.js"),i=r("./node_modules/@uirouter/core/lib-esm/common/index.js"),s=function(){function e(e,t,r,n){this._stateRegistry=e,this._identifier=t,this._identifier=t,this._params=(0,i.l7)({},r||{}),this._options=(0,i.l7)({},n||{}),this._definition=e.matcher.find(t,this._options.relative)}return e.prototype.name=function(){return this._definition&&this._definition.name||this._identifier},e.prototype.identifier=function(){return this._identifier},e.prototype.params=function(){return this._params},e.prototype.$state=function(){return this._definition},e.prototype.state=function(){return this._definition&&this._definition.self},e.prototype.options=function(){return this._options},e.prototype.exists=function(){return!(!this._definition||!this._definition.self)},e.prototype.valid=function(){return!this.error()},e.prototype.error=function(){var e=this.options().relative;if(!this._definition&&e){var t=e.name?e.name:e;return"Could not resolve '"+this.name()+"' from state '"+t+"'"}return this._definition?this._definition.self?void 0:"State '"+this.name()+"' has an invalid definition":"No such state '"+this.name()+"'"},e.prototype.toString=function(){return"'"+this.name()+"'"+(0,o.Pz)(this.params())},e.prototype.withState=function(t){return new e(this._stateRegistry,t,this._params,this._options)},e.prototype.withParams=function(t,r){void 0===r&&(r=!1);var n=r?t:(0,i.l7)({},this._params,t);return new e(this._stateRegistry,this._identifier,n,this._options)},e.prototype.withOptions=function(t,r){void 0===r&&(r=!1);var n=r?t:(0,i.l7)({},this._options,t);return new e(this._stateRegistry,this._identifier,this._params,n)},e.isDef=function(e){return e&&e.state&&((0,n.HD)(e.state)||(0,n.Kn)(e.state)&&(0,n.HD)(e.state.name))},e}()},"./node_modules/@uirouter/core/lib-esm/transition/hookBuilder.js":(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r("./node_modules/@uirouter/core/lib-esm/common/common.js"),o=r("./node_modules/@uirouter/core/lib-esm/common/predicates.js"),i=r("./node_modules/@uirouter/core/lib-esm/transition/interface.js"),s=r("./node_modules/@uirouter/core/lib-esm/transition/transitionHook.js"),u=function(){function e(e){this.transition=e}return e.prototype.buildHooksForPhase=function(e){var t=this;return this.transition.router.transitionService._pluginapi._getEvents(e).map((function(e){return t.buildHooks(e)})).reduce(n.M7,[]).filter(n.yR)},e.prototype.buildHooks=function(e){var t=this.transition,r=t.treeChanges(),o=this.getMatchingHooks(e,r,t);if(!o)return[];var u,a={transition:t,current:t.options().current};return o.map((function(o){return o.matches(r,t)[e.criteriaMatchPath.name].map((function(r){var u=(0,n.l7)({bind:o.bind,traceData:{hookType:e.name,context:r}},a),c=e.criteriaMatchPath.scope===i.c.STATE?r.state.self:null,l=new s.I(t,c,o,u);return{hook:o,node:r,transitionHook:l}}))})).reduce(n.M7,[]).sort((u=e.reverseSort,void 0===u&&(u=!1),function(e,t){var r=u?-1:1,n=(e.node.state.path.length-t.node.state.path.length)*r;return 0!==n?n:t.hook.priority-e.hook.priority})).map((function(e){return e.transitionHook}))},e.prototype.getMatchingHooks=function(e,t,r){var s=e.hookPhase===i.k.CREATE,u=this.transition.router.transitionService;return(s?[u]:[this.transition,u]).map((function(t){return t.getHooks(e.name)})).filter((0,n.sp)(o.kJ,"broken event named: "+e.name)).reduce(n.M7,[]).filter((function(e){return e.matches(t,r)}))},e}()},"./node_modules/@uirouter/core/lib-esm/transition/hookRegistry.js":(e,t,r)=>{"use strict";r.d(t,{cN:()=>i,BU:()=>u});var n=r("./node_modules/@uirouter/core/lib-esm/common/index.js"),o=r("./node_modules/@uirouter/core/lib-esm/transition/interface.js");function i(e,t,r){var o=(0,n.HD)(t)?[t]:t;return!!((0,n.mf)(o)?o:function(e){for(var t=o,r=0;r<t.length;r++){var i=new n.rR(t[r]);if(i&&i.matches(e.name)||!i&&t[r]===e.name)return!0}return!1})(e,r)}var s=function(){function e(e,t,r,n,o,i){void 0===i&&(i={}),this.tranSvc=e,this.eventType=t,this.callback=r,this.matchCriteria=n,this.removeHookFromRegistry=o,this.invokeCount=0,this._deregistered=!1,this.priority=i.priority||0,this.bind=i.bind||null,this.invokeLimit=i.invokeLimit}return e.prototype._matchingNodes=function(e,t,r){if(!0===t)return e;var n=e.filter((function(e){return i(e.state,t,r)}));return n.length?n:null},e.prototype._getDefaultMatchCriteria=function(){return(0,n.js)(this.tranSvc._pluginapi._getPathTypes(),(function(){return!0}))},e.prototype._getMatchingNodes=function(e,t){var r=this,i=(0,n.l7)(this._getDefaultMatchCriteria(),this.matchCriteria);return(0,n.VO)(this.tranSvc._pluginapi._getPathTypes()).reduce((function(s,u){var a=u.scope===o.c.STATE,c=e[u.name]||[],l=a?c:[(0,n.Gb)(c)];return s[u.name]=r._matchingNodes(l,i[u.name],t),s}),{})},e.prototype.matches=function(e,t){var r=this._getMatchingNodes(e,t);return(0,n.VO)(r).every(n.yR)?r:null},e.prototype.deregister=function(){this.removeHookFromRegistry(this),this._deregistered=!0},e}();function u(e,t,r){var o=(e._registeredHooks=e._registeredHooks||{})[r.name]=[],i=(0,n.nA)(o);function u(e,n,u){void 0===u&&(u={});var a=new s(t,r,n,e,i,u);return o.push(a),a.deregister.bind(a)}return e[r.name]=u,u}},"./node_modules/@uirouter/core/lib-esm/transition/interface.js":(e,t,r)=>{"use strict";var n,o;r.d(t,{k:()=>n,c:()=>o}),function(e){e[e.CREATE=0]="CREATE",e[e.BEFORE=1]="BEFORE",e[e.RUN=2]="RUN",e[e.SUCCESS=3]="SUCCESS",e[e.ERROR=4]="ERROR"}(n||(n={})),function(e){e[e.TRANSITION=0]="TRANSITION",e[e.STATE=1]="STATE"}(o||(o={}))},"./node_modules/@uirouter/core/lib-esm/transition/rejectFactory.js":(e,t,r)=>{"use strict";r.d(t,{K:()=>n,i:()=>a});var n,o=r("./node_modules/@uirouter/core/lib-esm/common/common.js"),i=r("./node_modules/@uirouter/core/lib-esm/common/strings.js"),s=r("./node_modules/@uirouter/core/lib-esm/common/hof.js");!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"}(n||(n={}));var u=0,a=function(){function e(e,t,r){this.$id=u++,this.type=e,this.message=t,this.detail=r}return e.isRejectionPromise=function(t){return t&&"function"==typeof t.then&&(0,s.is)(e)(t._transitionRejection)},e.superseded=function(t,r){var o=new e(n.SUPERSEDED,"The transition has been superseded by a different transition",t);return r&&r.redirected&&(o.redirected=!0),o},e.redirected=function(t){return e.superseded(t,{redirected:!0})},e.invalid=function(t){return new e(n.INVALID,"This transition is invalid",t)},e.ignored=function(t){return new e(n.IGNORED,"The transition was ignored",t)},e.aborted=function(t){return new e(n.ABORTED,"The transition has been aborted",t)},e.errored=function(t){return new e(n.ERROR,"The transition errored",t)},e.normalize=function(t){return(0,s.is)(e)(t)?t:e.errored(t)},e.prototype.toString=function(){var e,t=(e=this.detail)&&e.toString!==Object.prototype.toString?e.toString():(0,i.Pz)(e),r=this;return"Transition Rejection($id: "+r.$id+" type: "+r.type+", message: "+r.message+", detail: "+t+")"},e.prototype.toPromise=function(){return(0,o.l7)((0,o.jv)(this),{_transitionRejection:this})},e}()},"./node_modules/@uirouter/core/lib-esm/transition/transitionEventType.js":(e,t,r)=>{"use strict";r.d(t,{t:()=>o});var n=r("./node_modules/@uirouter/core/lib-esm/transition/transitionHook.js"),o=function(e,t,r,o,i,s,u,a){void 0===i&&(i=!1),void 0===s&&(s=n.I.HANDLE_RESULT),void 0===u&&(u=n.I.REJECT_ERROR),void 0===a&&(a=!1),this.name=e,this.hookPhase=t,this.hookOrder=r,this.criteriaMatchPath=o,this.reverseSort=i,this.getResultHandler=s,this.getErrorHandler=u,this.synchronous=a}},"./node_modules/@uirouter/core/lib-esm/transition/transitionHook.js":(e,t,r)=>{"use strict";r.d(t,{I:()=>d});var n=r("./node_modules/@uirouter/core/lib-esm/transition/interface.js"),o=r("./node_modules/@uirouter/core/lib-esm/common/common.js"),i=r("./node_modules/@uirouter/core/lib-esm/common/strings.js"),s=r("./node_modules/@uirouter/core/lib-esm/common/predicates.js"),u=r("./node_modules/@uirouter/core/lib-esm/common/hof.js"),a=r("./node_modules/@uirouter/core/lib-esm/common/trace.js"),c=r("./node_modules/@uirouter/core/lib-esm/common/coreservices.js"),l=r("./node_modules/@uirouter/core/lib-esm/transition/rejectFactory.js"),h=r("./node_modules/@uirouter/core/lib-esm/state/targetState.js"),f={current:o.ZT,transition:null,traceData:{},bind:null},d=function(){function e(e,t,r,i){var s=this;this.transition=e,this.stateContext=t,this.registeredHook=r,this.options=i,this.isSuperseded=function(){return s.type.hookPhase===n.k.RUN&&!s.options.transition.isActive()},this.options=(0,o.ce)(i,f),this.type=r.eventType}return e.chain=function(e,t){return e.reduce((function(e,t){return e.then((function(){return t.invokeHook()}))}),t||c.u.$q.when())},e.invokeHooks=function(t,r){for(var n=0;n<t.length;n++){var o=t[n].invokeHook();if((0,s.tI)(o)){var i=t.slice(n+1);return e.chain(i,o).then(r)}}return r()},e.runAllHooks=function(e){e.forEach((function(e){return e.invokeHook()}))},e.prototype.logError=function(e){this.transition.router.stateService.defaultErrorHandler()(e)},e.prototype.invokeHook=function(){var e=this,t=this.registeredHook;if(!t._deregistered){var r=this.getNotCurrentRejection();if(r)return r;var n=this.options;a.g4.traceHookInvocation(this,this.transition,n);var o=function(r){return t.eventType.getErrorHandler(e)(r)},i=function(r){return t.eventType.getResultHandler(e)(r)};try{var u=t.callback.call(n.bind,e.transition,e.stateContext);return!this.type.synchronous&&(0,s.tI)(u)?u.catch((function(e){return l.i.normalize(e).toPromise()})).then(i,o):i(u)}catch(e){return o(l.i.normalize(e))}finally{t.invokeLimit&&++t.invokeCount>=t.invokeLimit&&t.deregister()}}},e.prototype.handleHookResult=function(e){var t=this;return this.getNotCurrentRejection()||((0,s.tI)(e)?e.then((function(e){return t.handleHookResult(e)})):(a.g4.traceHookResult(e,this.transition,this.options),!1===e?l.i.aborted("Hook aborted transition").toPromise():(0,u.is)(h.F)(e)?l.i.redirected(e).toPromise():void 0))},e.prototype.getNotCurrentRejection=function(){var e=this.transition.router;return e._disposed?l.i.aborted("UIRouter instance #"+e.$id+" has been stopped (disposed)").toPromise():this.transition._aborted?l.i.aborted().toPromise():this.isSuperseded()?l.i.superseded(this.options.current()).toPromise():void 0},e.prototype.toString=function(){var e=this.options,t=this.registeredHook,r=(0,u.Qc)("traceData.hookType")(e)||"internal",n=(0,u.Qc)("traceData.context.state.name")(e)||(0,u.Qc)("traceData.context")(e)||"unknown",o=(0,i.iC)(t.callback);return r+" context: "+n+", "+(0,i.BS)(200,o)},e.HANDLE_RESULT=function(e){return function(t){return e.handleHookResult(t)}},e.LOG_REJECTED_RESULT=function(e){return function(t){(0,s.tI)(t)&&t.catch((function(t){return e.logError(l.i.normalize(t))}))}},e.LOG_ERROR=function(e){return function(t){return e.logError(t)}},e.REJECT_ERROR=function(e){return function(e){return(0,o.jv)(e)}},e.THROW_ERROR=function(e){return function(e){throw e}},e}()},"./node_modules/@uirouter/core/lib-esm/transition/transitionService.js":(e,t,r)=>{"use strict";r.d(t,{Z:()=>q,q:()=>F});var n=r("./node_modules/@uirouter/core/lib-esm/transition/interface.js"),o=r("./node_modules/@uirouter/core/lib-esm/transition/transition.js"),i=r("./node_modules/@uirouter/core/lib-esm/transition/hookRegistry.js"),s=r("./node_modules/@uirouter/core/lib-esm/router.js"),u=r("./node_modules/@uirouter/core/lib-esm/resolve/index.js"),a=r("./node_modules/@uirouter/core/lib-esm/common/index.js");function c(e){e.addResolvable(u.XU.fromData(s.a,e.router),""),e.addResolvable(u.XU.fromData(o.u,e),""),e.addResolvable(u.XU.fromData("$transition$",e),""),e.addResolvable(u.XU.fromData("$stateParams",e.params()),""),e.entering().forEach((function(t){e.addResolvable(u.XU.fromData("$state$",t),t)}))}var l=["$transition$",o.u],h=(0,a.d3)(l),f=function(e){var t=(0,a.VO)(e.treeChanges()).reduce(a.M7,[]).reduce(a.v_,[]),r=function(e){return h(e.token)?u.XU.fromData(e.token,null):e};t.forEach((function(e){e.resolvables=e.resolvables.map(r)}))},d=r("./node_modules/@uirouter/core/lib-esm/common/predicates.js"),p=r("./node_modules/@uirouter/core/lib-esm/common/coreservices.js"),m=r("./node_modules/@uirouter/core/lib-esm/state/targetState.js"),v=function(e){var t=e.to().redirectTo;if(t){var r=e.router.stateService;return(0,d.mf)(t)?p.u.$q.when(t(e)).then(n):n(t)}function n(t){if(t)return t instanceof m.F?t:(0,d.HD)(t)?r.target(t,e.params(),e.options()):t.state||t.params?r.target(t.state||e.to(),t.params||e.params(),e.options()):void 0}};function _(e){return function(t,r){return(0,r.$$state()[e])(t,r)}}var y=_("onExit"),g=_("onRetain"),b=_("onEnter"),w=r("./node_modules/@uirouter/core/lib-esm/common/common.js"),j=r("./node_modules/@uirouter/core/lib-esm/resolve/resolveContext.js"),E=r("./node_modules/@uirouter/core/lib-esm/common/hof.js"),R=1e3,S=function(e){return new j.l(e.treeChanges().to).resolvePath("EAGER",e).then(w.ZT)},C=function(e,t){return new j.l(e.treeChanges().to).subContext(t.$$state()).resolvePath("LAZY",e).then(w.ZT)},P=function(e){return new j.l(e.treeChanges().to).resolvePath("LAZY",e).then(w.ZT)},T=function(e){var t=p.u.$q,r=e.views("entering");if(r.length)return t.all(r.map((function(e){return t.when(e.load())}))).then(w.ZT)},k=function(e){var t=e.views("entering"),r=e.views("exiting");if(t.length||r.length){var n=e.router.viewService;r.forEach((function(e){return n.deactivateViewConfig(e)})),t.forEach((function(e){return n.activateViewConfig(e)})),n.sync()}},O=function(e){var t=e.router.globals,r=function(){t.transition===e&&(t.transition=null)};e.onSuccess({},(function(){t.successfulTransitions.enqueue(e),t.$current=e.$to(),t.current=t.$current.self,(0,w.JG)(e.params(),t.params)}),{priority:1e4}),e.promise.then(r,r)},$=function(e){var t=e.options(),r=e.router.stateService,n=e.router.urlRouter;if("url"!==t.source&&t.location&&r.$current.navigable){var o={replace:"replace"===t.location};n.push(r.$current.navigable.url,r.params,o)}n.update(!0)},H=r("./node_modules/@uirouter/core/lib-esm/hooks/lazyLoad.js"),x=r("./node_modules/@uirouter/core/lib-esm/transition/transitionEventType.js"),A=r("./node_modules/@uirouter/core/lib-esm/transition/transitionHook.js"),D=r("./node_modules/@uirouter/core/lib-esm/common/trace.js"),V=r("./node_modules/@uirouter/core/lib-esm/transition/rejectFactory.js");function I(e){var t=e._ignoredReason();if(t){D.g4.traceTransitionIgnored(e);var r=e.router.globals.transition;return"SameAsCurrent"===t&&r&&r.abort(),V.i.ignored().toPromise()}}function L(e){if(!e.valid())throw new Error(e.error().toString())}var F={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:function(){return null},source:"unknown"},q=function(){function e(e){this._transitionCount=0,this._eventTypes=[],this._registeredHooks={},this._criteriaPaths={},this._router=e,this.$view=e.viewService,this._deregisterHookFns={},this._pluginapi=(0,w.WR)((0,E.P0)(this),{},(0,E.P0)(this),["_definePathType","_defineEvent","_getPathTypes","_getEvents","getHooks"]),this._defineCorePaths(),this._defineCoreEvents(),this._registerCoreTransitionHooks(),e.globals.successfulTransitions.onEvict(f)}return e.prototype.onCreate=function(e,t,r){},e.prototype.onBefore=function(e,t,r){},e.prototype.onStart=function(e,t,r){},e.prototype.onExit=function(e,t,r){},e.prototype.onRetain=function(e,t,r){},e.prototype.onEnter=function(e,t,r){},e.prototype.onFinish=function(e,t,r){},e.prototype.onSuccess=function(e,t,r){},e.prototype.onError=function(e,t,r){},e.prototype.dispose=function(e){(0,w.VO)(this._registeredHooks).forEach((function(e){return e.forEach((function(t){t._deregistered=!0,(0,w.nA)(e,t)}))}))},e.prototype.create=function(e,t){return new o.u(e,t,this._router)},e.prototype._defineCoreEvents=function(){var e=n.k,t=A.I,r=this._criteriaPaths,o=!1,i=!0;this._defineEvent("onCreate",e.CREATE,0,r.to,o,t.LOG_REJECTED_RESULT,t.THROW_ERROR,i),this._defineEvent("onBefore",e.BEFORE,0,r.to),this._defineEvent("onStart",e.RUN,0,r.to),this._defineEvent("onExit",e.RUN,100,r.exiting,!0),this._defineEvent("onRetain",e.RUN,200,r.retained),this._defineEvent("onEnter",e.RUN,300,r.entering),this._defineEvent("onFinish",e.RUN,400,r.to),this._defineEvent("onSuccess",e.SUCCESS,0,r.to,o,t.LOG_REJECTED_RESULT,t.LOG_ERROR,i),this._defineEvent("onError",e.ERROR,0,r.to,o,t.LOG_REJECTED_RESULT,t.LOG_ERROR,i)},e.prototype._defineCorePaths=function(){var e=n.c.STATE,t=n.c.TRANSITION;this._definePathType("to",t),this._definePathType("from",t),this._definePathType("exiting",e),this._definePathType("retained",e),this._definePathType("entering",e)},e.prototype._defineEvent=function(e,t,r,n,o,s,u,a){void 0===o&&(o=!1),void 0===s&&(s=A.I.HANDLE_RESULT),void 0===u&&(u=A.I.REJECT_ERROR),void 0===a&&(a=!1);var c=new x.t(e,t,r,n,o,s,u,a);this._eventTypes.push(c),(0,i.BU)(this,this,c)},e.prototype._getEvents=function(e){return((0,d.$K)(e)?this._eventTypes.filter((function(t){return t.hookPhase===e})):this._eventTypes.slice()).sort((function(e,t){var r=e.hookPhase-t.hookPhase;return 0===r?e.hookOrder-t.hookOrder:r}))},e.prototype._definePathType=function(e,t){this._criteriaPaths[e]={name:e,scope:t}},e.prototype._getPathTypes=function(){return this._criteriaPaths},e.prototype.getHooks=function(e){return this._registeredHooks[e]},e.prototype._registerCoreTransitionHooks=function(){var e=this._deregisterHookFns;e.addCoreResolves=this.onCreate({},c),e.ignored=this.onBefore({},I,{priority:-9999}),e.invalid=function(e){return e.onBefore({},L,{priority:-1e4})}(this),e.redirectTo=function(e){return e.onStart({to:function(e){return!!e.redirectTo}},v)}(this),e.onExit=function(e){return e.onExit({exiting:function(e){return!!e.onExit}},y)}(this),e.onRetain=function(e){return e.onRetain({retained:function(e){return!!e.onRetain}},g)}(this),e.onEnter=function(e){return e.onEnter({entering:function(e){return!!e.onEnter}},b)}(this),e.eagerResolve=function(e){return e.onStart({},S,{priority:R})}(this),e.lazyResolve=function(e){return e.onEnter({entering:(0,E.P0)(!0)},C,{priority:R})}(this),e.resolveAll=function(e){return e.onFinish({},P,{priority:R})}(this),e.loadViews=function(e){return e.onFinish({},T)}(this),e.activateViews=function(e){return e.onSuccess({},k)}(this),e.updateGlobals=function(e){return e.onCreate({},O)}(this),e.updateUrl=function(e){return e.onSuccess({},$,{priority:9999})}(this),e.lazyLoad=(0,H.v)(this)},e}()},"./node_modules/@uirouter/core/lib-esm/url/interface.js":()=>{},"./node_modules/@uirouter/core/lib-esm/url/urlConfig.js":(e,t,r)=>{"use strict";r.d(t,{F:()=>i});var n=r("./node_modules/@uirouter/core/lib-esm/params/index.js"),o=r("./node_modules/@uirouter/core/lib-esm/common/index.js"),i=function(){function e(e){var t=this;this.router=e,this.paramTypes=new n.ParamTypes,this._decodeParams=!0,this._isCaseInsensitive=!1,this._isStrictMode=!0,this._defaultSquashPolicy=!1,this.dispose=function(){return t.paramTypes.dispose()},this.baseHref=function(){return t.router.locationConfig.baseHref()},this.hashPrefix=function(e){return t.router.locationConfig.hashPrefix(e)},this.host=function(){return t.router.locationConfig.host()},this.html5Mode=function(){return t.router.locationConfig.html5Mode()},this.port=function(){return t.router.locationConfig.port()},this.protocol=function(){return t.router.locationConfig.protocol()}}return e.prototype.caseInsensitive=function(e){return this._isCaseInsensitive=(0,o.$K)(e)?e:this._isCaseInsensitive},e.prototype.defaultSquashPolicy=function(e){if((0,o.$K)(e)&&!0!==e&&!1!==e&&!(0,o.HD)(e))throw new Error("Invalid squash policy: "+e+". Valid policies: false, true, arbitrary-string");return this._defaultSquashPolicy=(0,o.$K)(e)?e:this._defaultSquashPolicy},e.prototype.strictMode=function(e){return this._isStrictMode=(0,o.$K)(e)?e:this._isStrictMode},e.prototype.type=function(e,t,r){var n=this.paramTypes.type(e,t,r);return(0,o.$K)(t)?this:n},e}()},"./node_modules/@uirouter/core/lib-esm/url/urlMatcherFactory.js":(e,t,r)=>{"use strict";r.d(t,{y:()=>a});var n=r("./node_modules/@uirouter/core/lib-esm/common/index.js"),o=r("./node_modules/@uirouter/core/lib-esm/url/urlMatcher.js"),i=r("./node_modules/@uirouter/core/lib-esm/params/index.js"),s=function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},u=function(){function e(e){this.router=e}return e.prototype.fromConfig=function(e,t,r){return new i.Param(e,t,i.DefType.CONFIG,this.router.urlService.config,r)},e.prototype.fromPath=function(e,t,r){return new i.Param(e,t,i.DefType.PATH,this.router.urlService.config,r)},e.prototype.fromSearch=function(e,t,r){return new i.Param(e,t,i.DefType.SEARCH,this.router.urlService.config,r)},e}(),a=function(){function e(e){var t=this;this.router=e,this.paramFactory=new u(this.router),this.UrlMatcher=o.x,this.Param=i.Param,this.caseInsensitive=function(e){return t.router.urlService.config.caseInsensitive(e)},this.defaultSquashPolicy=function(e){return t.router.urlService.config.defaultSquashPolicy(e)},this.strictMode=function(e){return t.router.urlService.config.strictMode(e)},this.type=function(e,r,n){return t.router.urlService.config.type(e,r,n)||t}}return e.prototype.compile=function(e,t){var r=this.router.urlService.config,i=t&&!t.state&&t.params;t=i?s({state:{params:i}},t):t;var u={strict:r._isStrictMode,caseInsensitive:r._isCaseInsensitive,decodeParams:r._decodeParams};return new o.x(e,r.paramTypes,this.paramFactory,(0,n.l7)(u,t))},e.prototype.isMatcher=function(e){if(!(0,n.Kn)(e))return!1;var t=!0;return(0,n.Ed)(o.x.prototype,(function(r,o){(0,n.mf)(r)&&(t=t&&(0,n.$K)(e[o])&&(0,n.mf)(e[o]))})),t},e.prototype.$get=function(){var e=this.router.urlService.config;return e.paramTypes.enqueue=!1,e.paramTypes._flushTypeQueue(),this},e}()},"./node_modules/@uirouter/core/lib-esm/url/urlRouter.js":(e,t,r)=>{"use strict";r.d(t,{g:()=>i});var n=r("./node_modules/@uirouter/core/lib-esm/common/index.js"),o=r("./node_modules/@uirouter/core/lib-esm/url/urlRule.js"),i=function(){function e(e){var t=this;this.router=e,this.sync=function(e){return t.router.urlService.sync(e)},this.listen=function(e){return t.router.urlService.listen(e)},this.deferIntercept=function(e){return t.router.urlService.deferIntercept(e)},this.match=function(e){return t.router.urlService.match(e)},this.initial=function(e){return t.router.urlService.rules.initial(e)},this.otherwise=function(e){return t.router.urlService.rules.otherwise(e)},this.removeRule=function(e){return t.router.urlService.rules.removeRule(e)},this.rule=function(e){return t.router.urlService.rules.rule(e)},this.rules=function(){return t.router.urlService.rules.rules()},this.sort=function(e){return t.router.urlService.rules.sort(e)},this.when=function(e,r,n){return t.router.urlService.rules.when(e,r,n)},this.urlRuleFactory=new o.I(e)}return e.prototype.update=function(e){var t=this.router.locationService;e?this.location=t.url():t.url()!==this.location&&t.url(this.location,!0)},e.prototype.push=function(e,t,r){var n=r&&!!r.replace;this.router.urlService.url(e.format(t||{}),n)},e.prototype.href=function(e,t,r){var o=e.format(t);if(null==o)return null;r=r||{absolute:!1};var i=this.router.urlService.config,s=i.html5Mode();if(s||null===o||(o="#"+i.hashPrefix()+o),o=function(e,t,r,o){return"/"===o?e:t?(0,n.Lb)(o)+e:r?o.slice(1)+e:e}(o,s,r.absolute,i.baseHref()),!r.absolute||!o)return o;var u=!s&&o?"/":"",a=i.port(),c=80===a||443===a?"":":"+a;return[i.protocol(),"://",i.host(),c,u,o].join("")},Object.defineProperty(e.prototype,"interceptDeferred",{get:function(){return this.router.urlService.interceptDeferred},enumerable:!1,configurable:!0}),e}()},"./node_modules/@uirouter/core/lib-esm/url/urlRule.js":(e,t,r)=>{"use strict";r.d(t,{I:()=>a,n:()=>c});var n=r("./node_modules/@uirouter/core/lib-esm/url/urlMatcher.js"),o=r("./node_modules/@uirouter/core/lib-esm/common/predicates.js"),i=r("./node_modules/@uirouter/core/lib-esm/common/common.js"),s=r("./node_modules/@uirouter/core/lib-esm/common/hof.js"),u=r("./node_modules/@uirouter/core/lib-esm/state/stateObject.js"),a=function(){function e(e){this.router=e}return e.prototype.compile=function(e){return this.router.urlMatcherFactory.compile(e)},e.prototype.create=function(e,t){var r=this,i=u.l.isState,a=u.l.isStateDeclaration,l=(0,s.uj)([[o.HD,function(e){return l(r.compile(e))}],[(0,s.is)(n.x),function(e){return r.fromUrlMatcher(e,t)}],[(0,s.or)(i,a),function(e){return r.fromState(e,r.router)}],[(0,s.is)(RegExp),function(e){return r.fromRegExp(e,t)}],[o.mf,function(e){return new c(e,t)}]]),h=l(e);if(!h)throw new Error("invalid 'what' in when()");return h},e.prototype.fromUrlMatcher=function(e,t){var r=t;(0,o.HD)(t)&&(t=this.router.urlMatcherFactory.compile(t)),(0,s.is)(n.x)(t)&&(r=function(e){return t.format(e)});var u={urlMatcher:e,matchPriority:function(t){var r=e.parameters().filter((function(e){return e.isOptional}));return r.length?r.filter((function(e){return t[e.id]})).length/r.length:1e-6},type:"URLMATCHER"};return(0,i.l7)(new c((function(t){var r=e.exec(t.path,t.search,t.hash);return e.validates(r)&&r}),r),u)},e.prototype.fromState=function(e,t){var r=u.l.isStateDeclaration(e)?e.$$state():e,n={state:r,type:"STATE"};return(0,i.l7)(this.fromUrlMatcher(r.url,(function(e){var n=t.stateService,o=t.globals;n.href(r,e)!==n.href(o.current,o.params)&&n.transitionTo(r,e,{inherit:!0,source:"url"})})),n)},e.prototype.fromRegExp=function(e,t){if(e.global||e.sticky)throw new Error("Rule RegExp must not be global or sticky");var r=(0,o.HD)(t)?function(e){return t.replace(/\$(\$|\d{1,2})/,(function(t,r){return e["$"===r?0:Number(r)]}))}:t,n={regexp:e,type:"REGEXP"};return(0,i.l7)(new c((function(t){return e.exec(t.path)}),r),n)},e.isUrlRule=function(e){return e&&["type","match","handler"].every((function(t){return(0,o.$K)(e[t])}))},e}(),c=function(e,t){var r=this;this.match=e,this.type="RAW",this.matchPriority=function(e){return 0-r.$id},this.handler=t||i.yR}},"./node_modules/@uirouter/core/lib-esm/url/urlRules.js":(e,t,r)=>{"use strict";r.d(t,{h:()=>c});var n,o=r("./node_modules/@uirouter/core/lib-esm/state/index.js"),i=r("./node_modules/@uirouter/core/lib-esm/url/urlMatcher.js"),s=r("./node_modules/@uirouter/core/lib-esm/common/index.js"),u=r("./node_modules/@uirouter/core/lib-esm/url/urlRule.js");function a(e){if(!((0,s.mf)(e)||(0,s.HD)(e)||(0,s.is)(o.TargetState)(e)||o.TargetState.isDef(e)))throw new Error("'handler' must be a string, function, TargetState, or have a state: 'newtarget' property");return(0,s.mf)(e)?e:(0,s.P0)(e)}n=function(e,t){var r=function(e,t){return(t.priority||0)-(e.priority||0)}(e,t);return 0!==r||0!==(r=function(e,t){var r={STATE:4,URLMATCHER:4,REGEXP:3,RAW:2,OTHER:1};return(r[e.type]||0)-(r[t.type]||0)}(e,t))||0!==(r=function(e,t){return e.urlMatcher&&t.urlMatcher?i.x.compare(e.urlMatcher,t.urlMatcher):0}(e,t))?r:function(e,t){var r={STATE:!0,URLMATCHER:!0};return r[e.type]&&r[t.type]?0:(e.$id||0)-(t.$id||0)}(e,t)};var c=function(){function e(e){this.router=e,this._sortFn=n,this._rules=[],this._id=0,this.urlRuleFactory=new u.I(e)}return e.prototype.dispose=function(e){this._rules=[],delete this._otherwiseFn},e.prototype.initial=function(e){var t=a(e);this.rule(this.urlRuleFactory.create((function(e,t){return 0===t.globals.transitionHistory.size()&&!!/^\/?$/.exec(e.path)}),t))},e.prototype.otherwise=function(e){var t=a(e);this._otherwiseFn=this.urlRuleFactory.create((0,s.P0)(!0),t),this._sorted=!1},e.prototype.removeRule=function(e){(0,s.nA)(this._rules,e)},e.prototype.rule=function(e){var t=this;if(!u.I.isUrlRule(e))throw new Error("invalid rule");return e.$id=this._id++,e.priority=e.priority||0,this._rules.push(e),this._sorted=!1,function(){return t.removeRule(e)}},e.prototype.rules=function(){return this.ensureSorted(),this._rules.concat(this._otherwiseFn?[this._otherwiseFn]:[])},e.prototype.sort=function(e){for(var t=this.stableSort(this._rules,this._sortFn=e||this._sortFn),r=0,n=0;n<t.length;n++)t[n]._group=r,n<t.length-1&&0!==this._sortFn(t[n],t[n+1])&&r++;this._rules=t,this._sorted=!0},e.prototype.ensureSorted=function(){this._sorted||this.sort()},e.prototype.stableSort=function(e,t){var r=e.map((function(e,t){return{elem:e,idx:t}}));return r.sort((function(e,r){var n=t(e.elem,r.elem);return 0===n?e.idx-r.idx:n})),r.map((function(e){return e.elem}))},e.prototype.when=function(e,t,r){var n=this.urlRuleFactory.create(e,t);return(0,s.$K)(r&&r.priority)&&(n.priority=r.priority),this.rule(n),n},e}()},"./node_modules/@uirouter/core/lib-esm/url/urlService.js":(e,t,r)=>{"use strict";r.d(t,{i:()=>u});var n=r("./node_modules/@uirouter/core/lib-esm/common/index.js"),o=r("./node_modules/@uirouter/core/lib-esm/url/urlRules.js"),i=r("./node_modules/@uirouter/core/lib-esm/url/urlConfig.js"),s=r("./node_modules/@uirouter/core/lib-esm/state/index.js"),u=function(){function e(e){var t=this;this.router=e,this.interceptDeferred=!1,this.rules=new o.h(this.router),this.config=new i.F(this.router),this.url=function(e,r,n){return t.router.locationService.url(e,r,n)},this.path=function(){return t.router.locationService.path()},this.search=function(){return t.router.locationService.search()},this.hash=function(){return t.router.locationService.hash()},this.onChange=function(e){return t.router.locationService.onChange(e)}}return e.prototype.dispose=function(){this.listen(!1),this.rules.dispose()},e.prototype.parts=function(){return{path:this.path(),search:this.search(),hash:this.hash()}},e.prototype.sync=function(e){if(!e||!e.defaultPrevented){var t=this.router,r=t.urlService,o=t.stateService,i={path:r.path(),search:r.search(),hash:r.hash()},u=this.match(i);(0,n.uj)([[n.HD,function(e){return r.url(e,!0)}],[s.TargetState.isDef,function(e){return o.go(e.state,e.params,e.options)}],[(0,n.is)(s.TargetState),function(e){return o.go(e.state(),e.params(),e.options())}]])(u&&u.rule.handler(u.match,i,this.router))}},e.prototype.listen=function(e){var t=this;if(!1!==e)return this._stopListeningFn=this._stopListeningFn||this.router.urlService.onChange((function(e){return t.sync(e)}));this._stopListeningFn&&this._stopListeningFn(),delete this._stopListeningFn},e.prototype.deferIntercept=function(e){void 0===e&&(e=!0),this.interceptDeferred=e},e.prototype.match=function(e){e=(0,n.l7)({path:"",search:{},hash:""},e);for(var t,r,o,i=this.rules.rules(),s=0;s<i.length&&(!t||t.rule._group===i[s]._group);s++){var u=(void 0,(o=(r=i[s]).match(e,this.router))&&{match:o,rule:r,weight:r.matchPriority(o)});t=!t||u&&u.weight>t.weight?u:t}return t},e}()},"./node_modules/@uirouter/core/lib-esm/vanilla.js":(e,t,r)=>{"use strict";r("./node_modules/@uirouter/core/lib-esm/vanilla/index.js")},"./node_modules/@uirouter/core/lib-esm/vanilla/baseLocationService.js":(e,t,r)=>{"use strict";r.d(t,{U:()=>i});var n=r("./node_modules/@uirouter/core/lib-esm/common/index.js"),o=r("./node_modules/@uirouter/core/lib-esm/vanilla/utils.js"),i=function(){function e(e,t){var r=this;this.fireAfterUpdate=t,this._listeners=[],this._listener=function(e){return r._listeners.forEach((function(t){return t(e)}))},this.hash=function(){return(0,o.en)(r._get()).hash},this.path=function(){return(0,o.en)(r._get()).path},this.search=function(){return(0,o.Qf)((0,o.en)(r._get()).search)},this._location=n.Jz.location,this._history=n.Jz.history}return e.prototype.url=function(e,t){return void 0===t&&(t=!0),(0,n.$K)(e)&&e!==this._get()&&(this._set(null,null,e,t),this.fireAfterUpdate&&this._listeners.forEach((function(t){return t({url:e})}))),(0,o.Q2)(this)},e.prototype.onChange=function(e){var t=this;return this._listeners.push(e),function(){return(0,n.nA)(t._listeners,e)}},e.prototype.dispose=function(e){(0,n.Wk)(this._listeners)},e}()},"./node_modules/@uirouter/core/lib-esm/vanilla/browserLocationConfig.js":(e,t,r)=>{"use strict";r.d(t,{u:()=>o});var n=r("./node_modules/@uirouter/core/lib-esm/common/predicates.js"),o=function(){function e(e,t){void 0===t&&(t=!1),this._isHtml5=t,this._baseHref=void 0,this._hashPrefix=""}return e.prototype.port=function(){return location.port?Number(location.port):"https"===this.protocol()?443:80},e.prototype.protocol=function(){return location.protocol.replace(/:/g,"")},e.prototype.host=function(){return location.hostname},e.prototype.html5Mode=function(){return this._isHtml5},e.prototype.hashPrefix=function(e){return(0,n.$K)(e)?this._hashPrefix=e:this._hashPrefix},e.prototype.baseHref=function(e){return(0,n.$K)(e)&&(this._baseHref=e),(0,n.o8)(this._baseHref)&&(this._baseHref=this.getBaseHref()),this._baseHref},e.prototype.getBaseHref=function(){var e=document.getElementsByTagName("base")[0];return e&&e.href?e.href.replace(/^([^/:]*:)?\/\/[^/]*/,""):this._isHtml5?"/":location.pathname||"/"},e.prototype.dispose=function(){},e}()},"./node_modules/@uirouter/core/lib-esm/vanilla/hashLocationService.js":(e,t,r)=>{"use strict";r.d(t,{R:()=>u});var n,o=r("./node_modules/@uirouter/core/lib-esm/common/index.js"),i=r("./node_modules/@uirouter/core/lib-esm/vanilla/baseLocationService.js"),s=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t,!1)||this;return o.Jz.addEventListener("hashchange",r._listener,!1),r}return s(t,e),t.prototype._get=function(){return(0,o.Ld)(this._location.hash)},t.prototype._set=function(e,t,r,n){this._location.hash=r},t.prototype.dispose=function(t){e.prototype.dispose.call(this,t),o.Jz.removeEventListener("hashchange",this._listener)},t}(i.U)},"./node_modules/@uirouter/core/lib-esm/vanilla/injector.js":(e,t,r)=>{"use strict";r("./node_modules/@uirouter/core/lib-esm/common/index.js")},"./node_modules/@uirouter/core/lib-esm/vanilla/memoryLocationConfig.js":(e,t,r)=>{"use strict";r.d(t,{W:()=>i});var n=r("./node_modules/@uirouter/core/lib-esm/common/predicates.js"),o=r("./node_modules/@uirouter/core/lib-esm/common/common.js"),i=function(){var e=this;this.dispose=o.ZT,this._baseHref="",this._port=80,this._protocol="http",this._host="localhost",this._hashPrefix="",this.port=function(){return e._port},this.protocol=function(){return e._protocol},this.host=function(){return e._host},this.baseHref=function(){return e._baseHref},this.html5Mode=function(){return!1},this.hashPrefix=function(t){return(0,n.$K)(t)?e._hashPrefix=t:e._hashPrefix}}},"./node_modules/@uirouter/core/lib-esm/vanilla/memoryLocationService.js":(e,t,r)=>{"use strict";r.d(t,{I:()=>s});var n,o=r("./node_modules/@uirouter/core/lib-esm/vanilla/baseLocationService.js"),i=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(t){return e.call(this,t,!0)||this}return i(t,e),t.prototype._get=function(){return this._url},t.prototype._set=function(e,t,r,n){this._url=r},t}(o.U)},"./node_modules/@uirouter/core/lib-esm/vanilla/plugins.js":(e,t,r)=>{"use strict";var n=r("./node_modules/@uirouter/core/lib-esm/vanilla/browserLocationConfig.js"),o=r("./node_modules/@uirouter/core/lib-esm/vanilla/hashLocationService.js"),i=r("./node_modules/@uirouter/core/lib-esm/vanilla/utils.js"),s=r("./node_modules/@uirouter/core/lib-esm/vanilla/pushStateLocationService.js"),u=r("./node_modules/@uirouter/core/lib-esm/vanilla/memoryLocationService.js"),a=r("./node_modules/@uirouter/core/lib-esm/vanilla/memoryLocationConfig.js");r("./node_modules/@uirouter/core/lib-esm/vanilla/injector.js"),r("./node_modules/@uirouter/core/lib-esm/vanilla/q.js"),r("./node_modules/@uirouter/core/lib-esm/common/coreservices.js"),(0,i._D)("vanilla.hashBangLocation",!1,o.R,n.u),(0,i._D)("vanilla.pushStateLocation",!0,s.h,n.u),(0,i._D)("vanilla.memoryLocation",!1,u.I,a.W)},"./node_modules/@uirouter/core/lib-esm/vanilla/pushStateLocationService.js":(e,t,r)=>{"use strict";r.d(t,{h:()=>u});var n,o=r("./node_modules/@uirouter/core/lib-esm/vanilla/baseLocationService.js"),i=r("./node_modules/@uirouter/core/lib-esm/common/index.js"),s=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t,!0)||this;return r._config=t.urlService.config,i.Jz.addEventListener("popstate",r._listener,!1),r}return s(t,e),t.prototype._getBasePrefix=function(){return(0,i.Lb)(this._config.baseHref())},t.prototype._get=function(){var e=this._location,t=e.pathname,r=e.hash,n=e.search;n=(0,i.C7)(n)[1],r=(0,i.cW)(r)[1];var o=this._getBasePrefix(),s=t===this._config.baseHref(),u=t.substr(0,o.length)===o;return(t=s?"/":u?t.substring(o.length):t)+(n?"?"+n:"")+(r?"#"+r:"")},t.prototype._set=function(e,t,r,n){var o=this._getBasePrefix(),i=r&&"/"!==r[0]?"/":"",s=""===r||"/"===r?this._config.baseHref():o+i+r;n?this._history.replaceState(e,t,s):this._history.pushState(e,t,s)},t.prototype.dispose=function(t){e.prototype.dispose.call(this,t),i.Jz.removeEventListener("popstate",this._listener)},t}(o.U)},"./node_modules/@uirouter/core/lib-esm/vanilla/q.js":(e,t,r)=>{"use strict";r("./node_modules/@uirouter/core/lib-esm/common/index.js")},"./node_modules/@uirouter/core/lib-esm/vanilla/utils.js":(e,t,r)=>{"use strict";r.d(t,{Qf:()=>i,en:()=>s,Q2:()=>u,_D:()=>a});var n=r("./node_modules/@uirouter/core/lib-esm/common/index.js"),o=function(e,t){var r=t[0],o=t[1];return e.hasOwnProperty(r)?(0,n.kJ)(e[r])?e[r].push(o):e[r]=[e[r],o]:e[r]=o,e},i=function(e){return e.split("&").filter(n.yR).map(n.Fb).reduce(o,{})};function s(e){var t=function(e){return e||""},r=(0,n.cW)(e).map(t),o=r[0],i=r[1],s=(0,n.C7)(o).map(t);return{path:s[0],search:s[1],hash:i,url:e}}var u=function(e){var t=e.path(),r=e.search(),o=e.hash(),i=Object.keys(r).map((function(e){var t=r[e];return((0,n.kJ)(t)?t:[t]).map((function(t){return e+"="+t}))})).reduce(n.M7,[]).join("&");return t+(i?"?"+i:"")+(o?"#"+o:"")};function a(e,t,r,n){return function(o){var i=o.locationService=new r(o),s=o.locationConfig=new n(o,t);return{name:e,service:i,configuration:s,dispose:function(e){e.dispose(i),e.dispose(s)}}}}},"./node_modules/@uirouter/core/lib-esm/view/interface.js":()=>{},"./node_modules/@uirouter/core/lib-esm/view/view.js":(e,t,r)=>{"use strict";r.d(t,{s:()=>u});var n=r("./node_modules/@uirouter/core/lib-esm/common/common.js"),o=r("./node_modules/@uirouter/core/lib-esm/common/hof.js"),i=r("./node_modules/@uirouter/core/lib-esm/common/predicates.js"),s=r("./node_modules/@uirouter/core/lib-esm/common/trace.js"),u=function(){function e(e){var t=this;this.router=e,this._uiViews=[],this._viewConfigs=[],this._viewConfigFactories={},this._listeners=[],this._pluginapi={_rootViewContext:this._rootViewContext.bind(this),_viewConfigFactory:this._viewConfigFactory.bind(this),_registeredUIView:function(e){return(0,n.sE)(t._uiViews,(function(r){return t.router.$id+"."+r.id===e}))},_registeredUIViews:function(){return t._uiViews},_activeViewConfigs:function(){return t._viewConfigs},_onSync:function(e){return t._listeners.push(e),function(){return(0,n.nA)(t._listeners,e)}}}}return e.normalizeUIViewTarget=function(e,t){void 0===t&&(t="");var r=t.split("@"),n=r[0]||"$default",o=(0,i.HD)(r[1])?r[1]:"^",s=/^(\^(?:\.\^)*)\.(.*$)/.exec(n);if(s&&(o=s[1],n=s[2]),"!"===n.charAt(0)&&(n=n.substr(1),o=""),/^(\^(?:\.\^)*)$/.exec(o)){var u=o.split(".").reduce((function(e,t){return e.parent}),e);o=u.name}else"."===o&&(o=e.name);return{uiViewName:n,uiViewContextAnchor:o}},e.prototype._rootViewContext=function(e){return this._rootContext=e||this._rootContext},e.prototype._viewConfigFactory=function(e,t){this._viewConfigFactories[e]=t},e.prototype.createViewConfig=function(e,t){var r=this._viewConfigFactories[t.$type];if(!r)throw new Error("ViewService: No view config factory registered for type "+t.$type);var n=r(e,t);return(0,i.kJ)(n)?n:[n]},e.prototype.deactivateViewConfig=function(e){s.g4.traceViewServiceEvent("<- Removing",e),(0,n.nA)(this._viewConfigs,e)},e.prototype.activateViewConfig=function(e){s.g4.traceViewServiceEvent("-> Registering",e),this._viewConfigs.push(e)},e.prototype.sync=function(){var t=this,r=this._uiViews.map((function(e){return[e.fqn,e]})).reduce(n.bb,{});function i(e){for(var t=e.viewDecl.$context,r=0;++r&&t.parent;)t=t.parent;return r}var u=(0,o.WA)((function(e,t,r,n){return t*(e(r)-e(n))})),a=this._uiViews.sort(u((function(e){var t=function(e){return e&&e.parent?t(e.parent)+1:1};return 1e4*e.fqn.split(".").length+t(e.creationContext)}),1)).map((function(n){var o=t._viewConfigs.filter(e.matches(r,n));return o.length>1&&o.sort(u(i,-1)),{uiView:n,viewConfig:o[0]}})),c=a.map((function(e){return e.viewConfig})),l=this._viewConfigs.filter((function(e){return!(0,n.d3)(c,e)})).map((function(e){return{uiView:void 0,viewConfig:e}}));a.forEach((function(e){-1!==t._uiViews.indexOf(e.uiView)&&e.uiView.configUpdated(e.viewConfig)}));var h=a.concat(l);this._listeners.forEach((function(e){return e(h)})),s.g4.traceViewSync(h)},e.prototype.registerUIView=function(e){s.g4.traceViewServiceUIViewEvent("-> Registering",e);var t=this._uiViews;return t.filter((function(t){return t.fqn===e.fqn&&t.$type===e.$type})).length&&s.g4.traceViewServiceUIViewEvent("!!!! duplicate uiView named:",e),t.push(e),this.sync(),function(){-1!==t.indexOf(e)?(s.g4.traceViewServiceUIViewEvent("<- Deregistering",e),(0,n.nA)(t)(e)):s.g4.traceViewServiceUIViewEvent("Tried removing non-registered uiView",e)}},e.prototype.available=function(){return this._uiViews.map((0,o.vg)("fqn"))},e.prototype.active=function(){return this._uiViews.filter((0,o.vg)("$config")).map((0,o.vg)("name"))},e.matches=function(e,t){return function(r){if(t.$type!==r.viewDecl.$type)return!1;var o=r.viewDecl,i=o.$uiViewName.split("."),s=t.fqn.split(".");if(!(0,n.fS)(i,s.slice(0-i.length)))return!1;var u=1-i.length||void 0,a=s.slice(0,u).join("."),c=e[a].creationContext;return o.$uiViewContextAnchor===(c&&c.name)}},e}()}}]);
2 //# sourceMappingURL=chat-ab94cf03.js.map