!function(t,e){"object"==typeofexports&&"object"==typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define("angular-ui-router",[],e):"object"==typeofexports?exports["angular-ui-router"]=e():t["angular-ui-router"]=e()}(this,function(){returnfunction(t){functione(r){if(n[r])returnn[r].exports;vari=n[r]={exports:{},id:r,loaded:!1};returnt[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}varn={};returne.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";functionr(t){for(varnint)e.hasOwnProperty(n)||(e[n]=t[n])}r(n(1)),r(n(53)),r(n(54)),n(56),n(57),n(58),n(59),Object.defineProperty(e,"__esModule",{value:!0}),e["default"]="ui.router"},function(t,e,n){"use strict";functionr(t){for(varnint)e.hasOwnProperty(n)||(e[n]=t[n])}r(n(2)),r(n(20)),r(n(44)),r(n(40)),r(n(17)),r(n(13)),r(n(45)),r(n(49)),r(n(51));vari=n(52);e.UIRouter=i.UIRouter},function(t,e,n){"use strict";functionr(t){for(varnint)e.hasOwnProperty(n)||(e[n]=t[n])}r(n(3)),r(n(6)),r(n(7)),r(n(5)),r(n(4)),r(n(8)),r(n(9)),r(n(12))},function(t,e,n){"use strict";functionr(t,e,n,r){returnvoid0===r&&(r=Object.keys(t)),r.filter(function(e){return"function"==typeoft[e]}).forEach(function(r){returne[r]=t[r].bind(n)})}functioni(t){void0===t&&(t={});for(varn=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];vari=o.apply(null,[{}].concat(n));returne.extend({},i,c(t||{},Object.keys(i)))}functiono(t){for(varn=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];returne.forEach(n,function(n){e.forEach(n,function(e,n){t.hasOwnProperty(n)||(t[n]=e)})}),t}functiona(t,e){varn=[];for(varrint.path){if(t.path[r]!==e.path[r])break;n.push(t.path[r])}returnn}functions(t,e,n){void0===n&&(n=Object.keys(t));for(varr=0;r<n.length;r++){vari=n[r];if(t[i]!=e[i])return!1}return!0}functionu(t,e){varn={},r=P(arguments,2);for(variine)t(r,i)&&(n[i]=e[i]);returnn}functionc(t){returnu.apply(null,[_].concat(P(arguments)))}functionl(t){returnu.apply(null,[C.not(_)].concat(P(arguments)))}functionf(t,e){returnv(t,C.prop(e))}functionp(t,n){varr=k.isArray(t),i=r?[]:{},o=r?function(t){returni.push(t)}:function(t,e){returni[e]=t};returne.forEach(t,function(t,e){n(t,e)&&o(t,e)}),i}functionh(t,n){varr;returne.forEach(t,function(t,e){r||n(t,e)&&(r=t)}),r}functionv(t,n){varr=k.isArray(t)?[]:{};returne.forEach(t,function(t,e){returnr[e]=n(t,e)}),r}functiond(t,e){returnt.push(e),t}functionm(t,e){returnvoid0===e&&(e="assert failure"),function(n){if(!t(n))thrownewError(k.isFunction(e)?e(n):e);return!0}}functiong(){for(vart=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];if(0===t.length)return[];varn=t.reduce(function(t,e){returnMath.min(e.length,t)},9007199254740991);returnArray.apply(null,Array(n)).map(function(e,n){returnt.map(function(t){returnt[n]})})}functiony(t,e){varn,r;if(k.isArray(e)&&(n=e[0],r=e[1]),!k.isString(n))thrownewError("invalid parameters to applyPairs");returnt[n]=r,t}functionw(t){returnt.length&&t[t.length-1]||void0}function$(t,n){returnn&&Object.keys(n).forEach(function(t){returndeleten[t]}),n||(n={}),e.extend(n,t)}functionb(t,e,n){returnk.isArray(t)?t.forEach(e,n):voidObject.keys(t).forEach(function(n){returne(t[n],n)})}functionS(t,e){returnObject.keys(e).forEach(function(n){returnt[n]=e[n]}),t}functionR(t,n){returnP(arguments,1).filter(e.identity).reduce(S,t)}functionx(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!==t&&e!==e)return!0;varn=typeoft,r=typeofe;if(n!==r||"object"!==n)return!1;vari=[t,e];if(C.all(k.isArray)(i))returnE(t,e);if(C.all(k.isDate)(i))returnt.getTime()===e.getTime();if(C.all(k.isRegExp)(i))returnt.toString()===e.toString();if(C.all(k.isFunction)(i))return!0;varo=[k.isFunction,k.isArray,k.isDate,k.isRegExp];if(o.map(C.any).reduce(function(t,e){returnt||!!e(i)},!1))return!1;vara,s={};for(aint){if(!x(t[a],e[a]))return!1;s[a]=!0}for(aine)if(!s[a])return!1;return!0}functionE(t,e){returnt.length!==e.length?!1:g(t,e).reduce(function(t,e){returnt&&x(e[0],e[1])},!0)}vark=n(4),C=n(5),O=window.angular||{};e.fromJson=O.fromJson||JSON.
}functiono(t,e){varn=t.squash;if(!e||n===!1)return!1;if(!c.isDefined(n)||null==n)returnf.matcherConfig.defaultSquashPolicy();if(n===!0||c.isString(n))returnn;thrownewError("Invalid squash policy: '"+n+"'. Valid policies: false, true, or arbitrary string")}functiona(t,e,n,r){vari,o,a=[{from:"",to:n||e?void0:""},{from:null,to:n||e?void0:""}];returni=c.isArray(t.replace)?t.replace:[],c.isString(r)&&i.push({from:r,to:void0}),o=s.map(i,u.prop("from")),s.filter(a,function(t){return-1===o.indexOf(t.from)}).concat(i)}vars=n(3),u=n(5),c=n(4),l=n(6),f=n(22),p=n(23),h=n(24),v=Object.prototype.hasOwnProperty,d=function(t){return0===["value","type","squash","array","dynamic"].filter(v.bind(t||{})).length};!function(t){t[t.PATH=0]="PATH",t[t.SEARCH=1]="SEARCH",t[t.CONFIG=2]="CONFIG"}(e.DefType||(e.DefType={}));varm=e.DefType,g=function(){functiont(t,e,n,u){functionc(){vare={array:u===m.SEARCH?"auto":!1},r=t.match(/\[\]$/)?{array:!0}:{};returns.extend(e,r,n).array}n=r(n),e=i(n,e,u,t);varl=c();e=l?e.$asArray(l,u===m.SEARCH):e;varf=void0!==n.value,p=n.dynamic===!0,h=o(n,f),v=a(n,l,f,h);s.extend(this,{id:t,type:e,location:u,squash:h,replace:v,isOptional:f,dynamic:p,config:n,array:l})}returnt.prototype.isDefaultValue=function(t){returnthis.isOptional&&this.type.equals(this.value(),t)},t.prototype.value=function(t){vare=this,n=function(){if(!l.services.$injector)thrownewError("Injectable functions cannot be called at configuration time");vart=l.services.$injector.invoke(e.config.$$fn);if(null!==t&&void0!==t&&!e.type.is(t))thrownewError("Default value ("+t+") for parameter '"+e.id+"' is not an instance of Type ("+e.type.name+")");returnt},r=function(t){varn=s.map(s.filter(e.replace,u.propEq("from",t)),u.prop("to"));returnn.length?n[0]:t};returnt=r(t),c.isDefined(t)?this.type.$normalize(t):n()},t.prototype.isSearch=function(){returnthis.location===m.SEARCH},t.prototype.validates=function(t){if((!c.isDefined(t)||null===t)&&this.isOptional)return!0;vare=this.type.$normalize(t);if(!this.type.is(e))return!1;varn=this.type.encode(e);return!(c.isString(n)&&!this.type.pattern.exec(n))},t.prototype.toString=function(){return"{Param:"+this.id+" "+this.type+" squash: '"+this.squash+"' optional: "+this.isOptional+"}"},t.fromConfig=function(e,n,r){returnnewt(e,n,r,m.CONFIG)},t.fromPath=function(e,n,r){returnnewt(e,n,r,m.PATH)},t.fromSearch=function(e,n,r){returnnewt(e,n,r,m.SEARCH)},t.values=function(t,e){returnvoid0===e&&(e={}),t.map(function(t){return[t.id,t.value(e[t.id])]}).reduce(s.applyPairs,{})},t.changed=function(t,e,n){returnvoid0===e&&(e={}),void0===n&&(n={}),t.filter(function(t){return!t.type.equals(e[t.id],n[t.id])})},t.equals=function(e,n,r){returnvoid0===n&&(n={}),void0===r&&(r={}),0===t.changed(e,n,r).length},t.validates=function(t,e){returnvoid0===e&&(e={}),t.map(function(t){returnt.validates(e[t.id])}).reduce(s.allTrueR,!0)},t}();e.Param=g},function(t,e,n){"use strict";varr=n(4),i=function(){functiont(){this._isCaseInsensitive=!1,this._isStrictMode=!0,this._defaultSquashPolicy=!1}returnt.prototype.caseInsensitive=function(t){returnthis._isCaseInsensitive=r.isDefined(t)?t:this._isCaseInsensitive},t.prototype.strictMode=function(t){returnthis._isStrictMode=r.isDefined(t)?t:this._isStrictMode},t.prototype.defaultSquashPolicy=function(t){if(r.isDefined(t)&&t!==!0&&t!==!1&&!r.isString(t))thrownewError("Invalid squash policy: "+t+". Valid policies: false, true, arbitrary-string");returnthis._defaultSquashPolicy=r.isDefined(t)?t:this._defaultSquashPolicy},t}();e.MatcherConfig=i,e.matcherConfig=newi},function(t,e,n){"use strict";functionr(t,e){functionn(t){returno.isArray(t)?t:o.isDefined(t)?[t]:[]}functionr(t){switch(t.length){case0:return;case1:return"auto"===e?t[0]:t;default:returnt}}functiona(t,e){returnfunction(a){if(o.isArray(a)&&0===a.length)returna;vars=n(a),u=i.map(s,t);returne===!0?0===i.filter(u,function(t){return!t}).length:r(u)}}functions(t){returnfunction(e,r){vari=n(e),o=n(r);if(i.length!==o.length)return!1;for(vara=0;a<i.length;a++)if(!t(i[a],o[a]))r
vare=function(t){returnt.split("").reverse().join("")},n=function(t){returnt.replace(/\\-/g,"-")},r=e(t).split(/-(?!\\)/),o=i.map(r,e);returni.map(o,n).reverse()}vars=this;void0===e&&(e={}),void0===r&&(r={});varc=p(this._cache,"pattern",function(){returnnewRegExp(["^",i.unnest(s._cache.path.concat(s).map(o.prop("_compiled"))).join(""),s.config.strict===!1?"/?":"","$"].join(""),s.config.caseInsensitive?"i":void0)}).exec(t);if(!c)returnnull;varl=this.parameters(),f=l.filter(function(t){return!t.isSearch()}),h=l.filter(function(t){returnt.isSearch()}),v=this._cache.path.concat(this).map(function(t){returnt._segments.length-1}).reduce(function(t,e){returnt+e}),d={};if(v!==c.length-1)thrownewError("Unbalanced capture group in route '"+this.pattern+"'");for(varm=0;v>m;m++){for(varg=f[m],y=c[m+1],w=0;w<g.replace.length;w++)g.replace[w].from===y&&(y=g.replace[w].to);y&&g.array===!0&&(y=a(y)),u.isDefined(y)&&(y=g.type.decode(y)),d[g.id]=g.value(y)}returni.forEach(h,function(t){for(varn=e[t.id],r=0;r<t.replace.length;r++)t.replace[r].from===n&&(n=t.replace[r].to);u.isDefined(n)&&(n=t.type.decode(n)),d[t.id]=t.value(n)}),n&&(d["#"]=n),d},t.prototype.parameters=function(t){returnvoid0===t&&(t={}),t.inherit===!1?this._params:i.unnest(this._cache.path.concat(this).map(o.prop("_params")))},t.prototype.parameter=function(t,e){void0===e&&(e={});varn=i.tail(this._cache.path);returni.find(this._params,o.propEq("id",t))||e.inherit!==!1&&n&&n.parameter(t)||null},t.prototype.validates=function(t){vare=this,n=function(t,e){return!t||t.validates(e)};returni.pairs(t||{}).map(function(t){varr=t[0],i=t[1];returnn(e.parameter(r),i)}).reduce(i.allTrueR,!0)},t.prototype.format=function(e){functionn(t){varn=t.value(e[t.id]),r=t.isDefaultValue(n),i=r?t.squash:!1,o=t.type.encode(n);return{param:t,value:n,isDefaultValue:r,squash:i,encoded:o}}if(void0===e&&(e={}),!this.validates(e))returnnull;varr=this._cache.path.slice().concat(this),o=r.map(t.pathSegmentsAndParams).reduce(l.unnestR,[]),s=r.map(t.queryParams).reduce(l.unnestR,[]),u=o.reduce(function(e,r){if(a.isString(r))returne+r;varo=n(r),s=o.squash,u=o.encoded,c=o.param;returns===!0?e.match(/\/$/)?e.slice(0,-1):e:a.isString(s)?e+s:s!==!1?e:null==u?e:a.isArray(u)?e+i.map(u,t.encodeDashes).join("-"):c.type.raw?e+u:e+encodeURIComponent(u)},""),c=s.map(function(t){vare=n(t),r=e.squash,o=e.encoded,s=e.isDefaultValue;if(!(null==o||s&&r!==!1)&&(a.isArray(o)||(o=[o]),0!==o.length))returnt.type.raw||(o=i.map(o,encodeURIComponent)),o.map(function(e){returnt.id+"="+e})}).filter(i.identity).reduce(l.unnestR,[]).join("&");returnu+(c?"?"+c:"")+(e["#"]?"#"+e["#"]:"")},t.encodeDashes=function(t){returnencodeURIComponent(t).replace(/-/g,function(t){return"%5C%"+t.charCodeAt(0).toString(16).toUpperCase()})},t.pathSegmentsAndParams=function(t){vare=t._segments,n=t._params.filter(function(t){returnt.location===c.DefType.PATH});returnf.arrayTuples(e,n.concat(void0)).reduce(l.unnestR,[]).filter(function(t){return""!==t&&u.isDefined(t)})},t.queryParams=function(t){returnt._params.filter(function(t){returnt.location===c.DefType.SEARCH})},t.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/,t}();e.UrlMatcher=h},function(t,e,n){"use strict";functionr(){return{strict:a.matcherConfig.strictMode(),caseInsensitive:a.matcherConfig.caseInsensitive()}}vari=n(3),o=n(4),a=n(45),s=n(20),u=function(){functiont(){i.extend(this,{UrlMatcher:a.UrlMatcher,Param:s.Param})}returnt.prototype.caseInsensitive=function(t){returna.matcherConfig.caseInsensitive(t)},t.prototype.strictMode=function(t){returna.matcherConfig.strictMode(t)},t.prototype.defaultSquashPolicy=function(t){returna.matcherConfig.defaultSquashPolicy(t)},t.prototype.compile=function(t,e){returnnewa.UrlMatcher(t,i.extend(r(),e))},t.prototype.isMatcher=function(t){if(!o.isObject(t))return!1;vare=!0;returni.forEach(a.UrlMatcher.prototype,function(n,r){o.isFunction(n)&&(e=e&&o.isDefined(t[r])&&o.isFunction(t[r]))}),e},t.prototype.type=function(t,e,n){varr=s.paramTypes.type(t,e,n);returno.isDefined(e)?this:r},t.prototype.$get=funct