grunt-doctrine
Version:
Grunt plugin to convert doctrine xml annotations into backbone models and collections. Useful in conjunction with doctrine apigility. Includes option to scaffold an entire BBB application
2 lines • 464 kB
JavaScript
!function(){var requirejs,require,define;if(function(e){function t(e,t){return g.call(e,t)}function n(e,t){var n,i,o,r,s,a,l,c,d,u,f,h=t&&t.split("/"),p=m.map,b=p&&p["*"]||{};if(e&&"."===e.charAt(0))if(t){for(h=h.slice(0,h.length-1),e=e.split("/"),s=e.length-1,m.nodeIdCompat&&y.test(e[s])&&(e[s]=e[s].replace(y,"")),e=h.concat(e),d=0;d<e.length;d+=1)if(f=e[d],"."===f)e.splice(d,1),d-=1;else if(".."===f){if(1===d&&(".."===e[2]||".."===e[0]))break;d>0&&(e.splice(d-1,2),d-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((h||b)&&p){for(n=e.split("/"),d=n.length;d>0;d-=1){if(i=n.slice(0,d).join("/"),h)for(u=h.length;u>0;u-=1)if(o=p[h.slice(0,u).join("/")],o&&(o=o[i])){r=o,a=d;break}if(r)break;!l&&b&&b[i]&&(l=b[i],c=d)}!r&&l&&(r=l,a=c),r&&(n.splice(0,a,r),e=n.join("/"))}return e}function i(t,n){return function(){return d.apply(e,v.call(arguments,0).concat([t,n]))}}function o(e){return function(t){return n(t,e)}}function r(e){return function(t){h[e]=t}}function s(n){if(t(p,n)){var i=p[n];delete p[n],b[n]=!0,c.apply(e,i)}if(!t(h,n)&&!t(b,n))throw new Error("No "+n);return h[n]}function a(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function l(e){return function(){return m&&m.config&&m.config[e]||{}}}var c,d,u,f,h={},p={},m={},b={},g=Object.prototype.hasOwnProperty,v=[].slice,y=/\.js$/;u=function(e,t){var i,r=a(e),l=r[0];return e=r[1],l&&(l=n(l,t),i=s(l)),l?e=i&&i.normalize?i.normalize(e,o(t)):n(e,t):(e=n(e,t),r=a(e),l=r[0],e=r[1],l&&(i=s(l))),{f:l?l+"!"+e:e,n:e,pr:l,p:i}},f={require:function(e){return i(e)},exports:function(e){var t=h[e];return"undefined"!=typeof t?t:h[e]={}},module:function(e){return{id:e,uri:"",exports:h[e],config:l(e)}}},c=function(n,o,a,l){var c,d,m,g,v,y,w=[],_=typeof a;if(l=l||n,"undefined"===_||"function"===_){for(o=!o.length&&a.length?["require","exports","module"]:o,v=0;v<o.length;v+=1)if(g=u(o[v],l),d=g.f,"require"===d)w[v]=f.require(n);else if("exports"===d)w[v]=f.exports(n),y=!0;else if("module"===d)c=w[v]=f.module(n);else if(t(h,d)||t(p,d)||t(b,d))w[v]=s(d);else{if(!g.p)throw new Error(n+" missing "+d);g.p.load(g.n,i(l,!0),r(d),{}),w[v]=h[d]}m=a?a.apply(h[n],w):void 0,n&&(c&&c.exports!==e&&c.exports!==h[n]?h[n]=c.exports:m===e&&y||(h[n]=m))}else n&&(h[n]=a)},requirejs=require=d=function(t,n,i,o,r){if("string"==typeof t)return f[t]?f[t](n):s(u(t,n).f);if(!t.splice){if(m=t,m.deps&&d(m.deps,m.callback),!n)return;n.splice?(t=n,n=i,i=null):t=e}return n=n||function(){},"function"==typeof i&&(i=o,o=r),o?c(e,t,n,i):setTimeout(function(){c(e,t,n,i)},4),d},d.config=function(e){return d(e)},requirejs._defined=h,define=function(e,n,i){n.splice||(i=n,n=[]),t(h,e)||t(p,e)||(p[e]=[e,n,i])},define.amd={jQuery:!0}}(),define("almond",function(){}),require.config({paths:{vendor:"../vendor",almond:"../vendor/bower/almond/almond",underscore:"../vendor/bower/lodash/dist/lodash.underscore",lodash:"../vendor/bower/lodash/dist/lodash",ldsh:"../vendor/bower/lodash-template-loader/loader",jquery:"../vendor/bower/jquery/jquery",backbone:"../vendor/bower/backbone/backbone",bootstrap:"../vendor/bower/bootstrap/dist/js/bootstrap",layoutmanager:"../vendor/bower/layoutmanager/backbone.layoutmanager","backbone-fetch-cache":"../vendor/backbone-fetch-cache/backbone.fetch-cache","backbone-relational":"../vendor/bower/backbone-relational/backbone-relational","backbone-modelbinder":"../vendor/backbone-modelbinder/Backbone.ModelBinder"},shim:{backbone:{deps:["jquery","underscore"],exports:"Backbone"},bootstrap:["jquery"]}}),define("config",function(){}),function(){function e(e,t,n){for(var i=(n||0)-1,o=e?e.length:0;++i<o;)if(e[i]===t)return i;return-1}function t(t,n){var i=typeof n;if(t=t.cache,"boolean"==i||null==n)return t[n]?0:-1;"number"!=i&&"string"!=i&&(i="object");var o="number"==i?n:v+n;return t=(t=t[i])&&t[o],"object"==i?t&&e(t,n)>-1?0:-1:t?0:-1}function n(e){var t=this.cache,n=typeof e;if("boolean"==n||null==e)t[e]=!0;else{"number"!=n&&"string"!=n&&(n="object");var i="number"==n?e:v+e,o=t[n]||(t[n]={});"object"==n?(o[i]||(o[i]=[])).push(e):o[i]=!0}}function i(e){return e.charCodeAt(0)}function o(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(n>i||"undefined"==typeof n)return 1;if(i>n||"undefined"==typeof i)return-1}return e.index-t.index}function r(e){var t=-1,i=e.length,o=e[0],r=e[i/2|0],s=e[i-1];if(o&&"object"==typeof o&&r&&"object"==typeof r&&s&&"object"==typeof s)return!1;var a=l();a["false"]=a["null"]=a["true"]=a.undefined=!1;var c=l();for(c.array=e,c.cache=a,c.push=n;++t<i;)c.push(e[t]);return c}function s(e){return"\\"+X[e]}function a(){return m.pop()||[]}function l(){return b.pop()||{array:null,cache:null,criteria:null,"false":!1,index:0,"null":!1,number:null,object:null,push:null,string:null,"true":!1,undefined:!1,value:null}}function c(){}function d(e){e.length=0,m.length<w&&m.push(e)}function u(e){var t=e.cache;t&&u(t),e.array=e.cache=e.criteria=e.object=e.number=e.string=e.value=null,b.length<w&&b.push(e)}function f(e,t,n){t||(t=0),"undefined"==typeof n&&(n=e?e.length:0);for(var i=-1,o=n-t||0,r=Array(0>o?0:o);++i<o;)r[i]=e[t+i];return r}function h(n){function m(e){return e&&"object"==typeof e&&!Ki(e)&&Ai.call(e,"__wrapped__")?e:new b(e)}function b(e,t){this.__chain__=!!t,this.__wrapped__=e}function w(e,t,n,i,o){if(n){var r=n(e);if("undefined"!=typeof r)return r}var s=Mt(e);if(!s)return e;var l=Bi.call(e);if(!H[l])return e;var c=Qi[l];switch(l){case $:case V:return new c(+e);case L:case P:return new c(e);case D:return r=c(e.source,M.exec(e)),r.lastIndex=e.lastIndex,r}var u=Ki(e);if(t){var h=!i;i||(i=a()),o||(o=a());for(var p=i.length;p--;)if(i[p]==e)return o[p];r=u?c(e.length):{}}else r=u?f(e):io({},e);return u&&(Ai.call(e,"index")&&(r.index=e.index),Ai.call(e,"input")&&(r.input=e.input)),t?(i.push(e),o.push(r),(u?Wt:so)(e,function(e,s){r[s]=w(e,t,n,i,o)}),h&&(d(i),d(o)),r):r}function X(e,t,n){if("function"!=typeof e)return Un;if("undefined"==typeof t)return e;var i=e.__bindData__||Xi.funcNames&&!e.name;if("undefined"==typeof i){var o=B&&Ci.call(e);Xi.funcNames||!o||R.test(o)||(i=!0),(Xi.funcNames||!i)&&(i=!Xi.funcDecomp||B.test(o),Ji(e,i))}if(i!==!0&&i&&1&i[1])return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)};case 4:return function(n,i,o,r){return e.call(t,n,i,o,r)}}return Tn(e,t)}function K(e,t,n,i){for(var o=(i||0)-1,r=e?e.length:0,s=[];++o<r;){var a=e[o];if(a&&"object"==typeof a&&"number"==typeof a.length&&(Ki(a)||ct(a))){t||(a=K(a,t,n));var l=-1,c=a.length,d=s.length;for(s.length+=c;++l<c;)s[d++]=a[l]}else n||s.push(a)}return s}function G(e,t,n,i,o,r){if(n){var s=n(e,t);if("undefined"!=typeof s)return!!s}if(e===t)return 0!==e||1/e==1/t;var l=typeof e,c=typeof t;if(!(e!==e||e&&Q[l]||t&&Q[c]))return!1;if(null==e||null==t)return e===t;var u=Bi.call(e),f=Bi.call(t);if(u==F&&(u=I),f==F&&(f=I),u!=f)return!1;switch(u){case $:case V:return+e==+t;case L:return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case D:case P:return e==pi(t)}var h=u==q;if(!h){if(Ai.call(e,"__wrapped__ ")||Ai.call(t,"__wrapped__"))return G(e.__wrapped__||e,t.__wrapped__||t,n,i,o,r);if(u!=I)return!1;var p=e.constructor,m=t.constructor;if(p!=m&&!(At(p)&&p instanceof p&&At(m)&&m instanceof m))return!1}var b=!o;o||(o=a()),r||(r=a());for(var g=o.length;g--;)if(o[g]==e)return r[g]==t;var v=0;if(s=!0,o.push(e),r.push(t),h){if(g=e.length,v=t.length,s=v==e.length,!s&&!i)return s;for(;v--;){var y=g,w=t[v];if(i)for(;y--&&!(s=G(e[y],w,n,i,o,r)););else if(!(s=G(e[v],w,n,i,o,r)))break}return s}return ro(t,function(t,a,l){return Ai.call(l,a)?(v++,s=Ai.call(e,a)&&G(e[a],t,n,i,o,r)):void 0}),s&&!i&&ro(e,function(e,t,n){return Ai.call(n,t)?s=--v>-1:void 0}),b&&(d(o),d(r)),s}function Z(e,t,n,i,o){(Ki(t)?Wt:so)(t,function(t,r){var s,a,l=t,c=e[r];if(t&&((a=Ki(t))||ao(t))){for(var d=i.length;d--;)if(s=i[d]==t){c=o[d];break}if(!s){var u;n&&(l=n(c,t),(u="undefined"!=typeof l)&&(c=l)),u||(c=a?Ki(c)?c:[]:ao(c)?c:{}),i.push(t),o.push(c),u||Z(c,t,n,i,o)}}else n&&(l=n(c,t),"undefined"==typeof l&&(l=t)),"undefined"!=typeof l&&(c=l);e[r]=c})}function tt(n,i,o){var s=-1,l=st(),c=n?n.length:0,f=[],h=!i&&c>=y&&l===e,p=o||h?a():f;if(h){var m=r(p);m?(l=t,p=m):(h=!1,p=o?p:(d(p),f))}for(;++s<c;){var b=n[s],g=o?o(b,s,n):b;(i?!s||p[p.length-1]!==g:l(p,g)<0)&&((o||h)&&p.push(g),f.push(b))}return h?(d(p.array),u(p)):o&&d(p),f}function nt(e){return function(t,n,i){var o={};n=m.createCallback(n,i,3);var r=-1,s=t?t.length:0;if("number"==typeof s)for(;++r<s;){var a=t[r];e(o,a,n(a,r,t),t)}else so(t,function(t,i,r){e(o,t,n(t,i,r),r)});return o}}function it(e,t,n,i,o,r){var s=1&t,a=2&t,l=4&t,c=8&t,d=16&t,u=32&t,f=e;if(!a&&!At(e))throw new mi;d&&!n.length&&(t&=-17,d=n=!1),u&&!i.length&&(t&=-33,u=i=!1);var h=e&&e.__bindData__;if(h)return!s||1&h[1]||(h[4]=o),!s&&1&h[1]&&(t|=8),!l||4&h[1]||(h[5]=r),d&&Ri.apply(h[2]||(h[2]=[]),n),u&&Ri.apply(h[3]||(h[3]=[]),i),h[1]|=t,it.apply(null,h);if(s&&!(a||l||u)&&(Xi.fastBind||Ni&&d)){if(d){var p=[o];Ri.apply(p,n)}var m=d?Ni.apply(e,p):Ni.call(e,o)}else m=function(){var h=arguments,p=s?o:this;if((l||d||u)&&(h=Hi.call(h),d&&zi.apply(h,n),u&&Ri.apply(h,i),l&&h.length<r))return t|=16,it(e,c?t:-4&t,h,null,o,r);if(a&&(e=p[f]),this instanceof m){p=ot(e.prototype);var b=e.apply(p,h);return Mt(b)?b:p}return e.apply(p,h)};return Ji(m,Hi.call(arguments)),m}function ot(e){return Mt(e)?Fi(e):{}}function rt(e){return Zi[e]}function st(){var t=(t=m.indexOf)===pn?e:t;return t}function at(e){var t,n;return e&&Bi.call(e)==I&&(t=e.constructor,!At(t)||t instanceof t)?(ro(e,function(e,t){n=t}),"undefined"==typeof n||Ai.call(e,n)):!1}function lt(e){return eo[e]}function ct(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Bi.call(e)==F||!1}function dt(e,t,n,i){return"boolean"!=typeof t&&null!=t&&(i=n,n=t,t=!1),w(e,t,"function"==typeof n&&X(n,i,1))}function ut(e,t,n){return w(e,!0,"function"==typeof t&&X(t,n,1))}function ft(e,t,n){var i;return t=m.createCallback(t,n,3),so(e,function(e,n,o){return t(e,n,o)?(i=n,!1):void 0}),i}function ht(e,t,n){var i;return t=m.createCallback(t,n,3),mt(e,function(e,n,o){return t(e,n,o)?(i=n,!1):void 0}),i}function pt(e,t,n){var i=[];ro(e,function(e,t){i.push(t,e)});var o=i.length;for(t=X(t,n,3);o--&&t(i[o--],i[o],e)!==!1;);return e}function mt(e,t,n){var i=Yi(e),o=i.length;for(t=X(t,n,3);o--;){var r=i[o];if(t(e[r],r,e)===!1)break}return e}function bt(e){var t=[];return ro(e,function(e,n){At(e)&&t.push(n)}),t.sort()}function gt(e,t){return e?Ai.call(e,t):!1}function vt(e){for(var t=-1,n=Yi(e),i=n.length,o={};++t<i;){var r=n[t];o[e[r]]=r}return o}function yt(e){return e===!0||e===!1||Bi.call(e)==$}function wt(e){return e?"object"==typeof e&&Bi.call(e)==V:!1}function _t(e){return e?1===e.nodeType:!1}function xt(e){var t=!0;if(!e)return t;var n=Bi.call(e),i=e.length;return n==q||n==P||n==F||n==I&&"number"==typeof i&&At(e.splice)?!i:(so(e,function(){return t=!1}),t)}function Ct(e,t,n,i){return G(e,t,"function"==typeof n&&X(n,i,2))}function kt(e){return $i(e)&&!Vi(parseFloat(e))}function At(e){return"function"==typeof e}function Mt(e){return!(!e||!Q[typeof e])}function Rt(e){return St(e)&&e!=+e}function jt(e){return null===e}function St(e){return"number"==typeof e||Bi.call(e)==L}function Tt(e){return e?"object"==typeof e&&Bi.call(e)==D:!1}function Bt(e){return"string"==typeof e||Bi.call(e)==P}function zt(e){return"undefined"==typeof e}function Et(e){var t=arguments,n=2;if(!Mt(e))return e;if("number"!=typeof t[2]&&(n=t.length),n>3&&"function"==typeof t[n-2])var i=X(t[--n-1],t[n--],2);else n>2&&"function"==typeof t[n-1]&&(i=t[--n]);for(var o=Hi.call(arguments,1,n),r=-1,s=a(),l=a();++r<n;)Z(e,o[r],i,s,l);return d(s),d(l),e}function Nt(e,t,n){var i=st(),o="function"==typeof t,r={};if(o)t=m.createCallback(t,n,3);else var s=K(arguments,!0,!1,1);return ro(e,function(e,n,a){(o?!t(e,n,a):i(s,n)<0)&&(r[n]=e)}),r}function Ft(e){for(var t=-1,n=Yi(e),i=n.length,o=si(i);++t<i;){var r=n[t];o[t]=[r,e[r]]}return o}function qt(e,t,n){var i={};if("function"!=typeof t)for(var o=-1,r=K(arguments,!0,!1,1),s=Mt(e)?r.length:0;++o<s;){var a=r[o];a in e&&(i[a]=e[a])}else t=m.createCallback(t,n,3),ro(e,function(e,n,o){t(e,n,o)&&(i[n]=e)});return i}function $t(e,t,n,i){var o=Ki(e);if(t=X(t,i,4),null==n)if(o)n=[];else{var r=e&&e.constructor,s=r&&r.prototype;n=ot(s)}return(o?Wt:so)(e,function(e,i,o){return t(n,e,i,o)}),n}function Vt(e){for(var t=-1,n=Yi(e),i=n.length,o=si(i);++t<i;)o[t]=e[n[t]];return o}function Ot(e){for(var t=arguments,n=-1,i=K(t,!0,!1,1),o=t[2]&&t[2][t[1]]===e?1:i.length,r=si(o);++n<o;)r[n]=e[i[n]];return r}function Lt(e,t,n){var i=-1,o=st(),r=e?e.length:0,s=!1;return n=(0>n?Li(0,r+n):n)||0,Ki(e)?s=o(e,t,n)>-1:"number"==typeof r?s=(Bt(e)?e.indexOf(t,n):o(e,t,n))>-1:so(e,function(e){return++i>=n?!(s=e===t):void 0}),s}function It(e,t,n){var i=!0;t=m.createCallback(t,n,3);var o=-1,r=e?e.length:0;if("number"==typeof r)for(;++o<r&&(i=!!t(e[o],o,e)););else so(e,function(e,n,o){return i=!!t(e,n,o)});return i}function Dt(e,t,n){var i=[];t=m.createCallback(t,n,3);var o=-1,r=e?e.length:0;if("number"==typeof r)for(;++o<r;){var s=e[o];t(s,o,e)&&i.push(s)}else so(e,function(e,n,o){t(e,n,o)&&i.push(e)});return i}function Pt(e,t,n){t=m.createCallback(t,n,3);var i=-1,o=e?e.length:0;if("number"!=typeof o){var r;return so(e,function(e,n,i){return t(e,n,i)?(r=e,!1):void 0}),r}for(;++i<o;){var s=e[i];if(t(s,i,e))return s}}function Ht(e,t,n){var i;return t=m.createCallback(t,n,3),Ut(e,function(e,n,o){return t(e,n,o)?(i=e,!1):void 0}),i}function Wt(e,t,n){var i=-1,o=e?e.length:0;if(t=t&&"undefined"==typeof n?t:X(t,n,3),"number"==typeof o)for(;++i<o&&t(e[i],i,e)!==!1;);else so(e,t);return e}function Ut(e,t,n){var i=e?e.length:0;if(t=t&&"undefined"==typeof n?t:X(t,n,3),"number"==typeof i)for(;i--&&t(e[i],i,e)!==!1;);else{var o=Yi(e);i=o.length,so(e,function(e,n,r){return n=o?o[--i]:--i,t(r[n],n,r)})}return e}function Qt(e,t){var n=Hi.call(arguments,2),i=-1,o="function"==typeof t,r=e?e.length:0,s=si("number"==typeof r?r:0);return Wt(e,function(e){s[++i]=(o?t:e[t]).apply(e,n)}),s}function Xt(e,t,n){var i=-1,o=e?e.length:0;if(t=m.createCallback(t,n,3),"number"==typeof o)for(var r=si(o);++i<o;)r[i]=t(e[i],i,e);else r=[],so(e,function(e,n,o){r[++i]=t(e,n,o)});return r}function Jt(e,t,n){var o=-1/0,r=o;if(!t&&Ki(e))for(var s=-1,a=e.length;++s<a;){var l=e[s];l>r&&(r=l)}else t=!t&&Bt(e)?i:m.createCallback(t,n,3),Wt(e,function(e,n,i){var s=t(e,n,i);s>o&&(o=s,r=e)});return r}function Kt(e,t,n){var o=1/0,r=o;if(!t&&Ki(e))for(var s=-1,a=e.length;++s<a;){var l=e[s];r>l&&(r=l)}else t=!t&&Bt(e)?i:m.createCallback(t,n,3),Wt(e,function(e,n,i){var s=t(e,n,i);o>s&&(o=s,r=e)});return r}function Gt(e,t){var n=-1,i=e?e.length:0;if("number"==typeof i)for(var o=si(i);++n<i;)o[n]=e[n][t];return o||Xt(e,t)}function Yt(e,t,n,i){if(!e)return n;var o=arguments.length<3;t=X(t,i,4);var r=-1,s=e.length;if("number"==typeof s)for(o&&(n=e[++r]);++r<s;)n=t(n,e[r],r,e);else so(e,function(e,i,r){n=o?(o=!1,e):t(n,e,i,r)});return n}function Zt(e,t,n,i){var o=arguments.length<3;return t=X(t,i,4),Ut(e,function(e,i,r){n=o?(o=!1,e):t(n,e,i,r)}),n}function en(e,t,n){return t=m.createCallback(t,n,3),Dt(e,function(e,n,i){return!t(e,n,i)})}function tn(e,t,n){var i=e?e.length:0;if("number"!=typeof i&&(e=Vt(e)),null==t||n)return e?e[Jn(i-1)]:p;var o=nn(e);return o.length=Ii(Li(0,t),o.length),o}function nn(e){var t=-1,n=e?e.length:0,i=si("number"==typeof n?n:0);return Wt(e,function(e){var n=Jn(++t);i[t]=i[n],i[n]=e}),i}function on(e){var t=e?e.length:0;return"number"==typeof t?t:Yi(e).length}function rn(e,t,n){var i;t=m.createCallback(t,n,3);var o=-1,r=e?e.length:0;if("number"==typeof r)for(;++o<r&&!(i=t(e[o],o,e)););else so(e,function(e,n,o){return!(i=t(e,n,o))});return!!i}function sn(e,t,n){var i=-1,r=e?e.length:0,s=si("number"==typeof r?r:0);for(t=m.createCallback(t,n,3),Wt(e,function(e,n,o){var r=s[++i]=l();r.criteria=t(e,n,o),r.index=i,r.value=e}),r=s.length,s.sort(o);r--;){var a=s[r];s[r]=a.value,u(a)}return s}function an(e){return e&&"number"==typeof e.length?f(e):Vt(e)}function ln(e){for(var t=-1,n=e?e.length:0,i=[];++t<n;){var o=e[t];o&&i.push(o)}return i}function cn(n){var i=-1,o=st(),s=n?n.length:0,a=K(arguments,!0,!0,1),l=[],c=s>=y&&o===e;if(c){var d=r(a);d?(o=t,a=d):c=!1}for(;++i<s;){var f=n[i];o(a,f)<0&&l.push(f)}return c&&u(a),l}function dn(e,t,n){var i=-1,o=e?e.length:0;for(t=m.createCallback(t,n,3);++i<o;)if(t(e[i],i,e))return i;return-1}function un(e,t,n){var i=e?e.length:0;for(t=m.createCallback(t,n,3);i--;)if(t(e[i],i,e))return i;return-1}function fn(e,t,n){var i=0,o=e?e.length:0;if("number"!=typeof t&&null!=t){var r=-1;for(t=m.createCallback(t,n,3);++r<o&&t(e[r],r,e);)i++}else if(i=t,null==i||n)return e?e[0]:p;return f(e,0,Ii(Li(0,i),o))}function hn(e,t,n,i){return"boolean"!=typeof t&&null!=t&&(i=n,n=i&&i[t]===e?null:t,t=!1),null!=n&&(e=Xt(e,n,i)),K(e,t)}function pn(t,n,i){if("number"==typeof i){var o=t?t.length:0;i=0>i?Li(0,o+i):i||0}else if(i){var r=Cn(t,n);return t[r]===n?r:-1}return e(t,n,i)}function mn(e,t,n){var i=0,o=e?e.length:0;if("number"!=typeof t&&null!=t){var r=o;for(t=m.createCallback(t,n,3);r--&&t(e[r],r,e);)i++}else i=null==t||n?1:t||i;return f(e,0,Ii(Li(0,o-i),o))}function bn(n){for(var i=arguments,o=i.length,s=-1,l=a(),c=-1,f=st(),h=n?n.length:0,p=[],m=a();++s<o;){var b=i[s];l[s]=f===e&&(b?b.length:0)>=y&&r(s?i[s]:m)}e:for(;++c<h;){var g=l[0];if(b=n[c],(g?t(g,b):f(m,b))<0){for(s=o,(g||m).push(b);--s;)if(g=l[s],(g?t(g,b):f(i[s],b))<0)continue e;p.push(b)}}for(;o--;)g=l[o],g&&u(g);return d(l),d(m),p}function gn(e,t,n){var i=0,o=e?e.length:0;if("number"!=typeof t&&null!=t){var r=o;for(t=m.createCallback(t,n,3);r--&&t(e[r],r,e);)i++}else if(i=t,null==i||n)return e?e[o-1]:p;return f(e,Li(0,o-i))}function vn(e,t,n){var i=e?e.length:0;for("number"==typeof n&&(i=(0>n?Li(0,i+n):Ii(n,i-1))+1);i--;)if(e[i]===t)return i;return-1}function yn(e){for(var t=arguments,n=0,i=t.length,o=e?e.length:0;++n<i;)for(var r=-1,s=t[n];++r<o;)e[r]===s&&(Ti.call(e,r--,1),o--);return e}function wn(e,t,n){e=+e||0,n="number"==typeof n?n:+n||1,null==t&&(t=e,e=0);for(var i=-1,o=Li(0,wi((t-e)/(n||1))),r=si(o);++i<o;)r[i]=e,e+=n;return r}function _n(e,t,n){var i=-1,o=e?e.length:0,r=[];for(t=m.createCallback(t,n,3);++i<o;){var s=e[i];t(s,i,e)&&(r.push(s),Ti.call(e,i--,1),o--)}return r}function xn(e,t,n){if("number"!=typeof t&&null!=t){var i=0,o=-1,r=e?e.length:0;for(t=m.createCallback(t,n,3);++o<r&&t(e[o],o,e);)i++}else i=null==t||n?1:Li(0,t);return f(e,i)}function Cn(e,t,n,i){var o=0,r=e?e.length:o;for(n=n?m.createCallback(n,i,1):Un,t=n(t);r>o;){var s=o+r>>>1;n(e[s])<t?o=s+1:r=s}return o}function kn(){return tt(K(arguments,!0,!0))}function An(e,t,n,i){return"boolean"!=typeof t&&null!=t&&(i=n,n=i&&i[t]===e?null:t,t=!1),null!=n&&(n=m.createCallback(n,i,3)),tt(e,t,n)}function Mn(e){return cn(e,Hi.call(arguments,1))}function Rn(){for(var e=arguments.length>1?arguments:arguments[0],t=-1,n=e?Jt(Gt(e,"length")):0,i=si(0>n?0:n);++t<n;)i[t]=Gt(e,t);return i}function jn(e,t){for(var n=-1,i=e?e.length:0,o={};++n<i;){var r=e[n];t?o[r]=t[n]:r&&(o[r[0]]=r[1])}return o}function Sn(e,t){if(!At(t))throw new mi;return function(){return--e<1?t.apply(this,arguments):void 0}}function Tn(e,t){return arguments.length>2?it(e,17,Hi.call(arguments,2),null,t):it(e,1,null,null,t)}function Bn(e){for(var t=arguments.length>1?K(arguments,!0,!1,1):bt(e),n=-1,i=t.length;++n<i;){var o=t[n];e[o]=it(e[o],1,null,null,e)}return e}function zn(e,t){return arguments.length>2?it(t,19,Hi.call(arguments,2),null,e):it(t,3,null,null,e)}function En(){for(var e=arguments,t=e.length;t--;)if(!At(e[t]))throw new mi;return function(){for(var t=arguments,n=e.length;n--;)t=[e[n].apply(this,t)];return t[0]}}function Nn(e,t,n){var i=typeof e;if(null==e||"function"==i)return X(e,t,n);if("object"!=i)return function(t){return t[e]};var o=Yi(e),r=o[0],s=e[r];return 1!=o.length||s!==s||Mt(s)?function(t){for(var n=o.length,i=!1;n--&&(i=G(t[o[n]],e[o[n]],null,!0)););return i}:function(e){var t=e[r];return s===t&&(0!==s||1/s==1/t)}}function Fn(e,t){return t="number"==typeof t?t:+t||e.length,it(e,4,null,null,null,t)}function qn(e,t,n){var i,o,r,s,a,l,c,d=0,u=!1,f=!0;if(!At(e))throw new mi;if(t=Li(0,t)||0,n===!0){var h=!0;f=!1}else Mt(n)&&(h=n.leading,u="maxWait"in n&&(Li(t,n.maxWait)||0),f="trailing"in n?n.trailing:f);var m=function(){var n=t-(Mi()-s);if(0>=n){o&&_i(o);var u=c;o=l=c=p,u&&(d=Mi(),r=e.apply(a,i))}else l=Si(m,n)},b=function(){l&&_i(l),o=l=c=p,(f||u!==t)&&(d=Mi(),r=e.apply(a,i))};return function(){if(i=arguments,s=Mi(),a=this,c=f&&(l||!h),u===!1)var n=h&&!l;else{o||h||(d=s);var p=u-(s-d);0>=p?(o&&(o=_i(o)),d=s,r=e.apply(a,i)):o||(o=Si(b,p))}return l||t===u||(l=Si(m,t)),n&&(r=e.apply(a,i)),r}}function $n(e){if(!At(e))throw new mi;var t=Hi.call(arguments,1);return Si(function(){e.apply(p,t)},1)}function Vn(e,t){if(!At(e))throw new mi;var n=Hi.call(arguments,2);return Si(function(){e.apply(p,n)},t)}function On(e,t){if(!At(e))throw new mi;var n=function(){var i=n.cache,o=t?t.apply(this,arguments):v+arguments[0];return Ai.call(i,o)?i[o]:i[o]=e.apply(this,arguments)};return n.cache={},n}function Ln(e){var t,n;if(!At(e))throw new mi;return function(){return t?n:(t=!0,n=e.apply(this,arguments),e=null,n)}}function In(e){return it(e,16,Hi.call(arguments,1))}function Dn(e){return it(e,32,null,Hi.call(arguments,1))}function Pn(e,t,n){var i=!0,o=!0;if(!At(e))throw new mi;n===!1?i=!1:Mt(n)&&(i="leading"in n?n.leading:i,o="trailing"in n?n.trailing:o),W.leading=i,W.maxWait=t,W.trailing=o;var r=qn(e,t,W);return r}function Hn(e,t){if(!At(t))throw new mi;return function(){var n=[e];return Ri.apply(n,arguments),t.apply(this,n)}}function Wn(e){return null==e?"":pi(e).replace(no,rt)}function Un(e){return e}function Qn(e,t){var n=e,i=!t||At(n);t||(n=b,t=e,e=m),Wt(bt(t),function(o){var r=e[o]=t[o];i&&(n.prototype[o]=function(){var t=this.__wrapped__,i=[t];Ri.apply(i,arguments);var o=r.apply(e,i);return t&&"object"==typeof t&&t===o?this:(o=new n(o),o.__chain__=this.__chain__,o)})})}function Xn(){return n._=vi,this}function Jn(e,t,n){var i=null==e,o=null==t;null==n&&("boolean"==typeof e&&o?(n=e,e=1):o||"boolean"!=typeof t||(n=t,o=!0)),i&&o&&(t=1),e=+e||0,o?(t=e,e=0):t=+t||0;var r=Pi();return n||e%1||t%1?Ii(e+r*(t-e+parseFloat("1e-"+((r+"").length-1))),t):e+xi(r*(t-e+1))}function Kn(e,t){if(e){var n=e[t];return At(n)?e[t]():n}}function Gn(e,t,n){var i=m.templateSettings;e||(e=""),n=oo({},n,i);var o,r=oo({},n.imports,i.imports),a=Yi(r),l=Vt(r),c=0,d=n.interpolate||T,u="__p += '",f=hi((n.escape||T).source+"|"+d.source+"|"+(d===j?A:T).source+"|"+(n.evaluate||T).source+"|$","g");e.replace(f,function(t,n,i,r,a,l){return i||(i=r),u+=e.slice(c,l).replace(z,s),n&&(u+="' +\n__e("+n+") +\n'"),a&&(o=!0,u+="';\n"+a+";\n__p += '"),i&&(u+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),c=l+t.length,t}),u+="';\n";var h=n.variable,b=h;b||(h="obj",u="with ("+h+") {\n"+u+"\n}\n"),u=(o?u.replace(x,""):u).replace(C,"$1").replace(k,"$1;"),u="function("+h+") {\n"+(b?"":h+" || ("+h+" = {});\n")+"var __t, __p = '', __e = _.escape"+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+u+"return __p\n}";var g="\n/*\n//# sourceURL="+(n.sourceURL||"/lodash/template/source["+N++ +"]")+"\n*/";try{var v=ci(a,"return "+u+g).apply(p,l)}catch(y){throw y.source=u,y}return t?v(t):(v.source=u,v)}function Yn(e,t,n){e=(e=+e)>-1?e:0;var i=-1,o=si(e);for(t=X(t,n,1);++i<e;)o[i]=t(i);return o}function Zn(e){return null==e?"":pi(e).replace(to,lt)}function ei(e){var t=++g;return pi(null==e?"":e)+t}function ti(e){return e=new b(e),e.__chain__=!0,e}function ni(e,t){return t(e),e}function ii(){return this.__chain__=!0,this}function oi(){return pi(this.__wrapped__)}function ri(){return this.__wrapped__}n=n?et.defaults(J.Object(),n,et.pick(J,E)):J;var si=n.Array,ai=n.Boolean,li=n.Date,ci=n.Function,di=n.Math,ui=n.Number,fi=n.Object,hi=n.RegExp,pi=n.String,mi=n.TypeError,bi=[],gi=fi.prototype,vi=n._,yi=hi("^"+pi(gi.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),wi=di.ceil,_i=n.clearTimeout,xi=di.floor,Ci=ci.prototype.toString,ki=yi.test(ki=fi.getPrototypeOf)&&ki,Ai=gi.hasOwnProperty,Mi=yi.test(Mi=li.now)&&Mi||function(){return+new li},Ri=bi.push,ji=n.setImmediate,Si=n.setTimeout,Ti=bi.splice,Bi=gi.toString,zi=bi.unshift,Ei=function(){try{var e={},t=yi.test(t=fi.defineProperty)&&t,n=t(e,e,e)&&t}catch(i){}return n}(),Ni=yi.test(Ni=Bi.bind)&&Ni,Fi=yi.test(Fi=fi.create)&&Fi,qi=yi.test(qi=si.isArray)&&qi,$i=n.isFinite,Vi=n.isNaN,Oi=yi.test(Oi=fi.keys)&&Oi,Li=di.max,Ii=di.min,Di=n.parseInt,Pi=di.random,Hi=bi.slice,Wi=yi.test(n.attachEvent),Ui=Ni&&!/\n|true/.test(Ni+Wi),Qi={};Qi[q]=si,Qi[$]=ai,Qi[V]=li,Qi[O]=ci,Qi[I]=fi,Qi[L]=ui,Qi[D]=hi,Qi[P]=pi,b.prototype=m.prototype;var Xi=m.support={};Xi.fastBind=Ni&&!Ui,Xi.funcDecomp=!yi.test(n.WinRTError)&&B.test(h),Xi.funcNames="string"==typeof ci.name,m.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:j,variable:"",imports:{_:m}},Fi||(ot=function(e){if(Mt(e)){c.prototype=e;var t=new c;c.prototype=null}return t||{}});var Ji=Ei?function(e,t){U.value=t,Ei(e,"__bindData__",U)}:c,Ki=qi||function(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Bi.call(e)==q||!1},Gi=function(e){var t,n=e,i=[];if(!n)return i;if(!Q[typeof e])return i;for(t in n)Ai.call(n,t)&&i.push(t);return i},Yi=Oi?function(e){return Mt(e)?Oi(e):[]}:Gi,Zi={"&":"&","<":"<",">":">",'"':""","'":"'"},eo=vt(Zi),to=hi("("+Yi(eo).join("|")+")","g"),no=hi("["+Yi(Zi).join("")+"]","g"),io=function(e,t,n){var i,o=e,r=o;if(!o)return r;var s=arguments,a=0,l="number"==typeof n?2:s.length;if(l>3&&"function"==typeof s[l-2])var c=X(s[--l-1],s[l--],2);else l>2&&"function"==typeof s[l-1]&&(c=s[--l]);for(;++a<l;)if(o=s[a],o&&Q[typeof o])for(var d=-1,u=Q[typeof o]&&Yi(o),f=u?u.length:0;++d<f;)i=u[d],r[i]=c?c(r[i],o[i]):o[i];return r},oo=function(e,t,n){var i,o=e,r=o;if(!o)return r;for(var s=arguments,a=0,l="number"==typeof n?2:s.length;++a<l;)if(o=s[a],o&&Q[typeof o])for(var c=-1,d=Q[typeof o]&&Yi(o),u=d?d.length:0;++c<u;)i=d[c],"undefined"==typeof r[i]&&(r[i]=o[i]);return r},ro=function(e,t,n){var i,o=e,r=o;if(!o)return r;if(!Q[typeof o])return r;t=t&&"undefined"==typeof n?t:X(t,n,3);for(i in o)if(t(o[i],i,e)===!1)return r;return r},so=function(e,t,n){var i,o=e,r=o;if(!o)return r;if(!Q[typeof o])return r;t=t&&"undefined"==typeof n?t:X(t,n,3);for(var s=-1,a=Q[typeof o]&&Yi(o),l=a?a.length:0;++s<l;)if(i=a[s],t(o[i],i,e)===!1)return r;return r},ao=function(e){if(!e||Bi.call(e)!=I)return!1;var t=e.valueOf,n="function"==typeof t&&(n=ki(t))&&ki(n);return n?e==n||ki(e)==n:at(e)},lo=nt(function(e,t,n){Ai.call(e,n)?e[n]++:e[n]=1}),co=nt(function(e,t,n){(Ai.call(e,n)?e[n]:e[n]=[]).push(t)}),uo=nt(function(e,t,n){e[n]=t}),fo=Dt;Ui&&Y&&"function"==typeof ji&&($n=function(e){if(!At(e))throw new mi;return ji.apply(n,arguments)});var ho=8==Di(_+"08")?Di:function(e,t){return Di(Bt(e)?e.replace(S,""):e,t||0)};return m.after=Sn,m.assign=io,m.at=Ot,m.bind=Tn,m.bindAll=Bn,m.bindKey=zn,m.chain=ti,m.compact=ln,m.compose=En,m.countBy=lo,m.createCallback=Nn,m.curry=Fn,m.debounce=qn,m.defaults=oo,m.defer=$n,m.delay=Vn,m.difference=cn,m.filter=Dt,m.flatten=hn,m.forEach=Wt,m.forEachRight=Ut,m.forIn=ro,m.forInRight=pt,m.forOwn=so,m.forOwnRight=mt,m.functions=bt,m.groupBy=co,m.indexBy=uo,m.initial=mn,m.intersection=bn,m.invert=vt,m.invoke=Qt,m.keys=Yi,m.map=Xt,m.max=Jt,m.memoize=On,m.merge=Et,m.min=Kt,m.omit=Nt,m.once=Ln,m.pairs=Ft,m.partial=In,m.partialRight=Dn,m.pick=qt,m.pluck=Gt,m.pull=yn,m.range=wn,m.reject=en,m.remove=_n,m.rest=xn,m.shuffle=nn,m.sortBy=sn,m.tap=ni,m.throttle=Pn,m.times=Yn,m.toArray=an,m.transform=$t,m.union=kn,m.uniq=An,m.values=Vt,m.where=fo,m.without=Mn,m.wrap=Hn,m.zip=Rn,m.zipObject=jn,m.collect=Xt,m.drop=xn,m.each=Wt,m.eachRight=Ut,m.extend=io,m.methods=bt,m.object=jn,m.select=Dt,m.tail=xn,m.unique=An,m.unzip=Rn,Qn(m),m.clone=dt,m.cloneDeep=ut,m.contains=Lt,m.escape=Wn,m.every=It,m.find=Pt,m.findIndex=dn,m.findKey=ft,m.findLast=Ht,m.findLastIndex=un,m.findLastKey=ht,m.has=gt,m.identity=Un,m.indexOf=pn,m.isArguments=ct,m.isArray=Ki,m.isBoolean=yt,m.isDate=wt,m.isElement=_t,m.isEmpty=xt,m.isEqual=Ct,m.isFinite=kt,m.isFunction=At,m.isNaN=Rt,m.isNull=jt,m.isNumber=St,m.isObject=Mt,m.isPlainObject=ao,m.isRegExp=Tt,m.isString=Bt,m.isUndefined=zt,m.lastIndexOf=vn,m.mixin=Qn,m.noConflict=Xn,m.parseInt=ho,m.random=Jn,m.reduce=Yt,m.reduceRight=Zt,m.result=Kn,m.runInContext=h,m.size=on,m.some=rn,m.sortedIndex=Cn,m.template=Gn,m.unescape=Zn,m.uniqueId=ei,m.all=It,m.any=rn,m.detect=Pt,m.findWhere=Pt,m.foldl=Yt,m.foldr=Zt,m.include=Lt,m.inject=Yt,so(m,function(e,t){m.prototype[t]||(m.prototype[t]=function(){var t=[this.__wrapped__],n=this.__chain__;Ri.apply(t,arguments);var i=e.apply(m,t);return n?new b(i,n):i})}),m.first=fn,m.last=gn,m.sample=tn,m.take=fn,m.head=fn,so(m,function(e,t){var n="sample"!==t;m.prototype[t]||(m.prototype[t]=function(t,i){var o=this.__chain__,r=e(this.__wrapped__,t,i);return o||null!=t&&(!i||n&&"function"==typeof t)?new b(r,o):r})}),m.VERSION="2.2.1",m.prototype.chain=ii,m.prototype.toString=oi,m.prototype.value=ri,m.prototype.valueOf=ri,Wt(["join","pop","shift"],function(e){var t=bi[e];m.prototype[e]=function(){var e=this.__chain__,n=t.apply(this.__wrapped__,arguments);return e?new b(n,e):n}}),Wt(["push","reverse","sort","unshift"],function(e){var t=bi[e];m.prototype[e]=function(){return t.apply(this.__wrapped__,arguments),this}}),Wt(["concat","slice","splice"],function(e){var t=bi[e];m.prototype[e]=function(){return new b(t.apply(this.__wrapped__,arguments),this.__chain__)}}),m}var p,m=[],b=[],g=0,v=+new Date+"",y=75,w=40,_=" \f \n\r\u2028\u2029 ",x=/\b__p \+= '';/g,C=/\b(__p \+=) '' \+/g,k=/(__e\(.*?\)|\b__t\)) \+\n'';/g,A=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,M=/\w*$/,R=/^function[ \n\r\t]+\w/,j=/<%=([\s\S]+?)%>/g,S=RegExp("^["+_+"]*0+(?=.$)"),T=/($^)/,B=/\bthis\b/,z=/['\n\r\t\u2028\u2029\\]/g,E=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setImmediate","setTimeout"],N=0,F="[object Arguments]",q="[object Array]",$="[object Boolean]",V="[object Date]",O="[object Function]",L="[object Number]",I="[object Object]",D="[object RegExp]",P="[object String]",H={};H[O]=!1,H[F]=H[q]=H[$]=H[V]=H[L]=H[I]=H[D]=H[P]=!0;var W={leading:!1,maxWait:0,trailing:!1},U={configurable:!1,enumerable:!1,value:null,writable:!1},Q={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},X={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},J=Q[typeof window]&&window||this,K=Q[typeof exports]&&exports&&!exports.nodeType&&exports,G=Q[typeof module]&&module&&!module.nodeType&&module,Y=G&&G.exports===K&&K,Z=Q[typeof global]&&global;!Z||Z.global!==Z&&Z.window!==Z||(J=Z);var et=h();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(J._=et,define("lodash",[],function(){return et})):K&&G?Y?(G.exports=et)._=et:K._=et:J._=et}.call(this),function(e,t){function n(e){var t=e.length,n=rt.type(e);return rt.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e){var t=pt[e]={};return rt.each(e.match(at)||[],function(e,n){t[n]=!0}),t}function o(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=rt.expando+Math.random()}function r(e,n,i){var o;if(i===t&&1===e.nodeType)if(o="data-"+n.replace(vt,"-$1").toLowerCase(),i=e.getAttribute(o),"string"==typeof i){try{i="true"===i?!0:"false"===i?!1:"null"===i?null:+i+""===i?+i:gt.test(i)?JSON.parse(i):i}catch(r){}mt.set(e,n,i)}else i=t;return i}function s(){return!0}function a(){return!1}function l(){try{return W.activeElement}catch(e){}}function c(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function d(e,t,n){if(rt.isFunction(t))return rt.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return rt.grep(e,function(e){return e===t!==n
});if("string"==typeof t){if(jt.test(t))return rt.filter(t,e,n);t=rt.filter(t,e)}return rt.grep(e,function(e){return tt.call(t,e)>=0!==n})}function u(e,t){return rt.nodeName(e,"table")&&rt.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function f(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function h(e){var t=Ot.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function p(e,t){for(var n=e.length,i=0;n>i;i++)bt.set(e[i],"globalEval",!t||bt.get(t[i],"globalEval"))}function m(e,t){var n,i,o,r,s,a,l,c;if(1===t.nodeType){if(bt.hasData(e)&&(r=bt.access(e),s=bt.set(t,r),c=r.events)){delete s.handle,s.events={};for(o in c)for(n=0,i=c[o].length;i>n;n++)rt.event.add(t,o,c[o][n])}mt.hasData(e)&&(a=mt.access(e),l=rt.extend({},a),mt.set(t,l))}}function b(e,n){var i=e.getElementsByTagName?e.getElementsByTagName(n||"*"):e.querySelectorAll?e.querySelectorAll(n||"*"):[];return n===t||n&&rt.nodeName(e,n)?rt.merge([e],i):i}function g(e,t){var n=t.nodeName.toLowerCase();"input"===n&&qt.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function v(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),i=t,o=Zt.length;o--;)if(t=Zt[o]+n,t in e)return t;return i}function y(e,t){return e=t||e,"none"===rt.css(e,"display")||!rt.contains(e.ownerDocument,e)}function w(t){return e.getComputedStyle(t,null)}function _(e,t){for(var n,i,o,r=[],s=0,a=e.length;a>s;s++)i=e[s],i.style&&(r[s]=bt.get(i,"olddisplay"),n=i.style.display,t?(r[s]||"none"!==n||(i.style.display=""),""===i.style.display&&y(i)&&(r[s]=bt.access(i,"olddisplay",A(i.nodeName)))):r[s]||(o=y(i),(n&&"none"!==n||!o)&&bt.set(i,"olddisplay",o?n:rt.css(i,"display"))));for(s=0;a>s;s++)i=e[s],i.style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?r[s]||"":"none"));return e}function x(e,t,n){var i=Ut.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function C(e,t,n,i,o){for(var r=n===(i?"border":"content")?4:"width"===t?1:0,s=0;4>r;r+=2)"margin"===n&&(s+=rt.css(e,n+Yt[r],!0,o)),i?("content"===n&&(s-=rt.css(e,"padding"+Yt[r],!0,o)),"margin"!==n&&(s-=rt.css(e,"border"+Yt[r]+"Width",!0,o))):(s+=rt.css(e,"padding"+Yt[r],!0,o),"padding"!==n&&(s+=rt.css(e,"border"+Yt[r]+"Width",!0,o)));return s}function k(e,t,n){var i=!0,o="width"===t?e.offsetWidth:e.offsetHeight,r=w(e),s=rt.support.boxSizing&&"border-box"===rt.css(e,"boxSizing",!1,r);if(0>=o||null==o){if(o=Dt(e,t,r),(0>o||null==o)&&(o=e.style[t]),Qt.test(o))return o;i=s&&(rt.support.boxSizingReliable||o===e.style[t]),o=parseFloat(o)||0}return o+C(e,t,n||(s?"border":"content"),i,r)+"px"}function A(e){var t=W,n=Jt[e];return n||(n=M(e,t),"none"!==n&&n||(Pt=(Pt||rt("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(Pt[0].contentWindow||Pt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=M(e,t),Pt.detach()),Jt[e]=n),n}function M(e,t){var n=rt(t.createElement(e)).appendTo(t.body),i=rt.css(n[0],"display");return n.remove(),i}function R(e,t,n,i){var o;if(rt.isArray(t))rt.each(t,function(t,o){n||tn.test(e)?i(e,o):R(e+"["+("object"==typeof o?t:"")+"]",o,n,i)});else if(n||"object"!==rt.type(t))i(e,t);else for(o in t)R(e+"["+o+"]",t[o],n,i)}function j(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,o=0,r=t.toLowerCase().match(at)||[];if(rt.isFunction(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function S(e,t,n,i){function o(a){var l;return r[a]=!0,rt.each(e[a]||[],function(e,a){var c=a(t,n,i);return"string"!=typeof c||s||r[c]?s?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)}),l}var r={},s=e===yn;return o(t.dataTypes[0])||!r["*"]&&o("*")}function T(e,n){var i,o,r=rt.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((r[i]?e:o||(o={}))[i]=n[i]);return o&&rt.extend(!0,e,o),e}function B(e,n,i){for(var o,r,s,a,l=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(r in l)if(l[r]&&l[r].test(o)){c.unshift(r);break}if(c[0]in i)s=c[0];else{for(r in i){if(!c[0]||e.converters[r+" "+c[0]]){s=r;break}a||(a=r)}s=s||a}return s?(s!==c[0]&&c.unshift(s),i[s]):void 0}function z(e,t,n,i){var o,r,s,a,l,c={},d=e.dataTypes.slice();if(d[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(r=d.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=d.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(s=c[l+" "+r]||c["* "+r],!s)for(o in c)if(a=o.split(" "),a[1]===r&&(s=c[l+" "+a[0]]||c["* "+a[0]])){s===!0?s=c[o]:c[o]!==!0&&(r=a[0],d.unshift(a[1]));break}if(s!==!0)if(s&&e["throws"])t=s(t);else try{t=s(t)}catch(u){return{state:"parsererror",error:s?u:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}function E(){return setTimeout(function(){jn=t}),jn=rt.now()}function N(e,t,n){for(var i,o=(Nn[t]||[]).concat(Nn["*"]),r=0,s=o.length;s>r;r++)if(i=o[r].call(n,t,e))return i}function F(e,t,n){var i,o,r=0,s=En.length,a=rt.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=jn||E(),n=Math.max(0,c.startTime+c.duration-t),i=n/c.duration||0,r=1-i,s=0,l=c.tweens.length;l>s;s++)c.tweens[s].run(r);return a.notifyWith(e,[c,r,n]),1>r&&l?n:(a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:rt.extend({},t),opts:rt.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:jn||E(),duration:n.duration,tweens:[],createTween:function(t,n){var i=rt.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(o)return this;for(o=!0;i>n;n++)c.tweens[n].run(1);return t?a.resolveWith(e,[c,t]):a.rejectWith(e,[c,t]),this}}),d=c.props;for(q(d,c.opts.specialEasing);s>r;r++)if(i=En[r].call(c,e,d,c.opts))return i;return rt.map(d,N,c),rt.isFunction(c.opts.start)&&c.opts.start.call(e,c),rt.fx.timer(rt.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function q(e,t){var n,i,o,r,s;for(n in e)if(i=rt.camelCase(n),o=t[i],r=e[n],rt.isArray(r)&&(o=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),s=rt.cssHooks[i],s&&"expand"in s){r=s.expand(r),delete e[i];for(n in r)n in e||(e[n]=r[n],t[n]=o)}else t[i]=o}function $(e,n,i){var o,r,s,a,l,c,d=this,u={},f=e.style,h=e.nodeType&&y(e),p=bt.get(e,"fxshow");i.queue||(l=rt._queueHooks(e,"fx"),null==l.unqueued&&(l.unqueued=0,c=l.empty.fire,l.empty.fire=function(){l.unqueued||c()}),l.unqueued++,d.always(function(){d.always(function(){l.unqueued--,rt.queue(e,"fx").length||l.empty.fire()})})),1===e.nodeType&&("height"in n||"width"in n)&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],"inline"===rt.css(e,"display")&&"none"===rt.css(e,"float")&&(f.display="inline-block")),i.overflow&&(f.overflow="hidden",d.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]}));for(o in n)if(r=n[o],Tn.exec(r)){if(delete n[o],s=s||"toggle"===r,r===(h?"hide":"show")){if("show"!==r||!p||p[o]===t)continue;h=!0}u[o]=p&&p[o]||rt.style(e,o)}if(!rt.isEmptyObject(u)){p?"hidden"in p&&(h=p.hidden):p=bt.access(e,"fxshow",{}),s&&(p.hidden=!h),h?rt(e).show():d.done(function(){rt(e).hide()}),d.done(function(){var t;bt.remove(e,"fxshow");for(t in u)rt.style(e,t,u[t])});for(o in u)a=N(h?p[o]:0,o,d),o in p||(p[o]=a.start,h&&(a.end=a.start,a.start="width"===o||"height"===o?1:0))}}function V(e,t,n,i,o){return new V.prototype.init(e,t,n,i,o)}function O(e,t){var n,i={height:e},o=0;for(t=t?1:0;4>o;o+=2-t)n=Yt[o],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function L(e){return rt.isWindow(e)?e:9===e.nodeType&&e.defaultView}var I,D,P=typeof t,H=e.location,W=e.document,U=W.documentElement,Q=e.jQuery,X=e.$,J={},K=[],G="2.0.3",Y=K.concat,Z=K.push,et=K.slice,tt=K.indexOf,nt=J.toString,it=J.hasOwnProperty,ot=G.trim,rt=function(e,t){return new rt.fn.init(e,t,I)},st=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,at=/\S+/g,lt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ct=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,dt=/^-ms-/,ut=/-([\da-z])/gi,ft=function(e,t){return t.toUpperCase()},ht=function(){W.removeEventListener("DOMContentLoaded",ht,!1),e.removeEventListener("load",ht,!1),rt.ready()};rt.fn=rt.prototype={jquery:G,constructor:rt,init:function(e,n,i){var o,r;if(!e)return this;if("string"==typeof e){if(o="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:lt.exec(e),!o||!o[1]&&n)return!n||n.jquery?(n||i).find(e):this.constructor(n).find(e);if(o[1]){if(n=n instanceof rt?n[0]:n,rt.merge(this,rt.parseHTML(o[1],n&&n.nodeType?n.ownerDocument||n:W,!0)),ct.test(o[1])&&rt.isPlainObject(n))for(o in n)rt.isFunction(this[o])?this[o](n[o]):this.attr(o,n[o]);return this}return r=W.getElementById(o[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=W,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):rt.isFunction(e)?i.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),rt.makeArray(e,this))},selector:"",length:0,toArray:function(){return et.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=rt.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return rt.each(this,e,t)},ready:function(e){return rt.ready.promise().done(e),this},slice:function(){return this.pushStack(et.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(rt.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:Z,sort:[].sort,splice:[].splice},rt.fn.init.prototype=rt.fn,rt.extend=rt.fn.extend=function(){var e,n,i,o,r,s,a=arguments[0]||{},l=1,c=arguments.length,d=!1;for("boolean"==typeof a&&(d=a,a=arguments[1]||{},l=2),"object"==typeof a||rt.isFunction(a)||(a={}),c===l&&(a=this,--l);c>l;l++)if(null!=(e=arguments[l]))for(n in e)i=a[n],o=e[n],a!==o&&(d&&o&&(rt.isPlainObject(o)||(r=rt.isArray(o)))?(r?(r=!1,s=i&&rt.isArray(i)?i:[]):s=i&&rt.isPlainObject(i)?i:{},a[n]=rt.extend(d,s,o)):o!==t&&(a[n]=o));return a},rt.extend({expando:"jQuery"+(G+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===rt&&(e.$=X),t&&e.jQuery===rt&&(e.jQuery=Q),rt},isReady:!1,readyWait:1,holdReady:function(e){e?rt.readyWait++:rt.ready(!0)},ready:function(e){(e===!0?--rt.readyWait:rt.isReady)||(rt.isReady=!0,e!==!0&&--rt.readyWait>0||(D.resolveWith(W,[rt]),rt.fn.trigger&&rt(W).trigger("ready").off("ready")))},isFunction:function(e){return"function"===rt.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?String(e):"object"==typeof e||"function"==typeof e?J[nt.call(e)]||"object":typeof e},isPlainObject:function(e){if("object"!==rt.type(e)||e.nodeType||rt.isWindow(e))return!1;try{if(e.constructor&&!it.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||W;var i=ct.exec(e),o=!n&&[];return i?[t.createElement(i[1])]:(i=rt.buildFragment([e],t,o),o&&rt(o).remove(),rt.merge([],i.childNodes))},parseJSON:JSON.parse,parseXML:function(e){var n,i;if(!e||"string"!=typeof e)return null;try{i=new DOMParser,n=i.parseFromString(e,"text/xml")}catch(o){n=t}return(!n||n.getElementsByTagName("parsererror").length)&&rt.error("Invalid XML: "+e),n},noop:function(){},globalEval:function(e){var t,n=eval;e=rt.trim(e),e&&(1===e.indexOf("use strict")?(t=W.createElement("script"),t.text=e,W.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(dt,"ms-").replace(ut,ft)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,i){var o,r=0,s=e.length,a=n(e);if(i){if(a)for(;s>r&&(o=t.apply(e[r],i),o!==!1);r++);else for(r in e)if(o=t.apply(e[r],i),o===!1)break}else if(a)for(;s>r&&(o=t.call(e[r],r,e[r]),o!==!1);r++);else for(r in e)if(o=t.call(e[r],r,e[r]),o===!1)break;return e},trim:function(e){return null==e?"":ot.call(e)},makeArray:function(e,t){var i=t||[];return null!=e&&(n(Object(e))?rt.merge(i,"string"==typeof e?[e]:e):Z.call(i,e)),i},inArray:function(e,t,n){return null==t?-1:tt.call(t,e,n)},merge:function(e,n){var i=n.length,o=e.length,r=0;if("number"==typeof i)for(;i>r;r++)e[o++]=n[r];else for(;n[r]!==t;)e[o++]=n[r++];return e.length=o,e},grep:function(e,t,n){var i,o=[],r=0,s=e.length;for(n=!!n;s>r;r++)i=!!t(e[r],r),n!==i&&o.push(e[r]);return o},map:function(e,t,i){var o,r=0,s=e.length,a=n(e),l=[];if(a)for(;s>r;r++)o=t(e[r],r,i),null!=o&&(l[l.length]=o);else for(r in e)o=t(e[r],r,i),null!=o&&(l[l.length]=o);return Y.apply([],l)},guid:1,proxy:function(e,n){var i,o,r;return"string"==typeof n&&(i=e[n],n=e,e=i),rt.isFunction(e)?(o=et.call(arguments,2),r=function(){return e.apply(n||this,o.concat(et.call(arguments)))},r.guid=e.guid=e.guid||rt.guid++,r):t},access:function(e,n,i,o,r,s,a){var l=0,c=e.length,d=null==i;if("object"===rt.type(i)){r=!0;for(l in i)rt.access(e,n,l,i[l],!0,s,a)}else if(o!==t&&(r=!0,rt.isFunction(o)||(a=!0),d&&(a?(n.call(e,o),n=null):(d=n,n=function(e,t,n){return d.call(rt(e),n)})),n))for(;c>l;l++)n(e[l],i,a?o:o.call(e[l],l,n(e[l],i)));return r?e:d?n.call(e):c?n(e[0],i):s},now:Date.now,swap:function(e,t,n,i){var o,r,s={};for(r in t)s[r]=e.style[r],e.style[r]=t[r];o=n.apply(e,i||[]);for(r in t)e.style[r]=s[r];return o}}),rt.ready.promise=function(t){return D||(D=rt.Deferred(),"complete"===W.readyState?setTimeout(rt.ready):(W.addEventListener("DOMContentLoaded",ht,!1),e.addEventListener("load",ht,!1))),D.promise(t)},rt.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){J["[object "+t+"]"]=t.toLowerCase()}),I=rt(W),function(e,t){function n(e,t,n,i){var o,r,s,a,l,c,d,u,p,m;if((t?t.ownerDocument||t:L)!==z&&B(t),t=t||z,n=n||[],!e||"string"!=typeof e)return n;if(1!==(a=t.nodeType)&&9!==a)return[];if(N&&!i){if(o=yt.exec(e))if(s=o[1]){if(9===a){if(r=t.getElementById(s),!r||!r.parentNode)return n;if(r.id===s)return n.push(r),n}else if(t.ownerDocument&&(r=t.ownerDocument.getElementById(s))&&V(t,r)&&r.id===s)return n.push(r),n}else{if(o[2])return et.apply(n,t.getElementsByTagName(e)),n;if((s=o[3])&&C.getElementsByClassName&&t.getElementsByClassName)return et.apply(n,t.getElementsByClassName(s)),n}if(C.qsa&&(!F||!F.test(e))){if(u=d=O,p=t,m=9===a&&e,1===a&&"object"!==t.nodeName.toLowerCase()){for(c=f(e),(d=t.getAttribute("id"))?u=d.replace(xt,"\\$&"):t.setAttribute("id",u),u="[id='"+u+"'] ",l=c.length;l--;)c[l]=u+h(c[l]);p=ht.test(e)&&t.parentNode||t,m=c.join(",")}if(m)try{return et.apply(n,p.querySelectorAll(m)),n}catch(b){}finally{d||t.removeAttribute("id")}}}return _(e.replace(dt,"$1"),t,n,i)}function i(){function e(n,i){return t.push(n+=" ")>A.cacheLength&&delete e[t.shift()],e[n]=i}var t=[];return e}function o(e){return e[O]=!0,e}function r(e){var t=z.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function s(e,t){for(var n=e.split("|"),i=e.length;i--;)A.attrHandle[n[i]]=t}function a(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||J)-(~e.sourceIndex||J);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function l(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function c(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function d(e){return o(function(t){return t=+t,o(function(n,i){for(var o,r=e([],n.length,t),s=r.length;s--;)n[o=r[s]]&&(n[o]=!(i[o]=n[o]))})})}function u(){}function f(e,t){var i,o,r,s,a,l,c,d=H[e+" "];if(d)return t?0:d.slice(0);for(a=e,l=[],c=A.preFilter;a;){(!i||(o=ut.exec(a)))&&(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),i=!1,(o=ft.exec(a))&&(i=o.shift(),r.push({value:i,type:o[0].replace(dt," ")}),a=a.slice(i.length));for(s in A.filter)!(o=gt[s].exec(a))||c[s]&&!(o=c[s](o))||(i=o.shift(),r.push({value:i,type:s,matches:o}),a=a.slice(i.length));if(!i)break}return t?a.length:a?n.error(e):H(e,l).slice(0)}function h(e){for(var t=0,n=e.length,i="";n>t;t++)i+=e[t].value;return i}function p(e,t,n){var i=t.dir,o=n&&"parentNode"===i,r=D++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||o)return e(t,n,r)}:function(t,n,s){var a,l,c,d=I+" "+r;if(s){for(;t=t[i];)if((1===t.nodeType||o)&&e(t,n,s))return!0}else for(;t=t[i];)if(1===t.nodeType||o)if(c=t[O]||(t[O]={}),(l=c[i])&&l[0]===d){if((a=l[1])===!0||a===k)return a===!0}else if(l=c[i]=[d],l[1]=e(t,n,s)||k,l[1]===!0)return!0}}function m(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function b(e,t,n,i,o){for(var r,s=[],a=0,l=e.length,c=null!=t;l>a;a++)(r=e[a])&&(!n||n(r,i,o))&&(s.push(r),c&&t.push(a));return s}function g(e,t,n,i,r,s){return i&&!i[O]&&(i=g(i)),r&&!r[O]&&(r=g(r,s)),o(function(o,s,a,l){var c,d,u,f=[],h=[],p=s.length,m=o||w(t||"*",a.nodeType?[a]:a,[]),g=!e||!o&&t?m:b(m,f,e,a,l),v=n?r||(o?e:p||i)?[]:s:g;if(n&&n(g,v,a,l),i)for(c=b(v,h),i(c,[],a,l),d=c.length;d--;)(u=c[d])&&(v[h[d]]=!(g[h[d]]=u));if(o){if(r||e){if(r){for(c=[],d=v.length;d--;)(u=v[d])&&c.push(g[d]=u);r(null,v=[],c,l)}for(d=v.length;d--;)(u=v[d])&&(c=r?nt.call(o,u):f[d])>-1&&(o[c]=!(s[c]=u))}}else v=b(v===s?v.splice(p,v.length):v),r?r(null,s,v,l):et.apply(s,v)})}function v(e){for(var t,n,i,o=e.length,r=A.relative[e[0].type],s=r||A.relative[" "],a=r?1:0,l=p(function(e