taiga-front-dist/dist/v-1476536352617/js/libs.js

28 lines
787 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

function hex_sha1(t){return binb2hex(core_sha1(str2binb(t),t.length*chrsz))}function b64_sha1(t){return binb2b64(core_sha1(str2binb(t),t.length*chrsz))}function str_sha1(t){return binb2str(core_sha1(str2binb(t),t.length*chrsz))}function hex_hmac_sha1(t,e){return binb2hex(core_hmac_sha1(t,e))}function b64_hmac_sha1(t,e){return binb2b64(core_hmac_sha1(t,e))}function str_hmac_sha1(t,e){return binb2str(core_hmac_sha1(t,e))}function sha1_vm_test(){return"a9993e364706816aba3e25717850c26c9cd0d89d"==hex_sha1("abc")}function core_sha1(t,e){t[e>>5]|=128<<24-e%32,t[(e+64>>9<<4)+15]=e;for(var n=Array(80),r=1732584193,i=-271733879,o=-1732584194,a=271733878,s=-1009589776,u=0;u<t.length;u+=16){for(var l=r,c=i,f=o,h=a,p=s,d=0;d<80;d++){d<16?n[d]=t[u+d]:n[d]=rol(n[d-3]^n[d-8]^n[d-14]^n[d-16],1);var v=safe_add(safe_add(rol(r,5),sha1_ft(d,i,o,a)),safe_add(safe_add(s,n[d]),sha1_kt(d)));s=a,a=o,o=rol(i,30),i=r,r=v}r=safe_add(r,l),i=safe_add(i,c),o=safe_add(o,f),a=safe_add(a,h),s=safe_add(s,p)}return Array(r,i,o,a,s)}function sha1_ft(t,e,n,r){return t<20?e&n|~e&r:t<40?e^n^r:t<60?e&n|e&r|n&r:e^n^r}function sha1_kt(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function core_hmac_sha1(t,e){var n=str2binb(t);n.length>16&&(n=core_sha1(n,t.length*chrsz));for(var r=Array(16),i=Array(16),o=0;o<16;o++)r[o]=909522486^n[o],i[o]=1549556828^n[o];var a=core_sha1(r.concat(str2binb(e)),512+e.length*chrsz);return core_sha1(i.concat(a),672)}function safe_add(t,e){var n=(65535&t)+(65535&e),r=(t>>16)+(e>>16)+(n>>16);return r<<16|65535&n}function rol(t,e){return t<<e|t>>>32-e}function str2binb(t){for(var e=Array(),n=(1<<chrsz)-1,r=0;r<t.length*chrsz;r+=chrsz)e[r>>5]|=(t.charCodeAt(r/chrsz)&n)<<32-chrsz-r%32;return e}function binb2str(t){for(var e="",n=(1<<chrsz)-1,r=0;r<32*t.length;r+=chrsz)e+=String.fromCharCode(t[r>>5]>>>32-chrsz-r%32&n);return e}function binb2hex(t){for(var e=hexcase?"0123456789ABCDEF":"0123456789abcdef",n="",r=0;r<4*t.length;r++)n+=e.charAt(t[r>>2]>>8*(3-r%4)+4&15)+e.charAt(t[r>>2]>>8*(3-r%4)&15);return n}function binb2b64(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="",r=0;r<4*t.length;r+=3)for(var i=(t[r>>2]>>8*(3-r%4)&255)<<16|(t[r+1>>2]>>8*(3-(r+1)%4)&255)<<8|t[r+2>>2]>>8*(3-(r+2)%4)&255,o=0;o<4;o++)n+=8*r+6*o>32*t.length?b64pad:e.charAt(i>>6*(3-o)&63);return n}function murmurhash3_32_gc(t,e){var n,r,i,o,a,s,u,l;for(n=3&t.length,r=t.length-n,i=e,a=3432918353,s=461845907,l=0;l<r;)u=255&t.charCodeAt(l)|(255&t.charCodeAt(++l))<<8|(255&t.charCodeAt(++l))<<16|(255&t.charCodeAt(++l))<<24,++l,u=(65535&u)*a+(((u>>>16)*a&65535)<<16)&4294967295,u=u<<15|u>>>17,u=(65535&u)*s+(((u>>>16)*s&65535)<<16)&4294967295,i^=u,i=i<<13|i>>>19,o=5*(65535&i)+((5*(i>>>16)&65535)<<16)&4294967295,i=(65535&o)+27492+(((o>>>16)+58964&65535)<<16);switch(u=0,n){case 3:u^=(255&t.charCodeAt(l+2))<<16;case 2:u^=(255&t.charCodeAt(l+1))<<8;case 1:u^=255&t.charCodeAt(l),u=(65535&u)*a+(((u>>>16)*a&65535)<<16)&4294967295,u=u<<15|u>>>17,u=(65535&u)*s+(((u>>>16)*s&65535)<<16)&4294967295,i^=u}return i^=t.length,i^=i>>>16,i=2246822507*(65535&i)+((2246822507*(i>>>16)&65535)<<16)&4294967295,i^=i>>>13,i=3266489909*(65535&i)+((3266489909*(i>>>16)&65535)<<16)&4294967295,i^=i>>>16,i>>>0}!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.Promise=t()}}(function(){var t,e,n;return function r(t,e,n){function i(a,s){if(!e[a]){if(!t[a]){var u="function"==typeof _dereq_&&_dereq_;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=e[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n?n:e)},c,c.exports,r,t,e,n)}return e[a].exports}for(var o="function"==typeof _dereq_&&_dereq_,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(t,e,n){"use strict";e.exports=function(t){function e(t){var e=new n(t),r=e.promise();return e.setHowMany(1),e.setUnwrap(),e.init(),r}var n=t._SomePromiseArray;t.any=function(t){return e(t)},t.prototype.any=function(){return e(this)}}},{}],2:[function(t,e,n){"use strict";function r(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new c(16),this._normalQueue=new c(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var t=this;this.drainQueues=function(){t._drainQueues()},this._schedule=l}function i(t,e,n){this._lateQueue.push(t,e,n),this._queueTick()}function o(t,e,n){this._normalQueue.push(t,e,n),this._queueTick()}function a(t){this._normalQueue._pushOne(t),this._queueTick()}var s;try{throw new Error}catch(u){s=u}var l=t("./schedule"),c=t("./queue"),f=t("./util");r.prototype.setScheduler=function(t){var e=this._schedule;return this._schedule=t,this._customScheduler=!0,e},r.prototype.hasCustomScheduler=function(){return this._customScheduler},r.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},r.prototype.disableTrampolineIfNecessary=function(){f.hasDevTools&&(this._trampolineEnabled=!1)},r.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},r.prototype.fatalError=function(t,e){e?(process.stderr.write("Fatal "+(t instanceof Error?t.stack:t)+"\n"),process.exit(2)):this.throwLater(t)},r.prototype.throwLater=function(t,e){if(1===arguments.length&&(e=t,t=function(){throw e}),"undefined"!=typeof setTimeout)setTimeout(function(){t(e)},0);else try{this._schedule(function(){t(e)})}catch(n){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},f.hasDevTools?(r.prototype.invokeLater=function(t,e,n){this._trampolineEnabled?i.call(this,t,e,n):this._schedule(function(){setTimeout(function(){t.call(e,n)},100)})},r.prototype.invoke=function(t,e,n){this._trampolineEnabled?o.call(this,t,e,n):this._schedule(function(){t.call(e,n)})},r.prototype.settlePromises=function(t){this._trampolineEnabled?a.call(this,t):this._schedule(function(){t._settlePromises()})}):(r.prototype.invokeLater=i,r.prototype.invoke=o,r.prototype.settlePromises=a),r.prototype.invokeFirst=function(t,e,n){this._normalQueue.unshift(t,e,n),this._queueTick()},r.prototype._drainQueue=function(t){for(;t.length()>0;){var e=t.shift();if("function"==typeof e){var n=t.shift(),r=t.shift();e.call(n,r)}else e._settlePromises()}},r.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},r.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},r.prototype._reset=function(){this._isTickUsed=!1},e.exports=r,e.exports.firstLineError=s},{"./queue":26,"./schedule":29,"./util":36}],3:[function(t,e,n){"use strict";e.exports=function(t,e,n,r){var i=!1,o=function(t,e){this._reject(e)},a=function(t,e){e.promiseRejectionQueued=!0,e.bindingPromise._then(o,o,null,this,t)},s=function(t,e){0===(50397184&this._bitField)&&this._resolveCallback(e.target)},u=function(t,e){e.promiseRejectionQueued||this._reject(t)};t.prototype.bind=function(o){i||(i=!0,t.prototype._propagateFrom=r.propagateFromFunction(),t.prototype._boundValue=r.boundValueFunction());var l=n(o),c=new t(e);c._propagateFrom(this,1);var f=this._target();if(c._setBoundTo(l),l instanceof t){var h={promiseRejectionQueued:!1,promise:c,target:f,bindingPromise:l};f._then(e,a,void 0,c,h),l._then(s,u,void 0,c,h),c._setOnCancel(l)}else c._resolveCallback(f);return c},t.prototype._setBoundTo=function(t){void 0!==t?(this._bitField=2097152|this._bitField,this._boundTo=t):this._bitField=this._bitField&-2097153},t.prototype._isBound=function(){return 2097152===(2097152&this._bitField)},t.bind=function(e,n){return t.resolve(n).bind(e)}}},{}],4:[function(t,e,n){"use strict";function r(){try{Promise===o&&(Promise=i)}catch(t){}return o}var i;"undefined"!=typeof Promise&&(i=Promise);var o=t("./promise")();o.noConflict=r,e.exports=o},{"./promise":22}],5:[function(t,e,n){"use strict";var r=Object.create;if(r){var i=r(null),o=r(null);i[" size"]=o[" size"]=0}e.exports=function(e){function n(t,n){var r;if(null!=t&&(r=t[n]),"function"!=typeof r){var i="Object "+s.classString(t)+" has no method '"+s.toString(n)+"'";throw new e.TypeError(i)}return r}function r(t){var e=this.pop(),r=n(t,e);return r.apply(t,this)}function i(t){return t[this]}function o(t){var e=+this;return e<0&&(e=Math.max(0,e+t.length)),t[e]}var a,s=t("./util"),u=s.canEvaluate;s.isIdentifier;e.prototype.call=function(t){var e=[].slice.call(arguments,1);return e.push(t),this._then(r,void 0,void 0,e,void 0)},e.prototype.get=function(t){var e,n="number"==typeof t;if(n)e=o;else if(u){var r=a(t);e=null!==r?r:i}else e=i;return this._then(e,void 0,void 0,t,void 0)}}},{"./util":36}],6:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){var o=t("./util"),a=o.tryCatch,s=o.errorObj,u=e._async;e.prototype["break"]=e.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var t=this,e=t;t.isCancellable();){if(!t._cancelBy(e)){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}var n=t._cancellationParent;if(null==n||!n.isCancellable()){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}t._isFollowing()&&t._followee().cancel(),e=t,t=n}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(t){return t===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},e.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},e.prototype._cancel=function(){this.isCancellable()&&(this._setCancelled(),u.invoke(this._cancelPromises,this,void 0))},e.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(t,e){if(o.isArray(t))for(var n=0;n<t.length;++n)this._doInvokeOnCancel(t[n],e);else if(void 0!==t)if("function"==typeof t){if(!e){var r=a(t).call(this._boundValue());r===s&&(this._attachExtraTrace(r.e),u.throwLater(r.e))}}else t._resultCancelled(this)},e.prototype._invokeOnCancel=function(){var t=this._onCancel();this._unsetOnCancel(),u.invoke(this._doInvokeOnCancel,this,t)},e.prototype._invokeInternalOnCancel=function(){this.isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},e.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(t,e,n){"use strict";e.exports=function(e){function n(t,n,s){return function(u){var l=s._boundValue();t:for(var c=0;c<t.length;++c){var f=t[c];if(f===Error||null!=f&&f.prototype instanceof Error){if(u instanceof f)return o(n).call(l,u)}else if("function"==typeof f){var h=o(f).call(l,u);if(h===a)return h;if(h)return o(n).call(l,u)}else if(r.isObject(u)){for(var p=i(f),d=0;d<p.length;++d){var v=p[d];if(f[v]!=u[v])continue t}return o(n).call(l,u)}}return e}}var r=t("./util"),i=t("./es5").keys,o=r.tryCatch,a=r.errorObj;return n}},{"./es5":13,"./util":36}],8:[function(t,e,n){"use strict";e.exports=function(t){function e(){this._trace=new e.CapturedTrace(r())}function n(){if(i)return new e}function r(){var t=o.length-1;if(t>=0)return o[t]}var i=!1,o=[];return t.prototype._promiseCreated=function(){},t.prototype._pushContext=function(){},t.prototype._popContext=function(){return null},t._peekContext=t.prototype._peekContext=function(){},e.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,o.push(this._trace))},e.prototype._popContext=function(){if(void 0!==this._trace){var t=o.pop(),e=t._promiseCreated;return t._promiseCreated=null,e}return null},e.CapturedTrace=null,e.create=n,e.deactivateLongStackTraces=function(){},e.activateLongStackTraces=function(){var n=t.prototype._pushContext,o=t.prototype._popContext,a=t._peekContext,s=t.prototype._peekContext,u=t.prototype._promiseCreated;e.deactivateLongStackTraces=function(){t.prototype._pushContext=n,t.prototype._popContext=o,t._peekContext=a,t.prototype._peekContext=s,t.prototype._promiseCreated=u,i=!1},i=!0,t.prototype._pushContext=e.prototype._pushContext,t.prototype._popContext=e.prototype._popContext,t._peekContext=t.prototype._peekContext=r,t.prototype._promiseCreated=function(){var t=this._peekContext();t&&null==t._promiseCreated&&(t._promiseCreated=this)}},e}},{}],9:[function(t,e,n){"use strict";e.exports=function(e,n){function r(t,e){return{promise:e}}function i(){return!1}function o(t,e,n){var r=this;try{t(e,n,function(t){if("function"!=typeof t)throw new TypeError("onCancel must be a function, got: "+R.toString(t));r._attachCancellationCallback(t)})}catch(i){return i}}function a(t){if(!this.isCancellable())return this;var e=this._onCancel();void 0!==e?R.isArray(e)?e.push(t):this._setOnCancel([e,t]):this._setOnCancel(t)}function s(){return this._onCancelField}function u(t){this._onCancelField=t}function l(){this._cancellationParent=void 0,this._onCancelField=void 0}function c(t,e){if(0!==(1&e)){this._cancellationParent=t;var n=t._branchesRemainingToCancel;void 0===n&&(n=0),t._branchesRemainingToCancel=n+1}0!==(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function f(t,e){0!==(2&e)&&t._isBound()&&this._setBoundTo(t._boundTo)}function h(){var t=this._boundTo;return void 0!==t&&t instanceof e?t.isFulfilled()?t.value():void 0:t}function p(){this._trace=new F(this._peekContext())}function d(t,e){if(L(t)){var n=this._trace;if(void 0!==n&&e&&(n=n._parent),void 0!==n)n.attachExtraTrace(t);else if(!t.__stackCleaned__){var r=$(t);R.notEnumerableProp(t,"stack",r.message+"\n"+r.stack.join("\n")),R.notEnumerableProp(t,"__stackCleaned__",!0)}}}function v(t,e,n,r,i){if(void 0===t&&null!==e&&Y){if(void 0!==i&&i._returnedNonUndefined())return;if(0===(65535&r._bitField))return;n&&(n+=" ");var o="a promise was created in a "+n+"handler but was not returned from it";r._warn(o,!0,e)}}function m(t,e){var n=t+" is deprecated and will be removed in a future version.";return e&&(n+=" Use "+e+" instead."),g(n)}function g(t,n,r){if(rt.warnings){var i,o=new N(t);if(n)r._attachExtraTrace(o);else if(rt.longStackTraces&&(i=e._peekContext()))i.attachExtraTrace(o);else{var a=$(o);o.stack=a.message+"\n"+a.stack.join("\n")}Q("warning",o)||k(o,"",!0)}}function y(t,e){for(var n=0;n<e.length-1;++n)e[n].push("From previous event:"),e[n]=e[n].join("\n");return n<e.length&&(e[n]=e[n].join("\n")),t+"\n"+e.join("\n")}function _(t){for(var e=0;e<t.length;++e)(0===t[e].length||e+1<t.length&&t[e][0]===t[e+1][0])&&(t.splice(e,1),e--)}function b(t){for(var e=t[0],n=1;n<t.length;++n){for(var r=t[n],i=e.length-1,o=e[i],a=-1,s=r.length-1;s>=0;--s)if(r[s]===o){a=s;break}for(var s=a;s>=0;--s){var u=r[s];if(e[i]!==u)break;e.pop(),i--}e=r}}function w(t){for(var e=[],n=0;n<t.length;++n){var r=t[n],i=" (No stack trace)"===r||q.test(r),o=i&&tt(r);i&&!o&&(U&&" "!==r.charAt(0)&&(r=" "+r),e.push(r))}return e}function x(t){for(var e=t.stack.replace(/\s+$/g,"").split("\n"),n=0;n<e.length;++n){var r=e[n];if(" (No stack trace)"===r||q.test(r))break}return n>0&&(e=e.slice(n)),e}function $(t){var e=t.stack,n=t.toString();return e="string"==typeof e&&e.length>0?x(t):[" (No stack trace)"],{message:n,stack:w(e)}}function k(t,e,n){if("undefined"!=typeof console){var r;if(R.isObject(t)){var i=t.stack;r=e+H(i,t)}else r=e+String(t);"function"==typeof M?M(r,n):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(r)}}function C(t,e,n,r){var i=!1;try{"function"==typeof e&&(i=!0,"rejectionHandled"===t?e(r):e(n,r))}catch(o){P.throwLater(o)}"unhandledRejection"===t?Q(t,n,r)||i||k(n,"Unhandled rejection "):Q(t,r)}function S(t){var e;if("function"==typeof t)e="[function "+(t.name||"anonymous")+"]";else{e=t&&"function"==typeof t.toString?t.toString():R.toString(t);var n=/\[object [a-zA-Z0-9$_]+\]/;if(n.test(e))try{var r=JSON.stringify(t);e=r}catch(i){}0===e.length&&(e="(empty array)")}return"(<"+E(e)+">, no stack trace)"}function E(t){var e=41;return t.length<e?t:t.substr(0,e-3)+"..."}function T(){return"function"==typeof nt}function A(t){var e=t.match(et);if(e)return{fileName:e[1],line:parseInt(e[2],10)}}function D(t,e){if(T()){for(var n,r,i=t.stack.split("\n"),o=e.stack.split("\n"),a=-1,s=-1,u=0;u<i.length;++u){var l=A(i[u]);if(l){n=l.fileName,a=l.line;break}}for(var u=0;u<o.length;++u){var l=A(o[u]);if(l){r=l.fileName,s=l.line;break}}a<0||s<0||!n||!r||n!==r||a>=s||(tt=function(t){if(z.test(t))return!0;var e=A(t);return!!(e&&e.fileName===n&&a<=e.line&&e.line<=s)})}}function F(t){this._parent=t,this._promisesCreated=0;var e=this._length=1+(void 0===t?0:t._length);nt(this,F),e>32&&this.uncycle()}var O,j,M,I=e._getDomain,P=e._async,N=t("./errors").Warning,R=t("./util"),L=R.canAttachTrace,z=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,q=null,H=null,U=!1,W=!(0==R.env("BLUEBIRD_DEBUG")),V=!(0==R.env("BLUEBIRD_WARNINGS")||!W&&!R.env("BLUEBIRD_WARNINGS")),B=!(0==R.env("BLUEBIRD_LONG_STACK_TRACES")||!W&&!R.env("BLUEBIRD_LONG_STACK_TRACES")),Y=0!=R.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(V||!!R.env("BLUEBIRD_W_FORGOTTEN_RETURN"));e.prototype.suppressUnhandledRejections=function(){var t=this._target();t._bitField=t._bitField&-1048577|524288},e.prototype._ensurePossibleRejectionHandled=function(){0===(524288&this._bitField)&&(this._setRejectionIsUnhandled(),P.invokeLater(this._notifyUnhandledRejection,this,void 0))},e.prototype._notifyUnhandledRejectionIsHandled=function(){C("rejectionHandled",O,void 0,this)},e.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},e.prototype._returnedNonUndefined=function(){return 0!==(268435456&this._bitField)},e.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var t=this._settledValue();this._setUnhandledRejectionIsNotified(),C("unhandledRejection",j,t,this)}},e.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},e.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&-262145},e.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},e.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},e.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&-1048577,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},e.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},e.prototype._warn=function(t,e,n){return g(t,e,n||this)},e.onPossiblyUnhandledRejection=function(t){var e=I();j="function"==typeof t?null===e?t:e.bind(t):void 0},e.onUnhandledRejectionHandled=function(t){var e=I();O="function"==typeof t?null===e?t:e.bind(t):void 0};var K=function(){};e.longStackTraces=function(){if(P.haveItemsQueued()&&!rt.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!rt.longStackTraces&&T()){var t=e.prototype._captureStackTrace,r=e.prototype._attachExtraTrace;rt.longStackTraces=!0,K=function(){if(P.haveItemsQueued()&&!rt.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");e.prototype._captureStackTrace=t,e.prototype._attachExtraTrace=r,n.deactivateLongStackTraces(),P.enableTrampoline(),rt.longStackTraces=!1},e.prototype._captureStackTrace=p,e.prototype._attachExtraTrace=d,n.activateLongStackTraces(),P.disableTrampolineIfNecessary()}},e.hasLongStackTraces=function(){return rt.longStackTraces&&T()};var G=function(){try{var t=document.createEvent("CustomEvent");return t.initCustomEvent("testingtheevent",!1,!0,{}),R.global.dispatchEvent(t),function(t,e){var n=document.createEvent("CustomEvent");return n.initCustomEvent(t.toLowerCase(),!1,!0,e),!R.global.dispatchEvent(n)}}catch(e){}return function(){return!1}}(),X=function(){return R.isNode?function(){return process.emit.apply(process,arguments)}:R.global?function(t){var e="on"+t.toLowerCase(),n=R.global[e];return!!n&&(n.apply(R.global,[].slice.call(arguments,1)),!0)}:function(){return!1}}(),J={promiseCreated:r,promiseFulfilled:r,promiseRejected:r,promiseResolved:r,promiseCancelled:r,promiseChained:function(t,e,n){return{promise:e,child:n}},warning:function(t,e){return{warning:e}},unhandledRejection:function(t,e,n){return{reason:e,promise:n}},rejectionHandled:r},Q=function(t){var e=!1;try{e=X.apply(null,arguments)}catch(n){P.throwLater(n),e=!0}var r=!1;try{r=G(t,J[t].apply(null,arguments))}catch(n){P.throwLater(n),r=!0}return r||e};e.config=function(t){if(t=Object(t),"longStackTraces"in t&&(t.longStackTraces?e.longStackTraces():!t.longStackTraces&&e.hasLongStackTraces()&&K()),"warnings"in t){var n=t.warnings;rt.warnings=!!n,Y=rt.warnings,R.isObject(n)&&"wForgottenReturn"in n&&(Y=!!n.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!rt.cancellation){if(P.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");e.prototype._clearCancellationData=l,e.prototype._propagateFrom=c,e.prototype._onCancel=s,e.prototype._setOnCancel=u,e.prototype._attachCancellationCallback=a,e.prototype._execute=o,Z=c,rt.cancellation=!0}"monitoring"in t&&(t.monitoring&&!rt.monitoring?(rt.monitoring=!0,e.prototype._fireEvent=Q):!t.monitoring&&rt.monitoring&&(rt.monitoring=!1,e.prototype._fireEvent=i))},e.prototype._fireEvent=i,e.prototype._execute=function(t,e,n){try{t(e,n)}catch(r){return r}},e.prototype._onCancel=function(){},e.prototype._setOnCancel=function(t){},e.prototype._attachCancellationCallback=function(t){},e.prototype._captureStackTrace=function(){},e.prototype._attachExtraTrace=function(){},e.prototype._clearCancellationData=function(){},e.prototype._propagateFrom=function(t,e){};var Z=f,tt=function(){return!1},et=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;R.inherits(F,Error),n.CapturedTrace=F,F.prototype.uncycle=function(){var t=this._length;if(!(t<2)){for(var e=[],n={},r=0,i=this;void 0!==i;++r)e.push(i),i=i._parent;t=this._length=r;for(var r=t-1;r>=0;--r){var o=e[r].stack;void 0===n[o]&&(n[o]=r)}for(var r=0;r<t;++r){var a=e[r].stack,s=n[a];if(void 0!==s&&s!==r){s>0&&(e[s-1]._parent=void 0,e[s-1]._length=1),e[r]._parent=void 0,e[r]._length=1;var u=r>0?e[r-1]:this;s<t-1?(u._parent=e[s+1],u._parent.uncycle(),u._length=u._parent._length+1):(u._parent=void 0,u._length=1);for(var l=u._length+1,c=r-2;c>=0;--c)e[c]._length=l,l++;return}}}},F.prototype.attachExtraTrace=function(t){if(!t.__stackCleaned__){this.uncycle();for(var e=$(t),n=e.message,r=[e.stack],i=this;void 0!==i;)r.push(w(i.stack.split("\n"))),i=i._parent;b(r),_(r),R.notEnumerableProp(t,"stack",y(n,r)),R.notEnumerableProp(t,"__stackCleaned__",!0)}};var nt=function(){var t=/^\s*at\s*/,e=function(t,e){return"string"==typeof t?t:void 0!==e.name&&void 0!==e.message?e.toString():S(e)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,q=t,H=e;var n=Error.captureStackTrace;return tt=function(t){return z.test(t)},function(t,e){Error.stackTraceLimit+=6,n(t,e),Error.stackTraceLimit-=6}}var r=new Error;if("string"==typeof r.stack&&r.stack.split("\n")[0].indexOf("stackDetection@")>=0)return q=/@/,H=e,U=!0,function(t){t.stack=(new Error).stack};var i;try{throw new Error}catch(o){i="stack"in o}return"stack"in r||!i||"number"!=typeof Error.stackTraceLimit?(H=function(t,e){return"string"==typeof t?t:"object"!=typeof e&&"function"!=typeof e||void 0===e.name||void 0===e.message?S(e):e.toString()},null):(q=t,H=e,function(t){Error.stackTraceLimit+=6;try{throw new Error}catch(e){t.stack=e.stack}Error.stackTraceLimit-=6})}([]);"undefined"!=typeof console&&"undefined"!=typeof console.warn&&(M=function(t){console.warn(t)},R.isNode&&process.stderr.isTTY?M=function(t,e){var n=e?"":"";console.warn(n+t+"\n")}:R.isNode||"string"!=typeof(new Error).stack||(M=function(t,e){console.warn("%c"+t,e?"color: darkorange":"color: red")}));var rt={warnings:V,longStackTraces:!1,cancellation:!1,monitoring:!1};return B&&e.longStackTraces(),{longStackTraces:function(){return rt.longStackTraces},warnings:function(){return rt.warnings},cancellation:function(){return rt.cancellation},monitoring:function(){return rt.monitoring},propagateFromFunction:function(){return Z},boundValueFunction:function(){return h},checkForgottenReturns:v,setBounds:D,warn:g,deprecated:m,CapturedTrace:F,fireDomEvent:G,fireGlobalEvent:X}}},{"./errors":12,"./util":36}],10:[function(t,e,n){"use strict";e.exports=function(t){function e(){return this.value}function n(){throw this.reason}t.prototype["return"]=t.prototype.thenReturn=function(n){return n instanceof t&&n.suppressUnhandledRejections(),this._then(e,void 0,void 0,{value:n},void 0)},t.prototype["throw"]=t.prototype.thenThrow=function(t){return this._then(n,void 0,void 0,{reason:t},void 0)},t.prototype.catchThrow=function(t){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:t},void 0);var e=arguments[1],r=function(){throw e};return this.caught(t,r)},t.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof t&&n.suppressUnhandledRejections(),this._then(void 0,e,void 0,{value:n},void 0);var r=arguments[1];r instanceof t&&r.suppressUnhandledRejections();var i=function(){return r};return this.caught(n,i)}}},{}],11:[function(t,e,n){"use strict";e.exports=function(t,e){function n(){return o(this)}function r(t,n){return i(t,n,e,e)}var i=t.reduce,o=t.all;t.prototype.each=function(t){return this.mapSeries(t)._then(n,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(t){return i(this,t,e,e)},t.each=function(t,e){return r(t,e)._then(n,void 0,void 0,t,void 0)},t.mapSeries=r}},{}],12:[function(t,e,n){"use strict";function r(t,e){function n(r){return this instanceof n?(f(this,"message","string"==typeof r?r:e),f(this,"name",t),void(Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this))):new n(r)}return c(n,Error),n}function i(t){return this instanceof i?(f(this,"name","OperationalError"),f(this,"message",t),this.cause=t,this.isOperational=!0,void(t instanceof Error?(f(this,"message",t.message),f(this,"stack",t.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor))):new i(t)}var o,a,s=t("./es5"),u=s.freeze,l=t("./util"),c=l.inherits,f=l.notEnumerableProp,h=r("Warning","warning"),p=r("CancellationError","cancellation error"),d=r("TimeoutError","timeout error"),v=r("AggregateError","aggregate error");try{o=TypeError,a=RangeError}catch(m){o=r("TypeError","type error"),a=r("RangeError","range error")}for(var g="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),y=0;y<g.length;++y)"function"==typeof Array.prototype[g[y]]&&(v.prototype[g[y]]=Array.prototype[g[y]]);s.defineProperty(v.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),v.prototype.isOperational=!0;var _=0;v.prototype.toString=function(){var t=Array(4*_+1).join(" "),e="\n"+t+"AggregateError of:\n";_++,t=Array(4*_+1).join(" ");for(var n=0;n<this.length;++n){for(var r=this[n]===this?"[Circular AggregateError]":this[n]+"",i=r.split("\n"),o=0;o<i.length;++o)i[o]=t+i[o];r=i.join("\n"),e+=r+"\n"}return _--,e},c(i,Error);var b=Error.__BluebirdErrorTypes__;b||(b=u({CancellationError:p,TimeoutError:d,OperationalError:i,RejectionError:i,AggregateError:v}),s.defineProperty(Error,"__BluebirdErrorTypes__",{value:b,writable:!1,enumerable:!1,configurable:!1})),e.exports={Error:Error,TypeError:o,RangeError:a,CancellationError:b.CancellationError,OperationalError:b.OperationalError,TimeoutError:b.TimeoutError,AggregateError:b.AggregateError,Warning:h}},{"./es5":13,"./util":36}],13:[function(t,e,n){var r=function(){"use strict";return void 0===this}();if(r)e.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:r,propertyIsWritable:function(t,e){var n=Object.getOwnPropertyDescriptor(t,e);return!(n&&!n.writable&&!n.set)}};else{var i={}.hasOwnProperty,o={}.toString,a={}.constructor.prototype,s=function(t){var e=[];for(var n in t)i.call(t,n)&&e.push(n);return e},u=function(t,e){return{value:t[e]}},l=function(t,e,n){return t[e]=n.value,t},c=function(t){return t},f=function(t){try{return Object(t).constructor.prototype}catch(e){return a}},h=function(t){try{return"[object Array]"===o.call(t)}catch(e){return!1}};e.exports={isArray:h,keys:s,names:s,defineProperty:l,getDescriptor:u,freeze:c,getPrototypeOf:f,isES5:r,propertyIsWritable:function(){return!0}}}},{}],14:[function(t,e,n){"use strict";e.exports=function(t,e){var n=t.map;t.prototype.filter=function(t,r){return n(this,t,r,e)},t.filter=function(t,r,i){return n(t,r,i,e)}}},{}],15:[function(t,e,n){"use strict";e.exports=function(e,n){function r(t,e,n){this.promise=t,this.type=e,this.handler=n,this.called=!1,this.cancelPromise=null}function i(t){this.finallyHandler=t}function o(t,e){return null!=t.cancelPromise&&(arguments.length>1?t.cancelPromise._reject(e):t.cancelPromise._cancel(),t.cancelPromise=null,!0)}function a(){return u.call(this,this.promise._target()._settledValue())}function s(t){if(!o(this,t))return f.e=t,f}function u(t){var r=this.promise,u=this.handler;if(!this.called){this.called=!0;var l=this.isFinallyHandler()?u.call(r._boundValue()):u.call(r._boundValue(),t);if(void 0!==l){r._setReturnedNonUndefined();var h=n(l,r);if(h instanceof e){if(null!=this.cancelPromise){if(h.isCancelled()){var p=new c("late cancellation observer");return r._attachExtraTrace(p),f.e=p,f}h.isPending()&&h._attachCancellationCallback(new i(this))}return h._then(a,s,void 0,this,void 0)}}}return r.isRejected()?(o(this),f.e=t,f):(o(this),t)}var l=t("./util"),c=e.CancellationError,f=l.errorObj;return r.prototype.isFinallyHandler=function(){return 0===this.type},i.prototype._resultCancelled=function(){o(this.finallyHandler)},e.prototype._passThrough=function(t,e,n,i){return"function"!=typeof t?this.then():this._then(n,i,void 0,new r(this,e,t),void 0)},e.prototype.lastly=e.prototype["finally"]=function(t){return this._passThrough(t,0,u,u)},e.prototype.tap=function(t){return this._passThrough(t,1,u)},r}},{"./util":36}],16:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,a){function s(t,n,r){for(var o=0;o<n.length;++o){r._pushContext();var a=p(n[o])(t);if(r._popContext(),a===h){r._pushContext();var s=e.reject(h.e);return r._popContext(),s}var u=i(a,r);if(u instanceof e)return u}return null}function u(t,n,i,o){if(a.cancellation()){var s=new e(r),u=this._finallyPromise=new e(r);this._promise=s.lastly(function(){return u}),s._captureStackTrace(),s._setOnCancel(this)}else{var l=this._promise=new e(r);l._captureStackTrace()}this._stack=o,this._generatorFunction=t,this._receiver=n,this._generator=void 0,this._yieldHandlers="function"==typeof i?[i].concat(d):d,this._yieldedPromise=null,this._cancellationPhase=!1}var l=t("./errors"),c=l.TypeError,f=t("./util"),h=f.errorObj,p=f.tryCatch,d=[];f.inherits(u,o),u.prototype._isResolved=function(){return null===this._promise},u.prototype._cleanup=function(){this._promise=this._generator=null,a.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},u.prototype._promiseCancelled=function(){if(!this._isResolved()){var t,n="undefined"!=typeof this._generator["return"];if(n)this._promise._pushContext(),t=p(this._generator["return"]).call(this._generator,void 0),this._promise._popContext();else{var r=new e.CancellationError("generator .return() sentinel");
e.coroutine.returnSentinel=r,this._promise._attachExtraTrace(r),this._promise._pushContext(),t=p(this._generator["throw"]).call(this._generator,r),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(t)}},u.prototype._promiseFulfilled=function(t){this._yieldedPromise=null,this._promise._pushContext();var e=p(this._generator.next).call(this._generator,t);this._promise._popContext(),this._continue(e)},u.prototype._promiseRejected=function(t){this._yieldedPromise=null,this._promise._attachExtraTrace(t),this._promise._pushContext();var e=p(this._generator["throw"]).call(this._generator,t);this._promise._popContext(),this._continue(e)},u.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof e){var t=this._yieldedPromise;this._yieldedPromise=null,t.cancel()}},u.prototype.promise=function(){return this._promise},u.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},u.prototype._continue=function(t){var n=this._promise;if(t===h)return this._cleanup(),this._cancellationPhase?n.cancel():n._rejectCallback(t.e,!1);var r=t.value;if(t.done===!0)return this._cleanup(),this._cancellationPhase?n.cancel():n._resolveCallback(r);var o=i(r,this._promise);if(!(o instanceof e)&&(o=s(o,this._yieldHandlers,this._promise),null===o))return void this._promiseRejected(new c("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",r)+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")));o=o._target();var a=o._bitField;0===(50397184&a)?(this._yieldedPromise=o,o._proxy(this,null)):0!==(33554432&a)?this._promiseFulfilled(o._value()):0!==(16777216&a)?this._promiseRejected(o._reason()):this._promiseCancelled()},e.coroutine=function(t,e){if("function"!=typeof t)throw new c("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var n=Object(e).yieldHandler,r=u,i=(new Error).stack;return function(){var e=t.apply(this,arguments),o=new r((void 0),(void 0),n,i),a=o.promise();return o._generator=e,o._promiseFulfilled(void 0),a}},e.coroutine.addYieldHandler=function(t){if("function"!=typeof t)throw new c("expecting a function but got "+f.classString(t));d.push(t)},e.spawn=function(t){if(a.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof t)return n("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var r=new u(t,this),i=r.promise();return r._run(e.spawn),i}}},{"./errors":12,"./util":36}],17:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){var o=t("./util");o.canEvaluate,o.tryCatch,o.errorObj;e.join=function(){var t,e=arguments.length-1;if(e>0&&"function"==typeof arguments[e]){t=arguments[e];var r}var i=[].slice.call(arguments);t&&i.pop();var r=new n(i).promise();return void 0!==t?r.spread(t):r}}},{"./util":36}],18:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,a){function s(t,e,n,r){this.constructor$(t),this._promise._captureStackTrace();var i=l();this._callback=null===i?e:i.bind(e),this._preservedValues=r===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=n>=1?[]:p,this._init$(void 0,-2)}function u(t,e,n,i){if("function"!=typeof e)return r("expecting a function but got "+c.classString(e));var o="object"==typeof n&&null!==n?n.concurrency:0;return o="number"==typeof o&&isFinite(o)&&o>=1?o:0,new s(t,e,o,i).promise()}var l=e._getDomain,c=t("./util"),f=c.tryCatch,h=c.errorObj,p=[];c.inherits(s,n),s.prototype._init=function(){},s.prototype._promiseFulfilled=function(t,n){var r=this._values,o=this.length(),s=this._preservedValues,u=this._limit;if(n<0){if(n=n*-1-1,r[n]=t,u>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(u>=1&&this._inFlight>=u)return r[n]=t,this._queue.push(n),!1;null!==s&&(s[n]=t);var l=this._promise,c=this._callback,p=l._boundValue();l._pushContext();var d=f(c).call(p,t,n,o),v=l._popContext();if(a.checkForgottenReturns(d,v,null!==s?"Promise.filter":"Promise.map",l),d===h)return this._reject(d.e),!0;var m=i(d,this._promise);if(m instanceof e){m=m._target();var g=m._bitField;if(0===(50397184&g))return u>=1&&this._inFlight++,r[n]=m,m._proxy(this,(n+1)*-1),!1;if(0===(33554432&g))return 0!==(16777216&g)?(this._reject(m._reason()),!0):(this._cancel(),!0);d=m._value()}r[n]=d}var y=++this._totalResolved;return y>=o&&(null!==s?this._filter(r,s):this._resolve(r),!0)},s.prototype._drainQueue=function(){for(var t=this._queue,e=this._limit,n=this._values;t.length>0&&this._inFlight<e;){if(this._isResolved())return;var r=t.pop();this._promiseFulfilled(n[r],r)}},s.prototype._filter=function(t,e){for(var n=e.length,r=new Array(n),i=0,o=0;o<n;++o)t[o]&&(r[i++]=e[o]);r.length=i,this._resolve(r)},s.prototype.preservedValues=function(){return this._preservedValues},e.prototype.map=function(t,e){return u(this,t,e,null)},e.map=function(t,e,n,r){return u(t,e,n,r)}}},{"./util":36}],19:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o){var a=t("./util"),s=a.tryCatch;e.method=function(t){if("function"!=typeof t)throw new e.TypeError("expecting a function but got "+a.classString(t));return function(){var r=new e(n);r._captureStackTrace(),r._pushContext();var i=s(t).apply(this,arguments),a=r._popContext();return o.checkForgottenReturns(i,a,"Promise.method",r),r._resolveFromSyncValue(i),r}},e.attempt=e["try"]=function(t){if("function"!=typeof t)return i("expecting a function but got "+a.classString(t));var r=new e(n);r._captureStackTrace(),r._pushContext();var u;if(arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var l=arguments[1],c=arguments[2];u=a.isArray(l)?s(t).apply(c,l):s(t).call(c,l)}else u=s(t)();var f=r._popContext();return o.checkForgottenReturns(u,f,"Promise.try",r),r._resolveFromSyncValue(u),r},e.prototype._resolveFromSyncValue=function(t){t===a.errorObj?this._rejectCallback(t.e,!1):this._resolveCallback(t,!0)}}},{"./util":36}],20:[function(t,e,n){"use strict";function r(t){return t instanceof Error&&c.getPrototypeOf(t)===Error.prototype}function i(t){var e;if(r(t)){e=new l(t),e.name=t.name,e.message=t.message,e.stack=t.stack;for(var n=c.keys(t),i=0;i<n.length;++i){var o=n[i];f.test(o)||(e[o]=t[o])}return e}return a.markAsOriginatingFromRejection(t),t}function o(t,e){return function(n,r){if(null!==t){if(n){var o=i(s(n));t._attachExtraTrace(o),t._reject(o)}else if(e){var a=[].slice.call(arguments,1);t._fulfill(a)}else t._fulfill(r);t=null}}}var a=t("./util"),s=a.maybeWrapAsError,u=t("./errors"),l=u.OperationalError,c=t("./es5"),f=/^(?:name|message|stack|cause)$/;e.exports=o},{"./errors":12,"./es5":13,"./util":36}],21:[function(t,e,n){"use strict";e.exports=function(e){function n(t,e){var n=this;if(!o.isArray(t))return r.call(n,t,e);var i=s(e).apply(n._boundValue(),[null].concat(t));i===u&&a.throwLater(i.e)}function r(t,e){var n=this,r=n._boundValue(),i=void 0===t?s(e).call(r,null):s(e).call(r,null,t);i===u&&a.throwLater(i.e)}function i(t,e){var n=this;if(!t){var r=new Error(t+"");r.cause=t,t=r}var i=s(e).call(n._boundValue(),t);i===u&&a.throwLater(i.e)}var o=t("./util"),a=e._async,s=o.tryCatch,u=o.errorObj;e.prototype.asCallback=e.prototype.nodeify=function(t,e){if("function"==typeof t){var o=r;void 0!==e&&Object(e).spread&&(o=n),this._then(o,i,void 0,this,t)}return this}}},{"./util":36}],22:[function(t,e,n){"use strict";e.exports=function(){function e(){}function n(t,e){if("function"!=typeof e)throw new g("expecting a function but got "+h.classString(e));if(t.constructor!==r)throw new g("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n")}function r(t){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,t!==_&&(n(this,t),this._resolveFromExecutor(t)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function i(t){this.promise._resolveCallback(t)}function o(t){this.promise._rejectCallback(t,!1)}function a(t){var e=new r(_);e._fulfillmentHandler0=t,e._rejectionHandler0=t,e._promise0=t,e._receiver0=t}var s,u=function(){return new g("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},l=function(){return new r.PromiseInspection(this._target())},c=function(t){return r.reject(new g(t))},f={},h=t("./util");s=h.isNode?function(){var t=process.domain;return void 0===t&&(t=null),t}:function(){return null},h.notEnumerableProp(r,"_getDomain",s);var p=t("./es5"),d=t("./async"),v=new d;p.defineProperty(r,"_async",{value:v});var m=t("./errors"),g=r.TypeError=m.TypeError;r.RangeError=m.RangeError;var y=r.CancellationError=m.CancellationError;r.TimeoutError=m.TimeoutError,r.OperationalError=m.OperationalError,r.RejectionError=m.OperationalError,r.AggregateError=m.AggregateError;var _=function(){},b={},w={},x=t("./thenables")(r,_),$=t("./promise_array")(r,_,x,c,e),k=t("./context")(r),C=k.create,S=t("./debuggability")(r,k),E=(S.CapturedTrace,t("./finally")(r,x)),T=t("./catch_filter")(w),A=t("./nodeback"),D=h.errorObj,F=h.tryCatch;return r.prototype.toString=function(){return"[object Promise]"},r.prototype.caught=r.prototype["catch"]=function(t){var e=arguments.length;if(e>1){var n,r=new Array(e-1),i=0;for(n=0;n<e-1;++n){var o=arguments[n];if(!h.isObject(o))return c("expecting an object but got "+h.classString(o));r[i++]=o}return r.length=i,t=arguments[n],this.then(void 0,T(r,t,this))}return this.then(void 0,t)},r.prototype.reflect=function(){return this._then(l,l,void 0,this,void 0)},r.prototype.then=function(t,e){if(S.warnings()&&arguments.length>0&&"function"!=typeof t&&"function"!=typeof e){var n=".then() only accepts functions but was passed: "+h.classString(t);arguments.length>1&&(n+=", "+h.classString(e)),this._warn(n)}return this._then(t,e,void 0,void 0,void 0)},r.prototype.done=function(t,e){var n=this._then(t,e,void 0,void 0,void 0);n._setIsFinal()},r.prototype.spread=function(t){return"function"!=typeof t?c("expecting a function but got "+h.classString(t)):this.all()._then(t,void 0,void 0,b,void 0)},r.prototype.toJSON=function(){var t={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(t.fulfillmentValue=this.value(),t.isFulfilled=!0):this.isRejected()&&(t.rejectionReason=this.reason(),t.isRejected=!0),t},r.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new $(this).promise()},r.prototype.error=function(t){return this.caught(h.originatesFromRejection,t)},r.is=function(t){return t instanceof r},r.fromNode=r.fromCallback=function(t){var e=new r(_);e._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,i=F(t)(A(e,n));return i===D&&e._rejectCallback(i.e,!0),e._isFateSealed()||e._setAsyncGuaranteed(),e},r.all=function(t){return new $(t).promise()},r.cast=function(t){var e=x(t);return e instanceof r||(e=new r(_),e._captureStackTrace(),e._setFulfilled(),e._rejectionHandler0=t),e},r.resolve=r.fulfilled=r.cast,r.reject=r.rejected=function(t){var e=new r(_);return e._captureStackTrace(),e._rejectCallback(t,!0),e},r.setScheduler=function(t){if("function"!=typeof t)throw new g("expecting a function but got "+h.classString(t));return v.setScheduler(t)},r.prototype._then=function(t,e,n,i,o){var a=void 0!==o,u=a?o:new r(_),l=this._target(),c=l._bitField;a||(u._propagateFrom(this,3),u._captureStackTrace(),void 0===i&&0!==(2097152&this._bitField)&&(i=0!==(50397184&c)?this._boundValue():l===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,u));var f=s();if(0!==(50397184&c)){var h,p,d=l._settlePromiseCtx;0!==(33554432&c)?(p=l._rejectionHandler0,h=t):0!==(16777216&c)?(p=l._fulfillmentHandler0,h=e,l._unsetRejectionIsUnhandled()):(d=l._settlePromiseLateCancellationObserver,p=new y("late cancellation observer"),l._attachExtraTrace(p),h=e),v.invoke(d,l,{handler:null===f?h:"function"==typeof h&&f.bind(h),promise:u,receiver:i,value:p})}else l._addCallbacks(t,e,u,i,f);return u},r.prototype._length=function(){return 65535&this._bitField},r.prototype._isFateSealed=function(){return 0!==(117506048&this._bitField)},r.prototype._isFollowing=function(){return 67108864===(67108864&this._bitField)},r.prototype._setLength=function(t){this._bitField=this._bitField&-65536|65535&t},r.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},r.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},r.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},r.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},r.prototype._isFinal=function(){return(4194304&this._bitField)>0},r.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},r.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},r.prototype._setAsyncGuaranteed=function(){v.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},r.prototype._receiverAt=function(t){var e=0===t?this._receiver0:this[4*t-4+3];if(e!==f)return void 0===e&&this._isBound()?this._boundValue():e},r.prototype._promiseAt=function(t){return this[4*t-4+2]},r.prototype._fulfillmentHandlerAt=function(t){return this[4*t-4+0]},r.prototype._rejectionHandlerAt=function(t){return this[4*t-4+1]},r.prototype._boundValue=function(){},r.prototype._migrateCallback0=function(t){var e=(t._bitField,t._fulfillmentHandler0),n=t._rejectionHandler0,r=t._promise0,i=t._receiverAt(0);void 0===i&&(i=f),this._addCallbacks(e,n,r,i,null)},r.prototype._migrateCallbackAt=function(t,e){var n=t._fulfillmentHandlerAt(e),r=t._rejectionHandlerAt(e),i=t._promiseAt(e),o=t._receiverAt(e);void 0===o&&(o=f),this._addCallbacks(n,r,i,o,null)},r.prototype._addCallbacks=function(t,e,n,r,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=r,"function"==typeof t&&(this._fulfillmentHandler0=null===i?t:i.bind(t)),"function"==typeof e&&(this._rejectionHandler0=null===i?e:i.bind(e));else{var a=4*o-4;this[a+2]=n,this[a+3]=r,"function"==typeof t&&(this[a+0]=null===i?t:i.bind(t)),"function"==typeof e&&(this[a+1]=null===i?e:i.bind(e))}return this._setLength(o+1),o},r.prototype._proxy=function(t,e){this._addCallbacks(void 0,void 0,e,t,null)},r.prototype._resolveCallback=function(t,e){if(0===(117506048&this._bitField)){if(t===this)return this._rejectCallback(u(),!1);var n=x(t,this);if(!(n instanceof r))return this._fulfill(t);e&&this._propagateFrom(n,2);var i=n._target();if(i===this)return void this._reject(u());var o=i._bitField;if(0===(50397184&o)){var a=this._length();a>0&&i._migrateCallback0(this);for(var s=1;s<a;++s)i._migrateCallbackAt(this,s);this._setFollowing(),this._setLength(0),this._setFollowee(i)}else if(0!==(33554432&o))this._fulfill(i._value());else if(0!==(16777216&o))this._reject(i._reason());else{var l=new y("late cancellation observer");i._attachExtraTrace(l),this._reject(l)}}},r.prototype._rejectCallback=function(t,e,n){var r=h.ensureErrorObject(t),i=r===t;if(!i&&!n&&S.warnings()){var o="a promise was rejected with a non-error: "+h.classString(t);this._warn(o,!0)}this._attachExtraTrace(r,!!e&&i),this._reject(t)},r.prototype._resolveFromExecutor=function(t){var e=this;this._captureStackTrace(),this._pushContext();var n=!0,r=this._execute(t,function(t){e._resolveCallback(t)},function(t){e._rejectCallback(t,n)});n=!1,this._popContext(),void 0!==r&&e._rejectCallback(r,!0)},r.prototype._settlePromiseFromHandler=function(t,e,n,r){var i=r._bitField;if(0===(65536&i)){r._pushContext();var o;e===b?n&&"number"==typeof n.length?o=F(t).apply(this._boundValue(),n):(o=D,o.e=new g("cannot .spread() a non-array: "+h.classString(n))):o=F(t).call(e,n);var a=r._popContext();i=r._bitField,0===(65536&i)&&(o===w?r._reject(n):o===D?r._rejectCallback(o.e,!1):(S.checkForgottenReturns(o,a,"",r,this),r._resolveCallback(o)))}},r.prototype._target=function(){for(var t=this;t._isFollowing();)t=t._followee();return t},r.prototype._followee=function(){return this._rejectionHandler0},r.prototype._setFollowee=function(t){this._rejectionHandler0=t},r.prototype._settlePromise=function(t,n,i,o){var a=t instanceof r,s=this._bitField,u=0!==(134217728&s);0!==(65536&s)?(a&&t._invokeInternalOnCancel(),i instanceof E&&i.isFinallyHandler()?(i.cancelPromise=t,F(n).call(i,o)===D&&t._reject(D.e)):n===l?t._fulfill(l.call(i)):i instanceof e?i._promiseCancelled(t):a||t instanceof $?t._cancel():i.cancel()):"function"==typeof n?a?(u&&t._setAsyncGuaranteed(),this._settlePromiseFromHandler(n,i,o,t)):n.call(i,o,t):i instanceof e?i._isResolved()||(0!==(33554432&s)?i._promiseFulfilled(o,t):i._promiseRejected(o,t)):a&&(u&&t._setAsyncGuaranteed(),0!==(33554432&s)?t._fulfill(o):t._reject(o))},r.prototype._settlePromiseLateCancellationObserver=function(t){var e=t.handler,n=t.promise,i=t.receiver,o=t.value;"function"==typeof e?n instanceof r?this._settlePromiseFromHandler(e,i,o,n):e.call(i,o,n):n instanceof r&&n._reject(o)},r.prototype._settlePromiseCtx=function(t){this._settlePromise(t.promise,t.handler,t.receiver,t.value)},r.prototype._settlePromise0=function(t,e,n){var r=this._promise0,i=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(r,t,i,e)},r.prototype._clearCallbackDataAtIndex=function(t){var e=4*t-4;this[e+2]=this[e+3]=this[e+0]=this[e+1]=void 0},r.prototype._fulfill=function(t){var e=this._bitField;if(!((117506048&e)>>>16)){if(t===this){var n=u();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=t,(65535&e)>0&&(0!==(134217728&e)?this._settlePromises():v.settlePromises(this))}},r.prototype._reject=function(t){var e=this._bitField;if(!((117506048&e)>>>16))return this._setRejected(),this._fulfillmentHandler0=t,this._isFinal()?v.fatalError(t,h.isNode):void((65535&e)>0?v.settlePromises(this):this._ensurePossibleRejectionHandled())},r.prototype._fulfillPromises=function(t,e){for(var n=1;n<t;n++){var r=this._fulfillmentHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,e)}},r.prototype._rejectPromises=function(t,e){for(var n=1;n<t;n++){var r=this._rejectionHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,e)}},r.prototype._settlePromises=function(){var t=this._bitField,e=65535&t;if(e>0){if(0!==(16842752&t)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,t),this._rejectPromises(e,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,t),this._fulfillPromises(e,r)}this._setLength(0)}this._clearCancellationData()},r.prototype._settledValue=function(){var t=this._bitField;return 0!==(33554432&t)?this._rejectionHandler0:0!==(16777216&t)?this._fulfillmentHandler0:void 0},r.defer=r.pending=function(){S.deprecated("Promise.defer","new Promise");var t=new r(_);return{promise:t,resolve:i,reject:o}},h.notEnumerableProp(r,"_makeSelfResolutionError",u),t("./method")(r,_,x,c,S),t("./bind")(r,_,x,S),t("./cancel")(r,$,c,S),t("./direct_resolve")(r),t("./synchronous_inspection")(r),t("./join")(r,$,x,_,S),r.Promise=r,t("./map.js")(r,$,c,x,_,S),t("./call_get.js")(r),t("./using.js")(r,c,x,C,_,S),t("./timers.js")(r,_,S),t("./generators.js")(r,c,_,x,e,S),t("./nodeify.js")(r),t("./promisify.js")(r,_),t("./props.js")(r,$,x,c),t("./race.js")(r,_,x,c),t("./reduce.js")(r,$,c,x,_,S),t("./settle.js")(r,$,S),t("./some.js")(r,$,c),t("./filter.js")(r,_),t("./each.js")(r,_),t("./any.js")(r),h.toFastProperties(r),h.toFastProperties(r.prototype),a({a:1}),a({b:2}),a({c:3}),a(1),a(function(){}),a(void 0),a(!1),a(new r(_)),S.setBounds(d.firstLineError,h.lastLineError),r}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o){function a(t){switch(t){case-2:return[];case-3:return{}}}function s(t){var r=this._promise=new e(n);t instanceof e&&r._propagateFrom(t,3),r._setOnCancel(this),this._values=t,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var u=t("./util");u.isArray;return u.inherits(s,o),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function l(t,n){var o=r(this._values,this._promise);if(o instanceof e){o=o._target();var s=o._bitField;if(this._values=o,0===(50397184&s))return this._promise._setAsyncGuaranteed(),o._then(l,this._reject,void 0,this,n);if(0===(33554432&s))return 0!==(16777216&s)?this._reject(o._reason()):this._cancel();o=o._value()}if(o=u.asArray(o),null===o){var c=i("expecting an array or an iterable object but got "+u.classString(o)).reason();return void this._promise._rejectCallback(c,!1)}return 0===o.length?void(n===-5?this._resolveEmptyArray():this._resolve(a(n))):void this._iterate(o)},s.prototype._iterate=function(t){var n=this.getActualLength(t.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var i=this._promise,o=!1,a=null,s=0;s<n;++s){var u=r(t[s],i);u instanceof e?(u=u._target(),a=u._bitField):a=null,o?null!==a&&u.suppressUnhandledRejections():null!==a?0===(50397184&a)?(u._proxy(this,s),this._values[s]=u):o=0!==(33554432&a)?this._promiseFulfilled(u._value(),s):0!==(16777216&a)?this._promiseRejected(u._reason(),s):this._promiseCancelled(s):o=this._promiseFulfilled(u,s)}o||i._setAsyncGuaranteed()},s.prototype._isResolved=function(){return null===this._values},s.prototype._resolve=function(t){this._values=null,this._promise._fulfill(t)},s.prototype._cancel=function(){!this._isResolved()&&this._promise.isCancellable()&&(this._values=null,this._promise._cancel())},s.prototype._reject=function(t){this._values=null,this._promise._rejectCallback(t,!1)},s.prototype._promiseFulfilled=function(t,e){this._values[e]=t;var n=++this._totalResolved;return n>=this._length&&(this._resolve(this._values),!0)},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(t){return this._totalResolved++,this._reject(t),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var t=this._values;if(this._cancel(),t instanceof e)t.cancel();else for(var n=0;n<t.length;++n)t[n]instanceof e&&t[n].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(t){return t},s}},{"./util":36}],24:[function(t,e,n){"use strict";e.exports=function(e,n){function r(t){return!x.test(t)}function i(t){try{return t.__isPromisified__===!0}catch(e){return!1}}function o(t,e,n){var r=p.getDataPropertyOrDefault(t,e+n,b);return!!r&&i(r)}function a(t,e,n){for(var r=0;r<t.length;r+=2){var i=t[r];if(n.test(i))for(var o=i.replace(n,""),a=0;a<t.length;a+=2)if(t[a]===o)throw new y("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",e))}}function s(t,e,n,r){for(var s=p.inheritedDataKeys(t),u=[],l=0;l<s.length;++l){var c=s[l],f=t[c],h=r===$||$(c,f,t);"function"!=typeof f||i(f)||o(t,c,e)||!r(c,f,t,h)||u.push(c,f)}return a(u,e,n),u}function u(t,r,i,o,a,s){function u(){var i=r;r===h&&(i=this);var o=new e(n);o._captureStackTrace();var a="string"==typeof c&&this!==l?this[c]:t,u=d(o,s);try{a.apply(i,v(arguments,u))}catch(f){o._rejectCallback(m(f),!0,!0)}return o._isFateSealed()||o._setAsyncGuaranteed(),o}var l=function(){return this}(),c=t;return"string"==typeof c&&(t=o),p.notEnumerableProp(u,"__isPromisified__",!0),u}function l(t,e,n,r,i){for(var o=new RegExp(k(e)+"$"),a=s(t,e,o,n),u=0,l=a.length;u<l;u+=2){var c=a[u],f=a[u+1],d=c+e;if(r===C)t[d]=C(c,h,c,f,e,i);else{var v=r(f,function(){return C(c,h,c,f,e,i)});p.notEnumerableProp(v,"__isPromisified__",!0),t[d]=v}}return p.toFastProperties(t),t}function c(t,e,n){return C(t,e,void 0,t,null,n)}var f,h={},p=t("./util"),d=t("./nodeback"),v=p.withAppended,m=p.maybeWrapAsError,g=p.canEvaluate,y=t("./errors").TypeError,_="Async",b={__isPromisified__:!0},w=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],x=new RegExp("^(?:"+w.join("|")+")$"),$=function(t){return p.isIdentifier(t)&&"_"!==t.charAt(0)&&"constructor"!==t},k=function(t){return t.replace(/([$])/,"\\$")},C=g?f:u;e.promisify=function(t,e){if("function"!=typeof t)throw new y("expecting a function but got "+p.classString(t));if(i(t))return t;e=Object(e);var n=void 0===e.context?h:e.context,o=!!e.multiArgs,a=c(t,n,o);return p.copyDescriptors(t,a,r),a},e.promisifyAll=function(t,e){if("function"!=typeof t&&"object"!=typeof t)throw new y("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");e=Object(e);var n=!!e.multiArgs,r=e.suffix;"string"!=typeof r&&(r=_);var i=e.filter;"function"!=typeof i&&(i=$);var o=e.promisifier;if("function"!=typeof o&&(o=C),!p.isIdentifier(r))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var a=p.inheritedDataKeys(t),s=0;s<a.length;++s){var u=t[a[s]];"constructor"!==a[s]&&p.isClass(u)&&(l(u.prototype,r,i,o,n),l(u,r,i,o,n))}return l(t,r,i,o,n)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){function o(t){var e,n=!1;if(void 0!==s&&t instanceof s)e=f(t),n=!0;else{var r=c.keys(t),i=r.length;e=new Array(2*i);for(var o=0;o<i;++o){var a=r[o];e[o]=t[a],e[o+i]=a}}this.constructor$(e),this._isMap=n,this._init$(void 0,-3)}function a(t){var n,a=r(t);return l(a)?(n=a instanceof e?a._then(e.props,void 0,void 0,void 0,void 0):new o(a).promise(),a instanceof e&&n._propagateFrom(a,2),n):i("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}var s,u=t("./util"),l=u.isObject,c=t("./es5");"function"==typeof Map&&(s=Map);var f=function(){function t(t,r){this[e]=t,this[e+n]=r,e++}var e=0,n=0;return function(r){n=r.size,e=0;var i=new Array(2*r.size);return r.forEach(t,i),i}}(),h=function(t){for(var e=new s,n=t.length/2|0,r=0;r<n;++r){var i=t[n+r],o=t[r];e.set(i,o)}return e};u.inherits(o,n),o.prototype._init=function(){},o.prototype._promiseFulfilled=function(t,e){this._values[e]=t;var n=++this._totalResolved;if(n>=this._length){var r;if(this._isMap)r=h(this._values);else{r={};for(var i=this.length(),o=0,a=this.length();o<a;++o)r[this._values[o+i]]=this._values[o]}return this._resolve(r),!0}return!1},o.prototype.shouldCopyValues=function(){return!1},o.prototype.getActualLength=function(t){return t>>1},e.prototype.props=function(){return a(this)},e.props=function(t){return a(t)}}},{"./es5":13,"./util":36}],26:[function(t,e,n){"use strict";function r(t,e,n,r,i){for(var o=0;o<i;++o)n[o+r]=t[o+e],t[o+e]=void 0}function i(t){this._capacity=t,this._length=0,this._front=0}i.prototype._willBeOverCapacity=function(t){return this._capacity<t},i.prototype._pushOne=function(t){var e=this.length();this._checkCapacity(e+1);var n=this._front+e&this._capacity-1;this[n]=t,this._length=e+1},i.prototype._unshiftOne=function(t){var e=this._capacity;this._checkCapacity(this.length()+1);var n=this._front,r=(n-1&e-1^e)-e;this[r]=t,this._front=r,this._length=this.length()+1},i.prototype.unshift=function(t,e,n){this._unshiftOne(n),this._unshiftOne(e),this._unshiftOne(t)},i.prototype.push=function(t,e,n){var r=this.length()+3;if(this._willBeOverCapacity(r))return this._pushOne(t),this._pushOne(e),void this._pushOne(n);var i=this._front+r-3;this._checkCapacity(r);var o=this._capacity-1;this[i+0&o]=t,this[i+1&o]=e,this[i+2&o]=n,this._length=r},i.prototype.shift=function(){var t=this._front,e=this[t];return this[t]=void 0,this._front=t+1&this._capacity-1,this._length--,e},i.prototype.length=function(){return this._length},i.prototype._checkCapacity=function(t){this._capacity<t&&this._resizeTo(this._capacity<<1)},i.prototype._resizeTo=function(t){var e=this._capacity;this._capacity=t;var n=this._front,i=this._length,o=n+i&e-1;r(this,0,this,e,o)},e.exports=i},{}],27:[function(t,e,n){"use strict";e.exports=function(e,n,r,i){function o(t,o){var u=r(t);if(u instanceof e)return s(u);if(t=a.asArray(t),null===t)return i("expecting an array or an iterable object but got "+a.classString(t));var l=new e(n);void 0!==o&&l._propagateFrom(o,3);for(var c=l._fulfill,f=l._reject,h=0,p=t.length;h<p;++h){var d=t[h];(void 0!==d||h in t)&&e.cast(d)._then(c,f,void 0,l,null)}return l}var a=t("./util"),s=function(t){return t.then(function(e){return o(e,t)})};e.race=function(t){return o(t,void 0)},e.prototype.race=function(){return o(this,void 0)}}},{"./util":36}],28:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,a){function s(t,n,r,i){this.constructor$(t);var a=h();this._fn=null===a?n:a.bind(n),void 0!==r&&(r=e.resolve(r),r._attachCancellationCallback(this)),this._initialValue=r,this._currentCancellable=null,this._eachValues=i===o?[]:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function u(t,e){this.isFulfilled()?e._resolve(t):e._reject(t)}function l(t,e,n,i){if("function"!=typeof e)return r("expecting a function but got "+p.classString(e));var o=new s(t,e,n,i);return o.promise()}function c(t){this.accum=t,this.array._gotAccum(t);var n=i(this.value,this.array._promise);return n instanceof e?(this.array._currentCancellable=n,n._then(f,void 0,void 0,this,void 0)):f.call(this,n)}function f(t){var n=this.array,r=n._promise,i=d(n._fn);r._pushContext();var o;o=void 0!==n._eachValues?i.call(r._boundValue(),t,this.index,this.length):i.call(r._boundValue(),this.accum,t,this.index,this.length),o instanceof e&&(n._currentCancellable=o);var s=r._popContext();return a.checkForgottenReturns(o,s,void 0!==n._eachValues?"Promise.each":"Promise.reduce",r),o}var h=e._getDomain,p=t("./util"),d=p.tryCatch;p.inherits(s,n),s.prototype._gotAccum=function(t){void 0!==this._eachValues&&t!==o&&this._eachValues.push(t)},s.prototype._eachComplete=function(t){return this._eachValues.push(t),this._eachValues},s.prototype._init=function(){},s.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},s.prototype.shouldCopyValues=function(){return!1},s.prototype._resolve=function(t){this._promise._resolveCallback(t),this._values=null},s.prototype._resultCancelled=function(t){return t===this._initialValue?this._cancel():void(this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof e&&this._currentCancellable.cancel(),this._initialValue instanceof e&&this._initialValue.cancel()))},s.prototype._iterate=function(t){this._values=t;var n,r,i=t.length;if(void 0!==this._initialValue?(n=this._initialValue,r=0):(n=e.resolve(t[0]),r=1),this._currentCancellable=n,!n.isRejected())for(;r<i;++r){var o={accum:null,value:t[r],index:r,length:i,array:this};n=n._then(c,void 0,void 0,o,void 0)}void 0!==this._eachValues&&(n=n._then(this._eachComplete,void 0,void 0,this,void 0)),n._then(u,u,void 0,n,this)},e.prototype.reduce=function(t,e){return l(this,t,e,null)},e.reduce=function(t,e,n,r){return l(t,e,n,r)}}},{"./util":36}],29:[function(t,e,n){"use strict";var r,i=t("./util"),o=function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")},a=i.getNativePromise();if(i.isNode&&"undefined"==typeof MutationObserver){var s=global.setImmediate,u=process.nextTick;r=i.isRecentNode?function(t){s.call(global,t)}:function(t){u.call(process,t)}}else if("function"==typeof a){var l=a.resolve();r=function(t){l.then(t)}}else r="undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&window.navigator.standalone?"undefined"!=typeof setImmediate?function(t){
setImmediate(t)}:"undefined"!=typeof setTimeout?function(t){setTimeout(t,0)}:o:function(){var t=document.createElement("div"),e={attributes:!0},n=!1,r=document.createElement("div"),i=new MutationObserver(function(){t.classList.toggle("foo"),n=!1});i.observe(r,e);var o=function(){n||(n=!0,r.classList.toggle("foo"))};return function(n){var r=new MutationObserver(function(){r.disconnect(),n()});r.observe(t,e),o()}}();e.exports=r},{"./util":36}],30:[function(t,e,n){"use strict";e.exports=function(e,n,r){function i(t){this.constructor$(t)}var o=e.PromiseInspection,a=t("./util");a.inherits(i,n),i.prototype._promiseResolved=function(t,e){this._values[t]=e;var n=++this._totalResolved;return n>=this._length&&(this._resolve(this._values),!0)},i.prototype._promiseFulfilled=function(t,e){var n=new o;return n._bitField=33554432,n._settledValueField=t,this._promiseResolved(e,n)},i.prototype._promiseRejected=function(t,e){var n=new o;return n._bitField=16777216,n._settledValueField=t,this._promiseResolved(e,n)},e.settle=function(t){return r.deprecated(".settle()",".reflect()"),new i(t).promise()},e.prototype.settle=function(){return e.settle(this)}}},{"./util":36}],31:[function(t,e,n){"use strict";e.exports=function(e,n,r){function i(t){this.constructor$(t),this._howMany=0,this._unwrap=!1,this._initialized=!1}function o(t,e){if((0|e)!==e||e<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new i(t),o=n.promise();return n.setHowMany(e),n.init(),o}var a=t("./util"),s=t("./errors").RangeError,u=t("./errors").AggregateError,l=a.isArray,c={};a.inherits(i,n),i.prototype._init=function(){if(this._initialized){if(0===this._howMany)return void this._resolve([]);this._init$(void 0,-5);var t=l(this._values);!this._isResolved()&&t&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},i.prototype.init=function(){this._initialized=!0,this._init()},i.prototype.setUnwrap=function(){this._unwrap=!0},i.prototype.howMany=function(){return this._howMany},i.prototype.setHowMany=function(t){this._howMany=t},i.prototype._promiseFulfilled=function(t){return this._addFulfilled(t),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},i.prototype._promiseRejected=function(t){return this._addRejected(t),this._checkOutcome()},i.prototype._promiseCancelled=function(){return this._values instanceof e||null==this._values?this._cancel():(this._addRejected(c),this._checkOutcome())},i.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var t=new u,e=this.length();e<this._values.length;++e)this._values[e]!==c&&t.push(this._values[e]);return t.length>0?this._reject(t):this._cancel(),!0}return!1},i.prototype._fulfilled=function(){return this._totalResolved},i.prototype._rejected=function(){return this._values.length-this.length()},i.prototype._addRejected=function(t){this._values.push(t)},i.prototype._addFulfilled=function(t){this._values[this._totalResolved++]=t},i.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},i.prototype._getRangeError=function(t){var e="Input array must contain at least "+this._howMany+" items but contains only "+t+" items";return new s(e)},i.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},e.some=function(t,e){return o(t,e)},e.prototype.some=function(t){return o(this,t)},e._SomePromiseArray=i}},{"./errors":12,"./util":36}],32:[function(t,e,n){"use strict";e.exports=function(t){function e(t){void 0!==t?(t=t._target(),this._bitField=t._bitField,this._settledValueField=t._isFateSealed()?t._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}e.prototype._settledValue=function(){return this._settledValueField};var n=e.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=e.prototype.error=e.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=e.prototype.isFulfilled=function(){return 0!==(33554432&this._bitField)},o=e.prototype.isRejected=function(){return 0!==(16777216&this._bitField)},a=e.prototype.isPending=function(){return 0===(50397184&this._bitField)},s=e.prototype.isResolved=function(){return 0!==(50331648&this._bitField)};e.prototype.isCancelled=t.prototype._isCancelled=function(){return 65536===(65536&this._bitField)},t.prototype.isCancelled=function(){return this._target()._isCancelled()},t.prototype.isPending=function(){return a.call(this._target())},t.prototype.isRejected=function(){return o.call(this._target())},t.prototype.isFulfilled=function(){return i.call(this._target())},t.prototype.isResolved=function(){return s.call(this._target())},t.prototype.value=function(){return n.call(this._target())},t.prototype.reason=function(){var t=this._target();return t._unsetRejectionIsUnhandled(),r.call(t)},t.prototype._value=function(){return this._settledValue()},t.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},t.PromiseInspection=e}},{}],33:[function(t,e,n){"use strict";e.exports=function(e,n){function r(t,r){if(c(t)){if(t instanceof e)return t;var i=o(t);if(i===l){r&&r._pushContext();var u=e.reject(i.e);return r&&r._popContext(),u}if("function"==typeof i){if(a(t)){var u=new e(n);return t._then(u._fulfill,u._reject,void 0,u,null),u}return s(t,i,r)}}return t}function i(t){return t.then}function o(t){try{return i(t)}catch(e){return l.e=e,l}}function a(t){return f.call(t,"_promise0")}function s(t,r,i){function o(t){s&&(s._resolveCallback(t),s=null)}function a(t){s&&(s._rejectCallback(t,f,!0),s=null)}var s=new e(n),c=s;i&&i._pushContext(),s._captureStackTrace(),i&&i._popContext();var f=!0,h=u.tryCatch(r).call(t,o,a);return f=!1,s&&h===l&&(s._rejectCallback(h.e,!0,!0),s=null),c}var u=t("./util"),l=u.errorObj,c=u.isObject,f={}.hasOwnProperty;return r}},{"./util":36}],34:[function(t,e,n){"use strict";e.exports=function(e,n,r){function i(t){this.handle=t}function o(t){return clearTimeout(this.handle),t}function a(t){throw clearTimeout(this.handle),t}var s=t("./util"),u=e.TimeoutError;i.prototype._resultCancelled=function(){clearTimeout(this.handle)};var l=function(t){return c(+this).thenReturn(t)},c=e.delay=function(t,o){var a,s;return void 0!==o?(a=e.resolve(o)._then(l,null,null,t,void 0),r.cancellation()&&o instanceof e&&a._setOnCancel(o)):(a=new e(n),s=setTimeout(function(){a._fulfill()},+t),r.cancellation()&&a._setOnCancel(new i(s))),a._setAsyncGuaranteed(),a};e.prototype.delay=function(t){return c(t,this)};var f=function(t,e,n){var r;r="string"!=typeof e?e instanceof Error?e:new u("operation timed out"):new u(e),s.markAsOriginatingFromRejection(r),t._attachExtraTrace(r),t._reject(r),null!=n&&n.cancel()};e.prototype.timeout=function(t,e){t=+t;var n,s,u=new i(setTimeout(function(){n.isPending()&&f(n,e,s)},t));return r.cancellation()?(s=this.then(),n=s._then(o,a,void 0,u,void 0),n._setOnCancel(u)):n=this._then(o,a,void 0,u,void 0),n}}},{"./util":36}],35:[function(t,e,n){"use strict";e.exports=function(e,n,r,i,o,a){function s(t){setTimeout(function(){throw t},0)}function u(t){var e=r(t);return e!==t&&"function"==typeof t._isDisposable&&"function"==typeof t._getDisposer&&t._isDisposable()&&e._setDisposable(t._getDisposer()),e}function l(t,n){function i(){if(a>=l)return c._fulfill();var o=u(t[a++]);if(o instanceof e&&o._isDisposable()){try{o=r(o._getDisposer().tryDispose(n),t.promise)}catch(f){return s(f)}if(o instanceof e)return o._then(i,s,null,null,null)}i()}var a=0,l=t.length,c=new e(o);return i(),c}function c(t,e,n){this._data=t,this._promise=e,this._context=n}function f(t,e,n){this.constructor$(t,e,n)}function h(t){return c.isDisposer(t)?(this.resources[this.index]._setDisposable(t),t.promise()):t}function p(t){this.length=t,this.promise=null,this[t-1]=null}var d=t("./util"),v=t("./errors").TypeError,m=t("./util").inherits,g=d.errorObj,y=d.tryCatch;c.prototype.data=function(){return this._data},c.prototype.promise=function(){return this._promise},c.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():null},c.prototype.tryDispose=function(t){var e=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=null!==e?this.doDispose(e,t):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},c.isDisposer=function(t){return null!=t&&"function"==typeof t.resource&&"function"==typeof t.tryDispose},m(f,c),f.prototype.doDispose=function(t,e){var n=this.data();return n.call(t,t,e)},p.prototype._resultCancelled=function(){for(var t=this.length,n=0;n<t;++n){var r=this[n];r instanceof e&&r.cancel()}},e.using=function(){var t=arguments.length;if(t<2)return n("you must pass at least 2 arguments to Promise.using");var i=arguments[t-1];if("function"!=typeof i)return n("expecting a function but got "+d.classString(i));var o,s=!0;2===t&&Array.isArray(arguments[0])?(o=arguments[0],t=o.length,s=!1):(o=arguments,t--);for(var u=new p(t),f=0;f<t;++f){var v=o[f];if(c.isDisposer(v)){var m=v;v=v.promise(),v._setDisposable(m)}else{var _=r(v);_ instanceof e&&(v=_._then(h,null,null,{resources:u,index:f},void 0))}u[f]=v}for(var b=new Array(u.length),f=0;f<b.length;++f)b[f]=e.resolve(u[f]).reflect();var w=e.all(b).then(function(t){for(var e=0;e<t.length;++e){var n=t[e];if(n.isRejected())return g.e=n.error(),g;if(!n.isFulfilled())return void w.cancel();t[e]=n.value()}x._pushContext(),i=y(i);var r=s?i.apply(void 0,t):i(t),o=x._popContext();return a.checkForgottenReturns(r,o,"Promise.using",x),r}),x=w.lastly(function(){var t=new e.PromiseInspection(w);return l(u,t)});return u.promise=x,x._setOnCancel(u),x},e.prototype._setDisposable=function(t){this._bitField=131072|this._bitField,this._disposer=t},e.prototype._isDisposable=function(){return(131072&this._bitField)>0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},e.prototype.disposer=function(t){if("function"==typeof t)return new f(t,this,i());throw new v}}},{"./errors":12,"./util":36}],36:[function(t,e,n){"use strict";function r(){try{var t=T;return T=null,t.apply(this,arguments)}catch(e){return E.e=e,E}}function i(t){return T=t,r}function o(t){return null==t||t===!0||t===!1||"string"==typeof t||"number"==typeof t}function a(t){return"function"==typeof t||"object"==typeof t&&null!==t}function s(t){return o(t)?new Error(m(t)):t}function u(t,e){var n,r=t.length,i=new Array(r+1);for(n=0;n<r;++n)i[n]=t[n];return i[n]=e,i}function l(t,e,n){if(!C.isES5)return{}.hasOwnProperty.call(t,e)?t[e]:void 0;var r=Object.getOwnPropertyDescriptor(t,e);return null!=r?null==r.get&&null==r.set?r.value:n:void 0}function c(t,e,n){if(o(t))return t;var r={value:n,configurable:!0,enumerable:!1,writable:!0};return C.defineProperty(t,e,r),t}function f(t){throw t}function h(t){try{if("function"==typeof t){var e=C.names(t.prototype),n=C.isES5&&e.length>1,r=e.length>0&&!(1===e.length&&"constructor"===e[0]),i=O.test(t+"")&&C.names(t).length>0;if(n||r||i)return!0}return!1}catch(o){return!1}}function p(t){function e(){}e.prototype=t;for(var n=8;n--;)new e;return t}function d(t){return j.test(t)}function v(t,e,n){for(var r=new Array(t),i=0;i<t;++i)r[i]=e+i+n;return r}function m(t){try{return t+""}catch(e){return"[no string representation]"}}function g(t){return null!==t&&"object"==typeof t&&"string"==typeof t.message&&"string"==typeof t.name}function y(t){try{c(t,"isOperational",!0)}catch(e){}}function _(t){return null!=t&&(t instanceof Error.__BluebirdErrorTypes__.OperationalError||t.isOperational===!0)}function b(t){return g(t)&&C.propertyIsWritable(t,"stack")}function w(t){return{}.toString.call(t)}function x(t,e,n){for(var r=C.names(t),i=0;i<r.length;++i){var o=r[i];if(n(o))try{C.defineProperty(e,o,C.getDescriptor(t,o))}catch(a){}}}function $(t,e){return N?process.env[t]:e}function k(){if("function"==typeof Promise)try{var t=new Promise(function(){});if("[object Promise]"==={}.toString.call(t))return Promise}catch(e){}}var C=t("./es5"),S="undefined"==typeof navigator,E={e:{}},T,A="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0!==this?this:null,D=function(t,e){function n(){this.constructor=t,this.constructor$=e;for(var n in e.prototype)r.call(e.prototype,n)&&"$"!==n.charAt(n.length-1)&&(this[n+"$"]=e.prototype[n])}var r={}.hasOwnProperty;return n.prototype=e.prototype,t.prototype=new n,t.prototype},F=function(){var t=[Array.prototype,Object.prototype,Function.prototype],e=function(e){for(var n=0;n<t.length;++n)if(t[n]===e)return!0;return!1};if(C.isES5){var n=Object.getOwnPropertyNames;return function(t){for(var r=[],i=Object.create(null);null!=t&&!e(t);){var o;try{o=n(t)}catch(a){return r}for(var s=0;s<o.length;++s){var u=o[s];if(!i[u]){i[u]=!0;var l=Object.getOwnPropertyDescriptor(t,u);null!=l&&null==l.get&&null==l.set&&r.push(u)}}t=C.getPrototypeOf(t)}return r}}var r={}.hasOwnProperty;return function(n){if(e(n))return[];var i=[];t:for(var o in n)if(r.call(n,o))i.push(o);else{for(var a=0;a<t.length;++a)if(r.call(t[a],o))continue t;i.push(o)}return i}}(),O=/this\s*\.\s*\S+\s*=/,j=/^[a-z$_][a-z$_0-9]*$/i,M=function(){return"stack"in new Error?function(t){return b(t)?t:new Error(m(t))}:function(t){if(b(t))return t;try{throw new Error(m(t))}catch(e){return e}}}(),I=function(t){return C.isArray(t)?t:null};if("undefined"!=typeof Symbol&&Symbol.iterator){var P="function"==typeof Array.from?function(t){return Array.from(t)}:function(t){for(var e,n=[],r=t[Symbol.iterator]();!(e=r.next()).done;)n.push(e.value);return n};I=function(t){return C.isArray(t)?t:null!=t&&"function"==typeof t[Symbol.iterator]?P(t):null}}var N="undefined"!=typeof process&&"[object process]"===w(process).toLowerCase(),R={isClass:h,isIdentifier:d,inheritedDataKeys:F,getDataPropertyOrDefault:l,thrower:f,isArray:C.isArray,asArray:I,notEnumerableProp:c,isPrimitive:o,isObject:a,isError:g,canEvaluate:S,errorObj:E,tryCatch:i,inherits:D,withAppended:u,maybeWrapAsError:s,toFastProperties:p,filledRange:v,toString:m,canAttachTrace:b,ensureErrorObject:M,originatesFromRejection:_,markAsOriginatingFromRejection:y,classString:w,copyDescriptors:x,hasDevTools:"undefined"!=typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:N,env:$,global:A,getNativePromise:k};R.isRecentNode=R.isNode&&function(){var t=process.versions.node.split(".").map(Number);return 0===t[0]&&t[1]>10||t[0]>0}(),R.isNode&&R.toFastProperties(process);try{throw new Error}catch(L){R.lastLineError=L}e.exports=R},{"./es5":13}]},{},[4])(4)}),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise),function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e=!!t&&"length"in t&&t.length,n=ot.type(t);return"function"!==n&&!ot.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function r(t,e,n){if(ot.isFunction(e))return ot.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return ot.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(vt.test(e))return ot.filter(e,t,n);e=ot.filter(e,t)}return ot.grep(t,function(t){return Z.call(e,t)>-1!==n})}function i(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function o(t){var e={};return ot.each(t.match(wt)||[],function(t,n){e[n]=!0}),e}function a(){G.removeEventListener("DOMContentLoaded",a),t.removeEventListener("load",a),ot.ready()}function s(){this.expando=ot.expando+s.uid++}function u(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(Tt,"-$&").toLowerCase(),n=t.getAttribute(r),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Et.test(n)?ot.parseJSON(n):n)}catch(i){}St.set(t,e,n)}else n=void 0;return n}function l(t,e,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return ot.css(t,e,"")},u=s(),l=n&&n[3]||(ot.cssNumber[e]?"":"px"),c=(ot.cssNumber[e]||"px"!==l&&+u)&&Dt.exec(ot.css(t,e));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do o=o||".5",c/=o,ot.style(t,e,c+l);while(o!==(o=s()/u)&&1!==o&&--a)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function c(t,e){var n="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&ot.nodeName(t,e)?ot.merge([t],n):n}function f(t,e){for(var n=0,r=t.length;n<r;n++)Ct.set(t[n],"globalEval",!e||Ct.get(e[n],"globalEval"))}function h(t,e,n,r,i){for(var o,a,s,u,l,h,p=e.createDocumentFragment(),d=[],v=0,m=t.length;v<m;v++)if(o=t[v],o||0===o)if("object"===ot.type(o))ot.merge(d,o.nodeType?[o]:o);else if(Nt.test(o)){for(a=a||p.appendChild(e.createElement("div")),s=(Mt.exec(o)||["",""])[1].toLowerCase(),u=Pt[s]||Pt._default,a.innerHTML=u[1]+ot.htmlPrefilter(o)+u[2],h=u[0];h--;)a=a.lastChild;ot.merge(d,a.childNodes),a=p.firstChild,a.textContent=""}else d.push(e.createTextNode(o));for(p.textContent="",v=0;o=d[v++];)if(r&&ot.inArray(o,r)>-1)i&&i.push(o);else if(l=ot.contains(o.ownerDocument,o),a=c(p.appendChild(o),"script"),l&&f(a),n)for(h=0;o=a[h++];)It.test(o.type||"")&&n.push(o);return p}function p(){return!0}function d(){return!1}function v(){try{return G.activeElement}catch(t){}}function m(t,e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=void 0);for(s in e)m(t,s,n,r,e[s],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=d;else if(!i)return t;return 1===o&&(a=i,i=function(t){return ot().off(t),a.apply(this,arguments)},i.guid=a.guid||(a.guid=ot.guid++)),t.each(function(){ot.event.add(this,e,i,r,n)})}function g(t,e){return ot.nodeName(t,"table")&&ot.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function y(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function _(t){var e=Wt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function b(t,e){var n,r,i,o,a,s,u,l;if(1===e.nodeType){if(Ct.hasData(t)&&(o=Ct.access(t),a=Ct.set(e,o),l=o.events)){delete a.handle,a.events={};for(i in l)for(n=0,r=l[i].length;n<r;n++)ot.event.add(e,i,l[i][n])}St.hasData(t)&&(s=St.access(t),u=ot.extend({},s),St.set(e,u))}}function w(t,e){var n=e.nodeName.toLowerCase();"input"===n&&jt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function x(t,e,n,r){e=J.apply([],e);var i,o,a,s,u,l,f=0,p=t.length,d=p-1,v=e[0],m=ot.isFunction(v);if(m||p>1&&"string"==typeof v&&!rt.checkClone&&Ut.test(v))return t.each(function(i){var o=t.eq(i);m&&(e[0]=v.call(this,i,o.html())),x(o,e,n,r)});if(p&&(i=h(e,t[0].ownerDocument,!1,t,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(a=ot.map(c(i,"script"),y),s=a.length;f<p;f++)u=i,f!==d&&(u=ot.clone(u,!0,!0),s&&ot.merge(a,c(u,"script"))),n.call(t[f],u,f);if(s)for(l=a[a.length-1].ownerDocument,ot.map(a,_),f=0;f<s;f++)u=a[f],It.test(u.type||"")&&!Ct.access(u,"globalEval")&&ot.contains(l,u)&&(u.src?ot._evalUrl&&ot._evalUrl(u.src):ot.globalEval(u.textContent.replace(Vt,"")))}return t}function $(t,e,n){for(var r,i=e?ot.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ot.cleanData(c(r)),r.parentNode&&(n&&ot.contains(r.ownerDocument,r)&&f(c(r,"script")),r.parentNode.removeChild(r));return t}function k(t,e){var n=ot(e.createElement(t)).appendTo(e.body),r=ot.css(n[0],"display");return n.detach(),r}function C(t){var e=G,n=Yt[t];return n||(n=k(t,e),"none"!==n&&n||(Bt=(Bt||ot("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=Bt[0].contentDocument,e.write(),e.close(),n=k(t,e),Bt.detach()),Yt[t]=n),n}function S(t,e,n){var r,i,o,a,s=t.style;return n=n||Xt(t),a=n?n.getPropertyValue(e)||n[e]:void 0,""!==a&&void 0!==a||ot.contains(t.ownerDocument,t)||(a=ot.style(t,e)),n&&!rt.pixelMarginRight()&&Gt.test(a)&&Kt.test(e)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o),void 0!==a?a+"":a}function E(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function T(t){if(t in re)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=ne.length;n--;)if(t=ne[n]+e,t in re)return t}function A(t,e,n){var r=Dt.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function D(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=ot.css(t,n+Ft[o],!0,i)),r?("content"===n&&(a-=ot.css(t,"padding"+Ft[o],!0,i)),"margin"!==n&&(a-=ot.css(t,"border"+Ft[o]+"Width",!0,i))):(a+=ot.css(t,"padding"+Ft[o],!0,i),"padding"!==n&&(a+=ot.css(t,"border"+Ft[o]+"Width",!0,i)));return a}function F(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=Xt(t),a="border-box"===ot.css(t,"boxSizing",!1,o);if(i<=0||null==i){if(i=S(t,e,o),(i<0||null==i)&&(i=t.style[e]),Gt.test(i))return i;r=a&&(rt.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+D(t,e,n||(a?"border":"content"),r,o)+"px"}function O(t,e){for(var n,r,i,o=[],a=0,s=t.length;a<s;a++)r=t[a],r.style&&(o[a]=Ct.get(r,"olddisplay"),n=r.style.display,e?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&Ot(r)&&(o[a]=Ct.access(r,"olddisplay",C(r.nodeName)))):(i=Ot(r),"none"===n&&i||Ct.set(r,"olddisplay",i?n:ot.css(r,"display"))));for(a=0;a<s;a++)r=t[a],r.style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[a]||"":"none"));return t}function j(t,e,n,r,i){return new j.prototype.init(t,e,n,r,i)}function M(){return t.setTimeout(function(){ie=void 0}),ie=ot.now()}function I(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)n=Ft[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function P(t,e,n){for(var r,i=(L.tweeners[e]||[]).concat(L.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function N(t,e,n){var r,i,o,a,s,u,l,c,f=this,h={},p=t.style,d=t.nodeType&&Ot(t),v=Ct.get(t,"fxshow");n.queue||(s=ot._queueHooks(t,"fx"),null==s.unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,ot.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],l=ot.css(t,"display"),c="none"===l?Ct.get(t,"olddisplay")||C(t.nodeName):l,"inline"===c&&"none"===ot.css(t,"float")&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in e)if(i=e[r],ae.exec(i)){if(delete e[r],o=o||"toggle"===i,i===(d?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;d=!0}h[r]=v&&v[r]||ot.style(t,r)}else l=void 0;if(ot.isEmptyObject(h))"inline"===("none"===l?C(t.nodeName):l)&&(p.display=l);else{v?"hidden"in v&&(d=v.hidden):v=Ct.access(t,"fxshow",{}),o&&(v.hidden=!d),d?ot(t).show():f.done(function(){ot(t).hide()}),f.done(function(){var e;Ct.remove(t,"fxshow");for(e in h)ot.style(t,e,h[e])});for(r in h)a=P(d?v[r]:0,r,f),r in v||(v[r]=a.start,d&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function R(t,e){var n,r,i,o,a;for(n in t)if(r=ot.camelCase(n),i=e[r],o=t[n],ot.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),a=ot.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete t[r];for(n in o)n in t||(t[n]=o[n],e[n]=i)}else e[r]=i}function L(t,e,n){var r,i,o=0,a=L.prefilters.length,s=ot.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var e=ie||M(),n=Math.max(0,l.startTime+l.duration-e),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;a<u;a++)l.tweens[a].run(o);return s.notifyWith(t,[l,o,n]),o<1&&u?n:(s.resolveWith(t,[l]),!1)},l=s.promise({elem:t,props:ot.extend({},e),opts:ot.extend(!0,{specialEasing:{},easing:ot.easing._default},n),originalProperties:e,originalOptions:n,startTime:ie||M(),duration:n.duration,tweens:[],createTween:function(e,n){var r=ot.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(r),r},stop:function(e){var n=0,r=e?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return e?(s.notifyWith(t,[l,1,0]),s.resolveWith(t,[l,e])):s.rejectWith(t,[l,e]),this}}),c=l.props;for(R(c,l.opts.specialEasing);o<a;o++)if(r=L.prefilters[o].call(l,t,c,l.opts))return ot.isFunction(r.stop)&&(ot._queueHooks(l.elem,l.opts.queue).stop=ot.proxy(r.stop,r)),r;return ot.map(c,P,l),ot.isFunction(l.opts.start)&&l.opts.start.call(t,l),ot.fx.timer(ot.extend(u,{elem:t,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function z(t){return t.getAttribute&&t.getAttribute("class")||""}function q(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(wt)||[];if(ot.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function H(t,e,n,r){function i(s){var u;return o[s]=!0,ot.each(t[s]||[],function(t,s){var l=s(e,n,r);return"string"!=typeof l||a||o[l]?a?!(u=l):void 0:(e.dataTypes.unshift(l),i(l),!1)}),u}var o={},a=t===Se;return i(e.dataTypes[0])||!o["*"]&&i("*")}function U(t,e){var n,r,i=ot.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&ot.extend(!0,t,r),t}function W(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}function V(t,e,n,r){var i,o,a,s,u,l={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(a=l[u+" "+o]||l["* "+o],!a)for(i in l)if(s=i.split(" "),s[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){a===!0?a=l[i]:l[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&t["throws"])e=a(e);else try{e=a(e)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}function B(t,e,n,r){var i;if(ot.isArray(e))ot.each(e,function(e,i){n||De.test(t)?r(t,i):B(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==ot.type(e))r(t,e);else for(i in e)B(t+"["+i+"]",e[i],n,r)}function Y(t){return ot.isWindow(t)?t:9===t.nodeType&&t.defaultView}var K=[],G=t.document,X=K.slice,J=K.concat,Q=K.push,Z=K.indexOf,tt={},et=tt.toString,nt=tt.hasOwnProperty,rt={},it="2.2.4",ot=function(t,e){return new ot.fn.init(t,e)},at=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,st=/^-ms-/,ut=/-([\da-z])/gi,lt=function(t,e){return e.toUpperCase()};ot.fn=ot.prototype={jquery:it,constructor:ot,selector:"",length:0,toArray:function(){return X.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:X.call(this)},pushStack:function(t){var e=ot.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return ot.each(this,t)},map:function(t){return this.pushStack(ot.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(X.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:Q,sort:K.sort,splice:K.splice},ot.extend=ot.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||ot.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(t=arguments[s]))for(e in t)n=a[e],r=t[e],a!==r&&(l&&r&&(ot.isPlainObject(r)||(i=ot.isArray(r)))?(i?(i=!1,o=n&&ot.isArray(n)?n:[]):o=n&&ot.isPlainObject(n)?n:{},a[e]=ot.extend(l,o,r)):void 0!==r&&(a[e]=r));return a},ot.extend({expando:"jQuery"+(it+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===ot.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!ot.isArray(t)&&e-parseFloat(e)+1>=0},isPlainObject:function(t){var e;if("object"!==ot.type(t)||t.nodeType||ot.isWindow(t))return!1;if(t.constructor&&!nt.call(t,"constructor")&&!nt.call(t.constructor.prototype||{},"isPrototypeOf"))return!1;for(e in t);return void 0===e||nt.call(t,e)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?tt[et.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;t=ot.trim(t),t&&(1===t.indexOf("use strict")?(e=G.createElement("script"),e.text=t,G.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(st,"ms-").replace(ut,lt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var r,i=0;if(n(t))for(r=t.length;i<r&&e.call(t[i],i,t[i])!==!1;i++);else for(i in t)if(e.call(t[i],i,t[i])===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(at,"")},makeArray:function(t,e){var r=e||[];return null!=t&&(n(Object(t))?ot.merge(r,"string"==typeof t?[t]:t):Q.call(r,t)),r},inArray:function(t,e,n){return null==e?-1:Z.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r,i=[],o=0,a=t.length,s=!n;o<a;o++)r=!e(t[o],o),r!==s&&i.push(t[o]);return i},map:function(t,e,r){var i,o,a=0,s=[];if(n(t))for(i=t.length;a<i;a++)o=e(t[a],a,r),null!=o&&s.push(o);else for(a in t)o=e(t[a],a,r),null!=o&&s.push(o);return J.apply([],s)},guid:1,proxy:function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),ot.isFunction(t))return r=X.call(arguments,2),i=function(){return t.apply(e||this,r.concat(X.call(arguments)))},i.guid=t.guid=t.guid||ot.guid++,i},now:Date.now,support:rt}),"function"==typeof Symbol&&(ot.fn[Symbol.iterator]=K[Symbol.iterator]),ot.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){tt["[object "+e+"]"]=e.toLowerCase()});var ct=function(t){function e(t,e,n,r){var i,o,a,s,u,l,f,p,d=e&&e.ownerDocument,v=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==v&&9!==v&&11!==v)return n;if(!r&&((e?e.ownerDocument||e:z)!==O&&F(e),e=e||O,M)){if(11!==v&&(l=gt.exec(t)))if(i=l[1]){if(9===v){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(d&&(a=d.getElementById(i))&&R(e,a)&&a.id===i)return n.push(a),n}else{if(l[2])return Q.apply(n,e.getElementsByTagName(t)),n;if((i=l[3])&&w.getElementsByClassName&&e.getElementsByClassName)return Q.apply(n,e.getElementsByClassName(i)),n}if(w.qsa&&!V[t+" "]&&(!I||!I.test(t))){if(1!==v)d=e,p=t;else if("object"!==e.nodeName.toLowerCase()){for((s=e.getAttribute("id"))?s=s.replace(_t,"\\$&"):e.setAttribute("id",s=L),f=C(t),o=f.length,u=ht.test(s)?"#"+s:"[id='"+s+"']";o--;)f[o]=u+" "+h(f[o]);p=f.join(","),d=yt.test(t)&&c(e.parentNode)||e}if(p)try{return Q.apply(n,d.querySelectorAll(p)),n}catch(m){}finally{s===L&&e.removeAttribute("id")}}}return E(t.replace(st,"$1"),e,n,r)}function n(){function t(n,r){return e.push(n+" ")>x.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t;
}function r(t){return t[L]=!0,t}function i(t){var e=O.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),r=n.length;r--;)x.attrHandle[n[r]]=e}function a(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||Y)-(~t.sourceIndex||Y);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function s(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function u(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function l(t){return r(function(e){return e=+e,r(function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function c(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function f(){}function h(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function p(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=H++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,a){var s,u,l,c=[q,o];if(a){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,a))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if(l=e[L]||(e[L]={}),u=l[e.uniqueID]||(l[e.uniqueID]={}),(s=u[r])&&s[0]===q&&s[1]===o)return c[2]=s[2];if(u[r]=c,c[2]=t(e,n,a))return!0}}}function d(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function v(t,n,r){for(var i=0,o=n.length;i<o;i++)e(t,n[i],r);return r}function m(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,l=null!=e;s<u;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),l&&e.push(s)));return a}function g(t,e,n,i,o,a){return i&&!i[L]&&(i=g(i)),o&&!o[L]&&(o=g(o,a)),r(function(r,a,s,u){var l,c,f,h=[],p=[],d=a.length,g=r||v(e||"*",s.nodeType?[s]:s,[]),y=!t||!r&&e?g:m(g,h,t,s,u),_=n?o||(r?t:d||i)?[]:a:y;if(n&&n(y,_,s,u),i)for(l=m(_,p),i(l,[],s,u),c=l.length;c--;)(f=l[c])&&(_[p[c]]=!(y[p[c]]=f));if(r){if(o||t){if(o){for(l=[],c=_.length;c--;)(f=_[c])&&l.push(y[c]=f);o(null,_=[],l,u)}for(c=_.length;c--;)(f=_[c])&&(l=o?tt(r,f):h[c])>-1&&(r[l]=!(a[l]=f))}}else _=m(_===a?_.splice(d,_.length):_),o?o(null,a,_,u):Q.apply(a,_)})}function y(t){for(var e,n,r,i=t.length,o=x.relative[t[0].type],a=o||x.relative[" "],s=o?1:0,u=p(function(t){return t===e},a,!0),l=p(function(t){return tt(e,t)>-1},a,!0),c=[function(t,n,r){var i=!o&&(r||n!==T)||((e=n).nodeType?u(t,n,r):l(t,n,r));return e=null,i}];s<i;s++)if(n=x.relative[t[s].type])c=[p(d(c),n)];else{if(n=x.filter[t[s].type].apply(null,t[s].matches),n[L]){for(r=++s;r<i&&!x.relative[t[r].type];r++);return g(s>1&&d(c),s>1&&h(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(st,"$1"),n,s<r&&y(t.slice(s,r)),r<i&&y(t=t.slice(r)),r<i&&h(t))}c.push(n)}return d(c)}function _(t,n){var i=n.length>0,o=t.length>0,a=function(r,a,s,u,l){var c,f,h,p=0,d="0",v=r&&[],g=[],y=T,_=r||o&&x.find.TAG("*",l),b=q+=null==y?1:Math.random()||.1,w=_.length;for(l&&(T=a===O||a||l);d!==w&&null!=(c=_[d]);d++){if(o&&c){for(f=0,a||c.ownerDocument===O||(F(c),s=!M);h=t[f++];)if(h(c,a||O,s)){u.push(c);break}l&&(q=b)}i&&((c=!h&&c)&&p--,r&&v.push(c))}if(p+=d,i&&d!==p){for(f=0;h=n[f++];)h(v,g,a,s);if(r){if(p>0)for(;d--;)v[d]||g[d]||(g[d]=X.call(u));g=m(g)}Q.apply(u,g),l&&!r&&g.length>0&&p+n.length>1&&e.uniqueSort(u)}return l&&(q=b,T=y),v};return i?r(a):a}var b,w,x,$,k,C,S,E,T,A,D,F,O,j,M,I,P,N,R,L="sizzle"+1*new Date,z=t.document,q=0,H=0,U=n(),W=n(),V=n(),B=function(t,e){return t===e&&(D=!0),0},Y=1<<31,K={}.hasOwnProperty,G=[],X=G.pop,J=G.push,Q=G.push,Z=G.slice,tt=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",rt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",it="\\["+nt+"*("+rt+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+rt+"))|)"+nt+"*\\]",ot=":("+rt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+it+")*)|.*)\\)|)",at=new RegExp(nt+"+","g"),st=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),ut=new RegExp("^"+nt+"*,"+nt+"*"),lt=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ct=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),ft=new RegExp(ot),ht=new RegExp("^"+rt+"$"),pt={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt+"|[*])"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},dt=/^(?:input|select|textarea|button)$/i,vt=/^h\d$/i,mt=/^[^{]+\{\s*\[native \w/,gt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,_t=/'|\\/g,bt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),wt=function(t,e,n){var r="0x"+e-65536;return r!==r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},xt=function(){F()};try{Q.apply(G=Z.call(z.childNodes),z.childNodes),G[z.childNodes.length].nodeType}catch($t){Q={apply:G.length?function(t,e){J.apply(t,Z.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}w=e.support={},k=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},F=e.setDocument=function(t){var e,n,r=t?t.ownerDocument||t:z;return r!==O&&9===r.nodeType&&r.documentElement?(O=r,j=O.documentElement,M=!k(O),(n=O.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",xt,!1):n.attachEvent&&n.attachEvent("onunload",xt)),w.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=i(function(t){return t.appendChild(O.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=mt.test(O.getElementsByClassName),w.getById=i(function(t){return j.appendChild(t).id=L,!O.getElementsByName||!O.getElementsByName(L).length}),w.getById?(x.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&M){var n=e.getElementById(t);return n?[n]:[]}},x.filter.ID=function(t){var e=t.replace(bt,wt);return function(t){return t.getAttribute("id")===e}}):(delete x.find.ID,x.filter.ID=function(t){var e=t.replace(bt,wt);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),x.find.TAG=w.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):w.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},x.find.CLASS=w.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&M)return e.getElementsByClassName(t)},P=[],I=[],(w.qsa=mt.test(O.querySelectorAll))&&(i(function(t){j.appendChild(t).innerHTML="<a id='"+L+"'></a><select id='"+L+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&I.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||I.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+L+"-]").length||I.push("~="),t.querySelectorAll(":checked").length||I.push(":checked"),t.querySelectorAll("a#"+L+"+*").length||I.push(".#.+[+~]")}),i(function(t){var e=O.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&I.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||I.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),I.push(",.*:")})),(w.matchesSelector=mt.test(N=j.matches||j.webkitMatchesSelector||j.mozMatchesSelector||j.oMatchesSelector||j.msMatchesSelector))&&i(function(t){w.disconnectedMatch=N.call(t,"div"),N.call(t,"[s!='']:x"),P.push("!=",ot)}),I=I.length&&new RegExp(I.join("|")),P=P.length&&new RegExp(P.join("|")),e=mt.test(j.compareDocumentPosition),R=e||mt.test(j.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},B=e?function(t,e){if(t===e)return D=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!w.sortDetached&&e.compareDocumentPosition(t)===n?t===O||t.ownerDocument===z&&R(z,t)?-1:e===O||e.ownerDocument===z&&R(z,e)?1:A?tt(A,t)-tt(A,e):0:4&n?-1:1)}:function(t,e){if(t===e)return D=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,s=[t],u=[e];if(!i||!o)return t===O?-1:e===O?1:i?-1:o?1:A?tt(A,t)-tt(A,e):0;if(i===o)return a(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]===z?-1:u[r]===z?1:0},O):O},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==O&&F(t),n=n.replace(ct,"='$1']"),w.matchesSelector&&M&&!V[n+" "]&&(!P||!P.test(n))&&(!I||!I.test(n)))try{var r=N.call(t,n);if(r||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(i){}return e(n,O,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==O&&F(t),R(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==O&&F(t);var n=x.attrHandle[e.toLowerCase()],r=n&&K.call(x.attrHandle,e.toLowerCase())?n(t,e,!M):void 0;return void 0!==r?r:w.attributes||!M?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],r=0,i=0;if(D=!w.detectDuplicates,A=!w.sortStable&&t.slice(0),t.sort(B),D){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return A=null,t},$=e.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=$(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=$(e);return n},x=e.selectors={cacheLength:50,createPseudo:r,match:pt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(bt,wt),t[3]=(t[3]||t[4]||t[5]||"").replace(bt,wt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return pt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ft.test(n)&&(e=C(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(bt,wt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=U[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&U(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(i){var o=e.attr(i,t);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(at," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var l,c,f,h,p,d,v=o!==a?"nextSibling":"previousSibling",m=e.parentNode,g=s&&e.nodeName.toLowerCase(),y=!u&&!s,_=!1;if(m){if(o){for(;v;){for(h=e;h=h[v];)if(s?h.nodeName.toLowerCase()===g:1===h.nodeType)return!1;d=v="only"===t&&!d&&"nextSibling"}return!0}if(d=[a?m.firstChild:m.lastChild],a&&y){for(h=m,f=h[L]||(h[L]={}),c=f[h.uniqueID]||(f[h.uniqueID]={}),l=c[t]||[],p=l[0]===q&&l[1],_=p&&l[2],h=p&&m.childNodes[p];h=++p&&h&&h[v]||(_=p=0)||d.pop();)if(1===h.nodeType&&++_&&h===e){c[t]=[q,p,_];break}}else if(y&&(h=e,f=h[L]||(h[L]={}),c=f[h.uniqueID]||(f[h.uniqueID]={}),l=c[t]||[],p=l[0]===q&&l[1],_=p),_===!1)for(;(h=++p&&h&&h[v]||(_=p=0)||d.pop())&&((s?h.nodeName.toLowerCase()!==g:1!==h.nodeType)||!++_||(y&&(f=h[L]||(h[L]={}),c=f[h.uniqueID]||(f[h.uniqueID]={}),c[t]=[q,_]),h!==e)););return _-=i,_===r||_%r===0&&_/r>=0}}},PSEUDO:function(t,n){var i,o=x.pseudos[t]||x.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[L]?o(n):o.length>1?(i=[t,t,"",n],x.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,e){for(var r,i=o(t,n),a=i.length;a--;)r=tt(t,i[a]),t[r]=!(e[r]=i[a])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var e=[],n=[],i=S(t.replace(st,"$1"));return i[L]?r(function(t,e,n,r){for(var o,a=i(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:r(function(t){return function(n){return e(t,n).length>0}}),contains:r(function(t){return t=t.replace(bt,wt),function(e){return(e.textContent||e.innerText||$(e)).indexOf(t)>-1}}),lang:r(function(t){return ht.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(bt,wt).toLowerCase(),function(e){var n;do if(n=M?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===j},focus:function(t){return t===O.activeElement&&(!O.hasFocus||O.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return vt.test(t.nodeName)},input:function(t){return dt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,e){return[e-1]}),eq:l(function(t,e,n){return[n<0?n+e:n]}),even:l(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:l(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:l(function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t}),gt:l(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}},x.pseudos.nth=x.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[b]=s(b);for(b in{submit:!0,reset:!0})x.pseudos[b]=u(b);return f.prototype=x.filters=x.pseudos,x.setFilters=new f,C=e.tokenize=function(t,n){var r,i,o,a,s,u,l,c=W[t+" "];if(c)return n?0:c.slice(0);for(s=t,u=[],l=x.preFilter;s;){r&&!(i=ut.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=lt.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(st," ")}),s=s.slice(r.length));for(a in x.filter)!(i=pt[a].exec(s))||l[a]&&!(i=l[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?e.error(t):W(t,u).slice(0)},S=e.compile=function(t,e){var n,r=[],i=[],o=V[t+" "];if(!o){for(e||(e=C(t)),n=e.length;n--;)o=y(e[n]),o[L]?r.push(o):i.push(o);o=V(t,_(i,r)),o.selector=t}return o},E=e.select=function(t,e,n,r){var i,o,a,s,u,l="function"==typeof t&&t,f=!r&&C(t=l.selector||t);if(n=n||[],1===f.length){if(o=f[0]=f[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&w.getById&&9===e.nodeType&&M&&x.relative[o[1].type]){if(e=(x.find.ID(a.matches[0].replace(bt,wt),e)||[])[0],!e)return n;l&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=pt.needsContext.test(t)?0:o.length;i--&&(a=o[i],!x.relative[s=a.type]);)if((u=x.find[s])&&(r=u(a.matches[0].replace(bt,wt),yt.test(o[0].type)&&c(e.parentNode)||e))){if(o.splice(i,1),t=r.length&&h(o),!t)return Q.apply(n,r),n;break}}return(l||S(t,f))(r,e,!M,n,!e||yt.test(t)&&c(e.parentNode)||e),n},w.sortStable=L.split("").sort(B).join("")===L,w.detectDuplicates=!!D,F(),w.sortDetached=i(function(t){return 1&t.compareDocumentPosition(O.createElement("div"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),w.attributes&&i(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||o(et,function(t,e,n){var r;if(!n)return t[e]===!0?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),e}(t);ot.find=ct,ot.expr=ct.selectors,ot.expr[":"]=ot.expr.pseudos,ot.uniqueSort=ot.unique=ct.uniqueSort,ot.text=ct.getText,ot.isXMLDoc=ct.isXML,ot.contains=ct.contains;var ft=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&ot(t).is(n))break;r.push(t)}return r},ht=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},pt=ot.expr.match.needsContext,dt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,vt=/^.[^:#\[\.,]*$/;ot.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?ot.find.matchesSelector(r,t)?[r]:[]:ot.find.matches(t,ot.grep(e,function(t){return 1===t.nodeType}))},ot.fn.extend({find:function(t){var e,n=this.length,r=[],i=this;if("string"!=typeof t)return this.pushStack(ot(t).filter(function(){for(e=0;e<n;e++)if(ot.contains(i[e],this))return!0}));for(e=0;e<n;e++)ot.find(t,i[e],r);return r=this.pushStack(n>1?ot.unique(r):r),r.selector=this.selector?this.selector+" "+t:t,r},filter:function(t){return this.pushStack(r(this,t||[],!1))},not:function(t){return this.pushStack(r(this,t||[],!0))},is:function(t){return!!r(this,"string"==typeof t&&pt.test(t)?ot(t):t||[],!1).length}});var mt,gt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,yt=ot.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||mt,"string"==typeof t){if(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:gt.exec(t),!r||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof ot?e[0]:e,ot.merge(this,ot.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:G,!0)),dt.test(r[1])&&ot.isPlainObject(e))for(r in e)ot.isFunction(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return i=G.getElementById(r[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=G,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):ot.isFunction(t)?void 0!==n.ready?n.ready(t):t(ot):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),ot.makeArray(t,this))};yt.prototype=ot.fn,mt=ot(G);var _t=/^(?:parents|prev(?:Until|All))/,bt={children:!0,contents:!0,next:!0,prev:!0};ot.fn.extend({has:function(t){var e=ot(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(ot.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,r=0,i=this.length,o=[],a=pt.test(t)||"string"!=typeof t?ot(t,e||this.context):0;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&ot.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?ot.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?Z.call(ot(t),this[0]):Z.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ot.uniqueSort(ot.merge(this.get(),ot(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ot.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return ft(t,"parentNode")},parentsUntil:function(t,e,n){return ft(t,"parentNode",n)},next:function(t){return i(t,"nextSibling")},prev:function(t){return i(t,"previousSibling")},nextAll:function(t){return ft(t,"nextSibling")},prevAll:function(t){return ft(t,"previousSibling")},nextUntil:function(t,e,n){return ft(t,"nextSibling",n)},prevUntil:function(t,e,n){return ft(t,"previousSibling",n)},siblings:function(t){return ht((t.parentNode||{}).firstChild,t)},children:function(t){return ht(t.firstChild)},contents:function(t){return t.contentDocument||ot.merge([],t.childNodes)}},function(t,e){ot.fn[t]=function(n,r){var i=ot.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ot.filter(r,i)),this.length>1&&(bt[t]||ot.uniqueSort(i),_t.test(t)&&i.reverse()),this.pushStack(i)}});var wt=/\S+/g;ot.Callbacks=function(t){t="string"==typeof t?o(t):ot.extend({},t);var e,n,r,i,a=[],s=[],u=-1,l=function(){for(i=t.once,r=e=!0;s.length;u=-1)for(n=s.shift();++u<a.length;)a[u].apply(n[0],n[1])===!1&&t.stopOnFalse&&(u=a.length,n=!1);t.memory||(n=!1),e=!1,i&&(a=n?[]:"")},c={add:function(){return a&&(n&&!e&&(u=a.length-1,s.push(n)),function r(e){ot.each(e,function(e,n){ot.isFunction(n)?t.unique&&c.has(n)||a.push(n):n&&n.length&&"string"!==ot.type(n)&&r(n)})}(arguments),n&&!e&&l()),this},remove:function(){return ot.each(arguments,function(t,e){for(var n;(n=ot.inArray(e,a,n))>-1;)a.splice(n,1),n<=u&&u--}),this},has:function(t){return t?ot.inArray(t,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=s=[],n||(a=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=n||[],n=[t,n.slice?n.slice():n],s.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},ot.extend({Deferred:function(t){var e=[["resolve","done",ot.Callbacks("once memory"),"resolved"],["reject","fail",ot.Callbacks("once memory"),"rejected"],["notify","progress",ot.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return ot.Deferred(function(n){ot.each(e,function(e,o){var a=ot.isFunction(t[e])&&t[e];i[o[1]](function(){var t=a&&a.apply(this,arguments);t&&ot.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?ot.extend(t,r):r}},i={};return r.pipe=r.then,ot.each(e,function(t,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=X.call(arguments),a=o.length,s=1!==a||t&&ot.isFunction(t.promise)?a:0,u=1===s?t:ot.Deferred(),l=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?X.call(arguments):i,r===e?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(e=new Array(a),n=new Array(a),r=new Array(a);i<a;i++)o[i]&&ot.isFunction(o[i].promise)?o[i].promise().progress(l(i,n,e)).done(l(i,r,o)).fail(u.reject):--s;return s||u.resolveWith(r,o),u.promise()}});var xt;ot.fn.ready=function(t){return ot.ready.promise().done(t),this},ot.extend({isReady:!1,readyWait:1,holdReady:function(t){t?ot.readyWait++:ot.ready(!0)},ready:function(t){(t===!0?--ot.readyWait:ot.isReady)||(ot.isReady=!0,t!==!0&&--ot.readyWait>0||(xt.resolveWith(G,[ot]),ot.fn.triggerHandler&&(ot(G).triggerHandler("ready"),ot(G).off("ready"))))}}),ot.ready.promise=function(e){return xt||(xt=ot.Deferred(),"complete"===G.readyState||"loading"!==G.readyState&&!G.documentElement.doScroll?t.setTimeout(ot.ready):(G.addEventListener("DOMContentLoaded",a),t.addEventListener("load",a))),xt.promise(e)},ot.ready.promise();var $t=function(t,e,n,r,i,o,a){var s=0,u=t.length,l=null==n;if("object"===ot.type(n)){i=!0;for(s in n)$t(t,e,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,ot.isFunction(r)||(a=!0),l&&(a?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(ot(t),n)})),e))for(;s<u;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return i?t:l?e.call(t):u?e(t[0],n):o},kt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};s.uid=1,s.prototype={register:function(t,e){var n=e||{};return t.nodeType?t[this.expando]=n:Object.defineProperty(t,this.expando,{value:n,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){if(!kt(t))return{};var e=t[this.expando];return e||(e={},kt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"==typeof e)i[e]=n;else for(r in e)i[r]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,n){var r;return void 0===e||e&&"string"==typeof e&&void 0===n?(r=this.get(t,e),void 0!==r?r:this.get(t,ot.camelCase(e))):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r,i,o=t[this.expando];if(void 0!==o){if(void 0===e)this.register(t);else{ot.isArray(e)?r=e.concat(e.map(ot.camelCase)):(i=ot.camelCase(e),e in o?r=[e,i]:(r=i,r=r in o?[r]:r.match(wt)||[])),n=r.length;for(;n--;)delete o[r[n]]}(void 0===e||ot.isEmptyObject(o))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!ot.isEmptyObject(e)}};var Ct=new s,St=new s,Et=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Tt=/[A-Z]/g;ot.extend({hasData:function(t){return St.hasData(t)||Ct.hasData(t)},data:function(t,e,n){return St.access(t,e,n)},removeData:function(t,e){St.remove(t,e)},_data:function(t,e,n){return Ct.access(t,e,n)},_removeData:function(t,e){Ct.remove(t,e)}}),ot.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=St.get(o),1===o.nodeType&&!Ct.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=ot.camelCase(r.slice(5)),u(o,r,i[r])));Ct.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){St.set(this,t)}):$t(this,function(e){var n,r;if(o&&void 0===e){if(n=St.get(o,t)||St.get(o,t.replace(Tt,"-$&").toLowerCase()),void 0!==n)return n;if(r=ot.camelCase(t),n=St.get(o,r),void 0!==n)return n;if(n=u(o,r,void 0),void 0!==n)return n}else r=ot.camelCase(t),this.each(function(){var n=St.get(this,r);St.set(this,r,e),t.indexOf("-")>-1&&void 0!==n&&St.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){St.remove(this,t)})}}),ot.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=Ct.get(t,e),n&&(!r||ot.isArray(n)?r=Ct.access(t,e,ot.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=ot.queue(t,e),r=n.length,i=n.shift(),o=ot._queueHooks(t,e),a=function(){ot.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Ct.get(t,n)||Ct.access(t,n,{empty:ot.Callbacks("once memory").add(function(){Ct.remove(t,[e+"queue",n])})})}}),ot.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?ot.queue(this[0],t):void 0===e?this:this.each(function(){var n=ot.queue(this,t,e);ot._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&ot.dequeue(this,t)})},dequeue:function(t){return this.each(function(){ot.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=ot.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)n=Ct.get(o[a],t+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var At=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Dt=new RegExp("^(?:([+-])=|)("+At+")([a-z%]*)$","i"),Ft=["Top","Right","Bottom","Left"],Ot=function(t,e){return t=e||t,"none"===ot.css(t,"display")||!ot.contains(t.ownerDocument,t)},jt=/^(?:checkbox|radio)$/i,Mt=/<([\w:-]+)/,It=/^$|\/(?:java|ecma)script/i,Pt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Pt.optgroup=Pt.option,Pt.tbody=Pt.tfoot=Pt.colgroup=Pt.caption=Pt.thead,Pt.th=Pt.td;var Nt=/<|&#?\w+;/;!function(){var t=G.createDocumentFragment(),e=t.appendChild(G.createElement("div")),n=G.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),rt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",rt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Rt=/^key/,Lt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,zt=/^([^.]*)(?:\.(.+)|)/;ot.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,h,p,d,v,m=Ct.get(t);if(m)for(n.handler&&(o=n,n=o.handler,i=o.selector),n.guid||(n.guid=ot.guid++),(u=m.events)||(u=m.events={}),(a=m.handle)||(a=m.handle=function(e){return"undefined"!=typeof ot&&ot.event.triggered!==e.type?ot.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(wt)||[""],l=e.length;l--;)s=zt.exec(e[l])||[],p=v=s[1],d=(s[2]||"").split(".").sort(),p&&(f=ot.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=ot.event.special[p]||{},c=ot.extend({type:p,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ot.expr.match.needsContext.test(i),namespace:d.join(".")},o),(h=u[p])||(h=u[p]=[],h.delegateCount=0,f.setup&&f.setup.call(t,r,d,a)!==!1||t.addEventListener&&t.addEventListener(p,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),ot.event.global[p]=!0)},remove:function(t,e,n,r,i){var o,a,s,u,l,c,f,h,p,d,v,m=Ct.hasData(t)&&Ct.get(t);if(m&&(u=m.events)){for(e=(e||"").match(wt)||[""],l=e.length;l--;)if(s=zt.exec(e[l])||[],p=v=s[1],d=(s[2]||"").split(".").sort(),p){for(f=ot.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,h=u[p]||[],s=s[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!i&&v!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(t,c));a&&!h.length&&(f.teardown&&f.teardown.call(t,d,m.handle)!==!1||ot.removeEvent(t,p,m.handle),delete u[p])}else for(p in u)ot.event.remove(t,p+e[l],n,r,!0);ot.isEmptyObject(u)&&Ct.remove(t,"handle events")}},dispatch:function(t){t=ot.event.fix(t);var e,n,r,i,o,a=[],s=X.call(arguments),u=(Ct.get(this,"events")||{})[t.type]||[],l=ot.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,t)!==!1){for(a=ot.event.handlers.call(this,t,u),e=0;(i=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,r=((ot.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s),void 0!==r&&(t.result=r)===!1&&(t.preventDefault(),t.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,a=[],s=e.delegateCount,u=t.target;if(s&&u.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==t.type)){
for(r=[],n=0;n<s;n++)o=e[n],i=o.selector+" ",void 0===r[i]&&(r[i]=o.needsContext?ot(i,this).index(u)>-1:ot.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,o=e.button;return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||G,r=n.documentElement,i=n.body,t.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[ot.expando])return t;var e,n,r,i=t.type,o=t,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Lt.test(i)?this.mouseHooks:Rt.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,t=new ot.Event(o),e=r.length;e--;)n=r[e],t[n]=o[n];return t.target||(t.target=G),3===t.target.nodeType&&(t.target=t.target.parentNode),a.filter?a.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==v()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===v()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&ot.nodeName(this,"input"))return this.click(),!1},_default:function(t){return ot.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},ot.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},ot.Event=function(t,e){return this instanceof ot.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?p:d):this.type=t,e&&ot.extend(this,e),this.timeStamp=t&&t.timeStamp||ot.now(),void(this[ot.expando]=!0)):new ot.Event(t,e)},ot.Event.prototype={constructor:ot.Event,isDefaultPrevented:d,isPropagationStopped:d,isImmediatePropagationStopped:d,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=p,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=p,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=p,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},ot.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){ot.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||ot.contains(r,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),ot.fn.extend({on:function(t,e,n,r){return m(this,t,e,n,r)},one:function(t,e,n,r){return m(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,ot(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return e!==!1&&"function"!=typeof e||(n=e,e=void 0),n===!1&&(n=d),this.each(function(){ot.event.remove(this,t,n,e)})}});var qt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ht=/<script|<style|<link/i,Ut=/checked\s*(?:[^=]|=\s*.checked.)/i,Wt=/^true\/(.*)/,Vt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ot.extend({htmlPrefilter:function(t){return t.replace(qt,"<$1></$2>")},clone:function(t,e,n){var r,i,o,a,s=t.cloneNode(!0),u=ot.contains(t.ownerDocument,t);if(!(rt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ot.isXMLDoc(t)))for(a=c(s),o=c(t),r=0,i=o.length;r<i;r++)w(o[r],a[r]);if(e)if(n)for(o=o||c(t),a=a||c(s),r=0,i=o.length;r<i;r++)b(o[r],a[r]);else b(t,s);return a=c(s,"script"),a.length>0&&f(a,!u&&c(t,"script")),s},cleanData:function(t){for(var e,n,r,i=ot.event.special,o=0;void 0!==(n=t[o]);o++)if(kt(n)){if(e=n[Ct.expando]){if(e.events)for(r in e.events)i[r]?ot.event.remove(n,r):ot.removeEvent(n,r,e.handle);n[Ct.expando]=void 0}n[St.expando]&&(n[St.expando]=void 0)}}}),ot.fn.extend({domManip:x,detach:function(t){return $(this,t,!0)},remove:function(t){return $(this,t)},text:function(t){return $t(this,function(t){return void 0===t?ot.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return x(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=g(this,t);e.appendChild(t)}})},prepend:function(){return x(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=g(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return x(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return x(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(ot.cleanData(c(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return ot.clone(this,t,e)})},html:function(t){return $t(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ht.test(t)&&!Pt[(Mt.exec(t)||["",""])[1].toLowerCase()]){t=ot.htmlPrefilter(t);try{for(;n<r;n++)e=this[n]||{},1===e.nodeType&&(ot.cleanData(c(e,!1)),e.innerHTML=t);e=0}catch(i){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return x(this,arguments,function(e){var n=this.parentNode;ot.inArray(this,t)<0&&(ot.cleanData(c(this)),n&&n.replaceChild(e,this))},t)}}),ot.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){ot.fn[t]=function(t){for(var n,r=[],i=ot(t),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),ot(i[a])[e](n),Q.apply(r,n.get());return this.pushStack(r)}});var Bt,Yt={HTML:"block",BODY:"block"},Kt=/^margin/,Gt=new RegExp("^("+At+")(?!px)[a-z%]+$","i"),Xt=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},Jt=function(t,e,n,r){var i,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];i=n.apply(t,r||[]);for(o in e)t.style[o]=a[o];return i},Qt=G.documentElement;!function(){function e(){s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",Qt.appendChild(a);var e=t.getComputedStyle(s);n="1%"!==e.top,o="2px"===e.marginLeft,r="4px"===e.width,s.style.marginRight="50%",i="4px"===e.marginRight,Qt.removeChild(a)}var n,r,i,o,a=G.createElement("div"),s=G.createElement("div");s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",rt.clearCloneStyle="content-box"===s.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(s),ot.extend(rt,{pixelPosition:function(){return e(),n},boxSizingReliable:function(){return null==r&&e(),r},pixelMarginRight:function(){return null==r&&e(),i},reliableMarginLeft:function(){return null==r&&e(),o},reliableMarginRight:function(){var e,n=s.appendChild(G.createElement("div"));return n.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",s.style.width="1px",Qt.appendChild(a),e=!parseFloat(t.getComputedStyle(n).marginRight),Qt.removeChild(a),s.removeChild(n),e}}))}();var Zt=/^(none|table(?!-c[ea]).+)/,te={position:"absolute",visibility:"hidden",display:"block"},ee={letterSpacing:"0",fontWeight:"400"},ne=["Webkit","O","Moz","ms"],re=G.createElement("div").style;ot.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=S(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=ot.camelCase(e),u=t.style;return e=ot.cssProps[s]||(ot.cssProps[s]=T(s)||s),a=ot.cssHooks[e]||ot.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:u[e]:(o=typeof n,"string"===o&&(i=Dt.exec(n))&&i[1]&&(n=l(t,e,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(ot.cssNumber[s]?"":"px")),rt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(u[e]=n)),void 0)}},css:function(t,e,n,r){var i,o,a,s=ot.camelCase(e);return e=ot.cssProps[s]||(ot.cssProps[s]=T(s)||s),a=ot.cssHooks[e]||ot.cssHooks[s],a&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=S(t,e,r)),"normal"===i&&e in ee&&(i=ee[e]),""===n||n?(o=parseFloat(i),n===!0||isFinite(o)?o||0:i):i}}),ot.each(["height","width"],function(t,e){ot.cssHooks[e]={get:function(t,n,r){if(n)return Zt.test(ot.css(t,"display"))&&0===t.offsetWidth?Jt(t,te,function(){return F(t,e,r)}):F(t,e,r)},set:function(t,n,r){var i,o=r&&Xt(t),a=r&&D(t,e,r,"border-box"===ot.css(t,"boxSizing",!1,o),o);return a&&(i=Dt.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=ot.css(t,e)),A(t,n,a)}}}),ot.cssHooks.marginLeft=E(rt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(S(t,"marginLeft"))||t.getBoundingClientRect().left-Jt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),ot.cssHooks.marginRight=E(rt.reliableMarginRight,function(t,e){if(e)return Jt(t,{display:"inline-block"},S,[t,"marginRight"])}),ot.each({margin:"",padding:"",border:"Width"},function(t,e){ot.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+Ft[r]+e]=o[r]||o[r-2]||o[0];return i}},Kt.test(t)||(ot.cssHooks[t+e].set=A)}),ot.fn.extend({css:function(t,e){return $t(this,function(t,e,n){var r,i,o={},a=0;if(ot.isArray(e)){for(r=Xt(t),i=e.length;a<i;a++)o[e[a]]=ot.css(t,e[a],!1,r);return o}return void 0!==n?ot.style(t,e,n):ot.css(t,e)},t,e,arguments.length>1)},show:function(){return O(this,!0)},hide:function(){return O(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Ot(this)?ot(this).show():ot(this).hide()})}}),ot.Tween=j,j.prototype={constructor:j,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||ot.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ot.cssNumber[n]?"":"px")},cur:function(){var t=j.propHooks[this.prop];return t&&t.get?t.get(this):j.propHooks._default.get(this)},run:function(t){var e,n=j.propHooks[this.prop];return this.options.duration?this.pos=e=ot.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):j.propHooks._default.set(this),this}},j.prototype.init.prototype=j.prototype,j.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=ot.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){ot.fx.step[t.prop]?ot.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[ot.cssProps[t.prop]]&&!ot.cssHooks[t.prop]?t.elem[t.prop]=t.now:ot.style(t.elem,t.prop,t.now+t.unit)}}},j.propHooks.scrollTop=j.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ot.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},ot.fx=j.prototype.init,ot.fx.step={};var ie,oe,ae=/^(?:toggle|show|hide)$/,se=/queueHooks$/;ot.Animation=ot.extend(L,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return l(n.elem,t,Dt.exec(e),n),n}]},tweener:function(t,e){ot.isFunction(t)?(e=t,t=["*"]):t=t.match(wt);for(var n,r=0,i=t.length;r<i;r++)n=t[r],L.tweeners[n]=L.tweeners[n]||[],L.tweeners[n].unshift(e)},prefilters:[N],prefilter:function(t,e){e?L.prefilters.unshift(t):L.prefilters.push(t)}}),ot.speed=function(t,e,n){var r=t&&"object"==typeof t?ot.extend({},t):{complete:n||!n&&e||ot.isFunction(t)&&t,duration:t,easing:n&&e||e&&!ot.isFunction(e)&&e};return r.duration=ot.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in ot.fx.speeds?ot.fx.speeds[r.duration]:ot.fx.speeds._default,null!=r.queue&&r.queue!==!0||(r.queue="fx"),r.old=r.complete,r.complete=function(){ot.isFunction(r.old)&&r.old.call(this),r.queue&&ot.dequeue(this,r.queue)},r},ot.fn.extend({fadeTo:function(t,e,n,r){return this.filter(Ot).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=ot.isEmptyObject(t),o=ot.speed(e,n,r),a=function(){var e=L(this,ot.extend({},t),o);(i||Ct.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=ot.timers,a=Ct.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&se.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||ot.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=Ct.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=ot.timers,a=r?r.length:0;for(n.finish=!0,ot.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),ot.each(["toggle","show","hide"],function(t,e){var n=ot.fn[e];ot.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(I(e,!0),t,r,i)}}),ot.each({slideDown:I("show"),slideUp:I("hide"),slideToggle:I("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ot.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),ot.timers=[],ot.fx.tick=function(){var t,e=0,n=ot.timers;for(ie=ot.now();e<n.length;e++)t=n[e],t()||n[e]!==t||n.splice(e--,1);n.length||ot.fx.stop(),ie=void 0},ot.fx.timer=function(t){ot.timers.push(t),t()?ot.fx.start():ot.timers.pop()},ot.fx.interval=13,ot.fx.start=function(){oe||(oe=t.setInterval(ot.fx.tick,ot.fx.interval))},ot.fx.stop=function(){t.clearInterval(oe),oe=null},ot.fx.speeds={slow:600,fast:200,_default:400},ot.fn.delay=function(e,n){return e=ot.fx?ot.fx.speeds[e]||e:e,n=n||"fx",this.queue(n,function(n,r){var i=t.setTimeout(n,e);r.stop=function(){t.clearTimeout(i)}})},function(){var t=G.createElement("input"),e=G.createElement("select"),n=e.appendChild(G.createElement("option"));t.type="checkbox",rt.checkOn=""!==t.value,rt.optSelected=n.selected,e.disabled=!0,rt.optDisabled=!n.disabled,t=G.createElement("input"),t.value="t",t.type="radio",rt.radioValue="t"===t.value}();var ue,le=ot.expr.attrHandle;ot.fn.extend({attr:function(t,e){return $t(this,ot.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ot.removeAttr(this,t)})}}),ot.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof t.getAttribute?ot.prop(t,e,n):(1===o&&ot.isXMLDoc(t)||(e=e.toLowerCase(),i=ot.attrHooks[e]||(ot.expr.match.bool.test(e)?ue:void 0)),void 0!==n?null===n?void ot.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:(r=ot.find.attr(t,e),null==r?void 0:r))},attrHooks:{type:{set:function(t,e){if(!rt.radioValue&&"radio"===e&&ot.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(wt);if(o&&1===t.nodeType)for(;n=o[i++];)r=ot.propFix[n]||n,ot.expr.match.bool.test(n)&&(t[r]=!1),t.removeAttribute(n)}}),ue={set:function(t,e,n){return e===!1?ot.removeAttr(t,n):t.setAttribute(n,n),n}},ot.each(ot.expr.match.bool.source.match(/\w+/g),function(t,e){var n=le[e]||ot.find.attr;le[e]=function(t,e,r){var i,o;return r||(o=le[e],le[e]=i,i=null!=n(t,e,r)?e.toLowerCase():null,le[e]=o),i}});var ce=/^(?:input|select|textarea|button)$/i,fe=/^(?:a|area)$/i;ot.fn.extend({prop:function(t,e){return $t(this,ot.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[ot.propFix[t]||t]})}}),ot.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ot.isXMLDoc(t)||(e=ot.propFix[e]||e,i=ot.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=ot.find.attr(t,"tabindex");return e?parseInt(e,10):ce.test(t.nodeName)||fe.test(t.nodeName)&&t.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),rt.optSelected||(ot.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),ot.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ot.propFix[this.toLowerCase()]=this});var he=/[\t\r\n\f]/g;ot.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(ot.isFunction(t))return this.each(function(e){ot(this).addClass(t.call(this,e,z(this)))});if("string"==typeof t&&t)for(e=t.match(wt)||[];n=this[u++];)if(i=z(n),r=1===n.nodeType&&(" "+i+" ").replace(he," ")){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");s=ot.trim(r),i!==s&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(ot.isFunction(t))return this.each(function(e){ot(this).removeClass(t.call(this,e,z(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(wt)||[];n=this[u++];)if(i=z(n),r=1===n.nodeType&&(" "+i+" ").replace(he," ")){for(a=0;o=e[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");s=ot.trim(r),i!==s&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):ot.isFunction(t)?this.each(function(n){ot(this).toggleClass(t.call(this,n,z(this),e),e)}):this.each(function(){var e,r,i,o;if("string"===n)for(r=0,i=ot(this),o=t.match(wt)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else void 0!==t&&"boolean"!==n||(e=z(this),e&&Ct.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||t===!1?"":Ct.get(this,"__className__")||""))})},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+z(n)+" ").replace(he," ").indexOf(e)>-1)return!0;return!1}});var pe=/\r/g,de=/[\x20\t\r\n\f]+/g;ot.fn.extend({val:function(t){var e,n,r,i=this[0];{if(arguments.length)return r=ot.isFunction(t),this.each(function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,ot(this).val()):t,null==i?i="":"number"==typeof i?i+="":ot.isArray(i)&&(i=ot.map(i,function(t){return null==t?"":t+""})),e=ot.valHooks[this.type]||ot.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))});if(i)return e=ot.valHooks[i.type]||ot.valHooks[i.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(pe,""):null==n?"":n)}}}),ot.extend({valHooks:{option:{get:function(t){var e=ot.find.attr(t,"value");return null!=e?e:ot.trim(ot.text(t)).replace(de," ")}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u<s;u++)if(n=r[u],(n.selected||u===i)&&(rt.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!ot.nodeName(n.parentNode,"optgroup"))){if(e=ot(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,o=ot.makeArray(e),a=i.length;a--;)r=i[a],(r.selected=ot.inArray(ot.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),ot.each(["radio","checkbox"],function(){ot.valHooks[this]={set:function(t,e){if(ot.isArray(e))return t.checked=ot.inArray(ot(t).val(),e)>-1}},rt.checkOn||(ot.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var ve=/^(?:focusinfocus|focusoutblur)$/;ot.extend(ot.event,{trigger:function(e,n,r,i){var o,a,s,u,l,c,f,h=[r||G],p=nt.call(e,"type")?e.type:e,d=nt.call(e,"namespace")?e.namespace.split("."):[];if(a=s=r=r||G,3!==r.nodeType&&8!==r.nodeType&&!ve.test(p+ot.event.triggered)&&(p.indexOf(".")>-1&&(d=p.split("."),p=d.shift(),d.sort()),l=p.indexOf(":")<0&&"on"+p,e=e[ot.expando]?e:new ot.Event(p,"object"==typeof e&&e),e.isTrigger=i?2:3,e.namespace=d.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),n=null==n?[e]:ot.makeArray(n,[e]),f=ot.event.special[p]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!ot.isWindow(r)){for(u=f.delegateType||p,ve.test(u+p)||(a=a.parentNode);a;a=a.parentNode)h.push(a),s=a;s===(r.ownerDocument||G)&&h.push(s.defaultView||s.parentWindow||t)}for(o=0;(a=h[o++])&&!e.isPropagationStopped();)e.type=o>1?u:f.bindType||p,c=(Ct.get(a,"events")||{})[e.type]&&Ct.get(a,"handle"),c&&c.apply(a,n),c=l&&a[l],c&&c.apply&&kt(a)&&(e.result=c.apply(a,n),e.result===!1&&e.preventDefault());return e.type=p,i||e.isDefaultPrevented()||f._default&&f._default.apply(h.pop(),n)!==!1||!kt(r)||l&&ot.isFunction(r[p])&&!ot.isWindow(r)&&(s=r[l],s&&(r[l]=null),ot.event.triggered=p,r[p](),ot.event.triggered=void 0,s&&(r[l]=s)),e.result}},simulate:function(t,e,n){var r=ot.extend(new ot.Event,n,{type:t,isSimulated:!0});ot.event.trigger(r,null,e)}}),ot.fn.extend({trigger:function(t,e){return this.each(function(){ot.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return ot.event.trigger(t,e,n,!0)}}),ot.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){ot.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),ot.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),rt.focusin="onfocusin"in t,rt.focusin||ot.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){ot.event.simulate(e,t.target,ot.event.fix(t))};ot.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=Ct.access(r,e);i||r.addEventListener(t,n,!0),Ct.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Ct.access(r,e)-1;i?Ct.access(r,e,i):(r.removeEventListener(t,n,!0),Ct.remove(r,e))}}});var me=t.location,ge=ot.now(),ye=/\?/;ot.parseJSON=function(t){return JSON.parse(t+"")},ot.parseXML=function(e){var n;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(r){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||ot.error("Invalid XML: "+e),n};var _e=/#.*$/,be=/([?&])_=[^&]*/,we=/^(.*?):[ \t]*([^\r\n]*)$/gm,xe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,$e=/^(?:GET|HEAD)$/,ke=/^\/\//,Ce={},Se={},Ee="*/".concat("*"),Te=G.createElement("a");Te.href=me.href,ot.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:me.href,type:"GET",isLocal:xe.test(me.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ee,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ot.parseJSON,"text xml":ot.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?U(U(t,ot.ajaxSettings),e):U(ot.ajaxSettings,t)},ajaxPrefilter:q(Ce),ajaxTransport:q(Se),ajax:function(e,n){function r(e,n,r,s){var l,f,y,_,w,$=n;2!==b&&(b=2,u&&t.clearTimeout(u),i=void 0,a=s||"",x.readyState=e>0?4:0,l=e>=200&&e<300||304===e,r&&(_=W(h,x,r)),_=V(h,_,x,l),l?(h.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(ot.lastModified[o]=w),w=x.getResponseHeader("etag"),w&&(ot.etag[o]=w)),204===e||"HEAD"===h.type?$="nocontent":304===e?$="notmodified":($=_.state,f=_.data,y=_.error,l=!y)):(y=$,!e&&$||($="error",e<0&&(e=0))),x.status=e,x.statusText=(n||$)+"",l?v.resolveWith(p,[f,$,x]):v.rejectWith(p,[x,$,y]),x.statusCode(g),g=void 0,c&&d.trigger(l?"ajaxSuccess":"ajaxError",[x,h,l?f:y]),m.fireWith(p,[x,$]),c&&(d.trigger("ajaxComplete",[x,h]),--ot.active||ot.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=void 0),n=n||{};var i,o,a,s,u,l,c,f,h=ot.ajaxSetup({},n),p=h.context||h,d=h.context&&(p.nodeType||p.jquery)?ot(p):ot.event,v=ot.Deferred(),m=ot.Callbacks("once memory"),g=h.statusCode||{},y={},_={},b=0,w="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!s)for(s={};e=we.exec(a);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=_[n]=_[n]||t,y[t]=e),this},overrideMimeType:function(t){return b||(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(b<2)for(e in t)g[e]=[g[e],t[e]];else x.always(t[x.status]);return this},abort:function(t){var e=t||w;return i&&i.abort(e),r(0,e),this}};if(v.promise(x).complete=m.add,x.success=x.done,x.error=x.fail,h.url=((e||h.url||me.href)+"").replace(_e,"").replace(ke,me.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=ot.trim(h.dataType||"*").toLowerCase().match(wt)||[""],null==h.crossDomain){l=G.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Te.protocol+"//"+Te.host!=l.protocol+"//"+l.host}catch($){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=ot.param(h.data,h.traditional)),H(Ce,h,n,x),2===b)return x;c=ot.event&&h.global,c&&0===ot.active++&&ot.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!$e.test(h.type),o=h.url,h.hasContent||(h.data&&(o=h.url+=(ye.test(o)?"&":"?")+h.data,delete h.data),h.cache===!1&&(h.url=be.test(o)?o.replace(be,"$1_="+ge++):o+(ye.test(o)?"&":"?")+"_="+ge++)),h.ifModified&&(ot.lastModified[o]&&x.setRequestHeader("If-Modified-Since",ot.lastModified[o]),ot.etag[o]&&x.setRequestHeader("If-None-Match",ot.etag[o])),(h.data&&h.hasContent&&h.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Ee+"; q=0.01":""):h.accepts["*"]);for(f in h.headers)x.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(h.beforeSend.call(p,x,h)===!1||2===b))return x.abort();w="abort";for(f in{success:1,error:1,complete:1})x[f](h[f]);if(i=H(Se,h,n,x)){if(x.readyState=1,c&&d.trigger("ajaxSend",[x,h]),2===b)return x;h.async&&h.timeout>0&&(u=t.setTimeout(function(){x.abort("timeout")},h.timeout));try{b=1,i.send(y,r)}catch($){if(!(b<2))throw $;r(-1,$)}}else r(-1,"No Transport");return x},getJSON:function(t,e,n){return ot.get(t,e,n,"json")},getScript:function(t,e){return ot.get(t,void 0,e,"script")}}),ot.each(["get","post"],function(t,e){ot[e]=function(t,n,r,i){return ot.isFunction(n)&&(i=i||r,r=n,n=void 0),ot.ajax(ot.extend({url:t,type:e,dataType:i,data:n,success:r},ot.isPlainObject(t)&&t))}}),ot._evalUrl=function(t){return ot.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},ot.fn.extend({wrapAll:function(t){var e;return ot.isFunction(t)?this.each(function(e){ot(this).wrapAll(t.call(this,e))}):(this[0]&&(e=ot(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return ot.isFunction(t)?this.each(function(e){ot(this).wrapInner(t.call(this,e))}):this.each(function(){var e=ot(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=ot.isFunction(t);return this.each(function(n){ot(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){ot.nodeName(this,"body")||ot(this).replaceWith(this.childNodes)}).end()}}),ot.expr.filters.hidden=function(t){return!ot.expr.filters.visible(t)},ot.expr.filters.visible=function(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0};var Ae=/%20/g,De=/\[\]$/,Fe=/\r?\n/g,Oe=/^(?:submit|button|image|reset|file)$/i,je=/^(?:input|select|textarea|keygen)/i;ot.param=function(t,e){var n,r=[],i=function(t,e){e=ot.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=ot.ajaxSettings&&ot.ajaxSettings.traditional),ot.isArray(t)||t.jquery&&!ot.isPlainObject(t))ot.each(t,function(){i(this.name,this.value)});else for(n in t)B(n,t[n],e,i);return r.join("&").replace(Ae,"+")},ot.fn.extend({serialize:function(){return ot.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ot.prop(this,"elements");return t?ot.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ot(this).is(":disabled")&&je.test(this.nodeName)&&!Oe.test(t)&&(this.checked||!jt.test(t))}).map(function(t,e){var n=ot(this).val();return null==n?null:ot.isArray(n)?ot.map(n,function(t){return{name:e.name,value:t.replace(Fe,"\r\n")}}):{name:e.name,value:n.replace(Fe,"\r\n")}}).get()}}),ot.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(e){}};var Me={0:200,1223:204},Ie=ot.ajaxSettings.xhr();rt.cors=!!Ie&&"withCredentials"in Ie,rt.ajax=Ie=!!Ie,ot.ajaxTransport(function(e){var n,r;if(rt.cors||Ie&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)s.setRequestHeader(a,i[a]);n=function(t){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Me[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&t.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(e.hasContent&&e.data||null)}catch(u){if(n)throw u}},abort:function(){n&&n()}}}),ot.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return ot.globalEval(t),t}}}),ot.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),ot.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(r,i){e=ot("<script>").prop({charset:t.scriptCharset,
src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),G.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Pe=[],Ne=/(=)\?(?=&|$)|\?\?/;ot.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Pe.pop()||ot.expando+"_"+ge++;return this[t]=!0,t}}),ot.ajaxPrefilter("json jsonp",function(e,n,r){var i,o,a,s=e.jsonp!==!1&&(Ne.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ne.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=ot.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Ne,"$1"+i):e.jsonp!==!1&&(e.url+=(ye.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||ot.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=t[i],t[i]=function(){a=arguments},r.always(function(){void 0===o?ot(t).removeProp(i):t[i]=o,e[i]&&(e.jsonpCallback=n.jsonpCallback,Pe.push(i)),a&&ot.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),ot.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||G;var r=dt.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=h([t],e,i),i&&i.length&&ot(i).remove(),ot.merge([],r.childNodes))};var Re=ot.fn.load;ot.fn.load=function(t,e,n){if("string"!=typeof t&&Re)return Re.apply(this,arguments);var r,i,o,a=this,s=t.indexOf(" ");return s>-1&&(r=ot.trim(t.slice(s)),t=t.slice(0,s)),ot.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),a.length>0&&ot.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(r?ot("<div>").append(ot.parseHTML(t)).find(r):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},ot.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ot.fn[e]=function(t){return this.on(e,t)}}),ot.expr.filters.animated=function(t){return ot.grep(ot.timers,function(e){return t===e.elem}).length},ot.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,l,c=ot.css(t,"position"),f=ot(t),h={};"static"===c&&(t.style.position="relative"),s=f.offset(),o=ot.css(t,"top"),u=ot.css(t,"left"),l=("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1,l?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),ot.isFunction(e)&&(e=e.call(t,n,ot.extend({},s))),null!=e.top&&(h.top=e.top-s.top+a),null!=e.left&&(h.left=e.left-s.left+i),"using"in e?e.using.call(t,h):f.css(h)}},ot.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ot.offset.setOffset(this,t,e)});var e,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;if(o)return e=o.documentElement,ot.contains(e,r)?(i=r.getBoundingClientRect(),n=Y(o),{top:i.top+n.pageYOffset-e.clientTop,left:i.left+n.pageXOffset-e.clientLeft}):i},position:function(){if(this[0]){var t,e,n=this[0],r={top:0,left:0};return"fixed"===ot.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ot.nodeName(t[0],"html")||(r=t.offset()),r.top+=ot.css(t[0],"borderTopWidth",!0),r.left+=ot.css(t[0],"borderLeftWidth",!0)),{top:e.top-r.top-ot.css(n,"marginTop",!0),left:e.left-r.left-ot.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===ot.css(t,"position");)t=t.offsetParent;return t||Qt})}}),ot.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;ot.fn[t]=function(r){return $t(this,function(t,r,i){var o=Y(t);return void 0===i?o?o[e]:t[r]:void(o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):t[r]=i)},t,r,arguments.length)}}),ot.each(["top","left"],function(t,e){ot.cssHooks[e]=E(rt.pixelPosition,function(t,n){if(n)return n=S(t,e),Gt.test(n)?ot(t).position()[e]+"px":n})}),ot.each({Height:"height",Width:"width"},function(t,e){ot.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){ot.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||i===!0?"margin":"border");return $t(this,function(e,n,r){var i;return ot.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===r?ot.css(e,n,a):ot.style(e,n,r,a)},e,o?r:void 0,o,null)}})}),ot.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},size:function(){return this.length}}),ot.fn.andSelf=ot.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ot});var Le=t.jQuery,ze=t.$;return ot.noConflict=function(e){return t.$===ot&&(t.$=ze),e&&t.jQuery===ot&&(t.jQuery=Le),ot},e||(t.jQuery=t.$=ot),ot}),function(){function t(t,e){return t.set(e[0],e[1]),t}function e(t,e){return t.add(e),t}function n(t,e,n){var r=n.length;switch(r){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function r(t,e,n,r){for(var i=-1,o=t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function i(t,e){for(var n=-1,r=t.length,i=-1,o=e.length,a=Array(r+o);++n<r;)a[n]=t[n];for(;++i<o;)a[n++]=e[i];return a}function o(t,e){for(var n=-1,r=t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function a(t,e){for(var n=t.length;n--&&e(t[n],n,t)!==!1;);return t}function s(t,e){for(var n=-1,r=t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function u(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function l(t,e){return!!t.length&&y(t,e,0)>-1}function c(t,e,n){for(var r=-1,i=t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function f(t,e){for(var n=-1,r=t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function h(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function p(t,e,n,r){var i=-1,o=t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function d(t,e,n,r){var i=t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function v(t,e){for(var n=-1,r=t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function m(t,e,n,r){var i;return n(t,function(t,n,o){if(e(t,n,o))return i=r?n:t,!1}),i}function g(t,e,n){for(var r=t.length,i=n?r:-1;n?i--:++i<r;)if(e(t[i],i,t))return i;return-1}function y(t,e,n){if(e!==e)return I(t,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function _(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function b(t,e){var n=t?t.length:0;return n?$(t,e)/n:_t}function w(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function x(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function $(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);o!==V&&(n=n===V?o:n+o)}return n}function k(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function C(t,e){return f(e,function(e){return[e,t[e]]})}function S(t){return function(e){return t(e)}}function E(t,e){return f(e,function(e){return t[e]})}function T(t,e){for(var n=-1,r=t.length;++n<r&&y(e,t[n],0)>-1;);return n}function A(t,e){for(var n=t.length;n--&&y(e,t[n],0)>-1;);return n}function D(t){return t&&t.Object===Object?t:null}function F(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&r++;return r}function O(t){return xn[t]}function j(t){return $n[t]}function M(t){return"\\"+Sn[t]}function I(t,e,n){for(var r=t.length,i=e+(n?0:-1);n?i--:++i<r;){var o=t[i];if(o!==o)return i}return-1}function P(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function N(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function R(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function L(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n];a!==e&&a!==X||(t[n]=X,o[i++]=n)}return o}function z(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function q(t){if(!t||!mn.test(t))return t.length;for(var e=dn.lastIndex=0;dn.test(t);)e++;return e}function H(t){return t.match(dn)}function U(t){return kn[t]}function W(D){function Te(t){if(ls(t)&&!tf(t)&&!(t instanceof Fe)){if(t instanceof De)return t;if(dl.call(t,"__wrapped__"))return eo(t)}return new De(t)}function Ae(){}function De(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=V}function Fe(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=bt,this.__views__=[]}function Oe(){var t=new Fe(this.__wrapped__);return t.__actions__=Xr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Xr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Xr(this.__views__),t}function je(){if(this.__filtered__){var t=new Fe(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Me(){var t=this.__wrapped__.value(),e=this.__dir__,n=tf(t),r=e<0,i=n?t.length:0,o=ji(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,f=c.length,h=0,p=Ll(u,this.__takeCount__);if(!n||i<Y||i==u&&p==u)return Fr(t,this.__actions__);var d=[];t:for(;u--&&h<p;){l+=e;for(var v=-1,m=t[l];++v<f;){var g=c[v],y=g.iteratee,_=g.type,b=y(m);if(_==dt)m=b;else if(!b){if(_==pt)continue t;break t}}d[h++]=m}return d}function Ie(){}function Pe(t,e){return Re(t,e)&&delete t[e]}function Ne(t,e){if(Xl){var n=t[e];return n===G?V:n}return dl.call(t,e)?t[e]:V}function Re(t,e){return Xl?t[e]!==V:dl.call(t,e)}function Le(t,e,n){t[e]=Xl&&n===V?G:n}function ze(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function qe(){this.__data__={hash:new Ie,map:Bl?new Bl:[],string:new Ie}}function He(t){var e=this.__data__;return Wi(t)?Pe("string"==typeof t?e.string:e.hash,t):Bl?e.map["delete"](t):en(e.map,t)}function Ue(t){var e=this.__data__;return Wi(t)?Ne("string"==typeof t?e.string:e.hash,t):Bl?e.map.get(t):nn(e.map,t)}function We(t){var e=this.__data__;return Wi(t)?Re("string"==typeof t?e.string:e.hash,t):Bl?e.map.has(t):rn(e.map,t)}function Ve(t,e){var n=this.__data__;return Wi(t)?Le("string"==typeof t?n.string:n.hash,t,e):Bl?n.map.set(t,e):an(n.map,t,e),this}function Be(t){var e=-1,n=t?t.length:0;for(this.__data__=new ze;++e<n;)this.push(t[e])}function Ye(t,e){var n=t.__data__;if(Wi(e)){var r=n.__data__,i="string"==typeof e?r.string:r.hash;return i[e]===G}return n.has(e)}function Ke(t){var e=this.__data__;if(Wi(t)){var n=e.__data__,r="string"==typeof t?n.string:n.hash;r[t]=G}else e.set(t,G)}function Ge(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Xe(){this.__data__={array:[],map:null}}function Je(t){var e=this.__data__,n=e.array;return n?en(n,t):e.map["delete"](t)}function Qe(t){var e=this.__data__,n=e.array;return n?nn(n,t):e.map.get(t)}function Ze(t){var e=this.__data__,n=e.array;return n?rn(n,t):e.map.has(t)}function tn(t,e){var n=this.__data__,r=n.array;r&&(r.length<Y-1?an(r,t,e):(n.array=null,n.map=new ze(r)));var i=n.map;return i&&i.set(t,e),this}function en(t,e){var n=on(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Fl.call(t,n,1),!0}function nn(t,e){var n=on(t,e);return n<0?V:t[n][1]}function rn(t,e){return on(t,e)>-1}function on(t,e){for(var n=t.length;n--;)if(Ba(t[n][0],e))return n;return-1}function an(t,e,n){var r=on(t,e);r<0?t.push([e,n]):t[r][1]=n}function sn(t,e,n,r){return t===V||Ba(t,fl[n])&&!dl.call(r,n)?e:t}function un(t,e,n){(n===V||Ba(t[e],n))&&("number"!=typeof e||n!==V||e in t)||(t[e]=n)}function ln(t,e,n){var r=t[e];dl.call(t,e)&&Ba(r,n)&&(n!==V||e in t)||(t[e]=n)}function cn(t,e,n,r){return uc(t,function(t,i,o){e(r,t,n(t),o)}),r}function fn(t,e){return t&&Jr(e,Ys(e),t)}function dn(t,e){for(var n=-1,r=null==t,i=e.length,o=Array(i);++n<i;)o[n]=r?V:Ws(t,e[n]);return o}function xn(t,e,n){return t===t&&(n!==V&&(t=t<=n?t:n),e!==V&&(t=t>=e?t:e)),t}function $n(t,e,n,r,i,a,s){var u;if(r&&(u=a?r(t,i,a,s):r(t)),u!==V)return u;if(!us(t))return t;var l=tf(t);if(l){if(u=Ii(t),!e)return Xr(t,u)}else{var c=Oi(t),f=c==Tt||c==At;if(ef(t))return Rr(t,e);if(c==Ot||c==$t||f&&!a){if(P(t))return a?t:{};if(u=Pi(f?{}:t),!e)return Qr(t,fn(u,t))}else{if(!wn[c])return a?t:{};u=Ni(t,c,$n,e)}}s||(s=new Ge);var h=s.get(t);if(h)return h;if(s.set(t,u),!l)var p=n?$i(t):Ys(t);return o(p||t,function(i,o){p&&(o=i,i=t[o]),ln(u,o,$n(i,e,n,r,o,t,s))}),u}function kn(t){var e=Ys(t),n=e.length;return function(r){if(null==r)return!n;for(var i=n;i--;){var o=e[i],a=t[o],s=r[o];if(s===V&&!(o in Object(r))||!a(s))return!1}return!0}}function Cn(t){return us(t)?Tl(t):{}}function Sn(t,e,n){if("function"!=typeof t)throw new ll(K);return Dl(function(){t.apply(V,n)},e)}function An(t,e,n,r){var i=-1,o=l,a=!0,s=t.length,u=[],h=e.length;if(!s)return u;n&&(e=f(e,S(n))),r?(o=c,a=!1):e.length>=Y&&(o=Ye,a=!1,e=new Be(e));t:for(;++i<s;){var p=t[i],d=n?n(p):p;if(p=r||0!==p?p:0,a&&d===d){for(var v=h;v--;)if(e[v]===d)continue t;u.push(p)}else o(e,d,r)||u.push(p)}return u}function Dn(t,e){var n=!0;return uc(t,function(t,r,i){return n=!!e(t,r,i)}),n}function On(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(s===V?a===a&&!$s(a):n(a,s)))var s=a,u=o}return u}function jn(t,e,n,r){var i=t.length;for(n=As(n),n<0&&(n=-n>i?0:i+n),r=r===V||r>i?i:As(r),r<0&&(r+=i),r=n>r?0:Ds(r);n<r;)t[n++]=e;return t}function Mn(t,e){var n=[];return uc(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function In(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=Li),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?In(s,e-1,n,r,i):h(i,s):r||(i[i.length]=s)}return i}function Rn(t,e){return t&&cc(t,e,Ys)}function Ln(t,e){return t&&fc(t,e,Ys)}function zn(t,e){return u(e,function(e){return os(t[e])})}function qn(t,e){e=Ui(e,t)?[e]:Pr(e);for(var n=0,r=e.length;null!=t&&n<r;)t=t[Zi(e[n++])];return n&&n==r?t:V}function Hn(t,e,n){var r=e(t);return tf(t)?r:h(r,n(t))}function Un(t,e){return t>e}function Wn(t,e){return dl.call(t,e)||"object"==typeof t&&e in t&&null===Di(t)}function Vn(t,e){return e in Object(t)}function Bn(t,e,n){return t>=Ll(e,n)&&t<Rl(e,n)}function Yn(t,e,n){for(var r=n?c:l,i=t[0].length,o=t.length,a=o,s=Array(o),u=1/0,h=[];a--;){var p=t[a];a&&e&&(p=f(p,S(e))),u=Ll(p.length,u),s[a]=!n&&(e||i>=120&&p.length>=120)?new Be(a&&p):V}p=t[0];var d=-1,v=s[0];t:for(;++d<i&&h.length<u;){var m=p[d],g=e?e(m):m;if(m=n||0!==m?m:0,!(v?Ye(v,g):r(h,g,n))){for(a=o;--a;){var y=s[a];if(!(y?Ye(y,g):r(t[a],g,n)))continue t}v&&v.push(g),h.push(m)}}return h}function Kn(t,e,n,r){return Rn(t,function(t,i,o){e(r,n(t),i,o)}),r}function Gn(t,e,r){Ui(e,t)||(e=Pr(e),t=Ji(t,e),e=wo(e));var i=null==t?t:t[Zi(e)];return null==i?V:n(i,t,r)}function Xn(t,e,n,r,i){return t===e||(null==t||null==e||!us(t)&&!ls(e)?t!==t&&e!==e:Jn(t,e,Xn,n,r,i))}function Jn(t,e,n,r,i,o){var a=tf(t),s=tf(e),u=kt,l=kt;a||(u=Oi(t),u=u==$t?Ot:u),s||(l=Oi(e),l=l==$t?Ot:l);var c=u==Ot&&!P(t),f=l==Ot&&!P(e),h=u==l;if(h&&!c)return o||(o=new Ge),a||ks(t)?bi(t,e,n,r,i,o):wi(t,e,u,n,r,i,o);if(!(i&ut)){var p=c&&dl.call(t,"__wrapped__"),d=f&&dl.call(e,"__wrapped__");if(p||d){var v=p?t.value():t,m=d?e.value():e;return o||(o=new Ge),n(v,m,r,i,o)}}return!!h&&(o||(o=new Ge),xi(t,e,n,r,i,o))}function Qn(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=Object(t);i--;){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<o;){s=n[i];var u=s[0],l=t[u],c=s[1];if(a&&s[2]){if(l===V&&!(u in t))return!1}else{var f=new Ge;if(r)var h=r(l,c,u,t,e,f);if(!(h===V?Xn(c,l,r,st|ut,f):h))return!1}}return!0}function Zn(t){return"function"==typeof t?t:null==t?Ru:"object"==typeof t?tf(t)?or(t[0],t[1]):ir(t):Bu(t)}function tr(t){return Nl(Object(t))}function er(t){t=null==t?t:Object(t);var e=[];for(var n in t)e.push(n);return e}function nr(t,e){return t<e}function rr(t,e){var n=-1,r=Ga(t)?Array(t.length):[];return uc(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function ir(t){var e=Ei(t);return 1==e.length&&e[0][2]?Ki(e[0][0],e[0][1]):function(n){return n===t||Qn(n,t,e)}}function or(t,e){return Ui(t)&&Yi(e)?Ki(Zi(t),e):function(n){var r=Ws(n,t);return r===V&&r===e?Bs(n,t):Xn(e,r,V,st|ut)}}function ar(t,e,n,r,i){if(t!==e){if(!tf(e)&&!ks(e))var a=Ks(e);o(a||e,function(o,s){if(a&&(s=o,o=e[s]),us(o))i||(i=new Ge),sr(t,e,s,n,ar,r,i);else{var u=r?r(t[s],o,s+"",t,e,i):V;u===V&&(u=o),un(t,s,u)}})}}function sr(t,e,n,r,i,o,a){var s=t[n],u=e[n],l=a.get(u);if(l)return void un(t,n,l);var c=o?o(s,u,n+"",t,e,a):V,f=c===V;f&&(c=u,tf(u)||ks(u)?tf(s)?c=s:Xa(s)?c=Xr(s):(f=!1,c=$n(u,!0)):ys(u)||Ya(u)?Ya(s)?c=Os(s):!us(s)||r&&os(s)?(f=!1,c=$n(u,!0)):c=s:f=!1),a.set(u,c),f&&i(c,u,r,o,a),a["delete"](u),un(t,n,c)}function ur(t,e){var n=t.length;if(n)return e+=e<0?n:0,qi(e,n)?t[e]:V}function lr(t,e,n){var r=-1;e=f(e.length?e:[Ru],S(Si()));var i=rr(t,function(t,n,i){var o=f(e,function(e){return e(t)});return{criteria:o,index:++r,value:t}});return x(i,function(t,e){return Yr(t,e,n)})}function cr(t,e){return t=Object(t),p(e,function(e,n){return n in t&&(e[n]=t[n]),e},{})}function fr(t,e){for(var n=-1,r=ki(t),i=r.length,o={};++n<i;){var a=r[n],s=t[a];e(s,a)&&(o[a]=s)}return o}function hr(t){return function(e){return null==e?V:e[t]}}function pr(t){return function(e){return qn(e,t)}}function dr(t,e,n,r){var i=r?_:y,o=-1,a=e.length,s=t;for(n&&(s=f(t,S(n)));++o<a;)for(var u=0,l=e[o],c=n?n(l):l;(u=i(s,c,u,r))>-1;)s!==t&&Fl.call(s,u,1),Fl.call(t,u,1);return t}function vr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;if(qi(i))Fl.call(t,i,1);else if(Ui(i,t))delete t[Zi(i)];else{var a=Pr(i),s=Ji(t,a);null!=s&&delete s[Zi(wo(a))]}}}return t}function mr(t,e){return t+jl(ql()*(e-t+1))}function gr(t,e,n,r){for(var i=-1,o=Rl(Ol((e-t)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=t,t+=n;return a}function yr(t,e){var n="";if(!t||e<1||e>gt)return n;do e%2&&(n+=t),e=jl(e/2),e&&(t+=t);while(e);return n}function _r(t,e,n,r){e=Ui(e,t)?[e]:Pr(e);for(var i=-1,o=e.length,a=o-1,s=t;null!=s&&++i<o;){var u=Zi(e[i]);if(us(s)){var l=n;if(i!=a){var c=s[u];l=r?r(c,u,s):V,l===V&&(l=null==c?qi(e[i+1])?[]:{}:c)}ln(s,u,l)}s=s[u]}return t}function br(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}function wr(t,e){var n;return uc(t,function(t,r,i){return n=e(t,r,i),!n}),!!n}function xr(t,e,n){var r=0,i=t?t.length:r;if("number"==typeof e&&e===e&&i<=xt){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!$s(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return $r(t,e,Ru,n)}function $r(t,e,n,r){e=n(e);for(var i=0,o=t?t.length:0,a=e!==e,s=null===e,u=$s(e),l=e===V;i<o;){var c=jl((i+o)/2),f=n(t[c]),h=f!==V,p=null===f,d=f===f,v=$s(f);if(a)var m=r||d;else m=l?d&&(r||h):s?d&&h&&(r||!p):u?d&&h&&!p&&(r||!v):!p&&!v&&(r?f<=e:f<e);m?i=c+1:o=c}return Ll(o,wt)}function kr(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!Ba(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function Cr(t){return"number"==typeof t?t:$s(t)?_t:+t}function Sr(t){if("string"==typeof t)return t;if($s(t))return sc?sc.call(t):"";var e=t+"";return"0"==e&&1/t==-mt?"-0":e}function Er(t,e,n){var r=-1,i=l,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=c;else if(o>=Y){var f=e?null:pc(t);if(f)return z(f);a=!1,i=Ye,u=new Be}else u=e?[]:s;t:for(;++r<o;){var h=t[r],p=e?e(h):h;if(h=n||0!==h?h:0,a&&p===p){for(var d=u.length;d--;)if(u[d]===p)continue t;e&&u.push(p),s.push(h)}else i(u,p,n)||(u!==s&&u.push(p),s.push(h))}return s}function Tr(t,e){e=Ui(e,t)?[e]:Pr(e),t=Ji(t,e);var n=Zi(wo(e));return!(null!=t&&Wn(t,n))||delete t[n]}function Ar(t,e,n,r){return _r(t,e,n(qn(t,e)),r)}function Dr(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?br(t,r?0:o,r?o+1:i):br(t,r?o+1:0,r?i:o)}function Fr(t,e){var n=t;return n instanceof Fe&&(n=n.value()),p(e,function(t,e){return e.func.apply(e.thisArg,h([t],e.args))},n)}function Or(t,e,n){for(var r=-1,i=t.length;++r<i;)var o=o?h(An(o,t[r],e,n),An(t[r],o,e,n)):t[r];return o&&o.length?Er(o,e,n):[]}function jr(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var s=r<o?e[r]:V;n(a,t[r],s)}return a}function Mr(t){return Xa(t)?t:[]}function Ir(t){return"function"==typeof t?t:Ru}function Pr(t){return tf(t)?t:yc(t)}function Nr(t,e,n){var r=t.length;return n=n===V?r:n,!e&&n>=r?t:br(t,e,n)}function Rr(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}function Lr(t){var e=new t.constructor(t.byteLength);return new $l(e).set(new $l(t)),e}function zr(t,e){var n=e?Lr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function qr(e,n,r){var i=n?r(R(e),!0):R(e);return p(i,t,new e.constructor)}function Hr(t){var e=new t.constructor(t.source,ye.exec(t));return e.lastIndex=t.lastIndex,e}function Ur(t,n,r){var i=n?r(z(t),!0):z(t);return p(i,e,new t.constructor)}function Wr(t){return ac?Object(ac.call(t)):{}}function Vr(t,e){var n=e?Lr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Br(t,e){if(t!==e){var n=t!==V,r=null===t,i=t===t,o=$s(t),a=e!==V,s=null===e,u=e===e,l=$s(e);if(!s&&!l&&!o&&t>e||o&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!l&&t<e||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return-1}return 0}function Yr(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;++r<a;){var u=Br(i[r],o[r]);if(u){if(r>=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return t.index-e.index}function Kr(t,e,n,r){for(var i=-1,o=t.length,a=n.length,s=-1,u=e.length,l=Rl(o-a,0),c=Array(u+l),f=!r;++s<u;)c[s]=e[s];for(;++i<a;)(f||i<o)&&(c[n[i]]=t[i]);for(;l--;)c[s++]=t[i++];return c}function Gr(t,e,n,r){for(var i=-1,o=t.length,a=-1,s=n.length,u=-1,l=e.length,c=Rl(o-s,0),f=Array(c+l),h=!r;++i<c;)f[i]=t[i];for(var p=i;++u<l;)f[p+u]=e[u];for(;++a<s;)(h||i<o)&&(f[p+n[a]]=t[i++]);return f}function Xr(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function Jr(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i<o;){var a=e[i],s=r?r(n[a],t[a],a,n,t):t[a];ln(n,a,s)}return n}function Qr(t,e){return Jr(t,Fi(t),e)}function Zr(t,e){return function(n,i){var o=tf(n)?r:cn,a=e?e():{};return o(n,t,Si(i),a)}}function ti(t){return Pa(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:V,a=i>2?n[2]:V;for(o="function"==typeof o?(i--,o):V,a&&Hi(n[0],n[1],a)&&(o=i<3?V:o,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e})}function ei(t,e){return function(n,r){if(null==n)return n;if(!Ga(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=Object(n);(e?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}function ni(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(n(o[u],u,o)===!1)break}return e}}function ri(t,e,n){function r(){var e=this&&this!==Pn&&this instanceof r?o:t;return e.apply(i?n:this,arguments)}var i=e&J,o=ai(t);return r}function ii(t){return function(e){e=Ms(e);var n=mn.test(e)?H(e):V,r=n?n[0]:e.charAt(0),i=n?Nr(n,1).join(""):e.slice(1);return r[t]()+i}}function oi(t){return function(e){return p(Mu(du(e).replace(hn,"")),t,"")}}function ai(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Cn(t.prototype),r=t.apply(n,e);return us(r)?r:n}}function si(t,e,r){function i(){for(var a=arguments.length,s=Array(a),u=a,l=Ai(i);u--;)s[u]=arguments[u];var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:L(s,l);if(a-=c.length,a<r)return gi(t,e,li,i.placeholder,V,s,c,V,V,r-a);var f=this&&this!==Pn&&this instanceof i?o:t;return n(f,this,s)}var o=ai(t);return i}function ui(t){return Pa(function(e){e=In(e,1);var n=e.length,r=n,i=De.prototype.thru;for(t&&e.reverse();r--;){var o=e[r];if("function"!=typeof o)throw new ll(K);if(i&&!a&&"wrapper"==Ci(o))var a=new De([],(!0))}for(r=a?r:n;++r<n;){o=e[r];var s=Ci(o),u="wrapper"==s?dc(o):V;a=u&&Vi(u[0])&&u[1]==(it|tt|nt|ot)&&!u[4].length&&1==u[9]?a[Ci(u[0])].apply(a,u[3]):1==o.length&&Vi(o)?a[s]():a.thru(o)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&tf(r)&&r.length>=Y)return a.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}})}function li(t,e,n,r,i,o,a,s,u,l){function c(){for(var g=arguments.length,y=g,_=Array(g);y--;)_[y]=arguments[y];if(d)var b=Ai(c),w=F(_,b);if(r&&(_=Kr(_,r,i,d)),o&&(_=Gr(_,o,a,d)),g-=w,d&&g<l){var x=L(_,b);return gi(t,e,li,c.placeholder,n,_,x,s,u,l-g)}var $=h?n:this,k=p?$[t]:t;return g=_.length,s?_=Qi(_,s):v&&g>1&&_.reverse(),f&&u<g&&(_.length=u),this&&this!==Pn&&this instanceof c&&(k=m||ai(k)),k.apply($,_)}var f=e&it,h=e&J,p=e&Q,d=e&(tt|et),v=e&at,m=p?V:ai(t);return c}function ci(t,e){return function(n,r){return Kn(n,t,e(r),{})}}function fi(t){return function(e,n){var r;if(e===V&&n===V)return 0;if(e!==V&&(r=e),n!==V){if(r===V)return n;"string"==typeof e||"string"==typeof n?(e=Sr(e),n=Sr(n)):(e=Cr(e),n=Cr(n)),r=t(e,n)}return r}}function hi(t){return Pa(function(e){return e=1==e.length&&tf(e[0])?f(e[0],S(Si())):f(In(e,1,zi),S(Si())),Pa(function(r){var i=this;return t(e,function(t){return n(t,i,r)})})})}function pi(t,e){e=e===V?" ":Sr(e);var n=e.length;if(n<2)return n?yr(e,t):e;var r=yr(e,Ol(t/q(e)));return mn.test(e)?Nr(H(r),0,t).join(""):r.slice(0,t)}function di(t,e,r,i){function o(){for(var e=-1,u=arguments.length,l=-1,c=i.length,f=Array(c+u),h=this&&this!==Pn&&this instanceof o?s:t;++l<c;)f[l]=i[l];for(;u--;)f[l++]=arguments[++e];return n(h,a?r:this,f)}var a=e&J,s=ai(t);return o}function vi(t){return function(e,n,r){return r&&"number"!=typeof r&&Hi(e,n,r)&&(n=r=V),e=Fs(e),e=e===e?e:0,n===V?(n=e,e=0):n=Fs(n)||0,r=r===V?e<n?1:-1:Fs(r)||0,gr(e,n,r,t)}}function mi(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Fs(e),n=Fs(n)),t(e,n)}}function gi(t,e,n,r,i,o,a,s,u,l){var c=e&tt,f=c?a:V,h=c?V:a,p=c?o:V,d=c?V:o;e|=c?nt:rt,e&=~(c?rt:nt),e&Z||(e&=~(J|Q));var v=[t,e,i,p,f,d,h,s,u,l],m=n.apply(V,v);return Vi(t)&&gc(m,v),m.placeholder=r,m}function yi(t){var e=sl[t];return function(t,n){if(t=Fs(t),n=As(n)){var r=(Ms(t)+"e").split("e"),i=e(r[0]+"e"+(+r[1]+n));return r=(Ms(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return e(t)}}function _i(t,e,n,r,i,o,a,s){var u=e&Q;if(!u&&"function"!=typeof t)throw new ll(K);var l=r?r.length:0;if(l||(e&=~(nt|rt),r=i=V),a=a===V?a:Rl(As(a),0),s=s===V?s:As(s),l-=i?i.length:0,e&rt){var c=r,f=i;r=i=V}var h=u?V:dc(t),p=[t,e,n,r,i,c,f,o,a,s];if(h&&Gi(p,h),t=p[0],e=p[1],n=p[2],r=p[3],i=p[4],s=p[9]=null==p[9]?u?0:t.length:Rl(p[9]-l,0),!s&&e&(tt|et)&&(e&=~(tt|et)),e&&e!=J)d=e==tt||e==et?si(t,e,s):e!=nt&&e!=(J|nt)||i.length?li.apply(V,p):di(t,e,n,r);else var d=ri(t,e,n);var v=h?hc:gc;return v(d,p)}function bi(t,e,n,r,i,o){var a=-1,s=i&ut,u=i&st,l=t.length,c=e.length;if(l!=c&&!(s&&c>l))return!1;var f=o.get(t);if(f)return f==e;var h=!0;for(o.set(t,e);++a<l;){var p=t[a],d=e[a];if(r)var m=s?r(d,p,a,e,t,o):r(p,d,a,t,e,o);if(m!==V){if(m)continue;h=!1;break}if(u){if(!v(e,function(t){return p===t||n(p,t,r,i,o)})){h=!1;break}}else if(p!==d&&!n(p,d,r,i,o)){h=!1;break}}return o["delete"](t),h}function wi(t,e,n,r,i,o,a){switch(n){case qt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case zt:return!(t.byteLength!=e.byteLength||!r(new $l(t),new $l(e)));case Ct:case St:return+t==+e;case Et:return t.name==e.name&&t.message==e.message;case Ft:return t!=+t?e!=+e:t==+e;case Mt:case Pt:return t==e+"";case Dt:var s=R;case It:var u=o&ut;if(s||(s=z),t.size!=e.size&&!u)return!1;var l=a.get(t);return l?l==e:(o|=st,a.set(t,e),bi(s(t),s(e),r,i,o,a));case Nt:if(ac)return ac.call(t)==ac.call(e)}return!1}function xi(t,e,n,r,i,o){var a=i&ut,s=Ys(t),u=s.length,l=Ys(e),c=l.length;if(u!=c&&!a)return!1;for(var f=u;f--;){var h=s[f];if(!(a?h in e:Wn(e,h)))return!1}var p=o.get(t);if(p)return p==e;var d=!0;o.set(t,e);for(var v=a;++f<u;){h=s[f];var m=t[h],g=e[h];if(r)var y=a?r(g,m,h,e,t,o):r(m,g,h,t,e,o);if(!(y===V?m===g||n(m,g,r,i,o):y)){d=!1;break}v||(v="constructor"==h)}if(d&&!v){var _=t.constructor,b=e.constructor;_!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b)&&(d=!1)}return o["delete"](t),d}function $i(t){return Hn(t,Ys,Fi)}function ki(t){return Hn(t,Ks,mc)}function Ci(t){for(var e=t.name+"",n=Zl[e],r=dl.call(Zl,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function Si(){var t=Te.iteratee||Lu;return t=t===Lu?Zn:t,arguments.length?t(arguments[0],arguments[1]):t}function Ei(t){for(var e=nu(t),n=e.length;n--;)e[n][2]=Yi(e[n][1]);return e}function Ti(t,e){var n=t[e];return ds(n)?n:V}function Ai(t){var e=dl.call(Te,"placeholder")?Te:t;return e.placeholder}function Di(t){return Ml(Object(t))}function Fi(t){return Sl(Object(t))}function Oi(t){return gl.call(t)}function ji(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=Ll(e,t+a);break;case"takeRight":t=Rl(t,e-a)}}return{start:t,end:e}}function Mi(t,e,n){e=Ui(e,t)?[e]:Pr(e);for(var r,i=-1,o=e.length;++i<o;){var a=Zi(e[i]);if(!(r=null!=t&&n(t,a)))break;t=t[a]}if(r)return r;var o=t?t.length:0;return!!o&&ss(o)&&qi(a,o)&&(tf(t)||xs(t)||Ya(t))}function Ii(t){var e=t.length,n=t.constructor(e);return e&&"string"==typeof t[0]&&dl.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function Pi(t){return"function"!=typeof t.constructor||Bi(t)?{}:Cn(Di(t))}function Ni(t,e,n,r){var i=t.constructor;switch(e){case zt:return Lr(t);case Ct:case St:return new i((+t));case qt:return zr(t,r);case Ht:case Ut:case Wt:case Vt:case Bt:case Yt:case Kt:case Gt:case Xt:return Vr(t,r);case Dt:return qr(t,r,n);case Ft:case Pt:return new i(t);case Mt:return Hr(t);case It:return Ur(t,r,n);case Nt:return Wr(t)}}function Ri(t){var e=t?t.length:V;return ss(e)&&(tf(t)||xs(t)||Ya(t))?k(e,String):null}function Li(t){return Xa(t)&&(tf(t)||Ya(t))}function zi(t){return tf(t)&&!(2==t.length&&!os(t[0]))}function qi(t,e){return e=null==e?gt:e,!!e&&("number"==typeof t||ke.test(t))&&t>-1&&t%1==0&&t<e}function Hi(t,e,n){if(!us(n))return!1;var r=typeof e;return!!("number"==r?Ga(n)&&qi(e,n.length):"string"==r&&e in n)&&Ba(n[e],t)}function Ui(t,e){if(tf(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!$s(t))||(ue.test(t)||!se.test(t)||null!=e&&t in Object(e))}function Wi(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function Vi(t){var e=Ci(t),n=Te[e];if("function"!=typeof n||!(e in Fe.prototype))return!1;if(t===n)return!0;var r=dc(n);return!!r&&t===r[0]}function Bi(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||fl;return t===n}function Yi(t){return t===t&&!us(t)}function Ki(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==V||t in Object(n)))}}function Gi(t,e){var n=t[1],r=e[1],i=n|r,o=i<(J|Q|it),a=r==it&&n==tt||r==it&&n==ot&&t[7].length<=e[8]||r==(it|ot)&&e[7].length<=e[8]&&n==tt;if(!o&&!a)return t;r&J&&(t[2]=e[2],i|=n&J?0:Z);var s=e[3];if(s){var u=t[3];t[3]=u?Kr(u,s,e[4]):s,t[4]=u?L(t[3],X):e[4]}return s=e[5],s&&(u=t[5],t[5]=u?Gr(u,s,e[6]):s,t[6]=u?L(t[5],X):e[6]),s=e[7],s&&(t[7]=s),r&it&&(t[8]=null==t[8]?e[8]:Ll(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function Xi(t,e,n,r,i,o){return us(t)&&us(e)&&ar(t,e,V,Xi,o.set(e,t)),t}function Ji(t,e){return 1==e.length?t:qn(t,br(e,0,-1))}function Qi(t,e){for(var n=t.length,r=Ll(e.length,n),i=Xr(t);r--;){var o=e[r];t[r]=qi(o,n)?i[o]:V}return t}function Zi(t){if("string"==typeof t||$s(t))return t;var e=t+"";return"0"==e&&1/t==-mt?"-0":e}function to(t){if(null!=t){try{return pl.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function eo(t){if(t instanceof Fe)return t.clone();var e=new De(t.__wrapped__,t.__chain__);return e.__actions__=Xr(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function no(t,e,n){e=(n?Hi(t,e,n):e===V)?1:Rl(As(e),0);var r=t?t.length:0;if(!r||e<1)return[];
for(var i=0,o=0,a=Array(Ol(r/e));i<r;)a[o++]=br(t,i,i+=e);return a}function ro(t){for(var e=-1,n=t?t.length:0,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i}function io(){var t=arguments.length,e=qa(arguments[0]);if(t<2)return t?Xr(e):[];for(var n=Array(t-1);t--;)n[t-1]=arguments[t];return i(e,In(n,1))}function oo(t,e,n){var r=t?t.length:0;return r?(e=n||e===V?1:As(e),br(t,e<0?0:e,r)):[]}function ao(t,e,n){var r=t?t.length:0;return r?(e=n||e===V?1:As(e),e=r-e,br(t,0,e<0?0:e)):[]}function so(t,e){return t&&t.length?Dr(t,Si(e,3),!0,!0):[]}function uo(t,e){return t&&t.length?Dr(t,Si(e,3),!0):[]}function lo(t,e,n,r){var i=t?t.length:0;return i?(n&&"number"!=typeof n&&Hi(t,e,n)&&(n=0,r=i),jn(t,e,n,r)):[]}function co(t,e){return t&&t.length?g(t,Si(e,3)):-1}function fo(t,e){return t&&t.length?g(t,Si(e,3),!0):-1}function ho(t){var e=t?t.length:0;return e?In(t,1):[]}function po(t){var e=t?t.length:0;return e?In(t,mt):[]}function vo(t,e){var n=t?t.length:0;return n?(e=e===V?1:As(e),In(t,e)):[]}function mo(t){for(var e=-1,n=t?t.length:0,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r}function go(t){return t&&t.length?t[0]:V}function yo(t,e,n){var r=t?t.length:0;return r?(n=As(n),n<0&&(n=Rl(r+n,0)),y(t,e,n)):-1}function _o(t){return ao(t,1)}function bo(t,e){return t?Pl.call(t,e):""}function wo(t){var e=t?t.length:0;return e?t[e-1]:V}function xo(t,e,n){var r=t?t.length:0;if(!r)return-1;var i=r;if(n!==V&&(i=As(n),i=(i<0?Rl(r+i,0):Ll(i,r-1))+1),e!==e)return I(t,i,!0);for(;i--;)if(t[i]===e)return i;return-1}function $o(t,e){return t&&t.length?ur(t,As(e)):V}function ko(t,e){return t&&t.length&&e&&e.length?dr(t,e):t}function Co(t,e,n){return t&&t.length&&e&&e.length?dr(t,e,Si(n)):t}function So(t,e,n){return t&&t.length&&e&&e.length?dr(t,e,V,n):t}function Eo(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=Si(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return vr(t,i),n}function To(t){return t?Ul.call(t):t}function Ao(t,e,n){var r=t?t.length:0;return r?(n&&"number"!=typeof n&&Hi(t,e,n)?(e=0,n=r):(e=null==e?0:As(e),n=n===V?r:As(n)),br(t,e,n)):[]}function Do(t,e){return xr(t,e)}function Fo(t,e,n){return $r(t,e,Si(n))}function Oo(t,e){var n=t?t.length:0;if(n){var r=xr(t,e);if(r<n&&Ba(t[r],e))return r}return-1}function jo(t,e){return xr(t,e,!0)}function Mo(t,e,n){return $r(t,e,Si(n),!0)}function Io(t,e){var n=t?t.length:0;if(n){var r=xr(t,e,!0)-1;if(Ba(t[r],e))return r}return-1}function Po(t){return t&&t.length?kr(t):[]}function No(t,e){return t&&t.length?kr(t,Si(e)):[]}function Ro(t){return oo(t,1)}function Lo(t,e,n){return t&&t.length?(e=n||e===V?1:As(e),br(t,0,e<0?0:e)):[]}function zo(t,e,n){var r=t?t.length:0;return r?(e=n||e===V?1:As(e),e=r-e,br(t,e<0?0:e,r)):[]}function qo(t,e){return t&&t.length?Dr(t,Si(e,3),!1,!0):[]}function Ho(t,e){return t&&t.length?Dr(t,Si(e,3)):[]}function Uo(t){return t&&t.length?Er(t):[]}function Wo(t,e){return t&&t.length?Er(t,Si(e)):[]}function Vo(t,e){return t&&t.length?Er(t,V,e):[]}function Bo(t){if(!t||!t.length)return[];var e=0;return t=u(t,function(t){if(Xa(t))return e=Rl(t.length,e),!0}),k(e,function(e){return f(t,hr(e))})}function Yo(t,e){if(!t||!t.length)return[];var r=Bo(t);return null==e?r:f(r,function(t){return n(e,V,t)})}function Ko(t,e){return jr(t||[],e||[],ln)}function Go(t,e){return jr(t||[],e||[],_r)}function Xo(t){var e=Te(t);return e.__chain__=!0,e}function Jo(t,e){return e(t),t}function Qo(t,e){return e(t)}function Zo(){return Xo(this)}function ta(){return new De(this.value(),this.__chain__)}function ea(){this.__values__===V&&(this.__values__=Ts(this.value()));var t=this.__index__>=this.__values__.length,e=t?V:this.__values__[this.__index__++];return{done:t,value:e}}function na(){return this}function ra(t){for(var e,n=this;n instanceof Ae;){var r=eo(n);r.__index__=0,r.__values__=V,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e}function ia(){var t=this.__wrapped__;if(t instanceof Fe){var e=t;return this.__actions__.length&&(e=new Fe(this)),e=e.reverse(),e.__actions__.push({func:Qo,args:[To],thisArg:V}),new De(e,this.__chain__)}return this.thru(To)}function oa(){return Fr(this.__wrapped__,this.__actions__)}function aa(t,e,n){var r=tf(t)?s:Dn;return n&&Hi(t,e,n)&&(e=V),r(t,Si(e,3))}function sa(t,e){var n=tf(t)?u:Mn;return n(t,Si(e,3))}function ua(t,e){if(e=Si(e,3),tf(t)){var n=g(t,e);return n>-1?t[n]:V}return m(t,e,uc)}function la(t,e){if(e=Si(e,3),tf(t)){var n=g(t,e,!0);return n>-1?t[n]:V}return m(t,e,lc)}function ca(t,e){return In(ma(t,e),1)}function fa(t,e){return In(ma(t,e),mt)}function ha(t,e,n){return n=n===V?1:As(n),In(ma(t,e),n)}function pa(t,e){return"function"==typeof e&&tf(t)?o(t,e):uc(t,Si(e))}function da(t,e){return"function"==typeof e&&tf(t)?a(t,e):lc(t,Si(e))}function va(t,e,n,r){t=Ga(t)?t:uu(t),n=n&&!r?As(n):0;var i=t.length;return n<0&&(n=Rl(i+n,0)),xs(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&y(t,e,n)>-1}function ma(t,e){var n=tf(t)?f:rr;return n(t,Si(e,3))}function ga(t,e,n,r){return null==t?[]:(tf(e)||(e=null==e?[]:[e]),n=r?V:n,tf(n)||(n=null==n?[]:[n]),lr(t,e,n))}function ya(t,e,n){var r=tf(t)?p:w,i=arguments.length<3;return r(t,Si(e,4),n,i,uc)}function _a(t,e,n){var r=tf(t)?d:w,i=arguments.length<3;return r(t,Si(e,4),n,i,lc)}function ba(t,e){var n=tf(t)?u:Mn;return e=Si(e,3),n(t,function(t,n,r){return!e(t,n,r)})}function wa(t){var e=Ga(t)?t:uu(t),n=e.length;return n>0?e[mr(0,n-1)]:V}function xa(t,e,n){var r=-1,i=Ts(t),o=i.length,a=o-1;for(e=(n?Hi(t,e,n):e===V)?1:xn(As(e),0,o);++r<e;){var s=mr(r,a),u=i[s];i[s]=i[r],i[r]=u}return i.length=e,i}function $a(t){return xa(t,bt)}function ka(t){if(null==t)return 0;if(Ga(t)){var e=t.length;return e&&xs(t)?q(t):e}if(ls(t)){var n=Oi(t);if(n==Dt||n==It)return t.size}return Ys(t).length}function Ca(t,e,n){var r=tf(t)?v:wr;return n&&Hi(t,e,n)&&(e=V),r(t,Si(e,3))}function Sa(t,e){if("function"!=typeof e)throw new ll(K);return t=As(t),function(){if(--t<1)return e.apply(this,arguments)}}function Ea(t,e,n){return e=n?V:e,e=t&&null==e?t.length:e,_i(t,it,V,V,V,V,e)}function Ta(t,e){var n;if("function"!=typeof e)throw new ll(K);return t=As(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=V),n}}function Aa(t,e,n){e=n?V:e;var r=_i(t,tt,V,V,V,V,V,e);return r.placeholder=Aa.placeholder,r}function Da(t,e,n){e=n?V:e;var r=_i(t,et,V,V,V,V,V,e);return r.placeholder=Da.placeholder,r}function Fa(t,e,n){function r(e){var n=h,r=p;return h=p=V,y=e,v=t.apply(r,n)}function i(t){return y=t,m=Dl(s,e),_?r(t):v}function o(t){var n=t-g,r=t-y,i=e-n;return b?Ll(i,d-r):i}function a(t){var n=t-g,r=t-y;return!g||n>=e||n<0||b&&r>=d}function s(){var t=Uc();return a(t)?u(t):void(m=Dl(s,o(t)))}function u(t){return kl(m),m=V,w&&h?r(t):(h=p=V,v)}function l(){m!==V&&kl(m),g=y=0,h=p=m=V}function c(){return m===V?v:u(Uc())}function f(){var t=Uc(),n=a(t);if(h=arguments,p=this,g=t,n){if(m===V)return i(g);if(b)return kl(m),m=Dl(s,e),r(g)}return m===V&&(m=Dl(s,e)),v}var h,p,d,v,m,g=0,y=0,_=!1,b=!1,w=!0;if("function"!=typeof t)throw new ll(K);return e=Fs(e)||0,us(n)&&(_=!!n.leading,b="maxWait"in n,d=b?Rl(Fs(n.maxWait)||0,e):d,w="trailing"in n?!!n.trailing:w),f.cancel=l,f.flush=c,f}function Oa(t){return _i(t,at)}function ja(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new ll(K);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(ja.Cache||ze),n}function Ma(t){if("function"!=typeof t)throw new ll(K);return function(){return!t.apply(this,arguments)}}function Ia(t){return Ta(2,t)}function Pa(t,e){if("function"!=typeof t)throw new ll(K);return e=Rl(e===V?t.length-1:As(e),0),function(){for(var r=arguments,i=-1,o=Rl(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];switch(e){case 0:return t.call(this,a);case 1:return t.call(this,r[0],a);case 2:return t.call(this,r[0],r[1],a)}var s=Array(e+1);for(i=-1;++i<e;)s[i]=r[i];return s[e]=a,n(t,this,s)}}function Na(t,e){if("function"!=typeof t)throw new ll(K);return e=e===V?0:Rl(As(e),0),Pa(function(r){var i=r[e],o=Nr(r,0,e);return i&&h(o,i),n(t,this,o)})}function Ra(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new ll(K);return us(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Fa(t,e,{leading:r,maxWait:e,trailing:i})}function La(t){return Ea(t,1)}function za(t,e){return e=null==e?Ru:e,Gc(e,t)}function qa(){if(!arguments.length)return[];var t=arguments[0];return tf(t)?t:[t]}function Ha(t){return $n(t,!1,!0)}function Ua(t,e){return $n(t,!1,!0,e)}function Wa(t){return $n(t,!0,!0)}function Va(t,e){return $n(t,!0,!0,e)}function Ba(t,e){return t===e||t!==t&&e!==e}function Ya(t){return Xa(t)&&dl.call(t,"callee")&&(!Al.call(t,"callee")||gl.call(t)==$t)}function Ka(t){return ls(t)&&gl.call(t)==zt}function Ga(t){return null!=t&&ss(vc(t))&&!os(t)}function Xa(t){return ls(t)&&Ga(t)}function Ja(t){return t===!0||t===!1||ls(t)&&gl.call(t)==Ct}function Qa(t){return ls(t)&&gl.call(t)==St}function Za(t){return!!t&&1===t.nodeType&&ls(t)&&!ys(t)}function ts(t){if(Ga(t)&&(tf(t)||xs(t)||os(t.splice)||Ya(t)||ef(t)))return!t.length;if(ls(t)){var e=Oi(t);if(e==Dt||e==It)return!t.size}for(var n in t)if(dl.call(t,n))return!1;return!(Ql&&Ys(t).length)}function es(t,e){return Xn(t,e)}function ns(t,e,n){n="function"==typeof n?n:V;var r=n?n(t,e):V;return r===V?Xn(t,e,n):!!r}function rs(t){return!!ls(t)&&(gl.call(t)==Et||"string"==typeof t.message&&"string"==typeof t.name)}function is(t){return"number"==typeof t&&Il(t)}function os(t){var e=us(t)?gl.call(t):"";return e==Tt||e==At}function as(t){return"number"==typeof t&&t==As(t)}function ss(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=gt}function us(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ls(t){return!!t&&"object"==typeof t}function cs(t){return ls(t)&&Oi(t)==Dt}function fs(t,e){return t===e||Qn(t,e,Ei(e))}function hs(t,e,n){return n="function"==typeof n?n:V,Qn(t,e,Ei(e),n)}function ps(t){return gs(t)&&t!=+t}function ds(t){if(!us(t))return!1;var e=os(t)||P(t)?_l:xe;return e.test(to(t))}function vs(t){return null===t}function ms(t){return null==t}function gs(t){return"number"==typeof t||ls(t)&&gl.call(t)==Ft}function ys(t){if(!ls(t)||gl.call(t)!=Ot||P(t))return!1;var e=Di(t);if(null===e)return!0;var n=dl.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&pl.call(n)==ml}function _s(t){return us(t)&&gl.call(t)==Mt}function bs(t){return as(t)&&t>=-gt&&t<=gt}function ws(t){return ls(t)&&Oi(t)==It}function xs(t){return"string"==typeof t||!tf(t)&&ls(t)&&gl.call(t)==Pt}function $s(t){return"symbol"==typeof t||ls(t)&&gl.call(t)==Nt}function ks(t){return ls(t)&&ss(t.length)&&!!bn[gl.call(t)]}function Cs(t){return t===V}function Ss(t){return ls(t)&&Oi(t)==Rt}function Es(t){return ls(t)&&gl.call(t)==Lt}function Ts(t){if(!t)return[];if(Ga(t))return xs(t)?H(t):Xr(t);if(El&&t[El])return N(t[El]());var e=Oi(t),n=e==Dt?R:e==It?z:uu;return n(t)}function As(t){if(!t)return 0===t?t:0;if(t=Fs(t),t===mt||t===-mt){var e=t<0?-1:1;return e*yt}var n=t%1;return t===t?n?t-n:t:0}function Ds(t){return t?xn(As(t),0,bt):0}function Fs(t){if("number"==typeof t)return t;if($s(t))return _t;if(us(t)){var e=os(t.valueOf)?t.valueOf():t;t=us(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(he,"");var n=we.test(t);return n||$e.test(t)?Tn(t.slice(2),n?2:8):be.test(t)?_t:+t}function Os(t){return Jr(t,Ks(t))}function js(t){return xn(As(t),-gt,gt)}function Ms(t){return null==t?"":Sr(t)}function Is(t,e){var n=Cn(t);return e?fn(n,e):n}function Ps(t,e){return m(t,Si(e,3),Rn,!0)}function Ns(t,e){return m(t,Si(e,3),Ln,!0)}function Rs(t,e){return null==t?t:cc(t,Si(e),Ks)}function Ls(t,e){return null==t?t:fc(t,Si(e),Ks)}function zs(t,e){return t&&Rn(t,Si(e))}function qs(t,e){return t&&Ln(t,Si(e))}function Hs(t){return null==t?[]:zn(t,Ys(t))}function Us(t){return null==t?[]:zn(t,Ks(t))}function Ws(t,e,n){var r=null==t?V:qn(t,e);return r===V?n:r}function Vs(t,e){return null!=t&&Mi(t,e,Wn)}function Bs(t,e){return null!=t&&Mi(t,e,Vn)}function Ys(t){var e=Bi(t);if(!e&&!Ga(t))return tr(t);var n=Ri(t),r=!!n,i=n||[],o=i.length;for(var a in t)!Wn(t,a)||r&&("length"==a||qi(a,o))||e&&"constructor"==a||i.push(a);return i}function Ks(t){for(var e=-1,n=Bi(t),r=er(t),i=r.length,o=Ri(t),a=!!o,s=o||[],u=s.length;++e<i;){var l=r[e];a&&("length"==l||qi(l,u))||"constructor"==l&&(n||!dl.call(t,l))||s.push(l)}return s}function Gs(t,e){var n={};return e=Si(e,3),Rn(t,function(t,r,i){n[e(t,r,i)]=t}),n}function Xs(t,e){var n={};return e=Si(e,3),Rn(t,function(t,r,i){n[r]=e(t,r,i)}),n}function Js(t,e){return e=Si(e),fr(t,function(t,n){return!e(t,n)})}function Qs(t,e){return null==t?{}:fr(t,Si(e))}function Zs(t,e,n){e=Ui(e,t)?[e]:Pr(e);var r=-1,i=e.length;for(i||(t=V,i=1);++r<i;){var o=null==t?V:t[Zi(e[r])];o===V&&(r=i,o=n),t=os(o)?o.call(t):o}return t}function tu(t,e,n){return null==t?t:_r(t,e,n)}function eu(t,e,n,r){return r="function"==typeof r?r:V,null==t?t:_r(t,e,n,r)}function nu(t){return C(t,Ys(t))}function ru(t){return C(t,Ks(t))}function iu(t,e,n){var r=tf(t)||ks(t);if(e=Si(e,4),null==n)if(r||us(t)){var i=t.constructor;n=r?tf(t)?new i:[]:os(i)?Cn(Di(t)):{}}else n={};return(r?o:Rn)(t,function(t,r,i){return e(n,t,r,i)}),n}function ou(t,e){return null==t||Tr(t,e)}function au(t,e,n){return null==t?t:Ar(t,e,Ir(n))}function su(t,e,n,r){return r="function"==typeof r?r:V,null==t?t:Ar(t,e,Ir(n),r)}function uu(t){return t?E(t,Ys(t)):[]}function lu(t){return null==t?[]:E(t,Ks(t))}function cu(t,e,n){return n===V&&(n=e,e=V),n!==V&&(n=Fs(n),n=n===n?n:0),e!==V&&(e=Fs(e),e=e===e?e:0),xn(Fs(t),e,n)}function fu(t,e,n){return e=Fs(e)||0,n===V?(n=e,e=0):n=Fs(n)||0,t=Fs(t),Bn(t,e,n)}function hu(t,e,n){if(n&&"boolean"!=typeof n&&Hi(t,e,n)&&(e=n=V),n===V&&("boolean"==typeof e?(n=e,e=V):"boolean"==typeof t&&(n=t,t=V)),t===V&&e===V?(t=0,e=1):(t=Fs(t)||0,e===V?(e=t,t=0):e=Fs(e)||0),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=ql();return Ll(t+i*(e-t+En("1e-"+((i+"").length-1))),e)}return mr(t,e)}function pu(t){return Sf(Ms(t).toLowerCase())}function du(t){return t=Ms(t),t&&t.replace(Ce,O).replace(pn,"")}function vu(t,e,n){t=Ms(t),e=Sr(e);var r=t.length;return n=n===V?r:xn(As(n),0,r),n-=e.length,n>=0&&t.indexOf(e,n)==n}function mu(t){return t=Ms(t),t&&re.test(t)?t.replace(ee,j):t}function gu(t){return t=Ms(t),t&&fe.test(t)?t.replace(ce,"\\$&"):t}function yu(t,e,n){t=Ms(t),e=As(e);var r=e?q(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return pi(jl(i),n)+t+pi(Ol(i),n)}function _u(t,e,n){t=Ms(t),e=As(e);var r=e?q(t):0;return e&&r<e?t+pi(e-r,n):t}function bu(t,e,n){t=Ms(t),e=As(e);var r=e?q(t):0;return e&&r<e?pi(e-r,n)+t:t}function wu(t,e,n){return n||null==e?e=0:e&&(e=+e),t=Ms(t).replace(he,""),zl(t,e||(_e.test(t)?16:10))}function xu(t,e,n){return e=(n?Hi(t,e,n):e===V)?1:As(e),yr(Ms(t),e)}function $u(){var t=arguments,e=Ms(t[0]);return t.length<3?e:Hl.call(e,t[1],t[2])}function ku(t,e,n){return n&&"number"!=typeof n&&Hi(t,e,n)&&(e=n=V),(n=n===V?bt:n>>>0)?(t=Ms(t),t&&("string"==typeof e||null!=e&&!_s(e))&&(e=Sr(e),""==e&&mn.test(t))?Nr(H(t),0,n):Wl.call(t,e,n)):[]}function Cu(t,e,n){return t=Ms(t),n=xn(As(n),0,t.length),t.lastIndexOf(Sr(e),n)==n}function Su(t,e,n){var r=Te.templateSettings;n&&Hi(t,e,n)&&(e=V),t=Ms(t),e=sf({},e,r,sn);var i,o,a=sf({},e.imports,r.imports,sn),s=Ys(a),u=E(a,s),l=0,c=e.interpolate||Se,f="__p += '",h=ul((e.escape||Se).source+"|"+c.source+"|"+(c===ae?ge:Se).source+"|"+(e.evaluate||Se).source+"|$","g"),p="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++_n+"]")+"\n";t.replace(h,function(e,n,r,a,s,u){return r||(r=a),f+=t.slice(l,u).replace(Ee,M),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+e.length,e}),f+="';\n";var d=e.variable;d||(f="with (obj) {\n"+f+"\n}\n"),f=(o?f.replace(Jt,""):f).replace(Qt,"$1").replace(Zt,"$1;"),f="function("+(d||"obj")+") {\n"+(d?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Ef(function(){return Function(s,p+"return "+f).apply(V,u)});if(v.source=f,rs(v))throw v;return v}function Eu(t){return Ms(t).toLowerCase()}function Tu(t){return Ms(t).toUpperCase()}function Au(t,e,n){if(t=Ms(t),t&&(n||e===V))return t.replace(he,"");if(!t||!(e=Sr(e)))return t;var r=H(t),i=H(e),o=T(r,i),a=A(r,i)+1;return Nr(r,o,a).join("")}function Du(t,e,n){if(t=Ms(t),t&&(n||e===V))return t.replace(de,"");if(!t||!(e=Sr(e)))return t;var r=H(t),i=A(r,H(e))+1;return Nr(r,0,i).join("")}function Fu(t,e,n){if(t=Ms(t),t&&(n||e===V))return t.replace(pe,"");if(!t||!(e=Sr(e)))return t;var r=H(t),i=T(r,H(e));return Nr(r,i).join("")}function Ou(t,e){var n=lt,r=ct;if(us(e)){var i="separator"in e?e.separator:i;n="length"in e?As(e.length):n,r="omission"in e?Sr(e.omission):r}t=Ms(t);var o=t.length;if(mn.test(t)){var a=H(t);o=a.length}if(n>=o)return t;var s=n-q(r);if(s<1)return r;var u=a?Nr(a,0,s).join(""):t.slice(0,s);if(i===V)return u+r;if(a&&(s+=u.length-s),_s(i)){if(t.slice(s).search(i)){var l,c=u;for(i.global||(i=ul(i.source,Ms(ye.exec(i))+"g")),i.lastIndex=0;l=i.exec(c);)var f=l.index;u=u.slice(0,f===V?s:f)}}else if(t.indexOf(Sr(i),s)!=s){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+r}function ju(t){return t=Ms(t),t&&ne.test(t)?t.replace(te,U):t}function Mu(t,e,n){return t=Ms(t),e=n?V:e,e===V&&(e=gn.test(t)?vn:ve),t.match(e)||[]}function Iu(t){var e=t?t.length:0,r=Si();return t=e?f(t,function(t){if("function"!=typeof t[1])throw new ll(K);return[r(t[0]),t[1]]}):[],Pa(function(r){for(var i=-1;++i<e;){var o=t[i];if(n(o[0],this,r))return n(o[1],this,r)}})}function Pu(t){return kn($n(t,!0))}function Nu(t){return function(){return t}}function Ru(t){return t}function Lu(t){return Zn("function"==typeof t?t:$n(t,!0))}function zu(t){return ir($n(t,!0))}function qu(t,e){return or(t,$n(e,!0))}function Hu(t,e,n){var r=Ys(e),i=zn(e,r);null!=n||us(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=zn(e,Ys(e)));var a=!(us(n)&&"chain"in n&&!n.chain),s=os(t);return o(i,function(n){var r=e[n];t[n]=r,s&&(t.prototype[n]=function(){var e=this.__chain__;if(a||e){var n=t(this.__wrapped__),i=n.__actions__=Xr(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,h([this.value()],arguments))})}),t}function Uu(){return Pn._===this&&(Pn._=yl),this}function Wu(){}function Vu(t){return t=As(t),Pa(function(e){return ur(e,t)})}function Bu(t){return Ui(t)?hr(Zi(t)):pr(t)}function Yu(t){return function(e){return null==t?V:qn(t,e)}}function Ku(t,e){if(t=As(t),t<1||t>gt)return[];var n=bt,r=Ll(t,bt);e=Si(e),t-=bt;for(var i=k(r,e);++n<t;)e(n);return i}function Gu(t){return tf(t)?f(t,Zi):$s(t)?[t]:Xr(yc(t))}function Xu(t){var e=++vl;return Ms(t)+e}function Ju(t){return t&&t.length?On(t,Ru,Un):V}function Qu(t,e){return t&&t.length?On(t,Si(e),Un):V}function Zu(t){return b(t,Ru)}function tl(t,e){return b(t,Si(e))}function el(t){return t&&t.length?On(t,Ru,nr):V}function nl(t,e){return t&&t.length?On(t,Si(e),nr):V}function rl(t){return t&&t.length?$(t,Ru):0}function il(t,e){return t&&t.length?$(t,Si(e)):0}D=D?Nn.defaults({},D,Nn.pick(Pn,yn)):Pn;var ol=D.Date,al=D.Error,sl=D.Math,ul=D.RegExp,ll=D.TypeError,cl=D.Array.prototype,fl=D.Object.prototype,hl=D.String.prototype,pl=D.Function.prototype.toString,dl=fl.hasOwnProperty,vl=0,ml=pl.call(Object),gl=fl.toString,yl=Pn._,_l=ul("^"+pl.call(dl).replace(ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bl=Fn?D.Buffer:V,wl=D.Reflect,xl=D.Symbol,$l=D.Uint8Array,kl=D.clearTimeout,Cl=wl?wl.enumerate:V,Sl=Object.getOwnPropertySymbols,El="symbol"==typeof(El=xl&&xl.iterator)?El:V,Tl=Object.create,Al=fl.propertyIsEnumerable,Dl=D.setTimeout,Fl=cl.splice,Ol=sl.ceil,jl=sl.floor,Ml=Object.getPrototypeOf,Il=D.isFinite,Pl=cl.join,Nl=Object.keys,Rl=sl.max,Ll=sl.min,zl=D.parseInt,ql=sl.random,Hl=hl.replace,Ul=cl.reverse,Wl=hl.split,Vl=Ti(D,"DataView"),Bl=Ti(D,"Map"),Yl=Ti(D,"Promise"),Kl=Ti(D,"Set"),Gl=Ti(D,"WeakMap"),Xl=Ti(Object,"create"),Jl=Gl&&new Gl,Ql=!Al.call({valueOf:1},"valueOf"),Zl={},tc=to(Vl),ec=to(Bl),nc=to(Yl),rc=to(Kl),ic=to(Gl),oc=xl?xl.prototype:V,ac=oc?oc.valueOf:V,sc=oc?oc.toString:V;Te.templateSettings={escape:ie,evaluate:oe,interpolate:ae,variable:"",imports:{_:Te}},Te.prototype=Ae.prototype,Te.prototype.constructor=Te,De.prototype=Cn(Ae.prototype),De.prototype.constructor=De,Fe.prototype=Cn(Ae.prototype),Fe.prototype.constructor=Fe,Ie.prototype=Xl?Xl(null):fl,ze.prototype.clear=qe,ze.prototype["delete"]=He,ze.prototype.get=Ue,ze.prototype.has=We,ze.prototype.set=Ve,Be.prototype.push=Ke,Ge.prototype.clear=Xe,Ge.prototype["delete"]=Je,Ge.prototype.get=Qe,Ge.prototype.has=Ze,Ge.prototype.set=tn;var uc=ei(Rn),lc=ei(Ln,!0),cc=ni(),fc=ni(!0);Cl&&!Al.call({valueOf:1},"valueOf")&&(er=function(t){return N(Cl(t))});var hc=Jl?function(t,e){return Jl.set(t,e),t}:Ru,pc=Kl&&1/z(new Kl([,-0]))[1]==mt?function(t){return new Kl(t)}:Wu,dc=Jl?function(t){return Jl.get(t)}:Wu,vc=hr("length");Sl||(Fi=function(){return[]});var mc=Sl?function(t){for(var e=[];t;)h(e,Fi(t)),t=Di(t);return e}:Fi;(Vl&&Oi(new Vl(new ArrayBuffer(1)))!=qt||Bl&&Oi(new Bl)!=Dt||Yl&&Oi(Yl.resolve())!=jt||Kl&&Oi(new Kl)!=It||Gl&&Oi(new Gl)!=Rt)&&(Oi=function(t){var e=gl.call(t),n=e==Ot?t.constructor:V,r=n?to(n):V;if(r)switch(r){case tc:return qt;case ec:return Dt;case nc:return jt;case rc:return It;case ic:return Rt}return e});var gc=function(){var t=0,e=0;return function(n,r){var i=Uc(),o=ht-(i-e);if(e=i,o>0){if(++t>=ft)return n}else t=0;return hc(n,r)}}(),yc=ja(function(t){var e=[];return Ms(t).replace(le,function(t,n,r,i){e.push(r?i.replace(me,"$1"):n||t)}),e}),_c=Pa(function(t,e){return Xa(t)?An(t,In(e,1,Xa,!0)):[]}),bc=Pa(function(t,e){var n=wo(e);return Xa(n)&&(n=V),Xa(t)?An(t,In(e,1,Xa,!0),Si(n)):[]}),wc=Pa(function(t,e){var n=wo(e);return Xa(n)&&(n=V),Xa(t)?An(t,In(e,1,Xa,!0),V,n):[]}),xc=Pa(function(t){var e=f(t,Mr);return e.length&&e[0]===t[0]?Yn(e):[]}),$c=Pa(function(t){var e=wo(t),n=f(t,Mr);return e===wo(n)?e=V:n.pop(),n.length&&n[0]===t[0]?Yn(n,Si(e)):[]}),kc=Pa(function(t){var e=wo(t),n=f(t,Mr);return e===wo(n)?e=V:n.pop(),n.length&&n[0]===t[0]?Yn(n,V,e):[]}),Cc=Pa(ko),Sc=Pa(function(t,e){e=In(e,1);var n=t?t.length:0,r=dn(t,e);return vr(t,f(e,function(t){return qi(t,n)?+t:t}).sort(Br)),r}),Ec=Pa(function(t){return Er(In(t,1,Xa,!0))}),Tc=Pa(function(t){var e=wo(t);return Xa(e)&&(e=V),Er(In(t,1,Xa,!0),Si(e))}),Ac=Pa(function(t){var e=wo(t);return Xa(e)&&(e=V),Er(In(t,1,Xa,!0),V,e)}),Dc=Pa(function(t,e){return Xa(t)?An(t,e):[]}),Fc=Pa(function(t){return Or(u(t,Xa))}),Oc=Pa(function(t){var e=wo(t);return Xa(e)&&(e=V),Or(u(t,Xa),Si(e))}),jc=Pa(function(t){var e=wo(t);return Xa(e)&&(e=V),Or(u(t,Xa),V,e)}),Mc=Pa(Bo),Ic=Pa(function(t){var e=t.length,n=e>1?t[e-1]:V;return n="function"==typeof n?(t.pop(),n):V,Yo(t,n)}),Pc=Pa(function(t){t=In(t,1);var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return dn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Fe&&qi(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:Qo,args:[i],thisArg:V}),new De(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(V),t})):this.thru(i)}),Nc=Zr(function(t,e,n){dl.call(t,n)?++t[n]:t[n]=1}),Rc=Zr(function(t,e,n){dl.call(t,n)?t[n].push(e):t[n]=[e]}),Lc=Pa(function(t,e,r){var i=-1,o="function"==typeof e,a=Ui(e),s=Ga(t)?Array(t.length):[];return uc(t,function(t){var u=o?e:a&&null!=t?t[e]:V;s[++i]=u?n(u,t,r):Gn(t,e,r)}),s}),zc=Zr(function(t,e,n){t[n]=e}),qc=Zr(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),Hc=Pa(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Hi(t,e[0],e[1])?e=[]:n>2&&Hi(e[0],e[1],e[2])&&(e=[e[0]]),e=1==e.length&&tf(e[0])?e[0]:In(e,1,zi),lr(t,e,[])}),Uc=ol.now,Wc=Pa(function(t,e,n){var r=J;if(n.length){var i=L(n,Ai(Wc));r|=nt}return _i(t,r,e,n,i)}),Vc=Pa(function(t,e,n){var r=J|Q;if(n.length){var i=L(n,Ai(Vc));r|=nt}return _i(e,r,t,n,i)}),Bc=Pa(function(t,e){return Sn(t,1,e)}),Yc=Pa(function(t,e,n){return Sn(t,Fs(e)||0,n)});ja.Cache=ze;var Kc=Pa(function(t,e){e=1==e.length&&tf(e[0])?f(e[0],S(Si())):f(In(e,1,zi),S(Si()));var r=e.length;return Pa(function(i){for(var o=-1,a=Ll(i.length,r);++o<a;)i[o]=e[o].call(this,i[o]);return n(t,this,i)})}),Gc=Pa(function(t,e){var n=L(e,Ai(Gc));return _i(t,nt,V,e,n)}),Xc=Pa(function(t,e){var n=L(e,Ai(Xc));return _i(t,rt,V,e,n)}),Jc=Pa(function(t,e){return _i(t,ot,V,V,V,In(e,1))}),Qc=mi(Un),Zc=mi(function(t,e){return t>=e}),tf=Array.isArray,ef=bl?function(t){return t instanceof bl}:Nu(!1),nf=mi(nr),rf=mi(function(t,e){return t<=e}),of=ti(function(t,e){if(Ql||Bi(e)||Ga(e))return void Jr(e,Ys(e),t);for(var n in e)dl.call(e,n)&&ln(t,n,e[n])}),af=ti(function(t,e){if(Ql||Bi(e)||Ga(e))return void Jr(e,Ks(e),t);for(var n in e)ln(t,n,e[n])}),sf=ti(function(t,e,n,r){Jr(e,Ks(e),t,r)}),uf=ti(function(t,e,n,r){Jr(e,Ys(e),t,r)}),lf=Pa(function(t,e){return dn(t,In(e,1))}),cf=Pa(function(t){return t.push(V,sn),n(sf,V,t)}),ff=Pa(function(t){return t.push(V,Xi),n(mf,V,t)}),hf=ci(function(t,e,n){t[e]=n},Nu(Ru)),pf=ci(function(t,e,n){dl.call(t,e)?t[e].push(n):t[e]=[n]},Si),df=Pa(Gn),vf=ti(function(t,e,n){ar(t,e,n)}),mf=ti(function(t,e,n,r){ar(t,e,n,r)}),gf=Pa(function(t,e){return null==t?{}:(e=f(In(e,1),Zi),cr(t,An(ki(t),e)))}),yf=Pa(function(t,e){return null==t?{}:cr(t,f(In(e,1),Zi))}),_f=oi(function(t,e,n){return e=e.toLowerCase(),t+(n?pu(e):e)}),bf=oi(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),wf=oi(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),xf=ii("toLowerCase"),$f=oi(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),kf=oi(function(t,e,n){return t+(n?" ":"")+Sf(e)}),Cf=oi(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Sf=ii("toUpperCase"),Ef=Pa(function(t,e){try{return n(t,V,e)}catch(r){return rs(r)?r:new al(r)}}),Tf=Pa(function(t,e){return o(In(e,1),function(e){e=Zi(e),t[e]=Wc(t[e],t)}),t}),Af=ui(),Df=ui(!0),Ff=Pa(function(t,e){return function(n){return Gn(n,t,e)}}),Of=Pa(function(t,e){return function(n){return Gn(t,n,e)}}),jf=hi(f),Mf=hi(s),If=hi(v),Pf=vi(),Nf=vi(!0),Rf=fi(function(t,e){return t+e}),Lf=yi("ceil"),zf=fi(function(t,e){return t/e}),qf=yi("floor"),Hf=fi(function(t,e){return t*e}),Uf=yi("round"),Wf=fi(function(t,e){return t-e});return Te.after=Sa,Te.ary=Ea,Te.assign=of,Te.assignIn=af,Te.assignInWith=sf,Te.assignWith=uf,Te.at=lf,Te.before=Ta,Te.bind=Wc,Te.bindAll=Tf,Te.bindKey=Vc,Te.castArray=qa,Te.chain=Xo,Te.chunk=no,Te.compact=ro,Te.concat=io,Te.cond=Iu,Te.conforms=Pu,Te.constant=Nu,Te.countBy=Nc,Te.create=Is,Te.curry=Aa,Te.curryRight=Da,Te.debounce=Fa,Te.defaults=cf,Te.defaultsDeep=ff,Te.defer=Bc,Te.delay=Yc,Te.difference=_c,Te.differenceBy=bc,Te.differenceWith=wc,Te.drop=oo,Te.dropRight=ao,Te.dropRightWhile=so,Te.dropWhile=uo,Te.fill=lo,Te.filter=sa,Te.flatMap=ca,Te.flatMapDeep=fa,Te.flatMapDepth=ha,Te.flatten=ho,Te.flattenDeep=po,Te.flattenDepth=vo,Te.flip=Oa,Te.flow=Af,Te.flowRight=Df,Te.fromPairs=mo,Te.functions=Hs,Te.functionsIn=Us,Te.groupBy=Rc,Te.initial=_o,Te.intersection=xc,Te.intersectionBy=$c,Te.intersectionWith=kc,Te.invert=hf,Te.invertBy=pf,Te.invokeMap=Lc,Te.iteratee=Lu,Te.keyBy=zc,Te.keys=Ys,Te.keysIn=Ks,Te.map=ma,Te.mapKeys=Gs,Te.mapValues=Xs,Te.matches=zu,Te.matchesProperty=qu,Te.memoize=ja,Te.merge=vf,Te.mergeWith=mf,Te.method=Ff,Te.methodOf=Of,Te.mixin=Hu,Te.negate=Ma,Te.nthArg=Vu,Te.omit=gf,Te.omitBy=Js,Te.once=Ia,Te.orderBy=ga,Te.over=jf,Te.overArgs=Kc,Te.overEvery=Mf,Te.overSome=If,Te.partial=Gc,Te.partialRight=Xc,Te.partition=qc,Te.pick=yf,Te.pickBy=Qs,Te.property=Bu,Te.propertyOf=Yu,Te.pull=Cc,Te.pullAll=ko,Te.pullAllBy=Co,Te.pullAllWith=So,Te.pullAt=Sc,Te.range=Pf,Te.rangeRight=Nf,Te.rearg=Jc,Te.reject=ba,Te.remove=Eo,Te.rest=Pa,Te.reverse=To,Te.sampleSize=xa,Te.set=tu,Te.setWith=eu,Te.shuffle=$a,Te.slice=Ao,Te.sortBy=Hc,Te.sortedUniq=Po,Te.sortedUniqBy=No,Te.split=ku,Te.spread=Na,Te.tail=Ro,Te.take=Lo,Te.takeRight=zo,Te.takeRightWhile=qo,Te.takeWhile=Ho,Te.tap=Jo,Te.throttle=Ra,Te.thru=Qo,Te.toArray=Ts,Te.toPairs=nu,Te.toPairsIn=ru,Te.toPath=Gu,Te.toPlainObject=Os,Te.transform=iu,Te.unary=La,Te.union=Ec,Te.unionBy=Tc,Te.unionWith=Ac,Te.uniq=Uo,Te.uniqBy=Wo,Te.uniqWith=Vo,Te.unset=ou,Te.unzip=Bo,Te.unzipWith=Yo,Te.update=au,Te.updateWith=su,Te.values=uu,Te.valuesIn=lu,Te.without=Dc,Te.words=Mu,Te.wrap=za,Te.xor=Fc,Te.xorBy=Oc,Te.xorWith=jc,Te.zip=Mc,Te.zipObject=Ko,Te.zipObjectDeep=Go,Te.zipWith=Ic,Te.entries=nu,Te.entriesIn=ru,Te.extend=af,Te.extendWith=sf,Hu(Te,Te),Te.add=Rf,Te.attempt=Ef,Te.camelCase=_f,Te.capitalize=pu,Te.ceil=Lf,Te.clamp=cu,Te.clone=Ha,Te.cloneDeep=Wa,Te.cloneDeepWith=Va,Te.cloneWith=Ua,Te.deburr=du,Te.divide=zf,Te.endsWith=vu,Te.eq=Ba,Te.escape=mu,Te.escapeRegExp=gu,Te.every=aa,Te.find=ua,Te.findIndex=co,Te.findKey=Ps,Te.findLast=la,Te.findLastIndex=fo,Te.findLastKey=Ns,Te.floor=qf,Te.forEach=pa,Te.forEachRight=da,Te.forIn=Rs,Te.forInRight=Ls,Te.forOwn=zs,Te.forOwnRight=qs,Te.get=Ws,Te.gt=Qc,Te.gte=Zc,Te.has=Vs,Te.hasIn=Bs,Te.head=go,Te.identity=Ru,Te.includes=va,Te.indexOf=yo,Te.inRange=fu,Te.invoke=df,Te.isArguments=Ya,Te.isArray=tf,Te.isArrayBuffer=Ka,Te.isArrayLike=Ga,Te.isArrayLikeObject=Xa,Te.isBoolean=Ja,Te.isBuffer=ef,Te.isDate=Qa,Te.isElement=Za,Te.isEmpty=ts,Te.isEqual=es,Te.isEqualWith=ns,Te.isError=rs,Te.isFinite=is,Te.isFunction=os,Te.isInteger=as,Te.isLength=ss,Te.isMap=cs,Te.isMatch=fs,Te.isMatchWith=hs,Te.isNaN=ps,Te.isNative=ds,Te.isNil=ms,Te.isNull=vs,Te.isNumber=gs,Te.isObject=us,Te.isObjectLike=ls,Te.isPlainObject=ys,Te.isRegExp=_s,Te.isSafeInteger=bs,Te.isSet=ws,Te.isString=xs,Te.isSymbol=$s,Te.isTypedArray=ks,Te.isUndefined=Cs,Te.isWeakMap=Ss,Te.isWeakSet=Es,Te.join=bo,Te.kebabCase=bf,Te.last=wo,Te.lastIndexOf=xo,Te.lowerCase=wf,Te.lowerFirst=xf,Te.lt=nf,Te.lte=rf,Te.max=Ju,Te.maxBy=Qu,Te.mean=Zu,Te.meanBy=tl,Te.min=el,Te.minBy=nl,Te.multiply=Hf,Te.nth=$o,Te.noConflict=Uu,Te.noop=Wu,Te.now=Uc,Te.pad=yu,Te.padEnd=_u,Te.padStart=bu,Te.parseInt=wu,Te.random=hu,Te.reduce=ya,Te.reduceRight=_a,Te.repeat=xu,Te.replace=$u,Te.result=Zs,Te.round=Uf,Te.runInContext=W,Te.sample=wa,Te.size=ka,Te.snakeCase=$f,Te.some=Ca,Te.sortedIndex=Do,Te.sortedIndexBy=Fo,Te.sortedIndexOf=Oo,Te.sortedLastIndex=jo,Te.sortedLastIndexBy=Mo,Te.sortedLastIndexOf=Io,Te.startCase=kf,Te.startsWith=Cu,Te.subtract=Wf,Te.sum=rl,Te.sumBy=il,Te.template=Su,Te.times=Ku,Te.toInteger=As,Te.toLength=Ds,Te.toLower=Eu,Te.toNumber=Fs,Te.toSafeInteger=js,Te.toString=Ms,Te.toUpper=Tu,Te.trim=Au,Te.trimEnd=Du,Te.trimStart=Fu,Te.truncate=Ou,Te.unescape=ju,Te.uniqueId=Xu,Te.upperCase=Cf,Te.upperFirst=Sf,Te.each=pa,Te.eachRight=da,Te.first=go,Hu(Te,function(){var t={};return Rn(Te,function(e,n){dl.call(Te.prototype,n)||(t[n]=e)}),t}(),{chain:!1}),Te.VERSION=B,o(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){Te[t].placeholder=Te}),o(["drop","take"],function(t,e){Fe.prototype[t]=function(n){var r=this.__filtered__;if(r&&!e)return new Fe(this);n=n===V?1:Rl(As(n),0);var i=this.clone();return r?i.__takeCount__=Ll(n,i.__takeCount__):i.__views__.push({size:Ll(n,bt),type:t+(i.__dir__<0?"Right":"")}),i},Fe.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),o(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==pt||n==vt;Fe.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Si(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),o(["head","last"],function(t,e){var n="take"+(e?"Right":"");Fe.prototype[t]=function(){return this[n](1).value()[0]}}),o(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");Fe.prototype[t]=function(){return this.__filtered__?new Fe(this):this[n](1)}}),Fe.prototype.compact=function(){return this.filter(Ru)},Fe.prototype.find=function(t){return this.filter(t).head()},Fe.prototype.findLast=function(t){return this.reverse().find(t)},Fe.prototype.invokeMap=Pa(function(t,e){return"function"==typeof t?new Fe(this):this.map(function(n){return Gn(n,t,e)})}),Fe.prototype.reject=function(t){return t=Si(t,3),this.filter(function(e){return!t(e)})},Fe.prototype.slice=function(t,e){t=As(t);
var n=this;return n.__filtered__&&(t>0||e<0)?new Fe(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==V&&(e=As(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},Fe.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Fe.prototype.toArray=function(){return this.take(bt)},Rn(Fe.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=Te[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(Te.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,s=e instanceof Fe,u=a[0],l=s||tf(e),c=function(t){var e=i.apply(Te,h([t],a));return r&&f?e[0]:e};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var f=this.__chain__,p=!!this.__actions__.length,d=o&&!f,v=s&&!p;if(!o&&l){e=v?e:new Fe(this);var m=t.apply(e,a);return m.__actions__.push({func:Qo,args:[c],thisArg:V}),new De(m,f)}return d&&v?t.apply(this,a):(m=this.thru(c),d?r?m.value()[0]:m.value():m)})}),o(["pop","push","shift","sort","splice","unshift"],function(t){var e=cl[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Te.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(tf(i)?i:[],t)}return this[n](function(n){return e.apply(tf(n)?n:[],t)})}}),Rn(Fe.prototype,function(t,e){var n=Te[e];if(n){var r=n.name+"",i=Zl[r]||(Zl[r]=[]);i.push({name:e,func:n})}}),Zl[li(V,Q).name]=[{name:"wrapper",func:V}],Fe.prototype.clone=Oe,Fe.prototype.reverse=je,Fe.prototype.value=Me,Te.prototype.at=Pc,Te.prototype.chain=Zo,Te.prototype.commit=ta,Te.prototype.next=ea,Te.prototype.plant=ra,Te.prototype.reverse=ia,Te.prototype.toJSON=Te.prototype.valueOf=Te.prototype.value=oa,El&&(Te.prototype[El]=na),Te}var V,B="4.11.2",Y=200,K="Expected a function",G="__lodash_hash_undefined__",X="__lodash_placeholder__",J=1,Q=2,Z=4,tt=8,et=16,nt=32,rt=64,it=128,ot=256,at=512,st=1,ut=2,lt=30,ct="...",ft=150,ht=16,pt=1,dt=2,vt=3,mt=1/0,gt=9007199254740991,yt=1.7976931348623157e308,_t=NaN,bt=4294967295,wt=bt-1,xt=bt>>>1,$t="[object Arguments]",kt="[object Array]",Ct="[object Boolean]",St="[object Date]",Et="[object Error]",Tt="[object Function]",At="[object GeneratorFunction]",Dt="[object Map]",Ft="[object Number]",Ot="[object Object]",jt="[object Promise]",Mt="[object RegExp]",It="[object Set]",Pt="[object String]",Nt="[object Symbol]",Rt="[object WeakMap]",Lt="[object WeakSet]",zt="[object ArrayBuffer]",qt="[object DataView]",Ht="[object Float32Array]",Ut="[object Float64Array]",Wt="[object Int8Array]",Vt="[object Int16Array]",Bt="[object Int32Array]",Yt="[object Uint8Array]",Kt="[object Uint8ClampedArray]",Gt="[object Uint16Array]",Xt="[object Uint32Array]",Jt=/\b__p \+= '';/g,Qt=/\b(__p \+=) '' \+/g,Zt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,te=/&(?:amp|lt|gt|quot|#39|#96);/g,ee=/[&<>"'`]/g,ne=RegExp(te.source),re=RegExp(ee.source),ie=/<%-([\s\S]+?)%>/g,oe=/<%([\s\S]+?)%>/g,ae=/<%=([\s\S]+?)%>/g,se=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ue=/^\w*$/,le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,ce=/[\\^$.*+?()[\]{}|]/g,fe=RegExp(ce.source),he=/^\s+|\s+$/g,pe=/^\s+/,de=/\s+$/,ve=/[a-zA-Z0-9]+/g,me=/\\(\\)?/g,ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ye=/\w*$/,_e=/^0x/i,be=/^[-+]0x[0-9a-f]+$/i,we=/^0b[01]+$/i,xe=/^\[object .+?Constructor\]$/,$e=/^0o[0-7]+$/i,ke=/^(?:0|[1-9]\d*)$/,Ce=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Se=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,Te="\\ud800-\\udfff",Ae="\\u0300-\\u036f\\ufe20-\\ufe23",De="\\u20d0-\\u20f0",Fe="\\u2700-\\u27bf",Oe="a-z\\xdf-\\xf6\\xf8-\\xff",je="\\xac\\xb1\\xd7\\xf7",Me="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ie="\\u2000-\\u206f",Pe=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ne="A-Z\\xc0-\\xd6\\xd8-\\xde",Re="\\ufe0e\\ufe0f",Le=je+Me+Ie+Pe,ze="[']",qe="["+Te+"]",He="["+Le+"]",Ue="["+Ae+De+"]",We="\\d+",Ve="["+Fe+"]",Be="["+Oe+"]",Ye="[^"+Te+Le+We+Fe+Oe+Ne+"]",Ke="\\ud83c[\\udffb-\\udfff]",Ge="(?:"+Ue+"|"+Ke+")",Xe="[^"+Te+"]",Je="(?:\\ud83c[\\udde6-\\uddff]){2}",Qe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ze="["+Ne+"]",tn="\\u200d",en="(?:"+Be+"|"+Ye+")",nn="(?:"+Ze+"|"+Ye+")",rn="(?:"+ze+"(?:d|ll|m|re|s|t|ve))?",on="(?:"+ze+"(?:D|LL|M|RE|S|T|VE))?",an=Ge+"?",sn="["+Re+"]?",un="(?:"+tn+"(?:"+[Xe,Je,Qe].join("|")+")"+sn+an+")*",ln=sn+an+un,cn="(?:"+[Ve,Je,Qe].join("|")+")"+ln,fn="(?:"+[Xe+Ue+"?",Ue,Je,Qe,qe].join("|")+")",hn=RegExp(ze,"g"),pn=RegExp(Ue,"g"),dn=RegExp(Ke+"(?="+Ke+")|"+fn+ln,"g"),vn=RegExp([Ze+"?"+Be+"+"+rn+"(?="+[He,Ze,"$"].join("|")+")",nn+"+"+on+"(?="+[He,Ze+en,"$"].join("|")+")",Ze+"?"+en+"+"+rn,Ze+"+"+on,We,cn].join("|"),"g"),mn=RegExp("["+tn+Te+Ae+De+Re+"]"),gn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,yn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","Reflect","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],_n=-1,bn={};bn[Ht]=bn[Ut]=bn[Wt]=bn[Vt]=bn[Bt]=bn[Yt]=bn[Kt]=bn[Gt]=bn[Xt]=!0,bn[$t]=bn[kt]=bn[zt]=bn[Ct]=bn[qt]=bn[St]=bn[Et]=bn[Tt]=bn[Dt]=bn[Ft]=bn[Ot]=bn[Mt]=bn[It]=bn[Pt]=bn[Rt]=!1;var wn={};wn[$t]=wn[kt]=wn[zt]=wn[qt]=wn[Ct]=wn[St]=wn[Ht]=wn[Ut]=wn[Wt]=wn[Vt]=wn[Bt]=wn[Dt]=wn[Ft]=wn[Ot]=wn[Mt]=wn[It]=wn[Pt]=wn[Nt]=wn[Yt]=wn[Kt]=wn[Gt]=wn[Xt]=!0,wn[Et]=wn[Tt]=wn[Rt]=!1;var xn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},$n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},kn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},Cn={"function":!0,object:!0},Sn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},En=parseFloat,Tn=parseInt,An=Cn[typeof exports]&&exports&&!exports.nodeType?exports:V,Dn=Cn[typeof module]&&module&&!module.nodeType?module:V,Fn=Dn&&Dn.exports===An?An:V,On=D(An&&Dn&&"object"==typeof global&&global),jn=D(Cn[typeof self]&&self),Mn=D(Cn[typeof window]&&window),In=D(Cn[typeof this]&&this),Pn=On||Mn!==(In&&In.window)&&Mn||jn||In||Function("return this")(),Nn=W();(Mn||jn||{})._=Nn,"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return Nn}):An&&Dn?(Fn&&((Dn.exports=Nn)._=Nn),An._=Nn):Pn._=Nn}.call(this),function(t,e,n,r){function i(t){return String(t).replace(/[&<>"'\/]/g,function(t){return s[t]})}e||(e={},t?t[r]=e:n[r]=e);var o,a,s,u={},l={},c=/[[\]{}()*+?.\\|^$\-,&#\s]/g;s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},e.define=function(t){var e,n,r,s,f=[];for(e in t){r=t[e].codes;for(n in r)s=r[n],u[s]=e,u[i(s)]=e,0==n&&(l[s]=e)}for(s in u)f.push("("+s.replace(c,"\\$&")+")");a=new RegExp(f.join("|"),"g"),o=t},e.replace=function(t,n){return t.replace(a,function(t){var r=u[t];return(n||e.tpl)(r,t,o[r].title)})},e.toString=function(t){var n,r,i="";for(n in l)r=l[n],i+=(t||e.tpl)(r,n,o[r].title);return i},e.tpl=function(t,e,n){return'<span class="emoticon emoticon-'+t+'" title="'+n+'">'+e+"</span>"}}("undefined"!=typeof jQuery?jQuery:null,"undefined"!=typeof exports?exports:null,window,"emoticons"),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.MessageFormat=t()}}(function(){var t;return function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n?n:e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,e,n){e.exports=function(){"use strict";function t(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}function e(t,n,r,i){this.message=t,this.expected=n,this.found=r,this.location=i,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}function n(t){function n(e){var n,r,i=Vt[e];if(i)return i;for(n=e-1;!Vt[n];)n--;for(i=Vt[n],i={line:i.line,column:i.column,seenCR:i.seenCR};n<e;)r=t.charAt(n),"\n"===r?(i.seenCR||i.line++,i.column=1,i.seenCR=!1):"\r"===r||"\u2028"===r||"\u2029"===r?(i.line++,i.column=1,i.seenCR=!0):(i.column++,i.seenCR=!1),n++;return Vt[e]=i,i}function r(t,e){var r=n(t),i=n(e);return{start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:i.line,column:i.column}}}function i(t){Ut<Bt||(Ut>Bt&&(Bt=Ut,Yt=[]),Yt.push(t))}function o(t,n,r,i){function o(t){var e=1;for(t.sort(function(t,e){return t.description<e.description?-1:t.description>e.description?1:0});e<t.length;)t[e-1]===t[e]?t.splice(e,1):e++}function a(t,e){function n(t){function e(t){return t.charCodeAt(0).toString(16).toUpperCase()}return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(t){return"\\x0"+e(t)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(t){return"\\x"+e(t)}).replace(/[\u0100-\u0FFF]/g,function(t){return"\\u0"+e(t)}).replace(/[\u1000-\uFFFF]/g,function(t){return"\\u"+e(t)})}var r,i,o,a=new Array(t.length);for(o=0;o<t.length;o++)a[o]=t[o].description;return r=t.length>1?a.slice(0,-1).join(", ")+" or "+a[t.length-1]:a[0],i=e?'"'+n(e)+'"':"end of input","Expected "+r+" but "+i+" found."}return null!==n&&o(n),new e(null!==t?t:a(n,r),n,r,i)}function a(){var t;return t=s()}function s(){var t,e,n;for(t=Ut,e=[],n=u(),n===T&&(n=y(),n===T&&(n=g()));n!==T;)e.push(n),n=u(),n===T&&(n=y(),n===T&&(n=g()));return e!==T&&(Wt=t,e=F(e)),t=e}function u(){var e,n,r,o,a,s,u;return e=Ut,123===t.charCodeAt(Ut)?(n=O,Ut++):(n=T,0===Kt&&i(j)),n!==T?(r=k(),r!==T?(o=_(),o!==T?(a=Ut,44===t.charCodeAt(Ut)?(s=M,Ut++):(s=T,0===Kt&&i(I)),s!==T?(u=l(),u!==T?(s=[s,u],a=s):(Ut=a,a=T)):(Ut=a,a=T),a===T&&(a=null),a!==T?(s=k(),s!==T?(125===t.charCodeAt(Ut)?(u=P,Ut++):(u=T,0===Kt&&i(N)),u!==T?(Wt=e,n=R(o,a),e=n):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T),e}function l(){var e,n,r,o,a,s,u,l;if(e=Ut,n=k(),n!==T?(t.substr(Ut,6)===L?(r=L,Ut+=6):(r=T,0===Kt&&i(z)),r!==T?(o=k(),o!==T?(44===t.charCodeAt(Ut)?(a=M,Ut++):(a=T,0===Kt&&i(I)),a!==T?(s=k(),s!==T?(u=c(),u!==T?(l=k(),l!==T?(Wt=e,n=q(r,u),e=n):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T),e===T&&(e=Ut,n=k(),n!==T?(t.substr(Ut,13)===H?(r=H,Ut+=13):(r=T,0===Kt&&i(U)),r!==T?(o=k(),o!==T?(44===t.charCodeAt(Ut)?(a=M,Ut++):(a=T,0===Kt&&i(I)),a!==T?(s=k(),s!==T?(u=c(),u!==T?(l=k(),l!==T?(Wt=e,n=q(r,u),e=n):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T),e===T&&(e=Ut,n=k(),n!==T?(t.substr(Ut,6)===W?(r=W,Ut+=6):(r=T,0===Kt&&i(V)),r!==T?(o=k(),o!==T?(44===t.charCodeAt(Ut)?(a=M,Ut++):(a=T,0===Kt&&i(I)),a!==T?(s=k(),s!==T?(u=d(),u!==T?(l=k(),l!==T?(Wt=e,n=q(r,u),e=n):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T),e===T)))if(e=Ut,n=k(),n!==T)if(r=_(),r!==T){for(o=[],a=m();a!==T;)o.push(a),a=m();o!==T?(Wt=e,n=B(r,o),e=n):(Ut=e,e=T)}else Ut=e,e=T;else Ut=e,e=T;return e}function c(){var t,e,n,r;if(t=Ut,e=f(),e===T&&(e=null),e!==T){if(n=[],r=h(),r!==T)for(;r!==T;)n.push(r),r=h();else n=T;n!==T?(Wt=t,e=Y(e,n),t=e):(Ut=t,t=T)}else Ut=t,t=T;return t}function f(){var e,n,r,o,a,s,u,l;return e=Ut,n=k(),n!==T?(t.substr(Ut,6)===K?(r=K,Ut+=6):(r=T,0===Kt&&i(G)),r!==T?(o=k(),o!==T?(58===t.charCodeAt(Ut)?(a=X,Ut++):(a=T,0===Kt&&i(J)),a!==T?(s=k(),s!==T?(u=x(),u!==T?(l=k(),l!==T?(Wt=e,n=Q(u),e=n):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T),e}function h(){var e,n,r,o,a,u,l,c,f;return e=Ut,n=k(),n!==T?(r=p(),r!==T?(o=k(),o!==T?(123===t.charCodeAt(Ut)?(a=O,Ut++):(a=T,0===Kt&&i(j)),a!==T?(u=k(),u!==T?(l=s(),l!==T?(c=k(),c!==T?(125===t.charCodeAt(Ut)?(f=P,Ut++):(f=T,0===Kt&&i(N)),f!==T?(Wt=e,n=Z(r,l),e=n):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T),e}function p(){var e,n,r;return e=Ut,n=_(),n!==T&&(Wt=e,n=tt(n)),e=n,e===T&&(e=Ut,61===t.charCodeAt(Ut)?(n=et,Ut++):(n=T,0===Kt&&i(nt)),n!==T?(r=x(),r!==T?(Wt=e,n=Q(r),e=n):(Ut=e,e=T)):(Ut=e,e=T)),e}function d(){var t,e,n;if(t=Ut,e=[],n=v(),n!==T)for(;n!==T;)e.push(n),n=v();else e=T;return e!==T&&(Wt=t,e=rt(e)),t=e}function v(){var e,n,r,o,a,u,l,c,f;return e=Ut,n=k(),n!==T?(r=_(),r!==T?(o=k(),o!==T?(123===t.charCodeAt(Ut)?(a=O,Ut++):(a=T,0===Kt&&i(j)),a!==T?(u=k(),u!==T?(l=s(),l!==T?(c=k(),c!==T?(125===t.charCodeAt(Ut)?(f=P,Ut++):(f=T,0===Kt&&i(N)),f!==T?(Wt=e,n=Z(r,l),e=n):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T),e}function m(){var e,n,r,o,a,s;return e=Ut,n=k(),n!==T?(44===t.charCodeAt(Ut)?(r=M,Ut++):(r=T,0===Kt&&i(I)),r!==T?(o=k(),o!==T?(a=_(),a!==T?(s=k(),s!==T?(Wt=e,n=it(a),e=n):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T),e}function g(){var e,n;return e=Ut,35===t.charCodeAt(Ut)?(n=ot,Ut++):(n=T,0===Kt&&i(at)),n!==T&&(Wt=e,n=st()),e=n}function y(){var t,e,n;if(t=Ut,e=[],n=b(),n===T&&(n=C()),n!==T)for(;n!==T;)e.push(n),n=b(),n===T&&(n=C());else e=T;return e!==T&&(Wt=t,e=ut(e)),t=e}function _(){var e,n,r,o,a,s,u;if(Kt++,e=Ut,n=k(),n!==T){if(r=Ut,o=Ut,ct.test(t.charAt(Ut))?(a=t.charAt(Ut),Ut++):(a=T,0===Kt&&i(ft)),a!==T){for(s=[],ht.test(t.charAt(Ut))?(u=t.charAt(Ut),Ut++):(u=T,0===Kt&&i(pt));u!==T;)s.push(u),ht.test(t.charAt(Ut))?(u=t.charAt(Ut),Ut++):(u=T,0===Kt&&i(pt));s!==T?(a=[a,s],o=a):(Ut=o,o=T)}else Ut=o,o=T;r=o!==T?t.substring(r,Ut):o,r!==T?(o=k(),o!==T?(Wt=e,n=dt(r),e=n):(Ut=e,e=T)):(Ut=e,e=T)}else Ut=e,e=T;return Kt--,e===T&&(n=T,0===Kt&&i(lt)),e}function b(){var t,e,n;if(t=Ut,e=[],n=w(),n!==T)for(;n!==T;)e.push(n),n=w();else e=T;return e!==T&&(Wt=t,e=vt(e)),t=e}function w(){var e,n,r,o,a,s;return e=Ut,mt.test(t.charAt(Ut))?(n=t.charAt(Ut),Ut++):(n=T,0===Kt&&i(gt)),n!==T&&(Wt=e,n=yt(n)),e=n,e===T&&(e=Ut,t.substr(Ut,2)===_t?(n=_t,Ut+=2):(n=T,0===Kt&&i(bt)),n!==T&&(Wt=e,n=wt()),e=n,e===T&&(e=Ut,t.substr(Ut,2)===xt?(n=xt,Ut+=2):(n=T,0===Kt&&i($t)),n!==T&&(Wt=e,n=kt()),e=n,e===T&&(e=Ut,t.substr(Ut,2)===Ct?(n=Ct,Ut+=2):(n=T,0===Kt&&i(St)),n!==T&&(Wt=e,n=Et()),e=n,e===T&&(e=Ut,t.substr(Ut,2)===Tt?(n=Tt,Ut+=2):(n=T,0===Kt&&i(At)),n!==T&&(Wt=e,n=Dt()),e=n,e===T&&(e=Ut,t.substr(Ut,2)===Ft?(n=Ft,Ut+=2):(n=T,0===Kt&&i(Ot)),n!==T?(r=$(),r!==T?(o=$(),o!==T?(a=$(),a!==T?(s=$(),s!==T?(Wt=e,n=jt(r,o,a,s),e=n):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)):(Ut=e,e=T)))))),e}function x(){var e,n,r;if(e=Ut,n=[],Mt.test(t.charAt(Ut))?(r=t.charAt(Ut),Ut++):(r=T,0===Kt&&i(It)),r!==T)for(;r!==T;)n.push(r),Mt.test(t.charAt(Ut))?(r=t.charAt(Ut),Ut++):(r=T,0===Kt&&i(It));else n=T;return n!==T&&(Wt=e,n=Pt(n)),e=n}function $(){var e;return Nt.test(t.charAt(Ut))?(e=t.charAt(Ut),Ut++):(e=T,0===Kt&&i(Rt)),e}function k(){var t,e,n;for(Kt++,t=Ut,e=[],n=C();n!==T;)e.push(n),n=C();return e!==T&&(Wt=t,e=zt(e)),t=e,Kt--,t===T&&(e=T,0===Kt&&i(Lt)),t}function C(){var e;return qt.test(t.charAt(Ut))?(e=t.charAt(Ut),Ut++):(e=T,0===Kt&&i(Ht)),e}var S,E=arguments.length>1?arguments[1]:{},T={},A={start:a},D=a,F=function(t){return{type:"messageFormatPattern",statements:t}},O="{",j={type:"literal",value:"{",description:'"{"'},M=",",I={type:"literal",value:",",description:'","'},P="}",N={type:"literal",value:"}",description:'"}"'},R=function(t,e){var n={type:"messageFormatElement",argumentIndex:t};return e&&e.length?n.elementFormat=e[1]:n.output=!0,n},L="plural",z={type:"literal",value:"plural",description:'"plural"'},q=function(t,e){return{type:"elementFormat",key:t,val:e}},H="selectordinal",U={type:"literal",value:"selectordinal",description:'"selectordinal"'},W="select",V={type:"literal",value:"select",description:'"select"'},B=function(t,e){return{type:"elementFormat",key:t,val:e}},Y=function(t,e){return{type:"pluralFormatPattern",pluralForms:e,offset:t||0}},K="offset",G={type:"literal",value:"offset",description:'"offset"'},X=":",J={type:"literal",value:":",description:'":"'},Q=function(t){return t},Z=function(t,e){return{key:t,val:e}},tt=function(t){return t},et="=",nt={type:"literal",value:"=",description:'"="'},rt=function(t){return{type:"selectFormatPattern",pluralForms:t}},it=function(t){return t},ot="#",at={type:"literal",value:"#",description:'"#"'},st=function(){return{type:"octothorpe"}},ut=function(t){return{type:"string",val:t.join("")}},lt={type:"other",description:"identifier"},ct=/^[0-9a-zA-Z$_]/,ft={type:"class",value:"[0-9a-zA-Z$_]",description:"[0-9a-zA-Z$_]"},ht=/^[^ \t\n\r,.+={}]/,pt={type:"class",value:"[^ \\t\\n\\r,.+={}]",description:"[^ \\t\\n\\r,.+={}]"},dt=function(t){return t},vt=function(t){return t.join("")},mt=/^[^{}#\\\0-\x1F \t\n\r]/,gt={type:"class",value:"[^{}#\\\\\\0-\\x1F\\x7f \\t\\n\\r]",description:"[^{}#\\\\\\0-\\x1F\\x7f \\t\\n\\r]"},yt=function(t){return t},_t="\\\\",bt={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},wt=function(){return"\\"},xt="\\#",$t={type:"literal",value:"\\#",description:'"\\\\#"'},kt=function(){return"#"},Ct="\\{",St={type:"literal",value:"\\{",description:'"\\\\{"'},Et=function(){return"{"},Tt="\\}",At={type:"literal",value:"\\}",description:'"\\\\}"'},Dt=function(){return"}"},Ft="\\u",Ot={type:"literal",value:"\\u",description:'"\\\\u"'},jt=function(t,e,n,r){return String.fromCharCode(parseInt("0x"+t+e+n+r))},Mt=/^[0-9]/,It={type:"class",value:"[0-9]",description:"[0-9]"},Pt=function(t){return parseInt(t.join(""),10)},Nt=/^[0-9a-fA-F]/,Rt={type:"class",value:"[0-9a-fA-F]",description:"[0-9a-fA-F]"},Lt={type:"other",description:"whitespace"},zt=function(t){return t.join("")},qt=/^[ \t\n\r]/,Ht={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},Ut=0,Wt=0,Vt=[{line:1,column:1,seenCR:!1}],Bt=0,Yt=[],Kt=0;if("startRule"in E){if(!(E.startRule in A))throw new Error("Can't start parsing from rule \""+E.startRule+'".');D=A[E.startRule]}if(S=D(),S!==T&&Ut===t.length)return S;throw S!==T&&Ut<t.length&&i({type:"end",description:"end of input"}),o(null,Yt,Bt<t.length?t.charAt(Bt):null,Bt<t.length?r(Bt,Bt+1):r(Bt,Bt))}return t(e,Error),{SyntaxError:e,parse:n}}()},{}],2:[function(t,e,n){function r(t,e){if(/^[A-Z_$][0-9A-Z_$]*$/i.test(t)&&["break","continue","delete","else","for","function","if","in","new","return","this","typeof","var","void","while","with","case","catch","default","do","finally","instanceof","switch","throw","try"].indexOf(t)<0)return e?e+"."+t:t;var n=JSON.stringify(t);return e?e+"["+n+"]":n}function i(t,e){function n(t){var e=["ar","ckb","fa","he","ks($|[^bfh])","lrc","mzn","pa-Arab","ps","ug","ur","uz-Arab","yi"];return new RegExp("^"+e.join("|^")).test(t)}var r=JSON.stringify(n(e)?"":"");return r+" + "+t+" + "+r}function o(t,e,n){if(t)if("string"==typeof t){this.lc=[];for(var r=t;r;r=r.replace(/[-_]?[^-_]*$/,""))this.lc.push(r)}else this.lc=t;else this.lc=["en"];if(!e&&this.lc.every(function(t){return e=o.plurals[t],!e}))throw new Error("Plural function for locale `"+this.lc.join(",")+"` not found");this.runtime=new a(this.lc[0],e,n)}function a(t,e,n){if(this.pluralFuncs={},this.pluralFuncs[t]=e,this.fmt={},n)for(var r in n)this.fmt[r]=n[r]}e.exports=o,o._parse=t("./messageformat-parser").parse,o.plurals=t("make-plural/plurals"),o.formatters={number:function(t){return new Function("v,lc,p","return Intl.NumberFormat(lc,\n p=='integer' ? {maximumFractionDigits:0}\n : p=='percent' ? {style:'percent'}\n : p=='currency' ? {style:'currency', currency:'"+(t.currency||"USD")+"', minimumFractionDigits:2, maximumFractionDigits:2}\n : {}).format(v)")},date:function(t,e,n){var r={day:"numeric",month:"short",year:"numeric"};switch(n){case"full":r.weekday="long";case"long":r.month="long";break;case"short":r.month="numeric"}return new Date(t).toLocaleDateString(e,r)},time:function(t,e,n){var r={second:"numeric",minute:"numeric",hour:"numeric"};switch(n){case"full":case"long":r.timeZoneName="short";break;case"short":delete r.minute}return new Date(t).toLocaleTimeString(e,r)}},o.prototype.setBiDiSupport=function(t){return this.bidiSupport=!!t||"undefined"==typeof t,this},o.prototype.setIntlSupport=function(t){return this.withIntlSupport=!!t||"undefined"==typeof t,this},a.prototype={number:function(t,e){if(isNaN(t))throw new Error("'"+t+"' isn't a number.");return t-(e||0)},plural:function(t,e,n,r,i){if({}.hasOwnProperty.call(r,t))return r[t]();e&&(t-=e);var o=n(t,i);return o in r?r[o]():r.other()},select:function(t,e){return{}.hasOwnProperty.call(e,t)?e[t]():e.other()},toString:function(){var t=function(e,n){if("object"!=typeof e){var i=e.toString().replace(/^(function )\w*/,"$1"),o=/([ \t]*)\S.*$/.exec(i);return o?i.replace(new RegExp("^"+o[1],"mg"),""):i}var a=[];for(var s in e)"toString"!=s&&(0==n?a.push("var "+s+" = "+t(e[s],n+1)+";\n"):a.push(r(s)+": "+t(e[s],n+1)));if(0==n)return a.join("");if(0==a.length)return"{}";for(var o=" ";--n;)o+=" ";return"{\n"+a.join(",\n").replace(/^/gm,o)+"\n}"};return t(this,0)}},o.prototype._precompile=function(t,e){e=e||{keys:{},offset:{}};var n,a,s=[],u=[];switch(t.type){case"messageFormatPattern":for(n=0;n<t.statements.length;++n)s.push(this._precompile(t.statements[n],e));return a=s.join(" + ")||'""',e.pf_count?a:"function(d) { return "+a+"; }";case"messageFormatElement":if(e.pf_count=e.pf_count||0,t.output){var l=r(t.argumentIndex,"d");return this.bidiSupport?i(l,this.lc):l}return e.keys[e.pf_count]=t.argumentIndex,this._precompile(t.elementFormat,e);case"elementFormat":switch(u=[r(e.keys[e.pf_count],"d")],t.key){case"select":return u.push(this._precompile(t.val,e)),"select("+u.join(", ")+")";case"selectordinal":return u=u.concat([0,r(this.lc[0],"pluralFuncs"),this._precompile(t.val,e),1]),"plural("+u.join(", ")+")";case"plural":return e.offset[e.pf_count||0]=t.val.offset||0,u=u.concat([e.offset[e.pf_count]||0,r(this.lc[0],"pluralFuncs"),this._precompile(t.val,e)]),"plural("+u.join(", ")+")";default:return this.withIntlSupport&&!(t.key in this.runtime.fmt)&&t.key in o.formatters&&(a=o.formatters[t.key],this.runtime.fmt[t.key]="function"==typeof a(this)?a(this):a),u.push(JSON.stringify(this.lc)),t.val&&t.val.length&&u.push(JSON.stringify(1==t.val.length?t.val[0]:t.val)),"fmt."+t.key+"("+u.join(", ")+")"}case"pluralFormatPattern":case"selectFormatPattern":e.pf_count=e.pf_count||0,"selectFormatPattern"==t.type&&(e.offset[e.pf_count]=0);var c=!0;for(n=0;n<t.pluralForms.length;++n){var f=t.pluralForms[n].key;"other"===f&&(c=!1);var h=JSON.parse(JSON.stringify(e));h.pf_count++,s.push(r(f)+": function() { return "+this._precompile(t.pluralForms[n].val,h)+";}")}if(c)throw new Error("No 'other' form found in "+t.type+" "+e.pf_count);return"{ "+s.join(", ")+" }";case"string":return JSON.stringify(t.val||"");case"octothorpe":return e.pf_count?(u=[r(e.keys[e.pf_count-1],"d")],e.offset[e.pf_count-1]&&u.push(e.offset[e.pf_count-1]),"number("+u.join(", ")+")"):'"#"';default:throw new Error("Bad AST type: "+t.type)}},o.prototype.compile=function(t,e){var n={},i=this.lc,a=function(t,e){try{var n=o._parse(e);return t._precompile(n)}catch(r){throw new Error((n?"Precompiler":"Parser")+" error: "+r.toString())}},s=function(t,e){if(e||(e=0),"object"!=typeof t)return t;for(var n=[],i="",o=0;o<e;++o)i+=" ";for(var a in t)n.push("\n"+i+" "+r(a)+": "+s(t[a],e+1));return"{"+n.join(",")+"\n"+i+"}"};if("string"==typeof t){var u=new Function("number, plural, select, pluralFuncs, fmt","return "+a(this,t));return u(this.runtime.number,this.runtime.plural,this.runtime.select,this.runtime.pluralFuncs,this.runtime.fmt)}e=e||{};for(var l in t)if(e.locale&&(this.lc=e.locale[l]&&[].concat(e.locale[l])||i),"string"==typeof t[l])try{n[l]=a(this,t[l])}catch(c){throw c.message=c.message.replace(":"," with `"+l+"`:"),c}else{n[l]={};for(var f in t[l])try{n[l][f]=a(this,t[l][f])}catch(c){throw c.message=c.message.replace(":"," with `"+f+"` in `"+l+"`:"),c}}this.lc=i;var h=this.runtime.toString()+"\n";switch(e.global||""){case"exports":var p=[];for(var d in n)p.push(r(d,"exports")+" = "+s(n[d]));return new Function(h+p.join(";\n"));case"module.exports":return new Function(h+"module.exports = "+s(n));case"":return new Function(h+"return "+s(n));default:return new Function("G",h+r(e.global,"G")+" = "+s(n))}}},{"./messageformat-parser":1,"make-plural/plurals":3}],3:[function(e,n,r){var i=[function(t,e){return"other"},function(t,e){return e?"other":1==t?"one":"other"},function(t,e){return e?"other":0==t||1==t?"one":"other"},function(t,e){var n=String(t).split("."),r=!n[1];return e?"other":1==t&&r?"one":"other"}];!function(e,i){"function"==typeof t&&t.amd?t(i):"object"==typeof r?n.exports=i:e.plurals=i}(this,{af:i[1],ak:i[2],am:function(t,e){return e?"other":t>=0&&t<=1?"one":"other"},ar:function(t,e){var n=String(t).split("."),r=Number(n[0])==t,i=r&&n[0].slice(-2);return e?"other":0==t?"zero":1==t?"one":2==t?"two":i>=3&&i<=10?"few":i>=11&&i<=99?"many":"other"},as:function(t,e){return e?1==t||5==t||7==t||8==t||9==t||10==t?"one":2==t||3==t?"two":4==t?"few":6==t?"many":"other":t>=0&&t<=1?"one":"other"},asa:i[1],ast:i[3],az:function(t,e){var n=String(t).split("."),r=n[0],i=r.slice(-1),o=r.slice(-2),a=r.slice(-3);return e?1==i||2==i||5==i||7==i||8==i||20==o||50==o||70==o||80==o?"one":3==i||4==i||100==a||200==a||300==a||400==a||500==a||600==a||700==a||800==a||900==a?"few":0==r||6==i||40==o||60==o||90==o?"many":"other":1==t?"one":"other"},be:function(t,e){var n=String(t).split("."),r=Number(n[0])==t,i=r&&n[0].slice(-1),o=r&&n[0].slice(-2);return e?2!=i&&3!=i||12==o||13==o?"other":"few":1==i&&11!=o?"one":i>=2&&i<=4&&(o<12||o>14)?"few":r&&0==i||i>=5&&i<=9||o>=11&&o<=14?"many":"other"},bem:i[1],bez:i[1],bg:i[1],bh:i[2],bm:i[0],bn:function(t,e){return e?1==t||5==t||7==t||8==t||9==t||10==t?"one":2==t||3==t?"two":4==t?"few":6==t?"many":"other":t>=0&&t<=1?"one":"other"},bo:i[0],br:function(t,e){var n=String(t).split("."),r=Number(n[0])==t,i=r&&n[0].slice(-1),o=r&&n[0].slice(-2),a=r&&n[0].slice(-6);return e?"other":1==i&&11!=o&&71!=o&&91!=o?"one":2==i&&12!=o&&72!=o&&92!=o?"two":(3==i||4==i||9==i)&&(o<10||o>19)&&(o<70||o>79)&&(o<90||o>99)?"few":0!=t&&r&&0==a?"many":"other"},brx:i[1],bs:function(t,e){var n=String(t).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=r.slice(-2),u=i.slice(-1),l=i.slice(-2);return e?"other":o&&1==a&&11!=s||1==u&&11!=l?"one":o&&a>=2&&a<=4&&(s<12||s>14)||u>=2&&u<=4&&(l<12||l>14)?"few":"other"},ca:function(t,e){var n=String(t).split("."),r=!n[1];return e?1==t||3==t?"one":2==t?"two":4==t?"few":"other":1==t&&r?"one":"other"},ce:i[1],cgg:i[1],chr:i[1],ckb:i[1],cs:function(t,e){var n=String(t).split("."),r=n[0],i=!n[1];return e?"other":1==t&&i?"one":r>=2&&r<=4&&i?"few":i?"other":"many"},cy:function(t,e){return e?0==t||7==t||8==t||9==t?"zero":1==t?"one":2==t?"two":3==t||4==t?"few":5==t||6==t?"many":"other":0==t?"zero":1==t?"one":2==t?"two":3==t?"few":6==t?"many":"other"},da:function(t,e){var n=String(t).split("."),r=n[0],i=Number(n[0])==t;return e?"other":1!=t&&(i||0!=r&&1!=r)?"other":"one"},de:i[3],dsb:function(t,e){var n=String(t).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-2),s=i.slice(-2);return e?"other":o&&1==a||1==s?"one":o&&2==a||2==s?"two":o&&(3==a||4==a)||3==s||4==s?"few":"other"},dv:i[1],dz:i[0],ee:i[1],el:i[1],en:function(t,e){var n=String(t).split("."),r=!n[1],i=Number(n[0])==t,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return e?1==o&&11!=a?"one":2==o&&12!=a?"two":3==o&&13!=a?"few":"other":1==t&&r?"one":"other"},eo:i[1],es:i[1],et:i[3],eu:i[1],fa:function(t,e){return e?"other":t>=0&&t<=1?"one":"other"},ff:function(t,e){return e?"other":t>=0&&t<2?"one":"other"},fi:i[3],fil:function(t,e){var n=String(t).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=i.slice(-1);return e?1==t?"one":"other":o&&(1==r||2==r||3==r)||o&&4!=a&&6!=a&&9!=a||!o&&4!=s&&6!=s&&9!=s?"one":"other"},fo:i[1],fr:function(t,e){return e?1==t?"one":"other":t>=0&&t<2?"one":"other"},fur:i[1],fy:i[3],ga:function(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?1==t?"one":"other":1==t?"one":2==t?"two":r&&t>=3&&t<=6?"few":r&&t>=7&&t<=10?"many":"other"},gd:function(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?"other":1==t||11==t?"one":2==t||12==t?"two":r&&t>=3&&t<=10||r&&t>=13&&t<=19?"few":"other"},gl:i[3],gsw:i[1],gu:function(t,e){return e?1==t?"one":2==t||3==t?"two":4==t?"few":6==t?"many":"other":t>=0&&t<=1?"one":"other"},guw:i[2],gv:function(t,e){var n=String(t).split("."),r=n[0],i=!n[1],o=r.slice(-1),a=r.slice(-2);return e?"other":i&&1==o?"one":i&&2==o?"two":!i||0!=a&&20!=a&&40!=a&&60!=a&&80!=a?i?"other":"many":"few"},ha:i[1],haw:i[1],he:function(t,e){var n=String(t).split("."),r=n[0],i=!n[1],o=Number(n[0])==t,a=o&&n[0].slice(-1);return e?"other":1==t&&i?"one":2==r&&i?"two":i&&(t<0||t>10)&&o&&0==a?"many":"other"},hi:function(t,e){return e?1==t?"one":2==t||3==t?"two":4==t?"few":6==t?"many":"other":t>=0&&t<=1?"one":"other"},hr:function(t,e){var n=String(t).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=r.slice(-2),u=i.slice(-1),l=i.slice(-2);return e?"other":o&&1==a&&11!=s||1==u&&11!=l?"one":o&&a>=2&&a<=4&&(s<12||s>14)||u>=2&&u<=4&&(l<12||l>14)?"few":"other"},hsb:function(t,e){var n=String(t).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-2),s=i.slice(-2);return e?"other":o&&1==a||1==s?"one":o&&2==a||2==s?"two":o&&(3==a||4==a)||3==s||4==s?"few":"other"},hu:function(t,e){return e?1==t||5==t?"one":"other":1==t?"one":"other"},hy:function(t,e){return e?1==t?"one":"other":t>=0&&t<2?"one":"other"},id:i[0],ig:i[0],ii:i[0],"in":i[0],is:function(t,e){var n=String(t).split("."),r=n[0],i=Number(n[0])==t,o=r.slice(-1),a=r.slice(-2);return e?"other":i&&1==o&&11!=a||!i?"one":"other"},it:function(t,e){var n=String(t).split("."),r=!n[1];return e?11==t||8==t||80==t||800==t?"many":"other":1==t&&r?"one":"other"},iu:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},iw:function(t,e){var n=String(t).split("."),r=n[0],i=!n[1],o=Number(n[0])==t,a=o&&n[0].slice(-1);return e?"other":1==t&&i?"one":2==r&&i?"two":i&&(t<0||t>10)&&o&&0==a?"many":"other"},ja:i[0],jbo:i[0],jgo:i[1],ji:i[3],jmc:i[1],jv:i[0],jw:i[0],ka:function(t,e){var n=String(t).split("."),r=n[0],i=r.slice(-2);return e?1==r?"one":0==r||i>=2&&i<=20||40==i||60==i||80==i?"many":"other":1==t?"one":"other"},kab:function(t,e){return e?"other":t>=0&&t<2?"one":"other"},kaj:i[1],kcg:i[1],kde:i[0],kea:i[0],kk:function(t,e){var n=String(t).split("."),r=Number(n[0])==t,i=r&&n[0].slice(-1);return e?6==i||9==i||r&&0==i&&0!=t?"many":"other":1==t?"one":"other"},kkj:i[1],kl:i[1],km:i[0],kn:function(t,e){return e?"other":t>=0&&t<=1?"one":"other"},ko:i[0],ks:i[1],ksb:i[1],ksh:function(t,e){return e?"other":0==t?"zero":1==t?"one":"other"},ku:i[1],kw:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},ky:i[1],lag:function(t,e){var n=String(t).split("."),r=n[0];return e?"other":0==t?"zero":0!=r&&1!=r||0==t?"other":"one"},lb:i[1],lg:i[1],lkt:i[0],ln:i[2],lo:function(t,e){return e&&1==t?"one":"other"},lt:function(t,e){var n=String(t).split("."),r=n[1]||"",i=Number(n[0])==t,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return e?"other":1==o&&(a<11||a>19)?"one":o>=2&&o<=9&&(a<11||a>19)?"few":0!=r?"many":"other"},lv:function(t,e){var n=String(t).split("."),r=n[1]||"",i=r.length,o=Number(n[0])==t,a=o&&n[0].slice(-1),s=o&&n[0].slice(-2),u=r.slice(-2),l=r.slice(-1);return e?"other":o&&0==a||s>=11&&s<=19||2==i&&u>=11&&u<=19?"zero":1==a&&11!=s||2==i&&1==l&&11!=u||2!=i&&1==l?"one":"other";
},mas:i[1],mg:i[2],mgo:i[1],mk:function(t,e){var n=String(t).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=r.slice(-2),u=i.slice(-1);return e?1==a&&11!=s?"one":2==a&&12!=s?"two":7!=a&&8!=a||17==s||18==s?"other":"many":o&&1==a||1==u?"one":"other"},ml:i[1],mn:i[1],mo:function(t,e){var n=String(t).split("."),r=!n[1],i=Number(n[0])==t,o=i&&n[0].slice(-2);return e?1==t?"one":"other":1==t&&r?"one":!r||0==t||1!=t&&o>=1&&o<=19?"few":"other"},mr:function(t,e){return e?1==t?"one":2==t||3==t?"two":4==t?"few":"other":t>=0&&t<=1?"one":"other"},ms:function(t,e){return e&&1==t?"one":"other"},mt:function(t,e){var n=String(t).split("."),r=Number(n[0])==t,i=r&&n[0].slice(-2);return e?"other":1==t?"one":0==t||i>=2&&i<=10?"few":i>=11&&i<=19?"many":"other"},my:i[0],nah:i[1],naq:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},nb:i[1],nd:i[1],ne:function(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?r&&t>=1&&t<=4?"one":"other":1==t?"one":"other"},nl:i[3],nn:i[1],nnh:i[1],no:i[1],nqo:i[0],nr:i[1],nso:i[2],ny:i[1],nyn:i[1],om:i[1],or:i[1],os:i[1],pa:i[2],pap:i[1],pl:function(t,e){var n=String(t).split("."),r=n[0],i=!n[1],o=r.slice(-1),a=r.slice(-2);return e?"other":1==t&&i?"one":i&&o>=2&&o<=4&&(a<12||a>14)?"few":i&&1!=r&&(0==o||1==o)||i&&o>=5&&o<=9||i&&a>=12&&a<=14?"many":"other"},prg:function(t,e){var n=String(t).split("."),r=n[1]||"",i=r.length,o=Number(n[0])==t,a=o&&n[0].slice(-1),s=o&&n[0].slice(-2),u=r.slice(-2),l=r.slice(-1);return e?"other":o&&0==a||s>=11&&s<=19||2==i&&u>=11&&u<=19?"zero":1==a&&11!=s||2==i&&1==l&&11!=u||2!=i&&1==l?"one":"other"},ps:i[1],pt:function(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?"other":r&&t>=0&&t<=2&&2!=t?"one":"other"},"pt-PT":i[3],rm:i[1],ro:function(t,e){var n=String(t).split("."),r=!n[1],i=Number(n[0])==t,o=i&&n[0].slice(-2);return e?1==t?"one":"other":1==t&&r?"one":!r||0==t||1!=t&&o>=1&&o<=19?"few":"other"},rof:i[1],root:i[0],ru:function(t,e){var n=String(t).split("."),r=n[0],i=!n[1],o=r.slice(-1),a=r.slice(-2);return e?"other":i&&1==o&&11!=a?"one":i&&o>=2&&o<=4&&(a<12||a>14)?"few":i&&0==o||i&&o>=5&&o<=9||i&&a>=11&&a<=14?"many":"other"},rwk:i[1],sah:i[0],saq:i[1],sdh:i[1],se:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},seh:i[1],ses:i[0],sg:i[0],sh:function(t,e){var n=String(t).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=r.slice(-2),u=i.slice(-1),l=i.slice(-2);return e?"other":o&&1==a&&11!=s||1==u&&11!=l?"one":o&&a>=2&&a<=4&&(s<12||s>14)||u>=2&&u<=4&&(l<12||l>14)?"few":"other"},shi:function(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?"other":t>=0&&t<=1?"one":r&&t>=2&&t<=10?"few":"other"},si:function(t,e){var n=String(t).split("."),r=n[0],i=n[1]||"";return e?"other":0==t||1==t||0==r&&1==i?"one":"other"},sk:function(t,e){var n=String(t).split("."),r=n[0],i=!n[1];return e?"other":1==t&&i?"one":r>=2&&r<=4&&i?"few":i?"other":"many"},sl:function(t,e){var n=String(t).split("."),r=n[0],i=!n[1],o=r.slice(-2);return e?"other":i&&1==o?"one":i&&2==o?"two":i&&(3==o||4==o)||!i?"few":"other"},sma:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},smi:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},smj:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},smn:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},sms:function(t,e){return e?"other":1==t?"one":2==t?"two":"other"},sn:i[1],so:i[1],sq:function(t,e){var n=String(t).split("."),r=Number(n[0])==t,i=r&&n[0].slice(-1),o=r&&n[0].slice(-2);return e?1==t?"one":4==i&&14!=o?"many":"other":1==t?"one":"other"},sr:function(t,e){var n=String(t).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=r.slice(-2),u=i.slice(-1),l=i.slice(-2);return e?"other":o&&1==a&&11!=s||1==u&&11!=l?"one":o&&a>=2&&a<=4&&(s<12||s>14)||u>=2&&u<=4&&(l<12||l>14)?"few":"other"},ss:i[1],ssy:i[1],st:i[1],sv:function(t,e){var n=String(t).split("."),r=!n[1],i=Number(n[0])==t,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return e?1!=o&&2!=o||11==a||12==a?"other":"one":1==t&&r?"one":"other"},sw:i[3],syr:i[1],ta:i[1],te:i[1],teo:i[1],th:i[0],ti:i[2],tig:i[1],tk:i[1],tl:function(t,e){var n=String(t).split("."),r=n[0],i=n[1]||"",o=!n[1],a=r.slice(-1),s=i.slice(-1);return e?1==t?"one":"other":o&&(1==r||2==r||3==r)||o&&4!=a&&6!=a&&9!=a||!o&&4!=s&&6!=s&&9!=s?"one":"other"},tn:i[1],to:i[0],tr:i[1],ts:i[1],tzm:function(t,e){var n=String(t).split("."),r=Number(n[0])==t;return e?"other":0==t||1==t||r&&t>=11&&t<=99?"one":"other"},ug:i[1],uk:function(t,e){var n=String(t).split("."),r=n[0],i=!n[1],o=Number(n[0])==t,a=o&&n[0].slice(-1),s=o&&n[0].slice(-2),u=r.slice(-1),l=r.slice(-2);return e?3==a&&13!=s?"few":"other":i&&1==u&&11!=l?"one":i&&u>=2&&u<=4&&(l<12||l>14)?"few":i&&0==u||i&&u>=5&&u<=9||i&&l>=11&&l<=14?"many":"other"},ur:i[3],uz:i[1],ve:i[1],vi:function(t,e){return e&&1==t?"one":"other"},vo:i[1],vun:i[1],wa:i[2],wae:i[1],wo:i[0],xh:i[1],xog:i[1],yi:i[3],yo:i[0],zh:i[0],zu:function(t,e){return e?"other":t>=0&&t<=1?"one":"other"}})},{}]},{},[2])(2)}),function(t){"use strict";function e(t,e){return e=e||Error,function(){var n,r,i=2,o=arguments,a=o[0],s="["+(t?t+":":"")+a+"] ",u=o[1];for(s+=u.replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1),n=e+i;return n<o.length?yt(o[n]):t}),s+="\nhttp://errors.angularjs.org/1.5.5/"+(t?t+"/":"")+a,r=i,n="?";r<o.length;r++,n="&")s+=n+"p"+(r-i)+"="+encodeURIComponent(yt(o[r]));return new e(s)}}function n(t){if(null==t||S(t))return!1;if(Br(t)||w(t)||Ir&&t instanceof Ir)return!0;var e="length"in Object(t)&&t.length;return x(e)&&(e>=0&&(e-1 in t||t instanceof Array)||"function"==typeof t.item)}function r(t,e,i){var o,a;if(t)if(k(t))for(o in t)"prototype"==o||"length"==o||"name"==o||t.hasOwnProperty&&!t.hasOwnProperty(o)||e.call(i,t[o],o,t);else if(Br(t)||n(t)){var s="object"!=typeof t;for(o=0,a=t.length;o<a;o++)(s||o in t)&&e.call(i,t[o],o,t)}else if(t.forEach&&t.forEach!==r)t.forEach(e,i,t);else if(b(t))for(o in t)e.call(i,t[o],o,t);else if("function"==typeof t.hasOwnProperty)for(o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t);else for(o in t)Ar.call(t,o)&&e.call(i,t[o],o,t);return t}function i(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 o(t){return function(e,n){t(n,e)}}function a(){return++Vr}function s(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function u(t,e,n){for(var r=t.$$hashKey,i=0,o=e.length;i<o;++i){var a=e[i];if(_(a)||k(a))for(var l=Object.keys(a),c=0,f=l.length;c<f;c++){var h=l[c],p=a[h];n&&_(p)?$(p)?t[h]=new Date(p.valueOf()):C(p)?t[h]=new RegExp(p):p.nodeName?t[h]=p.cloneNode(!0):I(p)?t[h]=p.clone():(_(t[h])||(t[h]=Br(p)?[]:{}),u(t[h],[p],!0)):t[h]=p}}return s(t,r),t}function l(t){return u(t,Rr.call(arguments,1),!1)}function c(t){return u(t,Rr.call(arguments,1),!0)}function f(t){return parseInt(t,10)}function h(t,e){return l(Object.create(t),e)}function p(){}function d(t){return t}function v(t){return function(){return t}}function m(t){return k(t.toString)&&t.toString!==qr}function g(t){return"undefined"==typeof t}function y(t){return"undefined"!=typeof t}function _(t){return null!==t&&"object"==typeof t}function b(t){return null!==t&&"object"==typeof t&&!Hr(t)}function w(t){return"string"==typeof t}function x(t){return"number"==typeof t}function $(t){return"[object Date]"===qr.call(t)}function k(t){return"function"==typeof t}function C(t){return"[object RegExp]"===qr.call(t)}function S(t){return t&&t.window===t}function E(t){return t&&t.$evalAsync&&t.$watch}function T(t){return"[object File]"===qr.call(t)}function A(t){return"[object FormData]"===qr.call(t)}function D(t){return"[object Blob]"===qr.call(t)}function F(t){return"boolean"==typeof t}function O(t){return t&&k(t.then)}function j(t){return t&&x(t.length)&&Yr.test(qr.call(t))}function M(t){return"[object ArrayBuffer]"===qr.call(t)}function I(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function P(t){var e,n={},r=t.split(",");for(e=0;e<r.length;e++)n[r[e]]=!0;return n}function N(t){return Dr(t.nodeName||t[0]&&t[0].nodeName)}function R(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function L(t,e){function n(t,e){var n,r=e.$$hashKey;if(Br(t))for(var o=0,a=t.length;o<a;o++)e.push(i(t[o]));else if(b(t))for(n in t)e[n]=i(t[n]);else if(t&&"function"==typeof t.hasOwnProperty)for(n in t)t.hasOwnProperty(n)&&(e[n]=i(t[n]));else for(n in t)Ar.call(t,n)&&(e[n]=i(t[n]));return s(e,r),e}function i(t){if(!_(t))return t;var e=a.indexOf(t);if(e!==-1)return u[e];if(S(t)||E(t))throw Ur("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,i=o(t);return void 0===i&&(i=Br(t)?[]:Object.create(Hr(t)),r=!0),a.push(t),u.push(i),r?n(t,i):i}function o(t){switch(qr.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(i(t.buffer));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(k(t.cloneNode))return t.cloneNode(!0)}var a=[],u=[];if(e){if(j(e)||M(e))throw Ur("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t===e)throw Ur("cpi","Can't copy! Source and destination are identical.");return Br(e)?e.length=0:r(e,function(t,n){"$$hashKey"!==n&&delete e[n]}),a.push(t),u.push(e),n(t,e)}return i(t)}function z(t,e){if(Br(t)){e=e||[];for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(_(t)){e=e||{};for(var i in t)"$"===i.charAt(0)&&"$"===i.charAt(1)||(e[i]=t[i])}return e||t}function q(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,a=typeof e;if(o==a&&"object"==o){if(!Br(t)){if($(t))return!!$(e)&&q(t.getTime(),e.getTime());if(C(t))return!!C(e)&&t.toString()==e.toString();if(E(t)||E(e)||S(t)||S(e)||Br(e)||$(e)||C(e))return!1;i=vt();for(r in t)if("$"!==r.charAt(0)&&!k(t[r])){if(!q(t[r],e[r]))return!1;i[r]=!0}for(r in e)if(!(r in i)&&"$"!==r.charAt(0)&&y(e[r])&&!k(e[r]))return!1;return!0}if(!Br(e))return!1;if((n=t.length)==e.length){for(r=0;r<n;r++)if(!q(t[r],e[r]))return!1;return!0}}return!1}function H(t,e,n){return t.concat(Rr.call(e,n))}function U(t,e){return Rr.call(t,e||0)}function W(t,e){var n=arguments.length>2?U(arguments,2):[];return!k(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,H(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function V(e,n){var r=n;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?r=void 0:S(n)?r="$WINDOW":n&&t.document===n?r="$DOCUMENT":E(n)&&(r="$SCOPE"),r}function B(t,e){if(!g(t))return x(e)||(e=e?2:null),JSON.stringify(t,V,e)}function Y(t){return w(t)?JSON.parse(t):t}function K(t,e){t=t.replace(Qr,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function G(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function X(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset(),i=K(e,r);return G(t,n*(i-r))}function J(t){t=Ir(t).clone();try{t.empty()}catch(e){}var n=Ir("<div>").append(t).html();try{return t[0].nodeType===ii?Dr(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+Dr(e)})}catch(e){return Dr(n)}}function Q(t){try{return decodeURIComponent(t)}catch(e){}}function Z(t){var e={};return r((t||"").split("&"),function(t){var n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),n=t.indexOf("="),n!==-1&&(r=t.substring(0,n),i=t.substring(n+1)),r=Q(r),y(r)&&(i=!y(i)||Q(i),Ar.call(e,r)?Br(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))}),e}function tt(t){var e=[];return r(t,function(t,n){Br(t)?r(t,function(t){e.push(nt(n,!0)+(t===!0?"":"="+nt(t,!0)))}):e.push(nt(n,!0)+(t===!0?"":"="+nt(t,!0)))}),e.length?e.join("&"):""}function et(t){return nt(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function nt(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":"+")}function rt(t,e){var n,r,i=Zr.length;for(r=0;r<i;++r)if(n=Zr[r]+e,w(n=t.getAttribute(n)))return n;return null}function it(t,e){var n,i,o={};r(Zr,function(e){var r=e+"app";!n&&t.hasAttribute&&t.hasAttribute(r)&&(n=t,i=t.getAttribute(r))}),r(Zr,function(e){var r,o=e+"app";!n&&(r=t.querySelector("["+o.replace(":","\\:")+"]"))&&(n=r,i=r.getAttribute(o))}),n&&(o.strictDi=null!==rt(n,"strict-di"),e(n,i?[i]:[],o))}function ot(e,n,i){_(i)||(i={});var o={strictDi:!1};i=l(o,i);var a=function(){if(e=Ir(e),e.injector()){var r=e[0]===t.document?"document":J(e);throw Ur("btstrpd","App already bootstrapped with this element '{0}'",r.replace(/</,"&lt;").replace(/>/,"&gt;"))}n=n||[],n.unshift(["$provide",function(t){t.value("$rootElement",e)}]),i.debugInfoEnabled&&n.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),n.unshift("ng");var o=ne(n,i.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply(function(){e.data("$injector",r),n(e)(t)})}]),o},s=/^NG_ENABLE_DEBUG_INFO!/,u=/^NG_DEFER_BOOTSTRAP!/;return t&&s.test(t.name)&&(i.debugInfoEnabled=!0,t.name=t.name.replace(s,"")),t&&!u.test(t.name)?a():(t.name=t.name.replace(u,""),Wr.resumeBootstrap=function(t){return r(t,function(t){n.push(t)}),a()},void(k(Wr.resumeDeferredBootstrap)&&Wr.resumeDeferredBootstrap()))}function at(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function st(t){var e=Wr.element(t).injector();if(!e)throw Ur("test","no injector found for element argument to getTestability");return e.get("$$testability")}function ut(t,e){return e=e||"_",t.replace(ti,function(t,n){return(n?e:"")+t.toLowerCase()})}function lt(){var e;if(!ei){var n=Jr();Pr=g(n)?t.jQuery:n?t[n]:void 0,Pr&&Pr.fn.on?(Ir=Pr,l(Pr.fn,{scope:$i.scope,isolateScope:$i.isolateScope,controller:$i.controller,injector:$i.injector,inheritedData:$i.inheritedData}),e=Pr.cleanData,Pr.cleanData=function(t){for(var n,r,i=0;null!=(r=t[i]);i++)n=Pr._data(r,"events"),n&&n.$destroy&&Pr(r).triggerHandler("$destroy");e(t)}):Ir=At,Wr.element=Ir,ei=!0}}function ct(t,e,n){if(!t)throw Ur("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function ft(t,e,n){return n&&Br(t)&&(t=t[t.length-1]),ct(k(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function ht(t,e){if("hasOwnProperty"===t)throw Ur("badname","hasOwnProperty is not a valid {0} name",e)}function pt(t,e,n){if(!e)return t;for(var r,i=e.split("."),o=t,a=i.length,s=0;s<a;s++)r=i[s],t&&(t=(o=t)[r]);return!n&&k(t)?W(o,t):t}function dt(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=Ir(Rr.call(t,0,i))),e.push(n));return e||t}function vt(){return Object.create(null)}function mt(t){function n(t,e,n){return t[e]||(t[e]=n())}var r=e("$injector"),i=e("ng"),o=n(t,"angular",Object);return o.$$minErr=o.$$minErr||e,n(o,"module",function(){var t={};return function(e,o,a){var s=function(t,e){if("hasOwnProperty"===t)throw i("badname","hasOwnProperty is not a valid {0} name",e)};return s(e,"module"),o&&t.hasOwnProperty(e)&&(t[e]=null),n(t,e,function(){function t(t,e,n,r){return r||(r=i),function(){return r[n||"push"]([t,e,arguments]),c}}function n(t,n){return function(r,o){return o&&k(o)&&(o.$$moduleName=e),i.push([t,n,arguments]),c}}if(!o)throw r("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.",e);var i=[],s=[],u=[],l=t("$injector","invoke","push",s),c={_invokeQueue:i,_configBlocks:s,_runBlocks:u,requires:o,name:e,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),decorator:n("$provide","decorator"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:l,run:function(t){return u.push(t),this}};return a&&l(a),c})}})}function gt(t){var e=[];return JSON.stringify(t,function(t,n){if(n=V(t,n),_(n)){if(e.indexOf(n)>=0)return"...";e.push(n)}return n})}function yt(t){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):g(t)?"undefined":"string"!=typeof t?gt(t):t}function _t(n){l(n,{bootstrap:ot,copy:L,extend:l,merge:c,equals:q,element:Ir,forEach:r,injector:ne,noop:p,bind:W,toJson:B,fromJson:Y,identity:d,isUndefined:g,isDefined:y,isString:w,isFunction:k,isObject:_,isNumber:x,isElement:I,isArray:Br,version:ui,isDate:$,lowercase:Dr,uppercase:Fr,callbacks:{counter:0},getTestability:st,$$minErr:e,$$csp:Xr,reloadWithDebugInfo:at}),(Nr=mt(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:$n}),t.provider("$compile",pe).directive({a:Fo,input:Xo,textarea:Xo,form:Po,script:Va,select:Ka,style:Xa,option:Ga,ngBind:Zo,ngBindHtml:ea,ngBindTemplate:ta,ngClass:ra,ngClassEven:oa,ngClassOdd:ia,ngCloak:aa,ngController:sa,ngForm:No,ngHide:Ra,ngIf:ca,ngInclude:fa,ngInit:pa,ngNonBindable:Aa,ngPluralize:ja,ngRepeat:Ma,ngShow:Na,ngStyle:La,ngSwitch:za,ngSwitchWhen:qa,ngSwitchDefault:Ha,ngOptions:Oa,ngTransclude:Wa,ngModel:Sa,ngList:da,ngChange:na,pattern:Qa,ngPattern:Qa,required:Ja,ngRequired:Ja,minlength:ts,ngMinlength:ts,maxlength:Za,ngMaxlength:Za,ngValue:Qo,ngModelOptions:Ta}).directive({ngInclude:ha}).directive(Oo).directive(ua),t.provider({$anchorScroll:re,$animate:Li,$animateCss:Hi,$$animateJs:Ni,$$animateQueue:Ri,$$AnimateRunner:qi,$$animateAsyncRun:zi,$browser:le,$cacheFactory:ce,$controller:_e,$document:be,$exceptionHandler:we,$filter:Nn,$$forceReflow:Ki,$interpolate:Ie,$interval:Pe,$http:Fe,$httpParamSerializer:$e,$httpParamSerializerJQLike:ke,$httpBackend:je,$xhrFactory:Oe,$location:Xe,$log:Je,$parse:gn,$rootScope:xn,$q:yn,$$q:_n,$sce:En,$sceDelegate:Sn,$sniffer:Tn,$templateCache:fe,$templateRequest:An,$$testability:Dn,$timeout:Fn,$window:Mn,$$rAF:wn,$$jqLite:Xt,$$HashMap:Ei,$$cookieReader:Pn})}])}function bt(){return++ci}function wt(t){return t.replace(pi,function(t,e,n,r){return r?n.toUpperCase():n}).replace(di,"Moz$1")}function xt(t){return!yi.test(t)}function $t(t){var e=t.nodeType;return e===ni||!e||e===ai}function kt(t){for(var e in li[t.ng339])return!0;return!1}function Ct(t){for(var e=0,n=t.length;e<n;e++)jt(t[e])}function St(t,e){var n,i,o,a,s=e.createDocumentFragment(),u=[];if(xt(t))u.push(e.createTextNode(t));else{for(n=n||s.appendChild(e.createElement("div")),i=(_i.exec(t)||["",""])[1].toLowerCase(),o=wi[i]||wi._default,n.innerHTML=o[1]+t.replace(bi,"<$1></$2>")+o[2],a=o[0];a--;)n=n.lastChild;u=H(u,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",r(u,function(t){s.appendChild(t)}),s}function Et(e,n){n=n||t.document;var r;return(r=gi.exec(e))?[n.createElement(r[1])]:(r=St(e,n))?r.childNodes:[]}function Tt(t,e){var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)}function At(t){if(t instanceof At)return t;var e;if(w(t)&&(t=Kr(t),e=!0),!(this instanceof At)){if(e&&"<"!=t.charAt(0))throw mi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new At(t)}e?Lt(this,Et(t)):Lt(this,t)}function Dt(t){return t.cloneNode(!0)}function Ft(t,e){if(e||jt(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),r=0,i=n.length;r<i;r++)jt(n[r])}function Ot(t,e,n,i){if(y(i))throw mi("offargs","jqLite#off() does not support the `selector` argument");var o=Mt(t),a=o&&o.events,s=o&&o.handle;if(s)if(e){var u=function(e){var r=a[e];y(n)&&R(r||[],n),y(n)&&r&&r.length>0||(hi(t,e,s),delete a[e])};r(e.split(" "),function(t){u(t),vi[t]&&u(vi[t])})}else for(e in a)"$destroy"!==e&&hi(t,e,s),delete a[e]}function jt(t,e){var n=t.ng339,r=n&&li[n];if(r){if(e)return void delete r.data[e];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),Ot(t)),delete li[n],t.ng339=void 0}}function Mt(t,e){var n=t.ng339,r=n&&li[n];return e&&!r&&(t.ng339=n=bt(),r=li[n]={events:{},data:{},handle:void 0}),r}function It(t,e,n){if($t(t)){var r=y(n),i=!r&&e&&!_(e),o=!e,a=Mt(t,!i),s=a&&a.data;if(r)s[e]=n;else{if(o)return s;if(i)return s&&s[e];l(s,e)}}}function Pt(t,e){return!!t.getAttribute&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1}function Nt(t,e){e&&t.setAttribute&&r(e.split(" "),function(e){t.setAttribute("class",Kr((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Kr(e)+" "," ")))})}function Rt(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(e.split(" "),function(t){t=Kr(t),n.indexOf(" "+t+" ")===-1&&(n+=t+" ")}),t.setAttribute("class",Kr(n))}}function Lt(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 zt(t,e){return qt(t,"$"+(e||"ngController")+"Controller")}function qt(t,e,n){t.nodeType==ai&&(t=t.documentElement);for(var r=Br(e)?e:[e];t;){for(var i=0,o=r.length;i<o;i++)if(y(n=Ir.data(t,r[i])))return n;t=t.parentNode||t.nodeType===si&&t.host}}function Ht(t){for(Ft(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Ut(t,e){e||Ft(t);var n=t.parentNode;n&&n.removeChild(t)}function Wt(e,n){n=n||t,"complete"===n.document.readyState?n.setTimeout(e):Ir(n).on("load",e)}function Vt(t,e){var n=ki[e.toLowerCase()];return n&&Ci[N(t)]&&n}function Bt(t){return Si[t]}function Yt(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(g(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===!0};var s=i.specialHandlerWrapper||Kt;o>1&&(i=z(i));for(var u=0;u<o;u++)n.isImmediatePropagationStopped()||s(t,n,i[u])}};return n.elem=t,n}function Kt(t,e,n){n.call(t,e)}function Gt(t,e,n){var r=e.relatedTarget;r&&(r===t||xi.call(t,r))||n.call(t,e)}function Xt(){this.$get=function(){return l(At,{hasClass:function(t,e){return t.attr&&(t=t[0]),Pt(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),Rt(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),Nt(t,e)}})}}function Jt(t,e){var n=t&&t.$$hashKey;if(n)return"function"==typeof n&&(n=t.$$hashKey()),n;var r=typeof t;return n="function"==r||"object"==r&&null!==t?t.$$hashKey=r+":"+(e||a)():r+":"+t}function Qt(t,e){if(e){var n=0;this.nextUid=function(){return++n}}r(t,this.put,this)}function Zt(t){var e=Function.prototype.toString.call(t).replace(Oi,""),n=e.match(Ti)||e.match(Ai);return n}function te(t){var e=Zt(t);return e?"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function ee(t,e,n){var i,o,a;if("function"==typeof t){if(!(i=t.$inject)){if(i=[],t.length){if(e)throw w(n)&&n||(n=t.name||te(t)),ji("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);o=Zt(t),r(o[1].split(Di),function(t){t.replace(Fi,function(t,e,n){i.push(n)})})}t.$inject=i}}else Br(t)?(a=t.length-1,ft(t[a],"fn"),i=t.slice(0,a)):ft(t,"fn",!0);return i}function ne(t,e){function n(t){return function(e,n){return _(e)?void r(e,o(t)):t(e,n)}}function i(t,e){if(ht(t,"service"),(k(e)||Br(e))&&(e=$.instantiate(e)),!e.$get)throw ji("pget","Provider '{0}' must define $get factory method.",t);return x[t+m]=e}function a(t,e){return function(){var n=E.invoke(e,this);if(g(n))throw ji("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function s(t,e,n){return i(t,{$get:n!==!1?a(t,e):e})}function u(t,e){return s(t,["$injector",function(t){return t.instantiate(e)}])}function l(t,e){return s(t,v(e),!1)}function c(t,e){ht(t,"constant"),x[t]=e,C[t]=e}function f(t,e){var n=$.get(t+m),r=n.$get;n.$get=function(){var t=E.invoke(r,n);return E.invoke(e,null,{$delegate:t})}}function h(t){ct(g(t)||Br(t),"modulesToLoad","not an array");var e,n=[];return r(t,function(t){function r(t){var e,n;for(e=0,n=t.length;e<n;e++){var r=t[e],i=$.get(r[0]);i[r[1]].apply(i,r[2])}}if(!b.get(t)){b.put(t,!0);try{w(t)?(e=Nr(t),n=n.concat(h(e.requires)).concat(e._runBlocks),r(e._invokeQueue),r(e._configBlocks)):k(t)?n.push($.invoke(t)):Br(t)?n.push($.invoke(t)):ft(t,"module")}catch(i){throw Br(t)&&(t=t[t.length-1]),i.message&&i.stack&&i.stack.indexOf(i.message)==-1&&(i=i.message+"\n"+i.stack),ji("modulerr","Failed to instantiate module {0} due to:\n{1}",t,i.stack||i.message||i)}}}),n}function p(t,n){function r(e,r){if(t.hasOwnProperty(e)){if(t[e]===d)throw ji("cdep","Circular dependency found: {0}",e+" <- "+y.join(" <- "));return t[e]}try{return y.unshift(e),t[e]=d,t[e]=n(e,r)}catch(i){throw t[e]===d&&delete t[e],i}finally{y.shift()}}function i(t,n,i){for(var o=[],a=ne.$$annotate(t,e,i),s=0,u=a.length;s<u;s++){var l=a[s];if("string"!=typeof l)throw ji("itkn","Incorrect injection token! Expected service name as string, got {0}",l);o.push(n&&n.hasOwnProperty(l)?n[l]:r(l,i))}return o}function o(t){return!(Mr<=11)&&("function"==typeof t&&/^(?:class\s|constructor\()/.test(Function.prototype.toString.call(t)))}function a(t,e,n,r){"string"==typeof n&&(r=n,n=null);var a=i(t,n,r);return Br(t)&&(t=t[t.length-1]),o(t)?(a.unshift(null),new(Function.prototype.bind.apply(t,a))):t.apply(e,a)}function s(t,e,n){var r=Br(t)?t[t.length-1]:t,o=i(t,e,n);return o.unshift(null),new(Function.prototype.bind.apply(r,o))}return{invoke:a,instantiate:s,get:r,annotate:ne.$$annotate,has:function(e){return x.hasOwnProperty(e+m)||t.hasOwnProperty(e)}}}e=e===!0;var d={},m="Provider",y=[],b=new Qt([],(!0)),x={$provide:{provider:n(i),factory:n(s),service:n(u),value:n(l),constant:n(c),decorator:f}},$=x.$injector=p(x,function(t,e){throw Wr.isString(e)&&y.push(e),ji("unpr","Unknown provider: {0}",y.join(" <- "))}),C={},S=p(C,function(t,e){var n=$.get(t+m,e);return E.invoke(n.$get,n,void 0,t)}),E=S;x["$injector"+m]={$get:v(S)};var T=h(t);return E=S.get("$injector"),E.strictDi=e,r(T,function(t){t&&E.invoke(t)}),E}function re(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(e,n,r){function i(t){var e=null;return Array.prototype.some.call(t,function(t){if("a"===N(t))return e=t,!0}),e}function o(){var t=s.yOffset;if(k(t))t=t();else if(I(t)){var n=t[0],r=e.getComputedStyle(n);t="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else x(t)||(t=0);return t}function a(t){if(t){t.scrollIntoView();var n=o();if(n){var r=t.getBoundingClientRect().top;e.scrollBy(0,r-n)}}else e.scrollTo(0,0)}function s(t){t=w(t)?t:n.hash();var e;t?(e=u.getElementById(t))?a(e):(e=i(u.getElementsByName(t)))?a(e):"top"===t&&a(null):a(null)}var u=e.document;return t&&r.$watch(function(){return n.hash()},function(t,e){t===e&&""===t||Wt(function(){r.$evalAsync(s)})}),s}]}function ie(t,e){return t||e?t?e?(Br(t)&&(t=t.join(" ")),Br(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function oe(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType===Ii)return n}}function ae(t){w(t)&&(t=t.split(" "));var e=vt();return r(t,function(t){t.length&&(e[t]=!0)}),e}function se(t){return _(t)?t:{}}function ue(t,e,n,i){function o(t){try{t.apply(null,U(arguments,1))}finally{if(y--,0===y)for(;_.length;)try{_.pop()()}catch(e){n.error(e)}}}function a(t){var e=t.indexOf("#");return e===-1?"":t.substr(e)}function s(){k=null,u(),l()}function u(){b=C(),b=g(b)?null:b,q(b,T)&&(b=T),T=b}function l(){x===c.url()&&w===b||(x=c.url(),w=b,r(S,function(t){t(c.url(),b)}))}var c=this,f=t.location,h=t.history,d=t.setTimeout,v=t.clearTimeout,m={};c.isMock=!1;var y=0,_=[];c.$$completeOutstandingRequest=o,c.$$incOutstandingRequestCount=function(){y++},c.notifyWhenNoOutstandingRequests=function(t){0===y?t():_.push(t)};var b,w,x=f.href,$=e.find("base"),k=null,C=i.history?function(){try{return h.state}catch(t){}}:p;u(),w=b,c.url=function(e,n,r){if(g(r)&&(r=null),f!==t.location&&(f=t.location),h!==t.history&&(h=t.history),e){var o=w===r;if(x===e&&(!i.history||o))return c;var s=x&&qe(x)===qe(e);return x=e,w=r,!i.history||s&&o?(s&&!k||(k=e),n?f.replace(e):s?f.hash=a(e):f.href=e,f.href!==e&&(k=e)):(h[n?"replaceState":"pushState"](r,"",e),u(),w=b),c}return k||f.href.replace(/%27/g,"'")},c.state=function(){return b};var S=[],E=!1,T=null;c.onUrlChange=function(e){return E||(i.history&&Ir(t).on("popstate",s),Ir(t).on("hashchange",s),E=!0),S.push(e),e},c.$$applicationDestroyed=function(){Ir(t).off("hashchange popstate",s)},c.$$checkUrlChange=l,c.baseHref=function(){var t=$.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""},c.defer=function(t,e){var n;return y++,n=d(function(){delete m[n],o(t)},e||0),m[n]=!0,n},c.defer.cancel=function(t){return!!m[t]&&(delete m[t],v(t),o(p),!0)}}function le(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,r){return new ue(t,r,e,n)}]}function ce(){this.$get=function(){function t(t,r){function i(t){t!=h&&(p?p==t&&(p=t.n):p=t,o(t.n,t.p),o(t,h),h=t,h.n=null)}function o(t,e){t!=e&&(t&&(t.p=e),e&&(e.n=t))}if(t in n)throw e("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var a=0,s=l({},r,{id:t}),u=vt(),c=r&&r.capacity||Number.MAX_VALUE,f=vt(),h=null,p=null;return n[t]={put:function(t,e){if(!g(e)){if(c<Number.MAX_VALUE){var n=f[t]||(f[t]={key:t});i(n)}return t in u||a++,u[t]=e,a>c&&this.remove(p.key),e}},get:function(t){if(c<Number.MAX_VALUE){var e=f[t];if(!e)return;i(e)}return u[t]},remove:function(t){if(c<Number.MAX_VALUE){var e=f[t];if(!e)return;e==h&&(h=e.p),e==p&&(p=e.n),o(e.n,e.p),delete f[t]}t in u&&(delete u[t],a--)},removeAll:function(){u=vt(),a=0,f=vt(),h=p=null},destroy:function(){u=null,s=null,f=null,delete n[t]},info:function(){return l({},s,{size:a})}}}var n={};return t.info=function(){var t={};return r(n,function(e,n){t[n]=e.info()}),t},t.get=function(t){return n[t]},t}}function fe(){this.$get=["$cacheFactory",function(t){return t("templates")}]}function he(){}function pe(e,n){function i(t,e,n){var i=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,o=vt();return r(t,function(t,r){if(t in C)return void(o[r]=C[t]);var a=t.match(i);if(!a)throw Ui("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,r,t,n?"controller bindings definition":"isolate scope definition");o[r]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||r},a[4]&&(C[t]=o[r])}),o}function a(t,e){var n={isolateScope:null,bindToController:null};if(_(t.scope)&&(t.bindToController===!0?(n.bindToController=i(t.scope,e,!0),n.isolateScope={}):n.isolateScope=i(t.scope,e,!1)),_(t.bindToController)&&(n.bindToController=i(t.bindToController,e,!0)),_(n.bindToController)){var r=t.controller,o=t.controllerAs;if(!r)throw Ui("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);if(!ye(r,o))throw Ui("noident","Cannot bind to controller without identifier for directive '{0}'.",e)}return n}function s(t){var e=t.charAt(0);if(!e||e!==Dr(e))throw Ui("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw Ui("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}var u={},c="Directive",f=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,m=/(([\w\-]+)(?:\:([^;]+))?;?)/,b=P("ngSrc,ngSrcset,src,srcset"),x=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,$=/^(on[a-z]+|formaction)$/,C=vt();this.directive=function A(t,n){return ht(t,"directive"),w(t)?(s(t),ct(n,"directiveFactory"),u.hasOwnProperty(t)||(u[t]=[],e.factory(t+c,["$injector","$exceptionHandler",function(e,n){var i=[];return r(u[t],function(r,o){try{var a=e.invoke(r);
k(a)?a={compile:v(a)}:!a.compile&&a.link&&(a.compile=v(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||t,a.require=a.require||a.controller&&a.name,a.restrict=a.restrict||"EA",a.$$moduleName=r.$$moduleName,i.push(a)}catch(s){n(s)}}),i}])),u[t].push(n)):r(t,o(A)),this},this.component=function(t,e){function n(t){function n(e){return k(e)||Br(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}var o=e.template||e.templateUrl?e.template:"",a={controller:i,controllerAs:ye(e.controller)||e.controllerAs||"$ctrl",template:n(o),templateUrl:n(e.templateUrl),transclude:e.transclude,scope:{},bindToController:e.bindings||{},restrict:"E",require:e.require};return r(e,function(t,e){"$"===e.charAt(0)&&(a[e]=t)}),a}var i=e.controller||function(){};return r(e,function(t,e){"$"===e.charAt(0)&&(n[e]=t,k(i)&&(i[e]=t))}),n.$inject=["$injector"],this.directive(t,n)},this.aHrefSanitizationWhitelist=function(t){return y(t)?(n.aHrefSanitizationWhitelist(t),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return y(t)?(n.imgSrcSanitizationWhitelist(t),this):n.imgSrcSanitizationWhitelist()};var S=!0;this.debugInfoEnabled=function(t){return y(t)?(S=t,this):S};var T=10;this.onChangesTtl=function(t){return arguments.length?(T=t,this):T},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(e,n,i,o,s,v,y,C,A,D){function O(){try{if(!--_t)throw mt=void 0,Ui("infchng","{0} $onChanges() iterations reached. Aborting!\n",T);y.$apply(function(){for(var t=0,e=mt.length;t<e;++t)mt[t]();mt=void 0})}finally{_t++}}function j(t,e){if(e){var n,r,i,o=Object.keys(e);for(n=0,r=o.length;n<r;n++)i=o[n],this[i]=e[i]}else this.$attr={};this.$$element=t}function M(t,e,n){yt.innerHTML="<span "+e+">";var r=yt.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}function I(t,e){try{t.addClass(e)}catch(n){}}function P(e,n,r,i,o){e instanceof Ir||(e=Ir(e));for(var a=/\S+/,s=0,u=e.length;s<u;s++){var l=e[s];l.nodeType===ii&&l.nodeValue.match(a)&&Tt(l,e[s]=t.document.createElement("span"))}var c=z(e,n,e,r,i,o);P.$$addScopeClass(e);var f=null;return function(t,n,r){ct(t,"scope"),o&&o.needsNewScope&&(t=t.$parent.$new()),r=r||{};var i=r.parentBoundTranscludeFn,a=r.transcludeControllers,s=r.futureParentElement;i&&i.$$boundTransclude&&(i=i.$$boundTransclude),f||(f=L(s));var u;if(u="html"!==f?Ir(at(f,Ir("<div>").append(e).html())):n?$i.clone.call(e):e,a)for(var l in a)u.data("$"+l+"Controller",a[l].instance);return P.$$addScopeInfo(u,t),n&&n(u,t),c&&c(t,u,u,i),u}}function L(t){var e=t&&t[0];return e&&"foreignobject"!==N(e)&&qr.call(e).match(/SVG/)?"svg":"html"}function z(t,e,n,r,i,o){function a(t,n,r,i){var o,a,s,u,l,c,f,h,v;if(p){var m=n.length;for(v=new Array(m),l=0;l<d.length;l+=3)f=d[l],v[f]=n[f]}else v=n;for(l=0,c=d.length;l<c;)s=v[d[l++]],o=d[l++],a=d[l++],o?(o.scope?(u=t.$new(),P.$$addScopeInfo(Ir(s),u)):u=t,h=o.transcludeOnThisElement?H(t,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&e?H(t,e):null,o(a,u,s,r,h)):a&&a(t,s.childNodes,void 0,i)}for(var s,u,l,c,f,h,p,d=[],v=0;v<t.length;v++)s=new j,u=W(t[v],[],s,0===v?r:void 0,i),l=u.length?K(u,t[v],s,e,n,null,[],[],o):null,l&&l.scope&&P.$$addScopeClass(s.$$element),f=l&&l.terminal||!(c=t[v].childNodes)||!c.length?null:z(c,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:e),(l||f)&&(d.push(v,l,f),h=!0,p=p||l),o=null;return h?a:null}function H(t,e,n){function r(r,i,o,a,s){return r||(r=t.$new(!1,s),r.$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i=r.$$slots=vt();for(var o in e.$$slots)e.$$slots[o]?i[o]=H(t,e.$$slots[o],n):i[o]=null;return r}function W(t,e,n,r,i){var o,a,s=t.nodeType,u=n.$attr;switch(s){case ni:Z(e,ve(N(t)),"E",r,i);for(var l,c,h,p,d,v,g=t.attributes,y=0,b=g&&g.length;y<b;y++){var x=!1,$=!1;l=g[y],c=l.name,d=Kr(l.value),p=ve(c),(v=kt.test(p))&&(c=c.replace(Vi,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()}));var k=p.match(Ct);k&&tt(k[1])&&(x=c,$=c.substr(0,c.length-5)+"end",c=c.substr(0,c.length-6)),h=ve(c.toLowerCase()),u[h]=c,!v&&n.hasOwnProperty(h)||(n[h]=d,Vt(t,h)&&(n[h]=!0)),lt(t,e,d,h,v),Z(e,h,"A",r,i,x,$)}if(a=t.className,_(a)&&(a=a.animVal),w(a)&&""!==a)for(;o=m.exec(a);)h=ve(o[2]),Z(e,h,"C",r,i)&&(n[h]=Kr(o[3])),a=a.substr(o.index+o[0].length);break;case ii:if(11===Mr)for(;t.parentNode&&t.nextSibling&&t.nextSibling.nodeType===ii;)t.nodeValue=t.nodeValue+t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);ot(e,t.nodeValue);break;case oi:try{o=f.exec(t.nodeValue),o&&(h=ve(o[1]),Z(e,h,"M",r,i)&&(n[h]=Kr(o[2])))}catch(C){}}return e.sort(rt),e}function V(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e)){do{if(!t)throw Ui("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);t.nodeType==ni&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0)}else r.push(t);return Ir(r)}function B(t,e,n){return function(r,i,o,a,s){return i=V(i[0],e,n),t(r,i,o,a,s)}}function Y(t,e,n,r,i,o){var a;return t?P(e,n,r,i,o):function(){return a||(a=P(e,n,r,i,o),e=n=o=null),a.apply(this,arguments)}}function K(t,e,n,o,a,s,u,c,f){function h(t,e,n,r){t&&(n&&(t=B(t,n,r)),t.require=d.require,t.directiveName=v,(C===d||d.$$isolateScope)&&(t=ht(t,{isolateScope:!0})),u.push(t)),e&&(n&&(e=B(e,n,r)),e.require=d.require,e.directiveName=v,(C===d||d.$$isolateScope)&&(e=ht(e,{isolateScope:!0})),c.push(e))}function p(t,i,o,a,s){function f(t,e,n,r){var i;if(E(t)||(r=n,n=e,e=t,t=void 0),F&&(i=y),n||(n=F?w.parent():w),!r)return s(t,e,i,n,R);var o=s.$$slots[r];if(o)return o(t,e,i,n,R);if(g(o))throw Ui("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,J(w))}var h,p,d,v,m,y,b,w,T,A;e===o?(T=n,w=n.$$element):(w=Ir(o),T=new j(w,n)),m=i,C?v=i.$new(!0):x&&(m=i.$parent),s&&(b=f,b.$$boundTransclude=s,b.isSlotFilled=function(t){return!!s.$$slots[t]}),$&&(y=X(w,T,b,$,v,i,C)),C&&(P.$$addScopeInfo(w,v,!0,!(S&&(S===C||S===C.$$originalDirective))),P.$$addScopeClass(w,!0),v.$$isolateBindings=C.$$isolateBindings,A=dt(i,T,v,v.$$isolateBindings,C),A.removeWatches&&v.$on("$destroy",A.removeWatches));for(var D in y){var O=$[D],M=y[D],I=O.$$bindings.bindToController;M.identifier&&I?M.bindingInfo=dt(m,T,M.instance,I,O):M.bindingInfo={};var N=M();N!==M.instance&&(M.instance=N,w.data("$"+O.name+"Controller",N),M.bindingInfo.removeWatches&&M.bindingInfo.removeWatches(),M.bindingInfo=dt(m,T,M.instance,I,O))}for(r($,function(t,e){var n=t.require;t.bindToController&&!Br(n)&&_(n)&&l(y[e].instance,G(e,n,w,y))}),r(y,function(t){var e=t.instance;k(e.$onChanges)&&e.$onChanges(t.bindingInfo.initialChanges),k(e.$onInit)&&e.$onInit(),k(e.$onDestroy)&&m.$on("$destroy",function(){e.$onDestroy()})}),h=0,p=u.length;h<p;h++)d=u[h],pt(d,d.isolateScope?v:i,w,T,d.require&&G(d.directiveName,d.require,w,y),b);var R=i;for(C&&(C.template||null===C.templateUrl)&&(R=v),t&&t(R,o.childNodes,void 0,s),h=c.length-1;h>=0;h--)d=c[h],pt(d,d.isolateScope?v:i,w,T,d.require&&G(d.directiveName,d.require,w,y),b);r(y,function(t){var e=t.instance;k(e.$postLink)&&e.$postLink()})}f=f||{};for(var d,v,m,y,b,w=-Number.MAX_VALUE,x=f.newScopeDirective,$=f.controllerDirectives,C=f.newIsolateScopeDirective,S=f.templateDirective,T=f.nonTlbTranscludeDirective,A=!1,D=!1,F=f.hasElementTranscludeDirective,O=n.$$element=Ir(e),M=s,I=o,R=!1,L=!1,z=0,q=t.length;z<q;z++){d=t[z];var H=d.$$start,K=d.$$end;if(H&&(O=V(e,H,K)),m=void 0,w>d.priority)break;if((b=d.scope)&&(d.templateUrl||(_(b)?(it("new/isolated scope",C||x,d,O),C=d):it("new/isolated scope",C,d,O)),x=x||d),v=d.name,!R&&(d.replace&&(d.templateUrl||d.template)||d.transclude&&!d.$$tlb)){for(var Z,tt=z+1;Z=t[tt++];)if(Z.transclude&&!Z.$$tlb||Z.replace&&(Z.templateUrl||Z.template)){L=!0;break}R=!0}if(!d.templateUrl&&d.controller&&(b=d.controller,$=$||vt(),it("'"+v+"' controller",$[v],d,O),$[v]=d),b=d.transclude)if(A=!0,d.$$tlb||(it("transclusion",T,d,O),T=d),"element"==b)F=!0,w=d.priority,m=O,O=n.$$element=Ir(P.$$createComment(v,n[v])),e=O[0],ft(a,U(m),e),m[0].$$parentNode=m[0].parentNode,I=Y(L,m,o,w,M&&M.name,{nonTlbTranscludeDirective:T});else{var rt=vt();if(m=Ir(Dt(e)).contents(),_(b)){m=[];var ot=vt(),st=vt();r(b,function(t,e){var n="?"===t.charAt(0);t=n?t.substring(1):t,ot[t]=e,rt[e]=null,st[e]=n}),r(O.contents(),function(t){var e=ot[ve(N(t))];e?(st[e]=!0,rt[e]=rt[e]||[],rt[e].push(t)):m.push(t)}),r(st,function(t,e){if(!t)throw Ui("reqslot","Required transclusion slot `{0}` was not filled.",e)});for(var ut in rt)rt[ut]&&(rt[ut]=Y(L,rt[ut],o))}O.empty(),I=Y(L,m,o,void 0,void 0,{needsNewScope:d.$$isolateScope||d.$$newScope}),I.$$slots=rt}if(d.template)if(D=!0,it("template",S,d,O),S=d,b=k(d.template)?d.template(O,n):d.template,b=$t(b),d.replace){if(M=d,m=xt(b)?[]:ge(at(d.templateNamespace,Kr(b))),e=m[0],1!=m.length||e.nodeType!==ni)throw Ui("tplrt","Template for directive '{0}' must have exactly one root element. {1}",v,"");ft(a,O,e);var lt={$attr:{}},ct=W(e,[],lt),mt=t.splice(z+1,t.length-(z+1));(C||x)&&Q(ct,C,x),t=t.concat(ct).concat(mt),et(n,lt),q=t.length}else O.html(b);if(d.templateUrl)D=!0,it("template",S,d,O),S=d,d.replace&&(M=d),p=nt(t.splice(z,t.length-z),O,n,a,A&&I,u,c,{controllerDirectives:$,newScopeDirective:x!==d&&x,newIsolateScopeDirective:C,templateDirective:S,nonTlbTranscludeDirective:T}),q=t.length;else if(d.compile)try{y=d.compile(O,n,I),k(y)?h(null,y,H,K):y&&h(y.pre,y.post,H,K)}catch(gt){i(gt,J(O))}d.terminal&&(p.terminal=!0,w=Math.max(w,d.priority))}return p.scope=x&&x.scope===!0,p.transcludeOnThisElement=A,p.templateOnThisElement=D,p.transclude=I,f.hasElementTranscludeDirective=F,p}function G(t,e,n,i){var o;if(w(e)){var a=e.match(x),s=e.substring(a[0].length),u=a[1]||a[3],l="?"===a[2];if("^^"===u?n=n.parent():(o=i&&i[s],o=o&&o.instance),!o){var c="$"+s+"Controller";o=u?n.inheritedData(c):n.data(c)}if(!o&&!l)throw Ui("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,t)}else if(Br(e)){o=[];for(var f=0,h=e.length;f<h;f++)o[f]=G(t,e[f],n,i)}else _(e)&&(o={},r(e,function(e,r){o[r]=G(t,e,n,i)}));return o||null}function X(t,e,n,r,i,o,a){var s=vt();for(var u in r){var l=r[u],c={$scope:l===a||l.$$isolateScope?i:o,$element:t,$attrs:e,$transclude:n},f=l.controller;"@"==f&&(f=e[l.name]);var h=v(f,c,!0,l.controllerAs);s[l.name]=h,t.data("$"+l.name+"Controller",h.instance)}return s}function Q(t,e,n){for(var r=0,i=t.length;r<i;r++)t[r]=h(t[r],{$$isolateScope:e,$$newScope:n})}function Z(t,n,r,o,s,l,f){if(n===s)return null;var p=null;if(u.hasOwnProperty(n))for(var d,v=e.get(n+c),m=0,y=v.length;m<y;m++)try{if(d=v[m],(g(o)||o>d.priority)&&d.restrict.indexOf(r)!=-1){if(l&&(d=h(d,{$$start:l,$$end:f})),!d.$$bindings){var b=d.$$bindings=a(d,d.name);_(b.isolateScope)&&(d.$$isolateBindings=b.isolateScope)}t.push(d),p=d}}catch(w){i(w)}return p}function tt(t){if(u.hasOwnProperty(t))for(var n,r=e.get(t+c),i=0,o=r.length;i<o;i++)if(n=r[i],n.multiElement)return!0;return!1}function et(t,e){var n=e.$attr,i=t.$attr,o=t.$$element;r(t,function(r,i){"$"!=i.charAt(0)&&(e[i]&&e[i]!==r&&(r+=("style"===i?";":" ")+e[i]),t.$set(i,r,!0,n[i]))}),r(e,function(e,r){"class"==r?(I(o,e),t["class"]=(t["class"]?t["class"]+" ":"")+e):"style"==r?(o.attr("style",o.attr("style")+";"+e),t.style=(t.style?t.style+";":"")+e):"$"==r.charAt(0)||t.hasOwnProperty(r)||(t[r]=e,i[r]=n[r])})}function nt(t,e,n,i,a,s,u,l){var c,f,p=[],d=e[0],v=t.shift(),m=h(v,{templateUrl:null,transclude:null,replace:null,$$originalDirective:v}),g=k(v.templateUrl)?v.templateUrl(e,n):v.templateUrl,y=v.templateNamespace;return e.empty(),o(g).then(function(o){var h,b,w,x;if(o=$t(o),v.replace){if(w=xt(o)?[]:ge(at(y,Kr(o))),h=w[0],1!=w.length||h.nodeType!==ni)throw Ui("tplrt","Template for directive '{0}' must have exactly one root element. {1}",v.name,g);b={$attr:{}},ft(i,e,h);var $=W(h,[],b);_(v.scope)&&Q($,!0),t=$.concat(t),et(n,b)}else h=d,e.html(o);for(t.unshift(m),c=K(t,h,n,a,e,v,s,u,l),r(i,function(t,n){t==h&&(i[n]=e[0])}),f=z(e[0].childNodes,a);p.length;){var k=p.shift(),C=p.shift(),S=p.shift(),E=p.shift(),T=e[0];if(!k.$$destroyed){if(C!==d){var A=C.className;l.hasElementTranscludeDirective&&v.replace||(T=Dt(h)),ft(S,Ir(C),T),I(Ir(T),A)}x=c.transcludeOnThisElement?H(k,c.transclude,E):E,c(f,k,T,i,x)}}p=null}),function(t,e,n,r,i){var o=i;e.$$destroyed||(p?p.push(e,n,r,o):(c.transcludeOnThisElement&&(o=H(e,c.transclude,i)),c(f,e,n,r,o)))}}function rt(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 it(t,e,n,r){function i(t){return t?" (module: "+t+")":""}if(e)throw Ui("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,J(r))}function ot(t,e){var r=n(e,!0);r&&t.push({priority:0,compile:function(t){var e=t.parent(),n=!!e.length;return n&&P.$$addBindingClass(e),function(t,e){var i=e.parent();n||P.$$addBindingClass(i),P.$$addBindingInfo(i,r.expressions),t.$watch(r,function(t){e[0].nodeValue=t})}}})}function at(e,n){switch(e=Dr(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 st(t,e){if("srcdoc"==e)return C.HTML;var n=N(t);return"xlinkHref"==e||"form"==n&&"action"==e||"img"!=n&&("src"==e||"ngSrc"==e)?C.RESOURCE_URL:void 0}function lt(t,e,r,i,o){var a=st(t,i);o=b[i]||o;var s=n(r,!0,a,o);if(s){if("multiple"===i&&"select"===N(t))throw Ui("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",J(t));e.push({priority:100,compile:function(){return{pre:function(t,e,u){var l=u.$$observers||(u.$$observers=vt());if($.test(i))throw Ui("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");var c=u[i];c!==r&&(s=c&&n(c,!0,a,o),r=c),s&&(u[i]=s(t),(l[i]||(l[i]=[])).$$inter=!0,(u.$$observers&&u.$$observers[i].$$scope||t).$watch(s,function(t,e){"class"===i&&t!=e?u.$updateClass(t,e):u.$set(i,t)}))}}}})}}function ft(e,n,r){var i,o,a=n[0],s=n.length,u=a.parentNode;if(e)for(i=0,o=e.length;i<o;i++)if(e[i]==a){e[i++]=r;for(var l=i,c=l+s-1,f=e.length;l<f;l++,c++)c<f?e[l]=e[c]:delete e[l];e.length-=s-1,e.context===a&&(e.context=r);break}u&&u.replaceChild(r,a);var h=t.document.createDocumentFragment();for(i=0;i<s;i++)h.appendChild(n[i]);for(Ir.hasData(a)&&(Ir.data(r,Ir.data(a)),Ir(a).off("$destroy")),Ir.cleanData(h.querySelectorAll("*")),i=1;i<s;i++)delete n[i];n[0]=r,n.length=1}function ht(t,e){return l(function(){return t.apply(null,arguments)},t,e)}function pt(t,e,n,r,o,a){try{t(e,n,r,o,a)}catch(s){i(s,J(n))}}function dt(t,e,i,o,a){function u(e,n,r){k(i.$onChanges)&&n!==r&&(mt||(t.$$postDigest(O),mt=[]),c||(c={},mt.push(l)),c[e]&&(r=c[e].previousValue),c[e]=new de(r,n))}function l(){i.$onChanges(c),c=void 0}var c,f=[],h={};return r(o,function(r,o){var l,c,d,v,m,g=r.attrName,y=r.optional,_=r.mode;switch(_){case"@":y||Ar.call(e,g)||(i[o]=e[g]=void 0),e.$observe(g,function(t){if(w(t)||F(t)){var e=i[o];u(o,t,e),i[o]=t}}),e.$$observers[g].$$scope=t,l=e[g],w(l)?i[o]=n(l)(t):F(l)&&(i[o]=l),h[o]=new de(Wi,i[o]);break;case"=":if(!Ar.call(e,g)){if(y)break;e[g]=void 0}if(y&&!e[g])break;c=s(e[g]),v=c.literal?q:function(t,e){return t===e||t!==t&&e!==e},d=c.assign||function(){throw l=i[o]=c(t),Ui("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",e[g],g,a.name)},l=i[o]=c(t);var b=function(e){return v(e,i[o])||(v(e,l)?d(t,e=i[o]):i[o]=e),l=e};b.$stateful=!0,m=r.collection?t.$watchCollection(e[g],b):t.$watch(s(e[g],b),null,c.literal),f.push(m);break;case"<":if(!Ar.call(e,g)){if(y)break;e[g]=void 0}if(y&&!e[g])break;c=s(e[g]),i[o]=c(t),h[o]=new de(Wi,i[o]),m=t.$watch(c,function(t,e){t===e&&(e=i[o]),u(o,t,e),i[o]=t},c.literal),f.push(m);break;case"&":if(c=e.hasOwnProperty(g)?s(e[g]):p,c===p&&y)break;i[o]=function(e){return c(t,e)}}}),{initialChanges:h,removeWatches:f.length&&function(){for(var t=0,e=f.length;t<e;++t)f[t]()}}}var mt,gt=/^\w/,yt=t.document.createElement("div"),_t=T;j.prototype={$normalize:ve,$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=me(t,e);n&&n.length&&A.addClass(this.$$element,n);var r=me(e,t);r&&r.length&&A.removeClass(this.$$element,r)},$set:function(t,e,n,o){var a,s=this.$$element[0],u=Vt(s,t),l=Bt(t),c=t;if(u?(this.$$element.prop(t,e),o=u):l&&(this[l]=e,c=l),this[t]=e,o?this.$attr[t]=o:(o=this.$attr[t],o||(this.$attr[t]=o=ut(t,"-"))),a=N(this.$$element),"a"===a&&("href"===t||"xlinkHref"===t)||"img"===a&&"src"===t)this[t]=e=D(e,"src"===t);else if("img"===a&&"srcset"===t){for(var f="",h=Kr(e),p=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,d=/\s/.test(h)?p:/(,)/,v=h.split(d),m=Math.floor(v.length/2),y=0;y<m;y++){var _=2*y;f+=D(Kr(v[_]),!0),f+=" "+Kr(v[_+1])}var b=Kr(v[2*y]).split(/\s/);f+=D(Kr(b[0]),!0),2===b.length&&(f+=" "+Kr(b[1])),this[t]=e=f}n!==!1&&(null===e||g(e)?this.$$element.removeAttr(o):gt.test(o)?this.$$element.attr(o,e):M(this.$$element[0],o,e));var w=this.$$observers;w&&r(w[c],function(t){try{t(e)}catch(n){i(n)}})},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=vt()),i=r[t]||(r[t]=[]);return i.push(e),y.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(t)||g(n[t])||e(n[t])}),function(){R(i,e)}}};var bt=n.startSymbol(),wt=n.endSymbol(),$t="{{"==bt&&"}}"==wt?d:function(t){return t.replace(/\{\{/g,bt).replace(/}}/g,wt)},kt=/^ngAttr[A-Z]/,Ct=/^(.+)Start$/;return P.$$addBindingInfo=S?function(t,e){var n=t.data("$binding")||[];Br(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:p,P.$$addBindingClass=S?function(t){I(t,"ng-binding")}:p,P.$$addScopeInfo=S?function(t,e,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";t.data(i,e)}:p,P.$$addScopeClass=S?function(t,e){I(t,e?"ng-isolate-scope":"ng-scope")}:p,P.$$createComment=function(e,n){var r="";return S&&(r=" "+(e||"")+": "+(n||"")+" "),t.document.createComment(r)},P}]}function de(t,e){this.previousValue=t,this.currentValue=e}function ve(t){return wt(t.replace(Vi,""))}function me(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 ge(t){t=Ir(t);var e=t.length;if(e<=1)return t;for(;e--;){var n=t[e];n.nodeType===oi&&Lr.call(t,e,1)}return t}function ye(t,e){if(e&&w(e))return e;if(w(t)){var n=Yi.exec(t);if(n)return n[3]}}function _e(){var t={},n=!1;this.has=function(e){return t.hasOwnProperty(e)},this.register=function(e,n){ht(e,"controller"),_(e)?l(t,e):t[e]=n},this.allowGlobals=function(){n=!0},this.$get=["$injector","$window",function(r,i){function o(t,n,r,i){if(!t||!_(t.$scope))throw e("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,n);t.$scope[n]=r}return function(e,a,s,u){var c,f,h,p;if(s=s===!0,u&&w(u)&&(p=u),w(e)){if(f=e.match(Yi),!f)throw Bi("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);h=f[1],p=p||f[3],e=t.hasOwnProperty(h)?t[h]:pt(a.$scope,h,!0)||(n?pt(i,h,!0):void 0),ft(e,h,!0)}if(s){var d=(Br(e)?e[e.length-1]:e).prototype;c=Object.create(d||null),p&&o(a,p,c,h||e.name);var v;return v=l(function(){var t=r.invoke(e,c,a,h);return t!==c&&(_(t)||k(t))&&(c=t,p&&o(a,p,c,h||e.name)),c},{instance:c,identifier:p})}return c=r.instantiate(e,a,h),p&&o(a,p,c,h||e.name),c}}]}function be(){this.$get=["$window",function(t){return Ir(t.document)}]}function we(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}function xe(t){return _(t)?$(t)?t.toISOString():B(t):t}function $e(){this.$get=function(){return function(t){if(!t)return"";var e=[];return i(t,function(t,n){null===t||g(t)||(Br(t)?r(t,function(t){e.push(nt(n)+"="+nt(xe(t)))}):e.push(nt(n)+"="+nt(xe(t))))}),e.join("&")}}}function ke(){this.$get=function(){return function(t){function e(t,o,a){null===t||g(t)||(Br(t)?r(t,function(t,n){e(t,o+"["+(_(t)?n:"")+"]")}):_(t)&&!$(t)?i(t,function(t,n){e(t,o+(a?"":"[")+n+(a?"":"]"))}):n.push(nt(o)+"="+nt(xe(t))))}if(!t)return"";var n=[];return e(t,"",!0),n.join("&")}}}function Ce(t,e){if(w(t)){var n=t.replace(Zi,"").trim();if(n){var r=e("Content-Type");(r&&0===r.indexOf(Gi)||Se(n))&&(t=Y(n))}}return t}function Se(t){var e=t.match(Ji);return e&&Qi[e[0]].test(t)}function Ee(t){function e(t,e){t&&(i[t]=i[t]?i[t]+", "+e:e)}var n,i=vt();return w(t)?r(t.split("\n"),function(t){n=t.indexOf(":"),e(Dr(Kr(t.substr(0,n))),Kr(t.substr(n+1)))}):_(t)&&r(t,function(t,n){e(Dr(n),Kr(t))}),i}function Te(t){var e;return function(n){if(e||(e=Ee(t)),n){var r=e[Dr(n)];return void 0===r&&(r=null),r}return e}}function Ae(t,e,n,i){return k(i)?i(t,e,n):(r(i,function(r){t=r(t,e,n)}),t)}function De(t){return 200<=t&&t<300}function Fe(){var t=this.defaults={transformResponse:[Ce],transformRequest:[function(t){return!_(t)||T(t)||D(t)||A(t)?t:B(t)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:z(Xi),put:z(Xi),patch:z(Xi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},n=!1;this.useApplyAsync=function(t){return y(t)?(n=!!t,this):n};var i=!0;this.useLegacyPromiseExtensions=function(t){return y(t)?(i=!!t,this):i};var o=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(a,s,u,c,f,h){function p(n){function o(t){var e=l({},t);return e.data=Ae(t.data,t.headers,t.status,u.transformResponse),De(t.status)?e:f.reject(e)}function a(t,e){var n,i={};return r(t,function(t,r){k(t)?(n=t(e),null!=n&&(i[r]=n)):i[r]=t}),i}function s(e){var n,r,i,o=t.headers,s=l({},e.headers);o=l({},o.common,o[Dr(e.method)]);t:for(n in o){r=Dr(n);for(i in s)if(Dr(i)===r)continue t;s[n]=o[n]}return a(s,z(e))}if(!_(n))throw e("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!w(n.url))throw e("$http")("badreq","Http request configuration url must be a string. Received: {0}",n.url);var u=l({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},n);u.headers=s(n),u.method=Fr(u.method),u.paramSerializer=w(u.paramSerializer)?h.get(u.paramSerializer):u.paramSerializer;var c=function(e){var n=e.headers,i=Ae(e.data,Te(n),void 0,e.transformRequest);return g(i)&&r(n,function(t,e){"content-type"===Dr(e)&&delete n[e]}),g(e.withCredentials)&&!g(t.withCredentials)&&(e.withCredentials=t.withCredentials),m(e,i).then(o,o)},p=[c,void 0],d=f.when(u);for(r($,function(t){(t.request||t.requestError)&&p.unshift(t.request,t.requestError),(t.response||t.responseError)&&p.push(t.response,t.responseError)});p.length;){var v=p.shift(),y=p.shift();d=d.then(v,y)}return i?(d.success=function(t){return ft(t,"fn"),d.then(function(e){t(e.data,e.status,e.headers,u)}),d},d.error=function(t){return ft(t,"fn"),d.then(null,function(e){t(e.data,e.status,e.headers,u)}),d}):(d.success=eo("success"),d.error=eo("error")),d}function d(t){r(arguments,function(t){p[t]=function(e,n){return p(l({},n||{},{method:t,url:e}))}})}function v(t){r(arguments,function(t){p[t]=function(e,n,r){return p(l({},r||{},{method:t,url:e,data:n}))}})}function m(e,i){function o(t){if(t){var e={};return r(t,function(t,r){e[r]=function(e){function r(){t(e)}n?c.$applyAsync(r):c.$$phase?r():c.$apply(r)}}),e}}function u(t,e,r,i){function o(){l(e,t,r,i)}v&&(De(t)?v.put(C,[t,e,Ee(r),i]):v.remove(C)),n?c.$applyAsync(o):(o(),c.$$phase||c.$apply())}function l(t,n,r,i){n=n>=-1?n:0,(De(n)?w.resolve:w.reject)({data:t,status:n,headers:Te(r),config:e,statusText:i})}function h(t){l(t.data,t.status,z(t.headers()),t.statusText)}function d(){var t=p.pendingRequests.indexOf(e);t!==-1&&p.pendingRequests.splice(t,1)}var v,m,w=f.defer(),$=w.promise,k=e.headers,C=b(e.url,e.paramSerializer(e.params));if(p.pendingRequests.push(e),$.then(d,d),!e.cache&&!t.cache||e.cache===!1||"GET"!==e.method&&"JSONP"!==e.method||(v=_(e.cache)?e.cache:_(t.cache)?t.cache:x),v&&(m=v.get(C),y(m)?O(m)?m.then(h,h):Br(m)?l(m[1],m[0],z(m[2]),m[3]):l(m,200,{},"OK"):v.put(C,$)),g(m)){var S=jn(e.url)?s()[e.xsrfCookieName||t.xsrfCookieName]:void 0;S&&(k[e.xsrfHeaderName||t.xsrfHeaderName]=S),a(e.method,C,i,u,k,e.timeout,e.withCredentials,e.responseType,o(e.eventHandlers),o(e.uploadEventHandlers))}return $}function b(t,e){return e.length>0&&(t+=(t.indexOf("?")==-1?"?":"&")+e),t}var x=u("$http");t.paramSerializer=w(t.paramSerializer)?h.get(t.paramSerializer):t.paramSerializer;var $=[];return r(o,function(t){$.unshift(w(t)?h.get(t):h.invoke(t))}),p.pendingRequests=[],d("get","delete","head","jsonp"),v("post","put","patch"),p.defaults=t,p}]}function Oe(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function je(){this.$get=["$browser","$window","$document","$xhrFactory",function(t,e,n,r){return Me(t,r,t.defer,e.angular.callbacks,n[0])}]}function Me(t,e,n,i,o){function a(t,e,n){var r=o.createElement("script"),a=null;return r.type="text/javascript",r.src=t,r.async=!0,a=function(t){hi(r,"load",a),hi(r,"error",a),o.body.removeChild(r),r=null;var s=-1,u="unknown";t&&("load"!==t.type||i[e].called||(t={type:"error"}),u=t.type,s="error"===t.type?404:200),n&&n(s,u)},fi(r,"load",a),fi(r,"error",a),o.body.appendChild(r),a}return function(o,s,u,l,c,f,h,d,v,m){function _(){x&&x(),$&&$.abort()}function b(e,r,i,o,a){y(S)&&n.cancel(S),x=$=null,e(r,i,o,a),t.$$completeOutstandingRequest(p)}if(t.$$incOutstandingRequestCount(),s=s||t.url(),"jsonp"==Dr(o)){var w="_"+(i.counter++).toString(36);i[w]=function(t){i[w].data=t,i[w].called=!0};var x=a(s.replace("JSON_CALLBACK","angular.callbacks."+w),w,function(t,e){b(l,t,i[w].data,"",e),i[w]=p})}else{var $=e(o,s);$.open(o,s,!0),r(c,function(t,e){y(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"==On(s).protocol?404:0),b(l,n,e,$.getAllResponseHeaders(),t)};var k=function(){b(l,-1,null,null,"")};if($.onerror=k,$.onabort=k,r(v,function(t,e){$.addEventListener(e,t)}),r(m,function(t,e){$.upload.addEventListener(e,t)}),h&&($.withCredentials=!0),d)try{$.responseType=d}catch(C){if("json"!==d)throw C}$.send(g(u)?null:u)}if(f>0)var S=n(_,f);else O(f)&&f.then(_)}}function Ie(){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){function o(t){return"\\\\\\"+t}function a(n){return n.replace(p,t).replace(d,e)}function s(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=B(t)}return t}function u(t,e,n,r){var i;return i=t.$watch(function(t){return i(),r(t)},e,n)}function c(o,c,p,d){function m(t){try{return t=O(t),d&&!y(t)?t:s(t)}catch(e){r(no.interr(o,e))}}if(!o.length||o.indexOf(t)===-1){var _;if(!c){var b=a(o);_=v(b),_.exp=o,_.expressions=[],_.$$watchDelegate=u}return _}d=!!d;for(var w,x,$,C=0,S=[],E=[],T=o.length,A=[],D=[];C<T;){if((w=o.indexOf(t,C))==-1||(x=o.indexOf(e,w+f))==-1){C!==T&&A.push(a(o.substring(C)));break}C!==w&&A.push(a(o.substring(C,w))),$=o.substring(w+f,x),S.push($),E.push(n($,m)),C=x+h,D.push(A.length),A.push("")}if(p&&A.length>1&&no.throwNoconcat(o),!c||S.length){var F=function(t){for(var e=0,n=S.length;e<n;e++){if(d&&g(t[e]))return;A[D[e]]=t[e]}return A.join("")},O=function(t){return p?i.getTrusted(p,t):i.valueOf(t)};return l(function(t){var e=0,n=S.length,i=new Array(n);try{for(;e<n;e++)i[e]=E[e](t);return F(i)}catch(a){r(no.interr(o,a))}},{exp:o,expressions:S,$$watchDelegate:function(t,e){var n;return t.$watchGroup(E,function(r,i){var o=F(r);k(e)&&e.call(this,o,r!==i?n:o,t),n=o})}})}}var f=t.length,h=e.length,p=new RegExp(t.replace(/./g,o),"g"),d=new RegExp(e.replace(/./g,o),"g");return c.startSymbol=function(){return t},c.endSymbol=function(){return e},c}]}function Pe(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(t,e,n,r,i){function o(o,s,u,l){function c(){f?o.apply(null,h):o(v)}var f=arguments.length>4,h=f?U(arguments,4):[],p=e.setInterval,d=e.clearInterval,v=0,m=y(l)&&!l,g=(m?r:n).defer(),_=g.promise;return u=y(u)?u:0,_.$$intervalId=p(function(){m?i.defer(c):t.$evalAsync(c),g.notify(v++),u>0&&v>=u&&(g.resolve(v),d(_.$$intervalId),delete a[_.$$intervalId]),m||t.$apply()},s),a[_.$$intervalId]=g,_}var a={};return o.cancel=function(t){return!!(t&&t.$$intervalId in a)&&(a[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete a[t.$$intervalId],!0)},o}]}function Ne(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=et(e[n]);return e.join("/")}function Re(t,e){var n=On(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=f(n.port)||io[n.protocol]||null}function Le(t,e){var n="/"!==t.charAt(0);n&&(t="/"+t);var r=On(t);e.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=Z(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function ze(t,e){if(0===e.indexOf(t))return e.substr(t.length)}function qe(t){var e=t.indexOf("#");return e==-1?t:t.substr(0,e)}function He(t){return t.replace(/(#.+)|#$/,"$1")}function Ue(t){return t.substr(0,qe(t).lastIndexOf("/")+1)}function We(t){return t.substring(0,t.indexOf("/",t.indexOf("//")+2))}function Ve(t,e,n){this.$$html5=!0,n=n||"",Re(t,this),this.$$parse=function(t){var n=ze(e,t);if(!w(n))throw oo("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);Le(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=tt(this.$$search),n=this.$$hash?"#"+et(this.$$hash):"";this.$$url=Ne(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a,s;return y(o=ze(t,r))?(a=o,s=y(o=ze(n,o))?e+(ze("/",o)||o):t+a):y(o=ze(e,r))?s=e+o:e==r+"/"&&(s=e),s&&this.$$parse(s),!!s}}function Be(t,e,n){Re(t,this),this.$$parse=function(r){function i(t,e,n){var r,i=/^\/[A-Z]:(\/.*)/;return 0===e.indexOf(n)&&(e=e.replace(n,"")),i.exec(e)?t:(r=i.exec(t),r?r[1]:t)}var o,a=ze(t,r)||ze(e,r);g(a)||"#"!==a.charAt(0)?this.$$html5?o=a:(o="",g(a)&&(t=r,this.replace())):(o=ze(n,a),g(o)&&(o=a)),Le(o,this),this.$$path=i(this.$$path,o,t),this.$$compose()},this.$$compose=function(){var e=tt(this.$$search),r=this.$$hash?"#"+et(this.$$hash):"";this.$$url=Ne(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(e,n){return qe(t)==qe(e)&&(this.$$parse(e),!0)}}function Ye(t,e,n){this.$$html5=!0,Be.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return t==qe(r)?o=r:(a=ze(e,r))?o=t+n+a:e===r+"/"&&(o=e),o&&this.$$parse(o),!!o},this.$$compose=function(){var e=tt(this.$$search),r=this.$$hash?"#"+et(this.$$hash):"";this.$$url=Ne(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+n+this.$$url}}function Ke(t){return function(){return this[t]}}function Ge(t,e){return function(n){return g(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function Xe(){var t="",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return y(e)?(t=e,this):t},this.html5Mode=function(t){return F(t)?(e.enabled=t,this):_(t)?(F(t.enabled)&&(e.enabled=t.enabled),F(t.requireBase)&&(e.requireBase=t.requireBase),F(t.rewriteLinks)&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function s(t,e,n){var i=l.url(),o=l.$$state;try{r.url(t,e,n),l.$$state=r.state()}catch(a){throw l.url(i),l.$$state=o,a}}function u(t,e){n.$broadcast("$locationChangeSuccess",l.absUrl(),t,l.$$state,e)}var l,c,f,h=r.baseHref(),p=r.url();if(e.enabled){if(!h&&e.requireBase)throw oo("nobase","$location in HTML5 mode requires a <base> tag to be present!");
f=We(p)+(h||"/"),c=i.history?Ve:Ye}else f=qe(p),c=Be;var d=Ue(f);l=new c(f,d,"#"+t),l.$$parseLinkUrl(p,p),l.$$state=r.state();var v=/^\s*(javascript|mailto):/i;o.on("click",function(t){if(e.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var i=Ir(t.target);"a"!==N(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var s=i.prop("href"),u=i.attr("href")||i.attr("xlink:href");_(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=On(s.animVal).href),v.test(s)||!s||i.attr("target")||t.isDefaultPrevented()||l.$$parseLinkUrl(s,u)&&(t.preventDefault(),l.absUrl()!=r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}),He(l.absUrl())!=He(p)&&r.url(l.absUrl(),!0);var m=!0;return r.onUrlChange(function(t,e){return g(ze(d,t))?void(a.location.href=t):(n.$evalAsync(function(){var r,i=l.absUrl(),o=l.$$state;t=He(t),l.$$parse(t),l.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,o).defaultPrevented,l.absUrl()===t&&(r?(l.$$parse(i),l.$$state=o,s(i,!1,o)):(m=!1,u(i,o)))}),void(n.$$phase||n.$digest()))}),n.$watch(function(){var t=He(r.url()),e=He(l.absUrl()),o=r.state(),a=l.$$replace,c=t!==e||l.$$html5&&i.history&&o!==l.$$state;(m||c)&&(m=!1,n.$evalAsync(function(){var e=l.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,l.$$state,o).defaultPrevented;l.absUrl()===e&&(r?(l.$$parse(t),l.$$state=o):(c&&s(e,a,o===l.$$state?null:l.$$state),u(t,o)))})),l.$$replace=!1}),l}]}function Je(){var t=!0,e=this;this.debugEnabled=function(e){return y(e)?(t=e,this):t},this.$get=["$window",function(n){function i(t){return t instanceof Error&&(t.stack?t=t.message&&t.stack.indexOf(t.message)===-1?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function o(t){var e=n.console||{},o=e[t]||e.log||p,a=!1;try{a=!!o.apply}catch(s){}return a?function(){var t=[];return r(arguments,function(e){t.push(i(e))}),o.apply(e,t)}:function(t,e){o(t,null==e?"":e)}}return{log:o("log"),info:o("info"),warn:o("warn"),error:o("error"),debug:function(){var n=o("debug");return function(){t&&n.apply(e,arguments)}}()}}]}function Qe(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw so("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",e);return t}function Ze(t){return t+""}function tn(t,e){if(t){if(t.constructor===t)throw so("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t.window===t)throw so("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw so("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",e);if(t===Object)throw so("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",e)}return t}function en(t,e){if(t){if(t.constructor===t)throw so("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t===uo||t===lo||t===co)throw so("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",e)}}function nn(t,e){if(t&&(t===(0).constructor||t===(!1).constructor||t==="".constructor||t==={}.constructor||t===[].constructor||t===Function.constructor))throw so("isecaf","Assigning to a constructor is disallowed! Expression: {0}",e)}function rn(t,e){return"undefined"!=typeof t?t:e}function on(t,e){return"undefined"==typeof t?e:"undefined"==typeof e?t:t+e}function an(t,e){var n=t(e);return!n.$stateful}function sn(t,e){var n,i;switch(t.type){case vo.Program:n=!0,r(t.body,function(t){sn(t.expression,e),n=n&&t.expression.constant}),t.constant=n;break;case vo.Literal:t.constant=!0,t.toWatch=[];break;case vo.UnaryExpression:sn(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case vo.BinaryExpression:sn(t.left,e),sn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case vo.LogicalExpression:sn(t.left,e),sn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case vo.ConditionalExpression:sn(t.test,e),sn(t.alternate,e),sn(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case vo.Identifier:t.constant=!1,t.toWatch=[t];break;case vo.MemberExpression:sn(t.object,e),t.computed&&sn(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case vo.CallExpression:n=!!t.filter&&an(e,t.callee.name),i=[],r(t.arguments,function(t){sn(t,e),n=n&&t.constant,t.constant||i.push.apply(i,t.toWatch)}),t.constant=n,t.toWatch=t.filter&&an(e,t.callee.name)?i:[t];break;case vo.AssignmentExpression:sn(t.left,e),sn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case vo.ArrayExpression:n=!0,i=[],r(t.elements,function(t){sn(t,e),n=n&&t.constant,t.constant||i.push.apply(i,t.toWatch)}),t.constant=n,t.toWatch=i;break;case vo.ObjectExpression:n=!0,i=[],r(t.properties,function(t){sn(t.value,e),n=n&&t.value.constant,t.value.constant||i.push.apply(i,t.value.toWatch)}),t.constant=n,t.toWatch=i;break;case vo.ThisExpression:t.constant=!1,t.toWatch=[];break;case vo.LocalsExpression:t.constant=!1,t.toWatch=[]}}function un(t){if(1==t.length){var e=t[0].expression,n=e.toWatch;return 1!==n.length?n:n[0]!==e?n:void 0}}function ln(t){return t.type===vo.Identifier||t.type===vo.MemberExpression}function cn(t){if(1===t.body.length&&ln(t.body[0].expression))return{type:vo.AssignmentExpression,left:t.body[0].expression,right:{type:vo.NGValueParameter},operator:"="}}function fn(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===vo.Literal||t.body[0].expression.type===vo.ArrayExpression||t.body[0].expression.type===vo.ObjectExpression)}function hn(t){return t.constant}function pn(t,e){this.astBuilder=t,this.$filter=e}function dn(t,e){this.astBuilder=t,this.$filter=e}function vn(t){return"constructor"==t}function mn(t){return k(t.valueOf)?t.valueOf():go.call(t)}function gn(){var t,e,n=vt(),i=vt(),o={"true":!0,"false":!1,"null":null,undefined:void 0};this.addLiteral=function(t,e){o[t]=e},this.setIdentifierFns=function(n,r){return t=n,e=r,this},this.$get=["$filter",function(a){function s(t,e,r){var o,s,l;switch(r=r||b,typeof t){case"string":t=t.trim(),l=t;var m=r?i:n;if(o=m[l],!o){":"===t.charAt(0)&&":"===t.charAt(1)&&(s=!0,t=t.substring(2));var y=r?_:g,w=new po(y),x=new mo(w,a,y);o=x.parse(t),o.constant?o.$$watchDelegate=d:s?o.$$watchDelegate=o.literal?h:f:o.inputs&&(o.$$watchDelegate=c),r&&(o=u(o)),m[l]=o}return v(o,e);case"function":return v(t,e);default:return v(p,e)}}function u(t){function e(e,n,r,i){var o=b;b=!0;try{return t(e,n,r,i)}finally{b=o}}if(!t)return t;e.$$watchDelegate=t.$$watchDelegate,e.assign=u(t.assign),e.constant=t.constant,e.literal=t.literal;for(var n=0;t.inputs&&n<t.inputs.length;++n)t.inputs[n]=u(t.inputs[n]);return e.inputs=t.inputs,e}function l(t,e){return null==t||null==e?t===e:("object"!=typeof t||(t=mn(t),"object"!=typeof t))&&(t===e||t!==t&&e!==e)}function c(t,e,n,r,i){var o,a=r.inputs;if(1===a.length){var s=l;return a=a[0],t.$watch(function(t){var e=a(t);return l(e,s)||(o=r(t,void 0,void 0,[e]),s=e&&mn(e)),o},e,n,i)}for(var u=[],c=[],f=0,h=a.length;f<h;f++)u[f]=l,c[f]=null;return t.$watch(function(t){for(var e=!1,n=0,i=a.length;n<i;n++){var s=a[n](t);(e||(e=!l(s,u[n])))&&(c[n]=s,u[n]=s&&mn(s))}return e&&(o=r(t,void 0,void 0,c)),o},e,n,i)}function f(t,e,n,r){var i,o;return i=t.$watch(function(t){return r(t)},function(t,n,r){o=t,k(e)&&e.apply(this,arguments),y(t)&&r.$$postDigest(function(){y(o)&&i()})},n)}function h(t,e,n,i){function o(t){var e=!0;return r(t,function(t){y(t)||(e=!1)}),e}var a,s;return a=t.$watch(function(t){return i(t)},function(t,n,r){s=t,k(e)&&e.call(this,t,n,r),o(t)&&r.$$postDigest(function(){o(s)&&a()})},n)}function d(t,e,n,r){var i;return i=t.$watch(function(t){return i(),r(t)},e,n)}function v(t,e){if(!e)return t;var n=t.$$watchDelegate,r=!1,i=n!==h&&n!==f,o=i?function(n,i,o,a){var s=r&&a?a[0]:t(n,i,o,a);return e(s,n,i)}:function(n,r,i,o){var a=t(n,r,i,o),s=e(a,n,r);return y(a)?s:a};return t.$$watchDelegate&&t.$$watchDelegate!==c?o.$$watchDelegate=t.$$watchDelegate:e.$stateful||(o.$$watchDelegate=c,r=!t.inputs,o.inputs=t.inputs?t.inputs:[t]),o}var m=Xr().noUnsafeEval,g={csp:m,expensiveChecks:!1,literals:L(o),isIdentifierStart:k(t)&&t,isIdentifierContinue:k(e)&&e},_={csp:m,expensiveChecks:!0,literals:L(o),isIdentifierStart:k(t)&&t,isIdentifierContinue:k(e)&&e},b=!1;return s.$$runningExpensiveChecks=function(){return b},s}]}function yn(){this.$get=["$rootScope","$exceptionHandler",function(t,e){return bn(function(e){t.$evalAsync(e)},e)}]}function _n(){this.$get=["$browser","$exceptionHandler",function(t,e){return bn(function(e){t.defer(e)},e)}]}function bn(t,n){function i(){this.$$state={status:0}}function o(t,e){return function(n){e.call(t,n)}}function a(t){var e,r,i;i=t.pending,t.processScheduled=!1,t.pending=void 0;for(var o=0,a=i.length;o<a;++o){r=i[o][0],e=i[o][t.status];try{k(e)?r.resolve(e(t.value)):1===t.status?r.resolve(t.value):r.reject(t.value)}catch(s){r.reject(s),n(s)}}}function s(e){!e.processScheduled&&e.pending&&(e.processScheduled=!0,t(function(){a(e)}))}function u(){this.promise=new i}function c(t){var e=new u,n=0,i=Br(t)?[]:{};return r(t,function(t,r){n++,m(t).then(function(t){i.hasOwnProperty(r)||(i[r]=t,--n||e.resolve(i))},function(t){i.hasOwnProperty(r)||e.reject(t)})}),0===n&&e.resolve(i),e.promise}var f=e("$q",TypeError),h=function(){var t=new u;return t.resolve=o(t,t.resolve),t.reject=o(t,t.reject),t.notify=o(t,t.notify),t};l(i.prototype,{then:function(t,e,n){if(g(t)&&g(e)&&g(n))return this;var r=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),this.$$state.status>0&&s(this.$$state),r.promise},"catch":function(t){return this.then(null,t)},"finally":function(t,e){return this.then(function(e){return v(e,!0,t)},function(e){return v(e,!1,t)},e)}}),l(u.prototype,{resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(f("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):this.$$resolve(t))},$$resolve:function(t){function e(t){u||(u=!0,a.$$resolve(t))}function r(t){u||(u=!0,a.$$reject(t))}var i,a=this,u=!1;try{(_(t)||k(t))&&(i=t&&t.then),k(i)?(this.promise.$$state.status=-1,i.call(t,e,r,o(this,this.notify))):(this.promise.$$state.value=t,this.promise.$$state.status=1,s(this.promise.$$state))}catch(l){r(l),n(l)}},reject:function(t){this.promise.$$state.status||this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t,this.promise.$$state.status=2,s(this.promise.$$state)},notify:function(e){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&t(function(){for(var t,i,o=0,a=r.length;o<a;o++){i=r[o][0],t=r[o][3];try{i.notify(k(t)?t(e):e)}catch(s){n(s)}}})}});var p=function(t){var e=new u;return e.reject(t),e.promise},d=function(t,e){var n=new u;return e?n.resolve(t):n.reject(t),n.promise},v=function(t,e,n){var r=null;try{k(n)&&(r=n())}catch(i){return d(i,!1)}return O(r)?r.then(function(){return d(t,e)},function(t){return d(t,!1)}):d(t,e)},m=function(t,e,n,r){var i=new u;return i.resolve(t),i.promise.then(e,n,r)},y=m,b=function(t){function e(t){r.resolve(t)}function n(t){r.reject(t)}if(!k(t))throw f("norslvr","Expected resolverFn, got '{0}'",t);var r=new u;return t(e,n),r.promise};return b.prototype=i.prototype,b.defer=h,b.reject=p,b.when=m,b.resolve=y,b.all=c,b}function wn(){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 xn(){function t(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=a(),this.$$ChildScope=null}return e.prototype=t,e}var i=10,o=e("$rootScope"),s=null,u=null;this.digestTtl=function(t){return arguments.length&&(i=t),i},this.$get=["$exceptionHandler","$parse","$browser",function(e,l,c){function f(t){t.currentScope.$$destroyed=!0}function h(t){9===Mr&&(t.$$childHead&&h(t.$$childHead),t.$$nextSibling&&h(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}function d(){this.$id=a(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function v(t){if(C.$$phase)throw o("inprog","{0} already in progress",C.$$phase);C.$$phase=t}function m(){C.$$phase=null}function y(t,e){do t.$$watchersCount+=e;while(t=t.$parent)}function b(t,e,n){do t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n];while(t=t.$parent)}function w(){}function x(){for(;T.length;)try{T.shift()()}catch(t){e(t)}u=null}function $(){null===u&&(u=c.defer(function(){C.$apply(x)}))}d.prototype={constructor:d,$new:function(e,n){var r;return n=n||this,e?(r=new d,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=t(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(e||n!=this)&&r.$on("$destroy",f),r},$watch:function(t,e,n,r){var i=l(t);if(i.$$watchDelegate)return i.$$watchDelegate(this,e,n,i,t);var o=this,a=o.$$watchers,u={fn:e,last:w,get:i,exp:r||t,eq:!!n};return s=null,k(e)||(u.fn=p),a||(a=o.$$watchers=[]),a.unshift(u),y(this,1),function(){R(a,u)>=0&&y(o,-1),s=null}},$watchGroup:function(t,e){function n(){u=!1,l?(l=!1,e(o,o,s)):e(o,i,s)}var i=new Array(t.length),o=new Array(t.length),a=[],s=this,u=!1,l=!0;if(!t.length){var c=!0;return s.$evalAsync(function(){c&&e(o,o,s)}),function(){c=!1}}return 1===t.length?this.$watch(t[0],function(t,n,r){o[0]=t,i[0]=n,e(o,t===n?o:i,r)}):(r(t,function(t,e){var r=s.$watch(t,function(t,r){o[e]=t,i[e]=r,u||(u=!0,s.$evalAsync(n))});a.push(r)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(t,e){function r(t){o=t;var e,r,i,s,u;if(!g(o)){if(_(o))if(n(o)){a!==p&&(a=p,m=a.length=0,f++),e=o.length,m!==e&&(f++,a.length=m=e);for(var l=0;l<e;l++)u=a[l],s=o[l],i=u!==u&&s!==s,i||u===s||(f++,a[l]=s)}else{a!==d&&(a=d={},m=0,f++),e=0;for(r in o)Ar.call(o,r)&&(e++,s=o[r],u=a[r],r in a?(i=u!==u&&s!==s,i||u===s||(f++,a[r]=s)):(m++,a[r]=s,f++));if(m>e){f++;for(r in a)Ar.call(o,r)||(m--,delete a[r])}}else a!==o&&(a=o,f++);return f}}function i(){if(v?(v=!1,e(o,o,u)):e(o,s,u),c)if(_(o))if(n(o)){s=new Array(o.length);for(var t=0;t<o.length;t++)s[t]=o[t]}else{s={};for(var r in o)Ar.call(o,r)&&(s[r]=o[r])}else s=o}r.$stateful=!0;var o,a,s,u=this,c=e.length>1,f=0,h=l(t,r),p=[],d={},v=!0,m=0;return this.$watch(h,i)},$digest:function(){var t,n,r,a,l,f,h,p,d,g,y,_,b=i,$=this,T=[];v("$digest"),c.$$checkUrlChange(),this===C&&null!==u&&(c.defer.cancel(u),x()),s=null;do{for(p=!1,g=$;S.length;){try{_=S.shift(),_.scope.$eval(_.expression,_.locals)}catch(A){e(A)}s=null}t:do{if(f=g.$$watchers)for(h=f.length;h--;)try{if(t=f[h])if(l=t.get,(n=l(g))===(r=t.last)||(t.eq?q(n,r):"number"==typeof n&&"number"==typeof r&&isNaN(n)&&isNaN(r))){if(t===s){p=!1;break t}}else p=!0,s=t,t.last=t.eq?L(n,null):n,a=t.fn,a(n,r===w?n:r,g),b<5&&(y=4-b,T[y]||(T[y]=[]),T[y].push({msg:k(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:n,oldVal:r}))}catch(A){e(A)}if(!(d=g.$$watchersCount&&g.$$childHead||g!==$&&g.$$nextSibling))for(;g!==$&&!(d=g.$$nextSibling);)g=g.$parent}while(g=d);if((p||S.length)&&!b--)throw m(),o("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",i,T)}while(p||S.length);for(m();E.length;)try{E.shift()()}catch(A){e(A)}},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===C&&c.$$applicationDestroyed(),y(this,-this.$$watchersCount);for(var e in this.$$listenerCount)b(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,h(this)}},$eval:function(t,e){return l(t)(this,e)},$evalAsync:function(t,e){C.$$phase||S.length||c.defer(function(){S.length&&C.$digest()}),S.push({scope:this,expression:l(t),locals:e})},$$postDigest:function(t){E.push(t)},$apply:function(t){try{v("$apply");try{return this.$eval(t)}finally{m()}}catch(n){e(n)}finally{try{C.$digest()}catch(n){throw e(n),n}}},$applyAsync:function(t){function e(){n.$eval(t)}var n=this;t&&T.push(e),t=l(t),$()},$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);r!==-1&&(n[r]=null,b(i,1,t))}},$emit:function(t,n){var r,i,o,a=[],s=this,u=!1,l={name:t,targetScope:s,stopPropagation:function(){u=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},c=H([l],arguments,1);do{for(r=s.$$listeners[t]||a,l.currentScope=s,i=0,o=r.length;i<o;i++)if(r[i])try{r[i].apply(null,c)}catch(f){e(f)}else r.splice(i,1),i--,o--;if(u)return l.currentScope=null,l;s=s.$parent}while(s);return l.currentScope=null,l},$broadcast:function(t,n){var r=this,i=r,o=r,a={name:t,targetScope:r,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!r.$$listenerCount[t])return a;for(var s,u,l,c=H([a],arguments,1);i=o;){for(a.currentScope=i,s=i.$$listeners[t]||[],u=0,l=s.length;u<l;u++)if(s[u])try{s[u].apply(null,c)}catch(f){e(f)}else s.splice(u,1),u--,l--;if(!(o=i.$$listenerCount[t]&&i.$$childHead||i!==r&&i.$$nextSibling))for(;i!==r&&!(o=i.$$nextSibling);)i=i.$parent}return a.currentScope=null,a}};var C=new d,S=C.$$asyncQueue=[],E=C.$$postDigestQueue=[],T=C.$$applyAsyncQueue=[];return C}]}function $n(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return y(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return y(t)?(e=t,this):e},this.$get=function(){return function(n,r){var i,o=r?e:t;return i=On(n).href,""===i||i.match(o)?n:"unsafe:"+i}}}function kn(t){if("self"===t)return t;if(w(t)){if(t.indexOf("***")>-1)throw yo("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=Gr(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(C(t))return new RegExp("^"+t.source+"$");throw yo("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Cn(t){var e=[];return y(t)&&r(t,function(t){e.push(kn(t))}),e}function Sn(){this.SCE_CONTEXTS=_o;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=Cn(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=Cn(t)),e},this.$get=["$injector",function(n){function r(t,e){return"self"===t?jn(e):!!t.exec(e.href)}function i(n){var i,o,a=On(n.toString()),s=!1;for(i=0,o=t.length;i<o;i++)if(r(t[i],a)){s=!0;break}if(s)for(i=0,o=e.length;i<o;i++)if(r(e[i],a)){s=!1;break}return s}function o(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}function a(t,e){var n=f.hasOwnProperty(t)?f[t]:null;if(!n)throw yo("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||g(e)||""===e)return e;if("string"!=typeof e)throw yo("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)}function s(t){return t instanceof c?t.$$unwrapTrustedValue():t}function u(t,e){if(null===e||g(e)||""===e)return e;var n=f.hasOwnProperty(t)?f[t]:null;if(n&&e instanceof n)return e.$$unwrapTrustedValue();if(t===_o.RESOURCE_URL){if(i(e))return e;throw yo("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",e.toString())}if(t===_o.HTML)return l(e);throw yo("unsafe","Attempting to use an unsafe value in a safe context.")}var l=function(t){throw yo("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(l=n.get("$sanitize"));var c=o(),f={};return f[_o.HTML]=o(c),f[_o.CSS]=o(c),f[_o.URL]=o(c),f[_o.JS]=o(c),f[_o.RESOURCE_URL]=o(f[_o.URL]),{trustAs:a,getTrusted:u,valueOf:s}}]}function En(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&&Mr<8)throw yo("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 i=z(_o);i.isEnabled=function(){return t},i.trustAs=n.trustAs,i.getTrusted=n.getTrusted,i.valueOf=n.valueOf,t||(i.trustAs=i.getTrusted=function(t,e){return e},i.valueOf=d),i.parseAs=function(t,n){var r=e(n);return r.literal&&r.constant?r:e(n,function(e){return i.getTrusted(t,e)})};var o=i.parseAs,a=i.getTrusted,s=i.trustAs;return r(_o,function(t,e){var n=Dr(e);i[wt("parse_as_"+n)]=function(e){return o(t,e)},i[wt("get_trusted_"+n)]=function(e){return a(t,e)},i[wt("trust_as_"+n)]=function(e){return s(t,e)}}),i}]}function Tn(){this.$get=["$window","$document",function(t,e){var n,r,i={},o=t.chrome&&t.chrome.app&&t.chrome.app.runtime,a=!o&&t.history&&t.history.pushState,s=f((/android (\d+)/.exec(Dr((t.navigator||{}).userAgent))||[])[1]),u=/Boxee/i.test((t.navigator||{}).userAgent),l=e[0]||{},c=/^(Moz|webkit|ms)(?=[A-Z])/,h=l.body&&l.body.style,p=!1,d=!1;if(h){for(var v in h)if(r=c.exec(v)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in h&&"webkit"),p=!!("transition"in h||n+"Transition"in h),d=!!("animation"in h||n+"Animation"in h),!s||p&&d||(p=w(h.webkitTransition),d=w(h.webkitAnimation))}return{history:!(!a||s<4||u),hasEvent:function(t){if("input"===t&&Mr<=11)return!1;if(g(i[t])){var e=l.createElement("div");i[t]="on"+t in e}return i[t]},csp:Xr(),vendorPrefix:n,transitions:p,animations:d,android:s}}]}function An(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$templateCache","$http","$q","$sce",function(e,n,r,i){function o(a,s){function u(t){if(!s)throw bo("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,t.status,t.statusText);return r.reject(t)}o.totalPendingRequests++,w(a)&&e.get(a)||(a=i.getTrustedResourceUrl(a));var c=n.defaults&&n.defaults.transformResponse;return Br(c)?c=c.filter(function(t){return t!==Ce}):c===Ce&&(c=null),n.get(a,l({cache:e,transformResponse:c},t))["finally"](function(){o.totalPendingRequests--}).then(function(t){return e.put(a,t.data),t.data},u)}return o.totalPendingRequests=0,o}]}function Dn(){this.$get=["$rootScope","$browser","$location",function(t,e,n){var i={};return i.findBindings=function(t,e,n){var i=t.getElementsByClassName("ng-binding"),o=[];return r(i,function(t){var i=Wr.element(t).data("$binding");i&&r(i,function(r){if(n){var i=new RegExp("(^|\\s)"+Gr(e)+"(\\s|\\||$)");i.test(r)&&o.push(t)}else r.indexOf(e)!=-1&&o.push(t)})}),o},i.findModels=function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",a="["+r[i]+"model"+o+'"'+e+'"]',s=t.querySelectorAll(a);if(s.length)return s}},i.getLocation=function(){return n.url()},i.setLocation=function(e){e!==n.url()&&(n.url(e),t.$digest())},i.whenStable=function(t){e.notifyWhenNoOutstandingRequests(t)},i}]}function Fn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,r,i){function o(o,s,u){k(o)||(u=s,s=o,o=p);var l,c=U(arguments,3),f=y(u)&&!u,h=(f?r:n).defer(),d=h.promise;return l=e.defer(function(){try{h.resolve(o.apply(null,c))}catch(e){h.reject(e),i(e)}finally{delete a[d.$$timeoutId]}f||t.$apply()},s),d.$$timeoutId=l,a[l]=h,d}var a={};return o.cancel=function(t){return!!(t&&t.$$timeoutId in a)&&(a[t.$$timeoutId].reject("canceled"),delete a[t.$$timeoutId],e.defer.cancel(t.$$timeoutId))},o}]}function On(t){var e=t;return Mr&&(wo.setAttribute("href",e),e=wo.href),wo.setAttribute("href",e),{href:wo.href,protocol:wo.protocol?wo.protocol.replace(/:$/,""):"",host:wo.host,search:wo.search?wo.search.replace(/^\?/,""):"",hash:wo.hash?wo.hash.replace(/^#/,""):"",hostname:wo.hostname,port:wo.port,pathname:"/"===wo.pathname.charAt(0)?wo.pathname:"/"+wo.pathname}}function jn(t){var e=w(t)?On(t):t;return e.protocol===xo.protocol&&e.host===xo.host}function Mn(){this.$get=v(t)}function In(t){function e(t){try{return decodeURIComponent(t)}catch(e){return t}}var n=t[0]||{},r={},i="";return function(){var t,o,a,s,u,l=n.cookie||"";if(l!==i)for(i=l,t=i.split("; "),r={},a=0;a<t.length;a++)o=t[a],s=o.indexOf("="),s>0&&(u=e(o.substring(0,s)),g(r[u])&&(r[u]=e(o.substring(s+1))));return r}}function Pn(){this.$get=In}function Nn(t){function e(i,o){if(_(i)){var a={};return r(i,function(t,n){a[n]=e(n,t)}),a}return t.factory(i+n,o)}var n="Filter";this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+n)}}],e("currency",Hn),e("date",rr),e("filter",Rn),e("json",ir),e("limitTo",or),e("lowercase",Ao),e("number",Un),e("orderBy",ar),e("uppercase",Do)}function Rn(){return function(t,r,i){if(!n(t)){if(null==t)return t;throw e("filter")("notarray","Expected array but received: {0}",t)}var o,a,s=qn(r);switch(s){case"function":o=r;break;case"boolean":case"null":case"number":case"string":a=!0;case"object":o=Ln(r,i,a);break;default:return t}return Array.prototype.filter.call(t,o)}}function Ln(t,e,n){var r,i=_(t)&&"$"in t;return e===!0?e=q:k(e)||(e=function(t,e){return!g(t)&&(null===t||null===e?t===e:!(_(e)||_(t)&&!m(t))&&(t=Dr(""+t),e=Dr(""+e),t.indexOf(e)!==-1))}),r=function(r){return i&&!_(r)?zn(r,t.$,e,!1):zn(r,t,e,n)}}function zn(t,e,n,r,i){var o=qn(t),a=qn(e);if("string"===a&&"!"===e.charAt(0))return!zn(t,e.substring(1),n,r);if(Br(t))return t.some(function(t){return zn(t,e,n,r)});switch(o){case"object":var s;if(r){for(s in t)if("$"!==s.charAt(0)&&zn(t[s],e,n,!0))return!0;return!i&&zn(t,e,n,!1)}if("object"===a){for(s in e){var u=e[s];if(!k(u)&&!g(u)){var l="$"===s,c=l?t:t[s];if(!zn(c,u,n,l,l))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function qn(t){return null===t?"null":typeof t}function Hn(t){var e=t.NUMBER_FORMATS;return function(t,n,r){return g(n)&&(n=e.CURRENCY_SYM),g(r)&&(r=e.PATTERNS[1].maxFrac),null==t?t:Bn(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function Un(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:Bn(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function Wn(t){var e,n,r,i,o,a=0;for((n=t.indexOf(ko))>-1&&(t=t.replace(ko,"")),(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;t.charAt(r)==Co;r++);if(r==(o=t.length))e=[0],n=1;else{for(o--;t.charAt(o)==Co;)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+t.charAt(r)}return n>$o&&(e=e.splice(0,$o-1),a=n-1,n=1),{d:e,e:a,i:n}}function Vn(t,e,n,r){var i=t.d,o=i.length-t.i;e=g(e)?Math.min(Math.max(n,o),r):+e;var a=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 l=1;l<a;l++)i[l]=0}if(s>=5)if(a-1<0){for(var c=0;c>a;c--)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++)}function Bn(t,e,n,r,i){if(!w(t)&&!x(t)||isNaN(t))return"";var o,a=!isFinite(t),s=!1,u=Math.abs(t)+"",l="";if(a)l="∞";else{o=Wn(u),Vn(o,i,e.minFrac,e.maxFrac);var c=o.d,f=o.i,h=o.e,p=[];for(s=c.reduce(function(t,e){return t&&!e},!0);f<0;)c.unshift(0),f++;f>0?p=c.splice(f):(p=c,c=[0]);var d=[];for(c.length>=e.lgSize&&d.unshift(c.splice(-e.lgSize).join(""));c.length>e.gSize;)d.unshift(c.splice(-e.gSize).join(""));c.length&&d.unshift(c.join("")),l=d.join(n),p.length&&(l+=r+p.join("")),h&&(l+="e+"+h)}return t<0&&!s?e.negPre+l+e.negSuf:e.posPre+l+e.posSuf}function Yn(t,e,n,r){var i="";for((t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,i="-")),t=""+t;t.length<e;)t=Co+t;return n&&(t=t.substr(t.length-e)),i+t}function Kn(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&&n==-12&&(a=12),Yn(a,e,r,i)}}function Gn(t,e,n){return function(r,i){var o=r["get"+t](),a=(n?"STANDALONE":"")+(e?"SHORT":""),s=Fr(a+t);return i[s][o]}}function Xn(t,e,n){var r=-1*n,i=r>=0?"+":"";return i+=Yn(Math[r>0?"floor":"ceil"](r/60),2)+Yn(Math.abs(r%60),2)}function Jn(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function Qn(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Zn(t){return function(e){var n=Jn(e.getFullYear()),r=Qn(e),i=+r-+n,o=1+Math.round(i/6048e5);return Yn(o,t)}}function tr(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]}function er(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}function nr(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}function rr(t){function e(t){var e;if(e=t.match(n)){var r=new Date(0),i=0,o=0,a=e[8]?r.setUTCFullYear:r.setFullYear,s=e[8]?r.setUTCHours:r.setHours;e[9]&&(i=f(e[9]+e[10]),o=f(e[9]+e[11])),a.call(r,f(e[1]),f(e[2])-1,f(e[3]));var u=f(e[4]||0)-i,l=f(e[5]||0)-o,c=f(e[6]||0),h=Math.round(1e3*parseFloat("0."+(e[7]||0)));return s.call(r,u,l,c,h),r}return t}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,i,o){var a,s,u="",l=[];if(i=i||"mediumDate",i=t.DATETIME_FORMATS[i]||i,w(n)&&(n=To.test(n)?f(n):e(n)),x(n)&&(n=new Date(n)),!$(n)||!isFinite(n.getTime()))return n;for(;i;)s=Eo.exec(i),s?(l=H(l,s,1),i=l.pop()):(l.push(i),i=null);var c=n.getTimezoneOffset();return o&&(c=K(o,c),n=X(n,o,!0)),r(l,function(e){a=So[e],u+=a?a(n,t.DATETIME_FORMATS,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function ir(){return function(t,e){return g(e)&&(e=2),B(t,e)}}function or(){return function(t,e,n){return e=Math.abs(Number(e))===1/0?Number(e):f(e),isNaN(e)?t:(x(t)&&(t=t.toString()),Br(t)||w(t)?(n=!n||isNaN(n)?0:f(n),n=n<0?Math.max(0,t.length+n):n,e>=0?t.slice(n,n+e):0===n?t.slice(e,t.length):t.slice(Math.max(0,n+e),n)):t)}}function ar(t){function r(e,n){return n=n?-1:1,e.map(function(e){var r=1,i=d;if(k(e))i=e;else if(w(e)&&("+"!=e.charAt(0)&&"-"!=e.charAt(0)||(r="-"==e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(i=t(e),i.constant))){var o=i();i=function(t){return t[o]}}return{get:i,descending:r*n}})}function i(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function o(t,e){return"function"==typeof t.valueOf&&(t=t.valueOf(),i(t))?t:m(t)&&(t=t.toString(),i(t))?t:e}function a(t,e){var n=typeof t;return null===t?(n="string",t="null"):"string"===n?t=t.toLowerCase():"object"===n&&(t=o(t,e)),{value:t,type:n}}function s(t,e){var n=0;return t.type===e.type?t.value!==e.value&&(n=t.value<e.value?-1:1):n=t.type<e.type?-1:1,n}return function(t,i,o){function u(t,e){return{value:t,predicateValues:c.map(function(n){return a(n.get(t),e)})}}function l(t,e){for(var n=0,r=0,i=c.length;r<i&&!(n=s(t.predicateValues[r],e.predicateValues[r])*c[r].descending);++r);return n}if(null==t)return t;if(!n(t))throw e("orderBy")("notarray","Expected array but received: {0}",t);
Br(i)||(i=[i]),0===i.length&&(i=["+"]);var c=r(i,o);c.push({get:function(){return{}},descending:o?-1:1});var f=Array.prototype.map.call(t,u);return f.sort(l),t=f.map(function(t){return t.value})}}function sr(t){return k(t)&&(t={link:t}),t.restrict=t.restrict||"AC",v(t)}function ur(t,e){t.$name=e}function lr(t,e,n,i,o){var a=this,s=[];a.$error={},a.$$success={},a.$pending=void 0,a.$name=o(e.name||e.ngForm||"")(n),a.$dirty=!1,a.$pristine=!0,a.$valid=!0,a.$invalid=!1,a.$submitted=!1,a.$$parentForm=jo,a.$rollbackViewValue=function(){r(s,function(t){t.$rollbackViewValue()})},a.$commitViewValue=function(){r(s,function(t){t.$commitViewValue()})},a.$addControl=function(t){ht(t.$name,"input"),s.push(t),t.$name&&(a[t.$name]=t),t.$$parentForm=a},a.$$renameControl=function(t,e){var n=t.$name;a[n]===t&&delete a[n],a[e]=t,t.$name=e},a.$removeControl=function(t){t.$name&&a[t.$name]===t&&delete a[t.$name],r(a.$pending,function(e,n){a.$setValidity(n,null,t)}),r(a.$error,function(e,n){a.$setValidity(n,null,t)}),r(a.$$success,function(e,n){a.$setValidity(n,null,t)}),R(s,t),t.$$parentForm=jo},kr({ctrl:this,$element:t,set:function(t,e,n){var r=t[e];if(r){var i=r.indexOf(n);i===-1&&r.push(n)}else t[e]=[n]},unset:function(t,e,n){var r=t[e];r&&(R(r,n),0===r.length&&delete t[e])},$animate:i}),a.$setDirty=function(){i.removeClass(t,ga),i.addClass(t,ya),a.$dirty=!0,a.$pristine=!1,a.$$parentForm.$setDirty()},a.$setPristine=function(){i.setClass(t,ga,ya+" "+Mo),a.$dirty=!1,a.$pristine=!0,a.$submitted=!1,r(s,function(t){t.$setPristine()})},a.$setUntouched=function(){r(s,function(t){t.$setUntouched()})},a.$setSubmitted=function(){i.addClass(t,Mo),a.$submitted=!0,a.$$parentForm.$setSubmitted()}}function cr(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function fr(t,e,n,r,i,o){hr(t,e,n,r,i,o),cr(r)}function hr(t,e,n,r,i,o){var a=Dr(e[0].type);if(!i.android){var s=!1;e.on("compositionstart",function(){s=!0}),e.on("compositionend",function(){s=!1,l()})}var u,l=function(t){if(u&&(o.defer.cancel(u),u=null),!s){var i=e.val(),l=t&&t.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=Kr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,l)}};if(i.hasEvent("input"))e.on("input",l);else{var c=function(t,e,n){u||(u=o.defer(function(){u=null,e&&e.value===n||l(t)}))};e.on("keydown",function(t){var e=t.keyCode;91===e||15<e&&e<19||37<=e&&e<=40||c(t,this,this.value)}),i.hasEvent("paste")&&e.on("paste cut",c)}e.on("change",l),Ko[a]&&r.$$hasNativeValidators&&a===n.type&&e.on(Yo,function(t){if(!u){var e=this[Tr],n=e.badInput,r=e.typeMismatch;u=o.defer(function(){u=null,e.badInput===n&&e.typeMismatch===r||l(t)})}}),r.$render=function(){var t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function pr(t,e){if($(t))return t;if(w(t)){Wo.lastIndex=0;var n=Wo.exec(t);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,u=0,l=Jn(r),c=7*(i-1);return e&&(o=e.getHours(),a=e.getMinutes(),s=e.getSeconds(),u=e.getMilliseconds()),new Date(r,0,l.getDate()+c,o,a,s,u)}}return NaN}function dr(t,e){return function(n,i){var o,a;if($(n))return n;if(w(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Ro.test(n))return new Date(n);if(t.lastIndex=0,o=t.exec(n))return o.shift(),a=i?{yyyy:i.getFullYear(),MM:i.getMonth()+1,dd:i.getDate(),HH:i.getHours(),mm:i.getMinutes(),ss:i.getSeconds(),sss:i.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},r(o,function(t,n){n<e.length&&(a[e[n]]=+t)}),new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0)}return NaN}}function vr(t,e,n,r){return function(i,o,a,s,u,l,c){function f(t){return t&&!(t.getTime&&t.getTime()!==t.getTime())}function h(t){return y(t)&&!$(t)?n(t)||void 0:t}mr(i,o,a,s),hr(i,o,a,s,u,l);var p,d=s&&s.$options&&s.$options.timezone;if(s.$$parserName=t,s.$parsers.push(function(t){if(s.$isEmpty(t))return null;if(e.test(t)){var r=n(t,p);return d&&(r=X(r,d)),r}}),s.$formatters.push(function(t){if(t&&!$(t))throw ka("datefmt","Expected `{0}` to be a date",t);return f(t)?(p=t,p&&d&&(p=X(p,d,!0)),c("date")(t,r,d)):(p=null,"")}),y(a.min)||a.ngMin){var v;s.$validators.min=function(t){return!f(t)||g(v)||n(t)>=v},a.$observe("min",function(t){v=h(t),s.$validate()})}if(y(a.max)||a.ngMax){var m;s.$validators.max=function(t){return!f(t)||g(m)||n(t)<=m},a.$observe("max",function(t){m=h(t),s.$validate()})}}}function mr(t,e,n,r){var i=e[0],o=r.$$hasNativeValidators=_(i.validity);o&&r.$parsers.push(function(t){var n=e.prop(Tr)||{};return n.badInput||n.typeMismatch?void 0:t})}function gr(t,e,n,r,i,o){if(mr(t,e,n,r),hr(t,e,n,r,i,o),r.$$parserName="number",r.$parsers.push(function(t){return r.$isEmpty(t)?null:qo.test(t)?parseFloat(t):void 0}),r.$formatters.push(function(t){if(!r.$isEmpty(t)){if(!x(t))throw ka("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}),y(n.min)||n.ngMin){var a;r.$validators.min=function(t){return r.$isEmpty(t)||g(a)||t>=a},n.$observe("min",function(t){y(t)&&!x(t)&&(t=parseFloat(t,10)),a=x(t)&&!isNaN(t)?t:void 0,r.$validate()})}if(y(n.max)||n.ngMax){var s;r.$validators.max=function(t){return r.$isEmpty(t)||g(s)||t<=s},n.$observe("max",function(t){y(t)&&!x(t)&&(t=parseFloat(t,10)),s=x(t)&&!isNaN(t)?t:void 0,r.$validate()})}}function yr(t,e,n,r,i,o){hr(t,e,n,r,i,o),cr(r),r.$$parserName="url",r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||Lo.test(n)}}function _r(t,e,n,r,i,o){hr(t,e,n,r,i,o),cr(r),r.$$parserName="email",r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||zo.test(n)}}function br(t,e,n,r){g(n.name)&&e.attr("name",a());var i=function(t){e[0].checked&&r.$setViewValue(n.value,t&&t.type)};e.on("click",i),r.$render=function(){var t=n.value;e[0].checked=t==r.$viewValue},n.$observe("value",r.$render)}function wr(t,e,n,r,i){var o;if(y(r)){if(o=t(r),!o.constant)throw ka("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(e)}return i}function xr(t,e,n,r,i,o,a,s){var u=wr(s,t,"ngTrueValue",n.ngTrueValue,!0),l=wr(s,t,"ngFalseValue",n.ngFalseValue,!1),c=function(t){r.$setViewValue(e[0].checked,t&&t.type)};e.on("click",c),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return t===!1},r.$formatters.push(function(t){return q(t,u)}),r.$parsers.push(function(t){return t?u:l})}function $r(t,e){return t="ngClass"+t,["$animate",function(n){function i(t,e){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 o(t){var e=[];return Br(t)?(r(t,function(t){e=e.concat(o(t))}),e):w(t)?t.split(" "):_(t)?(r(t,function(t,n){t&&(e=e.concat(n.split(" ")))}),e):t}return{restrict:"AC",link:function(a,s,u){function l(t){var e=f(t,1);u.$addClass(e)}function c(t){var e=f(t,-1);u.$removeClass(e)}function f(t,e){var n=s.data("$classCounts")||vt(),i=[];return r(t,function(t){(e>0||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(e>0)&&i.push(t))}),s.data("$classCounts",n),i.join(" ")}function h(t,e){var r=i(e,t),o=i(t,e);r=f(r,1),o=f(o,-1),r&&r.length&&n.addClass(s,r),o&&o.length&&n.removeClass(s,o)}function p(t){if(e===!0||a.$index%2===e){var n=o(t||[]);if(d){if(!q(t,d)){var r=o(d);h(r,n)}}else l(n)}d=Br(t)?t.map(function(t){return z(t)}):z(t)}var d;a.$watch(u[t],p,!0),u.$observe("class",function(e){p(a.$eval(u[t]))}),"ngClass"!==t&&a.$watch("$index",function(n,r){var i=1&n;if(i!==(1&r)){var s=o(a.$eval(u[t]));i===e?l(s):c(s)}})}}}]}function kr(t){function e(t,e,s){g(e)?n("$pending",t,s):r("$pending",t,s),F(e)?e?(c(a.$error,t,s),l(a.$$success,t,s)):(l(a.$error,t,s),c(a.$$success,t,s)):(c(a.$error,t,s),c(a.$$success,t,s)),a.$pending?(i(wa,!0),a.$valid=a.$invalid=void 0,o("",null)):(i(wa,!1),a.$valid=Cr(a.$error),a.$invalid=!a.$valid,o("",a.$valid));var u;u=a.$pending&&a.$pending[t]?void 0:!a.$error[t]&&(!!a.$$success[t]||null),o(t,u),a.$$parentForm.$setValidity(t,u,a)}function n(t,e,n){a[t]||(a[t]={}),l(a[t],e,n)}function r(t,e,n){a[t]&&c(a[t],e,n),Cr(a[t])&&(a[t]=void 0)}function i(t,e){e&&!u[t]?(f.addClass(s,t),u[t]=!0):!e&&u[t]&&(f.removeClass(s,t),u[t]=!1)}function o(t,e){t=t?"-"+ut(t,"-"):"",i(va+t,e===!0),i(ma+t,e===!1)}var a=t.ctrl,s=t.$element,u={},l=t.set,c=t.unset,f=t.$animate;u[ma]=!(u[va]=s.hasClass(va)),a.$setValidity=e}function Cr(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function Sr(t){t[0].hasAttribute("selected")&&(t[0].selected=!0)}var Er=/^\/(.+)\/([a-z]*)$/,Tr="validity",Ar=Object.prototype.hasOwnProperty,Dr=function(t){return w(t)?t.toLowerCase():t},Fr=function(t){return w(t)?t.toUpperCase():t},Or=function(t){return w(t)?t.replace(/[A-Z]/g,function(t){return String.fromCharCode(32|t.charCodeAt(0))}):t},jr=function(t){return w(t)?t.replace(/[a-z]/g,function(t){return String.fromCharCode(t.charCodeAt(0)&-33)}):t};"i"!=="I".toLowerCase()&&(Dr=Or,Fr=jr);var Mr,Ir,Pr,Nr,Rr=[].slice,Lr=[].splice,zr=[].push,qr=Object.prototype.toString,Hr=Object.getPrototypeOf,Ur=e("ng"),Wr=t.angular||(t.angular={}),Vr=0;Mr=t.document.documentMode,p.$inject=[],d.$inject=[];var Br=Array.isArray,Yr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,Kr=function(t){return w(t)?t.trim():t},Gr=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Xr=function(){function e(){try{return new Function(""),!1}catch(t){return!0}}if(!y(Xr.rules)){var n=t.document.querySelector("[ng-csp]")||t.document.querySelector("[data-ng-csp]");if(n){var r=n.getAttribute("ng-csp")||n.getAttribute("data-ng-csp");Xr.rules={noUnsafeEval:!r||r.indexOf("no-unsafe-eval")!==-1,noInlineStyle:!r||r.indexOf("no-inline-style")!==-1}}else Xr.rules={noUnsafeEval:e(),noInlineStyle:!1}}return Xr.rules},Jr=function(){if(y(Jr.name_))return Jr.name_;var e,n,r,i,o=Zr.length;for(n=0;n<o;++n)if(r=Zr[n],e=t.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=e.getAttribute(r+"jq");break}return Jr.name_=i},Qr=/:/g,Zr=["ng-","data-ng-","ng:","x-ng-"],ti=/[A-Z]/g,ei=!1,ni=1,ri=2,ii=3,oi=8,ai=9,si=11,ui={full:"1.5.5",major:1,minor:5,dot:5,codeName:"material-conspiration"};At.expando="ng339";var li=At.cache={},ci=1,fi=function(t,e,n){t.addEventListener(e,n,!1)},hi=function(t,e,n){t.removeEventListener(e,n,!1)};At._data=function(t){return this.cache[t[this.expando]]||{}};var pi=/([\:\-\_]+(.))/g,di=/^moz([A-Z])/,vi={mouseleave:"mouseout",mouseenter:"mouseover"},mi=e("jqLite"),gi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,yi=/<|&#?\w+;/,_i=/<([\w:-]+)/,bi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,wi={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};wi.optgroup=wi.option,wi.tbody=wi.tfoot=wi.colgroup=wi.caption=wi.thead,wi.th=wi.td;var xi=t.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))},$i=At.prototype={ready:function(e){function n(){r||(r=!0,e())}var r=!1;"complete"===t.document.readyState?t.setTimeout(n):(this.on("DOMContentLoaded",n),At(t).on("load",n))},toString:function(){var t=[];return r(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return Ir(t>=0?this[t]:this[this.length+t])},length:0,push:zr,sort:[].sort,splice:[].splice},ki={};r("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(t){ki[Dr(t)]=t});var Ci={};r("input,select,option,textarea,button,form,details".split(","),function(t){Ci[t]=!0});var Si={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};r({data:It,removeData:jt,hasData:kt,cleanData:Ct},function(t,e){At[e]=t}),r({data:It,inheritedData:qt,scope:function(t){return Ir.data(t,"$scope")||qt(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return Ir.data(t,"$isolateScope")||Ir.data(t,"$isolateScopeNoTemplate")},controller:zt,injector:function(t){return qt(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:Pt,css:function(t,e,n){return e=wt(e),y(n)?void(t.style[e]=n):t.style[e]},attr:function(t,e,n){var r=t.nodeType;if(r!==ii&&r!==ri&&r!==oi){var i=Dr(e);if(ki[i]){if(!y(n))return t[e]||(t.attributes.getNamedItem(e)||p).specified?i:void 0;n?(t[e]=!0,t.setAttribute(e,i)):(t[e]=!1,t.removeAttribute(i))}else if(y(n))t.setAttribute(e,n);else if(t.getAttribute){var o=t.getAttribute(e,2);return null===o?void 0:o}}},prop:function(t,e,n){return y(n)?void(t[e]=n):t[e]},text:function(){function t(t,e){if(g(e)){var n=t.nodeType;return n===ni||n===ii?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if(g(e)){if(t.multiple&&"select"===N(t)){var n=[];return r(t.options,function(t){t.selected&&n.push(t.value||t.text)}),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){return g(e)?t.innerHTML:(Ft(t,!0),void(t.innerHTML=e))},empty:Ht},function(t,e){At.prototype[e]=function(e,n){var r,i,o=this.length;if(t!==Ht&&g(2==t.length&&t!==Pt&&t!==zt?e:n)){if(_(e)){for(r=0;r<o;r++)if(t===It)t(this[r],e);else for(i in e)t(this[r],i,e[i]);return this}for(var a=t.$dv,s=g(a)?Math.min(o,1):o,u=0;u<s;u++){var l=t(this[u],e,n);a=a?a+l:l}return a}for(r=0;r<o;r++)t(this[r],e,n);return this}}),r({removeData:jt,on:function(t,e,n,r){if(y(r))throw mi("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if($t(t)){var i=Mt(t,!0),o=i.events,a=i.handle;a||(a=i.handle=Yt(t,o));for(var s=e.indexOf(" ")>=0?e.split(" "):[e],u=s.length,l=function(e,r,i){var s=o[e];s||(s=o[e]=[],s.specialHandlerWrapper=r,"$destroy"===e||i||fi(t,e,a)),s.push(n)};u--;)e=s[u],vi[e]?(l(vi[e],Gt),l(e,void 0,!0)):l(e)}},off:Ot,one:function(t,e,n){t=Ir(t),t.on(e,function r(){t.off(e,n),t.off(e,r)}),t.on(e,n)},replaceWith:function(t,e){var n,i=t.parentNode;Ft(t),r(new At(e),function(e){n?i.insertBefore(e,n.nextSibling):i.replaceChild(e,t),n=e})},children:function(t){var e=[];return r(t.childNodes,function(t){t.nodeType===ni&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(n===ni||n===si){e=new At(e);for(var r=0,i=e.length;r<i;r++){var o=e[r];t.appendChild(o)}}},prepend:function(t,e){if(t.nodeType===ni){var n=t.firstChild;r(new At(e),function(e){t.insertBefore(e,n)})}},wrap:function(t,e){Tt(t,Ir(e).eq(0).clone()[0])},remove:Ut,detach:function(t){Ut(t,!0)},after:function(t,e){var n=t,r=t.parentNode;e=new At(e);for(var i=0,o=e.length;i<o;i++){var a=e[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:Rt,removeClass:Nt,toggleClass:function(t,e,n){e&&r(e.split(" "),function(e){var r=n;g(r)&&(r=!Pt(t,e)),(r?Rt:Nt)(t,e)})},parent:function(t){var e=t.parentNode;return e&&e.nodeType!==si?e:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:Dt,triggerHandler:function(t,e,n){var i,o,a,s=e.type||e,u=Mt(t),c=u&&u.events,f=c&&c[s];f&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:p,type:s,target:t},e.type&&(i=l(i,e)),o=z(f),a=n?[i].concat(n):[i],r(o,function(e){i.isImmediatePropagationStopped()||e.apply(t,a)}))}},function(t,e){At.prototype[e]=function(e,n,r){for(var i,o=0,a=this.length;o<a;o++)g(i)?(i=t(this[o],e,n,r),y(i)&&(i=Ir(i))):Lt(i,t(this[o],e,n,r));return y(i)?i:this},At.prototype.bind=At.prototype.on,At.prototype.unbind=At.prototype.off}),Qt.prototype={put:function(t,e){this[Jt(t,this.nextUid)]=e},get:function(t){return this[Jt(t,this.nextUid)]},remove:function(t){var e=this[t=Jt(t,this.nextUid)];return delete this[t],e}};var Ei=[function(){this.$get=[function(){return Qt}]}],Ti=/^([^\(]+?)=>/,Ai=/^[^\(]*\(\s*([^\)]*)\)/m,Di=/,/,Fi=/^\s*(_?)(\S+?)\1\s*$/,Oi=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,ji=e("$injector");ne.$$annotate=ee;var Mi=e("$animate"),Ii=1,Pi="ng-animate",Ni=function(){this.$get=p},Ri=function(){var t=new Qt,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,i){function o(t,e,n){var i=!1;return e&&(e=w(e)?e.split(" "):Br(e)?e:[],r(e,function(e){e&&(i=!0,t[e]=n)})),i}function a(){r(e,function(e){var n=t.get(e);if(n){var i=ae(e.attr("class")),o="",a="";r(n,function(t,e){var n=!!i[e];t!==n&&(t?o+=(o.length?" ":"")+e:a+=(a.length?" ":"")+e)}),r(e,function(t){o&&Rt(t,o),a&&Nt(t,a)}),t.remove(e)}}),e.length=0}function s(n,r,s){var u=t.get(n)||{},l=o(u,r,!0),c=o(u,s,!1);(l||c)&&(t.put(n,u),e.push(n),1===e.length&&i.$$postDigest(a))}return{enabled:p,on:p,off:p,pin:p,push:function(t,e,r,i){i&&i(),r=r||{},r.from&&t.css(r.from),r.to&&t.css(r.to),(r.addClass||r.removeClass)&&s(t,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},Li=["$provide",function(t){var e=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Mi("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.classNameFilter=function(t){if(1===arguments.length&&(this.$$classNameFilter=t instanceof RegExp?t:null,this.$$classNameFilter)){var e=new RegExp("(\\s+|\\/)"+Pi+"(\\s+|\\/)");if(e.test(this.$$classNameFilter.toString()))throw Mi("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Pi)}return this.$$classNameFilter},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){var r=oe(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.end&&t.end()},enter:function(n,r,i,o){return r=r&&Ir(r),i=i&&Ir(i),r=r||i.parent(),e(n,r,i),t.push(n,"enter",se(o))},move:function(n,r,i,o){return r=r&&Ir(r),i=i&&Ir(i),r=r||i.parent(),e(n,r,i),t.push(n,"move",se(o))},leave:function(e,n){return t.push(e,"leave",se(n),function(){e.remove()})},addClass:function(e,n,r){return r=se(r),r.addClass=ie(r.addclass,n),t.push(e,"addClass",r)},removeClass:function(e,n,r){return r=se(r),r.removeClass=ie(r.removeClass,n),t.push(e,"removeClass",r)},setClass:function(e,n,r,i){return i=se(i),i.addClass=ie(i.addClass,n),i.removeClass=ie(i.removeClass,r),t.push(e,"setClass",i)},animate:function(e,n,r,i,o){return o=se(o),o.from=o.from?l(o.from,n):n,o.to=o.to?l(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=ie(o.tempClasses,i),t.push(e,"animate",o)}}}]}],zi=function(){this.$get=["$$rAF",function(t){function e(e){n.push(e),n.length>1||t(function(){for(var t=0;t<n.length;t++)n[t]();n=[]})}var n=[];return function(){var t=!1;return e(function(){t=!0}),function(n){t?n():e(n)}}}]},qi=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(t,e,n,i,o){function a(t){this.setHost(t);var e=n(),r=function(t){o(t,0,!1)};this._doneCallbacks=[],this._tick=function(t){var n=i[0];n&&n.hidden?r(t):e(t)},this._state=0}var s=0,u=1,l=2;return a.chain=function(t,e){function n(){return r===t.length?void e(!0):void t[r](function(t){return t===!1?void e(!1):(r++,void n())})}var r=0;n()},a.all=function(t,e){function n(n){o=o&&n,++i===t.length&&e(o)}var i=0,o=!0;r(t,function(t){t.done(n)})},a.prototype={setHost:function(t){this.host=t||{}},done:function(t){this._state===l?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){e===!1?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;e._state===s&&(e._state=u,e._tick(function(){e._resolve(t)}))},_resolve:function(t){this._state!==l&&(r(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=l)}},a}]},Hi=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(t,e,n){return function(e,r){function i(){return t(function(){o(),s||u.complete(),s=!0}),u}function o(){a.addClass&&(e.addClass(a.addClass),a.addClass=null),a.removeClass&&(e.removeClass(a.removeClass),a.removeClass=null),a.to&&(e.css(a.to),a.to=null)}var a=r||{};a.$$prepared||(a=L(a)),a.cleanupStyles&&(a.from=a.to=null),a.from&&(e.css(a.from),a.from=null);var s,u=new n;return{start:i,end:i}}}]},Ui=e("$compile"),Wi=new he;pe.$inject=["$provide","$$sanitizeUriProvider"],de.prototype.isFirstChange=function(){return this.previousValue===Wi};var Vi=/^((?:x|data)[\:\-_])/i,Bi=e("$controller"),Yi=/^(\S+)(\s+as\s+([\w$]+))?$/,Ki=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof Ir&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},Gi="application/json",Xi={"Content-Type":Gi+";charset=utf-8"},Ji=/^\[|^\{(?!\{)/,Qi={"[":/]$/,"{":/}$/},Zi=/^\)\]\}',?\n/,to=e("$http"),eo=function(t){return function(){throw to("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",t)}},no=Wr.$interpolateMinErr=e("$interpolate");no.throwNoconcat=function(t){throw no("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)},no.interr=function(t,e){return no("interr","Can't interpolate: {0}\n{1}",t,e.toString())};var ro=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,io={http:80,https:443,ftp:21},oo=e("$location"),ao={$$html5:!1,$$replace:!1,absUrl:Ke("$$absUrl"),url:function(t){if(g(t))return this.$$url;var e=ro.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:Ke("$$protocol"),host:Ke("$$host"),port:Ke("$$port"),path:Ge("$$path",function(t){return t=null!==t?t.toString():"","/"==t.charAt(0)?t:"/"+t}),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(w(t)||x(t))t=t.toString(),this.$$search=Z(t);else{if(!_(t))throw oo("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");t=L(t,{}),r(t,function(e,n){null==e&&delete t[n]}),this.$$search=t}break;default:g(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:Ge("$$hash",function(t){return null!==t?t.toString():""}),replace:function(){return this.$$replace=!0,this}};r([Ye,Be,Ve],function(t){t.prototype=Object.create(ao),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==Ve||!this.$$html5)throw oo("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=g(e)?null:e,this}});var so=e("$parse"),uo=Function.prototype.call,lo=Function.prototype.apply,co=Function.prototype.bind,fo=vt();r("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(t){fo[t]=!0});var ho={n:"\n",f:"\f",r:"\r",t:"\t",v:"\x0B","'":"'",'"':'"'},po=function(t){this.options=t};po.prototype={constructor:po,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=fo[e],o=fo[n],a=fo[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 e.indexOf(t)!==-1},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||"\x0B"===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=y(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw so("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=Dr(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{var s=ho[o];n+=s||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 vo=function(t,e){this.lexer=t,this.options=e};vo.Program="Program",vo.ExpressionStatement="ExpressionStatement",vo.AssignmentExpression="AssignmentExpression",vo.ConditionalExpression="ConditionalExpression",vo.LogicalExpression="LogicalExpression",vo.BinaryExpression="BinaryExpression",vo.UnaryExpression="UnaryExpression",vo.CallExpression="CallExpression",vo.MemberExpression="MemberExpression",vo.Identifier="Identifier",vo.Literal="Literal",vo.ArrayExpression="ArrayExpression",vo.Property="Property",vo.ObjectExpression="ObjectExpression",vo.ThisExpression="ThisExpression",vo.LocalsExpression="LocalsExpression",vo.NGValueParameter="NGValueParameter",vo.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:vo.Program,body:t}},expressionStatement:function(){return{type:vo.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t,e=this.expression();t=this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();return this.expect("=")&&(t={type:vo.AssignmentExpression,left:t,right:this.assignment(),operator:"="}),t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:vo.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:vo.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:vo.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:vo.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:vo.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:vo.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:vo.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:vo.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t;this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?t=L(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?t={type:vo.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());for(var e;e=this.expect("(","[",".");)"("===e.text?(t={type:vo.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:vo.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:vo.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],n={type:vo.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.expression());while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:vo.Identifier,name:t.text}},constant:function(){return{type:vo.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:vo.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:vo.Property,kind:"init"},this.peek().constant?t.key=this.constant():this.peek().identifier?t.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),t.value=this.expression(),e.push(t)}while(this.expect(","));return this.consume("}"),{type:vo.ObjectExpression,properties:e}},throwError:function(t,e){throw so("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 so("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 so("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:vo.ThisExpression},$locals:{type:vo.LocalsExpression}}},pn.prototype={compile:function(t,e){var n=this,i=this.astBuilder.ast(t);this.state={nextId:0,filters:{},expensiveChecks:e,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},sn(i,n.$filter);var o,a="";if(this.stage="assign",o=cn(i)){this.state.computing="assign";var s=this.nextId();this.recurse(o,s),this.return_(s),a="fn.assign="+this.generateFunction("assign","s,v,l")}var u=un(i.body);n.stage="inputs",r(u,function(t,e){var r="fn"+e;n.state[r]={vars:[],body:[],own:{}},n.state.computing=r;var i=n.nextId();n.recurse(t,i),n.return_(i),n.state.inputs.push(r),t.watchId=e}),this.state.computing="fn",this.stage="main",this.recurse(i);var l='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+a+this.watchFns()+"return fn;",c=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",l)(this.$filter,Qe,tn,en,Ze,nn,rn,on,t);return this.state=this.stage=void 0,c.literal=fn(i),c.constant=hn(i),c},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return r(e,function(e){t.push("var "+e+"="+n.generateFunction(e,"s"))}),e.length&&t.push("fn.inputs=["+e.join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return r(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,i,o,a){var s,u,l,c,f=this;if(i=i||p,!a&&y(t.watchId))return e=e||this.nextId(),void this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,n,i,o,!0));switch(t.type){case vo.Program:r(t.body,function(e,n){f.recurse(e.expression,void 0,void 0,function(t){u=t}),n!==t.body.length-1?f.current().body.push(u,";"):f.return_(u)});break;case vo.Literal:c=this.escape(t.value),this.assign(e,c),i(c);break;case vo.UnaryExpression:this.recurse(t.argument,void 0,void 0,function(t){u=t}),c=t.operator+"("+this.ifDefined(u,0)+")",this.assign(e,c),i(c);break;case vo.BinaryExpression:this.recurse(t.left,void 0,void 0,function(t){s=t}),this.recurse(t.right,void 0,void 0,function(t){u=t}),c="+"===t.operator?this.plus(s,u):"-"===t.operator?this.ifDefined(s,0)+t.operator+this.ifDefined(u,0):"("+s+")"+t.operator+"("+u+")",this.assign(e,c),i(c);break;case vo.LogicalExpression:e=e||this.nextId(),f.recurse(t.left,e),f.if_("&&"===t.operator?e:f.not(e),f.lazyRecurse(t.right,e)),i(e);break;case vo.ConditionalExpression:e=e||this.nextId(),f.recurse(t.test,e),f.if_(e,f.lazyRecurse(t.alternate,e),f.lazyRecurse(t.consequent,e)),i(e);break;case vo.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),Qe(t.name),f.if_("inputs"===f.stage||f.not(f.getHasOwnProperty("l",t.name)),function(){f.if_("inputs"===f.stage||"s",function(){o&&1!==o&&f.if_(f.not(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))),(f.state.expensiveChecks||vn(t.name))&&f.addEnsureSafeObject(e),i(e);break;case vo.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),e=e||this.nextId(),f.recurse(t.object,s,void 0,function(){f.if_(f.notNull(s),function(){o&&1!==o&&f.addEnsureSafeAssignContext(s),t.computed?(u=f.nextId(),f.recurse(t.property,u),f.getStringValue(u),f.addEnsureSafeMemberName(u),o&&1!==o&&f.if_(f.not(f.computedMember(s,u)),f.lazyAssign(f.computedMember(s,u),"{}")),c=f.ensureSafeObject(f.computedMember(s,u)),f.assign(e,c),n&&(n.computed=!0,n.name=u)):(Qe(t.property.name),o&&1!==o&&f.if_(f.not(f.nonComputedMember(s,t.property.name)),f.lazyAssign(f.nonComputedMember(s,t.property.name),"{}")),c=f.nonComputedMember(s,t.property.name),(f.state.expensiveChecks||vn(t.property.name))&&(c=f.ensureSafeObject(c)),f.assign(e,c),n&&(n.computed=!1,n.name=t.property.name))},function(){f.assign(e,"undefined")}),i(e)},!!o);break;case vo.CallExpression:e=e||this.nextId(),t.filter?(u=f.filter(t.callee.name),l=[],r(t.arguments,function(t){var e=f.nextId();f.recurse(t,e),l.push(e)}),c=u+"("+l.join(",")+")",f.assign(e,c),i(e)):(u=f.nextId(),s={},l=[],f.recurse(t.callee,u,s,function(){f.if_(f.notNull(u),function(){f.addEnsureSafeFunction(u),r(t.arguments,function(t){f.recurse(t,f.nextId(),void 0,function(t){l.push(f.ensureSafeObject(t))})}),s.name?(f.state.expensiveChecks||f.addEnsureSafeObject(s.context),c=f.member(s.context,s.name,s.computed)+"("+l.join(",")+")"):c=u+"("+l.join(",")+")",c=f.ensureSafeObject(c),f.assign(e,c)},function(){f.assign(e,"undefined")}),i(e)}));break;case vo.AssignmentExpression:if(u=this.nextId(),s={},!ln(t.left))throw so("lval","Trying to assign a value to a non l-value");this.recurse(t.left,void 0,s,function(){f.if_(f.notNull(s.context),function(){f.recurse(t.right,u),f.addEnsureSafeObject(f.member(s.context,s.name,s.computed)),f.addEnsureSafeAssignContext(s.context),c=f.member(s.context,s.name,s.computed)+t.operator+u,f.assign(e,c),i(e||c)})},1);break;case vo.ArrayExpression:l=[],r(t.elements,function(t){f.recurse(t,f.nextId(),void 0,function(t){l.push(t)})}),c="["+l.join(",")+"]",this.assign(e,c),i(c);break;case vo.ObjectExpression:l=[],r(t.properties,function(t){f.recurse(t.value,f.nextId(),void 0,function(e){l.push(f.escape(t.key.type===vo.Identifier?t.key.name:""+t.key.value)+":"+e)})}),c="{"+l.join(",")+"}",this.assign(e,c),i(c);break;case vo.ThisExpression:this.assign(e,"s"),i("s");break;case vo.LocalsExpression:this.assign(e,"l"),i("l");break;case vo.NGValueParameter:this.assign(e,"v"),i("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(t===!0)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+")"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){var n=/[$_a-zA-Z][$_a-zA-Z0-9]*/,r=/[^$_a-zA-Z0-9]/g;return n.test(e)?t+"."+e:t+'["'+e.replace(r,this.stringEscapeFn)+'"]'},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},addEnsureSafeObject:function(t){this.current().body.push(this.ensureSafeObject(t),";")},addEnsureSafeMemberName:function(t){this.current().body.push(this.ensureSafeMemberName(t),";")},addEnsureSafeFunction:function(t){this.current().body.push(this.ensureSafeFunction(t),";")},addEnsureSafeAssignContext:function(t){this.current().body.push(this.ensureSafeAssignContext(t),";")},ensureSafeObject:function(t){return"ensureSafeObject("+t+",text)"},ensureSafeMemberName:function(t){return"ensureSafeMemberName("+t+",text)"},ensureSafeFunction:function(t){return"ensureSafeFunction("+t+",text)"},getStringValue:function(t){this.assign(t,"getStringValue("+t+")")},ensureSafeAssignContext:function(t){return"ensureSafeAssignContext("+t+",text)"},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(w(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(x(t))return t.toString();if(t===!0)return"true";if(t===!1)return"false";if(null===t)return"null";if("undefined"==typeof t)return"undefined";throw so("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]}},dn.prototype={compile:function(t,e){var n=this,i=this.astBuilder.ast(t);this.expression=t,this.expensiveChecks=e,sn(i,n.$filter);var o,a;(o=cn(i))&&(a=this.recurse(o));var s,u=un(i.body);u&&(s=[],r(u,function(t,e){var r=n.recurse(t);t.input=r,s.push(r),t.watchId=e}));var l=[];r(i.body,function(t){l.push(n.recurse(t.expression))});var c=0===i.body.length?p:1===i.body.length?l[0]:function(t,e){var n;return r(l,function(r){n=r(t,e)}),n};return a&&(c.assign=function(t,e,n){return a(t,n,e)}),s&&(c.inputs=s),c.literal=fn(i),c.constant=hn(i),c},recurse:function(t,e,n){var i,o,a,s=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case vo.Literal:return this.value(t.value,e);case vo.UnaryExpression:return o=this.recurse(t.argument),this["unary"+t.operator](o,e);case vo.BinaryExpression:return i=this.recurse(t.left),o=this.recurse(t.right),this["binary"+t.operator](i,o,e);case vo.LogicalExpression:return i=this.recurse(t.left),o=this.recurse(t.right),this["binary"+t.operator](i,o,e);case vo.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case vo.Identifier:return Qe(t.name,s.expression),s.identifier(t.name,s.expensiveChecks||vn(t.name),e,n,s.expression);case vo.MemberExpression:return i=this.recurse(t.object,!1,!!n),t.computed||(Qe(t.property.name,s.expression),o=t.property.name),t.computed&&(o=this.recurse(t.property)),t.computed?this.computedMember(i,o,e,n,s.expression):this.nonComputedMember(i,o,s.expensiveChecks,e,n,s.expression);case vo.CallExpression:return a=[],r(t.arguments,function(t){a.push(s.recurse(t))}),t.filter&&(o=this.$filter(t.callee.name)),t.filter||(o=this.recurse(t.callee,!0)),t.filter?function(t,n,r,i){for(var s=[],u=0;u<a.length;++u)s.push(a[u](t,n,r,i));var l=o.apply(void 0,s,i);return e?{context:void 0,name:void 0,value:l}:l}:function(t,n,r,i){var u,l=o(t,n,r,i);if(null!=l.value){tn(l.context,s.expression),en(l.value,s.expression);for(var c=[],f=0;f<a.length;++f)c.push(tn(a[f](t,n,r,i),s.expression));u=tn(l.value.apply(l.context,c),s.expression)}return e?{value:u}:u};case vo.AssignmentExpression:return i=this.recurse(t.left,!0,1),o=this.recurse(t.right),function(t,n,r,a){var u=i(t,n,r,a),l=o(t,n,r,a);return tn(u.value,s.expression),nn(u.context),u.context[u.name]=l,e?{value:l}:l};case vo.ArrayExpression:return a=[],r(t.elements,function(t){a.push(s.recurse(t))}),function(t,n,r,i){for(var o=[],s=0;s<a.length;++s)o.push(a[s](t,n,r,i));return e?{value:o}:o};case vo.ObjectExpression:return a=[],r(t.properties,function(t){a.push({key:t.key.type===vo.Identifier?t.key.name:""+t.key.value,value:s.recurse(t.value)})}),function(t,n,r,i){for(var o={},s=0;s<a.length;++s)o[a[s].key]=a[s].value(t,n,r,i);return e?{value:o}:o};case vo.ThisExpression:return function(t){return e?{value:t}:t};case vo.LocalsExpression:return function(t,n){return e?{value:n}:n};case vo.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=y(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=y(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=t(r,i,o,a),u=e(r,i,o,a),l=on(s,u);return n?{value:l}:l}},"binary-":function(t,e,n){return function(r,i,o,a){var s=t(r,i,o,a),u=e(r,i,o,a),l=(y(s)?s:0)-(y(u)?u:0);return n?{value:l}:l}},"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,r,i){return function(o,a,s,u){var l=a&&t in a?a:o;r&&1!==r&&l&&!l[t]&&(l[t]={});var c=l?l[t]:void 0;return e&&tn(c,i),n?{context:l,name:t,value:c}:c}},computedMember:function(t,e,n,r,i){return function(o,a,s,u){var l,c,f=t(o,a,s,u);return null!=f&&(l=e(o,a,s,u),l=Ze(l),Qe(l,i),r&&1!==r&&(nn(f),f&&!f[l]&&(f[l]={})),c=f[l],tn(c,i)),n?{context:f,name:l,value:c}:c}},nonComputedMember:function(t,e,n,r,i,o){return function(a,s,u,l){var c=t(a,s,u,l);i&&1!==i&&(nn(c),c&&!c[e]&&(c[e]={}));var f=null!=c?c[e]:void 0;return(n||vn(e))&&tn(f,o),r?{context:c,name:e,value:f}:f}},inputs:function(t,e){return function(n,r,i,o){return o?o[e]:t(n,r,i)}}};var mo=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n,this.ast=new vo(t,n),this.astCompiler=n.csp?new dn(this.ast,e):new pn(this.ast,e)};mo.prototype={constructor:mo,parse:function(t){return this.astCompiler.compile(t,this.options.expensiveChecks)}};var go=Object.prototype.valueOf,yo=e("$sce"),_o={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},bo=e("$compile"),wo=t.document.createElement("a"),xo=On(t.location.href);In.$inject=["$document"],Nn.$inject=["$provide"];var $o=22,ko=".",Co="0";Hn.$inject=["$locale"],Un.$inject=["$locale"];var So={yyyy:Kn("FullYear",4,0,!1,!0),yy:Kn("FullYear",2,0,!0,!0),y:Kn("FullYear",1,0,!1,!0),MMMM:Gn("Month"),MMM:Gn("Month",!0),MM:Kn("Month",2,1),M:Kn("Month",1,1),LLLL:Gn("Month",!1,!0),dd:Kn("Date",2),d:Kn("Date",1),HH:Kn("Hours",2),H:Kn("Hours",1),hh:Kn("Hours",2,-12),h:Kn("Hours",1,-12),mm:Kn("Minutes",2),m:Kn("Minutes",1),ss:Kn("Seconds",2),s:Kn("Seconds",1),sss:Kn("Milliseconds",3),EEEE:Gn("Day"),EEE:Gn("Day",!0),a:tr,Z:Xn,ww:Zn(2),w:Zn(1),G:er,GG:er,GGG:er,GGGG:nr},Eo=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,To=/^\-?\d+$/;rr.$inject=["$locale"];var Ao=v(Dr),Do=v(Fr);ar.$inject=["$parse"];var Fo=v({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]"===qr.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}}),Oo={};r(ki,function(t,e){function n(t,n,i){t.$watch(i[r],function(t){i.$set(e,!!t)})}if("multiple"!=t){var r=ve("ng-"+e),i=n;"checked"===t&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,e,i)}),Oo[r]=function(){return{restrict:"A",priority:100,link:i}}}}),r(Si,function(t,e){Oo[e]=function(){return{priority:100,link:function(t,n,r){if("ngPattern"===e&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match(Er);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}t.$watch(r[e],function(t){r.$set(e,t)})}}}}),r(["src","srcset","href"],function(t){var e=ve("ng-"+t);Oo[e]=function(){return{priority:99,link:function(n,r,i){var o=t,a=t;"href"===t&&"[object SVGAnimatedString]"===qr.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(e,function(e){return e?(i.$set(a,e),void(Mr&&o&&r.prop(o,i[a]))):void("href"===t&&i.$set(a,null))})}}}});var jo={$addControl:p,$$renameControl:ur,$removeControl:p,$setValidity:p,$setDirty:p,$setPristine:p,$setSubmitted:p},Mo="ng-submitted";lr.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Io=function(t){return["$timeout","$parse",function(e,n){function r(t){return""===t?n('this[""]').assign:n(t).assign||p}var i={name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:lr,compile:function(n,i){n.addClass(ga).addClass(va);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()};fi(n[0],"submit",u),n.on("$destroy",function(){e(function(){hi(n[0],"submit",u)},0,!1)})}var c=a[1]||s.$$parentForm;c.$addControl(s);var f=o?r(s.$name):p;o&&(f(t,s),i.$observe(o,function(e){s.$name!==e&&(f(t,void 0),s.$$parentForm.$$renameControl(s,e),(f=r(s.$name))(t,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),f(t,void 0),l(s,jo)})}}}};return i}]},Po=Io(),No=Io(!0),Ro=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Lo=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,zo=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,qo=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Ho=/^(\d{4,})-(\d{2})-(\d{2})$/,Uo=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Wo=/^(\d{4,})-W(\d\d)$/,Vo=/^(\d{4,})-(\d\d)$/,Bo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Yo="keydown wheel mousedown",Ko=vt();r("date,datetime-local,month,time,week".split(","),function(t){Ko[t]=!0});var Go={text:fr,date:vr("date",Ho,dr(Ho,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":vr("datetimelocal",Uo,dr(Uo,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:vr("time",Bo,dr(Bo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:vr("week",Wo,pr,"yyyy-Www"),month:vr("month",Vo,dr(Vo,["yyyy","MM"]),"yyyy-MM"),number:gr,url:yr,email:_r,radio:br,checkbox:xr,hidden:p,button:p,submit:p,reset:p,file:p},Xo=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(Go[Dr(a.type)]||Go.text)(i,o,a,s[0],e,t,n,r)}}}}],Jo=/^(true|false|\d+)$/,Qo=function(){return{restrict:"A",priority:100,compile:function(t,e){return Jo.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){n.$set("value",t)})}}}},Zo=["$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=g(t)?"":t})}}}}],ta=["$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=g(t)?"":t})}}}}],ea=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(r,i){var o=e(i.ngBindHtml),a=e(i.ngBindHtml,function(t){return(t||"").toString()});return n.$$addBindingClass(r),function(e,r,i){n.$$addBindingInfo(r,i.ngBindHtml),e.$watch(a,function(){r.html(t.getTrustedHtml(o(e))||"")})}}}}],na=v({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),ra=$r("",!0),ia=$r("Odd",0),oa=$r("Even",1),aa=sr({compile:function(t,e){e.$set("ngCloak",void 0),t.removeClass("ng-cloak")}}),sa=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],ua={},la={blur:!0,focus:!0};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=ve("ng-"+t);ua[e]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[e],null,!0);return function(e,n){n.on(t,function(n){var i=function(){a(e,{$event:n})};la[t]&&r.$$phase?e.$evalAsync(i):e.$apply(i)})}}}}]});var ca=["$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,l;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)}):(l&&(l.remove(),l=null),u&&(u.$destroy(),u=null),s&&(l=dt(s.clone),t.leave(l).then(function(){l=null}),s=null))})}}}],fa=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Wr.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,u,l,c){var f,h,p,d=0,v=function(){h&&(h.remove(),h=null),f&&(f.$destroy(),f=null),p&&(n.leave(p).then(function(){h=null}),h=p,p=null)};r.$watch(o,function(o){var u=function(){!y(s)||s&&!r.$eval(s)||e()},h=++d;o?(t(o,!0).then(function(t){if(!r.$$destroyed&&h===d){var e=r.$new();l.template=t;var s=c(e,function(t){v(),n.enter(t,null,i).then(u)});f=e,p=s,f.$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||h===d&&(v(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(v(),l.template=null)})}}}}],ha=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){return qr.call(r[0]).match(/SVG/)?(r.empty(),void e(St(o.template,t.document).childNodes)(n,function(t){r.append(t)},{futureParentElement:r})):(r.html(o.template),void e(r.contents())(n))}}}],pa=sr({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),da=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,n,i){var o=e.attr(n.$attr.ngList)||", ",a="false"!==n.ngTrim,s=a?Kr(o):o,u=function(t){if(!g(t)){var e=[];return t&&r(t.split(s),function(t){t&&e.push(a?Kr(t):t)}),e}};i.$parsers.push(u),i.$formatters.push(function(t){if(Br(t))return t.join(o)}),i.$isEmpty=function(t){return!t||!t.length}}}},va="ng-valid",ma="ng-invalid",ga="ng-pristine",ya="ng-dirty",_a="ng-untouched",ba="ng-touched",wa="ng-pending",xa="ng-empty",$a="ng-not-empty",ka=e("ngModel"),Ca=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(t,e,n,i,o,a,s,u,l,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=c(n.name||"",!1)(t),this.$$parentForm=jo;var f,h=o(n.ngModel),d=h.assign,v=h,m=d,_=null,b=this;this.$$setOptions=function(t){if(b.$options=t,t&&t.getterSetter){var e=o(n.ngModel+"()"),r=o(n.ngModel+"($$$p)");v=function(t){var n=h(t);return k(n)&&(n=e(t)),n},m=function(t,e){k(h(t))?r(t,{$$$p:e}):d(t,e)}}else if(!h.assign)throw ka("nonassign","Expression '{0}' is non-assignable. Element: {1}",n.ngModel,J(i))},this.$render=p,this.$isEmpty=function(t){return g(t)||""===t||null===t||t!==t},this.$$updateEmptyClasses=function(t){b.$isEmpty(t)?(a.removeClass(i,$a),a.addClass(i,xa)):(a.removeClass(i,xa),a.addClass(i,$a))};var w=0;kr({ctrl:this,$element:i,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},$animate:a}),this.$setPristine=function(){b.$dirty=!1,b.$pristine=!0,a.removeClass(i,ya),a.addClass(i,ga)},this.$setDirty=function(){b.$dirty=!0,b.$pristine=!1,a.removeClass(i,ga),a.addClass(i,ya),b.$$parentForm.$setDirty()},this.$setUntouched=function(){b.$touched=!1,b.$untouched=!0,a.setClass(i,_a,ba)},this.$setTouched=function(){b.$touched=!0,b.$untouched=!1,a.setClass(i,ba,_a)},this.$rollbackViewValue=function(){s.cancel(_),b.$viewValue=b.$$lastCommittedViewValue,b.$render()},this.$validate=function(){if(!x(b.$modelValue)||!isNaN(b.$modelValue)){var t=b.$$lastCommittedViewValue,e=b.$$rawModelValue,n=b.$valid,r=b.$modelValue,i=b.$options&&b.$options.allowInvalid;b.$$runValidators(e,t,function(t){i||n===t||(b.$modelValue=t?e:void 0,b.$modelValue!==r&&b.$$writeModelToScope())})}},this.$$runValidators=function(t,e,n){function i(){var t=b.$$parserName||"parse";return g(f)?(s(t,null),!0):(f||(r(b.$validators,function(t,e){s(e,null)}),r(b.$asyncValidators,function(t,e){s(e,null)})),s(t,f),f)}function o(){var n=!0;return r(b.$validators,function(r,i){var o=r(t,e);n=n&&o,s(i,o)}),!!n||(r(b.$asyncValidators,function(t,e){s(e,null)}),!1)}function a(){var n=[],i=!0;r(b.$asyncValidators,function(r,o){var a=r(t,e);if(!O(a))throw ka("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(o,void 0),n.push(a.then(function(){s(o,!0)},function(){i=!1,s(o,!1)}))}),n.length?l.all(n).then(function(){u(i)},p):u(!0)}function s(t,e){c===w&&b.$setValidity(t,e)}function u(t){c===w&&n(t)}w++;var c=w;return i()&&o()?void a():void u(!1)},this.$commitViewValue=function(){var t=b.$viewValue;s.cancel(_),(b.$$lastCommittedViewValue!==t||""===t&&b.$$hasNativeValidators)&&(b.$$updateEmptyClasses(t),b.$$lastCommittedViewValue=t,b.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function e(){b.$modelValue!==o&&b.$$writeModelToScope()}var n=b.$$lastCommittedViewValue,r=n;if(f=!g(r)||void 0)for(var i=0;i<b.$parsers.length;i++)if(r=b.$parsers[i](r),g(r)){f=!1;break}x(b.$modelValue)&&isNaN(b.$modelValue)&&(b.$modelValue=v(t));var o=b.$modelValue,a=b.$options&&b.$options.allowInvalid;b.$$rawModelValue=r,a&&(b.$modelValue=r,e()),b.$$runValidators(r,b.$$lastCommittedViewValue,function(t){a||(b.$modelValue=t?r:void 0,e())})},this.$$writeModelToScope=function(){m(t,b.$modelValue),r(b.$viewChangeListeners,function(t){try{t()}catch(n){e(n)}})},this.$setViewValue=function(t,e){b.$viewValue=t,b.$options&&!b.$options.updateOnDefault||b.$$debounceViewValueCommit(e)},this.$$debounceViewValueCommit=function(e){var n,r=0,i=b.$options;i&&y(i.debounce)&&(n=i.debounce,x(n)?r=n:x(n[e])?r=n[e]:x(n["default"])&&(r=n["default"])),s.cancel(_),r?_=s(function(){b.$commitViewValue()},r):u.$$phase?b.$commitViewValue():t.$apply(function(){b.$commitViewValue()})},t.$watch(function(){var e=v(t);if(e!==b.$modelValue&&(b.$modelValue===b.$modelValue||e===e)){b.$modelValue=b.$$rawModelValue=e,f=void 0;for(var n=b.$formatters,r=n.length,i=e;r--;)i=n[r](i);b.$viewValue!==i&&(b.$$updateEmptyClasses(i),b.$viewValue=b.$$lastCommittedViewValue=i,b.$render(),b.$$runValidators(e,i,p))}return e})}],Sa=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Ca,priority:1,compile:function(e){return e.addClass(ga).addClass(_a).addClass(va),{pre:function(t,e,n,r){var i=r[0],o=r[1]||i.$$parentForm;i.$$setOptions(r[2]&&r[2].$options),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];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(t){o.$$debounceViewValueCommit(t&&t.type)}),n.on("blur",function(){o.$touched||(t.$$phase?e.$evalAsync(o.$setTouched):e.$apply(o.$setTouched))})}}}}}],Ea=/(\s+|^)default(\s+|$)/,Ta=function(){return{restrict:"A",controller:["$scope","$attrs",function(t,e){var n=this;this.$options=L(t.$eval(e.ngModelOptions)),y(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=Kr(this.$options.updateOn.replace(Ea,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},Aa=sr({terminal:!0,priority:1e3}),Da=e("ngOptions"),Fa=/^\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]+?))?$/,Oa=["$compile","$document","$parse",function(e,i,o){function a(t,e,r){function i(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function a(t){var e;if(!l&&n(t))e=t;else{e=[];for(var r in t)t.hasOwnProperty(r)&&"$"!==r.charAt(0)&&e.push(r)}return e}var s=t.match(Fa);if(!s)throw Da("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,J(e));var u=s[5]||s[7],l=s[6],c=/ as /.test(s[0])&&s[1],f=s[9],h=o(s[2]?s[1]:u),p=c&&o(c),d=p||h,v=f&&o(f),m=f?function(t,e){return v(r,e)}:function(t){return Jt(t)},g=function(t,e){return m(t,$(t,e))},y=o(s[2]||s[1]),_=o(s[3]||""),b=o(s[4]||""),w=o(s[8]),x={},$=l?function(t,e){return x[l]=e,x[u]=t,x}:function(t){return x[u]=t,x};return{trackBy:f,getTrackByValue:g,getWatchables:o(w,function(t){var e=[];t=t||[];for(var n=a(t),i=n.length,o=0;o<i;o++){var u=t===n?o:n[o],l=t[u],c=$(l,u),f=m(l,c);if(e.push(f),s[2]||s[1]){var h=y(r,c);e.push(h)}if(s[4]){var p=b(r,c);e.push(p)}}return e}),getOptions:function(){for(var t=[],e={},n=w(r)||[],o=a(n),s=o.length,u=0;u<s;u++){var l=n===o?u:o[u],c=n[l],h=$(c,l),p=d(r,h),v=m(p,h),x=y(r,h),k=_(r,h),C=b(r,h),S=new i(v,p,x,k,C);t.push(S),e[v]=S}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[g(t)]},getViewValueFromOption:function(t){return f?Wr.copy(t.viewValue):t.viewValue}}}}}function s(t,n,o,s){function c(t,e){var n=u.cloneNode(!1);e.appendChild(n),f(t,n)}function f(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label),t.value!==e.value&&(e.value=t.selectValue)}function h(){var t=$&&d.readValue();if($)for(var e=$.items.length-1;e>=0;e--){var r=$.items[e];Ut(r.group?r.element.parentNode:r.element)}$=k.getOptions();var i={};if(w&&n.prepend(p),$.items.forEach(function(t){var e;y(t.group)?(e=i[t.group],e||(e=l.cloneNode(!1),C.appendChild(e),e.label=t.group,i[t.group]=e),c(t,e)):c(t,C)}),n[0].appendChild(C),v.$render(),!v.$isEmpty(t)){var o=d.readValue(),a=k.trackBy||m;(a?q(t,o):t===o)||(v.$setViewValue(o),v.$render())}}for(var p,d=s[0],v=s[1],m=o.multiple,g=0,_=n.children(),b=_.length;g<b;g++)if(""===_[g].value){p=_.eq(g);break}var w=!!p,x=Ir(u.cloneNode(!1));x.val("?");var $,k=a(o.ngOptions,n,t),C=i[0].createDocumentFragment(),S=function(){w||n.prepend(p),n.val(""),p.prop("selected",!0),p.attr("selected",!0)},E=function(){w||p.remove()},T=function(){n.prepend(x),n.val("?"),x.prop("selected",!0),x.attr("selected",!0)},A=function(){x.remove()};m?(v.$isEmpty=function(t){return!t||0===t.length},d.writeValue=function(t){$.items.forEach(function(t){t.element.selected=!1}),t&&t.forEach(function(t){var e=$.getOptionFromViewValue(t);e&&(e.element.selected=!0)})},d.readValue=function(){var t=n.val()||[],e=[];return r(t,function(t){var n=$.selectValueMap[t];n&&!n.disabled&&e.push($.getViewValueFromOption(n))}),e},k.trackBy&&t.$watchCollection(function(){if(Br(v.$viewValue))return v.$viewValue.map(function(t){return k.getTrackByValue(t)})},function(){v.$render()})):(d.writeValue=function(t){
var e=$.getOptionFromViewValue(t);e?(n[0].value!==e.selectValue&&(A(),E(),n[0].value=e.selectValue,e.element.selected=!0),e.element.setAttribute("selected","selected")):null===t||w?(A(),S()):(E(),T())},d.readValue=function(){var t=$.selectValueMap[n.val()];return t&&!t.disabled?(E(),A(),$.getViewValueFromOption(t)):null},k.trackBy&&t.$watch(function(){return k.getTrackByValue(v.$viewValue)},function(){v.$render()})),w?(p.remove(),e(p)(t),p.removeClass("ng-scope")):p=Ir(u.cloneNode(!1)),n.empty(),h(),t.$watchCollection(k.getWatchables,h)}var u=t.document.createElement("option"),l=t.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=p},post:s}}}],ja=["$locale","$interpolate","$log",function(t,e,n){var i=/{}/g,o=/^when(Minus)?(.+)$/;return{link:function(a,s,u){function l(t){s.text(t||"")}var c,f=u.count,h=u.$attr.when&&s.attr(u.$attr.when),d=u.offset||0,v=a.$eval(h)||{},m={},y=e.startSymbol(),_=e.endSymbol(),b=y+f+"-"+d+_,w=Wr.noop;r(u,function(t,e){var n=o.exec(e);if(n){var r=(n[1]?"-":"")+Dr(n[2]);v[r]=s.attr(u.$attr[e])}}),r(v,function(t,n){m[n]=e(t.replace(i,b))}),a.$watch(f,function(e){var r=parseFloat(e),i=isNaN(r);if(i||r in v||(r=t.pluralCat(r-d)),r!==c&&!(i&&x(c)&&isNaN(c))){w();var o=m[r];g(o)?(null!=e&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+h),w=p,l()):w=a.$watch(o,l),c=r}})}}}],Ma=["$parse","$animate","$compile",function(t,i,o){var a="$$NG_REMOVED",s=e("ngRepeat"),u=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))},l=function(t){return t.clone[0]},c=function(t){return t.clone[t.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(e,f){var h=f.ngRepeat,p=o.$$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 s("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],y=d[4];if(d=v.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!d)throw s("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",v);var _=d[3]||d[1],b=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 s("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",g);var w,x,$,k,C={$id:Jt};return y?w=t(y):($=function(t,e){return Jt(e)},k=function(t){return t}),function(t,e,o,f,d){w&&(x=function(e,n,r){return b&&(C[b]=e),C[_]=n,C.$index=r,w(t,C)});var v=vt();t.$watchCollection(m,function(o){var f,m,y,w,C,S,E,T,A,D,F,O,j=e[0],M=vt();if(g&&(t[g]=o),n(o))A=o,T=x||$;else{T=x||k,A=[];for(var I in o)Ar.call(o,I)&&"$"!==I.charAt(0)&&A.push(I)}for(w=A.length,F=new Array(w),f=0;f<w;f++)if(C=o===A?f:A[f],S=o[C],E=T(C,S,f),v[E])D=v[E],delete v[E],M[E]=D,F[f]=D;else{if(M[E])throw r(F,function(t){t&&t.scope&&(v[t.id]=t)}),s("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,E,S);F[f]={id:E,scope:void 0,clone:void 0},M[E]=!0}for(var P in v){if(D=v[P],O=dt(D.clone),i.leave(O),O[0].parentNode)for(f=0,m=O.length;f<m;f++)O[f][a]=!0;D.scope.$destroy()}for(f=0;f<w;f++)if(C=o===A?f:A[f],S=o[C],D=F[f],D.scope){y=j;do y=y.nextSibling;while(y&&y[a]);l(D)!=y&&i.move(dt(D.clone),null,j),j=c(D),u(D.scope,f,_,S,b,C,w)}else d(function(t,e){D.scope=e;var n=p.cloneNode(!1);t[t.length++]=n,i.enter(t,null,j),j=n,D.clone=t,M[D.id]=D,u(D.scope,f,_,S,b,C,w)});v=M})}}}}],Ia="ng-hide",Pa="ng-hide-animate",Na=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngShow,function(e){t[e?"removeClass":"addClass"](n,Ia,{tempClasses:Pa})})}}}],Ra=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngHide,function(e){t[e?"addClass":"removeClass"](n,Ia,{tempClasses:Pa})})}}}],La=sr(function(t,e,n){t.$watch(n.ngStyle,function(t,n){n&&t!==n&&r(n,function(t,n){e.css(n,"")}),t&&e.css(t)},!0)}),za=["$animate","$compile",function(t,e){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,i,o,a){var s=o.ngSwitch||o.on,u=[],l=[],c=[],f=[],h=function(t,e){return function(){t.splice(e,1)}};n.$watch(s,function(n){var i,o;for(i=0,o=c.length;i<o;++i)t.cancel(c[i]);for(c.length=0,i=0,o=f.length;i<o;++i){var s=dt(l[i].clone);f[i].$destroy();var p=c[i]=t.leave(s);p.then(h(c,i))}l.length=0,f.length=0,(u=a.cases["!"+n]||a.cases["?"])&&r(u,function(n){n.transclude(function(r,i){f.push(i);var o=n.element;r[r.length++]=e.$$createComment("end ngSwitchWhen");var a={clone:r};l.push(a),t.enter(r,o.parent(),o)})})})}}}],qa=sr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:e})}}),Ha=sr({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})}}),Ua=e("ngTransclude"),Wa=sr({restrict:"EAC",link:function(t,e,n,r,i){function o(t){t.length&&(e.empty(),e.append(t))}if(n.ngTransclude===n.$attr.ngTransclude&&(n.ngTransclude=""),!i)throw Ua("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",J(e));var a=n.ngTransclude||n.ngTranscludeSlot;i(o,null,a)}}),Va=["$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)}}}}],Ba={$setViewValue:p,$render:p},Ya=["$element","$scope",function(e,n){var r=this,i=new Qt;r.ngModelCtrl=Ba,r.unknownOption=Ir(t.document.createElement("option")),r.renderUnknownOption=function(t){var n="? "+Jt(t)+" ?";r.unknownOption.val(n),e.prepend(r.unknownOption),e.val(n)},n.$on("$destroy",function(){r.renderUnknownOption=p}),r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.readValue=function(){return r.removeUnknownOption(),e.val()},r.writeValue=function(t){r.hasOption(t)?(r.removeUnknownOption(),e.val(t),""===t&&r.emptyOption.prop("selected",!0)):null==t&&r.emptyOption?(r.removeUnknownOption(),e.val("")):r.renderUnknownOption(t)},r.addOption=function(t,e){if(e[0].nodeType!==oi){ht(t,'"option value"'),""===t&&(r.emptyOption=e);var n=i.get(t)||0;i.put(t,n+1),r.ngModelCtrl.$render(),Sr(e)}},r.removeOption=function(t){var e=i.get(t);e&&(1===e?(i.remove(t),""===t&&(r.emptyOption=void 0)):i.put(t,e-1))},r.hasOption=function(t){return!!i.get(t)},r.registerOption=function(t,e,n,i,o){if(i){var a;n.$observe("value",function(t){y(a)&&r.removeOption(a),a=t,r.addOption(t,e)})}else o?t.$watch(o,function(t,i){n.$set("value",t),i!==t&&r.removeOption(i),r.addOption(t,e)}):r.addOption(n.value,e);e.on("$destroy",function(){r.removeOption(n.value),r.ngModelCtrl.$render()})}}],Ka=function(){function t(t,e,n,i){var o=i[1];if(o){var a=i[0];if(a.ngModelCtrl=o,e.on("change",function(){t.$apply(function(){o.$setViewValue(a.readValue())})}),n.multiple){a.readValue=function(){var t=[];return r(e.find("option"),function(e){e.selected&&t.push(e.value)}),t},a.writeValue=function(t){var n=new Qt(t);r(e.find("option"),function(t){t.selected=y(n.get(t.value))})};var s,u=NaN;t.$watch(function(){u!==o.$viewValue||q(s,o.$viewValue)||(s=z(o.$viewValue),o.$render()),u=o.$viewValue}),o.$isEmpty=function(t){return!t||0===t.length}}}}function e(t,e,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:Ya,priority:1,link:{pre:t,post:e}}},Ga=["$interpolate",function(t){return{restrict:"E",priority:100,compile:function(e,n){if(y(n.value))var r=t(n.value,!0);else{var i=t(e.text(),!0);i||n.$set("value",e.text())}return function(t,e,n){var o="$selectController",a=e.parent(),s=a.data(o)||a.parent().data(o);s&&s.registerOption(t,e,n,r,i)}}}}],Xa=v({restrict:"E",terminal:!1}),Ja=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){r&&(n.required=!0,r.$validators.required=function(t,e){return!n.required||!r.$isEmpty(e)},n.$observe("required",function(){r.$validate()}))}}},Qa=function(){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o,a=r.ngPattern||r.pattern;r.$observe("pattern",function(t){if(w(t)&&t.length>0&&(t=new RegExp("^"+t+"$")),t&&!t.test)throw e("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,t,J(n));o=t||void 0,i.$validate()}),i.$validators.pattern=function(t,e){return i.$isEmpty(e)||g(o)||o.test(e)}}}}},Za=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=-1;n.$observe("maxlength",function(t){var e=f(t);i=isNaN(e)?-1:e,r.$validate()}),r.$validators.maxlength=function(t,e){return i<0||r.$isEmpty(e)||e.length<=i}}}}},ts=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=0;n.$observe("minlength",function(t){i=f(t)||0,r.$validate()}),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=i}}}}};return t.angular.bootstrap?void(t.console&&console.log("WARNING: Tried to load angular more than once.")):(lt(),_t(Wr),Wr.module("ngLocale",[],["$provide",function(t){function e(t){t+="";var e=t.indexOf(".");return e==-1?0:t.length-e-1}function n(t,n){var r=n;void 0===r&&(r=Math.min(e(t),3));var i=Math.pow(10,r),o=(t*i|0)%i;return{v:r,f:o}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};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 i=0|t,o=n(t,e);return 1==i&&0==o.v?r.ONE:r.OTHER}})}]),void Ir(t.document).ready(function(){it(t.document,ot)}))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@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;}</style>'),function(t,e){"use strict";function n(){function t(t,n){return e.extend(Object.create(t),n)}function n(t,e){var n=e.caseInsensitiveMatch,r={originalPath:t,regexp:t},i=r.keys=[];return t=t.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[\?\*])?/g,function(t,e,n,r){var o="?"===r||"*?"===r?"?":null,a="*"===r||"*?"===r?"*":null;return i.push({name:n,optional:!!o}),e=e||"",""+(o?"":e)+"(?:"+(o?e:"")+(a&&"(.+?)"||"([^/]+)")+(o||"")+")"+(o||"")}).replace(/([\/$\*])/g,"\\$1"),r.regexp=new RegExp("^"+t+"$",n?"i":""),r}var r={};this.when=function(t,i){var o=e.copy(i);if(e.isUndefined(o.reloadOnSearch)&&(o.reloadOnSearch=!0),e.isUndefined(o.caseInsensitiveMatch)&&(o.caseInsensitiveMatch=this.caseInsensitiveMatch),r[t]=e.extend(o,t&&n(t,o)),t){var a="/"==t[t.length-1]?t.substr(0,t.length-1):t+"/";r[a]=e.extend({redirectTo:t},n(a,o))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(t){return"string"==typeof t&&(t={redirectTo:t}),this.when(null,t),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(n,i,o,a,u,l,c){function f(t,e){var n=e.keys,r={};if(!e.regexp)return null;var i=e.regexp.exec(t);if(!i)return null;for(var o=1,a=i.length;o<a;++o){var s=n[o-1],u=i[o];s&&u&&(r[s.name]=u)}return r}function h(t){var r=_.current;m=d(),g=m&&r&&m.$$route===r.$$route&&e.equals(m.pathParams,r.pathParams)&&!m.reloadOnSearch&&!y,g||!r&&!m||n.$broadcast("$routeChangeStart",m,r).defaultPrevented&&t&&t.preventDefault()}function p(){var t=_.current,r=m;g?(t.params=r.params,e.copy(t.params,o),n.$broadcast("$routeUpdate",t)):(r||t)&&(y=!1,_.current=r,r&&r.redirectTo&&(e.isString(r.redirectTo)?i.path(v(r.redirectTo,r.params)).search(r.params).replace():i.url(r.redirectTo(r.pathParams,i.path(),i.search())).replace()),a.when(r).then(function(){if(r){var t,n,i=e.extend({},r.resolve);return e.forEach(i,function(t,n){i[n]=e.isString(t)?u.get(t):u.invoke(t,null,null,n)}),e.isDefined(t=r.template)?e.isFunction(t)&&(t=t(r.params)):e.isDefined(n=r.templateUrl)&&(e.isFunction(n)&&(n=n(r.params)),e.isDefined(n)&&(r.loadedTemplateUrl=c.valueOf(n),t=l(n))),e.isDefined(t)&&(i.$template=t),a.all(i)}}).then(function(i){r==_.current&&(r&&(r.locals=i,e.copy(r.params,o)),n.$broadcast("$routeChangeSuccess",r,t))},function(e){r==_.current&&n.$broadcast("$routeChangeError",r,t,e)}))}function d(){var n,o;return e.forEach(r,function(r,a){!o&&(n=f(i.path(),r))&&(o=t(r,{params:e.extend({},i.search(),n),pathParams:n}),o.$$route=r)}),o||r[null]&&t(r[null],{params:{},pathParams:{}})}function v(t,n){var r=[];return e.forEach((t||"").split(":"),function(t,e){if(0===e)r.push(t);else{var i=t.match(/(\w+)(?:[?*])?(.*)/),o=i[1];r.push(n[o]),r.push(i[2]||""),delete n[o]}}),r.join("")}var m,g,y=!1,_={routes:r,reload:function(){y=!0;var t={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0,y=!1}};n.$evalAsync(function(){h(t),t.defaultPrevented||p()})},updateParams:function(t){if(!this.current||!this.current.$$route)throw s("norout","Tried updating route when with no current route");t=e.extend({},this.current.params,t),i.path(v(this.current.$$route.originalPath,t)),i.search(t)}};return n.$on("$locationChangeStart",h),n.$on("$locationChangeSuccess",p),_}]}function r(){this.$get=function(){return{}}}function i(t,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,a,s,u){function l(){p&&(r.cancel(p),p=null),f&&(f.$destroy(),f=null),h&&(p=r.leave(h),p.then(function(){p=null}),h=null)}function c(){var a=t.current&&t.current.locals,s=a&&a.$template;if(e.isDefined(s)){var c=i.$new(),p=t.current,m=u(c,function(t){r.enter(t,null,h||o).then(function(){!e.isDefined(d)||d&&!i.$eval(d)||n()}),l()});h=m,f=p.scope=c,f.$emit("$viewContentLoaded"),f.$eval(v)}else l()}var f,h,p,d=a.autoscroll,v=a.onload||"";i.$on("$routeChangeSuccess",c),c()}}}function o(t,e,n){return{restrict:"ECA",priority:-400,link:function(r,i){var o=n.current,a=o.locals;i.html(a.$template);var s=t(i.contents());if(o.controller){a.$scope=r;var u=e(o.controller,a);o.controllerAs&&(r[o.controllerAs]=u),i.data("$ngControllerController",u),i.children().data("$ngControllerController",u)}r[o.resolveAs||"$resolve"]=a,s(r)}}}var a=e.module("ngRoute",["ng"]).provider("$route",n),s=e.$$minErr("ngRoute");a.provider("$routeParams",r),a.directive("ngView",i),a.directive("ngView",o),i.$inject=["$route","$anchorScroll","$animate"],o.$inject=["$compile","$controller","$route"]}(window,window.angular),function(t,e){"use strict";function n(){var t=!1;this.$get=["$$sanitizeUri",function(n){return t&&e.extend(x,b),function(t){var e=[];return o(t,u(e,function(t,e){return!/^unsafe:/.test(n(t,e))})),e.join("")}}],this.enableSvg=function(n){return e.isDefined(n)?(t=n,this):t}}function r(t){var n=[],r=u(n,e.noop);return r.chars(t),n.join("")}function i(t,n){var r,i={},o=t.split(",");for(r=0;r<o.length;r++)i[n?e.lowercase(o[r]):o[r]]=!0;return i}function o(e,n){null===e||void 0===e?e="":"string"!=typeof e&&(e=""+e),c.innerHTML=e;var r=5;do{if(0===r)throw f("uinput","Failed to sanitize html because the input is unstable");r--,t.document.documentMode&&l(c),e=c.innerHTML,c.innerHTML=e}while(e!==c.innerHTML);for(var i=c.firstChild;i;){switch(i.nodeType){case 1:n.start(i.nodeName.toLowerCase(),a(i.attributes));break;case 3:n.chars(i.textContent)}var o;if(!(o=i.firstChild)&&(1==i.nodeType&&n.end(i.nodeName.toLowerCase()),o=i.nextSibling,!o))for(;null==o&&(i=i.parentNode,i!==c);)o=i.nextSibling,1==i.nodeType&&n.end(i.nodeName.toLowerCase());i=o}for(;i=c.firstChild;)c.removeChild(i)}function a(t){for(var e={},n=0,r=t.length;n<r;n++){var i=t[n];e[i.name]=i.value}return e}function s(t){return t.replace(/&/g,"&amp;").replace(h,function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1);return"&#"+(1024*(e-55296)+(n-56320)+65536)+";"}).replace(p,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function u(t,n){var r=!1,i=e.bind(t,t.push);return{start:function(t,o){t=e.lowercase(t),!r&&w[t]&&(r=t),r||x[t]!==!0||(i("<"),i(t),e.forEach(o,function(r,o){var a=e.lowercase(o),u="img"===t&&"src"===a||"background"===a;S[a]!==!0||$[a]===!0&&!n(r,u)||(i(" "),i(o),i('="'),i(s(r)),i('"'))}),i(">"))},end:function(t){t=e.lowercase(t),r||x[t]!==!0||d[t]===!0||(i("</"),i(t),i(">")),t==r&&(r=!1)},chars:function(t){r||i(s(t))}}}function l(e){if(e.nodeType===t.Node.ELEMENT_NODE)for(var n=e.attributes,r=0,i=n.length;r<i;r++){var o=n[r],a=o.name.toLowerCase();"xmlns:ns1"!==a&&0!==a.indexOf("ns1:")||(e.removeAttributeNode(o),r--,i--)}var s=e.firstChild;s&&l(s),s=e.nextSibling,s&&l(s)}var c,f=e.$$minErr("$sanitize"),h=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=/([^\#-~ |!])/g,d=i("area,br,col,hr,img,wbr"),v=i("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),m=i("rp,rt"),g=e.extend({},m,v),y=e.extend({},v,i("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),_=e.extend({},m,i("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),b=i("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),w=i("script,style"),x=e.extend({},d,y,_,g),$=i("background,cite,href,longdesc,src,xlink:href"),k=i("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),C=i("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),S=e.extend({},$,C,k);!function(t){var e;if(!t.document||!t.document.implementation)throw f("noinert","Can't create an inert html document");e=t.document.implementation.createHTMLDocument("inert");var n=e.documentElement||e.getDocumentElement(),r=n.getElementsByTagName("body");if(1===r.length)c=r[0];else{var i=e.createElement("html");c=e.createElement("body"),i.appendChild(c),e.appendChild(i)}}(t),e.module("ngSanitize",[]).provider("$sanitize",n),e.module("ngSanitize").filter("linky",["$sanitize",function(t){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,i=/^mailto:/i,o=e.$$minErr("linky"),a=e.isString;return function(s,u,l){function c(t){t&&m.push(r(t))}function f(t,n){var r;if(m.push("<a "),e.isFunction(l)&&(l=l(t)),e.isObject(l))for(r in l)m.push(r+'="'+l[r]+'" ');else l={};!e.isDefined(u)||"target"in l||m.push('target="',u,'" '),m.push('href="',t.replace(/"/g,"&quot;"),'">'),c(n),m.push("</a>")}if(null==s||""===s)return s;if(!a(s))throw o("notstring","Expected string but received: {0}",s);for(var h,p,d,v=s,m=[];h=v.match(n);)p=h[0],h[2]||h[4]||(p=(h[3]?"http://":"mailto:")+p),d=h.index,c(v.substr(0,d)),f(p,h[0].replace(i,"")),v=v.substring(d+h[0].length);return c(v),t(m.join(""))}}])}(window,window.angular),function(t,e){"use strict";function n(t,e,n){if(!t)throw vt("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function r(t,e){return t||e?t?e?(H(t)&&(t=t.join(" ")),H(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function i(t){var e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}function o(t,e,n){var r="";return t=H(t)?t:t&&U(t)&&t.length?t.split(/\s+/):[],q(t,function(t,i){t&&t.length>0&&(r+=i>0?" ":"",r+=n?e+t:t+e)}),r}function a(t,e){var n=t.indexOf(e);e>=0&&t.splice(n,1)}function s(t){if(t instanceof z)switch(t.length){case 0:return[];case 1:if(t[0].nodeType===G)return t;break;default:return z(u(t))}if(t.nodeType===G)return z(t)}function u(t){if(!t[0])return t;for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType==G)return n}}function l(t,e,n){q(e,function(e){t.addClass(e,n)})}function c(t,e,n){q(e,function(e){t.removeClass(e,n)})}function f(t){return function(e,n){n.addClass&&(l(t,e,n.addClass),n.addClass=null),n.removeClass&&(c(t,e,n.removeClass),n.removeClass=null)}}function h(t){if(t=t||{},!t.$$prepared){var e=t.domOperation||N;t.domOperation=function(){t.$$domOperationFired=!0,e(),e=N},t.$$prepared=!0}return t}function p(t,e){d(t,e),v(t,e)}function d(t,e){e.from&&(t.css(e.from),e.from=null)}function v(t,e){e.to&&(t.css(e.to),e.to=null)}function m(t,e,n){var r=e.options||{},i=n.options||{},o=(r.addClass||"")+" "+(i.addClass||""),a=(r.removeClass||"")+" "+(i.removeClass||""),s=g(t.attr("class"),o,a);i.preparationClasses&&(r.preparationClasses=k(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);var u=r.domOperation!==N?r.domOperation:null;return L(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 g(t,e,n){function r(t){U(t)&&(t=t.split(" "));var e={};return q(t,function(t){t.length&&(e[t]=!0)}),e}var i=1,o=-1,a={};t=r(t),e=r(e),q(e,function(t,e){a[e]=i}),n=r(n),q(n,function(t,e){a[e]=a[e]===i?null:o});var s={addClass:"",removeClass:""};return q(a,function(e,n){var r,a;e===i?(r="addClass",a=!t[n]):e===o&&(r="removeClass",a=t[n]),a&&(s[r].length&&(s[r]+=" "),s[r]+=n)}),s}function y(t){return t instanceof e.element?t[0]:t}function _(t,e,n){var r="";e&&(r=o(e,Q,!0)),n.addClass&&(r=k(r,o(n.addClass,X))),n.removeClass&&(r=k(r,o(n.removeClass,J))),r.length&&(n.preparationClasses=r,t.addClass(r))}function b(t,e){e.preparationClasses&&(t.removeClass(e.preparationClasses),e.preparationClasses=null),e.activeClasses&&(t.removeClass(e.activeClasses),e.activeClasses=null)}function w(t,e){var n=e?"-"+e+"s":"";return $(t,[pt,n]),[pt,n]}function x(t,e){var n=e?"paused":"",r=I+lt;return $(t,[r,n]),[r,n]}function $(t,e){var n=e[0],r=e[1];t.style[n]=r}function k(t,e){return t?e?t+" "+e:t:e}function C(t){return[ht,t+"s"]}function S(t,e){var n=e?ft:pt;return[n,t+"s"]}function E(t,e,n){var r=Object.create(null),i=t.getComputedStyle(e)||{};return q(n,function(t,e){var n=i[t];if(n){var o=n.charAt(0);("-"===o||"+"===o||o>=0)&&(n=T(n)),0===n&&(n=null),r[e]=n}}),r}function T(t){var e=0,n=t.split(/\s*,\s*/);return q(n,function(t){"s"==t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,e=e?Math.max(t,e):t}),e}function A(t){return 0===t||null!=t}function D(t,e){var n=j,r=t+"s";return e?n+=it:r+=" linear all",[n,r]}function F(){var t=Object.create(null);return{flush:function(){t=Object.create(null)},count:function(e){var n=t[e];return n?n.total:0},get:function(e){var n=t[e];return n&&n.value},put:function(e,n){t[e]?t[e].total++:t[e]={total:1,value:n}}}}function O(t,e,n){q(n,function(n){t[n]=B(t[n])?t[n]:e.style.getPropertyValue(n)})}var j,M,I,P,N=e.noop,R=e.copy,L=e.extend,z=e.element,q=e.forEach,H=e.isArray,U=e.isString,W=e.isObject,V=e.isUndefined,B=e.isDefined,Y=e.isFunction,K=e.isElement,G=1,X="-add",J="-remove",Q="ng-",Z="-active",tt="-prepare",et="ng-animate",nt="$$ngAnimateChildren",rt="";V(t.ontransitionend)&&B(t.onwebkittransitionend)?(rt="-webkit-",j="WebkitTransition",M="webkitTransitionEnd transitionend"):(j="transition",M="transitionend"),V(t.onanimationend)&&B(t.onwebkitanimationend)?(rt="-webkit-",I="WebkitAnimation",P="webkitAnimationEnd animationend"):(I="animation",P="animationend");var it="Duration",ot="Property",at="Delay",st="TimingFunction",ut="IterationCount",lt="PlayState",ct=9999,ft=I+at,ht=I+it,pt=j+at,dt=j+it,vt=e.$$minErr("ng"),mt=["$$rAF",function(t){function e(t){r=r.concat(t),n()}function n(){if(r.length){for(var e=r.shift(),o=0;o<e.length;o++)e[o]();i||t(function(){i||n()})}}var r,i;return r=e.queue=[],e.waitUntilQuiet=function(e){i&&i(),i=t(function(){i=null,e(),n()})},e}],gt=["$interpolate",function(t){return{link:function(n,r,i){function o(t){t="on"===t||"true"===t,r.data(nt,t)}var a=i.ngAnimateChildren;e.isString(a)&&0===a.length?r.data(nt,!0):(o(t(a)(n)),i.$observe("ngAnimateChildren",o))}}}],yt="$$animateCss",_t=1e3,bt=3,wt=1.5,xt={transitionDuration:dt,transitionDelay:pt,transitionProperty:j+ot,animationDuration:ht,animationDelay:ft,animationIterationCount:I+ut},$t={transitionDuration:dt,transitionDelay:pt,animationDuration:ht,animationDelay:ft},kt=["$animateProvider",function(t){var e=F(),n=F();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(t,r,s,u,l,c,m,g){function _(t,e){var n="$$ngAnimateParentKey",r=t.parentNode,i=r[n]||(r[n]=++z);return i+"-"+t.getAttribute("class")+"-"+e}function b(n,r,i,o){var a=e.get(i);return a||(a=E(t,n,o),"infinite"===a.animationIterationCount&&(a.animationIterationCount=1)),e.put(i,a),a}function k(i,a,s,u){var l;if(e.count(s)>0&&(l=n.get(s),!l)){var c=o(a,"-stagger");r.addClass(i,c),l=E(t,i,u),l.animationDuration=Math.max(l.animationDuration,0),l.transitionDuration=Math.max(l.transitionDuration,0),r.removeClass(i,c),n.put(s,l)}return l||{}}function T(t){U.push(t),m.waitUntilQuiet(function(){e.flush(),n.flush();for(var t=l(),r=0;r<U.length;r++)U[r](t);U.length=0})}function F(t,e,n){var r=b(t,e,n,xt),i=r.animationDelay,o=r.transitionDelay;return r.maxDelay=i&&o?Math.max(i,o):i||o,r.maxDuration=Math.max(r.animationDuration*r.animationIterationCount,r.transitionDuration),r}var L=f(r),z=0,U=[];return function(t,n){function l(){m()}function f(){m(!0)}function m(e){if(!(Y||G&&K)){Y=!0,K=!1,W.$$skipPreparationClasses||r.removeClass(t,xt),r.removeClass(t,Ct),x(B,!1),w(B,!1),q(lt,function(t){B.style[t[0]]=""}),L(t,W),p(t,W),Object.keys(V).length&&q(V,function(t,e){t?B.style.setProperty(e,t):B.style.removeProperty(e)}),W.onDone&&W.onDone(),pt&&pt.length&&t.off(pt.join(" "),z);var n=t.data(yt);n&&(u.cancel(n[0].timer),t.removeData(yt)),tt&&tt.complete(!e)}}function b(t){Lt.blockTransition&&w(B,t),Lt.blockKeyframeAnimation&&x(B,!!t)}function E(){return tt=new s({end:l,cancel:f}),T(N),m(),{$$willAnimate:!1,start:function(){return tt},end:l}}function z(t){t.stopPropagation();var e=t.originalEvent||t,n=e.$manualTimeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(bt));Math.max(n-ut,0)>=rt&&r>=it&&(G=!0,m())}function U(){function e(){if(!Y){if(b(!1),q(lt,function(t){var e=t[0],n=t[1];B.style[e]=n}),L(t,W),r.addClass(t,Ct),Lt.recalculateTimingStyles){if(kt=B.className+" "+xt,Tt=_(B,kt),Nt=F(B,kt,Tt),Rt=Nt.maxDelay,nt=Math.max(Rt,0),it=Nt.maxDuration,0===it)return void m();Lt.hasTransitions=Nt.transitionDuration>0,Lt.hasAnimations=Nt.animationDuration>0}if(Lt.applyAnimationDelay&&(Rt="boolean"!=typeof W.delay&&A(W.delay)?parseFloat(W.delay):Rt,nt=Math.max(Rt,0),Nt.animationDelay=Rt,zt=S(Rt,!0),lt.push(zt),B.style[zt[0]]=zt[1]),rt=nt*_t,at=it*_t,W.easing){var e,i=W.easing;Lt.hasTransitions&&(e=j+st,lt.push([e,i]),B.style[e]=i),Lt.hasAnimations&&(e=I+st,lt.push([e,i]),B.style[e]=i)}Nt.transitionDuration&&pt.push(M),Nt.animationDuration&&pt.push(P),ut=Date.now();var o=rt+wt*at,a=ut+o,s=t.data(yt)||[],l=!0;if(s.length){var c=s[0];l=a>c.expectedEndTime,l?u.cancel(c.timer):s.push(m)}if(l){var f=u(n,o,!1);s[0]={timer:f,expectedEndTime:a},s.push(m),t.data(yt,s)}pt.length&&t.on(pt.join(" "),z),W.to&&(W.cleanupStyles&&O(V,B,Object.keys(W.to)),v(t,W))}}function n(){var e=t.data(yt);if(e){for(var n=1;n<e.length;n++)e[n]();t.removeData(yt)}}if(!Y){if(!B.parentNode)return void m();var i=function(t){if(G)K&&t&&(K=!1,m());else if(K=!t,Nt.animationDuration){var e=x(B,K);K?lt.push(e):a(lt,e)}},o=It>0&&(Nt.transitionDuration&&0===At.transitionDuration||Nt.animationDuration&&0===At.animationDuration)&&Math.max(At.animationDelay,At.transitionDelay);o?u(e,Math.floor(o*It*_t),!1):e(),et.resume=function(){i(!0)},et.pause=function(){i(!1)}}}var W=n||{};W.$$prepared||(W=h(R(W)));var V={},B=y(t);if(!B||!B.parentNode||!g.enabled())return E();var Y,K,G,tt,et,nt,rt,it,at,ut,lt=[],ft=t.attr("class"),ht=i(W),pt=[];if(0===W.duration||!c.animations&&!c.transitions)return E();var dt=W.event&&H(W.event)?W.event.join(" "):W.event,vt=dt&&W.structural,mt="",gt="";vt?mt=o(dt,Q,!0):dt&&(mt=dt),W.addClass&&(gt+=o(W.addClass,X)),W.removeClass&&(gt.length&&(gt+=" "),gt+=o(W.removeClass,J)),W.applyClassesEarly&&gt.length&&L(t,W);var xt=[mt,gt].join(" ").trim(),kt=ft+" "+xt,Ct=o(xt,Z),St=ht.to&&Object.keys(ht.to).length>0,Et=(W.keyframeStyle||"").length>0;if(!Et&&!St&&!xt)return E();var Tt,At;if(W.stagger>0){var Dt=parseFloat(W.stagger);At={transitionDelay:Dt,animationDelay:Dt,transitionDuration:0,animationDuration:0}}else Tt=_(B,kt),At=k(B,xt,Tt,$t);W.$$skipPreparationClasses||r.addClass(t,xt);var Ft;if(W.transitionStyle){var Ot=[j,W.transitionStyle];$(B,Ot),lt.push(Ot)}if(W.duration>=0){Ft=B.style[j].length>0;var jt=D(W.duration,Ft);$(B,jt),lt.push(jt)}if(W.keyframeStyle){var Mt=[I,W.keyframeStyle];$(B,Mt),lt.push(Mt)}var It=At?W.staggerIndex>=0?W.staggerIndex:e.count(Tt):0,Pt=0===It;Pt&&!W.skipBlocking&&w(B,ct);var Nt=F(B,kt,Tt),Rt=Nt.maxDelay;nt=Math.max(Rt,0),it=Nt.maxDuration;var Lt={};if(Lt.hasTransitions=Nt.transitionDuration>0,Lt.hasAnimations=Nt.animationDuration>0,Lt.hasTransitionAll=Lt.hasTransitions&&"all"==Nt.transitionProperty,Lt.applyTransitionDuration=St&&(Lt.hasTransitions&&!Lt.hasTransitionAll||Lt.hasAnimations&&!Lt.hasTransitions),Lt.applyAnimationDuration=W.duration&&Lt.hasAnimations,Lt.applyTransitionDelay=A(W.delay)&&(Lt.applyTransitionDuration||Lt.hasTransitions),
Lt.applyAnimationDelay=A(W.delay)&&Lt.hasAnimations,Lt.recalculateTimingStyles=gt.length>0,(Lt.applyTransitionDuration||Lt.applyAnimationDuration)&&(it=W.duration?parseFloat(W.duration):it,Lt.applyTransitionDuration&&(Lt.hasTransitions=!0,Nt.transitionDuration=it,Ft=B.style[j+ot].length>0,lt.push(D(it,Ft))),Lt.applyAnimationDuration&&(Lt.hasAnimations=!0,Nt.animationDuration=it,lt.push(C(it)))),0===it&&!Lt.recalculateTimingStyles)return E();if(null!=W.delay){var zt;"boolean"!=typeof W.delay&&(zt=parseFloat(W.delay),nt=Math.max(zt,0)),Lt.applyTransitionDelay&&lt.push(S(zt)),Lt.applyAnimationDelay&&lt.push(S(zt,!0))}return null==W.duration&&Nt.transitionDuration>0&&(Lt.recalculateTimingStyles=Lt.recalculateTimingStyles||Pt),rt=nt*_t,at=it*_t,W.skipBlocking||(Lt.blockTransition=Nt.transitionDuration>0,Lt.blockKeyframeAnimation=Nt.animationDuration>0&&At.animationDelay>0&&0===At.animationDuration),W.from&&(W.cleanupStyles&&O(V,B,Object.keys(W.from)),d(t,W)),Lt.blockTransition||Lt.blockKeyframeAnimation?b(it):W.skipBlocking||w(B,!1),{$$willAnimate:!0,end:l,start:function(){if(!Y)return et={end:l,cancel:f,resume:null,pause:null},tt=new s(et),T(U),tt}}}}]}],Ct=["$$animationProvider",function(t){function e(t){return t.parentNode&&11===t.parentNode.nodeType}t.drivers.push("$$animateCssDriver");var n="ng-animate-shim",r="ng-anchor",i="ng-anchor-out",o="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(t,a,s,u,l,c,h){function p(t){return t.replace(/\bng-\S+\b/g,"")}function d(t,e){return U(t)&&(t=t.split(" ")),U(e)&&(e=e.split(" ")),t.filter(function(t){return e.indexOf(t)===-1}).join(" ")}function v(e,a,u){function l(t){var e={},n=y(t).getBoundingClientRect();return q(["width","height","top","left"],function(t){var r=n[t];switch(t){case"top":r+=_.scrollTop;break;case"left":r+=_.scrollLeft}e[t]=Math.floor(r)+"px"}),e}function c(){var e=t(m,{addClass:i,delay:!0,from:l(a)});return e.$$willAnimate?e:null}function f(t){return t.attr("class")||""}function h(){var e=p(f(u)),n=d(e,g),r=d(g,e),a=t(m,{to:l(u),addClass:o+" "+n,removeClass:i+" "+r,delay:!0});return a.$$willAnimate?a:null}function v(){m.remove(),a.removeClass(n),u.removeClass(n)}var m=z(y(a).cloneNode(!0)),g=p(f(m));a.addClass(n),u.addClass(n),m.addClass(r),w.append(m);var b,x=c();if(!x&&(b=h(),!b))return v();var $=x||b;return{start:function(){function t(){n&&n.end()}var e,n=$.start();return n.done(function(){return n=null,!b&&(b=h())?(n=b.start(),n.done(function(){n=null,v(),e.complete()}),n):(v(),void e.complete())}),e=new s({end:t,cancel:t})}}}function m(t,e,n,r){var i=g(t,N),o=g(e,N),a=[];if(q(r,function(t){var e=t.out,r=t["in"],i=v(n,e,r);i&&a.push(i)}),i||o||0!==a.length)return{start:function(){function t(){q(e,function(t){t.end()})}var e=[];i&&e.push(i.start()),o&&e.push(o.start()),q(a,function(t){e.push(t.start())});var n=new s({end:t,cancel:t});return s.all(e,function(t){n.complete(t)}),n}}}function g(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=k(r.event,r.preparationClasses));var i=t(n,r);return i.$$willAnimate?i:null}if(!l.animations&&!l.transitions)return N;var _=h[0].body,b=y(u),w=z(e(b)||_.contains(b)?b:_);f(c);return function(t){return t.from&&t.to?m(t.from,t.to,t.classes,t.anchors):g(t)}}]}],St=["$animateProvider",function(t){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(e,n,r){function i(n){n=H(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}var o=f(r);return function(t,e,r,a){function s(){a.domOperation(),o(t,a)}function u(){d=!0,s(),p(t,a)}function l(t,e,r,i,o){var a;switch(r){case"animate":a=[e,i.from,i.to,o];break;case"setClass":a=[e,g,y,o];break;case"addClass":a=[e,g,o];break;case"removeClass":a=[e,y,o];break;default:a=[e,o]}a.push(i);var s=t.apply(t,a);if(s)if(Y(s.start)&&(s=s.start()),s instanceof n)s.done(o);else if(Y(s))return s;return N}function c(t,e,r,i,o){var a=[];return q(i,function(i){var s=i[o];s&&a.push(function(){var i,o,a=!1,u=function(t){a||(a=!0,(o||N)(t),i.complete(!t))};return i=new n({end:function(){u()},cancel:function(){u(!0)}}),o=l(s,t,e,r,function(t){var e=t===!1;u(e)}),i})}),a}function f(t,e,r,i,o){var a=c(t,e,r,i,o);if(0===a.length){var s,u;"beforeSetClass"===o?(s=c(t,"removeClass",r,i,"beforeRemoveClass"),u=c(t,"addClass",r,i,"beforeAddClass")):"setClass"===o&&(s=c(t,"removeClass",r,i,"removeClass"),u=c(t,"addClass",r,i,"addClass")),s&&(a=a.concat(s)),u&&(a=a.concat(u))}if(0!==a.length)return function(t){var e=[];return a.length&&q(a,function(t){e.push(t())}),e.length?n.all(e,t):t(),function(t){q(e,function(e){t?e.cancel():e.end()})}}}var d=!1;3===arguments.length&&W(r)&&(a=r,r=null),a=h(a),r||(r=t.attr("class")||"",a.addClass&&(r+=" "+a.addClass),a.removeClass&&(r+=" "+a.removeClass));var v,m,g=a.addClass,y=a.removeClass,_=i(r);if(_.length){var b,w;"leave"==e?(w="leave",b="afterLeave"):(w="before"+e.charAt(0).toUpperCase()+e.substr(1),b=e),"enter"!==e&&"move"!==e&&(v=f(t,e,a,_,w)),m=f(t,e,a,_,b)}if(v||m){var x;return{$$willAnimate:!0,end:function(){return x?x.end():(u(),x=new n,x.complete(!0)),x},start:function(){function t(t){u(t),x.complete(t)}function e(e){d||((r||N)(e),t(e))}if(x)return x;x=new n;var r,i=[];return v&&i.push(function(t){r=v(t)}),i.length?i.push(function(t){s(),t(!0)}):s(),m&&i.push(function(t){r=m(t)}),x.setHost({end:function(){e()},cancel:function(){e(!0)}}),n.chain(i,t),x}}}}}]}],Et=["$$animationProvider",function(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(t,e){function n(e){var n=e.element,r=e.event,i=e.options,o=e.classes;return t(n,r,o,i)}return function(t){if(t.from&&t.to){var r=n(t.from),i=n(t.to);if(!r&&!i)return;return{start:function(){function t(){return function(){q(o,function(t){t.end()})}}function n(t){a.complete(t)}var o=[];r&&o.push(r.start()),i&&o.push(i.start()),e.all(o,n);var a=new e({end:t(),cancel:t()});return a}}}return n(t)}}]}],Tt="data-ng-animate",At="$ngAnimatePin",Dt=["$animateProvider",function(r){function i(t){if(!t)return null;var e=t.split(v),n=Object.create(null);return q(e,function(t){n[t]=!0}),n}function o(t,e){if(t&&e){var n=i(e);return t.split(v).some(function(t){return n[t]})}}function a(t,e,n,r){return g[t].some(function(t){return t(e,n,r)})}function l(t,e){var n=(t.addClass||"").length>0,r=(t.removeClass||"").length>0;return e?n&&r:n||r}var c=1,d=2,v=" ",g=this.rules={skip:[],cancel:[],join:[]};g.join.push(function(t,e,n){return!e.structural&&l(e)}),g.skip.push(function(t,e,n){return!e.structural&&!l(e)}),g.skip.push(function(t,e,n){return"leave"==n.event&&e.structural}),g.skip.push(function(t,e,n){return n.structural&&n.state===d&&!e.structural}),g.cancel.push(function(t,e,n){return n.structural&&e.structural}),g.cancel.push(function(t,e,n){return n.state===d&&e.structural}),g.cancel.push(function(t,e,n){if(n.structural)return!1;var r=e.addClass,i=e.removeClass,a=n.addClass,s=n.removeClass;return!(V(r)&&V(i)||V(a)&&V(s))&&(o(r,s)||o(i,a))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(i,o,v,g,w,x,$,k,C,S){function E(){var t=!1;return function(e){t?e():o.$$postDigest(function(){t=!0,e()})}}function T(t,e){return m(t,e,{})}function A(t,e,n){var r=y(e),i=y(t),o=[],a=Z[n];return a&&q(a,function(t){it.call(t.node,r)?o.push(t.callback):"leave"===n&&it.call(t.node,i)&&o.push(t.callback)}),o}function D(t,e,n){var r=u(e);return t.filter(function(t){var e=t.node===r&&(!n||t.callback===n);return!e})}function F(t,e){"close"!==t||e[0].parentNode||ot.off(e)}function O(t,e,n){function r(e,n,r,o){C(function(){var e=A(v,t,n);e.length?i(function(){q(e,function(e){e(t,r,o)}),F(r,t)}):F(r,t)}),e.progress(n,r,o)}function u(e){b(t,w),rt(t,w),p(t,w),w.domOperation(),k.complete(!e)}var f,v,w=R(n);t=s(t),t&&(f=y(t),v=t.parent()),w=h(w);var k=new $,C=E();if(H(w.addClass)&&(w.addClass=w.addClass.join(" ")),w.addClass&&!U(w.addClass)&&(w.addClass=null),H(w.removeClass)&&(w.removeClass=w.removeClass.join(" ")),w.removeClass&&!U(w.removeClass)&&(w.removeClass=null),w.from&&!W(w.from)&&(w.from=null),w.to&&!W(w.to)&&(w.to=null),!f)return u(),k;var S=[f.className,w.addClass,w.removeClass].join(" ");if(!et(S))return u(),k;var D=["enter","move","leave"].indexOf(e)>=0,O=g[0].hidden,I=!J||O||X.get(f),L=!I&&Y.get(f)||{},z=!!L.state;if(I||z&&L.state==c||(I=!P(t,v,e)),I)return O&&r(k,e,"start"),u(),O&&r(k,e,"close"),k;D&&j(t);var V={structural:D,element:t,event:e,addClass:w.addClass,removeClass:w.removeClass,close:u,options:w,runner:k};if(z){var B=a("skip",t,V,L);if(B)return L.state===d?(u(),k):(m(t,L,V),L.runner);var K=a("cancel",t,V,L);if(K)if(L.state===d)L.runner.end();else{if(!L.structural)return m(t,L,V),L.runner;L.close()}else{var G=a("join",t,V,L);if(G){if(L.state!==d)return _(t,D?e:null,w),e=V.event=L.event,w=m(t,L,V),L.runner;T(t,V)}}}else T(t,V);var Q=V.structural;if(Q||(Q="animate"===V.event&&Object.keys(V.options.to||{}).length>0||l(V)),!Q)return u(),M(t),k;var Z=(L.counter||0)+1;return V.counter=Z,N(t,c,V),o.$$postDigest(function(){var n=Y.get(f),i=!n;n=n||{};var o=t.parent()||[],a=o.length>0&&("animate"===n.event||n.structural||l(n));if(i||n.counter!==Z||!a)return i&&(rt(t,w),p(t,w)),(i||D&&n.event!==e)&&(w.domOperation(),k.end()),void(a||M(t));e=!n.structural&&l(n,!0)?"setClass":n.event,N(t,d);var s=x(t,e,n.options);k.setHost(s),r(k,e,"start",{}),s.done(function(n){u(!n);var i=Y.get(f);i&&i.counter===Z&&M(y(t)),r(k,e,"close",{})})}),k}function j(t){var e=y(t),n=e.querySelectorAll("["+Tt+"]");q(n,function(t){var e=parseInt(t.getAttribute(Tt)),n=Y.get(t);if(n)switch(e){case d:n.runner.end();case c:Y.remove(t)}})}function M(t){var e=y(t);e.removeAttribute(Tt),Y.remove(e)}function I(t,e){return y(t)===y(e)}function P(t,e,n){var r,i=z(g[0].body),o=I(t,i)||"HTML"===t[0].nodeName,a=I(t,v),s=!1,u=X.get(y(t)),l=z.data(t[0],At);for(l&&(e=l),e=y(e);e&&(a||(a=I(e,v)),e.nodeType===G);){var c=Y.get(e)||{};if(!s){var f=X.get(e);if(f===!0&&u!==!1){u=!0;break}f===!1&&(u=!1),s=c.structural}if(V(r)||r===!0){var h=z.data(e,nt);B(h)&&(r=h)}if(s&&r===!1)break;if(o||(o=I(e,i)),o&&a)break;e=a||!(l=z.data(e,At))?e.parentNode:y(l)}var p=(!s||r)&&u!==!0;return p&&a&&o}function N(t,e,n){n=n||{},n.state=e;var r=y(t);r.setAttribute(Tt,e);var i=Y.get(r),o=i?L(i,n):n;Y.put(r,o)}var Y=new w,X=new w,J=null,Q=o.$watch(function(){return 0===k.totalPendingRequests},function(t){t&&(Q(),o.$$postDigest(function(){o.$$postDigest(function(){null===J&&(J=!0)})}))}),Z={},tt=r.classNameFilter(),et=tt?function(t){return tt.test(t)}:function(){return!0},rt=f(C),it=t.Node.prototype.contains||function(t){return this===t||!!(16&this.compareDocumentPosition(t))},ot={on:function(t,e,n){var r=u(e);Z[t]=Z[t]||[],Z[t].push({node:r,callback:n}),z(e).on("$destroy",function(){var i=Y.get(r);i||ot.off(t,e,n)})},off:function(t,n,r){if(1!==arguments.length||e.isString(arguments[0])){var i=Z[t];i&&(Z[t]=1===arguments.length?null:D(i,n,r))}else{n=arguments[0];for(var o in Z)Z[o]=D(Z[o],n)}},pin:function(t,e){n(K(t),"element","not an element"),n(K(e),"parentElement","not an element"),t.data(At,e)},push:function(t,e,n,r){return n=n||{},n.domOperation=r,O(t,e,n)},enabled:function(t,e){var n=arguments.length;if(0===n)e=!!J;else{var r=K(t);if(r){var i=y(t),o=X.get(i);1===n?e=!o:X.put(i,!e)}else e=J=!!t}return e}};return ot}]}],Ft=["$animateProvider",function(t){function e(t,e){t.data(s,e)}function n(t){t.removeData(s)}function i(t){return t.data(s)}var o="ng-animate-ref",a=this.drivers=[],s="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(t,s,u,l,c,d){function v(t){function e(t){if(t.processed)return t;t.processed=!0;var n=t.domNode,r=n.parentNode;o.put(n,t);for(var a;r;){if(a=o.get(r)){a.processed||(a=e(a));break}r=r.parentNode}return(a||i).children.push(t),t}function n(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.fn),s.children.forEach(function(t){o++,r.push(t)}),i--}return a.length&&n.push(a),n}var r,i={children:[]},o=new c;for(r=0;r<t.length;r++){var a=t[r];o.put(a.domNode,t[r]={domNode:a.domNode,fn:a.fn,children:[]})}for(r=0;r<t.length;r++)e(t[r]);return n(i)}var m=[],g=f(t);return function(c,f,_){function b(t){var e="["+o+"]",n=t.hasAttribute(o)?[t]:t.querySelectorAll(e),r=[];return q(n,function(t){var e=t.getAttribute(o);e&&e.length&&r.push(t)}),r}function w(t){var e=[],n={};q(t,function(t,r){var i=t.element,a=y(i),s=t.event,u=["enter","move"].indexOf(s)>=0,l=t.structural?b(a):[];if(l.length){var c=u?"to":"from";q(l,function(t){var e=t.getAttribute(o);n[e]=n[e]||{},n[e][c]={animationID:r,element:z(t)}})}else e.push(t)});var r={},i={};return q(n,function(n,o){var a=n.from,s=n.to;if(!a||!s){var u=a?a.animationID:s.animationID,l=u.toString();return void(r[l]||(r[l]=!0,e.push(t[u])))}var c=t[a.animationID],f=t[s.animationID],h=a.animationID.toString();if(!i[h]){var p=i[h]={structural:!0,beforeStart:function(){c.beforeStart(),f.beforeStart()},close:function(){c.close(),f.close()},classes:x(c.classes,f.classes),from:c,to:f,anchors:[]};p.classes.length?e.push(p):(e.push(c),e.push(f))}i[h].anchors.push({out:a.element,"in":s.element})}),e}function x(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 $(t){for(var e=a.length-1;e>=0;e--){var n=a[e];if(u.has(n)){var r=u.get(n),i=r(t);if(i)return i}}}function k(){c.addClass(et),F&&t.addClass(c,F),O&&(t.removeClass(c,O),O=null)}function C(t,e){function n(t){i(t).setHost(e)}t.from&&t.to?(n(t.from.element),n(t.to.element)):n(t.element)}function S(){var t=i(c);!t||"leave"===f&&_.$$domOperationFired||t.end()}function E(e){c.off("$destroy",S),n(c),g(c,_),p(c,_),_.domOperation(),F&&t.removeClass(c,F),c.removeClass(et),A.complete(!e)}_=h(_);var T=["enter","move","leave"].indexOf(f)>=0,A=new l({end:function(){E()},cancel:function(){E(!0)}});if(!a.length)return E(),A;e(c,A);var D=r(c.attr("class"),r(_.addClass,_.removeClass)),F=_.tempClasses;F&&(D+=" "+F,_.tempClasses=null);var O;return T&&(O="ng-"+f+tt,t.addClass(c,O)),m.push({element:c,classes:D,event:f,structural:T,options:_,beforeStart:k,close:E}),c.on("$destroy",S),m.length>1?A:(s.$$postDigest(function(){var t=[];q(m,function(e){i(e.element)?t.push(e):e.close()}),m.length=0;var e=w(t),n=[];q(e,function(t){n.push({domNode:y(t.from?t.from.element:t.element),fn:function(){t.beforeStart();var e,n=t.close,r=t.anchors?t.from.element||t.to.element:t.element;if(i(r)){var o=$(t);o&&(e=o.start)}if(e){var a=e();a.done(function(t){n(!t)}),C(t,a)}else n()}})}),d(v(n))}),A)}}]}],Ot=["$animate","$rootScope",function(t,e){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(e,n,r,i,o){var a,s;e.$watchCollection(r.ngAnimateSwap||r["for"],function(r){a&&t.leave(a),s&&(s.$destroy(),s=null),(r||0===r)&&(s=e.$new(),o(s,function(e){a=e,t.enter(e,null,n)}))})}}}];e.module("ngAnimate",[]).directive("ngAnimateSwap",Ot).directive("ngAnimateChildren",gt).factory("$$rAFScheduler",mt).provider("$$animateQueue",Dt).provider("$$animation",Ft).provider("$animateCss",kt).provider("$$animateCssDriver",Ct).provider("$$animateJs",St).provider("$$animateJsDriver",Et)}(window,window.angular),function(t,e){"use strict";function n(){function t(t,e,r,i){return function(a,s,u){var l=u.$normalize(e);!n[l]||o(s,r)||u[l]||a.$watch(u[t],function(t){t=i?!t:!!t,s.attr(e,t)})}}var n={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeypress:!0,bindRoleForClick:!0};this.config=function(t){n=e.extend(n,t)},this.$get=function(){return{config:function(t){return n[t]},$$watchExpr:t}}}var r=e.module("ngAria",["ng"]).provider("$aria",n),i=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],o=function(t,e){if(e.indexOf(t[0].nodeName)!==-1)return!0};r.directive("ngShow",["$aria",function(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngValue",["$aria",function(t){return t.$$watchExpr("ngValue","aria-checked",i,!1)}]).directive("ngChecked",["$aria",function(t){return t.$$watchExpr("ngChecked","aria-checked",i,!1)}]).directive("ngReadonly",["$aria",function(t){return t.$$watchExpr("ngReadonly","aria-readonly",i,!1)}]).directive("ngRequired",["$aria",function(t){return t.$$watchExpr("ngRequired","aria-required",i,!1)}]).directive("ngModel",["$aria",function(t){function e(e,n,r,a){return t.config(n)&&!r.attr(e)&&(a||!o(r,i))}function n(t,e){return!e.attr("role")&&e.attr("type")===t&&"INPUT"!==e[0].nodeName}function r(t,e){var n=t.type,r=t.role;return"checkbox"===(n||r)||"menuitemcheckbox"===r?"checkbox":"radio"===(n||r)||"menuitemradio"===r?"radio":"range"===n||"progressbar"===r||"slider"===r?"range":""}return{restrict:"A",require:"ngModel",priority:200,compile:function(i,o){var a=r(o,i);return{pre:function(t,e,n,r){"checkbox"===a&&(r.$isEmpty=function(t){return t===!1})},post:function(r,i,o,s){function u(){return s.$modelValue}function l(t){var e=o.value==s.$viewValue;i.attr("aria-checked",e)}function c(){i.attr("aria-checked",!s.$isEmpty(s.$viewValue))}var f=e("tabindex","tabindex",i,!1);switch(a){case"radio":case"checkbox":n(a,i)&&i.attr("role",a),e("aria-checked","ariaChecked",i,!1)&&r.$watch(u,"radio"===a?l:c),f&&i.attr("tabindex",0);break;case"range":if(n(a,i)&&i.attr("role","slider"),t.config("ariaValue")){var h=!i.attr("aria-valuemin")&&(o.hasOwnProperty("min")||o.hasOwnProperty("ngMin")),p=!i.attr("aria-valuemax")&&(o.hasOwnProperty("max")||o.hasOwnProperty("ngMax")),d=!i.attr("aria-valuenow");h&&o.$observe("min",function(t){i.attr("aria-valuemin",t)}),p&&o.$observe("max",function(t){i.attr("aria-valuemax",t)}),d&&r.$watch(u,function(t){i.attr("aria-valuenow",t)})}f&&i.attr("tabindex",0)}!o.hasOwnProperty("ngRequired")&&s.$validators.required&&e("aria-required","ariaRequired",i,!1)&&o.$observe("required",function(){i.attr("aria-required",!!o.required)}),e("aria-invalid","ariaInvalid",i,!0)&&r.$watch(function(){return s.$invalid},function(t){i.attr("aria-invalid",!!t)})}}}}}]).directive("ngDisabled",["$aria",function(t){return t.$$watchExpr("ngDisabled","aria-disabled",i,!1)}]).directive("ngMessages",function(){return{restrict:"A",require:"?ngMessages",link:function(t,e,n,r){e.attr("aria-live")||e.attr("aria-live","assertive")}}}).directive("ngClick",["$aria","$parse",function(t,e){return{restrict:"A",compile:function(n,r){var a=e(r.ngClick,null,!0);return function(e,n,r){o(n,i)||(t.config("bindRoleForClick")&&!n.attr("role")&&n.attr("role","button"),t.config("tabindex")&&!n.attr("tabindex")&&n.attr("tabindex",0),t.config("bindKeypress")&&!r.ngKeypress&&n.on("keypress",function(t){function n(){a(e,{$event:t})}var r=t.which||t.keyCode;32!==r&&13!==r||e.$apply(n)}))}}}}]).directive("ngDblclick",["$aria",function(t){return function(e,n,r){!t.config("tabindex")||n.attr("tabindex")||o(n,i)||n.attr("tabindex",0)}}])}(window,window.angular),function(t,e){"function"==typeof define&&define.amd?define([],function(){return e()}):"object"==typeof exports?module.exports=e():e()}(this,function(){function t(t){"use strict";var e=t.storageKey(),n=t.storage(),r=function(){var r=t.preferredLanguage();angular.isString(r)?t.use(r):n.put(e,t.use())};r.displayName="fallbackFromIncorrectStorageValue",n?n.get(e)?t.use(n.get(e))["catch"](r):r():angular.isString(t.preferredLanguage())&&t.use(t.preferredLanguage())}function e(){"use strict";var t,e,n=null,r=!1,i=!1;e={sanitize:function(t,e){return"text"===e&&(t=a(t)),t},escape:function(t,e){return"text"===e&&(t=o(t)),t},sanitizeParameters:function(t,e){return"params"===e&&(t=s(t,a)),t},escapeParameters:function(t,e){return"params"===e&&(t=s(t,o)),t}},e.escaped=e.escapeParameters,this.addStrategy=function(t,n){return e[t]=n,this},this.removeStrategy=function(t){return delete e[t],this},this.useStrategy=function(t){return r=!0,n=t,this},this.$get=["$injector","$log",function(o,a){var s={},u=function(t,n,r){return angular.forEach(r,function(r){if(angular.isFunction(r))t=r(t,n);else if(angular.isFunction(e[r]))t=e[r](t,n);else{if(!angular.isString(e[r]))throw new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+r+"'");if(!s[e[r]])try{s[e[r]]=o.get(e[r])}catch(i){throw s[e[r]]=function(){},new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+r+"'")}t=s[e[r]](t,n)}}),t},l=function(){r||i||(a.warn("pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details."),i=!0)};return o.has("$sanitize")&&(t=o.get("$sanitize")),{useStrategy:function(t){return function(e){t.useStrategy(e)}}(this),sanitize:function(t,e,r){if(n||l(),arguments.length<3&&(r=n),!r)return t;var i=angular.isArray(r)?r:[r];return u(t,e,i)}}}];var o=function(t){var e=angular.element("<div></div>");return e.text(t),e.html()},a=function(e){if(!t)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'.");return t(e)},s=function(t,e,n){if(angular.isObject(t)){var r=angular.isArray(t)?[]:{};if(n){if(n.indexOf(t)>-1)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object")}else n=[];return n.push(t),angular.forEach(t,function(t,i){r[i]=s(t,e,n)}),n.splice(-1,1),r}return angular.isNumber(t)?t:e(t)}}function n(t,e,n,r){"use strict";var i,o,a,s,u,l,c,f,h,p,d,v,m,g,y,_={},b=[],w=t,x=[],$="translate-cloak",k=!1,C=!1,S=".",E=!1,T=0,A=!0,D="default",F={"default":function(t){return(t||"").split("-").join("_")},java:function(t){var e=(t||"").split("-").join("_"),n=e.split("_");return n.length>1?n[0].toLowerCase()+"_"+n[1].toUpperCase():e},bcp47:function(t){var e=(t||"").split("_").join("-"),n=e.split("-");return n.length>1?n[0].toLowerCase()+"-"+n[1].toUpperCase():e}},O="2.10.0",j=function(){if(angular.isFunction(r.getLocale))return r.getLocale();var t,n,i=e.$get().navigator,o=["language","browserLanguage","systemLanguage","userLanguage"];if(angular.isArray(i.languages))for(t=0;t<i.languages.length;t++)if(n=i.languages[t],n&&n.length)return n;for(t=0;t<o.length;t++)if(n=i[o[t]],n&&n.length)return n;return null};j.displayName="angular-translate/service: getFirstBrowserLanguage";var M=function(){var t=j()||"";return F[D]&&(t=F[D](t)),t};M.displayName="angular-translate/service: getLocale";var I=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},P=function(){return this.toString().replace(/^\s+|\s+$/g,"")},N=function(t){if(t){for(var e=[],n=angular.lowercase(t),r=0,i=b.length;r<i;r++)e.push(angular.lowercase(b[r]));if(I(e,n)>-1)return t;if(o){var a;for(var s in o){var u=!1,l=Object.prototype.hasOwnProperty.call(o,s)&&angular.lowercase(s)===angular.lowercase(t);if("*"===s.slice(-1)&&(u=s.slice(0,-1)===t.slice(0,s.length-1)),(l||u)&&(a=o[s],I(e,angular.lowercase(a))>-1))return a}}var c=t.split("_");return c.length>1&&I(e,angular.lowercase(c[0]))>-1?c[0]:void 0}},R=function(t,e){if(!t&&!e)return _;if(t&&!e){if(angular.isString(t))return _[t]}else angular.isObject(_[t])||(_[t]={}),angular.extend(_[t],L(e));return this};this.translations=R,this.cloakClassName=function(t){return t?($=t,this):$},this.nestedObjectDelimeter=function(t){return t?(S=t,this):S};var L=function(t,e,n,r){var i,o,a,s;e||(e=[]),n||(n={});for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(s=t[i],angular.isObject(s)?L(s,e.concat(i),n,i):(o=e.length?""+e.join(S)+S+i:i,e.length&&i===r&&(a=""+e.join(S),n[a]="@:"+o),n[o]=s));return n};L.displayName="flatObject",this.addInterpolation=function(t){return x.push(t),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(t){return p=t,this},this.useSanitizeValueStrategy=function(t){return n.useStrategy(t),this},this.preferredLanguage=function(t){return t?(z(t),this):i};var z=function(t){return t&&(i=t),i};this.translationNotFoundIndicator=function(t){return this.translationNotFoundIndicatorLeft(t),this.translationNotFoundIndicatorRight(t),this},this.translationNotFoundIndicatorLeft=function(t){return t?(m=t,this):m},this.translationNotFoundIndicatorRight=function(t){return t?(g=t,this):g},this.fallbackLanguage=function(t){return q(t),this};var q=function(t){return t?(angular.isString(t)?(s=!0,a=[t]):angular.isArray(t)&&(s=!1,a=t),angular.isString(i)&&I(a,i)<0&&a.push(i),this):s?a[0]:a};this.use=function(t){if(t){if(!_[t]&&!d)throw new Error("$translateProvider couldn't find translationTable for langKey: '"+t+"'");return u=t,this}return u};var H=function(t){return t?(w=t,this):f?f+w:w};this.storageKey=H,this.useUrlLoader=function(t,e){return this.useLoader("$translateUrlLoader",angular.extend({url:t},e))},this.useStaticFilesLoader=function(t){return this.useLoader("$translateStaticFilesLoader",t)},this.useLoader=function(t,e){return d=t,v=e||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(t){return c=t,this},this.storagePrefix=function(t){return t?(f=t,this):t},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")},this.useMissingTranslationHandler=function(t){return h=t,this},this.usePostCompiling=function(t){return k=!!t,this},this.forceAsyncReload=function(t){return C=!!t,this},this.uniformLanguageTag=function(t){return t?angular.isString(t)&&(t={standard:t}):t={},D=t.standard,this},this.determinePreferredLanguage=function(t){var e=t&&angular.isFunction(t)?t():M();return i=b.length?N(e)||e:e,this},this.registerAvailableLanguageKeys=function(t,e){return t?(b=t,e&&(o=e),this):b},this.useLoaderCache=function(t){return t===!1?y=void 0:t===!0?y=!0:"undefined"==typeof t?y="$translationCache":t&&(y=t),this},this.directivePriority=function(t){return void 0===t?T:(T=t,this)},this.statefulFilter=function(t){return void 0===t?A:(A=t,this)},this.$get=["$log","$injector","$rootScope","$q",function(t,e,n,r){var o,f,b,D=e.get(p||"$translateDefaultInterpolation"),F=!1,j={},M={},U=function(t,e,n,s,l){var h=l&&l!==u?N(l)||l:u;if(angular.isArray(t)){var p=function(t){for(var i={},o=[],a=function(t){var o=r.defer(),a=function(e){i[t]=e,o.resolve([t,e])};return U(t,e,n,s,l).then(a,a),o.promise},u=0,c=t.length;u<c;u++)o.push(a(t[u]));return r.all(o).then(function(){return i})};return p(t)}var d=r.defer();t&&(t=P.apply(t));var v=function(){var t=i?M[i]:M[h];if(f=0,c&&!t){var e=o.get(w);if(t=M[e],a&&a.length){var n=I(a,e);f=0===n?1:0,I(a,i)<0&&a.push(i)}}return t}();if(v){var m=function(){l||(h=u),nt(t,e,n,s,h).then(d.resolve,d.reject)};m.displayName="promiseResolved",v["finally"](m)}else nt(t,e,n,s,h).then(d.resolve,d.reject);return d.promise},W=function(t){return m&&(t=[m,t].join(" ")),g&&(t=[t,g].join(" ")),t},V=function(t){u=t,c&&o.put(U.storageKey(),u),n.$emit("$translateChangeSuccess",{language:t}),D.setLocale(u);var e=function(t,e){j[e].setLocale(u)};e.displayName="eachInterpolatorLocaleSetter",angular.forEach(j,e),n.$emit("$translateChangeEnd",{language:t})},B=function(t){if(!t)throw"No language key specified for loading.";var i=r.defer();n.$emit("$translateLoadingStart",{language:t}),F=!0;var o=y;"string"==typeof o&&(o=e.get(o));var a=angular.extend({},v,{key:t,$http:angular.extend({},{cache:o},v.$http)}),s=function(e){var r={};n.$emit("$translateLoadingSuccess",{language:t}),angular.isArray(e)?angular.forEach(e,function(t){angular.extend(r,L(t))}):angular.extend(r,L(e)),F=!1,i.resolve({key:t,table:r}),n.$emit("$translateLoadingEnd",{language:t})};s.displayName="onLoaderSuccess";var u=function(t){n.$emit("$translateLoadingError",{language:t}),i.reject(t),n.$emit("$translateLoadingEnd",{language:t})};return u.displayName="onLoaderError",e.get(d)(a).then(s,u),i.promise};if(c&&(o=e.get(c),!o.get||!o.put))throw new Error("Couldn't use storage '"+c+"', missing get() or put() method!");if(x.length){var Y=function(t){var n=e.get(t);n.setLocale(i||u),j[n.getInterpolationIdentifier()]=n};Y.displayName="interpolationFactoryAdder",angular.forEach(x,Y)}var K=function(t){var e=r.defer();if(Object.prototype.hasOwnProperty.call(_,t))e.resolve(_[t]);else if(M[t]){var n=function(t){R(t.key,t.table),e.resolve(t.table)};n.displayName="translationTableResolver",M[t].then(n,e.reject)}else e.reject();return e.promise},G=function(t,e,n,i){var o=r.defer(),a=function(r){if(Object.prototype.hasOwnProperty.call(r,e)){i.setLocale(t);var a=r[e];"@:"===a.substr(0,2)?G(t,a.substr(2),n,i).then(o.resolve,o.reject):o.resolve(i.interpolate(r[e],n)),i.setLocale(u)}else o.reject()};return a.displayName="fallbackTranslationResolver",K(t).then(a,o.reject),o.promise},X=function(t,e,n,r){var i,o=_[t];if(o&&Object.prototype.hasOwnProperty.call(o,e)){if(r.setLocale(t),i=r.interpolate(o[e],n),"@:"===i.substr(0,2))return X(t,i.substr(2),n,r);r.setLocale(u)}return i},J=function(t,n){if(h){var r=e.get(h)(t,u,n);return void 0!==r?r:t}return t},Q=function(t,e,n,i,o){var s=r.defer();if(t<a.length){var u=a[t];G(u,e,n,i).then(s.resolve,function(){Q(t+1,e,n,i,o).then(s.resolve)})}else o?s.resolve(o):s.resolve(J(e,n));return s.promise},Z=function(t,e,n,r){var i;if(t<a.length){var o=a[t];i=X(o,e,n,r),i||(i=Z(t+1,e,n,r))}return i},tt=function(t,e,n,r){return Q(b>0?b:f,t,e,n,r)},et=function(t,e,n){return Z(b>0?b:f,t,e,n)},nt=function(t,e,n,i,o){var s=r.defer(),u=o?_[o]:_,l=n?j[n]:D;if(u&&Object.prototype.hasOwnProperty.call(u,t)){var c=u[t];"@:"===c.substr(0,2)?U(c.substr(2),e,n,i,o).then(s.resolve,s.reject):s.resolve(l.interpolate(c,e))}else{var f;h&&!F&&(f=J(t,e)),o&&a&&a.length?tt(t,e,l,i).then(function(t){s.resolve(t)},function(t){s.reject(W(t))}):h&&!F&&f?i?s.resolve(i):s.resolve(f):i?s.resolve(i):s.reject(W(t))}return s.promise},rt=function(t,e,n,r){var i,o=r?_[r]:_,s=D;if(j&&Object.prototype.hasOwnProperty.call(j,n)&&(s=j[n]),o&&Object.prototype.hasOwnProperty.call(o,t)){var u=o[t];i="@:"===u.substr(0,2)?rt(u.substr(2),e,n,r):s.interpolate(u,e)}else{var l;h&&!F&&(l=J(t,e)),r&&a&&a.length?(f=0,i=et(t,e,s)):i=h&&!F&&l?l:W(t)}return i},it=function(t){l===t&&(l=void 0),M[t]=void 0};U.preferredLanguage=function(t){return t&&z(t),i},U.cloakClassName=function(){return $},U.nestedObjectDelimeter=function(){return S},U.fallbackLanguage=function(t){if(void 0!==t&&null!==t){if(q(t),d&&a&&a.length)for(var e=0,n=a.length;e<n;e++)M[a[e]]||(M[a[e]]=B(a[e]));U.use(U.use())}return s?a[0]:a},U.useFallbackLanguage=function(t){if(void 0!==t&&null!==t)if(t){var e=I(a,t);e>-1&&(b=e)}else b=0},U.proposedLanguage=function(){return l},U.storage=function(){return o},U.negotiateLocale=N,U.use=function(t){if(!t)return u;var e=r.defer();n.$emit("$translateChangeStart",{language:t});var i=N(t);return i&&(t=i),l=t,!C&&_[t]||!d||M[t]?M[t]?M[t].then(function(t){return l===t.key&&V(t.key),e.resolve(t.key),t},function(t){return!u&&a&&a.length>0?U.use(a[0]).then(e.resolve,e.reject):e.reject(t)}):(e.resolve(t),V(t)):(M[t]=B(t).then(function(n){return R(n.key,n.table),e.resolve(n.key),l===t&&V(n.key),n},function(t){return n.$emit("$translateChangeError",{language:t}),e.reject(t),n.$emit("$translateChangeEnd",{language:t}),r.reject(t)}),M[t]["finally"](function(){
it(t)})),e.promise},U.storageKey=function(){return H()},U.isPostCompilingEnabled=function(){return k},U.isForceAsyncReloadEnabled=function(){return C},U.refresh=function(t){function e(){o.resolve(),n.$emit("$translateRefreshEnd",{language:t})}function i(){o.reject(),n.$emit("$translateRefreshEnd",{language:t})}if(!d)throw new Error("Couldn't refresh translation table, no loader registered!");var o=r.defer();if(n.$emit("$translateRefreshStart",{language:t}),t)if(_[t]){var s=function(n){R(n.key,n.table),t===u&&V(u),e()};s.displayName="refreshPostProcessor",B(t).then(s,i)}else i();else{var l=[],c={};if(a&&a.length)for(var f=0,h=a.length;f<h;f++)l.push(B(a[f])),c[a[f]]=!0;u&&!c[u]&&l.push(B(u));var p=function(t){_={},angular.forEach(t,function(t){R(t.key,t.table)}),u&&V(u),e()};p.displayName="refreshPostProcessor",r.all(l).then(p,i)}return o.promise},U.instant=function(t,e,n,r){var o=r&&r!==u?N(r)||r:u;if(null===t||angular.isUndefined(t))return t;if(angular.isArray(t)){for(var s={},l=0,c=t.length;l<c;l++)s[t[l]]=U.instant(t[l],e,n,r);return s}if(angular.isString(t)&&t.length<1)return t;t&&(t=P.apply(t));var f,p=[];i&&p.push(i),o&&p.push(o),a&&a.length&&(p=p.concat(a));for(var d=0,v=p.length;d<v;d++){var y=p[d];if(_[y]&&"undefined"!=typeof _[y][t]&&(f=rt(t,e,n,o)),"undefined"!=typeof f)break}return f||""===f||(m||g?f=W(t):(f=D.interpolate(t,e),h&&!F&&(f=J(t,e)))),f},U.versionInfo=function(){return O},U.loaderCache=function(){return y},U.directivePriority=function(){return T},U.statefulFilter=function(){return A},U.isReady=function(){return E};var ot=r.defer();ot.promise.then(function(){E=!0}),U.onReady=function(t){var e=r.defer();return angular.isFunction(t)&&e.promise.then(t),E?e.resolve():ot.promise.then(e.resolve),e.promise};var at=n.$on("$translateReady",function(){ot.resolve(),at(),at=null}),st=n.$on("$translateChangeEnd",function(){ot.resolve(),st(),st=null});if(d){if(angular.equals(_,{})&&U.use()&&U.use(U.use()),a&&a.length)for(var ut=function(t){return R(t.key,t.table),n.$emit("$translateChangeEnd",{language:t.key}),t},lt=0,ct=a.length;lt<ct;lt++){var ft=a[lt];!C&&_[ft]||(M[ft]=B(ft).then(ut))}}else n.$emit("$translateReady",{language:U.use()});return U}]}function r(t,e){"use strict";var n,r={},i="default";return r.setLocale=function(t){n=t},r.getInterpolationIdentifier=function(){return i},r.useSanitizeValueStrategy=function(t){return e.useStrategy(t),this},r.interpolate=function(n,r){r=r||{},r=e.sanitize(r,"params");var i=t(n)(r);return i=e.sanitize(i,"text")},r}function i(t,e,n,r,i,a){"use strict";var s=function(){return this.toString().replace(/^\s+|\s+$/g,"")};return{restrict:"AE",scope:!0,priority:t.directivePriority(),compile:function(e,u){var l=u.translateValues?u.translateValues:void 0,c=u.translateInterpolation?u.translateInterpolation:void 0,f=e[0].outerHTML.match(/translate-value-+/i),h="^(.*)("+n.startSymbol()+".*"+n.endSymbol()+")(.*)",p="^(.*)"+n.startSymbol()+"(.*)"+n.endSymbol()+"(.*)";return function(e,d,v){e.interpolateParams={},e.preText="",e.postText="",e.translateNamespace=o(e);var m={},g=function(t,n,r){if(n.translateValues&&angular.extend(t,i(n.translateValues)(e.$parent)),f)for(var o in r)if(Object.prototype.hasOwnProperty.call(n,o)&&"translateValue"===o.substr(0,14)&&"translateValues"!==o){var a=angular.lowercase(o.substr(14,1))+o.substr(15);t[a]=r[o]}},y=function(t){if(angular.isFunction(y._unwatchOld)&&(y._unwatchOld(),y._unwatchOld=void 0),angular.equals(t,"")||!angular.isDefined(t)){var r=s.apply(d.text()),i=r.match(h);if(angular.isArray(i)){e.preText=i[1],e.postText=i[3],m.translate=n(i[2])(e.$parent);var o=r.match(p);angular.isArray(o)&&o[2]&&o[2].length&&(y._unwatchOld=e.$watch(o[2],function(t){m.translate=t,k()}))}else m.translate=r?r:void 0}else m.translate=t;k()},_=function(t){v.$observe(t,function(e){m[t]=e,k()})};g(e.interpolateParams,v,u);var b=!0;v.$observe("translate",function(t){"undefined"==typeof t?y(""):""===t&&b||(m.translate=t,k()),b=!1});for(var w in v)v.hasOwnProperty(w)&&"translateAttr"===w.substr(0,13)&&_(w);if(v.$observe("translateDefault",function(t){e.defaultText=t,k()}),l&&v.$observe("translateValues",function(t){t&&e.$parent.$watch(function(){angular.extend(e.interpolateParams,i(t)(e.$parent))})}),f){var x=function(t){v.$observe(t,function(n){var r=angular.lowercase(t.substr(14,1))+t.substr(15);e.interpolateParams[r]=n})};for(var $ in v)Object.prototype.hasOwnProperty.call(v,$)&&"translateValue"===$.substr(0,14)&&"translateValues"!==$&&x($)}var k=function(){for(var t in m)m.hasOwnProperty(t)&&void 0!==m[t]&&C(t,m[t],e,e.interpolateParams,e.defaultText,e.translateNamespace)},C=function(e,n,r,i,o,a){n?(a&&"."===n.charAt(0)&&(n=a+n),t(n,i,c,o,r.translateLanguage).then(function(t){S(t,r,!0,e)},function(t){S(t,r,!1,e)})):S(n,r,!1,e)},S=function(e,n,i,o){if("translate"===o){i||"undefined"==typeof n.defaultText||(e=n.defaultText),d.empty().append(n.preText+e+n.postText);var a=t.isPostCompilingEnabled(),s="undefined"!=typeof u.translateCompile,l=s&&"false"!==u.translateCompile;(a&&!s||l)&&r(d.contents())(n)}else{i||"undefined"==typeof n.defaultText||(e=n.defaultText);var c=v.$attr[o];"data-"===c.substr(0,5)&&(c=c.substr(5)),c=c.substr(15),d.attr(c,e)}};(l||f||v.translateDefault)&&e.$watch("interpolateParams",k,!0),e.$watch("translateLanguage",k);var E=a.$on("$translateChangeSuccess",k);d.text().length?y(v.translate?v.translate:""):v.translate&&y(v.translate),k(),e.$on("$destroy",E)}}}}function o(t){"use strict";return t.translateNamespace?t.translateNamespace:t.$parent?o(t.$parent):void 0}function a(t,e){"use strict";return{compile:function(n){var r=function(){n.addClass(t.cloakClassName())},i=function(){n.removeClass(t.cloakClassName())};return t.onReady(function(){i()}),r(),function(n,o,a){a.translateCloak&&a.translateCloak.length&&(a.$observe("translateCloak",function(e){t(e).then(i,r)}),e.$on("$translateChangeSuccess",function(){t(a.translateCloak).then(i,r)}))}}}}function s(){"use strict";return{restrict:"A",scope:!0,compile:function(){return{pre:function(t,e,n){t.translateNamespace=o(t),t.translateNamespace&&"."===n.translateNamespace.charAt(0)?t.translateNamespace+=n.translateNamespace:t.translateNamespace=n.translateNamespace}}}}}function o(t){"use strict";return t.translateNamespace?t.translateNamespace:t.$parent?o(t.$parent):void 0}function u(){"use strict";return{restrict:"A",scope:!0,compile:function(){return function(t,e,n){n.$observe("translateLanguage",function(e){t.translateLanguage=e})}}}}function l(t,e){"use strict";var n=function(n,r,i,o){return angular.isObject(r)||(r=t(r)(this)),e.instant(n,r,i,o)};return e.statefulFilter()&&(n.$stateful=!0),n}function c(t){"use strict";return t("translations")}return angular.module("pascalprecht.translate",["ng"]).run(t),t.$inject=["$translate"],t.displayName="runTranslate",angular.module("pascalprecht.translate").provider("$translateSanitization",e),angular.module("pascalprecht.translate").constant("pascalprechtTranslateOverrider",{}).provider("$translate",n),n.$inject=["$STORAGE_KEY","$windowProvider","$translateSanitizationProvider","pascalprechtTranslateOverrider"],n.displayName="displayName",angular.module("pascalprecht.translate").factory("$translateDefaultInterpolation",r),r.$inject=["$interpolate","$translateSanitization"],r.displayName="$translateDefaultInterpolation",angular.module("pascalprecht.translate").constant("$STORAGE_KEY","NG_TRANSLATE_LANG_KEY"),angular.module("pascalprecht.translate").directive("translate",i),i.$inject=["$translate","$q","$interpolate","$compile","$parse","$rootScope"],i.displayName="translateDirective",angular.module("pascalprecht.translate").directive("translateCloak",a),a.$inject=["$translate","$rootScope"],a.displayName="translateCloakDirective",angular.module("pascalprecht.translate").directive("translateNamespace",s),s.displayName="translateNamespaceDirective",angular.module("pascalprecht.translate").directive("translateLanguage",u),u.displayName="translateLanguageDirective",angular.module("pascalprecht.translate").filter("translate",l),l.$inject=["$parse","$translate"],l.displayName="translateFilterFactory",angular.module("pascalprecht.translate").factory("$translationCache",c),c.$inject=["$cacheFactory"],c.displayName="$translationCache","pascalprecht.translate"}),function(t,e){"function"==typeof define&&define.amd?define([],function(){return e()}):"object"==typeof exports?module.exports=e():e()}(this,function(){function t(){"use strict";function t(t,e){this.name=t,this.isActive=!0,this.tables={},this.priority=e||0}function e(t){return Object.prototype.hasOwnProperty.call(a,t)}function n(t){return angular.isString(t)&&""!==t}function r(t){if(!n(t))throw new TypeError("Invalid type of a first argument, a non-empty string expected.");return e(t)&&a[t].isActive}function i(t,e){for(var n in e)e[n]&&e[n].constructor&&e[n].constructor===Object?(t[n]=t[n]||{},i(t[n],e[n])):t[n]=e[n];return t}function o(){var t=[];for(var e in a)a[e].isActive&&t.push(a[e]);return t.sort(function(t,e){return t.priority-e.priority}),t}t.prototype.parseUrl=function(t,e){return angular.isFunction(t)?t(this.name,e):t.replace(/\{part\}/g,this.name).replace(/\{lang\}/g,e)},t.prototype.getTable=function(t,e,n,r,i,o){if(this.tables[t])return e.when(this.tables[t]);var a=this;return n(angular.extend({method:"GET",url:this.parseUrl(i,t)},r)).then(function(e){return a.tables[t]=e.data,e.data},function(){return o?o(a.name,t).then(function(e){return a.tables[t]=e,e},function(){return e.reject(a.name)}):e.reject(a.name)})};var a={};this.addPart=function(r,i){if(!n(r))throw new TypeError("Couldn't add part, part name has to be a string!");return e(r)||(a[r]=new t(r,i)),a[r].isActive=!0,this},this.setPart=function(r,i,o){if(!n(r))throw new TypeError("Couldn't set part.`lang` parameter has to be a string!");if(!n(i))throw new TypeError("Couldn't set part.`part` parameter has to be a string!");if("object"!=typeof o||null===o)throw new TypeError("Couldn't set part. `table` parameter has to be an object!");return e(i)||(a[i]=new t(i),a[i].isActive=!1),a[i].tables[r]=o,this},this.deletePart=function(t){if(!n(t))throw new TypeError("Couldn't delete part, first arg has to be string.");return e(t)&&(a[t].isActive=!1),this},this.isPartAvailable=r,this.$get=["$rootScope","$injector","$q","$http",function(s,u,l,c){var f=function(t){if(!n(t.key))throw new TypeError("Unable to load data, a key is not a non-empty string.");if(!n(t.urlTemplate)&&!angular.isFunction(t.urlTemplate))throw new TypeError("Unable to load data, a urlTemplate is not a non-empty string or not a function.");var e=t.loadFailureHandler;if(void 0!==e){if(!angular.isString(e))throw new Error("Unable to load data, a loadFailureHandler is not a string.");e=u.get(e)}var r=[],a=o();return angular.forEach(a,function(n){r.push(n.getTable(t.key,l,c,t.$http,t.urlTemplate,e)),n.urlTemplate=t.urlTemplate}),l.all(r).then(function(){var e={};return a=o(),angular.forEach(a,function(n){i(e,n.tables[t.key])}),e},function(){return l.reject(t.key)})};return f.addPart=function(r,i){if(!n(r))throw new TypeError("Couldn't add part, first arg has to be a string");return e(r)?a[r].isActive||(a[r].isActive=!0,s.$emit("$translatePartialLoaderStructureChanged",r)):(a[r]=new t(r,i),s.$emit("$translatePartialLoaderStructureChanged",r)),f},f.deletePart=function(t,r){if(!n(t))throw new TypeError("Couldn't delete part, first arg has to be string");if(void 0===r)r=!1;else if("boolean"!=typeof r)throw new TypeError("Invalid type of a second argument, a boolean expected.");if(e(t)){var i=a[t].isActive;if(r){var o=u.get("$translate"),l=o.loaderCache();"string"==typeof l&&(l=u.get(l)),"object"==typeof l&&angular.forEach(a[t].tables,function(e,n){l.remove(a[t].parseUrl(a[t].urlTemplate,n))}),delete a[t]}else a[t].isActive=!1;i&&s.$emit("$translatePartialLoaderStructureChanged",t)}return f},f.isPartLoaded=function(t,e){return angular.isDefined(a[t])&&angular.isDefined(a[t].tables[e])},f.getRegisteredParts=function(){var t=[];return angular.forEach(a,function(e){e.isActive&&t.push(e.name)}),t},f.isPartAvailable=r,f}]}return angular.module("pascalprecht.translate").provider("$translatePartialLoader",t),t.displayName="$translatePartialLoader","pascalprecht.translate"}),function(t,e){"function"==typeof define&&define.amd?define([],function(){return e()}):"object"==typeof exports?module.exports=e():e()}(this,function(){function t(t,e){"use strict";return function(n){if(!(n&&(angular.isArray(n.files)||angular.isString(n.prefix)&&angular.isString(n.suffix))))throw new Error("Couldn't load static files, no files and prefix or suffix specified!");n.files||(n.files=[{prefix:n.prefix,suffix:n.suffix}]);for(var r=function(r){if(!r||!angular.isString(r.prefix)||!angular.isString(r.suffix))throw new Error("Couldn't load static file, no prefix or suffix specified!");return e(angular.extend({url:[r.prefix,n.key,r.suffix].join(""),method:"GET",params:""},n.$http)).then(function(t){return t.data},function(){return t.reject(n.key)})},i=[],o=n.files.length,a=0;a<o;a++)i.push(r({prefix:n.files[a].prefix,key:n.key,suffix:n.files[a].suffix}));return t.all(i).then(function(t){for(var e=t.length,n={},r=0;r<e;r++)for(var i in t[r])n[i]=t[r][i];return n})}}return angular.module("pascalprecht.translate").factory("$translateStaticFilesLoader",t),t.$inject=["$q","$http"],t.displayName="$translateStaticFilesLoader","pascalprecht.translate"}),function(t,e){"function"==typeof define&&define.amd?define(["messageformat"],function(t){return e(t)}):"object"==typeof exports?module.exports=e(require("messageformat")):e(MessageFormat)}(this,function(t){function e(e,n,r){"use strict";var i={},o=n.get(r),a=new t("en"),s="messageformat";return o||(o=n(r)),o.put("en",a),i.setLocale=function(e){a=o.get(e),a||(a=new t(e),o.put(e,a))},i.getInterpolationIdentifier=function(){return s},i.useSanitizeValueStrategy=function(t){return e.useStrategy(t),this},i.interpolate=function(t,n){n=n||{},n=e.sanitize(n,"params");var r=o.get(t+angular.toJson(n));if(!r){for(var i in n)if(n.hasOwnProperty(i)){var s=parseInt(n[i],10);angular.isNumber(s)&&""+s===n[i]&&(n[i]=s)}r=a.compile(t)(n),r=e.sanitize(r,"text"),o.put(t+angular.toJson(n),r)}return r},i}return angular.module("pascalprecht.translate").constant("TRANSLATE_MF_INTERPOLATION_CACHE","$translateMessageFormatInterpolation").factory("$translateMessageFormatInterpolation",e),e.$inject=["$translateSanitization","$cacheFactory","TRANSLATE_MF_INTERPOLATION_CACHE"],e.displayName="$translateMessageFormatInterpolation","pascalprecht.translate"}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";function t(){return ar.apply(null,arguments)}function e(t){ar=t}function n(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function i(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t,e){for(var n in e)o(e,n)&&(t[n]=e[n]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function s(t,e,n,r){return It(t,e,n,r,!0).utc()}function u(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function l(t){return null==t._pf&&(t._pf=u()),t._pf}function c(t){if(null==t._isValid){var e=l(t),n=sr.call(e.parsedDateParts,function(t){return null!=t});t._isValid=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n),t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function f(t){var e=s(NaN);return null!=t?a(l(e),t):l(e).userInvalidated=!0,e}function h(t){return void 0===t}function p(t,e){var n,r,i;if(h(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),h(e._i)||(t._i=e._i),h(e._f)||(t._f=e._f),h(e._l)||(t._l=e._l),h(e._strict)||(t._strict=e._strict),h(e._tzm)||(t._tzm=e._tzm),h(e._isUTC)||(t._isUTC=e._isUTC),h(e._offset)||(t._offset=e._offset),h(e._pf)||(t._pf=l(e)),h(e._locale)||(t._locale=e._locale),ur.length>0)for(n in ur)r=ur[n],i=e[r],h(i)||(t[r]=i);return t}function d(e){p(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),lr===!1&&(lr=!0,t.updateOffset(this),lr=!1)}function v(t){return t instanceof d||null!=t&&null!=t._isAMomentObject}function m(t){return t<0?Math.ceil(t):Math.floor(t)}function g(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=m(e)),n}function y(t,e,n){var r,i=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&g(t[r])!==g(e[r]))&&a++;return a+o}function _(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function b(e,n){var r=!0;return a(function(){return null!=t.deprecationHandler&&t.deprecationHandler(null,e),r&&(_(e+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),r=!1),n.apply(this,arguments)},n)}function w(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),cr[e]||(_(n),cr[e]=!0)}function x(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function $(t){return"[object Object]"===Object.prototype.toString.call(t)}function k(t){var e,n;for(n in t)e=t[n],x(e)?this[n]=e:this["_"+n]=e;this._config=t,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function C(t,e){var n,r=a({},t);for(n in e)o(e,n)&&($(t[n])&&$(e[n])?(r[n]={},a(r[n],t[n]),a(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);return r}function S(t){null!=t&&this.set(t)}function E(t){return t?t.toLowerCase().replace("_","-"):t}function T(t){for(var e,n,r,i,o=0;o<t.length;){for(i=E(t[o]).split("-"),e=i.length,n=E(t[o+1]),n=n?n.split("-"):null;e>0;){if(r=A(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&y(i,n,!0)>=e-1)break;e--}o++}return null}function A(t){var e=null;if(!dr[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=hr._abbr,require("./locale/"+t),D(e)}catch(n){}return dr[t]}function D(t,e){var n;return t&&(n=h(e)?j(t):F(t,e),n&&(hr=n)),hr._abbr}function F(t,e){return null!==e?(e.abbr=t,null!=dr[t]?(w("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale"),e=C(dr[t]._config,e)):null!=e.parentLocale&&(null!=dr[e.parentLocale]?e=C(dr[e.parentLocale]._config,e):w("parentLocaleUndefined","specified parentLocale is not defined yet")),dr[t]=new S(e),D(t),dr[t]):(delete dr[t],null)}function O(t,e){if(null!=e){var n;null!=dr[t]&&(e=C(dr[t]._config,e)),n=new S(e),n.parentLocale=dr[t],dr[t]=n,D(t)}else null!=dr[t]&&(null!=dr[t].parentLocale?dr[t]=dr[t].parentLocale:null!=dr[t]&&delete dr[t]);return dr[t]}function j(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return hr;if(!n(t)){if(e=A(t))return e;t=[t]}return T(t)}function M(){return fr(dr)}function I(t,e){var n=t.toLowerCase();vr[n]=vr[n+"s"]=vr[e]=t}function P(t){return"string"==typeof t?vr[t]||vr[t.toLowerCase()]:void 0}function N(t){var e,n,r={};for(n in t)o(t,n)&&(e=P(n),e&&(r[e]=t[n]));return r}function R(e,n){return function(r){return null!=r?(z(this,e,r),t.updateOffset(this,n),this):L(this,e)}}function L(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function z(t,e,n){t.isValid()&&t._d["set"+(t._isUTC?"UTC":"")+e](n)}function q(t,e){var n;if("object"==typeof t)for(n in t)this.set(n,t[n]);else if(t=P(t),x(this[t]))return this[t](e);return this}function H(t,e,n){var r=""+Math.abs(t),i=e-r.length,o=t>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function U(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(_r[t]=i),e&&(_r[e[0]]=function(){return H(i.apply(this,arguments),e[1],e[2])}),n&&(_r[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function W(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function V(t){var e,n,r=t.match(mr);for(e=0,n=r.length;e<n;e++)_r[r[e]]?r[e]=_r[r[e]]:r[e]=W(r[e]);return function(e){var i,o="";for(i=0;i<n;i++)o+=r[i]instanceof Function?r[i].call(e,t):r[i];return o}}function B(t,e){return t.isValid()?(e=Y(e,t.localeData()),yr[e]=yr[e]||V(e),yr[e](t)):t.localeData().invalidDate()}function Y(t,e){function n(t){return e.longDateFormat(t)||t}var r=5;for(gr.lastIndex=0;r>=0&&gr.test(t);)t=t.replace(gr,n),gr.lastIndex=0,r-=1;return t}function K(t,e,n){Nr[t]=x(e)?e:function(t,r){return t&&n?n:e}}function G(t,e){return o(Nr,t)?Nr[t](e._strict,e._locale):new RegExp(X(t))}function X(t){return J(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,i){return e||n||r||i}))}function J(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Q(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),"number"==typeof e&&(r=function(t,n){n[e]=g(t)}),n=0;n<t.length;n++)Rr[t[n]]=r}function Z(t,e){Q(t,function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)})}function tt(t,e,n){null!=e&&o(Rr,t)&&Rr[t](e,n._a,n,t)}function et(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function nt(t,e){return n(this._months)?this._months[t.month()]:this._months[Kr.test(e)?"format":"standalone"][t.month()]}function rt(t,e){return n(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Kr.test(e)?"format":"standalone"][t.month()]}function it(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=s([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?(i=pr.call(this._shortMonthsParse,a),i!==-1?i:null):(i=pr.call(this._longMonthsParse,a),i!==-1?i:null):"MMM"===e?(i=pr.call(this._shortMonthsParse,a),i!==-1?i:(i=pr.call(this._longMonthsParse,a),i!==-1?i:null)):(i=pr.call(this._longMonthsParse,a),i!==-1?i:(i=pr.call(this._shortMonthsParse,a),i!==-1?i:null))}function ot(t,e,n){var r,i,o;if(this._monthsParseExact)return it.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=s([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function at(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=g(e);else if(e=t.localeData().monthsParse(e),"number"!=typeof e)return t;return n=Math.min(t.date(),et(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function st(e){return null!=e?(at(this,e),t.updateOffset(this,!0),this):L(this,"Month")}function ut(){return et(this.year(),this.month())}function lt(t){return this._monthsParseExact?(o(this,"_monthsRegex")||ft.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex}function ct(t){return this._monthsParseExact?(o(this,"_monthsRegex")||ft.call(this),t?this._monthsStrictRegex:this._monthsRegex):this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex}function ft(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],o=[];for(e=0;e<12;e++)n=s([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),o.sort(t),e=0;e<12;e++)r[e]=J(r[e]),i[e]=J(i[e]),o[e]=J(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ht(t){var e,n=t._a;return n&&l(t).overflow===-2&&(e=n[zr]<0||n[zr]>11?zr:n[qr]<1||n[qr]>et(n[Lr],n[zr])?qr:n[Hr]<0||n[Hr]>24||24===n[Hr]&&(0!==n[Ur]||0!==n[Wr]||0!==n[Vr])?Hr:n[Ur]<0||n[Ur]>59?Ur:n[Wr]<0||n[Wr]>59?Wr:n[Vr]<0||n[Vr]>999?Vr:-1,l(t)._overflowDayOfYear&&(e<Lr||e>qr)&&(e=qr),l(t)._overflowWeeks&&e===-1&&(e=Br),l(t)._overflowWeekday&&e===-1&&(e=Yr),l(t).overflow=e),t}function pt(t){var e,n,r,i,o,a,s=t._i,u=Zr.exec(s)||ti.exec(s);if(u){for(l(t).iso=!0,e=0,n=ni.length;e<n;e++)if(ni[e][1].exec(u[1])){i=ni[e][0],r=ni[e][2]!==!1;break}if(null==i)return void(t._isValid=!1);if(u[3]){for(e=0,n=ri.length;e<n;e++)if(ri[e][1].exec(u[3])){o=(u[2]||" ")+ri[e][0];break}if(null==o)return void(t._isValid=!1)}if(!r&&null!=o)return void(t._isValid=!1);if(u[4]){if(!ei.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=i+(o||"")+(a||""),Tt(t)}else t._isValid=!1}function dt(e){var n=ii.exec(e._i);return null!==n?void(e._d=new Date((+n[1]))):(pt(e),void(e._isValid===!1&&(delete e._isValid,t.createFromInputFallback(e))))}function vt(t,e,n,r,i,o,a){var s=new Date(t,e,n,r,i,o,a);return t<100&&t>=0&&isFinite(s.getFullYear())&&s.setFullYear(t),s}function mt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function gt(t){return yt(t)?366:365}function yt(t){return t%4===0&&t%100!==0||t%400===0}function _t(){return yt(this.year())}function bt(t,e,n){var r=7+e-n,i=(7+mt(t,0,r).getUTCDay()-e)%7;return-i+r-1}function wt(t,e,n,r,i){var o,a,s=(7+n-r)%7,u=bt(t,r,i),l=1+7*(e-1)+s+u;return l<=0?(o=t-1,a=gt(o)+l):l>gt(t)?(o=t+1,a=l-gt(t)):(o=t,a=l),{year:o,dayOfYear:a}}function xt(t,e,n){var r,i,o=bt(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?(i=t.year()-1,r=a+$t(i,e,n)):a>$t(t.year(),e,n)?(r=a-$t(t.year(),e,n),i=t.year()+1):(i=t.year(),r=a),{week:r,year:i}}function $t(t,e,n){var r=bt(t,e,n),i=bt(t+1,e,n);return(gt(t)-r+i)/7}function kt(t,e,n){return null!=t?t:null!=e?e:n}function Ct(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function St(t){var e,n,r,i,o=[];if(!t._d){for(r=Ct(t),t._w&&null==t._a[qr]&&null==t._a[zr]&&Et(t),t._dayOfYear&&(i=kt(t._a[Lr],r[Lr]),t._dayOfYear>gt(i)&&(l(t)._overflowDayOfYear=!0),n=mt(i,0,t._dayOfYear),t._a[zr]=n.getUTCMonth(),t._a[qr]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=r[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Hr]&&0===t._a[Ur]&&0===t._a[Wr]&&0===t._a[Vr]&&(t._nextDay=!0,t._a[Hr]=0),t._d=(t._useUTC?mt:vt).apply(null,o),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Hr]=24)}}function Et(t){var e,n,r,i,o,a,s,u;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(o=1,a=4,n=kt(e.GG,t._a[Lr],xt(Pt(),1,4).year),r=kt(e.W,1),i=kt(e.E,1),(i<1||i>7)&&(u=!0)):(o=t._locale._week.dow,a=t._locale._week.doy,n=kt(e.gg,t._a[Lr],xt(Pt(),o,a).year),r=kt(e.w,1),null!=e.d?(i=e.d,(i<0||i>6)&&(u=!0)):null!=e.e?(i=e.e+o,(e.e<0||e.e>6)&&(u=!0)):i=o),r<1||r>$t(n,o,a)?l(t)._overflowWeeks=!0:null!=u?l(t)._overflowWeekday=!0:(s=wt(n,r,i,o,a),t._a[Lr]=s.year,t._dayOfYear=s.dayOfYear)}function Tt(e){if(e._f===t.ISO_8601)return void pt(e);e._a=[],l(e).empty=!0;var n,r,i,o,a,s=""+e._i,u=s.length,c=0;for(i=Y(e._f,e._locale).match(mr)||[],n=0;n<i.length;n++)o=i[n],r=(s.match(G(o,e))||[])[0],r&&(a=s.substr(0,s.indexOf(r)),a.length>0&&l(e).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),c+=r.length),_r[o]?(r?l(e).empty=!1:l(e).unusedTokens.push(o),tt(o,r,e)):e._strict&&!r&&l(e).unusedTokens.push(o);l(e).charsLeftOver=u-c,s.length>0&&l(e).unusedInput.push(s),l(e).bigHour===!0&&e._a[Hr]<=12&&e._a[Hr]>0&&(l(e).bigHour=void 0),l(e).parsedDateParts=e._a.slice(0),l(e).meridiem=e._meridiem,e._a[Hr]=At(e._locale,e._a[Hr],e._meridiem),St(e),ht(e)}function At(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(r=t.isPM(n),r&&e<12&&(e+=12),r||12!==e||(e=0),e):e}function Dt(t){var e,n,r,i,o;if(0===t._f.length)return l(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<t._f.length;i++)o=0,e=p({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Tt(e),c(e)&&(o+=l(e).charsLeftOver,o+=10*l(e).unusedTokens.length,l(e).score=o,(null==r||o<r)&&(r=o,n=e));a(t,n||e)}function Ft(t){if(!t._d){var e=N(t._i);t._a=i([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),St(t)}}function Ot(t){var e=new d(ht(jt(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function jt(t){var e=t._i,i=t._f;return t._locale=t._locale||j(t._l),null===e||void 0===i&&""===e?f({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),v(e)?new d(ht(e)):(n(i)?Dt(t):i?Tt(t):r(e)?t._d=e:Mt(t),c(t)||(t._d=null),t))}function Mt(e){var o=e._i;void 0===o?e._d=new Date(t.now()):r(o)?e._d=new Date(o.valueOf()):"string"==typeof o?dt(e):n(o)?(e._a=i(o.slice(0),function(t){return parseInt(t,10)}),St(e)):"object"==typeof o?Ft(e):"number"==typeof o?e._d=new Date(o):t.createFromInputFallback(e)}function It(t,e,n,r,i){var o={};return"boolean"==typeof n&&(r=n,n=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=t,o._f=e,o._strict=r,Ot(o)}function Pt(t,e,n,r){return It(t,e,n,r,!1)}function Nt(t,e){var r,i;if(1===e.length&&n(e[0])&&(e=e[0]),!e.length)return Pt();for(r=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](r)||(r=e[i]);return r}function Rt(){var t=[].slice.call(arguments,0);return Nt("isBefore",t)}function Lt(){var t=[].slice.call(arguments,0);return Nt("isAfter",t)}function zt(t){var e=N(t),n=e.year||0,r=e.quarter||0,i=e.month||0,o=e.week||0,a=e.day||0,s=e.hour||0,u=e.minute||0,l=e.second||0,c=e.millisecond||0;this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=j(),this._bubble()}function qt(t){return t instanceof zt}function Ht(t,e){U(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+H(~~(t/60),2)+e+H(~~t%60,2)})}function Ut(t,e){var n=(e||"").match(t)||[],r=n[n.length-1]||[],i=(r+"").match(li)||["-",0,0],o=+(60*i[1])+g(i[2]);return"+"===i[0]?o:-o}function Wt(e,n){var i,o;return n._isUTC?(i=n.clone(),o=(v(e)||r(e)?e.valueOf():Pt(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+o),t.updateOffset(i,!1),i):Pt(e).local()}function Vt(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Bt(e,n){var r,i=this._offset||0;return this.isValid()?null!=e?("string"==typeof e?e=Ut(Mr,e):Math.abs(e)<16&&(e=60*e),!this._isUTC&&n&&(r=Vt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!n||this._changeInProgress?le(this,re(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:Vt(this):null!=e?this:NaN}function Yt(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function Kt(t){return this.utcOffset(0,t)}function Gt(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Vt(this),"m")),this}function Xt(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Ut(jr,this._i)),this}function Jt(t){return!!this.isValid()&&(t=t?Pt(t).utcOffset():0,(this.utcOffset()-t)%60===0)}function Qt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Zt(){if(!h(this._isDSTShifted))return this._isDSTShifted;var t={};if(p(t,this),t=jt(t),t._a){var e=t._isUTC?s(t._a):Pt(t._a);this._isDSTShifted=this.isValid()&&y(t._a,e.toArray())>0;
}else this._isDSTShifted=!1;return this._isDSTShifted}function te(){return!!this.isValid()&&!this._isUTC}function ee(){return!!this.isValid()&&this._isUTC}function ne(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function re(t,e){var n,r,i,a=t,s=null;return qt(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(a={},e?a[e]=t:a.milliseconds=t):(s=ci.exec(t))?(n="-"===s[1]?-1:1,a={y:0,d:g(s[qr])*n,h:g(s[Hr])*n,m:g(s[Ur])*n,s:g(s[Wr])*n,ms:g(s[Vr])*n}):(s=fi.exec(t))?(n="-"===s[1]?-1:1,a={y:ie(s[2],n),M:ie(s[3],n),w:ie(s[4],n),d:ie(s[5],n),h:ie(s[6],n),m:ie(s[7],n),s:ie(s[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=ae(Pt(a.from),Pt(a.to)),a={},a.ms=i.milliseconds,a.M=i.months),r=new zt(a),qt(t)&&o(t,"_locale")&&(r._locale=t._locale),r}function ie(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function oe(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function ae(t,e){var n;return t.isValid()&&e.isValid()?(e=Wt(e,t),t.isBefore(e)?n=oe(t,e):(n=oe(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function se(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function ue(t,e){return function(n,r){var i,o;return null===r||isNaN(+r)||(w(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period)."),o=n,n=r,r=o),n="string"==typeof n?+n:n,i=re(n,r),le(this,i,t),this}}function le(e,n,r,i){var o=n._milliseconds,a=se(n._days),s=se(n._months);e.isValid()&&(i=null==i||i,o&&e._d.setTime(e._d.valueOf()+o*r),a&&z(e,"Date",L(e,"Date")+a*r),s&&at(e,L(e,"Month")+s*r),i&&t.updateOffset(e,a||s))}function ce(t,e){var n=t||Pt(),r=Wt(n,this).startOf("day"),i=this.diff(r,"days",!0),o=i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse",a=e&&(x(e[o])?e[o]():e[o]);return this.format(a||this.localeData().calendar(o,this,Pt(n)))}function fe(){return new d(this)}function he(t,e){var n=v(t)?t:Pt(t);return!(!this.isValid()||!n.isValid())&&(e=P(h(e)?"millisecond":e),"millisecond"===e?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function pe(t,e){var n=v(t)?t:Pt(t);return!(!this.isValid()||!n.isValid())&&(e=P(h(e)?"millisecond":e),"millisecond"===e?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function de(t,e,n,r){return r=r||"()",("("===r[0]?this.isAfter(t,n):!this.isBefore(t,n))&&(")"===r[1]?this.isBefore(e,n):!this.isAfter(e,n))}function ve(t,e){var n,r=v(t)?t:Pt(t);return!(!this.isValid()||!r.isValid())&&(e=P(e||"millisecond"),"millisecond"===e?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function me(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function ge(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function ye(t,e,n){var r,i,o,a;return this.isValid()?(r=Wt(t,this),r.isValid()?(i=6e4*(r.utcOffset()-this.utcOffset()),e=P(e),"year"===e||"month"===e||"quarter"===e?(a=_e(this,r),"quarter"===e?a/=3:"year"===e&&(a/=12)):(o=this-r,a="second"===e?o/1e3:"minute"===e?o/6e4:"hour"===e?o/36e5:"day"===e?(o-i)/864e5:"week"===e?(o-i)/6048e5:o),n?a:m(a)):NaN):NaN}function _e(t,e){var n,r,i=12*(e.year()-t.year())+(e.month()-t.month()),o=t.clone().add(i,"months");return e-o<0?(n=t.clone().add(i-1,"months"),r=(e-o)/(o-n)):(n=t.clone().add(i+1,"months"),r=(e-o)/(n-o)),-(i+r)||0}function be(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function we(){var t=this.clone().utc();return 0<t.year()&&t.year()<=9999?x(Date.prototype.toISOString)?this.toDate().toISOString():B(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):B(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function xe(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=B(this,e);return this.localeData().postformat(n)}function $e(t,e){return this.isValid()&&(v(t)&&t.isValid()||Pt(t).isValid())?re({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ke(t){return this.from(Pt(),t)}function Ce(t,e){return this.isValid()&&(v(t)&&t.isValid()||Pt(t).isValid())?re({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Se(t){return this.to(Pt(),t)}function Ee(t){var e;return void 0===t?this._locale._abbr:(e=j(t),null!=e&&(this._locale=e),this)}function Te(){return this._locale}function Ae(t){switch(t=P(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function De(t){return t=P(t),void 0===t||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))}function Fe(){return this._d.valueOf()-6e4*(this._offset||0)}function Oe(){return Math.floor(this.valueOf()/1e3)}function je(){return this._offset?new Date(this.valueOf()):this._d}function Me(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Ie(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Pe(){return this.isValid()?this.toISOString():null}function Ne(){return c(this)}function Re(){return a({},l(this))}function Le(){return l(this).overflow}function ze(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function qe(t,e){U(0,[t,t.length],0,e)}function He(t){return Be.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ue(t){return Be.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function We(){return $t(this.year(),1,4)}function Ve(){var t=this.localeData()._week;return $t(this.year(),t.dow,t.doy)}function Be(t,e,n,r,i){var o;return null==t?xt(this,r,i).year:(o=$t(t,r,i),e>o&&(e=o),Ye.call(this,t,e,n,r,i))}function Ye(t,e,n,r,i){var o=wt(t,e,n,r,i),a=mt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Ke(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Ge(t){return xt(t,this._week.dow,this._week.doy).week}function Xe(){return this._week.dow}function Je(){return this._week.doy}function Qe(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Ze(t){var e=xt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function tn(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function en(t,e){return n(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]}function nn(t){return this._weekdaysShort[t.day()]}function rn(t){return this._weekdaysMin[t.day()]}function on(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=s([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?(i=pr.call(this._weekdaysParse,a),i!==-1?i:null):"ddd"===e?(i=pr.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=pr.call(this._minWeekdaysParse,a),i!==-1?i:null):"dddd"===e?(i=pr.call(this._weekdaysParse,a),i!==-1?i:(i=pr.call(this._shortWeekdaysParse,a),i!==-1?i:(i=pr.call(this._minWeekdaysParse,a),i!==-1?i:null))):"ddd"===e?(i=pr.call(this._shortWeekdaysParse,a),i!==-1?i:(i=pr.call(this._weekdaysParse,a),i!==-1?i:(i=pr.call(this._minWeekdaysParse,a),i!==-1?i:null))):(i=pr.call(this._minWeekdaysParse,a),i!==-1?i:(i=pr.call(this._weekdaysParse,a),i!==-1?i:(i=pr.call(this._shortWeekdaysParse,a),i!==-1?i:null)))}function an(t,e,n){var r,i,o;if(this._weekdaysParseExact)return on.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=s([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function sn(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=tn(t,this.localeData()),this.add(t-e,"d")):e}function un(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function ln(t){return this.isValid()?null==t?this.day()||7:this.day(this.day()%7?t:t-7):null!=t?this:NaN}function cn(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||pn.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex}function fn(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||pn.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}function hn(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||pn.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}function pn(){function t(t,e){return e.length-t.length}var e,n,r,i,o,a=[],u=[],l=[],c=[];for(e=0;e<7;e++)n=s([2e3,1]).day(e),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),u.push(i),l.push(o),c.push(r),c.push(i),c.push(o);for(a.sort(t),u.sort(t),l.sort(t),c.sort(t),e=0;e<7;e++)u[e]=J(u[e]),l[e]=J(l[e]),c[e]=J(c[e]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function dn(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function vn(){return this.hours()%12||12}function mn(){return this.hours()||24}function gn(t,e){U(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function yn(t,e){return e._meridiemParse}function _n(t){return"p"===(t+"").toLowerCase().charAt(0)}function bn(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function wn(t,e){e[Vr]=g(1e3*("0."+t))}function xn(){return this._isUTC?"UTC":""}function $n(){return this._isUTC?"Coordinated Universal Time":""}function kn(t){return Pt(1e3*t)}function Cn(){return Pt.apply(null,arguments).parseZone()}function Sn(t,e,n){var r=this._calendar[t];return x(r)?r.call(e,n):r}function En(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function Tn(){return this._invalidDate}function An(t){return this._ordinal.replace("%d",t)}function Dn(t){return t}function Fn(t,e,n,r){var i=this._relativeTime[n];return x(i)?i(t,e,n,r):i.replace(/%d/i,t)}function On(t,e){var n=this._relativeTime[t>0?"future":"past"];return x(n)?n(e):n.replace(/%s/i,e)}function jn(t,e,n,r){var i=j(),o=s().set(r,e);return i[n](o,t)}function Mn(t,e,n){if("number"==typeof t&&(e=t,t=void 0),t=t||"",null!=e)return jn(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=jn(t,r,n,"month");return i}function In(t,e,n,r){"boolean"==typeof t?("number"==typeof e&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,"number"==typeof e&&(n=e,e=void 0),e=e||"");var i=j(),o=t?i._week.dow:0;if(null!=n)return jn(e,(n+o)%7,r,"day");var a,s=[];for(a=0;a<7;a++)s[a]=jn(e,(a+o)%7,r,"day");return s}function Pn(t,e){return Mn(t,e,"months")}function Nn(t,e){return Mn(t,e,"monthsShort")}function Rn(t,e,n){return In(t,e,n,"weekdays")}function Ln(t,e,n){return In(t,e,n,"weekdaysShort")}function zn(t,e,n){return In(t,e,n,"weekdaysMin")}function qn(){var t=this._data;return this._milliseconds=Ri(this._milliseconds),this._days=Ri(this._days),this._months=Ri(this._months),t.milliseconds=Ri(t.milliseconds),t.seconds=Ri(t.seconds),t.minutes=Ri(t.minutes),t.hours=Ri(t.hours),t.months=Ri(t.months),t.years=Ri(t.years),this}function Hn(t,e,n,r){var i=re(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function Un(t,e){return Hn(this,t,e,1)}function Wn(t,e){return Hn(this,t,e,-1)}function Vn(t){return t<0?Math.floor(t):Math.ceil(t)}function Bn(){var t,e,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Vn(Kn(s)+a),a=0,s=0),u.milliseconds=o%1e3,t=m(o/1e3),u.seconds=t%60,e=m(t/60),u.minutes=e%60,n=m(e/60),u.hours=n%24,a+=m(n/24),i=m(Yn(a)),s+=i,a-=Vn(Kn(i)),r=m(s/12),s%=12,u.days=a,u.months=s,u.years=r,this}function Yn(t){return 4800*t/146097}function Kn(t){return 146097*t/4800}function Gn(t){var e,n,r=this._milliseconds;if(t=P(t),"month"===t||"year"===t)return e=this._days+r/864e5,n=this._months+Yn(e),"month"===t?n:n/12;switch(e=this._days+Math.round(Kn(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}}function Xn(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*g(this._months/12)}function Jn(t){return function(){return this.as(t)}}function Qn(t){return t=P(t),this[t+"s"]()}function Zn(t){return function(){return this._data[t]}}function tr(){return m(this.days()/7)}function er(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function nr(t,e,n){var r=re(t).abs(),i=to(r.as("s")),o=to(r.as("m")),a=to(r.as("h")),s=to(r.as("d")),u=to(r.as("M")),l=to(r.as("y")),c=i<eo.s&&["s",i]||o<=1&&["m"]||o<eo.m&&["mm",o]||a<=1&&["h"]||a<eo.h&&["hh",a]||s<=1&&["d"]||s<eo.d&&["dd",s]||u<=1&&["M"]||u<eo.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=e,c[3]=+t>0,c[4]=n,er.apply(null,c)}function rr(t,e){return void 0!==eo[t]&&(void 0===e?eo[t]:(eo[t]=e,!0))}function ir(t){var e=this.localeData(),n=nr(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function or(){var t,e,n,r=no(this._milliseconds)/1e3,i=no(this._days),o=no(this._months);t=m(r/60),e=m(t/60),r%=60,t%=60,n=m(o/12),o%=12;var a=n,s=o,u=i,l=e,c=t,f=r,h=this.asSeconds();return h?(h<0?"-":"")+"P"+(a?a+"Y":"")+(s?s+"M":"")+(u?u+"D":"")+(l||c||f?"T":"")+(l?l+"H":"")+(c?c+"M":"")+(f?f+"S":""):"P0D"}var ar,sr;sr=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};var ur=t.momentProperties=[],lr=!1,cr={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var fr;fr=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)o(t,e)&&n.push(e);return n};var hr,pr,dr={},vr={},mr=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,gr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,yr={},_r={},br=/\d/,wr=/\d\d/,xr=/\d{3}/,$r=/\d{4}/,kr=/[+-]?\d{6}/,Cr=/\d\d?/,Sr=/\d\d\d\d?/,Er=/\d\d\d\d\d\d?/,Tr=/\d{1,3}/,Ar=/\d{1,4}/,Dr=/[+-]?\d{1,6}/,Fr=/\d+/,Or=/[+-]?\d+/,jr=/Z|[+-]\d\d:?\d\d/gi,Mr=/Z|[+-]\d\d(?::?\d\d)?/gi,Ir=/[+-]?\d+(\.\d{1,3})?/,Pr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Nr={},Rr={},Lr=0,zr=1,qr=2,Hr=3,Ur=4,Wr=5,Vr=6,Br=7,Yr=8;pr=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),U("MMMM",0,0,function(t){return this.localeData().months(this,t)}),I("month","M"),K("M",Cr),K("MM",Cr,wr),K("MMM",function(t,e){return e.monthsShortRegex(t)}),K("MMMM",function(t,e){return e.monthsRegex(t)}),Q(["M","MM"],function(t,e){e[zr]=g(t)-1}),Q(["MMM","MMMM"],function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[zr]=i:l(n).invalidMonth=t});var Kr=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,Gr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Xr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Jr=Pr,Qr=Pr,Zr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,ti=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,ei=/Z|[+-]\d\d(?::?\d\d)?/,ni=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ri=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ii=/^\/?Date\((\-?\d+)/i;t.createFromInputFallback=b("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),U("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),I("year","y"),K("Y",Or),K("YY",Cr,wr),K("YYYY",Ar,$r),K("YYYYY",Dr,kr),K("YYYYYY",Dr,kr),Q(["YYYYY","YYYYYY"],Lr),Q("YYYY",function(e,n){n[Lr]=2===e.length?t.parseTwoDigitYear(e):g(e)}),Q("YY",function(e,n){n[Lr]=t.parseTwoDigitYear(e)}),Q("Y",function(t,e){e[Lr]=parseInt(t,10)}),t.parseTwoDigitYear=function(t){return g(t)+(g(t)>68?1900:2e3)};var oi=R("FullYear",!0);t.ISO_8601=function(){};var ai=b("moment().min is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var t=Pt.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:f()}),si=b("moment().max is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var t=Pt.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:f()}),ui=function(){return Date.now?Date.now():+new Date};Ht("Z",":"),Ht("ZZ",""),K("Z",Mr),K("ZZ",Mr),Q(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Ut(Mr,t)});var li=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var ci=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,fi=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;re.fn=zt.prototype;var hi=ue(1,"add"),pi=ue(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var di=b("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),qe("gggg","weekYear"),qe("ggggg","weekYear"),qe("GGGG","isoWeekYear"),qe("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),K("G",Or),K("g",Or),K("GG",Cr,wr),K("gg",Cr,wr),K("GGGG",Ar,$r),K("gggg",Ar,$r),K("GGGGG",Dr,kr),K("ggggg",Dr,kr),Z(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=g(t)}),Z(["gg","GG"],function(e,n,r,i){n[i]=t.parseTwoDigitYear(e)}),U("Q",0,"Qo","quarter"),I("quarter","Q"),K("Q",br),Q("Q",function(t,e){e[zr]=3*(g(t)-1)}),U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),K("w",Cr),K("ww",Cr,wr),K("W",Cr),K("WW",Cr,wr),Z(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=g(t)});var vi={dow:0,doy:6};U("D",["DD",2],"Do","date"),I("date","D"),K("D",Cr),K("DD",Cr,wr),K("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),Q(["D","DD"],qr),Q("Do",function(t,e){e[qr]=g(t.match(Cr)[0],10)});var mi=R("Date",!0);U("d",0,"do","day"),U("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),U("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),U("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),K("d",Cr),K("e",Cr),K("E",Cr),K("dd",function(t,e){return e.weekdaysMinRegex(t)}),K("ddd",function(t,e){return e.weekdaysShortRegex(t)}),K("dddd",function(t,e){return e.weekdaysRegex(t)}),Z(["dd","ddd","dddd"],function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:l(n).invalidWeekday=t}),Z(["d","e","E"],function(t,e,n,r){e[r]=g(t)});var gi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),yi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),_i="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),bi=Pr,wi=Pr,xi=Pr;U("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),K("DDD",Tr),K("DDDD",xr),Q(["DDD","DDDD"],function(t,e,n){n._dayOfYear=g(t)}),U("H",["HH",2],0,"hour"),U("h",["hh",2],0,vn),U("k",["kk",2],0,mn),U("hmm",0,0,function(){return""+vn.apply(this)+H(this.minutes(),2)}),U("hmmss",0,0,function(){return""+vn.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+H(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)}),gn("a",!0),gn("A",!1),I("hour","h"),K("a",yn),K("A",yn),K("H",Cr),K("h",Cr),K("HH",Cr,wr),K("hh",Cr,wr),K("hmm",Sr),K("hmmss",Er),K("Hmm",Sr),K("Hmmss",Er),Q(["H","HH"],Hr),Q(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),Q(["h","hh"],function(t,e,n){e[Hr]=g(t),l(n).bigHour=!0}),Q("hmm",function(t,e,n){var r=t.length-2;e[Hr]=g(t.substr(0,r)),e[Ur]=g(t.substr(r)),l(n).bigHour=!0}),Q("hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[Hr]=g(t.substr(0,r)),e[Ur]=g(t.substr(r,2)),e[Wr]=g(t.substr(i)),l(n).bigHour=!0}),Q("Hmm",function(t,e,n){var r=t.length-2;e[Hr]=g(t.substr(0,r)),e[Ur]=g(t.substr(r))}),Q("Hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[Hr]=g(t.substr(0,r)),e[Ur]=g(t.substr(r,2)),e[Wr]=g(t.substr(i))});var $i=/[ap]\.?m?\.?/i,ki=R("Hours",!0);U("m",["mm",2],0,"minute"),I("minute","m"),K("m",Cr),K("mm",Cr,wr),Q(["m","mm"],Ur);var Ci=R("Minutes",!1);U("s",["ss",2],0,"second"),I("second","s"),K("s",Cr),K("ss",Cr,wr),Q(["s","ss"],Wr);var Si=R("Seconds",!1);U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),K("S",Tr,br),K("SS",Tr,wr),K("SSS",Tr,xr);var Ei;for(Ei="SSSS";Ei.length<=9;Ei+="S")K(Ei,Fr);for(Ei="S";Ei.length<=9;Ei+="S")Q(Ei,wn);var Ti=R("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var Ai=d.prototype;Ai.add=hi,Ai.calendar=ce,Ai.clone=fe,Ai.diff=ye,Ai.endOf=De,Ai.format=xe,Ai.from=$e,Ai.fromNow=ke,Ai.to=Ce,Ai.toNow=Se,Ai.get=q,Ai.invalidAt=Le,Ai.isAfter=he,Ai.isBefore=pe,Ai.isBetween=de,Ai.isSame=ve,Ai.isSameOrAfter=me,Ai.isSameOrBefore=ge,Ai.isValid=Ne,Ai.lang=di,Ai.locale=Ee,Ai.localeData=Te,Ai.max=si,Ai.min=ai,Ai.parsingFlags=Re,Ai.set=q,Ai.startOf=Ae,Ai.subtract=pi,Ai.toArray=Me,Ai.toObject=Ie,Ai.toDate=je,Ai.toISOString=we,Ai.toJSON=Pe,Ai.toString=be,Ai.unix=Oe,Ai.valueOf=Fe,Ai.creationData=ze,Ai.year=oi,Ai.isLeapYear=_t,Ai.weekYear=He,Ai.isoWeekYear=Ue,Ai.quarter=Ai.quarters=Ke,Ai.month=st,Ai.daysInMonth=ut,Ai.week=Ai.weeks=Qe,Ai.isoWeek=Ai.isoWeeks=Ze,Ai.weeksInYear=Ve,Ai.isoWeeksInYear=We,Ai.date=mi,Ai.day=Ai.days=sn,Ai.weekday=un,Ai.isoWeekday=ln,Ai.dayOfYear=dn,Ai.hour=Ai.hours=ki,Ai.minute=Ai.minutes=Ci,Ai.second=Ai.seconds=Si,Ai.millisecond=Ai.milliseconds=Ti,Ai.utcOffset=Bt,Ai.utc=Kt,Ai.local=Gt,Ai.parseZone=Xt,Ai.hasAlignedHourOffset=Jt,Ai.isDST=Qt,Ai.isDSTShifted=Zt,Ai.isLocal=te,Ai.isUtcOffset=ee,Ai.isUtc=ne,Ai.isUTC=ne,Ai.zoneAbbr=xn,Ai.zoneName=$n,Ai.dates=b("dates accessor is deprecated. Use date instead.",mi),Ai.months=b("months accessor is deprecated. Use month instead",st),Ai.years=b("years accessor is deprecated. Use year instead",oi),Ai.zone=b("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Yt);var Di=Ai,Fi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Oi={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},ji="Invalid date",Mi="%d",Ii=/\d{1,2}/,Pi={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Ni=S.prototype;Ni._calendar=Fi,Ni.calendar=Sn,Ni._longDateFormat=Oi,Ni.longDateFormat=En,Ni._invalidDate=ji,Ni.invalidDate=Tn,Ni._ordinal=Mi,Ni.ordinal=An,Ni._ordinalParse=Ii,Ni.preparse=Dn,Ni.postformat=Dn,Ni._relativeTime=Pi,Ni.relativeTime=Fn,Ni.pastFuture=On,Ni.set=k,Ni.months=nt,Ni._months=Gr,Ni.monthsShort=rt,Ni._monthsShort=Xr,Ni.monthsParse=ot,Ni._monthsRegex=Qr,Ni.monthsRegex=ct,Ni._monthsShortRegex=Jr,Ni.monthsShortRegex=lt,Ni.week=Ge,Ni._week=vi,Ni.firstDayOfYear=Je,Ni.firstDayOfWeek=Xe,Ni.weekdays=en,Ni._weekdays=gi,Ni.weekdaysMin=rn,Ni._weekdaysMin=_i,Ni.weekdaysShort=nn,Ni._weekdaysShort=yi,Ni.weekdaysParse=an,Ni._weekdaysRegex=bi,Ni.weekdaysRegex=cn,Ni._weekdaysShortRegex=wi,Ni.weekdaysShortRegex=fn,Ni._weekdaysMinRegex=xi,Ni.weekdaysMinRegex=hn,Ni.isPM=_n,Ni._meridiemParse=$i,Ni.meridiem=bn,D("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===g(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),t.lang=b("moment.lang is deprecated. Use moment.locale instead.",D),t.langData=b("moment.langData is deprecated. Use moment.localeData instead.",j);var Ri=Math.abs,Li=Jn("ms"),zi=Jn("s"),qi=Jn("m"),Hi=Jn("h"),Ui=Jn("d"),Wi=Jn("w"),Vi=Jn("M"),Bi=Jn("y"),Yi=Zn("milliseconds"),Ki=Zn("seconds"),Gi=Zn("minutes"),Xi=Zn("hours"),Ji=Zn("days"),Qi=Zn("months"),Zi=Zn("years"),to=Math.round,eo={s:45,m:45,h:22,d:26,M:11},no=Math.abs,ro=zt.prototype;ro.abs=qn,ro.add=Un,ro.subtract=Wn,ro.as=Gn,ro.asMilliseconds=Li,ro.asSeconds=zi,ro.asMinutes=qi,ro.asHours=Hi,ro.asDays=Ui,ro.asWeeks=Wi,ro.asMonths=Vi,ro.asYears=Bi,ro.valueOf=Xn,ro._bubble=Bn,ro.get=Qn,ro.milliseconds=Yi,ro.seconds=Ki,ro.minutes=Gi,ro.hours=Xi,ro.days=Ji,ro.weeks=tr,ro.months=Qi,ro.years=Zi,ro.humanize=ir,ro.toISOString=or,ro.toString=or,ro.toJSON=or,ro.locale=Ee,ro.localeData=Te,ro.toIsoString=b("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",or),ro.lang=di,U("X",0,0,"unix"),U("x",0,0,"valueOf"),K("x",Or),K("X",Ir),Q("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),Q("x",function(t,e,n){n._d=new Date(g(t))}),t.version="2.13.0",e(Pt),t.fn=Di,t.min=Rt,t.max=Lt,t.now=ui,t.utc=s,t.unix=kn,t.months=Pn,t.isDate=r,t.locale=D,t.invalid=f,t.duration=re,t.isMoment=v,t.weekdays=Rn,t.parseZone=Cn,t.localeData=j,t.isDuration=qt,t.monthsShort=Nn,t.weekdaysMin=zn,t.defineLocale=F,t.updateLocale=O,t.locales=M,t.weekdaysShort=Ln,t.normalizeUnits=P,t.relativeTimeThreshold=rr,t.prototype=Di;var io=t;return io}),function(){var t,e,n,r,o,a,s,u,l,c,f,h,p={}.hasOwnProperty,d=function(t,e){function n(){this.constructor=t}for(var r in e)p.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};s={inputs:"input, textarea, select",excluded:"input[type=hidden], input[type=file], :disabled",focus:"first",validationMinlength:3,validateIfUnchanged:!1,interceptSubmit:!0,messages:{},validators:{},showErrors:!0,errorClass:"checksley-error",successClass:"checksley-ok",validatedClass:"checksley-validated",onlyOneErrorElement:!1,containerClass:"checksley-error-list",containerGlobalSearch:!1,containerPreferenceSelector:".errors-box",containerErrorsSelector:"li",errors:{classHandler:function(t,e){return t},container:function(t,e){return t.parent()},errorsWrapper:"<ul />",errorElem:"<li />"},listeners:{onFieldValidate:function(t,e){return!1},onFormSubmit:function(t,e,n){},onFieldError:function(t,e,n){},onFieldSuccess:function(t,e,n){}}},f={notnull:function(t){return t.length>0},notblank:function(t){return _.isString(t)&&""!==t.replace(/^\s+/g,"").replace(/\s+$/g,"")},required:function(t){var e,n,r;if(_.isArray(t)){for(n=0,r=t.length;n<r;n++)if(e=t[n],f.required(t[i]))return!0;return!1}return f.notnull(t)&&f.notblank(t)},type:function(t,e){var n;switch(n=null,e){case"number":n=/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/;break;case"digits":n=/^\d+$/;break;case"alphanum":n=/^\w+$/;break;case"email":n=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i;break;case"url":/(https?|s?ftp|git)/i.test(t)||(t="http://"+t),n=/^(https?|s?ftp|git):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;
break;case"urlstrict":n=/^(https?|s?ftp|git):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;break;case"dateIso":n=/^(\d{4})\D?(0[1-9]|1[0-2])\D?([12]\d|0[1-9]|3[01])$/;break;case"phone":n=/^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,5})|(\(?\d{2,6}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/}return!!n&&n.test(t)},regexp:function(t,e,n){return new RegExp(e,n.options.regexpFlag||"").test(t)},minlength:function(t,e){return t.length>=e},maxlength:function(t,e){return t.length<=e},rangelength:function(t,e){return t.length>=e[0]&&t.length<=e[1]},min:function(t,e){return Number(t)>=e},max:function(t,e){return Number(t)<=e},range:function(t,e){return t>=e[0]&&t<=e[1]},equalto:function(t,e,n){return n.options.validateIfUnchanged=!0,t===$(e).val()},mincheck:function(t,e){return f.minlength(t,e)},maxcheck:function(t,e){return f.maxlength(t,e)},rangecheck:function(t,e){return f.rangelength(t,e)}},l={defaultMessage:"This value seems to be invalid.",type:{email:"This value should be a valid email.",url:"This value should be a valid url.",urlstrict:"This value should be a valid url.",number:"This value should be a valid number.",digits:"This value should be digits.",dateIso:"This value should be a valid date (YYYY-MM-DD).",alphanum:"This value should be alphanumeric.",phone:"This value should be a valid phone number."},notnull:"This value should not be null.",notblank:"This value should not be blank.",required:"This value is required.",regexp:"This value seems to be invalid.",min:"This value should be greater than or equal to %s.",max:"This value should be lower than or equal to %s.",range:"This value should be between %s and %s.",minlength:"This value is too short. It should have %s characters or more.",maxlength:"This value is too long. It should have %s characters or less.",rangelength:"This value length is invalid. It should be between %s and %s characters long.",mincheck:"You must select at least %s choices.",maxcheck:"You must select %s choices or less.",rangecheck:"You must select between %s and %s choices.",equalto:"This value should be the same."},u=function(t,e){return _.isArray(e)||(e=[e]),t.indexOf("%s")>=0?t.replace(/%s/g,function(t){return String(e.shift())}):t.indexOf("%e")>=0?t.replace(/%e/g,function(t){return String($(e.shift()).val())}):t},c=function(t){return parseInt(t,10)},h=function(t){var e,i,a;if(e=$(this),!e.is("form, input, select, textarea"))throw"element is not a valid element for checksley";if(i=e.data("checksley"),void 0!==i&&null!==i||(a={},_.isPlainObject(t)&&(a=t),i=e.is("input[type=radio], input[type=checkbox]")?new r(e,t):e.is("input, select, textarea")?new n(e,t):new o(e,t)),!_.isString(t))return i;switch(t){case"validate":return i.validate();case"destroy":return i.destroy();case"reset":return i.reset()}},t=function(){function t(t){void 0===t?this.jq=window.jQuery||window.Zepto:this.jq=t,this.messages={"default":{defaultMessage:"Invalid"}},this.lang=this.detectLang()}return t.prototype.updateDefaults=function(t){return _.merge(s,t)},t.prototype.updateValidators=function(t){return _.extend(f,t)},t.prototype.updateMessages=function(t,e,n){return null==n&&(n=!1),void 0===this.messages[t]&&(this.messages[t]={}),n?this.messages[t]=e:_.merge(this.messages[t],e)},t.prototype.injectPlugin=function(){return this.jq.fn.checksley=h},t.prototype.setLang=function(t){return this.lang=t},t.prototype.detectLang=function(){return this.jq("html").attr("lang")||"default"},t.prototype.getMessage=function(t,e){var n;return void 0===e&&(e=this.lang),l=this.messages[e],void 0===l&&(l={}),n=l[t],void 0===n?"default"===e?this.getMessage("defaultMessage",e):this.getMessage(t,"default"):n},t}(),n=function(){function t(t,e){null==e&&(e={}),this.id=_.uniqueId("field-"),this.element=$(t),this.validatedOnce=!1,this.options=_.merge({},s,e),this.isRadioOrCheckbox=!1,this.validators=f,this.resetConstraints(),this.bindEvents(),this.bindData()}return t.prototype.bindData=function(){return this.element.data("checksley-field",this)},t.prototype.unbindData=function(){return this.element.data("checksley-field",null)},t.prototype.focus=function(){return this.element.focus()},t.prototype.eventValidate=function(t){var e,n;return e=this.element.data("trigger"),n=this.getValue(),"keyup"===t.type&&!/keyup/i.test(e)&&!this.validatedOnce||("change"===t.type&&!/change/i.test(e)&&!this.validatedOnce||(n.length<this.options.validationMinlength&&!this.validatedOnce||this.validate()))},t.prototype.unbindEvents=function(){return this.element.off("."+this.id)},t.prototype.bindEvents=function(){var t;if(this.unbindEvents(),t=this.element.data("trigger"),_.isString(t)&&this.element.on(""+t+"."+this.id,_.bind(this.eventValidate,this)),this.element.is("select")&&"change"!==t&&this.element.on("change."+this.id,_.bind(this.eventValidate,this)),"keyup"!==t)return this.element.on("keyup."+this.id,_.bind(this.eventValidate,this))},t.prototype.errorClassTarget=function(){return this.element},t.prototype.resetHtml5Constraints=function(){var t,e,n,r;if(this.element.prop("required")&&(this.required=!0),r=new RegExp(this.element.attr("type"),"i"),r.test("email url number range"))switch(n=this.element.attr("type")){case"range":if(e=this.element.attr("min"),t=this.element.attr("max"),e&&t)return this.constraints[n]={valid:!0,params:[c(e),c(t)],fn:this.validators[n]}}},t.prototype.resetConstraints=function(){var t,e,n,r;this.constraints={},this.valid=!0,this.required=!1,this.resetHtml5Constraints(),this.element.addClass("checksley-validated"),n=this.validators,r=[];for(t in n)e=n[t],void 0!==this.element.data(t)&&(this.constraints[t]={valid:!0,params:this.element.data(t),fn:e},"required"===t?r.push(this.required=!0):r.push(void 0));return r},t.prototype.hasConstraints=function(){return!_.isEmpty(this.constraints)},t.prototype.validate=function(t){return this.validatedOnce=!0,this.hasConstraints()?this.options.listeners.onFieldValidate(this.element,this)?(this.reset(),null):this.required||""!==this.getValue()?this.applyValidators(t):(this.reset(),null):null},t.prototype.applyValidators=function(t){var e,n,r,i,o,a;void 0!==t&&null!==t||(t=this.options.showErrors),i=this.getValue(),o=!0,n=this.options.listeners,t&&this.removeErrors(),a=this.constraints;for(r in a)e=a[r],e.valid=e.fn(this.getValue(),e.params,this),e.valid===!1?(o=!1,t&&this.manageError(r,e),n.onFieldError(this.element,e,this)):n.onFieldSuccess(this.element,e,this);return this.handleClasses(o),o},t.prototype.handleClasses=function(t){var e,n,r;switch(e=this.options.errors.classHandler(this.element,!1),n=this.options.errorClass,r=this.options.successClass,t){case null:return e.removeClass(n),e.removeClass(r);case!1:return e.removeClass(r),e.addClass(n);case!0:return e.removeClass(n),e.addClass(r)}},t.prototype.manageError=function(t,e){var n,r;return n=this.element.data(),r=void 0!==n.errorMessage?n.errorMessage:"type"===t?a.getMessage("type")[e.params]:a.getMessage(t),void 0===r&&(r=a.getMessage("default")),e.params&&(r=u(r,_.clone(e.params,!0))),this.addError(this.makeErrorElement(t,r))},t.prototype.setErrors=function(t){var e,n,r,i;for(this.removeErrors(),_.isArray(t)||(t=[t]),i=[],n=0,r=t.length;n<r;n++)e=t[n],i.push(this.addError(this.makeErrorElement("custom",e)));return i},t.prototype.makeErrorElement=function(t,e){var n;return n=$("<li />",{"class":"checksley-"+t}),n.html(e),n.addClass(t),n},t.prototype.addError=function(t){var e,n;if(e=this.getErrorContainer(),n=this.options.containerErrorsSelector,!this.options.onlyOneErrorElement||!e.find(n).length)return e.append(t)},t.prototype.reset=function(){return this.handleClasses(null),this.resetConstraints(),this.removeErrors()},t.prototype.removeErrors=function(){return $("#"+this.errorContainerId()).remove()},t.prototype.getValue=function(){return this.element.val()},t.prototype.errorContainerId=function(){return"checksley-error-"+this.id},t.prototype.errorContainerClass=function(){return"checksley-error-list"},t.prototype.getErrorContainer=function(){var t,e,n,r,i;return n=$("#"+this.errorContainerId()),1===n.length?n:(r={"class":this.errorContainerClass(),id:this.errorContainerId()},n=$("<ul />",r),e=this.element.data("error-container"),void 0===e?(this.isRadioOrCheckbox?n.insertAfter(this.element.parent()):n.insertAfter(this.element),n):(t=this.options.errors.containerGlobalSearch?$(e):this.element.closest(e),i=this.options.errors.containerPreferenceSelector,1===t.find(i).length&&(t=t.find(i)),t.append(n),n))},t.prototype.destroy=function(){return this.unbindEvents(),this.removeErrors(),this.unbindData()},t.prototype.setForm=function(t){return this.form=t},t}(),r=function(t){function e(t,n){e.__super__.constructor.call(this,t,n),this.isRadioOrCheckbox=!0,this.isRadio=this.element.is("input[type=radio]"),this.isCheckbox=this.element.is("input[type=checkbox]")}return d(e,t),e.prototype.getSiblings=function(){var t;return t=this.element.data("group"),void 0===t?"input[name="+this.element.attr("name")+"]":'[data-group="'+t+'"]'},e.prototype.getValue=function(){var t,e,n,r,i;if(this.isRadio)return $(""+this.getSiblings()+":checked").val()||"";if(this.isCheckbox){for(e=[],i=$(""+this.getSiblings()+":checked"),n=0,r=i.length;n<r;n++)t=i[n],e.push($(t).val());return e}},e.prototype.unbindEvents=function(){var t,e,n,r,i;for(r=$(this.getSiblings()),i=[],e=0,n=r.length;e<n;e++)t=r[e],i.push($(t).off("."+this.id));return i},e.prototype.bindEvents=function(){var t,e,n,r,i,o;for(this.unbindEvents(),e=this.element.data("trigger"),i=$(this.getSiblings()),o=[],n=0,r=i.length;n<r;n++)t=i[n],t=$(t),_.isString(e)&&t.on(""+e+"."+this.id,_.bind(this.eventValidate,this)),"change"!==e?o.push(t.on("change."+this.id,_.bind(this.eventValidate,this))):o.push(void 0);return o},e}(n),e=function(t){function e(t,n){e.__super__.constructor.call(this,t,n)}return d(e,t),e.prototype.getComponents=function(){var t,e,n,r,i;for(t=[],n=this.element.data("composed").split(","),r=0,i=n.length;r<i;r++)e=n[r],t.push(this.element.find("[name="+e+"]"));return t},e.prototype.getValue=function(){var t;return t=_.map(this.getComponents(),function(t){return t.val()}).join(this.element.data("composed-joiner")),this.element.val(t),t},e.prototype.unbindEvents=function(){var t,e,n,r,i;for(r=$(this.getComponents()),i=[],e=0,n=r.length;e<n;e++)t=r[e],i.push(t.off("."+this.id));return i},e.prototype.bindEvents=function(){var t,e,n,r,i,o;for(this.unbindEvents(),e=this.element.data("trigger"),i=$(this.getComponents()),o=[],n=0,r=i.length;n<r;n++)t=i[n],_.isString(e)&&t.on(""+e+"."+this.id,_.bind(this.eventValidate,this)),"change"!==e?o.push(t.on("change."+this.id,_.bind(this.eventValidate,this))):o.push(void 0);return o},e}(n),o=function(){function t(t,e){null==e&&(e={}),this.id=_.uniqueId("checksleyform-"),this.element=$(t),this.options=_.extend({},s,e),this.initialize()}return t.prototype.initialize=function(){return this.initializeFields(),this.bindEvents(),this.bindData()},t.prototype.bindData=function(){return this.element.data("checksley",this)},t.prototype.unbindData=function(){return this.element.data("checksley",null)},t.prototype.initializeFields=function(){var t,e,n,r,i,o,s,u,l,c,f;for(this.fields=[],this.fieldsByName={},l=this.element.find(this.options.inputs),i=0,s=l.length;i<s;i++)r=l[i],e=$(r),e.is(this.options.excluded)||(n=e.is("input[type=radio], input[type=checkbox]")?new a.FieldMultiple(r,this.options):new a.Field(r,this.options),n.setForm(this),this.fields.push(n),this.fieldsByName[e.attr("name")]=n);for(c=this.element.find("[data-composed]"),f=[],o=0,u=c.length;o<u;o++)t=c[o],n=new a.ComposedField(t,this.options),n.setForm(this),f.push(this.fields.push(n));return f},t.prototype.setErrors=function(t){var e,n,r,i;i=[];for(r in t)e=t[r],n=this.fieldsByName[r],n?i.push(n.setErrors(e)):i.push(void 0);return i},t.prototype.validate=function(){var t,e,n,r,i,o;for(n=!0,e=[],o=this.fields,r=0,i=o.length;r<i;r++)t=o[r],t.validate()===!1&&(n=!1,e.push(t));if(!n)switch(this.options.focus){case"first":e[0].focus();break;case"last":e[e.length].focus()}return n},t.prototype.bindEvents=function(){var t;return t=this,this.unbindEvents(),this.element.on("submit."+this.id,function(e){var n;if(n=t.validate(),t.options.listeners.onFormSubmit(n,e,t),t.options.interceptSubmit&&!n)return e.preventDefault()})},t.prototype.unbindEvents=function(){return this.element.off("."+this.id)},t.prototype.removeErrors=function(){var t,e,n,r,i;for(r=this.fields,i=[],e=0,n=r.length;e<n;e++)t=r[e],i.push(t.reset());return i},t.prototype.destroy=function(){var t,e,n,r;for(this.unbindEvents(),this.unbindData(),r=this.fields,e=0,n=r.length;e<n;e++)t=r[e],t.destroy();return this.field=[]},t.prototype.reset=function(){var t,e,n,r,i;for(r=this.fields,i=[],e=0,n=r.length;e<n;e++)t=r[e],i.push(t.reset());return i},t}(),a=new t,a.updateMessages("default",l),a.injectPlugin(),a.Checksley=t,a.Form=o,a.Field=n,a.FieldMultiple=r,a.ComposedField=e,this.checksley=a}.call(this),function(t,e){"use strict";var n;if("object"==typeof exports){try{n=require("moment")}catch(r){}module.exports=e(n)}else"function"==typeof define&&define.amd?define(function(t){var r="moment";try{n=t(r)}catch(i){}return e(n)}):t.Pikaday=e(t.moment)}(this,function(t){"use strict";var e="function"==typeof t,n=!!window.addEventListener,r=window.document,i=window.setTimeout,o=function(t,e,r,i){n?t.addEventListener(e,r,!!i):t.attachEvent("on"+e,r)},a=function(t,e,r,i){n?t.removeEventListener(e,r,!!i):t.detachEvent("on"+e,r)},s=function(t,e,n){var i;r.createEvent?(i=r.createEvent("HTMLEvents"),i.initEvent(e,!0,!1),i=_(i,n),t.dispatchEvent(i)):r.createEventObject&&(i=r.createEventObject(),i=_(i,n),t.fireEvent("on"+e,i))},u=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},l=function(t,e){return(" "+t.className+" ").indexOf(" "+e+" ")!==-1},c=function(t,e){l(t,e)||(t.className=""===t.className?e:t.className+" "+e)},f=function(t,e){t.className=u((" "+t.className+" ").replace(" "+e+" "," "))},h=function(t){return/Array/.test(Object.prototype.toString.call(t))},p=function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())},d=function(t){var e=t.getDay();return 0===e||6===e},v=function(t){return t%4===0&&t%100!==0||t%400===0},m=function(t,e){return[31,v(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},g=function(t){p(t)&&t.setHours(0,0,0,0)},y=function(t,e){return t.getTime()===e.getTime()},_=function(t,e,n){var r,i;for(r in e)i=void 0!==t[r],i&&"object"==typeof e[r]&&null!==e[r]&&void 0===e[r].nodeName?p(e[r])?n&&(t[r]=new Date(e[r].getTime())):h(e[r])?n&&(t[r]=e[r].slice(0)):t[r]=_({},e[r],n):!n&&i||(t[r]=e[r]);return t},b=function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),t.month>11&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t},w={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,onSelect:null,onOpen:null,onClose:null,onDraw:null},x=function(t,e,n){for(e+=t.firstDay;e>=7;)e-=7;return n?t.i18n.weekdaysShort[e]:t.i18n.weekdays[e]},$=function(t){if(t.isEmpty)return'<td class="is-empty"></td>';var e=[];return t.isDisabled&&e.push("is-disabled"),t.isToday&&e.push("is-today"),t.isSelected&&e.push("is-selected"),t.isInRange&&e.push("is-inrange"),t.isStartRange&&e.push("is-startrange"),t.isEndRange&&e.push("is-endrange"),'<td data-day="'+t.day+'" class="'+e.join(" ")+'"><button class="pika-button pika-day" type="button" data-pika-year="'+t.year+'" data-pika-month="'+t.month+'" data-pika-day="'+t.day+'">'+t.day+"</button></td>"},k=function(t,e,n){var r=new Date(n,0,1),i=Math.ceil(((new Date(n,e,t)-r)/864e5+r.getDay()+1)/7);return'<td class="pika-week">'+i+"</td>"},C=function(t,e){return"<tr>"+(e?t.reverse():t).join("")+"</tr>"},S=function(t){return"<tbody>"+t.join("")+"</tbody>"},E=function(t){var e,n=[];for(t.showWeekNumber&&n.push("<th></th>"),e=0;e<7;e++)n.push('<th scope="col"><abbr title="'+x(t,e)+'">'+x(t,e,!0)+"</abbr></th>");return"<thead>"+(t.isRTL?n.reverse():n).join("")+"</thead>"},T=function(t,e,n,r,i){var o,a,s,u,l,c=t._o,f=n===c.minYear,p=n===c.maxYear,d='<div class="pika-title">',v=!0,m=!0;for(s=[],o=0;o<12;o++)s.push('<option value="'+(n===i?o-e:12+o-e)+'"'+(o===r?" selected":"")+(f&&o<c.minMonth||p&&o>c.maxMonth?"disabled":"")+">"+c.i18n.months[o]+"</option>");for(u='<div class="pika-label">'+c.i18n.months[r]+'<select class="pika-select pika-select-month" tabindex="-1">'+s.join("")+"</select></div>",h(c.yearRange)?(o=c.yearRange[0],a=c.yearRange[1]+1):(o=n-c.yearRange,a=1+n+c.yearRange),s=[];o<a&&o<=c.maxYear;o++)o>=c.minYear&&s.push('<option value="'+o+'"'+(o===n?" selected":"")+">"+o+"</option>");return l='<div class="pika-label">'+n+c.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+s.join("")+"</select></div>",d+=c.showMonthAfterYear?l+u:u+l,f&&(0===r||c.minMonth>=r)&&(v=!1),p&&(11===r||c.maxMonth<=r)&&(m=!1),0===e&&(d+='<button class="pika-prev'+(v?"":" is-disabled")+'" type="button">'+c.i18n.previousMonth+"</button>"),e===t._o.numberOfMonths-1&&(d+='<button class="pika-next'+(m?"":" is-disabled")+'" type="button">'+c.i18n.nextMonth+"</button>"),d+="</div>"},A=function(t,e){return'<table cellpadding="0" cellspacing="0" class="pika-table">'+E(t)+S(e)+"</table>"},D=function(a){var s=this,u=s.config(a);s._onMouseDown=function(t){if(s._v){t=t||window.event;var e=t.target||t.srcElement;if(e)if(l(e,"is-disabled")||(l(e,"pika-button")&&!l(e,"is-empty")?(s.setDate(new Date(e.getAttribute("data-pika-year"),e.getAttribute("data-pika-month"),e.getAttribute("data-pika-day"))),u.bound&&i(function(){s.hide(),u.field&&u.field.blur()},100)):l(e,"pika-prev")?s.prevMonth():l(e,"pika-next")&&s.nextMonth()),l(e,"pika-select"))s._c=!0;else{if(!t.preventDefault)return t.returnValue=!1,!1;t.preventDefault()}}},s._onChange=function(t){t=t||window.event;var e=t.target||t.srcElement;e&&(l(e,"pika-select-month")?s.gotoMonth(e.value):l(e,"pika-select-year")&&s.gotoYear(e.value))},s._onInputChange=function(n){var r;n.firedBy!==s&&(e?(r=t(u.field.value,u.format),r=r&&r.isValid()?r.toDate():null):r=new Date(Date.parse(u.field.value)),p(r)&&s.setDate(r),s._v||s.show())},s._onInputFocus=function(){s.show()},s._onInputClick=function(){s.show()},s._onInputBlur=function(){var t=r.activeElement;do if(l(t,"pika-single"))return;while(t=t.parentNode);s._c||(s._b=i(function(){s.hide()},50)),s._c=!1},s._onClick=function(t){t=t||window.event;var e=t.target||t.srcElement,r=e;if(e){!n&&l(e,"pika-select")&&(e.onchange||(e.setAttribute("onchange","return;"),o(e,"change",s._onChange)));do if(l(r,"pika-single")||r===u.trigger)return;while(r=r.parentNode);s._v&&e!==u.trigger&&r!==u.trigger&&s.hide()}},s.el=r.createElement("div"),s.el.className="pika-single"+(u.isRTL?" is-rtl":"")+(u.theme?" "+u.theme:""),o(s.el,"mousedown",s._onMouseDown,!0),o(s.el,"touchend",s._onMouseDown,!0),o(s.el,"change",s._onChange),u.field&&(u.container?u.container.appendChild(s.el):u.bound?r.body.appendChild(s.el):u.field.parentNode.insertBefore(s.el,u.field.nextSibling),o(u.field,"change",s._onInputChange),u.defaultDate||(e&&u.field.value?u.defaultDate=t(u.field.value,u.format).toDate():u.defaultDate=new Date(Date.parse(u.field.value)),u.setDefaultDate=!0));var c=u.defaultDate;p(c)?u.setDefaultDate?s.setDate(c,!0):s.gotoDate(c):s.gotoDate(new Date),u.bound?(this.hide(),s.el.className+=" is-bound",o(u.trigger,"click",s._onInputClick),o(u.trigger,"focus",s._onInputFocus),o(u.trigger,"blur",s._onInputBlur)):this.show()};return D.prototype={config:function(t){this._o||(this._o=_({},w,!0));var e=_(this._o,t,!0);e.isRTL=!!e.isRTL,e.field=e.field&&e.field.nodeName?e.field:null,e.theme="string"==typeof e.theme&&e.theme?e.theme:null,e.bound=!!(void 0!==e.bound?e.field&&e.bound:e.field),e.trigger=e.trigger&&e.trigger.nodeName?e.trigger:e.field,e.disableWeekends=!!e.disableWeekends,e.disableDayFn="function"==typeof e.disableDayFn?e.disableDayFn:null;var n=parseInt(e.numberOfMonths,10)||1;if(e.numberOfMonths=n>4?4:n,p(e.minDate)||(e.minDate=!1),p(e.maxDate)||(e.maxDate=!1),e.minDate&&e.maxDate&&e.maxDate<e.minDate&&(e.maxDate=e.minDate=!1),e.minDate&&this.setMinDate(e.minDate),e.maxDate&&this.setMaxDate(e.maxDate),h(e.yearRange)){var r=(new Date).getFullYear()-10;e.yearRange[0]=parseInt(e.yearRange[0],10)||r,e.yearRange[1]=parseInt(e.yearRange[1],10)||r}else e.yearRange=Math.abs(parseInt(e.yearRange,10))||w.yearRange,e.yearRange>100&&(e.yearRange=100);return e},toString:function(n){return p(this._d)?e?t(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return e?t(this._d):null},setMoment:function(n,r){e&&t.isMoment(n)&&this.setDate(n.toDate(),r)},getDate:function(){return p(this._d)?new Date(this._d.getTime()):null},setDate:function(t,e){if(!t)return this._d=null,this._o.field&&(this._o.field.value="",s(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof t&&(t=new Date(Date.parse(t))),p(t)){var n=this._o.minDate,r=this._o.maxDate;p(n)&&t<n?t=n:p(r)&&t>r&&(t=r),this._d=new Date(t.getTime()),g(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),s(this._o.field,"change",{firedBy:this})),e||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(t){var e=!0;if(p(t)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),r=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),i=t.getTime();r.setMonth(r.getMonth()+1),r.setDate(r.getDate()-1),e=i<n.getTime()||r.getTime()<i}e&&(this.calendars=[{month:t.getMonth(),year:t.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustCalendars:function(){this.calendars[0]=b(this.calendars[0]);for(var t=1;t<this._o.numberOfMonths;t++)this.calendars[t]=b({month:this.calendars[0].month+t,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(t){isNaN(t)||(this.calendars[0].month=parseInt(t,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(t){isNaN(t)||(this.calendars[0].year=parseInt(t,10),this.adjustCalendars())},setMinDate:function(t){g(t),this._o.minDate=t,this._o.minYear=t.getFullYear(),this._o.minMonth=t.getMonth(),this.draw()},setMaxDate:function(t){g(t),this._o.maxDate=t,this._o.maxYear=t.getFullYear(),this._o.maxMonth=t.getMonth(),this.draw()},setStartRange:function(t){this._o.startRange=t},setEndRange:function(t){this._o.endRange=t},draw:function(t){if(this._v||t){var e=this._o,n=e.minYear,r=e.maxYear,o=e.minMonth,a=e.maxMonth,s="";this._y<=n&&(this._y=n,!isNaN(o)&&this._m<o&&(this._m=o)),this._y>=r&&(this._y=r,!isNaN(a)&&this._m>a&&(this._m=a));for(var u=0;u<e.numberOfMonths;u++)s+='<div class="pika-lendar">'+T(this,u,this.calendars[u].year,this.calendars[u].month,this.calendars[0].year)+this.render(this.calendars[u].year,this.calendars[u].month)+"</div>";if(this.el.innerHTML=s,e.bound&&"hidden"!==e.field.type&&i(function(){e.trigger.focus()},1),"function"==typeof this._o.onDraw){var l=this;i(function(){l._o.onDraw.call(l)},0)}}},adjustPosition:function(){var t,e,n,i,o,a,s,u,l,c;if(!this._o.container){if(this.el.style.position="absolute",t=this._o.trigger,e=t,n=this.el.offsetWidth,i=this.el.offsetHeight,o=window.innerWidth||r.documentElement.clientWidth,a=window.innerHeight||r.documentElement.clientHeight,s=window.pageYOffset||r.body.scrollTop||r.documentElement.scrollTop,"function"==typeof t.getBoundingClientRect)c=t.getBoundingClientRect(),u=c.left+window.pageXOffset,l=c.bottom+window.pageYOffset;else for(u=e.offsetLeft,l=e.offsetTop+e.offsetHeight;e=e.offsetParent;)u+=e.offsetLeft,l+=e.offsetTop;(this._o.reposition&&u+n>o||this._o.position.indexOf("right")>-1&&u-n+t.offsetWidth>0)&&(u=u-n+t.offsetWidth),(this._o.reposition&&l+i>a+s||this._o.position.indexOf("top")>-1&&l-i-t.offsetHeight>0)&&(l=l-i-t.offsetHeight),this.el.style.left=u+"px",this.el.style.top=l+"px"}},render:function(t,e){var n=this._o,r=new Date,i=m(t,e),o=new Date(t,e,1).getDay(),a=[],s=[];g(r),n.firstDay>0&&(o-=n.firstDay,o<0&&(o+=7));for(var u=i+o,l=u;l>7;)l-=7;u+=7-l;for(var c=0,f=0;c<u;c++){var h=new Date(t,e,1+(c-o)),v=!!p(this._d)&&y(h,this._d),_=y(h,r),b=c<o||c>=i+o,w=n.startRange&&y(n.startRange,h),x=n.endRange&&y(n.endRange,h),S=n.startRange&&n.endRange&&n.startRange<h&&h<n.endRange,E=n.minDate&&h<n.minDate||n.maxDate&&h>n.maxDate||n.disableWeekends&&d(h)||n.disableDayFn&&n.disableDayFn(h),T={day:1+(c-o),month:e,year:t,isSelected:v,isToday:_,isDisabled:E,isEmpty:b,isStartRange:w,isEndRange:x,isInRange:S};s.push($(T)),7===++f&&(n.showWeekNumber&&s.unshift(k(c-o,e,t)),a.push(C(s,n.isRTL)),s=[],f=0)}return A(n,a)},isVisible:function(){return this._v},show:function(){this._v||(f(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(o(r,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var t=this._v;t!==!1&&(this._o.bound&&a(r,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",c(this.el,"is-hidden"),this._v=!1,void 0!==t&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),a(this.el,"mousedown",this._onMouseDown,!0),a(this.el,"touchend",this._onMouseDown,!0),a(this.el,"change",this._onChange),this._o.field&&(a(this._o.field,"change",this._onInputChange),this._o.bound&&(a(this._o.trigger,"click",this._onInputClick),a(this._o.trigger,"focus",this._onInputFocus),a(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},D}),function(t){t.color={},t.color.make=function(e,n,r,i){var o={};return o.r=e||0,o.g=n||0,o.b=r||0,o.a=null!=i?i:1,o.add=function(t,e){for(var n=0;n<t.length;++n)o[t.charAt(n)]+=e;return o.normalize()},o.scale=function(t,e){for(var n=0;n<t.length;++n)o[t.charAt(n)]*=e;return o.normalize()},o.toString=function(){return o.a>=1?"rgb("+[o.r,o.g,o.b].join(",")+")":"rgba("+[o.r,o.g,o.b,o.a].join(",")+")"},o.normalize=function(){function t(t,e,n){return e<t?t:e>n?n:e}return o.r=t(0,parseInt(o.r),255),o.g=t(0,parseInt(o.g),255),o.b=t(0,parseInt(o.b),255),o.a=t(0,o.a,1),o},o.clone=function(){return t.color.make(o.r,o.b,o.g,o.a)},o.normalize()},t.color.extract=function(e,n){var r;do{if(r=e.css(n).toLowerCase(),""!=r&&"transparent"!=r)break;e=e.parent()}while(e.length&&!t.nodeName(e.get(0),"body"));return"rgba(0, 0, 0, 0)"==r&&(r="transparent"),t.color.parse(r)},t.color.parse=function(n){var r,i=t.color.make;if(r=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(n))return i(parseInt(r[1],10),parseInt(r[2],10),parseInt(r[3],10));if(r=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(n))return i(parseInt(r[1],10),parseInt(r[2],10),parseInt(r[3],10),parseFloat(r[4]));if(r=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(n))return i(2.55*parseFloat(r[1]),2.55*parseFloat(r[2]),2.55*parseFloat(r[3]));if(r=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(n))return i(2.55*parseFloat(r[1]),2.55*parseFloat(r[2]),2.55*parseFloat(r[3]),parseFloat(r[4]));if(r=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(n))return i(parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16));if(r=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(n))return i(parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16),parseInt(r[3]+r[3],16));var o=t.trim(n).toLowerCase();return"transparent"==o?i(255,255,255,0):(r=e[o]||[0,0,0],i(r[0],r[1],r[2]))};var e={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}}(jQuery),function(t){function e(e,n){var r=n.children("."+e)[0];if(null==r&&(r=document.createElement("canvas"),r.className=e,t(r).css({direction:"ltr",position:"absolute",left:0,top:0}).appendTo(n),!r.getContext)){if(!window.G_vmlCanvasManager)throw new Error("Canvas is not available. If you're using IE with a fall-back such as Excanvas, then there's either a mistake in your conditional include, or the page has no DOCTYPE and is rendering in Quirks Mode.");r=window.G_vmlCanvasManager.initElement(r)}this.element=r;var i=this.context=r.getContext("2d"),o=window.devicePixelRatio||1,a=i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1;this.pixelRatio=o/a,this.resize(n.width(),n.height()),this.textContainer=null,this.text={},this._textCache={}}function n(n,i,o,a){function s(t,e){e=[mt].concat(e);for(var n=0;n<t.length;++n)t[n].apply(this,e)}function u(){for(var n={Canvas:e},r=0;r<a.length;++r){var i=a[r];i.init(mt,n),i.options&&t.extend(!0,it,i.options)}}function l(e){t.extend(!0,it,e),e&&e.colors&&(it.colors=e.colors),null==it.xaxis.color&&(it.xaxis.color=t.color.parse(it.grid.color).scale("a",.22).toString()),null==it.yaxis.color&&(it.yaxis.color=t.color.parse(it.grid.color).scale("a",.22).toString()),null==it.xaxis.tickColor&&(it.xaxis.tickColor=it.grid.tickColor||it.xaxis.color),null==it.yaxis.tickColor&&(it.yaxis.tickColor=it.grid.tickColor||it.yaxis.color),null==it.grid.borderColor&&(it.grid.borderColor=it.grid.color),null==it.grid.tickColor&&(it.grid.tickColor=t.color.parse(it.grid.color).scale("a",.22).toString());
var r,i,o,a=n.css("font-size"),u=a?+a.replace("px",""):13,l={style:n.css("font-style"),size:Math.round(.8*u),variant:n.css("font-variant"),weight:n.css("font-weight"),family:n.css("font-family")};for(o=it.xaxes.length||1,r=0;r<o;++r)i=it.xaxes[r],i&&!i.tickColor&&(i.tickColor=i.color),i=t.extend(!0,{},it.xaxis,i),it.xaxes[r]=i,i.font&&(i.font=t.extend({},l,i.font),i.font.color||(i.font.color=i.color),i.font.lineHeight||(i.font.lineHeight=Math.round(1.15*i.font.size)));for(o=it.yaxes.length||1,r=0;r<o;++r)i=it.yaxes[r],i&&!i.tickColor&&(i.tickColor=i.color),i=t.extend(!0,{},it.yaxis,i),it.yaxes[r]=i,i.font&&(i.font=t.extend({},l,i.font),i.font.color||(i.font.color=i.color),i.font.lineHeight||(i.font.lineHeight=Math.round(1.15*i.font.size)));for(it.xaxis.noTicks&&null==it.xaxis.ticks&&(it.xaxis.ticks=it.xaxis.noTicks),it.yaxis.noTicks&&null==it.yaxis.ticks&&(it.yaxis.ticks=it.yaxis.noTicks),it.x2axis&&(it.xaxes[1]=t.extend(!0,{},it.xaxis,it.x2axis),it.xaxes[1].position="top",null==it.x2axis.min&&(it.xaxes[1].min=null),null==it.x2axis.max&&(it.xaxes[1].max=null)),it.y2axis&&(it.yaxes[1]=t.extend(!0,{},it.yaxis,it.y2axis),it.yaxes[1].position="right",null==it.y2axis.min&&(it.yaxes[1].min=null),null==it.y2axis.max&&(it.yaxes[1].max=null)),it.grid.coloredAreas&&(it.grid.markings=it.grid.coloredAreas),it.grid.coloredAreasColor&&(it.grid.markingsColor=it.grid.coloredAreasColor),it.lines&&t.extend(!0,it.series.lines,it.lines),it.points&&t.extend(!0,it.series.points,it.points),it.bars&&t.extend(!0,it.series.bars,it.bars),null!=it.shadowSize&&(it.series.shadowSize=it.shadowSize),null!=it.highlightColor&&(it.series.highlightColor=it.highlightColor),r=0;r<it.xaxes.length;++r)m(ct,r+1).options=it.xaxes[r];for(r=0;r<it.yaxes.length;++r)m(ft,r+1).options=it.yaxes[r];for(var c in vt)it.hooks[c]&&it.hooks[c].length&&(vt[c]=vt[c].concat(it.hooks[c]));s(vt.processOptions,[it])}function c(t){rt=f(t),g(),y()}function f(e){for(var n=[],r=0;r<e.length;++r){var i=t.extend(!0,{},it.series);null!=e[r].data?(i.data=e[r].data,delete e[r].data,t.extend(!0,i,e[r]),e[r].data=i.data):i.data=e[r],n.push(i)}return n}function h(t,e){var n=t[e+"axis"];return"object"==typeof n&&(n=n.n),"number"!=typeof n&&(n=1),n}function p(){return t.grep(ct.concat(ft),function(t){return t})}function d(t){var e,n,r={};for(e=0;e<ct.length;++e)n=ct[e],n&&n.used&&(r["x"+n.n]=n.c2p(t.left));for(e=0;e<ft.length;++e)n=ft[e],n&&n.used&&(r["y"+n.n]=n.c2p(t.top));return void 0!==r.x1&&(r.x=r.x1),void 0!==r.y1&&(r.y=r.y1),r}function v(t){var e,n,r,i={};for(e=0;e<ct.length;++e)if(n=ct[e],n&&n.used&&(r="x"+n.n,null==t[r]&&1==n.n&&(r="x"),null!=t[r])){i.left=n.p2c(t[r]);break}for(e=0;e<ft.length;++e)if(n=ft[e],n&&n.used&&(r="y"+n.n,null==t[r]&&1==n.n&&(r="y"),null!=t[r])){i.top=n.p2c(t[r]);break}return i}function m(e,n){return e[n-1]||(e[n-1]={n:n,direction:e==ct?"x":"y",options:t.extend(!0,{},e==ct?it.xaxis:it.yaxis)}),e[n-1]}function g(){var e,n=rt.length,r=-1;for(e=0;e<rt.length;++e){var i=rt[e].color;null!=i&&(n--,"number"==typeof i&&i>r&&(r=i))}n<=r&&(n=r+1);var o,a=[],s=it.colors,u=s.length,l=0;for(e=0;e<n;e++)o=t.color.parse(s[e%u]||"#666"),e%u==0&&e&&(l=l>=0?l<.5?-l-.2:0:-l),a[e]=o.scale("rgb",1+l);var c,f=0;for(e=0;e<rt.length;++e){if(c=rt[e],null==c.color?(c.color=a[f].toString(),++f):"number"==typeof c.color&&(c.color=a[c.color].toString()),null==c.lines.show){var p,d=!0;for(p in c)if(c[p]&&c[p].show){d=!1;break}d&&(c.lines.show=!0)}null==c.lines.zero&&(c.lines.zero=!!c.lines.fill),c.xaxis=m(ct,h(c,"x")),c.yaxis=m(ft,h(c,"y"))}}function y(){function e(t,e,n){e<t.datamin&&e!=-y&&(t.datamin=e),n>t.datamax&&n!=y&&(t.datamax=n)}var n,r,i,o,a,u,l,c,f,h,d,v,m=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY,y=Number.MAX_VALUE;for(t.each(p(),function(t,e){e.datamin=m,e.datamax=g,e.used=!1}),n=0;n<rt.length;++n)a=rt[n],a.datapoints={points:[]},s(vt.processRawData,[a,a.data,a.datapoints]);for(n=0;n<rt.length;++n){if(a=rt[n],d=a.data,v=a.datapoints.format,!v){if(v=[],v.push({x:!0,number:!0,required:!0}),v.push({y:!0,number:!0,required:!0}),a.bars.show||a.lines.show&&a.lines.fill){var _=!!(a.bars.show&&a.bars.zero||a.lines.show&&a.lines.zero);v.push({y:!0,number:!0,required:!1,defaultValue:0,autoscale:_}),a.bars.horizontal&&(delete v[v.length-1].y,v[v.length-1].x=!0)}a.datapoints.format=v}if(null==a.datapoints.pointsize){a.datapoints.pointsize=v.length,l=a.datapoints.pointsize,u=a.datapoints.points;var b=a.lines.show&&a.lines.steps;for(a.xaxis.used=a.yaxis.used=!0,r=i=0;r<d.length;++r,i+=l){h=d[r];var w=null==h;if(!w)for(o=0;o<l;++o)c=h[o],f=v[o],f&&(f.number&&null!=c&&(c=+c,isNaN(c)?c=null:c==1/0?c=y:c==-(1/0)&&(c=-y)),null==c&&(f.required&&(w=!0),null!=f.defaultValue&&(c=f.defaultValue))),u[i+o]=c;if(w)for(o=0;o<l;++o)c=u[i+o],null!=c&&(f=v[o],f.autoscale!==!1&&(f.x&&e(a.xaxis,c,c),f.y&&e(a.yaxis,c,c))),u[i+o]=null;else if(b&&i>0&&null!=u[i-l]&&u[i-l]!=u[i]&&u[i-l+1]!=u[i+1]){for(o=0;o<l;++o)u[i+l+o]=u[i+o];u[i+1]=u[i-l+1],i+=l}}}}for(n=0;n<rt.length;++n)a=rt[n],s(vt.processDatapoints,[a,a.datapoints]);for(n=0;n<rt.length;++n){a=rt[n],u=a.datapoints.points,l=a.datapoints.pointsize,v=a.datapoints.format;var x=m,$=m,k=g,C=g;for(r=0;r<u.length;r+=l)if(null!=u[r])for(o=0;o<l;++o)c=u[r+o],f=v[o],f&&f.autoscale!==!1&&c!=y&&c!=-y&&(f.x&&(c<x&&(x=c),c>k&&(k=c)),f.y&&(c<$&&($=c),c>C&&(C=c)));if(a.bars.show){var S;switch(a.bars.align){case"left":S=0;break;case"right":S=-a.bars.barWidth;break;default:S=-a.bars.barWidth/2}a.bars.horizontal?($+=S,C+=S+a.bars.barWidth):(x+=S,k+=S+a.bars.barWidth)}e(a.xaxis,x,k),e(a.yaxis,$,C)}t.each(p(),function(t,e){e.datamin==m&&(e.datamin=null),e.datamax==g&&(e.datamax=null)})}function _(){n.css("padding",0).children().filter(function(){return!t(this).hasClass("flot-overlay")&&!t(this).hasClass("flot-base")}).remove(),"static"==n.css("position")&&n.css("position","relative"),ot=new e("flot-base",n),at=new e("flot-overlay",n),ut=ot.context,lt=at.context,st=t(at.element).unbind();var r=n.data("plot");r&&(r.shutdown(),at.clear()),n.data("plot",mt)}function b(){it.grid.hoverable&&(st.mousemove(V),st.bind("mouseleave",B)),it.grid.clickable&&st.click(Y),s(vt.bindEvents,[st])}function w(){yt&&clearTimeout(yt),st.unbind("mousemove",V),st.unbind("mouseleave",B),st.unbind("click",Y),s(vt.shutdown,[st])}function x(t){function e(t){return t}var n,r,i=t.options.transform||e,o=t.options.inverseTransform;"x"==t.direction?(n=t.scale=pt/Math.abs(i(t.max)-i(t.min)),r=Math.min(i(t.max),i(t.min))):(n=t.scale=dt/Math.abs(i(t.max)-i(t.min)),n=-n,r=Math.max(i(t.max),i(t.min))),i==e?t.p2c=function(t){return(t-r)*n}:t.p2c=function(t){return(i(t)-r)*n},o?t.c2p=function(t){return o(r+t/n)}:t.c2p=function(t){return r+t/n}}function $(t){for(var e=t.options,n=t.ticks||[],r=e.labelWidth||0,i=e.labelHeight||0,o=r||("x"==t.direction?Math.floor(ot.width/(n.length||1)):null),a=t.direction+"Axis "+t.direction+t.n+"Axis",s="flot-"+t.direction+"-axis flot-"+t.direction+t.n+"-axis "+a,u=e.font||"flot-tick-label tickLabel",l=0;l<n.length;++l){var c=n[l];if(c.label){var f=ot.getTextInfo(s,c.label,u,null,o);r=Math.max(r,f.width),i=Math.max(i,f.height)}}t.labelWidth=e.labelWidth||r,t.labelHeight=e.labelHeight||i}function k(e){var n=e.labelWidth,r=e.labelHeight,i=e.options.position,o="x"===e.direction,a=e.options.tickLength,s=it.grid.axisMargin,u=it.grid.labelMargin,l=!0,c=!0,f=!0,h=!1;t.each(o?ct:ft,function(t,n){n&&(n.show||n.reserveSpace)&&(n===e?h=!0:n.options.position===i&&(h?c=!1:l=!1),h||(f=!1))}),c&&(s=0),null==a&&(a=f?"full":5),isNaN(+a)||(u+=+a),o?(r+=u,"bottom"==i?(ht.bottom+=r+s,e.box={top:ot.height-ht.bottom,height:r}):(e.box={top:ht.top+s,height:r},ht.top+=r+s)):(n+=u,"left"==i?(e.box={left:ht.left+s,width:n},ht.left+=n+s):(ht.right+=n+s,e.box={left:ot.width-ht.right,width:n})),e.position=i,e.tickLength=a,e.box.padding=u,e.innermost=l}function C(t){"x"==t.direction?(t.box.left=ht.left-t.labelWidth/2,t.box.width=ot.width-ht.left-ht.right+t.labelWidth):(t.box.top=ht.top-t.labelHeight/2,t.box.height=ot.height-ht.bottom-ht.top+t.labelHeight)}function S(){var e,n=it.grid.minBorderMargin;if(null==n)for(n=0,e=0;e<rt.length;++e)n=Math.max(n,2*(rt[e].points.radius+rt[e].points.lineWidth/2));var r={left:n,right:n,top:n,bottom:n};t.each(p(),function(t,e){e.reserveSpace&&e.ticks&&e.ticks.length&&("x"===e.direction?(r.left=Math.max(r.left,e.labelWidth/2),r.right=Math.max(r.right,e.labelWidth/2)):(r.bottom=Math.max(r.bottom,e.labelHeight/2),r.top=Math.max(r.top,e.labelHeight/2)))}),ht.left=Math.ceil(Math.max(r.left,ht.left)),ht.right=Math.ceil(Math.max(r.right,ht.right)),ht.top=Math.ceil(Math.max(r.top,ht.top)),ht.bottom=Math.ceil(Math.max(r.bottom,ht.bottom))}function E(){var e,n=p(),r=it.grid.show;for(var i in ht){var o=it.grid.margin||0;ht[i]="number"==typeof o?o:o[i]||0}s(vt.processOffset,[ht]);for(var i in ht)"object"==typeof it.grid.borderWidth?ht[i]+=r?it.grid.borderWidth[i]:0:ht[i]+=r?it.grid.borderWidth:0;if(t.each(n,function(t,e){var n=e.options;e.show=null==n.show?e.used:n.show,e.reserveSpace=null==n.reserveSpace?e.show:n.reserveSpace,T(e)}),r){var a=t.grep(n,function(t){return t.show||t.reserveSpace});for(t.each(a,function(t,e){A(e),D(e),F(e,e.ticks),$(e)}),e=a.length-1;e>=0;--e)k(a[e]);S(),t.each(a,function(t,e){C(e)})}pt=ot.width-ht.left-ht.right,dt=ot.height-ht.bottom-ht.top,t.each(n,function(t,e){x(e)}),r&&P(),U()}function T(t){var e=t.options,n=+(null!=e.min?e.min:t.datamin),r=+(null!=e.max?e.max:t.datamax),i=r-n;if(0==i){var o=0==r?1:.01;null==e.min&&(n-=o),null!=e.max&&null==e.min||(r+=o)}else{var a=e.autoscaleMargin;null!=a&&(null==e.min&&(n-=i*a,n<0&&null!=t.datamin&&t.datamin>=0&&(n=0)),null==e.max&&(r+=i*a,r>0&&null!=t.datamax&&t.datamax<=0&&(r=0)))}t.min=n,t.max=r}function A(e){var n,i=e.options;n="number"==typeof i.ticks&&i.ticks>0?i.ticks:.3*Math.sqrt("x"==e.direction?ot.width:ot.height);var o=(e.max-e.min)/n,a=-Math.floor(Math.log(o)/Math.LN10),s=i.tickDecimals;null!=s&&a>s&&(a=s);var u,l=Math.pow(10,-a),c=o/l;if(c<1.5?u=1:c<3?(u=2,c>2.25&&(null==s||a+1<=s)&&(u=2.5,++a)):u=c<7.5?5:10,u*=l,null!=i.minTickSize&&u<i.minTickSize&&(u=i.minTickSize),e.delta=o,e.tickDecimals=Math.max(0,null!=s?s:a),e.tickSize=i.tickSize||u,"time"==i.mode&&!e.tickGenerator)throw new Error("Time mode requires the flot.time plugin.");if(e.tickGenerator||(e.tickGenerator=function(t){var e,n=[],i=r(t.min,t.tickSize),o=0,a=Number.NaN;do e=a,a=i+o*t.tickSize,n.push(a),++o;while(a<t.max&&a!=e);return n},e.tickFormatter=function(t,e){var n=e.tickDecimals?Math.pow(10,e.tickDecimals):1,r=""+Math.round(t*n)/n;if(null!=e.tickDecimals){var i=r.indexOf("."),o=i==-1?0:r.length-i-1;if(o<e.tickDecimals)return(o?r:r+".")+(""+n).substr(1,e.tickDecimals-o)}return r}),t.isFunction(i.tickFormatter)&&(e.tickFormatter=function(t,e){return""+i.tickFormatter(t,e)}),null!=i.alignTicksWithAxis){var f=("x"==e.direction?ct:ft)[i.alignTicksWithAxis-1];if(f&&f.used&&f!=e){var h=e.tickGenerator(e);if(h.length>0&&(null==i.min&&(e.min=Math.min(e.min,h[0])),null==i.max&&h.length>1&&(e.max=Math.max(e.max,h[h.length-1]))),e.tickGenerator=function(t){var e,n,r=[];for(n=0;n<f.ticks.length;++n)e=(f.ticks[n].v-f.min)/(f.max-f.min),e=t.min+e*(t.max-t.min),r.push(e);return r},!e.mode&&null==i.tickDecimals){var p=Math.max(0,-Math.floor(Math.log(e.delta)/Math.LN10)+1),d=e.tickGenerator(e);d.length>1&&/\..*0$/.test((d[1]-d[0]).toFixed(p))||(e.tickDecimals=p)}}}}function D(e){var n=e.options.ticks,r=[];null==n||"number"==typeof n&&n>0?r=e.tickGenerator(e):n&&(r=t.isFunction(n)?n(e):n);var i,o;for(e.ticks=[],i=0;i<r.length;++i){var a=null,s=r[i];"object"==typeof s?(o=+s[0],s.length>1&&(a=s[1])):o=+s,null==a&&(a=e.tickFormatter(o,e)),isNaN(o)||e.ticks.push({v:o,label:a})}}function F(t,e){t.options.autoscaleMargin&&e.length>0&&(null==t.options.min&&(t.min=Math.min(t.min,e[0].v)),null==t.options.max&&e.length>1&&(t.max=Math.max(t.max,e[e.length-1].v)))}function O(){ot.clear(),s(vt.drawBackground,[ut]);var t=it.grid;t.show&&t.backgroundColor&&M(),t.show&&!t.aboveData&&I();for(var e=0;e<rt.length;++e)s(vt.drawSeries,[ut,rt[e]]),N(rt[e]);s(vt.draw,[ut]),t.show&&t.aboveData&&I(),ot.render(),G()}function j(t,e){for(var n,r,i,o,a=p(),s=0;s<a.length;++s)if(n=a[s],n.direction==e&&(o=e+n.n+"axis",t[o]||1!=n.n||(o=e+"axis"),t[o])){r=t[o].from,i=t[o].to;break}if(t[o]||(n="x"==e?ct[0]:ft[0],r=t[e+"1"],i=t[e+"2"]),null!=r&&null!=i&&r>i){var u=r;r=i,i=u}return{from:r,to:i,axis:n}}function M(){ut.save(),ut.translate(ht.left,ht.top),ut.fillStyle=nt(it.grid.backgroundColor,dt,0,"rgba(255, 255, 255, 0)"),ut.fillRect(0,0,pt,dt),ut.restore()}function I(){var e,n,r,i;ut.save(),ut.translate(ht.left,ht.top);var o=it.grid.markings;if(o)for(t.isFunction(o)&&(n=mt.getAxes(),n.xmin=n.xaxis.min,n.xmax=n.xaxis.max,n.ymin=n.yaxis.min,n.ymax=n.yaxis.max,o=o(n)),e=0;e<o.length;++e){var a=o[e],s=j(a,"x"),u=j(a,"y");if(null==s.from&&(s.from=s.axis.min),null==s.to&&(s.to=s.axis.max),null==u.from&&(u.from=u.axis.min),null==u.to&&(u.to=u.axis.max),!(s.to<s.axis.min||s.from>s.axis.max||u.to<u.axis.min||u.from>u.axis.max)){s.from=Math.max(s.from,s.axis.min),s.to=Math.min(s.to,s.axis.max),u.from=Math.max(u.from,u.axis.min),u.to=Math.min(u.to,u.axis.max);var l=s.from===s.to,c=u.from===u.to;if(!l||!c)if(s.from=Math.floor(s.axis.p2c(s.from)),s.to=Math.floor(s.axis.p2c(s.to)),u.from=Math.floor(u.axis.p2c(u.from)),u.to=Math.floor(u.axis.p2c(u.to)),l||c){var f=a.lineWidth||it.grid.markingsLineWidth,h=f%2?.5:0;ut.beginPath(),ut.strokeStyle=a.color||it.grid.markingsColor,ut.lineWidth=f,l?(ut.moveTo(s.to+h,u.from),ut.lineTo(s.to+h,u.to)):(ut.moveTo(s.from,u.to+h),ut.lineTo(s.to,u.to+h)),ut.stroke()}else ut.fillStyle=a.color||it.grid.markingsColor,ut.fillRect(s.from,u.to,s.to-s.from,u.from-u.to)}}n=p(),r=it.grid.borderWidth;for(var d=0;d<n.length;++d){var v,m,g,y,_=n[d],b=_.box,w=_.tickLength;if(_.show&&0!=_.ticks.length){for(ut.lineWidth=1,"x"==_.direction?(v=0,m="full"==w?"top"==_.position?0:dt:b.top-ht.top+("top"==_.position?b.height:0)):(m=0,v="full"==w?"left"==_.position?0:pt:b.left-ht.left+("left"==_.position?b.width:0)),_.innermost||(ut.strokeStyle=_.options.color,ut.beginPath(),g=y=0,"x"==_.direction?g=pt+1:y=dt+1,1==ut.lineWidth&&("x"==_.direction?m=Math.floor(m)+.5:v=Math.floor(v)+.5),ut.moveTo(v,m),ut.lineTo(v+g,m+y),ut.stroke()),ut.strokeStyle=_.options.tickColor,ut.beginPath(),e=0;e<_.ticks.length;++e){var x=_.ticks[e].v;g=y=0,isNaN(x)||x<_.min||x>_.max||"full"==w&&("object"==typeof r&&r[_.position]>0||r>0)&&(x==_.min||x==_.max)||("x"==_.direction?(v=_.p2c(x),y="full"==w?-dt:w,"top"==_.position&&(y=-y)):(m=_.p2c(x),g="full"==w?-pt:w,"left"==_.position&&(g=-g)),1==ut.lineWidth&&("x"==_.direction?v=Math.floor(v)+.5:m=Math.floor(m)+.5),ut.moveTo(v,m),ut.lineTo(v+g,m+y))}ut.stroke()}}r&&(i=it.grid.borderColor,"object"==typeof r||"object"==typeof i?("object"!=typeof r&&(r={top:r,right:r,bottom:r,left:r}),"object"!=typeof i&&(i={top:i,right:i,bottom:i,left:i}),r.top>0&&(ut.strokeStyle=i.top,ut.lineWidth=r.top,ut.beginPath(),ut.moveTo(0-r.left,0-r.top/2),ut.lineTo(pt,0-r.top/2),ut.stroke()),r.right>0&&(ut.strokeStyle=i.right,ut.lineWidth=r.right,ut.beginPath(),ut.moveTo(pt+r.right/2,0-r.top),ut.lineTo(pt+r.right/2,dt),ut.stroke()),r.bottom>0&&(ut.strokeStyle=i.bottom,ut.lineWidth=r.bottom,ut.beginPath(),ut.moveTo(pt+r.right,dt+r.bottom/2),ut.lineTo(0,dt+r.bottom/2),ut.stroke()),r.left>0&&(ut.strokeStyle=i.left,ut.lineWidth=r.left,ut.beginPath(),ut.moveTo(0-r.left/2,dt+r.bottom),ut.lineTo(0-r.left/2,0),ut.stroke())):(ut.lineWidth=r,ut.strokeStyle=it.grid.borderColor,ut.strokeRect(-r/2,-r/2,pt+r,dt+r))),ut.restore()}function P(){t.each(p(),function(t,e){var n,r,i,o,a,s=e.box,u=e.direction+"Axis "+e.direction+e.n+"Axis",l="flot-"+e.direction+"-axis flot-"+e.direction+e.n+"-axis "+u,c=e.options.font||"flot-tick-label tickLabel";if(ot.removeText(l),e.show&&0!=e.ticks.length)for(var f=0;f<e.ticks.length;++f)n=e.ticks[f],!n.label||n.v<e.min||n.v>e.max||("x"==e.direction?(o="center",r=ht.left+e.p2c(n.v),"bottom"==e.position?i=s.top+s.padding:(i=s.top+s.height-s.padding,a="bottom")):(a="middle",i=ht.top+e.p2c(n.v),"left"==e.position?(r=s.left+s.width-s.padding,o="right"):r=s.left+s.padding),ot.addText(l,r,i,n.label,c,null,null,o,a))})}function N(t){t.lines.show&&R(t),t.bars.show&&q(t),t.points.show&&L(t)}function R(t){function e(t,e,n,r,i){var o=t.points,a=t.pointsize,s=null,u=null;ut.beginPath();for(var l=a;l<o.length;l+=a){var c=o[l-a],f=o[l-a+1],h=o[l],p=o[l+1];if(null!=c&&null!=h){if(f<=p&&f<i.min){if(p<i.min)continue;c=(i.min-f)/(p-f)*(h-c)+c,f=i.min}else if(p<=f&&p<i.min){if(f<i.min)continue;h=(i.min-f)/(p-f)*(h-c)+c,p=i.min}if(f>=p&&f>i.max){if(p>i.max)continue;c=(i.max-f)/(p-f)*(h-c)+c,f=i.max}else if(p>=f&&p>i.max){if(f>i.max)continue;h=(i.max-f)/(p-f)*(h-c)+c,p=i.max}if(c<=h&&c<r.min){if(h<r.min)continue;f=(r.min-c)/(h-c)*(p-f)+f,c=r.min}else if(h<=c&&h<r.min){if(c<r.min)continue;p=(r.min-c)/(h-c)*(p-f)+f,h=r.min}if(c>=h&&c>r.max){if(h>r.max)continue;f=(r.max-c)/(h-c)*(p-f)+f,c=r.max}else if(h>=c&&h>r.max){if(c>r.max)continue;p=(r.max-c)/(h-c)*(p-f)+f,h=r.max}c==s&&f==u||ut.moveTo(r.p2c(c)+e,i.p2c(f)+n),s=h,u=p,ut.lineTo(r.p2c(h)+e,i.p2c(p)+n)}}ut.stroke()}function n(t,e,n){for(var r=t.points,i=t.pointsize,o=Math.min(Math.max(0,n.min),n.max),a=0,s=!1,u=1,l=0,c=0;;){if(i>0&&a>r.length+i)break;a+=i;var f=r[a-i],h=r[a-i+u],p=r[a],d=r[a+u];if(s){if(i>0&&null!=f&&null==p){c=a,i=-i,u=2;continue}if(i<0&&a==l+i){ut.fill(),s=!1,i=-i,u=1,a=l=c+i;continue}}if(null!=f&&null!=p){if(f<=p&&f<e.min){if(p<e.min)continue;h=(e.min-f)/(p-f)*(d-h)+h,f=e.min}else if(p<=f&&p<e.min){if(f<e.min)continue;d=(e.min-f)/(p-f)*(d-h)+h,p=e.min}if(f>=p&&f>e.max){if(p>e.max)continue;h=(e.max-f)/(p-f)*(d-h)+h,f=e.max}else if(p>=f&&p>e.max){if(f>e.max)continue;d=(e.max-f)/(p-f)*(d-h)+h,p=e.max}if(s||(ut.beginPath(),ut.moveTo(e.p2c(f),n.p2c(o)),s=!0),h>=n.max&&d>=n.max)ut.lineTo(e.p2c(f),n.p2c(n.max)),ut.lineTo(e.p2c(p),n.p2c(n.max));else if(h<=n.min&&d<=n.min)ut.lineTo(e.p2c(f),n.p2c(n.min)),ut.lineTo(e.p2c(p),n.p2c(n.min));else{var v=f,m=p;h<=d&&h<n.min&&d>=n.min?(f=(n.min-h)/(d-h)*(p-f)+f,h=n.min):d<=h&&d<n.min&&h>=n.min&&(p=(n.min-h)/(d-h)*(p-f)+f,d=n.min),h>=d&&h>n.max&&d<=n.max?(f=(n.max-h)/(d-h)*(p-f)+f,h=n.max):d>=h&&d>n.max&&h<=n.max&&(p=(n.max-h)/(d-h)*(p-f)+f,d=n.max),f!=v&&ut.lineTo(e.p2c(v),n.p2c(h)),ut.lineTo(e.p2c(f),n.p2c(h)),ut.lineTo(e.p2c(p),n.p2c(d)),p!=m&&(ut.lineTo(e.p2c(p),n.p2c(d)),ut.lineTo(e.p2c(m),n.p2c(d)))}}}}ut.save(),ut.translate(ht.left,ht.top),ut.lineJoin="round";var r=t.lines.lineWidth,i=t.shadowSize;if(r>0&&i>0){ut.lineWidth=i,ut.strokeStyle="rgba(0,0,0,0.1)";var o=Math.PI/18;e(t.datapoints,Math.sin(o)*(r/2+i/2),Math.cos(o)*(r/2+i/2),t.xaxis,t.yaxis),ut.lineWidth=i/2,e(t.datapoints,Math.sin(o)*(r/2+i/4),Math.cos(o)*(r/2+i/4),t.xaxis,t.yaxis)}ut.lineWidth=r,ut.strokeStyle=t.color;var a=H(t.lines,t.color,0,dt);a&&(ut.fillStyle=a,n(t.datapoints,t.xaxis,t.yaxis)),r>0&&e(t.datapoints,0,0,t.xaxis,t.yaxis),ut.restore()}function L(t){function e(t,e,n,r,i,o,a,s){for(var u=t.points,l=t.pointsize,c=0;c<u.length;c+=l){var f=u[c],h=u[c+1];null==f||f<o.min||f>o.max||h<a.min||h>a.max||(ut.beginPath(),f=o.p2c(f),h=a.p2c(h)+r,"circle"==s?ut.arc(f,h,e,0,i?Math.PI:2*Math.PI,!1):s(ut,f,h,e,i),ut.closePath(),n&&(ut.fillStyle=n,ut.fill()),ut.stroke())}}ut.save(),ut.translate(ht.left,ht.top);var n=t.points.lineWidth,r=t.shadowSize,i=t.points.radius,o=t.points.symbol;if(0==n&&(n=1e-4),n>0&&r>0){var a=r/2;ut.lineWidth=a,ut.strokeStyle="rgba(0,0,0,0.1)",e(t.datapoints,i,null,a+a/2,!0,t.xaxis,t.yaxis,o),ut.strokeStyle="rgba(0,0,0,0.2)",e(t.datapoints,i,null,a/2,!0,t.xaxis,t.yaxis,o)}ut.lineWidth=n,ut.strokeStyle=t.color,e(t.datapoints,i,H(t.points,t.color),0,!1,t.xaxis,t.yaxis,o),ut.restore()}function z(t,e,n,r,i,o,a,s,u,l,c){var f,h,p,d,v,m,g,y,_;l?(y=m=g=!0,v=!1,f=n,h=t,d=e+r,p=e+i,h<f&&(_=h,h=f,f=_,v=!0,m=!1)):(v=m=g=!0,y=!1,f=t+r,h=t+i,p=n,d=e,d<p&&(_=d,d=p,p=_,y=!0,g=!1)),h<a.min||f>a.max||d<s.min||p>s.max||(f<a.min&&(f=a.min,v=!1),h>a.max&&(h=a.max,m=!1),p<s.min&&(p=s.min,y=!1),d>s.max&&(d=s.max,g=!1),f=a.p2c(f),p=s.p2c(p),h=a.p2c(h),d=s.p2c(d),o&&(u.fillStyle=o(p,d),u.fillRect(f,d,h-f,p-d)),c>0&&(v||m||g||y)&&(u.beginPath(),u.moveTo(f,p),v?u.lineTo(f,d):u.moveTo(f,d),g?u.lineTo(h,d):u.moveTo(h,d),m?u.lineTo(h,p):u.moveTo(h,p),y?u.lineTo(f,p):u.moveTo(f,p),u.stroke()))}function q(t){function e(e,n,r,i,o,a){for(var s=e.points,u=e.pointsize,l=0;l<s.length;l+=u)null!=s[l]&&z(s[l],s[l+1],s[l+2],n,r,i,o,a,ut,t.bars.horizontal,t.bars.lineWidth)}ut.save(),ut.translate(ht.left,ht.top),ut.lineWidth=t.bars.lineWidth,ut.strokeStyle=t.color;var n;switch(t.bars.align){case"left":n=0;break;case"right":n=-t.bars.barWidth;break;default:n=-t.bars.barWidth/2}var r=t.bars.fill?function(e,n){return H(t.bars,t.color,e,n)}:null;e(t.datapoints,n,n+t.bars.barWidth,r,t.xaxis,t.yaxis),ut.restore()}function H(e,n,r,i){var o=e.fill;if(!o)return null;if(e.fillColor)return nt(e.fillColor,r,i,n);var a=t.color.parse(n);return a.a="number"==typeof o?o:.4,a.normalize(),a.toString()}function U(){if(null!=it.legend.container?t(it.legend.container).html(""):n.find(".legend").remove(),it.legend.show){for(var e,r,i=[],o=[],a=!1,s=it.legend.labelFormatter,u=0;u<rt.length;++u)e=rt[u],e.label&&(r=s?s(e.label,e):e.label,r&&o.push({label:r,color:e.color}));if(it.legend.sorted)if(t.isFunction(it.legend.sorted))o.sort(it.legend.sorted);else if("reverse"==it.legend.sorted)o.reverse();else{var l="descending"!=it.legend.sorted;o.sort(function(t,e){return t.label==e.label?0:t.label<e.label!=l?1:-1})}for(var u=0;u<o.length;++u){var c=o[u];u%it.legend.noColumns==0&&(a&&i.push("</tr>"),i.push("<tr>"),a=!0),i.push('<td class="legendColorBox"><div style="border:1px solid '+it.legend.labelBoxBorderColor+';padding:1px"><div style="width:4px;height:0;border:5px solid '+c.color+';overflow:hidden"></div></div></td><td class="legendLabel">'+c.label+"</td>")}if(a&&i.push("</tr>"),0!=i.length){var f='<table style="font-size:smaller;color:'+it.grid.color+'">'+i.join("")+"</table>";if(null!=it.legend.container)t(it.legend.container).html(f);else{var h="",p=it.legend.position,d=it.legend.margin;null==d[0]&&(d=[d,d]),"n"==p.charAt(0)?h+="top:"+(d[1]+ht.top)+"px;":"s"==p.charAt(0)&&(h+="bottom:"+(d[1]+ht.bottom)+"px;"),"e"==p.charAt(1)?h+="right:"+(d[0]+ht.right)+"px;":"w"==p.charAt(1)&&(h+="left:"+(d[0]+ht.left)+"px;");var v=t('<div class="legend">'+f.replace('style="','style="position:absolute;'+h+";")+"</div>").appendTo(n);if(0!=it.legend.backgroundOpacity){var m=it.legend.backgroundColor;null==m&&(m=it.grid.backgroundColor,m=m&&"string"==typeof m?t.color.parse(m):t.color.extract(v,"background-color"),m.a=1,m=m.toString());var g=v.children();t('<div style="position:absolute;width:'+g.width()+"px;height:"+g.height()+"px;"+h+"background-color:"+m+';"> </div>').prependTo(v).css("opacity",it.legend.backgroundOpacity)}}}}}function W(t,e,n){var r,i,o,a=it.grid.mouseActiveRadius,s=a*a+1,u=null;for(r=rt.length-1;r>=0;--r)if(n(rt[r])){var l=rt[r],c=l.xaxis,f=l.yaxis,h=l.datapoints.points,p=c.c2p(t),d=f.c2p(e),v=a/c.scale,m=a/f.scale;if(o=l.datapoints.pointsize,c.options.inverseTransform&&(v=Number.MAX_VALUE),f.options.inverseTransform&&(m=Number.MAX_VALUE),l.lines.show||l.points.show)for(i=0;i<h.length;i+=o){var g=h[i],y=h[i+1];if(null!=g&&!(g-p>v||g-p<-v||y-d>m||y-d<-m)){var _=Math.abs(c.p2c(g)-t),b=Math.abs(f.p2c(y)-e),w=_*_+b*b;w<s&&(s=w,u=[r,i/o])}}if(l.bars.show&&!u){var x,$;switch(l.bars.align){case"left":x=0;break;case"right":x=-l.bars.barWidth;break;default:x=-l.bars.barWidth/2}for($=x+l.bars.barWidth,i=0;i<h.length;i+=o){var g=h[i],y=h[i+1],k=h[i+2];null!=g&&(rt[r].bars.horizontal?p<=Math.max(k,g)&&p>=Math.min(k,g)&&d>=y+x&&d<=y+$:p>=g+x&&p<=g+$&&d>=Math.min(k,y)&&d<=Math.max(k,y))&&(u=[r,i/o])}}}return u?(r=u[0],i=u[1],o=rt[r].datapoints.pointsize,{datapoint:rt[r].datapoints.points.slice(i*o,(i+1)*o),dataIndex:i,series:rt[r],seriesIndex:r}):null}function V(t){it.grid.hoverable&&K("plothover",t,function(t){return 0!=t.hoverable})}function B(t){it.grid.hoverable&&K("plothover",t,function(t){return!1})}function Y(t){K("plotclick",t,function(t){return 0!=t.clickable})}function K(t,e,r){var i=st.offset(),o=e.pageX-i.left-ht.left,a=e.pageY-i.top-ht.top,s=d({left:o,top:a});s.pageX=e.pageX,s.pageY=e.pageY;var u=W(o,a,r);if(u&&(u.pageX=parseInt(u.series.xaxis.p2c(u.datapoint[0])+i.left+ht.left,10),u.pageY=parseInt(u.series.yaxis.p2c(u.datapoint[1])+i.top+ht.top,10)),it.grid.autoHighlight){for(var l=0;l<gt.length;++l){var c=gt[l];c.auto!=t||u&&c.series==u.series&&c.point[0]==u.datapoint[0]&&c.point[1]==u.datapoint[1]||Q(c.series,c.point)}u&&J(u.series,u.datapoint,t)}n.trigger(t,[s,u])}function G(){var t=it.interaction.redrawOverlayInterval;return t==-1?void X():void(yt||(yt=setTimeout(X,t)))}function X(){yt=null,lt.save(),at.clear(),lt.translate(ht.left,ht.top);var t,e;for(t=0;t<gt.length;++t)e=gt[t],e.series.bars.show?et(e.series,e.point):tt(e.series,e.point);lt.restore(),s(vt.drawOverlay,[lt])}function J(t,e,n){if("number"==typeof t&&(t=rt[t]),"number"==typeof e){var r=t.datapoints.pointsize;e=t.datapoints.points.slice(r*e,r*(e+1))}var i=Z(t,e);i==-1?(gt.push({series:t,point:e,auto:n}),G()):n||(gt[i].auto=!1)}function Q(t,e){if(null==t&&null==e)return gt=[],void G();if("number"==typeof t&&(t=rt[t]),"number"==typeof e){var n=t.datapoints.pointsize;e=t.datapoints.points.slice(n*e,n*(e+1))}var r=Z(t,e);r!=-1&&(gt.splice(r,1),G())}function Z(t,e){for(var n=0;n<gt.length;++n){var r=gt[n];if(r.series==t&&r.point[0]==e[0]&&r.point[1]==e[1])return n}return-1}function tt(e,n){var r=n[0],i=n[1],o=e.xaxis,a=e.yaxis,s="string"==typeof e.highlightColor?e.highlightColor:t.color.parse(e.color).scale("a",.5).toString();if(!(r<o.min||r>o.max||i<a.min||i>a.max)){var u=e.points.radius+e.points.lineWidth/2;lt.lineWidth=u,lt.strokeStyle=s;var l=1.5*u;r=o.p2c(r),i=a.p2c(i),lt.beginPath(),"circle"==e.points.symbol?lt.arc(r,i,l,0,2*Math.PI,!1):e.points.symbol(lt,r,i,l,!1),lt.closePath(),lt.stroke()}}function et(e,n){var r,i="string"==typeof e.highlightColor?e.highlightColor:t.color.parse(e.color).scale("a",.5).toString(),o=i;switch(e.bars.align){case"left":r=0;break;case"right":r=-e.bars.barWidth;break;default:r=-e.bars.barWidth/2}lt.lineWidth=e.bars.lineWidth,lt.strokeStyle=i,z(n[0],n[1],n[2]||0,r,r+e.bars.barWidth,function(){return o},e.xaxis,e.yaxis,lt,e.bars.horizontal,e.bars.lineWidth)}function nt(e,n,r,i){if("string"==typeof e)return e;for(var o=ut.createLinearGradient(0,r,0,n),a=0,s=e.colors.length;a<s;++a){var u=e.colors[a];if("string"!=typeof u){var l=t.color.parse(i);null!=u.brightness&&(l=l.scale("rgb",u.brightness)),null!=u.opacity&&(l.a*=u.opacity),u=l.toString()}o.addColorStop(a/(s-1),u)}return o}var rt=[],it={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:!0,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:.85,sorted:null},xaxis:{show:null,position:"bottom",mode:null,font:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpace:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null},yaxis:{autoscaleMargin:.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#ffffff",symbol:"circle"},lines:{lineWidth:2,fill:!1,fillColor:null,steps:!1},bars:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,align:"left",horizontal:!1,zero:!0},shadowSize:3,highlightColor:null},grid:{show:!0,aboveData:!1,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,margin:0,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:!1,hoverable:!1,autoHighlight:!0,mouseActiveRadius:10},interaction:{redrawOverlayInterval:1e3/60},hooks:{}},ot=null,at=null,st=null,ut=null,lt=null,ct=[],ft=[],ht={left:0,right:0,top:0,bottom:0},pt=0,dt=0,vt={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},mt=this;mt.setData=c,mt.setupGrid=E,mt.draw=O,mt.getPlaceholder=function(){return n},mt.getCanvas=function(){return ot.element},mt.getPlotOffset=function(){return ht},mt.width=function(){return pt},mt.height=function(){return dt},mt.offset=function(){var t=st.offset();return t.left+=ht.left,t.top+=ht.top,t},mt.getData=function(){return rt},mt.getAxes=function(){var e={};return t.each(ct.concat(ft),function(t,n){n&&(e[n.direction+(1!=n.n?n.n:"")+"axis"]=n)}),e},mt.getXAxes=function(){return ct},mt.getYAxes=function(){return ft},mt.c2p=d,mt.p2c=v,mt.getOptions=function(){return it},mt.highlight=J,mt.unhighlight=Q,mt.triggerRedrawOverlay=G,mt.pointOffset=function(t){return{left:parseInt(ct[h(t,"x")-1].p2c(+t.x)+ht.left,10),top:parseInt(ft[h(t,"y")-1].p2c(+t.y)+ht.top,10)}},mt.shutdown=w,mt.destroy=function(){w(),n.removeData("plot").empty(),rt=[],it=null,ot=null,at=null,st=null,ut=null,lt=null,ct=[],ft=[],vt=null,gt=[],mt=null},mt.resize=function(){var t=n.width(),e=n.height();ot.resize(t,e),at.resize(t,e)},mt.hooks=vt,u(mt),l(o),_(),c(i),E(),O(),b();var gt=[],yt=null}function r(t,e){return e*Math.floor(t/e)}var i=Object.prototype.hasOwnProperty;t.fn.detach||(t.fn.detach=function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)})}),e.prototype.resize=function(t,e){if(t<=0||e<=0)throw new Error("Invalid dimensions for plot, width = "+t+", height = "+e);var n=this.element,r=this.context,i=this.pixelRatio;this.width!=t&&(n.width=t*i,n.style.width=t+"px",this.width=t),this.height!=e&&(n.height=e*i,n.style.height=e+"px",this.height=e),r.restore(),r.save(),r.scale(i,i)},e.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},e.prototype.render=function(){var t=this._textCache;for(var e in t)if(i.call(t,e)){var n=this.getTextLayer(e),r=t[e];n.hide();for(var o in r)if(i.call(r,o)){var a=r[o];for(var s in a)if(i.call(a,s)){for(var u,l=a[s].positions,c=0;u=l[c];c++)u.active?u.rendered||(n.append(u.element),u.rendered=!0):(l.splice(c--,1),u.rendered&&u.element.detach());0==l.length&&delete a[s]}}n.show()}},e.prototype.getTextLayer=function(e){var n=this.text[e];return null==n&&(null==this.textContainer&&(this.textContainer=t("<div class='flot-text'></div>").css({position:"absolute",top:0,left:0,bottom:0,right:0,"font-size":"smaller",color:"#545454"}).insertAfter(this.element)),n=this.text[e]=t("<div></div>").addClass(e).css({position:"absolute",top:0,left:0,bottom:0,right:0}).appendTo(this.textContainer)),n},e.prototype.getTextInfo=function(e,n,r,i,o){var a,s,u,l;if(n=""+n,a="object"==typeof r?r.style+" "+r.variant+" "+r.weight+" "+r.size+"px/"+r.lineHeight+"px "+r.family:r,s=this._textCache[e],null==s&&(s=this._textCache[e]={}),u=s[a],null==u&&(u=s[a]={}),l=u[n],null==l){var c=t("<div></div>").html(n).css({position:"absolute","max-width":o,top:-9999}).appendTo(this.getTextLayer(e));"object"==typeof r?c.css({font:a,color:r.color}):"string"==typeof r&&c.addClass(r),l=u[n]={width:c.outerWidth(!0),height:c.outerHeight(!0),element:c,positions:[]},c.detach()}return l},e.prototype.addText=function(t,e,n,r,i,o,a,s,u){var l=this.getTextInfo(t,r,i,o,a),c=l.positions;"center"==s?e-=l.width/2:"right"==s&&(e-=l.width),"middle"==u?n-=l.height/2:"bottom"==u&&(n-=l.height);for(var f,h=0;f=c[h];h++)if(f.x==e&&f.y==n)return void(f.active=!0);f={active:!0,rendered:!1,element:c.length?l.element.clone():l.element,x:e,y:n},c.push(f),f.element.css({top:Math.round(n),left:Math.round(e),"text-align":s})},e.prototype.removeText=function(t,e,n,r,o,a){if(null==r){var s=this._textCache[t];if(null!=s)for(var u in s)if(i.call(s,u)){var l=s[u];for(var c in l)if(i.call(l,c))for(var f,h=l[c].positions,p=0;f=h[p];p++)f.active=!1}}else for(var f,h=this.getTextInfo(t,r,o,a).positions,p=0;f=h[p];p++)f.x==e&&f.y==n&&(f.active=!1)},t.plot=function(e,r,i){var o=new n(t(e),r,i,t.plot.plugins);
return o},t.plot.version="0.8.3",t.plot.plugins=[],t.fn.plot=function(e,n){return this.each(function(){t.plot(this,e,n)})}}(jQuery),function(t){function e(e){function i(e,n,r){$||($=!0,g=e.getCanvas(),y=t(g).parent(),_=e.getOptions(),e.setData(o(e.getData())))}function o(e){for(var n=0,r=0,i=0,o=_.series.pie.combine.color,a=[],s=0;s<e.length;++s){var u=e[s].data;t.isArray(u)&&1==u.length&&(u=u[0]),t.isArray(u)?!isNaN(parseFloat(u[1]))&&isFinite(u[1])?u[1]=+u[1]:u[1]=0:u=!isNaN(parseFloat(u))&&isFinite(u)?[1,+u]:[1,0],e[s].data=[u]}for(var s=0;s<e.length;++s)n+=e[s].data[0][1];for(var s=0;s<e.length;++s){var u=e[s].data[0][1];u/n<=_.series.pie.combine.threshold&&(r+=u,i++,o||(o=e[s].color))}for(var s=0;s<e.length;++s){var u=e[s].data[0][1];(i<2||u/n>_.series.pie.combine.threshold)&&a.push(t.extend(e[s],{data:[[1,u]],color:e[s].color,label:e[s].label,angle:u*Math.PI*2/n,percent:u/(n/100)}))}return i>1&&a.push({data:[[1,r]],color:o,label:_.series.pie.combine.label,angle:r*Math.PI*2/n,percent:r/(n/100)}),a}function a(e,i){function o(){k.clearRect(0,0,l,c),y.children().filter(".pieLabel, .pieLabelBackground").remove()}function a(){var t=_.series.pie.shadow.left,e=_.series.pie.shadow.top,n=10,r=_.series.pie.shadow.alpha,i=_.series.pie.radius>1?_.series.pie.radius:b*_.series.pie.radius;if(!(i>=l/2-t||i*_.series.pie.tilt>=c/2-e||i<=n)){k.save(),k.translate(t,e),k.globalAlpha=r,k.fillStyle="#000",k.translate(w,x),k.scale(1,_.series.pie.tilt);for(var o=1;o<=n;o++)k.beginPath(),k.arc(0,0,i,0,2*Math.PI,!1),k.fill(),i-=o;k.restore()}}function u(){function e(t,e,n){t<=0||isNaN(t)||(n?k.fillStyle=e:(k.strokeStyle=e,k.lineJoin="round"),k.beginPath(),Math.abs(t-2*Math.PI)>1e-9&&k.moveTo(0,0),k.arc(0,0,i,o,o+t/2,!1),k.arc(0,0,i,o+t/2,o+t,!1),k.closePath(),o+=t,n?k.fill():k.stroke())}function n(){function e(e,n,r){if(0==e.data[0][1])return!0;var o,a=_.legend.labelFormatter,s=_.series.pie.label.formatter;o=a?a(e.label,e):e.label,s&&(o=s(o,e));var u=(n+e.angle+n)/2,f=w+Math.round(Math.cos(u)*i),h=x+Math.round(Math.sin(u)*i)*_.series.pie.tilt,p="<span class='pieLabel' id='pieLabel"+r+"' style='position:absolute;top:"+h+"px;left:"+f+"px;'>"+o+"</span>";y.append(p);var d=y.children("#pieLabel"+r),v=h-d.height()/2,m=f-d.width()/2;if(d.css("top",v),d.css("left",m),0-v>0||0-m>0||c-(v+d.height())<0||l-(m+d.width())<0)return!1;if(0!=_.series.pie.label.background.opacity){var g=_.series.pie.label.background.color;null==g&&(g=e.color);var b="top:"+v+"px;left:"+m+"px;";t("<div class='pieLabelBackground' style='position:absolute;width:"+d.width()+"px;height:"+d.height()+"px;"+b+"background-color:"+g+";'></div>").css("opacity",_.series.pie.label.background.opacity).insertBefore(d)}return!0}for(var n=r,i=_.series.pie.label.radius>1?_.series.pie.label.radius:b*_.series.pie.label.radius,o=0;o<h.length;++o){if(h[o].percent>=100*_.series.pie.label.threshold&&!e(h[o],n,o))return!1;n+=h[o].angle}return!0}var r=Math.PI*_.series.pie.startAngle,i=_.series.pie.radius>1?_.series.pie.radius:b*_.series.pie.radius;k.save(),k.translate(w,x),k.scale(1,_.series.pie.tilt),k.save();for(var o=r,a=0;a<h.length;++a)h[a].startAngle=o,e(h[a].angle,h[a].color,!0);if(k.restore(),_.series.pie.stroke.width>0){k.save(),k.lineWidth=_.series.pie.stroke.width,o=r;for(var a=0;a<h.length;++a)e(h[a].angle,_.series.pie.stroke.color,!1);k.restore()}return s(k),k.restore(),!_.series.pie.label.show||n()}if(y){var l=e.getPlaceholder().width(),c=e.getPlaceholder().height(),f=y.children().filter(".legend").children().width()||0;k=i,$=!1,b=Math.min(l,c/_.series.pie.tilt)/2,x=c/2+_.series.pie.offset.top,w=l/2,"auto"==_.series.pie.offset.left?(_.legend.position.match("w")?w+=f/2:w-=f/2,w<b?w=b:w>l-b&&(w=l-b)):w+=_.series.pie.offset.left;var h=e.getData(),p=0;do p>0&&(b*=r),p+=1,o(),_.series.pie.tilt<=.8&&a();while(!u()&&p<n);p>=n&&(o(),y.prepend("<div class='error'>Could not draw pie with labels contained inside canvas</div>")),e.setSeries&&e.insertLegend&&(e.setSeries(h),e.insertLegend())}}function s(t){if(_.series.pie.innerRadius>0){t.save();var e=_.series.pie.innerRadius>1?_.series.pie.innerRadius:b*_.series.pie.innerRadius;t.globalCompositeOperation="destination-out",t.beginPath(),t.fillStyle=_.series.pie.stroke.color,t.arc(0,0,e,0,2*Math.PI,!1),t.fill(),t.closePath(),t.restore(),t.save(),t.beginPath(),t.strokeStyle=_.series.pie.stroke.color,t.arc(0,0,e,0,2*Math.PI,!1),t.stroke(),t.closePath(),t.restore()}}function u(t,e){for(var n=!1,r=-1,i=t.length,o=i-1;++r<i;o=r)(t[r][1]<=e[1]&&e[1]<t[o][1]||t[o][1]<=e[1]&&e[1]<t[r][1])&&e[0]<(t[o][0]-t[r][0])*(e[1]-t[r][1])/(t[o][1]-t[r][1])+t[r][0]&&(n=!n);return n}function l(t,n){for(var r,i,o=e.getData(),a=e.getOptions(),s=a.series.pie.radius>1?a.series.pie.radius:b*a.series.pie.radius,l=0;l<o.length;++l){var c=o[l];if(c.pie.show){if(k.save(),k.beginPath(),k.moveTo(0,0),k.arc(0,0,s,c.startAngle,c.startAngle+c.angle/2,!1),k.arc(0,0,s,c.startAngle+c.angle/2,c.startAngle+c.angle,!1),k.closePath(),r=t-w,i=n-x,k.isPointInPath){if(k.isPointInPath(t-w,n-x))return k.restore(),{datapoint:[c.percent,c.data],dataIndex:0,series:c,seriesIndex:l}}else{var f=s*Math.cos(c.startAngle),h=s*Math.sin(c.startAngle),p=s*Math.cos(c.startAngle+c.angle/4),d=s*Math.sin(c.startAngle+c.angle/4),v=s*Math.cos(c.startAngle+c.angle/2),m=s*Math.sin(c.startAngle+c.angle/2),g=s*Math.cos(c.startAngle+c.angle/1.5),y=s*Math.sin(c.startAngle+c.angle/1.5),_=s*Math.cos(c.startAngle+c.angle),$=s*Math.sin(c.startAngle+c.angle),C=[[0,0],[f,h],[p,d],[v,m],[g,y],[_,$]],S=[r,i];if(u(C,S))return k.restore(),{datapoint:[c.percent,c.data],dataIndex:0,series:c,seriesIndex:l}}k.restore()}}return null}function c(t){h("plothover",t)}function f(t){h("plotclick",t)}function h(t,n){var r=e.offset(),i=parseInt(n.pageX-r.left),o=parseInt(n.pageY-r.top),a=l(i,o);if(_.grid.autoHighlight)for(var s=0;s<C.length;++s){var u=C[s];u.auto!=t||a&&u.series==a.series||d(u.series)}a&&p(a.series,t);var c={pageX:n.pageX,pageY:n.pageY};y.trigger(t,[c,a])}function p(t,n){var r=v(t);r==-1?(C.push({series:t,auto:n}),e.triggerRedrawOverlay()):n||(C[r].auto=!1)}function d(t){null==t&&(C=[],e.triggerRedrawOverlay());var n=v(t);n!=-1&&(C.splice(n,1),e.triggerRedrawOverlay())}function v(t){for(var e=0;e<C.length;++e){var n=C[e];if(n.series==t)return e}return-1}function m(t,e){function n(t){t.angle<=0||isNaN(t.angle)||(e.fillStyle="rgba(255, 255, 255, "+r.series.pie.highlight.opacity+")",e.beginPath(),Math.abs(t.angle-2*Math.PI)>1e-9&&e.moveTo(0,0),e.arc(0,0,i,t.startAngle,t.startAngle+t.angle/2,!1),e.arc(0,0,i,t.startAngle+t.angle/2,t.startAngle+t.angle,!1),e.closePath(),e.fill())}var r=t.getOptions(),i=r.series.pie.radius>1?r.series.pie.radius:b*r.series.pie.radius;e.save(),e.translate(w,x),e.scale(1,r.series.pie.tilt);for(var o=0;o<C.length;++o)n(C[o].series);s(e),e.restore()}var g=null,y=null,_=null,b=null,w=null,x=null,$=!1,k=null,C=[];e.hooks.processOptions.push(function(t,e){e.series.pie.show&&(e.grid.show=!1,"auto"==e.series.pie.label.show&&(e.legend.show?e.series.pie.label.show=!1:e.series.pie.label.show=!0),"auto"==e.series.pie.radius&&(e.series.pie.label.show?e.series.pie.radius=.75:e.series.pie.radius=1),e.series.pie.tilt>1?e.series.pie.tilt=1:e.series.pie.tilt<0&&(e.series.pie.tilt=0))}),e.hooks.bindEvents.push(function(t,e){var n=t.getOptions();n.series.pie.show&&(n.grid.hoverable&&e.unbind("mousemove").mousemove(c),n.grid.clickable&&e.unbind("click").click(f))}),e.hooks.processDatapoints.push(function(t,e,n,r){var o=t.getOptions();o.series.pie.show&&i(t,e,n,r)}),e.hooks.drawOverlay.push(function(t,e){var n=t.getOptions();n.series.pie.show&&m(t,e)}),e.hooks.draw.push(function(t,e){var n=t.getOptions();n.series.pie.show&&a(t,e)})}var n=10,r=.95,i={series:{pie:{show:!1,radius:"auto",innerRadius:0,startAngle:1.5,tilt:1,shadow:{left:5,top:15,alpha:.02},offset:{top:0,left:"auto"},stroke:{color:"#fff",width:1},label:{show:"auto",formatter:function(t,e){return"<div style='font-size:x-small;text-align:center;padding:2px;color:"+e.color+";'>"+t+"<br/>"+Math.round(e.percent)+"%</div>"},radius:1,background:{color:null,opacity:0},threshold:0},combine:{threshold:-1,color:null,label:"Other"},highlight:{opacity:.5}}}};t.plot.plugins.push({init:e,options:i,name:"pie",version:"1.1"})}(jQuery),function(t){function e(t,e){return e*Math.floor(t/e)}function n(t,e,n,r){if("function"==typeof t.strftime)return t.strftime(e);var i=function(t,e){return t=""+t,e=""+(null==e?"0":e),1==t.length?e+t:t},o=[],a=!1,s=t.getHours(),u=s<12;null==n&&(n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),null==r&&(r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]);var l;l=s>12?s-12:0==s?12:s;for(var c=0;c<e.length;++c){var f=e.charAt(c);if(a){switch(f){case"a":f=""+r[t.getDay()];break;case"b":f=""+n[t.getMonth()];break;case"d":f=i(t.getDate());break;case"e":f=i(t.getDate()," ");break;case"h":case"H":f=i(s);break;case"I":f=i(l);break;case"l":f=i(l," ");break;case"m":f=i(t.getMonth()+1);break;case"M":f=i(t.getMinutes());break;case"q":f=""+(Math.floor(t.getMonth()/3)+1);break;case"S":f=i(t.getSeconds());break;case"y":f=i(t.getFullYear()%100);break;case"Y":f=""+t.getFullYear();break;case"p":f=u?"am":"pm";break;case"P":f=u?"AM":"PM";break;case"w":f=""+t.getDay()}o.push(f),a=!1}else"%"==f?a=!0:o.push(f)}return o.join("")}function r(t){function e(t,e,n,r){t[e]=function(){return n[r].apply(n,arguments)}}var n={date:t};void 0!=t.strftime&&e(n,"strftime",t,"strftime"),e(n,"getTime",t,"getTime"),e(n,"setTime",t,"setTime");for(var r=["Date","Day","FullYear","Hours","Milliseconds","Minutes","Month","Seconds"],i=0;i<r.length;i++)e(n,"get"+r[i],t,"getUTC"+r[i]),e(n,"set"+r[i],t,"setUTC"+r[i]);return n}function i(t,e){if("browser"==e.timezone)return new Date(t);if(e.timezone&&"utc"!=e.timezone){if("undefined"!=typeof timezoneJS&&"undefined"!=typeof timezoneJS.Date){var n=new timezoneJS.Date;return n.setTimezone(e.timezone),n.setTime(t),n}return r(new Date(t))}return r(new Date(t))}function o(r){r.hooks.processOptions.push(function(r,o){t.each(r.getAxes(),function(t,r){var o=r.options;"time"==o.mode&&(r.tickGenerator=function(t){var n=[],r=i(t.min,o),a=0,u=o.tickSize&&"quarter"===o.tickSize[1]||o.minTickSize&&"quarter"===o.minTickSize[1]?c:l;null!=o.minTickSize&&(a="number"==typeof o.tickSize?o.tickSize:o.minTickSize[0]*s[o.minTickSize[1]]);for(var f=0;f<u.length-1&&!(t.delta<(u[f][0]*s[u[f][1]]+u[f+1][0]*s[u[f+1][1]])/2&&u[f][0]*s[u[f][1]]>=a);++f);var h=u[f][0],p=u[f][1];if("year"==p){if(null!=o.minTickSize&&"year"==o.minTickSize[1])h=Math.floor(o.minTickSize[0]);else{var d=Math.pow(10,Math.floor(Math.log(t.delta/s.year)/Math.LN10)),v=t.delta/s.year/d;h=v<1.5?1:v<3?2:v<7.5?5:10,h*=d}h<1&&(h=1)}t.tickSize=o.tickSize||[h,p];var m=t.tickSize[0];p=t.tickSize[1];var g=m*s[p];"second"==p?r.setSeconds(e(r.getSeconds(),m)):"minute"==p?r.setMinutes(e(r.getMinutes(),m)):"hour"==p?r.setHours(e(r.getHours(),m)):"month"==p?r.setMonth(e(r.getMonth(),m)):"quarter"==p?r.setMonth(3*e(r.getMonth()/3,m)):"year"==p&&r.setFullYear(e(r.getFullYear(),m)),r.setMilliseconds(0),g>=s.minute&&r.setSeconds(0),g>=s.hour&&r.setMinutes(0),g>=s.day&&r.setHours(0),g>=4*s.day&&r.setDate(1),g>=2*s.month&&r.setMonth(e(r.getMonth(),3)),g>=2*s.quarter&&r.setMonth(e(r.getMonth(),6)),g>=s.year&&r.setMonth(0);var y,_=0,b=Number.NaN;do if(y=b,b=r.getTime(),n.push(b),"month"==p||"quarter"==p)if(m<1){r.setDate(1);var w=r.getTime();r.setMonth(r.getMonth()+("quarter"==p?3:1));var x=r.getTime();r.setTime(b+_*s.hour+(x-w)*m),_=r.getHours(),r.setHours(0)}else r.setMonth(r.getMonth()+m*("quarter"==p?3:1));else"year"==p?r.setFullYear(r.getFullYear()+m):r.setTime(b+g);while(b<t.max&&b!=y);return n},r.tickFormatter=function(t,e){var r=i(t,e.options);if(null!=o.timeformat)return n(r,o.timeformat,o.monthNames,o.dayNames);var a,u=e.options.tickSize&&"quarter"==e.options.tickSize[1]||e.options.minTickSize&&"quarter"==e.options.minTickSize[1],l=e.tickSize[0]*s[e.tickSize[1]],c=e.max-e.min,f=o.twelveHourClock?" %p":"",h=o.twelveHourClock?"%I":"%H";a=l<s.minute?h+":%M:%S"+f:l<s.day?c<2*s.day?h+":%M"+f:"%b %d "+h+":%M"+f:l<s.month?"%b %d":u&&l<s.quarter||!u&&l<s.year?c<s.year?"%b":"%b %Y":u&&l<s.year?c<s.year?"Q%q":"Q%q %Y":"%Y";var p=n(r,a,o.monthNames,o.dayNames);return p})})})}var a={xaxis:{timezone:null,timeformat:null,twelveHourClock:!1,monthNames:null}},s={second:1e3,minute:6e4,hour:36e5,day:864e5,month:2592e6,quarter:7776e6,year:525949.2*60*1e3},u=[[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minute"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2,"hour"],[4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[.25,"month"],[.5,"month"],[1,"month"],[2,"month"]],l=u.concat([[3,"month"],[6,"month"],[1,"year"]]),c=u.concat([[1,"quarter"],[2,"quarter"],[1,"year"]]);t.plot.plugins.push({init:o,options:a,name:"time",version:"1.0"}),t.plot.formatDate=n,t.plot.dateGenerator=i}(jQuery),function(t){function e(){return!!document.createElement("canvas").getContext}function n(){if(!e())return!1;var t=document.createElement("canvas"),n=t.getContext("2d");return"function"==typeof n.fillText}function r(){var t=document.createElement("div");return"undefined"!=typeof t.style.MozTransition||"undefined"!=typeof t.style.OTransition||"undefined"!=typeof t.style.webkitTransition||"undefined"!=typeof t.style.transition}function i(t,e,n,r,i){this.axisName=t,this.position=e,this.padding=n,this.plot=r,this.opts=i,this.width=0,this.height=0}function o(t,e,n,r,o){i.prototype.constructor.call(this,t,e,n,r,o)}function a(t,e,n,r,o){i.prototype.constructor.call(this,t,e,n,r,o),this.elem=null}function s(t,e,n,r,i){a.prototype.constructor.call(this,t,e,n,r,i)}function u(t,e,n,r,i){s.prototype.constructor.call(this,t,e,n,r,i),this.requiresResize=!1}function l(e){e.hooks.processOptions.push(function(e,i){if(i.axisLabels.show){var l=!1,c={},f=2;e.hooks.draw.push(function(e,i){var h=!1;l?(l=!1,t.each(e.getAxes(),function(t,n){var r=n.options||e.getOptions()[t];r&&r.axisLabel&&n.show&&c[t].draw(n.box)})):(t.each(e.getAxes(),function(t,i){var l=i.options||e.getOptions()[t];if(t in c&&(i.labelHeight=i.labelHeight-c[t].height,i.labelWidth=i.labelWidth-c[t].width,l.labelHeight=i.labelHeight,l.labelWidth=i.labelWidth,c[t].cleanup(),delete c[t]),l&&l.axisLabel&&i.show){h=!0;var p=null;if(l.axisLabelUseHtml||"Microsoft Internet Explorer"!=navigator.appName)p=l.axisLabelUseHtml||!r()&&!n()&&!l.axisLabelUseCanvas?a:l.axisLabelUseCanvas||!r()?o:s;else{var d=navigator.userAgent,v=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");null!=v.exec(d)&&(rv=parseFloat(RegExp.$1)),p=rv>=9&&!l.axisLabelUseCanvas&&!l.axisLabelUseHtml?s:l.axisLabelUseCanvas||l.axisLabelUseHtml?l.axisLabelUseCanvas?o:a:u}var m=void 0===l.axisLabelPadding?f:l.axisLabelPadding;c[t]=new p(t,i.position,m,e,l),c[t].calculateSize(),l.labelHeight=i.labelHeight+c[t].height,l.labelWidth=i.labelWidth+c[t].width}}),h&&(l=!0,e.setupGrid(),e.draw()))})}})}var c={axisLabels:{show:!0}};i.prototype.cleanup=function(){},o.prototype=new i,o.prototype.constructor=o,o.prototype.calculateSize=function(){this.opts.axisLabelFontSizePixels||(this.opts.axisLabelFontSizePixels=14),this.opts.axisLabelFontFamily||(this.opts.axisLabelFontFamily="sans-serif");this.opts.axisLabelFontSizePixels+this.padding,this.opts.axisLabelFontSizePixels+this.padding;"left"==this.position||"right"==this.position?(this.width=this.opts.axisLabelFontSizePixels+this.padding,this.height=0):(this.width=0,this.height=this.opts.axisLabelFontSizePixels+this.padding)},o.prototype.draw=function(t){this.opts.axisLabelColour||(this.opts.axisLabelColour="black");var e=this.plot.getCanvas().getContext("2d");e.save(),e.font=this.opts.axisLabelFontSizePixels+"px "+this.opts.axisLabelFontFamily,e.fillStyle=this.opts.axisLabelColour;var n,r,i=e.measureText(this.opts.axisLabel).width,o=this.opts.axisLabelFontSizePixels,a=0;"top"==this.position?(n=t.left+t.width/2-i/2,r=t.top+.72*o):"bottom"==this.position?(n=t.left+t.width/2-i/2,r=t.top+t.height-.72*o):"left"==this.position?(n=t.left+.72*o,r=t.height/2+t.top+i/2,a=-Math.PI/2):"right"==this.position&&(n=t.left+t.width-.72*o,r=t.height/2+t.top-i/2,a=Math.PI/2),e.translate(n,r),e.rotate(a),e.fillText(this.opts.axisLabel,0,0),e.restore()},a.prototype=new i,a.prototype.constructor=a,a.prototype.calculateSize=function(){var e=t('<div class="axisLabels" style="position:absolute;">'+this.opts.axisLabel+"</div>");this.plot.getPlaceholder().append(e),this.labelWidth=e.outerWidth(!0),this.labelHeight=e.outerHeight(!0),e.remove(),this.width=this.height=0,"left"==this.position||"right"==this.position?this.width=this.labelWidth+this.padding:this.height=this.labelHeight+this.padding},a.prototype.cleanup=function(){this.elem&&this.elem.remove()},a.prototype.draw=function(e){this.plot.getPlaceholder().find("#"+this.axisName+"Label").remove(),this.elem=t('<div id="'+this.axisName+'Label" " class="axisLabels" style="position:absolute;">'+this.opts.axisLabel+"</div>"),this.plot.getPlaceholder().append(this.elem),"top"==this.position?(this.elem.css("left",e.left+e.width/2-this.labelWidth/2+"px"),this.elem.css("top",e.top+"px")):"bottom"==this.position?(this.elem.css("left",e.left+e.width/2-this.labelWidth/2+"px"),this.elem.css("top",e.top+e.height-this.labelHeight+"px")):"left"==this.position?(this.elem.css("top",e.top+e.height/2-this.labelHeight/2+"px"),this.elem.css("left",e.left+"px")):"right"==this.position&&(this.elem.css("top",e.top+e.height/2-this.labelHeight/2+"px"),this.elem.css("left",e.left+e.width-this.labelWidth+"px"))},s.prototype=new a,s.prototype.constructor=s,s.prototype.calculateSize=function(){a.prototype.calculateSize.call(this),this.width=this.height=0,"left"==this.position||"right"==this.position?this.width=this.labelHeight+this.padding:this.height=this.labelHeight+this.padding},s.prototype.transforms=function(t,e,n){var r={"-moz-transform":"","-webkit-transform":"","-o-transform":"","-ms-transform":""};if(0!=e||0!=n){var i=" translate("+e+"px, "+n+"px)";r["-moz-transform"]+=i,r["-webkit-transform"]+=i,r["-o-transform"]+=i,r["-ms-transform"]+=i}if(0!=t){var o=" rotate("+t+"deg)";r["-moz-transform"]+=o,r["-webkit-transform"]+=o,r["-o-transform"]+=o,r["-ms-transform"]+=o}var a="top: 0; left: 0; ";for(var s in r)r[s]&&(a+=s+":"+r[s]+";");return a+=";"},s.prototype.calculateOffsets=function(t){var e={x:0,y:0,degrees:0};return"bottom"==this.position?(e.x=t.left+t.width/2-this.labelWidth/2,e.y=t.top+t.height-this.labelHeight):"top"==this.position?(e.x=t.left+t.width/2-this.labelWidth/2,e.y=t.top):"left"==this.position?(e.degrees=-90,e.x=t.left-this.labelWidth/2+this.labelHeight/2,e.y=t.height/2+t.top):"right"==this.position&&(e.degrees=90,e.x=t.left+t.width-this.labelWidth/2-this.labelHeight/2,e.y=t.height/2+t.top),e.x=Math.round(e.x),e.y=Math.round(e.y),e},s.prototype.draw=function(e){this.plot.getPlaceholder().find("."+this.axisName+"Label").remove();var n=this.calculateOffsets(e);this.elem=t('<div class="axisLabels '+this.axisName+'Label" style="position:absolute; '+this.transforms(n.degrees,n.x,n.y)+'">'+this.opts.axisLabel+"</div>"),this.plot.getPlaceholder().append(this.elem)},u.prototype=new s,u.prototype.constructor=u,u.prototype.transforms=function(t,e,n){var r="";if(0!=t){for(var i=t/90;i<0;)i+=4;r+=" filter: progid:DXImageTransform.Microsoft.BasicImage(rotation="+i+"); ",this.requiresResize="right"==this.position}return 0!=e&&(r+="left: "+e+"px; "),0!=n&&(r+="top: "+n+"px; "),r},u.prototype.calculateOffsets=function(t){var e=s.prototype.calculateOffsets.call(this,t);return"top"==this.position?e.y=t.top+1:"left"==this.position?(e.x=t.left,e.y=t.height/2+t.top-this.labelWidth/2):"right"==this.position&&(e.x=t.left+t.width-this.labelHeight,e.y=t.height/2+t.top-this.labelWidth/2),e},u.prototype.draw=function(t){s.prototype.draw.call(this,t),this.requiresResize&&(this.elem=this.plot.getPlaceholder().find("."+this.axisName+"Label"),this.elem.css("width",this.labelWidth),this.elem.css("height",this.labelHeight))},t.plot.plugins.push({init:l,options:c,name:"axisLabels",version:"2.0"})}(jQuery),function(t){var e={tooltip:{show:!1,cssClass:"flotTip",content:"%s | X: %x | Y: %y",xDateFormat:null,yDateFormat:null,monthNames:null,dayNames:null,shifts:{x:10,y:20},defaultTheme:!0,snap:!0,lines:!1,clickTips:!1,onHover:function(t,e){},$compat:!1}};e.tooltipOpts=e.tooltip;var n=function(t){this.tipPosition={x:0,y:0},this.init(t)};n.prototype.init=function(e){function n(t){var n={};n.x=t.pageX,n.y=t.pageY,e.setTooltipPosition(n)}function r(n,r,a){o.clickmode?(t(e.getPlaceholder()).bind("plothover",i),e.hideTooltip(),o.clickmode=!1):(i(n,r,a),o.getDomElement().is(":visible")&&(t(e.getPlaceholder()).unbind("plothover",i),o.clickmode=!0))}function i(n,r,i){var a=function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))},s=function(t,e,n,r,i,o,s){if(!s||(s=function(t,e,n,r,i,o){if("undefined"!=typeof n)return{x:n,y:e};if("undefined"!=typeof r)return{x:t,y:r};var a,s=-1/((o-r)/(i-n));return{x:a=(i*(t*s-e+r)+n*(t*-s+e-o))/(s*(i-n)+r-o),y:s*a-s*t+e}}(t,e,n,r,i,o),s.x>=Math.min(n,i)&&s.x<=Math.max(n,i)&&s.y>=Math.min(r,o)&&s.y<=Math.max(r,o))){var u=r-o,l=i-n,c=n*o-r*i;return Math.abs(u*t+l*e+c)/Math.sqrt(u*u+l*l)}var f=a(t,e,n,r),h=a(t,e,i,o);return f>h?h:f};if(i)e.showTooltip(i,o.tooltipOptions.snap?i:r);else if(o.plotOptions.series.lines.show&&o.tooltipOptions.lines===!0){var u=o.plotOptions.grid.mouseActiveRadius,l={distance:u+1},c=r;t.each(e.getData(),function(t,n){for(var i=0,u=-1,f=1;f<n.data.length;f++)n.data[f-1][0]<=r.x&&n.data[f][0]>=r.x&&(i=f-1,u=f);if(u===-1)return void e.hideTooltip();var h={x:n.data[i][0],y:n.data[i][1]},p={x:n.data[u][0],y:n.data[u][1]},d=s(n.xaxis.p2c(r.x),n.yaxis.p2c(r.y),n.xaxis.p2c(h.x),n.yaxis.p2c(h.y),n.xaxis.p2c(p.x),n.yaxis.p2c(p.y),!1);if(d<l.distance){var v=a(h.x,h.y,r.x,r.y)<a(r.x,r.y,p.x,p.y)?i:u,m=(n.datapoints.pointsize,[r.x,h.y+(p.y-h.y)*((r.x-h.x)/(p.x-h.x))]),g={datapoint:m,dataIndex:v,series:n,seriesIndex:t};l={distance:d,item:g},o.tooltipOptions.snap&&(c={pageX:n.xaxis.p2c(m[0]),pageY:n.yaxis.p2c(m[1])})}}),l.distance<u+1?e.showTooltip(l.item,c):e.hideTooltip()}else e.hideTooltip()}var o=this,a=t.plot.plugins.length;if(this.plotPlugins=[],a)for(var s=0;s<a;s++)this.plotPlugins.push(t.plot.plugins[s].name);e.hooks.bindEvents.push(function(e,a){if(o.plotOptions=e.getOptions(),"boolean"==typeof o.plotOptions.tooltip&&(o.plotOptions.tooltipOpts.show=o.plotOptions.tooltip,o.plotOptions.tooltip=o.plotOptions.tooltipOpts,delete o.plotOptions.tooltipOpts),o.plotOptions.tooltip.show!==!1&&"undefined"!=typeof o.plotOptions.tooltip.show){o.tooltipOptions=o.plotOptions.tooltip,o.tooltipOptions.$compat?(o.wfunc="width",o.hfunc="height"):(o.wfunc="innerWidth",o.hfunc="innerHeight");o.getDomElement();t(e.getPlaceholder()).bind("plothover",i),o.tooltipOptions.clickTips&&t(e.getPlaceholder()).bind("plotclick",r),o.clickmode=!1,t(a).bind("mousemove",n)}}),e.hooks.shutdown.push(function(e,o){t(e.getPlaceholder()).unbind("plothover",i),t(e.getPlaceholder()).unbind("plotclick",r),e.removeTooltip(),t(o).unbind("mousemove",n)}),e.setTooltipPosition=function(e){var n=o.getDomElement(),r=n.outerWidth()+o.tooltipOptions.shifts.x,i=n.outerHeight()+o.tooltipOptions.shifts.y;e.x-t(window).scrollLeft()>t(window)[o.wfunc]()-r&&(e.x-=r),e.y-t(window).scrollTop()>t(window)[o.hfunc]()-i&&(e.y-=i),isNaN(e.x)?o.tipPosition.x=o.tipPosition.xPrev:(o.tipPosition.x=e.x,o.tipPosition.xPrev=e.x),isNaN(e.y)?o.tipPosition.y=o.tipPosition.yPrev:(o.tipPosition.y=e.y,o.tipPosition.yPrev=e.y)},e.showTooltip=function(t,n,r){var i=o.getDomElement(),a=o.stringFormat(o.tooltipOptions.content,t);""!==a&&(i.html(a),e.setTooltipPosition({x:n.pageX,y:n.pageY}),i.css({left:o.tipPosition.x+o.tooltipOptions.shifts.x,top:o.tipPosition.y+o.tooltipOptions.shifts.y}).show(),"function"==typeof o.tooltipOptions.onHover&&o.tooltipOptions.onHover(t,i))},e.hideTooltip=function(){o.getDomElement().hide().html("")},e.removeTooltip=function(){o.getDomElement().remove()}},n.prototype.getDomElement=function(){var e=t("<div>");return this.tooltipOptions&&this.tooltipOptions.cssClass&&(e=t("."+this.tooltipOptions.cssClass),0===e.length&&(e=t("<div />").addClass(this.tooltipOptions.cssClass),e.appendTo("body").hide().css({position:"absolute"}),this.tooltipOptions.defaultTheme&&e.css({background:"#fff","z-index":"1040",padding:"0.4em 0.6em","border-radius":"0.5em","font-size":"0.8em",border:"1px solid #111",display:"none","white-space":"nowrap"}))),e},n.prototype.stringFormat=function(t,e){var n,r,i,o,a,s=/%p\.{0,1}(\d{0,})/,u=/%s/,l=/%c/,c=/%lx/,f=/%ly/,h=/%x\.{0,1}(\d{0,})/,p=/%y\.{0,1}(\d{0,})/,d="%x",v="%y",m="%ct",g="%n";if("undefined"!=typeof e.series.threshold?(n=e.datapoint[0],r=e.datapoint[1],i=e.datapoint[2]):"undefined"!=typeof e.series.curvedLines?(n=e.datapoint[0],r=e.datapoint[1]):"undefined"!=typeof e.series.lines&&e.series.lines.steps?(n=e.series.datapoints.points[2*e.dataIndex],r=e.series.datapoints.points[2*e.dataIndex+1],i=""):(n=e.series.data[e.dataIndex][0],r=e.series.data[e.dataIndex][1],i=e.series.data[e.dataIndex][2]),null===e.series.label&&e.series.originSeries&&(e.series.label=e.series.originSeries.label),"function"==typeof t&&(t=t(e.series.label,n,r,e)),"boolean"==typeof t&&!t)return"";if(i&&(t=t.replace(m,i)),"undefined"!=typeof e.series.percent?o=e.series.percent:"undefined"!=typeof e.series.percents&&(o=e.series.percents[e.dataIndex]),"number"==typeof o&&(t=this.adjustValPrecision(s,t,o)),e.series.hasOwnProperty("pie")&&(a=e.series.data[0][1]),"number"==typeof a&&(t=t.replace(g,a)),t="undefined"!=typeof e.series.label?t.replace(u,e.series.label):t.replace(u,""),t="undefined"!=typeof e.series.color?t.replace(l,e.series.color):t.replace(l,""),t=this.hasAxisLabel("xaxis",e)?t.replace(c,e.series.xaxis.options.axisLabel):t.replace(c,""),t=this.hasAxisLabel("yaxis",e)?t.replace(f,e.series.yaxis.options.axisLabel):t.replace(f,""),this.isTimeMode("xaxis",e)&&this.isXDateFormat(e)&&(t=t.replace(h,this.timestampToDate(n,this.tooltipOptions.xDateFormat,e.series.xaxis.options))),this.isTimeMode("yaxis",e)&&this.isYDateFormat(e)&&(t=t.replace(p,this.timestampToDate(r,this.tooltipOptions.yDateFormat,e.series.yaxis.options))),"number"==typeof n&&(t=this.adjustValPrecision(h,t,n)),"number"==typeof r&&(t=this.adjustValPrecision(p,t,r)),"undefined"!=typeof e.series.xaxis.ticks){var y;y=this.hasRotatedXAxisTicks(e)?"rotatedTicks":"ticks";var _=e.dataIndex+e.seriesIndex;for(var b in e.series.xaxis[y])if(e.series.xaxis[y].hasOwnProperty(_)&&!this.isTimeMode("xaxis",e)){var w=this.isCategoriesMode("xaxis",e)?e.series.xaxis[y][_].label:e.series.xaxis[y][_].v;w===n&&(t=t.replace(h,e.series.xaxis[y][_].label.replace(/\$/g,"$$$$")))}}if("undefined"!=typeof e.series.yaxis.ticks)for(var x in e.series.yaxis.ticks)if(e.series.yaxis.ticks.hasOwnProperty(x)){var $=this.isCategoriesMode("yaxis",e)?e.series.yaxis.ticks[x].label:e.series.yaxis.ticks[x].v;$===r&&(t=t.replace(p,e.series.yaxis.ticks[x].label.replace(/\$/g,"$$$$")))}return"undefined"!=typeof e.series.xaxis.tickFormatter&&(t=t.replace(d,e.series.xaxis.tickFormatter(n,e.series.xaxis).replace(/\$/g,"$$"))),"undefined"!=typeof e.series.yaxis.tickFormatter&&(t=t.replace(v,e.series.yaxis.tickFormatter(r,e.series.yaxis).replace(/\$/g,"$$"))),t},n.prototype.isTimeMode=function(t,e){return"undefined"!=typeof e.series[t].options.mode&&"time"===e.series[t].options.mode},n.prototype.isXDateFormat=function(t){return"undefined"!=typeof this.tooltipOptions.xDateFormat&&null!==this.tooltipOptions.xDateFormat},n.prototype.isYDateFormat=function(t){return"undefined"!=typeof this.tooltipOptions.yDateFormat&&null!==this.tooltipOptions.yDateFormat},n.prototype.isCategoriesMode=function(t,e){return"undefined"!=typeof e.series[t].options.mode&&"categories"===e.series[t].options.mode},n.prototype.timestampToDate=function(e,n,r){var i=t.plot.dateGenerator(e,r);return t.plot.formatDate(i,n,this.tooltipOptions.monthNames,this.tooltipOptions.dayNames)},n.prototype.adjustValPrecision=function(t,e,n){var r,i=e.match(t);return null!==i&&""!==RegExp.$1&&(r=RegExp.$1,n=n.toFixed(r),e=e.replace(t,n)),e},n.prototype.hasAxisLabel=function(e,n){return t.inArray("axisLabels",this.plotPlugins)!==-1&&"undefined"!=typeof n.series[e].options.axisLabel&&n.series[e].options.axisLabel.length>0},n.prototype.hasRotatedXAxisTicks=function(e){return t.inArray("tickRotor",this.plotPlugins)!==-1&&"undefined"!=typeof e.series.xaxis.rotatedTicks};var r=function(t){new n(t)};t.plot.plugins.push({init:r,options:e,name:"tooltip",version:"0.8.5"})}(jQuery),function(t){if("function"==typeof define&&define.amd)define(["jquery"],t);else if("object"==typeof module&&module.exports){var e=require("jquery");module.exports=t(e)}else t(jQuery)}(function(t){if("undefined"==typeof t)throw new Error("jQuery.textcomplete requires jQuery");return+function(t){"use strict";var e=function(t){console.warn&&console.warn(t)},n=1;t.fn.textcomplete=function(r,i){var o=Array.prototype.slice.call(arguments);return this.each(function(){var a=this,s=t(this),u=s.data("textComplete");if(u||(i||(i={}),i._oid=n++,u=new t.fn.textcomplete.Completer(this,i),s.data("textComplete",u)),"string"==typeof r){if(!u)return;o.shift(),u[r].apply(u,o),"destroy"===r&&s.removeData("textComplete")}else t.each(r,function(n){t.each(["header","footer","placement","maxCount"],function(t){n[t]&&(u.option[t]=n[t],e(t+"as a strategy param is deprecated. Use option."),delete n[t])})}),u.register(t.fn.textcomplete.Strategy.parse(r,{el:a,$el:s}))})}}(t),+function(t){"use strict";function e(n,r){if(this.$el=t(n),this.id="textcomplete"+o++,this.strategies=[],this.views=[],this.option=t.extend({},e._getDefaults(),r),!this.$el.is("input[type=text]")&&!this.$el.is("textarea")&&!n.isContentEditable&&"true"!=n.contentEditable)throw new Error("textcomplete must be called on a Textarea or a ContentEditable.");if(n===document.activeElement)this.initialize();else{var i=this;this.$el.one("focus."+this.id,function(){i.initialize()})}}var n=function(t){var e,n;return function(){var r=Array.prototype.slice.call(arguments);if(e)return void(n=r);e=!0;var i=this;r.unshift(function o(){if(n){var r=n;n=void 0,r.unshift(o),t.apply(i,r)}else e=!1}),t.apply(this,r)}},r=function(t){return"[object String]"===Object.prototype.toString.call(t)},i=function(t){return"[object Function]"===Object.prototype.toString.call(t)},o=0;e._getDefaults=function(){return e.DEFAULTS||(e.DEFAULTS={appendTo:t("body"),zIndex:"100"}),e.DEFAULTS},t.extend(e.prototype,{id:null,option:null,strategies:null,adapter:null,dropdown:null,$el:null,initialize:function(){var e=this.$el.get(0);this.dropdown=new t.fn.textcomplete.Dropdown(e,this,this.option);var n,r;this.option.adapter?n=this.option.adapter:(r=this.$el.is("textarea")||this.$el.is("input[type=text]")?"number"==typeof e.selectionEnd?"Textarea":"IETextarea":"ContentEditable",n=t.fn.textcomplete[r]),this.adapter=new n(e,this,this.option)},destroy:function(){this.$el.off("."+this.id),this.adapter&&this.adapter.destroy(),this.dropdown&&this.dropdown.destroy(),this.$el=this.adapter=this.dropdown=null},trigger:function(t,e){this.dropdown||this.initialize(),null!=t||(t=this.adapter.getTextFromHeadToCaret());var n=this._extractSearchQuery(t);if(n.length){var r=n[1];if(e&&this._term===r)return;this._term=r,this._search.apply(this,n)}else this._term=null,this.dropdown.deactivate()},fire:function(t){var e=Array.prototype.slice.call(arguments,1);return this.$el.trigger(t,e),this},register:function(t){Array.prototype.push.apply(this.strategies,t)},select:function(t,e,n){this._term=null,this.adapter.select(t,e,n),this.fire("change").fire("textComplete:select",t,e),this.adapter.focus()},_clearAtNext:!0,_term:null,_extractSearchQuery:function(t){for(var e=0;e<this.strategies.length;e++){var n=this.strategies[e],o=n.context(t);if(o||""===o){var a=i(n.match)?n.match(t):n.match;r(o)&&(t=o);var s=t.match(a);if(s)return[n,s[n.index],s]}}return[]},_search:n(function(t,e,n,r){var i=this;e.search(n,function(r,o){i.dropdown.shown||i.dropdown.activate(),
i._clearAtNext&&(i.dropdown.clear(),i._clearAtNext=!1),i.dropdown.setPosition(i.adapter.getCaretPosition()),i.dropdown.render(i._zip(r,e,n)),o||(t(),i._clearAtNext=!0)},r)}),_zip:function(e,n,r){return t.map(e,function(t){return{value:t,strategy:n,term:r}})}}),t.fn.textcomplete.Completer=e}(t),+function(t){"use strict";function e(n,r,o){this.$el=e.createElement(o),this.completer=r,this.id=r.id+"dropdown",this._data=[],this.$inputEl=t(n),this.option=o,o.listPosition&&(this.setPosition=o.listPosition),o.height&&this.$el.height(o.height);var a=this;t.each(["maxCount","placement","footer","header","noResultsMessage","className"],function(t,e){null!=o[e]&&(a[e]=o[e])}),this._bindEvents(n),i[this.id]=this}var n=t(window),r=function(t,e){var n,r,i=e.strategy.idProperty;for(n=0;n<t.length;n++)if(r=t[n],r.strategy===e.strategy)if(i){if(r.value[i]===e.value[i])return!0}else if(r.value===e.value)return!0;return!1},i={};t(document).on("click",function(e){var n=e.originalEvent&&e.originalEvent.keepTextCompleteDropdown;t.each(i,function(t,e){t!==n&&e.deactivate()})});var o={SKIP_DEFAULT:0,KEY_UP:1,KEY_DOWN:2,KEY_ENTER:3,KEY_PAGEUP:4,KEY_PAGEDOWN:5,KEY_ESCAPE:6};t.extend(e,{createElement:function(e){var n=e.appendTo;n instanceof t||(n=t(n));var r=t("<ul></ul>").addClass("dropdown-menu textcomplete-dropdown").attr("id","textcomplete-dropdown-"+e._oid).css({display:"none",left:0,position:"absolute",zIndex:e.zIndex}).appendTo(n);return r}}),t.extend(e.prototype,{$el:null,$inputEl:null,completer:null,footer:null,header:null,id:null,maxCount:10,placement:"",shown:!1,data:[],className:"",destroy:function(){this.deactivate(),this.$el.off("."+this.id),this.$inputEl.off("."+this.id),this.clear(),this.$el=this.$inputEl=this.completer=null,delete i[this.id]},render:function(e){var n=this._buildContents(e),r=t.map(this.data,function(t){return t.value});this.data.length?(this._renderHeader(r),this._renderFooter(r),n&&(this._renderContents(n),this._fitToBottom(),this._activateIndexedItem()),this._setScroll()):this.noResultsMessage?this._renderNoResultsMessage(r):this.shown&&this.deactivate()},setPosition:function(e){this.$el.css(this._applyPlacement(e));var n="absolute";return this.$inputEl.add(this.$inputEl.parents()).each(function(){return"absolute"!==t(this).css("position")&&("fixed"===t(this).css("position")?(n="fixed",!1):void 0)}),this.$el.css({position:n}),this},clear:function(){this.$el.html(""),this.data=[],this._index=0,this._$header=this._$footer=this._$noResultsMessage=null},activate:function(){return this.shown||(this.clear(),this.$el.show(),this.className&&this.$el.addClass(this.className),this.completer.fire("textComplete:show"),this.shown=!0),this},deactivate:function(){return this.shown&&(this.$el.hide(),this.className&&this.$el.removeClass(this.className),this.completer.fire("textComplete:hide"),this.shown=!1),this},isUp:function(t){return 38===t.keyCode||t.ctrlKey&&80===t.keyCode},isDown:function(t){return 40===t.keyCode||t.ctrlKey&&78===t.keyCode},isEnter:function(t){var e=t.ctrlKey||t.altKey||t.metaKey||t.shiftKey;return!e&&(13===t.keyCode||9===t.keyCode||this.option.completeOnSpace===!0&&32===t.keyCode)},isPageup:function(t){return 33===t.keyCode},isPagedown:function(t){return 34===t.keyCode},isEscape:function(t){return 27===t.keyCode},_data:null,_index:null,_$header:null,_$noResultsMessage:null,_$footer:null,_bindEvents:function(){this.$el.on("mousedown."+this.id,".textcomplete-item",t.proxy(this._onClick,this)),this.$el.on("touchstart."+this.id,".textcomplete-item",t.proxy(this._onClick,this)),this.$el.on("mouseover."+this.id,".textcomplete-item",t.proxy(this._onMouseover,this)),this.$inputEl.on("keydown."+this.id,t.proxy(this._onKeydown,this))},_onClick:function(e){var n=t(e.target);e.preventDefault(),e.originalEvent.keepTextCompleteDropdown=this.id,n.hasClass("textcomplete-item")||(n=n.closest(".textcomplete-item"));var r=this.data[parseInt(n.data("index"),10)];this.completer.select(r.value,r.strategy,e);var i=this;setTimeout(function(){i.deactivate(),"touchstart"===e.type&&i.$inputEl.focus()},0)},_onMouseover:function(e){var n=t(e.target);e.preventDefault(),n.hasClass("textcomplete-item")||(n=n.closest(".textcomplete-item")),this._index=parseInt(n.data("index"),10),this._activateIndexedItem()},_onKeydown:function(e){if(this.shown){var n;switch(t.isFunction(this.option.onKeydown)&&(n=this.option.onKeydown(e,o)),null==n&&(n=this._defaultKeydown(e)),n){case o.KEY_UP:e.preventDefault(),this._up();break;case o.KEY_DOWN:e.preventDefault(),this._down();break;case o.KEY_ENTER:e.preventDefault(),this._enter(e);break;case o.KEY_PAGEUP:e.preventDefault(),this._pageup();break;case o.KEY_PAGEDOWN:e.preventDefault(),this._pagedown();break;case o.KEY_ESCAPE:e.preventDefault(),this.deactivate()}}},_defaultKeydown:function(t){return this.isUp(t)?o.KEY_UP:this.isDown(t)?o.KEY_DOWN:this.isEnter(t)?o.KEY_ENTER:this.isPageup(t)?o.KEY_PAGEUP:this.isPagedown(t)?o.KEY_PAGEDOWN:this.isEscape(t)?o.KEY_ESCAPE:void 0},_up:function(){0===this._index?this._index=this.data.length-1:this._index-=1,this._activateIndexedItem(),this._setScroll()},_down:function(){this._index===this.data.length-1?this._index=0:this._index+=1,this._activateIndexedItem(),this._setScroll()},_enter:function(t){var e=this.data[parseInt(this._getActiveElement().data("index"),10)];this.completer.select(e.value,e.strategy,t),this.deactivate()},_pageup:function(){var e=0,n=this._getActiveElement().position().top-this.$el.innerHeight();this.$el.children().each(function(r){if(t(this).position().top+t(this).outerHeight()>n)return e=r,!1}),this._index=e,this._activateIndexedItem(),this._setScroll()},_pagedown:function(){var e=this.data.length-1,n=this._getActiveElement().position().top+this.$el.innerHeight();this.$el.children().each(function(r){if(t(this).position().top>n)return e=r,!1}),this._index=e,this._activateIndexedItem(),this._setScroll()},_activateIndexedItem:function(){this.$el.find(".textcomplete-item.active").removeClass("active"),this._getActiveElement().addClass("active")},_getActiveElement:function(){return this.$el.children(".textcomplete-item:nth("+this._index+")")},_setScroll:function(){var t=this._getActiveElement(),e=t.position().top,n=t.outerHeight(),r=this.$el.innerHeight(),i=this.$el.scrollTop();0===this._index||this._index==this.data.length-1||e<0?this.$el.scrollTop(e+i):e+n>r&&this.$el.scrollTop(e+n+i-r)},_buildContents:function(t){var e,n,i,o="";for(n=0;n<t.length&&this.data.length!==this.maxCount;n++)e=t[n],r(this.data,e)||(i=this.data.length,this.data.push(e),o+='<li class="textcomplete-item" data-index="'+i+'"><a>',o+=e.strategy.template(e.value,e.term),o+="</a></li>");return o},_renderHeader:function(e){if(this.header){this._$header||(this._$header=t('<li class="textcomplete-header"></li>').prependTo(this.$el));var n=t.isFunction(this.header)?this.header(e):this.header;this._$header.html(n)}},_renderFooter:function(e){if(this.footer){this._$footer||(this._$footer=t('<li class="textcomplete-footer"></li>').appendTo(this.$el));var n=t.isFunction(this.footer)?this.footer(e):this.footer;this._$footer.html(n)}},_renderNoResultsMessage:function(e){if(this.noResultsMessage){this._$noResultsMessage||(this._$noResultsMessage=t('<li class="textcomplete-no-results-message"></li>').appendTo(this.$el));var n=t.isFunction(this.noResultsMessage)?this.noResultsMessage(e):this.noResultsMessage;this._$noResultsMessage.html(n)}},_renderContents:function(t){this._$footer?this._$footer.before(t):this.$el.append(t)},_fitToBottom:function(){var t=n.scrollTop()+n.height(),e=this.$el.height();this.$el.position().top+e>t&&this.$el.offset({top:t-e})},_applyPlacement:function(t){return this.placement.indexOf("top")!==-1?t={top:"auto",bottom:this.$el.parent().height()-t.top+t.lineHeight,left:t.left}:(t.bottom="auto",delete t.lineHeight),this.placement.indexOf("absleft")!==-1?t.left=0:this.placement.indexOf("absright")!==-1&&(t.right=0,t.left="auto"),t}}),t.fn.textcomplete.Dropdown=e,t.extend(t.fn.textcomplete,o)}(t),+function(t){"use strict";function e(e){t.extend(this,e),this.cache&&(this.search=n(this.search))}var n=function(t){var e={};return function(n,r){e[n]?r(e[n]):t.call(this,n,function(t){e[n]=(e[n]||[]).concat(t),r.apply(null,arguments)})}};e.parse=function(n,r){return t.map(n,function(t){var n=new e(t);return n.el=r.el,n.$el=r.$el,n})},t.extend(e.prototype,{match:null,replace:null,search:null,cache:!1,context:function(){return!0},index:2,template:function(t){return t},idProperty:null}),t.fn.textcomplete.Strategy=e}(t),+function(t){"use strict";function e(){}var n=Date.now||function(){return(new Date).getTime()},r=function(t,e){var r,i,o,a,s,u=function(){var l=n()-a;l<e?r=setTimeout(u,e-l):(r=null,s=t.apply(o,i),o=i=null)};return function(){return o=this,i=arguments,a=n(),r||(r=setTimeout(u,e)),s}};t.extend(e.prototype,{id:null,completer:null,el:null,$el:null,option:null,initialize:function(e,n,i){this.el=e,this.$el=t(e),this.id=n.id+this.constructor.name,this.completer=n,this.option=i,this.option.debounce&&(this._onKeyup=r(this._onKeyup,this.option.debounce)),this._bindEvents()},destroy:function(){this.$el.off("."+this.id),this.$el=this.el=this.completer=null},select:function(){throw new Error("Not implemented")},getCaretPosition:function(){var t=this._getCaretRelativePosition(),e=this.$el.offset();return t.top+=e.top,t.left+=e.left,t},focus:function(){this.$el.focus()},_bindEvents:function(){this.$el.on("keyup."+this.id,t.proxy(this._onKeyup,this))},_onKeyup:function(t){this._skipSearch(t)||this.completer.trigger(this.getTextFromHeadToCaret(),!0)},_skipSearch:function(t){switch(t.keyCode){case 13:case 40:case 38:return!0}if(t.ctrlKey)switch(t.keyCode){case 78:case 80:return!0}}}),t.fn.textcomplete.Adapter=e}(t),+function(t){"use strict";function e(t,e,n){this.initialize(t,e,n)}e.DIV_PROPERTIES={left:-9999,position:"absolute",top:0,whiteSpace:"pre-wrap"},e.COPY_PROPERTIES=["border-width","font-family","font-size","font-style","font-variant","font-weight","height","letter-spacing","word-spacing","line-height","text-decoration","text-align","width","padding-top","padding-right","padding-bottom","padding-left","margin-top","margin-right","margin-bottom","margin-left","border-style","box-sizing","tab-size"],t.extend(e.prototype,t.fn.textcomplete.Adapter.prototype,{select:function(e,n,r){var i=this.getTextFromHeadToCaret(),o=this.el.value.substring(this.el.selectionEnd),a=n.replace(e,r);t.isArray(a)&&(o=a[1]+o,a=a[0]),i=i.replace(n.match,a),this.$el.val(i+o),this.el.selectionStart=this.el.selectionEnd=i.length},_getCaretRelativePosition:function(){var e=t("<div></div>").css(this._copyCss()).text(this.getTextFromHeadToCaret()),n=t("<span></span>").text(".").appendTo(e);this.$el.before(e);var r=n.position();return r.top+=n.height()-this.$el.scrollTop(),r.lineHeight=n.height(),e.remove(),r},_copyCss:function(){return t.extend({overflow:this.el.scrollHeight>this.el.offsetHeight?"scroll":"auto"},e.DIV_PROPERTIES,this._getStyles())},_getStyles:function(t){var n=t("<div></div>").css(["color"]).color;return"undefined"!=typeof n?function(){return this.$el.css(e.COPY_PROPERTIES)}:function(){var n=this.$el,r={};return t.each(e.COPY_PROPERTIES,function(t,e){r[e]=n.css(e)}),r}}(t),getTextFromHeadToCaret:function(){return this.el.value.substring(0,this.el.selectionEnd)}}),t.fn.textcomplete.Textarea=e}(t),+function(t){"use strict";function e(e,r,i){this.initialize(e,r,i),t("<span>"+n+"</span>").css({position:"absolute",top:-9999,left:-9999}).insertBefore(e)}var n="吶";t.extend(e.prototype,t.fn.textcomplete.Textarea.prototype,{select:function(e,n,r){var i=this.getTextFromHeadToCaret(),o=this.el.value.substring(i.length),a=n.replace(e,r);t.isArray(a)&&(o=a[1]+o,a=a[0]),i=i.replace(n.match,a),this.$el.val(i+o),this.el.focus();var s=this.el.createTextRange();s.collapse(!0),s.moveEnd("character",i.length),s.moveStart("character",i.length),s.select()},getTextFromHeadToCaret:function(){this.el.focus();var t=document.selection.createRange();t.moveStart("character",-this.el.value.length);var e=t.text.split(n);return 1===e.length?e[0]:e[1]}}),t.fn.textcomplete.IETextarea=e}(t),+function(t){"use strict";function e(t,e,n){this.initialize(t,e,n)}t.extend(e.prototype,t.fn.textcomplete.Adapter.prototype,{select:function(e,n,r){var i=this.getTextFromHeadToCaret(),o=window.getSelection(),a=o.getRangeAt(0),s=a.cloneRange();s.selectNodeContents(a.startContainer);var u=s.toString(),l=u.substring(a.startOffset),c=n.replace(e,r);t.isArray(c)&&(l=c[1]+l,c=c[0]),i=i.replace(n.match,c),a.selectNodeContents(a.startContainer),a.deleteContents();var f=document.createTextNode(i+l);a.insertNode(f),a.setStart(f,i.length),a.collapse(!0),o.removeAllRanges(),o.addRange(a)},_getCaretRelativePosition:function(){var e=window.getSelection().getRangeAt(0).cloneRange(),n=document.createElement("span");e.insertNode(n),e.selectNodeContents(n),e.deleteContents();var r=t(n),i=r.offset();return i.left-=this.$el.offset().left,i.top+=r.height()-this.$el.offset().top,i.lineHeight=r.height(),r.remove(),i},getTextFromHeadToCaret:function(){var t=window.getSelection().getRangeAt(0),e=t.cloneRange();return e.selectNodeContents(t.startContainer),e.toString().substring(0,t.startOffset)}}),t.fn.textcomplete.ContentEditable=e}(t),t}),function($){$.fn.markItUp=function(settings,extraSettings){var method,params,options,ctrlKey,shiftKey,altKey;ctrlKey=shiftKey=altKey=!1,"string"==typeof settings&&(method=settings,params=extraSettings),options={id:"",nameSpace:"",root:"",previewHandler:!1,previewInWindow:"",previewInElement:"",previewAutoRefresh:!0,previewPosition:"after",previewTemplatePath:"~/templates/preview.html",previewParser:!1,previewParserPath:"",previewParserVar:"data",resizeHandle:!0,beforeInsert:"",afterInsert:"",onEnter:{},onShiftEnter:{},onCtrlEnter:{},onTab:{},markupSet:[{}]},$.extend(options,settings,extraSettings),options.root||$("script").each(function(t,e){miuScript=$(e).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/),null!==miuScript&&(options.root=miuScript[1])});var uaMatch=function(t){t=t.toLowerCase();var e=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},matched=uaMatch(navigator.userAgent),browser={};return matched.browser&&(browser[matched.browser]=!0,browser.version=matched.version),browser.chrome?browser.webkit=!0:browser.webkit&&(browser.safari=!0),this.each(function(){function localize(t,e){return e?t.replace(/("|')~\//g,"$1"+options.root):t.replace(/^~\//,options.root)}function init(){id="",nameSpace="",options.id?id='id="'+options.id+'"':$$.attr("id")&&(id='id="markItUp'+$$.attr("id").substr(0,1).toUpperCase()+$$.attr("id").substr(1)+'"'),options.nameSpace&&(nameSpace='class="'+options.nameSpace+'"'),$$.wrap("<div "+nameSpace+"></div>"),$$.wrap("<div "+id+' class="markItUp"></div>'),$$.wrap('<div class="markItUpContainer"></div>'),$$.addClass("markItUpEditor"),header=$('<div class="markItUpHeader"></div>').insertBefore($$),$(dropMenus(options.markupSet)).appendTo(header),footer=$('<div class="markItUpFooter"></div>').insertAfter($$),options.resizeHandle===!0&&browser.safari!==!0&&(resizeHandle=$('<div class="markItUpResizeHandle"></div>').insertAfter($$).bind("mousedown.markItUp",function(t){var e,n,r=$$.height(),i=t.clientY;e=function(t){return $$.css("height",Math.max(20,t.clientY+r-i)+"px"),!1},n=function(t){return $("html").unbind("mousemove.markItUp",e).unbind("mouseup.markItUp",n),!1},$("html").bind("mousemove.markItUp",e).bind("mouseup.markItUp",n)}),footer.append(resizeHandle)),$$.bind("keydown.markItUp",keyPressed).bind("keyup",keyPressed),$$.bind("insertion.markItUp",function(t,e){e.target!==!1&&get(),textarea===$.markItUp.focused&&markup(e)}),$$.bind("focus.markItUp",function(){$.markItUp.focused=this}),options.previewInElement&&refreshPreview()}function dropMenus(markupSet){var ul=$("<ul></ul>"),i=0;return $("li:hover > ul",ul).css("display","block"),$.each(markupSet,function(){var button=this,t="",title,li,j;if(title=button.key?(button.name||"")+" [Ctrl+"+button.key+"]":button.name||"",key=button.key?'accesskey="'+button.key+'"':"",button.separator)li=$('<li class="markItUpSeparator">'+(button.separator||"")+"</li>").appendTo(ul);else{for(i++,j=levels.length-1;j>=0;j--)t+=levels[j]+"-";li=$('<li class="markItUpButton markItUpButton'+t+i+" "+(button.className||"")+'"><a href="" '+key+' title="'+title+'">'+(button.name||"")+"</a></li>").bind("contextmenu.markItUp",function(){return!1}).bind("click.markItUp",function(t){t.preventDefault()}).bind("focusin.markItUp",function(){$$.focus()}).bind("mouseup",function(){return button.call&&eval(button.call)(),setTimeout(function(){markup(button)},1),!1}).bind("mouseenter.markItUp",function(){$("> ul",this).show(),$(document).one("click",function(){$("ul ul",header).hide()})}).bind("mouseleave.markItUp",function(){$("> ul",this).hide()}).appendTo(ul),button.dropMenu&&(levels.push(i),$(li).addClass("markItUpDropMenu").append(dropMenus(button.dropMenu)))}}),levels.pop(),ul}function magicMarkups(t){return t?(t=t.toString(),t=t.replace(/\(\!\(([\s\S]*?)\)\!\)/g,function(t,e){var n=e.split("|!|");return altKey===!0?void 0!==n[1]?n[1]:n[0]:void 0===n[1]?"":n[0]}),t=t.replace(/\[\!\[([\s\S]*?)\]\!\]/g,function(t,e){var n=e.split(":!:");return abort!==!0&&(value=prompt(n[0],n[1]?n[1]:""),null===value&&(abort=!0),value)})):""}function prepare(t){return $.isFunction(t)&&(t=t(hash)),magicMarkups(t)}function build(t){var e=prepare(clicked.openWith),n=prepare(clicked.placeHolder),r=prepare(clicked.replaceWith),i=prepare(clicked.closeWith),o=prepare(clicked.openBlockWith),a=prepare(clicked.closeBlockWith),s=clicked.multiline;if(""!==r)block=e+r+i;else if(""===selection&&""!==n)block=e+n+i;else{t=t||selection;var u=[t],l=[];s===!0&&(u=t.split(/\r?\n/));for(var c=0;c<u.length;c++){line=u[c];var f;(f=line.match(/ *$/))?l.push(e+line.replace(/ *$/g,"")+i+f):l.push(e+line+i)}block=l.join("\n")}return block=o+block+a,{block:block,openBlockWith:o,openWith:e,replaceWith:r,placeHolder:n,closeWith:i,closeBlockWith:a}}function markup(t){var e,n,r,i;if(hash=clicked=t,get(),$.extend(hash,{line:"",root:options.root,textarea:textarea,selection:selection||"",caretPosition:caretPosition,ctrlKey:ctrlKey,shiftKey:shiftKey,altKey:altKey}),prepare(options.beforeInsert),prepare(clicked.beforeInsert),(ctrlKey===!0&&shiftKey===!0||t.multiline===!0)&&prepare(clicked.beforeMultiInsert),$.extend(hash,{line:1}),ctrlKey===!0&&shiftKey===!0){for(lines=selection.split(/\r?\n/),n=0,r=lines.length,i=0;i<r;i++)""!==$.trim(lines[i])?($.extend(hash,{line:++n,selection:lines[i]}),lines[i]=build(lines[i]).block):lines[i]="";string={block:lines.join("\n")},start=caretPosition,e=string.block.length+(browser.opera?r-1:0)}else ctrlKey===!0?(string=build(selection),start=caretPosition+string.openWith.length,e=string.block.length-string.openWith.length-string.closeWith.length,e-=string.block.match(/ $/)?1:0,e-=fixIeBug(string.block)):shiftKey===!0?(string=build(selection),start=caretPosition,e=string.block.length,e-=fixIeBug(string.block)):(string=build(selection),start=caretPosition+string.block.length,e=0,start-=fixIeBug(string.block));""===selection&&""===string.replaceWith&&(caretOffset+=fixOperaBug(string.block),start=caretPosition+string.openBlockWith.length+string.openWith.length,e=string.block.length-string.openBlockWith.length-string.openWith.length-string.closeWith.length-string.closeBlockWith.length,caretOffset=$$.val().substring(caretPosition,$$.val().length).length,caretOffset-=fixOperaBug($$.val().substring(0,caretPosition))),$.extend(hash,{caretPosition:caretPosition,scrollPosition:scrollPosition}),string.block!==selection&&abort===!1?(insert(string.block),set(start,e)):caretOffset=-1,get(),$.extend(hash,{line:"",selection:selection}),(ctrlKey===!0&&shiftKey===!0||t.multiline===!0)&&prepare(clicked.afterMultiInsert),prepare(clicked.afterInsert),prepare(options.afterInsert),previewWindow&&options.previewAutoRefresh&&refreshPreview(),shiftKey=altKey=ctrlKey=abort=!1}function fixOperaBug(t){return browser.opera?t.length-t.replace(/\n*/g,"").length:0}function fixIeBug(t){return browser.msie?t.length-t.replace(/\r*/g,"").length:0}function insert(t){if(document.selection){var e=document.selection.createRange();e.text=t}else textarea.value=textarea.value.substring(0,caretPosition)+t+textarea.value.substring(caretPosition+selection.length,textarea.value.length)}function set(t,e){if(textarea.createTextRange){if(browser.opera&&browser.version>=9.5&&0==e)return!1;range=textarea.createTextRange(),range.collapse(!0),range.moveStart("character",t),range.moveEnd("character",e),range.select()}else textarea.setSelectionRange&&textarea.setSelectionRange(t,t+e);textarea.scrollTop=scrollPosition,textarea.focus()}function get(){if(textarea.focus(),scrollPosition=textarea.scrollTop,document.selection)if(selection=document.selection.createRange().text,browser.msie){var t=document.selection.createRange(),e=t.duplicate();for(e.moveToElementText(textarea),caretPosition=-1;e.inRange(t);)e.moveStart("character"),caretPosition++}else caretPosition=textarea.selectionStart;else caretPosition=textarea.selectionStart,selection=textarea.value.substring(caretPosition,textarea.selectionEnd);return selection}function preview(){"function"==typeof options.previewHandler?previewWindow=!0:options.previewInElement?previewWindow=$(options.previewInElement):!previewWindow||previewWindow.closed?options.previewInWindow?(previewWindow=window.open("","preview",options.previewInWindow),$(window).unload(function(){previewWindow.close()})):(iFrame=$('<iframe class="markItUpPreviewFrame"></iframe>'),"after"==options.previewPosition?iFrame.insertAfter(footer):iFrame.insertBefore(header),previewWindow=iFrame[iFrame.length-1].contentWindow||frame[iFrame.length-1]):altKey===!0&&(iFrame?iFrame.remove():previewWindow.close(),previewWindow=iFrame=!1),options.previewAutoRefresh||refreshPreview(),options.previewInWindow&&previewWindow.focus()}function refreshPreview(){renderPreview()}function renderPreview(){if(options.previewHandler&&"function"==typeof options.previewHandler)options.previewHandler($$.val());else if(options.previewParser&&"function"==typeof options.previewParser){var t=options.previewParser($$.val());writeInPreview(localize(t,1))}else""!==options.previewParserPath?$.ajax({type:"POST",dataType:"text",global:!1,url:options.previewParserPath,data:options.previewParserVar+"="+encodeURIComponent($$.val()),success:function(t){writeInPreview(localize(t,1))}}):template||$.ajax({url:options.previewTemplatePath,dataType:"text",global:!1,success:function(t){writeInPreview(localize(t,1).replace(/<!-- content -->/g,$$.val()))}});return!1}function writeInPreview(t){if(options.previewInElement)$(options.previewInElement).html(t);else if(previewWindow&&previewWindow.document){try{sp=previewWindow.document.documentElement.scrollTop}catch(e){sp=0}previewWindow.document.open(),previewWindow.document.write(t),previewWindow.document.close(),previewWindow.document.documentElement.scrollTop=sp}}function keyPressed(t){if(shiftKey=t.shiftKey,altKey=t.altKey,ctrlKey=(!t.altKey||!t.ctrlKey)&&(t.ctrlKey||t.metaKey),"keydown"===t.type){if(ctrlKey===!0&&(li=$('a[accesskey="'+(13==t.keyCode?"\\n":String.fromCharCode(t.keyCode))+'"]',header).parent("li"),0!==li.length))return ctrlKey=!1,setTimeout(function(){li.triggerHandler("mouseup")},1),!1;if(13===t.keyCode||10===t.keyCode)return ctrlKey===!0?(ctrlKey=!1,markup(options.onCtrlEnter),options.onCtrlEnter.keepDefault):shiftKey===!0?(shiftKey=!1,markup(options.onShiftEnter),options.onShiftEnter.keepDefault):(markup(options.onEnter),options.onEnter.keepDefault);if(9===t.keyCode)return 1!=shiftKey&&1!=ctrlKey&&1!=altKey&&(caretOffset!==-1?(get(),caretOffset=$$.val().length-caretOffset,set(caretOffset,0),caretOffset=-1,!1):(markup(options.onTab),options.onTab.keepDefault))}}function remove(){$$.unbind(".markItUp").removeClass("markItUpEditor"),$$.parent("div").parent("div.markItUp").parent("div").replaceWith($$),$$.data("markItUp",null)}var $$,textarea,levels,scrollPosition,caretPosition,caretOffset,clicked,hash,header,footer,previewWindow,template,iFrame,abort;if($$=$(this),textarea=this,levels=[],abort=!1,scrollPosition=caretPosition=0,caretOffset=-1,options.previewParserPath=localize(options.previewParserPath),options.previewTemplatePath=localize(options.previewTemplatePath),method)switch(method){case"remove":remove();break;case"insert":markup(params);break;default:$.error("Method "+method+" does not exist on jQuery.markItUp")}else init()})},$.fn.markItUpRemove=function(){return this.each(function(){$(this).markItUp("remove")})},$.markItUp=function(t){var e={target:!1};return $.extend(e,t),e.target?$(e.target).each(function(){$(this).focus(),$(this).trigger("insertion",[e])}):void $("textarea").trigger("insertion",[e])}}(jQuery),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Raven=t()}}(function(){return function t(e,n,r){function i(a,s){if(!n[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(t){var n=e[a][1][t];return i(n?n:t)},c,c.exports,t,e,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,e,n){"use strict";function r(t){this.name="RavenConfigError",this.message=t}r.prototype=new Error,r.prototype.constructor=r,e.exports=r},{}],2:[function(t,e,n){"use strict";var r=function(t,e,n){var r=t[e],i=t;if(e in t){var o="warn"===e?"warning":e;t[e]=function(){var t=[].slice.call(arguments),e=""+t.join(" "),a={level:o,logger:"console",extra:{arguments:t}};n&&n(e,a),r&&Function.prototype.apply.call(r,i,t)}}};e.exports={wrapMethod:r}},{}],3:[function(t,e,n){"use strict";function r(){return+new Date}function i(){this._hasJSON=!("object"!=typeof JSON||!JSON.stringify),this._hasDocument="undefined"!=typeof document,this._lastCapturedException=null,this._lastEventId=null,this._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalContext={},this._globalOptions={logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],crossOrigin:"anonymous",collectWindowErrors:!0,maxMessageLength:0,stackTraceLimit:50},this._ignoreOnError=0,this._isRavenInstalled=!1,this._originalErrorStackTraceLimit=Error.stackTraceLimit,this._originalConsole=window.console||{},this._originalConsoleMethods={},this._plugins=[],this._startTime=r(),this._wrappedBuiltIns=[],this._breadcrumbs=[],this._breadcrumbLimit=20,this._lastCapturedEvent=null,this._keypressTimeout,this._location=window.location,this._lastHref=this._location&&this._location.href;for(var t in this._originalConsole)this._originalConsoleMethods[t]=this._originalConsole[t]}var o=t(6),a=t(1),s=t(5),u=s.isFunction,l=s.isUndefined,c=s.isError,f=s.isEmptyObject,h=s.hasKey,p=s.joinRegExp,d=s.each,v=s.objectMerge,m=s.truncate,g=s.urlencode,y=s.uuid4,_=s.htmlTreeAsString,b=s.parseUrl,w=s.isString,x=t(2).wrapMethod,$="source protocol user pass host port path".split(" "),k=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;i.prototype={VERSION:"3.0.4",debug:!1,TraceKit:o,config:function(t,e){var n=this;if(this._globalServer)return this._logDebug("error","Error: Raven has already been configured"),this;if(!t)return this;e&&d(e,function(t,e){"tags"===t||"extra"===t?n._globalContext[t]=e:n._globalOptions[t]=e});var r=this._parseDSN(t),i=r.path.lastIndexOf("/"),a=r.path.substr(1,i);return this._dsn=t,this._globalOptions.ignoreErrors.push(/^Script error\.?$/),this._globalOptions.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),this._globalOptions.ignoreErrors=p(this._globalOptions.ignoreErrors),this._globalOptions.ignoreUrls=!!this._globalOptions.ignoreUrls.length&&p(this._globalOptions.ignoreUrls),this._globalOptions.whitelistUrls=!!this._globalOptions.whitelistUrls.length&&p(this._globalOptions.whitelistUrls),this._globalOptions.includePaths=p(this._globalOptions.includePaths),this._globalKey=r.user,this._globalSecret=r.pass&&r.pass.substr(1),this._globalProject=r.path.substr(i+1),this._globalServer=this._getGlobalServer(r),this._globalEndpoint=this._globalServer+"/"+a+"api/"+this._globalProject+"/store/",this._globalOptions.fetchContext&&(o.remoteFetching=!0),this._globalOptions.linesOfContext&&(o.linesOfContext=this._globalOptions.linesOfContext),o.collectWindowErrors=!!this._globalOptions.collectWindowErrors,this},install:function(){var t=this;return this.isSetup()&&!this._isRavenInstalled&&(o.report.subscribe(function(){t._handleOnErrorStackInfo.apply(t,arguments)}),this._wrapBuiltIns(),this._drainPlugins(),this._isRavenInstalled=!0),Error.stackTraceLimit=this._globalOptions.stackTraceLimit,this},context:function(t,e,n){return u(t)&&(n=e||[],e=t,t=void 0),this.wrap(t,e).apply(this,n)},wrap:function(t,e,n){function r(){var r=[],o=arguments.length,a=!t||t&&t.deep!==!1;for(n&&u(n)&&n.apply(this,arguments);o--;)r[o]=a?i.wrap(t,arguments[o]):arguments[o];try{return e.apply(this,r)}catch(s){throw i._ignoreNextOnError(),i.captureException(s,t),s}}var i=this;if(l(e)&&!u(t))return t;if(u(t)&&(e=t,t=void 0),!u(e))return e;try{if(e.__raven__)return e}catch(o){return e}if(e.__raven_wrapper__)return e.__raven_wrapper__;for(var a in e)h(e,a)&&(r[a]=e[a]);return r.prototype=e.prototype,e.__raven_wrapper__=r,r.__raven__=!0,r.__inner__=e,r},uninstall:function(){return o.report.uninstall(),this._restoreBuiltIns(),Error.stackTraceLimit=this._originalErrorStackTraceLimit,this._isRavenInstalled=!1,this},captureException:function(t,e){if(!c(t))return this.captureMessage(t,e);this._lastCapturedException=t;try{var n=o.computeStackTrace(t);this._handleStackInfo(n,e)}catch(r){if(t!==r)throw r}return this},captureMessage:function(t,e){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(t))return this._send(v({message:t+""},e)),this},captureBreadcrumb:function(t){var e=v({timestamp:r()/1e3},t);this._breadcrumbs.push(e),this._breadcrumbs.length>this._breadcrumbLimit&&this._breadcrumbs.shift()},addPlugin:function(t){var e=Array.prototype.slice.call(arguments,1);return this._plugins.push([t,e]),this._isRavenInstalled&&this._drainPlugins(),this},setUserContext:function(t){return this._globalContext.user=t,this},setExtraContext:function(t){return this._mergeContext("extra",t),this},setTagsContext:function(t){return this._mergeContext("tags",t),this},clearContext:function(){return this._globalContext={},this},getContext:function(){return JSON.parse(JSON.stringify(this._globalContext))},setRelease:function(t){return this._globalOptions.release=t,this},setDataCallback:function(t){return this._globalOptions.dataCallback=t,this},setShouldSendCallback:function(t){return this._globalOptions.shouldSendCallback=t,this},setTransport:function(t){return this._globalOptions.transport=t,this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){return!!this._hasJSON&&(!!this._globalServer||(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this._logDebug("error","Error: Raven has not been configured.")),!1))},afterLoad:function(){var t=window.RavenConfig;t&&this.config(t.dsn,t.config).install()},showReportDialog:function(t){if(window.document){t=t||{};var e=t.eventId||this.lastEventId();if(!e)throw new a("Missing eventId");var n=t.dsn||this._dsn;if(!n)throw new a("Missing DSN");var r=encodeURIComponent,i="";i+="?eventId="+r(e),i+="&dsn="+r(n);var o=t.user||this._globalContext.user;
o&&(o.name&&(i+="&name="+r(o.name)),o.email&&(i+="&email="+r(o.email)));var s=this._getGlobalServer(this._parseDSN(n)),u=document.createElement("script");u.async=!0,u.src=s+"/api/embed/error-page/"+i,(document.head||document.body).appendChild(u)}},_ignoreNextOnError:function(){var t=this;this._ignoreOnError+=1,setTimeout(function(){t._ignoreOnError-=1})},_triggerEvent:function(t,e){var n,r;if(this._hasDocument){e=e||{},t="raven"+t.substr(0,1).toUpperCase()+t.substr(1),document.createEvent?(n=document.createEvent("HTMLEvents"),n.initEvent(t,!0,!0)):(n=document.createEventObject(),n.eventType=t);for(r in e)h(e,r)&&(n[r]=e[r]);if(document.createEvent)document.dispatchEvent(n);else try{document.fireEvent("on"+n.eventType.toLowerCase(),n)}catch(i){}}},_breadcrumbEventHandler:function(t){var e=this;return function(n){if(e._keypressTimeout=null,e._lastCapturedEvent!==n){e._lastCapturedEvent=n;var r,i=n.target;try{r=_(i)}catch(o){r="<unknown>"}e.captureBreadcrumb({category:"ui."+t,message:r})}}},_keypressEventHandler:function(){var t=this,e=1e3;return function(n){var r=n.target,i=r&&r.tagName;if(i&&("INPUT"===i||"TEXTAREA"===i)){var o=t._keypressTimeout;o||t._breadcrumbEventHandler("input")(n),clearTimeout(o),t._keypressTimeout=setTimeout(function(){t._keypressTimeout=null},e)}}},_captureUrlChange:function(t,e){var n=b(this._location.href),r=b(e),i=b(t);this._lastHref=e,n.protocol===r.protocol&&n.host===r.host&&(e=r.relative),n.protocol===i.protocol&&n.host===i.host&&(t=i.relative),this.captureBreadcrumb({category:"navigation",data:{to:e,from:t}})},_wrapBuiltIns:function(){function t(t,e,n,r){var o=t[e];t[e]=n(o),r||i._wrappedBuiltIns.push([t,e,o])}function e(t){return function(e,n){for(var r=new Array(arguments.length),o=0;o<r.length;++o)r[o]=arguments[o];var a=r[0];return u(a)&&(r[0]=i.wrap(a)),t.apply?t.apply(this,r):t(r[0],r[1])}}function n(e){var n=window[e]&&window[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(t(n,"addEventListener",function(t){return function(n,r,o,a){try{r&&r.handleEvent&&(r.handleEvent=i.wrap(r.handleEvent))}catch(s){}var u;return"EventTarget"!==e&&"Node"!==e||("click"===n?u=i._breadcrumbEventHandler(n):"keypress"===n&&(u=i._keypressEventHandler())),t.call(this,n,i.wrap(r,void 0,u),o,a)}}),t(n,"removeEventListener",function(t){return function(e,n,r,i){return n=n&&(n.__raven_wrapper__?n.__raven_wrapper__:n),t.call(this,e,n,r,i)}}))}function r(e,n){e in n&&u(n[e])&&t(n,e,function(t){return i.wrap(t)},!0)}var i=this;t(window,"setTimeout",e),t(window,"setInterval",e),window.requestAnimationFrame&&t(window,"requestAnimationFrame",function(t){return function(e){return t(i.wrap(e))}}),this._hasDocument&&(document.addEventListener("click",i._breadcrumbEventHandler("click")),document.addEventListener("keypress",i._keypressEventHandler()));for(var o=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],a=0;a<o.length;a++)n(o[a]);if("XMLHttpRequest"in window){var s=XMLHttpRequest.prototype;t(s,"open",function(t){return function(e,n){return w(n)&&n.indexOf(i._globalKey)===-1&&(this.__raven_xhr={method:e,url:n,status_code:null}),t.apply(this,arguments)}}),t(s,"send",function(e){return function(n){function o(){if(a.__raven_xhr&&(1===a.readyState||4===a.readyState)){try{a.__raven_xhr.status_code=a.status}catch(t){}i.captureBreadcrumb({type:"http",category:"xhr",data:a.__raven_xhr})}}for(var a=this,s=["onload","onerror","onprogress"],l=0;l<s.length;l++)r(s[l],a);return"onreadystatechange"in a&&u(a.onreadystatechange)?t(a,"onreadystatechange",function(t){return i.wrap(t,void 0,o)},!0):a.onreadystatechange=o,e.apply(this,arguments)}})}if("history"in window&&history.pushState){var l=window.onpopstate;window.onpopstate=function(){var t=i._location.href;if(i._captureUrlChange(i._lastHref,t),l)return l.apply(this,arguments)},t(history,"pushState",function(t){return function(){var e=arguments.length>2?arguments[2]:void 0;return e&&i._captureUrlChange(i._lastHref,e+""),t.apply(this,arguments)}})}var c=function(t,e){i.captureBreadcrumb({message:t,level:e.level,category:"console"})};"console"in window&&console.log&&d(["debug","info","warn","error","log"],function(t,e){x(console,e,c)});var f=window.jQuery||window.$;f&&f.fn&&f.fn.ready&&t(f.fn,"ready",function(t){return function(e){return t.call(this,i.wrap(e))}})},_restoreBuiltIns:function(){for(var t;this._wrappedBuiltIns.length;){t=this._wrappedBuiltIns.shift();var e=t[0],n=t[1],r=t[2];e[n]=r}},_drainPlugins:function(){var t=this;d(this._plugins,function(e,n){var r=n[0],i=n[1];r.apply(t,[t].concat(i))})},_parseDSN:function(t){var e=k.exec(t),n={},r=7;try{for(;r--;)n[$[r]]=e[r]||""}catch(i){throw new a("Invalid DSN: "+t)}if(n.pass&&!this._globalOptions.allowSecretKey)throw new a("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return n},_getGlobalServer:function(t){var e="//"+t.host+(t.port?":"+t.port:"");return t.protocol&&(e=t.protocol+":"+e),e},_handleOnErrorStackInfo:function(){this._ignoreOnError||this._handleStackInfo.apply(this,arguments)},_handleStackInfo:function(t,e){var n=this,r=[];t.stack&&t.stack.length&&d(t.stack,function(t,e){var i=n._normalizeFrame(e);i&&r.push(i)}),this._triggerEvent("handle",{stackInfo:t,options:e}),this._processException(t.name,t.message,t.url,t.lineno,r.slice(0,this._globalOptions.stackTraceLimit),e)},_normalizeFrame:function(t){if(t.url){var e,n={filename:t.url,lineno:t.line,colno:t.column,"function":t.func||"?"},r=this._extractContextFromFrame(t);if(r){var i=["pre_context","context_line","post_context"];for(e=3;e--;)n[i[e]]=r[e]}return n.in_app=!(this._globalOptions.includePaths.test&&!this._globalOptions.includePaths.test(n.filename)||/(Raven|TraceKit)\./.test(n["function"])||/raven\.(min\.)?js$/.test(n.filename)),n}},_extractContextFromFrame:function(t){if(t.context&&this._globalOptions.fetchContext){for(var e=t.context,n=~~(e.length/2),r=e.length,i=!1;r--;)if(e[r].length>300){i=!0;break}if(i){if(l(t.column))return;return[[],e[n].substr(t.column,50),[]]}return[e.slice(0,n),e[n],e.slice(n+1)]}},_processException:function(t,e,n,r,i,o){var a,s;if((!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e))&&(e+="",e=m(e,this._globalOptions.maxMessageLength),s=(t?t+": ":"")+e,s=m(s,this._globalOptions.maxMessageLength),i&&i.length?(n=i[0].filename||n,i.reverse(),a={frames:i}):n&&(a={frames:[{filename:n,lineno:r,in_app:!0}]}),(!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(n))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(n)))){var u=v({exception:{values:[{type:t,value:e,stacktrace:a}]},culprit:n,message:s},o);this._send(u)}},_trimPacket:function(t){var e=this._globalOptions.maxMessageLength;if(t.message=m(t.message,e),t.exception){var n=t.exception.values[0];n.value=m(n.value,e)}return t},_getHttpData:function(){if(this._hasDocument&&document.location&&document.location.href){var t={headers:{"User-Agent":navigator.userAgent}};return t.url=document.location.href,document.referrer&&(t.headers.Referer=document.referrer),t}},_send:function(t){var e=this,n=this._globalOptions,i={project:this._globalProject,logger:n.logger,platform:"javascript"},o=this._getHttpData();if(o&&(i.request=o),t=v(i,t),t.tags=v(v({},this._globalContext.tags),t.tags),t.extra=v(v({},this._globalContext.extra),t.extra),t.extra["session:duration"]=r()-this._startTime,this._breadcrumbs&&this._breadcrumbs.length>0&&(t.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)}),f(t.tags)&&delete t.tags,this._globalContext.user&&(t.user=this._globalContext.user),n.release&&(t.release=n.release),n.serverName&&(t.server_name=n.serverName),u(n.dataCallback)&&(t=n.dataCallback(t)||t),t&&!f(t)&&(!u(n.shouldSendCallback)||n.shouldSendCallback(t))&&(this._lastEventId=t.event_id||(t.event_id=y()),t=this._trimPacket(t),this._logDebug("debug","Raven about to send:",t),this.isSetup())){var a={sentry_version:"7",sentry_client:"raven-js/"+this.VERSION,sentry_key:this._globalKey};this._globalSecret&&(a.sentry_secret=this._globalSecret),this.captureBreadcrumb({category:"sentry",message:t.message,event_id:t.event_id});var s=this._globalEndpoint;(n.transport||this._makeRequest).call(this,{url:s,auth:a,data:t,options:n,onSuccess:function(){e._triggerEvent("success",{data:t,src:s})},onError:function(){e._triggerEvent("failure",{data:t,src:s})}})}},_makeRequest:function(t){function e(){200===n.status?t.onSuccess&&t.onSuccess():t.onError&&t.onError()}var n=new XMLHttpRequest,r="withCredentials"in n||"undefined"!=typeof XDomainRequest;if(r){var i=t.url;"withCredentials"in n?n.onreadystatechange=function(){4===n.readyState&&e()}:(n=new XDomainRequest,i=i.replace(/^https?:/,""),n.onload=e),n.open("POST",i+"?"+g(t.auth)),n.send(JSON.stringify(t.data))}},_newImage:function(){return document.createElement("img")},_logDebug:function(t){this._originalConsoleMethods[t]&&this.debug&&Function.prototype.apply.call(this._originalConsoleMethods[t],this._originalConsole,[].slice.call(arguments,1))},_mergeContext:function(t,e){l(e)?delete this._globalContext[t]:this._globalContext[t]=v(this._globalContext[t]||{},e)}},i.prototype.setUser=i.prototype.setUserContext,i.prototype.setReleaseContext=i.prototype.setRelease,e.exports=i},{1:1,2:2,5:5,6:6}],4:[function(t,e,n){"use strict";var r=t(3),i=window.Raven,o=new r;o.noConflict=function(){return window.Raven=i,o},o.afterLoad(),e.exports=o},{3:3}],5:[function(t,e,n){"use strict";function r(t){return void 0===t}function i(t){return"function"==typeof t}function o(t){return"[object String]"===_.toString.call(t)}function a(t){return"object"==typeof t&&null!==t}function s(t){for(var e in t)return!1;return!0}function u(t){var e=_.toString.call(t);return a(t)&&"[object Error]"===e||"[object Exception]"===e||t instanceof Error}function l(t,e){var n,i;if(r(t.length))for(n in t)h(t,n)&&e.call(null,n,t[n]);else if(i=t.length)for(n=0;n<i;n++)e.call(null,n,t[n])}function c(t,e){return e?(l(e,function(e,n){t[e]=n}),t):t}function f(t,e){return!e||t.length<=e?t:t.substr(0,e)+"…"}function h(t,e){return _.hasOwnProperty.call(t,e)}function p(t){for(var e,n=[],r=0,i=t.length;r<i;r++)e=t[r],o(e)?n.push(e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):e&&e.source&&n.push(e.source);return new RegExp(n.join("|"),"i")}function d(t){var e=[];return l(t,function(t,n){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))}),e.join("&")}function v(t){var e=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",r=e[8]||"";return{protocol:e[2],host:e[4],path:e[5],relative:e[5]+n+r}}function m(){var t=window.crypto||window.msCrypto;if(!r(t)&&t.getRandomValues){var e=new Uint16Array(8);t.getRandomValues(e),e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;var n=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return n(e[0])+n(e[1])+n(e[2])+n(e[3])+n(e[4])+n(e[5])+n(e[6])+n(e[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0,n="x"===t?e:3&e|8;return n.toString(16)})}function g(t){for(var e,n=5,r=80,i=[],o=0,a=0,s=" > ",u=s.length;t&&o++<n&&(e=y(t),!("html"===e||o>1&&a+i.length*u+e.length>=r));)i.push(e),a+=e.length,t=t.parentNode;return i.reverse().join(s)}function y(t){var e,n,r,i,a,s=[];if(!t||!t.tagName)return"";if(s.push(t.tagName.toLowerCase()),t.id&&s.push("#"+t.id),e=t.className,e&&o(e))for(n=e.split(" "),a=0;a<n.length;a++)s.push("."+n[a]);var u=["type","name","title","alt"];for(a=0;a<u.length;a++)r=u[a],i=t.getAttribute(r),i&&s.push("["+r+'="'+i+'"]');return s.join("")}var _=Object.prototype;e.exports={isUndefined:r,isFunction:i,isString:o,isObject:a,isEmptyObject:s,isError:u,each:l,objectMerge:c,truncate:f,hasKey:h,joinRegExp:p,urlencode:d,uuid4:m,htmlTreeAsString:g,htmlElementAsString:y,parseUrl:v}},{}],6:[function(t,e,n){"use strict";function r(){return"undefined"==typeof document?"":document.location.href}var i=t(5),o=i.hasKey,a=i.isString,s=i.isUndefined,u={remoteFetching:!1,collectWindowErrors:!0,linesOfContext:7,debug:!1},l=[].slice,c="?",f=/^(?:Uncaught (?:exception: )?)?((?:Eval|Internal|Range|Reference|Syntax|Type|URI)Error): ?(.*)$/;u.report=function(){function t(t){h(),y.push(t)}function e(t){for(var e=y.length-1;e>=0;--e)y[e]===t&&y.splice(e,1)}function n(){p(),y=[]}function i(t,e){var n=null;if(!e||u.collectWindowErrors){for(var r in y)if(o(y,r))try{y[r].apply(null,[t].concat(l.call(arguments,2)))}catch(i){n=i}if(n)throw n}}function s(t,e,n,o,s){var l=null;if(w)u.computeStackTrace.augmentStackTraceWithInitialElement(w,e,n,t),d();else if(s)l=u.computeStackTrace(s),i(l,!0);else{var h,p={url:e,line:n,column:o},v=void 0,g=t;if(a(t)){var h=t.match(f);h&&(v=h[1],g=h[2])}p.func=c,p.context=null,l={name:v,message:g,url:r(),stack:[p]},i(l,!0)}return!!m&&m.apply(this,arguments)}function h(){g||(m=window.onerror,window.onerror=s,g=!0)}function p(){g&&(window.onerror=m,g=!1,m=void 0)}function d(){var t=w,e=_;_=null,w=null,b=null,i.apply(null,[t,!1].concat(e))}function v(t,e){var n=l.call(arguments,1);if(w){if(b===t)return;d()}var r=u.computeStackTrace(t);if(w=r,b=t,_=n,window.setTimeout(function(){b===t&&d()},r.incomplete?2e3:0),e!==!1)throw t}var m,g,y=[],_=null,b=null,w=null;return v.subscribe=t,v.unsubscribe=e,v.uninstall=n,v}(),u.computeStackTrace=function(){function t(t){if(!s(t.stack)&&t.stack){for(var e,n,i=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|<anonymous>).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|\[native).*?)(?::(\d+))?(?::(\d+))?\s*$/i,a=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:ms-appx|https?|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,u=t.stack.split("\n"),l=[],f=(/^(.*) is undefined$/.exec(t.message),0),h=u.length;f<h;++f){if(e=i.exec(u[f])){var p=e[2]&&e[2].indexOf("native")!==-1;n={url:p?null:e[2],func:e[1]||c,args:p?[e[2]]:[],line:e[3]?+e[3]:null,column:e[4]?+e[4]:null}}else if(e=a.exec(u[f]))n={url:e[2],func:e[1]||c,args:[],line:+e[3],column:e[4]?+e[4]:null};else{if(!(e=o.exec(u[f])))continue;n={url:e[3],func:e[1]||c,args:e[2]?e[2].split(","):[],line:e[4]?+e[4]:null,column:e[5]?+e[5]:null}}!n.func&&n.line&&(n.func=c),n.line&&(n.context=null),l.push(n)}return l.length?(l[0].column||s(t.columnNumber)||(l[0].column=t.columnNumber+1),{name:t.name,message:t.message,url:r(),stack:l}):null}}function e(t){var e=t.stacktrace;if(!s(t.stacktrace)&&t.stacktrace){for(var n,i=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,o=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,a=e.split("\n"),u=[],l=0;l<a.length;l+=2){var f=null;(n=i.exec(a[l]))?f={url:n[2],line:+n[1],column:null,func:n[3],args:[]}:(n=o.exec(a[l]))&&(f={url:n[6],line:+n[1],column:+n[2],func:n[3]||n[4],args:n[5]?n[5].split(","):[]}),f&&(!f.func&&f.line&&(f.func=c),f.context=[a[l+1]],u.push(f))}return u.length?{name:t.name,message:t.message,url:r(),stack:u}:null}}function n(t){var e=t.message.split("\n");if(e.length<4)return null;for(var n,i=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,o=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,a=/^\s*Line (\d+) of function script\s*$/i,s=[],u=(document.getElementsByTagName("script"),2);u<e.length;u+=2){var l=null;if(n=i.exec(e[u]))l={url:n[2],func:n[3],args:[],line:+n[1],column:null};else if(n=o.exec(e[u])){l={url:n[3],func:n[4],args:[],line:+n[1],column:null};+n[1]}else if(n=a.exec(e[u])){var f=window.location.href.replace(/#.*$/,"");l={url:f,func:"",args:[],line:n[1],column:null}}l&&(l.func||(l.func=c),l.context=[e[u+1]],s.push(l))}return s.length?{name:t.name,message:e[0],url:r(),stack:s}:null}function i(t,e,n,r){var i={url:e,line:n};if(i.url&&i.line){if(t.incomplete=!1,i.func||(i.func=c),t.stack.length>0&&t.stack[0].url===i.url){if(t.stack[0].line===i.line)return!1;if(!t.stack[0].line&&t.stack[0].func===i.func)return t.stack[0].line=i.line,t.stack[0].context=i.context,!1}return t.stack.unshift(i),t.partial=!0,!0}return t.incomplete=!0,!1}function o(t,e){for(var n,s,l=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,f=[],h={},p=!1,d=o.caller;d&&!p;d=d.caller)if(d!==a&&d!==u.report){if(s={url:null,func:c,line:null,column:null},d.name?s.func=d.name:(n=l.exec(d.toString()))&&(s.func=n[1]),"undefined"==typeof s.func)try{s.func=n.input.substring(0,n.input.indexOf("{"))}catch(v){}h[""+d]?p=!0:h[""+d]=!0,f.push(s)}e&&f.splice(0,e);var m={name:t.name,message:t.message,url:r(),stack:f};return i(m,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),m}function a(i,a){var s=null;a=null==a?0:+a;try{if(s=e(i))return s}catch(l){if(u.debug)throw l}try{if(s=t(i))return s}catch(l){if(u.debug)throw l}try{if(s=n(i))return s}catch(l){if(u.debug)throw l}try{if(s=o(i,a+1))return s}catch(l){if(u.debug)throw l}return{name:i.name,message:i.message,url:r()}}return a.augmentStackTraceWithInitialElement=i,a.computeStackTraceFromStackProp=t,a}(),e.exports=u},{5:5}]},{},[4])(4)}),function(t,e){var n=function(e){(t.execScript||function(e){t.eval.call(t,e)})(e)},r=function(t,e){return t instanceof(e||Array)},i=document,o="getElementsByTagName",a="length",s="readyState",u="onreadystatechange",l=i[o]("script"),c=l[l[a]-1],f=c.innerHTML.replace(/^\s+|\s+$/g,"");if(!t.ljs){var h=c.src.match(/checkLoaded/)?1:0,p=i[o]("head")[0]||i.documentElement,d=function(t){var e={};return e.u=t.replace(/#(=)?([^#]*)?/g,function(t,n,r){return e[n?"f":"i"]=r,""}),e},v=function(t,e,n){var r,o=i.createElement(t);n&&(o[s]?o[u]=function(){"loaded"!==o[s]&&"complete"!==o[s]||(o[u]=null,n())}:o.onload=n);for(r in e)e[r]&&(o[r]=e[r]);p.appendChild(o)},m=function(t,e){if(this.aliases&&this.aliases[t]){var n=this.aliases[t].slice(0);return r(n)||(n=[n]),e&&n.push(e),this.load.apply(this,n)}if(r(t)){for(var i=t[a];i--;)this.load(t[i]);return e&&t.push(e),this.load.apply(this,t)}return t.match(/\.css\b/)?this.loadcss(t,e):this.loadjs(t,e)},g={},y={aliases:{},loadjs:function(t,n){var r=d(t);return t=r.u,g[t]===!0?(n&&n(),this):g[t]!==e?(n&&(g[t]=function(t,e){return function(){t&&t(),e&&e()}}(g[t],n)),this):(g[t]=function(e){return function(){g[t]=!0,e&&e()}}(n),n=function(){g[t]()},v("script",{type:"text/javascript",src:t,id:r.i,onerror:function(t){if(r.f){var e=t.currentTarget;e.parentNode.removeChild(e),v("script",{type:"text/javascript",src:r.f,id:r.i},n)}}},n),this)},loadcss:function(t,e){var n=d(t);return t=n.u,g[t]||v("link",{type:"text/css",rel:"stylesheet",href:t,id:n.i}),g[t]=!0,e&&e(),this},load:function(){var t=arguments,n=t[a];return 1===n&&r(t[0],Function)?(t[0](),this):(m.call(this,t[0],n<=1?e:function(){y.load.apply(y,[].slice.call(t,1))}),this)},addAliases:function(t){for(var e in t)this.aliases[e]=r(t[e])?t[e].slice(0):t[e];return this}};if(h){var _,b,w,x;for(_=0,b=l[a];_<b;_++)(x=l[_].getAttribute("src"))&&(g[x.replace(/#.*$/,"")]=!0);for(w=i[o]("link"),_=0,b=w[a];_<b;_++)("stylesheet"===w[_].rel||"text/css"===w[_].type)&&(g[w[_].getAttribute("href").replace(/#.*$/,"")]=!0)}t.ljs=y}f&&n(f)}(window),function(t,e){if("function"==typeof define&&define.amd)define(["module","exports","angular"],e);else if("undefined"!=typeof exports)e(module,exports,require("angular"));else{var n={exports:{}};e(n,n.exports,t.angular),t.infiniteScroll=n.exports}}(this,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(n),o="infinite-scroll";i["default"].module(o,[]).value("THROTTLE_MILLISECONDS",null).directive("infiniteScroll",["$rootScope","$window","$interval","THROTTLE_MILLISECONDS",function(t,e,n,r){return{scope:{infiniteScroll:"&",infiniteScrollContainer:"=",infiniteScrollDistance:"=",infiniteScrollDisabled:"=",infiniteScrollUseDocumentBottom:"=",infiniteScrollListenForEvent:"@"},link:function(o,a,s){function u(t){var e=t[0]||t;return isNaN(e.offsetHeight)?e.document.documentElement.clientHeight:e.offsetHeight}function l(t){var e=t[0]||t;return isNaN(window.pageYOffset)?e.document.documentElement.scrollTop:e.ownerDocument.defaultView.pageYOffset}function c(t){if(t[0].getBoundingClientRect&&!t.css("none"))return t[0].getBoundingClientRect().top+l(t)}function f(){var e=void 0,r=void 0;if(k===b)e=u(k)+l(k[0].document.documentElement),r=c(a)+u(a);else{e=u(k);var i=0;void 0!==c(k)&&(i=c(k)),r=c(a)-i+u(a)}S&&(r=u((a[0].ownerDocument||a[0].document).documentElement));var s=r-e,f=s<=u(k)*w+1;f?($=!0,x&&(o.$$phase||t.$$phase?o.infiniteScroll():o.$apply(o.infiniteScroll))):(T&&n.cancel(T),$=!1)}function h(t,e){function r(){return a=(new Date).getTime(),n.cancel(o),o=null,t.call()}function i(){var i=(new Date).getTime(),s=e-(i-a);s<=0?(n.cancel(o),o=null,a=i,t.call()):o||(o=n(r,s,1))}var o=null,a=0;return i}function p(){k.unbind("scroll",A),null!=E&&(E(),E=null),T&&n.cancel(T)}function d(t){w=parseFloat(t)||0}function v(t){x=!t,x&&$&&($=!1,A())}function m(t){S=t}function g(t){null!=k&&k.unbind("scroll",A),k=t,null!=t&&k.bind("scroll",A)}function y(t){if(null!=t&&0!==t.length){var e=void 0;if(e=t.nodeType&&1===t.nodeType?i["default"].element(t):"function"==typeof t.append?i["default"].element(t[t.length-1]):"string"==typeof t?i["default"].element(document.querySelector(t)):t,null==e)throw new Error("invalid infinite-scroll-container attribute.");g(e)}}function _(){return C&&A(),n.cancel(T)}var b=i["default"].element(e),w=null,x=null,$=null,k=null,C=!0,S=!1,E=null,T=!1,A=null!=r?h(f,r):f;return o.$on("$destroy",p),o.$watch("infiniteScrollDistance",d),d(o.infiniteScrollDistance),o.$watch("infiniteScrollDisabled",v),v(o.infiniteScrollDisabled),o.$watch("infiniteScrollUseDocumentBottom",m),m(o.infiniteScrollUseDocumentBottom),g(b),o.infiniteScrollListenForEvent&&(E=t.$on(o.infiniteScrollListenForEvent,A)),o.$watch("infiniteScrollContainer",y),y(o.infiniteScrollContainer||[]),null!=s.infiniteScrollParent&&g(i["default"].element(a.parent())),null!=s.infiniteScrollImmediateCheck&&(C=o.$eval(s.infiniteScrollImmediateCheck)),T=n(_)}}}]),e["default"]=o,t.exports=e["default"]}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Immutable=e()}(this,function(){"use strict";function t(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function e(t){return o(t)?t:A(t)}function n(t){return a(t)?t:D(t)}function r(t){return s(t)?t:F(t)}function i(t){return o(t)&&!u(t)?t:O(t)}function o(t){return!(!t||!t[ln])}function a(t){return!(!t||!t[cn])}function s(t){return!(!t||!t[fn])}function u(t){return a(t)||s(t)}function l(t){return!(!t||!t[hn])}function c(t){return t.value=!1,t}function f(t){t&&(t.value=!0)}function h(){}function p(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),i=0;i<n;i++)r[i]=t[i+e];return r}function d(t){return void 0===t.size&&(t.size=t.__iterate(m)),t.size}function v(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?d(t)+e:e}function m(){return!0}function g(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function y(t,e){return b(t,e,0)}function _(t,e){return b(t,e,e)}function b(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}function w(t){this.next=t}function x(t,e,n,r){var i=0===t?e:1===t?n:[e,n];return r?r.value=i:r={value:i,done:!1},r}function $(){return{value:void 0,done:!0}}function k(t){return!!E(t)}function C(t){return t&&"function"==typeof t.next}function S(t){var e=E(t);return e&&e.call(t)}function E(t){var e=t&&($n&&t[$n]||t[kn]);if("function"==typeof e)return e}function T(t){return t&&"number"==typeof t.length}function A(t){return null===t||void 0===t?R():o(t)?t.toSeq():q(t)}function D(t){return null===t||void 0===t?R().toKeyedSeq():o(t)?a(t)?t.toSeq():t.fromEntrySeq():L(t)}function F(t){return null===t||void 0===t?R():o(t)?a(t)?t.entrySeq():t.toIndexedSeq():z(t)}function O(t){return(null===t||void 0===t?R():o(t)?a(t)?t.entrySeq():t:z(t)).toSetSeq()}function j(t){this._array=t,this.size=t.length}function M(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function I(t){this._iterable=t,this.size=t.length||t.size}function P(t){this._iterator=t,this._iteratorCache=[]}function N(t){return!(!t||!t[Sn])}function R(){return En||(En=new j([]))}function L(t){var e=Array.isArray(t)?new j(t).fromEntrySeq():C(t)?new P(t).fromEntrySeq():k(t)?new I(t).fromEntrySeq():"object"==typeof t?new M(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function z(t){var e=H(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function q(t){var e=H(t)||"object"==typeof t&&new M(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function H(t){return T(t)?new j(t):C(t)?new P(t):k(t)?new I(t):void 0}function U(t,e,n,r){var i=t._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(e(s[1],r?s[0]:a,t)===!1)return a+1}return a}return t.__iterateUncached(e,n)}function W(t,e,n,r){var i=t._cache;if(i){var o=i.length-1,a=0;return new w(function(){var t=i[n?o-a:a];return a++>o?$():x(e,r?t[0]:a-1,t[1])})}return t.__iteratorUncached(e,n)}function V(t,e){return e?B(e,t,"",{"":t}):Y(t)}function B(t,e,n,r){return Array.isArray(e)?t.call(r,n,F(e).map(function(n,r){return B(t,n,r,e)})):K(e)?t.call(r,n,D(e).map(function(n,r){return B(t,n,r,e)})):e}function Y(t){return Array.isArray(t)?F(t).map(Y).toList():K(t)?D(t).map(Y).toMap():t}function K(t){return t&&(t.constructor===Object||void 0===t.constructor)}function G(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if(t=t.valueOf(),e=e.valueOf(),t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function X(t,e){if(t===e)return!0;if(!o(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||a(t)!==a(e)||s(t)!==s(e)||l(t)!==l(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!u(t);if(l(t)){var r=t.entries();return e.every(function(t,e){var i=r.next().value;return i&&G(i[1],t)&&(n||G(i[0],e))})&&r.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var c=t;t=e,e=c}var f=!0,h=e.__iterate(function(e,r){if(n?!t.has(e):i?!G(e,t.get(r,gn)):!G(t.get(r,gn),e))return f=!1,!1});return f&&t.size===h}function J(t,e){if(!(this instanceof J))return new J(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Tn)return Tn;Tn=this}}function Q(t,e){if(!t)throw new Error(e)}function Z(t,e,n){if(!(this instanceof Z))return new Z(t,e,n);if(Q(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(An)return An;An=this}}function tt(){throw TypeError("Abstract")}function et(){}function nt(){}function rt(){}function it(t){return t>>>1&1073741824|3221225471&t}function ot(t){if(t===!1||null===t||void 0===t)return 0;if("function"==typeof t.valueOf&&(t=t.valueOf(),t===!1||null===t||void 0===t))return 0;if(t===!0)return 1;var e=typeof t;if("number"===e){if(t!==t||t===1/0)return 0;var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)t/=4294967295,n^=t;return it(n)}if("string"===e)return t.length>Nn?at(t):st(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return ut(t);if("function"==typeof t.toString)return st(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function at(t){var e=zn[t];return void 0===e&&(e=st(t),Ln===Rn&&(Ln=0,zn={}),Ln++,zn[t]=e),e}function st(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return it(e)}function ut(t){var e;if(Mn&&(e=Dn.get(t),void 0!==e))return e;if(e=t[Pn],void 0!==e)return e;if(!jn){if(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Pn],void 0!==e)return e;if(e=lt(t),void 0!==e)return e}if(e=++In,1073741824&In&&(In=0),Mn)Dn.set(t,e);else{if(void 0!==On&&On(t)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(jn)Object.defineProperty(t,Pn,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Pn]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Pn]=e}}return e}function lt(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function ct(t){Q(t!==1/0,"Cannot perform this action with an infinite size.")}function ft(t){return null===t||void 0===t?xt():ht(t)&&!l(t)?t:xt().withMutations(function(e){var r=n(t);ct(r.size),r.forEach(function(t,n){return e.set(n,t)})})}function ht(t){return!(!t||!t[qn])}function pt(t,e){this.ownerID=t,this.entries=e}function dt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function vt(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function mt(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function gt(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function yt(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&bt(t._root)}function _t(t,e){return x(t,e[0],e[1])}function bt(t,e){return{node:t,index:0,__prev:e}}function wt(t,e,n,r){var i=Object.create(Hn);return i.size=t,i._root=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function xt(){return Un||(Un=wt(0))}function $t(t,e,n){var r,i;if(t._root){var o=c(yn),a=c(_n);if(r=kt(t._root,t.__ownerID,0,void 0,e,n,o,a),!a.value)return t;i=t.size+(o.value?n===gn?-1:1:0)}else{if(n===gn)return t;i=1,r=new pt(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=i,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?wt(i,r):xt()}function kt(t,e,n,r,i,o,a,s){return t?t.update(e,n,r,i,o,a,s):o===gn?t:(f(s),f(a),new gt(e,r,[i,o]))}function Ct(t){return t.constructor===gt||t.constructor===mt}function St(t,e,n,r,i){if(t.keyHash===r)return new mt(e,r,[t.entry,i]);var o,a=(0===n?t.keyHash:t.keyHash>>>n)&mn,s=(0===n?r:r>>>n)&mn,u=a===s?[St(t,e,n+dn,r,i)]:(o=new gt(e,r,i),a<s?[t,o]:[o,t]);return new dt(e,1<<a|1<<s,u)}function Et(t,e,n,r){t||(t=new h);for(var i=new gt(t,ot(n),[n,r]),o=0;o<e.length;o++){var a=e[o];i=i.update(t,0,void 0,a[0],a[1])}return i}function Tt(t,e,n,r){for(var i=0,o=0,a=new Array(n),s=0,u=1,l=e.length;s<l;s++,u<<=1){var c=e[s];void 0!==c&&s!==r&&(i|=u,a[o++]=c)}return new dt(t,i,a)}function At(t,e,n,r,i){for(var o=0,a=new Array(vn),s=0;0!==n;s++,n>>>=1)a[s]=1&n?e[o++]:void 0;return a[r]=i,new vt(t,o+1,a)}function Dt(t,e,r){for(var i=[],a=0;a<r.length;a++){var s=r[a],u=n(s);o(s)||(u=u.map(function(t){return V(t)})),i.push(u)}return jt(t,e,i)}function Ft(t,e,n){return t&&t.mergeDeep&&o(e)?t.mergeDeep(e):G(t,e)?t:e}function Ot(t){return function(e,n,r){if(e&&e.mergeDeepWith&&o(n))return e.mergeDeepWith(t,n);var i=t(e,n,r);return G(e,i)?e:i}}function jt(t,e,n){return n=n.filter(function(t){return 0!==t.size}),0===n.length?t:0!==t.size||t.__ownerID||1!==n.length?t.withMutations(function(t){for(var r=e?function(n,r){t.update(r,gn,function(t){return t===gn?n:e(t,n,r)})}:function(e,n){t.set(n,e)},i=0;i<n.length;i++)n[i].forEach(r)}):t.constructor(n[0])}function Mt(t,e,n,r){var i=t===gn,o=e.next();if(o.done){var a=i?n:t,s=r(a);return s===a?t:s}Q(i||t&&t.set,"invalid keyPath");
var u=o.value,l=i?gn:t.get(u,gn),c=Mt(l,e,n,r);return c===l?t:c===gn?t.remove(u):(i?xt():t).set(u,c)}function It(t){return t-=t>>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,127&t}function Pt(t,e,n,r){var i=r?t:p(t);return i[e]=n,i}function Nt(t,e,n,r){var i=t.length+1;if(r&&e+1===i)return t[e]=n,t;for(var o=new Array(i),a=0,s=0;s<i;s++)s===e?(o[s]=n,a=-1):o[s]=t[s+a];return o}function Rt(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var i=new Array(r),o=0,a=0;a<r;a++)a===e&&(o=1),i[a]=t[a+o];return i}function Lt(t){var e=Wt();if(null===t||void 0===t)return e;if(zt(t))return t;var n=r(t),i=n.size;return 0===i?e:(ct(i),i>0&&i<vn?Ut(0,i,dn,null,new qt(n.toArray())):e.withMutations(function(t){t.setSize(i),n.forEach(function(e,n){return t.set(n,e)})}))}function zt(t){return!(!t||!t[Yn])}function qt(t,e){this.array=t,this.ownerID=e}function Ht(t,e){function n(t,e,n){return 0===e?r(t,n):i(t,e,n)}function r(t,n){var r=n===s?u&&u.array:t&&t.array,i=n>o?0:o-n,l=a-n;return l>vn&&(l=vn),function(){if(i===l)return Xn;var t=e?--l:i++;return r&&r[t]}}function i(t,r,i){var s,u=t&&t.array,l=i>o?0:o-i>>r,c=(a-i>>r)+1;return c>vn&&(c=vn),function(){for(;;){if(s){var t=s();if(t!==Xn)return t;s=null}if(l===c)return Xn;var o=e?--c:l++;s=n(u&&u[o],r-dn,i+(o<<r))}}}var o=t._origin,a=t._capacity,s=Jt(a),u=t._tail;return n(t._root,t._level,0)}function Ut(t,e,n,r,i,o,a){var s=Object.create(Kn);return s.size=e-t,s._origin=t,s._capacity=e,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function Wt(){return Gn||(Gn=Ut(0,0,dn))}function Vt(t,e,n){if(e=v(t,e),e!==e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?Gt(t,e).set(0,n):Gt(t,0,e+1).set(e,n)});e+=t._origin;var r=t._tail,i=t._root,o=c(_n);return e>=Jt(t._capacity)?r=Bt(r,t.__ownerID,0,e,n,o):i=Bt(i,t.__ownerID,t._level,e,n,o),o.value?t.__ownerID?(t._root=i,t._tail=r,t.__hash=void 0,t.__altered=!0,t):Ut(t._origin,t._capacity,t._level,i,r):t}function Bt(t,e,n,r,i,o){var a=r>>>n&mn,s=t&&a<t.array.length;if(!s&&void 0===i)return t;var u;if(n>0){var l=t&&t.array[a],c=Bt(l,e,n-dn,r,i,o);return c===l?t:(u=Yt(t,e),u.array[a]=c,u)}return s&&t.array[a]===i?t:(f(o),u=Yt(t,e),void 0===i&&a===u.array.length-1?u.array.pop():u.array[a]=i,u)}function Yt(t,e){return e&&t&&e===t.ownerID?t:new qt(t?t.array.slice():[],e)}function Kt(t,e){if(e>=Jt(t._capacity))return t._tail;if(e<1<<t._level+dn){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&mn],r-=dn;return n}}function Gt(t,e,n){void 0!==e&&(e=0|e),void 0!==n&&(n=0|n);var r=t.__ownerID||new h,i=t._origin,o=t._capacity,a=i+e,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return t;if(a>=s)return t.clear();for(var u=t._level,l=t._root,c=0;a+c<0;)l=new qt(l&&l.array.length?[void 0,l]:[],r),u+=dn,c+=1<<u;c&&(a+=c,i+=c,s+=c,o+=c);for(var f=Jt(o),p=Jt(s);p>=1<<u+dn;)l=new qt(l&&l.array.length?[l]:[],r),u+=dn;var d=t._tail,v=p<f?Kt(t,s-1):p>f?new qt([],r):d;if(d&&p>f&&a<o&&d.array.length){l=Yt(l,r);for(var m=l,g=u;g>dn;g-=dn){var y=f>>>g&mn;m=m.array[y]=Yt(m.array[y],r)}m.array[f>>>dn&mn]=d}if(s<o&&(v=v&&v.removeAfter(r,0,s)),a>=p)a-=p,s-=p,u=dn,l=null,v=v&&v.removeBefore(r,0,a);else if(a>i||p<f){for(c=0;l;){var _=a>>>u&mn;if(_!==p>>>u&mn)break;_&&(c+=(1<<u)*_),u-=dn,l=l.array[_]}l&&a>i&&(l=l.removeBefore(r,u,a-c)),l&&p<f&&(l=l.removeAfter(r,u,p-c)),c&&(a-=c,s-=c)}return t.__ownerID?(t.size=s-a,t._origin=a,t._capacity=s,t._level=u,t._root=l,t._tail=v,t.__hash=void 0,t.__altered=!0,t):Ut(a,s,u,l,v)}function Xt(t,e,n){for(var i=[],a=0,s=0;s<n.length;s++){var u=n[s],l=r(u);l.size>a&&(a=l.size),o(u)||(l=l.map(function(t){return V(t)})),i.push(l)}return a>t.size&&(t=t.setSize(a)),jt(t,e,i)}function Jt(t){return t<vn?0:t-1>>>dn<<dn}function Qt(t){return null===t||void 0===t?ee():Zt(t)?t:ee().withMutations(function(e){var r=n(t);ct(r.size),r.forEach(function(t,n){return e.set(n,t)})})}function Zt(t){return ht(t)&&l(t)}function te(t,e,n,r){var i=Object.create(Qt.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=n,i.__hash=r,i}function ee(){return Jn||(Jn=te(xt(),Wt()))}function ne(t,e,n){var r,i,o=t._map,a=t._list,s=o.get(e),u=void 0!==s;if(n===gn){if(!u)return t;a.size>=vn&&a.size>=2*o.size?(i=a.filter(function(t,e){return void 0!==t&&s!==e}),r=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=i.__ownerID=t.__ownerID)):(r=o.remove(e),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return t;r=o,i=a.set(s,[e,n])}else r=o.set(e,a.size),i=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=i,t.__hash=void 0,t):te(r,i)}function re(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function ie(t){this._iter=t,this.size=t.size}function oe(t){this._iter=t,this.size=t.size}function ae(t){this._iter=t,this.size=t.size}function se(t){var e=Te(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Ae,e.__iterateUncached=function(e,n){var r=this;return t.__iterate(function(t,n){return e(n,t,r)!==!1},n)},e.__iteratorUncached=function(e,n){if(e===xn){var r=t.__iterator(e,n);return new w(function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===wn?bn:wn,n)},e}function ue(t,e,n){var r=Te(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,i){var o=t.get(r,gn);return o===gn?i:e.call(n,o,r,t)},r.__iterateUncached=function(r,i){var o=this;return t.__iterate(function(t,i,a){return r(e.call(n,t,i,a),i,o)!==!1},i)},r.__iteratorUncached=function(r,i){var o=t.__iterator(xn,i);return new w(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return x(r,s,e.call(n,a[1],s,t),i)})},r}function le(t,e){var n=Te(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=se(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=Ae,n.__iterate=function(e,n){var r=this;return t.__iterate(function(t,n){return e(t,n,r)},!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function ce(t,e,n,r){var i=Te(t);return r&&(i.has=function(r){var i=t.get(r,gn);return i!==gn&&!!e.call(n,i,r,t)},i.get=function(r,i){var o=t.get(r,gn);return o!==gn&&e.call(n,o,r,t)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return t.__iterate(function(t,o,u){if(e.call(n,t,o,u))return s++,i(t,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=t.__iterator(xn,o),s=0;return new w(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,l=u[0],c=u[1];if(e.call(n,c,l,t))return x(i,r?l:s++,c,o)}})},i}function fe(t,e,n){var r=ft().asMutable();return t.__iterate(function(i,o){r.update(e.call(n,i,o,t),0,function(t){return t+1})}),r.asImmutable()}function he(t,e,n){var r=a(t),i=(l(t)?Qt():ft()).asMutable();t.__iterate(function(o,a){i.update(e.call(n,o,a,t),function(t){return t=t||[],t.push(r?[a,o]:o),t})});var o=Ee(t);return i.map(function(e){return ke(t,o(e))})}function pe(t,e,n,r){var i=t.size;if(void 0!==e&&(e=0|e),void 0!==n&&(n=n===1/0?i:0|n),g(e,n,i))return t;var o=y(e,i),a=_(n,i);if(o!==o||a!==a)return pe(t.toSeq().cacheResult(),e,n,r);var s,u=a-o;u===u&&(s=u<0?0:u);var l=Te(t);return l.size=0===s?s:t.size&&s||void 0,!r&&N(t)&&s>=0&&(l.get=function(e,n){return e=v(this,e),e>=0&&e<s?t.get(e+o,n):n}),l.__iterateUncached=function(e,n){var i=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(e,n);var a=0,u=!0,l=0;return t.__iterate(function(t,n){if(!u||!(u=a++<o))return l++,e(t,r?n:l-1,i)!==!1&&l!==s}),l},l.__iteratorUncached=function(e,n){if(0!==s&&n)return this.cacheResult().__iterator(e,n);var i=0!==s&&t.__iterator(e,n),a=0,u=0;return new w(function(){for(;a++<o;)i.next();if(++u>s)return $();var t=i.next();return r||e===wn?t:e===bn?x(e,u-1,void 0,t):x(e,u-1,t.value[1],t)})},l}function de(t,e,n){var r=Te(t);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return t.__iterate(function(t,i,s){return e.call(n,t,i,s)&&++a&&r(t,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=t.__iterator(xn,i),s=!0;return new w(function(){if(!s)return $();var t=a.next();if(t.done)return t;var i=t.value,u=i[0],l=i[1];return e.call(n,l,u,o)?r===xn?t:x(r,u,l,t):(s=!1,$())})},r}function ve(t,e,n,r){var i=Te(t);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return t.__iterate(function(t,o,l){if(!s||!(s=e.call(n,t,o,l)))return u++,i(t,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(xn,o),u=!0,l=0;return new w(function(){var t,o,c;do{if(t=s.next(),t.done)return r||i===wn?t:i===bn?x(i,l++,void 0,t):x(i,l++,t.value[1],t);var f=t.value;o=f[0],c=f[1],u&&(u=e.call(n,c,o,a))}while(u);return i===xn?t:x(i,o,c,t)})},i}function me(t,e){var r=a(t),i=[t].concat(e).map(function(t){return o(t)?r&&(t=n(t)):t=r?L(t):z(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var u=i[0];if(u===t||r&&a(u)||s(t)&&s(u))return u}var l=new j(i);return r?l=l.toKeyedSeq():s(t)||(l=l.toSetSeq()),l=l.flatten(!0),l.size=i.reduce(function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}},0),l}function ge(t,e,n){var r=Te(t);return r.__iterateUncached=function(r,i){function a(t,l){var c=this;t.__iterate(function(t,i){return(!e||l<e)&&o(t)?a(t,l+1):r(t,n?i:s++,c)===!1&&(u=!0),!u},i)}var s=0,u=!1;return a(t,0),s},r.__iteratorUncached=function(r,i){var a=t.__iterator(r,i),s=[],u=0;return new w(function(){for(;a;){var t=a.next();if(t.done===!1){var l=t.value;if(r===xn&&(l=l[1]),e&&!(s.length<e)||!o(l))return n?t:x(r,u++,l,t);s.push(a),a=l.__iterator(r,i)}else a=s.pop()}return $()})},r}function ye(t,e,n){var r=Ee(t);return t.toSeq().map(function(i,o){return r(e.call(n,i,o,t))}).flatten(!0)}function _e(t,e){var n=Te(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,r){var i=this,o=0;return t.__iterate(function(t,r){return(!o||n(e,o++,i)!==!1)&&n(t,o++,i)!==!1},r),o},n.__iteratorUncached=function(n,r){var i,o=t.__iterator(wn,r),a=0;return new w(function(){return(!i||a%2)&&(i=o.next(),i.done)?i:a%2?x(n,a++,e):x(n,a++,i.value,i)})},n}function be(t,e,n){e||(e=De);var r=a(t),i=0,o=t.toSeq().map(function(e,r){return[r,e,i++,n?n(e,r,t):e]}).toArray();return o.sort(function(t,n){return e(t[3],n[3])||t[2]-n[2]}).forEach(r?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),r?D(o):s(t)?F(o):O(o)}function we(t,e,n){if(e||(e=De),n){var r=t.toSeq().map(function(e,r){return[e,n(e,r,t)]}).reduce(function(t,n){return xe(e,t[1],n[1])?n:t});return r&&r[0]}return t.reduce(function(t,n){return xe(e,t,n)?n:t})}function xe(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(void 0===n||null===n||n!==n)||r>0}function $e(t,n,r){var i=Te(t);return i.size=new j(r).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var n,r=this.__iterator(wn,e),i=0;!(n=r.next()).done&&t(n.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(t,i){var o=r.map(function(t){return t=e(t),S(i?t.reverse():t)}),a=0,s=!1;return new w(function(){var e;return s||(e=o.map(function(t){return t.next()}),s=e.some(function(t){return t.done})),s?$():x(t,a++,n.apply(null,e.map(function(t){return t.value})))})},i}function ke(t,e){return N(t)?e:t.constructor(e)}function Ce(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Se(t){return ct(t.size),d(t)}function Ee(t){return a(t)?n:s(t)?r:i}function Te(t){return Object.create((a(t)?D:s(t)?F:O).prototype)}function Ae(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):A.prototype.cacheResult.call(this)}function De(t,e){return t>e?1:t<e?-1:0}function Fe(t){var n=S(t);if(!n){if(!T(t))throw new TypeError("Expected iterable or array-like: "+t);n=S(e(t))}return n}function Oe(t,e){var n,r=function(o){if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var a=Object.keys(t);Ie(i,a),i.size=a.length,i._name=e,i._keys=a,i._defaultValues=t}this._map=ft(o)},i=r.prototype=Object.create(Qn);return i.constructor=r,r}function je(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._map=e,r.__ownerID=n,r}function Me(t){return t._name||t.constructor.name||"Record"}function Ie(t,e){try{e.forEach(Pe.bind(void 0,t))}catch(n){}}function Pe(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){Q(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function Ne(t){return null===t||void 0===t?qe():Re(t)&&!l(t)?t:qe().withMutations(function(e){var n=i(t);ct(n.size),n.forEach(function(t){return e.add(t)})})}function Re(t){return!(!t||!t[Zn])}function Le(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function ze(t,e){var n=Object.create(tr);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function qe(){return er||(er=ze(xt()))}function He(t){return null===t||void 0===t?Ve():Ue(t)?t:Ve().withMutations(function(e){var n=i(t);ct(n.size),n.forEach(function(t){return e.add(t)})})}function Ue(t){return Re(t)&&l(t)}function We(t,e){var n=Object.create(nr);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function Ve(){return rr||(rr=We(ee()))}function Be(t){return null===t||void 0===t?Ge():Ye(t)?t:Ge().unshiftAll(t)}function Ye(t){return!(!t||!t[ir])}function Ke(t,e,n,r){var i=Object.create(or);return i.size=t,i._head=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Ge(){return ar||(ar=Ke(0))}function Xe(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}function Je(t,e){return e}function Qe(t,e){return[e,t]}function Ze(t){return function(){return!t.apply(this,arguments)}}function tn(t){return function(){return-t.apply(this,arguments)}}function en(t){return"string"==typeof t?JSON.stringify(t):String(t)}function nn(){return p(arguments)}function rn(t,e){return t<e?1:t>e?-1:0}function on(t){if(t.size===1/0)return 0;var e=l(t),n=a(t),r=e?1:0,i=t.__iterate(n?e?function(t,e){r=31*r+sn(ot(t),ot(e))|0}:function(t,e){r=r+sn(ot(t),ot(e))|0}:e?function(t){r=31*r+ot(t)|0}:function(t){r=r+ot(t)|0});return an(i,r)}function an(t,e){return e=Fn(e,3432918353),e=Fn(e<<15|e>>>-15,461845907),e=Fn(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=Fn(e^e>>>16,2246822507),e=Fn(e^e>>>13,3266489909),e=it(e^e>>>16)}function sn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var un=Array.prototype.slice;t(n,e),t(r,e),t(i,e),e.isIterable=o,e.isKeyed=a,e.isIndexed=s,e.isAssociative=u,e.isOrdered=l,e.Keyed=n,e.Indexed=r,e.Set=i;var ln="@@__IMMUTABLE_ITERABLE__@@",cn="@@__IMMUTABLE_KEYED__@@",fn="@@__IMMUTABLE_INDEXED__@@",hn="@@__IMMUTABLE_ORDERED__@@",pn="delete",dn=5,vn=1<<dn,mn=vn-1,gn={},yn={value:!1},_n={value:!1},bn=0,wn=1,xn=2,$n="function"==typeof Symbol&&Symbol.iterator,kn="@@iterator",Cn=$n||kn;w.prototype.toString=function(){return"[Iterator]"},w.KEYS=bn,w.VALUES=wn,w.ENTRIES=xn,w.prototype.inspect=w.prototype.toSource=function(){return this.toString()},w.prototype[Cn]=function(){return this},t(A,e),A.of=function(){return A(arguments)},A.prototype.toSeq=function(){return this},A.prototype.toString=function(){return this.__toString("Seq {","}")},A.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},A.prototype.__iterate=function(t,e){return U(this,t,e,!0)},A.prototype.__iterator=function(t,e){return W(this,t,e,!0)},t(D,A),D.prototype.toKeyedSeq=function(){return this},t(F,A),F.of=function(){return F(arguments)},F.prototype.toIndexedSeq=function(){return this},F.prototype.toString=function(){return this.__toString("Seq [","]")},F.prototype.__iterate=function(t,e){return U(this,t,e,!1)},F.prototype.__iterator=function(t,e){return W(this,t,e,!1)},t(O,A),O.of=function(){return O(arguments)},O.prototype.toSetSeq=function(){return this},A.isSeq=N,A.Keyed=D,A.Set=O,A.Indexed=F;var Sn="@@__IMMUTABLE_SEQ__@@";A.prototype[Sn]=!0,t(j,F),j.prototype.get=function(t,e){return this.has(t)?this._array[v(this,t)]:e},j.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length-1,i=0;i<=r;i++)if(t(n[e?r-i:i],i,this)===!1)return i+1;return i},j.prototype.__iterator=function(t,e){var n=this._array,r=n.length-1,i=0;return new w(function(){return i>r?$():x(t,i,n[e?r-i++:i++])})},t(M,D),M.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},M.prototype.has=function(t){return this._object.hasOwnProperty(t)},M.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[e?i-o:o];if(t(n[a],a,this)===!1)return o+1}return o},M.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,i=r.length-1,o=0;return new w(function(){var a=r[e?i-o:o];return o++>i?$():x(t,a,n[a])})},M.prototype[hn]=!0,t(I,F),I.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=this._iterable,r=S(n),i=0;if(C(r))for(var o;!(o=r.next()).done&&t(o.value,i++,this)!==!1;);return i},I.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterable,r=S(n);if(!C(r))return new w($);var i=0;return new w(function(){var e=r.next();return e.done?e:x(t,i++,e.value)})},t(P,F),P.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n=this._iterator,r=this._iteratorCache,i=0;i<r.length;)if(t(r[i],i++,this)===!1)return i;for(var o;!(o=n.next()).done;){var a=o.value;if(r[i]=a,t(a,i++,this)===!1)break}return i},P.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,i=0;return new w(function(){if(i>=r.length){var e=n.next();if(e.done)return e;r[i]=e.value}return x(t,i,r[i++])})};var En;t(J,F),J.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},J.prototype.get=function(t,e){return this.has(t)?this._value:e},J.prototype.includes=function(t){return G(this._value,t)},J.prototype.slice=function(t,e){var n=this.size;return g(t,e,n)?this:new J(this._value,_(e,n)-y(t,n))},J.prototype.reverse=function(){return this},J.prototype.indexOf=function(t){return G(this._value,t)?0:-1},J.prototype.lastIndexOf=function(t){return G(this._value,t)?this.size:-1},J.prototype.__iterate=function(t,e){for(var n=0;n<this.size;n++)if(t(this._value,n,this)===!1)return n+1;return n},J.prototype.__iterator=function(t,e){var n=this,r=0;return new w(function(){return r<n.size?x(t,r++,n._value):$()})},J.prototype.equals=function(t){return t instanceof J?G(this._value,t._value):X(t)};var Tn;t(Z,F),Z.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},Z.prototype.get=function(t,e){return this.has(t)?this._start+v(this,t)*this._step:e},Z.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},Z.prototype.slice=function(t,e){return g(t,e,this.size)?this:(t=y(t,this.size),e=_(e,this.size),e<=t?new Z(0,0):new Z(this.get(t,this._end),this.get(e,this._end),this._step))},Z.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},Z.prototype.lastIndexOf=function(t){return this.indexOf(t)},Z.prototype.__iterate=function(t,e){for(var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,o=0;o<=n;o++){if(t(i,o,this)===!1)return o+1;i+=e?-r:r}return o},Z.prototype.__iterator=function(t,e){var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,o=0;return new w(function(){var a=i;return i+=e?-r:r,o>n?$():x(t,o++,a)})},Z.prototype.equals=function(t){return t instanceof Z?this._start===t._start&&this._end===t._end&&this._step===t._step:X(this,t)};var An;t(tt,e),t(et,tt),t(nt,tt),t(rt,tt),tt.Keyed=et,tt.Indexed=nt,tt.Set=rt;var Dn,Fn="function"==typeof Math.imul&&Math.imul(4294967295,2)===-2?Math.imul:function(t,e){t=0|t,e=0|e;var n=65535&t,r=65535&e;return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0},On=Object.isExtensible,jn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),Mn="function"==typeof WeakMap;Mn&&(Dn=new WeakMap);var In=0,Pn="__immutablehash__";"function"==typeof Symbol&&(Pn=Symbol(Pn));var Nn=16,Rn=255,Ln=0,zn={};t(ft,et),ft.of=function(){var t=un.call(arguments,0);return xt().withMutations(function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}})},ft.prototype.toString=function(){return this.__toString("Map {","}")},ft.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},ft.prototype.set=function(t,e){return $t(this,t,e)},ft.prototype.setIn=function(t,e){return this.updateIn(t,gn,function(){return e})},ft.prototype.remove=function(t){return $t(this,t,gn)},ft.prototype.deleteIn=function(t){return this.updateIn(t,function(){return gn})},ft.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},ft.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=Mt(this,Fe(t),e,n);return r===gn?void 0:r},ft.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):xt()},ft.prototype.merge=function(){return Dt(this,void 0,arguments)},ft.prototype.mergeWith=function(t){var e=un.call(arguments,1);return Dt(this,t,e)},ft.prototype.mergeIn=function(t){var e=un.call(arguments,1);return this.updateIn(t,xt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},ft.prototype.mergeDeep=function(){return Dt(this,Ft,arguments)},ft.prototype.mergeDeepWith=function(t){var e=un.call(arguments,1);return Dt(this,Ot(t),e)},ft.prototype.mergeDeepIn=function(t){var e=un.call(arguments,1);return this.updateIn(t,xt(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},ft.prototype.sort=function(t){return Qt(be(this,t))},ft.prototype.sortBy=function(t,e){return Qt(be(this,e,t))},ft.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},ft.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new h)},ft.prototype.asImmutable=function(){return this.__ensureOwner()},ft.prototype.wasAltered=function(){return this.__altered},ft.prototype.__iterator=function(t,e){return new yt(this,t,e)},ft.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},ft.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?wt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},ft.isMap=ht;var qn="@@__IMMUTABLE_MAP__@@",Hn=ft.prototype;Hn[qn]=!0,Hn[pn]=Hn.remove,Hn.removeIn=Hn.deleteIn,pt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(G(n,i[o][0]))return i[o][1];return r},pt.prototype.update=function(t,e,n,r,i,o,a){for(var s=i===gn,u=this.entries,l=0,c=u.length;l<c&&!G(r,u[l][0]);l++);var h=l<c;if(h?u[l][1]===i:s)return this;if(f(a),(s||!h)&&f(o),!s||1!==u.length){if(!h&&!s&&u.length>=Wn)return Et(t,u,r,i);var d=t&&t===this.ownerID,v=d?u:p(u);return h?s?l===c-1?v.pop():v[l]=v.pop():v[l]=[r,i]:v.push([r,i]),d?(this.entries=v,this):new pt(t,v)}},dt.prototype.get=function(t,e,n,r){void 0===e&&(e=ot(n));var i=1<<((0===t?e:e>>>t)&mn),o=this.bitmap;return 0===(o&i)?r:this.nodes[It(o&i-1)].get(t+dn,e,n,r)},dt.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=ot(r));var s=(0===e?n:n>>>e)&mn,u=1<<s,l=this.bitmap,c=0!==(l&u);if(!c&&i===gn)return this;var f=It(l&u-1),h=this.nodes,p=c?h[f]:void 0,d=kt(p,t,e+dn,n,r,i,o,a);if(d===p)return this;if(!c&&d&&h.length>=Vn)return At(t,h,l,s,d);if(c&&!d&&2===h.length&&Ct(h[1^f]))return h[1^f];if(c&&d&&1===h.length&&Ct(d))return d;var v=t&&t===this.ownerID,m=c?d?l:l^u:l|u,g=c?d?Pt(h,f,d,v):Rt(h,f,v):Nt(h,f,d,v);return v?(this.bitmap=m,this.nodes=g,this):new dt(t,m,g)},vt.prototype.get=function(t,e,n,r){void 0===e&&(e=ot(n));var i=(0===t?e:e>>>t)&mn,o=this.nodes[i];return o?o.get(t+dn,e,n,r):r},vt.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=ot(r));var s=(0===e?n:n>>>e)&mn,u=i===gn,l=this.nodes,c=l[s];if(u&&!c)return this;var f=kt(c,t,e+dn,n,r,i,o,a);if(f===c)return this;var h=this.count;if(c){if(!f&&(h--,h<Bn))return Tt(t,l,h,s)}else h++;var p=t&&t===this.ownerID,d=Pt(l,s,f,p);return p?(this.count=h,this.nodes=d,this):new vt(t,h,d)},mt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(G(n,i[o][0]))return i[o][1];return r},mt.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=ot(r));var s=i===gn;if(n!==this.keyHash)return s?this:(f(a),f(o),St(this,t,e,n,[r,i]));for(var u=this.entries,l=0,c=u.length;l<c&&!G(r,u[l][0]);l++);var h=l<c;if(h?u[l][1]===i:s)return this;if(f(a),(s||!h)&&f(o),s&&2===c)return new gt(t,this.keyHash,u[1^l]);var d=t&&t===this.ownerID,v=d?u:p(u);return h?s?l===c-1?v.pop():v[l]=v.pop():v[l]=[r,i]:v.push([r,i]),d?(this.entries=v,this):new mt(t,this.keyHash,v)},gt.prototype.get=function(t,e,n,r){return G(n,this.entry[0])?this.entry[1]:r},gt.prototype.update=function(t,e,n,r,i,o,a){var s=i===gn,u=G(r,this.entry[0]);return(u?i===this.entry[1]:s)?this:(f(a),s?void f(o):u?t&&t===this.ownerID?(this.entry[1]=i,this):new gt(t,this.keyHash,[r,i]):(f(o),St(this,t,e,ot(r),[r,i])))},pt.prototype.iterate=mt.prototype.iterate=function(t,e){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(t(n[e?i-r:r])===!1)return!1},dt.prototype.iterate=vt.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[e?i-r:r];if(o&&o.iterate(t,e)===!1)return!1}},gt.prototype.iterate=function(t,e){return t(this.entry)},t(yt,w),yt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n,r=e.node,i=e.index++;if(r.entry){if(0===i)return _t(t,r.entry)}else if(r.entries){if(n=r.entries.length-1,i<=n)return _t(t,r.entries[this._reverse?n-i:i])}else if(n=r.nodes.length-1,i<=n){var o=r.nodes[this._reverse?n-i:i];if(o){if(o.entry)return _t(t,o.entry);e=this._stack=bt(o,e)}continue}e=this._stack=this._stack.__prev}return $()};var Un,Wn=vn/4,Vn=vn/2,Bn=vn/4;t(Lt,nt),Lt.of=function(){return this(arguments)},Lt.prototype.toString=function(){return this.__toString("List [","]")},Lt.prototype.get=function(t,e){if(t=v(this,t),t>=0&&t<this.size){t+=this._origin;var n=Kt(this,t);return n&&n.array[t&mn]}return e},Lt.prototype.set=function(t,e){return Vt(this,t,e)},Lt.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},Lt.prototype.insert=function(t,e){return this.splice(t,0,e)},Lt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=dn,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Wt()},Lt.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(n){Gt(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])})},Lt.prototype.pop=function(){return Gt(this,0,-1)},Lt.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Gt(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])})},Lt.prototype.shift=function(){return Gt(this,1)},Lt.prototype.merge=function(){return Xt(this,void 0,arguments)},Lt.prototype.mergeWith=function(t){var e=un.call(arguments,1);return Xt(this,t,e)},Lt.prototype.mergeDeep=function(){return Xt(this,Ft,arguments)},Lt.prototype.mergeDeepWith=function(t){var e=un.call(arguments,1);return Xt(this,Ot(t),e)},Lt.prototype.setSize=function(t){return Gt(this,0,t)},Lt.prototype.slice=function(t,e){var n=this.size;return g(t,e,n)?this:Gt(this,y(t,n),_(e,n))},Lt.prototype.__iterator=function(t,e){var n=0,r=Ht(this,e);return new w(function(){var e=r();return e===Xn?$():x(t,n++,e)})},Lt.prototype.__iterate=function(t,e){for(var n,r=0,i=Ht(this,e);(n=i())!==Xn&&t(n,r++,this)!==!1;);return r},Lt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ut(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},Lt.isList=zt;var Yn="@@__IMMUTABLE_LIST__@@",Kn=Lt.prototype;Kn[Yn]=!0,Kn[pn]=Kn.remove,Kn.setIn=Hn.setIn,Kn.deleteIn=Kn.removeIn=Hn.removeIn,Kn.update=Hn.update,Kn.updateIn=Hn.updateIn,Kn.mergeIn=Hn.mergeIn,Kn.mergeDeepIn=Hn.mergeDeepIn,Kn.withMutations=Hn.withMutations,Kn.asMutable=Hn.asMutable,Kn.asImmutable=Hn.asImmutable,Kn.wasAltered=Hn.wasAltered,qt.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&mn;if(r>=this.array.length)return new qt([],t);var i,o=0===r;if(e>0){var a=this.array[r];if(i=a&&a.removeBefore(t,e-dn,n),i===a&&o)return this}if(o&&!i)return this;var s=Yt(this,t);if(!o)for(var u=0;u<r;u++)s.array[u]=void 0;return i&&(s.array[r]=i),s},qt.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r=n-1>>>e&mn;if(r>=this.array.length)return this;var i;if(e>0){var o=this.array[r];if(i=o&&o.removeAfter(t,e-dn,n),i===o&&r===this.array.length-1)return this}var a=Yt(this,t);return a.array.splice(r+1),i&&(a.array[r]=i),a};var Gn,Xn={};t(Qt,ft),Qt.of=function(){return this(arguments)},Qt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Qt.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},Qt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):ee()},Qt.prototype.set=function(t,e){return ne(this,t,e)},Qt.prototype.remove=function(t){return ne(this,t,gn)},Qt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Qt.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},Qt.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Qt.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?te(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},Qt.isOrderedMap=Zt,Qt.prototype[hn]=!0,Qt.prototype[pn]=Qt.prototype.remove;var Jn;t(re,D),re.prototype.get=function(t,e){return this._iter.get(t,e)},re.prototype.has=function(t){return this._iter.has(t)},re.prototype.valueSeq=function(){return this._iter.valueSeq()},re.prototype.reverse=function(){var t=this,e=le(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},re.prototype.map=function(t,e){var n=this,r=ue(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},re.prototype.__iterate=function(t,e){var n,r=this;return this._iter.__iterate(this._useKeys?function(e,n){return t(e,n,r)}:(n=e?Se(this):0,function(i){return t(i,e?--n:n++,r)}),e)},re.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(wn,e),r=e?Se(this):0;return new w(function(){var i=n.next();return i.done?i:x(t,e?--r:r++,i.value,i)})},re.prototype[hn]=!0,t(ie,F),ie.prototype.includes=function(t){return this._iter.includes(t)},ie.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate(function(e){return t(e,r++,n)},e)},ie.prototype.__iterator=function(t,e){var n=this._iter.__iterator(wn,e),r=0;return new w(function(){var e=n.next();return e.done?e:x(t,r++,e.value,e)})},t(oe,O),oe.prototype.has=function(t){
return this._iter.includes(t)},oe.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},oe.prototype.__iterator=function(t,e){var n=this._iter.__iterator(wn,e);return new w(function(){var e=n.next();return e.done?e:x(t,e.value,e.value,e)})},t(ae,D),ae.prototype.entrySeq=function(){return this._iter.toSeq()},ae.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){Ce(e);var r=o(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}},e)},ae.prototype.__iterator=function(t,e){var n=this._iter.__iterator(wn,e);return new w(function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){Ce(r);var i=o(r);return x(t,i?r.get(0):r[0],i?r.get(1):r[1],e)}}})},ie.prototype.cacheResult=re.prototype.cacheResult=oe.prototype.cacheResult=ae.prototype.cacheResult=Ae,t(Oe,et),Oe.prototype.toString=function(){return this.__toString(Me(this)+" {","}")},Oe.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Oe.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._defaultValues[t];return this._map?this._map.get(t,n):n},Oe.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=je(this,xt()))},Oe.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+Me(this));if(this._map&&!this._map.has(t)){var n=this._defaultValues[t];if(e===n)return this}var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:je(this,r)},Oe.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:je(this,e)},Oe.prototype.wasAltered=function(){return this._map.wasAltered()},Oe.prototype.__iterator=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterator(t,e)},Oe.prototype.__iterate=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},Oe.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?je(this,e,t):(this.__ownerID=t,this._map=e,this)};var Qn=Oe.prototype;Qn[pn]=Qn.remove,Qn.deleteIn=Qn.removeIn=Hn.removeIn,Qn.merge=Hn.merge,Qn.mergeWith=Hn.mergeWith,Qn.mergeIn=Hn.mergeIn,Qn.mergeDeep=Hn.mergeDeep,Qn.mergeDeepWith=Hn.mergeDeepWith,Qn.mergeDeepIn=Hn.mergeDeepIn,Qn.setIn=Hn.setIn,Qn.update=Hn.update,Qn.updateIn=Hn.updateIn,Qn.withMutations=Hn.withMutations,Qn.asMutable=Hn.asMutable,Qn.asImmutable=Hn.asImmutable,t(Ne,rt),Ne.of=function(){return this(arguments)},Ne.fromKeys=function(t){return this(n(t).keySeq())},Ne.prototype.toString=function(){return this.__toString("Set {","}")},Ne.prototype.has=function(t){return this._map.has(t)},Ne.prototype.add=function(t){return Le(this,this._map.set(t,!0))},Ne.prototype.remove=function(t){return Le(this,this._map.remove(t))},Ne.prototype.clear=function(){return Le(this,this._map.clear())},Ne.prototype.union=function(){var t=un.call(arguments,0);return t=t.filter(function(t){return 0!==t.size}),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},Ne.prototype.intersect=function(){var t=un.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return i(t)});var e=this;return this.withMutations(function(n){e.forEach(function(e){t.every(function(t){return t.includes(e)})||n.remove(e)})})},Ne.prototype.subtract=function(){var t=un.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return i(t)});var e=this;return this.withMutations(function(n){e.forEach(function(e){t.some(function(t){return t.includes(e)})&&n.remove(e)})})},Ne.prototype.merge=function(){return this.union.apply(this,arguments)},Ne.prototype.mergeWith=function(t){var e=un.call(arguments,1);return this.union.apply(this,e)},Ne.prototype.sort=function(t){return He(be(this,t))},Ne.prototype.sortBy=function(t,e){return He(be(this,e,t))},Ne.prototype.wasAltered=function(){return this._map.wasAltered()},Ne.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate(function(e,r){return t(r,r,n)},e)},Ne.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},Ne.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},Ne.isSet=Re;var Zn="@@__IMMUTABLE_SET__@@",tr=Ne.prototype;tr[Zn]=!0,tr[pn]=tr.remove,tr.mergeDeep=tr.merge,tr.mergeDeepWith=tr.mergeWith,tr.withMutations=Hn.withMutations,tr.asMutable=Hn.asMutable,tr.asImmutable=Hn.asImmutable,tr.__empty=qe,tr.__make=ze;var er;t(He,Ne),He.of=function(){return this(arguments)},He.fromKeys=function(t){return this(n(t).keySeq())},He.prototype.toString=function(){return this.__toString("OrderedSet {","}")},He.isOrderedSet=Ue;var nr=He.prototype;nr[hn]=!0,nr.__empty=Ve,nr.__make=We;var rr;t(Be,nt),Be.of=function(){return this(arguments)},Be.prototype.toString=function(){return this.__toString("Stack [","]")},Be.prototype.get=function(t,e){var n=this._head;for(t=v(this,t);n&&t--;)n=n.next;return n?n.value:e},Be.prototype.peek=function(){return this._head&&this._head.value},Be.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,n=arguments.length-1;n>=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Ke(t,e)},Be.prototype.pushAll=function(t){if(t=r(t),0===t.size)return this;ct(t.size);var e=this.size,n=this._head;return t.reverse().forEach(function(t){e++,n={value:t,next:n}}),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ke(e,n)},Be.prototype.pop=function(){return this.slice(1)},Be.prototype.unshift=function(){return this.push.apply(this,arguments)},Be.prototype.unshiftAll=function(t){return this.pushAll(t)},Be.prototype.shift=function(){return this.pop.apply(this,arguments)},Be.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Ge()},Be.prototype.slice=function(t,e){if(g(t,e,this.size))return this;var n=y(t,this.size),r=_(e,this.size);if(r!==this.size)return nt.prototype.slice.call(this,t,e);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Ke(i,o)},Be.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ke(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Be.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&t(r.value,n++,this)!==!1;)r=r.next;return n},Be.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new w(function(){if(r){var e=r.value;return r=r.next,x(t,n++,e)}return $()})},Be.isStack=Ye;var ir="@@__IMMUTABLE_STACK__@@",or=Be.prototype;or[ir]=!0,or.withMutations=Hn.withMutations,or.asMutable=Hn.asMutable,or.asImmutable=Hn.asImmutable,or.wasAltered=Hn.wasAltered;var ar;e.Iterator=w,Xe(e,{toArray:function(){ct(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,n){t[n]=e}),t},toIndexedSeq:function(){return new ie(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new re(this,(!0))},toMap:function(){return ft(this.toKeyedSeq())},toObject:function(){ct(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t},toOrderedMap:function(){return Qt(this.toKeyedSeq())},toOrderedSet:function(){return He(a(this)?this.valueSeq():this)},toSet:function(){return Ne(a(this)?this.valueSeq():this)},toSetSeq:function(){return new oe(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Be(a(this)?this.valueSeq():this)},toList:function(){return Lt(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){var t=un.call(arguments,0);return ke(this,me(this,t))},includes:function(t){return this.some(function(e){return G(e,t)})},entries:function(){return this.__iterator(xn)},every:function(t,e){ct(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!t.call(e,r,i,o))return n=!1,!1}),n},filter:function(t,e){return ke(this,ce(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},forEach:function(t,e){return ct(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){ct(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate(function(r){n?n=!1:e+=t,e+=null!==r&&void 0!==r?r.toString():""}),e},keys:function(){return this.__iterator(bn)},map:function(t,e){return ke(this,ue(this,t,e))},reduce:function(t,e,n){ct(this.size);var r,i;return arguments.length<2?i=!0:r=e,this.__iterate(function(e,o,a){i?(i=!1,r=e):r=t.call(n,r,e,o,a)}),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return ke(this,le(this,!0))},slice:function(t,e){return ke(this,pe(this,t,e,!0))},some:function(t,e){return!this.every(Ze(t),e)},sort:function(t){return ke(this,be(this,t))},values:function(){return this.__iterator(wn)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return d(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return fe(this,t,e)},equals:function(t){return X(this,t)},entrySeq:function(){var t=this;if(t._cache)return new j(t._cache);var e=t.toSeq().map(Qe).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Ze(t),e)},findEntry:function(t,e,n){var r=n;return this.__iterate(function(n,i,o){if(t.call(e,n,i,o))return r=[i,n],!1}),r},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},findLastEntry:function(t,e,n){return this.toKeyedSeq().reverse().findEntry(t,e,n)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(m)},flatMap:function(t,e){return ke(this,ye(this,t,e))},flatten:function(t){return ke(this,ge(this,t,!0))},fromEntrySeq:function(){return new ae(this)},get:function(t,e){return this.find(function(e,n){return G(n,t)},void 0,e)},getIn:function(t,e){for(var n,r=this,i=Fe(t);!(n=i.next()).done;){var o=n.value;if(r=r&&r.get?r.get(o,gn):gn,r===gn)return e}return r},groupBy:function(t,e){return he(this,t,e)},has:function(t){return this.get(t,gn)!==gn},hasIn:function(t){return this.getIn(t,gn)!==gn},isSubset:function(t){return t="function"==typeof t.includes?t:e(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return t="function"==typeof t.isSubset?t:e(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(e){return G(e,t)})},keySeq:function(){return this.toSeq().map(Je).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return we(this,t)},maxBy:function(t,e){return we(this,e,t)},min:function(t){return we(this,t?tn(t):rn)},minBy:function(t,e){return we(this,e?tn(e):rn,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return ke(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return ke(this,ve(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Ze(t),e)},sortBy:function(t,e){return ke(this,be(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return ke(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return ke(this,de(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Ze(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var sr=e.prototype;sr[ln]=!0,sr[Cn]=sr.values,sr.__toJS=sr.toArray,sr.__toStringMapper=en,sr.inspect=sr.toSource=function(){return this.toString()},sr.chain=sr.flatMap,sr.contains=sr.includes,Xe(n,{flip:function(){return ke(this,se(this))},mapEntries:function(t,e){var n=this,r=0;return ke(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(t,e){var n=this;return ke(this,this.toSeq().flip().map(function(r,i){return t.call(e,r,i,n)}).flip())}});var ur=n.prototype;ur[cn]=!0,ur[Cn]=sr.entries,ur.__toJS=sr.toObject,ur.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+en(t)},Xe(r,{toKeyedSeq:function(){return new re(this,(!1))},filter:function(t,e){return ke(this,ce(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return ke(this,le(this,!1))},slice:function(t,e){return ke(this,pe(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=y(t,t<0?this.count():this.size);var r=this.slice(0,t);return ke(this,1===n?r:r.concat(p(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.findLastEntry(t,e);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(t){return ke(this,ge(this,t,!1))},get:function(t,e){return t=v(this,t),t<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,n){return n===t},void 0,e)},has:function(t){return t=v(this,t),t>=0&&(void 0!==this.size?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return ke(this,_e(this,t))},interleave:function(){var t=[this].concat(p(arguments)),e=$e(this.toSeq(),F.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),ke(this,n)},keySeq:function(){return Z(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(t,e){return ke(this,ve(this,t,e,!1))},zip:function(){var t=[this].concat(p(arguments));return ke(this,$e(this,nn,t))},zipWith:function(t){var e=p(arguments);return e[0]=this,ke(this,$e(this,t,e))}}),r.prototype[fn]=!0,r.prototype[hn]=!0,Xe(i,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=sr.includes,i.prototype.contains=i.prototype.includes,Xe(D,n.prototype),Xe(F,r.prototype),Xe(O,i.prototype),Xe(et,n.prototype),Xe(nt,r.prototype),Xe(rt,i.prototype);var lr={Iterable:e,Seq:A,Collection:tt,Map:ft,OrderedMap:Qt,List:Lt,Stack:Be,Set:Ne,OrderedSet:He,Record:Oe,Range:Z,Repeat:J,is:G,fromJS:V};return lr}),function(t,e){"object"==typeof exports?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t)}(this,function(t){function e(t){this._targetElement=t,this._introItems=[],this._options={nextLabel:"Next &rarr;",prevLabel:"&larr; Back",skipLabel:"Skip",doneLabel:"Done",tooltipPosition:"bottom",tooltipClass:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!0,keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,overlayOpacity:.8,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,hintPosition:"top-middle",hintButtonLabel:"Got it"}}function n(t){var e=[],n=this;if(this._options.steps)for(var i=0,u=this._options.steps.length;i<u;i++){var l=r(this._options.steps[i]);if(l.step=e.length+1,"string"==typeof l.element&&(l.element=document.querySelector(l.element)),"undefined"==typeof l.element||null==l.element){var c=document.querySelector(".introjsFloatingElement");null==c&&(c=document.createElement("div"),c.className="introjsFloatingElement",document.body.appendChild(c)),l.element=c,l.position="floating"}null!=l.element&&e.push(l)}else{var f=t.querySelectorAll("*[data-intro]");if(f.length<1)return!1;for(var i=0,h=f.length;i<h;i++){var d=f[i];if("none"!=d.style.display){var v=parseInt(d.getAttribute("data-step"),10);v>0&&(e[v-1]={element:d,intro:d.getAttribute("data-intro"),step:parseInt(d.getAttribute("data-step"),10),tooltipClass:d.getAttribute("data-tooltipClass"),highlightClass:d.getAttribute("data-highlightClass"),position:d.getAttribute("data-position")||this._options.tooltipPosition})}}for(var m=0,i=0,h=f.length;i<h;i++){var d=f[i];if(null==d.getAttribute("data-step")){for(;;){if("undefined"==typeof e[m])break;m++}e[m]={element:d,intro:d.getAttribute("data-intro"),step:m+1,tooltipClass:d.getAttribute("data-tooltipClass"),highlightClass:d.getAttribute("data-highlightClass"),position:d.getAttribute("data-position")||this._options.tooltipPosition}}}}for(var g=[],y=0;y<e.length;y++)e[y]&&g.push(e[y]);if(e=g,e.sort(function(t,e){return t.step-e.step}),n._introItems=e,w.call(n,t)){o.call(n);t.querySelector(".introjs-skipbutton"),t.querySelector(".introjs-nextbutton");n._onKeyDown=function(e){if(27===e.keyCode&&1==n._options.exitOnEsc)void 0!=n._introExitCallback&&n._introExitCallback.call(n),s.call(n,t);else if(37===e.keyCode)a.call(n);else if(39===e.keyCode)o.call(n);else if(13===e.keyCode){var r=e.target||e.srcElement;r&&r.className.indexOf("introjs-prevbutton")>0?a.call(n):r&&r.className.indexOf("introjs-skipbutton")>0?(n._introItems.length-1==n._currentStep&&"function"==typeof n._introCompleteCallback&&n._introCompleteCallback.call(n),void 0!=n._introExitCallback&&n._introExitCallback.call(n),s.call(n,t)):o.call(n),e.preventDefault?e.preventDefault():e.returnValue=!1}},n._onResize=function(t){p.call(n,document.querySelector(".introjs-helperLayer")),p.call(n,document.querySelector(".introjs-tooltipReferenceLayer"))},window.addEventListener?(this._options.keyboardNavigation&&window.addEventListener("keydown",n._onKeyDown,!0),window.addEventListener("resize",n._onResize,!0)):document.attachEvent&&(this._options.keyboardNavigation&&document.attachEvent("onkeydown",n._onKeyDown),document.attachEvent("onresize",n._onResize))}return!1}function r(t){if(null==t||"object"!=typeof t||"undefined"!=typeof t.nodeType)return t;var e={};for(var n in t)"undefined"!=typeof jQuery&&t[n]instanceof jQuery?e[n]=t[n]:e[n]=r(t[n]);return e}function i(t){this._currentStep=t-2,"undefined"!=typeof this._introItems&&o.call(this)}function o(){if(this._direction="forward","undefined"==typeof this._currentStep?this._currentStep=0:++this._currentStep,this._introItems.length<=this._currentStep)return"function"==typeof this._introCompleteCallback&&this._introCompleteCallback.call(this),void s.call(this,this._targetElement);var t=this._introItems[this._currentStep];"undefined"!=typeof this._introBeforeChangeCallback&&this._introBeforeChangeCallback.call(this,t.element),m.call(this,t)}function a(){if(this._direction="backward",0===this._currentStep)return!1;var t=this._introItems[--this._currentStep];"undefined"!=typeof this._introBeforeChangeCallback&&this._introBeforeChangeCallback.call(this,t.element),m.call(this,t)}function s(t){var e=t.querySelector(".introjs-overlay");if(null!=e){e.style.opacity=0,setTimeout(function(){e.parentNode&&e.parentNode.removeChild(e)},500);var n=t.querySelector(".introjs-helperLayer");n&&n.parentNode.removeChild(n);var r=t.querySelector(".introjs-tooltipReferenceLayer");r&&r.parentNode.removeChild(r);var i=t.querySelector(".introjs-disableInteraction");i&&i.parentNode.removeChild(i);var o=document.querySelector(".introjsFloatingElement");o&&o.parentNode.removeChild(o);var a=document.querySelector(".introjs-showElement");a&&(a.className=a.className.replace(/introjs-[a-zA-Z]+/g,"").replace(/^\s+|\s+$/g,""));var s=document.querySelectorAll(".introjs-fixParent");if(s&&s.length>0)for(var u=s.length-1;u>=0;u--)s[u].className=s[u].className.replace(/introjs-fixParent/g,"").replace(/^\s+|\s+$/g,"");window.removeEventListener?window.removeEventListener("keydown",this._onKeyDown,!0):document.detachEvent&&document.detachEvent("onkeydown",this._onKeyDown),this._currentStep=void 0}}function u(t,e,n,r,i){var o,a,s,u,h,p="";if(i=i||!1,e.style.top=null,e.style.right=null,e.style.bottom=null,e.style.left=null,e.style.marginLeft=null,e.style.marginTop=null,n.style.display="inherit","undefined"!=typeof r&&null!=r&&(r.style.top=null,r.style.left=null),this._introItems[this._currentStep])switch(o=this._introItems[this._currentStep],p="string"==typeof o.tooltipClass?o.tooltipClass:this._options.tooltipClass,e.className=("introjs-tooltip "+p).replace(/^\s+|\s+$/g,""),h=this._introItems[this._currentStep].position,"auto"!=h&&"auto"!=this._options.tooltipPosition||"floating"!=h&&(h=f.call(this,t,e,h)),s=A(t),a=A(e),u=_(),h){case"top":if(n.className="introjs-arrow bottom",i)var d=0;else var d=15;l(s,d,a,u,e),e.style.bottom=s.height+20+"px";break;case"right":e.style.left=s.width+20+"px",s.top+a.height>u.height?(n.className="introjs-arrow left-bottom",e.style.top="-"+(a.height-s.height-20)+"px"):n.className="introjs-arrow left";break;case"left":i||1!=this._options.showStepNumbers||(e.style.top="15px"),s.top+a.height>u.height?(e.style.top="-"+(a.height-s.height-20)+"px",n.className="introjs-arrow right-bottom"):n.className="introjs-arrow right",e.style.right=s.width+20+"px";break;case"floating":n.style.display="none",e.style.left="50%",e.style.top="50%",e.style.marginLeft="-"+a.width/2+"px",e.style.marginTop="-"+a.height/2+"px","undefined"!=typeof r&&null!=r&&(r.style.left="-"+(a.width/2+18)+"px",r.style.top="-"+(a.height/2+18)+"px");break;case"bottom-right-aligned":n.className="introjs-arrow top-right";var v=0;c(s,v,a,e),e.style.top=s.height+20+"px";break;case"bottom-middle-aligned":n.className="introjs-arrow top-middle";var m=s.width/2-a.width/2;i&&(m+=5),c(s,m,a,e)&&(e.style.right=null,l(s,m,a,u,e)),e.style.top=s.height+20+"px";break;case"bottom-left-aligned":case"bottom":default:n.className="introjs-arrow top";var d=0;l(s,d,a,u,e),e.style.top=s.height+20+"px"}}function l(t,e,n,r,i){return t.left+e+n.width>r.width?(i.style.left=r.width-n.width-t.left+"px",!1):(i.style.left=e+"px",!0)}function c(t,e,n,r){return t.left+t.width-e-n.width<0?(r.style.left=-t.left+"px",!1):(r.style.right=e+"px",!0)}function f(t,e,n){var r=this._options.positionPrecedence.slice(),i=_(),o=A(e).height+10,a=A(e).width+20,s=A(t),u="floating";return s.left+a>i.width||s.left+s.width/2-a<0?(h(r,"bottom"),h(r,"top")):(s.height+s.top+o>i.height&&h(r,"bottom"),s.top-o<0&&h(r,"top")),s.width+s.left+a>i.width&&h(r,"right"),s.left-a<0&&h(r,"left"),r.length>0&&(u=r[0]),n&&"auto"!=n&&r.indexOf(n)>-1&&(u=n),u}function h(t,e){t.indexOf(e)>-1&&t.splice(t.indexOf(e),1)}function p(t){if(t){if(!this._introItems[this._currentStep])return;var e=this._introItems[this._currentStep],n=A(e.element),r=10;y(e.element)?t.className+=" introjs-fixedTooltip":t.className=t.className.replace(" introjs-fixedTooltip",""),"floating"==e.position&&(r=0),t.setAttribute("style","width: "+(n.width+r)+"px; height:"+(n.height+r)+"px; top:"+(n.top-5)+"px;left: "+(n.left-5)+"px;")}}function d(){var t=document.querySelector(".introjs-disableInteraction");null===t&&(t=document.createElement("div"),t.className="introjs-disableInteraction",this._targetElement.appendChild(t)),p.call(this,t)}function v(t){t.setAttribute("role","button"),t.tabIndex=0}function m(t){"undefined"!=typeof this._introChangeCallback&&this._introChangeCallback.call(this,t.element);var e=this,n=document.querySelector(".introjs-helperLayer"),r=document.querySelector(".introjs-tooltipReferenceLayer"),i="introjs-helperLayer";A(t.element);if("string"==typeof t.highlightClass&&(i+=" "+t.highlightClass),"string"==typeof this._options.highlightClass&&(i+=" "+this._options.highlightClass),null!=n){var l=r.querySelector(".introjs-helperNumberLayer"),c=r.querySelector(".introjs-tooltiptext"),f=r.querySelector(".introjs-arrow"),h=r.querySelector(".introjs-tooltip"),m=r.querySelector(".introjs-skipbutton"),y=r.querySelector(".introjs-prevbutton"),w=r.querySelector(".introjs-nextbutton");if(n.className=i,h.style.opacity=0,h.style.display="none",null!=l){var x=this._introItems[t.step-2>=0?t.step-2:0];(null!=x&&"forward"==this._direction&&"floating"==x.position||"backward"==this._direction&&"floating"==t.position)&&(l.style.opacity=0)}p.call(e,n),p.call(e,r);var $=document.querySelectorAll(".introjs-fixParent");if($&&$.length>0)for(var k=$.length-1;k>=0;k--)$[k].className=$[k].className.replace(/introjs-fixParent/g,"").replace(/^\s+|\s+$/g,"");var C=document.querySelector(".introjs-showElement");C&&(C.className=C.className.replace(/introjs-[a-zA-Z]+/g,"").replace(/^\s+|\s+$/g,"")),e._lastShowElementTimer&&clearTimeout(e._lastShowElementTimer),e._lastShowElementTimer=setTimeout(function(){null!=l&&(l.innerHTML=t.step),c.innerHTML=t.intro,h.style.display="block",u.call(e,t.element,h,f,l),r.querySelector(".introjs-bullets li > a.active").className="",r.querySelector('.introjs-bullets li > a[data-stepnumber="'+t.step+'"]').className="active",r.querySelector(".introjs-progress .introjs-progressbar").setAttribute("style","width:"+D.call(e)+"%;"),h.style.opacity=1,l&&(l.style.opacity=1),w.tabIndex===-1?m.focus():w.focus()},350)}else{var S=document.createElement("div"),E=document.createElement("div"),T=document.createElement("div"),F=document.createElement("div"),O=document.createElement("div"),j=document.createElement("div"),M=document.createElement("div"),I=document.createElement("div");S.className=i,E.className="introjs-tooltipReferenceLayer",p.call(e,S),p.call(e,E),this._targetElement.appendChild(S),this._targetElement.appendChild(E),T.className="introjs-arrow",O.className="introjs-tooltiptext",O.innerHTML=t.intro,j.className="introjs-bullets",this._options.showBullets===!1&&(j.style.display="none");for(var P=document.createElement("ul"),k=0,N=this._introItems.length;k<N;k++){var R=document.createElement("li"),L=document.createElement("a");L.onclick=function(){e.goToStep(this.getAttribute("data-stepnumber"))},k===t.step-1&&(L.className="active"),v(L),L.innerHTML="&nbsp;",L.setAttribute("data-stepnumber",this._introItems[k].step),R.appendChild(L),P.appendChild(R)}j.appendChild(P),M.className="introjs-progress",this._options.showProgress===!1&&(M.style.display="none");var z=document.createElement("div");if(z.className="introjs-progressbar",z.setAttribute("style","width:"+D.call(this)+"%;"),M.appendChild(z),I.className="introjs-tooltipbuttons",this._options.showButtons===!1&&(I.style.display="none"),F.className="introjs-tooltip",F.appendChild(O),F.appendChild(j),F.appendChild(M),1==this._options.showStepNumbers){var q=document.createElement("span");q.className="introjs-helperNumberLayer",q.innerHTML=t.step,E.appendChild(q)}F.appendChild(T),E.appendChild(F);var w=document.createElement("a");w.onclick=function(){e._introItems.length-1!=e._currentStep&&o.call(e)},v(w),w.innerHTML=this._options.nextLabel;var y=document.createElement("a");y.onclick=function(){0!=e._currentStep&&a.call(e)},v(y),y.innerHTML=this._options.prevLabel;var m=document.createElement("a");m.className="introjs-button introjs-skipbutton",v(m),m.innerHTML=this._options.skipLabel,m.onclick=function(){e._introItems.length-1==e._currentStep&&"function"==typeof e._introCompleteCallback&&e._introCompleteCallback.call(e),e._introItems.length-1!=e._currentStep&&"function"==typeof e._introExitCallback&&e._introExitCallback.call(e),s.call(e,e._targetElement)},I.appendChild(m),this._introItems.length>1&&(I.appendChild(y),I.appendChild(w)),F.appendChild(I),u.call(e,t.element,F,T,q)}this._options.disableInteraction===!0&&d.call(e),y.removeAttribute("tabIndex"),w.removeAttribute("tabIndex"),0==this._currentStep&&this._introItems.length>1?(y.className="introjs-button introjs-prevbutton introjs-disabled",y.tabIndex="-1",w.className="introjs-button introjs-nextbutton",m.innerHTML=this._options.skipLabel):this._introItems.length-1==this._currentStep||1==this._introItems.length?(m.innerHTML=this._options.doneLabel,y.className="introjs-button introjs-prevbutton",w.className="introjs-button introjs-nextbutton introjs-disabled",w.tabIndex="-1"):(y.className="introjs-button introjs-prevbutton",w.className="introjs-button introjs-nextbutton",m.innerHTML=this._options.skipLabel),w.focus(),t.element.className+=" introjs-showElement";var H=g(t.element,"position");"absolute"!==H&&"relative"!==H&&"fixed"!==H&&(t.element.className+=" introjs-relativePosition");for(var U=t.element.parentNode;null!=U&&"body"!==U.tagName.toLowerCase();){var W=g(U,"z-index"),V=parseFloat(g(U,"opacity")),B=g(U,"transform")||g(U,"-webkit-transform")||g(U,"-moz-transform")||g(U,"-ms-transform")||g(U,"-o-transform");(/[0-9]+/.test(W)||V<1||"none"!==B&&void 0!==B)&&(U.className+=" introjs-fixParent"),U=U.parentNode}if(!b(t.element)&&this._options.scrollToElement===!0){var Y=t.element.getBoundingClientRect(),K=_().height,G=Y.bottom-(Y.bottom-Y.top),X=Y.bottom-K;G<0||t.element.clientHeight>K?window.scrollBy(0,G-30):window.scrollBy(0,X+100)}"undefined"!=typeof this._introAfterChangeCallback&&this._introAfterChangeCallback.call(this,t.element)}function g(t,e){var n="";return t.currentStyle?n=t.currentStyle[e]:document.defaultView&&document.defaultView.getComputedStyle&&(n=document.defaultView.getComputedStyle(t,null).getPropertyValue(e)),n&&n.toLowerCase?n.toLowerCase():n}function y(t){var e=t.parentNode;return"HTML"!==e.nodeName&&("fixed"==g(t,"position")||y(e))}function _(){if(void 0!=window.innerWidth)return{width:window.innerWidth,height:window.innerHeight};var t=document.documentElement;return{width:t.clientWidth,height:t.clientHeight}}function b(t){var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom+80<=window.innerHeight&&e.right<=window.innerWidth}function w(t){var e=document.createElement("div"),n="",r=this;if(e.className="introjs-overlay","body"===t.tagName.toLowerCase())n+="top: 0;bottom: 0; left: 0;right: 0;position: fixed;",e.setAttribute("style",n);else{var i=A(t);i&&(n+="width: "+i.width+"px; height:"+i.height+"px; top:"+i.top+"px;left: "+i.left+"px;",e.setAttribute("style",n))}return t.appendChild(e),e.onclick=function(){1==r._options.exitOnOverlayClick&&(void 0!=r._introExitCallback&&r._introExitCallback.call(r),s.call(r,t))},setTimeout(function(){n+="opacity: "+r._options.overlayOpacity.toString()+";",e.setAttribute("style",n)},10),!0}function x(){var t=this._targetElement.querySelector(".introjs-hintReference");if(t){var e=t.getAttribute("data-step");return t.parentNode.removeChild(t),e}}function $(t){if(this._introItems=[],this._options.hints)for(var e=0,n=this._options.hints.length;e<n;e++){var i=r(this._options.hints[e]);"string"==typeof i.element&&(i.element=document.querySelector(i.element)),i.hintPosition=i.hintPosition||"top-middle",null!=i.element&&this._introItems.push(i)}else{var o=t.querySelectorAll("*[data-hint]");if(o.length<1)return!1;for(var e=0,n=o.length;e<n;e++){var a=o[e];this._introItems.push({element:a,hint:a.getAttribute("data-hint"),hintPosition:a.getAttribute("data-hintPosition")||this._options.hintPosition,tooltipClass:a.getAttribute("data-tooltipClass"),position:a.getAttribute("data-position")||this._options.tooltipPosition})}}S.call(this),document.addEventListener?(document.addEventListener("click",x.bind(this),!1),window.addEventListener("resize",k.bind(this),!0)):document.attachEvent&&(document.attachEvent("onclick",x.bind(this)),document.attachEvent("onresize",k.bind(this)))}function k(){for(var t=0,e=this._introItems.length;t<e;t++){var n=this._introItems[t];"undefined"!=typeof n.targetElement&&E.call(this,n.hintPosition,n.element,n.targetElement)}}function C(t){x.call(this);var e=this._targetElement.querySelector('.introjs-hint[data-step="'+t+'"]');
e&&(e.className+=" introjs-hidehint"),"undefined"!=typeof this._hintCloseCallback&&this._hintCloseCallback.call(this,t)}function S(){var t=this,e=document.querySelector(".introjs-hints");if(null!=e)n=e;else{var n=document.createElement("div");n.className="introjs-hints"}for(var r=0,i=this._introItems.length;r<i;r++){var o=this._introItems[r];if(!document.querySelector('.introjs-hint[data-step="'+r+'"]')){var a=document.createElement("a");v(a),function(e,n,r){e.onclick=function(i){var o=i?i:window.event;o.stopPropagation&&o.stopPropagation(),null!=o.cancelBubble&&(o.cancelBubble=!0),T.call(t,e,n,r)}}(a,o,r),a.className="introjs-hint",y(o.element)&&(a.className+=" introjs-fixedhint");var s=document.createElement("div");s.className="introjs-hint-dot";var u=document.createElement("div");u.className="introjs-hint-pulse",a.appendChild(s),a.appendChild(u),a.setAttribute("data-step",r),o.targetElement=o.element,o.element=a,E.call(this,o.hintPosition,a,o.targetElement),n.appendChild(a)}}document.body.appendChild(n),"undefined"!=typeof this._hintsAddedCallback&&this._hintsAddedCallback.call(this)}function E(t,e,n){var r=A.call(this,n);switch(t){default:case"top-left":e.style.left=r.left+"px",e.style.top=r.top+"px";break;case"top-right":e.style.left=r.left+r.width+"px",e.style.top=r.top+"px";break;case"bottom-left":e.style.left=r.left+"px",e.style.top=r.top+r.height+"px";break;case"bottom-right":e.style.left=r.left+r.width+"px",e.style.top=r.top+r.height+"px";break;case"bottom-middle":e.style.left=r.left+r.width/2+"px",e.style.top=r.top+r.height+"px";break;case"top-middle":e.style.left=r.left+r.width/2+"px",e.style.top=r.top+"px"}}function T(t,e,n){"undefined"!=typeof this._hintClickCallback&&this._hintClickCallback.call(this,t,e,n);var r=x.call(this);if(parseInt(r,10)!=n){var i=document.createElement("div"),o=document.createElement("div"),a=document.createElement("div"),s=document.createElement("div");i.className="introjs-tooltip",i.onclick=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},o.className="introjs-tooltiptext";var l=document.createElement("p");l.innerHTML=e.hint;var c=document.createElement("a");c.className="introjs-button",c.innerHTML=this._options.hintButtonLabel,c.onclick=C.bind(this,n),o.appendChild(l),o.appendChild(c),a.className="introjs-arrow",i.appendChild(a),i.appendChild(o),this._currentStep=t.getAttribute("data-step"),s.className="introjs-tooltipReferenceLayer introjs-hintReference",s.setAttribute("data-step",t.getAttribute("data-step")),p.call(this,s),s.appendChild(i),document.body.appendChild(s),u.call(this,t,i,a,null,!0)}}function A(t){var e={};e.width=t.offsetWidth,e.height=t.offsetHeight;for(var n=0,r=0;t&&!isNaN(t.offsetLeft)&&!isNaN(t.offsetTop);)n+=t.offsetLeft,r+=t.offsetTop,t=t.offsetParent;return e.top=r,e.left=n,e}function D(){var t=parseInt(this._currentStep+1,10);return t/this._introItems.length*100}function F(t,e){var n={};for(var r in t)n[r]=t[r];for(var r in e)n[r]=e[r];return n}var O="2.1.0",j=function(t){if("object"==typeof t)return new e(t);if("string"==typeof t){var n=document.querySelector(t);if(n)return new e(n);throw new Error("There is no element with given selector.")}return new e(document.body)};return j.version=O,j.fn=e.prototype={clone:function(){return new e(this)},setOption:function(t,e){return this._options[t]=e,this},setOptions:function(t){return this._options=F(this._options,t),this},start:function(){return n.call(this,this._targetElement),this},goToStep:function(t){return i.call(this,t),this},nextStep:function(){return o.call(this),this},previousStep:function(){return a.call(this),this},exit:function(){return s.call(this,this._targetElement),this},refresh:function(){return p.call(this,document.querySelector(".introjs-helperLayer")),p.call(this,document.querySelector(".introjs-tooltipReferenceLayer")),k.call(this),this},onbeforechange:function(t){if("function"!=typeof t)throw new Error("Provided callback for onbeforechange was not a function");return this._introBeforeChangeCallback=t,this},onchange:function(t){if("function"!=typeof t)throw new Error("Provided callback for onchange was not a function.");return this._introChangeCallback=t,this},onafterchange:function(t){if("function"!=typeof t)throw new Error("Provided callback for onafterchange was not a function");return this._introAfterChangeCallback=t,this},oncomplete:function(t){if("function"!=typeof t)throw new Error("Provided callback for oncomplete was not a function.");return this._introCompleteCallback=t,this},onhintsadded:function(t){if("function"!=typeof t)throw new Error("Provided callback for onhintsadded was not a function.");return this._hintsAddedCallback=t,this},onhintclick:function(t){if("function"!=typeof t)throw new Error("Provided callback for onhintclick was not a function.");return this._hintClickCallback=t,this},onhintclose:function(t){if("function"!=typeof t)throw new Error("Provided callback for onhintclose was not a function.");return this._hintCloseCallback=t,this},onexit:function(t){if("function"!=typeof t)throw new Error("Provided callback for onexit was not a function.");return this._introExitCallback=t,this},addHints:function(){return $.call(this,this._targetElement),this},hideHint:function(t){return C.call(this,t),this}},t.introJs=j,j}),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.dragula=t()}}(function(){return function t(e,n,r){function i(a,s){if(!n[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(t){var n=e[a][1][t];return i(n?n:t)},c,c.exports,t,e,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,e,n){"use strict";function r(t){var e=a[t];return e?e.lastIndex=0:a[t]=e=new RegExp(s+t+u,"g"),e}function i(t,e){var n=t.className;n.length?r(e).test(n)||(t.className+=" "+e):t.className=e}function o(t,e){t.className=t.className.replace(r(e)," ").trim()}var a={},s="(?:^|\\s)",u="(?:\\s|$)";e.exports={add:i,rm:o}},{}],2:[function(t,e,n){(function(n){"use strict";function r(t,e){function n(t){return ct.containers.indexOf(t)!==-1||lt.isContainer(t)}function r(t){var e=t?"remove":"add";i($,e,"mousedown",C),i($,e,"mouseup",M)}function s(t){var e=t?"remove":"add";i($,e,"mousemove",S)}function v(t){var e=t?"remove":"add";b[e]($,"selectstart",k),b[e]($,"click",k)}function g(){r(!0),M({})}function k(t){st&&t.preventDefault()}function C(t){et=t.clientX,nt=t.clientY;var e=1!==o(t)||t.metaKey||t.ctrlKey;if(!e){var n=t.target,r=E(n);r&&(st=r,s(),"mousedown"===t.type&&(d(n)?n.focus():t.preventDefault()))}}function S(t){if(st){if(0===o(t))return void M({});if(void 0===t.clientX||t.clientX!==et||void 0===t.clientY||t.clientY!==nt){if(lt.ignoreInputTextSelection){var e=y("clientX",t),n=y("clientY",t),r=x.elementFromPoint(e,n);if(d(r))return}var i=st;s(!0),v(),O(),D(i);var u=a(Q);Z=y("pageX",t)-u.left,tt=y("pageY",t)-u.top,w.add(ot||Q,"gu-transit"),W(),q(t)}}}function E(t){if(!(ct.dragging&&X||n(t))){for(var e=t;p(t)&&n(p(t))===!1;){if(lt.invalid(t,e))return;if(t=p(t),!t)return}var r=p(t);if(r&&!lt.invalid(t,e)){var i=lt.moves(t,r,e,m(t));if(i)return{item:t,source:r}}}}function T(t){return!!E(t)}function A(t){var e=E(t);e&&D(e)}function D(t){K(t.item,t.source)&&(ot=t.item.cloneNode(!0),ct.emit("cloned",ot,t.item,"copy")),J=t.source,Q=t.item,rt=it=m(t.item),ct.dragging=!0,ct.emit("drag",Q,J)}function F(){return!1}function O(){if(ct.dragging){var t=ot||Q;I(t,p(t))}}function j(){st=!1,s(!0),v(!0)}function M(t){if(j(),ct.dragging){var e=ot||Q,n=y("clientX",t),r=y("clientY",t),i=u(X,n,r),o=z(i,n,r);o&&(ot&&lt.copySortSource||!ot||o!==J)?I(e,o):lt.removeOnSpill?P():N()}}function I(t,e){var n=p(t);ot&&lt.copySortSource&&e===J&&n.removeChild(Q),L(e)?ct.emit("cancel",t,J,J):ct.emit("drop",t,e,J,it),R()}function P(){if(ct.dragging){var t=ot||Q,e=p(t);e&&e.removeChild(t),ct.emit(ot?"cancel":"remove",t,e,J),R()}}function N(t){if(ct.dragging){var e=arguments.length>0?t:lt.revertOnSpill,n=ot||Q,r=p(n),i=L(r);i===!1&&e&&(ot?r.removeChild(ot):J.insertBefore(n,rt)),i||e?ct.emit("cancel",n,J,J):ct.emit("drop",n,r,J,it),R()}}function R(){var t=ot||Q;j(),V(),t&&w.rm(t,"gu-transit"),at&&clearTimeout(at),ct.dragging=!1,ut&&ct.emit("out",t,ut,J),ct.emit("dragend",t),J=Q=ot=rt=it=at=ut=null}function L(t,e){var n;return n=void 0!==e?e:X?it:m(ot||Q),t===J&&n===rt}function z(t,e,r){function i(){var i=n(o);if(i===!1)return!1;var a=B(o,t),s=Y(o,a,e,r),u=L(o,s);return!!u||lt.accepts(Q,o,J,s)}for(var o=t;o&&!i();)o=p(o);return o}function q(t){function e(t){ct.emit(t,l,ut,J)}function n(){h&&e("over")}function r(){ut&&e("out")}if(X){t.preventDefault();var i=y("clientX",t),o=y("clientY",t),a=i-Z,s=o-tt;X.style.left=a+"px",X.style.top=s+"px";var l=ot||Q,c=u(X,i,o),f=z(c,i,o),h=null!==f&&f!==ut;(h||null===f)&&(r(),ut=f,n());var d=p(l);if(f===J&&ot&&!lt.copySortSource)return void(d&&d.removeChild(l));var v,g=B(f,c);if(null!==g)v=Y(f,g,i,o);else{if(lt.revertOnSpill!==!0||ot)return void(ot&&d&&d.removeChild(l));v=rt,f=J}(null===v&&h||v!==l&&v!==m(l))&&(it=v,f.insertBefore(l,v),ct.emit("shadow",l,f,J))}}function H(t){w.rm(t,"gu-hide")}function U(t){ct.dragging&&w.add(t,"gu-hide")}function W(){if(!X){var t=Q.getBoundingClientRect();X=Q.cloneNode(!0),X.style.width=f(t)+"px",X.style.height=h(t)+"px",w.rm(X,"gu-transit"),w.add(X,"gu-mirror"),lt.mirrorContainer.appendChild(X),i($,"add","mousemove",q),w.add(lt.mirrorContainer,"gu-unselectable"),ct.emit("cloned",X,Q,"mirror")}}function V(){X&&(w.rm(lt.mirrorContainer,"gu-unselectable"),i($,"remove","mousemove",q),p(X).removeChild(X),X=null)}function B(t,e){for(var n=e;n!==t&&p(n)!==t;)n=p(n);return n===$?null:n}function Y(t,e,n,r){function i(){var e,i,o,a=t.children.length;for(e=0;e<a;e++){if(i=t.children[e],o=i.getBoundingClientRect(),s&&o.left+o.width/2>n)return i;if(!s&&o.top+o.height/2>r)return i}return null}function o(){var t=e.getBoundingClientRect();return a(s?n>t.left+f(t)/2:r>t.top+h(t)/2)}function a(t){return t?m(e):e}var s="horizontal"===lt.direction,u=e!==t?o():i();return u}function K(t,e){return"boolean"==typeof lt.copy?lt.copy:lt.copy(t,e)}var G=arguments.length;1===G&&Array.isArray(t)===!1&&(e=t,t=[]);var X,J,Q,Z,tt,et,nt,rt,it,ot,at,st,ut=null,lt=e||{};void 0===lt.moves&&(lt.moves=c),void 0===lt.accepts&&(lt.accepts=c),void 0===lt.invalid&&(lt.invalid=F),void 0===lt.containers&&(lt.containers=t||[]),void 0===lt.isContainer&&(lt.isContainer=l),void 0===lt.copy&&(lt.copy=!1),void 0===lt.copySortSource&&(lt.copySortSource=!1),void 0===lt.revertOnSpill&&(lt.revertOnSpill=!1),void 0===lt.removeOnSpill&&(lt.removeOnSpill=!1),void 0===lt.direction&&(lt.direction="vertical"),void 0===lt.ignoreInputTextSelection&&(lt.ignoreInputTextSelection=!0),void 0===lt.mirrorContainer&&(lt.mirrorContainer=x.body);var ct=_({containers:lt.containers,start:A,end:O,cancel:N,remove:P,destroy:g,canMove:T,dragging:!1});return lt.removeOnSpill===!0&&ct.on("over",H).on("out",U),r(),ct}function i(t,e,r,i){var o={mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"},a={mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"},s={mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"};n.navigator.pointerEnabled?b[e](t,a[r],i):n.navigator.msPointerEnabled?b[e](t,s[r],i):(b[e](t,o[r],i),b[e](t,r,i))}function o(t){if(void 0!==t.touches)return t.touches.length;if(void 0!==t.which&&0!==t.which)return t.which;if(void 0!==t.buttons)return t.buttons;var e=t.button;return void 0!==e?1&e?1:2&e?3:4&e?2:0:void 0}function a(t){var e=t.getBoundingClientRect();return{left:e.left+s("scrollLeft","pageXOffset"),top:e.top+s("scrollTop","pageYOffset")}}function s(t,e){return"undefined"!=typeof n[e]?n[e]:$.clientHeight?$[t]:x.body[t]}function u(t,e,n){var r,i=t||{},o=i.className;return i.className+=" gu-hide",r=x.elementFromPoint(e,n),i.className=o,r}function l(){return!1}function c(){return!0}function f(t){return t.width||t.right-t.left}function h(t){return t.height||t.bottom-t.top}function p(t){return t.parentNode===x?null:t.parentNode}function d(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||v(t)}function v(t){return!!t&&("false"!==t.contentEditable&&("true"===t.contentEditable||v(p(t))))}function m(t){function e(){var e=t;do e=e.nextSibling;while(e&&1!==e.nodeType);return e}return t.nextElementSibling||e()}function g(t){return t.targetTouches&&t.targetTouches.length?t.targetTouches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t}function y(t,e){var n=g(e),r={pageX:"clientX",pageY:"clientY"};return t in r&&!(t in n)&&r[t]in n&&(t=r[t]),n[t]}var _=t("contra/emitter"),b=t("crossvent"),w=t("./classes"),x=document,$=x.documentElement;e.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./classes":1,"contra/emitter":4,crossvent:8}],3:[function(t,e,n){"use strict";var r=t("ticky");e.exports=function(t,e,n){t&&r(function(){t.apply(n||null,e||[])})}},{ticky:6}],4:[function(t,e,n){"use strict";var r=t("atoa"),i=t("./debounce");e.exports=function(t,e){var n=e||{},o={};return void 0===t&&(t={}),t.on=function(e,n){return o[e]?o[e].push(n):o[e]=[n],t},t.once=function(e,n){return n._once=!0,t.on(e,n),t},t.off=function(e,n){var r=arguments.length;if(1===r)delete o[e];else if(0===r)o={};else{var i=o[e];if(!i)return t;i.splice(i.indexOf(n),1)}return t},t.emit=function(){var e=r(arguments);return t.emitterSnapshot(e.shift()).apply(this,e)},t.emitterSnapshot=function(e){var a=(o[e]||[]).slice(0);return function(){var o=r(arguments),s=this||t;if("error"===e&&n["throws"]!==!1&&!a.length)throw 1===o.length?o[0]:o;return a.forEach(function(r){n.async?i(r,o,s):r.apply(s,o),r._once&&t.off(e,r)}),t}},t}},{"./debounce":3,atoa:5}],5:[function(t,e,n){e.exports=function(t,e){return Array.prototype.slice.call(t,e)}},{}],6:[function(t,e,n){var r,i="function"==typeof setImmediate;r=i?function(t){setImmediate(t)}:function(t){setTimeout(t,0)},e.exports=r},{}],7:[function(t,e,n){(function(t){function n(){try{var t=new r("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(e){}return!1}var r=t.CustomEvent;e.exports=n()?r:"function"==typeof document.createEvent?function(t,e){var n=document.createEvent("CustomEvent");return e?n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):n.initCustomEvent(t,!1,!1,void 0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.bubbles=Boolean(e.bubbles),n.cancelable=Boolean(e.cancelable),n.detail=e.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],8:[function(t,e,n){(function(n){"use strict";function r(t,e,n,r){return t.addEventListener(e,n,r)}function i(t,e,n){return t.attachEvent("on"+e,l(t,e,n))}function o(t,e,n,r){return t.removeEventListener(e,n,r)}function a(t,e,n){var r=c(t,e,n);if(r)return t.detachEvent("on"+e,r)}function s(t,e,n){function r(){var t;return d.createEvent?(t=d.createEvent("Event"),t.initEvent(e,!0,!0)):d.createEventObject&&(t=d.createEventObject()),t}function i(){return new h(e,{detail:n})}var o=p.indexOf(e)===-1?i():r();t.dispatchEvent?t.dispatchEvent(o):t.fireEvent("on"+e,o)}function u(t,e,r){return function(e){var i=e||n.event;i.target=i.target||i.srcElement,i.preventDefault=i.preventDefault||function(){i.returnValue=!1},i.stopPropagation=i.stopPropagation||function(){i.cancelBubble=!0},i.which=i.which||i.keyCode,r.call(t,i)}}function l(t,e,n){var r=c(t,e,n)||u(t,e,n);return g.push({wrapper:r,element:t,type:e,fn:n}),r}function c(t,e,n){var r=f(t,e,n);if(r){var i=g[r].wrapper;return g.splice(r,1),i}}function f(t,e,n){var r,i;for(r=0;r<g.length;r++)if(i=g[r],i.element===t&&i.type===e&&i.fn===n)return r}var h=t("custom-event"),p=t("./eventmap"),d=n.document,v=r,m=o,g=[];n.addEventListener||(v=i,m=a),e.exports={add:v,remove:m,fabricate:s}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./eventmap":9,"custom-event":7}],9:[function(t,e,n){(function(t){"use strict";var n=[],r="",i=/^on/;for(r in t)i.test(r)&&n.push(r.slice(2));e.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[2])(2)}),function(){function t(t){this.listeners={},this.__context=t||this}function n(t,e){function n(t,e,n){Object.defineProperty(t,e,{value:n,configurable:!0,writable:!1})}for(var r in e)n(this,r,e[r]);n(this,"x",t.x-e.left+1),n(this,"y",t.y-e.top+1),n(this,"north",(e.bottom-e.top)/2-this.y),n(this,"south",-(e.bottom-e.top)/2+this.y),n(this,"east",(e.right-e.left)/2-this.x),n(this,"west",-(e.right-e.left)/2+this.x)}function r(t){function r(t){y=Date.now(),s(t),f.down=!0,f.up=!1,f.current&&(f.origin=f.current,f.emitter.emit("down",f.current,m)),$=f.x,k=f.y}function o(t){s(t),f.emitter.emit("move",f.current,m),f.down&&f.current&&f.emitter.emit("stroke",f.current,m)}function a(t){return f.down=!1,f.up=!0,f.current&&f.emitter.emit("up",f.current,m),t.targetTouches&&!(f.y>k-S&&f.y<k+S&&f.x>$-S&&f.x<$+S||C)?(f.previous=null,f.origin=null,t.preventDefault(),!1):(C=!1,f.previous=null,void(f.origin=null))}function s(t){var e,r,o,a,s=null,u=null;if(t=t||window.event,a=t.target||t.srcElement,t.targetTouches?(t.pageX=t.targetTouches[0].clientX,t.pageY=t.targetTouches[0].clientY,t.clientX=t.targetTouches[0].clientX,t.clientY=t.targetTouches[0].clientY):null===t.pageX&&null!==t.clientX&&(e=t.target&&t.target.ownerDocument||document,r=e.documentElement,o=e.body,t.pageX=t.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),t.pageY=t.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),f.x&&f.y&&(t.pageX<f.x?b.h="left":t.pageX>f.x&&(b.h="right"),t.pageY<f.y?b.v="up":t.pageY>f.y&&(b.v="down"),w=f.x,x=f.y),_={},_.x=t.clientX,_.y=t.clientY,null===f.current||f.outside(f.current)){for(var l=0;l<h.length;l++)if(h[l]===a||f.inside(h[l])){s=h[l];break}u=f.current,s&&(f.previous=f.current,f.current=s)}v=f.current?i(f.current):null,m=v?new n(f,v):null,u&&(s||(f.current=null),f.emitter.emit("leave",u,m)),s&&f.emitter.emit("enter",f.current,m)}function l(t,e){for(var n=0;n<T[t].length;n++)if(T[t][n].callback===e)return void T[t].splice(n,1)}function c(t,e,n){"undefined"==typeof n&&(n=e,e=null),T[t].push({data:e,callback:n})}var f=this,h=[];"undefined"==typeof t.length&&(t=[t]);for(var p=0;p<t.length;p++)if(void 0!==t[p])if("string"==typeof t[p])try{h.push(document.querySelector(e))}catch(d){throw new Error(e+" is not a valid selector used by pointer.")}else h.push(t[p]);var v,m,g,y,_={},b={},w=-1,x=-1,$=-1,k=-1,C=!1,S=10,E=!1,T={hold:[]};this.emitter=new u(this),this.origin=null,this.current=null,this.previous=null,window.addEventListener("mousedown",r,!1),window.addEventListener("mousemove",o,!1),window.addEventListener("mouseup",a,!1),window.addEventListener("touchstart",r,!1),window.addEventListener("touchmove",o,!1),window.addEventListener("touchend",a,!1),window.addEventListener("scroll",function(t){C=!0,clearTimeout(E),E=setTimeout(function(){C=!1},100)}),Object.defineProperty(this,"speedX",{get:function(){var t=Date.now()/1e3,e=t-g,n=f.x-w;return g=t,Math.round(n/e)}}),Object.defineProperty(this,"speedY",{get:function(){var t=Date.now()/1e3,e=t-g,n=f.y-x;return g=t,Math.round(n/e)}}),Object.defineProperty(this,"x",{get:function(){return _.x}}),Object.defineProperty(this,"y",{get:function(){return _.y}}),Object.defineProperty(this,"h",{get:function(){return b.h}}),Object.defineProperty(this,"v",{get:function(){return b.v}}),this.emitter.on("up",function(t,e){if(y)for(var n=0;n<T.hold.length;n++)Date.now()>y+(T.hold[n].data||2e3)&&T.hold[n].callback.call(this,t,e);y=0}),this.on=function(t,e){return T[t]?(c(t,e,arguments[2]),this):(this.emitter.on(t,e),this)},this.off=function(t,e){return T[t]?(l(t,e),this):(this.emitter.off(t,e),this)},this.add=function(t){if("string"==typeof t)try{h.push(document.querySelector(e))}catch(n){throw new Error(e+" is not a valid selector, and can't be used add to pointer.")}else if(!t)throw new Error(e+" can not be added to pointer.");h.push(t)},this.destroy=function(){window.removeEventListener("mousedown",r,!1),window.removeEventListener("mousemove",o,!1),window.removeEventListener("mouseup",a,!1),window.removeEventListener("touchstart",r,!1),window.removeEventListener("touchmove",o,!1),window.removeEventListener("touchend",a,!1),h=null,f=null,_=null,b=null}}function i(t){return t===window?{top:0,left:0,right:window.innerWidth,bottom:window.innerHeight,width:window.innerWidth,height:window.innerHeight}:t.getBoundingClientRect()}function o(t,e){function n(){v=!0}function r(){v=!1}function o(e){if(f.autoScroll()&&e.target){var n,r=e.target;if(!_||!a(p,_))if(!_&&r){for(_=null;r=r.parentNode;)for(var i=0;i<t.length;i++)if(t[i]===r&&a(p,t[i])){_=t[i];break}}else{n=_,_=null;for(var i=0;i<t.length;i++)t[i]!==n&&a(p,t[i])&&(_=t[i])}m&&s(m),_&&s(_)}}function s(t){var e=i(t);p.y<e.top+f.margin?u(t,-1,e):p.y>e.bottom-f.margin&&u(t,1,e),p.x<e.left+f.margin?c(t,-1,e):p.x>e.right-f.margin&&c(t,1,e)}function u(t,e,n){f.autoScroll()&&(f.scrollWhenOutside||a(p,t,n))&&(t===window?window.scrollTo(t.pageXOffset,t.pageYOffset+e):t.scrollTop=t.scrollTop+e,setTimeout(function(){p.y<n.top+f.margin?u(t,e,n):p.y>n.bottom-f.margin&&u(t,e,n)},f.interval))}function c(t,e,n){f.autoScroll()&&(f.scrollWhenOutside||a(p,t,n))&&(t===window?window.scrollTo(t.pageXOffset+e,t.pageYOffset):t.scrollLeft=t.scrollLeft+e,setTimeout(function(){p.x<n.left+f.margin?c(t,e,n):p.x>n.right-f.margin&&c(t,e,n)},f.interval))}var f=this,h=2;e=e||{},this.margin=e.margin||-1,this.scrolling=!1,this.scrollWhenOutside=e.scrollWhenOutside||!1;var p={},d=l(p),v=!1;window.addEventListener("mousemove",d,!1),window.addEventListener("touchmove",d,!1),isNaN(e.pixels)||(h=e.pixels),"boolean"==typeof e.autoScroll?this.autoScroll=e.autoScroll?function(){return!0}:function(){return!1}:"undefined"==typeof e.autoScroll?this.autoScroll=function(){return!1}:"function"==typeof e.autoScroll&&(this.autoScroll=e.autoScroll),this.destroy=function(){window.removeEventListener("mousemove",d,!1),window.removeEventListener("touchmove",d,!1),window.removeEventListener("mousedown",n,!1),window.removeEventListener("touchstart",n,!1),window.removeEventListener("mouseup",r,!1),window.removeEventListener("touchend",r,!1)};for(var m=null,g=[],y=0;y<t.length;y++){if(t[y]===window){m=window;break}g.push(t[y])}t=g,g=null,Object.defineProperties(this,{down:{get:function(){return v}},interval:{get:function(){return 1/h*1e3}},pixels:{set:function(t){h=t},get:function(){return h}}}),window.addEventListener("mousedown",n,!1),window.addEventListener("touchstart",n,!1),window.addEventListener("mouseup",r,!1),window.addEventListener("touchend",r,!1);var _;window.addEventListener("mousemove",o,!1),window.addEventListener("touchmove",o,!1)}function i(t){if(t===window)return{top:0,left:0,right:window.innerWidth,bottom:window.innerHeight,width:window.innerWidth,height:window.innerHeight};try{return t.getBoundingClientRect()}catch(e){throw new TypeError("Can't call getBoundingClientRect on "+t)}}function a(t,e,n){return n=n||i(e),t.y>n.top&&t.y<n.bottom&&t.x>n.left&&t.x<n.right}function s(t,e){return new o(t,e)}t.prototype={constructor:t,on:function(t,e){return this.listeners[t]=this.listeners[t]||[],this.listeners[t].push(e),this},one:function(t,e){function n(){return e.apply(this,arguments),this.off(t,n),this}return this.on(t,n)},emit:function(t){if("undefined"==typeof this.listeners[t]||!this.listeners[t].length)return this;var e=Array.prototype.slice.call(arguments,1),n=this.listeners[t].length;do this.listeners[t][--n].apply(this.__context,e);while(n);return this},off:function(t,e){return void 0!==this.listeners[t]&&this.listeners[t].length?(this.listeners[t]=this.listeners[t].filter(function(t){return t!==e}),this):this},dispose:function(){for(var t in this)this[t]=null}};var u=t;Date.now||(Date.now=function(){return(new Date).getTime()}),r.prototype={constructor:r,inside:function(t){if(!t)throw new TypeError("Cannot be inside "+t);var e=i(t);return this.y>e.top&&this.y<e.bottom&&this.x>e.left&&this.x<e.right},outside:function(t){if(!t)throw new TypeError("Cannot be outside "+t);return!this.inside(t)}};var l=function(t){return function(e){if(e=e||window.event,t.target=e.target||e.srcElement||e.originalTarget,t.element=this,t.type=e.type,e.targetTouches)t.x=e.targetTouches[0].clientX,t.y=e.targetTouches[0].clientY,t.pageX=e.pageX,t.pageY=e.pageY;else{if(null===e.pageX&&null!==e.clientX){var n=e.target&&e.target.ownerDocument||document,r=n.documentElement,i=n.body;t.pageX=e.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)}else t.pageX=e.pageX,t.pageY=e.pageY;t.x=e.clientX,t.y=e.clientY}}};window.autoScroll=s}(),function(){var t="ui-multisortable-multiple",e="main-drag-item",n=!1,r=null,i=function(){var t=(l.items.elm,l.items.container,l.items.shadow),e=t.position().left,n=t.position().top,r=t.outerHeight();_.forEach(l.items.draggingItems,function(t,i){var o=parseInt(t.data("dragMultipleIndex"),10),a=n+o*r;t.css({top:a,left:e})})},o=function(){n=!1,a();l.items.elm,l.items.container;return document.documentElement.removeEventListener("mousemove",r),l.items={},$("."+e).removeClass(e),$(".tg-backlog-us-mirror").remove(),$(".backlog-us-mirror").removeClass("backlog-us-mirror"),$(".tg-backlog-us-dragging").removeClass("tg-backlog-us-dragging").show(),$("."+t)},a=function(){var t=parseInt(l.items.elm.data("dragMultipleIndex"),10),e=[],n=[];_.forEach(l.items.draggedItemsOriginal,function(r){parseInt($(r).data("dragMultipleIndex"),10)>t?e.push(r):n.push(r)}),e.reverse(),_.forEach(e,function(t){$(t).insertAfter(l.items.elm)}),_.forEach(n,function(t){$(t).insertBefore(l.items.elm)})},s=function(e,n){var r=$(n).find("."+t);return!!($(e).hasClass(t)&&r.length>1)},u=function(t){var e=[],n=[],r=!1;_.forEach(t,function(t,i){return 0===$(t).data("dragMultipleIndex")?void(r=!0):void(r?n.push(t):e.push(t))}),e.reverse(),_.forEach(n,function(t,e){$(t).data("dragMultipleIndex",e+1)}),_.forEach(e,function(t,e){$(t).data("dragMultipleIndex",-e-1)})},l={};l.prepare=function(r,i){n=!0;var o=$(i).find("."+t);$(r).data("dragmultiple:originalPosition",$(r).position()).data("dragMultipleActive",!0),l.items={},l.items.elm=$(r),l.items.container=$(i),l.items.elm.data("dragMultipleIndex",0),u(o),l.items.shadow=$(".gu-mirror"),l.items.elm.addClass(e),o=_.filter(o,function(t){return!$(t).hasClass(e)}),l.items.draggedItemsOriginal=o;var a=_.map(o,function(t){return clone=$(t).clone(!0),clone.addClass("backlog-us-mirror").addClass("tg-backlog-us-mirror").data("dragmultiple:originalPosition",$(t).position()).data("dragMultipleActive",!0).css({zIndex:"9999",opacity:"0.8",position:"fixed",width:l.items.elm.outerWidth(),height:l.items.elm.outerHeight()}),$(t).hide().addClass("tg-backlog-us-dragging"),clone});l.items.draggingItems=a,$(document.body).append(a)},l.start=function(t,e){s(t,e)&&document.documentElement.addEventListener("mousemove",function(){n||l.prepare(t,e),i(),r=arguments.callee})},l.stop=function(){return n?o():[]},window.dragMultiple=l}(),function(){function t(){return++s}function e(e,n){var r=e&&e.$$hashKey;if(r)return"function"==typeof r&&(r=e.$$hashKey()),r;var i=typeof e;return r="function"==i||"object"==i&&null!==e?e.$$hashKey=i+":"+(n||t)():i+":"+e}function n(){return Object.create(null)}function r(t){if(null==t||i(t))return!1;var e=t.length;return!(t.nodeType!==a||!e)||(angular.isString(t)||angular.isArray(t)||0===e||"number"==typeof e&&e>0&&e-1 in t)}function i(t){return t&&t.window===t}function o(t){var e=t[0],n=t[t.length-1],r=[e];do{if(e=e.nextSibling,!e)break;r.push(e)}while(e!==n);return u(r)}var a=1,s=0,u=(Array.isArray,$),l=["$parse","$animate",function(t,i){var a="$$NG_REMOVED",s=angular.$$minErr("ngRepeat"),l=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))},c=function(t){return t.clone[0]},f=function(t){return t.clone[t.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(h,p){var d=p.tgRepeat,v=document.createComment(" end ngRepeat: "+d+" "),m=d.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!m)throw s("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",d);var g=m[1],y=m[2],_=m[3],b=m[4];if(m=g.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!m)throw s("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",g);var w=m[3]||m[1],x=m[2];if(_&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(_)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(_)))throw s("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",_);var $,k,C,S,E={$id:e};return b?$=t(b):(C=function(t,n){return e(n)},S=function(t){return t}),function(t,e,h,p,m){$&&(k=function(e,n,r){return x&&(E[x]=e),E[w]=n,E.$index=r,$(t,E)});var g=n();t.$watch(y,function(h){var p=[];h&&h.toJS&&(p=h.toJS());var y,b,$,E,T,A,D,F,O,j,M,I,P=e[0],N=n();if(_&&(t[_]=h),r(p))O=p,F=k||C;else{F=k||S,O=[];for(var R in p)p.hasOwnProperty(R)&&"$"!==R.charAt(0)&&O.push(R)}for(E=O.length,M=new Array(E),y=0;y<E;y++)if(T=p===O?y:O[y],A=p[T],immutable_value=h.get(T),D=F(T,immutable_value,y),g[D])j=g[D],delete g[D],N[D]=j,M[y]=j;else{if(N[D])throw M.forEach(function(t){t&&t.scope&&(g[t.id]=t)}),s("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",d,D,A);M[y]={id:D,scope:void 0,clone:void 0},N[D]=!0}for(var L in g){if(j=g[L],I=o(j.clone),i.leave(I),I[0].parentNode)for(y=0,b=I.length;y<b;y++)I[y][a]=!0;j.scope.$destroy()}for(y=0;y<E;y++)if(T=p===O?y:O[y],A=p[T],immutable_value=h.get(T),j=M[y],j.scope){$=P;do $=$.nextSibling;while($&&$[a]);c(j)!=$&&i.move(o(j.clone),null,u(P)),P=f(j),l(j.scope,y,w,immutable_value,x,T,E)}else m(function(t,e){j.scope=e;var n=v.cloneNode(!1);t[t.length++]=n,i.enter(t,null,u(P)),P=n,j.clone=t,N[j.id]=j,l(j.scope,y,w,immutable_value,x,T,E)});g=N})}}}}];angular.module("tgRepeat",[]).directive("tgRepeat",l)}();var hexcase=0,b64pad="",chrsz=8;!function(){function t(t){var e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"label"in t&&"value"in t?t:{label:t,value:t};this.label=e.label||e.value,this.value=e.value}function e(t,e,n){for(var r in e){var i=e[r],o=t.input.getAttribute("data-"+r.toLowerCase());"number"==typeof i?t[r]=parseInt(o):i===!1?t[r]=null!==o:i instanceof Function?t[r]=null:t[r]=o,t[r]||0===t[r]||(t[r]=r in n?n[r]:i)}}function n(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function r(t,e){return a.call((e||document).querySelectorAll(t))}function i(){r("input.awesomplete").forEach(function(t){new o(t)})}var o=function(t,r){var i=this;this.input=n(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),r=r||{},e(this,{minChars:2,maxItems:10,autoFirst:!1,data:o.DATA,filter:o.FILTER_CONTAINS,sort:o.SORT_BYLENGTH,item:o.ITEM,replace:o.REPLACE},r),this.index=-1,this.container=n.create("div",{className:"awesomplete",around:t}),this.ul=n.create("ul",{hidden:"hidden",inside:this.container}),this.status=n.create("span",{
className:"visually-hidden",role:"status","aria-live":"assertive","aria-relevant":"additions",inside:this.container}),n.bind(this.input,{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(t){var e=t.keyCode;i.opened&&(13===e&&i.selected?(t.preventDefault(),i.select()):27===e?i.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),i[38===e?"previous":"next"]()))}}),n.bind(this.input.form,{submit:this.close.bind(this,{reason:"submit"})}),n.bind(this.ul,{mousedown:function(t){var e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),i.select(e,t.target))}}}),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||r.list||[],o.all.push(this)};o.prototype={set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if(t=n(t),t&&t.children){var e=[];a.apply(t.children).forEach(function(t){if(!t.disabled){var n=t.textContent.trim(),r=t.value||n,i=t.label||n;""!==r&&e.push({label:i,value:r})}}),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return!this.ul.hasAttribute("hidden")},close:function(t){this.opened&&(this.ul.setAttribute("hidden",""),this.index=-1,n.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.ul.removeAttribute("hidden"),this.autoFirst&&this.index===-1&&this["goto"](0),n.fire(this.input,"awesomplete-open")},next:function(){var t=this.ul.children.length;this["goto"](this.index<t-1?this.index+1:-1)},previous:function(){var t=this.ul.children.length;this["goto"](this.selected?this.index-1:t-1)},"goto":function(t){var e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.status.textContent=e[t].textContent,n.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e){if(t?this.index=n.siblingIndex(t):t=this.ul.children[this.index],t){var r=this.suggestions[this.index],i=n.fire(this.input,"awesomplete-select",{text:r,origin:e||t});i&&(this.replace(r),this.close({reason:"select"}),n.fire(this.input,"awesomplete-selectcomplete",{text:r}))}},evaluate:function(){var e=this,n=this.input.value;n.length>=this.minChars&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(r){return new t(e.data(r,n))}).filter(function(t){return e.filter(t,n)}).sort(this.sort).slice(0,this.maxItems),this.suggestions.forEach(function(t){e.ul.appendChild(e.item(t,n))}),0===this.ul.children.length?this.close({reason:"nomatches"}):this.open()):this.close({reason:"nomatches"})}},o.all=[],o.FILTER_CONTAINS=function(t,e){return RegExp(n.regExpEscape(e.trim()),"i").test(t)},o.FILTER_STARTSWITH=function(t,e){return RegExp("^"+n.regExpEscape(e.trim()),"i").test(t)},o.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1},o.ITEM=function(t,e){var r=""===e?t:t.replace(RegExp(n.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return n.create("li",{innerHTML:r,"aria-selected":"false"})},o.REPLACE=function(t){this.input.value=t.value},o.DATA=function(t){return t},Object.defineProperty(t.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),t.prototype.toString=t.prototype.valueOf=function(){return""+this.label};var a=Array.prototype.slice;return n.create=function(t,e){var r=document.createElement(t);for(var i in e){var o=e[i];if("inside"===i)n(o).appendChild(r);else if("around"===i){var a=n(o);a.parentNode.insertBefore(r,a),r.appendChild(a)}else i in r?r[i]=o:r.setAttribute(i,o)}return r},n.bind=function(t,e){if(t)for(var n in e){var r=e[n];n.split(/\s+/).forEach(function(e){t.addEventListener(e,r)})}},n.fire=function(t,e,n){var r=document.createEvent("HTMLEvents");r.initEvent(e,!0,!0);for(var i in n)r[i]=n[i];return t.dispatchEvent(r)},n.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},n.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof Document&&("loading"!==document.readyState?i():document.addEventListener("DOMContentLoaded",i)),o.$=n,o.$$=r,"undefined"!=typeof self&&(self.Awesomplete=o),"object"==typeof module&&module.exports&&(module.exports=o),o}();
//# sourceMappingURL=maps/libs.js.map