403Webshell
Server IP : 172.67.158.161  /  Your IP : 13.58.199.182
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/giankuin/bnnagency.com/wp-content/themes/flatsome/assets/js/builder/vendors/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/bnnagency.com/wp-content/themes/flatsome/assets/js/builder/vendors/vendors.js
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=81)}([function(t,e,n){"use strict";(function(t){n.d(e,"D",(function(){return s})),n.d(e,"q",(function(){return c})),n.d(e,"H",(function(){return l})),n.d(e,"p",(function(){return f})),n.d(e,"l",(function(){return h})),n.d(e,"k",(function(){return p})),n.d(e,"r",(function(){return d})),n.d(e,"x",(function(){return v})),n.d(e,"h",(function(){return m})),n.d(e,"t",(function(){return g})),n.d(e,"s",(function(){return $})),n.d(e,"C",(function(){return y})),n.d(e,"B",(function(){return b})),n.d(e,"j",(function(){return w})),n.d(e,"i",(function(){return O})),n.d(e,"w",(function(){return x})),n.d(e,"b",(function(){return C})),n.d(e,"z",(function(){return S})),n.d(e,"y",(function(){return _})),n.d(e,"m",(function(){return E})),n.d(e,"n",(function(){return j})),n.d(e,"v",(function(){return A})),n.d(e,"u",(function(){return k})),n.d(e,"L",(function(){return T})),n.d(e,"a",(function(){return R})),n.d(e,"c",(function(){return P})),n.d(e,"K",(function(){return D})),n.d(e,"o",(function(){return I})),n.d(e,"A",(function(){return M})),n.d(e,"I",(function(){return V})),n.d(e,"J",(function(){return N})),n.d(e,"f",(function(){return U})),n.d(e,"e",(function(){return L})),n.d(e,"d",(function(){return q})),n.d(e,"G",(function(){return H})),n.d(e,"g",(function(){return F})),n.d(e,"E",(function(){return B})),n.d(e,"F",(function(){return z}));var r=n(1),i=n(3),o=n(5),a=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},s="object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t||void 0,u=s.angular||{},c=u.fromJson||JSON.parse.bind(JSON),l=u.toJson||JSON.stringify.bind(JSON),f=u.forEach||function(t,e,n){if(Object(r.a)(t))return t.forEach(e,n);Object.keys(t).forEach((function(n){return e(t[n],n)}))},h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];if(n)for(var r=Object.keys(n),i=0;i<r.length;i++)t[r[i]]=n[r[i]]}return t},p=u.equals||function t(e,n){if(e===n)return!0;if(null===e||null===n)return!1;if(e!=e&&n!=n)return!0;var o=typeof e;if(o!==typeof n||"object"!==o)return!1;var a,s,u=[e,n];if(Object(i.a)(r.a)(u))return s=n,(a=e).length===s.length&&L(a,s).reduce((function(e,n){return e&&t(n[0],n[1])}),!0);if(Object(i.a)(r.b)(u))return e.getTime()===n.getTime();if(Object(i.a)(r.k)(u))return e.toString()===n.toString();if(Object(i.a)(r.d)(u))return!0;if([r.d,r.a,r.b,r.k].map(i.c).reduce((function(t,e){return t||!!e(u)}),!1))return!1;var c={};for(var l in e){if(!t(e[l],n[l]))return!1;c[l]=!0}for(var l in n)if(!c[l])return!1;return!0};function d(t){return t}function v(){}function m(t,e,n,r,i){void 0===i&&(i=!1);var o=function(e){return t()[e].bind(n())};return(r=r||Object.keys(t())).reduce((function(t,n){var r;return t[n]=i?(r=n,function(){return e[r]=o(r),e[r].apply(null,arguments)}):o(n),t}),e)}var g=function(t,e){return h(Object.create(t),e)},$=Object(i.d)((function(t,e){return-1!==t.indexOf(e)})),y=Object(i.d)((function(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),t})),b=Object(i.d)((function(t,e){return t.push(e),e})),w=function(t){return t.slice().forEach((function(e){"function"==typeof e&&e(),y(t,e)}))};function O(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=h.apply(void 0,a([{}],e.reverse()));return h(r,S(t||{},Object.keys(r)))}var x=function(t,e){return h(t,e)};function C(t,e){var n=[];for(var r in t.path){if(t.path[r]!==e.path[r])break;n.push(t.path[r])}return n}function S(t,e){var n={};for(var r in t)-1!==e.indexOf(r)&&(n[r]=t[r]);return n}function _(t,e){return Object.keys(t).filter(Object(i.f)($(e))).reduce((function(e,n){return e[n]=t[n],e}),{})}function E(t,e){var n=Object(r.a)(t),i=n?[]:{},o=n?function(t){return i.push(t)}:function(t,e){return i[e]=t};return f(t,(function(t,n){e(t,n)&&o(t,n)})),i}function j(t,e){var n;return f(t,(function(t,r){n||e(t,r)&&(n=t)})),n}var A=k;function k(t,e,n){return n=n||(Object(r.a)(t)?[]:{}),f(t,(function(t,r){return n[r]=e(t,r)})),n}var T=function(t){return Object.keys(t).map((function(e){return t[e]}))},R=function(t,e){return t&&e},P=function(t,e){return t||e},D=function(t,e){return t.concat(e)},I=function(t,e){return Object(r.a)(e)?t.concat(e.reduce(I,[])):M(t,e)};function M(t,e){return t.push(e),t}var V=function(t,e){return $(t,e)?t:M(t,e)},N=function(t){return t.reduce(D,[])},U=function(t,e){return void 0===e&&(e="assert failure"),function(n){var i=t(n);if(!i)throw new Error(Object(r.d)(e)?e(n):e);return i}};function L(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return[];for(var n=t.reduce((function(t,e){return Math.min(e.length,t)}),9007199254740991),r=[],i=function(e){switch(t.length){case 1:r.push([t[0][e]]);break;case 2:r.push([t[0][e],t[1][e]]);break;case 3:r.push([t[0][e],t[1][e],t[2][e]]);break;case 4:r.push([t[0][e],t[1][e],t[2][e],t[3][e]]);break;default:r.push(t.map((function(t){return t[e]})))}},o=0;o<n;o++)i(o);return r}function q(t,e){var n,i;if(Object(r.a)(e)&&(n=e[0],i=e[1]),!Object(r.l)(n))throw new Error("invalid parameters to applyPairs");return t[n]=i,t}function H(t){return t.length&&t[t.length-1]||void 0}function F(t,e){return e&&Object.keys(e).forEach((function(t){return delete e[t]})),e||(e={}),h(e,t)}var B=function(t){return t.catch((function(t){return 0}))&&t},z=function(t){return B(o.b.$q.reject(t))}}).call(this,n(63))},function(t,e,n){"use strict";n.d(e,"m",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"f",(function(){return u})),n.d(e,"g",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"h",(function(){return f})),n.d(e,"l",(function(){return h})),n.d(e,"i",(function(){return p})),n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return v})),n.d(e,"k",(function(){return m})),n.d(e,"e",(function(){return g})),n.d(e,"j",(function(){return $}));var r=n(3),i=Object.prototype.toString,o=function(t){return function(e){return typeof e===t}},a=o("undefined"),s=Object(r.f)(a),u=function(t){return null===t},c=Object(r.g)(u,a),l=o("function"),f=o("number"),h=o("string"),p=function(t){return null!==t&&"object"==typeof t},d=Array.isArray,v=function(t){return"[object Date]"===i.call(t)},m=function(t){return"[object RegExp]"===i.call(t)};function g(t){if(d(t)&&t.length){var e=t.slice(0,-1),n=t.slice(-1);return!(e.filter(Object(r.f)(h)).length||n.filter(Object(r.f)(l)).length)}return l(t)}var $=Object(r.b)(p,Object(r.j)(Object(r.k)("then"),l))},function(t,e,n){"use strict";var r=n(4);n.d(e,"applyPairs",(function(){return r.b})),n.d(e,"createProxyFunctions",(function(){return r.d})),n.d(e,"extend",(function(){return r.g})),n.d(e,"filter",(function(){return r.h})),n.d(e,"forEach",(function(){return r.j})),n.d(e,"identity",(function(){return r.k})),n.d(e,"inArray",(function(){return r.l})),n.d(e,"isArray",(function(){return r.n})),n.d(e,"isDefined",(function(){return r.o})),n.d(e,"isFunction",(function(){return r.p})),n.d(e,"isInjectable",(function(){return r.q})),n.d(e,"isObject",(function(){return r.r})),n.d(e,"isString",(function(){return r.s})),n.d(e,"kebobString",(function(){return r.u})),n.d(e,"noop",(function(){return r.x})),n.d(e,"parse",(function(){return r.y})),n.d(e,"pick",(function(){return r.A})),n.d(e,"removeFrom",(function(){return r.C})),n.d(e,"services",(function(){return r.E})),n.d(e,"tail",(function(){return r.J})),n.d(e,"trace",(function(){return r.K})),n.d(e,"uniqR",(function(){return r.M})),n.d(e,"unnestR",(function(){return r.N})),n.d(e,"val",(function(){return r.O}));var i=n(18);n.o(i,"BaseUrlRule")&&n.d(e,"BaseUrlRule",(function(){return i.BaseUrlRule})),n.o(i,"Resolvable")&&n.d(e,"Resolvable",(function(){return i.Resolvable})),n.o(i,"ResolveContext")&&n.d(e,"ResolveContext",(function(){return i.ResolveContext})),n.o(i,"UIRouter")&&n.d(e,"UIRouter",(function(){return i.UIRouter})),n.o(i,"ViewService")&&n.d(e,"ViewService",(function(){return i.ViewService})),n(67);var o=n(21);n.d(e,"Resolvable",(function(){return o.a})),n.d(e,"ResolveContext",(function(){return o.b}));var a=n(23);n.o(a,"BaseUrlRule")&&n.d(e,"BaseUrlRule",(function(){return a.BaseUrlRule})),n.o(a,"UIRouter")&&n.d(e,"UIRouter",(function(){return a.UIRouter})),n.o(a,"ViewService")&&n.d(e,"ViewService",(function(){return a.ViewService})),n(69);var s=n(70);n.o(s,"BaseUrlRule")&&n.d(e,"BaseUrlRule",(function(){return s.BaseUrlRule})),n.o(s,"UIRouter")&&n.d(e,"UIRouter",(function(){return s.UIRouter})),n.o(s,"ViewService")&&n.d(e,"ViewService",(function(){return s.ViewService}));var u=n(72);n.o(u,"BaseUrlRule")&&n.d(e,"BaseUrlRule",(function(){return u.BaseUrlRule})),n.o(u,"UIRouter")&&n.d(e,"UIRouter",(function(){return u.UIRouter})),n.o(u,"ViewService")&&n.d(e,"ViewService",(function(){return u.ViewService})),n(50);var c=n(46);n.d(e,"UIRouter",(function(){return c.a}));var l=n(74);n.o(l,"BaseUrlRule")&&n.d(e,"BaseUrlRule",(function(){return l.BaseUrlRule})),n.o(l,"ViewService")&&n.d(e,"ViewService",(function(){return l.ViewService})),n(78)},function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"j",(function(){return a})),n.d(e,"k",(function(){return s})),n.d(e,"l",(function(){return u})),n.d(e,"h",(function(){return c})),n.d(e,"f",(function(){return l})),n.d(e,"b",(function(){return f})),n.d(e,"g",(function(){return h})),n.d(e,"a",(function(){return p})),n.d(e,"c",(function(){return d})),n.d(e,"e",(function(){return v})),n.d(e,"m",(function(){return m})),n.d(e,"i",(function(){return g}));var r=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function i(t){return function e(){if(arguments.length>=t.length)return t.apply(this,arguments);var n=Array.prototype.slice.call(arguments);return e.bind.apply(e,r([this],n))}}function o(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}}function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o.apply(null,[].slice.call(arguments).reverse())}var s=function(t){return function(e){return e&&e[t]}},u=i((function(t,e,n){return n&&n[t]===e})),c=function(t){return a.apply(null,t.split(".").map(s))},l=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return!t.apply(null,e)}};function f(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t.apply(null,n)&&e.apply(null,n)}}function h(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t.apply(null,n)||e.apply(null,n)}}var p=function(t){return function(e){return e.reduce((function(e,n){return e&&!!t(n)}),!0)}},d=function(t){return function(e){return e.reduce((function(e,n){return e||!!t(n)}),!1)}},v=function(t){return function(e){return null!=e&&e.constructor===t||e instanceof t}},m=function(t){return function(){return t}};function g(t){return function(e){for(var n=0;n<t.length;n++)if(t[n][0](e))return t[n][1](e)}}},function(t,e,n){"use strict";var r=n(0);n.d(e,"b",(function(){return r.d})),n.d(e,"c",(function(){return r.f})),n.d(e,"d",(function(){return r.h})),n.d(e,"e",(function(){return r.i})),n.d(e,"f",(function(){return r.j})),n.d(e,"g",(function(){return r.l})),n.d(e,"h",(function(){return r.m})),n.d(e,"i",(function(){return r.o})),n.d(e,"j",(function(){return r.p})),n.d(e,"k",(function(){return r.r})),n.d(e,"l",(function(){return r.s})),n.d(e,"w",(function(){return r.v})),n.d(e,"x",(function(){return r.x})),n.d(e,"A",(function(){return r.z})),n.d(e,"C",(function(){return r.C})),n.d(e,"D",(function(){return r.D})),n.d(e,"J",(function(){return r.G})),n.d(e,"M",(function(){return r.I})),n.d(e,"N",(function(){return r.K})),n.d(e,"P",(function(){return r.L}));var i=n(5);n.d(e,"v",(function(){return i.a})),n.d(e,"E",(function(){return i.b}));var o=n(33);n.d(e,"a",(function(){return o.a}));var a=n(3);n.d(e,"m",(function(){return a.e})),n.d(e,"y",(function(){return a.h})),n.d(e,"z",(function(){return a.i})),n.d(e,"B",(function(){return a.k})),n.d(e,"O",(function(){return a.m}));var s=n(1);n.d(e,"n",(function(){return s.a})),n.d(e,"o",(function(){return s.c})),n.d(e,"p",(function(){return s.d})),n.d(e,"q",(function(){return s.e})),n.d(e,"r",(function(){return s.i})),n.d(e,"s",(function(){return s.l})),n.d(e,"t",(function(){return s.m})),n(26);var u=n(6);n.d(e,"u",(function(){return u.d})),n.d(e,"F",(function(){return u.g})),n.d(e,"G",(function(){return u.h})),n.d(e,"H",(function(){return u.j})),n.d(e,"I",(function(){return u.l})),n.d(e,"L",(function(){return u.m}));var c=n(8);n.d(e,"K",(function(){return c.a}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=function(t,e){return e.reduce((function(e,n){return e[n]=(r=t+"."+n+"()",function(){throw new Error("No implementation for "+r+". The framework specific code did not implement this method.")}),e;var r}),{})},i={$q:void 0,$injector:void 0}},function(t,e,n){"use strict";n.d(e,"e",(function(){return s})),n.d(e,"f",(function(){return u})),n.d(e,"d",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return f})),n.d(e,"k",(function(){return d})),n.d(e,"l",(function(){return m})),n.d(e,"h",(function(){return g})),n.d(e,"j",(function(){return $})),n.d(e,"g",(function(){return y})),n.d(e,"m",(function(){return b})),n.d(e,"i",(function(){return w})),n.d(e,"c",(function(){return O}));var r=n(1),i=n(7),o=n(0),a=n(3);function s(t,e){return e.length<=t?e:e.substr(0,t-3)+"..."}function u(t,e){for(;e.length<t;)e+=" ";return e}function c(t){return t.replace(/^([A-Z])/,(function(t){return t.toLowerCase()})).replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))}function l(t){var e=f(t),n=e.match(/^(function [^ ]+\([^)]*\))/),r=n?n[1]:e,i=t.name||"";return i&&r.match(/function \(/)?"function "+i+r.substr(9):r}function f(t){var e=Object(r.a)(t)?t.slice(-1)[0]:t;return e&&e.toString()||"undefined"}var h=i.b.isRejectionPromise,p=Object(a.i)([[r.m,Object(a.m)("undefined")],[r.f,Object(a.m)("null")],[r.j,Object(a.m)("[Promise]")],[h,function(t){return t._transitionRejection.toString()}],[function(t){return Object(r.i)(t)&&!Object(r.a)(t)&&t.constructor!==Object&&Object(r.d)(t.toString)},function(t){return t.toString()}],[r.e,l],[Object(a.m)(!0),o.r]]);function d(t){var e=[];function n(t){if(Object(r.i)(t)){if(-1!==e.indexOf(t))return"[circular ref]";e.push(t)}return p(t)}return Object(r.m)(t)?n(t):JSON.stringify(t,(function(t,e){return n(e)})).replace(/\\"/g,'"')}var v=function(t){return function(e){if(!e)return["",""];var n=e.indexOf(t);return-1===n?[e,""]:[e.substr(0,n),e.substr(n+1)]}},m=(new RegExp("^(?:[a-z]+:)?//[^/]+/"),function(t){return t.replace(/\/[^/]*$/,"")}),g=v("#"),$=v("?"),y=v("="),b=function(t){return t?t.replace(/^#/,""):""};function w(t){var e=new RegExp("("+t+")","g");return function(t){return t.split(e).filter(o.r)}}function O(t,e){return Object(r.l)(Object(o.G)(t))&&Object(r.l)(e)?t.slice(0,-1).concat(Object(o.G)(t)+e):Object(o.A)(t,e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return u}));var r,i=n(0),o=n(6),a=n(3);!function(t){t[t.SUPERSEDED=2]="SUPERSEDED",t[t.ABORTED=3]="ABORTED",t[t.INVALID=4]="INVALID",t[t.IGNORED=5]="IGNORED",t[t.ERROR=6]="ERROR"}(r||(r={}));var s=0,u=function(){function t(t,e,n){this.$id=s++,this.type=t,this.message=e,this.detail=n}return t.isRejectionPromise=function(e){return e&&"function"==typeof e.then&&Object(a.e)(t)(e._transitionRejection)},t.superseded=function(e,n){var i=new t(r.SUPERSEDED,"The transition has been superseded by a different transition",e);return n&&n.redirected&&(i.redirected=!0),i},t.redirected=function(e){return t.superseded(e,{redirected:!0})},t.invalid=function(e){return new t(r.INVALID,"This transition is invalid",e)},t.ignored=function(e){return new t(r.IGNORED,"The transition was ignored",e)},t.aborted=function(e){return new t(r.ABORTED,"The transition has been aborted",e)},t.errored=function(e){return new t(r.ERROR,"The transition errored",e)},t.normalize=function(e){return Object(a.e)(t)(e)?e:t.errored(e)},t.prototype.toString=function(){var t,e=(t=this.detail)&&t.toString!==Object.prototype.toString?t.toString():Object(o.k)(t);return"Transition Rejection($id: "+this.$id+" type: "+this.type+", message: "+this.message+", detail: "+e+")"},t.prototype.toPromise=function(){return Object(i.l)(Object(i.F)(this),{_transitionRejection:this})},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r,i=n(3),o=n(1),a=n(6),s=n(15);function u(t){if(!t)return"ui-view (defunct)";var e=t.creationContext?t.creationContext.name||"(root)":"(none)";return"[ui-view#"+t.id+" "+t.$type+":"+t.fqn+" ("+t.name+"@"+e+")]"}function c(t){return Object(o.h)(t)?r[t]:r[r[t]]}!function(t){t[t.RESOLVE=0]="RESOLVE",t[t.TRANSITION=1]="TRANSITION",t[t.HOOK=2]="HOOK",t[t.UIVIEW=3]="UIVIEW",t[t.VIEWCONFIG=4]="VIEWCONFIG"}(r||(r={}));var l=Object(i.h)("$id"),f=Object(i.h)("router.$id"),h=function(t){return"Transition #"+l(t)+"-"+f(t)},p=new(function(){function t(){this._enabled={},this.approximateDigests=0}return t.prototype._set=function(t,e){var n=this;e.length||(e=Object.keys(r).map((function(t){return parseInt(t,10)})).filter((function(t){return!isNaN(t)})).map((function(t){return r[t]}))),e.map(c).forEach((function(e){return n._enabled[e]=t}))},t.prototype.enable=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._set(!0,t)},t.prototype.disable=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._set(!1,t)},t.prototype.enabled=function(t){return!!this._enabled[c(t)]},t.prototype.traceTransitionStart=function(t){this.enabled(r.TRANSITION)&&s.a.log(h(t)+": Started  -> "+Object(a.k)(t))},t.prototype.traceTransitionIgnored=function(t){this.enabled(r.TRANSITION)&&s.a.log(h(t)+": Ignored  <> "+Object(a.k)(t))},t.prototype.traceHookInvocation=function(t,e,n){if(this.enabled(r.HOOK)){var o=Object(i.h)("traceData.hookType")(n)||"internal",u=Object(i.h)("traceData.context.state.name")(n)||Object(i.h)("traceData.context")(n)||"unknown",c=Object(a.b)(t.registeredHook.callback);s.a.log(h(e)+":   Hook -> "+o+" context: "+u+", "+Object(a.e)(200,c))}},t.prototype.traceHookResult=function(t,e,n){this.enabled(r.HOOK)&&s.a.log(h(e)+":   <- Hook returned: "+Object(a.e)(200,Object(a.k)(t)))},t.prototype.traceResolvePath=function(t,e,n){this.enabled(r.RESOLVE)&&s.a.log(h(n)+":         Resolving "+t+" ("+e+")")},t.prototype.traceResolvableResolved=function(t,e){this.enabled(r.RESOLVE)&&s.a.log(h(e)+":               <- Resolved  "+t+" to: "+Object(a.e)(200,Object(a.k)(t.data)))},t.prototype.traceError=function(t,e){this.enabled(r.TRANSITION)&&s.a.log(h(e)+": <- Rejected "+Object(a.k)(e)+", reason: "+t)},t.prototype.traceSuccess=function(t,e){this.enabled(r.TRANSITION)&&s.a.log(h(e)+": <- Success  "+Object(a.k)(e)+", final state: "+t.name)},t.prototype.traceUIViewEvent=function(t,e,n){void 0===n&&(n=""),this.enabled(r.UIVIEW)&&s.a.log("ui-view: "+Object(a.f)(30,t)+" "+u(e)+n)},t.prototype.traceUIViewConfigUpdated=function(t,e){this.enabled(r.UIVIEW)&&this.traceUIViewEvent("Updating",t," with ViewConfig from context='"+e+"'")},t.prototype.traceUIViewFill=function(t,e){this.enabled(r.UIVIEW)&&this.traceUIViewEvent("Fill",t," with: "+Object(a.e)(200,e))},t.prototype.traceViewSync=function(t){if(this.enabled(r.VIEWCONFIG)){var e="uiview component fqn",n=t.map((function(t){var n,r=t.uiView,i=t.viewConfig,o=r&&r.fqn,a=i&&i.viewDecl.$context.name+": ("+i.viewDecl.$name+")";return(n={})[e]=o,n["view config state (view name)"]=a,n})).sort((function(t,n){return(t[e]||"").localeCompare(n[e]||"")}));s.a.table(n)}},t.prototype.traceViewServiceEvent=function(t,e){this.enabled(r.VIEWCONFIG)&&s.a.log("VIEWCONFIG: "+t+" "+function(t){var e=t.viewDecl,n=e.$context.name||"(root)";return"[View#"+t.$id+" from '"+n+"' state]: target ui-view: '"+e.$uiViewName+"@"+e.$uiViewContextAnchor+"'"}(e))},t.prototype.traceViewServiceUIViewEvent=function(t,e){this.enabled(r.VIEWCONFIG)&&s.a.log("VIEWCONFIG: "+t+" "+u(e))},t}())},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(38),i=angular,o=r&&r.module?r:i},function(t,e,n){"use strict";var r,i;n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),function(t){t[t.CREATE=0]="CREATE",t[t.BEFORE=1]="BEFORE",t[t.RUN=2]="RUN",t[t.SUCCESS=3]="SUCCESS",t[t.ERROR=4]="ERROR"}(r||(r={})),function(t){t[t.TRANSITION=0]="TRANSITION",t[t.STATE=1]="STATE"}(i||(i={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),i=n(5),o=n(8),a=n(6),s=n(1),u=function(){function t(e,n,o,a,u){if(this.resolved=!1,this.promise=void 0,e instanceof t)Object(r.l)(this,e);else if(Object(s.d)(n)){if(Object(s.g)(e))throw new Error("new Resolvable(): token argument is required");if(!Object(s.d)(n))throw new Error("new Resolvable(): resolveFn argument must be a function");this.token=e,this.policy=a,this.resolveFn=n,this.deps=o||[],this.data=u,this.resolved=void 0!==u,this.promise=this.resolved?i.b.$q.when(this.data):void 0}else if(Object(s.i)(e)&&e.token&&(e.hasOwnProperty("resolveFn")||e.hasOwnProperty("data"))){var c=e;return new t(c.token,c.resolveFn,c.deps,c.policy,c.data)}}return t.prototype.getPolicy=function(t){var e=this.policy||{},n=t&&t.resolvePolicy||{};return{when:e.when||n.when||"LAZY",async:e.async||n.async||"WAIT"}},t.prototype.resolve=function(t,e){var n=this,a=i.b.$q,u=t.findNode(this),c=u&&u.state,l=this.getPolicy(c).async,f=Object(s.d)(l)?l:r.r;return this.promise=a.when().then((function(){return a.all(t.getDependencies(n).map((function(n){return n.get(t,e)})))})).then((function(t){return n.resolveFn.apply(null,t)})).then(f).then((function(t){return n.data=t,n.resolved=!0,n.resolveFn=null,o.a.traceResolvableResolved(n,e),n.data}))},t.prototype.get=function(t,e){return this.promise||this.resolve(t,e)},t.prototype.toString=function(){return"Resolvable(token: "+Object(a.k)(this.token)+", requires: ["+this.deps.map(a.k)+"])"},t.prototype.clone=function(){return new t(this)},t.fromData=function(e,n){return new t(e,(function(){return n}),null,null,n)},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return l}));var r,i=n(0),o=n(3),a=n(1),s=n(5),u=n(27),c=Object.prototype.hasOwnProperty;!function(t){t[t.PATH=0]="PATH",t[t.SEARCH=1]="SEARCH",t[t.CONFIG=2]="CONFIG"}(r||(r={}));var l=function(){function t(t,e,n,s,l){var f=function(t,e,n){var o=!1===n.reloadOnSearch&&e===r.SEARCH||void 0,s=Object(i.n)([n.dynamic,o],a.c),u=Object(a.c)(s)?{dynamic:s}:{},l=function(t){function e(){return t.value}t=function(t){return 0===["value","type","squash","array","dynamic"].filter(c.bind(t||{})).length}(t)?{value:t}:t,e.__cacheable=!0;var n=Object(a.e)(t.value)?t.value:e;return Object(i.l)(t,{$$fn:n})}(n&&n.params&&n.params[t]);return Object(i.l)(u,l)}(t,n,l);e=function(t,e,n,i,o){if(t.type&&e&&"string"!==e.name)throw new Error("Param '"+i+"' has two type configurations.");if(t.type&&e&&"string"===e.name&&o.type(t.type))return o.type(t.type);if(e)return e;if(!t.type){var a=n===r.CONFIG?"any":n===r.PATH?"path":n===r.SEARCH?"query":"string";return o.type(a)}return t.type instanceof u.a?t.type:o.type(t.type)}(f,e,n,t,s.paramTypes);var h,p,d=(h={array:n===r.SEARCH&&"auto"},p=t.match(/\[\]$/)?{array:!0}:{},Object(i.l)(h,p,f).array);e=d?e.$asArray(d,n===r.SEARCH):e;var v=void 0!==f.value||n===r.SEARCH,m=Object(a.c)(f.dynamic)?!!f.dynamic:!!e.dynamic,g=Object(a.c)(f.raw)?!!f.raw:!!e.raw,$=function(t,e,n){var r=t.squash;if(!e||!1===r)return!1;if(!Object(a.c)(r)||null==r)return n;if(!0===r||Object(a.l)(r))return r;throw new Error("Invalid squash policy: '"+r+"'. Valid policies: false, true, or arbitrary string")}(f,v,s.defaultSquashPolicy()),y=function(t,e,n,r){var s=[{from:"",to:n||e?void 0:""},{from:null,to:n||e?void 0:""}],u=Object(a.a)(t.replace)?t.replace:[];Object(a.l)(r)&&u.push({from:r,to:void 0});var c=Object(i.u)(u,Object(o.k)("from"));return Object(i.m)(s,(function(t){return-1===c.indexOf(t.from)})).concat(u)}(f,d,v,$),b=Object(a.c)(f.inherit)?!!f.inherit:!!e.inherit;Object(i.l)(this,{id:t,type:e,location:n,isOptional:v,dynamic:m,raw:g,squash:$,replace:y,inherit:b,array:d,config:f})}return t.values=function(t,e){void 0===e&&(e={});for(var n={},r=0,i=t;r<i.length;r++){var o=i[r];n[o.id]=o.value(e[o.id])}return n},t.changed=function(t,e,n){return void 0===e&&(e={}),void 0===n&&(n={}),t.filter((function(t){return!t.type.equals(e[t.id],n[t.id])}))},t.equals=function(e,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),0===t.changed(e,n,r).length},t.validates=function(t,e){return void 0===e&&(e={}),t.map((function(t){return t.validates(e[t.id])})).reduce(i.a,!0)},t.prototype.isDefaultValue=function(t){return this.isOptional&&this.type.equals(this.value(),t)},t.prototype.value=function(t){var e=this;return t=function(t){for(var n=0,r=e.replace;n<r.length;n++){var i=r[n];if(i.from===t)return i.to}return t}(t),Object(a.m)(t)?function(){if(e._defaultValueCache)return e._defaultValueCache.defaultValue;if(!s.b.$injector)throw new Error("Injectable functions cannot be called at configuration time");var t=s.b.$injector.invoke(e.config.$$fn);if(null!=t&&!e.type.is(t))throw new Error("Default value ("+t+") for parameter '"+e.id+"' is not an instance of ParamType ("+e.type.name+")");return e.config.$$fn.__cacheable&&(e._defaultValueCache={defaultValue:t}),t}():this.type.$normalize(t)},t.prototype.isSearch=function(){return this.location===r.SEARCH},t.prototype.validates=function(t){if((Object(a.m)(t)||null===t)&&this.isOptional)return!0;var e=this.type.$normalize(t);if(!this.type.is(e))return!1;var n=this.type.encode(e);return!(Object(a.l)(n)&&!this.type.pattern.exec(n))},t.prototype.toString=function(){return"{Param:"+this.id+" "+this.type+" squash: '"+this.squash+"' optional: "+this.isOptional+"}"},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(10),i=n(0),o=n(6),a=n(1),s=n(3),u=n(8),c=n(5),l=n(7),f=n(16),h={current:i.x,transition:null,traceData:{},bind:null},p=function(){function t(t,e,n,o){var a=this;this.transition=t,this.stateContext=e,this.registeredHook=n,this.options=o,this.isSuperseded=function(){return a.type.hookPhase===r.a.RUN&&!a.options.transition.isActive()},this.options=Object(i.i)(o,h),this.type=n.eventType}return t.chain=function(t,e){return t.reduce((function(t,e){return t.then((function(){return e.invokeHook()}))}),e||c.b.$q.when())},t.invokeHooks=function(e,n){for(var r=0;r<e.length;r++){var i=e[r].invokeHook();if(Object(a.j)(i)){var o=e.slice(r+1);return t.chain(o,i).then(n)}}return n()},t.runAllHooks=function(t){t.forEach((function(t){return t.invokeHook()}))},t.prototype.logError=function(t){this.transition.router.stateService.defaultErrorHandler()(t)},t.prototype.invokeHook=function(){var t=this,e=this.registeredHook;if(!e._deregistered){var n=this.getNotCurrentRejection();if(n)return n;var r=this.options;u.a.traceHookInvocation(this,this.transition,r);var i=function(n){return e.eventType.getErrorHandler(t)(n)},o=function(n){return e.eventType.getResultHandler(t)(n)};try{var s=e.callback.call(r.bind,t.transition,t.stateContext);return!this.type.synchronous&&Object(a.j)(s)?s.catch((function(t){return l.b.normalize(t).toPromise()})).then(o,i):o(s)}catch(t){return i(l.b.normalize(t))}finally{e.invokeLimit&&++e.invokeCount>=e.invokeLimit&&e.deregister()}}},t.prototype.handleHookResult=function(t){var e=this;return this.getNotCurrentRejection()||(Object(a.j)(t)?t.then((function(t){return e.handleHookResult(t)})):(u.a.traceHookResult(t,this.transition,this.options),!1===t?l.b.aborted("Hook aborted transition").toPromise():Object(s.e)(f.a)(t)?l.b.redirected(t).toPromise():void 0))},t.prototype.getNotCurrentRejection=function(){var t=this.transition.router;return t._disposed?l.b.aborted("UIRouter instance #"+t.$id+" has been stopped (disposed)").toPromise():this.transition._aborted?l.b.aborted().toPromise():this.isSuperseded()?l.b.superseded(this.options.current()).toPromise():void 0},t.prototype.toString=function(){var t=this.options,e=this.registeredHook,n=Object(s.h)("traceData.hookType")(t)||"internal",r=Object(s.h)("traceData.context.state.name")(t)||Object(s.h)("traceData.context")(t)||"unknown",i=Object(o.a)(e.callback);return n+" context: "+r+", "+Object(o.e)(200,i)},t.HANDLE_RESULT=function(t){return function(e){return t.handleHookResult(e)}},t.LOG_REJECTED_RESULT=function(t){return function(e){Object(a.j)(e)&&e.catch((function(e){return t.logError(l.b.normalize(e))}))}},t.LOG_ERROR=function(t){return function(e){return t.logError(e)}},t.REJECT_ERROR=function(t){return function(t){return Object(i.F)(t)}},t.THROW_ERROR=function(t){return function(t){throw t}},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(0),i=n(3),o=n(16),a=n(28),s=function(){function t(){}return t.makeTargetState=function(t,e){var n=Object(r.G)(e).state;return new o.a(t,n,e.map(Object(i.k)("paramValues")).reduce(r.w,{}),{})},t.buildPath=function(t){var e=t.params();return t.$state().path.map((function(t){return new a.a(t).applyRawParams(e)}))},t.buildToPath=function(e,n){var r=t.buildPath(n);return n.options().inherit?t.inheritParams(e,r,Object.keys(n.params())):r},t.applyViewConfigs=function(e,n,i){n.filter((function(t){return Object(r.s)(i,t.state)})).forEach((function(i){var o=Object(r.L)(i.state.views||{}),a=t.subPath(n,(function(t){return t===i})),s=o.map((function(t){return e.createViewConfig(a,t)}));i.views=s.reduce(r.K,[])}))},t.inheritParams=function(t,e,n){void 0===n&&(n=[]);var o=t.map((function(t){return t.paramSchema})).reduce(r.K,[]).filter((function(t){return!t.inherit})).map(Object(i.k)("id"));return e.map((function(e){var s=Object(r.l)({},e&&e.paramValues),u=Object(r.z)(s,n);s=Object(r.y)(s,n);var c,l,f,h=Object(r.y)((c=t,l=e.state,f=Object(r.n)(c,Object(i.l)("state",l)),Object(r.l)({},f&&f.paramValues)||{}),o),p=Object(r.l)(s,h,u);return new a.a(e.state).applyRawParams(p)}))},t.treeChanges=function(e,n,r){for(var i,o,a,s,u,c,l=Math.min(e.length,n.length),f=0;f<l&&e[f].state!==r&&(i=e[f],o=n[f],i.equals(o,t.nonDynamicParams));)f++;s=(a=e).slice(0,f),u=a.slice(f);var h=s.map((function(t,e){var r=t.clone();return r.paramValues=n[e].paramValues,r}));return c=n.slice(f),{from:a,to:h.concat(c),retained:s,retainedWithToParams:h,exiting:u,entering:c}},t.matching=function(t,e,n){var i=!1;return Object(r.e)(t,e).reduce((function(t,e){var r=e[0],o=e[1];return(i=i||!r.equals(o,n))?t:t.concat(r)}),[])},t.equals=function(e,n,r){return e.length===n.length&&t.matching(e,n,r).length===e.length},t.subPath=function(t,e){var n=Object(r.n)(t,e),i=t.indexOf(n);return-1===i?void 0:t.slice(0,i+1)},t.nonDynamicParams=function(t){return t.state.parameters({inherit:!1}).filter((function(t){return!t.dynamic}))},t.paramValues=function(t){return t.reduce((function(t,e){return Object(r.l)(t,e.paramValues)}),{})},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i={log:r.x,error:r.x,table:r.x},o="undefined"!=typeof document&&document.documentMode&&9===document.documentMode?window&&window.console?function(t){var e=function(e){return Function.prototype.bind.call(e,t)};return{log:e(t.log),error:e(t.log),table:e(t.log)}}(window.console):i:console.table&&console.error?console:function(t){var e=t.log.bind(t);return{log:e,error:t.error?t.error.bind(t):e,table:t.table?t.table.bind(t):e}}(console)},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(1),i=n(6),o=n(4),a=function(){function t(t,e,n,r){this._stateRegistry=t,this._identifier=e,this._identifier=e,this._params=Object(o.g)({},n||{}),this._options=Object(o.g)({},r||{}),this._definition=t.matcher.find(e,this._options.relative)}return t.prototype.name=function(){return this._definition&&this._definition.name||this._identifier},t.prototype.identifier=function(){return this._identifier},t.prototype.params=function(){return this._params},t.prototype.$state=function(){return this._definition},t.prototype.state=function(){return this._definition&&this._definition.self},t.prototype.options=function(){return this._options},t.prototype.exists=function(){return!(!this._definition||!this._definition.self)},t.prototype.valid=function(){return!this.error()},t.prototype.error=function(){var t=this.options().relative;if(!this._definition&&t){var e=t.name?t.name:t;return"Could not resolve '"+this.name()+"' from state '"+e+"'"}return this._definition?this._definition.self?void 0:"State '"+this.name()+"' has an invalid definition":"No such state '"+this.name()+"'"},t.prototype.toString=function(){return"'"+this.name()+"'"+Object(i.k)(this.params())},t.prototype.withState=function(e){return new t(this._stateRegistry,e,this._params,this._options)},t.prototype.withParams=function(e,n){void 0===n&&(n=!1);var r=n?e:Object(o.g)({},this._params,e);return new t(this._stateRegistry,this._identifier,r,this._options)},t.prototype.withOptions=function(e,n){void 0===n&&(n=!1);var r=n?e:Object(o.g)({},this._options,e);return new t(this._stateRegistry,this._identifier,this._params,r)},t.isDef=function(t){return t&&t.state&&(Object(r.l)(t.state)||Object(r.i)(t.state)&&Object(r.l)(t.state.name))},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var r=n(0),i=n(3),o=n(8),a=n(5),s=n(34),u=n(11),c=n(14),l=n(6),f=n(4),h=s.a.when,p=[h.EAGER,h.LAZY],d=[h.EAGER],v=function(){function t(t){this._path=t}return t.prototype.getTokens=function(){return this._path.reduce((function(t,e){return t.concat(e.resolvables.map((function(t){return t.token})))}),[]).reduce(r.I,[])},t.prototype.getResolvable=function(t){var e=this._path.map((function(t){return t.resolvables})).reduce(r.K,[]).filter((function(e){return e.token===t}));return Object(r.G)(e)},t.prototype.getPolicy=function(t){var e=this.findNode(t);return t.getPolicy(e.state)},t.prototype.subContext=function(e){return new t(c.a.subPath(this._path,(function(t){return t.state===e})))},t.prototype.addResolvables=function(t,e){var n=Object(r.n)(this._path,Object(i.l)("state",e)),o=t.map((function(t){return t.token}));n.resolvables=n.resolvables.filter((function(t){return-1===o.indexOf(t.token)})).concat(t)},t.prototype.resolvePath=function(t,e){var n=this;void 0===t&&(t="LAZY");var u=(Object(r.s)(p,t)?t:"LAZY")===s.a.when.EAGER?d:p;o.a.traceResolvePath(this._path,t,e);var c=function(t,e){return function(i){return Object(r.s)(t,n.getPolicy(i)[e])}},l=this._path.reduce((function(t,r){var o=r.resolvables.filter(c(u,"when")),a=o.filter(c(["NOWAIT"],"async")),s=o.filter(Object(i.f)(c(["NOWAIT"],"async"))),l=n.subContext(r.state),f=function(t){return t.get(l,e).then((function(e){return{token:t.token,value:e}}))};return a.forEach(f),t.concat(s.map(f))}),[]);return a.b.$q.all(l)},t.prototype.injector=function(){return this._injector||(this._injector=new m(this))},t.prototype.findNode=function(t){return Object(r.n)(this._path,(function(e){return Object(r.s)(e.resolvables,t)}))},t.prototype.getDependencies=function(t){var e=this,n=this.findNode(t),i=(c.a.subPath(this._path,(function(t){return t===n}))||this._path).reduce((function(t,e){return t.concat(e.resolvables)}),[]).filter((function(e){return e!==t}));return t.deps.map((function(t){var n=i.filter((function(e){return e.token===t}));if(n.length)return Object(r.G)(n);var o=e.injector().getNative(t);if(Object(f.t)(o))throw new Error("Could not find Dependency Injection token: "+Object(l.k)(t));return new u.a(t,(function(){return o}),[],o)}))},t}(),m=function(){function t(t){this.context=t,this.native=this.get("Native Injector")||a.b.$injector}return t.prototype.get=function(t){var e=this.context.getResolvable(t);if(e){if("NOWAIT"===this.context.getPolicy(e).async)return e.get(this.context);if(!e.resolved)throw new Error("Resolvable async .get() not complete:"+Object(l.k)(e.token));return e.data}return this.getNative(t)},t.prototype.getAsync=function(t){var e=this.context.getResolvable(t);return e?e.get(this.context):a.b.$q.when(this.native.get(t))},t.prototype.getNative=function(t){return this.native&&this.native.get(t)},t}()},function(t,e,n){"use strict";var r=n(65);n.o(r,"BaseUrlRule")&&n.d(e,"BaseUrlRule",(function(){return r.BaseUrlRule})),n.o(r,"DefType")&&n.d(e,"DefType",(function(){return r.DefType})),n.o(r,"Param")&&n.d(e,"Param",(function(){return r.Param})),n.o(r,"ParamTypes")&&n.d(e,"ParamTypes",(function(){return r.ParamTypes})),n.o(r,"Resolvable")&&n.d(e,"Resolvable",(function(){return r.Resolvable})),n.o(r,"ResolveContext")&&n.d(e,"ResolveContext",(function(){return r.ResolveContext})),n.o(r,"UIRouter")&&n.d(e,"UIRouter",(function(){return r.UIRouter})),n.o(r,"ViewService")&&n.d(e,"ViewService",(function(){return r.ViewService}));var i=n(12);n.d(e,"DefType",(function(){return i.a})),n.d(e,"Param",(function(){return i.b}));var o=n(66);n.d(e,"ParamTypes",(function(){return o.a})),n(39),n(27)},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return u}));var r=n(4),i=function(t,e){var n=e[0],i=e[1];return t.hasOwnProperty(n)?Object(r.n)(t[n])?t[n].push(i):t[n]=[t[n],i]:t[n]=i,t},o=function(t){return t.split("&").filter(r.k).map(r.F).reduce(i,{})};function a(t){var e=function(t){return t||""},n=Object(r.G)(t).map(e),i=n[0],o=n[1],a=Object(r.H)(i).map(e);return{path:a[0],search:a[1],hash:o,url:t}}var s=function(t){var e=t.path(),n=t.search(),i=t.hash(),o=Object.keys(n).map((function(t){var e=n[t];return(Object(r.n)(e)?e:[e]).map((function(e){return t+"="+e}))})).reduce(r.N,[]).join("&");return e+(o?"?"+o:"")+(i?"#"+i:"")};function u(t,e,n,r){return function(i){var o=i.locationService=new n(i),a=i.locationConfig=new r(i,e);return{name:t,service:o,configuration:a,dispose:function(t){t.dispose(o),t.dispose(a)}}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(0),i=n(3),o=n(1),a=n(12),s=n(6),u=n(4);function c(t,e){var n=["",""],r=t.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!e)return r;switch(e.squash){case!1:n=["(",")"+(e.isOptional?"?":"")];break;case!0:r=r.replace(/\/$/,""),n=["(?:/(",")|/)?"];break;default:n=["("+e.squash+"|",")?"]}return r+n[0]+e.type.pattern.source+n[1]}var l=Object(s.i)("/"),f={state:{params:{}},strict:!0,caseInsensitive:!0,decodeParams:!0},h=function(){function t(e,n,o,a){var s=this;this._cache={path:[this]},this._children=[],this._params=[],this._segments=[],this._compiled=[],this.config=a=Object(u.e)(a,f),this.pattern=e;for(var l,h,p,d=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,v=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,m=[],g=0,$=function(n){if(!t.nameValidator.test(n))throw new Error("Invalid parameter name '"+n+"' in pattern '"+e+"'");if(Object(r.n)(s._params,Object(i.l)("id",n)))throw new Error("Duplicate parameter name '"+n+"' in pattern '"+e+"'")},y=function(t,i){var o,a=t[2]||t[3],u=i?t[4]:t[4]||("*"===t[1]?"[\\s\\S]*":null);return{id:a,regexp:u,segment:e.substring(g,t.index),type:u?n.type(u)||(o=u,Object(r.t)(n.type(i?"query":"path"),{pattern:new RegExp(o,s.config.caseInsensitive?"i":void 0)})):null}};(l=d.exec(e))&&!((h=y(l,!1)).segment.indexOf("?")>=0);)$(h.id),this._params.push(o.fromPath(h.id,h.type,a.state)),this._segments.push(h.segment),m.push([h.segment,Object(r.G)(this._params)]),g=d.lastIndex;var b=(p=e.substring(g)).indexOf("?");if(b>=0){var w=p.substring(b);if(p=p.substring(0,b),w.length>0)for(g=0;l=v.exec(w);)$((h=y(l,!0)).id),this._params.push(o.fromSearch(h.id,h.type,a.state)),g=d.lastIndex}this._segments.push(p),this._compiled=m.map((function(t){return c.apply(null,t)})).concat(c(p))}return t.encodeDashes=function(t){return encodeURIComponent(t).replace(/-/g,(function(t){return"%5C%"+t.charCodeAt(0).toString(16).toUpperCase()}))},t.pathSegmentsAndParams=function(t){var e=t._segments,n=t._params.filter((function(t){return t.location===a.a.PATH}));return Object(r.e)(e,n.concat(void 0)).reduce(r.K,[]).filter((function(t){return""!==t&&Object(o.c)(t)}))},t.queryParams=function(t){return t._params.filter((function(t){return t.location===a.a.SEARCH}))},t.compare=function(e,n){var i=function(e){return e._cache.weights=e._cache.weights||function(e){return e._cache.segments=e._cache.segments||e._cache.path.map(t.pathSegmentsAndParams).reduce(r.K,[]).reduce(s.c,[]).map((function(t){return Object(o.l)(t)?l(t):t})).reduce(r.K,[])}(e).map((function(t){return"/"===t?1:Object(o.l)(t)?2:t instanceof a.b?3:void 0}))},u=i(e),c=i(n);!function(t,e,n){for(var r=Math.max(t.length,e.length);t.length<r;)t.push(0);for(;e.length<r;)e.push(0)}(u,c);var f,h,p=Object(r.e)(u,c);for(h=0;h<p.length;h++)if(0!=(f=p[h][0]-p[h][1]))return f;return 0},t.prototype.append=function(t){return this._children.push(t),t._cache={path:this._cache.path.concat(t),parent:this,pattern:null},t},t.prototype.isRoot=function(){return this._cache.path[0]===this},t.prototype.toString=function(){return this.pattern},t.prototype._getDecodedParamValue=function(t,e){return Object(o.c)(t)&&(this.config.decodeParams&&!e.type.raw&&(t=Object(o.a)(t)?t.map((function(t){return decodeURIComponent(t)})):decodeURIComponent(t)),t=e.type.decode(t)),e.value(t)},t.prototype.exec=function(t,e,n,o){var a=this;void 0===e&&(e={}),void 0===o&&(o={});var s,u,c=(s=this._cache,"pattern",u=function(){return new RegExp(["^",Object(r.J)(a._cache.path.map(Object(i.k)("_compiled"))).join(""),!1===a.config.strict?"/?":"","$"].join(""),a.config.caseInsensitive?"i":void 0)},s.pattern=s.pattern||u()).exec(t);if(!c)return null;var l,f,h,p=this.parameters(),d=p.filter((function(t){return!t.isSearch()})),v=p.filter((function(t){return t.isSearch()})),m=this._cache.path.map((function(t){return t._segments.length-1})).reduce((function(t,e){return t+e})),g={};if(m!==c.length-1)throw new Error("Unbalanced capture group in route '"+this.pattern+"'");for(var $=0;$<m;$++){for(var y=d[$],b=c[$+1],w=0;w<y.replace.length;w++)y.replace[w].from===b&&(b=y.replace[w].to);b&&!0===y.array&&(void 0,void 0,void 0,f=(l=function(t){return t.split("").reverse().join("")})(b).split(/-(?!\\)/),h=Object(r.u)(f,l),b=Object(r.u)(h,(function(t){return t.replace(/\\-/g,"-")})).reverse()),g[y.id]=this._getDecodedParamValue(b,y)}return v.forEach((function(t){for(var n=e[t.id],r=0;r<t.replace.length;r++)t.replace[r].from===n&&(n=t.replace[r].to);g[t.id]=a._getDecodedParamValue(n,t)})),n&&(g["#"]=n),g},t.prototype.parameters=function(t){return void 0===t&&(t={}),!1===t.inherit?this._params:Object(r.J)(this._cache.path.map((function(t){return t._params})))},t.prototype.parameter=function(t,e){var n=this;void 0===e&&(e={});var r=this._cache.parent;return function(){for(var e=0,r=n._params;e<r.length;e++){var i=r[e];if(i.id===t)return i}}()||!1!==e.inherit&&r&&r.parameter(t,e)||null},t.prototype.validates=function(t){return t=t||{},this.parameters().filter((function(e){return t.hasOwnProperty(e.id)})).map((function(e){return n=e,r=t[e.id],!n||n.validates(r);var n,r})).reduce(r.a,!0)},t.prototype.format=function(e){void 0===e&&(e={});var n=this._cache.path,i=n.map(t.pathSegmentsAndParams).reduce(r.K,[]).map((function(t){return Object(o.l)(t)?t:s(t)})),a=n.map(t.queryParams).reduce(r.K,[]).map(s);if(i.concat(a).filter((function(t){return!1===t.isValid})).length)return null;function s(t){var n=t.value(e[t.id]),r=t.validates(n),i=t.isDefaultValue(n),o=!!i&&t.squash,a=t.type.encode(n);return{param:t,value:n,isValid:r,isDefaultValue:i,squash:o,encoded:a}}var u=i.reduce((function(e,n){if(Object(o.l)(n))return e+n;var i=n.squash,a=n.encoded,s=n.param;return!0===i?e.match(/\/$/)?e.slice(0,-1):e:Object(o.l)(i)?e+i:!1!==i||null==a?e:Object(o.a)(a)?e+Object(r.u)(a,t.encodeDashes).join("-"):s.raw?e+a:e+encodeURIComponent(a)}),""),c=a.map((function(t){var e=t.param,n=t.squash,i=t.encoded,a=t.isDefaultValue;if(!(null==i||a&&!1!==n)&&(Object(o.a)(i)||(i=[i]),0!==i.length))return e.raw||(i=Object(r.u)(i,encodeURIComponent)),i.map((function(t){return e.id+"="+t}))})).filter(r.r).reduce(r.K,[]).join("&");return u+(c?"?"+c:"")+(e["#"]?"#"+e["#"]:"")},t.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/,t}()},function(t,e,n){"use strict";n(34);var r=n(11);n.d(e,"a",(function(){return r.a}));var i=n(17);n.d(e,"b",(function(){return i.a}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(19),o=function(){function t(t,e){var n=this;this.fireAfterUpdate=e,this._listeners=[],this._listener=function(t){return n._listeners.forEach((function(e){return e(t)}))},this.hash=function(){return Object(i.d)(n._get()).hash},this.path=function(){return Object(i.d)(n._get()).path},this.search=function(){return Object(i.b)(Object(i.d)(n._get()).search)},this._location=r.D.location,this._history=r.D.history}return t.prototype.url=function(t,e){return void 0===e&&(e=!0),Object(r.o)(t)&&t!==this._get()&&(this._set(null,null,t,e),this.fireAfterUpdate&&this._listeners.forEach((function(e){return e({url:t})}))),Object(i.a)(this)},t.prototype.onChange=function(t){var e=this;return this._listeners.push(t),function(){return Object(r.C)(e._listeners,t)}},t.prototype.dispose=function(t){Object(r.f)(this._listeners)},t}()},function(t,e,n){"use strict";var r=n(68);n.o(r,"BaseUrlRule")&&n.d(e,"BaseUrlRule",(function(){return r.BaseUrlRule})),n.o(r,"TargetState")&&n.d(e,"TargetState",(function(){return r.TargetState})),n.o(r,"UIRouter")&&n.d(e,"UIRouter",(function(){return r.UIRouter})),n.o(r,"ViewService")&&n.d(e,"ViewService",(function(){return r.ViewService})),n(40),n(24),n(41),n(42),n(43),n(44);var i=n(16);n.d(e,"TargetState",(function(){return i.a}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(0),i=n(3),o=n(33),a=n(1),s=function(){function t(e){return t.create(e||{})}return t.create=function(e){e=t.isStateClass(e)?new e:e;var n=Object(r.t)(Object(r.t)(e,t.prototype));return e.$$state=function(){return n},n.self=e,n.__stateObjectCache={nameGlob:o.a.fromString(n.name)},n},t.prototype.is=function(t){return this===t||this.self===t||this.fqn()===t},t.prototype.fqn=function(){if(!(this.parent&&this.parent instanceof this.constructor))return this.name;var t=this.parent.fqn();return t?t+"."+this.name:this.name},t.prototype.root=function(){return this.parent&&this.parent.root()||this},t.prototype.parameters=function(t){return((t=Object(r.i)(t,{inherit:!0,matchingKeys:null})).inherit&&this.parent&&this.parent.parameters()||[]).concat(Object(r.L)(this.params)).filter((function(e){return!t.matchingKeys||t.matchingKeys.hasOwnProperty(e.id)}))},t.prototype.parameter=function(t,e){return void 0===e&&(e={}),this.url&&this.url.parameter(t,e)||Object(r.n)(Object(r.L)(this.params),Object(i.l)("id",t))||e.inherit&&this.parent&&this.parent.parameter(t)},t.prototype.toString=function(){return this.fqn()},t.isStateClass=function(t){return Object(a.d)(t)&&!0===t.__uiRouterState},t.isStateDeclaration=function(t){return Object(a.d)(t.$$state)},t.isState=function(t){return Object(a.i)(t.__stateObjectCache)},t}()},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return s}));var r=n(4),i=n(10);function o(t,e,n){var i=Object(r.s)(e)?[e]:e;return!!(Object(r.p)(i)?i:function(t){for(var e=i,n=0;n<e.length;n++){var o=new r.a(e[n]);if(o&&o.matches(t.name)||!o&&e[n]===t.name)return!0}return!1})(t,n)}var a=function(){function t(t,e,n,r,i,o){void 0===o&&(o={}),this.tranSvc=t,this.eventType=e,this.callback=n,this.matchCriteria=r,this.removeHookFromRegistry=i,this.invokeCount=0,this._deregistered=!1,this.priority=o.priority||0,this.bind=o.bind||null,this.invokeLimit=o.invokeLimit}return t.prototype._matchingNodes=function(t,e,n){if(!0===e)return t;var r=t.filter((function(t){return o(t.state,e,n)}));return r.length?r:null},t.prototype._getDefaultMatchCriteria=function(){return Object(r.w)(this.tranSvc._pluginapi._getPathTypes(),(function(){return!0}))},t.prototype._getMatchingNodes=function(t,e){var n=this,o=Object(r.g)(this._getDefaultMatchCriteria(),this.matchCriteria);return Object(r.P)(this.tranSvc._pluginapi._getPathTypes()).reduce((function(a,s){var u=s.scope===i.b.STATE,c=t[s.name]||[],l=u?c:[Object(r.J)(c)];return a[s.name]=n._matchingNodes(l,o[s.name],e),a}),{})},t.prototype.matches=function(t,e){var n=this._getMatchingNodes(t,e);return Object(r.P)(n).every(r.k)?n:null},t.prototype.deregister=function(){this.removeHookFromRegistry(this),this._deregistered=!0},t}();function s(t,e,n){var i=(t._registeredHooks=t._registeredHooks||{})[n.name]=[],o=Object(r.C)(i);function s(t,r,s){void 0===s&&(s={});var u=new a(e,n,r,t,o,s);return i.push(u),u.deregister.bind(u)}return t[n.name]=s,s}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),i=function(){function t(t,e){void 0===t&&(t=[]),void 0===e&&(e=null),this._items=t,this._limit=e,this._evictListeners=[],this.onEvict=Object(r.B)(this._evictListeners)}return t.prototype.enqueue=function(t){var e=this._items;return e.push(t),this._limit&&e.length>this._limit&&this.evict(),t},t.prototype.evict=function(){var t=this._items.shift();return this._evictListeners.forEach((function(e){return e(t)})),t},t.prototype.dequeue=function(){if(this.size())return this._items.splice(0,1)[0]},t.prototype.clear=function(){var t=this._items;return this._items=[],t},t.prototype.size=function(){return this._items.length},t.prototype.remove=function(t){var e=this._items.indexOf(t);return e>-1&&this._items.splice(e,1)[0]},t.prototype.peekTail=function(){return this._items[this._items.length-1]},t.prototype.peekHead=function(){if(this.size())return this._items[0]},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(1),o=function(){function t(t){this.pattern=/.*/,this.inherit=!0,Object(r.l)(this,t)}return t.prototype.is=function(t,e){return!0},t.prototype.encode=function(t,e){return t},t.prototype.decode=function(t,e){return t},t.prototype.equals=function(t,e){return t==e},t.prototype.$subPattern=function(){var t=this.pattern.toString();return t.substr(1,t.length-2)},t.prototype.toString=function(){return"{ParamType:"+this.name+"}"},t.prototype.$normalize=function(t){return this.is(t)?t:this.decode(t)},t.prototype.$asArray=function(t,e){if(!t)return this;if("auto"===t&&!e)throw new Error("'auto' array mode is for query parameters only");return new a(this,t)},t}();function a(t,e){var n=this;function o(t){return Object(i.a)(t)?t:Object(i.c)(t)?[t]:[]}function a(t,n){return function(a){if(Object(i.a)(a)&&0===a.length)return a;var s=o(a),u=Object(r.u)(s,t);return!0===n?0===Object(r.m)(u,(function(t){return!t})).length:function(t){switch(t.length){case 0:return;case 1:return"auto"===e?t[0]:t;default:return t}}(u)}}function s(t){return function(e,n){var r=o(e),i=o(n);if(r.length!==i.length)return!1;for(var a=0;a<r.length;a++)if(!t(r[a],i[a]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach((function(e){var r=t[e].bind(t),i="equals"===e?s:a;n[e]=i(r)})),Object(r.l)(this,{dynamic:t.dynamic,name:t.name,pattern:t.pattern,inherit:t.inherit,raw:t.raw,is:a(t.is.bind(t),!0),$arrayMode:e})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(0),i=n(3),o=n(12),a=function(){function t(e){if(e instanceof t){var n=e;this.state=n.state,this.paramSchema=n.paramSchema.slice(),this.paramValues=Object(r.l)({},n.paramValues),this.resolvables=n.resolvables.slice(),this.views=n.views&&n.views.slice()}else{var i=e;this.state=i,this.paramSchema=i.parameters({inherit:!1}),this.paramValues={},this.resolvables=i.resolvables.map((function(t){return t.clone()}))}}return t.prototype.clone=function(){return new t(this)},t.prototype.applyRawParams=function(t){return this.paramValues=this.paramSchema.reduce((function(e,n){return Object(r.d)(e,[(i=n).id,i.value(t[i.id])]);var i}),{}),this},t.prototype.parameter=function(t){return Object(r.n)(this.paramSchema,Object(i.l)("id",t))},t.prototype.equals=function(t,e){var n=this.diff(t,e);return n&&0===n.length},t.prototype.diff=function(t,e){if(this.state!==t.state)return!1;var n=e?e(this):this.paramSchema;return o.b.changed(n,this.paramValues,t.paramValues)},t.clone=function(t){return t.clone()},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var r=n(8),i=n(5),o=n(6),a=n(0),s=n(1),u=n(3),c=n(10),l=n(13),f=n(25),h=n(45),p=n(14),d=n(12),v=n(11),m=n(17),g=n(7),$=n(4),y=Object(u.k)("self"),b=function(){function t(t,e,n){var r=this;if(this._deferred=i.b.$q.defer(),this.promise=this._deferred.promise,this._registeredHooks={},this._hookBuilder=new h.a(this),this.isActive=function(){return r.router.globals.transition===r},this.router=n,this._targetState=e,!e.valid())throw new Error(e.error());this._options=Object(a.l)({current:Object(u.m)(this)},e.options()),this.$id=n.transitionService._transitionCount++;var o=p.a.buildToPath(t,e);this._treeChanges=p.a.treeChanges(t,o,this._options.reloadState),this.createTransitionHookRegFns();var s=this._hookBuilder.buildHooksForPhase(c.a.CREATE);l.a.invokeHooks(s,(function(){return null})),this.applyViewConfigs(n)}return t.prototype.onBefore=function(t,e,n){},t.prototype.onStart=function(t,e,n){},t.prototype.onExit=function(t,e,n){},t.prototype.onRetain=function(t,e,n){},t.prototype.onEnter=function(t,e,n){},t.prototype.onFinish=function(t,e,n){},t.prototype.onSuccess=function(t,e,n){},t.prototype.onError=function(t,e,n){},t.prototype.createTransitionHookRegFns=function(){var t=this;this.router.transitionService._pluginapi._getEvents().filter((function(t){return t.hookPhase!==c.a.CREATE})).forEach((function(e){return Object(f.a)(t,t.router.transitionService,e)}))},t.prototype.getHooks=function(t){return this._registeredHooks[t]},t.prototype.applyViewConfigs=function(t){var e=this._treeChanges.entering.map((function(t){return t.state}));p.a.applyViewConfigs(t.transitionService.$view,this._treeChanges.to,e)},t.prototype.$from=function(){return Object(a.G)(this._treeChanges.from).state},t.prototype.$to=function(){return Object(a.G)(this._treeChanges.to).state},t.prototype.from=function(){return this.$from().self},t.prototype.to=function(){return this.$to().self},t.prototype.targetState=function(){return this._targetState},t.prototype.is=function(e){return e instanceof t?this.is({to:e.$to().name,from:e.$from().name}):!(e.to&&!Object(f.b)(this.$to(),e.to,this)||e.from&&!Object(f.b)(this.$from(),e.from,this))},t.prototype.params=function(t){return void 0===t&&(t="to"),Object.freeze(this._treeChanges[t].map(Object(u.k)("paramValues")).reduce(a.w,{}))},t.prototype.paramsChanged=function(){var t=this.params("from"),e=this.params("to"),n=[].concat(this._treeChanges.to).concat(this._treeChanges.from).map((function(t){return t.paramSchema})).reduce($.i,[]).reduce($.M,[]);return d.b.changed(n,t,e).reduce((function(t,n){return t[n.id]=e[n.id],t}),{})},t.prototype.injector=function(t,e){void 0===e&&(e="to");var n=this._treeChanges[e];return t&&(n=p.a.subPath(n,(function(e){return e.state===t||e.state.name===t}))),new m.a(n).injector()},t.prototype.getResolveTokens=function(t){return void 0===t&&(t="to"),new m.a(this._treeChanges[t]).getTokens()},t.prototype.addResolvable=function(t,e){void 0===e&&(e=""),t=Object(u.e)(v.a)(t)?t:new v.a(t);var n="string"==typeof e?e:e.name,r=this._treeChanges.to,i=Object(a.n)(r,(function(t){return t.state.name===n}));new m.a(r).addResolvables([t],i.state)},t.prototype.redirectedFrom=function(){return this._options.redirectedFrom||null},t.prototype.originalTransition=function(){var t=this.redirectedFrom();return t&&t.originalTransition()||this},t.prototype.options=function(){return this._options},t.prototype.entering=function(){return Object(a.u)(this._treeChanges.entering,Object(u.k)("state")).map(y)},t.prototype.exiting=function(){return Object(a.u)(this._treeChanges.exiting,Object(u.k)("state")).map(y).reverse()},t.prototype.retained=function(){return Object(a.u)(this._treeChanges.retained,Object(u.k)("state")).map(y)},t.prototype.views=function(t,e){void 0===t&&(t="entering");var n=this._treeChanges[t];return(n=e?n.filter(Object(u.l)("state",e)):n).map(Object(u.k)("views")).filter(a.r).reduce(a.K,[])},t.prototype.treeChanges=function(t){return t?this._treeChanges[t]:this._treeChanges},t.prototype.redirect=function(t){for(var e=1,n=this;null!=(n=n.redirectedFrom());)if(++e>20)throw new Error("Too many consecutive Transition redirects (20+)");var r={redirectedFrom:this,source:"redirect"};"url"===this.options().source&&!1!==t.options().location&&(r.location="replace");var i=Object(a.l)({},this.options(),t.options(),r);t=t.withOptions(i,!0);var o,s=this.router.transitionService.create(this._treeChanges.from,t),c=this._treeChanges.entering,l=s._treeChanges.entering;return p.a.matching(l,c,p.a.nonDynamicParams).filter(Object(u.f)((o=t.options().reloadState,function(t){return o&&t.state.includes[o.name]}))).forEach((function(t,e){t.resolvables=c[e].resolvables})),s},t.prototype._changedParams=function(){var t=this._treeChanges;if(!(this._options.reload||t.exiting.length||t.entering.length||t.to.length!==t.from.length||Object(a.e)(t.to,t.from).map((function(t){return t[0].state!==t[1].state})).reduce(a.c,!1))){var e=t.to.map((function(t){return t.paramSchema})),n=[t.to,t.from].map((function(t){return t.map((function(t){return t.paramValues}))})),r=n[0],i=n[1];return Object(a.e)(e,r,i).map((function(t){var e=t[0],n=t[1],r=t[2];return d.b.changed(e,n,r)})).reduce(a.K,[])}},t.prototype.dynamic=function(){var t=this._changedParams();return!!t&&t.map((function(t){return t.dynamic})).reduce(a.c,!1)},t.prototype.ignored=function(){return!!this._ignoredReason()},t.prototype._ignoredReason=function(){var t=this.router.globals.transition,e=this._options.reloadState,n=function(t,n){if(t.length!==n.length)return!1;var r=p.a.matching(t,n);return t.length===r.filter((function(t){return!e||!t.state.includes[e.name]})).length},r=this.treeChanges(),i=t&&t.treeChanges();return i&&n(i.to,r.to)&&n(i.exiting,r.exiting)?"SameAsPending":0===r.exiting.length&&0===r.entering.length&&n(r.from,r.to)?"SameAsCurrent":void 0},t.prototype.run=function(){var t=this,e=l.a.runAllHooks,n=function(e){return t._hookBuilder.buildHooksForPhase(e)},o=n(c.a.BEFORE);return l.a.invokeHooks(o,(function(){var e=t.router.globals;return e.lastStartedTransitionId=t.$id,e.transition=t,e.transitionHistory.enqueue(t),r.a.traceTransitionStart(t),i.b.$q.when(void 0)})).then((function(){var t=n(c.a.RUN);return l.a.invokeHooks(t,(function(){return i.b.$q.when(void 0)}))})).then((function(){r.a.traceSuccess(t.$to(),t),t.success=!0,t._deferred.resolve(t.to()),e(n(c.a.SUCCESS))}),(function(i){r.a.traceError(i,t),t.success=!1,t._deferred.reject(i),t._error=i,e(n(c.a.ERROR))})),this.promise},t.prototype.valid=function(){return!this.error()||void 0!==this.success},t.prototype.abort=function(){Object(s.m)(this.success)&&(this._aborted=!0)},t.prototype.error=function(){var t=this.$to();if(t.self.abstract)return g.b.invalid("Cannot transition to abstract state '"+t.name+"'");var e=t.parameters(),n=this.params(),r=e.filter((function(t){return!t.validates(n[t.id])}));if(r.length){var i=r.map((function(t){return"["+t.id+":"+Object(o.k)(n[t.id])+"]"})).join(", "),a="The following parameter values are not valid for state '"+t.name+"': "+i;return g.b.invalid(a)}return!1===this.success?this._error:void 0},t.prototype.toString=function(){var t=this.from(),e=this.to(),n=function(t){return null!==t["#"]&&void 0!==t["#"]?t:Object(a.y)(t,["#"])};return"Transition#"+this.$id+"( '"+(Object(s.i)(t)?t.name:t)+"'"+Object(o.k)(n(this._treeChanges.from.map(Object(u.k)("paramValues")).reduce(a.w,{})))+" -> "+(this.valid()?"":"(X) ")+"'"+(Object(s.i)(e)?e.name:e)+"'"+Object(o.k)(n(this.params()))+" )"},t.diToken=t,t}()},function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return c}));var r=n(20),i=n(1),o=n(0),a=n(3),s=n(24),u=function(){function t(t){this.router=t}return t.prototype.compile=function(t){return this.router.urlMatcherFactory.compile(t)},t.prototype.create=function(t,e){var n=this,o=s.a.isState,u=s.a.isStateDeclaration,l=Object(a.i)([[i.l,function(t){return l(n.compile(t))}],[Object(a.e)(r.a),function(t){return n.fromUrlMatcher(t,e)}],[Object(a.g)(o,u),function(t){return n.fromState(t,n.router)}],[Object(a.e)(RegExp),function(t){return n.fromRegExp(t,e)}],[i.d,function(t){return new c(t,e)}]]),f=l(t);if(!f)throw new Error("invalid 'what' in when()");return f},t.prototype.fromUrlMatcher=function(t,e){var n=e;Object(i.l)(e)&&(e=this.router.urlMatcherFactory.compile(e)),Object(a.e)(r.a)(e)&&(n=function(t){return e.format(t)});var s={urlMatcher:t,matchPriority:function(e){var n=t.parameters().filter((function(t){return t.isOptional}));return n.length?n.filter((function(t){return e[t.id]})).length/n.length:1e-6},type:"URLMATCHER"};return Object(o.l)(new c((function(e){var n=t.exec(e.path,e.search,e.hash);return t.validates(n)&&n}),n),s)},t.prototype.fromState=function(t,e){var n=s.a.isStateDeclaration(t)?t.$$state():t,r={state:n,type:"STATE"};return Object(o.l)(this.fromUrlMatcher(n.url,(function(t){var r=e.stateService,i=e.globals;r.href(n,t)!==r.href(i.current,i.params)&&r.transitionTo(n,t,{inherit:!0,source:"url"})})),r)},t.prototype.fromRegExp=function(t,e){if(t.global||t.sticky)throw new Error("Rule RegExp must not be global or sticky");var n=Object(i.l)(e)?function(t){return e.replace(/\$(\$|\d{1,2})/,(function(e,n){return t["$"===n?0:Number(n)]}))}:e,r={regexp:t,type:"REGEXP"};return Object(o.l)(new c((function(e){return t.exec(e.path)}),n),r)},t.isUrlRule=function(t){return t&&["type","match","handler"].every((function(e){return Object(i.c)(t[e])}))},t}(),c=function(t,e){var n=this;this.match=t,this.type="RAW",this.matchPriority=function(t){return 0-n.$id},this.handler=e||o.r}},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return u}));var r=n(2);function i(){var t=null;return function(e,n){return t=t||r.services.$injector.get("$templateFactory"),[new u(e,n,t)]}}var o=function(t,e){return t.reduce((function(t,n){return t||Object(r.isDefined)(e[n])}),!1)};function a(t){if(!t.parent)return{};var e=["component","bindings","componentProvider"],n=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),i=e.concat(n);if(Object(r.isDefined)(t.views)&&o(i,t))throw new Error("State '"+t.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(e){return Object(r.isDefined)(t[e])})).join(", "));var a={},s=t.views||{$default:Object(r.pick)(t,i)};return Object(r.forEach)(s,(function(i,s){if(s=s||"$default",Object(r.isString)(i)&&(i={component:i}),i=Object(r.extend)({},i),o(e,i)&&o(n,i))throw new Error("Cannot combine: "+e.join("|")+" with: "+n.join("|")+" in stateview: '"+s+"@"+t.name+"'");i.resolveAs=i.resolveAs||"$resolve",i.$type="ng1",i.$context=t,i.$name=s;var u=r.ViewService.normalizeUIViewTarget(i.$context,i.$name);i.$uiViewName=u.uiViewName,i.$uiViewContextAnchor=u.uiViewContextAnchor,a[s]=i})),a}var s=0,u=function(){function t(t,e,n){var r=this;this.path=t,this.viewDecl=e,this.factory=n,this.$id=s++,this.loaded=!1,this.getTemplate=function(t,e){return r.component?r.factory.makeComponentTemplate(t,e,r.component,r.viewDecl.bindings):r.template}}return t.prototype.load=function(){var t=this,e=r.services.$q,n=new r.ResolveContext(this.path),i=this.path.reduce((function(t,e){return Object(r.extend)(t,e.paramValues)}),{}),o={template:e.when(this.factory.fromConfig(this.viewDecl,i,n)),controller:e.when(this.getController(n))};return e.all(o).then((function(e){return r.trace.traceViewServiceEvent("Loaded",t),t.controller=e.controller,Object(r.extend)(t,e.template),t}))},t.prototype.getController=function(t){var e=this.viewDecl.controllerProvider;if(!Object(r.isInjectable)(e))return this.viewDecl.controller;var n=r.services.$injector.annotate(e),i=Object(r.isArray)(e)?Object(r.tail)(e):e;return new r.Resolvable("",i,n).get(t)},t}()},function(t,e,n){"use strict";n.d(e,"b",(function(){return N})),n.d(e,"a",(function(){return U}));var r=n(10),i=n(29),o=n(25),a=n(46),s=n(21),u=n(4);function c(t){t.addResolvable(s.a.fromData(a.a,t.router),""),t.addResolvable(s.a.fromData(i.a,t),""),t.addResolvable(s.a.fromData("$transition$",t),""),t.addResolvable(s.a.fromData("$stateParams",t.params()),""),t.entering().forEach((function(e){t.addResolvable(s.a.fromData("$state$",e),e)}))}var l=["$transition$",i.a],f=Object(u.l)(l),h=function(t){var e=Object(u.P)(t.treeChanges()).reduce(u.N,[]).reduce(u.M,[]),n=function(t){return f(t.token)?s.a.fromData(t.token,null):t};e.forEach((function(t){t.resolvables=t.resolvables.map(n)}))},p=n(1),d=n(5),v=n(16),m=function(t){var e=t.to().redirectTo;if(e){var n=t.router.stateService;return Object(p.d)(e)?d.b.$q.when(e(t)).then(r):r(e)}function r(e){if(e)return e instanceof v.a?e:Object(p.l)(e)?n.target(e,t.params(),t.options()):e.state||e.params?n.target(e.state||t.to(),e.params||t.params(),t.options()):void 0}};function g(t){return function(e,n){return(0,n.$$state()[t])(e,n)}}var $=g("onExit"),y=g("onRetain"),b=g("onEnter"),w=n(0),O=n(17),x=n(3),C=function(t){return new O.a(t.treeChanges().to).resolvePath("EAGER",t).then(w.x)},S=function(t,e){return new O.a(t.treeChanges().to).subContext(e.$$state()).resolvePath("LAZY",t).then(w.x)},_=function(t){return new O.a(t.treeChanges().to).resolvePath("LAZY",t).then(w.x)},E=function(t){var e=d.b.$q,n=t.views("entering");if(n.length)return e.all(n.map((function(t){return e.when(t.load())}))).then(w.x)},j=function(t){var e=t.views("entering"),n=t.views("exiting");if(e.length||n.length){var r=t.router.viewService;n.forEach((function(t){return r.deactivateViewConfig(t)})),e.forEach((function(t){return r.activateViewConfig(t)})),r.sync()}},A=function(t){var e=t.router.globals,n=function(){e.transition===t&&(e.transition=null)};t.onSuccess({},(function(){e.successfulTransitions.enqueue(t),e.$current=t.$to(),e.current=e.$current.self,Object(w.g)(t.params(),e.params)}),{priority:1e4}),t.promise.then(n,n)},k=function(t){var e=t.options(),n=t.router.stateService,r=t.router.urlRouter;if("url"!==e.source&&e.location&&n.$current.navigable){var i={replace:"replace"===e.location};r.push(n.$current.navigable.url,n.params,i)}r.update(!0)},T=n(62),R=n(54),P=n(13),D=n(8),I=n(7);function M(t){var e=t._ignoredReason();if(e){D.a.traceTransitionIgnored(t);var n=t.router.globals.transition;return"SameAsCurrent"===e&&n&&n.abort(),I.b.ignored().toPromise()}}function V(t){if(!t.valid())throw new Error(t.error().toString())}var N={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:function(){return null},source:"unknown"},U=function(){function t(t){this._transitionCount=0,this._eventTypes=[],this._registeredHooks={},this._criteriaPaths={},this._router=t,this.$view=t.viewService,this._deregisterHookFns={},this._pluginapi=Object(w.h)(Object(x.m)(this),{},Object(x.m)(this),["_definePathType","_defineEvent","_getPathTypes","_getEvents","getHooks"]),this._defineCorePaths(),this._defineCoreEvents(),this._registerCoreTransitionHooks(),t.globals.successfulTransitions.onEvict(h)}return t.prototype.onCreate=function(t,e,n){},t.prototype.onBefore=function(t,e,n){},t.prototype.onStart=function(t,e,n){},t.prototype.onExit=function(t,e,n){},t.prototype.onRetain=function(t,e,n){},t.prototype.onEnter=function(t,e,n){},t.prototype.onFinish=function(t,e,n){},t.prototype.onSuccess=function(t,e,n){},t.prototype.onError=function(t,e,n){},t.prototype.dispose=function(t){Object(w.L)(this._registeredHooks).forEach((function(t){return t.forEach((function(e){e._deregistered=!0,Object(w.C)(t,e)}))}))},t.prototype.create=function(t,e){return new i.a(t,e,this._router)},t.prototype._defineCoreEvents=function(){var t=r.a,e=P.a,n=this._criteriaPaths;this._defineEvent("onCreate",t.CREATE,0,n.to,!1,e.LOG_REJECTED_RESULT,e.THROW_ERROR,!0),this._defineEvent("onBefore",t.BEFORE,0,n.to),this._defineEvent("onStart",t.RUN,0,n.to),this._defineEvent("onExit",t.RUN,100,n.exiting,!0),this._defineEvent("onRetain",t.RUN,200,n.retained),this._defineEvent("onEnter",t.RUN,300,n.entering),this._defineEvent("onFinish",t.RUN,400,n.to),this._defineEvent("onSuccess",t.SUCCESS,0,n.to,!1,e.LOG_REJECTED_RESULT,e.LOG_ERROR,!0),this._defineEvent("onError",t.ERROR,0,n.to,!1,e.LOG_REJECTED_RESULT,e.LOG_ERROR,!0)},t.prototype._defineCorePaths=function(){var t=r.b.STATE,e=r.b.TRANSITION;this._definePathType("to",e),this._definePathType("from",e),this._definePathType("exiting",t),this._definePathType("retained",t),this._definePathType("entering",t)},t.prototype._defineEvent=function(t,e,n,r,i,a,s,u){void 0===i&&(i=!1),void 0===a&&(a=P.a.HANDLE_RESULT),void 0===s&&(s=P.a.REJECT_ERROR),void 0===u&&(u=!1);var c=new R.a(t,e,n,r,i,a,s,u);this._eventTypes.push(c),Object(o.a)(this,this,c)},t.prototype._getEvents=function(t){return(Object(p.c)(t)?this._eventTypes.filter((function(e){return e.hookPhase===t})):this._eventTypes.slice()).sort((function(t,e){var n=t.hookPhase-e.hookPhase;return 0===n?t.hookOrder-e.hookOrder:n}))},t.prototype._definePathType=function(t,e){this._criteriaPaths[t]={name:t,scope:e}},t.prototype._getPathTypes=function(){return this._criteriaPaths},t.prototype.getHooks=function(t){return this._registeredHooks[t]},t.prototype._registerCoreTransitionHooks=function(){var t=this._deregisterHookFns;t.addCoreResolves=this.onCreate({},c),t.ignored=function(t){return t.onBefore({},M,{priority:-9999})}(this),t.invalid=function(t){return t.onBefore({},V,{priority:-1e4})}(this),t.redirectTo=function(t){return t.onStart({to:function(t){return!!t.redirectTo}},m)}(this),t.onExit=function(t){return t.onExit({exiting:function(t){return!!t.onExit}},$)}(this),t.onRetain=function(t){return t.onRetain({retained:function(t){return!!t.onRetain}},y)}(this),t.onEnter=function(t){return t.onEnter({entering:function(t){return!!t.onEnter}},b)}(this),t.eagerResolve=function(t){return t.onStart({},C,{priority:1e3})}(this),t.lazyResolve=function(t){return t.onEnter({entering:Object(x.m)(!0)},S,{priority:1e3})}(this),t.resolveAll=function(t){return t.onFinish({},_,{priority:1e3})}(this),t.loadViews=function(t){return t.onFinish({},E)}(this),t.activateViews=function(t){return t.onSuccess({},j)}(this),t.updateGlobals=function(t){return t.onCreate({},A)}(this),t.updateUrl=function(t){return t.onSuccess({},k,{priority:9999})}(this),t.lazyLoad=Object(T.b)(this)},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(t){this.text=t,this.glob=t.split(".");var e=this.text.split(".").map((function(t){return"**"===t?"(?:|(?:\\.[^.]*)*)":"*"===t?"\\.[^.]*":"\\."+t})).join("");this.regexp=new RegExp("^"+e+"$")}return t.is=function(t){return!!/[!,*]+/.exec(t)},t.fromString=function(e){return t.is(e)?new t(e):null},t.prototype.matches=function(t){return this.regexp.test("."+t)},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={when:{LAZY:"LAZY",EAGER:"EAGER"},async:{WAIT:"WAIT",NOWAIT:"NOWAIT"}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(4),i={when:function(t){return new Promise((function(e,n){return e(t)}))},reject:function(t){return new Promise((function(e,n){n(t)}))},defer:function(){var t={};return t.promise=new Promise((function(e,n){t.resolve=e,t.reject=n})),t},all:function(t){if(Object(r.n)(t))return Promise.all(t);if(Object(r.r)(t)){var e=Object.keys(t).map((function(e){return t[e].then((function(t){return{key:e,val:t}}))}));return i.all(e).then((function(t){return t.reduce((function(t,e){return t[e.key]=e.val,t}),{})}))}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(4),i={},o=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,a=/([^\s,]+)/g,s={get:function(t){return i[t]},has:function(t){return null!=s.get(t)},invoke:function(t,e,n){var o=Object(r.g)({},i,n||{}),a=s.annotate(t),u=Object(r.c)((function(t){return o.hasOwnProperty(t)}),(function(t){return"DI can't find injectable: '"+t+"'"})),c=a.filter(u).map((function(t){return o[t]}));return Object(r.p)(t)?t.apply(e,c):t.slice(-1)[0].apply(e,c)},annotate:function(t){if(!Object(r.q)(t))throw new Error("Not an injectable function: "+t);if(t&&t.$inject)return t.$inject;if(Object(r.n)(t))return t.slice(0,-1);var e=t.toString().replace(o,"");return e.slice(e.indexOf("(")+1,e.indexOf(")")).match(a)||[]}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(1),i=function(){function t(t,e){void 0===e&&(e=!1),this._isHtml5=e,this._baseHref=void 0,this._hashPrefix=""}return t.prototype.port=function(){return location.port?Number(location.port):"https"===this.protocol()?443:80},t.prototype.protocol=function(){return location.protocol.replace(/:/g,"")},t.prototype.host=function(){return location.hostname},t.prototype.html5Mode=function(){return this._isHtml5},t.prototype.hashPrefix=function(t){return Object(r.c)(t)?this._hashPrefix=t:this._hashPrefix},t.prototype.baseHref=function(t){return Object(r.c)(t)&&(this._baseHref=t),Object(r.m)(this._baseHref)&&(this._baseHref=this.getBaseHref()),this._baseHref},t.prototype.getBaseHref=function(){var t=document.getElementsByTagName("base")[0];return t&&t.href?t.href.replace(/^([^/:]*:)?\/\/[^/]*/,""):this._isHtml5?"/":location.pathname||"/"},t.prototype.dispose=function(){},t}()},function(t,e,n){n(84),t.exports=angular},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),i=function(){function t(t){void 0===t&&(t={}),Object(r.l)(this,t)}return t.prototype.$inherit=function(t,e,n){var i,o=Object(r.b)(e,n),a={},s=[];for(var u in o)if(o[u]&&o[u].params&&(i=Object.keys(o[u].params)).length)for(var c in i)s.indexOf(i[c])>=0||(s.push(i[c]),a[i[c]]=this[i[c]]);return Object(r.l)({},a,t)},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var r=n(0),i=n(1),o=n(6),a=n(3),s=n(11),u=n(5);function c(t){return t.name}function l(t){return t.self.$$state=function(){return t},t.self}function f(t){return t.parent&&t.parent.data&&(t.data=t.self.data=Object(r.t)(t.parent.data,t.data)),t.data}var h=function(t,e){return function(n){var o=n.self;if(o&&o.url&&o.name&&o.name.match(/\.\*\*$/)){var a={};Object(r.g)(o,a),a.url+="{remainder:any}",o=a}var s=n.parent,u=function(t){if(!Object(i.l)(t))return!1;var e="^"===t.charAt(0);return{val:e?t.substring(1):t,root:e}}(o.url),c=u?t.compile(u.val,{state:o}):o.url;if(!c)return null;if(!t.isMatcher(c))throw new Error("Invalid url '"+c+"' in state '"+n+"'");return u&&u.root?c:(s&&s.navigable||e()).url.append(c)}},p=function(t){return function(e){return!t(e)&&e.url?e:e.parent?e.parent.navigable:null}};function d(t){return t.parent?t.parent.path.concat(t):[t]}function v(t){var e=t.parent?Object(r.l)({},t.parent.includes):{};return e[t.name]=!0,e}function m(t){var e,n,c=function(t){return t.provide||t.token},l=Object(a.i)([[Object(a.k)("resolveFn"),function(t){return new s.a(c(t),t.resolveFn,t.deps,t.policy)}],[Object(a.k)("useFactory"),function(t){return new s.a(c(t),t.useFactory,t.deps||t.dependencies,t.policy)}],[Object(a.k)("useClass"),function(t){return new s.a(c(t),(function(){return new t.useClass}),[],t.policy)}],[Object(a.k)("useValue"),function(t){return new s.a(c(t),(function(){return t.useValue}),[],t.policy,t.useValue)}],[Object(a.k)("useExisting"),function(t){return new s.a(c(t),r.r,[t.useExisting],t.policy)}]]),f=Object(a.i)([[Object(a.j)(Object(a.k)("val"),i.l),function(t){return new s.a(t.token,r.r,[t.val],t.policy)}],[Object(a.j)(Object(a.k)("val"),i.a),function(t){return new s.a(t.token,Object(r.G)(t.val),t.val.slice(0,-1),t.policy)}],[Object(a.j)(Object(a.k)("val"),i.d),function(t){return new s.a(t.token,t.val,(e=t.val,n=u.b.$injector,e.$inject||n&&n.annotate(e,n.strictDi)||"deferred"),t.policy);var e,n}]]),h=Object(a.i)([[Object(a.e)(s.a),function(t){return t}],[function(t){return!(!t.token||!t.resolveFn)},l],[function(t){return!(!t.provide&&!t.token||!(t.useValue||t.useFactory||t.useExisting||t.useClass))},l],[function(t){return!!(t&&t.val&&(Object(i.l)(t.val)||Object(i.a)(t.val)||Object(i.d)(t.val)))},f],[Object(a.m)(!0),function(t){throw new Error("Invalid resolve value: "+Object(o.k)(t))}]]),p=t.resolve;return(Object(i.a)(p)?p:(e=p,n=t.resolvePolicy||{},Object.keys(e||{}).map((function(t){return{token:t,val:e[t],deps:void 0,policy:n[t]}})))).map(h)}var g=function(){function t(t,e){this.matcher=t;var n,i=this,o=function(){return t.find("")},s=function(t){return""===t.name};this.builders={name:[c],self:[l],parent:[function(e){return s(e)?null:t.find(i.parentName(e))||o()}],data:[f],url:[h(e,o)],navigable:[p(s)],params:[(n=e.paramFactory,function(t){var e=t.url&&t.url.parameters({inherit:!1})||[],i=Object(r.L)(Object(r.v)(Object(r.y)(t.params||{},e.map(Object(a.k)("id"))),(function(e,r){return n.fromConfig(r,null,t.self)})));return e.concat(i).map((function(t){return[t.id,t]})).reduce(r.d,{})})],views:[],path:[d],includes:[v],resolvables:[m]}}return t.prototype.builder=function(t,e){var n=this.builders,r=n[t]||[];return Object(i.l)(t)&&!Object(i.c)(e)?r.length>1?r:r[0]:Object(i.l)(t)&&Object(i.d)(e)?(n[t]=r,n[t].push(e),function(){return n[t].splice(n[t].indexOf(e,1))&&null}):void 0},t.prototype.build=function(t){var e=this.matcher,n=this.builders,i=this.parentName(t);if(i&&!e.find(i,void 0,!1))return null;for(var o in n)if(n.hasOwnProperty(o)){var a=n[o].reduce((function(t,e){return function(n){return e(n,t)}}),r.x);t[o]=a(t)}return t},t.prototype.parentName=function(t){var e=t.name||"",n=e.split(".");if("**"===n.pop()&&n.pop(),n.length){if(t.parent)throw new Error("States that specify the 'parent:' property should not have a '.' in their name ("+e+")");return n.join(".")}return t.parent?Object(i.l)(t.parent)?t.parent:t.parent.name:""},t.prototype.name=function(t){var e=t.name;if(-1!==e.indexOf(".")||!t.parent)return e;var n=Object(i.l)(t.parent)?t.parent:t.parent.name;return n?n+"."+e:e},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(1),i=n(0),o=n(15),a=function(){function t(t){this._states=t}return t.prototype.isRelative=function(t){return 0===(t=t||"").indexOf(".")||0===t.indexOf("^")},t.prototype.find=function(t,e,n){if(void 0===n&&(n=!0),t||""===t){var a=Object(r.l)(t),s=a?t:t.name;this.isRelative(s)&&(s=this.resolvePath(s,e));var u=this._states[s];if(u&&(a||!(a||u!==t&&u.self!==t)))return u;if(a&&n){var c=Object(i.L)(this._states).filter((function(t){return t.__stateObjectCache.nameGlob&&t.__stateObjectCache.nameGlob.matches(s)}));return c.length>1&&o.a.error("stateMatcher.find: Found multiple matches for "+s+" using glob: ",c.map((function(t){return t.name}))),c[0]}}},t.prototype.resolvePath=function(t,e){if(!e)throw new Error("No reference point given for path '"+t+"'");for(var n=this.find(e),r=t.split("."),i=r.length,o=0,a=n;o<i;o++)if(""!==r[o]||0!==o){if("^"!==r[o])break;if(!a.parent)throw new Error("Path '"+t+"' not valid for state '"+n.name+"'");a=a.parent}else a=n;var s=r.slice(o).join(".");return a.name+(a.name&&s?".":"")+s},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(24),o=function(){function t(t,e,n,r){this.router=t,this.states=e,this.builder=n,this.listeners=r,this.queue=[]}return t.prototype.dispose=function(){this.queue=[]},t.prototype.register=function(t){var e=this.queue,n=i.a.create(t),o=n.name;if(!Object(r.s)(o))throw new Error("State must have a valid name");if(this.states.hasOwnProperty(o)||Object(r.l)(e.map(Object(r.B)("name")),o))throw new Error("State '"+o+"' is already defined");return e.push(n),this.flush(),n},t.prototype.flush=function(){for(var t=this,e=this.queue,n=this.states,r=this.builder,i=[],o=[],a={},s=function(e){return t.states.hasOwnProperty(e)&&t.states[e]},u=function(){i.length&&t.listeners.forEach((function(t){return t("registered",i.map((function(t){return t.self})))}))};e.length>0;){var c=e.shift(),l=c.name,f=r.build(c),h=o.indexOf(c);if(f){var p=s(l);if(p&&p.name===l)throw new Error("State '"+l+"' is already defined");var d=s(l+".**");d&&this.router.stateRegistry.deregister(d),n[l]=c,this.attachRoute(c),h>=0&&o.splice(h,1),i.push(c)}else{var v=a[l];if(a[l]=e.length,h>=0&&v===e.length)return e.push(c),u(),n;h<0&&o.push(c),e.push(c)}}return u(),n},t.prototype.attachRoute=function(t){if(!t.abstract&&t.url){var e=this.router.urlService.rules;e.rule(e.urlRuleFactory.create(t))}},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(41),i=n(40),o=n(42),a=n(0),s=n(3),u=function(){function t(t){this.router=t,this.states={},this.listeners=[],this.matcher=new r.a(this.states),this.builder=new i.a(this.matcher,t.urlMatcherFactory),this.stateQueue=new o.a(t,this.states,this.builder,this.listeners),this._registerRoot()}return t.prototype._registerRoot=function(){(this._root=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0})).navigable=null},t.prototype.dispose=function(){var t=this;this.stateQueue.dispose(),this.listeners=[],this.get().forEach((function(e){return t.get(e)&&t.deregister(e)}))},t.prototype.onStatesChanged=function(t){return this.listeners.push(t),function(){Object(a.C)(this.listeners)(t)}.bind(this)},t.prototype.root=function(){return this._root},t.prototype.register=function(t){return this.stateQueue.register(t)},t.prototype._deregisterTree=function(t){var e=this,n=this.get().map((function(t){return t.$$state()})),r=function(t){var e=n.filter((function(e){return-1!==t.indexOf(e.parent)}));return 0===e.length?e:e.concat(r(e))},i=r([t]),o=[t].concat(i).reverse();return o.forEach((function(t){var n=e.router.urlService.rules;n.rules().filter(Object(s.l)("state",t)).forEach((function(t){return n.removeRule(t)})),delete e.states[t.name]})),o},t.prototype.deregister=function(t){var e=this.get(t);if(!e)throw new Error("Can't deregister state; not found: "+t);var n=this._deregisterTree(e.$$state());return this.listeners.forEach((function(t){return t("deregistered",n.map((function(t){return t.self})))})),n},t.prototype.get=function(t,e){var n=this;if(0===arguments.length)return Object.keys(this.states).map((function(t){return n.states[t].self}));var r=this.matcher.find(t,e);return r&&r.self||null},t.prototype.decorator=function(t,e){return this.builder.builder(t,e)},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var r=n(0),i=n(1),o=n(26),a=n(5),s=n(14),u=n(28),c=n(32),l=n(7),f=n(16),h=n(12),p=n(33),d=n(17),v=n(62),m=n(3),g=function(){function t(e){this.router=e,this.invalidCallbacks=[],this._defaultErrorHandler=function(t){t instanceof Error&&t.stack?(console.error(t),console.error(t.stack)):t instanceof l.b?(console.error(t.toString()),t.detail&&t.detail.stack&&console.error(t.detail.stack)):console.error(t)};var n=Object.keys(t.prototype).filter(Object(m.f)(Object(r.s)(["current","$current","params","transition"])));Object(r.h)(Object(m.m)(t.prototype),this,Object(m.m)(this),n)}return Object.defineProperty(t.prototype,"transition",{get:function(){return this.router.globals.transition},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"params",{get:function(){return this.router.globals.params},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"current",{get:function(){return this.router.globals.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"$current",{get:function(){return this.router.globals.$current},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this.defaultErrorHandler(r.x),this.invalidCallbacks=[]},t.prototype._handleInvalidTargetState=function(t,e){var n=this,r=s.a.makeTargetState(this.router.stateRegistry,t),i=this.router.globals,u=function(){return i.transitionHistory.peekTail()},c=u(),h=new o.a(this.invalidCallbacks.slice()),p=new d.a(t).injector(),v=function(t){if(t instanceof f.a){var e=t;return(e=n.target(e.identifier(),e.params(),e.options())).valid()?u()!==c?l.b.superseded().toPromise():n.transitionTo(e.identifier(),e.params(),e.options()):l.b.invalid(e.error()).toPromise()}};return function t(){var n=h.dequeue();return void 0===n?l.b.invalid(e.error()).toPromise():a.b.$q.when(n(e,r,p)).then(v).then((function(e){return e||t()}))}()},t.prototype.onInvalid=function(t){return this.invalidCallbacks.push(t),function(){Object(r.C)(this.invalidCallbacks)(t)}.bind(this)},t.prototype.reload=function(t){return this.transitionTo(this.current,this.params,{reload:!Object(i.c)(t)||t,inherit:!1,notify:!1})},t.prototype.go=function(t,e,n){var i={relative:this.$current,inherit:!0},o=Object(r.i)(n,i,c.b);return this.transitionTo(t,e,o)},t.prototype.target=function(t,e,n){if(void 0===n&&(n={}),Object(i.i)(n.reload)&&!n.reload.name)throw new Error("Invalid reload state object");var r=this.router.stateRegistry;if(n.reloadState=!0===n.reload?r.root():r.matcher.find(n.reload,n.relative),n.reload&&!n.reloadState)throw new Error("No such reload state '"+(Object(i.l)(n.reload)?n.reload:n.reload.name)+"'");return new f.a(this.router.stateRegistry,t,e,n)},t.prototype.getCurrentPath=function(){var t=this.router.globals.successfulTransitions.peekTail();return t?t.treeChanges().to:[new u.a(this.router.stateRegistry.root())]},t.prototype.transitionTo=function(t,e,n){var i=this;void 0===e&&(e={}),void 0===n&&(n={});var o=this.router,s=o.globals;n=Object(r.i)(n,c.b);var u=function(){return s.transition};n=Object(r.l)(n,{current:u});var h=this.target(t,e,n),p=this.getCurrentPath();if(!h.exists())return this._handleInvalidTargetState(p,h);if(!h.valid())return Object(r.F)(h.error());if(!1===n.supercede&&u())return l.b.ignored("Another transition is in progress and supercede has been set to false in TransitionOptions for the transition. So the transition was ignored in favour of the existing one in progress.").toPromise();var d=function(t){return function(e){if(e instanceof l.b){var n=o.globals.lastStartedTransitionId<=t.$id;if(e.type===l.a.IGNORED)return n&&o.urlRouter.update(),a.b.$q.when(s.current);var r=e.detail;if(e.type===l.a.SUPERSEDED&&e.redirected&&r instanceof f.a){var u=t.redirect(r);return u.run().catch(d(u))}if(e.type===l.a.ABORTED)return n&&o.urlRouter.update(),a.b.$q.reject(e)}return i.defaultErrorHandler()(e),a.b.$q.reject(e)}},v=this.router.transitionService.create(p,h),m=v.run().catch(d(v));return Object(r.E)(m),Object(r.l)(m,{transition:v})},t.prototype.is=function(t,e,n){n=Object(r.i)(n,{relative:this.$current});var o=this.router.stateRegistry.matcher.find(t,n.relative);if(Object(i.c)(o)){if(this.$current!==o)return!1;if(!e)return!0;var a=o.parameters({inherit:!0,matchingKeys:e});return h.b.equals(a,h.b.values(a,e),this.params)}},t.prototype.includes=function(t,e,n){n=Object(r.i)(n,{relative:this.$current});var o=Object(i.l)(t)&&p.a.fromString(t);if(o){if(!o.matches(this.$current.name))return!1;t=this.$current.name}var a=this.router.stateRegistry.matcher.find(t,n.relative),s=this.$current.includes;if(Object(i.c)(a)){if(!Object(i.c)(s[a.name]))return!1;if(!e)return!0;var u=a.parameters({inherit:!0,matchingKeys:e});return h.b.equals(u,h.b.values(u,e),this.params)}},t.prototype.href=function(t,e,n){var o={lossy:!0,inherit:!0,absolute:!1,relative:this.$current};n=Object(r.i)(n,o),e=e||{};var a=this.router.stateRegistry.matcher.find(t,n.relative);if(!Object(i.c)(a))return null;n.inherit&&(e=this.params.$inherit(e,this.$current,a));var s=a&&n.lossy?a.navigable:a;return s&&void 0!==s.url&&null!==s.url?this.router.urlRouter.href(s.url,e,{absolute:n.absolute}):null},t.prototype.defaultErrorHandler=function(t){return this._defaultErrorHandler=t||this._defaultErrorHandler},t.prototype.get=function(t,e){var n=this.router.stateRegistry;return 0===arguments.length?n.get():n.get(t,e||this.$current)},t.prototype.lazyLoad=function(t,e){var n=this.get(t);if(!n||!n.lazyLoad)throw new Error("Can not lazy load "+t);var r=this.getCurrentPath(),i=s.a.makeTargetState(this.router.stateRegistry,r);return e=e||this.router.transitionService.create(r,i),Object(v.a)(e,n)},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(0),i=n(1),o=n(10),a=n(13),s=function(){function t(t){this.transition=t}return t.prototype.buildHooksForPhase=function(t){var e=this;return this.transition.router.transitionService._pluginapi._getEvents(t).map((function(t){return e.buildHooks(t)})).reduce(r.K,[]).filter(r.r)},t.prototype.buildHooks=function(t){var e=this.transition,n=e.treeChanges(),i=this.getMatchingHooks(t,n,e);if(!i)return[];var s,u={transition:e,current:e.options().current};return i.map((function(i){return i.matches(n,e)[t.criteriaMatchPath.name].map((function(n){var s=Object(r.l)({bind:i.bind,traceData:{hookType:t.name,context:n}},u),c=t.criteriaMatchPath.scope===o.b.STATE?n.state.self:null,l=new a.a(e,c,i,s);return{hook:i,node:n,transitionHook:l}}))})).reduce(r.K,[]).sort((s=t.reverseSort,void 0===s&&(s=!1),function(t,e){var n=s?-1:1,r=(t.node.state.path.length-e.node.state.path.length)*n;return 0!==r?r:e.hook.priority-t.hook.priority})).map((function(t){return t.transitionHook}))},t.prototype.getMatchingHooks=function(t,e,n){var a=t.hookPhase===o.a.CREATE,s=this.transition.router.transitionService;return(a?[s]:[this.transition,s]).map((function(e){return e.getHooks(t.name)})).filter(Object(r.f)(i.a,"broken event named: "+t.name)).reduce(r.K,[]).filter((function(t){return t.matches(e,n)}))},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return $}));var r=n(47),i=n(48),o=n(32),a=n(49),s=n(43),u=n(44),c=n(50),l=n(0),f=n(1),h=n(51),p=n(8),d=n(4),v=0,m=Object(d.v)("LocationServices",["url","path","search","hash","onChange"]),g=Object(d.v)("LocationConfig",["port","protocol","host","baseHref","html5Mode","hashPrefix"]),$=function(){function t(t,e){void 0===t&&(t=m),void 0===e&&(e=g),this.locationService=t,this.locationConfig=e,this.$id=v++,this._disposed=!1,this._disposables=[],this.trace=p.a,this.viewService=new a.a(this),this.globals=new c.a,this.transitionService=new o.a(this),this.urlMatcherFactory=new r.a(this),this.urlRouter=new i.a(this),this.urlService=new h.a(this),this.stateRegistry=new s.a(this),this.stateService=new u.a(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(t),this.disposable(e)}return t.prototype.disposable=function(t){this._disposables.push(t)},t.prototype.dispose=function(t){var e=this;t&&Object(f.d)(t.dispose)?t.dispose(this):(this._disposed=!0,this._disposables.slice().forEach((function(t){try{"function"==typeof t.dispose&&t.dispose(e),Object(l.C)(e._disposables,t)}catch(t){}})))},t.prototype.plugin=function(t,e){void 0===e&&(e={});var n=new t(this,e);if(!n.name)throw new Error("Required property `name` missing on plugin: "+n);return this._disposables.push(n),this._plugins[n.name]=n},t.prototype.getPlugin=function(t){return t?this._plugins[t]:Object(l.L)(this._plugins)},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(4),i=n(20),o=n(18),a=function(){return(a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=function(){function t(t){this.router=t}return t.prototype.fromConfig=function(t,e,n){return new o.Param(t,e,o.DefType.CONFIG,this.router.urlService.config,n)},t.prototype.fromPath=function(t,e,n){return new o.Param(t,e,o.DefType.PATH,this.router.urlService.config,n)},t.prototype.fromSearch=function(t,e,n){return new o.Param(t,e,o.DefType.SEARCH,this.router.urlService.config,n)},t}(),u=function(){function t(t){var e=this;this.router=t,this.paramFactory=new s(this.router),this.UrlMatcher=i.a,this.Param=o.Param,this.caseInsensitive=function(t){return e.router.urlService.config.caseInsensitive(t)},this.defaultSquashPolicy=function(t){return e.router.urlService.config.defaultSquashPolicy(t)},this.strictMode=function(t){return e.router.urlService.config.strictMode(t)},this.type=function(t,n,r){return e.router.urlService.config.type(t,n,r)||e}}return t.prototype.compile=function(t,e){var n=this.router.urlService.config,o=e&&!e.state&&e.params;e=o?a({state:{params:o}},e):e;var s={strict:n._isStrictMode,caseInsensitive:n._isCaseInsensitive,decodeParams:n._decodeParams};return new i.a(t,n.paramTypes,this.paramFactory,Object(r.g)(s,e))},t.prototype.isMatcher=function(t){if(!Object(r.r)(t))return!1;var e=!0;return Object(r.j)(i.a.prototype,(function(n,i){Object(r.p)(n)&&(e=e&&Object(r.o)(t[i])&&Object(r.p)(t[i]))})),e},t.prototype.$get=function(){var t=this.router.urlService.config;return t.paramTypes.enqueue=!1,t.paramTypes._flushTypeQueue(),this},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4),i=n(30),o=function(){function t(t){var e=this;this.router=t,this.sync=function(t){return e.router.urlService.sync(t)},this.listen=function(t){return e.router.urlService.listen(t)},this.deferIntercept=function(t){return e.router.urlService.deferIntercept(t)},this.match=function(t){return e.router.urlService.match(t)},this.initial=function(t){return e.router.urlService.rules.initial(t)},this.otherwise=function(t){return e.router.urlService.rules.otherwise(t)},this.removeRule=function(t){return e.router.urlService.rules.removeRule(t)},this.rule=function(t){return e.router.urlService.rules.rule(t)},this.rules=function(){return e.router.urlService.rules.rules()},this.sort=function(t){return e.router.urlService.rules.sort(t)},this.when=function(t,n,r){return e.router.urlService.rules.when(t,n,r)},this.urlRuleFactory=new i.b(t)}return t.prototype.update=function(t){var e=this.router.locationService;t?this.location=e.url():e.url()!==this.location&&e.url(this.location,!0)},t.prototype.push=function(t,e,n){var r=n&&!!n.replace;this.router.urlService.url(t.format(e||{}),r)},t.prototype.href=function(t,e,n){var i=t.format(e);if(null==i)return null;n=n||{absolute:!1};var o=this.router.urlService.config,a=o.html5Mode();if(a||null===i||(i="#"+o.hashPrefix()+i),i=function(t,e,n,i){return"/"===i?t:e?Object(r.I)(i)+t:n?i.slice(1)+t:t}(i,a,n.absolute,o.baseHref()),!n.absolute||!i)return i;var s=!a&&i?"/":"",u=o.port(),c=80===u||443===u?"":":"+u;return[o.protocol(),"://",o.host(),c,s,i].join("")},Object.defineProperty(t.prototype,"interceptDeferred",{get:function(){return this.router.urlService.interceptDeferred},enumerable:!1,configurable:!0}),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(0),i=n(3),o=n(1),a=n(8),s=function(){function t(t){var e=this;this.router=t,this._uiViews=[],this._viewConfigs=[],this._viewConfigFactories={},this._listeners=[],this._pluginapi={_rootViewContext:this._rootViewContext.bind(this),_viewConfigFactory:this._viewConfigFactory.bind(this),_registeredUIView:function(t){return Object(r.n)(e._uiViews,(function(n){return e.router.$id+"."+n.id===t}))},_registeredUIViews:function(){return e._uiViews},_activeViewConfigs:function(){return e._viewConfigs},_onSync:function(t){return e._listeners.push(t),function(){return Object(r.C)(e._listeners,t)}}}}return t.normalizeUIViewTarget=function(t,e){void 0===e&&(e="");var n=e.split("@"),r=n[0]||"$default",i=Object(o.l)(n[1])?n[1]:"^",a=/^(\^(?:\.\^)*)\.(.*$)/.exec(r);if(a&&(i=a[1],r=a[2]),"!"===r.charAt(0)&&(r=r.substr(1),i=""),/^(\^(?:\.\^)*)$/.exec(i)){var s=i.split(".").reduce((function(t,e){return t.parent}),t);i=s.name}else"."===i&&(i=t.name);return{uiViewName:r,uiViewContextAnchor:i}},t.prototype._rootViewContext=function(t){return this._rootContext=t||this._rootContext},t.prototype._viewConfigFactory=function(t,e){this._viewConfigFactories[t]=e},t.prototype.createViewConfig=function(t,e){var n=this._viewConfigFactories[e.$type];if(!n)throw new Error("ViewService: No view config factory registered for type "+e.$type);var r=n(t,e);return Object(o.a)(r)?r:[r]},t.prototype.deactivateViewConfig=function(t){a.a.traceViewServiceEvent("<- Removing",t),Object(r.C)(this._viewConfigs,t)},t.prototype.activateViewConfig=function(t){a.a.traceViewServiceEvent("-> Registering",t),this._viewConfigs.push(t)},t.prototype.sync=function(){var e=this,n=this._uiViews.map((function(t){return[t.fqn,t]})).reduce(r.d,{});function o(t){for(var e=t.viewDecl.$context,n=0;++n&&e.parent;)e=e.parent;return n}var s=Object(i.d)((function(t,e,n,r){return e*(t(n)-t(r))})),u=this._uiViews.sort(s((function(t){var e=function(t){return t&&t.parent?e(t.parent)+1:1};return 1e4*t.fqn.split(".").length+e(t.creationContext)}),1)).map((function(r){var i=e._viewConfigs.filter(t.matches(n,r));return i.length>1&&i.sort(s(o,-1)),{uiView:r,viewConfig:i[0]}})),c=u.map((function(t){return t.viewConfig})),l=this._viewConfigs.filter((function(t){return!Object(r.s)(c,t)})).map((function(t){return{uiView:void 0,viewConfig:t}}));u.forEach((function(t){-1!==e._uiViews.indexOf(t.uiView)&&t.uiView.configUpdated(t.viewConfig)}));var f=u.concat(l);this._listeners.forEach((function(t){return t(f)})),a.a.traceViewSync(f)},t.prototype.registerUIView=function(t){a.a.traceViewServiceUIViewEvent("-> Registering",t);var e=this._uiViews;return e.filter((function(e){return e.fqn===t.fqn&&e.$type===t.$type})).length&&a.a.traceViewServiceUIViewEvent("!!!! duplicate uiView named:",t),e.push(t),this.sync(),function(){-1!==e.indexOf(t)?(a.a.traceViewServiceUIViewEvent("<- Deregistering",t),Object(r.C)(e)(t)):a.a.traceViewServiceUIViewEvent("Tried removing non-registered uiView",t)}},t.prototype.available=function(){return this._uiViews.map(Object(i.k)("fqn"))},t.prototype.active=function(){return this._uiViews.filter(Object(i.k)("$config")).map(Object(i.k)("name"))},t.matches=function(t,e){return function(n){if(e.$type!==n.viewDecl.$type)return!1;var i=n.viewDecl,o=i.$uiViewName.split("."),a=e.fqn.split(".");if(!Object(r.k)(o,a.slice(0-o.length)))return!1;var s=1-o.length||void 0,u=a.slice(0,s).join("."),c=t[u].creationContext;return i.$uiViewContextAnchor===(c&&c.name)}},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(39),i=n(26),o=function(){function t(){this.params=new r.a,this.lastStartedTransitionId=-1,this.transitionHistory=new i.a([],1),this.successfulTransitions=new i.a([],1)}return t.prototype.dispose=function(){this.transitionHistory.clear(),this.successfulTransitions.clear(),this.transition=null},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(4),i=n(52),o=n(53),a=n(23),s=function(){function t(t){var e=this;this.router=t,this.interceptDeferred=!1,this.rules=new i.a(this.router),this.config=new o.a(this.router),this.url=function(t,n,r){return e.router.locationService.url(t,n,r)},this.path=function(){return e.router.locationService.path()},this.search=function(){return e.router.locationService.search()},this.hash=function(){return e.router.locationService.hash()},this.onChange=function(t){return e.router.locationService.onChange(t)}}return t.prototype.dispose=function(){this.listen(!1),this.rules.dispose()},t.prototype.parts=function(){return{path:this.path(),search:this.search(),hash:this.hash()}},t.prototype.sync=function(t){if(!t||!t.defaultPrevented){var e=this.router,n=e.urlService,i=e.stateService,o={path:n.path(),search:n.search(),hash:n.hash()},s=this.match(o);Object(r.z)([[r.s,function(t){return n.url(t,!0)}],[a.TargetState.isDef,function(t){return i.go(t.state,t.params,t.options)}],[Object(r.m)(a.TargetState),function(t){return i.go(t.state(),t.params(),t.options())}]])(s&&s.rule.handler(s.match,o,this.router))}},t.prototype.listen=function(t){var e=this;if(!1!==t)return this._stopListeningFn=this._stopListeningFn||this.router.urlService.onChange((function(t){return e.sync(t)}));this._stopListeningFn&&this._stopListeningFn(),delete this._stopListeningFn},t.prototype.deferIntercept=function(t){void 0===t&&(t=!0),this.interceptDeferred=t},t.prototype.match=function(t){t=Object(r.g)({path:"",search:{},hash:""},t);for(var e,n,i,o=this.rules.rules(),a=0;a<o.length&&(!e||e.rule._group===o[a]._group);a++){var s=(void 0,(i=(n=o[a]).match(t,this.router))&&{match:i,rule:n,weight:n.matchPriority(i)});e=!e||s&&s.weight>e.weight?s:e}return e},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r,i=n(23),o=n(20),a=n(4),s=n(30);function u(t){if(!(Object(a.p)(t)||Object(a.s)(t)||Object(a.m)(i.TargetState)(t)||i.TargetState.isDef(t)))throw new Error("'handler' must be a string, function, TargetState, or have a state: 'newtarget' property");return Object(a.p)(t)?t:Object(a.O)(t)}r=function(t,e){var n=function(t,e){return(e.priority||0)-(t.priority||0)}(t,e);return 0!==n||0!==(n=function(t,e){var n={STATE:4,URLMATCHER:4,REGEXP:3,RAW:2,OTHER:1};return(n[t.type]||0)-(n[e.type]||0)}(t,e))||0!==(n=function(t,e){return t.urlMatcher&&e.urlMatcher?o.a.compare(t.urlMatcher,e.urlMatcher):0}(t,e))?n:function(t,e){var n={STATE:!0,URLMATCHER:!0};return n[t.type]&&n[e.type]?0:(t.$id||0)-(e.$id||0)}(t,e)};var c=function(){function t(t){this.router=t,this._sortFn=r,this._rules=[],this._id=0,this.urlRuleFactory=new s.b(t)}return t.prototype.dispose=function(t){this._rules=[],delete this._otherwiseFn},t.prototype.initial=function(t){var e=u(t);this.rule(this.urlRuleFactory.create((function(t,e){return 0===e.globals.transitionHistory.size()&&!!/^\/?$/.exec(t.path)}),e))},t.prototype.otherwise=function(t){var e=u(t);this._otherwiseFn=this.urlRuleFactory.create(Object(a.O)(!0),e),this._sorted=!1},t.prototype.removeRule=function(t){Object(a.C)(this._rules,t)},t.prototype.rule=function(t){var e=this;if(!s.b.isUrlRule(t))throw new Error("invalid rule");return t.$id=this._id++,t.priority=t.priority||0,this._rules.push(t),this._sorted=!1,function(){return e.removeRule(t)}},t.prototype.rules=function(){return this.ensureSorted(),this._rules.concat(this._otherwiseFn?[this._otherwiseFn]:[])},t.prototype.sort=function(t){for(var e=this.stableSort(this._rules,this._sortFn=t||this._sortFn),n=0,r=0;r<e.length;r++)e[r]._group=n,r<e.length-1&&0!==this._sortFn(e[r],e[r+1])&&n++;this._rules=e,this._sorted=!0},t.prototype.ensureSorted=function(){this._sorted||this.sort()},t.prototype.stableSort=function(t,e){var n=t.map((function(t,e){return{elem:t,idx:e}}));return n.sort((function(t,n){var r=e(t.elem,n.elem);return 0===r?t.idx-n.idx:r})),n.map((function(t){return t.elem}))},t.prototype.when=function(t,e,n){var r=this.urlRuleFactory.create(t,e);return Object(a.o)(n&&n.priority)&&(r.priority=n.priority),this.rule(r),r},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(18),i=n(4),o=function(){function t(t){var e=this;this.router=t,this.paramTypes=new r.ParamTypes,this._decodeParams=!0,this._isCaseInsensitive=!1,this._isStrictMode=!0,this._defaultSquashPolicy=!1,this.dispose=function(){return e.paramTypes.dispose()},this.baseHref=function(){return e.router.locationConfig.baseHref()},this.hashPrefix=function(t){return e.router.locationConfig.hashPrefix(t)},this.host=function(){return e.router.locationConfig.host()},this.html5Mode=function(){return e.router.locationConfig.html5Mode()},this.port=function(){return e.router.locationConfig.port()},this.protocol=function(){return e.router.locationConfig.protocol()}}return t.prototype.caseInsensitive=function(t){return this._isCaseInsensitive=Object(i.o)(t)?t:this._isCaseInsensitive},t.prototype.defaultSquashPolicy=function(t){if(Object(i.o)(t)&&!0!==t&&!1!==t&&!Object(i.s)(t))throw new Error("Invalid squash policy: "+t+". Valid policies: false, true, arbitrary-string");return this._defaultSquashPolicy=Object(i.o)(t)?t:this._defaultSquashPolicy},t.prototype.strictMode=function(t){return this._isStrictMode=Object(i.o)(t)?t:this._isStrictMode},t.prototype.type=function(t,e,n){var r=this.paramTypes.type(t,e,n);return Object(i.o)(e)?this:r},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(13),i=function(t,e,n,i,o,a,s,u){void 0===o&&(o=!1),void 0===a&&(a=r.a.HANDLE_RESULT),void 0===s&&(s=r.a.REJECT_ERROR),void 0===u&&(u=!1),this.name=t,this.hookPhase=e,this.hookOrder=n,this.criteriaMatchPath=i,this.reverseSort=o,this.getResultHandler=a,this.getErrorHandler=s,this.synchronous=u}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r,i=n(4),o=n(22),a=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function __(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),s=function(t){function e(e){var n=t.call(this,e,!1)||this;return i.D.addEventListener("hashchange",n._listener,!1),n}return a(e,t),e.prototype._get=function(){return Object(i.L)(this._location.hash)},e.prototype._set=function(t,e,n,r){this._location.hash=n},e.prototype.dispose=function(e){t.prototype.dispose.call(this,e),i.D.removeEventListener("hashchange",this._listener)},e}(o.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r,i=n(22),o=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function __(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),a=function(t){function e(e){return t.call(this,e,!0)||this}return o(e,t),e.prototype._get=function(){return this._url},e.prototype._set=function(t,e,n,r){this._url=n},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r,i=n(22),o=n(4),a=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function __(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),s=function(t){function e(e){var n=t.call(this,e,!0)||this;return n._config=e.urlService.config,o.D.addEventListener("popstate",n._listener,!1),n}return a(e,t),e.prototype._getBasePrefix=function(){return Object(o.I)(this._config.baseHref())},e.prototype._get=function(){var t=this._location,e=t.pathname,n=t.hash,r=t.search;r=Object(o.H)(r)[1],n=Object(o.G)(n)[1];var i=this._getBasePrefix(),a=e===this._config.baseHref(),s=e.substr(0,i.length)===i;return(e=a?"/":s?e.substring(i.length):e)+(r?"?"+r:"")+(n?"#"+n:"")},e.prototype._set=function(t,e,n,r){var i=this._getBasePrefix(),o=n&&"/"!==n[0]?"/":"",a=""===n||"/"===n?this._config.baseHref():i+o+n;r?this._history.replaceState(t,e,a):this._history.pushState(t,e,a)},e.prototype.dispose=function(e){t.prototype.dispose.call(this,e),o.D.removeEventListener("popstate",this._listener)},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(1),i=n(0),o=function(){var t=this;this.dispose=i.x,this._baseHref="",this._port=80,this._protocol="http",this._host="localhost",this._hashPrefix="",this.port=function(){return t._port},this.protocol=function(){return t._protocol},this.host=function(){return t._host},this.baseHref=function(){return t._baseHref},this.html5Mode=function(){return!1},this.hashPrefix=function(e){return Object(r.c)(e)?t._hashPrefix=e:t._hashPrefix}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2),i=function(){function t(e,n){this.stateRegistry=e,this.stateService=n,Object(r.createProxyFunctions)(Object(r.val)(t.prototype),this,Object(r.val)(this))}return t.prototype.decorator=function(t,e){return this.stateRegistry.decorator(t,e)||this},t.prototype.state=function(t,e){return Object(r.isObject)(t)?e=t:e.name=t,this.stateRegistry.register(e),this},t.prototype.onInvalid=function(t){return this.stateService.onInvalid(t)},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2),i=function(){function t(t){this.router=t}return t.injectableHandler=function(t,e){return function(n){return r.services.$injector.invoke(e,null,{$match:n,$stateParams:t.globals.params})}},t.prototype.$get=function(){var t=this.router.urlService;return this.router.urlRouter.update(!0),t.interceptDeferred||t.listen(),this.router.urlRouter},t.prototype.rule=function(t){var e=this;if(!Object(r.isFunction)(t))throw new Error("'rule' must be a function");var n=new r.BaseUrlRule((function(){return t(r.services.$injector,e.router.locationService)}),r.identity);return this.router.urlService.rules.rule(n),this},t.prototype.otherwise=function(t){var e=this,n=this.router.urlService.rules;if(Object(r.isString)(t))n.otherwise(t);else{if(!Object(r.isFunction)(t))throw new Error("'rule' must be a string or function");n.otherwise((function(){return t(r.services.$injector,e.router.locationService)}))}return this},t.prototype.when=function(e,n){return(Object(r.isArray)(n)||Object(r.isFunction)(n))&&(n=t.injectableHandler(this.router,n)),this.router.urlService.rules.when(e,n),this},t.prototype.deferIntercept=function(t){this.router.urlService.deferIntercept(t)},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return x}));var r=n(9),i=n(2),o=n(31),a=function(){function t(){var t=this;this._useHttp=r.a.version.minor<3,this.$get=["$http","$templateCache","$injector",function(e,n,r){return t.$templateRequest=r.has&&r.has("$templateRequest")&&r.get("$templateRequest"),t.$http=e,t.$templateCache=n,t}]}return t.prototype.useHttpService=function(t){this._useHttp=t},t.prototype.fromConfig=function(t,e,n){var r=function(t){return i.services.$q.when(t).then((function(t){return{template:t}}))},o=function(t){return i.services.$q.when(t).then((function(t){return{component:t}}))};return Object(i.isDefined)(t.template)?r(this.fromString(t.template,e)):Object(i.isDefined)(t.templateUrl)?r(this.fromUrl(t.templateUrl,e)):Object(i.isDefined)(t.templateProvider)?r(this.fromProvider(t.templateProvider,e,n)):Object(i.isDefined)(t.component)?o(t.component):Object(i.isDefined)(t.componentProvider)?o(this.fromComponentProvider(t.componentProvider,e,n)):r("<ui-view></ui-view>")},t.prototype.fromString=function(t,e){return Object(i.isFunction)(t)?t(e):t},t.prototype.fromUrl=function(t,e){return Object(i.isFunction)(t)&&(t=t(e)),null==t?null:this._useHttp?this.$http.get(t,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then((function(t){return t.data})):this.$templateRequest(t)},t.prototype.fromProvider=function(t,e,n){var r=i.services.$injector.annotate(t),o=Object(i.isArray)(t)?Object(i.tail)(t):t;return new i.Resolvable("",o,r).get(n)},t.prototype.fromComponentProvider=function(t,e,n){var r=i.services.$injector.annotate(t),o=Object(i.isArray)(t)?Object(i.tail)(t):t;return new i.Resolvable("",o,r).get(n)},t.prototype.makeComponentTemplate=function(t,e,n,o){o=o||{};var a=r.a.version.minor>=3?"::":"",u=function(t){var e=Object(i.kebobString)(t);return/^(x|data)-/.exec(e)?"x-"+e:e},c=function(t){var e=i.services.$injector.get(t+"Directive");if(!e||!e.length)throw new Error("Unable to find component named '"+t+"'");return e.map(s).reduce(i.unnestR,[])}(n).map((function(n){var r=n.name,s=n.type,c=u(r);if(t.attr(c)&&!o[r])return c+"='"+t.attr(c)+"'";var l=o[r]||r;if("@"===s)return c+"='{{"+a+"$resolve."+l+"}}'";if("&"===s){var f=e.getResolvable(l),h=f&&f.data,p=h&&i.services.$injector.annotate(h)||[];return c+"='$resolve."+l+(Object(i.isArray)(h)?"["+(h.length-1)+"]":"")+"("+p.join(",")+")'"}return c+"='"+a+"$resolve."+l+"'"})).join(" "),l=u(n);return"<"+l+" "+c+"></"+l+">"},t}(),s=function(t){return Object(i.isObject)(t.bindToController)?u(t.bindToController):u(t.scope)},u=function(t){return Object.keys(t||{}).map((function(e){return[e,/^([=<@&])[?]?(.*)/.exec(t[e])]})).filter((function(t){return Object(i.isDefined)(t)&&Object(i.isArray)(t[1])})).map((function(t){return{name:t[1][2]||t[0],type:t[1][1]}}))},c=n(59),l=function(t){return function(e){var n=e[t],r="onExit"===t?"from":"to";return n?function(t,e){var o=new i.ResolveContext(t.treeChanges(r)).subContext(e.$$state()),a=Object(i.extend)(x(o),{$state$:e,$transition$:t});return i.services.$injector.invoke(n,this,a)}:void 0}},f=function(){function t(t){this._urlListeners=[],this.$locationProvider=t;var e=Object(i.val)(t);Object(i.createProxyFunctions)(e,this,e,["hashPrefix"])}return t.monkeyPatchPathParameterType=function(t){var e=t.urlMatcherFactory.type("path");e.encode=function(t){return null!=t?t.toString().replace(/(~|\/)/g,(function(t){return{"~":"~~","/":"~2F"}[t]})):t},e.decode=function(t){return null!=t?t.toString().replace(/(~~|~2F)/g,(function(t){return{"~~":"~","~2F":"/"}[t]})):t}},t.prototype.dispose=function(){},t.prototype.onChange=function(t){var e=this;return this._urlListeners.push(t),function(){return Object(i.removeFrom)(e._urlListeners)(t)}},t.prototype.html5Mode=function(){var t=this.$locationProvider.html5Mode();return(t=Object(i.isObject)(t)?t.enabled:t)&&this.$sniffer.history},t.prototype.baseHref=function(){return this._baseHref||(this._baseHref=this.$browser.baseHref()||this.$window.location.pathname)},t.prototype.url=function(t,e,n){return void 0===e&&(e=!1),Object(i.isDefined)(t)&&this.$location.url(t),e&&this.$location.replace(),n&&this.$location.state(n),this.$location.url()},t.prototype._runtimeServices=function(t,e,n,r,o){var a=this;this.$location=e,this.$sniffer=n,this.$browser=r,this.$window=o,t.$on("$locationChangeSuccess",(function(t){return a._urlListeners.forEach((function(e){return e(t)}))}));var s=Object(i.val)(e);Object(i.createProxyFunctions)(s,this,s,["replace","path","search","hash"]),Object(i.createProxyFunctions)(s,this,s,["port","protocol","host"])},t}(),h=n(60);r.a.module("ui.router.angular1",[]);var p=r.a.module("ui.router.init",["ng"]),d=r.a.module("ui.router.util",["ui.router.init"]),v=r.a.module("ui.router.router",["ui.router.util"]),m=r.a.module("ui.router.state",["ui.router.router","ui.router.util","ui.router.angular1"]),g=r.a.module("ui.router",["ui.router.init","ui.router.state","ui.router.angular1"]),$=(r.a.module("ui.router.compat",["ui.router"]),null);function y(t){($=this.router=new i.UIRouter).stateProvider=new c.a($.stateRegistry,$.stateService),$.stateRegistry.decorator("views",o.c),$.stateRegistry.decorator("onExit",l("onExit")),$.stateRegistry.decorator("onRetain",l("onRetain")),$.stateRegistry.decorator("onEnter",l("onEnter")),$.viewService._pluginapi._viewConfigFactory("ng1",Object(o.b)()),$.urlService.config._decodeParams=!1;var e=$.locationService=$.locationConfig=new f(t);function n(t,n,r,i,o,a,s){return e._runtimeServices(o,t,i,n,r),delete $.router,delete $.$get,$}return f.monkeyPatchPathParameterType($),$.router=$,$.$get=n,n.$inject=["$location","$browser","$window","$sniffer","$rootScope","$http","$templateCache"],$}y.$inject=["$locationProvider"];var b=function(t){return["$uiRouterProvider",function(e){var n=e.router[t];return n.$get=function(){return n},n}]};function w(t,e,n){if(i.services.$injector=t,i.services.$q=e,!Object.prototype.hasOwnProperty.call(t,"strictDi"))try{t.invoke((function(t){}))}catch(e){t.strictDi=!!/strict mode/.exec(e&&e.toString())}n.stateRegistry.get().map((function(t){return t.$$state().resolvables})).reduce(i.unnestR,[]).filter((function(t){return"deferred"===t.deps})).forEach((function(e){return e.deps=t.annotate(e.resolveFn,t.strictDi)}))}function O(t){t.$watch((function(){i.trace.approximateDigests++}))}w.$inject=["$injector","$q","$uiRouter"],O.$inject=["$rootScope"],p.provider("$uiRouter",y),v.provider("$urlRouter",["$uiRouterProvider",function(t){return t.urlRouterProvider=new h.a(t)}]),d.provider("$urlService",b("urlService")),d.provider("$urlMatcherFactory",["$uiRouterProvider",function(){return $.urlMatcherFactory}]),d.provider("$templateFactory",(function(){return new a})),m.provider("$stateRegistry",b("stateRegistry")),m.provider("$uiRouterGlobals",b("globals")),m.provider("$transitions",b("transitionService")),m.provider("$state",["$uiRouterProvider",function(){return Object(i.extend)($.stateProvider,{$get:function(){return $.stateService}})}]),m.factory("$stateParams",["$uiRouter",function(t){return t.globals.params}]),g.factory("$view",(function(){return $.viewService})),g.service("$trace",(function(){return i.trace})),g.run(O),d.run(["$urlMatcherFactory",function(t){}]),m.run(["$state",function(t){}]),v.run(["$urlRouter",function(t){}]),p.run(w);var x=function(t){return t.getTokens().filter(i.isString).map((function(e){var n=t.getResolvable(e);return[e,"NOWAIT"===t.getPolicy(n).async?n.promise:n.data]})).reduce(i.applyPairs,{})}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n(5),i=function(t){var e=t.router,n=t.entering().filter((function(t){return!!t.$$state().lazyLoad})).map((function(e){return a(t,e)}));return r.b.$q.all(n).then((function(){if("url"!==t.originalTransition().options().source){var n=t.targetState();return e.stateService.target(n.identifier(),n.params(),n.options())}var r=e.urlService,i=r.match(r.parts()),o=i&&i.rule;if(o&&"STATE"===o.type){var a=o.state,s=i.match;return e.stateService.target(a,s,t.options())}e.urlService.sync()}))},o=function(t){return t.onBefore({entering:function(t){return!!t.lazyLoad}},i)};function a(t,e){var n=e.$$state().lazyLoad,i=n._promise;return i||(i=n._promise=r.b.$q.when(n(t,e)).then((function(e){return e&&Array.isArray(e.states)&&e.states.forEach((function(e){return t.router.stateRegistry.register(e)})),e})).then((function(t){return delete e.lazyLoad,delete e.$$state().lazyLoad,delete n._promise,t}),(function(t){return delete n._promise,r.b.$q.reject(t)}))),i}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r,i=n(0),o=n(1),a=n(3),s=n(5),u=n(27),c=function(){function t(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=Object(i.z)(t.prototype,["hash","string","query","path","int","bool","date","json","any"]),this.types=Object(i.t)(Object(i.u)(this.defaultTypes,(function(t,e){return new u.a(Object(i.l)({name:e},t))})),{})}return t.prototype.dispose=function(){this.types={}},t.prototype.type=function(t,e,n){if(!Object(o.c)(e))return this.types[t];if(this.types.hasOwnProperty(t))throw new Error("A type named '"+t+"' has already been defined.");return this.types[t]=new u.a(Object(i.l)({name:t},e)),n&&(this.typeQueue.push({name:t,def:n}),this.enqueue||this._flushTypeQueue()),this},t.prototype._flushTypeQueue=function(){for(;this.typeQueue.length;){var t=this.typeQueue.shift();if(t.pattern)throw new Error("You cannot override a type's .pattern at runtime.");Object(i.l)(this.types[t.name],s.b.$injector.invoke(t.def))}},t}();r=function(t){var e=function(t){return null!=t?t.toString():t},n={encode:e,decode:e,is:Object(a.e)(String),pattern:/.*/,equals:function(t,e){return t==e}};return Object(i.l)({},n,t)},Object(i.l)(c.prototype,{string:r({}),path:r({pattern:/[^/]*/}),query:r({}),hash:r({inherit:!1}),int:r({decode:function(t){return parseInt(t,10)},is:function(t){return!Object(o.g)(t)&&this.decode(t.toString())===t},pattern:/-?\d+/}),bool:r({encode:function(t){return t?1:0},decode:function(t){return 0!==parseInt(t,10)},is:Object(a.e)(Boolean),pattern:/0|1/}),date:r({encode:function(t){return this.is(t)?[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-"):void 0},decode:function(t){if(this.is(t))return t;var e=this.capture.exec(t);return e?new Date(e[1],e[2]-1,e[3]):void 0},is:function(t){return t instanceof Date&&!isNaN(t.valueOf())},equals:function(t,e){return["getFullYear","getMonth","getDate"].reduce((function(n,r){return n&&t[r]()===e[r]()}),!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:r({encode:i.H,decode:i.q,is:Object(a.e)(Object),equals:i.k,pattern:/[^/]*/}),any:r({encode:i.r,decode:i.r,is:function(){return!0},equals:i.k})})},function(t,e,n){"use strict";n(28),n(14)},function(t,e){},function(t,e,n){"use strict";n(10),n(45),n(25),n(7),n(29),n(13),n(54),n(32)},function(t,e,n){"use strict";var r=n(71);n.o(r,"BaseUrlRule")&&n.d(e,"BaseUrlRule",(function(){return r.BaseUrlRule})),n.o(r,"UIRouter")&&n.d(e,"UIRouter",(function(){return r.UIRouter})),n.o(r,"ViewService")&&n.d(e,"ViewService",(function(){return r.ViewService})),n(20),n(47),n(48);var i=n(30);n.d(e,"BaseUrlRule",(function(){return i.a})),n(51),n(52),n(53)},function(t,e){},function(t,e,n){"use strict";var r=n(73);n.o(r,"BaseUrlRule")&&n.d(e,"BaseUrlRule",(function(){return r.BaseUrlRule})),n.o(r,"UIRouter")&&n.d(e,"UIRouter",(function(){return r.UIRouter})),n.o(r,"ViewService")&&n.d(e,"ViewService",(function(){return r.ViewService}));var i=n(49);n.d(e,"ViewService",(function(){return i.a}))},function(t,e){},function(t,e,n){"use strict";var r=n(75);n.o(r,"BaseUrlRule")&&n.d(e,"BaseUrlRule",(function(){return r.BaseUrlRule})),n.o(r,"ViewService")&&n.d(e,"ViewService",(function(){return r.ViewService}))},function(t,e,n){"use strict";var r=n(76);n.o(r,"BaseUrlRule")&&n.d(e,"BaseUrlRule",(function(){return r.BaseUrlRule})),n.o(r,"ViewService")&&n.d(e,"ViewService",(function(){return r.ViewService})),n(35),n(36),n(22),n(55),n(56),n(57),n(58),n(37),n(19),n(77)},function(t,e){},function(t,e,n){"use strict";var r=n(37),i=n(55),o=n(19),a=n(57),s=n(56),u=n(58);n(36),n(35),n(5),Object(o.c)("vanilla.hashBangLocation",!1,i.a,r.a),Object(o.c)("vanilla.pushStateLocation",!0,a.a,r.a),Object(o.c)("vanilla.memoryLocation",!1,s.a,u.a)},function(t,e,n){},function(t,e){t.exports=window.jQuery},function(t,e,n){var r;!function(i,o,a,s){"use strict";var u,c=["","webkit","Moz","MS","ms","o"],l=o.createElement("div"),f=Math.round,h=Math.abs,p=Date.now;function d(t,e,n){return setTimeout(w(t,n),e)}function v(t,e,n){return!!Array.isArray(t)&&(m(t,n[e],n),!0)}function m(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function g(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),t.apply(this,arguments)}}u="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var $=g((function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&void 0===t[r[i]])&&(t[r[i]]=e[r[i]]),i++;return t}),"extend","Use `assign`."),y=g((function(t,e){return $(t,e,!0)}),"merge","Use `assign`.");function b(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&u(r,n)}function w(t,e){return function(){return t.apply(e,arguments)}}function O(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function x(t,e){return void 0===t?e:t}function C(t,e,n){m(j(e),(function(e){t.addEventListener(e,n,!1)}))}function S(t,e,n){m(j(e),(function(e){t.removeEventListener(e,n,!1)}))}function _(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function E(t,e){return t.indexOf(e)>-1}function j(t){return t.trim().split(/\s+/g)}function A(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function k(t){return Array.prototype.slice.call(t,0)}function T(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];A(i,a)<0&&r.push(t[o]),i[o]=a,o++}return n&&(r=e?r.sort((function(t,n){return t[e]>n[e]})):r.sort()),r}function R(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<c.length;){if((r=(n=c[o])?n+i:e)in t)return r;o++}}var P=1;function D(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||i}var I="ontouchstart"in i,M=void 0!==R(i,"PointerEvent"),V=I&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),N=["x","y"],U=["clientX","clientY"];function L(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){O(t.options.enable,[t])&&n.handler(e)},this.init()}function q(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&e&&r-i==0,a=12&e&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=H(e)),i>1&&!n.firstMultiple?n.firstMultiple=H(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,u=e.center=F(r);e.timeStamp=p(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=G(s,u),e.distance=W(s,u),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=z(e.deltaX,e.deltaY);var c,l,f=B(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=f.x,e.overallVelocityY=f.y,e.overallVelocity=h(f.x)>h(f.y)?f.x:f.y,e.scale=a?(c=a.pointers,W((l=r)[0],l[1],U)/W(c[0],c[1],U)):1,e.rotation=a?function(t,e){return G(e[1],e[0],U)+G(t[1],t[0],U)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(8!=e.eventType&&(s>25||void 0===a.velocity)){var u=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,l=B(s,u,c);r=l.x,i=l.y,n=h(l.x)>h(l.y)?l.x:l.y,o=z(u,c),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var d=t.element;_(e.srcEvent.target,d)&&(d=e.srcEvent.target),e.target=d}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function H(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:f(t.pointers[n].clientX),clientY:f(t.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:e,center:F(e),deltaX:t.deltaX,deltaY:t.deltaY}}function F(t){var e=t.length;if(1===e)return{x:f(t[0].clientX),y:f(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:f(n/e),y:f(r/e)}}function B(t,e,n){return{x:e/t||0,y:n/t||0}}function z(t,e){return t===e?1:h(t)>=h(e)?t<0?2:4:e<0?8:16}function W(t,e,n){n||(n=N);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function G(t,e,n){n||(n=N);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}L.prototype={handler:function(){},init:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C(D(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(D(this.element),this.evWin,this.domHandler)}};var K={mousedown:1,mousemove:2,mouseup:4};function Y(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,L.apply(this,arguments)}b(Y,L,{handler:function(t){var e=K[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var J={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Z={2:"touch",3:"pen",4:"mouse",5:"kinect"},X="pointerdown",Q="pointermove pointerup pointercancel";function tt(){this.evEl=X,this.evWin=Q,L.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(X="MSPointerDown",Q="MSPointerMove MSPointerUp MSPointerCancel"),b(tt,L,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=J[r],o=Z[t.pointerType]||t.pointerType,a="touch"==o,s=A(e,t.pointerId,"pointerId");1&i&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):12&i&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var et={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function nt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,L.apply(this,arguments)}function rt(t,e){var n=k(t.touches),r=k(t.changedTouches);return 12&e&&(n=T(n.concat(r),"identifier",!0)),[n,r]}b(nt,L,{handler:function(t){var e=et[t.type];if(1===e&&(this.started=!0),this.started){var n=rt.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var it={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ot(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},L.apply(this,arguments)}function at(t,e){var n=k(t.touches),r=this.targetIds;if(3&e&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=k(t.changedTouches),s=[],u=this.target;if(o=n.filter((function(t){return _(t.target,u)})),1===e)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),12&e&&delete r[a[i].identifier],i++;return s.length?[T(o.concat(s),"identifier",!0),s]:void 0}function st(){L.apply(this,arguments);var t=w(this.handler,this);this.touch=new ot(this.manager,t),this.mouse=new Y(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function ut(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,ct.call(this,e)):12&t&&ct.call(this,e)}function ct(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)}),2500)}}function lt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}b(ot,L,{handler:function(t){var e=it[t.type],n=at.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}),b(st,L,{handler:function(t,e,n){var r="touch"==n.pointerType,i="mouse"==n.pointerType;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ut.call(this,e,n);else if(i&&lt.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ft=R(l.style,"touchAction"),ht=void 0!==ft,pt=function(){if(!ht)return!1;var t={},e=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||i.CSS.supports("touch-action",n)})),t}();function dt(t,e){this.manager=t,this.set(e)}function vt(t){this.options=u({},this.defaults,t||{}),this.id=P++,this.manager=null,this.options.enable=x(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function mt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function gt(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function $t(t,e){var n=e.manager;return n?n.get(t):t}function yt(){vt.apply(this,arguments)}function bt(){yt.apply(this,arguments),this.pX=null,this.pY=null}function wt(){yt.apply(this,arguments)}function Ot(){vt.apply(this,arguments),this._timer=null,this._input=null}function xt(){yt.apply(this,arguments)}function Ct(){yt.apply(this,arguments)}function St(){vt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function _t(t,e){return(e=e||{}).recognizers=x(e.recognizers,_t.defaults.preset),new Et(t,e)}function Et(t,e){var n;this.options=u({},_t.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(M?tt:V?ot:I?st:Y))(n,q),this.touchAction=new dt(this,this.options.touchAction),jt(this,!0),m(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function jt(t,e){var n,r=t.element;r.style&&(m(t.options.cssProps,(function(i,o){n=R(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}dt.prototype={set:function(t){"compute"==t&&(t=this.compute()),ht&&this.manager.element.style&&pt[t]&&(this.manager.element.style[ft]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return m(this.manager.recognizers,(function(e){O(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(E(t,"none"))return"none";var e=E(t,"pan-x"),n=E(t,"pan-y");return e&&n?"none":e||n?e?"pan-x":"pan-y":E(t,"manipulation")?"manipulation":"auto"}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=E(r,"none")&&!pt.none,o=E(r,"pan-y")&&!pt["pan-y"],a=E(r,"pan-x")&&!pt["pan-x"];if(i){var s=1===t.pointers.length,u=t.distance<2,c=t.deltaTime<250;if(s&&u&&c)return}if(!a||!o)return i||o&&6&n||a&&24&n?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}},vt.prototype={defaults:{},set:function(t){return u(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(v(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=$t(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return v(t,"dropRecognizeWith",this)||(t=$t(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(v(t,"requireFailure",this))return this;var e=this.requireFail;return-1===A(e,t=$t(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(v(t,"dropRequireFailure",this))return this;t=$t(t,this);var e=A(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+mt(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+mt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=u({},t);if(!O(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},b(yt,vt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=6&e,i=this.attrTest(t);return r&&(8&n||!i)?16|e:r||i?4&n?8|e:2&e?4|e:2:32}}),b(bt,yt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push("pan-y"),24&t&&e.push("pan-x"),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;return i&e.direction||(6&e.direction?(i=0===o?1:o<0?2:4,n=o!=this.pX,r=Math.abs(t.deltaX)):(i=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return yt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=gt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),b(wt,yt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),b(Ot,vt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!r||!n||12&t.eventType&&!i)this.reset();else if(1&t.eventType)this.reset(),this._timer=d((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),b(xt,yt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),b(Ct,yt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return bt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:24&n&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&h(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=gt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),b(St,vt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=t.eventType)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||W(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=d((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=d((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),_t.VERSION="2.0.7",_t.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[xt,{enable:!1}],[wt,{enable:!1},["rotate"]],[Ct,{direction:6}],[bt,{direction:6},["swipe"]],[St],[St,{event:"doubletap",taps:2},["tap"]],[Ot]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Et.prototype={set:function(t){return u(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(i=e.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&14&n.state&&(i=e.curRecognizer=n),o++}},get:function(t){if(t instanceof vt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(v(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(v(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=A(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(void 0!==t&&void 0!==e){var n=this.handlers;return m(j(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(void 0!==t){var n=this.handlers;return m(j(t),(function(t){e?n[t]&&n[t].splice(A(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&jt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},u(_t,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Et,Input:L,TouchAction:dt,TouchInput:ot,MouseInput:Y,PointerEventInput:tt,TouchMouseInput:st,SingleTouchInput:nt,Recognizer:vt,AttrRecognizer:yt,Tap:St,Pan:bt,Swipe:Ct,Pinch:wt,Rotate:xt,Press:Ot,on:C,off:S,each:m,merge:y,extend:$,assign:u,inherit:b,bindFn:w,prefixed:R}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=_t,void 0===(r=function(){return _t}.call(e,n,e,t))||(t.exports=r)}(window,document)},function(t,e,n){n(82),t.exports=n(83)},function(t,e,n){n.p=window.flatsomeVars?window.flatsomeVars.assets_url:"/"},function(t,e,n){"use strict";n.r(e),function(t){n(38),n(85),n(87),n(93),n(94);var e=n(80),r=n.n(e);t.HammerJS=r.a}.call(this,n(63))},function(t,e){!function(t){"use strict";var e={objectMaxDepth:5,urlErrorParamsEnabled:!0};function n(t){if(!U(t))return e;N(t.objectMaxDepth)&&(e.objectMaxDepth=r(t.objectMaxDepth)?t.objectMaxDepth:NaN),N(t.urlErrorParamsEnabled)&&J(t.urlErrorParamsEnabled)&&(e.urlErrorParamsEnabled=t.urlErrorParamsEnabled)}function r(t){return H(t)&&t>0}function i(t,n){n=n||Error;var r="https://errors.angularjs.org/1.8.2/",i=r.replace(".","\\.")+"[\\s\\S]*",o=new RegExp(i,"g");return function(){var i,a,s=arguments[0],u=arguments[1],c="["+(t?t+":":"")+s+"] ",l=ft(arguments,2).map((function(t){return Ht(t,e.objectMaxDepth)}));if(c+=u.replace(/\{\d+\}/g,(function(t){var e=+t.slice(1,-1);return e<l.length?l[e].replace(o,""):t})),c+="\n"+r+(t?t+"/":"")+s,e.urlErrorParamsEnabled)for(a=0,i="?";a<l.length;a++,i="&")c+=i+"p"+a+"="+encodeURIComponent(l[a]);return new n(c)}}var o,a,s,u,c=/^\/(.+)\/([a-z]*)$/,l=Object.prototype.hasOwnProperty,f=function(t){return q(t)?t.toLowerCase():t},h=function(t){return q(t)?t.toUpperCase():t},p=[].slice,d=[].splice,v=[].push,m=Object.prototype.toString,g=Object.getPrototypeOf,$=i("ng"),y=t.angular||(t.angular={}),b=0;function w(t){if(null==t||K(t))return!1;if(B(t)||q(t)||a&&t instanceof a)return!0;var e="length"in Object(t)&&t.length;return H(e)&&(e>=0&&e-1 in t||"function"==typeof t.item)}function O(t,e,n){var r,i;if(t)if(W(t))for(r in t)"prototype"!==r&&"length"!==r&&"name"!==r&&t.hasOwnProperty(r)&&e.call(n,t[r],r,t);else if(B(t)||w(t)){var o="object"!=typeof t;for(r=0,i=t.length;r<i;r++)(o||r in t)&&e.call(n,t[r],r,t)}else if(t.forEach&&t.forEach!==O)t.forEach(e,n,t);else if(L(t))for(r in t)e.call(n,t[r],r,t);else if("function"==typeof t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t);else for(r in t)l.call(t,r)&&e.call(n,t[r],r,t);return t}function x(t,e,n){for(var r=Object.keys(t).sort(),i=0;i<r.length;i++)e.call(n,t[r[i]],r[i]);return r}function C(t){return function(e,n){t(n,e)}}function S(){return++b}function _(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function E(t,e,n){for(var r=t.$$hashKey,i=0,o=e.length;i<o;++i){var a=e[i];if(U(a)||W(a))for(var s=Object.keys(a),u=0,c=s.length;u<c;u++){var l=s[u],f=a[l];n&&U(f)?F(f)?t[l]=new Date(f.valueOf()):G(f)?t[l]=new RegExp(f):f.nodeName?t[l]=f.cloneNode(!0):et(f)?t[l]=f.clone():"__proto__"!==l&&(U(t[l])||(t[l]=B(f)?[]:{}),E(t[l],[f],!0)):t[l]=f}}return _(t,r),t}function j(t){return E(t,p.call(arguments,1),!1)}function A(t){return E(t,p.call(arguments,1),!0)}function k(t){return parseInt(t,10)}o=t.document.documentMode;var T=Number.isNaN||function(t){return t!=t};function R(t,e){return j(Object.create(t),e)}function P(){}function D(t){return t}function I(t){return function(){return t}}function M(t){return W(t.toString)&&t.toString!==m}function V(t){return void 0===t}function N(t){return void 0!==t}function U(t){return null!==t&&"object"==typeof t}function L(t){return null!==t&&"object"==typeof t&&!g(t)}function q(t){return"string"==typeof t}function H(t){return"number"==typeof t}function F(t){return"[object Date]"===m.call(t)}function B(t){return Array.isArray(t)||t instanceof Array}function z(t){switch(m.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function W(t){return"function"==typeof t}function G(t){return"[object RegExp]"===m.call(t)}function K(t){return t&&t.window===t}function Y(t){return t&&t.$evalAsync&&t.$watch}function J(t){return"boolean"==typeof t}function Z(t){return t&&W(t.then)}P.$inject=[],D.$inject=[];var X=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,Q=function(t){return q(t)?t.trim():t},tt=function(t){return t.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function et(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function nt(t){return f(t.nodeName||t[0]&&t[0].nodeName)}function rt(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function it(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function ot(t,e,n){var i,o,a=[],s=[];if(n=r(n)?n:NaN,e){if((o=e)&&H(o.length)&&X.test(m.call(o))||(i=e,"[object ArrayBuffer]"===m.call(i)))throw $("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t===e)throw $("cpi","Can't copy! Source and destination are identical.");return B(e)?e.length=0:O(e,(function(t,n){"$$hashKey"!==n&&delete e[n]})),a.push(t),s.push(e),u(t,e,n)}return c(t,n);function u(t,e,n){if(--n<0)return"...";var r,i=e.$$hashKey;if(B(t))for(var o=0,a=t.length;o<a;o++)e.push(c(t[o],n));else if(L(t))for(r in t)e[r]=c(t[r],n);else if(t&&"function"==typeof t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&(e[r]=c(t[r],n));else for(r in t)l.call(t,r)&&(e[r]=c(t[r],n));return _(e,i),e}function c(t,e){if(!U(t))return t;var n=a.indexOf(t);if(-1!==n)return s[n];if(K(t)||Y(t))throw $("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,i=function(t){switch(m.call(t)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new t.constructor(c(t.buffer),t.byteOffset,t.length);case"[object ArrayBuffer]":if(!t.slice){var e=new ArrayBuffer(t.byteLength);return new Uint8Array(e).set(new Uint8Array(t)),e}return t.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new t.constructor(t.valueOf());case"[object RegExp]":var n=new RegExp(t.source,t.toString().match(/[^/]*$/)[0]);return n.lastIndex=t.lastIndex,n;case"[object Blob]":return new t.constructor([t],{type:t.type})}if(W(t.cloneNode))return t.cloneNode(!0)}(t);return void 0===i&&(i=B(t)?[]:Object.create(g(t)),r=!0),a.push(t),s.push(i),r?u(t,i,e):i}}function at(t,e){return t===e||t!=t&&e!=e}function st(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;var n,r,i,o=typeof t;if(o===typeof e&&"object"===o){if(!B(t)){if(F(t))return!!F(e)&&at(t.getTime(),e.getTime());if(G(t))return!!G(e)&&t.toString()===e.toString();if(Y(t)||Y(e)||K(t)||K(e)||B(e)||F(e)||G(e))return!1;for(r in i=Nt(),t)if("$"!==r.charAt(0)&&!W(t[r])){if(!st(t[r],e[r]))return!1;i[r]=!0}for(r in e)if(!(r in i)&&"$"!==r.charAt(0)&&N(e[r])&&!W(e[r]))return!1;return!0}if(!B(e))return!1;if((n=t.length)===e.length){for(r=0;r<n;r++)if(!st(t[r],e[r]))return!1;return!0}}return!1}var ut=function(){if(!N(ut.rules)){var e=t.document.querySelector("[ng-csp]")||t.document.querySelector("[data-ng-csp]");if(e){var n=e.getAttribute("ng-csp")||e.getAttribute("data-ng-csp");ut.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else ut.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(t){return!0}}(),noInlineStyle:!1}}return ut.rules},ct=function(){if(N(ct.name_))return ct.name_;var e,n,r,i,o=St.length;for(n=0;n<o;++n)if(r=St[n],e=t.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=e.getAttribute(r+"jq");break}return ct.name_=i};function lt(t,e,n){return t.concat(p.call(e,n))}function ft(t,e){return p.call(t,e||0)}function ht(t,e){var n=arguments.length>2?ft(arguments,2):[];return!W(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,lt(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function pt(e,n){var r=n;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?r=void 0:K(n)?r="$WINDOW":n&&t.document===n?r="$DOCUMENT":Y(n)&&(r="$SCOPE"),r}function dt(t,e){if(!V(t))return H(e)||(e=e?2:null),JSON.stringify(t,pt,e)}function vt(t){return q(t)?JSON.parse(t):t}var mt=/:/g;function gt(t,e){t=t.replace(mt,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return T(n)?e:n}function $t(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}function yt(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset();return $t(t,n*(gt(e,r)-r))}function bt(t){t=a(t).clone().empty();var e=a("<div></div>").append(t).html();try{return t[0].nodeType===Lt?f(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(t,e){return"<"+f(e)}))}catch(t){return f(e)}}function wt(t){try{return decodeURIComponent(t)}catch(t){}}function Ot(t){var e={};return O((t||"").split("&"),(function(t){var n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),-1!==(n=t.indexOf("="))&&(r=t.substring(0,n),i=t.substring(n+1)),N(r=wt(r))&&(i=!N(i)||wt(i),l.call(e,r)?B(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))})),e}function xt(t){return Ct(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Ct(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}var St=["ng-","data-ng-","ng:","x-ng-"],_t=function(e){var n=e.currentScript;if(!n)return!0;if(!(n instanceof t.HTMLScriptElement||n instanceof t.SVGScriptElement))return!1;var r=n.attributes;return[r.getNamedItem("src"),r.getNamedItem("href"),r.getNamedItem("xlink:href")].every((function(t){if(!t)return!0;if(!t.value)return!1;var n=e.createElement("a");if(n.href=t.value,e.location.origin===n.origin)return!0;switch(n.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}}))}(t.document);function Et(e,n,r){U(r)||(r={}),r=j({strictDi:!1},r);var i=function(){if((e=a(e)).injector()){var i=e[0]===t.document?"document":bt(e);throw $("btstrpd","App already bootstrapped with this element '{0}'",i.replace(/</,"&lt;").replace(/>/,"&gt;"))}(n=n||[]).unshift(["$provide",function(t){t.value("$rootElement",e)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),n.unshift("ng");var o=Je(n,r.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply((function(){e.data("$injector",r),n(e)(t)}))}]),o},o=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/;if(t&&o.test(t.name)&&(r.debugInfoEnabled=!0,t.name=t.name.replace(o,"")),t&&!s.test(t.name))return i();t.name=t.name.replace(s,""),y.resumeBootstrap=function(t){return O(t,(function(t){n.push(t)})),i()},W(y.resumeDeferredBootstrap)&&y.resumeDeferredBootstrap()}function jt(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function At(t){var e=y.element(t).injector();if(!e)throw $("test","no injector found for element argument to getTestability");return e.get("$$testability")}var kt=/[A-Z]/g;function Tt(t,e){return e=e||"_",t.replace(kt,(function(t,n){return(n?e:"")+t.toLowerCase()}))}var Rt=!1;function Pt(){fe.legacyXHTMLReplacement=!0}function Dt(t,e,n){if(!t)throw $("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function It(t,e,n){return n&&B(t)&&(t=t[t.length-1]),Dt(W(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function Mt(t,e){if("hasOwnProperty"===t)throw $("badname","hasOwnProperty is not a valid {0} name",e)}function Vt(t){for(var e,n=t[0],r=t[t.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(e||t[i]!==n)&&(e||(e=a(p.call(t,0,i))),e.push(n));return e||t}function Nt(){return Object.create(null)}function Ut(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=!M(t)||B(t)||F(t)?dt(t):t.toString()}return t}var Lt=3;function qt(t,e){if(B(t)){e=e||[];for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(U(t))for(var i in e=e||{},t)"$"===i.charAt(0)&&"$"===i.charAt(1)||(e[i]=t[i]);return e||t}function Ht(t,e){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):V(t)?"undefined":"string"!=typeof t?function(t,e){var n=[];return r(e)&&(t=y.copy(t,null,e)),JSON.stringify(t,(function(t,e){if(U(e=pt(t,e))){if(n.indexOf(e)>=0)return"...";n.push(e)}return e}))}(t,e):t}var Ft={full:"1.8.2",major:1,minor:8,dot:2,codeName:"meteoric-mining"};fe.expando="ng339";var Bt=fe.cache={},zt=1;fe._data=function(t){return this.cache[t[this.expando]]||{}};var Wt=/-([a-z])/g,Gt=/^-ms-/,Kt={mouseleave:"mouseout",mouseenter:"mouseover"},Yt=i("jqLite");function Jt(t,e){return e.toUpperCase()}function Zt(t){return t.replace(Wt,Jt)}var Xt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Qt=/<|&#?\w+;/,te=/<([\w:-]+)/,ee=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ne={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};ne.tbody=ne.tfoot=ne.colgroup=ne.caption=ne.thead,ne.th=ne.td;var re={option:[1,'<select multiple="multiple">',"</select>"],_default:[0,"",""]};for(var ie in ne){var oe=ne[ie],ae=oe.slice().reverse();re[ie]=[ae.length,"<"+ae.join("><")+">","</"+oe.join("></")+">"]}function se(t){return!Qt.test(t)}function ue(t){var e=t.nodeType;return 1===e||!e||9===e}function ce(e,n){var r,i,a,s,u,c=n.createDocumentFragment(),l=[];if(se(e))l.push(n.createTextNode(e));else{if(r=c.appendChild(n.createElement("div")),i=(te.exec(e)||["",""])[1].toLowerCase(),s=fe.legacyXHTMLReplacement?e.replace(ee,"<$1></$2>"):e,o<10)for(a=re[i]||re._default,r.innerHTML=a[1]+s+a[2],u=a[0];u--;)r=r.firstChild;else{for(u=(a=ne[i]||[]).length;--u>-1;)r.appendChild(t.document.createElement(a[u])),r=r.firstChild;r.innerHTML=s}l=lt(l,r.childNodes),(r=c.firstChild).textContent=""}return c.textContent="",c.innerHTML="",O(l,(function(t){c.appendChild(t)})),c}re.optgroup=re.option;var le=t.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))};function fe(e){if(e instanceof fe)return e;var n,r,i,o;if(q(e)&&(e=Q(e),n=!0),!(this instanceof fe)){if(n&&"<"!==e.charAt(0))throw Yt("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new fe(e)}n?xe(this,(r=e,i=i||t.document,(o=Xt.exec(r))?[i.createElement(o[1])]:(o=ce(r,i))?o.childNodes:[])):W(e)?je(e):xe(this,e)}function he(t){return t.cloneNode(!0)}function pe(t,e){!e&&ue(t)&&a.cleanData([t]),t.querySelectorAll&&a.cleanData(t.querySelectorAll("*"))}function de(t){var e;for(e in t)return!1;return!0}function ve(t){var e=t.ng339,n=e&&Bt[e],r=n&&n.events,i=n&&n.data;i&&!de(i)||r&&!de(r)||(delete Bt[e],t.ng339=void 0)}function me(t,e,n,r){if(N(r))throw Yt("offargs","jqLite#off() does not support the `selector` argument");var i=$e(t),o=i&&i.events,a=i&&i.handle;if(a){if(e){var s=function(e){var r=o[e];N(n)&&it(r||[],n),N(n)&&r&&r.length>0||(t.removeEventListener(e,a),delete o[e])};O(e.split(" "),(function(t){s(t),Kt[t]&&s(Kt[t])}))}else for(e in o)"$destroy"!==e&&t.removeEventListener(e,a),delete o[e];ve(t)}}function ge(t,e){var n=t.ng339,r=n&&Bt[n];r&&(e?delete r.data[e]:r.data={},ve(t))}function $e(t,e){var n=t.ng339,r=n&&Bt[n];return e&&!r&&(t.ng339=n=++zt,r=Bt[n]={events:{},data:{},handle:void 0}),r}function ye(t,e,n){if(ue(t)){var r,i=N(n),o=!i&&e&&!U(e),a=!e,s=$e(t,!o),u=s&&s.data;if(i)u[Zt(e)]=n;else{if(a)return u;if(o)return u&&u[Zt(e)];for(r in e)u[Zt(r)]=e[r]}}}function be(t,e){return!!t.getAttribute&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1}function we(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;O(e.split(" "),(function(t){t=Q(t),r=r.replace(" "+t+" "," ")})),r!==n&&t.setAttribute("class",Q(r))}}function Oe(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;O(e.split(" "),(function(t){t=Q(t),-1===r.indexOf(" "+t+" ")&&(r+=t+" ")})),r!==n&&t.setAttribute("class",Q(r))}}function xe(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&&e.window!==e){if(n)for(var r=0;r<n;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function Ce(t,e){return Se(t,"$"+(e||"ngController")+"Controller")}function Se(t,e,n){9===t.nodeType&&(t=t.documentElement);for(var r=B(e)?e:[e];t;){for(var i=0,o=r.length;i<o;i++)if(N(n=a.data(t,r[i])))return n;t=t.parentNode||11===t.nodeType&&t.host}}function _e(t){for(pe(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Ee(t,e){e||pe(t);var n=t.parentNode;n&&n.removeChild(t)}function je(e){function n(){t.document.removeEventListener("DOMContentLoaded",n),t.removeEventListener("load",n),e()}"complete"===t.document.readyState?t.setTimeout(e):(t.document.addEventListener("DOMContentLoaded",n),t.addEventListener("load",n))}var Ae=fe.prototype={ready:je,toString:function(){var t=[];return O(this,(function(e){t.push(""+e)})),"["+t.join(", ")+"]"},eq:function(t){return a(t>=0?this[t]:this[this.length+t])},length:0,push:v,sort:[].sort,splice:[].splice},ke={};O("multiple,selected,checked,disabled,readOnly,required,open".split(","),(function(t){ke[f(t)]=t}));var Te={};O("input,select,option,textarea,button,form,details".split(","),(function(t){Te[t]=!0}));var Re={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};function Pe(t,e){var n=ke[e.toLowerCase()];return n&&Te[nt(t)]&&n}function De(t,e,n){n.call(t,e)}function Ie(t,e,n){var r=e.relatedTarget;r&&(r===t||le.call(t,r))||n.call(t,e)}function Me(){this.$get=function(){return j(fe,{hasClass:function(t,e){return t.attr&&(t=t[0]),be(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),Oe(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),we(t,e)}})}}function Ve(t,e){var n=t&&t.$$hashKey;if(n)return"function"==typeof n&&(n=t.$$hashKey()),n;var r=typeof t;return"function"===r||"object"===r&&null!==t?t.$$hashKey=r+":"+(e||S)():r+":"+t}O({data:ye,removeData:ge,hasData:function(t){for(var e in Bt[t.ng339])return!0;return!1},cleanData:function(t){for(var e=0,n=t.length;e<n;e++)ge(t[e]),me(t[e])}},(function(t,e){fe[e]=t})),O({data:ye,inheritedData:Se,scope:function(t){return a.data(t,"$scope")||Se(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return a.data(t,"$isolateScope")||a.data(t,"$isolateScopeNoTemplate")},controller:Ce,injector:function(t){return Se(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:be,css:function(t,e,n){if(e=function(t){return Zt(t.replace(Gt,"ms-"))}(e),!N(n))return t.style[e];t.style[e]=n},attr:function(t,e,n){var r,i=t.nodeType;if(i!==Lt&&2!==i&&8!==i&&t.getAttribute){var o=f(e),a=ke[o];if(!N(n))return r=t.getAttribute(e),a&&null!==r&&(r=o),null===r?void 0:r;null===n||!1===n&&a?t.removeAttribute(e):t.setAttribute(e,a?o:n)}},prop:function(t,e,n){if(!N(n))return t[e];t[e]=n},text:function(){return t.$dv="",t;function t(t,e){if(V(e)){var n=t.nodeType;return 1===n||n===Lt?t.textContent:""}t.textContent=e}}(),val:function(t,e){if(V(e)){if(t.multiple&&"select"===nt(t)){var n=[];return O(t.options,(function(t){t.selected&&n.push(t.value||t.text)})),n}return t.value}t.value=e},html:function(t,e){if(V(e))return t.innerHTML;pe(t,!0),t.innerHTML=e},empty:_e},(function(t,e){fe.prototype[e]=function(e,n){var r,i,o=this.length;if(t!==_e&&V(2===t.length&&t!==be&&t!==Ce?e:n)){if(U(e)){for(r=0;r<o;r++)if(t===ye)t(this[r],e);else for(i in e)t(this[r],i,e[i]);return this}for(var a=t.$dv,s=V(a)?Math.min(o,1):o,u=0;u<s;u++){var c=t(this[u],e,n);a=a?a+c:c}return a}for(r=0;r<o;r++)t(this[r],e,n);return this}})),O({removeData:ge,on:function(t,e,n,r){if(N(r))throw Yt("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(ue(t)){var i=$e(t,!0),o=i.events,a=i.handle;a||(a=i.handle=function(t,e){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=e[r||n.type],o=i?i.length:0;if(o){if(V(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var s=i.specialHandlerWrapper||De;o>1&&(i=qt(i));for(var u=0;u<o;u++)n.isImmediatePropagationStopped()||s(t,n,i[u])}};return n.elem=t,n}(t,o));for(var s=e.indexOf(" ")>=0?e.split(" "):[e],u=s.length,c=function(e,r,i){var s=o[e];s||((s=o[e]=[]).specialHandlerWrapper=r,"$destroy"===e||i||t.addEventListener(e,a)),s.push(n)};u--;)e=s[u],Kt[e]?(c(Kt[e],Ie),c(e,void 0,!0)):c(e)}},off:me,one:function(t,e,n){(t=a(t)).on(e,(function r(){t.off(e,n),t.off(e,r)})),t.on(e,n)},replaceWith:function(t,e){var n,r=t.parentNode;pe(t),O(new fe(e),(function(e){n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e}))},children:function(t){var e=[];return O(t.childNodes,(function(t){1===t.nodeType&&e.push(t)})),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(1===n||11===n)for(var r=0,i=(e=new fe(e)).length;r<i;r++){var o=e[r];t.appendChild(o)}},prepend:function(t,e){if(1===t.nodeType){var n=t.firstChild;O(new fe(e),(function(e){t.insertBefore(e,n)}))}},wrap:function(t,e){var n,r,i;n=t,r=a(e).eq(0).clone()[0],(i=n.parentNode)&&i.replaceChild(r,n),r.appendChild(n)},remove:Ee,detach:function(t){Ee(t,!0)},after:function(t,e){var n=t,r=t.parentNode;if(r)for(var i=0,o=(e=new fe(e)).length;i<o;i++){var a=e[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:Oe,removeClass:we,toggleClass:function(t,e,n){e&&O(e.split(" "),(function(e){var r=n;V(r)&&(r=!be(t,e)),(r?Oe:we)(t,e)}))},parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:he,triggerHandler:function(t,e,n){var r,i,o,a=e.type||e,s=$e(t),u=s&&s.events,c=u&&u[a];c&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:P,type:a,target:t},e.type&&(r=j(r,e)),i=qt(c),o=n?[r].concat(n):[r],O(i,(function(e){r.isImmediatePropagationStopped()||e.apply(t,o)})))}},(function(t,e){fe.prototype[e]=function(e,n,r){for(var i,o=0,s=this.length;o<s;o++)V(i)?N(i=t(this[o],e,n,r))&&(i=a(i)):xe(i,t(this[o],e,n,r));return N(i)?i:this}})),fe.prototype.bind=fe.prototype.on,fe.prototype.unbind=fe.prototype.off;var Ne=Object.create(null);function Ue(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}Ue.prototype={_idx:function(t){return t!==this._lastKey&&(this._lastKey=t,this._lastIndex=this._keys.indexOf(t)),this._lastIndex},_transformKey:function(t){return T(t)?Ne:t},get:function(t){t=this._transformKey(t);var e=this._idx(t);if(-1!==e)return this._values[e]},has:function(t){return t=this._transformKey(t),-1!==this._idx(t)},set:function(t,e){t=this._transformKey(t);var n=this._idx(t);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=t,this._values[n]=e},delete:function(t){t=this._transformKey(t);var e=this._idx(t);return-1!==e&&(this._keys.splice(e,1),this._values.splice(e,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var Le=Ue,qe=[function(){this.$get=[function(){return Le}]}],He=/^([^(]+?)=>/,Fe=/^[^(]*\(\s*([^)]*)\)/m,Be=/,/,ze=/^\s*(_?)(\S+?)\1\s*$/,We=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ge=i("$injector");function Ke(t){return Function.prototype.toString.call(t)}function Ye(t){var e=Ke(t).replace(We,"");return e.match(He)||e.match(Fe)}function Je(t,e){e=!0===e;var n={},r=[],i=new Le,a={$provide:{provider:p(d),factory:p(m),service:p((function(t,e){return m(t,["$injector",function(t){return t.instantiate(e)}])})),value:p((function(t,e){return m(t,I(e),!1)})),constant:p((function(t,e){Mt(t,"constant"),a[t]=e,c[t]=e})),decorator:function(t,e){var n=s.get(t+"Provider"),r=n.$get;n.$get=function(){var t=f.invoke(r,n);return f.invoke(e,null,{$delegate:t})}}}},s=a.$injector=$(a,(function(t,e){throw y.isString(e)&&r.push(e),Ge("unpr","Unknown provider: {0}",r.join(" <- "))})),c={},l=$(c,(function(t,e){var n=s.get(t+"Provider",e);return f.invoke(n.$get,n,void 0,t)})),f=l;a.$injectorProvider={$get:I(l)},f.modules=s.modules=Nt();var h=g(t);return(f=l.get("$injector")).strictDi=e,O(h,(function(t){t&&f.invoke(t)})),f.loadNewModules=function(t){O(g(t),(function(t){t&&f.invoke(t)}))},f;function p(t){return function(e,n){if(!U(e))return t(e,n);O(e,C(t))}}function d(t,e){if(Mt(t,"service"),(W(e)||B(e))&&(e=s.instantiate(e)),!e.$get)throw Ge("pget","Provider '{0}' must define $get factory method.",t);return a[t+"Provider"]=e}function v(t,e){return function(){var n=f.invoke(e,this);if(V(n))throw Ge("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function m(t,e,n){return d(t,{$get:!1!==n?v(t,e):e})}function g(t){Dt(V(t)||B(t),"modulesToLoad","not an array");var e,n=[];return O(t,(function(t){if(!i.get(t)){i.set(t,!0);try{q(t)?(e=u(t),f.modules[t]=e,n=n.concat(g(e.requires)).concat(e._runBlocks),r(e._invokeQueue),r(e._configBlocks)):W(t)||B(t)?n.push(s.invoke(t)):It(t,"module")}catch(e){throw B(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),Ge("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}function r(t){var e,n;for(e=0,n=t.length;e<n;e++){var r=t[e],i=s.get(r[0]);i[r[1]].apply(i,r[2])}}})),n}function $(t,i){function s(e,o){if(t.hasOwnProperty(e)){if(t[e]===n)throw Ge("cdep","Circular dependency found: {0}",e+" <- "+r.join(" <- "));return t[e]}try{return r.unshift(e),t[e]=n,t[e]=i(e,o),t[e]}catch(r){throw t[e]===n&&delete t[e],r}finally{r.shift()}}function u(t,n,r){for(var i=[],o=Je.$$annotate(t,e,r),a=0,u=o.length;a<u;a++){var c=o[a];if("string"!=typeof c)throw Ge("itkn","Incorrect injection token! Expected service name as string, got {0}",c);i.push(n&&n.hasOwnProperty(c)?n[c]:s(c,r))}return i}return{invoke:function(t,e,n,r){"string"==typeof n&&(r=n,n=null);var i=u(t,n,r);return B(t)&&(t=t[t.length-1]),function(t){if(o||"function"!=typeof t)return!1;var e=t.$$ngIsClass;return J(e)||(e=t.$$ngIsClass=/^class\b/.test(Ke(t))),e}(t)?(i.unshift(null),new(Function.prototype.bind.apply(t,i))):t.apply(e,i)},instantiate:function(t,e,n){var r=B(t)?t[t.length-1]:t,i=u(t,e,n);return i.unshift(null),new(Function.prototype.bind.apply(r,i))},get:s,annotate:Je.$$annotate,has:function(e){return a.hasOwnProperty(e+"Provider")||t.hasOwnProperty(e)}}}}function Ze(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(n,r,i){var o=n.document;function s(t){if(t){t.scrollIntoView();var e=function(){var t=u.yOffset;if(W(t))t=t();else if(et(t)){var e=t[0];t="fixed"!==n.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom}else H(t)||(t=0);return t}();if(e){var r=t.getBoundingClientRect().top;n.scrollBy(0,r-e)}}else n.scrollTo(0,0)}function u(t){var e,n,i;(t=q(t)?t:H(t)?t.toString():r.hash())?(e=o.getElementById(t))?s(e):(n=o.getElementsByName(t),i=null,Array.prototype.some.call(n,(function(t){if("a"===nt(t))return i=t,!0})),(e=i)?s(e):"top"===t&&s(null)):s(null)}return e&&i.$watch((function(){return r.hash()}),(function(e,n){var r,o;e===n&&""===e||(r=function(){i.$evalAsync(u)},"complete"===(o=o||t).document.readyState?o.setTimeout(r):a(o).on("load",r))})),u}]}Je.$$annotate=function(t,e,n){var r,i;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw q(n)&&n||(n=t.name||function(t){var e=Ye(t);return e?"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(t)),Ge("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);O(Ye(t)[1].split(Be),(function(t){t.replace(ze,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else B(t)?(It(t[i=t.length-1],"fn"),r=t.slice(0,i)):It(t,"fn",!0);return r};var Xe=i("$animate");function Qe(t,e){return t||e?t?e?(B(t)&&(t=t.join(" ")),B(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function tn(t){return U(t)?t:{}}var en=function(){this.$get=P},nn=function(){var t=new Le,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){return{enabled:P,on:P,off:P,pin:P,push:function(a,s,u,c){c&&c(),(u=u||{}).from&&a.css(u.from),u.to&&a.css(u.to),(u.addClass||u.removeClass)&&function(n,a,s){var u=t.get(n)||{},c=i(u,a,!0),l=i(u,s,!1);(c||l)&&(t.set(n,u),e.push(n),1===e.length&&r.$$postDigest(o))}(a,u.addClass,u.removeClass);var l=new n;return l.complete(),l}};function i(t,e,n){var r=!1;return e&&O(e=q(e)?e.split(" "):B(e)?e:[],(function(e){e&&(r=!0,t[e]=n)})),r}function o(){O(e,(function(e){var n=t.get(e);if(n){var r=function(t){q(t)&&(t=t.split(" "));var e=Nt();return O(t,(function(t){t.length&&(e[t]=!0)})),e}(e.attr("class")),i="",o="";O(n,(function(t,e){t!==!!r[e]&&(t?i+=(i.length?" ":"")+e:o+=(o.length?" ":"")+e)})),O(e,(function(t){i&&Oe(t,i),o&&we(t,o)})),t.delete(e)}})),e.length=0}}]},rn=["$provide",function(t){var e=this,n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Xe("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.customFilter=function(t){return 1===arguments.length&&(r=W(t)?t:null),r},this.classNameFilter=function(t){if(1===arguments.length&&(n=t instanceof RegExp?t:null)){var e=new RegExp("[(\\s|\\/)]ng-animate[(\\s|\\/)]");if(e.test(n.toString()))throw n=null,Xe("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate")}return n},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){var r=function(t){for(var e=0;e<t.length;e++){var n=t[e];if(1===n.nodeType)return n}}(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel:function(t){t.cancel&&t.cancel()},enter:function(n,r,i,o){return r=r&&a(r),i=i&&a(i),e(n,r=r||i.parent(),i),t.push(n,"enter",tn(o))},move:function(n,r,i,o){return r=r&&a(r),i=i&&a(i),e(n,r=r||i.parent(),i),t.push(n,"move",tn(o))},leave:function(e,n){return t.push(e,"leave",tn(n),(function(){e.remove()}))},addClass:function(e,n,r){return(r=tn(r)).addClass=Qe(r.addclass,n),t.push(e,"addClass",r)},removeClass:function(e,n,r){return(r=tn(r)).removeClass=Qe(r.removeClass,n),t.push(e,"removeClass",r)},setClass:function(e,n,r,i){return(i=tn(i)).addClass=Qe(i.addClass,n),i.removeClass=Qe(i.removeClass,r),t.push(e,"setClass",i)},animate:function(e,n,r,i,o){return(o=tn(o)).from=o.from?j(o.from,n):n,o.to=o.to?j(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=Qe(o.tempClasses,i),t.push(e,"animate",o)}}}]}],on=function(){this.$get=["$$rAF",function(t){var e=[];function n(n){e.push(n),e.length>1||t((function(){for(var t=0;t<e.length;t++)e[t]();e=[]}))}return function(){var t=!1;return n((function(){t=!0})),function(e){t?e():n(e)}}}]},an=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(t,e,n,r,i){function o(t){this.setHost(t);var e=n();this._doneCallbacks=[],this._tick=function(t){r()?function(t){i(t,0,!1)}(t):e(t)},this._state=0}return o.chain=function(t,e){var n=0;!function r(){n!==t.length?t[n]((function(t){!1!==t?(n++,r()):e(!1)})):e(!0)}()},o.all=function(t,e){var n=0,r=!0;function i(i){r=r&&i,++n===t.length&&e(r)}O(t,(function(t){t.done(i)}))},o.prototype={setHost:function(t){this.host=t||{}},done:function(t){2===this._state?t():this._doneCallbacks.push(t)},progress:P,getPromise:function(){if(!this.promise){var e=this;this.promise=t((function(t,n){e.done((function(e){!1===e?n():t()}))}))}return this.promise},then:function(t,e){return this.getPromise().then(t,e)},catch:function(t){return this.getPromise().catch(t)},finally:function(t){return this.getPromise().finally(t)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(t){var e=this;0===e._state&&(e._state=1,e._tick((function(){e._resolve(t)})))},_resolve:function(t){2!==this._state&&(O(this._doneCallbacks,(function(e){e(t)})),this._doneCallbacks.length=0,this._state=2)}},o}]},sn=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(t,e,n){return function(e,r){var i=r||{};i.$$prepared||(i=ot(i)),i.cleanupStyles&&(i.from=i.to=null),i.from&&(e.css(i.from),i.from=null);var o,a=new n;return{start:s,end:s};function s(){return t((function(){i.addClass&&(e.addClass(i.addClass),i.addClass=null),i.removeClass&&(e.removeClass(i.removeClass),i.removeClass=null),i.to&&(e.css(i.to),i.to=null),o||a.complete(),o=!0})),a}}}]};function un(t,e,n,r,i){var o=this,s=t.location,u=t.history,c=t.setTimeout,l=t.clearTimeout,f={},h=i(n);o.isMock=!1,o.$$completeOutstandingRequest=h.completeTask,o.$$incOutstandingRequestCount=h.incTaskCount,o.notifyWhenNoOutstandingRequests=h.notifyWhenNoPendingTasks;var p,d,v=s.href,m=e.find("base"),g=null,$=r.history?function(){try{return u.state}catch(t){}}:P;C(),o.url=function(e,n,i){if(V(i)&&(i=null),s!==t.location&&(s=t.location),u!==t.history&&(u=t.history),e){var a=d===i;if(e=si(e).href,v===e&&(!r.history||a))return o;var c=v&&ar(v)===ar(e);return v=e,d=i,!r.history||c&&a?(c||(g=e),n?s.replace(e):c?s.hash=function(t){var e=t.indexOf("#");return-1===e?"":t.substr(e)}(e):s.href=e,s.href!==e&&(g=e)):(u[n?"replaceState":"pushState"](i,"",e),C()),g&&(g=e),o}return function(t){return t.replace(/#$/,"")}(g||s.href)},o.state=function(){return p};var y=[],b=!1;function w(){g=null,S()}var x=null;function C(){st(p=V(p=$())?null:p,x)&&(p=x),x=p,d=p}function S(){var t=d;C(),v===o.url()&&t===p||(v=o.url(),d=p,O(y,(function(t){t(o.url(),p)})))}o.onUrlChange=function(e){return b||(r.history&&a(t).on("popstate",w),a(t).on("hashchange",w),b=!0),y.push(e),e},o.$$applicationDestroyed=function(){a(t).off("hashchange popstate",w)},o.$$checkUrlChange=S,o.baseHref=function(){var t=m.attr("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""},o.defer=function(t,e,n){var r;return e=e||0,n=n||h.DEFAULT_TASK_TYPE,h.incTaskCount(n),r=c((function(){delete f[r],h.completeTask(t,n)}),e),f[r]=n,r},o.defer.cancel=function(t){if(f.hasOwnProperty(t)){var e=f[t];return delete f[t],l(t),h.completeTask(P,e),!0}return!1}}function cn(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(t,e,n,r,i){return new un(t,r,e,n,i)}]}function ln(){this.$get=function(){var t={};function e(e,n){if(e in t)throw i("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var r=0,o=j({},n,{id:e}),a=Nt(),s=n&&n.capacity||Number.MAX_VALUE,u=Nt(),c=null,l=null;return t[e]={put:function(t,e){if(!V(e))return s<Number.MAX_VALUE&&f(u[t]||(u[t]={key:t})),t in a||r++,a[t]=e,r>s&&this.remove(l.key),e},get:function(t){if(s<Number.MAX_VALUE){var e=u[t];if(!e)return;f(e)}return a[t]},remove:function(t){if(s<Number.MAX_VALUE){var e=u[t];if(!e)return;e===c&&(c=e.p),e===l&&(l=e.n),h(e.n,e.p),delete u[t]}t in a&&(delete a[t],r--)},removeAll:function(){a=Nt(),r=0,u=Nt(),c=l=null},destroy:function(){a=null,o=null,u=null,delete t[e]},info:function(){return j({},o,{size:r})}};function f(t){t!==c&&(l?l===t&&(l=t.n):l=t,h(t.n,t.p),h(t,c),(c=t).n=null)}function h(t,e){t!==e&&(t&&(t.p=e),e&&(e.n=t))}}return e.info=function(){var e={};return O(t,(function(t,n){e[n]=t.info()})),e},e.get=function(e){return t[e]},e}}function fn(){this.$get=["$cacheFactory",function(t){return t("templates")}]}var hn=i("$compile"),pn=new function(){};function dn(e,n){var r={},i=/^\s*directive:\s*([\w-]+)\s+(.*)$/,s=/(([\w-]+)(?::([^;]+))?;?)/,u=function(t){var e,n={},r="ngSrc,ngSrcset,src,srcset".split(",");for(e=0;e<r.length;e++)n[r[e]]=!0;return n}(),c=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,h=/^(on[a-z]+|formaction)$/,p=Nt();function d(t,e,n){var r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,i=Nt();return O(t,(function(t,o){if((t=t.trim())in p)i[o]=p[t];else{var a=t.match(r);if(!a)throw hn("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,o,t,n?"controller bindings definition":"isolate scope definition");i[o]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||o},a[4]&&(p[t]=i[o])}})),i}function v(t,e){var n={isolateScope:null,bindToController:null};if(U(t.scope)&&(!0===t.bindToController?(n.bindToController=d(t.scope,e,!0),n.isolateScope={}):n.isolateScope=d(t.scope,e,!1)),U(t.bindToController)&&(n.bindToController=d(t.bindToController,e,!0)),n.bindToController&&!t.controller)throw hn("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);return n}this.directive=function t(n,i){return Dt(n,"name"),Mt(n,"directive"),q(n)?(function(t){var e=t.charAt(0);if(!e||e!==f(e))throw hn("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw hn("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(n),Dt(i,"directiveFactory"),r.hasOwnProperty(n)||(r[n]=[],e.factory(n+"Directive",["$injector","$exceptionHandler",function(t,e){var i=[];return O(r[n],(function(r,o){try{var a=t.invoke(r);W(a)?a={compile:I(a)}:!a.compile&&a.link&&(a.compile=I(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||n,a.require=function(t){var e=t.require||t.controller&&t.name;return!B(e)&&U(e)&&O(e,(function(t,n){var r=t.match(c);t.substring(r[0].length)||(e[n]=r[0]+n)})),e}(a),a.restrict=function(t,e){if(t&&(!q(t)||!/[EACM]/.test(t)))throw hn("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,e);return t||"EA"}(a.restrict,n),a.$$moduleName=r.$$moduleName,i.push(a)}catch(t){e(t)}})),i}])),r[n].push(i)):O(n,C(t)),this},this.component=function t(e,n){if(!q(e))return O(e,C(ht(this,t))),this;var r=n.controller||function(){};function i(t){function e(e){return W(e)||B(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}var i=n.template||n.templateUrl?n.template:"",o={controller:r,controllerAs:xn(n.controller)||n.controllerAs||"$ctrl",template:e(i),templateUrl:e(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return O(n,(function(t,e){"$"===e.charAt(0)&&(o[e]=t)})),o}return O(n,(function(t,e){"$"===e.charAt(0)&&(i[e]=t,W(r)&&(r[e]=t))})),i.$inject=["$injector"],this.directive(e,i)},this.aHrefSanitizationTrustedUrlList=function(t){return N(t)?(n.aHrefSanitizationTrustedUrlList(t),this):n.aHrefSanitizationTrustedUrlList()},Object.defineProperty(this,"aHrefSanitizationWhitelist",{get:function(){return this.aHrefSanitizationTrustedUrlList},set:function(t){this.aHrefSanitizationTrustedUrlList=t}}),this.imgSrcSanitizationTrustedUrlList=function(t){return N(t)?(n.imgSrcSanitizationTrustedUrlList(t),this):n.imgSrcSanitizationTrustedUrlList()},Object.defineProperty(this,"imgSrcSanitizationWhitelist",{get:function(){return this.imgSrcSanitizationTrustedUrlList},set:function(t){this.imgSrcSanitizationTrustedUrlList=t}});var g=!0;this.debugInfoEnabled=function(t){return N(t)?(g=t,this):g};var $=!1;this.strictComponentBindingsEnabled=function(t){return N(t)?($=t,this):$};var y=10;this.onChangesTtl=function(t){return arguments.length?(y=t,this):y};var b=!0;this.commentDirectivesEnabled=function(t){return arguments.length?(b=t,this):b};var w=!0;this.cssClassDirectivesEnabled=function(t){return arguments.length?(w=t,this):w};var x=Nt();this.addPropertySecurityContext=function(t,e,n){var r=t.toLowerCase()+"|"+e.toLowerCase();if(r in x&&x[r]!==n)throw hn("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",t,e,x[r],n);return x[r]=n,this},function(){function t(t,e){O(e,(function(e){x[e.toLowerCase()]=t}))}t(Fr.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(Fr.CSS,["*|style"]),t(Fr.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(Fr.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(Fr.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(e,n,p,d,C,S,_,E,A){var k,T=/^\w/,I=t.document.createElement("div"),M=b,N=w,L=y;function H(){try{if(!--L)throw k=void 0,hn("infchng","{0} $onChanges() iterations reached. Aborting!\n",y);_.$apply((function(){for(var t=0,e=k.length;t<e;++t)try{k[t]()}catch(t){p(t)}k=void 0}))}finally{L++}}function F(t,e){if(!t)return t;if(!q(t))throw hn("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());for(var n="",r=Q(t),i=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,o=r.split(i),a=Math.floor(o.length/2),s=0;s<a;s++){var u=2*s;n+=E.getTrustedMediaUrl(Q(o[u])),n+=" "+Q(o[u+1])}var c=Q(o[2*s]).split(/\s/);return n+=E.getTrustedMediaUrl(Q(c[0])),2===c.length&&(n+=" "+Q(c[1])),n}function G(t,e){if(e){var n,r,i,o=Object.keys(e);for(n=0,r=o.length;n<r;n++)this[i=o[n]]=e[i]}else this.$attr={};this.$$element=t}function K(t,e){try{t.addClass(e)}catch(t){}}G.prototype={$normalize:$n,$addClass:function(t){t&&t.length>0&&A.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&A.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=yn(t,e);n&&n.length&&A.addClass(this.$$element,n);var r=yn(e,t);r&&r.length&&A.removeClass(this.$$element,r)},$set:function(t,e,n,r){var i=Pe(this.$$element[0],t),o=Re[t],a=t;i?(this.$$element.prop(t,e),r=i):o&&(this[o]=e,a=o),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=Tt(t,"-")),"img"===nt(this.$$element)&&"srcset"===t&&(this[t]=e=F(e,"$set('srcset', value)")),!1!==n&&(null===e||V(e)?this.$$element.removeAttr(r):T.test(r)?i&&!1===e?this.$$element.removeAttr(r):this.$$element.attr(r,e):function(t,e,n){I.innerHTML="<span "+e+">";var r=I.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}(this.$$element[0],r,e));var s=this.$$observers;s&&O(s[a],(function(t){try{t(e)}catch(t){p(t)}}))},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=Nt()),i=r[t]||(r[t]=[]);return i.push(e),_.$evalAsync((function(){i.$$inter||!n.hasOwnProperty(t)||V(n[t])||e(n[t])})),function(){it(i,e)}}};var Z=n.startSymbol(),X=n.endSymbol(),tt="{{"===Z&&"}}"===X?D:function(t){return t.replace(/\{\{/g,Z).replace(/}}/g,X)},et=/^ng(Attr|Prop|On)([A-Z].*)$/,rt=/^(.+)Start$/;return ot.$$addBindingInfo=g?function(t,e){var n=t.data("$binding")||[];B(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:P,ot.$$addBindingClass=g?function(t){K(t,"ng-binding")}:P,ot.$$addScopeInfo=g?function(t,e,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";t.data(i,e)}:P,ot.$$addScopeClass=g?function(t,e){K(t,e?"ng-isolate-scope":"ng-scope")}:P,ot.$$createComment=function(e,n){var r="";return g&&(r=" "+(e||"")+": ",n&&(r+=n+" ")),t.document.createComment(r)},ot;function ot(t,e,n,r,i){t instanceof a||(t=a(t));var o=ut(t,e,t,n,r,i);ot.$$addScopeClass(t);var s=null;return function(e,n,r){if(!t)throw hn("multilink","This element has already been linked.");Dt(e,"scope"),i&&i.needsNewScope&&(e=e.$parent.$new());var u,c,l,f=(r=r||{}).parentBoundTranscludeFn,h=r.transcludeControllers,p=r.futureParentElement;if(f&&f.$$boundTransclude&&(f=f.$$boundTransclude),s||(c=(u=p)&&u[0],s=c&&"foreignobject"!==nt(c)&&m.call(c).match(/SVG/)?"svg":"html"),l="html"!==s?a(Et(s,a("<div></div>").append(t).html())):n?Ae.clone.call(t):t,h)for(var d in h)l.data("$"+d+"Controller",h[d].instance);return ot.$$addScopeInfo(l,e),n&&n(l,e),o&&o(e,l,l,f),n||(t=o=null),l}}function ut(t,e,n,r,i,s){for(var u,c,l,f,h,p,d,v=[],m=B(t)||t instanceof a,g=0;g<t.length;g++)u=new G,11===o&&ct(t,g,m),(l=(c=pt(t[g],[],u,0===g?r:void 0,i)).length?gt(c,t[g],u,e,n,null,[],[],s):null)&&l.scope&&ot.$$addScopeClass(u.$$element),h=l&&l.terminal||!(f=t[g].childNodes)||!f.length?null:ut(f,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:e),(l||h)&&(v.push(g,l,h),p=!0,d=d||l),s=null;return p?function(t,n,r,i){var o,s,u,c,l,f,h,p;if(d){var m=n.length;for(p=new Array(m),l=0;l<v.length;l+=3)p[h=v[l]]=n[h]}else p=n;for(l=0,f=v.length;l<f;)u=p[v[l++]],o=v[l++],s=v[l++],o?(o.scope?(c=t.$new(),ot.$$addScopeInfo(a(u),c)):c=t,o(s,c,u,r,o.transcludeOnThisElement?lt(t,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&e?lt(t,e):null)):s&&s(t,u.childNodes,void 0,i)}:null}function ct(t,e,n){var r,i=t[e],o=i.parentNode;if(i.nodeType===Lt)for(;(r=o?i.nextSibling:t[e+1])&&r.nodeType===Lt;)i.nodeValue=i.nodeValue+r.nodeValue,r.parentNode&&r.parentNode.removeChild(r),n&&r===t[e+1]&&t.splice(e+1,1)}function lt(t,e,n){function r(r,i,o,a,s){return r||((r=t.$new(!1,s)).$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i=r.$$slots=Nt();for(var o in e.$$slots)e.$$slots[o]?i[o]=lt(t,e.$$slots[o],n):i[o]=null;return r}function pt(t,e,r,o,a){var u,c,l,f=t.nodeType,h=r.$attr;switch(f){case 1:wt(e,$n(c=nt(t)),"E",o,a);for(var p,d,v,m,g,$=t.attributes,y=0,b=$&&$.length;y<b;y++){var w,O=!1,x=!1,C=!1,S=!1,_=!1;d=(p=$[y]).name,m=p.value,(g=(v=$n(d.toLowerCase())).match(et))?(C="Attr"===g[1],S="Prop"===g[1],_="On"===g[1],d=d.replace(mn,"").toLowerCase().substr(4+g[1].length).replace(/_(.)/g,(function(t,e){return e.toUpperCase()}))):(w=v.match(rt))&&Ot(w[1])&&(O=d,x=d.substr(0,d.length-5)+"end",d=d.substr(0,d.length-6)),S||_?(r[v]=m,h[v]=p.name,S?At(t,e,v,d):kt(e,v,d)):(h[v=$n(d.toLowerCase())]=d,!C&&r.hasOwnProperty(v)||(r[v]=m,Pe(t,v)&&(r[v]=!0)),Rt(t,e,m,v,C),wt(e,v,"A",o,a,O,x))}if("input"===c&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off"),!N)break;if(U(l=t.className)&&(l=l.animVal),q(l)&&""!==l)for(;u=s.exec(l);)wt(e,v=$n(u[2]),"C",o,a)&&(r[v]=Q(u[3])),l=l.substr(u.index+u[0].length);break;case Lt:!function(t,e){var r=n(e,!0);r&&t.push({priority:0,compile:function(t){var e=t.parent(),n=!!e.length;return n&&ot.$$addBindingClass(e),function(t,e){var i=e.parent();n||ot.$$addBindingClass(i),ot.$$addBindingInfo(i,r.expressions),t.$watch(r,(function(t){e[0].nodeValue=t}))}}})}(e,t.nodeValue);break;case 8:if(!M)break;!function(t,e,n,r,o){try{var a=i.exec(t.nodeValue);if(a){var s=$n(a[1]);wt(e,s,"M",r,o)&&(n[s]=Q(a[2]))}}catch(t){}}(t,e,r,o,a)}return e.sort(St),e}function dt(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e))do{if(!t)throw hn("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);1===t.nodeType&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0);else r.push(t);return a(r)}function vt(t,e,n){return function(r,i,o,a,s){return i=dt(i[0],e,n),t(r,i,o,a,s)}}function mt(t,e,n,r,i,o){var a;return t?ot(e,n,r,i,o):function(){return a||(a=ot(e,n,r,i,o),e=n=o=null),a.apply(this,arguments)}}function gt(e,n,r,i,o,s,u,c,l){l=l||{};for(var f,h,d,v,m,g=-Number.MAX_VALUE,$=l.newScopeDirective,y=l.controllerDirectives,b=l.newIsolateScopeDirective,w=l.templateDirective,x=l.nonTlbTranscludeDirective,C=!1,_=!1,E=l.hasElementTranscludeDirective,A=r.$$element=a(n),k=s,T=i,R=!1,P=!1,D=0,I=e.length;D<I;D++){var M=(f=e[D]).$$start,N=f.$$end;if(M&&(A=dt(n,M,N)),d=void 0,g>f.priority)break;if((m=f.scope)&&(f.templateUrl||(U(m)?(_t("new/isolated scope",b||$,f,A),b=f):_t("new/isolated scope",b,f,A)),$=$||f),h=f.name,!R&&(f.replace&&(f.templateUrl||f.template)||f.transclude&&!f.$$tlb)){for(var L,q=D+1;L=e[q++];)if(L.transclude&&!L.$$tlb||L.replace&&(L.templateUrl||L.template)){P=!0;break}R=!0}if(!f.templateUrl&&f.controller&&(y=y||Nt(),_t("'"+h+"' controller",y[h],f,A),y[h]=f),m=f.transclude)if(C=!0,f.$$tlb||(_t("transclusion",x,f,A),x=f),"element"===m)E=!0,g=f.priority,d=A,A=r.$$element=a(ot.$$createComment(h,r[h])),n=A[0],Pt(o,ft(d),n),T=mt(P,d,i,g,k&&k.name,{nonTlbTranscludeDirective:x});else{var H=Nt();if(U(m)){d=t.document.createDocumentFragment();var F=Nt(),z=Nt();for(var K in O(m,(function(t,e){var n="?"===t.charAt(0);t=n?t.substring(1):t,F[t]=e,H[e]=null,z[e]=n})),O(A.contents(),(function(e){var n=F[$n(nt(e))];n?(z[n]=!0,H[n]=H[n]||t.document.createDocumentFragment(),H[n].appendChild(e)):d.appendChild(e)})),O(z,(function(t,e){if(!t)throw hn("reqslot","Required transclusion slot `{0}` was not filled.",e)})),H)if(H[K]){var J=a(H[K].childNodes);H[K]=mt(P,J,i)}d=a(d.childNodes)}else d=a(he(n)).contents();A.empty(),(T=mt(P,d,i,void 0,void 0,{needsNewScope:f.$$isolateScope||f.$$newScope})).$$slots=H}if(f.template)if(_=!0,_t("template",w,f,A),w=f,m=W(f.template)?f.template(A,r):f.template,m=tt(m),f.replace){if(k=f,d=se(m)?[]:bn(Et(f.templateNamespace,Q(m))),n=d[0],1!==d.length||1!==n.nodeType)throw hn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",h,"");Pt(o,A,n);var Z={$attr:{}},X=pt(n,[],Z),et=e.splice(D+1,e.length-(D+1));(b||$)&&yt(X,b,$),e=e.concat(X).concat(et),xt(r,Z),I=e.length}else A.html(m);if(f.templateUrl)_=!0,_t("template",w,f,A),w=f,f.replace&&(k=f),at=Ct(e.splice(D,e.length-D),A,r,o,C&&T,u,c,{controllerDirectives:y,newScopeDirective:$!==f&&$,newIsolateScopeDirective:b,templateDirective:w,nonTlbTranscludeDirective:x}),I=e.length;else if(f.compile)try{v=f.compile(A,r,T);var rt=f.$$originalDirective||f;W(v)?it(null,ht(rt,v),M,N):v&&it(ht(rt,v.pre),ht(rt,v.post),M,N)}catch(t){p(t,bt(A))}f.terminal&&(at.terminal=!0,g=Math.max(g,f.priority))}return at.scope=$&&!0===$.scope,at.transcludeOnThisElement=C,at.templateOnThisElement=_,at.transclude=T,l.hasElementTranscludeDirective=E,at;function it(t,e,n,r){t&&(n&&(t=vt(t,n,r)),t.require=f.require,t.directiveName=h,(b===f||f.$$isolateScope)&&(t=It(t,{isolateScope:!0})),u.push(t)),e&&(n&&(e=vt(e,n,r)),e.require=f.require,e.directiveName=h,(b===f||f.$$isolateScope)&&(e=It(e,{isolateScope:!0})),c.push(e))}function at(t,e,i,o,s){var l,f,h,d,v,m,g,x,C,_;for(var A in n===i?(C=r,x=r.$$element):C=new G(x=a(i),r),v=e,b?d=e.$new(!0):$&&(v=e.$parent),s&&((g=function(t,e,n,r){var i;if(Y(t)||(r=n,n=e,e=t,t=void 0),E&&(i=m),n||(n=E?x.parent():x),!r)return s(t,e,i,n,P);var o=s.$$slots[r];if(o)return o(t,e,i,n,P);if(V(o))throw hn("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,bt(x))}).$$boundTransclude=s,g.isSlotFilled=function(t){return!!s.$$slots[t]}),y&&(m=function(t,e,n,r,i,o,a){var s=Nt();for(var u in r){var c=r[u],l={$scope:c===a||c.$$isolateScope?i:o,$element:t,$attrs:e,$transclude:n},f=c.controller;"@"===f&&(f=e[c.name]);var h=S(f,l,!0,c.controllerAs);s[c.name]=h,t.data("$"+c.name+"Controller",h.instance)}return s}(x,C,g,y,d,e,b)),b&&(ot.$$addScopeInfo(x,d,!0,!(w&&(w===b||w===b.$$originalDirective))),ot.$$addScopeClass(x,!0),d.$$isolateBindings=b.$$isolateBindings,(_=Ut(e,C,d,d.$$isolateBindings,b)).removeWatches&&d.$on("$destroy",_.removeWatches)),m){var k=y[A],T=m[A],R=k.$$bindings.bindToController;T.instance=T(),x.data("$"+k.name+"Controller",T.instance),T.bindingInfo=Ut(v,C,T.instance,R,k)}for(O(y,(function(t,e){var n=t.require;t.bindToController&&!B(n)&&U(n)&&j(m[e].instance,$t(e,n,x,m))})),O(m,(function(t){var e=t.instance;if(W(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){p(t)}if(W(e.$onInit))try{e.$onInit()}catch(t){p(t)}W(e.$doCheck)&&(v.$watch((function(){e.$doCheck()})),e.$doCheck()),W(e.$onDestroy)&&v.$on("$destroy",(function(){e.$onDestroy()}))})),l=0,f=u.length;l<f;l++)Mt(h=u[l],h.isolateScope?d:e,x,C,h.require&&$t(h.directiveName,h.require,x,m),g);var P=e;for(b&&(b.template||null===b.templateUrl)&&(P=d),t&&t(P,i.childNodes,void 0,s),l=c.length-1;l>=0;l--)Mt(h=c[l],h.isolateScope?d:e,x,C,h.require&&$t(h.directiveName,h.require,x,m),g);O(m,(function(t){var e=t.instance;W(e.$postLink)&&e.$postLink()}))}}function $t(t,e,n,r){var i;if(q(e)){var o=e.match(c),a=e.substring(o[0].length),s=o[1]||o[3],u="?"===o[2];if("^^"===s?n=n.parent():i=(i=r&&r[a])&&i.instance,!i){var l="$"+a+"Controller";i="^^"===s&&n[0]&&9===n[0].nodeType?null:s?n.inheritedData(l):n.data(l)}if(!i&&!u)throw hn("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,t)}else if(B(e)){i=[];for(var f=0,h=e.length;f<h;f++)i[f]=$t(t,e[f],n,r)}else U(e)&&(i={},O(e,(function(e,o){i[o]=$t(t,e,n,r)})));return i||null}function yt(t,e,n){for(var r=0,i=t.length;r<i;r++)t[r]=R(t[r],{$$isolateScope:e,$$newScope:n})}function wt(t,n,i,o,a,s,u){if(n===a)return null;var c=null;if(r.hasOwnProperty(n))for(var l,f=e.get(n+"Directive"),h=0,p=f.length;h<p;h++)if(l=f[h],(V(o)||o>l.priority)&&-1!==l.restrict.indexOf(i)){if(s&&(l=R(l,{$$start:s,$$end:u})),!l.$$bindings){var d=l.$$bindings=v(l,l.name);U(d.isolateScope)&&(l.$$isolateBindings=d.isolateScope)}t.push(l),c=l}return c}function Ot(t){if(r.hasOwnProperty(t))for(var n=e.get(t+"Directive"),i=0,o=n.length;i<o;i++)if(n[i].multiElement)return!0;return!1}function xt(t,e){var n=e.$attr,r=t.$attr;O(t,(function(r,i){"$"!==i.charAt(0)&&(e[i]&&e[i]!==r&&(r.length?r+=("style"===i?";":" ")+e[i]:r=e[i]),t.$set(i,r,!0,n[i]))})),O(e,(function(e,i){t.hasOwnProperty(i)||"$"===i.charAt(0)||(t[i]=e,"class"!==i&&"style"!==i&&(r[i]=n[i]))}))}function Ct(t,e,n,r,i,o,s,u){var c,l,f=[],h=e[0],v=t.shift(),m=R(v,{templateUrl:null,transclude:null,replace:null,$$originalDirective:v}),g=W(v.templateUrl)?v.templateUrl(e,n):v.templateUrl,$=v.templateNamespace;return e.empty(),d(g).then((function(p){var d,y,b,w;if(p=tt(p),v.replace){if(b=se(p)?[]:bn(Et($,Q(p))),d=b[0],1!==b.length||1!==d.nodeType)throw hn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",v.name,g);y={$attr:{}},Pt(r,e,d);var x=pt(d,[],y);U(v.scope)&&yt(x,!0),t=x.concat(t),xt(n,y)}else d=h,e.html(p);for(t.unshift(m),c=gt(t,d,n,i,e,v,o,s,u),O(r,(function(t,n){t===d&&(r[n]=e[0])})),l=ut(e[0].childNodes,i);f.length;){var C=f.shift(),S=f.shift(),_=f.shift(),E=f.shift(),j=e[0];if(!C.$$destroyed){if(S!==h){var A=S.className;u.hasElementTranscludeDirective&&v.replace||(j=he(d)),Pt(_,a(S),j),K(a(j),A)}w=c.transcludeOnThisElement?lt(C,c.transclude,E):E,c(l,C,j,r,w)}}f=null})).catch((function(t){z(t)&&p(t)})),function(t,e,n,r,i){var o=i;e.$$destroyed||(f?f.push(e,n,r,o):(c.transcludeOnThisElement&&(o=lt(e,c.transclude,i)),c(l,e,n,r,o)))}}function St(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function _t(t,e,n,r){function i(t){return t?" (module: "+t+")":""}if(e)throw hn("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,bt(r))}function Et(e,n){switch(e=f(e||"html")){case"svg":case"math":var r=t.document.createElement("div");return r.innerHTML="<"+e+">"+n+"</"+e+">",r.childNodes[0].childNodes;default:return n}}function jt(t){return F(E.valueOf(t),"ng-prop-srcset")}function At(t,e,n,r){if(h.test(r))throw hn("nodomevents","Property bindings for HTML DOM event properties are disallowed");var i=nt(t),o=function(t,e){var n=e.toLowerCase();return x[t+"|"+n]||x["*|"+n]}(i,r),a=D;"srcset"!==r||"img"!==i&&"source"!==i?o&&(a=E.getTrusted.bind(E,o)):a=jt,e.push({priority:100,compile:function(t,e){var i=C(e[n]),o=C(e[n],(function(t){return E.valueOf(t)}));return{pre:function(t,e){function n(){var n=i(t);e[0][r]=a(n)}n(),t.$watch(o,n)}}}})}function kt(t,e,n){t.push(To(C,_,p,e,n,!1))}function Rt(t,e,r,i,o){var a=nt(t),s=function(t,e){return"srcdoc"===e?E.HTML:"src"===e||"ngSrc"===e?-1===["img","video","audio","source","track"].indexOf(t)?E.RESOURCE_URL:E.MEDIA_URL:"xlinkHref"===e?"image"===t?E.MEDIA_URL:"a"===t?E.URL:E.RESOURCE_URL:"form"===t&&"action"===e||"base"===t&&"href"===e||"link"===t&&"href"===e?E.RESOURCE_URL:"a"!==t||"href"!==e&&"ngHref"!==e?void 0:E.URL}(a,i),c=!o,l=u[i]||o,f=n(r,c,s,l);if(f){if("multiple"===i&&"select"===a)throw hn("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",bt(t));if(h.test(i))throw hn("nodomevents","Interpolations for HTML DOM event attributes are disallowed");e.push({priority:100,compile:function(){return{pre:function(t,e,o){var a=o.$$observers||(o.$$observers=Nt()),u=o[i];u!==r&&(f=u&&n(u,!0,s,l),r=u),f&&(o[i]=f(t),(a[i]||(a[i]=[])).$$inter=!0,(o.$$observers&&o.$$observers[i].$$scope||t).$watch(f,(function(t,e){"class"===i&&t!==e?o.$updateClass(t,e):o.$set(i,t)})))}}}})}}function Pt(e,n,r){var i,o,s=n[0],u=n.length,c=s.parentNode;if(e)for(i=0,o=e.length;i<o;i++)if(e[i]===s){e[i++]=r;for(var l=i,f=l+u-1,h=e.length;l<h;l++,f++)f<h?e[l]=e[f]:delete e[l];e.length-=u-1,e.context===s&&(e.context=r);break}c&&c.replaceChild(r,s);var p=t.document.createDocumentFragment();for(i=0;i<u;i++)p.appendChild(n[i]);for(a.hasData(s)&&(a.data(r,a.data(s)),a(s).off("$destroy")),a.cleanData(p.querySelectorAll("*")),i=1;i<u;i++)delete n[i];n[0]=r,n.length=1}function It(t,e){return j((function(){return t.apply(null,arguments)}),t,e)}function Mt(t,e,n,r,i,o){try{t(e,n,r,i,o)}catch(t){p(t,bt(n))}}function Vt(t,e){if($)throw hn("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,e)}function Ut(t,e,r,i,o){var a,s=[],u={};function c(e,n,i){W(r.$onChanges)&&!at(n,i)&&(k||(t.$$postDigest(H),k=[]),a||(a={},k.push(f)),a[e]&&(i=a[e].previousValue),a[e]=new vn(i,n))}function f(){r.$onChanges(a),a=void 0}return O(i,(function(i,a){var f,h,p,d,v,m=i.attrName,g=i.optional;switch(i.mode){case"@":g||l.call(e,m)||(Vt(m,o.name),r[a]=e[m]=void 0),v=e.$observe(m,(function(t){if(q(t)||J(t)){var e=r[a];c(a,t,e),r[a]=t}})),e.$$observers[m].$$scope=t,q(f=e[m])?r[a]=n(f)(t):J(f)&&(r[a]=f),u[a]=new vn(pn,r[a]),s.push(v);break;case"=":if(!l.call(e,m)){if(g)break;Vt(m,o.name),e[m]=void 0}if(g&&!e[m])break;h=C(e[m]),d=h.literal?st:at,p=h.assign||function(){throw f=r[a]=h(t),hn("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",e[m],m,o.name)},f=r[a]=h(t);var $=function(e){return d(e,r[a])||(d(e,f)?p(t,e=r[a]):r[a]=e),f=e};$.$stateful=!0,v=i.collection?t.$watchCollection(e[m],$):t.$watch(C(e[m],$),null,h.literal),s.push(v);break;case"<":if(!l.call(e,m)){if(g)break;Vt(m,o.name),e[m]=void 0}if(g&&!e[m])break;var y=(h=C(e[m])).literal,b=r[a]=h(t);u[a]=new vn(pn,r[a]),v=t[i.collection?"$watchCollection":"$watch"](h,(function(t,e){if(e===t){if(e===b||y&&st(e,b))return;e=b}c(a,t,e),r[a]=t})),s.push(v);break;case"&":if(g||l.call(e,m)||Vt(m,o.name),(h=e.hasOwnProperty(m)?C(e[m]):P)===P&&g)break;r[a]=function(e){return h(t,e)}}})),{initialChanges:u,removeWatches:s.length&&function(){for(var t=0,e=s.length;t<e;++t)s[t]()}}}}]}function vn(t,e){this.previousValue=t,this.currentValue=e}dn.$inject=["$provide","$$sanitizeUriProvider"],vn.prototype.isFirstChange=function(){return this.previousValue===pn};var mn=/^((?:x|data)[:\-_])/i,gn=/[:\-_]+(.)/g;function $n(t){return t.replace(mn,"").replace(gn,(function(t,e,n){return n?e.toUpperCase():e}))}function yn(t,e){var n="",r=t.split(/\s+/),i=e.split(/\s+/);t:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a===i[s])continue t;n+=(n.length>0?" ":"")+a}return n}function bn(t){var e=(t=a(t)).length;if(e<=1)return t;for(;e--;){var n=t[e];(8===n.nodeType||n.nodeType===Lt&&""===n.nodeValue.trim())&&d.call(t,e,1)}return t}var wn=i("$controller"),On=/^(\S+)(\s+as\s+([\w$]+))?$/;function xn(t,e){if(e&&q(e))return e;if(q(t)){var n=On.exec(t);if(n)return n[3]}}function Cn(){var t={};this.has=function(e){return t.hasOwnProperty(e)},this.register=function(e,n){Mt(e,"controller"),U(e)?j(t,e):t[e]=n},this.$get=["$injector",function(e){return function(r,i,o,a){var s,u,c,l;if(o=!0===o,a&&q(a)&&(l=a),q(r)){if(!(u=r.match(On)))throw wn("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);if(c=u[1],l=l||u[3],!(r=t.hasOwnProperty(c)?t[c]:function(t,e,n){if(!e)return t;for(var r,i=e.split("."),o=i.length,a=0;a<o;a++)r=i[a],t&&(t=t[r]);return t}(i.$scope,c)))throw wn("ctrlreg","The controller with the name '{0}' is not registered.",c);It(r,c,!0)}if(o){var f=(B(r)?r[r.length-1]:r).prototype;return s=Object.create(f||null),l&&n(i,l,s,c||r.name),j((function(){var t=e.invoke(r,s,i,c);return t!==s&&(U(t)||W(t))&&(s=t,l&&n(i,l,s,c||r.name)),s}),{instance:s,identifier:l})}return s=e.instantiate(r,i,c),l&&n(i,l,s,c||r.name),s};function n(t,e,n,r){if(!t||!U(t.$scope))throw i("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,e);t.$scope[e]=n}}]}function Sn(){this.$get=["$window",function(t){return a(t.document)}]}function En(){this.$get=["$document","$rootScope",function(t,e){var n=t[0],r=n&&n.hidden;function i(){r=n.hidden}return t.on("visibilitychange",i),e.$on("$destroy",(function(){t.off("visibilitychange",i)})),function(){return r}}]}function jn(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}var An=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof a&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},kn={"Content-Type":"application/json;charset=utf-8"},Tn=/^\[|^\{(?!\{)/,Rn={"[":/]$/,"{":/}$/},Pn=/^\)]\}',?\n/,Dn=i("$http");function In(t){return U(t)?F(t)?t.toISOString():dt(t):t}function Mn(){this.$get=function(){return function(t){if(!t)return"";var e=[];return x(t,(function(t,n){null===t||V(t)||W(t)||(B(t)?O(t,(function(t){e.push(Ct(n)+"="+Ct(In(t)))})):e.push(Ct(n)+"="+Ct(In(t))))})),e.join("&")}}}function Vn(){this.$get=function(){return function(t){if(!t)return"";var e=[];return function t(n,r,i){B(n)?O(n,(function(e,n){t(e,r+"["+(U(e)?n:"")+"]")})):U(n)&&!F(n)?x(n,(function(e,n){t(e,r+(i?"":"[")+n+(i?"":"]"))})):(W(n)&&(n=n()),e.push(Ct(r)+"="+(null==n?"":Ct(In(n)))))}(t,"",!0),e.join("&")}}}function Nn(t,e){if(q(t)){var n=t.replace(Pn,"").trim();if(n){var r=e("Content-Type"),i=r&&0===r.indexOf("application/json");if(i||(a=(o=n).match(Tn))&&Rn[a[0]].test(o))try{t=vt(n)}catch(e){if(!i)return t;throw Dn("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,e)}}}var o,a;return t}function Un(t){var e,n=Nt();function r(t,e){t&&(n[t]=n[t]?n[t]+", "+e:e)}return q(t)?O(t.split("\n"),(function(t){e=t.indexOf(":"),r(f(Q(t.substr(0,e))),Q(t.substr(e+1)))})):U(t)&&O(t,(function(t,e){r(f(e),Q(t))})),n}function Ln(t){var e;return function(n){if(e||(e=Un(t)),n){var r=e[f(n)];return void 0===r&&(r=null),r}return e}}function qn(t,e,n,r){return W(r)?r(t,e,n):(O(r,(function(r){t=r(t,e,n)})),t)}function Hn(t){return 200<=t&&t<300}function Fn(){var t=this.defaults={transformResponse:[Nn],transformRequest:[function(t){return!U(t)||(e=t,"[object File]"===m.call(e))||function(t){return"[object Blob]"===m.call(t)}(t)||function(t){return"[object FormData]"===m.call(t)}(t)?t:dt(t);var e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:qt(kn),put:qt(kn),patch:qt(kn)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},e=!1;this.useApplyAsync=function(t){return N(t)?(e=!!t,this):e};var n=this.interceptors=[],r=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get:function(){return this.xsrfTrustedOrigins},set:function(t){this.xsrfTrustedOrigins=t}}),this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(o,a,s,u,c,l,p,d){var v=u("$http");t.paramSerializer=q(t.paramSerializer)?p.get(t.paramSerializer):t.paramSerializer;var m=[];O(n,(function(t){m.unshift(q(t)?p.get(t):p.invoke(t))}));var g,$=(g=[oi].concat(r.map(si)),function(t){var e=si(t);return g.some(ui.bind(null,e))});function y(n){if(!U(n))throw i("$http")("badreq","Http request configuration must be an object.  Received: {0}",n);if(!q(d.valueOf(n.url)))throw i("$http")("badreq","Http request configuration url must be a string or a $sce trusted object.  Received: {0}",n.url);var r=j({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer,jsonpCallbackParam:t.jsonpCallbackParam},n);r.headers=function(e){var n,r,i,o=t.headers,a=j({},e.headers);o=j({},o.common,o[f(e.method)]);t:for(n in o){for(i in r=f(n),a)if(f(i)===r)continue t;a[n]=o[n]}return function(t,e){var n,r={};return O(t,(function(t,i){W(t)?null!=(n=t(e))&&(r[i]=n):r[i]=t})),r}(a,qt(e))}(n),r.method=h(r.method),r.paramSerializer=q(r.paramSerializer)?p.get(r.paramSerializer):r.paramSerializer,o.$$incOutstandingRequestCount("$http");var u=[],g=[],b=l.resolve(r);return O(m,(function(t){(t.request||t.requestError)&&u.unshift(t.request,t.requestError),(t.response||t.responseError)&&g.push(t.response,t.responseError)})),b=w(b,u),(b=w(b=b.then((function(n){var r=n.headers,i=qn(n.data,Ln(r),void 0,n.transformRequest);return V(i)&&O(r,(function(t,e){"content-type"===f(e)&&delete r[e]})),V(n.withCredentials)&&!V(t.withCredentials)&&(n.withCredentials=t.withCredentials),function(n,r){var i,o,u=l.defer(),h=u.promise,p=n.headers,m="jsonp"===f(n.method),g=n.url;if(m?g=d.getTrustedResourceUrl(g):q(g)||(g=d.valueOf(g)),g=function(t,e){return e.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+e),t}(g,n.paramSerializer(n.params)),m&&(g=function(t,e){var n=t.split("?");if(n.length>2)throw Dn("badjsonp",'Illegal use more than one "?", in url, "{1}"',t);return O(Ot(n[1]),(function(n,r){if("JSON_CALLBACK"===n)throw Dn("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',t);if(r===e)throw Dn("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',e,t)})),t+=(-1===t.indexOf("?")?"?":"&")+e+"=JSON_CALLBACK"}(g,n.jsonpCallbackParam)),y.pendingRequests.push(n),h.then(S,S),!n.cache&&!t.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(i=U(n.cache)?n.cache:U(t.cache)?t.cache:v),i&&(N(o=i.get(g))?Z(o)?o.then(C,C):B(o)?x(o[1],o[0],qt(o[2]),o[3],o[4]):x(o,200,{},"OK","complete"):i.put(g,h)),V(o)){var b=$(n.url)?s()[n.xsrfCookieName||t.xsrfCookieName]:void 0;b&&(p[n.xsrfHeaderName||t.xsrfHeaderName]=b),a(n.method,g,r,(function(t,n,r,o,a){function s(){x(n,t,r,o,a)}i&&(Hn(t)?i.put(g,[t,n,Un(r),o,a]):i.remove(g)),e?c.$applyAsync(s):(s(),c.$$phase||c.$apply())}),p,n.timeout,n.withCredentials,n.responseType,w(n.eventHandlers),w(n.uploadEventHandlers))}return h;function w(t){if(t){var n={};return O(t,(function(t,r){n[r]=function(n){function r(){t(n)}e?c.$applyAsync(r):c.$$phase?r():c.$apply(r)}})),n}}function x(t,e,r,i,o){(Hn(e=e>=-1?e:0)?u.resolve:u.reject)({data:t,status:e,headers:Ln(r),config:n,statusText:i,xhrStatus:o})}function C(t){x(t.data,t.status,qt(t.headers()),t.statusText,t.xhrStatus)}function S(){var t=y.pendingRequests.indexOf(n);-1!==t&&y.pendingRequests.splice(t,1)}}(n,i).then(x,x)})),g)).finally((function(){o.$$completeOutstandingRequest(P,"$http")}));function w(t,e){for(var n=0,r=e.length;n<r;){var i=e[n++],o=e[n++];t=t.then(i,o)}return e.length=0,t}function x(t){var e=j({},t);return e.data=qn(t.data,t.headers,t.status,r.transformResponse),Hn(t.status)?e:l.reject(e)}}return y.pendingRequests=[],function(t){O(arguments,(function(t){y[t]=function(e,n){return y(j({},n||{},{method:t,url:e}))}}))}("get","delete","head","jsonp"),function(t){O(arguments,(function(t){y[t]=function(e,n,r){return y(j({},r||{},{method:t,url:e,data:n}))}}))}("post","put","patch"),y.defaults=t,y}]}function Bn(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function zn(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(t,e,n,r){return function(t,e,n,r,i){return function(o,a,s,u,c,l,h,p,d,v){if(a=a||t.url(),"jsonp"===f(o))var m=r.createCallback(a),g=function(t,e,n){t=t.replace("JSON_CALLBACK",e);var o=i.createElement("script"),a=null;return o.type="text/javascript",o.src=t,o.async=!0,a=function(t){o.removeEventListener("load",a),o.removeEventListener("error",a),i.body.removeChild(o),o=null;var s=-1,u="unknown";t&&("load"!==t.type||r.wasCalled(e)||(t={type:"error"}),u=t.type,s="error"===t.type?404:200),n&&n(s,u)},o.addEventListener("load",a),o.addEventListener("error",a),i.body.appendChild(o),a}(a,m,(function(t,e){var n=200===t&&r.getResponse(m);x(u,t,n,"",e,"complete"),r.removeCallback(m)}));else{var $=e(o,a),y=!1;if($.open(o,a,!0),O(c,(function(t,e){N(t)&&$.setRequestHeader(e,t)})),$.onload=function(){var t=$.statusText||"",e="response"in $?$.response:$.responseText,n=1223===$.status?204:$.status;0===n&&(n=e?200:"file"===si(a).protocol?404:0),x(u,n,e,$.getAllResponseHeaders(),t,"complete")},$.onerror=function(){x(u,-1,null,null,"","error")},$.ontimeout=function(){x(u,-1,null,null,"","timeout")},$.onabort=function(){x(u,-1,null,null,"",y?"timeout":"abort")},O(d,(function(t,e){$.addEventListener(e,t)})),O(v,(function(t,e){$.upload.addEventListener(e,t)})),h&&($.withCredentials=!0),p)try{$.responseType=p}catch(t){if("json"!==p)throw t}$.send(V(s)?null:s)}if(l>0)var b=n((function(){w("timeout")}),l);else Z(l)&&l.then((function(){w(N(l.$$timeoutId)?"timeout":"abort")}));function w(t){y="timeout"===t,g&&g(),$&&$.abort()}function x(t,e,r,i,o,a){N(b)&&n.cancel(b),g=$=null,t(e,r,i,o,a)}}}(t,r,t.defer,e,n[0])}]}var Wn=y.$interpolateMinErr=i("$interpolate");function Gn(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){var o=t.length,a=e.length,s=new RegExp(t.replace(/./g,c),"g"),u=new RegExp(e.replace(/./g,c),"g");function c(t){return"\\\\\\"+t}function l(n){return n.replace(s,t).replace(u,e)}function f(t,e,n,r){var i=t.$watch((function(t){return i(),r(t)}),e,n);return i}function h(s,u,c,h){var p=c===i.URL||c===i.MEDIA_URL;if(!s.length||-1===s.indexOf(t)){if(u)return;var d=l(s);p&&(d=i.getTrusted(c,d));var v=I(d);return v.exp=s,v.expressions=[],v.$$watchDelegate=f,v}h=!!h;for(var m,g,$,y,b,w=0,O=[],x=s.length,C=[],S=[];w<x;){if(-1===(m=s.indexOf(t,w))||-1===(g=s.indexOf(e,m+o))){w!==x&&C.push(l(s.substring(w)));break}w!==m&&C.push(l(s.substring(w,m))),y=s.substring(m+o,g),O.push(y),w=g+a,S.push(C.length),C.push("")}b=1===C.length&&1===S.length;var _=p&&b?void 0:function(t){try{return t=c&&!p?i.getTrusted(c,t):i.valueOf(t),h&&!N(t)?t:Ut(t)}catch(t){r(Wn.interr(s,t))}};if($=O.map((function(t){return n(t,_)})),!u||O.length){var E=function(t){for(var e=0,n=O.length;e<n;e++){if(h&&V(t[e]))return;C[S[e]]=t[e]}return p?i.getTrusted(c,b?C[0]:C.join("")):(c&&C.length>1&&Wn.throwNoconcat(s),C.join(""))};return j((function(t){var e=0,n=O.length,i=new Array(n);try{for(;e<n;e++)i[e]=$[e](t);return E(i)}catch(t){r(Wn.interr(s,t))}}),{exp:s,expressions:O,$$watchDelegate:function(t,e){var n;return t.$watchGroup($,(function(r,i){var o=E(r);e.call(this,o,r!==i?n:o,t),n=o}))}})}}return h.startSymbol=function(){return t},h.endSymbol=function(){return e},h}]}Wn.throwNoconcat=function(t){throw Wn("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",t)},Wn.interr=function(t,e){return Wn("interr","Can't interpolate: {0}\n{1}",t,e.toString())};var Kn=i("$interval");function Yn(){this.$get=["$$intervalFactory","$window",function(t,e){var n={},r=function(t){e.clearInterval(t),delete n[t]},i=t((function(t,r,i){var o=e.setInterval(t,r);return n[o]=i,o}),r);return i.cancel=function(t){if(!t)return!1;if(!t.hasOwnProperty("$$intervalId"))throw Kn("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!n.hasOwnProperty(t.$$intervalId))return!1;var e=t.$$intervalId,i=n[e];return Nr(i.promise),i.reject("canceled"),r(e),!0},i}]}function Jn(){this.$get=["$browser","$q","$$q","$rootScope",function(t,e,n,r){return function(i,o){return function(a,s,u,c){var l=arguments.length>4,f=l?ft(arguments,4):[],h=0,p=N(c)&&!c,d=(p?n:e).defer(),v=d.promise;function m(){l?a.apply(null,f):a(h)}function g(){p?t.defer(m):r.$evalAsync(m),d.notify(h++),u>0&&h>=u&&(d.resolve(h),o(v.$$intervalId)),p||r.$apply()}return u=N(u)?u:0,v.$$intervalId=i(g,s,d,p),v}}}]}var Zn=function(){this.$get=function(){var t=y.callbacks,e={};return{createCallback:function(n){var r="_"+(t.$$counter++).toString(36),i="angular.callbacks."+r,o=function(t){var e=function(t){e.data=t,e.called=!0};return e.id=t,e}(r);return e[i]=t[r]=o,i},wasCalled:function(t){return e[t].called},getResponse:function(t){return e[t].data},removeCallback:function(n){var r=e[n];delete t[r.id],delete e[n]}}}},Xn=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Qn={http:80,https:443,ftp:21},tr=i("$location");function er(t,e){var n=si(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=k(n.port)||Qn[n.protocol]||null}var nr=/^\s*[\\/]{2,}/;function rr(t,e,n){if(nr.test(t))throw tr("badpath",'Invalid url "{0}".',t);var r="/"!==t.charAt(0);r&&(t="/"+t);var i=si(t),o=r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;e.$$path=function(t,e){for(var n=t.split("/"),r=n.length;r--;)n[r]=decodeURIComponent(n[r]),e&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}(o,n),e.$$search=Ot(i.search),e.$$hash=decodeURIComponent(i.hash),e.$$path&&"/"!==e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function ir(t,e){return t.slice(0,e.length)===e}function or(t,e){if(ir(e,t))return e.substr(t.length)}function ar(t){var e=t.indexOf("#");return-1===e?t:t.substr(0,e)}function sr(t,e,n){this.$$html5=!0,n=n||"",er(t,this),this.$$parse=function(t){var n=or(e,t);if(!q(n))throw tr("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);rr(n,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(t){return e+t.substr(1)},this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(N(o=or(t,r))?(a=o,s=n&&N(o=or(n,o))?e+(or("/",o)||o):t+a):N(o=or(e,r))?s=e+o:e===r+"/"&&(s=e),s&&this.$$parse(s),!!s);var o,a,s}}function ur(t,e,n){er(t,this),this.$$parse=function(r){var i,o=or(t,r)||or(e,r);V(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",V(o)&&(t=r,this.replace())):V(i=or(n,o))&&(i=o),rr(i,this,!1),this.$$path=function(t,e,n){var r,i=/^\/[A-Z]:(\/.*)/;return ir(e,n)&&(e=e.replace(n,"")),i.exec(e)?t:(r=i.exec(t))?r[1]:t}(this.$$path,i,t),this.$$compose()},this.$$normalizeUrl=function(e){return t+(e?n+e:"")},this.$$parseLinkUrl=function(e,n){return ar(t)===ar(e)&&(this.$$parse(e),!0)}}function cr(t,e,n){this.$$html5=!0,ur.apply(this,arguments),this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(t===ar(r)?o=r:(a=or(e,r))?o=t+n+a:e===r+"/"&&(o=e),o&&this.$$parse(o),!!o);var o,a},this.$$normalizeUrl=function(e){return t+n+e}}var lr={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){var t,e,n,r,i,o;this.$$url=(t=this.$$path,e=this.$$search,n=this.$$hash,r=[],O(e,(function(t,e){B(t)?O(t,(function(t){r.push(Ct(e,!0)+(!0===t?"":"="+Ct(t,!0)))})):r.push(Ct(e,!0)+(!0===t?"":"="+Ct(t,!0)))})),i=r.length?r.join("&"):"",o=n?"#"+xt(n):"",function(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=xt(e[n].replace(/%2F/g,"/"));return e.join("/")}(t)+(i?"?"+i:"")+o),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:fr("$$absUrl"),url:function(t){if(V(t))return this.$$url;var e=Xn.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:fr("$$protocol"),host:fr("$$host"),port:fr("$$port"),path:hr("$$path",(function(t){return"/"===(t=null!==t?t.toString():"").charAt(0)?t:"/"+t})),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(q(t)||H(t))t=t.toString(),this.$$search=Ot(t);else{if(!U(t))throw tr("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");O(t=ot(t,{}),(function(e,n){null==e&&delete t[n]})),this.$$search=t}break;default:V(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:hr("$$hash",(function(t){return null!==t?t.toString():""})),replace:function(){return this.$$replace=!0,this}};function fr(t){return function(){return this[t]}}function hr(t,e){return function(n){return V(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function pr(){var t="!",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return N(e)?(t=e,this):t},this.html5Mode=function(t){return J(t)?(e.enabled=t,this):U(t)?(J(t.enabled)&&(e.enabled=t.enabled),J(t.requireBase)&&(e.requireBase=t.requireBase),(J(t.rewriteLinks)||q(t.rewriteLinks))&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,s){var u,c,l,f,h=r.baseHref(),p=r.url();if(e.enabled){if(!h&&e.requireBase)throw tr("nobase","$location in HTML5 mode requires a <base> tag to be present!");l=(f=p).substring(0,f.indexOf("/",f.indexOf("//")+2))+(h||"/"),c=i.history?sr:cr}else l=ar(p),c=ur;var d=function(t){return t.substr(0,ar(t).lastIndexOf("/")+1)}(l);(u=new c(l,d,"#"+t)).$$parseLinkUrl(p,p),u.$$state=r.state();var v=/^\s*(javascript|mailto):/i;function m(t,e,n){var i=u.url(),o=u.$$state;try{r.url(t,e,n),u.$$state=r.state()}catch(t){throw u.url(i),u.$$state=o,t}}o.on("click",(function(t){var i=e.rewriteLinks;if(i&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!==t.which&&2!==t.button){for(var s=a(t.target);"a"!==nt(s[0]);)if(s[0]===o[0]||!(s=s.parent())[0])return;if(!q(i)||!V(s.attr(i))){var c=s.prop("href"),l=s.attr("href")||s.attr("xlink:href");U(c)&&"[object SVGAnimatedString]"===c.toString()&&(c=si(c.animVal).href),v.test(c)||!c||s.attr("target")||t.isDefaultPrevented()||u.$$parseLinkUrl(c,l)&&(t.preventDefault(),u.absUrl()!==r.url()&&n.$apply())}}})),u.absUrl()!==p&&r.url(u.absUrl(),!0);var g=!0;return r.onUrlChange((function(t,e){ir(t,d)?(n.$evalAsync((function(){var r,i=u.absUrl(),o=u.$$state;u.$$parse(t),u.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,o).defaultPrevented,u.absUrl()===t&&(r?(u.$$parse(i),u.$$state=o,m(i,!1,o)):(g=!1,$(i,o)))})),n.$$phase||n.$digest()):s.location.href=t})),n.$watch((function(){if(g||u.$$urlUpdatedByLocation){u.$$urlUpdatedByLocation=!1;var t=r.url(),e=u.absUrl(),o=r.state(),a=u.$$replace,s=!((c=t)===(l=e)||si(c).href===si(l).href)||u.$$html5&&i.history&&o!==u.$$state;(g||s)&&(g=!1,n.$evalAsync((function(){var e=u.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,u.$$state,o).defaultPrevented;u.absUrl()===e&&(r?(u.$$parse(t),u.$$state=o):(s&&m(e,a,o===u.$$state?null:u.$$state),$(t,o)))})))}var c,l;u.$$replace=!1})),u;function $(t,e){n.$broadcast("$locationChangeSuccess",u.absUrl(),t,u.$$state,e)}}]}function dr(){var t=!0,e=this;this.debugEnabled=function(e){return N(e)?(t=e,this):t},this.$get=["$window",function(n){var r,i=o||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:s("log"),info:s("info"),warn:s("warn"),error:s("error"),debug:(r=s("debug"),function(){t&&r.apply(e,arguments)})};function a(t){return z(t)&&(t.stack&&i?t=t.message&&-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function s(t){var e=n.console||{},r=e[t]||e.log||P;return function(){var t=[];return O(arguments,(function(e){t.push(a(e))})),Function.prototype.apply.call(r,e,t)}}}]}O([cr,ur,sr],(function(t){t.prototype=Object.create(lr),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==sr||!this.$$html5)throw tr("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=V(e)?null:e,this.$$urlUpdatedByLocation=!0,this}}));var vr=i("$parse"),mr={}.constructor.prototype.valueOf;function gr(t){return t+""}var $r=Nt();O("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),(function(t){$r[t]=!0}));var yr={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},br=function(t){this.options=t};br.prototype={constructor:br,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){var e=this.text.charAt(this.index);if('"'===e||"'"===e)this.readString(e);else if(this.isNumber(e)||"."===e&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(e,"(){}[].,;:?"))this.tokens.push({index:this.index,text:e}),this.index++;else if(this.isWhitespace(e))this.index++;else{var n=e+this.peek(),r=n+this.peek(2),i=$r[e],o=$r[n],a=$r[r];if(i||o||a){var s=a?r:o?n:e;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(t,e){return-1!==e.indexOf(t)},peek:function(t){var e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)},isNumber:function(t){return"0"<=t&&t<="9"&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t||" "===t},isIdentifierStart:function(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):this.isValidIdentifierStart(t)},isValidIdentifierStart:function(t){return"a"<=t&&t<="z"||"A"<=t&&t<="Z"||"_"===t||"$"===t},isIdentifierContinue:function(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):this.isValidIdentifierContinue(t)},isValidIdentifierContinue:function(t,e){return this.isValidIdentifierStart(t,e)||this.isNumber(t)},codePointAt:function(t){return 1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888},peekMultichar:function(){var t=this.text.charAt(this.index),e=this.peek();if(!e)return t;var n=t.charCodeAt(0),r=e.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?t+e:t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;var r=N(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw vr("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,r,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=f(this.text.charAt(this.index));if("."===n||this.isNumber(n))t+=n;else{var r=this.peek();if("e"===n&&this.isExpOperator(r))t+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"===t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!==t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent:function(){var t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var e=this.peekMultichar();if(!this.isIdentifierContinue(e))break;this.index+=e.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(t){var e=this.index;this.index++;for(var n="",r=t,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else n+=yr[o]||o;i=!1}else if("\\"===o)i=!0;else{if(o===t)return this.index++,void this.tokens.push({index:e,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",e)}};var wr=function(t,e){this.lexer=t,this.options=e};function Or(t,e){return void 0!==t?t:e}function xr(t,e){return void 0===t?e:void 0===e?t:t+e}function Cr(t,e,n){var r,i,o,a=t.isPure=function(t,e){switch(t.type){case wr.MemberExpression:if(t.computed)return!1;break;case wr.UnaryExpression:return 1;case wr.BinaryExpression:return"+"!==t.operator&&1;case wr.CallExpression:return!1}return void 0===e?2:e}(t,n);switch(t.type){case wr.Program:r=!0,O(t.body,(function(t){Cr(t.expression,e,a),r=r&&t.expression.constant})),t.constant=r;break;case wr.Literal:t.constant=!0,t.toWatch=[];break;case wr.UnaryExpression:Cr(t.argument,e,a),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case wr.BinaryExpression:Cr(t.left,e,a),Cr(t.right,e,a),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case wr.LogicalExpression:Cr(t.left,e,a),Cr(t.right,e,a),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case wr.ConditionalExpression:Cr(t.test,e,a),Cr(t.alternate,e,a),Cr(t.consequent,e,a),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case wr.Identifier:t.constant=!1,t.toWatch=[t];break;case wr.MemberExpression:Cr(t.object,e,a),t.computed&&Cr(t.property,e,a),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=t.constant?[]:[t];break;case wr.CallExpression:o=!!t.filter&&function(t,e){return!t(e).$stateful}(e,t.callee.name),r=o,i=[],O(t.arguments,(function(t){Cr(t,e,a),r=r&&t.constant,i.push.apply(i,t.toWatch)})),t.constant=r,t.toWatch=o?i:[t];break;case wr.AssignmentExpression:Cr(t.left,e,a),Cr(t.right,e,a),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case wr.ArrayExpression:r=!0,i=[],O(t.elements,(function(t){Cr(t,e,a),r=r&&t.constant,i.push.apply(i,t.toWatch)})),t.constant=r,t.toWatch=i;break;case wr.ObjectExpression:r=!0,i=[],O(t.properties,(function(t){Cr(t.value,e,a),r=r&&t.value.constant,i.push.apply(i,t.value.toWatch),t.computed&&(Cr(t.key,e,!1),r=r&&t.key.constant,i.push.apply(i,t.key.toWatch))})),t.constant=r,t.toWatch=i;break;case wr.ThisExpression:case wr.LocalsExpression:t.constant=!1,t.toWatch=[]}}function Sr(t){if(1===t.length){var e=t[0].expression,n=e.toWatch;return 1!==n.length||n[0]!==e?n:void 0}}function _r(t){return t.type===wr.Identifier||t.type===wr.MemberExpression}function Er(t){if(1===t.body.length&&_r(t.body[0].expression))return{type:wr.AssignmentExpression,left:t.body[0].expression,right:{type:wr.NGValueParameter},operator:"="}}function jr(t){this.$filter=t}function Ar(t){this.$filter=t}function kr(t,e,n){this.ast=new wr(t,n),this.astCompiler=n.csp?new Ar(e):new jr(e)}function Tr(t){return W(t.valueOf)?t.valueOf():mr.call(t)}function Rr(){var t,e,n=Nt(),r={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(t,e){r[t]=e},this.setIdentifierFns=function(n,r){return t=n,e=r,this},this.$get=["$filter",function(i){var o={csp:ut().noUnsafeEval,literals:ot(r),isIdentifierStart:W(t)&&t,isIdentifierContinue:W(e)&&e};return a.$$getAst=function(t){return new kr(new br(o),i,o).getAst(t).ast},a;function a(t,e){var r,a;switch(typeof t){case"string":return t=t.trim(),(r=n[a=t])||(r=new kr(new br(o),i,o).parse(t),n[a]=h(r)),p(r,e);case"function":return p(t,e);default:return p(P,e)}}function s(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&"object"==typeof(t=Tr(t))&&!n)&&(t===e||t!=t&&e!=e)}function u(t,e,n,r,i){var o,a=r.inputs;if(1===a.length){var u=s;return a=a[0],t.$watch((function(t){var e=a(t);return s(e,u,a.isPure)||(o=r(t,void 0,void 0,[e]),u=e&&Tr(e)),o}),e,n,i)}for(var c=[],l=[],f=0,h=a.length;f<h;f++)c[f]=s,l[f]=null;return t.$watch((function(t){for(var e=!1,n=0,i=a.length;n<i;n++){var u=a[n](t);(e||(e=!s(u,c[n],a[n].isPure)))&&(l[n]=u,c[n]=u&&Tr(u))}return e&&(o=r(t,void 0,void 0,l)),o}),e,n,i)}function c(t,e,n,r,i){var o,a,s=r.literal?l:N,u=r.$$intercepted||r,c=r.$$interceptor||D,f=r.inputs&&!u.inputs;return d.literal=r.literal,d.constant=r.constant,d.inputs=r.inputs,h(d),o=t.$watch(d,e,n,i);function p(){s(a)&&o()}function d(t,e,n,r){return a=f&&r?r[0]:u(t,e,n,r),s(a)&&t.$$postDigest(p),c(a)}}function l(t){var e=!0;return O(t,(function(t){N(t)||(e=!1)})),e}function f(t,e,n,r){var i=t.$watch((function(t){return i(),r(t)}),e,n);return i}function h(t){return t.constant?t.$$watchDelegate=f:t.oneTime?t.$$watchDelegate=c:t.inputs&&(t.$$watchDelegate=u),t}function p(t,e){if(!e)return t;t.$$interceptor&&(e=function(t,e){function n(n){return e(t(n))}return n.$stateful=t.$stateful||e.$stateful,n.$$pure=t.$$pure&&e.$$pure,n}(t.$$interceptor,e),t=t.$$intercepted);var n=!1,r=function(r,i,o,a){var s=n&&a?a[0]:t(r,i,o,a);return e(s)};return r.$$intercepted=t,r.$$interceptor=e,r.literal=t.literal,r.oneTime=t.oneTime,r.constant=t.constant,e.$stateful||(n=!t.inputs,r.inputs=t.inputs?t.inputs:[t],e.$$pure||(r.inputs=r.inputs.map((function(t){return 2===t.isPure?function(e){return t(e)}:t})))),h(r)}}]}function Pr(){var t=!0;this.$get=["$rootScope","$exceptionHandler",function(e,n){return Ir((function(t){e.$evalAsync(t)}),n,t)}],this.errorOnUnhandledRejections=function(e){return N(e)?(t=e,this):t}}function Dr(){var t=!0;this.$get=["$browser","$exceptionHandler",function(e,n){return Ir((function(t){e.defer(t)}),n,t)}],this.errorOnUnhandledRejections=function(e){return N(e)?(t=e,this):t}}function Ir(t,e,n){var r=i("$q",TypeError),o=0,a=[];function s(){return new u}function u(){var t=this.promise=new c;this.resolve=function(e){h(t,e)},this.reject=function(e){p(t,e)},this.notify=function(e){v(t,e)}}function c(){this.$$state={status:0}}function l(){for(;!o&&a.length;){var t=a.shift();if(!Mr(t)){Vr(t);var n="Possibly unhandled rejection: "+Ht(t.value);z(t.value)?e(t.value,n):e(n)}}}function f(r){!n||r.pending||2!==r.status||Mr(r)||(0===o&&0===a.length&&t(l),a.push(r)),!r.processScheduled&&r.pending&&(r.processScheduled=!0,++o,t((function(){!function(r){var i,a,s;s=r.pending,r.processScheduled=!1,r.pending=void 0;try{for(var u=0,c=s.length;u<c;++u){Vr(r),a=s[u][0],i=s[u][r.status];try{W(i)?h(a,i(r.value)):1===r.status?h(a,r.value):p(a,r.value)}catch(t){p(a,t),t&&!0===t.$$passToExceptionHandler&&e(t)}}}finally{--o,n&&0===o&&t(l)}}(r)})))}function h(t,e){t.$$state.status||(e===t?d(t,r("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):function t(e,n){var r,i=!1;try{(U(n)||W(n))&&(r=n.then),W(r)?(e.$$state.status=-1,r.call(n,(function(n){i||(i=!0,t(e,n))}),o,(function(t){v(e,t)}))):(e.$$state.value=n,e.$$state.status=1,f(e.$$state))}catch(t){o(t)}function o(t){i||(i=!0,d(e,t))}}(t,e))}function p(t,e){t.$$state.status||d(t,e)}function d(t,e){t.$$state.value=e,t.$$state.status=2,f(t.$$state)}function v(n,r){var i=n.$$state.pending;n.$$state.status<=0&&i&&i.length&&t((function(){for(var t,n,o=0,a=i.length;o<a;o++){n=i[o][0],t=i[o][3];try{v(n,W(t)?t(r):r)}catch(t){e(t)}}}))}function m(t){var e=new c;return p(e,t),e}function g(t,e,n){var r=null;try{W(n)&&(r=n())}catch(t){return m(t)}return Z(r)?r.then((function(){return e(t)}),m):e(t)}function $(t,e,n,r){var i=new c;return h(i,t),i.then(e,n,r)}j(c.prototype,{then:function(t,e,n){if(V(t)&&V(e)&&V(n))return this;var r=new c;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),this.$$state.status>0&&f(this.$$state),r},catch:function(t){return this.then(null,t)},finally:function(t,e){return this.then((function(e){return g(e,y,t)}),(function(e){return g(e,m,t)}),e)}});var y=$;function b(t){if(!W(t))throw r("norslvr","Expected resolverFn, got '{0}'",t);var e=new c;return t((function(t){h(e,t)}),(function(t){p(e,t)})),e}return b.prototype=c.prototype,b.defer=s,b.reject=m,b.when=$,b.resolve=y,b.all=function(t){var e=new c,n=0,r=B(t)?[]:{};return O(t,(function(t,i){n++,$(t).then((function(t){r[i]=t,--n||h(e,r)}),(function(t){p(e,t)}))})),0===n&&h(e,r),e},b.race=function(t){var e=s();return O(t,(function(t){$(t).then(e.resolve,e.reject)})),e.promise},b}function Mr(t){return!!t.pur}function Vr(t){t.pur=!0}function Nr(t){t.$$state&&Vr(t.$$state)}function Ur(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame,r=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(t){var e=n(t);return function(){r(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return o.supported=i,o}]}function Lr(){var t=10,e=i("$rootScope"),n=null,r=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$exceptionHandler","$parse","$browser",function(i,a,s){function u(t){t.currentScope.$$destroyed=!0}function c(){this.$id=S(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}c.prototype={constructor:c,$new:function(t,e){var n;return e=e||this,t?(n=new c).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=S(),this.$$ChildScope=null,this.$$suspended=!1}return e.prototype=t,e}(this)),n=new this.$$ChildScope),n.$parent=e,n.$$prevSibling=e.$$childTail,e.$$childHead?(e.$$childTail.$$nextSibling=n,e.$$childTail=n):e.$$childHead=e.$$childTail=n,(t||e!==this)&&n.$on("$destroy",u),n},$watch:function(t,e,r,i){var o=a(t),s=W(e)?e:P;if(o.$$watchDelegate)return o.$$watchDelegate(this,s,r,o,t);var u=this,c=u.$$watchers,l={fn:s,last:b,get:o,exp:i||t,eq:!!r};return n=null,c||((c=u.$$watchers=[]).$$digestWatchIndex=-1),c.unshift(l),c.$$digestWatchIndex++,$(this,1),function(){var t=it(c,l);t>=0&&($(u,-1),t<c.$$digestWatchIndex&&c.$$digestWatchIndex--),n=null}},$watchGroup:function(t,e){var n=new Array(t.length),r=new Array(t.length),i=[],o=this,a=!1,s=!0;if(!t.length){var u=!0;return o.$evalAsync((function(){u&&e(r,r,o)})),function(){u=!1}}if(1===t.length)return this.$watch(t[0],(function(t,i,o){r[0]=t,n[0]=i,e(r,t===i?r:n,o)}));function c(){a=!1;try{s?(s=!1,e(r,r,o)):e(r,n,o)}finally{for(var i=0;i<t.length;i++)n[i]=r[i]}}return O(t,(function(t,e){var n=o.$watch(t,(function(t){r[e]=t,a||(a=!0,o.$evalAsync(c))}));i.push(n)})),function(){for(;i.length;)i.shift()()}},$watchCollection:function(t,e){v.$$pure=a(t).literal,v.$stateful=!v.$$pure;var n,r,i,o=this,s=e.length>1,u=0,c=a(t,v),f=[],h={},p=!0,d=0;function v(t){var e,i,o,a;if(!V(n=t)){if(U(n))if(w(n)){r!==f&&(d=(r=f).length=0,u++),e=n.length,d!==e&&(u++,r.length=d=e);for(var s=0;s<e;s++)a=r[s],o=n[s],a!=a&&o!=o||a===o||(u++,r[s]=o)}else{for(i in r!==h&&(r=h={},d=0,u++),e=0,n)l.call(n,i)&&(e++,o=n[i],a=r[i],i in r?a!=a&&o!=o||a===o||(u++,r[i]=o):(d++,r[i]=o,u++));if(d>e)for(i in u++,r)l.call(n,i)||(d--,delete r[i])}else r!==n&&(r=n,u++);return u}}return this.$watch(c,(function(){if(p?(p=!1,e(n,n,o)):e(n,i,o),s)if(U(n))if(w(n)){i=new Array(n.length);for(var t=0;t<n.length;t++)i[t]=n[t]}else for(var r in i={},n)l.call(n,r)&&(i[r]=n[r]);else i=n}))},$digest:function(){var o,a,u,c,l,d,$,y,w,O=t,C=h.length?f:this,S=[];m("$digest"),s.$$checkUrlChange(),this===f&&null!==r&&(s.defer.cancel(r),x()),n=null;do{l=!1,$=C;for(var _=0;_<h.length;_++){try{(0,(w=h[_]).fn)(w.scope,w.locals)}catch(t){i(t)}n=null}h.length=0;t:do{if(c=!$.$$suspended&&$.$$watchers)for(c.$$digestWatchIndex=c.length;c.$$digestWatchIndex--;)try{if(o=c[c.$$digestWatchIndex])if((a=(0,o.get)($))===(u=o.last)||(o.eq?st(a,u):T(a)&&T(u))){if(o===n){l=!1;break t}}else l=!0,n=o,o.last=o.eq?ot(a,null):a,(0,o.fn)(a,u===b?a:u,$),O<5&&(S[y=4-O]||(S[y]=[]),S[y].push({msg:W(o.exp)?"fn: "+(o.exp.name||o.exp.toString()):o.exp,newVal:a,oldVal:u}))}catch(t){i(t)}if(!(d=!$.$$suspended&&$.$$watchersCount&&$.$$childHead||$!==C&&$.$$nextSibling))for(;$!==C&&!(d=$.$$nextSibling);)$=$.$parent}while($=d);if((l||h.length)&&!O--)throw g(),e("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",t,S)}while(l||h.length);for(g();v<p.length;)try{p[v++]()}catch(t){i(t)}p.length=v=0,s.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;for(var e in this.$broadcast("$destroy"),this.$$destroyed=!0,this===f&&s.$$applicationDestroyed(),$(this,-this.$$watchersCount),this.$$listenerCount)y(this,this.$$listenerCount[e],e);t&&t.$$childHead===this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail===this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=P,this.$on=this.$watch=this.$watchGroup=function(){return P},this.$$listeners={},this.$$nextSibling=null,function t(e){9===o&&(e.$$childHead&&t(e.$$childHead),e.$$nextSibling&&t(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}(this)}},$eval:function(t,e){return a(t)(this,e)},$evalAsync:function(t,e){f.$$phase||h.length||s.defer((function(){h.length&&f.$digest()}),null,"$evalAsync"),h.push({scope:this,fn:a(t),locals:e})},$$postDigest:function(t){p.push(t)},$apply:function(t){try{m("$apply");try{return this.$eval(t)}finally{g()}}catch(t){i(t)}finally{try{f.$digest()}catch(t){throw i(t),t}}},$applyAsync:function(t){var e=this;t&&d.push((function(){e.$eval(t)})),t=a(t),null===r&&(r=s.defer((function(){f.$apply(x)}),null,"$applyAsync"))},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var r=this;do{r.$$listenerCount[t]||(r.$$listenerCount[t]=0),r.$$listenerCount[t]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(e);-1!==r&&(delete n[r],y(i,1,t))}},$emit:function(t,e){var n,r,o,a=[],s=this,u=!1,c={name:t,targetScope:s,stopPropagation:function(){u=!0},preventDefault:function(){c.defaultPrevented=!0},defaultPrevented:!1},l=lt([c],arguments,1);do{for(n=s.$$listeners[t]||a,c.currentScope=s,r=0,o=n.length;r<o;r++)if(n[r])try{n[r].apply(null,l)}catch(t){i(t)}else n.splice(r,1),r--,o--;if(u)break;s=s.$parent}while(s);return c.currentScope=null,c},$broadcast:function(t,e){var n=this,r=n,o=n,a={name:t,targetScope:n,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[t])return a;for(var s,u,c,l=lt([a],arguments,1);r=o;){for(a.currentScope=r,u=0,c=(s=r.$$listeners[t]||[]).length;u<c;u++)if(s[u])try{s[u].apply(null,l)}catch(t){i(t)}else s.splice(u,1),u--,c--;if(!(o=r.$$listenerCount[t]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(o=r.$$nextSibling);)r=r.$parent}return a.currentScope=null,a}};var f=new c,h=f.$$asyncQueue=[],p=f.$$postDigestQueue=[],d=f.$$applyAsyncQueue=[],v=0;return f;function m(t){if(f.$$phase)throw e("inprog","{0} already in progress",f.$$phase);f.$$phase=t}function g(){f.$$phase=null}function $(t,e){do{t.$$watchersCount+=e}while(t=t.$parent)}function y(t,e,n){do{t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n]}while(t=t.$parent)}function b(){}function x(){for(;d.length;)try{d.shift()()}catch(t){i(t)}r=null}}]}function qr(){var t=/^\s*(https?|s?ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(e){return N(e)?(t=e,this):t},this.imgSrcSanitizationTrustedUrlList=function(t){return N(t)?(e=t,this):e},this.$get=function(){return function(n,r){var i=r?e:t,o=si(n&&n.trim()).href;return""===o||o.match(i)?n:"unsafe:"+o}}}wr.Program="Program",wr.ExpressionStatement="ExpressionStatement",wr.AssignmentExpression="AssignmentExpression",wr.ConditionalExpression="ConditionalExpression",wr.LogicalExpression="LogicalExpression",wr.BinaryExpression="BinaryExpression",wr.UnaryExpression="UnaryExpression",wr.CallExpression="CallExpression",wr.MemberExpression="MemberExpression",wr.Identifier="Identifier",wr.Literal="Literal",wr.ArrayExpression="ArrayExpression",wr.Property="Property",wr.ObjectExpression="ObjectExpression",wr.ThisExpression="ThisExpression",wr.LocalsExpression="LocalsExpression",wr.NGValueParameter="NGValueParameter",wr.prototype={ast:function(t){this.text=t,this.tokens=this.lexer.lex(t);var e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program:function(){for(var t=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:wr.Program,body:t}},expressionStatement:function(){return{type:wr.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t=this.expression();this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();if(this.expect("=")){if(!_r(t))throw vr("lval","Trying to assign a value to a non l-value");t={type:wr.AssignmentExpression,left:t,right:this.assignment(),operator:"="}}return t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:wr.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:wr.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:wr.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:wr.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:wr.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:wr.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:wr.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:wr.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t,e;for(this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?t=ot(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?t={type:wr.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());e=this.expect("(","[",".");)"("===e.text?(t={type:wr.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:wr.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:wr.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],n={type:wr.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return n},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)do{t.push(this.filterChain())}while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:wr.Identifier,name:t.text}},constant:function(){return{type:wr.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:wr.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:wr.Property,kind:"init"},this.peek().constant?(t.key=this.constant(),t.computed=!1,this.consume(":"),t.value=this.expression()):this.peek().identifier?(t.key=this.identifier(),t.computed=!1,this.peek(":")?(this.consume(":"),t.value=this.expression()):t.value=t.key):this.peek("[")?(this.consume("["),t.key=this.expression(),this.consume("]"),t.computed=!0,this.consume(":"),t.value=this.expression()):this.throwError("invalid key",this.peek()),e.push(t)}while(this.expect(","));return this.consume("}"),{type:wr.ObjectExpression,properties:e}},throwError:function(t,e){throw vr("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw vr("ueoe","Unexpected end of expression: {0}",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},peekToken:function(){if(0===this.tokens.length)throw vr("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,r){return this.peekAhead(0,t,e,n,r)},peekAhead:function(t,e,n,r,i){if(this.tokens.length>t){var o=this.tokens[t],a=o.text;if(a===e||a===n||a===r||a===i||!e&&!n&&!r&&!i)return o}return!1},expect:function(t,e,n,r){var i=this.peek(t,e,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:wr.ThisExpression},$locals:{type:wr.LocalsExpression}}},jr.prototype={compile:function(t){var e=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Cr(t,e.$filter);var n,r="";if(this.stage="assign",n=Er(t)){this.state.computing="assign";var i=this.nextId();this.recurse(n,i),this.return_(i),r="fn.assign="+this.generateFunction("assign","s,v,l")}var o=Sr(t.body);e.stage="inputs",O(o,(function(t,n){var r="fn"+n;e.state[r]={vars:[],body:[],own:{}},e.state.computing=r;var i=e.nextId();e.recurse(t,i),e.return_(i),e.state.inputs.push({name:r,isPure:t.isPure}),t.watchId=n})),this.state.computing="fn",this.stage="main",this.recurse(t);var a='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",s=new Function("$filter","getStringValue","ifDefined","plus",a)(this.$filter,gr,Or,xr);return this.state=this.stage=void 0,s},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return O(e,(function(e){t.push("var "+e.name+"="+n.generateFunction(e.name,"s")),e.isPure&&t.push(e.name,".isPure="+JSON.stringify(e.isPure)+";")})),e.length&&t.push("fn.inputs=["+e.map((function(t){return t.name})).join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return O(this.state.filters,(function(n,r){t.push(n+"=$filter("+e.escape(r)+")")})),t.length?"var "+t.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(t,e,n,r,i,o){var a,s,u,c,l,f=this;if(r=r||P,!o&&N(t.watchId))return e=e||this.nextId(),void this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,n,r,i,!0));switch(t.type){case wr.Program:O(t.body,(function(e,n){f.recurse(e.expression,void 0,void 0,(function(t){s=t})),n!==t.body.length-1?f.current().body.push(s,";"):f.return_(s)}));break;case wr.Literal:c=this.escape(t.value),this.assign(e,c),r(e||c);break;case wr.UnaryExpression:this.recurse(t.argument,void 0,void 0,(function(t){s=t})),c=t.operator+"("+this.ifDefined(s,0)+")",this.assign(e,c),r(c);break;case wr.BinaryExpression:this.recurse(t.left,void 0,void 0,(function(t){a=t})),this.recurse(t.right,void 0,void 0,(function(t){s=t})),c="+"===t.operator?this.plus(a,s):"-"===t.operator?this.ifDefined(a,0)+t.operator+this.ifDefined(s,0):"("+a+")"+t.operator+"("+s+")",this.assign(e,c),r(c);break;case wr.LogicalExpression:e=e||this.nextId(),f.recurse(t.left,e),f.if_("&&"===t.operator?e:f.not(e),f.lazyRecurse(t.right,e)),r(e);break;case wr.ConditionalExpression:e=e||this.nextId(),f.recurse(t.test,e),f.if_(e,f.lazyRecurse(t.alternate,e),f.lazyRecurse(t.consequent,e)),r(e);break;case wr.Identifier:e=e||this.nextId(),n&&(n.context="inputs"===f.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),n.computed=!1,n.name=t.name),f.if_("inputs"===f.stage||f.not(f.getHasOwnProperty("l",t.name)),(function(){f.if_("inputs"===f.stage||"s",(function(){i&&1!==i&&f.if_(f.isNull(f.nonComputedMember("s",t.name)),f.lazyAssign(f.nonComputedMember("s",t.name),"{}")),f.assign(e,f.nonComputedMember("s",t.name))}))}),e&&f.lazyAssign(e,f.nonComputedMember("l",t.name))),r(e);break;case wr.MemberExpression:a=n&&(n.context=this.nextId())||this.nextId(),e=e||this.nextId(),f.recurse(t.object,a,void 0,(function(){f.if_(f.notNull(a),(function(){t.computed?(s=f.nextId(),f.recurse(t.property,s),f.getStringValue(s),i&&1!==i&&f.if_(f.not(f.computedMember(a,s)),f.lazyAssign(f.computedMember(a,s),"{}")),c=f.computedMember(a,s),f.assign(e,c),n&&(n.computed=!0,n.name=s)):(i&&1!==i&&f.if_(f.isNull(f.nonComputedMember(a,t.property.name)),f.lazyAssign(f.nonComputedMember(a,t.property.name),"{}")),c=f.nonComputedMember(a,t.property.name),f.assign(e,c),n&&(n.computed=!1,n.name=t.property.name))}),(function(){f.assign(e,"undefined")})),r(e)}),!!i);break;case wr.CallExpression:e=e||this.nextId(),t.filter?(s=f.filter(t.callee.name),u=[],O(t.arguments,(function(t){var e=f.nextId();f.recurse(t,e),u.push(e)})),c=s+"("+u.join(",")+")",f.assign(e,c),r(e)):(s=f.nextId(),a={},u=[],f.recurse(t.callee,s,a,(function(){f.if_(f.notNull(s),(function(){O(t.arguments,(function(e){f.recurse(e,t.constant?void 0:f.nextId(),void 0,(function(t){u.push(t)}))})),c=a.name?f.member(a.context,a.name,a.computed)+"("+u.join(",")+")":s+"("+u.join(",")+")",f.assign(e,c)}),(function(){f.assign(e,"undefined")})),r(e)})));break;case wr.AssignmentExpression:s=this.nextId(),a={},this.recurse(t.left,void 0,a,(function(){f.if_(f.notNull(a.context),(function(){f.recurse(t.right,s),c=f.member(a.context,a.name,a.computed)+t.operator+s,f.assign(e,c),r(e||c)}))}),1);break;case wr.ArrayExpression:u=[],O(t.elements,(function(e){f.recurse(e,t.constant?void 0:f.nextId(),void 0,(function(t){u.push(t)}))})),c="["+u.join(",")+"]",this.assign(e,c),r(e||c);break;case wr.ObjectExpression:u=[],l=!1,O(t.properties,(function(t){t.computed&&(l=!0)})),l?(e=e||this.nextId(),this.assign(e,"{}"),O(t.properties,(function(t){t.computed?(a=f.nextId(),f.recurse(t.key,a)):a=t.key.type===wr.Identifier?t.key.name:""+t.key.value,s=f.nextId(),f.recurse(t.value,s),f.assign(f.member(e,a,t.computed),s)}))):(O(t.properties,(function(e){f.recurse(e.value,t.constant?void 0:f.nextId(),void 0,(function(t){u.push(f.escape(e.key.type===wr.Identifier?e.key.name:""+e.key.value)+":"+t)}))})),c="{"+u.join(",")+"}",this.assign(e,c)),r(e||c);break;case wr.ThisExpression:this.assign(e,"s"),r(e||"s");break;case wr.LocalsExpression:this.assign(e,"l"),r(e||"l");break;case wr.NGValueParameter:this.assign(e,"v"),r(e||"v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),r[n]},assign:function(t,e){if(t)return this.current().body.push(t,"=",e,";"),t},filter:function(t){return this.state.filters.hasOwnProperty(t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined:function(t,e){return"ifDefined("+t+","+this.escape(e)+")"},plus:function(t,e){return"plus("+t+","+e+")"},return_:function(t){this.current().body.push("return ",t,";")},if_:function(t,e,n){if(!0===t)e();else{var r=this.current().body;r.push("if(",t,"){"),e(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(t){return"!("+t+")"},isNull:function(t){return t+"==null"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?t+"."+e:t+'["'+e.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},getStringValue:function(t){this.assign(t,"getStringValue("+t+")")},lazyRecurse:function(t,e,n,r,i,o){var a=this;return function(){a.recurse(t,e,n,r,i,o)}},lazyAssign:function(t,e){var n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},escape:function(t){if(q(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(H(t))return t.toString();if(!0===t)return"true";if(!1===t)return"false";if(null===t)return"null";if(void 0===t)return"undefined";throw vr("esc","IMPOSSIBLE")},nextId:function(t,e){var n="v"+this.state.nextId++;return t||this.current().vars.push(n+(e?"="+e:"")),n},current:function(){return this.state[this.state.computing]}},Ar.prototype={compile:function(t){var e,n,r=this;Cr(t,r.$filter),(e=Er(t))&&(n=this.recurse(e));var i,o=Sr(t.body);o&&(i=[],O(o,(function(t,e){var n=r.recurse(t);n.isPure=t.isPure,t.input=n,i.push(n),t.watchId=e})));var a=[];O(t.body,(function(t){a.push(r.recurse(t.expression))}));var s=0===t.body.length?P:1===t.body.length?a[0]:function(t,e){var n;return O(a,(function(r){n=r(t,e)})),n};return n&&(s.assign=function(t,e,r){return n(t,r,e)}),i&&(s.inputs=i),s},recurse:function(t,e,n){var r,i,o,a=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case wr.Literal:return this.value(t.value,e);case wr.UnaryExpression:return i=this.recurse(t.argument),this["unary"+t.operator](i,e);case wr.BinaryExpression:case wr.LogicalExpression:return r=this.recurse(t.left),i=this.recurse(t.right),this["binary"+t.operator](r,i,e);case wr.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case wr.Identifier:return a.identifier(t.name,e,n);case wr.MemberExpression:return r=this.recurse(t.object,!1,!!n),t.computed||(i=t.property.name),t.computed&&(i=this.recurse(t.property)),t.computed?this.computedMember(r,i,e,n):this.nonComputedMember(r,i,e,n);case wr.CallExpression:return o=[],O(t.arguments,(function(t){o.push(a.recurse(t))})),t.filter&&(i=this.$filter(t.callee.name)),t.filter||(i=this.recurse(t.callee,!0)),t.filter?function(t,n,r,a){for(var s=[],u=0;u<o.length;++u)s.push(o[u](t,n,r,a));var c=i.apply(void 0,s,a);return e?{context:void 0,name:void 0,value:c}:c}:function(t,n,r,a){var s,u=i(t,n,r,a);if(null!=u.value){for(var c=[],l=0;l<o.length;++l)c.push(o[l](t,n,r,a));s=u.value.apply(u.context,c)}return e?{value:s}:s};case wr.AssignmentExpression:return r=this.recurse(t.left,!0,1),i=this.recurse(t.right),function(t,n,o,a){var s=r(t,n,o,a),u=i(t,n,o,a);return s.context[s.name]=u,e?{value:u}:u};case wr.ArrayExpression:return o=[],O(t.elements,(function(t){o.push(a.recurse(t))})),function(t,n,r,i){for(var a=[],s=0;s<o.length;++s)a.push(o[s](t,n,r,i));return e?{value:a}:a};case wr.ObjectExpression:return o=[],O(t.properties,(function(t){t.computed?o.push({key:a.recurse(t.key),computed:!0,value:a.recurse(t.value)}):o.push({key:t.key.type===wr.Identifier?t.key.name:""+t.key.value,computed:!1,value:a.recurse(t.value)})})),function(t,n,r,i){for(var a={},s=0;s<o.length;++s)o[s].computed?a[o[s].key(t,n,r,i)]=o[s].value(t,n,r,i):a[o[s].key]=o[s].value(t,n,r,i);return e?{value:a}:a};case wr.ThisExpression:return function(t){return e?{value:t}:t};case wr.LocalsExpression:return function(t,n){return e?{value:n}:n};case wr.NGValueParameter:return function(t,n,r){return e?{value:r}:r}}},"unary+":function(t,e){return function(n,r,i,o){var a=t(n,r,i,o);return a=N(a)?+a:0,e?{value:a}:a}},"unary-":function(t,e){return function(n,r,i,o){var a=t(n,r,i,o);return a=N(a)?-a:-0,e?{value:a}:a}},"unary!":function(t,e){return function(n,r,i,o){var a=!t(n,r,i,o);return e?{value:a}:a}},"binary+":function(t,e,n){return function(r,i,o,a){var s=xr(t(r,i,o,a),e(r,i,o,a));return n?{value:s}:s}},"binary-":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a),u=e(r,i,o,a),c=(N(s)?s:0)-(N(u)?u:0);return n?{value:c}:c}},"binary*":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)*e(r,i,o,a);return n?{value:s}:s}},"binary/":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)/e(r,i,o,a);return n?{value:s}:s}},"binary%":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)%e(r,i,o,a);return n?{value:s}:s}},"binary===":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)===e(r,i,o,a);return n?{value:s}:s}},"binary!==":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)!==e(r,i,o,a);return n?{value:s}:s}},"binary==":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)==e(r,i,o,a);return n?{value:s}:s}},"binary!=":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)!=e(r,i,o,a);return n?{value:s}:s}},"binary<":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)<e(r,i,o,a);return n?{value:s}:s}},"binary>":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)>e(r,i,o,a);return n?{value:s}:s}},"binary<=":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)<=e(r,i,o,a);return n?{value:s}:s}},"binary>=":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)>=e(r,i,o,a);return n?{value:s}:s}},"binary&&":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)&&e(r,i,o,a);return n?{value:s}:s}},"binary||":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a)||e(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(t,e,n,r){return function(i,o,a,s){var u=t(i,o,a,s)?e(i,o,a,s):n(i,o,a,s);return r?{value:u}:u}},value:function(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}},identifier:function(t,e,n){return function(r,i,o,a){var s=i&&t in i?i:r;n&&1!==n&&s&&null==s[t]&&(s[t]={});var u=s?s[t]:void 0;return e?{context:s,name:t,value:u}:u}},computedMember:function(t,e,n,r){return function(i,o,a,s){var u,c,l=t(i,o,a,s);return null!=l&&(u=gr(u=e(i,o,a,s)),r&&1!==r&&l&&!l[u]&&(l[u]={}),c=l[u]),n?{context:l,name:u,value:c}:c}},nonComputedMember:function(t,e,n,r){return function(i,o,a,s){var u=t(i,o,a,s);r&&1!==r&&u&&null==u[e]&&(u[e]={});var c=null!=u?u[e]:void 0;return n?{context:u,name:e,value:c}:c}},inputs:function(t,e){return function(n,r,i,o){return o?o[e]:t(n,r,i)}}},kr.prototype={constructor:kr,parse:function(t){var e=this.getAst(t),n=this.astCompiler.compile(e.ast);return n.literal=function(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===wr.Literal||t.body[0].expression.type===wr.ArrayExpression||t.body[0].expression.type===wr.ObjectExpression)}(e.ast),n.constant=function(t){return t.constant}(e.ast),n.oneTime=e.oneTime,n},getAst:function(t){var e=!1;return":"===(t=t.trim()).charAt(0)&&":"===t.charAt(1)&&(e=!0,t=t.substring(2)),{ast:this.ast.ast(t),oneTime:e}}};var Hr=i("$sce"),Fr={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Br=/_([a-z])/g;function zr(t){return t.replace(Br,Jt)}function Wr(t){var e=[];return N(t)&&O(t,(function(t){e.push(function(t){if("self"===t)return t;if(q(t)){if(t.indexOf("***")>-1)throw Hr("iwcard","Illegal sequence *** in string matcher.  String: {0}",t);return t=tt(t).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+t+"$")}if(G(t))return new RegExp("^"+t.source+"$");throw Hr("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(t))})),e}function Gr(){this.SCE_CONTEXTS=Fr;var e=["self"],n=[];this.trustedResourceUrlList=function(t){return arguments.length&&(e=Wr(t)),e},Object.defineProperty(this,"resourceUrlWhitelist",{get:function(){return this.trustedResourceUrlList},set:function(t){this.trustedResourceUrlList=t}}),this.bannedResourceUrlList=function(t){return arguments.length&&(n=Wr(t)),n},Object.defineProperty(this,"resourceUrlBlacklist",{get:function(){return this.bannedResourceUrlList},set:function(t){this.bannedResourceUrlList=t}}),this.$get=["$injector","$$sanitizeUri",function(r,i){var o=function(t){throw Hr("unsafe","Attempting to use an unsafe value in a safe context.")};function a(e,n){return"self"===e?ui(n,oi)||function(e){return ui(e,t.document.baseURI?t.document.baseURI:(ri||((ri=t.document.createElement("a")).href=".",ri=ri.cloneNode(!1)),ri.href))}(n):!!e.exec(n.href)}function s(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}r.has("$sanitize")&&(o=r.get("$sanitize"));var u=s(),c={};return c[Fr.HTML]=s(u),c[Fr.CSS]=s(u),c[Fr.MEDIA_URL]=s(u),c[Fr.URL]=s(c[Fr.MEDIA_URL]),c[Fr.JS]=s(u),c[Fr.RESOURCE_URL]=s(c[Fr.URL]),{trustAs:function(t,e){var n=c.hasOwnProperty(t)?c[t]:null;if(!n)throw Hr("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||V(e)||""===e)return e;if("string"!=typeof e)throw Hr("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)},getTrusted:function(t,r){if(null===r||V(r)||""===r)return r;var s=c.hasOwnProperty(t)?c[t]:null;if(s&&r instanceof s)return r.$$unwrapTrustedValue();if(W(r.$$unwrapTrustedValue)&&(r=r.$$unwrapTrustedValue()),t===Fr.MEDIA_URL||t===Fr.URL)return i(r.toString(),t===Fr.MEDIA_URL);if(t===Fr.RESOURCE_URL){if(function(t){var r,i,o=si(t.toString()),s=!1;for(r=0,i=e.length;r<i;r++)if(a(e[r],o)){s=!0;break}if(s)for(r=0,i=n.length;r<i;r++)if(a(n[r],o)){s=!1;break}return s}(r))return r;throw Hr("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",r.toString())}if(t===Fr.HTML)return o(r);throw Hr("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(t){return t instanceof u?t.$$unwrapTrustedValue():t}}}]}function Kr(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&&o<8)throw Hr("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");var r=qt(Fr);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=D),r.parseAs=function(t,n){var i=e(n);return i.literal&&i.constant?i:e(n,(function(e){return r.getTrusted(t,e)}))};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;return O(Fr,(function(t,e){var n=f(e);r[zr("parse_as_"+n)]=function(e){return i(t,e)},r[zr("get_trusted_"+n)]=function(e){return a(t,e)},r[zr("trust_as_"+n)]=function(e){return s(t,e)}})),r}]}function Yr(){this.$get=["$window","$document",function(t,e){var n={},r=!((!t.nw||!t.nw.process)&&t.chrome&&(t.chrome.app&&t.chrome.app.runtime||!t.chrome.app&&t.chrome.runtime&&t.chrome.runtime.id))&&t.history&&t.history.pushState,i=k((/android (\d+)/.exec(f((t.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((t.navigator||{}).userAgent),s=e[0]||{},u=s.body&&s.body.style,c=!1,l=!1;return u&&(c=!(!("transition"in u)&&!("webkitTransition"in u)),l=!(!("animation"in u)&&!("webkitAnimation"in u))),{history:!(!r||i<4||a),hasEvent:function(t){if("input"===t&&o)return!1;if(V(n[t])){var e=s.createElement("div");n[t]="on"+t in e}return n[t]},csp:ut(),transitions:c,animations:l,android:i}}]}function Jr(){this.$get=I((function(t){return new Zr(t)}))}function Zr(t){var e={},n=[],r=this.ALL_TASKS_TYPE="$$all$$",i=this.DEFAULT_TASK_TYPE="$$default$$";function o(){var t=n.pop();return t&&t.cb}function a(t){for(var e=n.length-1;e>=0;--e){var r=n[e];if(r.type===t)return n.splice(e,1),r.cb}}this.completeTask=function(n,s){s=s||i;try{n()}finally{!function(t){e[t=t||i]&&(e[t]--,e[r]--)}(s);var u=e[s],c=e[r];if(!c||!u)for(var l,f=c?a:o;l=f(s);)try{l()}catch(e){t.error(e)}}},this.incTaskCount=function(t){e[t=t||i]=(e[t]||0)+1,e[r]=(e[r]||0)+1},this.notifyWhenNoPendingTasks=function(t,i){e[i=i||r]?n.push({type:i,cb:t}):t()}}var Xr=i("$templateRequest");function Qr(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(e,n,r,i,o){function a(s,u){a.totalPendingRequests++,q(s)&&!V(n.get(s))||(s=o.getTrustedResourceUrl(s));var c=r.defaults&&r.defaults.transformResponse;return B(c)?c=c.filter((function(t){return t!==Nn})):c===Nn&&(c=null),r.get(s,j({cache:n,transformResponse:c},t)).finally((function(){a.totalPendingRequests--})).then((function(t){return n.put(s,t.data)}),(function(t){return u||(t=Xr("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,t.status,t.statusText),e(t)),i.reject(t)}))}return a.totalPendingRequests=0,a}]}function ti(){this.$get=["$rootScope","$browser","$location",function(t,e,n){return{findBindings:function(t,e,n){var r=t.getElementsByClassName("ng-binding"),i=[];return O(r,(function(t){var r=y.element(t).data("$binding");r&&O(r,(function(r){n?new RegExp("(^|\\s)"+tt(e)+"(\\s|\\||$)").test(r)&&i.push(t):-1!==r.indexOf(e)&&i.push(t)}))})),i},findModels:function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o="["+r[i]+"model"+(n?"=":"*=")+'"'+e+'"]',a=t.querySelectorAll(o);if(a.length)return a}},getLocation:function(){return n.url()},setLocation:function(e){e!==n.url()&&(n.url(e),t.$digest())},whenStable:function(t){e.notifyWhenNoOutstandingRequests(t)}}}]}var ei=i("$timeout");function ni(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,r,i){var o={};function a(a,s,u){W(a)||(u=s,s=a,a=P);var c,l=ft(arguments,3),f=N(u)&&!u,h=(f?r:n).defer(),p=h.promise;return c=e.defer((function(){try{h.resolve(a.apply(null,l))}catch(t){h.reject(t),i(t)}finally{delete o[p.$$timeoutId]}f||t.$apply()}),s,"$timeout"),p.$$timeoutId=c,o[c]=h,p}return a.cancel=function(t){if(!t)return!1;if(!t.hasOwnProperty("$$timeoutId"))throw ei("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!o.hasOwnProperty(t.$$timeoutId))return!1;var n=t.$$timeoutId,r=o[n];return Nr(r.promise),r.reject("canceled"),delete o[n],e.defer.cancel(n)},a}]}var ri,ii=t.document.createElement("a"),oi=si(t.location.href);ii.href="http://[::1]";var ai="[::1]"===ii.hostname;function si(t){if(!q(t))return t;var e=t;o&&(ii.setAttribute("href",e),e=ii.href),ii.setAttribute("href",e);var n=ii.hostname;return!ai&&n.indexOf(":")>-1&&(n="["+n+"]"),{href:ii.href,protocol:ii.protocol?ii.protocol.replace(/:$/,""):"",host:ii.host,search:ii.search?ii.search.replace(/^\?/,""):"",hash:ii.hash?ii.hash.replace(/^#/,""):"",hostname:n,port:ii.port,pathname:"/"===ii.pathname.charAt(0)?ii.pathname:"/"+ii.pathname}}function ui(t,e){return t=si(t),e=si(e),t.protocol===e.protocol&&t.host===e.host}function ci(){this.$get=I(t)}function li(t){var e=t[0]||{},n={},r="";function i(t){try{return decodeURIComponent(t)}catch(e){return t}}return function(){var t,o,a,s,u,c=function(t){try{return t.cookie||""}catch(t){return""}}(e);if(c!==r)for(t=(r=c).split("; "),n={},a=0;a<t.length;a++)(s=(o=t[a]).indexOf("="))>0&&(u=i(o.substring(0,s)),V(n[u])&&(n[u]=i(o.substring(s+1))));return n}}function fi(){this.$get=li}function hi(t){function e(n,r){if(U(n)){var i={};return O(n,(function(t,n){i[n]=e(n,t)})),i}return t.factory(n+"Filter",r)}this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+"Filter")}}],e("currency",mi),e("date",ji),e("filter",pi),e("json",Ai),e("limitTo",Ri),e("lowercase",ki),e("number",gi),e("orderBy",Di),e("uppercase",Ti)}function pi(){return function(t,e,n,r){if(!w(t)){if(null==t)return t;throw i("filter")("notarray","Expected array but received: {0}",t)}var o,a;switch(r=r||"$",vi(e)){case"function":o=e;break;case"boolean":case"null":case"number":case"string":a=!0;case"object":o=function(t,e,n,r){var i=U(t)&&n in t;return!0===e?e=st:W(e)||(e=function(t,e){return!(V(t)||(null===t||null===e?t!==e:U(e)||U(t)&&!M(t)||(t=f(""+t),e=f(""+e),-1===t.indexOf(e))))}),function(o){return i&&!U(o)?di(o,t[n],e,n,!1):di(o,t,e,n,r)}}(e,n,r,a);break;default:return t}return Array.prototype.filter.call(t,o)}}function di(t,e,n,r,i,o){var a=vi(t),s=vi(e);if("string"===s&&"!"===e.charAt(0))return!di(t,e.substring(1),n,r,i);if(B(t))return t.some((function(t){return di(t,e,n,r,i)}));switch(a){case"object":var u;if(i){for(u in t)if(u.charAt&&"$"!==u.charAt(0)&&di(t[u],e,n,r,!0))return!0;return!o&&di(t,e,n,r,!1)}if("object"===s){for(u in e){var c=e[u];if(!W(c)&&!V(c)){var l=u===r;if(!di(l?t:t[u],c,n,r,l,l))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function vi(t){return null===t?"null":typeof t}function mi(t){var e=t.NUMBER_FORMATS;return function(t,n,r){V(n)&&(n=e.CURRENCY_SYM),V(r)&&(r=e.PATTERNS[1].maxFrac);var i=n?/\u00A4/g:/\s*\u00A4\s*/g;return null==t?t:$i(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(i,n)}}function gi(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:$i(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function $i(t,e,n,r,i){if(!q(t)&&!H(t)||isNaN(t))return"";var o,a=!isFinite(t),s=!1,u=Math.abs(t)+"",c="";if(a)c="∞";else{!function(t,e,n,r){var i=t.d,o=i.length-t.i,a=(e=V(e)?Math.min(Math.max(n,o),r):+e)+t.i,s=i[a];if(a>0){i.splice(Math.max(t.i,a));for(var u=a;u<i.length;u++)i[u]=0}else{o=Math.max(0,o),t.i=1,i.length=Math.max(1,a=e+1),i[0]=0;for(var c=1;c<a;c++)i[c]=0}if(s>=5)if(a-1<0){for(var l=0;l>a;l--)i.unshift(0),t.i++;i.unshift(1),t.i++}else i[a-1]++;for(;o<Math.max(0,e);o++)i.push(0);var f=i.reduceRight((function(t,e,n,r){return e+=t,r[n]=e%10,Math.floor(e/10)}),0);f&&(i.unshift(f),t.i++)}(o=function(t){var e,n,r,i,o,a=0;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;"0"===t.charAt(r);r++);if(r===(o=t.length))e=[0],n=1;else{for(o--;"0"===t.charAt(o);)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+t.charAt(r)}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{d:e,e:a,i:n}}(u),i,e.minFrac,e.maxFrac);var l=o.d,f=o.i,h=o.e,p=[];for(s=l.reduce((function(t,e){return t&&!e}),!0);f<0;)l.unshift(0),f++;f>0?p=l.splice(f,l.length):(p=l,l=[0]);var d=[];for(l.length>=e.lgSize&&d.unshift(l.splice(-e.lgSize,l.length).join(""));l.length>e.gSize;)d.unshift(l.splice(-e.gSize,l.length).join(""));l.length&&d.unshift(l.join("")),c=d.join(n),p.length&&(c+=r+p.join("")),h&&(c+="e+"+h)}return t<0&&!s?e.negPre+c+e.negSuf:e.posPre+c+e.posSuf}function yi(t,e,n,r){var i="";for((t<0||r&&t<=0)&&(r?t=1-t:(t=-t,i="-")),t=""+t;t.length<e;)t="0"+t;return n&&(t=t.substr(t.length-e)),i+t}function bi(t,e,n,r,i){return n=n||0,function(o){var a=o["get"+t]();return(n>0||a>-n)&&(a+=n),0===a&&-12===n&&(a=12),yi(a,e,r,i)}}function wi(t,e,n){return function(r,i){var o=r["get"+t]();return i[h((n?"STANDALONE":"")+(e?"SHORT":"")+t)][o]}}function Oi(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function xi(t){return function(e){var n,r=Oi(e.getFullYear()),i=(n=e,+new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))-+r);return yi(1+Math.round(i/6048e5),t)}}function Ci(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}li.$inject=["$document"],hi.$inject=["$provide"],mi.$inject=["$locale"],gi.$inject=["$locale"];var Si={yyyy:bi("FullYear",4,0,!1,!0),yy:bi("FullYear",2,0,!0,!0),y:bi("FullYear",1,0,!1,!0),MMMM:wi("Month"),MMM:wi("Month",!0),MM:bi("Month",2,1),M:bi("Month",1,1),LLLL:wi("Month",!1,!0),dd:bi("Date",2),d:bi("Date",1),HH:bi("Hours",2),H:bi("Hours",1),hh:bi("Hours",2,-12),h:bi("Hours",1,-12),mm:bi("Minutes",2),m:bi("Minutes",1),ss:bi("Seconds",2),s:bi("Seconds",1),sss:bi("Milliseconds",3),EEEE:wi("Day"),EEE:wi("Day",!0),a:function(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]},Z:function(t,e,n){var r=-1*n;return(r>=0?"+":"")+(yi(Math[r>0?"floor":"ceil"](r/60),2)+yi(Math.abs(r%60),2))},ww:xi(2),w:xi(1),G:Ci,GG:Ci,GGG:Ci,GGGG:function(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}},_i=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,Ei=/^-?\d+$/;function ji(t){var e=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var o,a,s="",u=[];if(r=r||"mediumDate",r=t.DATETIME_FORMATS[r]||r,q(n)&&(n=Ei.test(n)?k(n):function(t){var n;if(n=t.match(e)){var r=new Date(0),i=0,o=0,a=n[8]?r.setUTCFullYear:r.setFullYear,s=n[8]?r.setUTCHours:r.setHours;n[9]&&(i=k(n[9]+n[10]),o=k(n[9]+n[11])),a.call(r,k(n[1]),k(n[2])-1,k(n[3]));var u=k(n[4]||0)-i,c=k(n[5]||0)-o,l=k(n[6]||0),f=Math.round(1e3*parseFloat("0."+(n[7]||0)));return s.call(r,u,c,l,f),r}return t}(n)),H(n)&&(n=new Date(n)),!F(n)||!isFinite(n.getTime()))return n;for(;r;)(a=_i.exec(r))?r=(u=lt(u,a,1)).pop():(u.push(r),r=null);var c=n.getTimezoneOffset();return i&&(c=gt(i,c),n=yt(n,i,!0)),O(u,(function(e){s+=(o=Si[e])?o(n,t.DATETIME_FORMATS,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),s}}function Ai(){return function(t,e){return V(e)&&(e=2),dt(t,e)}}ji.$inject=["$locale"];var ki=I(f),Ti=I(h);function Ri(){return function(t,e,n){return e=Math.abs(Number(e))===1/0?Number(e):k(e),T(e)?t:(H(t)&&(t=t.toString()),w(t)?(n=(n=!n||isNaN(n)?0:k(n))<0?Math.max(0,t.length+n):n,e>=0?Pi(t,n,n+e):0===n?Pi(t,e,t.length):Pi(t,Math.max(0,n+e),n)):t)}}function Pi(t,e,n){return q(t)?t.slice(e,n):p.call(t,e,n)}function Di(t){return function(r,o,a,s){if(null==r)return r;if(!w(r))throw i("orderBy")("notarray","Expected array but received: {0}",r);B(o)||(o=[o]),0===o.length&&(o=["+"]);var u=o.map((function(e){var n=1,r=D;if(W(e))r=e;else if(q(e)&&("+"!==e.charAt(0)&&"-"!==e.charAt(0)||(n="-"===e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(r=t(e)).constant)){var i=r();r=function(t){return t[i]}}return{get:r,descending:n}})),c=a?-1:1,l=W(s)?s:n,f=Array.prototype.map.call(r,(function(t,n){return{value:t,tieBreaker:{value:n,type:"number",index:n},predicateValues:u.map((function(r){return function(t,n){var r=typeof t;return null===t?r="null":"object"===r&&(t=function(t){return W(t.valueOf)&&e(t=t.valueOf())||M(t)&&e(t=t.toString()),t}(t)),{value:t,type:r,index:n}}(r.get(t),n)}))}}));return f.sort((function(t,e){for(var r=0,i=u.length;r<i;r++){var o=l(t.predicateValues[r],e.predicateValues[r]);if(o)return o*u[r].descending*c}return(l(t.tieBreaker,e.tieBreaker)||n(t.tieBreaker,e.tieBreaker))*c})),f.map((function(t){return t.value}))};function e(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function n(t,e){var n=0,r=t.type,i=e.type;if(r===i){var o=t.value,a=e.value;"string"===r?(o=o.toLowerCase(),a=a.toLowerCase()):"object"===r&&(U(o)&&(o=t.index),U(a)&&(a=e.index)),o!==a&&(n=o<a?-1:1)}else n="undefined"===r?1:"undefined"===i?-1:"null"===r?1:"null"===i||r<i?-1:1;return n}}function Ii(t){return W(t)&&(t={link:t}),t.restrict=t.restrict||"AC",I(t)}Di.$inject=["$parse"];var Mi=I({restrict:"E",compile:function(t,e){if(!e.href&&!e.xlinkHref)return function(t,e){if("a"===e[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===m.call(e.prop("href"))?"xlink:href":"href";e.on("click",(function(t){e.attr(n)||t.preventDefault()}))}}}}),Vi={};O(ke,(function(t,e){if("multiple"!==t){var n=$n("ng-"+e),r=i;"checked"===t&&(r=function(t,e,r){r.ngModel!==r[n]&&i(t,0,r)}),Vi[n]=function(){return{restrict:"A",priority:100,link:r}}}function i(t,r,i){t.$watch(i[n],(function(t){i.$set(e,!!t)}))}})),O(Re,(function(t,e){Vi[e]=function(){return{priority:100,link:function(t,n,r){if("ngPattern"===e&&"/"===r.ngPattern.charAt(0)){var i=r.ngPattern.match(c);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}t.$watch(r[e],(function(t){r.$set(e,t)}))}}}})),O(["src","srcset","href"],(function(t){var e=$n("ng-"+t);Vi[e]=["$sce",function(n){return{priority:99,link:function(r,i,a){var s=t,u=t;"href"===t&&"[object SVGAnimatedString]"===m.call(i.prop("href"))&&(u="xlinkHref",a.$attr[u]="xlink:href",s=null),a.$set(e,n.getTrustedMediaUrl(a[e])),a.$observe(e,(function(e){e?(a.$set(u,e),o&&s&&i.prop(s,a[u])):"href"===t&&a.$set(u,null)}))}}}]}));var Ni={$addControl:P,$getControls:I([]),$$renameControl:function(t,e){t.$name=e},$removeControl:P,$setValidity:P,$setDirty:P,$setPristine:P,$setSubmitted:P,$$setSubmitted:P};function Ui(t,e,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(e.name||e.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=Ni,this.$$element=t,this.$$animate=r,Fi(this)}Ui.$inject=["$element","$attrs","$scope","$animate","$interpolate"],Ui.prototype={$rollbackViewValue:function(){O(this.$$controls,(function(t){t.$rollbackViewValue()}))},$commitViewValue:function(){O(this.$$controls,(function(t){t.$commitViewValue()}))},$addControl:function(t){Mt(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$$parentForm=this},$getControls:function(){return qt(this.$$controls)},$$renameControl:function(t,e){var n=t.$name;this[n]===t&&delete this[n],this[e]=t,t.$name=e},$removeControl:function(t){t.$name&&this[t.$name]===t&&delete this[t.$name],O(this.$pending,(function(e,n){this.$setValidity(n,null,t)}),this),O(this.$error,(function(e,n){this.$setValidity(n,null,t)}),this),O(this.$$success,(function(e,n){this.$setValidity(n,null,t)}),this),it(this.$$controls,t),t.$$parentForm=Ni},$setDirty:function(){this.$$animate.removeClass(this.$$element,Uo),this.$$animate.addClass(this.$$element,Lo),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Uo,Lo+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,O(this.$$controls,(function(t){t.$setPristine()}))},$setUntouched:function(){O(this.$$controls,(function(t){t.$setUntouched()}))},$setSubmitted:function(){for(var t=this;t.$$parentForm&&t.$$parentForm!==Ni;)t=t.$$parentForm;t.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,O(this.$$controls,(function(t){t.$$setSubmitted&&t.$$setSubmitted()}))}},Bi({clazz:Ui,set:function(t,e,n){var r=t[e];r?-1===r.indexOf(n)&&r.push(n):t[e]=[n]},unset:function(t,e,n){var r=t[e];r&&(it(r,n),0===r.length&&delete t[e])}});var Li=function(t){return["$timeout","$parse",function(e,n){return{name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:Ui,compile:function(n,i){n.addClass(Uo).addClass(Vo);var o=i.name?"name":!(!t||!i.ngForm)&&"ngForm";return{pre:function(t,n,i,a){var s=a[0];if(!("action"in i)){var u=function(e){t.$apply((function(){s.$commitViewValue(),s.$setSubmitted()})),e.preventDefault()};n[0].addEventListener("submit",u),n.on("$destroy",(function(){e((function(){n[0].removeEventListener("submit",u)}),0,!1)}))}(a[1]||s.$$parentForm).$addControl(s);var c=o?r(s.$name):P;o&&(c(t,s),i.$observe(o,(function(e){s.$name!==e&&(c(t,void 0),s.$$parentForm.$$renameControl(s,e),(c=r(s.$name))(t,s))}))),n.on("$destroy",(function(){s.$$parentForm.$removeControl(s),c(t,void 0),j(s,Ni)}))}}}};function r(t){return""===t?n('this[""]').assign:n(t).assign||P}}]},qi=Li(),Hi=Li(!0);function Fi(t){t.$$classCache={},t.$$classCache[No]=!(t.$$classCache[Vo]=t.$$element.hasClass(Vo))}function Bi(t){var e=t.clazz,n=t.set,r=t.unset;function i(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function o(t,e,n){e=e?"-"+Tt(e,"-"):"",i(t,Vo+e,!0===n),i(t,No+e,!1===n)}e.prototype.$setValidity=function(t,e,a){var s;V(e)?function(t,e,r,i){t[e]||(t[e]={}),n(t[e],r,i)}(this,"$pending",t,a):function(t,e,n,i){t[e]&&r(t[e],n,i),zi(t[e])&&(t[e]=void 0)}(this,"$pending",t,a),J(e)?e?(r(this.$error,t,a),n(this.$$success,t,a)):(n(this.$error,t,a),r(this.$$success,t,a)):(r(this.$error,t,a),r(this.$$success,t,a)),this.$pending?(i(this,"ng-pending",!0),this.$valid=this.$invalid=void 0,o(this,"",null)):(i(this,"ng-pending",!1),this.$valid=zi(this.$error),this.$invalid=!this.$valid,o(this,"",this.$valid)),o(this,t,s=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null)),this.$$parentForm.$setValidity(t,s,this)}}function zi(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}var Wi=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Gi=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Ki=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,Yi=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Ji=/^(\d{4,})-(\d{2})-(\d{2})$/,Zi=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Xi=/^(\d{4,})-W(\d\d)$/,Qi=/^(\d{4,})-(\d\d)$/,to=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,eo=Nt();O("date,datetime-local,month,time,week".split(","),(function(t){eo[t]=!0}));var no={text:function(t,e,n,r,i,o){io(0,e,n,r,i,o),ro(r)},date:ao("date",Ji,oo(Ji,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":ao("datetimelocal",Zi,oo(Zi,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:ao("time",to,oo(to,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:ao("week",Xi,(function(t,e){if(F(t))return t;if(q(t)){Xi.lastIndex=0;var n=Xi.exec(t);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,u=0,c=Oi(r),l=7*(i-1);return e&&(o=e.getHours(),a=e.getMinutes(),s=e.getSeconds(),u=e.getMilliseconds()),new Date(r,0,c.getDate()+l,o,a,s,u)}}return NaN}),"yyyy-Www"),month:ao("month",Qi,oo(Qi,["yyyy","MM"]),"yyyy-MM"),number:function(t,e,n,r,i,o,a,s){var u;if(so(0,e,0,r,"number"),uo(r),io(0,e,n,r,i,o),N(n.min)||n.ngMin){var c=n.min||s(n.ngMin)(t);u=co(c),r.$validators.min=function(t,e){return r.$isEmpty(e)||V(u)||e>=u},n.$observe("min",(function(t){t!==c&&(u=co(t),c=t,r.$validate())}))}if(N(n.max)||n.ngMax){var l=n.max||s(n.ngMax)(t),f=co(l);r.$validators.max=function(t,e){return r.$isEmpty(e)||V(f)||e<=f},n.$observe("max",(function(t){t!==l&&(f=co(t),l=t,r.$validate())}))}if(N(n.step)||n.ngStep){var h=n.step||s(n.ngStep)(t),p=co(h);r.$validators.step=function(t,e){return r.$isEmpty(e)||V(p)||ho(e,u||0,p)},n.$observe("step",(function(t){t!==h&&(p=co(t),h=t,r.$validate())}))}},url:function(t,e,n,r,i,o){io(0,e,n,r,i,o),ro(r),r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||Gi.test(n)}},email:function(t,e,n,r,i,o){io(0,e,n,r,i,o),ro(r),r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||Ki.test(n)}},radio:function(t,e,n,r){var i=!n.ngTrim||"false"!==Q(n.ngTrim);V(n.name)&&e.attr("name",S()),e.on("change",(function(t){var o;e[0].checked&&(o=n.value,i&&(o=Q(o)),r.$setViewValue(o,t&&t.type))})),r.$render=function(){var t=n.value;i&&(t=Q(t)),e[0].checked=t===r.$viewValue},n.$observe("value",r.$render)},range:function(t,e,n,r,i,o){so(0,e,0,r,"range"),uo(r),io(0,e,n,r,i,o);var a=r.$$hasNativeValidators&&"range"===e[0].type,s=a?0:void 0,u=a?100:void 0,c=a?1:void 0,l=e[0].validity,f=N(n.min),h=N(n.max),p=N(n.step),d=r.$render;function v(t,r){e.attr(t,n[t]);var i=n[t];n.$observe(t,(function(t){t!==i&&(i=t,r(t))}))}r.$render=a&&N(l.rangeUnderflow)&&N(l.rangeOverflow)?function(){d(),r.$setViewValue(e.val())}:d,f&&(s=co(n.min),r.$validators.min=a?function(){return!0}:function(t,e){return r.$isEmpty(e)||V(s)||e>=s},v("min",(function(t){if(s=co(t),!T(r.$modelValue))if(a){var n=e.val();s>n&&(n=s,e.val(n)),r.$setViewValue(n)}else r.$validate()}))),h&&(u=co(n.max),r.$validators.max=a?function(){return!0}:function(t,e){return r.$isEmpty(e)||V(u)||e<=u},v("max",(function(t){if(u=co(t),!T(r.$modelValue))if(a){var n=e.val();u<n&&(e.val(u),n=u<s?s:u),r.$setViewValue(n)}else r.$validate()}))),p&&(c=co(n.step),r.$validators.step=a?function(){return!l.stepMismatch}:function(t,e){return r.$isEmpty(e)||V(c)||ho(e,s||0,c)},v("step",(function(t){c=co(t),T(r.$modelValue)||(a?r.$viewValue!==e.val()&&r.$setViewValue(e.val()):r.$validate())})))},checkbox:function(t,e,n,r,i,o,a,s){var u=po(s,t,"ngTrueValue",n.ngTrueValue,!0),c=po(s,t,"ngFalseValue",n.ngFalseValue,!1);e.on("change",(function(t){r.$setViewValue(e[0].checked,t&&t.type)})),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push((function(t){return st(t,u)})),r.$parsers.push((function(t){return t?u:c}))},hidden:P,button:P,submit:P,reset:P,file:P};function ro(t){t.$formatters.push((function(e){return t.$isEmpty(e)?e:e.toString()}))}function io(t,e,n,r,i,o){var a,s=f(e[0].type);if(!i.android){var u=!1;e.on("compositionstart",(function(){u=!0})),e.on("compositionupdate",(function(t){(V(t.data)||""===t.data)&&(u=!1)})),e.on("compositionend",(function(){u=!1,c()}))}var c=function(t){if(a&&(o.defer.cancel(a),a=null),!u){var i=e.val(),c=t&&t.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(i=Q(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,c)}};if(i.hasEvent("input"))e.on("input",c);else{var l=function(t,e,n){a||(a=o.defer((function(){a=null,e&&e.value===n||c(t)})))};e.on("keydown",(function(t){var e=t.keyCode;91===e||15<e&&e<19||37<=e&&e<=40||l(t,this,this.value)})),i.hasEvent("paste")&&e.on("paste cut drop",l)}e.on("change",c),eo[s]&&r.$$hasNativeValidators&&s===n.type&&e.on("keydown wheel mousedown",(function(t){if(!a){var e=this.validity,n=e.badInput,r=e.typeMismatch;a=o.defer((function(){a=null,e.badInput===n&&e.typeMismatch===r||c(t)}))}})),r.$render=function(){var t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function oo(t,e){return function(n,r){var i,o;if(F(n))return n;if(q(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Wi.test(n))return new Date(n);if(t.lastIndex=0,i=t.exec(n)){i.shift(),o=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},O(i,(function(t,n){n<e.length&&(o[e[n]]=+t)}));var a=new Date(o.yyyy,o.MM-1,o.dd,o.HH,o.mm,o.ss||0,1e3*o.sss||0);return o.yyyy<100&&a.setFullYear(o.yyyy),a}}return NaN}}function ao(t,e,n,r){return function(i,o,a,s,u,c,l,f){so(0,o,0,s,t),io(0,o,a,s,u,c);var h,p,d="time"===t||"datetimelocal"===t;if(s.$parsers.push((function(n){return s.$isEmpty(n)?null:e.test(n)?w(n,h):void(s.$$parserName=t)})),s.$formatters.push((function(t){if(t&&!F(t))throw qo("datefmt","Expected `{0}` to be a date",t);if(y(t)){h=t;var e=s.$options.getOption("timezone");return e&&(p=e,h=yt(h,e,!0)),function(t,e){var n=r;d&&q(s.$options.getOption("timeSecondsFormat"))&&(n=r.replace("ss.sss",s.$options.getOption("timeSecondsFormat")).replace(/:$/,""));var i=l("date")(t,n,e);return d&&s.$options.getOption("timeStripZeroSeconds")&&(i=i.replace(/(?::00)?(?:\.000)?$/,"")),i}(t,e)}return h=null,p=null,""})),N(a.min)||a.ngMin){var v=a.min||f(a.ngMin)(i),m=b(v);s.$validators.min=function(t){return!y(t)||V(m)||n(t)>=m},a.$observe("min",(function(t){t!==v&&(m=b(t),v=t,s.$validate())}))}if(N(a.max)||a.ngMax){var g=a.max||f(a.ngMax)(i),$=b(g);s.$validators.max=function(t){return!y(t)||V($)||n(t)<=$},a.$observe("max",(function(t){t!==g&&($=b(t),g=t,s.$validate())}))}function y(t){return t&&!(t.getTime&&t.getTime()!=t.getTime())}function b(t){return N(t)&&!F(t)?w(t)||void 0:t}function w(t,e){var r=s.$options.getOption("timezone");p&&p!==r&&(e=$t(e,gt(p)));var i=n(t,e);return!isNaN(i)&&r&&(i=yt(i,r)),i}}}function so(t,e,n,r,i){var o=e[0];(r.$$hasNativeValidators=U(o.validity))&&r.$parsers.push((function(t){var n=e.prop("validity")||{};if(!n.badInput&&!n.typeMismatch)return t;r.$$parserName=i}))}function uo(t){t.$parsers.push((function(e){return t.$isEmpty(e)?null:Yi.test(e)?parseFloat(e):void(t.$$parserName="number")})),t.$formatters.push((function(e){if(!t.$isEmpty(e)){if(!H(e))throw qo("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}))}function co(t){return N(t)&&!H(t)&&(t=parseFloat(t)),T(t)?void 0:t}function lo(t){return(0|t)===t}function fo(t){var e=t.toString(),n=e.indexOf(".");if(-1===n){if(-1<t&&t<1){var r=/e-(\d+)$/.exec(e);if(r)return Number(r[1])}return 0}return e.length-n-1}function ho(t,e,n){var r=Number(t),i=!lo(r),o=!lo(e),a=!lo(n);if(i||o||a){var s=i?fo(r):0,u=o?fo(e):0,c=a?fo(n):0,l=Math.max(s,u,c),f=Math.pow(10,l);r*=f,e*=f,n*=f,i&&(r=Math.round(r)),o&&(e=Math.round(e)),a&&(n=Math.round(n))}return(r-e)%n==0}function po(t,e,n,r,i){var o;if(N(r)){if(!(o=t(r)).constant)throw qo("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(e)}return i}var vo=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(no[f(a.type)]||no.text)(i,o,a,s[0],e,t,n,r)}}}}],mo=function(){var t={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(t){this.setAttribute("value",t)}};return{restrict:"E",priority:200,compile:function(e,n){if("hidden"===f(n.type))return{pre:function(e,n,r,i){var o=n[0];o.parentNode&&o.parentNode.insertBefore(o,o.nextSibling),Object.defineProperty&&Object.defineProperty(o,"value",t)}}}}},go=/^(true|false|\d+)$/,$o=function(){function t(t,e,n){var r=N(n)?n:9===o?"":null;t.prop("value",r),e.$set("value",n)}return{restrict:"A",priority:100,compile:function(e,n){return go.test(n.ngValue)?function(e,n,r){t(n,r,e.$eval(r.ngValue))}:function(e,n,r){e.$watch(r.ngValue,(function(e){t(n,r,e)}))}}}},yo=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,n,r){t.$$addBindingInfo(n,r.ngBind),n=n[0],e.$watch(r.ngBind,(function(t){n.textContent=Ut(t)}))}}}}],bo=["$interpolate","$compile",function(t,e){return{compile:function(n){return e.$$addBindingClass(n),function(n,r,i){var o=t(r.attr(i.$attr.ngBindTemplate));e.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",(function(t){r.textContent=V(t)?"":t}))}}}}],wo=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(r,i){var o=e(i.ngBindHtml),a=e(i.ngBindHtml,(function(e){return t.valueOf(e)}));return n.$$addBindingClass(r),function(e,r,i){n.$$addBindingInfo(r,i.ngBindHtml),e.$watch(a,(function(){var n=o(e);r.html(t.getTrustedHtml(n)||"")}))}}}}],Oo=I({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push((function(){t.$eval(n.ngChange)}))}});function xo(t,e){var n;return t="ngClass"+t,["$parse",function(a){return{restrict:"AC",link:function(s,u,c){var l,f=u.data("$classCounts"),h=!0;function p(t,e){var n=[];return O(t,(function(t){(e>0||f[t])&&(f[t]=(f[t]||0)+e,f[t]===+(e>0)&&n.push(t))})),n.join(" ")}f||(f=Nt(),u.data("$classCounts",f)),"ngClass"!==t&&(n||(n=a("$index",(function(t){return 1&t}))),s.$watch(n,(function(t){var n;t===e?(n=p(i(n=l),1),c.$addClass(n)):function(t){t=p(i(t),-1),c.$removeClass(t)}(l),h=t}))),s.$watch(a(c[t],o),(function(t){h===e&&function(t,e){var n=i(t),o=i(e),a=r(n,o),s=r(o,n),u=p(a,-1),l=p(s,1);c.$addClass(l),c.$removeClass(u)}(l,t),l=t}))}}}];function r(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;var n=[];t:for(var r=0;r<t.length;r++){for(var i=t[r],o=0;o<e.length;o++)if(i===e[o])continue t;n.push(i)}return n}function i(t){return t&&t.split(" ")}function o(t){if(!t)return t;var e=t;return B(t)?e=t.map(o).join(" "):U(t)?e=Object.keys(t).filter((function(e){return t[e]})).join(" "):q(t)||(e=t+""),e}}var Co=xo("",!0),So=xo("Odd",0),_o=xo("Even",1),Eo=Ii({compile:function(t,e){e.$set("ngCloak",void 0),t.removeClass("ng-cloak")}}),jo=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Ao={},ko={blur:!0,focus:!0};function To(t,e,n,r,i,o){return{restrict:"A",compile:function(a,s){var u=t(s[r]);return function(t,r){r.on(i,(function(r){var i=function(){u(t,{$event:r})};if(e.$$phase)if(o)t.$evalAsync(i);else try{i()}catch(t){n(t)}else t.$apply(i)}))}}}}O("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),(function(t){var e=$n("ng-"+t);Ao[e]=["$parse","$rootScope","$exceptionHandler",function(n,r,i){return To(n,r,i,e,t,ko[t])}]}));var Ro=["$animate","$compile",function(t,e){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,u,c;n.$watch(i.ngIf,(function(n){n?u||a((function(n,o){u=o,n[n.length++]=e.$$createComment("end ngIf",i.ngIf),s={clone:n},t.enter(n,r.parent(),r)})):(c&&(c.remove(),c=null),u&&(u.$destroy(),u=null),s&&(c=Vt(s.clone),t.leave(c).done((function(t){!1!==t&&(c=null)})),s=null))}))}}}],Po=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:y.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,u,c,l){var f,h,p,d=0,v=function(){h&&(h.remove(),h=null),f&&(f.$destroy(),f=null),p&&(n.leave(p).done((function(t){!1!==t&&(h=null)})),h=p,p=null)};r.$watch(o,(function(o){var u=function(t){!1===t||!N(s)||s&&!r.$eval(s)||e()},h=++d;o?(t(o,!0).then((function(t){if(!r.$$destroyed&&h===d){var e=r.$new();c.template=t;var s=l(e,(function(t){v(),n.enter(t,null,i).done(u)}));p=s,(f=e).$emit("$includeContentLoaded",o),r.$eval(a)}}),(function(){r.$$destroyed||h===d&&(v(),r.$emit("$includeContentError",o))})),r.$emit("$includeContentRequested",o)):(v(),c.template=null)}))}}}}],Do=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(m.call(r[0]).match(/SVG/))return r.empty(),void e(ce(o.template,t.document).childNodes)(n,(function(t){r.append(t)}),{futureParentElement:r});r.html(o.template),e(r.contents())(n)}}}],Io=Ii({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),Mo=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,n,r){var i=n.ngList||", ",o="false"!==n.ngTrim,a=o?Q(i):i;r.$parsers.push((function(t){if(!V(t)){var e=[];return t&&O(t.split(a),(function(t){t&&e.push(o?Q(t):t)})),e}})),r.$formatters.push((function(t){if(B(t))return t.join(i)})),r.$isEmpty=function(t){return!t||!t.length}}}},Vo="ng-valid",No="ng-invalid",Uo="ng-pristine",Lo="ng-dirty",qo=i("ngModel");function Ho(t,e,n,r,i,o,a,s,u){var c;this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=u(n.name||"",!1)(t),this.$$parentForm=Ni,this.$options=Fo,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=t,this.$$rootScope=t.$root,this.$$attr=n,this.$$element=r,this.$$animate=o,this.$$timeout=a,this.$$parse=i,this.$$q=s,this.$$exceptionHandler=e,Fi(this),(c=this).$$scope.$watch((function(t){var e=c.$$ngModelGet(t);return e===c.$modelValue||c.$modelValue!=c.$modelValue&&e!=e||c.$$setModelValue(e),e}))}Ho.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],Ho.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var t=this.$$parse(this.$$attr.ngModel+"()"),e=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(e){var n=this.$$parsedNgModel(e);return W(n)&&(n=t(e)),n},this.$$ngModelSet=function(t,n){W(this.$$parsedNgModel(t))?e(t,{$$$p:n}):this.$$parsedNgModelAssign(t,n)}}else if(!this.$$parsedNgModel.assign)throw qo("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,bt(this.$$element))},$render:P,$isEmpty:function(t){return V(t)||""===t||null===t||t!=t},$$updateEmptyClasses:function(t){this.$isEmpty(t)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Lo),this.$$animate.addClass(this.$$element,Uo)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,Uo),this.$$animate.addClass(this.$$element,Lo),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!T(this.$modelValue)){var t=this.$$lastCommittedViewValue,e=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),o=this;this.$$runValidators(e,t,(function(t){i||n===t||(o.$modelValue=t?e:void 0,o.$modelValue!==r&&o.$$writeModelToScope())}))}},$$runValidators:function(t,e,n){this.$$currentValidationRunId++;var r,i,o,a,s=this.$$currentValidationRunId,u=this;function c(t,e){s===u.$$currentValidationRunId&&u.$setValidity(t,e)}function l(t){s===u.$$currentValidationRunId&&n(t)}a=u.$$parserName,(V(u.$$parserValid)?(c(a,null),1):(u.$$parserValid||(O(u.$validators,(function(t,e){c(e,null)})),O(u.$asyncValidators,(function(t,e){c(e,null)}))),c(a,u.$$parserValid),u.$$parserValid))?(o=!0,O(u.$validators,(function(n,r){var i=Boolean(n(t,e));o=o&&i,c(r,i)})),!o&&(O(u.$asyncValidators,(function(t,e){c(e,null)})),1)?l(!1):(r=[],i=!0,O(u.$asyncValidators,(function(n,o){var a=n(t,e);if(!Z(a))throw qo("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);c(o,void 0),r.push(a.then((function(){c(o,!0)}),(function(){i=!1,c(o,!1)})))})),r.length?u.$$q.all(r).then((function(){l(i)}),P):l(!0))):l(!1)},$commitViewValue:function(){var t=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==t||""===t&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(t),this.$$lastCommittedViewValue=t,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){var t=this.$$lastCommittedViewValue,e=this;if(this.$$parserValid=!V(t)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var n=0;n<this.$parsers.length;n++)if(V(t=this.$parsers[n](t))){this.$$parserValid=!1;break}T(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var r=this.$modelValue,i=this.$options.getOption("allowInvalid");function o(){e.$modelValue!==r&&e.$$writeModelToScope()}this.$$rawModelValue=t,i&&(this.$modelValue=t,o()),this.$$runValidators(t,this.$$lastCommittedViewValue,(function(n){i||(e.$modelValue=n?t:void 0,o())}))},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),O(this.$viewChangeListeners,(function(t){try{t()}catch(t){this.$$exceptionHandler(t)}}),this)},$setViewValue:function(t,e){this.$viewValue=t,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(e)},$$debounceViewValueCommit:function(t){var e=this.$options.getOption("debounce");H(e[t])?e=e[t]:H(e.default)&&-1===this.$options.getOption("updateOn").indexOf(t)?e=e.default:H(e["*"])&&(e=e["*"]),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;e>0?this.$$pendingDebounce=this.$$timeout((function(){n.$commitViewValue()}),e):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply((function(){n.$commitViewValue()}))},$overrideModelOptions:function(t){this.$options=this.$options.createChild(t),this.$$setUpdateOnEvents()},$processModelValue:function(){var t=this.$$format();this.$viewValue!==t&&(this.$$updateEmptyClasses(t),this.$viewValue=this.$$lastCommittedViewValue=t,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,P))},$$format:function(){for(var t=this.$formatters,e=t.length,n=this.$modelValue;e--;)n=t[e](n);return n},$$setModelValue:function(t){this.$modelValue=this.$$rawModelValue=t,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(t){this.$$debounceViewValueCommit(t&&t.type)}},Bi({clazz:Ho,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]}});var Fo,Bo=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Ho,priority:1,compile:function(e){return e.addClass(Uo).addClass("ng-untouched").addClass(Vo),{pre:function(t,e,n,r){var i=r[0],o=r[1]||i.$$parentForm,a=r[2];a&&(i.$options=a.$options),i.$$initGetterSetters(),o.$addControl(i),n.$observe("name",(function(t){i.$name!==t&&i.$$parentForm.$$renameControl(i,t)})),t.$on("$destroy",(function(){i.$$parentForm.$removeControl(i)}))},post:function(e,n,r,i){var o=i[0];function a(){o.$setTouched()}o.$$setUpdateOnEvents(),n.on("blur",(function(){o.$touched||(t.$$phase?e.$evalAsync(a):e.$apply(a))}))}}}}}],zo=/(\s+|^)default(\s+|$)/;function Wo(t){this.$$options=t}Wo.prototype={getOption:function(t){return this.$$options[t]},createChild:function(t){var e=!1;return O(t=j({},t),(function(n,r){"$inherit"===n?"*"===r?e=!0:(t[r]=this.$$options[r],"updateOn"===r&&(t.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(t.updateOnDefault=!1,t[r]=Q(n.replace(zo,(function(){return t.updateOnDefault=!0," "}))))}),this),e&&(delete t["*"],Ko(t,this.$$options)),Ko(t,Fo.$$options),new Wo(t)}},Fo=new Wo({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var Go=function(){function t(t,e){this.$$attrs=t,this.$$scope=e}return t.$inject=["$attrs","$scope"],t.prototype={$onInit:function(){var t=this.parentCtrl?this.parentCtrl.$options:Fo,e=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:t}};function Ko(t,e){O(e,(function(e,n){N(t[n])||(t[n]=e)}))}var Yo=Ii({terminal:!0,priority:1e3}),Jo=i("ngOptions"),Zo=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,Xo=["$compile","$document","$parse",function(e,n,r){var i=t.document.createElement("option"),o=t.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=P},post:function(t,s,u,c){for(var l=c[0],f=c[1],h=u.multiple,p=0,d=s.children(),v=d.length;p<v;p++)if(""===d[p].value){l.hasEmptyOption=!0,l.emptyOption=d.eq(p);break}s.empty();var m,g=!!l.emptyOption;a(i.cloneNode(!1)).val("?");var $=function(t,e,n){var i=t.match(Zo);if(!i)throw Jo("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,bt(e));var o=i[5]||i[7],a=i[6],s=/ as /.test(i[0])&&i[1],u=i[9],c=r(i[2]?i[1]:o),l=s&&r(s)||c,f=u&&r(u),h=u?function(t,e){return f(n,e)}:function(t){return Ve(t)},p=function(t,e){return h(t,y(t,e))},d=r(i[2]||i[1]),v=r(i[3]||""),m=r(i[4]||""),g=r(i[8]),$={},y=a?function(t,e){return $[a]=e,$[o]=t,$}:function(t){return $[o]=t,$};function b(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function O(t){var e;if(!a&&w(t))e=t;else for(var n in e=[],t)t.hasOwnProperty(n)&&"$"!==n.charAt(0)&&e.push(n);return e}return{trackBy:u,getTrackByValue:p,getWatchables:r(g,(function(t){for(var e=[],r=O(t=t||[]),o=r.length,a=0;a<o;a++){var s=t===r?a:r[a],u=t[s],c=y(u,s),l=h(u,c);if(e.push(l),i[2]||i[1]){var f=d(n,c);e.push(f)}if(i[4]){var p=m(n,c);e.push(p)}}return e})),getOptions:function(){for(var t=[],e={},r=g(n)||[],i=O(r),o=i.length,a=0;a<o;a++){var s=r===i?a:i[a],c=r[s],f=y(c,s),$=l(n,f),w=h($,f),x=new b(w,$,d(n,f),v(n,f),m(n,f));t.push(x),e[w]=x}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[p(t)]},getViewValueFromOption:function(t){return u?ot(t.viewValue):t.viewValue}}}}}(u.ngOptions,s,t),y=n[0].createDocumentFragment();function b(t,e){var n=i.cloneNode(!1);e.appendChild(n),function(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label),e.value=t.selectValue}(t,n)}function x(t){var e=m.getOptionFromViewValue(t),n=e&&e.element;return n&&!n.selected&&(n.selected=!0),e}l.generateUnknownOptionValue=function(t){return"?"},h?(l.writeValue=function(t){if(m){var e=t&&t.map(x)||[];m.items.forEach((function(t){t.element.selected&&!rt(e,t)&&(t.element.selected=!1)}))}},l.readValue=function(){var t=s.val()||[],e=[];return O(t,(function(t){var n=m.selectValueMap[t];n&&!n.disabled&&e.push(m.getViewValueFromOption(n))})),e},$.trackBy&&t.$watchCollection((function(){if(B(f.$viewValue))return f.$viewValue.map((function(t){return $.getTrackByValue(t)}))}),(function(){f.$render()}))):(l.writeValue=function(t){if(m){var e=s[0].options[s[0].selectedIndex],n=m.getOptionFromViewValue(t);e&&e.removeAttribute("selected"),n?(s[0].value!==n.selectValue&&(l.removeUnknownOption(),s[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):l.selectUnknownOrEmptyOption(t)}},l.readValue=function(){var t=m.selectValueMap[s.val()];return t&&!t.disabled?(l.unselectEmptyOption(),l.removeUnknownOption(),m.getViewValueFromOption(t)):null},$.trackBy&&t.$watch((function(){return $.getTrackByValue(f.$viewValue)}),(function(){f.$render()}))),g&&(e(l.emptyOption)(t),s.prepend(l.emptyOption),8===l.emptyOption[0].nodeType?(l.hasEmptyOption=!1,l.registerOption=function(t,e){""===e.val()&&(l.hasEmptyOption=!0,l.emptyOption=e,l.emptyOption.removeClass("ng-scope"),f.$render(),e.on("$destroy",(function(){var t=l.$isEmptyOptionSelected();l.hasEmptyOption=!1,l.emptyOption=void 0,t&&f.$render()})))}):l.emptyOption.removeClass("ng-scope")),t.$watchCollection($.getWatchables,(function(){var t=m&&l.readValue();if(m)for(var e=m.items.length-1;e>=0;e--){var n=m.items[e];N(n.group)?Ee(n.element.parentNode):Ee(n.element)}m=$.getOptions();var r={};if(m.items.forEach((function(t){var e;N(t.group)?((e=r[t.group])||(e=o.cloneNode(!1),y.appendChild(e),e.label=null===t.group?"null":t.group,r[t.group]=e),b(t,e)):b(t,y)})),s[0].appendChild(y),f.$render(),!f.$isEmpty(t)){var i=l.readValue();($.trackBy||h?st(t,i):t===i)||(f.$setViewValue(i),f.$render())}}))}}}}],Qo=["$locale","$interpolate","$log",function(t,e,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(o,a,s){var u,c=s.count,l=s.$attr.when&&a.attr(s.$attr.when),h=s.offset||0,p=o.$eval(l)||{},d={},v=e.startSymbol(),m=e.endSymbol(),g=v+c+"-"+h+m,$=y.noop;function b(t){a.text(t||"")}O(s,(function(t,e){var n=i.exec(e);if(n){var r=(n[1]?"-":"")+f(n[2]);p[r]=a.attr(s.$attr[e])}})),O(p,(function(t,n){d[n]=e(t.replace(r,g))})),o.$watch(c,(function(e){var r=parseFloat(e),i=T(r);if(i||r in p||(r=t.pluralCat(r-h)),!(r===u||i&&T(u))){$();var a=d[r];V(a)?(null!=e&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+l),$=P,b()):$=o.$watch(a,b),u=r}}))}}}],ta=i("ngRef"),ea=["$parse",function(t){return{priority:-1,restrict:"A",compile:function(e,n){var r=$n(nt(e)),i=t(n.ngRef),o=i.assign||function(){throw ta("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return function(t,e,a){var s;if(a.hasOwnProperty("ngRefRead")){if("$element"===a.ngRefRead)s=e;else if(!(s=e.data("$"+a.ngRefRead+"Controller")))throw ta("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',a.ngRefRead,n.ngRef)}else s=e.data("$"+r+"Controller");o(t,s=s||e),e.on("$destroy",(function(){i(t)===s&&o(t,null)}))}}}}],na=["$parse","$animate","$compile",function(t,e,n){var r=i("ngRepeat"),o=function(t,e,n,r,i,o,a){t[n]=r,i&&(t[i]=o),t.$index=e,t.$first=0===e,t.$last=e===a-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0==(1&e))},a=function(t){return t.clone[0]},s=function(t){return t.clone[t.clone.length-1]},u=function(t,e,n){return Ve(n)},c=function(t,e){return e};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(i,f){var h=f.ngRepeat,p=n.$$createComment("end ngRepeat",h),d=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!d)throw r("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",h);var v=d[1],m=d[2],g=d[3],$=d[4];if(!(d=v.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw r("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",v);var y,b=d[3]||d[1],x=d[2];if(g&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(g)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(g)))throw r("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",g);if($){var C={$id:Ve},S=t($);y=function(t,e,n,r){return x&&(C[x]=e),C[b]=n,C.$index=r,S(t,C)}}return function(t,n,i,f,d){var v=Nt();t.$watchCollection(m,(function(i){var f,m,$,S,_,E,j,A,k,T,R,P,D=n[0],I=Nt();if(g&&(t[g]=i),w(i))k=i,A=y||u;else for(var M in A=y||c,k=[],i)l.call(i,M)&&"$"!==M.charAt(0)&&k.push(M);for(S=k.length,R=new Array(S),f=0;f<S;f++)if(_=i===k?f:k[f],E=i[_],j=A(t,_,E,f),v[j])T=v[j],delete v[j],I[j]=T,R[f]=T;else{if(I[j])throw O(R,(function(t){t&&t.scope&&(v[t.id]=t)})),r("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",h,j,E);R[f]={id:j,scope:void 0,clone:void 0},I[j]=!0}for(var V in C&&(C[b]=void 0),v){if(P=Vt((T=v[V]).clone),e.leave(P),P[0].parentNode)for(f=0,m=P.length;f<m;f++)P[f].$$NG_REMOVED=!0;T.scope.$destroy()}for(f=0;f<S;f++)if(_=i===k?f:k[f],E=i[_],(T=R[f]).scope){$=D;do{$=$.nextSibling}while($&&$.$$NG_REMOVED);a(T)!==$&&e.move(Vt(T.clone),null,D),D=s(T),o(T.scope,f,b,E,x,_,S)}else d((function(t,n){T.scope=n;var r=p.cloneNode(!1);t[t.length++]=r,e.enter(t,null,D),D=r,T.clone=t,I[T.id]=T,o(T.scope,f,b,E,x,_,S)}));v=I}))}}}}],ra=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngShow,(function(e){t[e?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})}))}}}],ia=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngHide,(function(e){t[e?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})}))}}}],oa=Ii((function(t,e,n){t.$watchCollection(n.ngStyle,(function(t,n){n&&t!==n&&O(n,(function(t,n){e.css(n,"")})),t&&e.css(t)}))})),aa=["$animate","$compile",function(t,e){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,o){var a=i.ngSwitch||i.on,s=[],u=[],c=[],l=[],f=function(t,e){return function(n){!1!==n&&t.splice(e,1)}};n.$watch(a,(function(n){for(var r,i;c.length;)t.cancel(c.pop());for(r=0,i=l.length;r<i;++r){var a=Vt(u[r].clone);l[r].$destroy(),(c[r]=t.leave(a)).done(f(c,r))}u.length=0,l.length=0,(s=o.cases["!"+n]||o.cases["?"])&&O(s,(function(n){n.transclude((function(r,i){l.push(i);var o=n.element;r[r.length++]=e.$$createComment("end ngSwitchWhen");var a={clone:r};u.push(a),t.enter(r,o.parent(),o)}))}))}))}}}],sa=Ii({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){O(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter((function(t,e,n){return n[e-1]!==t})),(function(t){r.cases["!"+t]=r.cases["!"+t]||[],r.cases["!"+t].push({transclude:i,element:e})}))}}),ua=Ii({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}),ca=i("ngTransclude"),la=["$compile",function(t){return{restrict:"EAC",compile:function(e){var n=t(e.contents());return e.empty(),function(t,e,r,i,o){if(!o)throw ca("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",bt(e));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var a=r.ngTransclude||r.ngTranscludeSlot;function s(){n(t,(function(t){e.append(t)}))}o((function(t,n){t.length&&function(t){for(var e=0,n=t.length;e<n;e++){var r=t[e];if(r.nodeType!==Lt||r.nodeValue.trim())return!0}}(t)?e.append(t):(s(),n.$destroy())}),null,a),a&&!o.isSlotFilled(a)&&s()}}}}],fa=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){if("text/ng-template"===n.type){var r=n.id,i=e[0].text;t.put(r,i)}}}}],ha={$setViewValue:P,$render:P};function pa(t,e){t.prop("selected",e),t.attr("selected",e)}var da=["$element","$scope",function(e,n){var r=this,i=new Le;r.selectValueMap={},r.ngModelCtrl=ha,r.multiple=!1,r.unknownOption=a(t.document.createElement("option")),r.hasEmptyOption=!1,r.emptyOption=void 0,r.renderUnknownOption=function(t){var n=r.generateUnknownOptionValue(t);r.unknownOption.val(n),e.prepend(r.unknownOption),pa(r.unknownOption,!0),e.val(n)},r.updateUnknownOption=function(t){var n=r.generateUnknownOptionValue(t);r.unknownOption.val(n),pa(r.unknownOption,!0),e.val(n)},r.generateUnknownOptionValue=function(t){return"? "+Ve(t)+" ?"},r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.selectEmptyOption=function(){r.emptyOption&&(e.val(""),pa(r.emptyOption,!0))},r.unselectEmptyOption=function(){r.hasEmptyOption&&pa(r.emptyOption,!1)},n.$on("$destroy",(function(){r.renderUnknownOption=P})),r.readValue=function(){var t=e.val(),n=t in r.selectValueMap?r.selectValueMap[t]:t;return r.hasOption(n)?n:null},r.writeValue=function(t){var n=e[0].options[e[0].selectedIndex];if(n&&pa(a(n),!1),r.hasOption(t)){r.removeUnknownOption();var i=Ve(t);e.val(i in r.selectValueMap?i:t);var o=e[0].options[e[0].selectedIndex];pa(a(o),!0)}else r.selectUnknownOrEmptyOption(t)},r.addOption=function(t,e){if(8!==e[0].nodeType){Mt(t,'"option value"'),""===t&&(r.hasEmptyOption=!0,r.emptyOption=e);var n=i.get(t)||0;i.set(t,n+1),s()}},r.removeOption=function(t){var e=i.get(t);e&&(1===e?(i.delete(t),""===t&&(r.hasEmptyOption=!1,r.emptyOption=void 0)):i.set(t,e-1))},r.hasOption=function(t){return!!i.get(t)},r.$hasEmptyOption=function(){return r.hasEmptyOption},r.$isUnknownOptionSelected=function(){return e[0].options[0]===r.unknownOption[0]},r.$isEmptyOptionSelected=function(){return r.hasEmptyOption&&e[0].options[e[0].selectedIndex]===r.emptyOption[0]},r.selectUnknownOrEmptyOption=function(t){null==t&&r.emptyOption?(r.removeUnknownOption(),r.selectEmptyOption()):r.unknownOption.parent().length?r.updateUnknownOption(t):r.renderUnknownOption(t)};var o=!1;function s(){o||(o=!0,n.$$postDigest((function(){o=!1,r.ngModelCtrl.$render()})))}var u=!1;function c(t){u||(u=!0,n.$$postDigest((function(){n.$$destroyed||(u=!1,r.ngModelCtrl.$setViewValue(r.readValue()),t&&r.ngModelCtrl.$render())})))}r.registerOption=function(t,e,n,i,o){var a,u;n.$attr.ngValue?n.$observe("value",(function(t){var n,i=e.prop("selected");N(u)&&(r.removeOption(a),delete r.selectValueMap[u],n=!0),u=Ve(t),a=t,r.selectValueMap[u]=t,r.addOption(t,e),e.attr("value",u),n&&i&&c()})):i?n.$observe("value",(function(t){var n;r.readValue();var i=e.prop("selected");N(a)&&(r.removeOption(a),n=!0),a=t,r.addOption(t,e),n&&i&&c()})):o?t.$watch(o,(function(t,i){n.$set("value",t);var o=e.prop("selected");i!==t&&r.removeOption(i),r.addOption(t,e),i&&o&&c()})):r.addOption(n.value,e),n.$observe("disabled",(function(t){("true"===t||t&&e.prop("selected"))&&(r.multiple?c(!0):(r.ngModelCtrl.$setViewValue(null),r.ngModelCtrl.$render()))})),e.on("$destroy",(function(){var t=r.readValue(),e=n.value;r.removeOption(e),s(),(r.multiple&&t&&-1!==t.indexOf(e)||t===e)&&c(!0)}))}}],va=function(){return{restrict:"E",require:["select","?ngModel"],controller:da,priority:1,link:{pre:function(t,e,n,r){var i=r[0],o=r[1];if(o){if(i.ngModelCtrl=o,e.on("change",(function(){i.removeUnknownOption(),t.$apply((function(){o.$setViewValue(i.readValue())}))})),n.multiple){i.multiple=!0,i.readValue=function(){var t=[];return O(e.find("option"),(function(e){if(e.selected&&!e.disabled){var n=e.value;t.push(n in i.selectValueMap?i.selectValueMap[n]:n)}})),t},i.writeValue=function(t){O(e.find("option"),(function(e){var n=!!t&&(rt(t,e.value)||rt(t,i.selectValueMap[e.value]));n!==e.selected&&pa(a(e),n)}))};var s,u=NaN;t.$watch((function(){u!==o.$viewValue||st(s,o.$viewValue)||(s=qt(o.$viewValue),o.$render()),u=o.$viewValue})),o.$isEmpty=function(t){return!t||0===t.length}}}else i.registerOption=P},post:function(t,e,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}}}},ma=["$interpolate",function(t){return{restrict:"E",priority:100,compile:function(e,n){var r,i;return N(n.ngValue)||(N(n.value)?r=t(n.value,!0):(i=t(e.text(),!0))||n.$set("value",e.text())),function(t,e,n){var o=e.parent(),a=o.data("$selectController")||o.parent().data("$selectController");a&&a.registerOption(t,e,n,r,i)}}}}],ga=["$parse",function(t){return{restrict:"A",require:"?ngModel",link:function(e,n,r,i){if(i){var o=r.hasOwnProperty("required")||t(r.ngRequired)(e);r.ngRequired||(r.required=!0),i.$validators.required=function(t,e){return!o||!i.$isEmpty(e)},r.$observe("required",(function(t){o!==t&&(o=t,i.$validate())}))}}}}],$a=["$parse",function(t){return{restrict:"A",require:"?ngModel",compile:function(e,n){var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&c.test(n.ngPattern)?function(){return n.ngPattern}:t(n.ngPattern)),function(t,e,n,o){if(o){var a=n.pattern;n.ngPattern?a=i(t):r=n.pattern;var s=wa(a,r,e);n.$observe("pattern",(function(t){var n=s;s=wa(t,r,e),(n&&n.toString())!==(s&&s.toString())&&o.$validate()})),o.$validators.pattern=function(t,e){return o.$isEmpty(e)||V(s)||s.test(e)}}}}}}],ya=["$parse",function(t){return{restrict:"A",require:"?ngModel",link:function(e,n,r,i){if(i){var o=r.maxlength||t(r.ngMaxlength)(e),a=Oa(o);r.$observe("maxlength",(function(t){o!==t&&(a=Oa(t),o=t,i.$validate())})),i.$validators.maxlength=function(t,e){return a<0||i.$isEmpty(e)||e.length<=a}}}}}],ba=["$parse",function(t){return{restrict:"A",require:"?ngModel",link:function(e,n,r,i){if(i){var o=r.minlength||t(r.ngMinlength)(e),a=Oa(o)||-1;r.$observe("minlength",(function(t){o!==t&&(a=Oa(t)||-1,o=t,i.$validate())})),i.$validators.minlength=function(t,e){return i.$isEmpty(e)||e.length>=a}}}}}];function wa(t,e,n){if(t){if(q(t)&&(t=new RegExp("^"+t+"$")),!t.test)throw i("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,t,bt(n));return t}}function Oa(t){var e=k(t);return T(e)?-1:e}t.angular.bootstrap?t.console&&console.log("WARNING: Tried to load AngularJS more than once."):(function(){var e;if(!Rt){var n=ct();(s=V(n)?t.jQuery:n?t[n]:void 0)&&s.fn.on?(a=s,j(s.fn,{scope:Ae.scope,isolateScope:Ae.isolateScope,controller:Ae.controller,injector:Ae.injector,inheritedData:Ae.inheritedData})):a=fe,e=a.cleanData,a.cleanData=function(t){for(var n,r,i=0;null!=(r=t[i]);i++)(n=(a._data(r)||{}).events)&&n.$destroy&&a(r).triggerHandler("$destroy");e(t)},y.element=a,Rt=!0}}(),function(e){j(e,{errorHandlingConfig:n,bootstrap:Et,copy:ot,extend:j,merge:A,equals:st,element:a,forEach:O,injector:Je,noop:P,bind:ht,toJson:dt,fromJson:vt,identity:D,isUndefined:V,isDefined:N,isString:q,isFunction:W,isObject:U,isNumber:H,isElement:et,isArray:B,version:Ft,isDate:F,callbacks:{$$counter:0},getTestability:At,reloadWithDebugInfo:jt,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:Pt,$$minErr:i,$$csp:ut,$$encodeUriSegment:xt,$$encodeUriQuery:Ct,$$lowercase:f,$$stringify:Ut,$$uppercase:h}),(u=function(t){var e=i("$injector"),n=i("ng");function r(t,e,n){return t[e]||(t[e]=n())}var o=r(t,"angular",Object);return o.$$minErr=o.$$minErr||i,r(o,"module",(function(){var t={};return function(i,o,a){var s={};return function(t,e){if("hasOwnProperty"===t)throw n("badname","hasOwnProperty is not a valid {0} name","module")}(i),o&&t.hasOwnProperty(i)&&(t[i]=null),r(t,i,(function(){if(!o)throw e("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",i);var t=[],r=[],u=[],c=f("$injector","invoke","push",r),l={_invokeQueue:t,_configBlocks:r,_runBlocks:u,info:function(t){if(N(t)){if(!U(t))throw n("aobj","Argument '{0}' must be an object","value");return s=t,this}return s},requires:o,name:i,provider:h("$provide","provider"),factory:h("$provide","factory"),service:h("$provide","service"),value:f("$provide","value"),constant:f("$provide","constant","unshift"),decorator:h("$provide","decorator",r),animation:h("$animateProvider","register"),filter:h("$filterProvider","register"),controller:h("$controllerProvider","register"),directive:h("$compileProvider","directive"),component:h("$compileProvider","component"),config:c,run:function(t){return u.push(t),this}};return a&&c(a),l;function f(e,n,r,i){return i||(i=t),function(){return i[r||"push"]([e,n,arguments]),l}}function h(e,n,r){return r||(r=t),function(t,o){return o&&W(o)&&(o.$$moduleName=i),r.push([e,n,arguments]),l}}}))}}))}(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:qr}),t.provider("$compile",dn).directive({a:Mi,input:vo,textarea:vo,form:qi,script:fa,select:va,option:ma,ngBind:yo,ngBindHtml:wo,ngBindTemplate:bo,ngClass:Co,ngClassEven:_o,ngClassOdd:So,ngCloak:Eo,ngController:jo,ngForm:Hi,ngHide:ia,ngIf:Ro,ngInclude:Po,ngInit:Io,ngNonBindable:Yo,ngPluralize:Qo,ngRef:ea,ngRepeat:na,ngShow:ra,ngStyle:oa,ngSwitch:aa,ngSwitchWhen:sa,ngSwitchDefault:ua,ngOptions:Xo,ngTransclude:la,ngModel:Bo,ngList:Mo,ngChange:Oo,pattern:$a,ngPattern:$a,required:ga,ngRequired:ga,minlength:ba,ngMinlength:ba,maxlength:ya,ngMaxlength:ya,ngValue:$o,ngModelOptions:Go}).directive({ngInclude:Do,input:mo}).directive(Vi).directive(Ao),t.provider({$anchorScroll:Ze,$animate:rn,$animateCss:sn,$$animateJs:en,$$animateQueue:nn,$$AnimateRunner:an,$$animateAsyncRun:on,$browser:cn,$cacheFactory:ln,$controller:Cn,$document:Sn,$$isDocumentHidden:En,$exceptionHandler:jn,$filter:hi,$$forceReflow:An,$interpolate:Gn,$interval:Yn,$$intervalFactory:Jn,$http:Fn,$httpParamSerializer:Mn,$httpParamSerializerJQLike:Vn,$httpBackend:zn,$xhrFactory:Bn,$jsonpCallbacks:Zn,$location:pr,$log:dr,$parse:Rr,$rootScope:Lr,$q:Pr,$$q:Dr,$sce:Kr,$sceDelegate:Gr,$sniffer:Yr,$$taskTrackerFactory:Jr,$templateCache:fn,$templateRequest:Qr,$$testability:ti,$timeout:ni,$window:ci,$$rAF:Ur,$$jqLite:Me,$$Map:qe,$$cookieReader:fi})}]).info({angularVersion:"1.8.2"})}(y),y.module("ngLocale",[],["$provide",function(t){t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(t,e){var n=0|t,r=function(t,e){var n=e;void 0===n&&(n=Math.min(function(t){var e=(t+="").indexOf(".");return-1==e?0:t.length-e-1}(t),3));var r=Math.pow(10,n);return{v:n,f:(t*r|0)%r}}(t,e);return 1==n&&0==r.v?"one":"other"}})}]),a((function(){!function(e,n){var r,i,o={};if(O(St,(function(t){var n=t+"app";!r&&e.hasAttribute&&e.hasAttribute(n)&&(r=e,i=e.getAttribute(n))})),O(St,(function(t){var n,o=t+"app";!r&&(n=e.querySelector("["+o.replace(":","\\:")+"]"))&&(r=n,i=n.getAttribute(o))})),r){if(!_t)return void t.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");o.strictDi=null!==function(t,e){var n,r,i=St.length;for(r=0;r<i;++r)if(n=St[r]+"strict-di",q(n=t.getAttribute(n)))return n;return null}(r),n(r,i?[i]:[],o)}}(t.document,Et)})))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend(window.angular.element("<style>").text('@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}'))},function(t,e,n){n(86),t.exports="ngAnimate"},function(t,e){!function(t,e){"use strict";var n,r,i,o;void 0===t.ontransitionend&&void 0!==t.onwebkittransitionend?(n="WebkitTransition",r="webkitTransitionEnd transitionend"):(n="transition",r="transitionend"),void 0===t.onanimationend&&void 0!==t.onwebkitanimationend?(i="WebkitAnimation",o="webkitAnimationEnd animationend"):(i="animation",o="animationend");var a=i+"Delay",s=i+"Duration",u=n+"Delay",c=n+"Duration",l=e.$$minErr("ng");function f(t,e,n){if(!t)throw l("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function h(t,e){return t||e?t?e?(N(t)&&(t=t.join(" ")),N(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function p(t,e,n){var r="";return t=N(t)?t:t&&F(t)&&t.length?t.split(/\s+/):[],V(t,(function(t,i){t&&t.length>0&&(r+=i>0?" ":"",r+=n?e+t:t+e)})),r}function d(t){if(t instanceof z)switch(t.length){case 0:return t;case 1:if(1===t[0].nodeType)return t;break;default:return z(v(t))}if(1===t.nodeType)return z(t)}function v(t){if(!t[0])return t;for(var e=0;e<t.length;e++){var n=t[e];if(1===n.nodeType)return n}}function m(t){return function(e,n){n.addClass&&(function(t,e,n){V(e,(function(e){t.addClass(e,n)}))}(t,e,n.addClass),n.addClass=null),n.removeClass&&(function(t,e,n){V(e,(function(e){t.removeClass(e,n)}))}(t,e,n.removeClass),n.removeClass=null)}}function g(t){if(!(t=t||{}).$$prepared){var e=t.domOperation||W;t.domOperation=function(){t.$$domOperationFired=!0,e(),e=W},t.$$prepared=!0}return t}function $(t,e){y(t,e),b(t,e)}function y(t,e){e.from&&(t.css(e.from),e.from=null)}function b(t,e){e.to&&(t.css(e.to),e.to=null)}function w(t,e,n){var r=e.options||{},i=n.options||{},o=(r.addClass||"")+" "+(i.addClass||""),a=(r.removeClass||"")+" "+(i.removeClass||""),s=function(t,e,n){var r={};t=o(t),e=o(e),V(e,(function(t,e){r[e]=1})),n=o(n),V(n,(function(t,e){r[e]=1===r[e]?null:-1}));var i={addClass:"",removeClass:""};function o(t){F(t)&&(t=t.split(" "));var e={};return V(t,(function(t){t.length&&(e[t]=!0)})),e}return V(r,(function(e,n){var r,o;1===e?(r="addClass",o=!t[n]||t[n+"-remove"]):-1===e&&(r="removeClass",o=t[n]||t[n+"-add"]),o&&(i[r].length&&(i[r]+=" "),i[r]+=n)})),i}(t.attr("class"),o,a);i.preparationClasses&&(r.preparationClasses=S(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);var u=r.domOperation!==W?r.domOperation:null;return M(r,i),u&&(r.domOperation=u),s.addClass?r.addClass=s.addClass:r.addClass=null,s.removeClass?r.removeClass=s.removeClass:r.removeClass=null,e.addClass=r.addClass,e.removeClass=r.removeClass,r}function O(t){return t instanceof z?t[0]:t}function x(t,e){var n=e?"paused":"",r=i+"PlayState";return C(t,[r,n]),[r,n]}function C(t,e){var n=e[0],r=e[1];t.style[n]=r}function S(t,e){return t?e?t+" "+e:t:e}var _=function(t,e){var n=e?"-"+e+"s":"";return C(t,[u,n]),[u,n]},E=["$interpolate",function(t){return{link:function(e,n,r){var i=r.ngAnimateChildren;function o(t){t="on"===t||"true"===t,n.data("$$ngAnimateChildren",t)}F(i)&&0===i.length?n.data("$$ngAnimateChildren",!0):(o(t(i)(e)),r.$observe("ngAnimateChildren",o))}}}],j={transitionDuration:c,transitionDelay:u,transitionProperty:n+"Property",animationDuration:s,animationDelay:a,animationIterationCount:i+"IterationCount"},A={transitionDuration:c,transitionDelay:u,animationDuration:s,animationDelay:a};function k(t,e){return[e?a:u,t+"s"]}function T(t,e,n){var r=Object.create(null),i=t.getComputedStyle(e)||{};return V(n,(function(t,e){var n,o,a=i[t];if(a){var s=a.charAt(0);("-"===s||"+"===s||s>=0)&&(n=0,o=a.split(/\s*,\s*/),V(o,(function(t){"s"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,n=n?Math.max(t,n):t})),a=n),0===a&&(a=null),r[e]=a}})),r}function R(t){return 0===t||null!=t}function P(t,e){var r=n,i=t+"s";return e?r+="Duration":i+=" linear all",[r,i]}function D(t,e,n){V(n,(function(n){t[n]=U(t[n])?t[n]:e.style.getPropertyValue(n)}))}var I,M,V,N,U,L,q,H,F,B,z,W,G=["$animateProvider",function(t){this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$animateCache","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(t,e,a,u,c,l,f,h,d){var v=m(e),w=[];function S(t){w.push(t),h.waitUntilQuiet((function(){c.flush();for(var t=l(),e=0;e<w.length;e++)w[e](t);w.length=0}))}function E(e,n,r,i){var o=function(e,n,r,i,o){var a=c.get(r);a||"infinite"===(a=T(t,e,o)).animationIterationCount&&(a.animationIterationCount=1);var s=i||a.transitionDuration>0||a.animationDuration>0;return c.put(r,a,s),a}(e,0,r,i,j),a=o.animationDelay,s=o.transitionDelay;return o.maxDelay=a&&s?Math.max(a,s):a||s,o.maxDuration=Math.max(o.animationDuration*o.animationIterationCount,o.transitionDuration),o}return function(l,h){var m=h||{};m.$$prepared||(m=g(I(m)));var w={},j=O(l);if(!j||!j.parentNode||!d.enabled())return Ot();var M,U,L,q,H,F,B,z,G,K,Y=[],J=(l.attr("class"),function(t){var e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}(m)),Z=[];if(0===m.duration||!f.animations&&!f.transitions)return Ot();var X=m.event&&N(m.event)?m.event.join(" "):m.event,Q=X&&m.structural,tt="",et="";Q?tt=p(X,"ng-",!0):X&&(tt=X),m.addClass&&(et+=p(m.addClass,"-add")),m.removeClass&&(et.length&&(et+=" "),et+=p(m.removeClass,"-remove")),m.applyClassesEarly&&et.length&&v(l,m);var nt=[tt,et].join(" ").trim(),rt=J.to&&Object.keys(J.to).length>0;if(!((m.keyframeStyle||"").length>0||rt||nt))return Ot();var it,ot,at=c.cacheKey(j,X,m.addClass,m.removeClass);if(c.containsCachedAnimationWithoutDuration(at))return nt=null,Ot();if(m.stagger>0){var st=parseFloat(m.stagger);it={transitionDelay:st,animationDelay:st,transitionDuration:0,animationDuration:0}}else it=function(n,r,i,o){var a,s="stagger-"+i;if(c.count(i)>0&&!(a=c.get(s))){var u=p(r,"-stagger");e.addClass(n,u),(a=T(t,n,o)).animationDuration=Math.max(a.animationDuration,0),a.transitionDuration=Math.max(a.transitionDuration,0),e.removeClass(n,u),c.put(s,a,!0)}return a||{}}(j,nt,at,A);if(m.$$skipPreparationClasses||e.addClass(l,nt),m.transitionStyle){var ut=[n,m.transitionStyle];C(j,ut),Y.push(ut)}if(m.duration>=0){ot=j.style[n].length>0;var ct=P(m.duration,ot);C(j,ct),Y.push(ct)}if(m.keyframeStyle){var lt=[i,m.keyframeStyle];C(j,lt),Y.push(lt)}var ft=it?m.staggerIndex>=0?m.staggerIndex:c.count(at):0,ht=0===ft;ht&&!m.skipBlocking&&_(j,9999);var pt=E(j,0,at,!Q),dt=pt.maxDelay;F=Math.max(dt,0),z=pt.maxDuration;var vt={};if(vt.hasTransitions=pt.transitionDuration>0,vt.hasAnimations=pt.animationDuration>0,vt.hasTransitionAll=vt.hasTransitions&&"all"===pt.transitionProperty,vt.applyTransitionDuration=rt&&(vt.hasTransitions&&!vt.hasTransitionAll||vt.hasAnimations&&!vt.hasTransitions),vt.applyAnimationDuration=m.duration&&vt.hasAnimations,vt.applyTransitionDelay=R(m.delay)&&(vt.applyTransitionDuration||vt.hasTransitions),vt.applyAnimationDelay=R(m.delay)&&vt.hasAnimations,vt.recalculateTimingStyles=et.length>0,(vt.applyTransitionDuration||vt.applyAnimationDuration)&&(z=m.duration?parseFloat(m.duration):z,vt.applyTransitionDuration&&(vt.hasTransitions=!0,pt.transitionDuration=z,ot=j.style[n+"Property"].length>0,Y.push(P(z,ot))),vt.applyAnimationDuration&&(vt.hasAnimations=!0,pt.animationDuration=z,Y.push([s,z+"s"]))),0===z&&!vt.recalculateTimingStyles)return Ot();var mt,gt=p(nt,"-active");return null!=m.delay&&("boolean"!=typeof m.delay&&(mt=parseFloat(m.delay),F=Math.max(mt,0)),vt.applyTransitionDelay&&Y.push(k(mt)),vt.applyAnimationDelay&&Y.push(k(mt,!0))),null==m.duration&&pt.transitionDuration>0&&(vt.recalculateTimingStyles=vt.recalculateTimingStyles||ht),B=1e3*F,G=1e3*z,m.skipBlocking||(vt.blockTransition=pt.transitionDuration>0,vt.blockKeyframeAnimation=pt.animationDuration>0&&it.animationDelay>0&&0===it.animationDuration),m.from&&(m.cleanupStyles&&D(w,j,Object.keys(m.from)),y(l,m)),vt.blockTransition||vt.blockKeyframeAnimation?wt(z):m.skipBlocking||_(j,!1),{$$willAnimate:!0,end:$t,start:function(){if(!M)return q=new a(H={end:$t,cancel:yt,resume:null,pause:null}),S(Ct),q}};function $t(){bt()}function yt(){bt(!0)}function bt(t){if(!(M||L&&U)){M=!0,U=!1,nt&&!m.$$skipPreparationClasses&&e.removeClass(l,nt),gt&&e.removeClass(l,gt),x(j,!1),_(j,!1),V(Y,(function(t){j.style[t[0]]=""})),v(l,m),$(l,m),Object.keys(w).length&&V(w,(function(t,e){t?j.style.setProperty(e,t):j.style.removeProperty(e)})),m.onDone&&m.onDone(),Z&&Z.length&&l.off(Z.join(" "),xt);var n=l.data("$$animateCss");n&&(u.cancel(n[0].timer),l.removeData("$$animateCss")),q&&q.complete(!t)}}function wt(t){vt.blockTransition&&_(j,t),vt.blockKeyframeAnimation&&x(j,!!t)}function Ot(){return q=new a({end:$t,cancel:yt}),S(W),bt(),{$$willAnimate:!1,start:function(){return q},end:$t}}function xt(t){t.stopPropagation();var e=t.originalEvent||t;if(e.target===j){var n=e.$manualTimeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(3));Math.max(n-K,0)>=B&&r>=z&&(L=!0,bt())}}function Ct(){if(!M)if(j.parentNode){var t=function(t){if(L)U&&t&&(U=!1,bt());else if(U=!t,pt.animationDuration){var e=x(j,U);U?Y.push(e):(r=e,i=(n=Y).indexOf(r),r>=0&&n.splice(i,1))}var n,r,i},a=ft>0&&(pt.transitionDuration&&0===it.transitionDuration||pt.animationDuration&&0===it.animationDuration)&&Math.max(it.animationDelay,it.transitionDelay);a?u(s,Math.floor(a*ft*1e3),!1):s(),H.resume=function(){t(!0)},H.pause=function(){t(!1)}}else bt();function s(){if(!M){if(wt(!1),V(Y,(function(t){var e=t[0],n=t[1];j.style[e]=n})),v(l,m),e.addClass(l,gt),vt.recalculateTimingStyles){if(j.getAttribute("class"),at=c.cacheKey(j,X,m.addClass,m.removeClass),pt=E(j,0,at,!1),dt=pt.maxDelay,F=Math.max(dt,0),0===(z=pt.maxDuration))return void bt();vt.hasTransitions=pt.transitionDuration>0,vt.hasAnimations=pt.animationDuration>0}if(vt.applyAnimationDelay&&(dt="boolean"!=typeof m.delay&&R(m.delay)?parseFloat(m.delay):dt,F=Math.max(dt,0),pt.animationDelay=dt,mt=k(dt,!0),Y.push(mt),j.style[mt[0]]=mt[1]),B=1e3*F,G=1e3*z,m.easing){var t,a=m.easing;vt.hasTransitions&&(t=n+"TimingFunction",Y.push([t,a]),j.style[t]=a),vt.hasAnimations&&(t=i+"TimingFunction",Y.push([t,a]),j.style[t]=a)}pt.transitionDuration&&Z.push(r),pt.animationDuration&&Z.push(o),K=Date.now();var s=B+1.5*G,h=K+s,p=l.data("$$animateCss")||[],d=!0;if(p.length){var g=p[0];(d=h>g.expectedEndTime)?u.cancel(g.timer):p.push(bt)}if(d){var $=u(f,s,!1);p[0]={timer:$,expectedEndTime:h},p.push(bt),l.data("$$animateCss",p)}Z.length&&l.on(Z.join(" "),xt),m.to&&(m.cleanupStyles&&D(w,j,Object.keys(m.to)),b(l,m))}}function f(){var t=l.data("$$animateCss");if(t){for(var e=1;e<t.length;e++)t[e]();l.removeData("$$animateCss")}}}}}]}],K=["$$animationProvider",function(t){t.drivers.push("$$animateCssDriver"),this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(t,e,n,r,i,o,a){if(!i.animations&&!i.transitions)return W;var s,u=a[0].body,c=O(r),l=z((s=c).parentNode&&11===s.parentNode.nodeType||u.contains(c)?c:u);return function(e){return e.from&&e.to?function(e,r,i,o){var a=p(e),s=p(r),c=[];if(V(o,(function(e){var r=function(e,r,i){var o=z(O(r).cloneNode(!0)),a=f(v(o));r.addClass("ng-animate-shim"),i.addClass("ng-animate-shim"),o.addClass("ng-anchor"),l.append(o);var s,c=function(){var e=t(o,{addClass:"ng-anchor-out",delay:!0,from:d(r)});return e.$$willAnimate?e:null}();if(!c&&!(s=m()))return g();var p=c||s;return{start:function(){var t,e=p.start();return e.done((function(){if(e=null,!s&&(s=m()))return(e=s.start()).done((function(){e=null,g(),t.complete()})),e;g(),t.complete()})),t=new n({end:r,cancel:r});function r(){e&&e.end()}}};function d(t){var e={},n=O(t).getBoundingClientRect();return V(["width","height","top","left"],(function(t){var r=n[t];switch(t){case"top":r+=u.scrollTop;break;case"left":r+=u.scrollLeft}e[t]=Math.floor(r)+"px"})),e}function v(t){return t.attr("class")||""}function m(){var e=f(v(i)),n=h(e,a),r=h(a,e),s=t(o,{to:d(i),addClass:"ng-anchor-in "+n,removeClass:"ng-anchor-out "+r,delay:!0});return s.$$willAnimate?s:null}function g(){o.remove(),r.removeClass("ng-animate-shim"),i.removeClass("ng-animate-shim")}}(0,e.out,e.in);r&&c.push(r)})),a||s||0!==c.length)return{start:function(){var t=[];a&&t.push(a.start()),s&&t.push(s.start()),V(c,(function(e){t.push(e.start())}));var e=new n({end:r,cancel:r});return n.all(t,(function(t){e.complete(t)})),e;function r(){V(t,(function(t){t.end()}))}}}}(e.from,e.to,e.classes,e.anchors):p(e)};function f(t){return t.replace(/\bng-\S+\b/g,"")}function h(t,e){return F(t)&&(t=t.split(" ")),F(e)&&(e=e.split(" ")),t.filter((function(t){return-1===e.indexOf(t)})).join(" ")}function p(e){var n=e.element,r=e.options||{};e.structural&&(r.event=e.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===e.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=S(r.event,r.preparationClasses));var i=t(n,r);return i.$$willAnimate?i:null}}]}],Y=["$animateProvider",function(t){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(e,n,r){var i=m(r);return function(t,e,r,a){var s=!1;3===arguments.length&&H(r)&&(a=r,r=null),a=g(a),r||(r=t.attr("class")||"",a.addClass&&(r+=" "+a.addClass),a.removeClass&&(r+=" "+a.removeClass));var u,c,l,f,h,p=a.addClass,d=a.removeClass,v=o(r);if(v.length&&("leave"===e?(f="leave",l="afterLeave"):(f="before"+e.charAt(0).toUpperCase()+e.substr(1),l=e),"enter"!==e&&"move"!==e&&(u=O(t,e,a,v,f)),c=O(t,e,a,v,l)),u||c)return{$$willAnimate:!0,end:function(){return h?h.end():(y(),(h=new n).complete(!0)),h},start:function(){if(h)return h;var t;h=new n;var e=[];return u&&e.push((function(e){t=u(e)})),e.length?e.push((function(t){m(),t(!0)})):m(),c&&e.push((function(e){t=c(e)})),h.setHost({end:function(){i()},cancel:function(){i(!0)}}),n.chain(e,r),h;function r(t){y(),h.complete(t)}function i(e){s||((t||W)(e),r(e))}}};function m(){a.domOperation(),i(t,a)}function y(){s=!0,m(),$(t,a)}function b(t,e,r,i,o){var a;switch(r){case"animate":a=[e,i.from,i.to,o];break;case"setClass":a=[e,p,d,o];break;case"addClass":a=[e,p,o];break;case"removeClass":a=[e,d,o];break;default:a=[e,o]}a.push(i);var s=t.apply(t,a);if(s)if(q(s.start)&&(s=s.start()),s instanceof n)s.done(o);else if(q(s))return s;return W}function w(t,e,r,i,o){var a=[];return V(i,(function(i){var s=i[o];s&&a.push((function(){var i,o,a=!1,u=function(t){a||(a=!0,(o||W)(t),i.complete(!t))};return i=new n({end:function(){u()},cancel:function(){u(!0)}}),o=b(s,t,e,r,(function(t){u(!1===t)})),i}))})),a}function O(t,e,r,i,o){var a,s,u=w(t,e,r,i,o);if(0===u.length&&("beforeSetClass"===o?(a=w(t,"removeClass",r,i,"beforeRemoveClass"),s=w(t,"addClass",r,i,"beforeAddClass")):"setClass"===o&&(a=w(t,"removeClass",r,i,"removeClass"),s=w(t,"addClass",r,i,"addClass")),a&&(u=u.concat(a)),s&&(u=u.concat(s))),0!==u.length)return function(t){var e=[];return u.length&&V(u,(function(t){e.push(t())})),e.length?n.all(e,t):t(),function(t){V(e,(function(e){t?e.cancel():e.end()}))}}}};function o(n){n=N(n)?n:n.split(" ");for(var r=[],i={},o=0;o<n.length;o++){var a=n[o],s=t.$$registeredAnimations[a];s&&!i[a]&&(r.push(e.get(s)),i[a]=!0)}return r}}]}],J=["$$animationProvider",function(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(t,e){return function(t){if(t.from&&t.to){var r=n(t.from),i=n(t.to);if(!r&&!i)return;return{start:function(){var t=[];r&&t.push(r.start()),i&&t.push(i.start()),e.all(t,(function(t){n.complete(t)}));var n=new e({end:o(),cancel:o()});return n;function o(){return function(){V(t,(function(t){t.end()}))}}}}}return n(t)};function n(e){var n=e.element,r=e.event,i=e.options,o=e.classes;return t(n,r,o,i)}}]}],Z=["$animateProvider",function(e){var n=this.rules={skip:[],cancel:[],join:[]};function r(t){return{addClass:t.addClass,removeClass:t.removeClass,from:t.from,to:t.to}}function i(t,e){if(t&&e){var n=function(t){if(!t)return null;var e=t.split(" "),n=Object.create(null);return V(e,(function(t){n[t]=!0})),n}(e);return t.split(" ").some((function(t){return n[t]}))}}function o(t,e,r){return n[t].some((function(t){return t(e,r)}))}function a(t,e){var n=(t.addClass||"").length>0,r=(t.removeClass||"").length>0;return e?n&&r:n||r}n.join.push((function(t,e){return!t.structural&&a(t)})),n.skip.push((function(t,e){return!t.structural&&!a(t)})),n.skip.push((function(t,e){return"leave"===e.event&&t.structural})),n.skip.push((function(t,e){return e.structural&&2===e.state&&!t.structural})),n.cancel.push((function(t,e){return e.structural&&t.structural})),n.cancel.push((function(t,e){return 2===e.state&&t.structural})),n.cancel.push((function(t,e){if(e.structural)return!1;var n=t.addClass,r=t.removeClass,o=e.addClass,a=e.removeClass;return!(B(n)&&B(r)||B(o)&&B(a))&&(i(n,a)||i(r,o))})),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(n,i,s,u,c,l,h,y,b,x,C){var _=new c,E=new c,j=null;function A(t){E.delete(t.target)}var k=i.$watch((function(){return 0===y.totalPendingRequests}),(function(t){t&&(k(),i.$$postDigest((function(){i.$$postDigest((function(){null===j&&(j=!0)}))})))})),T=Object.create(null),R=e.customFilter(),P=e.classNameFilter(),D=function(){return!0},q=R||D,W=P?function(t,e){var n=[t.getAttribute("class"),e.addClass,e.removeClass].join(" ");return P.test(n)}:D,G=m(b);function K(t,e){return w(t,e,{})}var Y=t.Node.prototype.contains||function(t){return this===t||!!(16&this.compareDocumentPosition(t))};function J(t,e,n){var r=v(e);return t.filter((function(t){return!(t.node===r&&(!n||t.callback===n))}))}function Z(t,e){"close"!==t||e.parentNode||X.off(e)}var X={on:function(t,e,n){var r=v(e);T[t]=T[t]||[],T[t].push({node:r,callback:n}),z(e).on("$destroy",(function(){_.get(r)||X.off(t,e,n)}))},off:function(t,e,n){if(1!==arguments.length||F(arguments[0])){var r=T[t];r&&(T[t]=1===arguments.length?null:J(r,e,n))}else for(var i in e=arguments[0],T)T[i]=J(T[i],e)},pin:function(t,e){f(L(t),"element","not an element"),f(L(e),"parentElement","not an element"),t.data("$ngAnimatePin",e)},push:function(t,e,c,f){return(c=c||{}).domOperation=f,function(t,e,c){var f=I(c),v=d(t),m=O(v),y=m&&m.parentNode;f=g(f);var b,x=new h,A=(b=!1,function(t){b?t():i.$$postDigest((function(){b=!0,t()}))});if(N(f.addClass)&&(f.addClass=f.addClass.join(" ")),f.addClass&&!F(f.addClass)&&(f.addClass=null),N(f.removeClass)&&(f.removeClass=f.removeClass.join(" ")),f.removeClass&&!F(f.removeClass)&&(f.removeClass=null),f.from&&!H(f.from)&&(f.from=null),f.to&&!H(f.to)&&(f.to=null),!(j&&m&&q(m,e,c)&&W(m,f)))return nt(),x;var k=["enter","move","leave"].indexOf(e)>=0,R=C(),P=R||E.get(m),D=!P&&_.get(m)||{},M=!!D.state;if(P||M&&1===D.state||(P=!function(t,e,n){var r,i=u[0].body,o=O(s),a=t===i||"HTML"===t.nodeName,c=t===o,l=!1,f=E.get(t),h=z.data(t,"$ngAnimatePin");for(h&&(e=O(h));e&&(c||(c=e===o),1===e.nodeType);){var p=_.get(e)||{};if(!l){var d=E.get(e);if(!0===d&&!1!==f){f=!0;break}!1===d&&(f=!1),l=p.structural}if(B(r)||!0===r){var v=z.data(e,"$$ngAnimateChildren");U(v)&&(r=v)}if(l&&!1===r)break;if(a||(a=e===i),a&&c)break;e=c||!(h=z.data(e,"$ngAnimatePin"))?e.parentNode:O(h)}return(!l||r)&&!0!==f&&c&&a}(m,y)),P)return R&&et(x,e,"start",r(f)),nt(),R&&et(x,e,"close",r(f)),x;k&&function(t){var e=t.querySelectorAll("[data-ng-animate]");V(e,(function(t){var e=parseInt(t.getAttribute("data-ng-animate"),10),n=_.get(t);if(n)switch(e){case 2:n.runner.end();case 1:_.delete(t)}}))}(m);var L={structural:k,element:v,event:e,addClass:f.addClass,removeClass:f.removeClass,close:nt,options:f,runner:x};if(M){if(o("skip",L,D))return 2===D.state?(nt(),x):(w(v,D,L),D.runner);if(o("cancel",L,D))if(2===D.state)D.runner.end();else{if(!D.structural)return w(v,D,L),D.runner;D.close()}else if(o("join",L,D)){if(2!==D.state)return function(t,e,n,r){var i="";n&&(i=p(n,"ng-",!0)),r.addClass&&(i=S(i,p(r.addClass,"-add"))),r.removeClass&&(i=S(i,p(r.removeClass,"-remove"))),i.length&&(r.preparationClasses=i,e.addClass(i))}(0,v,k?e:null,f),e=L.event=D.event,f=w(v,D,L),D.runner;K(v,L)}}else K(v,L);var J=L.structural;if(J||(J="animate"===L.event&&Object.keys(L.options.to||{}).length>0||a(L)),!J)return nt(),Q(m),x;var X=(D.counter||0)+1;return L.counter=X,tt(m,1,L),i.$$postDigest((function(){v=d(t);var n=_.get(m),i=!n;n=n||{};var o=(v.parent()||[]).length>0&&("animate"===n.event||n.structural||a(n));if(i||n.counter!==X||!o)return i&&(G(v,f),$(v,f)),(i||k&&n.event!==e)&&(f.domOperation(),x.end()),void(o||Q(m));e=!n.structural&&a(n,!0)?"setClass":n.event,tt(m,2);var s=l(v,e,n.options);x.setHost(s),et(x,e,"start",r(f)),s.done((function(t){nt(!t);var n=_.get(m);n&&n.counter===X&&Q(m),et(x,e,"close",r(f))}))})),x;function et(t,e,r,i){A((function(){var t=function(t,e,n){var r=[],i=T[n];return i&&V(i,(function(i){(Y.call(i.node,e)||"leave"===n&&Y.call(i.node,t))&&r.push(i.callback)})),r}(y,m,e);t.length?n((function(){V(t,(function(t){t(v,r,i)})),Z(r,m)})):Z(r,m)})),t.progress(e,r,i)}function nt(t){!function(t,e){e.preparationClasses&&(t.removeClass(e.preparationClasses),e.preparationClasses=null),e.activeClasses&&(t.removeClass(e.activeClasses),e.activeClasses=null)}(v,f),G(v,f),$(v,f),f.domOperation(),x.complete(!t)}}(t,e,c)},enabled:function(t,e){var n=arguments.length;if(0===n)e=!!j;else{var r=L(t);if(r){var i=O(t);1===n?e=!E.get(i):(E.has(i)||z(t).on("$destroy",A),E.set(i,!e))}else e=j=!!t}return e}};return X;function Q(t){t.removeAttribute("data-ng-animate"),_.delete(t)}function tt(t,e,n){(n=n||{}).state=e,t.setAttribute("data-ng-animate",e);var r=_.get(t),i=r?M(r,n):n;_.set(t,i)}}]}],X=["$animateProvider",function(t){var e=this.drivers=[];function n(t){return t.data("$$animationRunner")}this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler","$$animateCache",function(t,r,i,o,a,s,u){var c=[],l=m(t);return function(f,p,d){d=g(d);var v=["enter","move","leave"].indexOf(p)>=0,m=new o({end:function(){C()},cancel:function(){C(!0)}});if(!e.length)return C(),m;var y=h(f.attr("class"),h(d.addClass,d.removeClass)),b=d.tempClasses;return b&&(y+=" "+b,d.tempClasses=null),v&&f.data("$$animatePrepareClasses","ng-"+p+"-prepare"),function(t,e){t.data("$$animationRunner",e)}(f,m),c.push({element:f,classes:y,event:p,structural:v,options:d,beforeStart:function(){b=(b?b+" ":"")+"ng-animate",t.addClass(f,b);var e=f.data("$$animatePrepareClasses");e&&(t.removeClass(f,e),e=null)},close:C}),f.on("$destroy",x),c.length>1||r.$$postDigest((function(){var r=[];V(c,(function(t){n(t.element)?r.push(t):t.close()})),c.length=0;var o=function(t){var e=[],n={};V(t,(function(t,r){var i=O(t.element),o=t.event,a=["enter","move"].indexOf(o)>=0,s=t.structural?function(t){var e=t.hasAttribute("ng-animate-ref")?[t]:t.querySelectorAll("[ng-animate-ref]"),n=[];return V(e,(function(t){var e=t.getAttribute("ng-animate-ref");e&&e.length&&n.push(t)})),n}(i):[];if(s.length){var u=a?"to":"from";V(s,(function(t){var e=t.getAttribute("ng-animate-ref");n[e]=n[e]||{},n[e][u]={animationID:r,element:z(t)}}))}else e.push(t)}));var r={},i={};return V(n,(function(n,o){var a=n.from,s=n.to;if(a&&s){var u=t[a.animationID],c=t[s.animationID],l=a.animationID.toString();if(!i[l]){var f=i[l]={structural:!0,beforeStart:function(){u.beforeStart(),c.beforeStart()},close:function(){u.close(),c.close()},classes:w(u.classes,c.classes),from:u,to:c,anchors:[]};f.classes.length?e.push(f):(e.push(u),e.push(c))}i[l].anchors.push({out:a.element,in:s.element})}else{var h=a?a.animationID:s.animationID,p=h.toString();r[p]||(r[p]=!0,e.push(t[h]))}})),e}(r),l=[];V(o,(function(t){var r=t.from?t.from.element:t.element,o=d.addClass;o=(o?o+" ":"")+"ng-animate";var a=u.cacheKey(r[0],t.event,o,d.removeClass);l.push({element:r,domNode:O(r),fn:function(){var r,o=t.close;if(u.containsCachedAnimationWithoutDuration(a))o();else{if(t.beforeStart(),n(t.anchors?t.from.element||t.to.element:t.element)){var s=function(t){for(var n=e.length-1;n>=0;n--){var r=e[n],o=i.get(r)(t);if(o)return o}}(t);s&&(r=s.start)}if(r){var c=r();c.done((function(t){o(!t)})),function(t,e){function r(t){var r=n(t);r&&r.setHost(e)}t.from&&t.to?(r(t.from.element),r(t.to.element)):r(t.element)}(t,c)}else o()}}})}));for(var f=function(t){var e,n={children:[]},r=new a;for(e=0;e<t.length;e++){var i=t[e];r.set(i.domNode,t[e]={domNode:i.domNode,element:i.element,fn:i.fn,children:[]})}for(e=0;e<t.length;e++)o(t[e]);return function(t){var e,n=[],r=[];for(e=0;e<t.children.length;e++)r.push(t.children[e]);var i=r.length,o=0,a=[];for(e=0;e<r.length;e++){var s=r[e];i<=0&&(i=o,o=0,n.push(a),a=[]),a.push(s),s.children.forEach((function(t){o++,r.push(t)})),i--}return a.length&&n.push(a),n}(n);function o(t){if(t.processed)return t;t.processed=!0;var e,i=t.domNode,a=i.parentNode;for(r.set(i,t);a;){if(e=r.get(a)){e.processed||(e=o(e));break}a=a.parentNode}return(e||n).children.push(t),t}}(l),h=0;h<f.length;h++)for(var p=f[h],v=0;v<p.length;v++){var m=p[v],g=m.element;if(f[h][v]=m.fn,0!==h){var $=g.data("$$animatePrepareClasses");$&&t.addClass(g,$)}else g.removeData("$$animatePrepareClasses")}s(f)})),m;function w(t,e){t=t.split(" "),e=e.split(" ");for(var n=[],r=0;r<t.length;r++){var i=t[r];if("ng-"!==i.substring(0,3))for(var o=0;o<e.length;o++)if(i===e[o]){n.push(i);break}}return n.join(" ")}function x(){var t=n(f);!t||"leave"===p&&d.$$domOperationFired||t.end()}function C(e){f.off("$destroy",x),function(t){t.removeData("$$animationRunner")}(f),l(f,d),$(f,d),d.domOperation(),b&&t.removeClass(f,b),m.complete(!e)}}}]}];e.module("ngAnimate",[],(function(){W=e.noop,I=e.copy,M=e.extend,z=e.element,V=e.forEach,N=e.isArray,F=e.isString,H=e.isObject,B=e.isUndefined,U=e.isDefined,q=e.isFunction,L=e.isElement})).info({angularVersion:"1.8.2"}).directive("ngAnimateSwap",["$animate",function(t){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link:function(e,n,r,i,o){var a,s;e.$watchCollection(r.ngAnimateSwap||r.for,(function(e){a&&t.leave(a),s&&(s.$destroy(),s=null),(e||0===e)&&o((function(e,r){a=e,s=r,t.enter(e,null,n)}))}))}}}]).directive("ngAnimateChildren",E).factory("$$rAFScheduler",["$$rAF",function(t){var e,n;function r(t){e=e.concat(t),i()}return e=r.queue=[],r.waitUntilQuiet=function(e){n&&n(),n=t((function(){n=null,e(),i()}))},r;function i(){if(e.length){for(var r=e.shift(),o=0;o<r.length;o++)r[o]();n||t((function(){n||i()}))}}}]).provider("$$animateQueue",Z).provider("$$animateCache",(function(){var t="$$ngAnimateParentKey",e=0,n=Object.create(null);this.$get=[function(){return{cacheKey:function(n,r,i,o){var a=n.parentNode,s=[a[t]||(a[t]=++e),r,n.getAttribute("class")];return i&&s.push(i),o&&s.push(o),s.join(" ")},containsCachedAnimationWithoutDuration:function(t){var e=n[t];return e&&!e.isValid||!1},flush:function(){n=Object.create(null)},count:function(t){var e=n[t];return e?e.total:0},get:function(t){var e=n[t];return e&&e.value},put:function(t,e,r){n[t]?(n[t].total++,n[t].value=e):n[t]={total:1,value:e,isValid:r}}}}]})).provider("$$animation",X).provider("$animateCss",G).provider("$$animateCssDriver",K).provider("$$animateJs",Y).provider("$$animateJsDriver",J)}(window,window.angular)},function(t,e,n){"use strict";n(64),n(61),n(31),n(59),n(60),n(88),n(89),n(90),n(91),n(92),n(2)},function(t,e){},function(t,e,n){"use strict";var r,i,o,a=n(9),s=n(2);function u(t){var e=t.match(/^\s*({[^}]*})\s*$/);e&&(t="("+e[1]+")");var n=t.replace(/\n/g," ").match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/);if(!n||4!==n.length)throw new Error("Invalid state ref '"+t+"'");return{state:n[1]||null,paramExpr:n[3]||null}}function c(t){var e=t.parent().inheritedData("$uiView"),n=Object(s.parse)("$cfg.path")(e);return n?Object(s.tail)(n).state.name:void 0}function l(t,e,n){var r=n.uiState||t.current.name,i=Object(s.extend)(function(t,e){return{relative:c(t)||e.$current,inherit:!0,source:"sref"}}(e,t),n.uiStateOpts||{}),o=t.href(r,n.uiStateParams,i);return{uiState:r,uiStateParams:n.uiStateParams,uiStateOpts:i,href:o}}function f(t){var e="[object SVGAnimatedString]"===Object.prototype.toString.call(t.prop("href")),n="FORM"===t[0].nodeName;return{attr:n?"action":e?"xlink:href":"href",isAnchor:"A"===t.prop("tagName").toUpperCase(),clickable:!n}}function h(t,e,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||t.attr("target"))){var u=n((function(){t.attr("disabled")||e.go(s.uiState,s.uiStateParams,s.uiStateOpts)}));o.preventDefault();var c=r.isAnchor&&!s.href?1:0;o.preventDefault=function(){c--<=0&&n.cancel(u)}}}}function p(t,e,n,r){var i;r&&(i=r.events),Object(s.isArray)(i)||(i=["click"]);for(var o=t.on?"on":"bind",a=0,u=i;a<u.length;a++){var c=u[a];t[o](c,n)}e.$on("$destroy",(function(){for(var e=t.off?"off":"unbind",r=0,o=i;r<o.length;r++){var a=o[r];t[e](a,n)}}))}r=["$uiRouter","$timeout",function(t,e){var n=t.stateService;return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(r,i,o,a){var c=f(i),d=a[1]||a[0],v=null,m={},g=function(){return l(n,i,m)},$=u(o.uiSref);function y(){var t=g();v&&v(),d&&(v=d.$$addStateInfo(t.uiState,t.uiStateParams)),null!=t.href&&o.$set(c.attr,t.href)}if(m.uiState=$.state,m.uiStateOpts=o.uiSrefOpts?r.$eval(o.uiSrefOpts):{},$.paramExpr&&(r.$watch($.paramExpr,(function(t){m.uiStateParams=Object(s.extend)({},t),y()}),!0),m.uiStateParams=Object(s.extend)({},r.$eval($.paramExpr))),y(),r.$on("$destroy",t.stateRegistry.onStatesChanged(y)),r.$on("$destroy",t.transitionService.onSuccess({},y)),c.clickable){var b=h(i,n,e,c,g);p(i,r,b,m.uiStateOpts)}}}}],i=["$uiRouter","$timeout",function(t,e){var n=t.stateService;return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(r,i,o,a){var u,c=f(i),d=a[1]||a[0],v=null,m={},g=function(){return l(n,i,m)},$=["uiState","uiStateParams","uiStateOpts"],y=$.reduce((function(t,e){return t[e]=s.noop,t}),{});function b(){var t=g();v&&v(),d&&(v=d.$$addStateInfo(t.uiState,t.uiStateParams)),null!=t.href&&o.$set(c.attr,t.href)}$.forEach((function(t){m[t]=o[t]?r.$eval(o[t]):null,o.$observe(t,(function(e){y[t](),y[t]=r.$watch(e,(function(e){m[t]=e,b()}),!0)}))})),b(),r.$on("$destroy",t.stateRegistry.onStatesChanged(b)),r.$on("$destroy",t.transitionService.onSuccess({},b)),c.clickable&&(u=h(i,n,e,c,g),p(i,r,u,m.uiStateOpts))}}}],o=["$state","$stateParams","$interpolate","$uiRouter",function(t,e,n,r){return{restrict:"A",controller:["$scope","$element","$attrs",function(e,i,o){var a,l,f,h,p,d=[];a=n(o.uiSrefActiveEq||"",!1)(e);try{l=e.$eval(o.uiSrefActive)}catch(t){}function v(t){t.promise.then($,s.noop)}function m(t){Object(s.isObject)(t)&&(d=[],Object(s.forEach)(t,(function(t,n){var r=function(t,n){var r=u(t);g(r.state,e.$eval(r.paramExpr),n)};Object(s.isString)(t)?r(t,n):Object(s.isArray)(t)&&Object(s.forEach)(t,(function(t){r(t,n)}))})))}function g(e,n,r){var o={state:t.get(e,c(i))||{name:e},params:n,activeClass:r};return d.push(o),function(){Object(s.removeFrom)(d)(o)}}function $(){var n=function(t){return t.split(/\s/).filter(s.identity)},r=function(t){return t.map((function(t){return t.activeClass})).map(n).reduce(s.unnestR,[])},o=r(d).concat(n(a)).reduce(s.uniqR,[]),u=r(d.filter((function(e){return t.includes(e.state.name,e.params)}))),c=d.filter((function(e){return t.is(e.state.name,e.params)})).length?n(a):[],l=u.concat(c).reduce(s.uniqR,[]),f=o.filter((function(t){return!Object(s.inArray)(l,t)}));e.$evalAsync((function(){l.forEach((function(t){return i.addClass(t)})),f.forEach((function(t){return i.removeClass(t)}))}))}m(l=l||n(o.uiSrefActive||"",!1)(e)),this.$$addStateInfo=function(t,e){if(!(Object(s.isObject)(l)&&d.length>0)){var n=g(t,e,l);return $(),n}},e.$on("$destroy",(f=r.stateRegistry.onStatesChanged((function(){m(l)})),h=r.transitionService.onStart({},v),p=e.$on("$stateChangeSuccess",$),function(){f(),h(),p()})),r.globals.transition&&v(r.globals.transition),$()}]}}],a.a.module("ui.router.state").directive("uiSref",r).directive("uiSrefActive",o).directive("uiSrefActiveEq",o).directive("uiState",i)},function(t,e,n){"use strict";var r=n(9);function i(t){var e=function(e,n,r){return t.is(e,n,r)};return e.$stateful=!0,e}function o(t){var e=function(e,n,r){return t.includes(e,n,r)};return e.$stateful=!0,e}i.$inject=["$state"],o.$inject=["$state"],r.a.module("ui.router.state").filter("isState",i).filter("includedByState",o)},function(t,e,n){"use strict";var r,i=n(2),o=n(9),a=n(61),s=n(31);function u(t,e,n,r,s){var u=Object(i.parse)("viewDecl.controllerAs"),c=Object(i.parse)("viewDecl.resolveAs");return{restrict:"ECA",priority:-400,compile:function(r){var l=r.html();return r.empty(),function(r,h){var p=h.data("$uiView");if(!p)return h.html(l),void t(h.contents())(r);var d=p.$cfg||{viewDecl:{},getTemplate:i.noop},v=d.path&&new i.ResolveContext(d.path);h.html(d.getTemplate(h,v)||l),i.trace.traceUIViewFill(p.$uiView,h.html());var m=t(h.contents()),g=d.controller,$=u(d),y=c(d),b=v&&Object(a.a)(v);if(r[y]=b,g){var w=e(g,Object(i.extend)({},b,{$scope:r,$element:h}));$&&(r[$]=w,r[$][y]=b),h.data("$ngControllerController",w),h.children().data("$ngControllerController",w),f(s,n,w,r,d)}if(Object(i.isString)(d.component))var O=Object(i.kebobString)(d.component),x=new RegExp("^(x-|data-)?"+O+"$","i"),C=r.$watch((function(){var t=[].slice.call(h[0].children).filter((function(t){return t&&t.tagName&&x.exec(t.tagName)}));return t&&o.a.element(t).data("$"+d.component+"Controller")}),(function(t){t&&(f(s,n,t,r,d),C())}));m(r)}}}}r=["$view","$animate","$uiViewScroll","$interpolate","$q",function(t,e,n,r,a){var u={$cfg:{viewDecl:{$context:t._pluginapi._rootViewContext()}},$uiView:{}},c={count:0,restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(l,f,h){return function(l,f,p){var d,v,m,g,$=p.onload||"",y=p.autoscroll,b=function(t,n,r){o.a.version.minor>2?e.enter(t,null,n).then(r):e.enter(t,null,n,r)},w=function(t,n){o.a.version.minor>2?e.leave(t).then(n):e.leave(t,n)},O=f.inheritedData("$uiView")||u,x=r(p.uiView||p.name||"")(l)||"$default",C={$type:"ng1",id:c.count++,name:x,fqn:O.$uiView.fqn?O.$uiView.fqn+"."+x:x,config:null,configUpdated:function(t){(!t||t instanceof s.a)&&(g!==t&&(i.trace.traceUIViewConfigUpdated(C,t&&t.viewDecl&&t.viewDecl.$context),g=t,_(t)))},get creationContext(){var t=Object(i.parse)("$cfg.viewDecl.$context")(O),e=Object(i.parse)("$uiView.creationContext")(O);return t||e}};i.trace.traceUIViewEvent("Linking",C),f.data("$uiView",{$uiView:C}),_();var S=t.registerUIView(C);function _(t){var e=l.$new(),r=a.defer(),o=a.defer(),s={$cfg:t,$uiView:C},u={$animEnter:r.promise,$animLeave:o.promise,$$animLeave:o};e.$emit("$viewContentLoading",x);var c=h(e,(function(t){t.data("$uiViewAnim",u),t.data("$uiView",s),b(t,f,(function(){r.resolve(),m&&m.$emit("$viewContentAnimationEnded"),(Object(i.isDefined)(y)&&!y||l.$eval(y))&&n(t)})),function(){if(d&&(i.trace.traceUIViewEvent("Removing (previous) el",d.data("$uiView")),d.remove(),d=null),m&&(i.trace.traceUIViewEvent("Destroying scope",C),m.$destroy(),m=null),v){var t=v.data("$uiViewAnim");i.trace.traceUIViewEvent("Animate out",t),w(v,(function(){t.$$animLeave.resolve(),d=null})),d=v,v=null}}()}));v=c,(m=e).$emit("$viewContentLoaded",t||g),m.$eval($)}l.$on("$destroy",(function(){i.trace.traceUIViewEvent("Destroying/Unregistering",C),S()}))}}};return c}],u.$inject=["$compile","$controller","$transitions","$view","$q"];var c="function"==typeof o.a.module("ui.router").component,l=0;function f(t,e,n,r,o){!Object(i.isFunction)(n.$onInit)||(o.viewDecl.component||o.viewDecl.componentProvider)&&c||n.$onInit();var a=Object(i.tail)(o.path).state.self,s={bind:n};if(Object(i.isFunction)(n.uiOnParamsChanged)){var u=new i.ResolveContext(o.path).getResolvable("$transition$").data;r.$on("$destroy",e.onSuccess({},(function(t){if(t!==u&&-1===t.exiting().indexOf(a)){var e=t.params("to"),r=t.params("from"),o=function(t){return t.paramSchema},s=t.treeChanges("to").map(o).reduce(i.unnestR,[]),c=t.treeChanges("from").map(o).reduce(i.unnestR,[]),l=s.filter((function(t){var n=c.indexOf(t);return-1===n||!c[n].type.equals(e[t.id],r[t.id])}));if(l.length){var f=l.map((function(t){return t.id})),h=Object(i.filter)(e,(function(t,e){return-1!==f.indexOf(e)}));n.uiOnParamsChanged(h,t)}}}),s))}if(Object(i.isFunction)(n.uiCanExit)){var f=l++,h=function(t){return!!t&&(t._uiCanExitIds&&!0===t._uiCanExitIds[f]||h(t.redirectedFrom()))},p={exiting:a.name};r.$on("$destroy",e.onBefore(p,(function(e){var r,i=e._uiCanExitIds=e._uiCanExitIds||{};return h(e)||(r=t.when(n.uiCanExit(e))).then((function(t){return i[f]=!1!==t})),r}),s))}}o.a.module("ui.router.state").directive("uiView",r),o.a.module("ui.router.state").directive("uiView",u)},function(t,e,n){"use strict";n(9).a.module("ui.router.state").provider("$uiViewScroll",(function(){var t=!1;this.useAnchorScroll=function(){t=!0},this.$get=["$anchorScroll","$timeout",function(e,n){return t?e:function(t){return n((function(){t[0].scrollIntoView()}),0,!1)}}]}))},function(t,e,n){var r,i,o;!function(a){"use strict";i=[n(79)],void 0===(o="function"==typeof(r=function(t,e){var n={beforeShow:l,move:l,change:l,show:l,hide:l,color:!1,flat:!1,showInput:!1,allowEmpty:!1,showButtons:!0,clickoutFiresChange:!0,showInitial:!1,showPalette:!1,showPaletteOnly:!1,hideAfterPaletteSelect:!1,togglePaletteOnly:!1,showSelectionPalette:!0,localStorageKey:!1,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:!1,className:"",containerClassName:"",replacerClassName:"",showAlpha:!1,theme:"sp-light",palette:[["#ffffff","#000000","#ff0000","#ff8000","#ffff00","#008000","#0000ff","#4b0082","#9400d3"]],selectionPalette:[],disabled:!1,offset:null},r=[],i=!!/msie/i.exec(window.navigator.userAgent),o=function(){function t(t,e){return!!~(""+t).indexOf(e)}var e=document.createElement("div").style;return e.cssText="background-color:rgba(0,0,0,.5)",t(e.backgroundColor,"rgba")||t(e.backgroundColor,"hsla")}(),a=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>&#9660;</div>","</div>"].join(""),s=function(){var t="";if(i)for(var e=1;e<=6;e++)t+="<div class='sp-"+e+"'></div>";return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","<div class='sp-palette-button-container sp-cf'>","<button type='button' class='sp-palette-toggle'></button>","</div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",t,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false'  />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button type='button' class='sp-choose'></button>","</div>","</div>","</div>"].join("")}();function u(e,n,r,i){for(var a=[],s=0;s<e.length;s++){var u=e[s];if(u){var c=tinycolor(u),l=c.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";l+=tinycolor.equals(n,u)?" sp-thumb-active":"";var f=c.toString(i.preferredFormat||"rgb"),h=o?"background-color:"+c.toRgbString():"filter:"+c.toFilter();a.push('<span title="'+f+'" data-color="'+c.toRgbString()+'" class="'+l+'"><span class="sp-thumb-inner" style="'+h+';"></span></span>')}else a.push(t("<div />").append(t('<span data-color="" style="background-color:transparent;" class="sp-clear-display"></span>').attr("title",i.noColorSelectedText)).html())}return"<div class='sp-cf "+r+"'>"+a.join("")+"</div>"}function c(c,l){var v,m,g=function(e,r){var i=t.extend({},n,e);return i.callbacks={move:h(i.move,r),change:h(i.change,r),show:h(i.show,r),hide:h(i.hide,r),beforeShow:h(i.beforeShow,r)},i}(l,c),$=g.flat,y=g.showSelectionPalette,b=g.localStorageKey,w=g.theme,O=g.callbacks,x=(v=Lt,10,function(){var t=this,e=arguments,n=function(){m=null,v.apply(t,e)};m||(m=setTimeout(n,10))}),C=!1,S=!1,_=0,E=0,j=0,A=0,k=0,T=0,R=0,P=0,D=0,I=0,M=1,V=[],N=[],U={},L=g.selectionPalette.slice(0),q=g.maxSelectionSize,H=null,F=c.ownerDocument,B=(F.body,t(c)),z=!1,W=t(s,F).addClass(w),G=W.find(".sp-picker-container"),K=W.find(".sp-color"),Y=W.find(".sp-dragger"),J=W.find(".sp-hue"),Z=W.find(".sp-slider"),X=W.find(".sp-alpha-inner"),Q=W.find(".sp-alpha"),tt=W.find(".sp-alpha-handle"),et=W.find(".sp-input"),nt=W.find(".sp-palette"),rt=W.find(".sp-initial"),it=W.find(".sp-cancel"),ot=W.find(".sp-clear"),at=W.find(".sp-choose"),st=W.find(".sp-palette-toggle"),ut=B.is("input"),ct=ut&&"color"===B.attr("type")&&d(),lt=ut&&!$,ft=lt?t(a).addClass(w).addClass(g.className).addClass(g.replacerClassName):t([]),ht=lt?ft:B,pt=ft.find(".sp-preview-inner"),dt=g.color||ut&&B.val(),vt=!1,mt=g.preferredFormat,gt=!g.showButtons||g.clickoutFiresChange,$t=!dt,yt=g.allowEmpty&&!ct;function bt(){if(g.showPaletteOnly&&(g.showPalette=!0),st.text(g.showPaletteOnly?g.togglePaletteMoreText:g.togglePaletteLessText),g.palette){V=g.palette.slice(0),N=t.isArray(V[0])?V:[V],U={};for(var e=0;e<N.length;e++)for(var n=0;n<N[e].length;n++){var r=tinycolor(N[e][n]).toRgbString();U[r]=!0}}W.toggleClass("sp-flat",$),W.toggleClass("sp-input-disabled",!g.showInput),W.toggleClass("sp-alpha-enabled",g.showAlpha),W.toggleClass("sp-clear-enabled",yt),W.toggleClass("sp-buttons-disabled",!g.showButtons),W.toggleClass("sp-palette-buttons-disabled",!g.togglePaletteOnly),W.toggleClass("sp-palette-disabled",!g.showPalette),W.toggleClass("sp-palette-only",g.showPaletteOnly),W.toggleClass("sp-initial-disabled",!g.showInitial),W.addClass(g.className).addClass(g.containerClassName),Lt()}function wt(){if(b&&window.localStorage){try{var e=window.localStorage[b].split(",#");e.length>1&&(delete window.localStorage[b],t.each(e,(function(t,e){Ot(e)})))}catch(t){}try{L=window.localStorage[b].split(";")}catch(t){}}}function Ot(e){if(y){var n=tinycolor(e).toRgbString();if(!U[n]&&-1===t.inArray(n,L))for(L.push(n);L.length>q;)L.shift();if(b&&window.localStorage)try{window.localStorage[b]=L.join(";")}catch(t){}}}function xt(){var e=It(),n=t.map(N,(function(t,n){return u(t,e,"sp-palette-row sp-palette-row-"+n,g)}));wt(),L&&n.push(u(function(){var t=[];if(g.showPalette)for(var e=0;e<L.length;e++){var n=tinycolor(L[e]).toRgbString();U[n]||t.push(L[e])}return t.reverse().slice(0,g.maxSelectionSize)}(),e,"sp-palette-row sp-palette-row-selection",g)),nt.html(n.join(""))}function Ct(){if(g.showInitial){var t=vt,e=It();rt.html(u([t,e],e,"sp-palette-row-initial",g))}}function St(){(E<=0||_<=0||A<=0)&&Lt(),S=!0,W.addClass("sp-dragging"),H=null,B.trigger("dragstart.spectrum",[It()])}function _t(){S=!1,W.removeClass("sp-dragging"),B.trigger("dragstop.spectrum",[It()])}function Et(){var t=et.val();if(null!==t&&""!==t||!yt){var e=tinycolor(t);e.isValid()?(Dt(e),Mt(),Ut()):et.addClass("sp-validation-error")}else Dt(null),Mt(),Ut()}function jt(){C?Rt():At()}function At(){var e=t.Event("beforeShow.spectrum");C?Lt():(B.trigger(e,[It()]),!1===O.beforeShow(It())||e.isDefaultPrevented()||(function(){for(var t=0;t<r.length;t++)r[t]&&r[t].hide()}(),C=!0,t(F).on("keydown.spectrum",kt),t(F).on("click.spectrum",Tt),t(window).on("resize.spectrum",x),ft.addClass("sp-active"),W.removeClass("sp-hidden"),Lt(),Vt(),vt=It(),Ct(),O.show(vt),B.trigger("show.spectrum",[vt])))}function kt(t){27===t.keyCode&&Rt()}function Tt(t){2!=t.button&&(S||(gt?Ut(!0):Pt(),Rt()))}function Rt(){C&&!$&&(C=!1,t(F).off("keydown.spectrum",kt),t(F).off("click.spectrum",Tt),t(window).off("resize.spectrum",x),ft.removeClass("sp-active"),W.addClass("sp-hidden"),O.hide(It()),B.trigger("hide.spectrum",[It()]))}function Pt(){Dt(vt,!0),Ut(!0)}function Dt(t,e){var n,r;tinycolor.equals(t,It())?Vt():(!t&&yt?$t=!0:($t=!1,r=(n=tinycolor(t)).toHsv(),P=r.h%360/360,D=r.s,I=r.v,M=r.a),Vt(),n&&n.isValid()&&!e&&(mt=g.preferredFormat||n.getFormat()))}function It(t){return t=t||{},yt&&$t?null:tinycolor.fromRatio({h:P,s:D,v:I,a:Math.round(1e3*M)/1e3},{format:t.format||mt})}function Mt(){Vt(),O.move(It()),B.trigger("move.spectrum",[It()])}function Vt(){et.removeClass("sp-validation-error"),Nt();var t=tinycolor.fromRatio({h:P,s:1,v:1});K.css("background-color",t.toHexString());var e=mt;M<1&&(0!==M||"name"!==e)&&("hex"!==e&&"hex3"!==e&&"hex6"!==e&&"name"!==e||(e="rgb"));var n=It({format:e}),r="";if(pt.removeClass("sp-clear-display"),pt.css("background-color","transparent"),!n&&yt)pt.addClass("sp-clear-display");else{var a=n.toHexString(),s=n.toRgbString();if(o||1===n.alpha?pt.css("background-color",s):(pt.css("background-color","transparent"),pt.css("filter",n.toFilter())),g.showAlpha){var u=n.toRgb();u.a=0;var c=tinycolor(u).toRgbString(),l="linear-gradient(left, "+c+", "+a+")";i?X.css("filter",tinycolor(c).toFilter({gradientType:1},a)):(X.css("background","-webkit-"+l),X.css("background","-moz-"+l),X.css("background","-ms-"+l),X.css("background","linear-gradient(to right, "+c+", "+a+")"))}r=n.toString(e)}g.showInput&&et.val(r),g.showPalette&&xt(),Ct()}function Nt(){var t=D,e=I;if(yt&&$t)tt.hide(),Z.hide(),Y.hide();else{tt.show(),Z.show(),Y.show();var n=t*_,r=E-e*E;n=Math.max(-j,Math.min(_-j,n-j)),r=Math.max(-j,Math.min(E-j,r-j)),Y.css({top:r+"px",left:n+"px"});var i=M*k;tt.css({left:i-T/2+"px"});var o=P*A;Z.css({top:o-R+"px"})}}function Ut(t){var e=It(),n="",r=!tinycolor.equals(e,vt);e&&(n=e.toString(mt),Ot(e)),ut&&B.val(n),t&&r&&(O.change(e),B.trigger("change",[e]))}function Lt(){C&&(_=K.width(),E=K.height(),j=Y.height(),J.width(),A=J.height(),R=Z.height(),k=Q.width(),T=tt.width(),$||(W.css("position","absolute"),g.offset?W.offset(g.offset):W.offset(function(e,n){var r=e.outerWidth(),i=e.outerHeight(),o=n.outerHeight(),a=e[0].ownerDocument,s=a.documentElement,u=s.clientWidth+t(a).scrollLeft(),c=s.clientHeight+t(a).scrollTop(),l=n.offset(),f=l.left,h=l.top;return h+=o,f-=Math.min(f,f+r>u&&u>r?Math.abs(f+r-u):0),{top:h-=Math.min(h,h+i>c&&c>i?Math.abs(i+o-0):0),bottom:l.bottom,left:f,right:l.right,width:l.width,height:l.height}}(W,ht))),Nt(),g.showPalette&&xt(),B.trigger("reflow.spectrum"))}function qt(){Rt(),z=!0,B.attr("disabled",!0),ht.addClass("sp-disabled")}!function(){if(i&&W.find("*:not(input)").attr("unselectable","on"),bt(),lt&&B.after(ft).hide(),yt||ot.hide(),$)B.after(W).hide();else{var e="parent"===g.appendTo?B.parent():t(g.appendTo);1!==e.length&&(e=t("body")),e.append(W)}function n(e){return e.data&&e.data.ignore?(Dt(t(e.target).closest(".sp-thumb-el").data("color")),Mt()):(Dt(t(e.target).closest(".sp-thumb-el").data("color")),Mt(),g.hideAfterPaletteSelect?(Ut(!0),Rt()):Ut()),!1}wt(),ht.on("click.spectrum touchstart.spectrum",(function(e){z||jt(),e.stopPropagation(),t(e.target).is("input")||e.preventDefault()})),(B.is(":disabled")||!0===g.disabled)&&qt(),W.click(f),et.change(Et),et.on("paste",(function(){setTimeout(Et,1)})),et.keydown((function(t){13==t.keyCode&&Et()})),it.text(g.cancelText),it.on("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),Pt(),Rt()})),ot.attr("title",g.clearText),ot.on("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),$t=!0,Mt(),$&&Ut(!0)})),at.text(g.chooseText),at.on("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),i&&et.is(":focus")&&et.trigger("change"),et.hasClass("sp-validation-error")||(Ut(!0),Rt())})),st.text(g.showPaletteOnly?g.togglePaletteMoreText:g.togglePaletteLessText),st.on("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),g.showPaletteOnly=!g.showPaletteOnly,g.showPaletteOnly||$||W.css("left","-="+(G.outerWidth(!0)+5)),bt()})),p(Q,(function(t,e,n){M=t/k,$t=!1,n.shiftKey&&(M=Math.round(10*M)/10),Mt()}),St,_t),p(J,(function(t,e){P=parseFloat(e/A),$t=!1,g.showAlpha||(M=1),Mt()}),St,_t),p(K,(function(t,e,n){if(n.shiftKey){if(!H){var r=D*_,i=E-I*E,o=Math.abs(t-r)>Math.abs(e-i);H=o?"x":"y"}}else H=null;var a=!H||"y"===H;(!H||"x"===H)&&(D=parseFloat(t/_)),a&&(I=parseFloat((E-e)/E)),$t=!1,g.showAlpha||(M=1),Mt()}),St,_t),dt?(Dt(dt),Vt(),mt=g.preferredFormat||tinycolor(dt).format,Ot(dt)):Vt(),$&&At();var r=i?"mousedown.spectrum":"click.spectrum touchstart.spectrum";nt.on(r,".sp-thumb-el",n),rt.on(r,".sp-thumb-el:nth-child(1)",{ignore:!0},n)}();var Ht={show:At,hide:Rt,toggle:jt,reflow:Lt,option:function(n,r){return n===e?t.extend({},g):r===e?g[n]:(g[n]=r,"preferredFormat"===n&&(mt=g.preferredFormat),void bt())},enable:function(){z=!1,B.attr("disabled",!1),ht.removeClass("sp-disabled")},disable:qt,offset:function(t){g.offset=t,Lt()},set:function(t){Dt(t),Ut()},get:It,destroy:function(){B.show(),ht.off("click.spectrum touchstart.spectrum"),W.remove(),ft.remove(),r[Ht.id]=null},container:W};return Ht.id=r.push(Ht)-1,Ht}function l(){}function f(t){t.stopPropagation()}function h(t,e){var n=Array.prototype.slice,r=n.call(arguments,2);return function(){return t.apply(e,r.concat(n.call(arguments)))}}function p(e,n,r,o){n=n||function(){},r=r||function(){},o=o||function(){};var a=document,s=!1,u={},c=0,l=0,f="ontouchstart"in window,h={};function p(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.returnValue=!1}function d(t){if(s){if(i&&a.documentMode<9&&!t.button)return v();var r=t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches[0],o=r&&r.pageX||t.pageX,h=r&&r.pageY||t.pageY,d=Math.max(0,Math.min(o-u.left,l)),m=Math.max(0,Math.min(h-u.top,c));f&&p(t),n.apply(e,[d,m,t])}}function v(){s&&(t(a).off(h),t(a.body).removeClass("sp-dragging"),setTimeout((function(){o.apply(e,arguments)}),0)),s=!1}h.selectstart=p,h.dragstart=p,h["touchmove mousemove"]=d,h["touchend mouseup"]=v,t(e).on("touchstart mousedown",(function(n){var i=n.which?3==n.which:2==n.button;i||s||!1!==r.apply(e,arguments)&&(s=!0,c=t(e).height(),l=t(e).width(),u=t(e).offset(),t(a).on(h),t(a.body).addClass("sp-dragging"),d(n),p(n))}))}function d(){return t.fn.spectrum.inputTypeColorSupport()}var v="spectrum.id";t.fn.spectrum=function(e,n){if("string"==typeof e){var i=this,o=Array.prototype.slice.call(arguments,1);return this.each((function(){var n=r[t(this).data(v)];if(n){var a=n[e];if(!a)throw new Error("Spectrum: no such method: '"+e+"'");"get"==e?i=n.get():"container"==e?i=n.container:"option"==e?i=n.option.apply(n,o):"destroy"==e?(n.destroy(),t(this).removeData(v)):a.apply(n,o)}})),i}return this.spectrum("destroy").each((function(){var n=c(this,t.extend({},t(this).data(),e));t(this).data(v,n.id)}))},t.fn.spectrum.load=!0,t.fn.spectrum.loadOpts={},t.fn.spectrum.draggable=p,t.fn.spectrum.defaults=n,t.fn.spectrum.inputTypeColorSupport=function e(){if(void 0===e._cachedResult){var n=t("<input type='color'/>")[0];e._cachedResult="color"===n.type&&""!==n.value}return e._cachedResult},t.spectrum={},t.spectrum.localization={},t.spectrum.palettes={},t.fn.spectrum.processNativeColorInputs=function(){var e=t("input[type=color]");e.length&&!d()&&e.spectrum({preferredFormat:"hex6"})},function(){var t=/^[\s,#]+/,e=/\s+$/,n=0,r=Math,i=r.round,o=r.min,a=r.max,s=r.random,u=function(s,c){if(c=c||{},(s=s||"")instanceof u)return s;if(!(this instanceof u))return new u(s,c);var l=function(n){var i,s,u,c={r:0,g:0,b:0},l=1,f=!1,h=!1;return"string"==typeof n&&(n=function(n){n=n.replace(t,"").replace(e,"").toLowerCase();var r,i,o=!1;if(_[n])n=_[n],o=!0;else if("transparent"==n)return{r:0,g:0,b:0,a:0,format:"name"};return(r=V.rgb.exec(n))?{r:r[1],g:r[2],b:r[3]}:(r=V.rgba.exec(n))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=V.hsl.exec(n))?{h:r[1],s:r[2],l:r[3]}:(r=V.hsla.exec(n))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=V.hsv.exec(n))?{h:r[1],s:r[2],v:r[3]}:(r=V.hsva.exec(n))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=V.hex8.exec(n))?{a:(i=r[1],T(i)/255),r:T(r[2]),g:T(r[3]),b:T(r[4]),format:o?"name":"hex8"}:(r=V.hex6.exec(n))?{r:T(r[1]),g:T(r[2]),b:T(r[3]),format:o?"name":"hex"}:!!(r=V.hex3.exec(n))&&{r:T(r[1]+""+r[1]),g:T(r[2]+""+r[2]),b:T(r[3]+""+r[3]),format:o?"name":"hex"}}(n)),"object"==typeof n&&(n.hasOwnProperty("r")&&n.hasOwnProperty("g")&&n.hasOwnProperty("b")?(i=n.r,s=n.g,u=n.b,c={r:255*A(i,255),g:255*A(s,255),b:255*A(u,255)},f=!0,h="%"===String(n.r).substr(-1)?"prgb":"rgb"):n.hasOwnProperty("h")&&n.hasOwnProperty("s")&&n.hasOwnProperty("v")?(n.s=P(n.s),n.v=P(n.v),c=function(t,e,n){t=6*A(t,360),e=A(e,100),n=A(n,100);var i=r.floor(t),o=t-i,a=n*(1-e),s=n*(1-o*e),u=n*(1-(1-o)*e),c=i%6;return{r:255*[n,s,a,a,u,n][c],g:255*[u,n,n,s,a,a][c],b:255*[a,a,u,n,n,s][c]}}(n.h,n.s,n.v),f=!0,h="hsv"):n.hasOwnProperty("h")&&n.hasOwnProperty("s")&&n.hasOwnProperty("l")&&(n.s=P(n.s),n.l=P(n.l),c=function(t,e,n){var r,i,o;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=A(t,360),e=A(e,100),n=A(n,100),0===e)r=i=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,u=2*n-s;r=a(u,s,t+1/3),i=a(u,s,t),o=a(u,s,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(n.h,n.s,n.l),f=!0,h="hsl"),n.hasOwnProperty("a")&&(l=n.a)),l=j(l),{ok:f,format:n.format||h,r:o(255,a(c.r,0)),g:o(255,a(c.g,0)),b:o(255,a(c.b,0)),a:l}}(s);this._originalInput=s,this._r=l.r,this._g=l.g,this._b=l.b,this._a=l.a,this._roundA=i(1e3*this._a)/1e3,this._format=c.format||l.format,this._gradientType=c.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=l.ok,this._tc_id=n++};function c(t,e,n){t=A(t,255),e=A(e,255),n=A(n,255);var r,i,s=a(t,e,n),u=o(t,e,n),c=(s+u)/2;if(s==u)r=i=0;else{var l=s-u;switch(i=c>.5?l/(2-s-u):l/(s+u),s){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:i,l:c}}function l(t,e,n){t=A(t,255),e=A(e,255),n=A(n,255);var r,i,s=a(t,e,n),u=o(t,e,n),c=s,l=s-u;if(i=0===s?0:l/s,s==u)r=0;else{switch(s){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:i,v:c}}function f(t,e,n,r){var o=[R(i(t).toString(16)),R(i(e).toString(16)),R(i(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function h(t,e,n,r){var o;return[R((o=r,Math.round(255*parseFloat(o)).toString(16))),R(i(t).toString(16)),R(i(e).toString(16)),R(i(n).toString(16))].join("")}function p(t,e){e=0===e?0:e||10;var n=u(t).toHsl();return n.s-=e/100,n.s=k(n.s),u(n)}function d(t,e){e=0===e?0:e||10;var n=u(t).toHsl();return n.s+=e/100,n.s=k(n.s),u(n)}function v(t){return u(t).desaturate(100)}function m(t,e){e=0===e?0:e||10;var n=u(t).toHsl();return n.l+=e/100,n.l=k(n.l),u(n)}function g(t,e){e=0===e?0:e||10;var n=u(t).toRgb();return n.r=a(0,o(255,n.r-i(-e/100*255))),n.g=a(0,o(255,n.g-i(-e/100*255))),n.b=a(0,o(255,n.b-i(-e/100*255))),u(n)}function $(t,e){e=0===e?0:e||10;var n=u(t).toHsl();return n.l-=e/100,n.l=k(n.l),u(n)}function y(t,e){var n=u(t).toHsl(),r=(i(n.h)+e)%360;return n.h=r<0?360+r:r,u(n)}function b(t){var e=u(t).toHsl();return e.h=(e.h+180)%360,u(e)}function w(t){var e=u(t).toHsl(),n=e.h;return[u(t),u({h:(n+120)%360,s:e.s,l:e.l}),u({h:(n+240)%360,s:e.s,l:e.l})]}function O(t){var e=u(t).toHsl(),n=e.h;return[u(t),u({h:(n+90)%360,s:e.s,l:e.l}),u({h:(n+180)%360,s:e.s,l:e.l}),u({h:(n+270)%360,s:e.s,l:e.l})]}function x(t){var e=u(t).toHsl(),n=e.h;return[u(t),u({h:(n+72)%360,s:e.s,l:e.l}),u({h:(n+216)%360,s:e.s,l:e.l})]}function C(t,e,n){e=e||6,n=n||30;var r=u(t).toHsl(),i=360/n,o=[u(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(u(r));return o}function S(t,e){e=e||6;for(var n=u(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(u({h:r,s:i,v:o})),o=(o+s)%1;return a}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},setAlpha:function(t){return this._a=j(t),this._roundA=i(1e3*this._a)/1e3,this},toHsv:function(){var t=l(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=l(this._r,this._g,this._b),e=i(360*t.h),n=i(100*t.s),r=i(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=c(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=c(this._r,this._g,this._b),e=i(360*t.h),n=i(100*t.s),r=i(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return f(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(){return h(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(100*A(this._r,255))+"%",g:i(100*A(this._g,255))+"%",b:i(100*A(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+i(100*A(this._r,255))+"%, "+i(100*A(this._g,255))+"%, "+i(100*A(this._b,255))+"%)":"rgba("+i(100*A(this._r,255))+"%, "+i(100*A(this._g,255))+"%, "+i(100*A(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[f(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+h(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";return t&&(n=u(t).toHex8String()),"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(m,arguments)},brighten:function(){return this._applyModification(g,arguments)},darken:function(){return this._applyModification($,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(d,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(y,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},u.fromRatio=function(t,e){if("object"==typeof t){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:P(t[r]));t=n}return u(t,e)},u.equals=function(t,e){return!(!t||!e)&&u(t).toRgbString()==u(e).toRgbString()},u.random=function(){return u.fromRatio({r:s(),g:s(),b:s()})},u.mix=function(t,e,n){n=0===n?0:n||50;var r,i=u(t).toRgb(),o=u(e).toRgb(),a=n/100,s=2*a-1,c=o.a-i.a,l=1-(r=((r=s*c==-1?s:(s+c)/(1+s*c))+1)/2),f={r:o.r*r+i.r*l,g:o.g*r+i.g*l,b:o.b*r+i.b*l,a:o.a*a+i.a*(1-a)};return u(f)},u.readability=function(t,e){var n=u(t),r=u(e),i=n.toRgb(),o=r.toRgb(),a=n.getBrightness(),s=r.getBrightness(),c=Math.max(i.r,o.r)-Math.min(i.r,o.r)+Math.max(i.g,o.g)-Math.min(i.g,o.g)+Math.max(i.b,o.b)-Math.min(i.b,o.b);return{brightness:Math.abs(a-s),color:c}},u.isReadable=function(t,e){var n=u.readability(t,e);return n.brightness>125&&n.color>500},u.mostReadable=function(t,e){for(var n=null,r=0,i=!1,o=0;o<e.length;o++){var a=u.readability(t,e[o]),s=a.brightness>125&&a.color>500,c=a.brightness/125*3+a.color/500;(s&&!i||s&&i&&c>r||!s&&!i&&c>r)&&(i=s,r=c,n=u(e[o]))}return n};var _=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=u.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(_);function j(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function A(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=o(e,a(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),r.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function k(t){return o(1,a(0,t))}function T(t){return parseInt(t,16)}function R(t){return 1==t.length?"0"+t:""+t}function P(t){return t<=1&&(t=100*t+"%"),t}var D,I,M,V=(I="[\\s|\\(]+("+(D="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",M="[\\s|\\(]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",{rgb:new RegExp("rgb"+I),rgba:new RegExp("rgba"+M),hsl:new RegExp("hsl"+I),hsla:new RegExp("hsla"+M),hsv:new RegExp("hsv"+I),hsva:new RegExp("hsva"+M),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});window.tinycolor=u}(),t((function(){t.fn.spectrum.load&&t.fn.spectrum.processNativeColorInputs()}))})?r.apply(e,i):r)||(t.exports=o)}()},function(t,e,n){var r,i,o;i=[n(79)],void 0===(o="function"==typeof(r=function(t){var e=function(){if(t&&t.fn&&t.fn.select2&&t.fn.select2.amd)var e=t.fn.select2.amd;return e&&e.requirejs||(e?r=e:e={},function(t){var e,o,a,s,u={},c={},l={},f={},h=Object.prototype.hasOwnProperty,p=[].slice,d=/\.js$/;function v(t,e){return h.call(t,e)}function m(t,e){var n,r,i,o,a,s,u,c,f,h,p,v=e&&e.split("/"),m=l.map,g=m&&m["*"]||{};if(t){for(a=(t=t.split("/")).length-1,l.nodeIdCompat&&d.test(t[a])&&(t[a]=t[a].replace(d,"")),"."===t[0].charAt(0)&&v&&(t=v.slice(0,v.length-1).concat(t)),f=0;f<t.length;f++)if("."===(p=t[f]))t.splice(f,1),f-=1;else if(".."===p){if(0===f||1===f&&".."===t[2]||".."===t[f-1])continue;f>0&&(t.splice(f-1,2),f-=2)}t=t.join("/")}if((v||g)&&m){for(f=(n=t.split("/")).length;f>0;f-=1){if(r=n.slice(0,f).join("/"),v)for(h=v.length;h>0;h-=1)if((i=m[v.slice(0,h).join("/")])&&(i=i[r])){o=i,s=f;break}if(o)break;!u&&g&&g[r]&&(u=g[r],c=f)}!o&&u&&(o=u,s=c),o&&(n.splice(0,s,o),t=n.join("/"))}return t}function g(t,e){return function(){var n=p.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),o.apply(void 0,n.concat([t,e]))}}function $(t){return function(e){u[t]=e}}function y(t){if(v(c,t)){var n=c[t];delete c[t],f[t]=!0,e.apply(void 0,n)}if(!v(u,t)&&!v(f,t))throw new Error("No "+t);return u[t]}function b(t){var e,n=t?t.indexOf("!"):-1;return n>-1&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function w(t){return t?b(t):[]}function O(t){return function(){return l&&l.config&&l.config[t]||{}}}a=function(t,e){var n,r,i=b(t),o=i[0],a=e[1];return t=i[1],o&&(n=y(o=m(o,a))),o?t=n&&n.normalize?n.normalize(t,(r=a,function(t){return m(t,r)})):m(t,a):(o=(i=b(t=m(t,a)))[0],t=i[1],o&&(n=y(o))),{f:o?o+"!"+t:t,n:t,pr:o,p:n}},s={require:function(t){return g(t)},exports:function(t){var e=u[t];return void 0!==e?e:u[t]={}},module:function(t){return{id:t,uri:"",exports:u[t],config:O(t)}}},e=function(t,e,n,r){var i,o,l,h,p,d,m,b=[],O=typeof n;if(d=w(r=r||t),"undefined"===O||"function"===O){for(e=!e.length&&n.length?["require","exports","module"]:e,p=0;p<e.length;p+=1)if("require"===(o=(h=a(e[p],d)).f))b[p]=s.require(t);else if("exports"===o)b[p]=s.exports(t),m=!0;else if("module"===o)i=b[p]=s.module(t);else if(v(u,o)||v(c,o)||v(f,o))b[p]=y(o);else{if(!h.p)throw new Error(t+" missing "+o);h.p.load(h.n,g(r,!0),$(o),{}),b[p]=u[o]}l=n?n.apply(u[t],b):void 0,t&&(i&&void 0!==i.exports&&i.exports!==u[t]?u[t]=i.exports:void 0===l&&m||(u[t]=l))}else t&&(u[t]=n)},n=r=o=function(t,n,r,i,u){if("string"==typeof t)return s[t]?s[t](n):y(a(t,w(n)).f);if(!t.splice){if((l=t).deps&&o(l.deps,l.callback),!n)return;n.splice?(t=n,n=r,r=null):t=void 0}return n=n||function(){},"function"==typeof r&&(r=i,i=u),i?e(void 0,t,n,r):setTimeout((function(){e(void 0,t,n,r)}),4),o},o.config=function(t){return o(t)},n._defined=u,(i=function(t,e,n){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(n=e,e=[]),v(u,t)||v(c,t)||(c[t]=[t,e,n])}).amd={jQuery:!0}}(),e.requirejs=n,e.require=r,e.define=i),e.define("almond",(function(){})),e.define("jquery",[],(function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e})),e.define("select2/utils",["jquery"],(function(t){var e={};function n(t){var e=t.prototype,n=[];for(var r in e)"function"==typeof e[r]&&"constructor"!==r&&n.push(r);return n}e.Extend=function(t,e){var n={}.hasOwnProperty;function r(){this.constructor=t}for(var i in e)n.call(e,i)&&(t[i]=e[i]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},e.Decorate=function(t,e){var r=n(e),i=n(t);function o(){var n=Array.prototype.unshift,r=e.prototype.constructor.length,i=t.prototype.constructor;r>0&&(n.call(arguments,t.prototype.constructor),i=e.prototype.constructor),i.apply(this,arguments)}e.displayName=t.displayName,o.prototype=new function(){this.constructor=o};for(var a=0;a<i.length;a++){var s=i[a];o.prototype[s]=t.prototype[s]}for(var u=function(t){var n=function(){};t in o.prototype&&(n=o.prototype[t]);var r=e.prototype[t];return function(){var t=Array.prototype.unshift;return t.call(arguments,n),r.apply(this,arguments)}},c=0;c<r.length;c++){var l=r[c];o.prototype[l]=u(l)}return o};var r=function(){this.listeners={}};return r.prototype.on=function(t,e){this.listeners=this.listeners||{},t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e]},r.prototype.trigger=function(t){var e=Array.prototype.slice,n=e.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=t,t in this.listeners&&this.invoke(this.listeners[t],e.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},r.prototype.invoke=function(t,e){for(var n=0,r=t.length;n<r;n++)t[n].apply(this,e)},e.Observable=r,e.generateChars=function(t){for(var e="",n=0;n<t;n++)e+=Math.floor(36*Math.random()).toString(36);return e},e.bind=function(t,e){return function(){t.apply(e,arguments)}},e._convertData=function(t){for(var e in t){var n=e.split("-"),r=t;if(1!==n.length){for(var i=0;i<n.length;i++){var o=n[i];(o=o.substring(0,1).toLowerCase()+o.substring(1))in r||(r[o]={}),i==n.length-1&&(r[o]=t[e]),r=r[o]}delete t[e]}}return t},e.hasScroll=function(e,n){var r=t(n),i=n.style.overflowX,o=n.style.overflowY;return(i!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===i||"scroll"===o||r.innerHeight()<n.scrollHeight||r.innerWidth()<n.scrollWidth)},e.escapeMarkup=function(t){var e={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,(function(t){return e[t]}))},e.appendMany=function(e,n){if("1.7"===t.fn.jquery.substr(0,3)){var r=t();t.map(n,(function(t){r=r.add(t)})),n=r}e.append(n)},e})),e.define("select2/results",["jquery","./utils"],(function(t,e){function n(t,e,r){this.$element=t,this.data=r,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e,e},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(e){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var r=t('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),i=this.options.get("translations").get(e.message);r.append(n(i(e.args))),r[0].className+=" select2-results__message",this.$results.append(r)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(t){this.hideLoading();var e=[];if(null!=t.results&&0!==t.results.length){t.results=this.sort(t.results);for(var n=0;n<t.results.length;n++){var r=t.results[n],i=this.option(r);e.push(i)}this.$results.append(e)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(t,e){e.find(".select2-results").append(t)},n.prototype.sort=function(t){return this.options.get("sorter")(t)},n.prototype.highlightFirstItem=function(){var t=this.$results.find(".select2-results__option[aria-selected]"),e=t.filter("[aria-selected=true]");e.length>0?e.first().trigger("mouseenter"):t.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var e=this;this.data.current((function(n){var r=t.map(n,(function(t){return t.id.toString()}));e.$results.find(".select2-results__option[aria-selected]").each((function(){var e=t(this),n=t.data(this,"data"),i=""+n.id;null!=n.element&&n.element.selected||null==n.element&&t.inArray(i,r)>-1?e.attr("aria-selected","true"):e.attr("aria-selected","false")}))}))},n.prototype.showLoading=function(t){this.hideLoading();var e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(t)},n=this.option(e);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(e){var n=document.createElement("li");n.className="select2-results__option";var r={role:"treeitem","aria-selected":"false"};for(var i in e.disabled&&(delete r["aria-selected"],r["aria-disabled"]="true"),null==e.id&&delete r["aria-selected"],null!=e._resultId&&(n.id=e._resultId),e.title&&(n.title=e.title),e.children&&(r.role="group",r["aria-label"]=e.text,delete r["aria-selected"]),r){var o=r[i];n.setAttribute(i,o)}if(e.children){var a=t(n),s=document.createElement("strong");s.className="select2-results__group",t(s),this.template(e,s);for(var u=[],c=0;c<e.children.length;c++){var l=e.children[c],f=this.option(l);u.push(f)}var h=t("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});h.append(u),a.append(s),a.append(h)}else this.template(e,n);return t.data(n,"data",e),n},n.prototype.bind=function(e,n){var r=this,i=e.id+"-results";this.$results.attr("id",i),e.on("results:all",(function(t){r.clear(),r.append(t.data),e.isOpen()&&(r.setClasses(),r.highlightFirstItem())})),e.on("results:append",(function(t){r.append(t.data),e.isOpen()&&r.setClasses()})),e.on("query",(function(t){r.hideMessages(),r.showLoading(t)})),e.on("select",(function(){e.isOpen()&&(r.setClasses(),r.highlightFirstItem())})),e.on("unselect",(function(){e.isOpen()&&(r.setClasses(),r.highlightFirstItem())})),e.on("open",(function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()})),e.on("close",(function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")})),e.on("results:toggle",(function(){var t=r.getHighlightedResults();0!==t.length&&t.trigger("mouseup")})),e.on("results:select",(function(){var t=r.getHighlightedResults();if(0!==t.length){var e=t.data("data");"true"==t.attr("aria-selected")?r.trigger("close",{}):r.trigger("select",{data:e})}})),e.on("results:previous",(function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),n=e.index(t);if(0!==n){var i=n-1;0===t.length&&(i=0);var o=e.eq(i);o.trigger("mouseenter");var a=r.$results.offset().top,s=o.offset().top,u=r.$results.scrollTop()+(s-a);0===i?r.$results.scrollTop(0):s-a<0&&r.$results.scrollTop(u)}})),e.on("results:next",(function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),n=e.index(t)+1;if(!(n>=e.length)){var i=e.eq(n);i.trigger("mouseenter");var o=r.$results.offset().top+r.$results.outerHeight(!1),a=i.offset().top+i.outerHeight(!1),s=r.$results.scrollTop()+a-o;0===n?r.$results.scrollTop(0):a>o&&r.$results.scrollTop(s)}})),e.on("results:focus",(function(t){t.element.addClass("select2-results__option--highlighted")})),e.on("results:message",(function(t){r.displayMessage(t)})),t.fn.mousewheel&&this.$results.on("mousewheel",(function(t){var e=r.$results.scrollTop(),n=r.$results.get(0).scrollHeight-e+t.deltaY,i=t.deltaY>0&&e-t.deltaY<=0,o=t.deltaY<0&&n<=r.$results.height();i?(r.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):o&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),t.preventDefault(),t.stopPropagation())})),this.$results.on("mouseup",".select2-results__option[aria-selected]",(function(e){var n=t(this),i=n.data("data");"true"!==n.attr("aria-selected")?r.trigger("select",{originalEvent:e,data:i}):r.options.get("multiple")?r.trigger("unselect",{originalEvent:e,data:i}):r.trigger("close",{})})),this.$results.on("mouseenter",".select2-results__option[aria-selected]",(function(e){var n=t(this).data("data");r.getHighlightedResults().removeClass("select2-results__option--highlighted"),r.trigger("results:focus",{data:n,element:t(this)})}))},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var t=this.getHighlightedResults();if(0!==t.length){var e=this.$results.find("[aria-selected]").index(t),n=this.$results.offset().top,r=t.offset().top,i=this.$results.scrollTop()+(r-n),o=r-n;i-=2*t.outerHeight(!1),e<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(i)}},n.prototype.template=function(e,n){var r=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),o=r(e,n);null==o?n.style.display="none":"string"==typeof o?n.innerHTML=i(o):t(n).append(o)},n})),e.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),e.define("select2/selection/base",["jquery","../utils","../keys"],(function(t,e,n){function r(t,e){this.$element=t,this.options=e,r.__super__.constructor.call(this)}return e.Extend(r,e.Observable),r.prototype.render=function(){var e=t('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e,e},r.prototype.bind=function(t,e){var r=this,i=(t.id,t.id+"-results");this.container=t,this.$selection.on("focus",(function(t){r.trigger("focus",t)})),this.$selection.on("blur",(function(t){r._handleBlur(t)})),this.$selection.on("keydown",(function(t){r.trigger("keypress",t),t.which===n.SPACE&&t.preventDefault()})),t.on("results:focus",(function(t){r.$selection.attr("aria-activedescendant",t.data._resultId)})),t.on("selection:update",(function(t){r.update(t.data)})),t.on("open",(function(){r.$selection.attr("aria-expanded","true"),r.$selection.attr("aria-owns",i),r._attachCloseHandler(t)})),t.on("close",(function(){r.$selection.attr("aria-expanded","false"),r.$selection.removeAttr("aria-activedescendant"),r.$selection.removeAttr("aria-owns"),r.$selection.focus(),r._detachCloseHandler(t)})),t.on("enable",(function(){r.$selection.attr("tabindex",r._tabindex)})),t.on("disable",(function(){r.$selection.attr("tabindex","-1")}))},r.prototype._handleBlur=function(e){var n=this;window.setTimeout((function(){document.activeElement==n.$selection[0]||t.contains(n.$selection[0],document.activeElement)||n.trigger("blur",e)}),1)},r.prototype._attachCloseHandler=function(e){t(document.body).on("mousedown.select2."+e.id,(function(e){var n=t(e.target).closest(".select2");t(".select2.select2-container--open").each((function(){var e=t(this);this!=n[0]&&e.data("element").select2("close")}))}))},r.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},r.prototype.position=function(t,e){e.find(".selection").append(t)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},r})),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(t,e,n,r){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,e),i.prototype.render=function(){var t=i.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),t},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",(function(t){1===t.which&&n.trigger("toggle",{originalEvent:t})})),this.$selection.on("focus",(function(t){})),this.$selection.on("blur",(function(t){})),t.on("focus",(function(e){t.isOpen()||n.$selection.focus()})),t.on("selection:update",(function(t){n.update(t.data)}))},i.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},i.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},i.prototype.selectionContainer=function(){return t("<span></span>")},i.prototype.update=function(t){if(0!==t.length){var e=t[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(e,n);n.empty().append(r),n.prop("title",e.title||e.text)}else this.clear()},i})),e.define("select2/selection/multiple",["jquery","./base","../utils"],(function(t,e,n){function r(t,e){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,e),r.prototype.render=function(){var t=r.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('<ul class="select2-selection__rendered"></ul>'),t},r.prototype.bind=function(e,n){var i=this;r.__super__.bind.apply(this,arguments),this.$selection.on("click",(function(t){i.trigger("toggle",{originalEvent:t})})),this.$selection.on("click",".select2-selection__choice__remove",(function(e){if(!i.options.get("disabled")){var n=t(this).parent().data("data");i.trigger("unselect",{originalEvent:e,data:n})}}))},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},r.prototype.selectionContainer=function(){return t('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},r.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],r=0;r<t.length;r++){var i=t[r],o=this.selectionContainer(),a=this.display(i,o);o.append(a),o.prop("title",i.title||i.text),o.data("data",i),e.push(o)}var s=this.$selection.find(".select2-selection__rendered");n.appendMany(s,e)}},r})),e.define("select2/selection/placeholder",["../utils"],(function(t){function e(t,e,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n)}return e.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},e.prototype.createPlaceholder=function(t,e){var n=this.selectionContainer();return n.html(this.display(e)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},e.prototype.update=function(t,e){var n=1==e.length&&e[0].id!=this.placeholder.id;if(e.length>1||n)return t.call(this,e);this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)},e})),e.define("select2/selection/allowClear",["jquery","../keys"],(function(t,e){function n(){}return n.prototype.bind=function(t,e,n){var r=this;t.call(this,e,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(t){r._handleClear(t)})),e.on("keypress",(function(t){r._handleKeyboardClear(t,e)}))},n.prototype._handleClear=function(t,e){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){e.stopPropagation();for(var r=n.data("data"),i=0;i<r.length;i++){var o={data:r[i]};if(this.trigger("unselect",o),o.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},n.prototype._handleKeyboardClear=function(t,n,r){r.isOpen()||n.which!=e.DELETE&&n.which!=e.BACKSPACE||this._handleClear(n)},n.prototype.update=function(e,n){if(e.call(this,n),!(this.$selection.find(".select2-selection__placeholder").length>0||0===n.length)){var r=t('<span class="select2-selection__clear">&times;</span>');r.data("data",n),this.$selection.find(".select2-selection__rendered").prepend(r)}},n})),e.define("select2/selection/search",["jquery","../utils","../keys"],(function(t,e,n){function r(t,e,n){t.call(this,e,n)}return r.prototype.render=function(e){var n=t('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var r=e.call(this);return this._transferTabIndex(),r},r.prototype.bind=function(t,e,r){var i=this;t.call(this,e,r),e.on("open",(function(){i.$search.trigger("focus")})),e.on("close",(function(){i.$search.val(""),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")})),e.on("enable",(function(){i.$search.prop("disabled",!1),i._transferTabIndex()})),e.on("disable",(function(){i.$search.prop("disabled",!0)})),e.on("focus",(function(t){i.$search.trigger("focus")})),e.on("results:focus",(function(t){i.$search.attr("aria-activedescendant",t.id)})),this.$selection.on("focusin",".select2-search--inline",(function(t){i.trigger("focus",t)})),this.$selection.on("focusout",".select2-search--inline",(function(t){i._handleBlur(t)})),this.$selection.on("keydown",".select2-search--inline",(function(t){if(t.stopPropagation(),i.trigger("keypress",t),i._keyUpPrevented=t.isDefaultPrevented(),t.which===n.BACKSPACE&&""===i.$search.val()){var e=i.$searchContainer.prev(".select2-selection__choice");if(e.length>0){var r=e.data("data");i.searchRemoveChoice(r),t.preventDefault()}}}));var o=document.documentMode,a=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(t){a?i.$selection.off("input.search input.searchcheck"):i.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(t){if(a&&"input"===t.type)i.$selection.off("input.search input.searchcheck");else{var e=t.which;e!=n.SHIFT&&e!=n.CTRL&&e!=n.ALT&&e!=n.TAB&&i.handleSearch(t)}}))},r.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},r.prototype.update=function(t,e){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},r.prototype.resizeSearch=function(){this.$search.css("width","25px");var t;t=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").innerWidth():.75*(this.$search.val().length+1)+"em",this.$search.css("width",t)},r})),e.define("select2/selection/eventRelay",["jquery"],(function(t){function e(){}return e.prototype.bind=function(e,n,r){var i=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting"],a=["opening","closing","selecting","unselecting"];e.call(this,n,r),n.on("*",(function(e,n){if(-1!==t.inArray(e,o)){n=n||{};var r=t.Event("select2:"+e,{params:n});i.$element.trigger(r),-1!==t.inArray(e,a)&&(n.prevented=r.isDefaultPrevented())}}))},e})),e.define("select2/translation",["jquery","require"],(function(t,e){function n(t){this.dict=t||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(t){return this.dict[t]},n.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},n._cache={},n.loadPath=function(t){if(!(t in n._cache)){var r=e(t);n._cache[t]=r}return new n(n._cache[t])},n})),e.define("select2/diacritics",[],(function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}})),e.define("select2/data/base",["../utils"],(function(t){function e(t,n){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,n){var r=e.id+"-result-";return r+=t.generateChars(4),null!=n.id?r+="-"+n.id.toString():r+="-"+t.generateChars(4),r},e})),e.define("select2/data/select",["./base","../utils","jquery"],(function(t,e,n){function r(t,e){this.$element=t,this.options=e,r.__super__.constructor.call(this)}return e.Extend(r,t),r.prototype.current=function(t){var e=[],r=this;this.$element.find(":selected").each((function(){var t=n(this),i=r.item(t);e.push(i)})),t(e)},r.prototype.select=function(t){var e=this;if(t.selected=!0,n(t.element).is("option"))return t.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current((function(r){var i=[];(t=[t]).push.apply(t,r);for(var o=0;o<t.length;o++){var a=t[o].id;-1===n.inArray(a,i)&&i.push(a)}e.$element.val(i),e.$element.trigger("change")}));else{var r=t.id;this.$element.val(r),this.$element.trigger("change")}},r.prototype.unselect=function(t){var e=this;if(this.$element.prop("multiple")){if(t.selected=!1,n(t.element).is("option"))return t.element.selected=!1,void this.$element.trigger("change");this.current((function(r){for(var i=[],o=0;o<r.length;o++){var a=r[o].id;a!==t.id&&-1===n.inArray(a,i)&&i.push(a)}e.$element.val(i),e.$element.trigger("change")}))}},r.prototype.bind=function(t,e){var n=this;this.container=t,t.on("select",(function(t){n.select(t.data)})),t.on("unselect",(function(t){n.unselect(t.data)}))},r.prototype.destroy=function(){this.$element.find("*").each((function(){n.removeData(this,"data")}))},r.prototype.query=function(t,e){var r=[],i=this;this.$element.children().each((function(){var e=n(this);if(e.is("option")||e.is("optgroup")){var o=i.item(e),a=i.matches(t,o);null!==a&&r.push(a)}})),e({results:r})},r.prototype.addOptions=function(t){e.appendMany(this.$element,t)},r.prototype.option=function(t){var e;t.children?(e=document.createElement("optgroup")).label=t.text:void 0!==(e=document.createElement("option")).textContent?e.textContent=t.text:e.innerText=t.text,void 0!==t.id&&(e.value=t.id),t.disabled&&(e.disabled=!0),t.selected&&(e.selected=!0),t.title&&(e.title=t.title);var r=n(e),i=this._normalizeItem(t);return i.element=e,n.data(e,"data",i),r},r.prototype.item=function(t){var e={};if(null!=(e=n.data(t[0],"data")))return e;if(t.is("option"))e={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if(t.is("optgroup")){e={text:t.prop("label"),children:[],title:t.prop("title")};for(var r=t.children("option"),i=[],o=0;o<r.length;o++){var a=n(r[o]),s=this.item(a);i.push(s)}e.children=i}return(e=this._normalizeItem(e)).element=t[0],n.data(t[0],"data",e),e},r.prototype._normalizeItem=function(t){return n.isPlainObject(t)||(t={id:t,text:t}),null!=(t=n.extend({},{text:""},t)).id&&(t.id=t.id.toString()),null!=t.text&&(t.text=t.text.toString()),null==t._resultId&&t.id&&null!=this.container&&(t._resultId=this.generateResultId(this.container,t)),n.extend({},{selected:!1,disabled:!1},t)},r.prototype.matches=function(t,e){return this.options.get("matcher")(t,e)},r})),e.define("select2/data/array",["./select","../utils","jquery"],(function(t,e,n){function r(t,e){var n=e.get("data")||[];r.__super__.constructor.call(this,t,e),this.addOptions(this.convertToOptions(n))}return e.Extend(r,t),r.prototype.select=function(t){var e=this.$element.find("option").filter((function(e,n){return n.value==t.id.toString()}));0===e.length&&(e=this.option(t),this.addOptions(e)),r.__super__.select.call(this,t)},r.prototype.convertToOptions=function(t){var r=this,i=this.$element.find("option"),o=i.map((function(){return r.item(n(this)).id})).get(),a=[];function s(t){return function(){return n(this).val()==t.id}}for(var u=0;u<t.length;u++){var c=this._normalizeItem(t[u]);if(n.inArray(c.id,o)>=0){var l=i.filter(s(c)),f=this.item(l),h=n.extend(!0,{},c,f),p=this.option(h);l.replaceWith(p)}else{var d=this.option(c);if(c.children){var v=this.convertToOptions(c.children);e.appendMany(d,v)}a.push(d)}}return a},r})),e.define("select2/data/ajax",["./array","../utils","jquery"],(function(t,e,n){function r(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),r.__super__.constructor.call(this,t,e)}return e.Extend(r,t),r.prototype._applyDefaults=function(t){var e={data:function(t){return n.extend({},t,{q:t.term})},transport:function(t,e,r){var i=n.ajax(t);return i.then(e),i.fail(r),i}};return n.extend({},e,t,!0)},r.prototype.processResults=function(t){return t},r.prototype.query=function(t,e){var r=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var i=n.extend({type:"GET"},this.ajaxOptions);function o(){var o=i.transport(i,(function(i){var o=r.processResults(i,t);r.options.get("debug")&&window.console&&console.error&&(o&&o.results&&n.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(o)}),(function(){o.status&&"0"===o.status||r.trigger("results:message",{message:"errorLoading"})}));r._request=o}"function"==typeof i.url&&(i.url=i.url.call(this.$element,t)),"function"==typeof i.data&&(i.data=i.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(o,this.ajaxOptions.delay)):o()},r})),e.define("select2/data/tags",["jquery"],(function(t){function e(e,n,r){var i=r.get("tags"),o=r.get("createTag");void 0!==o&&(this.createTag=o);var a=r.get("insertTag");if(void 0!==a&&(this.insertTag=a),e.call(this,n,r),t.isArray(i))for(var s=0;s<i.length;s++){var u=i[s],c=this._normalizeItem(u),l=this.option(c);this.$element.append(l)}}return e.prototype.query=function(t,e,n){var r=this;this._removeOldTags(),null!=e.term&&null==e.page?t.call(this,e,(function t(i,o){for(var a=i.results,s=0;s<a.length;s++){var u=a[s],c=null!=u.children&&!t({results:u.children},!0);if((u.text||"").toUpperCase()===(e.term||"").toUpperCase()||c)return!o&&(i.data=a,void n(i))}if(o)return!0;var l=r.createTag(e);if(null!=l){var f=r.option(l);f.attr("data-select2-tag",!0),r.addOptions([f]),r.insertTag(a,l)}i.results=a,n(i)})):t.call(this,e,n)},e.prototype.createTag=function(e,n){var r=t.trim(n.term);return""===r?null:{id:r,text:r}},e.prototype.insertTag=function(t,e,n){e.unshift(n)},e.prototype._removeOldTags=function(e){this._lastTag,this.$element.find("option[data-select2-tag]").each((function(){this.selected||t(this).remove()}))},e})),e.define("select2/data/tokenizer",["jquery"],(function(t){function e(t,e,n){var r=n.get("tokenizer");void 0!==r&&(this.tokenizer=r),t.call(this,e,n)}return e.prototype.bind=function(t,e,n){t.call(this,e,n),this.$search=e.dropdown.$search||e.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,n,r){var i=this;n.term=n.term||"";var o=this.tokenizer(n,this.options,(function(e){var n=i._normalizeItem(e);if(!i.$element.find("option").filter((function(){return t(this).val()===n.id})).length){var r=i.option(n);r.attr("data-select2-tag",!0),i._removeOldTags(),i.addOptions([r])}!function(t){i.trigger("select",{data:t})}(n)}));o.term!==n.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.focus()),n.term=o.term),e.call(this,n,r)},e.prototype.tokenizer=function(e,n,r,i){for(var o=r.get("tokenSeparators")||[],a=n.term,s=0,u=this.createTag||function(t){return{id:t.term,text:t.term}};s<a.length;){var c=a[s];if(-1!==t.inArray(c,o)){var l=a.substr(0,s),f=u(t.extend({},n,{term:l}));null!=f?(i(f),a=a.substr(s+1)||"",s=0):s++}else s++}return{term:a}},e})),e.define("select2/data/minimumInputLength",[],(function(){function t(t,e,n){this.minimumInputLength=n.get("minimumInputLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){e.term=e.term||"",e.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:e.term,params:e}}):t.call(this,e,n)},t})),e.define("select2/data/maximumInputLength",[],(function(){function t(t,e,n){this.maximumInputLength=n.get("maximumInputLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){e.term=e.term||"",this.maximumInputLength>0&&e.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):t.call(this,e,n)},t})),e.define("select2/data/maximumSelectionLength",[],(function(){function t(t,e,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){var r=this;this.current((function(i){var o=null!=i?i.length:0;r.maximumSelectionLength>0&&o>=r.maximumSelectionLength?r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):t.call(r,e,n)}))},t})),e.define("select2/dropdown",["jquery","./utils"],(function(t,e){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e,e},n.prototype.bind=function(){},n.prototype.position=function(t,e){},n.prototype.destroy=function(){this.$dropdown.remove()},n})),e.define("select2/dropdown/search",["jquery","../utils"],(function(t,e){function n(){}return n.prototype.render=function(e){var n=e.call(this),r=t('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=r,this.$search=r.find("input"),n.prepend(r),n},n.prototype.bind=function(e,n,r){var i=this;e.call(this,n,r),this.$search.on("keydown",(function(t){i.trigger("keypress",t),i._keyUpPrevented=t.isDefaultPrevented()})),this.$search.on("input",(function(e){t(this).off("keyup")})),this.$search.on("keyup input",(function(t){i.handleSearch(t)})),n.on("open",(function(){i.$search.attr("tabindex",0),i.$search.focus(),window.setTimeout((function(){i.$search.focus()}),0)})),n.on("close",(function(){i.$search.attr("tabindex",-1),i.$search.val("")})),n.on("focus",(function(){n.isOpen()||i.$search.focus()})),n.on("results:all",(function(t){null!=t.query.term&&""!==t.query.term||(i.showSearch(t)?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide"))}))},n.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},n.prototype.showSearch=function(t,e){return!0},n})),e.define("select2/dropdown/hidePlaceholder",[],(function(){function t(t,e,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n,r)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var n=e.slice(0),r=e.length-1;r>=0;r--){var i=e[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},t})),e.define("select2/dropdown/infiniteScroll",["jquery"],(function(t){function e(t,e,n,r){this.lastParams={},t.call(this,e,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,n,r){var i=this;e.call(this,n,r),n.on("query",(function(t){i.lastParams=t,i.loading=!0})),n.on("query:append",(function(t){i.lastParams=t,i.loading=!0})),this.$results.on("scroll",(function(){var e=t.contains(document.documentElement,i.$loadingMore[0]);!i.loading&&e&&i.$results.offset().top+i.$results.outerHeight(!1)+50>=i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1)&&i.loadMore()}))},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return e.html(n(this.lastParams)),e},e})),e.define("select2/dropdown/attachBody",["jquery","../utils"],(function(t,e){function n(e,n,r){this.$dropdownParent=r.get("dropdownParent")||t(document.body),e.call(this,n,r)}return n.prototype.bind=function(t,e,n){var r=this,i=!1;t.call(this,e,n),e.on("open",(function(){r._showDropdown(),r._attachPositioningHandler(e),i||(i=!0,e.on("results:all",(function(){r._positionDropdown(),r._resizeDropdown()})),e.on("results:append",(function(){r._positionDropdown(),r._resizeDropdown()})))})),e.on("close",(function(){r._hideDropdown(),r._detachPositioningHandler(e)})),this.$dropdownContainer.on("mousedown",(function(t){t.stopPropagation()}))},n.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(t,e,n){e.attr("class",n.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(e){var n=t("<span></span>"),r=e.call(this);return n.append(r),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},n.prototype._attachPositioningHandler=function(n,r){var i=this,o="scroll.select2."+r.id,a="resize.select2."+r.id,s="orientationchange.select2."+r.id,u=this.$container.parents().filter(e.hasScroll);u.each((function(){t(this).data("select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})})),u.on(o,(function(e){var n=t(this).data("select2-scroll-position");t(this).scrollTop(n.y)})),t(window).on(o+" "+a+" "+s,(function(t){i._positionDropdown(),i._resizeDropdown()}))},n.prototype._detachPositioningHandler=function(n,r){var i="scroll.select2."+r.id,o="resize.select2."+r.id,a="orientationchange.select2."+r.id;this.$container.parents().filter(e.hasScroll).off(i),t(window).off(i+" "+o+" "+a)},n.prototype._positionDropdown=function(){var e=t(window),n=this.$dropdown.hasClass("select2-dropdown--above"),r=this.$dropdown.hasClass("select2-dropdown--below"),i=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=o.top,a.bottom=o.top+a.height;var s=this.$dropdown.outerHeight(!1),u=e.scrollTop(),c=e.scrollTop()+e.height(),l=u<o.top-s,f=c>o.bottom+s,h={left:o.left,top:a.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var d=p.offset();h.top-=d.top,h.left-=d.left,n||r||(i="below"),f||!l||n?!l&&f&&n&&(i="below"):i="above",("above"==i||n&&"below"!==i)&&(h.top=a.top-d.top-s),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(h)},n.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},n.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n})),e.define("select2/dropdown/minimumResultsForSearch",[],(function(){function t(t,e,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,n,r)}return t.prototype.showSearch=function(t,e){return!(function t(e){for(var n=0,r=0;r<e.length;r++){var i=e[r];i.children?n+=t(i.children):n++}return n}(e.data.results)<this.minimumResultsForSearch)&&t.call(this,e)},t})),e.define("select2/dropdown/selectOnClose",[],(function(){function t(){}return t.prototype.bind=function(t,e,n){var r=this;t.call(this,e,n),e.on("close",(function(t){r._handleSelectOnClose(t)}))},t.prototype._handleSelectOnClose=function(t,e){if(e&&null!=e.originalSelect2Event){var n=e.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var i=r.data("data");null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})}},t})),e.define("select2/dropdown/closeOnSelect",[],(function(){function t(){}return t.prototype.bind=function(t,e,n){var r=this;t.call(this,e,n),e.on("select",(function(t){r._selectTriggered(t)})),e.on("unselect",(function(t){r._selectTriggered(t)}))},t.prototype._selectTriggered=function(t,e){var n=e.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:e})},t})),e.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var e=t.input.length-t.maximum,n="Please delete "+e+" character";return 1!=e&&(n+="s"),n},inputTooShort:function(t){return"Please enter "+(t.minimum-t.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){var e="You can only select "+t.maximum+" item";return 1!=t.maximum&&(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}})),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],(function(t,e,n,r,i,o,a,s,u,c,l,f,h,p,d,v,m,g,$,y,b,w,O,x,C,S,_,E,j){function A(){this.reset()}return A.prototype.apply=function(f){if(null==(f=t.extend(!0,{},this.defaults,f)).dataAdapter){if(null!=f.ajax?f.dataAdapter=d:null!=f.data?f.dataAdapter=p:f.dataAdapter=h,f.minimumInputLength>0&&(f.dataAdapter=c.Decorate(f.dataAdapter,g)),f.maximumInputLength>0&&(f.dataAdapter=c.Decorate(f.dataAdapter,$)),f.maximumSelectionLength>0&&(f.dataAdapter=c.Decorate(f.dataAdapter,y)),f.tags&&(f.dataAdapter=c.Decorate(f.dataAdapter,v)),null==f.tokenSeparators&&null==f.tokenizer||(f.dataAdapter=c.Decorate(f.dataAdapter,m)),null!=f.query){var j=e(f.amdBase+"compat/query");f.dataAdapter=c.Decorate(f.dataAdapter,j)}if(null!=f.initSelection){var A=e(f.amdBase+"compat/initSelection");f.dataAdapter=c.Decorate(f.dataAdapter,A)}}if(null==f.resultsAdapter&&(f.resultsAdapter=n,null!=f.ajax&&(f.resultsAdapter=c.Decorate(f.resultsAdapter,x)),null!=f.placeholder&&(f.resultsAdapter=c.Decorate(f.resultsAdapter,O)),f.selectOnClose&&(f.resultsAdapter=c.Decorate(f.resultsAdapter,_))),null==f.dropdownAdapter){if(f.multiple)f.dropdownAdapter=b;else{var k=c.Decorate(b,w);f.dropdownAdapter=k}if(0!==f.minimumResultsForSearch&&(f.dropdownAdapter=c.Decorate(f.dropdownAdapter,S)),f.closeOnSelect&&(f.dropdownAdapter=c.Decorate(f.dropdownAdapter,E)),null!=f.dropdownCssClass||null!=f.dropdownCss||null!=f.adaptDropdownCssClass){var T=e(f.amdBase+"compat/dropdownCss");f.dropdownAdapter=c.Decorate(f.dropdownAdapter,T)}f.dropdownAdapter=c.Decorate(f.dropdownAdapter,C)}if(null==f.selectionAdapter){if(f.multiple?f.selectionAdapter=i:f.selectionAdapter=r,null!=f.placeholder&&(f.selectionAdapter=c.Decorate(f.selectionAdapter,o)),f.allowClear&&(f.selectionAdapter=c.Decorate(f.selectionAdapter,a)),f.multiple&&(f.selectionAdapter=c.Decorate(f.selectionAdapter,s)),null!=f.containerCssClass||null!=f.containerCss||null!=f.adaptContainerCssClass){var R=e(f.amdBase+"compat/containerCss");f.selectionAdapter=c.Decorate(f.selectionAdapter,R)}f.selectionAdapter=c.Decorate(f.selectionAdapter,u)}if("string"==typeof f.language)if(f.language.indexOf("-")>0){var P=f.language.split("-")[0];f.language=[f.language,P]}else f.language=[f.language];if(t.isArray(f.language)){var D=new l;f.language.push("en");for(var I=f.language,M=0;M<I.length;M++){var V=I[M],N={};try{N=l.loadPath(V)}catch(t){try{V=this.defaults.amdLanguageBase+V,N=l.loadPath(V)}catch(t){f.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+V+'" could not be automatically loaded. A fallback will be used instead.');continue}}D.extend(N)}f.translations=D}else{var U=l.loadPath(this.defaults.amdLanguageBase+"en"),L=new l(f.language);L.extend(U),f.translations=L}return f},A.prototype.reset=function(){function e(t){return t.replace(/[^\u0000-\u007E]/g,(function(t){return f[t]||t}))}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:j,matcher:function n(r,i){if(""===t.trim(r.term))return i;if(i.children&&i.children.length>0){for(var o=t.extend(!0,{},i),a=i.children.length-1;a>=0;a--)null==n(r,i.children[a])&&o.children.splice(a,1);return o.children.length>0?o:n(r,o)}var s=e(i.text).toUpperCase(),u=e(r.term).toUpperCase();return s.indexOf(u)>-1?i:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},A.prototype.set=function(e,n){var r={};r[t.camelCase(e)]=n;var i=c._convertData(r);t.extend(this.defaults,i)},new A})),e.define("select2/options",["require","jquery","./defaults","./utils"],(function(t,e,n,r){function i(e,i){if(this.options=e,null!=i&&this.fromElement(i),this.options=n.apply(this.options),i&&i.is("input")){var o=t(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,o)}}return i.prototype.fromElement=function(t){var n=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.language&&(t.prop("lang")?this.options.language=t.prop("lang").toLowerCase():t.closest("[lang]").prop("lang")&&(this.options.language=t.closest("[lang]").prop("lang"))),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),t.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),t.data("data",t.data("select2Tags")),t.data("tags",!0)),t.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",t.data("ajaxUrl")),t.data("ajax--url",t.data("ajaxUrl")));var i;i=e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset?e.extend(!0,{},t[0].dataset,t.data()):t.data();var o=e.extend(!0,{},i);for(var a in o=r._convertData(o))e.inArray(a,n)>-1||(e.isPlainObject(this.options[a])?e.extend(this.options[a],o[a]):this.options[a]=o[a]);return this},i.prototype.get=function(t){return this.options[t]},i.prototype.set=function(t,e){this.options[t]=e},i})),e.define("select2/core",["jquery","./options","./utils","./keys"],(function(t,e,n,r){var i=function(t,n){null!=t.data("select2")&&t.data("select2").destroy(),this.$element=t,this.id=this._generateId(t),n=n||{},this.options=new e(n,t),i.__super__.constructor.call(this);var r=t.attr("tabindex")||0;t.data("old-tabindex",r),t.attr("tabindex","-1");var o=this.options.get("dataAdapter");this.dataAdapter=new o(t,this.options);var a=this.render();this._placeContainer(a);var s=this.options.get("selectionAdapter");this.selection=new s(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var u=this.options.get("dropdownAdapter");this.dropdown=new u(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var c=this.options.get("resultsAdapter");this.results=new c(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(t){l.trigger("selection:update",{data:t})})),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),t.data("select2",this)};return n.Extend(i,n.Observable),i.prototype._generateId=function(t){return"select2-"+(null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},i.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},i.prototype._resolveWidth=function(t,e){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var r=this._resolveWidth(t,"style");return null!=r?r:this._resolveWidth(t,"element")}if("element"==e){var i=t.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"==e){var o=t.attr("style");if("string"!=typeof o)return null;for(var a=o.split(";"),s=0,u=a.length;s<u;s+=1){var c=a[s].replace(/\s/g,"").match(n);if(null!==c&&c.length>=1)return c[1]}return null}return e},i.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},i.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",(function(){e.dataAdapter.current((function(t){e.trigger("selection:update",{data:t})}))})),this.$element.on("focus.select2",(function(t){e.trigger("focus",t)})),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=r?(this._observer=new r((function(n){t.each(n,e._syncA),t.each(n,e._syncS)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",e._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",e._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",e._syncS,!1))},i.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",(function(e,n){t.trigger(e,n)}))},i.prototype._registerSelectionEvents=function(){var e=this,n=["toggle","focus"];this.selection.on("toggle",(function(){e.toggleDropdown()})),this.selection.on("focus",(function(t){e.focus(t)})),this.selection.on("*",(function(r,i){-1===t.inArray(r,n)&&e.trigger(r,i)}))},i.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",(function(e,n){t.trigger(e,n)}))},i.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",(function(e,n){t.trigger(e,n)}))},i.prototype._registerEvents=function(){var t=this;this.on("open",(function(){t.$container.addClass("select2-container--open")})),this.on("close",(function(){t.$container.removeClass("select2-container--open")})),this.on("enable",(function(){t.$container.removeClass("select2-container--disabled")})),this.on("disable",(function(){t.$container.addClass("select2-container--disabled")})),this.on("blur",(function(){t.$container.removeClass("select2-container--focus")})),this.on("query",(function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,(function(n){t.trigger("results:all",{data:n,query:e})}))})),this.on("query:append",(function(e){this.dataAdapter.query(e,(function(n){t.trigger("results:append",{data:n,query:e})}))})),this.on("keypress",(function(e){var n=e.which;t.isOpen()?n===r.ESC||n===r.TAB||n===r.UP&&e.altKey?(t.close(),e.preventDefault()):n===r.ENTER?(t.trigger("results:select",{}),e.preventDefault()):n===r.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):n===r.UP?(t.trigger("results:previous",{}),e.preventDefault()):n===r.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(n===r.ENTER||n===r.SPACE||n===r.DOWN&&e.altKey)&&(t.open(),e.preventDefault())}))},i.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},i.prototype._syncSubtree=function(t,e){var n=!1,r=this;if(!t||!t.target||"OPTION"===t.target.nodeName||"OPTGROUP"===t.target.nodeName){if(e)if(e.addedNodes&&e.addedNodes.length>0)for(var i=0;i<e.addedNodes.length;i++)e.addedNodes[i].selected&&(n=!0);else e.removedNodes&&e.removedNodes.length>0&&(n=!0);else n=!0;n&&this.dataAdapter.current((function(t){r.trigger("selection:update",{data:t})}))}},i.prototype.trigger=function(t,e){var n=i.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===e&&(e={}),t in r){var o=r[t],a={prevented:!1,name:t,args:e};if(n.call(this,o,a),a.prevented)return void(e.prevented=!0)}n.call(this,t,e)},i.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},i.prototype.open=function(){this.isOpen()||this.trigger("query",{})},i.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},i.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},i.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},i.prototype.focus=function(t){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},i.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=t&&0!==t.length||(t=[!0]);var e=!t[0];this.$element.prop("disabled",e)},i.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current((function(e){t=e})),t},i.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var n=e[0];t.isArray(n)&&(n=t.map(n,(function(t){return t.toString()}))),this.$element.val(n).trigger("change")},i.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},i.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),e.data("element",this.$element),e},i})),e.define("jquery-mousewheel",["jquery"],(function(t){return t})),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],(function(t,e,n,r){if(null==t.fn.select2){var i=["open","close","destroy"];t.fn.select2=function(e){if("object"==typeof(e=e||{}))return this.each((function(){var r=t.extend(!0,{},e);new n(t(this),r)})),this;if("string"==typeof e){var r,o=Array.prototype.slice.call(arguments,1);return this.each((function(){var n=t(this).data("select2");null==n&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),r=n[e].apply(n,o)})),t.inArray(e,i)>-1?this:r}throw new Error("Invalid arguments for Select2: "+e)}}return null==t.fn.select2.defaults&&(t.fn.select2.defaults=r),n})),{define:e.define,require:e.require};var n,r,i}(),n=e.require("jquery.select2");return t.fn.select2.amd=e,n})?r.apply(e,i):r)||(t.exports=o)}]);

Youez - 2016 - github.com/yon3zu
LinuXploit