!function(t,e){"object"==typeofexports&&"undefined"!=typeofmodule?e(exports,require("angular")):"function"==typeofdefine&&define.amd?define(["exports","angular"],e):e(t["@uirouter/angularjs"]={},t.angular)}(this,function(d,t){"use strict";vare=angular,b=t&&t.module?t:e;functionc(r){vart=[].slice.apply(arguments,[1]),n=r.length;returnfunctiont(e){returne.length>=n?r.apply(null,e):function(){returnt(e.concat([].slice.apply(arguments)))}}(t)}functionr(){varr=arguments,n=r.length-1;returnfunction(){for(vart=n,e=r[n].apply(this,arguments);t--;)e=r[t].call(this,e);returne}}functions(){for(vart=[],e=0;e<arguments.length;e++)t[e]=arguments[e];returnr.apply(null,[].slice.call(arguments).reverse())}varw=function(e){returnfunction(t){returnt&&t[e]}},y=c(function(t,e,r){returnr&&r[t]===e}),R=function(t){returns.apply(null,t.split(".").map(w))},l=function(r){returnfunction(){for(vart=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return!r.apply(null,t)}};functionn(r,n){returnfunction(){for(vart=[],e=0;e<arguments.length;e++)t[e]=arguments[e];returnr.apply(null,t)&&n.apply(null,t)}}functioni(r,n){returnfunction(){for(vart=[],e=0;e<arguments.length;e++)t[e]=arguments[e];returnr.apply(null,t)||n.apply(null,t)}}varf=function(r){returnfunction(t){returnt.reduce(function(t,e){returnt&&!!r(e)},!0)}},h=function(r){returnfunction(t){returnt.reduce(function(t,e){returnt||!!r(e)},!1)}},p=function(e){returnfunction(t){returnnull!=t&&t.constructor===e||tinstanceofe}},o=function(e){returnfunction(t){returne===t}},v=function(t){returnfunction(){returnt}};functiona(e,r){returnfunction(t){returnt[e].apply(t,r)}}functionm(r){returnfunction(t){for(vare=0;e<r.length;e++)if(r[e][0](t))returnr[e][1](t)}}varu=Object.prototype.toString,g=function(e){returnfunction(t){returntypeoft===e}},_=g("undefined"),E=l(_),S=function(t){returnnull===t},$=i(S,_),C=g("function"),T=g("number"),P=g("string"),k=function(t){returnnull!==t&&"object"==typeoft},O=Array.isArray,x=function(t){return"[object Date]"===u.call(t)},j=function(t){return"[object RegExp]"===u.call(t)};functionV(t){if(O(t)&&t.length){vare=t.slice(0,-1),r=t.slice(-1);return!(e.filter(l(P)).length||r.filter(l(C)).length)}returnC(t)}varI=n(k,s(w("then"),C)),H=function(n,t){returnt.reduce(function(t,e){returnt[e]=(r=n+"."+e+"()",function(){thrownewError("No implementation for "+r+". The framework specific code did not implement this method.")}),t;varr},{})},A={$q:void0,$injector:void0},D="object"==typeofself&&self.self===self&&self||"object"==typeofglobal&&global.global===global&&global||void0,q=D.angular||{},U=q.fromJson||JSON.parse.bind(JSON),F=q.toJson||JSON.stringify.bind(JSON),N=q.forEach||function(e,r,t){if(O(e))returne.forEach(r,t);Object.keys(e).forEach(function(t){returnr(e[t],t)})},L=Object.assign||Pt,M=q.equals||kt;functionB(t){returnt}functionG(){}functionW(e,n,r,t,i){void0===i&&(i=!1);varo=function(t){returne()[t].bind(r())};return(t=t||Object.keys(e())).reduce(function(t,e){varr;returnt[e]=i?(r=e,function(){returnn[r]=o(r),n[r].apply(null,arguments)}):o(e),t},n)}varz=function(t,e){returnL(Object.create(t),e)},J=c(Q);functionQ(t,e){return-1!==t.indexOf(e)}varK=c(Y);functionY(t,e){varr=t.indexOf(e);return0<=r&&t.splice(r,1),t}varZ=c(X);functionX(t,e){returnt.push(e),e}vartt=function(e){returne.slice().forEach(function(t){"function"==typeoft&&t(),K(e,t)})};functionet(t){for(vare=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];varn=L.apply(void0,[{}].concat(e.reverse()));returnL(n,it(t||{},Object.keys(n)))}varrt=function(t,e){returnL(t,e)};functionnt(t,e){varr=[];for(varnint.path){if(t.path[n]!==e.path[n])break;r.push(t.path[n])}returnr}functionit(t,e){varr={};for(varnint)-1!==e.indexOf(n)&&(r[n]=t[n]);returnr}functionot(r,t){returnObject.keys(r).filter(l(J(t))).reduce(function(t,e){returnt[e]=r[e],t},{})}functionat(t,e){returnft(t,w(e))}functionut(t,r){vare=O(t),n=e?[]:{},i=e?function(t){returnn.push(t)}:function(t,e){returnn[e]=t};returnN(t,function(t,e){r(t,e)&&i(t,