-
Notifications
You must be signed in to change notification settings - Fork 70
/
knockback-full-stack.min.js
9 lines (9 loc) · 240 KB
/
knockback-full-stack.min.js
1
2
3
4
5
6
7
8
9
/*
knockback-full-stack.js 1.2.3
Copyright (c) 2011-2019 Kevin Malakoff.
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Source: https://github.com/kmalakoff/knockback
Dependencies: Knockout.js, Backbone.js, and Underscore.js (or LoDash.js).
Optional dependencies: Backbone.ModelRef.js and BackboneORM.
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.kb=t():e.kb=t()}(this,function(){return e={},f.m=d=[function(i,e,o){(function(e){var t,s,n,l,c,u,r;function f(){}c=null!=c?c:e,l=o(32),s=["release","destroy","dispose"],i.exports=(f.VERSION="1.2.3",f.TYPE_UNKNOWN=0,f.TYPE_SIMPLE=1,f.TYPE_ARRAY=2,f.TYPE_MODEL=3,f.TYPE_COLLECTION=4,f.wasReleased=function(e){return!e||e.__kb_released},f.isReleaseable=function(e,t){var n,r,i,o;if(null==t&&(t=0),!e||e!==Object(e)||e.__kb_released)return!1;if(l.isObservable(e)||e instanceof f.ViewModel)return!0;if("function"==typeof e||f.isModel(e)||f.isCollection(e))return!1;for(i=0,o=s.length;i<o;i++)if("function"==typeof e[s[i]])return!0;if(0<t)return!1;for(n in e)if(r=e[n],"__kb"!==n&&f.isReleaseable(r,t+1))return!0;return!1},f.release=function(e){var t,n,r,i,o,a;if(f.isReleaseable(e))if(e.__kb_released=!0,u.isArray(e))for(n in e)i=e[n],f.isReleaseable(i)&&(e[n]=null,f.release(i));else{if(!l.isObservable(e)||!u.isArray(t=f.peek(e))){for(o=0,a=s.length;o<a;o++)if("function"==typeof e[r=s[o]])return e[r].call(e);return l.isObservable(e)?void 0:this.releaseKeys(e)}if(e.__kb_is_co||e.__kb_is_o&&e.valueType()===f.TYPE_COLLECTION)return"function"==typeof e.destroy?e.destroy():void 0;for(n in t)i=t[n],f.isReleaseable(i)&&(t[n]=null,f.release(i));"function"==typeof e.dispose&&e.dispose()}},f.releaseKeys=function(e){var t,n;for(t in e)n=e[t],"__kb"!==t&&f.isReleaseable(n)&&(e[t]=null,f.release(n))},f.releaseOnNodeRemove=function(e,t){return e||f._throwUnexpected(this,"missing view model"),t||f._throwUnexpected(this,"missing node"),l.utils.domNodeDisposal.addDisposeCallback(t,function(){return f.release(e)})},f.renderTemplate=function(e,t,n){var r,i,o,a,s,u;if(null==n&&(n={}),!(r=null!=c?c.document:void 0))return"undefined"!=typeof console&&null!==console?console.log("renderTemplate: document is undefined"):void 0;if(i=r.createElement("div"),a=l.renderTemplate(e,t,n,i,"replaceChildren"),1===i.childNodes.length)i=i.childNodes[0];else if(i.childNodes.length)for(o=s=0,u=i.childNodes.length;0<=u?s<=u:u<=s;o=0<=u?++s:--s)try{l.storedBindingContextForNode(i,l.contextFor(i.childNodes[o]));break}catch(e){}return f.releaseOnNodeRemove(t,i),a.dispose(),t.afterRender&&!n.afterRender&&t.afterRender(i),i},f.applyBindings=function(e,t){var n,r,i,o,a;if(t.length)for(t=(a=[document.createElement("div"),t])[0],i=0,o=(r=a[1]).length;i<o;i++)n=r[i],t.appendChild(n);return l.applyBindings(e,t),f.releaseOnNodeRemove(e,t),t},f.getValue=function(e,t,n){var r;if(e)return u.isFunction(e[t])&&(null!=(r=f.settings.orm)?r.useFunction(e,t):void 0)?e[t]():n?e.get.apply(e,u.map([t].concat(n),function(e){return f.peek(e)})):e.get(t)},f.setValue=function(e,t,n){var r,i;if(e)return u.isFunction(e[t])&&(null!=(i=f.settings.orm)?i.useFunction(e,t):void 0)?e[t](n):((r={})[t]=n,e.set(r))},f.ignore=(null!=(r=l.dependencyDetection)?r.ignore:void 0)||function(e,t,n){var r;return r=null,l.computed(function(){return r=e.apply(t,n||[])}).dispose(),r},f.extend=o(23),f._throwMissing=function(e,t){throw(u.isString(e)?e:e.constructor.name)+": "+t+" is missing"},f._throwUnexpected=function(e,t){throw(u.isString(e)?e:e.constructor.name)+": "+t+" is unexpected"},f.publishMethods=function(e,t,n){var r,i,o;for(i=0,o=n.length;i<o;i++)e[r=n[i]]=f._.bind(t[r],t)},f.peek=function(e){return l.isObservable(e)?e.peek?e.peek():f.ignore(function(){return e()}):e},f.isModel=function(e){return e&&(e instanceof f.Model||"function"==typeof e.get&&"function"==typeof e.bind)},f.isCollection=function(e){return e&&e instanceof f.Collection},n=f),u=c.Parse?(t=n.Parse=c.Parse,n._=c.Parse._):(t=n.Backbone=o(21),n._=o(4)),n.ko=l,n.Collection=t.Collection,n.Model=t.Object||t.Model,n.Events=t.Events}).call(e,o(1))},function(Oa,Pa){var Qa;Qa=function(){return this}();try{Qa=Qa||Function("return this")()||eval("this")}catch(e){"object"==typeof window&&(Qa=window)}Oa.exports=Qa},function(e,t,n){var r,i,o,a,s,u;for(o in u=i=n(0),s=u._,u.ko,r={default:null,"backbone-orm":null,"backbone-associations":n(26),"backbone-relational":n(27)},i.settings={orm:r.default},r)if((a=r[o])&&a.isAvailable()){i.settings.orm=a;break}e.exports=function(e){var t;for(o in null==e&&(e={}),e)switch(a=e[o],o){case"orm":if(s.isString(a)){if(!r.hasOwnProperty(a)){console.log("Knockback configure: could not find orm: "+a+". Available: "+s.keys(r).join(", "));continue}if((t=r[a])&&!t.isAvailable()){console.log("Knockback configure: could not enable orm "+a+". Make sure it is included before Knockback");continue}i.settings.orm=t;continue}i.settings.orm=a;break;default:i.settings[o]=a}}},function(e,t,n){var u,l,c,r;function i(e){this.create_options=e,this._vo=l.observable(null)}r=u=n(0),c=r._,l=r.ko,e.exports=(i.prototype.destroy=function(){var e;return this.__kb_released=!0,(e=this.__kb_value)&&(this.__kb_value=null,this.create_options.store&&u.utils.wrappedCreator(e)?this.create_options.store.release(e):u.release(e)),this.create_options=null},i.prototype.value=function(){return l.utils.unwrapObservable(this._vo())},i.prototype.rawValue=function(){return this.__kb_value},i.prototype.valueType=function(e,t){var n;return n=u.getValue(e,t),this.value_type||this._updateValueObservable(n),this.value_type},i.prototype.update=function(e){var t,n,r;if(!this.__kb_released){switch(void 0!==e||(e=null),t=u.utils.valueType(e),(null!=(r=this.__kb_value)?r.__kb_released:void 0)&&(this.__kb_value=this.value_type=void 0),n=this.__kb_value,this.value_type){case u.TYPE_COLLECTION:if(this.value_type===u.TYPE_COLLECTION&&t===u.TYPE_ARRAY)return n(e);if(t===u.TYPE_COLLECTION||c.isNull(e))return void(e&&e instanceof u.CollectionObservable?this._updateValueObservable(u.utils.wrappedObject(e),e):u.peek(n.collection)!==e&&n.collection(e));break;case u.TYPE_MODEL:if(t===u.TYPE_MODEL||c.isNull(e))return void(e&&!u.isModel(e)?this._updateValueObservable(u.utils.wrappedObject(e),e):u.utils.wrappedObject(n)!==u.utils.resolveModel(e)&&this._updateValueObservable(e))}if(this.value_type!==t||c.isUndefined(this.value_type)){if(u.peek(n)!==e)return this._updateValueObservable(e)}else if(u.peek(n)!==e)return n(e)}},i.prototype._updateValueObservable=function(e,t){var n,r,i,o,a,s;return n=this.create_options,r=u.utils.inferCreator(e,n.factory,n.path),null!==e||r||(this.value_type===u.TYPE_MODEL?r=u.ViewModel:this.value_type===u.TYPE_COLLECTION&&(r=u.CollectionObservable)),n.creator=r,a=u.TYPE_UNKNOWN,i=(s=[this.__kb_value,void 0])[0],this.__kb_value=s[1],t?(o=t,n.store&&n.store.retain(t,e,r)):r?n.store?o=n.store.retainOrCreate(e,n,!0):r.models_only?(o=e,a=u.TYPE_SIMPLE):o=r.create?r.create(e,n):new r(e,n):o=c.isArray(e)?(a=u.TYPE_ARRAY,l.observableArray(e)):(a=u.TYPE_SIMPLE,l.observable(e)),(this.value_type=a)===u.TYPE_UNKNOWN&&(l.isObservable(o)?o.__kb_is_co?(this.value_type=u.TYPE_COLLECTION,u.utils.wrappedObject(o,e)):this.value_type||(this.value_type=u.TYPE_SIMPLE):(this.value_type=u.TYPE_MODEL,u.utils.wrappedObject(o,u.utils.resolveModel(e)))),i&&(this.create_options.store?this.create_options.store.release(i):u.release(i)),this.__kb_value=o,this._vo(o)},i.prototype._inferType=function(e){},i)},function(e,Q,t){(function(K,X){var G;!function(){function n(){}var e="object"==typeof self&&self.self===self&&self||"object"==typeof K&&K.global===K&&K||this||{},t=e._,r=Array.prototype,a=Object.prototype,f="undefined"!=typeof Symbol?Symbol.prototype:null,i=r.push,u=r.slice,h=a.toString,o=a.hasOwnProperty,s=Array.isArray,l=Object.keys,c=Object.create,d=function(e){return e instanceof d?e:this instanceof d?void(this._wrapped=e):new d(e)};void 0===Q||Q.nodeType?e._=d:(void 0!==X&&!X.nodeType&&X.exports&&(Q=X.exports=d),Q._=d),d.VERSION="1.9.1";function p(i,o,e){if(void 0===o)return i;switch(null==e?3:e){case 1:return function(e){return i.call(o,e)};case 3:return function(e,t,n){return i.call(o,e,t,n)};case 4:return function(e,t,n,r){return i.call(o,e,t,n,r)}}return function(){return i.apply(o,arguments)}}function v(e,t,n){return d.iteratee!==g?d.iteratee(e,t):null==e?d.identity:d.isFunction(e)?p(e,t,n):d.isObject(e)&&!d.isArray(e)?d.matcher(e):d.property(e)}var g;d.iteratee=g=function(e,t){return v(e,t,1/0)};function b(i,o){return o=null==o?i.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),n=0;n<e;n++)t[n]=arguments[n+o];switch(o){case 0:return i.call(this,t);case 1:return i.call(this,arguments[0],t);case 2:return i.call(this,arguments[0],arguments[1],t)}var r=Array(o+1);for(n=0;n<o;n++)r[n]=arguments[n];return r[o]=t,i.apply(this,r)}}function m(e){if(!d.isObject(e))return{};if(c)return c(e);n.prototype=e;var t=new n;return n.prototype=null,t}function y(t){return function(e){return null==e?void 0:e[t]}}function _(e,t){return null!=e&&o.call(e,t)}function w(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function x(e){var t=C(e);return"number"==typeof t&&0<=t&&t<=k}var k=Math.pow(2,53)-1,C=y("length");d.each=d.forEach=function(e,t,n){var r,i;if(t=p(t,n),x(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=d.keys(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e},d.map=d.collect=function(e,t,n){t=v(t,n);for(var r=!x(e)&&d.keys(e),i=(r||e).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=t(e[s],s,e)}return o};function T(u){return function(e,t,n,r){var i=3<=arguments.length;return function(e,t,n,r){var i=!x(e)&&d.keys(e),o=(i||e).length,a=0<u?0:o-1;for(r||(n=e[i?i[a]:a],a+=u);0<=a&&a<o;a+=u){var s=i?i[a]:a;n=t(n,e[s],s,e)}return n}(e,p(t,r,4),n,i)}}d.reduce=d.foldl=d.inject=T(1),d.reduceRight=d.foldr=T(-1),d.find=d.detect=function(e,t,n){var r=(x(e)?d.findIndex:d.findKey)(e,t,n);if(void 0!==r&&-1!==r)return e[r]},d.filter=d.select=function(e,r,t){var i=[];return r=v(r,t),d.each(e,function(e,t,n){r(e,t,n)&&i.push(e)}),i},d.reject=function(e,t,n){return d.filter(e,d.negate(v(t)),n)},d.every=d.all=function(e,t,n){t=v(t,n);for(var r=!x(e)&&d.keys(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(!t(e[a],a,e))return!1}return!0},d.some=d.any=function(e,t,n){t=v(t,n);for(var r=!x(e)&&d.keys(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(t(e[a],a,e))return!0}return!1},d.contains=d.includes=d.include=function(e,t,n,r){return x(e)||(e=d.values(e)),"number"==typeof n&&!r||(n=0),0<=d.indexOf(e,t,n)},d.invoke=b(function(e,n,r){var i,o;return d.isFunction(n)?o=n:d.isArray(n)&&(i=n.slice(0,-1),n=n[n.length-1]),d.map(e,function(e){var t=o;if(!t){if(i&&i.length&&(e=w(e,i)),null==e)return;t=e[n]}return null==t?t:t.apply(e,r)})}),d.pluck=function(e,t){return d.map(e,d.property(t))},d.where=function(e,t){return d.filter(e,d.matcher(t))},d.findWhere=function(e,t){return d.find(e,d.matcher(t))},d.max=function(e,r,t){var n,i,o=-1/0,a=-1/0;if(null==r||"number"==typeof r&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=x(e)?e:d.values(e)).length;s<u;s++)null!=(n=e[s])&&o<n&&(o=n);else r=v(r,t),d.each(e,function(e,t,n){i=r(e,t,n),(a<i||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},d.min=function(e,r,t){var n,i,o=1/0,a=1/0;if(null==r||"number"==typeof r&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=x(e)?e:d.values(e)).length;s<u;s++)null!=(n=e[s])&&n<o&&(o=n);else r=v(r,t),d.each(e,function(e,t,n){((i=r(e,t,n))<a||i===1/0&&o===1/0)&&(o=e,a=i)});return o},d.shuffle=function(e){return d.sample(e,1/0)},d.sample=function(e,t,n){if(null==t||n)return x(e)||(e=d.values(e)),e[d.random(e.length-1)];var r=x(e)?d.clone(e):d.values(e),i=C(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=d.random(a,o),u=r[a];r[a]=r[s],r[s]=u}return r.slice(0,t)},d.sortBy=function(e,r,t){var i=0;return r=v(r,t),d.pluck(d.map(e,function(e,t,n){return{value:e,index:i++,criteria:r(e,t,n)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(r<n||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index}),"value")};function E(a,t){return function(r,i,e){var o=t?[[],[]]:{};return i=v(i,e),d.each(r,function(e,t){var n=i(e,t,r);a(o,e,n)}),o}}d.groupBy=E(function(e,t,n){_(e,n)?e[n].push(t):e[n]=[t]}),d.indexBy=E(function(e,t,n){e[n]=t}),d.countBy=E(function(e,t,n){_(e,n)?e[n]++:e[n]=1});var O=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;d.toArray=function(e){return e?d.isArray(e)?u.call(e):d.isString(e)?e.match(O):x(e)?d.map(e,d.identity):d.values(e):[]},d.size=function(e){return null==e?0:x(e)?e.length:d.keys(e).length},d.partition=E(function(e,t,n){e[n?0:1].push(t)},!0),d.first=d.head=d.take=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[0]:d.initial(e,e.length-t)},d.initial=function(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},d.last=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[e.length-1]:d.rest(e,Math.max(0,e.length-t))},d.rest=d.tail=d.drop=function(e,t,n){return u.call(e,null==t||n?1:t)},d.compact=function(e){return d.filter(e,Boolean)};var S=function(e,t,n,r){for(var i=(r=r||[]).length,o=0,a=C(e);o<a;o++){var s=e[o];if(x(s)&&(d.isArray(s)||d.isArguments(s)))if(t)for(var u=0,l=s.length;u<l;)r[i++]=s[u++];else S(s,t,n,r),i=r.length;else n||(r[i++]=s)}return r};d.flatten=function(e,t){return S(e,t,!1)},d.without=b(function(e,t){return d.difference(e,t)}),d.uniq=d.unique=function(e,t,n,r){d.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=v(n,r));for(var i=[],o=[],a=0,s=C(e);a<s;a++){var u=e[a],l=n?n(u,a,e):u;t&&!n?(a&&o===l||i.push(u),o=l):n?d.contains(o,l)||(o.push(l),i.push(u)):d.contains(i,u)||i.push(u)}return i},d.union=b(function(e){return d.uniq(S(e,!0,!0))}),d.intersection=function(e){for(var t=[],n=arguments.length,r=0,i=C(e);r<i;r++){var o=e[r];if(!d.contains(t,o)){var a;for(a=1;a<n&&d.contains(arguments[a],o);a++);a===n&&t.push(o)}}return t},d.difference=b(function(e,t){return t=S(t,!0,!0),d.filter(e,function(e){return!d.contains(t,e)})}),d.unzip=function(e){for(var t=e&&d.max(e,C).length||0,n=Array(t),r=0;r<t;r++)n[r]=d.pluck(e,r);return n},d.zip=b(d.unzip),d.object=function(e,t){for(var n={},r=0,i=C(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n};function N(o){return function(e,t,n){t=v(t,n);for(var r=C(e),i=0<o?0:r-1;0<=i&&i<r;i+=o)if(t(e[i],i,e))return i;return-1}}d.findIndex=N(1),d.findLastIndex=N(-1),d.sortedIndex=function(e,t,n,r){for(var i=(n=v(n,r,1))(t),o=0,a=C(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<i?o=s+1:a=s}return o};function A(o,a,s){return function(e,t,n){var r=0,i=C(e);if("number"==typeof n)0<o?r=0<=n?n:Math.max(n+i,r):i=0<=n?Math.min(n+1,i):n+i+1;else if(s&&n&&i)return e[n=s(e,t)]===t?n:-1;if(t!=t)return 0<=(n=a(u.call(e,r,i),d.isNaN))?n+r:-1;for(n=0<o?r:i-1;0<=n&&n<i;n+=o)if(e[n]===t)return n;return-1}}d.indexOf=A(1,d.findIndex,d.sortedIndex),d.lastIndexOf=A(-1,d.findLastIndex),d.range=function(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i},d.chunk=function(e,t){if(null==t||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(u.call(e,r,r+=t));return n};function j(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=m(e.prototype),a=e.apply(o,i);return d.isObject(a)?a:o}d.bind=b(function(t,n,r){if(!d.isFunction(t))throw new TypeError("Bind must be called on a function");var i=b(function(e){return j(t,i,n,this,r.concat(e))});return i}),d.partial=b(function(i,o){var a=d.partial.placeholder,s=function(){for(var e=0,t=o.length,n=Array(t),r=0;r<t;r++)n[r]=o[r]===a?arguments[e++]:o[r];for(;e<arguments.length;)n.push(arguments[e++]);return j(i,s,this,this,n)};return s}),(d.partial.placeholder=d).bindAll=b(function(e,t){var n=(t=S(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=d.bind(e[r],e)}}),d.memoize=function(r,i){var o=function(e){var t=o.cache,n=""+(i?i.apply(this,arguments):e);return _(t,n)||(t[n]=r.apply(this,arguments)),t[n]};return o.cache={},o},d.delay=b(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),d.defer=d.partial(d.delay,d,1),d.throttle=function(n,r,i){var o,a,s,u,l=0;i||(i={});function c(){l=!1===i.leading?0:d.now(),o=null,u=n.apply(a,s),o||(a=s=null)}function e(){var e=d.now();l||!1!==i.leading||(l=e);var t=r-(e-l);return a=this,s=arguments,t<=0||r<t?(o&&(clearTimeout(o),o=null),l=e,u=n.apply(a,s),o||(a=s=null)):o||!1===i.trailing||(o=setTimeout(c,t)),u}return e.cancel=function(){clearTimeout(o),l=0,o=a=s=null},e},d.debounce=function(n,r,i){function o(e,t){a=null,t&&(s=n.apply(e,t))}var a,s,e=b(function(e){if(a&&clearTimeout(a),i){var t=!a;a=setTimeout(o,r),t&&(s=n.apply(this,e))}else a=d.delay(o,r,this,e);return s});return e.cancel=function(){clearTimeout(a),a=null},e},d.wrap=function(e,t){return d.partial(t,e)},d.negate=function(e){return function(){return!e.apply(this,arguments)}},d.compose=function(){var n=arguments,r=n.length-1;return function(){for(var e=r,t=n[r].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},d.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},d.before=function(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},d.once=d.partial(d.before,2),d.restArguments=b;function M(e,t){var n=P.length,r=e.constructor,i=d.isFunction(r)&&r.prototype||a,o="constructor";for(_(e,o)&&!d.contains(t,o)&&t.push(o);n--;)(o=P[n])in e&&e[o]!==i[o]&&!d.contains(t,o)&&t.push(o)}var D=!{toString:null}.propertyIsEnumerable("toString"),P=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];d.keys=function(e){if(!d.isObject(e))return[];if(l)return l(e);var t=[];for(var n in e)_(e,n)&&t.push(n);return D&&M(e,t),t},d.allKeys=function(e){if(!d.isObject(e))return[];var t=[];for(var n in e)t.push(n);return D&&M(e,t),t},d.values=function(e){for(var t=d.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r},d.mapObject=function(e,t,n){t=v(t,n);for(var r=d.keys(e),i=r.length,o={},a=0;a<i;a++){var s=r[a];o[s]=t(e[s],s,e)}return o},d.pairs=function(e){for(var t=d.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r},d.invert=function(e){for(var t={},n=d.keys(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t},d.functions=d.methods=function(e){var t=[];for(var n in e)d.isFunction(e[n])&&t.push(n);return t.sort()};function L(u,l){return function(e){var t=arguments.length;if(l&&(e=Object(e)),t<2||null==e)return e;for(var n=1;n<t;n++)for(var r=arguments[n],i=u(r),o=i.length,a=0;a<o;a++){var s=i[a];l&&void 0!==e[s]||(e[s]=r[s])}return e}}d.extend=L(d.allKeys),d.extendOwn=d.assign=L(d.keys),d.findKey=function(e,t,n){t=v(t,n);for(var r,i=d.keys(e),o=0,a=i.length;o<a;o++)if(t(e[r=i[o]],r,e))return r};function R(e,t,n){return t in n}var I,F;d.pick=b(function(e,t){var n={},r=t[0];if(null==e)return n;d.isFunction(r)?(1<t.length&&(r=p(r,t[1])),t=d.allKeys(e)):(r=R,t=S(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];r(s,a,e)&&(n[a]=s)}return n}),d.omit=b(function(e,n){var t,r=n[0];return d.isFunction(r)?(r=d.negate(r),1<n.length&&(t=n[1])):(n=d.map(S(n,!1,!1),String),r=function(e,t){return!d.contains(n,t)}),d.pick(e,r,t)}),d.defaults=L(d.allKeys,!0),d.create=function(e,t){var n=m(e);return t&&d.extendOwn(n,t),n},d.clone=function(e){return d.isObject(e)?d.isArray(e)?e.slice():d.extend({},e):e},d.tap=function(e,t){return t(e),e},d.isMatch=function(e,t){var n=d.keys(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var a=n[o];if(t[a]!==i[a]||!(a in i))return!1}return!0},I=function(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"==i||"object"==i||"object"==typeof t)&&F(e,t,n,r)},F=function(e,t,n,r){e instanceof d&&(e=e._wrapped),t instanceof d&&(t=t._wrapped);var i=h.call(e);if(i!==h.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return f.valueOf.call(e)===f.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(d.isFunction(a)&&a instanceof a&&d.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var u=(n=n||[]).length;u--;)if(n[u]===e)return r[u]===t;if(n.push(e),r.push(t),o){if((u=e.length)!==t.length)return!1;for(;u--;)if(!I(e[u],t[u],n,r))return!1}else{var l,c=d.keys(e);if(u=c.length,d.keys(t).length!==u)return!1;for(;u--;)if(l=c[u],!_(t,l)||!I(e[l],t[l],n,r))return!1}return n.pop(),r.pop(),!0},d.isEqual=function(e,t){return I(e,t)},d.isEmpty=function(e){return null==e||(x(e)&&(d.isArray(e)||d.isString(e)||d.isArguments(e))?0===e.length:0===d.keys(e).length)},d.isElement=function(e){return!(!e||1!==e.nodeType)},d.isArray=s||function(e){return"[object Array]"===h.call(e)},d.isObject=function(e){var t=typeof e;return"function"==t||"object"==t&&!!e},d.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(t){d["is"+t]=function(e){return h.call(e)==="[object "+t+"]"}}),d.isArguments(arguments)||(d.isArguments=function(e){return _(e,"callee")});var B=e.document&&e.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof B&&(d.isFunction=function(e){return"function"==typeof e||!1}),d.isFinite=function(e){return!d.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},d.isNaN=function(e){return d.isNumber(e)&&isNaN(e)},d.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===h.call(e)},d.isNull=function(e){return null===e},d.isUndefined=function(e){return void 0===e},d.has=function(e,t){if(!d.isArray(t))return _(e,t);for(var n=t.length,r=0;r<n;r++){var i=t[r];if(null==e||!o.call(e,i))return!1;e=e[i]}return!!n},d.noConflict=function(){return e._=t,this},d.identity=function(e){return e},d.constant=function(e){return function(){return e}},d.noop=function(){},d.property=function(t){return d.isArray(t)?function(e){return w(e,t)}:y(t)},d.propertyOf=function(t){return null==t?function(){}:function(e){return d.isArray(e)?w(t,e):t[e]}},d.matcher=d.matches=function(t){return t=d.extendOwn({},t),function(e){return d.isMatch(e,t)}},d.times=function(e,t,n){var r=Array(Math.max(0,e));t=p(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r},d.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},d.now=Date.now||function(){return(new Date).getTime()};function H(t){function n(e){return t[e]}var e="(?:"+d.keys(t).join("|")+")",r=RegExp(e),i=RegExp(e,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,n):e}}var q={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},$=d.invert(q);d.escape=H(q),d.unescape=H($),d.result=function(e,t,n){d.isArray(t)||(t=[t]);var r=t.length;if(!r)return d.isFunction(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=d.isFunction(o)?o.call(e):o}return e};var V=0;d.uniqueId=function(e){var t=++V+"";return e?e+t:t},d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};function z(e){return"\\"+W[e]}var U=/(.)^/,W={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},J=/\\|'|\r|\n|\u2028|\u2029/g;d.template=function(o,e,t){!e&&t&&(e=t),e=d.defaults({},e,d.templateSettings);var n,r=RegExp([(e.escape||U).source,(e.interpolate||U).source,(e.evaluate||U).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(r,function(e,t,n,r,i){return s+=o.slice(a,i).replace(J,z),a=i+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":r&&(s+="';\n"+r+"\n__p+='"),e}),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{n=new Function(e.variable||"obj","_",s)}catch(e){throw e.source=s,e}function i(e){return n.call(this,e,d)}var u=e.variable||"obj";return i.source="function("+u+"){\n"+s+"}",i},d.chain=function(e){var t=d(e);return t._chain=!0,t};function Y(e,t){return e._chain?d(t).chain():t}d.mixin=function(n){return d.each(d.functions(n),function(e){var t=d[e]=n[e];d.prototype[e]=function(){var e=[this._wrapped];return i.apply(e,arguments),Y(this,t.apply(d,e))}}),d},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=r[t];d.prototype[t]=function(){var e=this._wrapped;return n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0],Y(this,e)}}),d.each(["concat","join","slice"],function(e){var t=r[e];d.prototype[e]=function(){return Y(this,t.apply(this._wrapped,arguments))}}),d.prototype.value=function(){return this._wrapped},d.prototype.valueOf=d.prototype.toJSON=d.prototype.value,d.prototype.toString=function(){return String(this._wrapped)},void 0===(G=function(){return d}.apply(Q,[]))||(X.exports=G)}()}).call(Q,t(1),t(30)(e))},function(e,t,n){var s,h,c,d,r,a=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};function i(i,e,o){this._onCollectionChange=function(e,t){return function(){return e.apply(t,arguments)}}(this._onCollectionChange,this);var a,l=this;return a=Array.prototype.slice.call(d.isArguments(i)?i:arguments),h.ignore(function(){var e,t,u,n,r;for(i=a[0]instanceof h.Collection?a.shift():d.isArray(a[0])?new h.Collection(a.shift()):new h.Collection,d.isFunction(a[0])&&(a[0]={view_model:a[0]}),o={},n=0,r=a.length;n<r;n++)e=a[n],d.extend(o,e);return(u=h.utils.wrappedObservable(l,c.observableArray([]))).__kb_is_co=!0,l.in_edit=0,l.__kb||(l.__kb={}),(o=h.utils.collapseOptions(o)).auto_compact&&(l.auto_compact=!0),o.sort_attribute?l._comparator=c.observable(l._attributeComparator(o.sort_attribute)):l._comparator=c.observable(o.comparator),o.filters?l._filters=c.observableArray(d.isArray(o.filters)?o.filters:o.filters?[o.filters]:void 0):l._filters=c.observableArray([]),t=l.create_options={store:h.Store.useOptionsOrCreate(o,i,u)},h.utils.wrappedObject(u,i),l.path=o.path,t.factory=h.utils.wrappedFactory(u,l._shareOrCreateFactory(o)),t.path=h.utils.pathJoin(o.path,"models"),t.creator=t.factory.creatorForPath(null,t.path),t.creator&&(l.models_only=t.creator.models_only),h.publishMethods(u,l,s),l._collection=c.observable(i),u.collection=l.collection=c.computed({read:function(){return l._collection()},write:function(t){return h.ignore(function(){var e;if((e=l._collection())!==t)return h.utils.wrappedObject(u,t),e&&e.unbind("all",l._onCollectionChange),t&&t.bind("all",l._onCollectionChange),l._collection(t)})}}),i&&i.bind("all",l._onCollectionChange),l._mapper=c.computed(function(){var e,t,n,r,i,o,a,s;if(e=l._comparator(),r=l._filters())for(a=0,s=r.length;a<s;a++)n=r[a],c.utils.unwrapObservable(n);t=l._collection(),l.in_edit||(u=h.utils.wrappedObservable(l),h.peek(u),t&&(i=t.models),o=i&&0!==t.models.length?(i=d.filter(i,function(e){return!r.length||l._selectModel(e)}),e?d.map(i,function(e){return l._createViewModel(e)}).sort(e):l.models_only?r.length?i:i.slice():d.map(i,function(e){return l._createViewModel(e)})):[],l.in_edit++,u(o),l.in_edit--)}),u.subscribe(d.bind(l._onObservableArrayChange,l)),h.statistics&&h.statistics.register("CollectionObservable",l),u})}r=h=n(0),d=r._,c=r.ko,s=["destroy","shareOptions","filters","comparator","sortAttribute","viewModelByModel","hasViewModels"],h.compare=function(e,t){return d.isString(e)?e.localeCompare(""+t):d.isString(t)?t.localeCompare(""+e):e===t?0:e<t?-1:1},h.CollectionObservable=(i.extend=h.extend,i.prototype.destroy=function(){var e,t,n;return this.__kb_released=!0,n=h.utils.wrappedObservable(this),t=h.peek(this._collection),h.utils.wrappedObject(n,null),t&&(t.unbind("all",this._onCollectionChange),(e=h.peek(n)).splice(0,e.length)),this.collection.dispose(),this._collection=n.collection=this.collection=null,this._mapper.dispose(),this._mapper=null,h.release(this._filters),this._filters=null,this._comparator(null),this._comparator=null,this.create_options=null,n.collection=null,h.utils.wrappedDestroy(this),!h.statistics||h.statistics.unregister("CollectionObservable",this)},i.prototype.shareOptions=function(){var e;return e=h.utils.wrappedObservable(this),{store:h.utils.wrappedStore(e),factory:h.utils.wrappedFactory(e)}},i.prototype.filters=function(e){return e?this._filters(d.isArray(e)?e:[e]):this._filters([])},i.prototype.comparator=function(e){return this._comparator(e)},i.prototype.sortAttribute=function(e){return this._comparator(e?this._attributeComparator(e):null)},i.prototype.viewModelByModel=function(n){var r;return this.models_only?null:(r=n.hasOwnProperty(n.idAttribute)?n.idAttribute:"cid",d.find(h.peek(h.utils.wrappedObservable(this)),function(e){var t;return!(null==e||null==(t=e.__kb)||!t.object)&&e.__kb.object[r]===n[r]}))},i.prototype.hasViewModels=function(){return!this.models_only},i.prototype.compact=function(){var t=this;return h.ignore(function(){var e;if(e=h.utils.wrappedObservable(t),h.utils.wrappedStoreIsOwned(e))return h.utils.wrappedStore(e).clear(),t._collection.notifySubscribers(t._collection())})},i.prototype._shareOrCreateFactory=function(e){var t,n,r,i;if(t=h.utils.pathJoin(e.path,"models"),r=e.factories,(i=e.factory)&&(n=i.creatorForPath(null,t))&&(!r||r.models===n)){if(!r)return i;if(i.hasPathMappings(r,e.path))return i}return i=new h.Factory(e.factory),r&&i.addPathMappings(r,e.path),i.creatorForPath(null,t)||(e.hasOwnProperty("models_only")?e.models_only?i.addPathMapping(t,{models_only:!0}):i.addPathMapping(t,h.ViewModel):e.view_model?i.addPathMapping(t,e.view_model):e.create?i.addPathMapping(t,{create:e.create}):i.addPathMapping(t,h.ViewModel)),i},i.prototype._onCollectionChange=function(r,i){var o=this;return h.ignore(function(){var e,t,n;if(!o.in_edit&&!h.wasReleased(o))switch(r){case"reset":o.auto_compact?o.compact():o._collection.notifySubscribers(o._collection());break;case"sort":case"resort":o._collection.notifySubscribers(o._collection());break;case"new":case"add":if(!o._selectModel(i))return;if(n=h.utils.wrappedObservable(o),-1===(e=o._collection()).indexOf(i))return;if(o.viewModelByModel(i))return;o.in_edit++,(t=o._comparator())?(n().push(o._createViewModel(i)),n.sort(t)):n.splice(e.indexOf(i),0,o._createViewModel(i)),o.in_edit--;break;case"remove":case"destroy":o._onModelRemove(i);break;case"change":if(!o._selectModel(i))return o._onModelRemove(i);if(!(o.models_only?i:o.viewModelByModel(i)))return o._onCollectionChange("add",i);if(!(t=o._comparator()))return;o.in_edit++,h.utils.wrappedObservable(o).sort(t),o.in_edit--}})},i.prototype._onModelRemove=function(e){var t,n;if(n=this.models_only?e:this.viewModelByModel(e))return t=h.utils.wrappedObservable(this),this.in_edit++,t.remove(n),this.in_edit--},i.prototype._onObservableArrayChange=function(c){var f=this;return h.ignore(function(){var e,t,n,r,i,o,a,s,u,l;if(!f.in_edit&&(f.models_only&&(!c.length||h.isModel(c[0]))||!f.models_only&&(!c.length||d.isObject(c[0])&&!h.isModel(c[0]))||h._throwUnexpected(f,"incorrect type passed"),o=h.utils.wrappedObservable(f),e=h.peek(f._collection),n=h.peek(f._filters).length,e)){if(s=c,f.models_only)i=d.filter(c,function(e){return!n||f._selectModel(e)});else for(n&&(s=[]),i=[],u=0,l=c.length;u<l;u++){if(a=c[u],r=h.utils.wrappedObject(a),n){if(!f._selectModel(r))continue;s.push(a)}(t=f.create_options.store.find(r,f.create_options.creator))&&(t.constructor===a.constructor||h._throwUnexpected(f,"replacing different type of view model")),f.create_options.store.retain(a,r,f.create_options.creator),i.push(r)}f.in_edit++,c.length===s.length||o(s),d.isEqual(e.models,i)||e.reset(i),f.in_edit--}})},i.prototype._attributeComparator=function(r){var n;return n=function(e,t){var n;return n=c.utils.unwrapObservable(r),h.compare(e.get(n),t.get(n))},this.models_only?n:function(e,t){return n(h.utils.wrappedModel(e),h.utils.wrappedModel(t))}},i.prototype._createViewModel=function(e){return this.models_only?e:this.create_options.store.retainOrCreate(e,this.create_options)},i.prototype._selectModel=function(e){var t,n,r,i,o;for(r=0,i=(n=h.peek(this._filters)).length;r<i;r++)if(t=n[r],t=h.peek(t),d.isFunction(t)){if(!t(e))return!1}else if(d.isArray(t)){if(o=e.id,a.call(t,o)<0)return!1}else if(e.id!==t)return!1;return!0},i),h.collectionObservable=function(e,t,n){return new h.CollectionObservable(arguments)},h.observableCollection=h.collectionObservable},function(e,t,n){function r(e,t){return function(){return e.apply(t,arguments)}}var l,c,f,i;function o(e,t,n){this._unbindCallbacks=r(this._unbindCallbacks,this),this._onModelUnloaded=r(this._onModelUnloaded,this),this._onModelLoaded=r(this._onModelLoaded,this),this.__kb||(this.__kb={}),this.__kb.callbacks={},this.ee=null,n&&this.registerCallbacks(t,n),e&&this.emitter(e)}i=l=n(0),f=i._,c=i.ko,l.EventWatcher=(o.useOptionsOrCreate=function(e,t,n,r){return e.event_watcher?(e.event_watcher.emitter()!==t&&e.event_watcher.model_ref!==t&&l._throwUnexpected(this,"emitter not matching"),l.utils.wrappedEventWatcher(n,e.event_watcher).registerCallbacks(n,r)):(l.utils.wrappedEventWatcherIsOwned(n,!0),l.utils.wrappedEventWatcher(n,new l.EventWatcher(t)).registerCallbacks(n,r))},o.prototype.destroy=function(){return this.emitter(null),this.__kb.callbacks=null,l.utils.wrappedDestroy(this)},o.prototype.emitter=function(e){return 0===arguments.length||this.ee===e?this.ee:(this.model_ref&&(this.model_ref.unbind("loaded",this._onModelLoaded),this.model_ref.unbind("unloaded",this._onModelUnloaded),this.model_ref.release(),this.model_ref=null),l.Backbone&&l.Backbone.ModelRef&&e instanceof l.Backbone.ModelRef?(this.model_ref=e,this.model_ref.retain(),this.model_ref.bind("loaded",this._onModelLoaded),this.model_ref.bind("unloaded",this._onModelUnloaded),e=this.model_ref.model()||null):delete this.model_ref,this.ee!==e&&(e?this._onModelLoaded(e):this._onModelUnloaded(this.ee)),e)},o.prototype.registerCallbacks=function(e,t){var n,r,i,o,a,s,u=this;for(e||l._throwMissing(this,"obj"),t||l._throwMissing(this,"callback_info"),r=t.event_selector?t.event_selector.split(" "):["change"],i=this.ee,o=function(o){var a;if((a=u.__kb.callbacks[o])||(a=u.__kb.callbacks[o]={model:null,list:[],fn:function(e){var t,n,r,i;for(n=0,r=(i=a.list).length;n<r;n++)(t=i[n]).update&&(e&&t.key&&e.hasChanged&&!e.hasChanged(c.utils.unwrapObservable(t.key))||(l.statistics&&l.statistics.addModelEvent({name:o,model:e,key:t.key,path:t.path}),t.update()));return null}}),a.list.push(f.defaults({obj:e},t)),i)return u._onModelLoaded(i)},a=0,s=r.length;a<s;a++)(n=r[a])&&o(n);return this},o.prototype.releaseCallbacks=function(e){var t,n,r;for(n in this.ee=null,r=this.__kb.callbacks)t=r[n],this._unbindCallbacks(n,t,l.wasReleased(e));return delete this.__kb.callbacks},o.prototype._onModelLoaded=function(e){var t,n,r,i,o,a,s,u;for(n in this.ee=e,a=this.__kb.callbacks)for((t=a[n]).model&&t.model!==e&&this._unbindCallbacks(n,t,!0),t.model||(t.model=e).bind(n,t.fn),i=0,o=(s=t.list).length;i<o;i++)(r=s[i]).unbind_fn||(r.unbind_fn=null!=(u=l.settings.orm)?u.bind(e,r.key,r.update,r.path):void 0),r.emitter&&r.emitter(e)},o.prototype._onModelUnloaded=function(e){var t,n,r;if(this.ee===e)for(n in this.ee=null,r=this.__kb.callbacks)t=r[n],this._unbindCallbacks(n,t)},o.prototype._unbindCallbacks=function(e,t,n){var r,i,o,a;for(t.model&&(t.model.unbind(e,t.fn),t.model=null),i=0,o=(a=t.list).length;i<o;i++)(r=a[i]).unbind_fn&&(r.unbind_fn(),r.unbind_fn=null),!r.emitter||n||l.wasReleased(r.obj)||r.emitter(null)},o),l.emitterObservable=function(e,t){return new l.EventWatcher(e,t)}},function(e,t,n){var a;function r(e){this.paths={},e&&(this.parent_factory=e)}(a=n(0))._,a.Factory=(r.useOptionsOrCreate=function(e,t,n){var r;return e.factory&&(!e.factories||e.factories&&e.factory.hasPathMappings(e.factories,n))?a.utils.wrappedFactory(t,e.factory):(r=a.utils.wrappedFactory(t,new a.Factory(e.factory)),e.factories&&r.addPathMappings(e.factories,n),r)},r.prototype.hasPath=function(e){var t;return this.paths.hasOwnProperty(e)||(null!=(t=this.parent_factory)?t.hasPath(e):void 0)},r.prototype.addPathMapping=function(e,t){return this.paths[e]=t},r.prototype.addPathMappings=function(e,t){var n,r;for(r in e)n=e[r],this.paths[a.utils.pathJoin(t,r)]=n},r.prototype.hasPathMappings=function(e,t){var n,r,i,o;for(o in n=!0,e)r=e[o],n&=(i=this.creatorForPath(null,a.utils.pathJoin(t,o)))&&r===i;return n},r.prototype.creatorForPath=function(e,t){var n,r;return(n=this.paths[t])?n.view_model?n.view_model:n:(n=null!=(r=this.parent_factory)?r.creatorForPath(e,t):void 0)?n:null},r)},function(e,t,n){var r;e.exports=r=n(0),r.configure=n(2),r.modules={underscore:r._,backbone:r.Parse||r.Backbone,knockout:r.ko}},function(e,t,a){(function(e){var f,i,t,h,d,n,r;function o(){}h=null!=h?h:e,r=f=a(0),d=r._,i=r.ko,f.RECUSIVE_AUTO_INJECT=!0,i.bindingHandlers.inject={init:function(e,t,n,r){return f.Inject.inject(i.utils.unwrapObservable(t()),r,e,t,n)}},f.Inject=(o.inject=function(e,i,o,a,s,u){var t;return t=function(e){var t,n,r;if(d.isFunction(e))i=new e(i,o,a,s),f.releaseOnNodeRemove(i,o);else for(t in e.view_model&&(i=new e.view_model(i,o,a,s),f.releaseOnNodeRemove(i,o)),e)r=e[t],"view_model"!==t&&("create"===t?r(i,o,a,s):d.isObject(r)&&!d.isFunction(r)?(n=u||r&&r.create?{}:i,i[t]=f.Inject.inject(r,n,o,a,s,!0)):i[t]=r);return i},u?t(e):f.ignore(function(){return t(e)})},o.injectViewModels=function(e){var t,n,r,i,o,a,s,u,l,c;for(u=[],a=function(e){var t,n,r,i,o;for(e.__kb_injected||e.attributes&&(t=d.find(e.attributes,function(e){return"kb-inject"===e.name}))&&(e.__kb_injected=!0,u.push({el:e,view_model:{},binding:t.value})),r=0,i=(o=e.childNodes).length;r<i;r++)n=o[r],a(n)},!e&&(null!=h?h.document:void 0)&&(e=h.document),a(e),l=0,c=u.length;l<c;l++)(o=(n=u[l]).binding)&&(o.search(/[:]/)<0||(o="{"+o+"}"),(i=new Function("","return ( "+o+" )")())||(i={}),i.options&&(s=i.options,delete i.options),s||(s={}),n.view_model=f.Inject.inject(i,n.view_model,n.el,null,null,!0),t=n.view_model.afterBinding||s.afterBinding,r=n.view_model.beforeBinding||s.beforeBinding),r&&r.call(n.view_model,n.view_model,n.el,s),f.applyBindings(n.view_model,n.el,s),t&&t.call(n.view_model,n.view_model,n.el,s);return u},o),n=i.applyBindings,i.applyBindings=function(e,t){if(!(f.RECUSIVE_AUTO_INJECT?f.injectViewModels(t):[]).length)return n.apply(this,arguments)},f.injectViewModels=f.Inject.injectViewModels,"undefined"!=typeof document&&null!==document&&(t=function(){return"complete"!==document.readyState?setTimeout(t,0):f.injectViewModels()})()}).call(t,a(1))},function(e,t,n){var r,i,o,a,s;(null!=(a=(i=(r=n(0)).ko).subscribable)&&null!=(s=a.fn)?s.extend:void 0)&&(o=i.subscribable.fn.extend,i.subscribable.fn.extend=function(){var e,t,n=this;return(e=o.apply(this,arguments))!==this&&r.isReleaseable(this)&&(t=e.dispose,e.dispose=function(){return null!=t&&t.apply(e,arguments),r.release(n)}),e})},function(e,t,n){var c,f,h,d,p,v,r;function i(a,s,u,e){var l=this;return this._vm=null!=e?e:{},d.ignore(function(){var e,t,n,r,i,o;for(s||d._throwMissing(l,"key_or_info"),l.key=s.key||s,i=0,o=c.length;i<o;i++)s[n=c[i]]&&(l[n]=s[n]);return t=(e=d.utils.collapseOptions(u)).event_watcher,delete e.event_watcher,l._value=new h(e),l._model=p.observable(),(r=d.utils.wrappedObservable(l,p.computed({read:function(){var e,t,n,r,i,o,a;for(i=l._model(),n=0,r=(o=t=[l.key].concat(l.args||[])).length;n<r;n++)e=o[n],p.utils.unwrapObservable(e);return null!=(a=d.utils.wrappedEventWatcher(l))&&a.emitter(i||null),l.read?l.update(l.read.apply(l._vm,t)):v.isUndefined(i)||d.ignore(function(){return l.update(d.getValue(i,d.peek(l.key),l.args))}),l._value.value()},write:function(n){return d.ignore(function(){var e,t;return e=d.utils.unwrapModels(n),t=d.peek(l._model),l.write?(l.write.call(l._vm,e),n=d.getValue(t,d.peek(l.key),l.args)):t&&d.setValue(t,d.peek(l.key),e),l.update(n)})},owner:l._vm}))).__kb_is_o=!0,e.store=d.utils.wrappedStore(r,e.store),e.path=d.utils.pathJoin(e.path,l.key),e.factories&&("function"==typeof e.factories||e.factories.create)?(e.factory=d.utils.wrappedFactory(r,new d.Factory(e.factory)),e.factory.addPathMapping(e.path,e.factories)):e.factory=d.Factory.useOptionsOrCreate(e,r,e.path),delete e.factories,d.publishMethods(r,l,f),r.model=l.model=p.computed({read:function(){return p.utils.unwrapObservable(l._model)},write:function(t){return d.ignore(function(){var e;if(!l.__kb_released&&d.peek(l._model)!==t)return e=d.getValue(t,d.peek(l.key),l.args),l._model(t),t?v.isUndefined(e)?void 0:l.update(e):l.update(null)})}}),d.EventWatcher.useOptionsOrCreate({event_watcher:t},a||null,l,{emitter:l.model,update:function(){return d.ignore(function(){return l.update()})},key:l.key,path:e.path}),l._value.rawValue()||l._value.update(),d.LocalizedObservable&&s.localizer&&(r=new s.localizer(r)),d.DefaultObservable&&s.hasOwnProperty("default")&&(r=d.defaultObservable(r,s.default)),r})}r=d=n(0),v=r._,p=r.ko,h=n(3),f=["value","valueType","destroy"],c=["args","read","write"],d.Observable=(i.prototype.destroy=function(){var e;return e=d.utils.wrappedObservable(this),this.__kb_released=!0,this._value.destroy(),this._value=null,this.model.dispose(),this.model=e.model=null,d.utils.wrappedDestroy(this)},i.prototype.value=function(){return this._value.rawValue()},i.prototype.valueType=function(){return this._value.valueType(d.peek(this._model),d.peek(this.key))},i.prototype.update=function(e){if(!this.__kb_released)return arguments.length||(e=d.getValue(d.peek(this._model),d.peek(this.key))),this._value.update(e)},i),d.observable=function(e,t,n,r){return new d.Observable(e,t,n,r)}},function(e,t,n){var r,l;function i(){this.model_events_tracker=[],this.registered_tracker={}}l=(r=n(0))._,e.exports=r.Statistics=(i.prototype.clear=function(){return this.model_events_tracker=[]},i.prototype.addModelEvent=function(e){return this.model_events_tracker.push(e)},i.prototype.modelEventsStatsString=function(){var e,t,n;for(t in n="",n+="Total Count: "+this.model_events_tracker.length,e=l.groupBy(this.model_events_tracker,function(e){return"event name: '"+e.name+"', attribute name: '"+e.key+"'"}))n+="\n "+t+", count: "+e[t].length;return n},i.prototype.register=function(e,t){return this.registeredTracker(e).push(t)},i.prototype.unregister=function(e,t){var n,r;return r=this.registeredTracker(e),(n=l.indexOf(r,t))<0?"undefined"!=typeof console&&null!==console?console.log("kb.Statistics: failed to unregister type: "+e):void 0:r.splice(n,1)},i.prototype.registeredCount=function(e){var t,n;if(e)return this.registeredTracker(e).length;for(e in t=0,n=this.registered_tracker[e])t+=n[e].length;return t},i.prototype.registeredStatsString=function(e){var t,n,r,i,o;for(n in t="",o=this.registered_tracker)(r=o[n]).length&&(i&&(t+="\n "),t+=(n||"No Name")+": "+r.length,i=!0);return t||e},i.prototype.registeredTracker=function(e){var t;return this.registered_tracker.hasOwnProperty(e)?this.registered_tracker[e]:(t=[],this.registered_tracker[e]=t)},i.eventsStats=function(e,t){var n,r,i,o,a,s,u;for(i={count:0},n=e._events||e._callbacks||{},a=0,s=(u=t?[t]:l.keys(n)).length;a<s;a++)if(r=n[t=u[a]]){if(l.isArray(r))i[t]=l.compact(r).length;else for(i[t]=0,o=r.tail;(r=r.next)!==o;)i[t]++;i.count+=i[t]}return i},i)},function(e,t,n){var a,s,u,r;function i(){this.observable_records={},this.replaced_observables=[],a.Store.instances.push(this)}r=a=n(0),u=r._,s=r.ko,e.exports=a.Store=(i.instances=[],i.useOptionsOrCreate=function(e,t,n){var r;return e.store||a.utils.wrappedStoreIsOwned(n,!0),(r=a.utils.wrappedStore(n,e.store||new a.Store)).retain(n,t,e.creator),r},i.prototype.destroy=function(){var e;if(this.__kb_released=!0,this.clear(),0<=(e=u.indexOf(a.Store.instances,this)))return a.Store.instances.splice(e,1)},i.prototype.clear=function(){var e,t,n,r,i,o,a,s,u,l;for(t in r=(u=[this.observable_records,{}])[0],this.observable_records=u[1],r)for(e in i=r[t])n=i[e],this.release(n,!0);for(o=(l=[this.replaced_observables,[]])[0],this.replaced_observables=l[1],a=0,s=o.length;a<s;a++)(n=o[a]).__kb_released||this.release(n,!0)},i.prototype.compact=function(){var e,t,n,r;for(t in r=this.observable_records)for(e in n=r[t])n[e].__kb_released&&delete n[e]},i.prototype.retain=function(e,t,n){var r;if(this._canRegister(e)){if(n||(n=e.constructor),r=this.find(t,n)){if(r===e)return this._getOrCreateStoreReferences(e).ref_count++,e;this._retire(r)}return this._add(e,t,n),this._getOrCreateStoreReferences(e).ref_count++,e}},i.prototype.retainOrCreate=function(e,t,n){var r,i,o=this;if(!(r=this._creator(e,t)))return a.utils.createFromDefaultCreator(e,t);if(r.models_only)return e;if(i=this.find(e,r))return n&&a.settings.deep_retain?this.retain(i,e,r):i;if(!u.isFunction(r.create||r))throw new Error('Invalid factory for "'+t.path+'"');return i=a.ignore(function(){return t=u.defaults({store:o,creator:r},t),(i=r.create?r.create(e,t):new r(e,t))||s.observable(null)}),this.retain(i,e,r),i},i.prototype.reuse=function(e,t){var n,r,i;if((r=a.utils.wrappedObject(e))!==t){if(!this._canRegister(e))throw new Error("Cannot reuse a simple observable");if(1!==this._refCount(e))throw new Error("Trying to change a shared view model. Ref count: "+this._refCount(e));n=a.utils.wrappedCreator(e)||e.constructor,u.isUndefined(r)||(i=this.find(r,n)),this.retain(e,t,n),i&&this.release(i)}},i.prototype.release=function(e,t){var n;if(!this._canRegister(e))return a.release(e);if(n=this._storeReferences(e)){if(!t&&0<--n.ref_count)return;this._clearStoreReferences(e)}return this._remove(e),e.__kb_released?void 0:t||this._refCount(e)<=1?a.release(e):void 0},i.prototype.find=function(e,t){var n,r,i;return(r=this.observable_records[this._creatorId(t)])?(null!=(i=n=r[this._cid(e)])?i.__kb_released:void 0)?(delete r[this._cid(e)],null):n:null},i.prototype._refCount=function(e){var t;return e.__kb_released?("undefined"!=typeof console&&null!==console&&console.log("Observable already released"),0):(t=a.utils.get(e,"stores_references"))?u.reduce(t,function(e,t){return e+t.ref_count},0):1},i.prototype._canRegister=function(e){return e&&!s.isObservable(e)&&!e.__kb_is_co},i.prototype._cid=function(e){return e?e.cid||(e.cid=u.uniqueId("c")):"null"},i.prototype._creatorId=function(e){var t,n,r,i,o;for((t=e.create||e).__kb_cids||(t.__kb_cids=[]),r=0,i=(o=t.__kb_cids).length;r<i;r++)if((n=o[r]).create===t)return n.cid;return t.__kb_cids.push(n={create:t,cid:u.uniqueId("kb")}),n.cid},i.prototype._storeReferences=function(e){var t,n=this;if(t=a.utils.get(e,"stores_references"))return u.find(t,function(e){return e.store===n})},i.prototype._getOrCreateStoreReferences=function(e){var t,n,r=this;return n=a.utils.orSet(e,"stores_references",[]),(t=u.find(n,function(e){return e.store===r}))||n.push(t={store:this,ref_count:0,release:function(){return r.release(e)}}),t},i.prototype._clearStoreReferences=function(e){var t,n;if(a.utils.get(e,"stores_references"))for(t in n=e.__kb.stores_references)if(n[t].store===this){e.__kb.stores_references.splice(t,1);break}},i.prototype._retire=function(e){return this._clearStoreReferences(e),this.replaced_observables.push(e),this._remove(e)},i.prototype._add=function(e,t,n){var r,i;return n||(n=e.constructor),a.utils.wrappedObject(e,t),a.utils.wrappedCreator(e,n),((r=this.observable_records)[i=this._creatorId(n)]||(r[i]={}))[this._cid(t)]=e},i.prototype._remove=function(e){var t,n,r;return t=a.utils.wrappedCreator(e)||e.constructor,(n=this.find(r=a.utils.wrappedObject(e),t))&&n===e&&delete this.observable_records[this._creatorId(t)][this._cid(r)],a.utils.wrappedObject(e,null),a.utils.wrappedCreator(e,null)},i.prototype._creator=function(e,t){var n;return t.creator?t.creator:(n=a.utils.inferCreator(e,t.factory,t.path))?n:a.isModel(e)?a.ViewModel:void 0},i)},function(e,t,n){var i,r,o,a;function s(){}a=i=n(0),o=a._,r=a.ko,i.utils=(s.get=function(e,t,n){return e.__kb&&e.__kb.hasOwnProperty(t)?e.__kb[t]:n},s.set=function(e,t,n){return(e.__kb||(e.__kb={}))[t]=n},s.orSet=function(e,t,n){return(e.__kb||(e.__kb={})).hasOwnProperty(t)||(e.__kb[t]=n),e.__kb[t]},s.has=function(e,t){return e.__kb&&e.__kb.hasOwnProperty(t)},s.wrappedObservable=function(e,t){return 1===arguments.length?i.utils.get(e,"observable"):i.utils.set(e,"observable",t)},s.wrappedObject=function(e,t){return 1===arguments.length?i.utils.get(e,"object"):i.utils.set(e,"object",t)},s.wrappedCreator=function(e,t){return 1===arguments.length?i.utils.get(e,"creator"):i.utils.set(e,"creator",t)},s.wrappedModel=function(e,t){return 1===arguments.length?o.isUndefined(t=i.utils.get(e,"object"))?e:t:i.utils.set(e,"object",t)},s.wrappedStore=function(e,t){return 1===arguments.length?i.utils.get(e,"store"):i.utils.set(e,"store",t)},s.wrappedStoreIsOwned=function(e,t){return 1===arguments.length?i.utils.get(e,"store_is_owned"):i.utils.set(e,"store_is_owned",t)},s.wrappedFactory=function(e,t){return 1===arguments.length?i.utils.get(e,"factory"):i.utils.set(e,"factory",t)},s.wrappedEventWatcher=function(e,t){return 1===arguments.length?i.utils.get(e,"event_watcher"):i.utils.set(e,"event_watcher",t)},s.wrappedEventWatcherIsOwned=function(e,t){return 1===arguments.length?i.utils.get(e,"event_watcher_is_owned"):i.utils.set(e,"event_watcher_is_owned",t)},s.wrappedDestroy=n(25),s.valueType=function(e){return e?e.__kb_is_o?e.valueType():e.__kb_is_co||e instanceof i.Collection?i.TYPE_COLLECTION:e instanceof i.ViewModel||e instanceof i.Model?i.TYPE_MODEL:o.isArray(e)?i.TYPE_ARRAY:i.TYPE_SIMPLE:i.TYPE_UNKNOWN},s.pathJoin=function(e,t){return(e?"."!==e[e.length-1]?e+".":e:"")+t},s.optionsPathJoin=function(e,t){return o.defaults({path:this.pathJoin(e.path,t)},e)},s.inferCreator=function(e,t,n){var r;return t&&(r=t.creatorForPath(e,n))?r:e?e instanceof i.Model?i.ViewModel:e instanceof i.Collection?i.CollectionObservable:null:null},s.createFromDefaultCreator=function(e,t){return i.isModel(e)?i.viewModel(e,t):i.isCollection(e)?i.collectionObservable(e,t):o.isArray(e)?r.observableArray(e):r.observable(e)},s.collapseOptions=n(22),s.unwrapModels=n(24),s.resolveModel=function(e){return e&&i.Backbone&&i.Backbone.ModelRef&&e instanceof i.Backbone.ModelRef?e.model():e},s)},function(e,t,n){var h,f,d,p,v,g,b,r;function i(u,l,e){var c,f=this;return null==l&&(l={}),c=Array.prototype.slice.call(b.isArguments(u)?u:arguments),v.ignore(function(){var e,t,n,r,i,o,a,s;for(!(u=c.shift())||v.isModel(u)||v._throwUnexpected(f,"not a model"),b.isArray(c[0])&&(c[0]={keys:c[0]}),f.__kb||(f.__kb={}),f.__kb.view_model=1<c.length?c.pop():f,l={},r=0,o=c.length;r<o;r++)e=c[r],b.extend(l,e);for(l=v.utils.collapseOptions(l),i=0,a=h.length;i<a;i++)n=h[i],l.hasOwnProperty(n)&&(f.__kb[n]=l[n]);return v.Store.useOptionsOrCreate(l,u,f),f.__kb.path=l.path,v.Factory.useOptionsOrCreate(l,f,l.path),s=v.utils.set(f,"_model",g.observable()),f.model=g.computed({read:function(){return g.utils.unwrapObservable(s)},write:function(e){return v.ignore(function(){if(!v.wasReleased(f)&&t)return f.__kb.store.reuse(f,v.utils.resolveModel(e)),t.emitter(e),s(t.ee),!t.ee||f.createObservables(t.ee)})}}),t=v.utils.wrappedEventWatcher(f,new v.EventWatcher(u,f,{emitter:f._model,update:function(){return v.ignore(function(){return!(null!=t?t.ee:void 0)||f.createObservables(null!=t?t.ee:void 0)})}})),v.utils.wrappedObject(f,u=t.ee),s(t.ee),f.__kb.create_options={store:v.utils.wrappedStore(f),factory:v.utils.wrappedFactory(f),path:f.__kb.path,event_watcher:v.utils.wrappedEventWatcher(f)},l.requires&&f.createObservables(u,l.requires),f.__kb.internals&&f.createObservables(u,f.__kb.internals),l.mappings&&f.createObservables(u,l.mappings),f.__kb.statics&&p(f,u),f.createObservables(u,f.__kb.keys),v.statistics&&v.statistics.register("ViewModel",f),f})}r=v=n(0),b=r._,g=r.ko,f=function(e,t){var n;if(n=e.__kb.internals&&~b.indexOf(e.__kb.internals,t)?"_"+t:t,!e.__kb.view_model.hasOwnProperty(n))return e.__kb.view_model[n]=null,n},d=function(e,t,n,r){var i;if((!e.__kb.excludes||!~b.indexOf(e.__kb.excludes,n))&&(!e.__kb.statics||!~b.indexOf(e.__kb.statics,n))&&(i=f(e,n)))return e[i]=e.__kb.view_model[i]=v.observable(t,n,r,e)},p=function(e,t){var n,r,i,o,a;for(i=0,o=(a=e.__kb.statics).length;i<o;i++)n=a[i],(r=f(e,n))&&(t.has(r)?e[r]=e.__kb.view_model[r]=t.get(r):e.__kb.static_defaults&&r in e.__kb.static_defaults?e[r]=e.__kb.view_model[r]=e.__kb.static_defaults[r]:delete e.__kb.view_model[r])},h=["keys","internals","excludes","statics","static_defaults"],v.ViewModel=(i.extend=v.extend,i.prototype.destroy=function(){var e;if(this.__kb_released=!0,this.__kb.view_model!==this)for(e in this.__kb.vm_keys)this.__kb.view_model[e]=null;return this.__kb.view_model=this.__kb.create_options=null,v.releaseKeys(this),v.utils.wrappedDestroy(this),!v.statistics||v.statistics.unregister("ViewModel",this)},i.prototype.shareOptions=function(){return{store:v.utils.wrappedStore(this),factory:v.utils.wrappedFactory(this)}},i.prototype.createObservables=function(e,t){var n,r,i,o,a,s,u,l,c;if(t)if(b.isArray(t))for(s=0,l=t.length;s<l;s++)n=t[s],d(this,e,n,this.__kb.create_options);else for(n in t)r=t[n],(o=f(this,n))&&(b.isString(r)||r.key||(r.key=o),this[o]=this.__kb.view_model[o]=v.observable(e,r,this.__kb.create_options,this));else{if(this.__kb.keys||!e)return;for(n in e.attributes)d(this,e,n,this.__kb.create_options);if(i=null!=(c=v.settings.orm)&&"function"==typeof c.keys?c.keys(e):void 0)for(a=0,u=i.length;a<u;a++)n=i[a],d(this,e,n,this.__kb.create_options)}},i),v.viewModel=function(e,t,n){return new v.ViewModel(arguments)}},function(e,t,n){var i,o,a,s,r;function u(t,e){var n,r=this;return this.dv=e,n=o.utils.wrappedObservable(this,a.computed({read:function(){var e;return e=a.utils.unwrapObservable(t()),s.isNull(e)||s.isUndefined(e)?a.utils.unwrapObservable(r.dv):e},write:function(e){return t(e)}})),o.publishMethods(n,this,i),n}r=o=n(0),s=r._,a=r.ko,n(28),i=["destroy","setToDefault"],e.exports=o.DefaultObservable=(u.prototype.destroy=function(){return o.utils.wrappedDestroy(this)},u.prototype.setToDefault=function(){return o.utils.wrappedObservable(this)(this.dv)},u),o.defaultObservable=function(e,t){return new o.DefaultObservable(e,t)},o.observableDefault=o.defaultObservable},function(e,t,n){var s,a,u,p,r;function i(i,r){var o;return o=p.isArray(r)?(i=i,r):s.call(arguments,1),a.utils.wrappedObservable(this,u.computed({read:function(){var e,t,n;for(r=[u.utils.unwrapObservable(i)],t=0,n=o.length;t<n;t++)e=o[t],r.push(u.utils.unwrapObservable(e));return a.toFormattedString.apply(null,r)},write:function(e){var t,n,r;for(n=a.parseFormattedString(e,u.utils.unwrapObservable(i)),r=Math.min(o.length,n.length),t=0;t<r;)o[t](n[t]),t++}}))}r=a=n(0),p=r._,u=r.ko,s=Array.prototype.slice,a.toFormattedString=function(e){var t,n,r,i,o,a;for(r in o=e.slice(),n=s.call(arguments,1))for(t=n[r],a=u.utils.unwrapObservable(t),(p.isUndefined(a)||p.isNull(a))&&(a=""),i=e.indexOf("{"+r+"}");0<=i;)o=o.replace("{"+r+"}",a),i=e.indexOf("{"+r+"}",i+1);return o},a.parseFormattedString=function(e,t){var n,r,i,o,a,s,u,l,c,f,h,d;for(c=t.slice(),s=i=0,l={};0<=c.search("\\{"+i+"\\}");){for(u=t.indexOf("{"+i+"}");0<=u;)c=c.replace("{"+i+"}","(.*)"),l[u]=i,s++,u=t.indexOf("{"+i+"}",u+1);i++}if(n=i,(a=new RegExp(c).exec(e))&&a.shift(),!a||a.length!==s){for(f=[];0<n--;)f.push("");return f}for(o in r={},d=p.sortBy(p.keys(l),function(e,t){return parseInt(e,10)}))i=l[u=d[o]],r.hasOwnProperty(i)||(r[i]=o);for(h=[],i=0;i<n;)h.push(a[r[i]]),i++;return h},e.exports=a.FormattedObservable=(i.prototype.destroy=function(){return a.utils.wrappedDestroy(this)},i),a.formattedObservable=function(e,t){return new a.FormattedObservable(e,s.call(arguments,1))},a.observableFormatted=a.formattedObservable},function(e,t,n){var o,a,s,u,r;function i(e,t,n){var r,i=this;return this.value=e,this.vm=n,t||(t={}),this.vm||(this.vm={}),this.read||a._throwMissing(this,"read"),a.locale_manager||a._throwMissing(this,"kb.locale_manager"),this.__kb||(this.__kb={}),this.__kb._onLocaleChange=u.bind(this._onLocaleChange,this),this.__kb._onChange=t.onChange,this.value&&(e=s.utils.unwrapObservable(this.value)),this.vo=s.observable(e?this.read(e,null):null),r=a.utils.wrappedObservable(this,s.computed({read:function(){return i.value&&s.utils.unwrapObservable(i.value),i.vo(),i.read(s.utils.unwrapObservable(i.value))},write:function(e){if(i.write||a._throwUnexpected(i,"writing to read-only"),i.write(e,s.utils.unwrapObservable(i.value)),i.vo(e),i.__kb._onChange)return i.__kb._onChange(e)},owner:this.vm})),a.publishMethods(r,this,o),a.locale_manager.bind("change",this.__kb._onLocaleChange),t.hasOwnProperty("default")&&(r=a.DefaultObservable&&s.defaultObservable(r,t.default)),r}r=a=n(0),u=r._,s=r.ko,o=["destroy","observedValue","resetToCurrent"],a.locale_manager||(a.locale_manager=void 0),e.exports=a.LocalizedObservable=(i.extend=a.extend,i.prototype.destroy=function(){return a.locale_manager.unbind("change",this.__kb._onLocaleChange),this.vm=null,a.utils.wrappedDestroy(this)},i.prototype.resetToCurrent=function(){var e,t;if(t=a.utils.wrappedObservable(this),e=this.value?this.read(s.utils.unwrapObservable(this.value)):null,t()!==e)return t(e)},i.prototype.observedValue=function(e){if(0===arguments.length)return this.value;this.value=e,this._onLocaleChange()},i.prototype._onLocaleChange=function(){var e;if(e=this.read(s.utils.unwrapObservable(this.value)),this.vo(e),this.__kb._onChange)return this.__kb._onChange(e)},i),a.localizedObservable=function(e,t,n){return new a.LocalizedObservable(e,t,n)},a.observableLocalized=a.localizedObservable},function(e,t,n){var i,o,a,s,r;function u(e,t){var n,r=this;return this.event_selector=t,e||o._throwMissing(this,"emitter"),this.event_selector||o._throwMissing(this,"event_selector"),this.vo=a.observable(),n=o.utils.wrappedObservable(this,a.computed(function(){return r.vo()})),o.publishMethods(n,this,i),o.utils.wrappedEventWatcher(this,new o.EventWatcher(e,this,{emitter:s.bind(this.emitter,this),update:s.bind(this.update,this),event_selector:this.event_selector})),n}r=o=n(0),s=r._,a=r.ko,i=["destroy"],e.exports=o.TriggeredObservable=(u.prototype.destroy=function(){return o.utils.wrappedDestroy(this)},u.prototype.emitter=function(e){return 0===arguments.length||this.ee===e?this.ee:(this.ee=e)?this.update():void 0},u.prototype.update=function(){if(this.ee)return this.vo()!==this.ee?this.vo(this.ee):this.vo.valueHasMutated()},u),o.triggeredObservable=function(e,t){return new o.TriggeredObservable(e,t)},o.observableTriggered=o.triggeredObservable},function(e,t,n){var f,d,p,v,r;r=d=n(0),v=r._,p=r.ko,n(29),f=function(e){return"function"==typeof(e=p.utils.unwrapObservable(e))?e.apply(null,Array.prototype.slice.call(arguments,1)):e},e.exports=d.Validation=function(){},d.valueValidator=function(u,l,c){return null==c&&(c={}),c&&"function"!=typeof c||(c={}),p.computed(function(){var e,t,n,r,i,o,a,s;for(r in a={$error_count:0},t=p.utils.unwrapObservable(u),"disable"in c&&(n=f(c.disable)),"enable"in c&&(n=!f(c.enable)),o=c.priorities||[],v.isArray(o)||(o=[o]),e=o.length+1,l)s=l[r],a[r]=!n&&f(s,t),a[r]&&(a.$error_count++,(i=0<=v.indexOf(o,r))||(i=o.length),a.$active_error&&i<e?(a.$active_error=r,e=i):a.$active_error||(a.$active_error=r,e=i));return a.$enabled=!n,a.$disable=!!n,a.$valid=0===a.$error_count,a})},d.inputValidator=function(e,t,n){var r,i,o,a,s,u,l,c,f;if(null==n&&(n={}),n&&"function"!=typeof n||(n={}),c=d.valid,(o=t.getAttribute("name"))&&!v.isString(o)&&(o=null),!(r=t.getAttribute("data-bind")))return null;if(!(a=new Function("sc","with(sc[0]) { return { "+r+" } }")([e]))||!a.value)return null;if(a.validation_options&&(v.defaults(a.validation_options,n),n=a.validation_options),r={},c[u=t.getAttribute("type")]&&(r[u]=c[u]),t.hasAttribute("required")&&(r.required=c.required),a.validations)for(i in f=a.validations)l=f[i],r[i]=l;return s=d.valueValidator(a.value,r,n),!o&&!n.no_attach||(e["$"+o]=s),s},d.formValidator=function(e,t){var n,r,i,o,a,s,u,l,c,f,h;for(a={},l=[],(r=t.getAttribute("name"))&&!v.isString(r)&&(r=null),(n=t.getAttribute("data-bind"))&&(s=new Function("sc","with(sc[0]) { return { "+n+" } }")([e]).validation_options),s||(s={}),s.no_attach=!!r,c=0,f=(h=t.getElementsByTagName("input")).length;c<f;c++)(o=(i=h[c]).getAttribute("name"))&&(u=d.inputValidator(e,i,s))&&l.push(a[o]=u);return a.$error_count=p.computed(function(){var e,t,n;for(t=e=0,n=l.length;t<n;t++)e+=(u=l[t])().$error_count;return e}),a.$valid=p.computed(function(){return 0===a.$error_count()}),a.$enabled=p.computed(function(){var e,t,n;for(e=!0,t=0,n=l.length;t<n;t++)e&=(u=l[t])().$enabled;return e}),a.$disabled=p.computed(function(){return!a.$enabled()}),r&&(e["$"+r]=a),a}},function(o,a,s){(function(e){var t,n,r,i;r=function(e,u,w,t){var n=e.Backbone,a=Array.prototype.slice;u.VERSION="1.4.0",u.$=t,u.noConflict=function(){return e.Backbone=n,this},u.emulateHTTP=!1,u.emulateJSON=!1;var s,r=u.Events={},l=/\s+/,c=function(e,t,n,r,i){var o,a=0;if(n&&"object"==typeof n){void 0!==r&&"context"in i&&void 0===i.context&&(i.context=r);for(o=w.keys(n);a<o.length;a++)t=c(e,t,o[a],n[o[a]],i)}else if(n&&l.test(n))for(o=n.split(l);a<o.length;a++)t=e(t,o[a],r,i);else t=e(t,n,r,i);return t};r.on=function(e,t,n){this._events=c(i,this._events||{},e,t,{context:n,ctx:this,listening:s}),s&&(((this._listeners||(this._listeners={}))[s.id]=s).interop=!1);return this},r.listenTo=function(e,t,n){if(!e)return this;var r=e._listenId||(e._listenId=w.uniqueId("l")),i=this._listeningTo||(this._listeningTo={}),o=s=i[r];o||(this._listenId||(this._listenId=w.uniqueId("l")),o=s=i[r]=new v(this,e));var a=f(e,t,n,this);if(s=void 0,a)throw a;return o.interop&&o.on(t,n),this};var i=function(e,t,n,r){if(n){var i=e[t]||(e[t]=[]),o=r.context,a=r.ctx,s=r.listening;s&&s.count++,i.push({callback:n,context:o,ctx:o||a,listening:s})}return e},f=function(e,t,n,r){try{e.on(t,n,r)}catch(e){return e}};r.off=function(e,t,n){return this._events&&(this._events=c(o,this._events,e,t,{context:n,listeners:this._listeners})),this},r.stopListening=function(e,t,n){var r=this._listeningTo;if(!r)return this;for(var i=e?[e._listenId]:w.keys(r),o=0;o<i.length;o++){var a=r[i[o]];if(!a)break;a.obj.off(t,n,this),a.interop&&a.off(t,n)}return w.isEmpty(r)&&(this._listeningTo=void 0),this};var o=function(e,t,n,r){if(e){var i,o=r.context,a=r.listeners,s=0;if(t||o||n){for(i=t?[t]:w.keys(e);s<i.length;s++){var u=e[t=i[s]];if(!u)break;for(var l=[],c=0;c<u.length;c++){var f=u[c];if(n&&n!==f.callback&&n!==f.callback._callback||o&&o!==f.context)l.push(f);else{var h=f.listening;h&&h.off(t,n)}}l.length?e[t]=l:delete e[t]}return e}for(i=w.keys(a);s<i.length;s++)a[i[s]].cleanup()}};r.once=function(e,t,n){var r=c(h,{},e,t,this.off.bind(this));return"string"==typeof e&&null==n&&(t=void 0),this.on(r,t,n)},r.listenToOnce=function(e,t,n){var r=c(h,{},t,n,this.stopListening.bind(this,e));return this.listenTo(e,r)};var h=function(e,t,n,r){if(n){var i=e[t]=w.once(function(){r(t,i),n.apply(this,arguments)});i._callback=n}return e};r.trigger=function(e){if(!this._events)return this;for(var t=Math.max(0,arguments.length-1),n=Array(t),r=0;r<t;r++)n[r]=arguments[r+1];return c(d,this._events,e,void 0,n),this};var d=function(e,t,n,r){if(e){var i=e[t],o=e.all;i&&o&&(o=o.slice()),i&&p(i,r),o&&p(o,[t].concat(r))}return e},p=function(e,t){var n,r=-1,i=e.length,o=t[0],a=t[1],s=t[2];switch(t.length){case 0:for(;++r<i;)(n=e[r]).callback.call(n.ctx);return;case 1:for(;++r<i;)(n=e[r]).callback.call(n.ctx,o);return;case 2:for(;++r<i;)(n=e[r]).callback.call(n.ctx,o,a);return;case 3:for(;++r<i;)(n=e[r]).callback.call(n.ctx,o,a,s);return;default:for(;++r<i;)(n=e[r]).callback.apply(n.ctx,t);return}},v=function(e,t){this.id=e._listenId,this.listener=e,this.obj=t,this.interop=!0,this.count=0,this._events=void 0};v.prototype.on=r.on,v.prototype.off=function(e,t){(this.interop?(this._events=c(o,this._events,e,t,{context:void 0,listeners:void 0}),this._events):(this.count--,0!==this.count))||this.cleanup()},v.prototype.cleanup=function(){delete this.listener._listeningTo[this.obj._listenId],this.interop||delete this.obj._listeners[this.id]},r.bind=r.on,r.unbind=r.off,w.extend(u,r);var g=u.Model=function(e,t){var n=e||{};t||(t={}),this.preinitialize.apply(this,arguments),this.cid=w.uniqueId(this.cidPrefix),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(n=this.parse(n,t)||{});var r=w.result(this,"defaults");n=w.defaults(w.extend({},r,n),r),this.set(n,t),this.changed={},this.initialize.apply(this,arguments)};w.extend(g.prototype,r,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",preinitialize:function(){},initialize:function(){},toJSON:function(e){return w.clone(this.attributes)},sync:function(){return u.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return w.escape(this.get(e))},has:function(e){return null!=this.get(e)},matches:function(e){return!!w.iteratee(e,this)(this.attributes)},set:function(e,t,n){if(null==e)return this;var r;if("object"==typeof e?(r=e,n=t):(r={})[e]=t,n||(n={}),!this._validate(r,n))return!1;var i=n.unset,o=n.silent,a=[],s=this._changing;this._changing=!0,s||(this._previousAttributes=w.clone(this.attributes),this.changed={});var u=this.attributes,l=this.changed,c=this._previousAttributes;for(var f in r)t=r[f],w.isEqual(u[f],t)||a.push(f),w.isEqual(c[f],t)?delete l[f]:l[f]=t,i?delete u[f]:u[f]=t;if(this.idAttribute in r&&(this.id=this.get(this.idAttribute)),!o){a.length&&(this._pending=n);for(var h=0;h<a.length;h++)this.trigger("change:"+a[h],this,u[a[h]],n)}if(s)return this;if(!o)for(;this._pending;)n=this._pending,this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,w.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var n in this.attributes)t[n]=void 0;return this.set(t,w.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!w.isEmpty(this.changed):w.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&w.clone(this.changed);var t,n=this._changing?this._previousAttributes:this.attributes,r={};for(var i in e){var o=e[i];w.isEqual(n[i],o)||(r[i]=o,t=!0)}return!!t&&r},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return w.clone(this._previousAttributes)},fetch:function(n){n=w.extend({parse:!0},n);var r=this,i=n.success;return n.success=function(e){var t=n.parse?r.parse(e,n):e;if(!r.set(t,n))return!1;i&&i.call(n.context,r,e,n),r.trigger("sync",r,e,n)},z(this,n),this.sync("read",this,n)},save:function(e,t,n){var r;null==e||"object"==typeof e?(r=e,n=t):(r={})[e]=t;var i=(n=w.extend({validate:!0,parse:!0},n)).wait;if(r&&!i){if(!this.set(r,n))return!1}else if(!this._validate(r,n))return!1;var o=this,a=n.success,s=this.attributes;n.success=function(e){o.attributes=s;var t=n.parse?o.parse(e,n):e;if(i&&(t=w.extend({},r,t)),t&&!o.set(t,n))return!1;a&&a.call(n.context,o,e,n),o.trigger("sync",o,e,n)},z(this,n),r&&i&&(this.attributes=w.extend({},s,r));var u=this.isNew()?"create":n.patch?"patch":"update";"patch"!=u||n.attrs||(n.attrs=r);var l=this.sync(u,this,n);return this.attributes=s,l},destroy:function(t){t=t?w.clone(t):{};function n(){r.stopListening(),r.trigger("destroy",r,r.collection,t)}var r=this,i=t.success,o=t.wait,e=!(t.success=function(e){o&&n(),i&&i.call(t.context,r,e,t),r.isNew()||r.trigger("sync",r,e,t)});return this.isNew()?w.defer(t.success):(z(this,t),e=this.sync("delete",this,t)),o||n(),e},url:function(){var e=w.result(this,"urlRoot")||w.result(this.collection,"url")||V();if(this.isNew())return e;var t=this.get(this.idAttribute);return e.replace(/[^\/]$/,"$&/")+encodeURIComponent(t)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},w.extend({},e,{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=w.extend({},this.attributes,e);var n=this.validationError=this.validate(e,t)||null;return!n||(this.trigger("invalid",this,n,w.extend(t,{validationError:n})),!1)}});function x(e,t,n){n=Math.min(Math.max(n,0),e.length);var r,i=Array(e.length-n),o=t.length;for(r=0;r<i.length;r++)i[r]=e[r+n];for(r=0;r<o;r++)e[r+n]=t[r];for(r=0;r<i.length;r++)e[r+o+n]=i[r]}var b=u.Collection=function(e,t){t||(t={}),this.preinitialize.apply(this,arguments),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,w.extend({silent:!0},t))},k={add:!0,remove:!0,merge:!0},m={add:!0,remove:!1};w.extend(b.prototype,r,{model:g,preinitialize:function(){},initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return u.sync.apply(this,arguments)},add:function(e,t){return this.set(e,w.extend({merge:!1},t,m))},remove:function(e,t){t=w.extend({},t);var n=!w.isArray(e);e=n?[e]:e.slice();var r=this._removeModels(e,t);return!t.silent&&r.length&&(t.changes={added:[],merged:[],removed:r},this.trigger("update",this,t)),n?r[0]:r},set:function(e,t){if(null!=e){(t=w.extend({},k,t)).parse&&!this._isModel(e)&&(e=this.parse(e,t)||[]);var n=!w.isArray(e);e=n?[e]:e.slice();var r=t.at;null!=r&&(r=+r),r>this.length&&(r=this.length),r<0&&(r+=this.length+1);var i,o,a=[],s=[],u=[],l=[],c={},f=t.add,h=t.merge,d=t.remove,p=!1,v=this.comparator&&null==r&&!1!==t.sort,g=w.isString(this.comparator)?this.comparator:null;for(o=0;o<e.length;o++){i=e[o];var b=this.get(i);if(b){if(h&&i!==b){var m=this._isModel(i)?i.attributes:i;t.parse&&(m=b.parse(m,t)),b.set(m,t),u.push(b),v&&!p&&(p=b.hasChanged(g))}c[b.cid]||(c[b.cid]=!0,a.push(b)),e[o]=b}else f&&(i=e[o]=this._prepareModel(i,t))&&(s.push(i),this._addReference(i,t),c[i.cid]=!0,a.push(i))}if(d){for(o=0;o<this.length;o++)c[(i=this.models[o]).cid]||l.push(i);l.length&&this._removeModels(l,t)}var y=!1,_=!v&&f&&d;if(a.length&&_?(y=this.length!==a.length||w.some(this.models,function(e,t){return e!==a[t]}),this.models.length=0,x(this.models,a,0),this.length=this.models.length):s.length&&(v&&(p=!0),x(this.models,s,null==r?this.length:r),this.length=this.models.length),p&&this.sort({silent:!0}),!t.silent){for(o=0;o<s.length;o++)null!=r&&(t.index=r+o),(i=s[o]).trigger("add",i,this,t);(p||y)&&this.trigger("sort",this,t),(s.length||l.length||u.length)&&(t.changes={added:s,removed:l,merged:u},this.trigger("update",this,t))}return n?e[0]:e}},reset:function(e,t){t=t?w.clone(t):{};for(var n=0;n<this.models.length;n++)this._removeReference(this.models[n],t);return t.previousModels=this.models,this._reset(),e=this.add(e,w.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,w.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e)},unshift:function(e,t){return this.add(e,w.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e)},slice:function(){return a.apply(this.models,arguments)},get:function(e){if(null!=e)return this._byId[e]||this._byId[this.modelId(this._isModel(e)?e.attributes:e)]||e.cid&&this._byId[e.cid]},has:function(e){return null!=this.get(e)},at:function(e){return e<0&&(e+=this.length),this.models[e]},where:function(e,t){return this[t?"find":"filter"](e)},findWhere:function(e){return this.where(e,!0)},sort:function(e){var t=this.comparator;if(!t)throw new Error("Cannot sort a set without a comparator");e||(e={});var n=t.length;return w.isFunction(t)&&(t=t.bind(this)),1===n||w.isString(t)?this.models=this.sortBy(t):this.models.sort(t),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return this.map(e+"")},fetch:function(n){var r=(n=w.extend({parse:!0},n)).success,i=this;return n.success=function(e){var t=n.reset?"reset":"set";i[t](e,n),r&&r.call(n.context,i,e,n),i.trigger("sync",i,e,n)},z(this,n),this.sync("read",this,n)},create:function(e,t){var r=(t=t?w.clone(t):{}).wait;if(!(e=this._prepareModel(e,t)))return!1;r||this.add(e,t);var i=this,o=t.success;return t.success=function(e,t,n){r&&i.add(e,n),o&&o.call(n.context,e,t,n)},e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(e){return e[this.model.prototype.idAttribute||"id"]},values:function(){return new _(this,C)},keys:function(){return new _(this,T)},entries:function(){return new _(this,E)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(this._isModel(e))return e.collection||(e.collection=this),e;var n=new(((t=t?w.clone(t):{}).collection=this).model)(e,t);return n.validationError?(this.trigger("invalid",this,n.validationError,t),!1):n},_removeModels:function(e,t){for(var n=[],r=0;r<e.length;r++){var i=this.get(e[r]);if(i){var o=this.indexOf(i);this.models.splice(o,1),this.length--,delete this._byId[i.cid];var a=this.modelId(i.attributes);null!=a&&delete this._byId[a],t.silent||(t.index=o,i.trigger("remove",i,this,t)),n.push(i),this._removeReference(i,t)}}return n},_isModel:function(e){return e instanceof g},_addReference:function(e,t){this._byId[e.cid]=e;var n=this.modelId(e.attributes);null!=n&&(this._byId[n]=e),e.on("all",this._onModelEvent,this)},_removeReference:function(e,t){delete this._byId[e.cid];var n=this.modelId(e.attributes);null!=n&&delete this._byId[n],this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,r){if(t){if(("add"===e||"remove"===e)&&n!==this)return;if("destroy"===e&&this.remove(t,r),"change"===e){var i=this.modelId(t.previousAttributes()),o=this.modelId(t.attributes);i!==o&&(null!=i&&delete this._byId[i],null!=o&&(this._byId[o]=t))}}this.trigger.apply(this,arguments)}});var y="function"==typeof Symbol&&Symbol.iterator;y&&(b.prototype[y]=b.prototype.values);var _=function(e,t){this._collection=e,this._kind=t,this._index=0},C=1,T=2,E=3;y&&(_.prototype[y]=function(){return this}),_.prototype.next=function(){if(this._collection){if(this._index<this._collection.length){var e,t=this._collection.at(this._index);if(this._index++,this._kind===C)e=t;else{var n=this._collection.modelId(t.attributes);e=this._kind===T?n:[n,t]}return{value:e,done:!1}}this._collection=void 0}return{value:void 0,done:!0}};var O=u.View=function(e){this.cid=w.uniqueId("view"),this.preinitialize.apply(this,arguments),w.extend(this,w.pick(e,N)),this._ensureElement(),this.initialize.apply(this,arguments)},S=/^(\S+)\s*(.*)$/,N=["model","collection","el","id","attributes","className","tagName","events"];w.extend(O.prototype,r,{tagName:"div",$:function(e){return this.$el.find(e)},preinitialize:function(){},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(e){return this.undelegateEvents(),this._setElement(e),this.delegateEvents(),this},_setElement:function(e){this.$el=e instanceof u.$?e:u.$(e),this.el=this.$el[0]},delegateEvents:function(e){if(e||(e=w.result(this,"events")),!e)return this;for(var t in this.undelegateEvents(),e){var n=e[t];if(w.isFunction(n)||(n=this[n]),n){var r=t.match(S);this.delegate(r[1],r[2],n.bind(this))}}return this},delegate:function(e,t,n){return this.$el.on(e+".delegateEvents"+this.cid,t,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(e,t,n){return this.$el.off(e+".delegateEvents"+this.cid,t,n),this},_createElement:function(e){return document.createElement(e)},_ensureElement:function(){if(this.el)this.setElement(w.result(this,"el"));else{var e=w.extend({},w.result(this,"attributes"));this.id&&(e.id=w.result(this,"id")),this.className&&(e.class=w.result(this,"className")),this.setElement(this._createElement(w.result(this,"tagName"))),this._setAttributes(e)}},_setAttributes:function(e){this.$el.attr(e)}});function A(n,r,e,i){w.each(e,function(e,t){r[t]&&(n.prototype[t]=function(r,e,i,o){switch(e){case 1:return function(){return r[i](this[o])};case 2:return function(e){return r[i](this[o],e)};case 3:return function(e,t){return r[i](this[o],j(e,this),t)};case 4:return function(e,t,n){return r[i](this[o],j(e,this),t,n)};default:return function(){var e=a.call(arguments);return e.unshift(this[o]),r[i].apply(r,e)}}}(r,e,t,i))})}var j=function(t,e){return w.isFunction(t)?t:w.isObject(t)&&!e._isModel(t)?M(t):w.isString(t)?function(e){return e.get(t)}:t},M=function(e){var t=w.matches(e);return function(e){return t(e.attributes)}};w.each([[b,{forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},"models"],[g,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes"]],function(e){var n=e[0],t=e[1],r=e[2];n.mixin=function(e){var t=w.reduce(w.functions(e),function(e,t){return e[t]=0,e},{});A(n,e,t,r)},A(n,w,t,r)}),u.sync=function(e,t,r){var n=D[e];w.defaults(r||(r={}),{emulateHTTP:u.emulateHTTP,emulateJSON:u.emulateJSON});var i={type:n,dataType:"json"};if(r.url||(i.url=w.result(t,"url")||V()),null!=r.data||!t||"create"!==e&&"update"!==e&&"patch"!==e||(i.contentType="application/json",i.data=JSON.stringify(r.attrs||t.toJSON(r))),r.emulateJSON&&(i.contentType="application/x-www-form-urlencoded",i.data=i.data?{model:i.data}:{}),r.emulateHTTP&&("PUT"===n||"DELETE"===n||"PATCH"===n)){i.type="POST",r.emulateJSON&&(i.data._method=n);var o=r.beforeSend;r.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",n),o)return o.apply(this,arguments)}}"GET"===i.type||r.emulateJSON||(i.processData=!1);var a=r.error;r.error=function(e,t,n){r.textStatus=t,r.errorThrown=n,a&&a.call(r.context,e,t,n)};var s=r.xhr=u.ajax(w.extend(i,r));return t.trigger("request",t,s,r),s};var D={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};u.ajax=function(){return u.$.ajax.apply(u.$,arguments)};var P=u.Router=function(e){e||(e={}),this.preinitialize.apply(this,arguments),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},L=/\((.*?)\)/g,R=/(\(\?)?:\w+/g,I=/\*\w+/g,F=/[\-{}\[\]+?.,\\\^$|#\s]/g;w.extend(P.prototype,r,{preinitialize:function(){},initialize:function(){},route:function(n,r,i){w.isRegExp(n)||(n=this._routeToRegExp(n)),w.isFunction(r)&&(i=r,r=""),i||(i=this[r]);var o=this;return u.history.route(n,function(e){var t=o._extractParameters(n,e);!1!==o.execute(i,t,r)&&(o.trigger.apply(o,["route:"+r].concat(t)),o.trigger("route",r,t),u.history.trigger("route",o,r,t))}),this},execute:function(e,t,n){e&&e.apply(this,t)},navigate:function(e,t){return u.history.navigate(e,t),this},_bindRoutes:function(){if(this.routes){this.routes=w.result(this,"routes");for(var e,t=w.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(F,"\\$&").replace(L,"(?:$1)?").replace(R,function(e,t){return t?e:"([^/?]+)"}).replace(I,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var n=e.exec(t).slice(1);return w.map(n,function(e,t){return t===n.length-1?e||null:e?decodeURIComponent(e):null})}});var B=u.History=function(){this.handlers=[],this.checkUrl=this.checkUrl.bind(this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},H=/^[#\/]|\s+$/g,q=/^\/+|\/+$/g,$=/#.*$/;B.started=!1,w.extend(B.prototype,r,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(e){return decodeURI(e.replace(/%25/g,"%2525"))},getSearch:function(){var e=this.location.href.replace(/#.*/,"").match(/\?.+/);return e?e[0]:""},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getPath:function(){var e=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===e.charAt(0)?e.slice(1):e},getFragment:function(e){return null==e&&(e=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),e.replace(H,"")},start:function(e){if(B.started)throw new Error("Backbone.history has already been started");if(B.started=!0,this.options=w.extend({root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||7<document.documentMode),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(q,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var t=this.root.slice(0,-1)||"/";return this.location.replace(t+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var n=document.body,r=n.insertBefore(this.iframe,n.firstChild).contentWindow;r.document.open(),r.document.close(),r.location.hash="#"+this.fragment}var i=window.addEventListener||function(e,t){return attachEvent("on"+e,t)};if(this._usePushState?i("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?i("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var e=window.removeEventListener||function(e,t){return detachEvent("on"+e,t)};this._usePushState?e("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&e("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),B.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getHash(this.iframe.contentWindow)),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(t){return!!this.matchRoot()&&(t=this.fragment=this.getFragment(t),w.some(this.handlers,function(e){if(e.route.test(t))return e.callback(t),!0}))},navigate:function(e,t){if(!B.started)return!1;t&&!0!==t||(t={trigger:!!t}),e=this.getFragment(e||"");var n=this.root;""!==e&&"?"!==e.charAt(0)||(n=n.slice(0,-1)||"/");var r=n+e;e=e.replace($,"");var i=this.decodeFragment(e);if(this.fragment!==i){if(this.fragment=i,this._usePushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,r);else{if(!this._wantsHashChange)return this.location.assign(r);if(this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getHash(this.iframe.contentWindow)){var o=this.iframe.contentWindow;t.replace||(o.document.open(),o.document.close()),this._updateHash(o.location,e,t.replace)}}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,n){if(n){var r=e.href.replace(/(javascript:|#).*$/,"");e.replace(r+"#"+t)}else e.hash="#"+t}}),u.history=new B;g.extend=b.extend=P.extend=O.extend=B.extend=function(e,t){var n,r=this;return n=e&&w.has(e,"constructor")?e.constructor:function(){return r.apply(this,arguments)},w.extend(n,r,t),n.prototype=w.create(r.prototype,e),(n.prototype.constructor=n).__super__=r.prototype,n};var V=function(){throw new Error('A "url" property or function must be specified')},z=function(t,n){var r=n.error;n.error=function(e){r&&r.call(n.context,t,e,n),t.trigger("error",t,e,n)}};return u},i="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e,t=[s(4),s(31),a],void 0===(n=function(e,t,n){i.Backbone=r(i,n,e,t)}.apply(a,t))||(o.exports=n)}).call(a,s(1))},function(e,t,n){var i,o,a,s,u;i=n(0)._,a=function(e,t,n){return e[t]||(e[t]=[]),i.isArray(n)||(n=[n]),e[t]=e[t].length?i.union(e[t],n):n,e},s=function(e,t,n){return e[t]||(e[t]={}),i.extend(e[t],n)},o=function(e){var t,n,r,i;for(n={},r=0,i=e.length;r<i;r++)n[t=e[r]]={key:t};return n},u=function(e,t){var n,r;if(!t)return e;for(n in t)switch(r=t[n],n){case"internals":case"requires":case"excludes":case"statics":a(e,n,r);break;case"keys":i.isObject(r)&&!i.isArray(r)||i.isObject(e[n])&&!i.isArray(e[n])?(i.isObject(r)||(r=[r]),i.isArray(r)&&(r=o(r)),i.isArray(e[n])&&(e[n]=o(e[n])),s(e,n,r)):a(e,n,r);break;case"factories":i.isFunction(r)?e[n]=r:s(e,n,r);break;case"static_defaults":s(e,n,r);break;case"options":break;default:e[n]=r}return u(e,t.options)},e.exports=function(e){return u({},e)}},function(e,t){var i;i=function(e,t){var n,r;for(n in t)r=t[n],e[n]=r;return e};function o(){}e.exports=function(e,t){var n=function(e,t,n){var r;return r=t&&t.hasOwnProperty("constructor")?t.constructor:function(){e.apply(this,arguments)},i(r,e),o.prototype=e.prototype,r.prototype=new o,t&&i(r.prototype,t),n&&i(r,n),(r.prototype.constructor=r).__super__=e.prototype,r}(this,e,t);return n.extend=this.extend,n}},function(e,t,n){var i,o;o=n(0)._,e.exports=i=function(e){var t,n,r;if(!e)return e;if(e.__kb)return e.__kb.hasOwnProperty("object")?e.__kb.object:e;if(o.isArray(e))return o.map(e,function(e){return i(e)});if(o.isObject(e)&&e.constructor==={}.constructor){for(t in n={},e)r=e[t],n[t]=i(r);return n}return e}},function(e,t,n){var r;n(0)._,e.exports=r=function(e){var t,n;if(e.__kb&&(e.__kb.event_watcher&&e.__kb.event_watcher.releaseCallbacks(e),n=e.__kb,e.__kb=null,n.observable&&(n.observable.destroy=n.observable.release=null,r(n.observable),n.observable=null),n.factory=null,n.event_watcher_is_owned&&n.event_watcher.destroy(),n.event_watcher=null,n.store_is_owned&&n.store.destroy(),n.store=null,n.stores_references))for(;t=n.stores_references.pop();)t.store.__kb_released||t.store.release(e)}},function(e,t,n){var r,i,o,a,s;function u(){}s=o=n(0),a=s._,i=s.Backbone,r=null,e.exports=(u.isAvailable=function(){return!!(r=null!=i?i.AssociatedModel:void 0)},u.keys=function(e){return e instanceof r?a.map(e.relations,function(e){return e.key}):null},u.relationType=function(e,t){var n;return e instanceof r&&(n=a.find(e.relations,function(e){return e.key===t}))?"Many"===n.type?o.TYPE_COLLECTION:o.TYPE_MODEL:null},u.useFunction=function(){return!1},u)},function(e,t,n){var r,i,c,o,a;function s(){}a=c=n(0),o=a._,r=a.Backbone,i=null,e.exports=(s.isAvailable=function(){return!!(i=null!=r?r.RelationalModel:void 0)},s.relationType=function(e,t){var n;return e instanceof i&&(n=o.find(e.getRelations(),function(e){return e.key===t}))?n.collectionType||o.isArray(n.keyContents)?c.TYPE_COLLECTION:c.TYPE_MODEL:null},s.bind=function(n,r,t,i){var o,a,s,u,e,l;if(!(u=this.relationType(n,r)))return null;if(s=function(e){return c.statistics&&c.statistics.addModelEvent({name:"update (relational)",model:e,key:r,path:i}),t()},a=c.Backbone.Relation.prototype.sanitizeOptions?["update","add","remove"]:["change","add","remove"],u===c.TYPE_COLLECTION)for(e=0,l=a.length;e<l;e++)o=a[e],n.bind(o+":"+r,s);else n.bind(a[0]+":"+r,s);return function(){var e,t;if(u===c.TYPE_COLLECTION)for(e=0,t=a.length;e<t;e++)o=a[e],n.unbind(o+":"+r,s);else n.unbind(a[0]+":"+r,s)}},s.useFunction=function(){return!1},s)},function(e,t,n){var r,i,o,a;a=r=n(0),o=a._,i=a.ko,r.Observable.prototype.setToDefault=function(){var e;null!=(e=this.__kb_value)&&"function"==typeof e.setToDefault&&e.setToDefault()},r.ViewModel.prototype.setToDefault=function(){var e,t;for(e in this.__kb.vm_keys)null!=(t=this[e])&&"function"==typeof t.setToDefault&&t.setToDefault()},r.utils.setToDefault=function(e){var t,n;if(e){if(i.isObservable(e))"function"==typeof e.setToDefault&&e.setToDefault();else if(o.isObject(e))for(t in e)!(n=e[t])||!i.isObservable(n)&&"function"==typeof n||"_"===t[0]&&!t.search("__kb")||this.setToDefault(n);return e}}},function(e,t,n){var r,i,o,a,s,u,l;l=a=n(0),u=l._,s=l.ko,o=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,r=/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/,i=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,a.valid={required:function(e){return!e},url:function(e){return!o.test(e)},email:function(e){return!r.test(e)},number:function(e){return!i.test(e)}},a.hasChangedFn=function(t){var n,r;return n=r=null,function(){var e;return r!==(e=s.utils.unwrapObservable(t))?(n=(r=e)?r.toJSON():null,!1):!(!r||!n)&&!u.isEqual(r.toJSON(),n)}},a.minLengthFn=function(t){return function(e){return!e||e.length<t}},a.uniqueValueFn=function(i,o,a){return function(t){var e,n,r;return r=s.utils.unwrapObservable(i),n=s.utils.unwrapObservable(o),e=s.utils.unwrapObservable(a),!!(r&&n&&e)&&!!u.find(e.models,function(e){return e!==r&&e.get(n)===t})}},a.untilTrueFn=function(r,i,e){var o;return o=!1,e&&s.isObservable(e)&&e.subscribe(function(){return o=!1}),function(e){var t,n;return(t=s.utils.unwrapObservable(i))&&(o|=!!(n=t(s.utils.unwrapObservable(e))))?n:s.utils.unwrapObservable(r)}},a.untilFalseFn=function(r,i,e){var o;return o=!1,e&&s.isObservable(e)&&e.subscribe(function(){return o=!1}),function(e){var t,n;return(t=s.utils.unwrapObservable(i))&&(o|=!(n=t(s.utils.unwrapObservable(e))))?n:s.utils.unwrapObservable(r)}}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(sn,un,e){var ln;!function(e,t){"use strict";"object"==typeof sn&&"object"==typeof sn.exports?sn.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(k,e){"use strict";function v(e){return null!=e&&e===e.window}var t=[],C=k.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,b=n.hasOwnProperty,a=b.toString,l=a.call(Object),m={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},c={type:!0,src:!0,nonce:!0,noModule:!0};function _(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var T=function(e,t){return new T.fn.init(e,t)},f=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function h(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!y(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}T.fn=T.prototype={jquery:"3.4.1",constructor:T,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(n){return this.pushStack(T.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},T.extend=T.fn.extend=function(){var e,t,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||y(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(T.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||T.isPlainObject(n)?n:{},i=!1,a[t]=T.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},T.extend({expando:"jQuery"+("3.4.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=b.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){_(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(h(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(f,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(h(Object(e))?T.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!=a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(h(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g.apply([],a)},guid:1,support:m}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=t[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){function f(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)}function i(){x()}var e,d,_,o,a,p,h,v,w,u,l,x,k,s,C,g,c,b,m,T="sizzle"+1*new Date,y=n.document,E=0,r=0,O=ue(),S=ue(),N=ue(),A=ue(),j=function(e,t){return e===t&&(l=!0),0},M={}.hasOwnProperty,t=[],D=t.pop,P=t.push,L=t.push,R=t.slice,I=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",B="[\\x20\\t\\r\\n\\f]",H="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",q="\\["+B+"*("+H+")(?:"+B+"*([*^$|!~]?=)"+B+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+B+"*\\]",$=":("+H+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+q+")*)|.*)\\)|)",V=new RegExp(B+"+","g"),z=new RegExp("^"+B+"+|((?:^|[^\\\\])(?:\\\\.)*)"+B+"+$","g"),U=new RegExp("^"+B+"*,"+B+"*"),W=new RegExp("^"+B+"*([>+~]|"+B+")"+B+"*"),J=new RegExp(B+"|>"),Y=new RegExp($),K=new RegExp("^"+H+"$"),X={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ne=/[+~]/,re=new RegExp("\\\\([\\da-f]{1,6}"+B+"?|("+B+")|.)","ig"),ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=_e(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{L.apply(t=R.call(y.childNodes),y.childNodes),t[y.childNodes.length].nodeType}catch(e){L={apply:t.length?function(e,t){P.apply(e,R.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,h=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==h&&9!==h&&11!==h)return n;if(!r&&((e?e.ownerDocument||e:y)!==k&&x(e),e=e||k,C)){if(11!==h&&(u=te.exec(t)))if(i=u[1]){if(9===h){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&m(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return L.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return L.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!A[t+" "]&&(!g||!g.test(t))&&(1!==h||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===h&&J.test(t)){for((s=e.getAttribute("id"))?s=s.replace(ie,oe):e.setAttribute("id",s=T),o=(l=p(t)).length;o--;)l[o]="#"+s+" "+ye(l[o]);c=l.join(","),f=ne.test(t)&&be(e.parentNode)||e}try{return L.apply(n,f.querySelectorAll(c)),n}catch(e){A(t,!0)}finally{s===T&&e.removeAttribute("id")}}}return v(t.replace(z,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>_.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[T]=!0,e}function ce(e){var t=k.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),r=n.length;r--;)_.attrHandle[n[r]]=t}function he(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pe(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ve(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ge(a){return le(function(o){return o=+o,le(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function be(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in d=se.support={},a=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!G.test(t||n&&n.nodeName||"HTML")},x=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:y;return r!==k&&9===r.nodeType&&r.documentElement&&(s=(k=r).documentElement,C=!a(k),y!==k&&(n=k.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",i,!1):n.attachEvent&&n.attachEvent("onunload",i)),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=ee.test(k.getElementsByClassName),d.getById=ce(function(e){return s.appendChild(e).id=T,!k.getElementsByName||!k.getElementsByName(T).length}),d.getById?(_.filter.ID=function(e){var t=e.replace(re,f);return function(e){return e.getAttribute("id")===t}},_.find.ID=function(e,t){if(void 0!==t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(_.filter.ID=function(e){var n=e.replace(re,f);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},_.find.ID=function(e,t){if(void 0!==t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),_.find.TAG=d.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},_.find.CLASS=d.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&C)return t.getElementsByClassName(e)},c=[],g=[],(d.qsa=ee.test(k.querySelectorAll))&&(ce(function(e){s.appendChild(e).innerHTML="<a id='"+T+"'></a><select id='"+T+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+B+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+B+"*(?:value|"+F+")"),e.querySelectorAll("[id~="+T+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+T+"+*").length||g.push(".#.+[+~]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+B+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),s.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(d.matchesSelector=ee.test(b=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),c.push("!=",$)}),g=g.length&&new RegExp(g.join("|")),c=c.length&&new RegExp(c.join("|")),t=ee.test(s.compareDocumentPosition),m=t||ee.test(s.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===k||e.ownerDocument===y&&m(y,e)?-1:t===k||t.ownerDocument===y&&m(y,t)?1:u?I(u,e)-I(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===k?-1:t===k?1:i?-1:o?1:u?I(u,e)-I(u,t):0;if(i===o)return he(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?he(a[r],s[r]):a[r]===y?-1:s[r]===y?1:0}),k},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==k&&x(e),d.matchesSelector&&C&&!A[t+" "]&&(!c||!c.test(t))&&(!g||!g.test(t)))try{var n=b.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return 0<se(t,k,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!==k&&x(e),m(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==k&&x(e);var n=_.attrHandle[t.toLowerCase()],r=n&&M.call(_.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==r?r:d.attributes||!C?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(ie,oe)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(j),l){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(_=se.selectors={cacheLength:50,createPseudo:le,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(re,f),e[3]=(e[3]||e[4]||e[5]||"").replace(re,f),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Y.test(n)&&(t=p(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(re,f).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=O[e+" "];return t||(t=new RegExp("(^|"+B+")"+e+"("+B+"|$)"))&&O(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(V," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(p,e,t,v,g){var b="nth"!==p.slice(0,3),m="last"!==p.slice(-4),y="of-type"===e;return 1===v&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u,l=b!=m?"nextSibling":"previousSibling",c=e.parentNode,f=y&&e.nodeName.toLowerCase(),h=!n&&!y,d=!1;if(c){if(b){for(;l;){for(a=e;a=a[l];)if(y?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=l="only"===p&&!u&&"nextSibling"}return!0}if(u=[m?c.firstChild:c.lastChild],m&&h){for(d=(s=(r=(i=(o=(a=c)[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[p]||[])[0]===E&&r[1])&&r[2],a=s&&c.childNodes[s];a=++s&&a&&a[l]||(d=s=0)||u.pop();)if(1===a.nodeType&&++d&&a===e){i[p]=[E,s,d];break}}else if(h&&(d=s=(r=(i=(o=(a=e)[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[p]||[])[0]===E&&r[1]),!1===d)for(;(a=++s&&a&&a[l]||(d=s=0)||u.pop())&&((y?a.nodeName.toLowerCase()!==f:1!==a.nodeType)||!++d||(h&&((i=(o=a[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[p]=[E,d]),a!==e)););return(d-=g)===v||d%v==0&&0<=d/v}}},PSEUDO:function(e,o){var t,a=_.pseudos[e]||_.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[T]?a(o):1<a.length?(t=[e,e,"",o],_.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,t){for(var n,r=a(e,o),i=r.length;i--;)e[n=I(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:le(function(e){var r=[],i=[],s=h(e.replace(z,"$1"));return s[T]?le(function(e,t,n,r){for(var i,o=s(e,null,r,[]),a=e.length;a--;)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:le(function(t){return function(e){return 0<se(t,e).length}}),contains:le(function(t){return t=t.replace(re,f),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:le(function(n){return K.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(re,f).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===s},focus:function(e){return e===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ve(!1),disabled:ve(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!_.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge(function(){return[0]}),last:ge(function(e,t){return[t-1]}),eq:ge(function(e,t,n){return[n<0?n+t:n]}),even:ge(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ge(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ge(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ge(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=_.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[e]=de(e);for(e in{submit:!0,reset:!0})_.pseudos[e]=pe(e);function me(){}function ye(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function _e(s,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,h=r++;return e.first?function(e,t,n){for(;e=e[u];)if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[E,h];if(n){for(;e=e[u];)if((1===e.nodeType||f)&&s(e,t,n))return!0}else for(;e=e[u];)if(1===e.nodeType||f)if(i=(o=e[T]||(e[T]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((r=i[c])&&r[0]===E&&r[1]===h)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function we(i){return 1<i.length?function(e,t,n){for(var r=i.length;r--;)if(!i[r](e,t,n))return!1;return!0}:i[0]}function xe(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function ke(d,p,v,g,b,e){return g&&!g[T]&&(g=ke(g)),b&&!b[T]&&(b=ke(b,e)),le(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(p||"*",n.nodeType?[n]:n,[]),f=!d||!e&&p?c:xe(c,s,d,n,r),h=v?b||(e?d:l||g)?[]:t:f;if(v&&v(f,h,n,r),g)for(i=xe(h,u),g(i,[],n,r),o=i.length;o--;)(a=i[o])&&(h[u[o]]=!(f[u[o]]=a));if(e){if(b||d){if(b){for(i=[],o=h.length;o--;)(a=h[o])&&i.push(f[o]=a);b(null,h=[],i,r)}for(o=h.length;o--;)(a=h[o])&&-1<(i=b?I(e,a):s[o])&&(e[i]=!(t[i]=a))}}else h=xe(h===t?h.splice(l,h.length):h),b?b(null,t,h,r):L.apply(t,h)})}function Ce(e){for(var i,t,n,r=e.length,o=_.relative[e[0].type],a=o||_.relative[" "],s=o?1:0,u=_e(function(e){return e===i},a,!0),l=_e(function(e){return-1<I(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=_.relative[e[s].type])c=[_e(we(c),t)];else{if((t=_.filter[e[s].type].apply(null,e[s].matches))[T]){for(n=++s;n<r&&!_.relative[e[n].type];n++);return ke(1<s&&we(c),1<s&&ye(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(z,"$1"),t,s<n&&Ce(e.slice(s,n)),n<r&&Ce(e=e.slice(n)),n<r&&ye(e))}c.push(t)}return we(c)}return me.prototype=_.filters=_.pseudos,_.setFilters=new me,p=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=S[e+" "];if(l)return t?0:l.slice(0);for(a=e,s=[],u=_.preFilter;a;){for(o in n&&!(r=U.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=W.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(z," ")}),a=a.slice(n.length)),_.filter)!(r=X[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):S(e,s).slice(0)},h=se.compile=function(e,t){var n,r=[],i=[],o=N[e+" "];if(!o){for(t||(t=p(e)),n=t.length;n--;)(o=Ce(t[n]))[T]?r.push(o):i.push(o);(o=N(e,function(g,b){function e(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],h=w,d=e||y&&_.find.TAG("*",i),p=E+=null==h?1:Math.random()||.1,v=d.length;for(i&&(w=t===k||t||i);l!==v&&null!=(o=d[l]);l++){if(y&&o){for(a=0,t||o.ownerDocument===k||(x(o),n=!C);s=g[a++];)if(s(o,t||k,n)){r.push(o);break}i&&(E=p)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){for(a=0;s=b[a++];)s(c,f,t,n);if(e){if(0<u)for(;l--;)c[l]||f[l]||(f[l]=D.call(r));f=xe(f)}L.apply(r,f),i&&!e&&0<f.length&&1<u+b.length&&se.uniqueSort(r)}return i&&(E=p,w=h),c}var m=0<b.length,y=0<g.length;return m?le(e):e}(i,r))).selector=e}return o},v=se.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&p(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&C&&_.relative[o[1].type]){if(!(t=(_.find.ID(a.matches[0].replace(re,f),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=X.needsContext.test(e)?0:o.length;i--&&(a=o[i],!_.relative[s=a.type]);)if((u=_.find[s])&&(r=u(a.matches[0].replace(re,f),ne.test(o[0].type)&&be(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&ye(o)))return L.apply(n,r),n;break}}return(l||h(e,c))(r,t,!C,n,!t||ne.test(e)&&be(t.parentNode)||t),n},d.sortStable=T.split("").sort(j).join("")===T,d.detectDuplicates=!!l,x(),d.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(k.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(F,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(k);T.find=d,T.expr=d.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=d.uniqueSort,T.text=d.getText,T.isXMLDoc=d.isXML,T.contains=d.contains,T.escapeSelector=d.escape;function p(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&T(e).is(n))break;r.push(e)}return r}function x(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var E=T.expr.match.needsContext;function O(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var S=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function N(e,n,r){return y(n)?T.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?T.grep(e,function(e){return e===n!==r}):"string"!=typeof n?T.grep(e,function(e){return-1<i.call(n,e)!==r}):T.filter(n,e,r)}T.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?T.find.matchesSelector(r,e)?[r]:[]:T.find.matches(e,T.grep(t,function(e){return 1===e.nodeType}))},T.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(T(e).filter(function(){for(t=0;t<r;t++)if(T.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)T.find(e,i[t],n);return 1<r?T.uniqueSort(n):n},filter:function(e){return this.pushStack(N(this,e||[],!1))},not:function(e){return this.pushStack(N(this,e||[],!0))},is:function(e){return!!N(this,"string"==typeof e&&E.test(e)?T(e):e||[],!1).length}});var A,j=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||A,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this);if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:j.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),S.test(r[1])&&T.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}).prototype=T.fn,A=T(C);var M=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(T.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&T(e);if(!E.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&T.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?T.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(T(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return p(e,"parentNode")},parentsUntil:function(e,t,n){return p(e,"parentNode",n)},next:function(e){return P(e,"nextSibling")},prev:function(e){return P(e,"previousSibling")},nextAll:function(e){return p(e,"nextSibling")},prevAll:function(e){return p(e,"previousSibling")},nextUntil:function(e,t,n){return p(e,"nextSibling",n)},prevUntil:function(e,t,n){return p(e,"previousSibling",n)},siblings:function(e){return x((e.parentNode||{}).firstChild,e)},children:function(e){return x(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(O(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},function(r,i){T.fn[r]=function(e,t){var n=T.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=T.filter(t,n)),1<this.length&&(D[r]||T.uniqueSort(n),M.test(r)&&n.reverse()),this.pushStack(n)}});var L=/[^\x20\t\r\n\f]+/g;function R(e){return e}function I(e){throw e}function F(e,t,n,r){var i;try{e&&y(i=e.promise)?i.call(e).done(t).fail(n):e&&y(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}T.Callbacks=function(r){r="string"==typeof r?function(e){var n={};return T.each(e.match(L)||[],function(e,t){n[t]=!0}),n}(r):T.extend({},r);function n(){for(o=o||r.once,t=i=!0;s.length;u=-1)for(e=s.shift();++u<a.length;)!1===a[u].apply(e[0],e[1])&&r.stopOnFalse&&(u=a.length,e=!1);r.memory||(e=!1),i=!1,o&&(a=e?[]:"")}var i,e,t,o,a=[],s=[],u=-1,l={add:function(){return a&&(e&&!i&&(u=a.length-1,s.push(e)),function n(e){T.each(e,function(e,t){y(t)?r.unique&&l.has(t)||a.push(t):t&&t.length&&"string"!==w(t)&&n(t)})}(arguments),e&&!i&&n()),this},remove:function(){return T.each(arguments,function(e,t){for(var n;-1<(n=T.inArray(t,a,n));)a.splice(n,1),n<=u&&u--}),this},has:function(e){return e?-1<T.inArray(e,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return o=s=[],a=e="",this},disabled:function(){return!a},lock:function(){return o=s=[],e||i||(a=e=""),this},locked:function(){return!!o},fireWith:function(e,t){return o||(t=[e,(t=t||[]).slice?t.slice():t],s.push(t),i||n()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!t}};return l},T.extend({Deferred:function(e){var o=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var i=arguments;return T.Deferred(function(r){T.each(o,function(e,t){var n=y(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&y(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){function e(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,y(t)?s?t.call(e,l(u,o,R,s),l(u,o,I,s)):(u++,t.call(e,l(u,o,R,s),l(u,o,I,s),l(u,o,R,o.notifyWith))):(a!==R&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}}var n=this,r=arguments,t=s?e:function(){try{e()}catch(e){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==I&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(T.Deferred.getStackHook&&(t.stackTrace=T.Deferred.getStackHook()),k.setTimeout(t))}}return T.Deferred(function(e){o[0][3].add(l(0,e,y(r)?r:R,e.notifyWith)),o[1][3].add(l(0,e,y(t)?t:R)),o[2][3].add(l(0,e,y(n)?n:I))}).promise()},promise:function(e){return null!=e?T.extend(e,a):a}},s={};return T.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){function t(t){return function(e){i[t]=this,o[t]=1<arguments.length?s.call(arguments):e,--n||a.resolveWith(i,o)}}var n=arguments.length,r=n,i=Array(r),o=s.call(arguments),a=T.Deferred();if(n<=1&&(F(e,a.done(t(r)).resolve,a.reject,!n),"pending"===a.state()||y(o[r]&&o[r].then)))return a.then();for(;r--;)F(o[r],t(r),a.reject);return a.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,t){k.console&&k.console.warn&&e&&B.test(e.name)&&k.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},T.readyException=function(e){k.setTimeout(function(){throw e})};var H=T.Deferred();function q(){C.removeEventListener("DOMContentLoaded",q),k.removeEventListener("load",q),T.ready()}T.fn.ready=function(e){return H.then(e).catch(function(e){T.readyException(e)}),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0)!==e&&0<--T.readyWait||H.resolveWith(C,[T])}}),T.ready.then=H.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?k.setTimeout(T.ready):(C.addEventListener("DOMContentLoaded",q),k.addEventListener("load",q));var $=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===w(n))for(s in i=!0,n)$(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,y(r)||(a=!0),l&&(t=a?(t.call(e,r),null):(l=t,function(e,t,n){return l.call(T(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},V=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function W(e){return e.replace(V,"ms-").replace(z,U)}function J(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function Y(){this.expando=T.expando+Y.uid++}Y.uid=1,Y.prototype={cache:function(e){var t=e[this.expando];return t||(t={},J(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[W(t)]=n;else for(r in t)i[W(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][W(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(W):(t=W(t))in r?[t]:t.match(L)||[]).length;for(;n--;)delete r[t[n]]}void 0!==t&&!T.isEmptyObject(r)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var K=new Y,X=new Y,G=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function Z(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Q,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:G.test(e)?JSON.parse(e):e)}(n)}catch(e){}X.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return X.hasData(e)||K.hasData(e)},data:function(e,t,n){return X.access(e,t,n)},removeData:function(e,t){X.remove(e,t)},_data:function(e,t,n){return K.access(e,t,n)},_removeData:function(e,t){K.remove(e,t)}}),T.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){X.set(this,n)}):$(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=X.get(o,n))?t:void 0!==(t=Z(o,n))?t:void 0;this.each(function(){X.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(i=X.get(o),1===o.nodeType&&!K.get(o,"hasDataAttrs"))){for(t=a.length;t--;)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=W(r.slice(5)),Z(o,r,i[r]));K.set(o,"hasDataAttrs",!0)}return i},removeData:function(e){return this.each(function(){X.remove(this,e)})}}),T.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=K.get(e,t),n&&(!r||Array.isArray(n)?r=K.access(e,t,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=T.queue(e,t),r=n.length,i=n.shift(),o=T._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){T.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return K.get(e,n)||K.access(e,n,{empty:T.Callbacks("once memory").add(function(){K.remove(e,[t+"queue",n])})})}}),T.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?T.queue(this[0],t):void 0===n?this:this.each(function(){var e=T.queue(this,t,n);T._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&T.dequeue(this,t)})},dequeue:function(e){return this.each(function(){T.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--i||o.resolveWith(a,[a])}var r,i=1,o=T.Deferred(),a=this,s=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(r=K.get(a[s],e+"queueHooks"))&&r.empty&&(i++,r.empty.add(n));return n(),o.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=C.documentElement,ie=function(e){return T.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});function ae(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i}var se=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===T.css(e,"display")};function ue(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return T.css(e,t,"")},u=s(),l=n&&n[3]||(T.cssNumber[t]?"":"px"),c=e.nodeType&&(T.cssNumber[t]||"px"!==l&&+u)&&te.exec(T.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;)T.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,T.style(e,t,c+l),n=n||[]}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}var le={};function ce(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=K.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&se(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=le[s])||(o=a.body.appendChild(a.createElement(s)),u=T.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),le[s]=u)))):"none"!==n&&(l[c]="none",K.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}T.fn.extend({show:function(){return ce(this,!0)},hide:function(){return ce(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){se(this)?T(this).show():T(this).hide()})}});var fe=/^(?:checkbox|radio)$/i,he=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,de=/^$|^module$|\/(?:java|ecma)script/i,pe={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,"",""]};function ve(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&O(e,t)?T.merge([e],n):n}function ge(e,t){for(var n=0,r=e.length;n<r;n++)K.set(e[n],"globalEval",!t||K.get(t[n],"globalEval"))}pe.optgroup=pe.option,pe.tbody=pe.tfoot=pe.colgroup=pe.caption=pe.thead,pe.th=pe.td;var be,me,ye=/<|&#?\w+;/;function _e(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),h=[],d=0,p=e.length;d<p;d++)if((o=e[d])||0===o)if("object"===w(o))T.merge(h,o.nodeType?[o]:o);else if(ye.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(he.exec(o)||["",""])[1].toLowerCase(),u=pe[s]||pe._default,a.innerHTML=u[1]+T.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;T.merge(h,a.childNodes),(a=f.firstChild).textContent=""}else h.push(t.createTextNode(o));for(f.textContent="",d=0;o=h[d++];)if(r&&-1<T.inArray(o,r))i&&i.push(o);else if(l=ie(o),a=ve(f.appendChild(o),"script"),l&&ge(a),n)for(c=0;o=a[c++];)de.test(o.type||"")&&n.push(o);return f}be=C.createDocumentFragment().appendChild(C.createElement("div")),(me=C.createElement("input")).setAttribute("type","radio"),me.setAttribute("checked","checked"),me.setAttribute("name","t"),be.appendChild(me),m.checkClone=be.cloneNode(!0).cloneNode(!0).lastChild.checked,be.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!be.cloneNode(!0).lastChild.defaultValue;var we=/^key/,xe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ke=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function Te(){return!1}function Ee(e,t){return e===function(){try{return C.activeElement}catch(e){}}()==("focus"===t)}function Oe(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Oe(e,s,n,r,t[s],o);return e}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)),!1===i)i=Te;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return T().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=T.guid++)),e.each(function(){T.event.add(this,t,i,r,n)})}function Se(e,i,o){o?(K.set(e,i,!1),T.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=K.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(T.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),K.set(this,i,r),t=o(this,i),this[i](),r!==(n=K.get(this,i))||t?K.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(K.set(this,i,{value:T.event.trigger(T.extend(r[0],T.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===K.get(e,i)&&T.event.add(e,i,Ce)}T.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,h,d,p,v,g=K.get(t);if(g)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&T.find.matchesSelector(re,i),n.guid||(n.guid=T.guid++),(u=g.events)||(u=g.events={}),(a=g.handle)||(a=g.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(L)||[""]).length;l--;)d=v=(s=ke.exec(e[l])||[])[1],p=(s[2]||"").split(".").sort(),d&&(f=T.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=T.event.special[d]||{},c=T.extend({type:d,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&T.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=u[d])||((h=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,p,a)||t.addEventListener&&t.addEventListener(d,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),T.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,h,d,p,v,g=K.hasData(e)&&K.get(e);if(g&&(u=g.events)){for(l=(t=(t||"").match(L)||[""]).length;l--;)if(d=v=(s=ke.exec(t[l])||[])[1],p=(s[2]||"").split(".").sort(),d){for(f=T.event.special[d]||{},h=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.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(e,c));a&&!h.length&&(f.teardown&&!1!==f.teardown.call(e,p,g.handle)||T.removeEvent(e,d,g.handle),delete u[d])}else for(d in u)T.event.remove(e,d+t[l],n,r,!0);T.isEmptyObject(u)&&K.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=T.event.fix(e),u=new Array(arguments.length),l=(K.get(this,"events")||{})[s.type]||[],c=T.event.special[s.type]||{};for(u[0]=s,t=1;t<arguments.length;t++)u[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=T.event.handlers.call(this,s,l),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==o.namespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((T.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<T(i,this).index(l):T.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(T.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return fe.test(t.type)&&t.click&&O(t,"input")&&Se(t,"click",Ce),!1},trigger:function(e){var t=this||e;return fe.test(t.type)&&t.click&&O(t,"input")&&Se(t,"click"),!0},_default:function(e){var t=e.target;return fe.test(t.type)&&t.click&&O(t,"input")&&K.get(t,"click")||O(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:Te,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&we.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&xe.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},function(e,t){T.event.special[e]={setup:function(){return Se(this,e,Ee),!1},trigger:function(){return Se(this,e),!0},delegateType:t}}),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){T.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||T.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),T.fn.extend({on:function(e,t,n,r){return Oe(this,e,t,n,r)},one:function(e,t,n,r){return Oe(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,T(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Te),this.each(function(){T.event.remove(this,e,n,t)});for(i in e)this.off(i,t,e[i]);return this}});var Ne=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ae=/<script|<style|<link/i,je=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function De(e,t){return O(e,"table")&&O(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Le(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Re(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(K.hasData(e)&&(o=K.access(e),a=K.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n<r;n++)T.event.add(t,i,l[i][n]);X.hasData(e)&&(s=X.access(e),u=T.extend({},s),X.set(t,u))}}function Ie(n,r,i,o){r=g.apply([],r);var e,t,a,s,u,l,c=0,f=n.length,h=f-1,d=r[0],p=y(d);if(p||1<f&&"string"==typeof d&&!m.checkClone&&je.test(d))return n.each(function(e){var t=n.eq(e);p&&(r[0]=d.call(this,e,t.html())),Ie(t,r,i,o)});if(f&&(t=(e=_e(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=T.map(ve(e,"script"),Pe)).length;c<f;c++)u=e,c!==h&&(u=T.clone(u,!0,!0),s&&T.merge(a,ve(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,T.map(a,Le),c=0;c<s;c++)u=a[c],de.test(u.type||"")&&!K.access(u,"globalEval")&&T.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?T._evalUrl&&!u.noModule&&T._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")}):_(u.textContent.replace(Me,""),u,l))}return n}function Fe(e,t,n){for(var r,i=t?T.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||T.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ge(ve(r,"script")),r.parentNode.removeChild(r));return e}T.extend({htmlPrefilter:function(e){return e.replace(Ne,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=ie(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&fe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),a=a||ve(c),r=0,i=o.length;r<i;r++)Re(o[r],a[r]);else Re(e,c);return 0<(a=ve(c,"script")).length&&ge(a,!f&&ve(e,"script")),c},cleanData:function(e){for(var t,n,r,i=T.event.special,o=0;void 0!==(n=e[o]);o++)if(J(n)){if(t=n[K.expando]){if(t.events)for(r in t.events)i[r]?T.event.remove(n,r):T.removeEvent(n,r,t.handle);n[K.expando]=void 0}n[X.expando]&&(n[X.expando]=void 0)}}}),T.fn.extend({detach:function(e){return Fe(this,e,!0)},remove:function(e){return Fe(this,e)},text:function(e){return $(this,function(e){return void 0===e?T.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Ie(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)})},prepend:function(){return Ie(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Ie(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ie(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return T.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ae.test(e)&&!pe[(he.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(T.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return Ie(this,arguments,function(e){var t=this.parentNode;T.inArray(this,n)<0&&(T.cleanData(ve(this)),t&&t.replaceChild(e,this))},n)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){T.fn[e]=function(e){for(var t,n=[],r=T(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),T(r[o])[a](t),u.apply(n,t.get());return this.pushStack(n)}});var Be,He,qe,$e,Ve,ze,Ue,We=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Je=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=k),t.getComputedStyle(e)},Ye=new RegExp(ne.join("|"),"i");function Ke(){if(Ue){ze.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Ue.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(ze).appendChild(Ue);var e=k.getComputedStyle(Ue);Be="1%"!==e.top,Ve=12===Xe(e.marginLeft),Ue.style.right="60%",$e=36===Xe(e.right),He=36===Xe(e.width),Ue.style.position="absolute",qe=12===Xe(Ue.offsetWidth/3),re.removeChild(ze),Ue=null}}function Xe(e){return Math.round(parseFloat(e))}function Ge(e,t,n){var r,i,o,a,s=e.style;return(n=n||Je(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=T.style(e,t)),!m.pixelBoxStyles()&&We.test(a)&&Ye.test(t)&&(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 Qe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}ze=C.createElement("div"),(Ue=C.createElement("div")).style&&(Ue.style.backgroundClip="content-box",Ue.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===Ue.style.backgroundClip,T.extend(m,{boxSizingReliable:function(){return Ke(),He},pixelBoxStyles:function(){return Ke(),$e},pixelPosition:function(){return Ke(),Be},reliableMarginLeft:function(){return Ke(),Ve},scrollboxSize:function(){return Ke(),qe}}));var Ze=["Webkit","Moz","ms"],et=C.createElement("div").style,tt={};function nt(e){var t=T.cssProps[e]||tt[e];return t||(e in et?e:tt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ze.length;n--;)if((e=Ze[n]+t)in et)return e}(e)||e)}var rt=/^(none|table(?!-c[ea]).+)/,it=/^--/,ot={position:"absolute",visibility:"hidden",display:"block"},at={letterSpacing:"0",fontWeight:"400"};function st(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function ut(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=T.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=T.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=T.css(e,"border"+ne[a]+"Width",!0,i))):(u+=T.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=T.css(e,"border"+ne[a]+"Width",!0,i):s+=T.css(e,"border"+ne[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function lt(e,t,n){var r=Je(e),i=(!m.boxSizingReliable()||n)&&"border-box"===T.css(e,"boxSizing",!1,r),o=i,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(We.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&i||"auto"===a||!parseFloat(a)&&"inline"===T.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===T.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+ut(e,t,n||(i?"border":"content"),o,r,a)+"px"}function ct(e,t,n,r,i){return new ct.prototype.init(e,t,n,r,i)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=W(t),u=it.test(t),l=e.style;if(u||(t=nt(s)),a=T.cssHooks[t]||T.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=ue(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(T.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=W(t);return it.test(t)||(t=nt(s)),(a=T.cssHooks[t]||T.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in at&&(i=at[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),T.each(["height","width"],function(e,u){T.cssHooks[u]={get:function(e,t,n){if(t)return!rt.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?lt(e,u,n):ae(e,ot,function(){return lt(e,u,n)})},set:function(e,t,n){var r,i=Je(e),o=!m.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===T.css(e,"boxSizing",!1,i),s=n?ut(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-ut(e,u,"border",!1,i)-.5)),s&&(r=te.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=T.css(e,u)),st(0,t,s)}}}),T.cssHooks.marginLeft=Qe(m.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-ae(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),T.each({margin:"",padding:"",border:"Width"},function(i,o){T.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+ne[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(T.cssHooks[i+o].set=st)}),T.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Je(e),i=t.length;a<i;a++)o[t[a]]=T.css(e,t[a],!1,r);return o}return void 0!==n?T.style(e,t,n):T.css(e,t)},e,t,1<arguments.length)}}),((T.Tween=ct).prototype={constructor:ct,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(T.cssNumber[n]?"":"px")},cur:function(){var e=ct.propHooks[this.prop];return e&&e.get?e.get(this):ct.propHooks._default.get(this)},run:function(e){var t,n=ct.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ct.propHooks._default.set(this),this}}).init.prototype=ct.prototype,(ct.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[nt(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=ct.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=ct.prototype.init,T.fx.step={};var ft,ht,dt,pt,vt=/^(?:toggle|show|hide)$/,gt=/queueHooks$/;function bt(){ht&&(!1===C.hidden&&k.requestAnimationFrame?k.requestAnimationFrame(bt):k.setTimeout(bt,T.fx.interval),T.fx.tick())}function mt(){return k.setTimeout(function(){ft=void 0}),ft=Date.now()}function yt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function _t(e,t,n){for(var r,i=(wt.tweeners[t]||[]).concat(wt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function wt(o,e,t){var n,a,r=0,i=wt.prefilters.length,s=T.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=ft||mt(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:T.extend({},e),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},t),originalProperties:e,originalOptions:t,startTime:ft||mt(),duration:t.duration,tweens:[],createTween:function(e,t){var n=T.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=W(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=T.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=wt.prefilters[r].call(l,o,c,l.opts))return y(n.stop)&&(T._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return T.map(c,_t,l),y(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),T.fx.timer(T.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}T.Animation=T.extend(wt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){for(var n,r=0,i=(e=y(e)?(t=e,["*"]):e.match(L)).length;r<i;r++)n=e[r],wt.tweeners[n]=wt.tweeners[n]||[],wt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,h=this,d={},p=e.style,v=e.nodeType&&se(e),g=K.get(e,"fxshow");for(r in n.queue||(null==(a=T._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,T.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],vt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(v?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;v=!0}d[r]=g&&g[r]||T.style(e,r)}if((u=!T.isEmptyObject(t))||!T.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(l=g&&g.display)&&(l=K.get(e,"display")),"none"===(c=T.css(e,"display"))&&(l?c=l:(ce([e],!0),l=e.style.display||l,c=T.css(e,"display"),ce([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===T.css(e,"float")&&(u||(h.done(function(){p.display=l}),null==l&&(c=p.display,l="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),u=!1,d)u||(g?"hidden"in g&&(v=g.hidden):g=K.access(e,"fxshow",{display:l}),o&&(g.hidden=!v),v&&ce([e],!0),h.done(function(){for(r in v||ce([e]),K.remove(e,"fxshow"),d)T.style(e,r,d[r])})),u=_t(v?g[r]:0,r,h),r in g||(g[r]=u.start,v&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?wt.prefilters.unshift(e):wt.prefilters.push(e)}}),T.speed=function(e,t,n){var r=e&&"object"==typeof e?T.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return T.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in T.fx.speeds?r.duration=T.fx.speeds[r.duration]:r.duration=T.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&T.dequeue(this,r.queue)},r},T.fn.extend({fadeTo:function(e,t,n,r){return this.filter(se).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){function i(){var e=wt(this,T.extend({},t),a);(o||K.get(this,"finish"))&&e.stop(!0)}var o=T.isEmptyObject(t),a=T.speed(e,n,r);return i.finish=i,o||!1===a.queue?this.each(i):this.queue(a.queue,i)},stop:function(i,e,o){function a(e){var t=e.stop;delete e.stop,t(o)}return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&!1!==i&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=T.timers,r=K.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&>.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||T.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=K.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=T.timers,o=n?n.length:0;for(t.finish=!0,T.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),T.each(["toggle","show","hide"],function(e,r){var i=T.fn[r];T.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(yt(r,!0),e,t,n)}}),T.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){T.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),T.timers=[],T.fx.tick=function(){var e,t=0,n=T.timers;for(ft=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||T.fx.stop(),ft=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){ht||(ht=!0,bt())},T.fx.stop=function(){ht=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(r,e){return r=T.fx&&T.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=k.setTimeout(e,r);t.stop=function(){k.clearTimeout(n)}})},dt=C.createElement("input"),pt=C.createElement("select").appendChild(C.createElement("option")),dt.type="checkbox",m.checkOn=""!==dt.value,m.optSelected=pt.selected,(dt=C.createElement("input")).value="t",dt.type="radio",m.radioValue="t"===dt.value;var xt,kt=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return $(this,T.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){T.removeAttr(this,e)})}}),T.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?T.prop(e,t,n):(1===o&&T.isXMLDoc(e)||(i=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?xt:void 0)),void 0!==n?null===n?void T.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=T.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&O(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(L);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),xt={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),function(e,t){var a=kt[t]||T.find.attr;kt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=kt[o],kt[o]=r,r=null!=a(e,t,n)?o:null,kt[o]=i),r}});var Ct=/^(?:input|select|textarea|button)$/i,Tt=/^(?:a|area)$/i;function Et(e){return(e.match(L)||[]).join(" ")}function Ot(e){return e.getAttribute&&e.getAttribute("class")||""}function St(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(L)||[]}T.fn.extend({prop:function(e,t){return $(this,T.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[T.propFix[e]||e]})}}),T.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(e)||(t=T.propFix[t]||t,i=T.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):Ct.test(e.nodeName)||Tt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this}),T.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(y(t))return this.each(function(e){T(this).addClass(t.call(this,e,Ot(this)))});if((e=St(t)).length)for(;n=this[u++];)if(i=Ot(n),r=1===n.nodeType&&" "+Et(i)+" "){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=Et(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(y(t))return this.each(function(e){T(this).removeClass(t.call(this,e,Ot(this)))});if(!arguments.length)return this.attr("class","");if((e=St(t)).length)for(;n=this[u++];)if(i=Ot(n),r=1===n.nodeType&&" "+Et(i)+" "){for(a=0;o=e[a++];)for(;-1<r.indexOf(" "+o+" ");)r=r.replace(" "+o+" "," ");i!==(s=Et(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"==o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):y(i)?this.each(function(e){T(this).toggleClass(i.call(this,e,Ot(this),t),t)}):this.each(function(){var e,t,n,r;if(a)for(t=0,n=T(this),r=St(i);e=r[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==i&&"boolean"!=o||((e=Ot(this))&&K.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":K.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+Et(Ot(n))+" ").indexOf(t))return!0;return!1}});var Nt=/\r/g;T.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=y(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,T(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=T.map(t,function(e){return null==e?"":e+""})),(r=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=T.valHooks[t.type]||T.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(Nt,""):null==e?"":e:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:Et(T.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!O(n.parentNode,"optgroup"))){if(t=T(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=T.makeArray(t),a=i.length;a--;)((r=i[a]).selected=-1<T.inArray(T.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<T.inArray(T(e).val(),t)}},m.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),m.focusin="onfocusin"in k;function At(e){e.stopPropagation()}var jt=/^(?:focusinfocus|focusoutblur)$/;T.extend(T.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,h=[n||C],d=b.call(e,"type")?e.type:e,p=b.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||C,3!==n.nodeType&&8!==n.nodeType&&!jt.test(d+T.event.triggered)&&(-1<d.indexOf(".")&&(d=(p=d.split(".")).shift(),p.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[T.expando]?e:new T.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:T.makeArray(t,[e]),c=T.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!v(n)){for(s=c.delegateType||d,jt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)h.push(o),a=o;a===(n.ownerDocument||C)&&h.push(a.defaultView||a.parentWindow||k)}for(i=0;(o=h[i++])&&!e.isPropagationStopped();)f=o,e.type=1<i?s:c.bindType||d,(l=(K.get(o,"events")||{})[e.type]&&K.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&J(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(h.pop(),t)||!J(n)||u&&y(n[d])&&!v(n)&&((a=n[u])&&(n[u]=null),T.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,At),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,At),T.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(r,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each(function(){T.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}}),m.focusin||T.each({focus:"focusin",blur:"focusout"},function(n,r){function i(e){T.event.simulate(r,e.target,T.event.fix(e))}T.event.special[r]={setup:function(){var e=this.ownerDocument||this,t=K.access(e,r);t||e.addEventListener(n,i,!0),K.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=K.access(e,r)-1;t?K.access(e,r,t):(e.removeEventListener(n,i,!0),K.remove(e,r))}}});var Mt=k.location,Dt=Date.now(),Pt=/\?/;T.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new k.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||T.error("Invalid XML: "+e),t};var Lt=/\[\]$/,Rt=/\r?\n/g,It=/^(?:submit|button|image|reset|file)$/i,Ft=/^(?:input|select|textarea|keygen)/i;function Bt(n,e,r,i){var t;if(Array.isArray(e))T.each(e,function(e,t){r||Lt.test(n)?i(n,t):Bt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==w(e))i(n,e);else for(t in e)Bt(n+"["+t+"]",e[t],r,i)}T.param=function(e,t){function n(e,t){var n=y(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)}var r,i=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,function(){n(this.name,this.value)});else for(r in e)Bt(r,e[r],t,n);return i.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&Ft.test(this.nodeName)&&!It.test(e)&&(this.checked||!fe.test(e))}).map(function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,function(e){return{name:t.name,value:e.replace(Rt,"\r\n")}}):{name:t.name,value:n.replace(Rt,"\r\n")}}).get()}});var Ht=/%20/g,qt=/#.*$/,$t=/([?&])_=[^&]*/,Vt=/^(.*?):[ \t]*([^\r\n]*)$/gm,zt=/^(?:GET|HEAD)$/,Ut=/^\/\//,Wt={},Jt={},Yt="*/".concat("*"),Kt=C.createElement("a");function Xt(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(L)||[];if(y(t))for(;n=i[r++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Gt(t,i,o,a){var s={},u=t===Jt;function l(e){var r;return s[e]=!0,T.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Qt(e,t){var n,r,i=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&T.extend(!0,e,r),e}Kt.href=Mt.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Mt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Mt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Yt,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":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Qt(Qt(e,T.ajaxSettings),t):Qt(T.ajaxSettings,e)},ajaxPrefilter:Xt(Wt),ajaxTransport:Xt(Jt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,h,n,d,r,p,v,i,o,g=T.ajaxSetup({},t),b=g.context||g,m=g.context&&(b.nodeType||b.jquery)?T(b):T.event,y=T.Deferred(),_=T.Callbacks("once memory"),w=g.statusCode||{},a={},s={},u="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(p){if(!n)for(n={};t=Vt.exec(h);)n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return p?h:null},setRequestHeader:function(e,t){return null==p&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==p&&(g.mimeType=e),this},statusCode:function(e){var t;if(e)if(p)x.always(e[x.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(y.promise(x),g.url=((e||g.url||Mt.href)+"").replace(Ut,Mt.protocol+"//"),g.type=t.method||t.type||g.method||g.type,g.dataTypes=(g.dataType||"*").toLowerCase().match(L)||[""],null==g.crossDomain){r=C.createElement("a");try{r.href=g.url,r.href=r.href,g.crossDomain=Kt.protocol+"//"+Kt.host!=r.protocol+"//"+r.host}catch(e){g.crossDomain=!0}}if(g.data&&g.processData&&"string"!=typeof g.data&&(g.data=T.param(g.data,g.traditional)),Gt(Wt,g,t,x),p)return x;for(i in(v=T.event&&g.global)&&0==T.active++&&T.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!zt.test(g.type),f=g.url.replace(qt,""),g.hasContent?g.data&&g.processData&&0===(g.contentType||"").indexOf("application/x-www-form-urlencoded")&&(g.data=g.data.replace(Ht,"+")):(o=g.url.slice(f.length),g.data&&(g.processData||"string"==typeof g.data)&&(f+=(Pt.test(f)?"&":"?")+g.data,delete g.data),!1===g.cache&&(f=f.replace($t,"$1"),o=(Pt.test(f)?"&":"?")+"_="+Dt+++o),g.url=f+o),g.ifModified&&(T.lastModified[f]&&x.setRequestHeader("If-Modified-Since",T.lastModified[f]),T.etag[f]&&x.setRequestHeader("If-None-Match",T.etag[f])),(g.data&&g.hasContent&&!1!==g.contentType||t.contentType)&&x.setRequestHeader("Content-Type",g.contentType),x.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+Yt+"; q=0.01":""):g.accepts["*"]),g.headers)x.setRequestHeader(i,g.headers[i]);if(g.beforeSend&&(!1===g.beforeSend.call(b,x,g)||p))return x.abort();if(u="abort",_.add(g.complete),x.done(g.success),x.fail(g.error),c=Gt(Jt,g,t,x)){if(x.readyState=1,v&&m.trigger("ajaxSend",[x,g]),p)return x;g.async&&0<g.timeout&&(d=k.setTimeout(function(){x.abort("timeout")},g.timeout));try{p=!1,c.send(a,l)}catch(e){if(p)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;p||(p=!0,d&&k.clearTimeout(d),c=void 0,h=r||"",x.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.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]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(g,x,n)),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(g,s,x,i),i?(g.ifModified&&((u=x.getResponseHeader("Last-Modified"))&&(T.lastModified[f]=u),(u=x.getResponseHeader("etag"))&&(T.etag[f]=u)),204===e||"HEAD"===g.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),x.status=e,x.statusText=(t||l)+"",i?y.resolveWith(b,[o,l,x]):y.rejectWith(b,[x,l,a]),x.statusCode(w),w=void 0,v&&m.trigger(i?"ajaxSuccess":"ajaxError",[x,g,i?o:a]),_.fireWith(b,[x,l]),v&&(m.trigger("ajaxComplete",[x,g]),--T.active||T.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],function(e,i){T[i]=function(e,t,n,r){return y(t)&&(r=r||n,n=t,t=void 0),T.ajax(T.extend({url:e,type:i,dataType:r,data:t,success:n},T.isPlainObject(e)&&e))}}),T._evalUrl=function(e,t){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return y(n)?this.each(function(e){T(this).wrapInner(n.call(this,e))}):this.each(function(){var e=T(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=y(t);return this.each(function(e){T(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){T(this).replaceWith(this.childNodes)}),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new k.XMLHttpRequest}catch(e){}};var Zt={0:200,1223:204},en=T.ajaxSettings.xhr();m.cors=!!en&&"withCredentials"in en,m.ajax=en=!!en,T.ajaxTransport(function(i){var o,a;if(m.cors||en&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Zt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&k.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),T.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),T.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=T("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var tn,nn=[],rn=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=nn.pop()||T.expando+"_"+Dt++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(rn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&rn.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(rn,"$1"+r):!1!==e.jsonp&&(e.url+=(Pt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||T.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=k[r],k[r]=function(){o=arguments},n.always(function(){void 0===i?T(k).removeProp(r):k[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,nn.push(r)),o&&y(i)&&i(o[0]),o=i=void 0}),"script"}),m.createHTMLDocument=((tn=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===tn.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=S.exec(e))?[t.createElement(i[1])]:(i=_e([e],t,o),o&&o.length&&T(o).remove(),T.merge([],i.childNodes)));var r,i,o},T.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Et(e.slice(s)),e=e.slice(0,s)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&T.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?T("<div>").append(T.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){T.fn[t]=function(e){return this.on(t,e)}}),T.expr.pseudos.animated=function(t){return T.grep(T.timers,function(e){return t===e.elem}).length},T.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=T.css(e,"position"),c=T(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=T.css(e,"top"),u=T.css(e,"left"),i=("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,r.left):(a=parseFloat(o)||0,parseFloat(u)||0),y(t)&&(t=t.call(e,n,T.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){T.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===T.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),i.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-T.css(r,"marginTop",!0),left:t.left-i.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||re})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;T.fn[t]=function(e){return $(this,function(e,t,n){var r;if(v(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),T.each(["top","left"],function(e,n){T.cssHooks[n]=Qe(m.pixelPosition,function(e,t){if(t)return t=Ge(e,n),We.test(t)?T(e).position()[n]+"px":t})}),T.each({Height:"height",Width:"width"},function(a,s){T.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){T.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return v(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?T.css(e,t,i):T.style(e,t,n,i)},s,n?e:void 0,n)}})}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){T.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),T.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),T.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||T.guid++,i},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=O,T.isFunction=y,T.isWindow=v,T.camelCase=W,T.type=w,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},void 0===(ln=function(){return T}.apply(un,[]))||(sn.exports=ln);var on=k.jQuery,an=k.$;return T.noConflict=function(e){return k.$===T&&(k.$=an),e&&k.jQuery===T&&(k.jQuery=on),T},e||(k.jQuery=k.$=T),T})},function(pha,qha,rha){var sha,tha,uha;!function(vha){var wha=this||eval("this"),xha=wha.document,yha=wha.navigator,zha=wha.jQuery,Aha=wha.JSON;zha||"undefined"==typeof jQuery||(zha=jQuery),tha=[qha,rha],void 0===(uha="function"==typeof(sha=function(e,r){function n(e,t){return(null===e||typeof e in k)&&e===t}function o(e,t){var n;return function(){n||(n=S.a.setTimeout(function(){n=vha,e()},t))}}function a(e,t){var n;return function(){clearTimeout(n),n=S.a.setTimeout(e,t)}}function l(e,t){t&&"change"!==t?"beforeChange"===t?this.oc(e):this.bb(e,t):this.pc(e)}function i(e,t){null!==t&&t.s&&t.s()}function s(e,t){var n=this.pd,r=n[P];r.qa||(this.Pb&&this.kb[t]?(n.tc(t,e,this.kb[t]),this.kb[t]=null,--this.Pb):r.F[t]||n.tc(t,e,r.G?{da:e}:n.Zc(e)),e.Ka&&e.fd())}var u,t,c,f,h,d,p,v,g,b,m,y,_,S=void 0!==e?e:{};function w(){if(m)for(var e,t=m,n=0;_<m;)if(e=b[_++]){if(t<_){if(5e3<=++n){_=m,S.a.Fc(Error("'Too much recursion' after processing "+n+" task groups."));break}t=m}try{e()}catch(e){S.a.Fc(e)}}}function x(){w(),_=m=b.length=0}S.b=function(e,t){for(var n=e.split("."),r=S,i=0;i<n.length-1;i++)r=r[n[i]];r[n[n.length-1]]=t},S.J=function(e,t,n){e[t]=n},S.version="3.5.0",S.b("version",S.version),S.options={deferUpdates:!1,useOnlyNativeEvents:!1,foreachHidesDestroyed:!1},S.a=function(){function f(e,t){for(var n in e)o.call(e,n)&&t(n,e[n])}function e(e,t){if(t)for(var n in t)o.call(t,n)&&(e[n]=t[n]);return e}function t(e,t){return e.__proto__=t,e}function i(e,t,n,r){var i=e[t].match(h)||[];S.a.C(n.match(h),function(e){S.a.Oa(i,e,r)}),e[t]=i.join(" ")}var o=Object.prototype.hasOwnProperty,n={__proto__:[]}instanceof Array,r="function"==typeof Symbol,a={},s={};a[yha&&/Firefox\/2/i.test(yha.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],a.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" "),f(a,function(e,t){if(t.length)for(var n=0,r=t.length;n<r;n++)s[t[n]]=e});var u,l={propertychange:!0},c=xha&&function(){for(var e=3,t=xha.createElement("div"),n=t.getElementsByTagName("i");t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e",n[0];);return 4<e?e:vha}(),h=/\S+/g;return{Ic:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],C:function(e,t,n){for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},A:"function"==typeof Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t)}:function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Lb:function(e,t,n){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r];return vha},hb:function(e,t){var n=S.a.A(e,t);0<n?e.splice(n,1):0===n&&e.shift()},vc:function(e){var t=[];return e&&S.a.C(e,function(e){S.a.A(t,e)<0&&t.push(e)}),t},Mb:function(e,t,n){var r=[];if(e)for(var i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i));return r},fb:function(e,t,n){var r=[];if(e)for(var i=0,o=e.length;i<o;i++)t.call(n,e[i],i)&&r.push(e[i]);return r},gb:function(e,t){if(t instanceof Array)e.push.apply(e,t);else for(var n=0,r=t.length;n<r;n++)e.push(t[n]);return e},Oa:function(e,t,n){var r=S.a.A(S.a.$b(e),t);r<0?n&&e.push(t):n||e.splice(r,1)},Ba:n,extend:e,setPrototypeOf:t,zb:n?t:e,O:f,Ha:function(e,t,n){if(!e)return e;var r,i={};for(r in e)o.call(e,r)&&(i[r]=t.call(n,e[r],r,e));return i},Sb:function(e){for(;e.firstChild;)S.removeNode(e.firstChild)},Xb:function(e){for(var t=((e=S.a.la(e))[0]&&e[0].ownerDocument||xha).createElement("div"),n=0,r=e.length;n<r;n++)t.appendChild(S.na(e[n]));return t},Ca:function(e,t){for(var n=0,r=e.length,i=[];n<r;n++){var o=e[n].cloneNode(!0);i.push(t?S.na(o):o)}return i},ua:function(e,t){if(S.a.Sb(e),t)for(var n=0,r=t.length;n<r;n++)e.appendChild(t[n])},Wc:function(e,t){var n=e.nodeType?[e]:e;if(0<n.length){for(var r=n[0],i=r.parentNode,o=0,a=t.length;o<a;o++)i.insertBefore(t[o],r);for(o=0,a=n.length;o<a;o++)S.removeNode(n[o])}},Ua:function(e,t){if(e.length){for(t=8===t.nodeType&&t.parentNode||t;e.length&&e[0].parentNode!==t;)e.splice(0,1);for(;1<e.length&&e[e.length-1].parentNode!==t;)e.length--;if(1<e.length){var n=e[0],r=e[e.length-1];for(e.length=0;n!==r;)e.push(n),n=n.nextSibling;e.push(r)}}return e},Yc:function(e,t){c<7?e.setAttribute("selected",t):e.selected=t},Cb:function(e){return null===e||e===vha?"":e.trim?e.trim():e.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Td:function(e,t){return e=e||"",!(t.length>e.length)&&e.substring(0,t.length)===t},ud:function(e,t){if(e===t)return!0;if(11===e.nodeType)return!1;if(t.contains)return t.contains(1!==e.nodeType?e.parentNode:e);if(t.compareDocumentPosition)return 16==(16&t.compareDocumentPosition(e));for(;e&&e!=t;)e=e.parentNode;return!!e},Rb:function(e){return S.a.ud(e,e.ownerDocument.documentElement)},jd:function(e){return!!S.a.Lb(e,S.a.Rb)},P:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},zc:function(e){return S.onError?function(){try{return e.apply(this,arguments)}catch(e){throw S.onError&&S.onError(e),e}}:e},setTimeout:function(e,t){return setTimeout(S.a.zc(e),t)},Fc:function(e){setTimeout(function(){throw S.onError&&S.onError(e),e},0)},H:function(t,e,n){var r=S.a.zc(n);if(n=l[e],S.options.useOnlyNativeEvents||n||!zha)if(n||"function"!=typeof t.addEventListener){if(void 0===t.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");function i(e){r.call(t,e)}var o="on"+e;t.attachEvent(o,i),S.a.I.za(t,function(){t.detachEvent(o,i)})}else t.addEventListener(e,r,!1);else u||(u="function"==typeof zha(t).on?"on":"bind"),zha(t)[u](e,r)},Fb:function(e,t){if(!e||!e.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var n;if(n=!("input"!==S.a.P(e)||!e.type||"click"!=t.toLowerCase()||"checkbox"!=(n=e.type)&&"radio"!=n),S.options.useOnlyNativeEvents||!zha||n)if("function"==typeof xha.createEvent){if("function"!=typeof e.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");(n=xha.createEvent(s[t]||"HTMLEvents")).initEvent(t,!0,!0,wha,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(n)}else if(n&&e.click)e.click();else{if(void 0===e.fireEvent)throw Error("Browser doesn't support triggering events");e.fireEvent("on"+t)}else zha(e).trigger(t)},c:function(e){return S.N(e)?e():e},$b:function(e){return S.N(e)?e.w():e},Eb:function(t,e,n){var r;e&&("object"==typeof t.classList?(r=t.classList[n?"add":"remove"],S.a.C(e.match(h),function(e){r.call(t.classList,e)})):"string"==typeof t.className.baseVal?i(t.className,"baseVal",e,n):i(t,"className",e,n))},Ab:function(e,t){var n=S.a.c(t);null!==n&&n!==vha||(n="");var r=S.h.firstChild(e);!r||3!=r.nodeType||S.h.nextSibling(r)?S.h.ua(e,[e.ownerDocument.createTextNode(n)]):r.data=n,S.a.zd(e)},Xc:function(e,t){if(e.name=t,c<=7)try{var n=e.name.replace(/[&<>'"]/g,function(e){return"&#"+e.charCodeAt(0)+";"});e.mergeAttributes(xha.createElement("<input name='"+n+"'/>"),!1)}catch(e){}},zd:function(e){9<=c&&(e=1==e.nodeType?e:e.parentNode).style&&(e.style.zoom=e.style.zoom)},vd:function(e){if(c){var t=e.style.width;e.style.width=0,e.style.width=t}},Od:function(e,t){e=S.a.c(e),t=S.a.c(t);for(var n=[],r=e;r<=t;r++)n.push(r);return n},la:function(e){for(var t=[],n=0,r=e.length;n<r;n++)t.push(e[n]);return t},Da:function(e){return r?Symbol(e):e},Xd:6===c,Yd:7===c,W:c,Kc:function(e,t){for(var n=S.a.la(e.getElementsByTagName("input")).concat(S.a.la(e.getElementsByTagName("textarea"))),r="string"==typeof t?function(e){return e.name===t}:function(e){return t.test(e.name)},i=[],o=n.length-1;0<=o;o--)r(n[o])&&i.push(n[o]);return i},Md:function(e){return"string"==typeof e&&(e=S.a.Cb(e))?Aha&&Aha.parse?Aha.parse(e):new Function("return "+e)():null},fc:function(e,t,n){if(!Aha||!Aha.stringify)throw Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js");return Aha.stringify(S.a.c(e),t,n)},Nd:function(e,t,n){var r=(n=n||{}).params||{},i=n.includeFields||this.Ic,o=e;if("object"==typeof e&&"form"===S.a.P(e)){o=e.action;for(var a=i.length-1;0<=a;a--)for(var s=S.a.Kc(e,i[a]),u=s.length-1;0<=u;u--)r[s[u].name]=s[u].value}t=S.a.c(t);var l=xha.createElement("form");for(var c in l.style.display="none",l.action=o,l.method="post",t)(e=xha.createElement("input")).type="hidden",e.name=c,e.value=S.a.fc(S.a.c(t[c])),l.appendChild(e);f(r,function(e,t){var n=xha.createElement("input");n.type="hidden",n.name=e,n.value=t,l.appendChild(n)}),xha.body.appendChild(l),n.submitter?n.submitter(l):l.submit(),setTimeout(function(){l.parentNode.removeChild(l)},0)}}}(),S.b("utils",S.a),S.b("utils.arrayForEach",S.a.C),S.b("utils.arrayFirst",S.a.Lb),S.b("utils.arrayFilter",S.a.fb),S.b("utils.arrayGetDistinctValues",S.a.vc),S.b("utils.arrayIndexOf",S.a.A),S.b("utils.arrayMap",S.a.Mb),S.b("utils.arrayPushAll",S.a.gb),S.b("utils.arrayRemoveItem",S.a.hb),S.b("utils.cloneNodes",S.a.Ca),S.b("utils.createSymbolOrString",S.a.Da),S.b("utils.extend",S.a.extend),S.b("utils.fieldsIncludedWithJsonPost",S.a.Ic),S.b("utils.getFormFields",S.a.Kc),S.b("utils.objectMap",S.a.Ha),S.b("utils.peekObservable",S.a.$b),S.b("utils.postJson",S.a.Nd),S.b("utils.parseJson",S.a.Md),S.b("utils.registerEventHandler",S.a.H),S.b("utils.stringifyJson",S.a.fc),S.b("utils.range",S.a.Od),S.b("utils.toggleDomNodeCssClass",S.a.Eb),S.b("utils.triggerEvent",S.a.Fb),S.b("utils.unwrapObservable",S.a.c),S.b("utils.objectForEach",S.a.O),S.b("utils.addOrRemoveItem",S.a.Oa),S.b("utils.setTextContent",S.a.Ab),S.b("unwrap",S.a.c),Function.prototype.bind||(Function.prototype.bind=function(t){var n=this;if(1===arguments.length)return function(){return n.apply(t,arguments)};var r=Array.prototype.slice.call(arguments,1);return function(){var e=r.slice(0);return e.push.apply(e,arguments),n.apply(t,e)}}),S.a.g=new function(){var r,i=0,o="__ko__"+(new Date).getTime(),a={};return{get:function(e,t){var n=r(e,!1);return n&&n[t]},set:function(e,t,n){(e=r(e,n!==vha))&&(e[t]=n)},Tb:function(e,t,n){return(e=r(e,!0))[t]||(e[t]=n)},clear:S.a.W?(r=function(e,t){var n=e[o];if(!n||"null"===n||!a[n]){if(!t)return vha;n=e[o]="ko"+i++,a[n]={}}return a[n]},function(e){var t=e[o];return!(!t||(delete a[t],e[o]=null))}):(r=function(e,t){var n=e[o];return!n&&t&&(n=e[o]={}),n},function(e){return!!e[o]&&(delete e[o],!0)}),Z:function(){return i+++o}}},S.b("utils.domData",S.a.g),S.b("utils.domData.clear",S.a.g.clear),S.a.I=new function(){function r(e,t){var n=S.a.g.get(e,a);return n===vha&&t&&(n=[],S.a.g.set(e,a,n)),n}function o(e){if(t=r(e,!1))for(var t=t.slice(0),n=0;n<t.length;n++)t[n](e);S.a.g.clear(e),S.a.I.cleanExternalData(e),s[e.nodeType]&&i(e.childNodes,!0)}function i(e,t){for(var n,r=[],i=0;i<e.length;i++)if((!t||8===e[i].nodeType)&&(o(r[r.length]=n=e[i]),e[i]!==n))for(;i--&&-1==S.a.A(r,e[i]););}var a=S.a.g.Z(),t={1:!0,8:!0,9:!0},s={1:!0,9:!0};return{za:function(e,t){if("function"!=typeof t)throw Error("Callback must be a function");r(e,!0).push(t)},xb:function(e,t){var n=r(e,!1);n&&(S.a.hb(n,t),0==n.length&&S.a.g.set(e,a,vha))},na:function(e){return t[e.nodeType]&&(o(e),s[e.nodeType]&&i(e.getElementsByTagName("*"))),e},removeNode:function(e){S.na(e),e.parentNode&&e.parentNode.removeChild(e)},cleanExternalData:function(e){zha&&"function"==typeof zha.cleanData&&zha.cleanData([e])}}},S.na=S.a.I.na,S.removeNode=S.a.I.removeNode,S.b("cleanNode",S.na),S.b("removeNode",S.removeNode),S.b("utils.domNodeDisposal",S.a.I),S.b("utils.domNodeDisposal.addDisposeCallback",S.a.I.za),S.b("utils.domNodeDisposal.removeDisposeCallback",S.a.I.xb),u=[0,"",""],h={thead:t=[1,"<table>","</table>"],tbody:t,tfoot:t,tr:[2,"<table><tbody>","</tbody></table>"],td:c=[3,"<table><tbody><tr>","</tr></tbody></table>"],th:c,option:f=[1,"<select multiple='multiple'>","</select>"],optgroup:f},d=S.a.W<=8,S.a.ta=function(e,t){var n;if(zha){if(zha.parseHTML)n=zha.parseHTML(e,t)||[];else if((n=zha.clean([e],t))&&n[0]){for(var r=n[0];r.parentNode&&11!==r.parentNode.nodeType;)r=r.parentNode;r.parentNode&&r.parentNode.removeChild(r)}}else{(n=t)||(n=xha),r=n.parentWindow||n.defaultView||wha;var i,o=S.a.Cb(e).toLowerCase(),a=n.createElement("div");for(o=(i=(o=o.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&h[o[1]]||u)[0],i="ignored<div>"+i[1]+e+i[2]+"</div>","function"==typeof r.innerShiv?a.appendChild(r.innerShiv(i)):(d&&n.body.appendChild(a),a.innerHTML=i,d&&a.parentNode.removeChild(a));o--;)a=a.lastChild;n=S.a.la(a.lastChild.childNodes)}return n},S.a.Ld=function(e,t){var n=S.a.ta(e,t);return n.length&&n[0].parentElement||S.a.Xb(n)},S.a.dc=function(e,t){if(S.a.Sb(e),null!==(t=S.a.c(t))&&t!==vha)if("string"!=typeof t&&(t=t.toString()),zha)zha(e).html(t);else for(var n=S.a.ta(t,e.ownerDocument),r=0;r<n.length;r++)e.appendChild(n[r])},S.b("utils.parseHtmlFragment",S.a.ta),S.b("utils.setHtml",S.a.dc),S.aa=(p={},{Wb:function(e){if("function"!=typeof e)throw Error("You can only pass a function to ko.memoization.memoize()");var t=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return p[t]=e,"\x3c!--[ko_memo:"+t+"]--\x3e"},ad:function(e,t){var n=p[e];if(n===vha)throw Error("Couldn't find any memo with ID "+e+". Perhaps it's already been unmemoized.");try{return n.apply(null,t||[]),!0}finally{delete p[e]}},bd:function(e,t){var n=[];!function e(t,n){if(t)if(8==t.nodeType)null!=(r=S.aa.Tc(t.nodeValue))&&n.push({sd:t,Jd:r});else if(1==t.nodeType)for(var r=0,i=t.childNodes,o=i.length;r<o;r++)e(i[r],n)}(e,n);for(var r=0,i=n.length;r<i;r++){var o=n[r].sd,a=[o];t&&S.a.gb(a,t),S.aa.ad(n[r].Jd,a),o.nodeValue="",o.parentNode&&o.parentNode.removeChild(o)}},Tc:function(e){return(e=e.match(/^\[ko_memo\:(.*?)\]$/))?e[1]:null}}),S.b("memoization",S.aa),S.b("memoization.memoize",S.aa.Wb),S.b("memoization.unmemoize",S.aa.ad),S.b("memoization.parseMemoText",S.aa.Tc),S.b("memoization.unmemoizeDomNodeAndDescendants",S.aa.bd),S.ma=(b=[],y=1,_=m=0,{scheduler:wha.MutationObserver?(v=x,g=xha.createElement("div"),new MutationObserver(v).observe(g,{attributes:!0}),function(){g.classList.toggle("foo")}):xha&&"onreadystatechange"in xha.createElement("script")?function(e){var t=xha.createElement("script");t.onreadystatechange=function(){t.onreadystatechange=null,xha.documentElement.removeChild(t),t=null,e()},xha.documentElement.appendChild(t)}:function(e){setTimeout(e,0)},yb:function(e){return m||S.ma.scheduler(x),b[m++]=e,y++},cancel:function(e){_<=(e-=y-m)&&e<m&&(b[e]=null)},resetForTesting:function(){var e=m-_;return _=m=b.length=0,e},Rd:w}),S.b("tasks",S.ma),S.b("tasks.schedule",S.ma.yb),S.b("tasks.runEarly",S.ma.Rd),S.Ta={throttle:function(t,n){t.throttleEvaluation=n;var r=null;return S.$({read:t,write:function(e){clearTimeout(r),r=S.a.setTimeout(function(){t(e)},n)}})},rateLimit:function(e,t){var n,r,i;"number"==typeof t?n=t:(n=t.timeout,r=t.method),e.Hb=!1,i="function"==typeof r?r:"notifyWhenChangesStop"==r?a:o,e.tb(function(e){return i(e,n,t)})},deferred:function(r,e){if(!0!==e)throw Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");r.Hb||(r.Hb=!0,r.tb(function(e){var t,n=!1;return function(){if(!n){S.ma.cancel(t),t=S.ma.yb(e);try{n=!0,r.notifySubscribers(vha,"dirty")}finally{n=!1}}}}))},notify:function(e,t){e.equalityComparer="always"==t?null:n}};var k={undefined:1,boolean:1,number:1,string:1};S.b("extenders",S.Ta),S.gc=function(e,t,n){this.da=e,this.kc=t,this.lc=n,this.Ib=!1,this.ab=this.Jb=null,S.J(this,"dispose",this.s),S.J(this,"disposeWhenNodeIsRemoved",this.l)},S.gc.prototype.s=function(){this.Ib||(this.ab&&S.a.I.xb(this.Jb,this.ab),this.Ib=!0,this.lc(),this.da=this.kc=this.lc=this.Jb=this.ab=null)},S.gc.prototype.l=function(e){this.Jb=e,S.a.I.za(e,this.ab=this.s.bind(this))},S.R=function(){S.a.zb(this,O),O.ob(this)};var C,T,E,O={ob:function(e){e.S={change:[]},e.rc=1},subscribe:function(e,t,n){var r=this;n=n||"change";var i=new S.gc(r,t?e.bind(t):e,function(){S.a.hb(r.S[n],i),r.cb&&r.cb(n)});return r.Qa&&r.Qa(n),r.S[n]||(r.S[n]=[]),r.S[n].push(i),i},notifySubscribers:function(e,t){if("change"===(t=t||"change")&&this.Gb(),this.Wa(t)){var n="change"===t&&this.dd||this.S[t].slice(0);try{S.v.wc();for(var r,i=0;r=n[i];++i)r.Ib||r.kc(e)}finally{S.v.end()}}},mb:function(){return this.rc},Cd:function(e){return this.mb()!==e},Gb:function(){++this.rc},tb:function(e){var n,t,r,i,o,a=this,s=S.N(a);a.bb||(a.bb=a.notifySubscribers,a.notifySubscribers=l);var u=e(function(){a.Ka=!1,s&&i===a&&(i=a.mc?a.mc():a());var e=t||o&&a.qb(r,i);o=t=n=!1,e&&a.bb(r=i)});a.pc=function(e,t){t&&a.Ka||(o=!t),a.dd=a.S.change.slice(0),a.Ka=n=!0,i=e,u()},a.oc=function(e){n||(r=e,a.bb(e,"beforeChange"))},a.qc=function(){o=!0},a.fd=function(){a.qb(r,a.w(!0))&&(t=!0)}},Wa:function(e){return this.S[e]&&this.S[e].length},Ad:function(e){if(e)return this.S[e]&&this.S[e].length||0;var n=0;return S.a.O(this.S,function(e,t){"dirty"!==e&&(n+=t.length)}),n},qb:function(e,t){return!this.equalityComparer||!this.equalityComparer(e,t)},toString:function(){return"[object Object]"},extend:function(e){var r=this;return e&&S.a.O(e,function(e,t){var n=S.Ta[e];"function"==typeof n&&(r=n(r,t)||r)}),r}};function N(e){T.push(C),C=e}function A(){C=T.pop()}S.J(O,"init",O.ob),S.J(O,"subscribe",O.subscribe),S.J(O,"extend",O.extend),S.J(O,"getSubscriptionsCount",O.Ad),S.a.Ba&&S.a.setPrototypeOf(O,Function.prototype),S.R.fn=O,S.Pc=function(e){return null!=e&&"function"==typeof e.subscribe&&"function"==typeof e.notifySubscribers},S.b("subscribable",S.R),S.b("isSubscribable",S.Pc),S.U=S.v=(T=[],E=0,{wc:N,end:A,ac:function(e){if(C){if(!S.Pc(e))throw Error("Only subscribable things can act as dependencies");C.nd.call(C.od,e,e.ed||(e.ed=++E))}},K:function(e,t,n){try{return N(),e.apply(t,n||[])}finally{A()}},pa:function(){if(C)return C.o.pa()},Va:function(){if(C)return C.o.Va()},rb:function(){if(C)return C.rb},o:function(){if(C)return C.o}}),S.b("computedContext",S.U),S.b("computedContext.getDependenciesCount",S.U.pa),S.b("computedContext.getDependencies",S.U.Va),S.b("computedContext.isInitial",S.U.rb),S.b("computedContext.registerDependency",S.U.ac),S.b("ignoreDependencies",S.Wd=S.v.K);var j=S.a.Da("_latestValue");S.sa=function(e){function t(){return 0<arguments.length?(t.qb(t[j],arguments[0])&&(t.xa(),t[j]=arguments[0],t.wa()),this):(S.v.ac(t),t[j])}return t[j]=e,S.a.Ba||S.a.extend(t,S.R.fn),S.R.fn.ob(t),S.a.zb(t,M),S.options.deferUpdates&&S.Ta.deferred(t,!0),t};var M={equalityComparer:n,w:function(){return this[j]},wa:function(){this.notifySubscribers(this[j],"spectate"),this.notifySubscribers(this[j])},xa:function(){this.notifySubscribers(this[j],"beforeChange")}};S.a.Ba&&S.a.setPrototypeOf(M,S.R.fn);var D=S.sa.Na="__ko_proto__";M[D]=S.sa,S.N=function(e){if((e="function"==typeof e&&e[D])&&e!==M[D]&&e!==S.o.fn[D])throw Error("Invalid object that looks like an observable; possibly from another Knockout instance");return!!e},S.Ya=function(e){return"function"==typeof e&&(e[D]===M[D]||e[D]===S.o.fn[D]&&e.Mc)},S.b("observable",S.sa),S.b("isObservable",S.N),S.b("isWriteableObservable",S.Ya),S.b("isWritableObservable",S.Ya),S.b("observable.fn",M),S.J(M,"peek",M.w),S.J(M,"valueHasMutated",M.wa),S.J(M,"valueWillMutate",M.xa),S.Ia=function(e){if("object"!=typeof(e=e||[])||!("length"in e))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");return e=S.sa(e),S.a.zb(e,S.Ia.fn),e.extend({trackArrayChanges:!0})},S.Ia.fn={remove:function(t){for(var e=this.w(),n=[],r="function"!=typeof t||S.N(t)?function(e){return e===t}:t,i=0;i<e.length;i++){var o=e[i];if(r(o)){if(0===n.length&&this.xa(),e[i]!==o)throw Error("Array modified during remove; cannot remove item");n.push(o),e.splice(i,1),i--}}return n.length&&this.wa(),n},removeAll:function(t){if(t!==vha)return t?this.remove(function(e){return 0<=S.a.A(t,e)}):[];var e=this.w(),n=e.slice(0);return this.xa(),e.splice(0,e.length),this.wa(),n},destroy:function(t){var e=this.w(),n="function"!=typeof t||S.N(t)?function(e){return e===t}:t;this.xa();for(var r=e.length-1;0<=r;r--){var i=e[r];n(i)&&(i._destroy=!0)}this.wa()},destroyAll:function(t){return t===vha?this.destroy(function(){return!0}):t?this.destroy(function(e){return 0<=S.a.A(t,e)}):[]},indexOf:function(e){var t=this();return S.a.A(t,e)},replace:function(e,t){var n=this.indexOf(e);0<=n&&(this.xa(),this.w()[n]=t,this.wa())},sorted:function(e){var t=this().slice(0);return e?t.sort(e):t.sort()},reversed:function(){return this().slice(0).reverse()}},S.a.Ba&&S.a.setPrototypeOf(S.Ia.fn,S.sa.fn),S.a.C("pop push reverse shift sort splice unshift".split(" "),function(n){S.Ia.fn[n]=function(){var e=this.w();this.xa(),this.yc(e,n,arguments);var t=e[n].apply(e,arguments);return this.wa(),t===e?this:t}}),S.a.C(["slice"],function(t){S.Ia.fn[t]=function(){var e=this();return e[t].apply(e,arguments)}}),S.Oc=function(e){return S.N(e)&&"function"==typeof e.remove&&"function"==typeof e.push},S.b("observableArray",S.Ia),S.b("isObservableArray",S.Oc),S.Ta.trackArrayChanges=function(n,e){if(n.Nb={},e&&"object"==typeof e&&S.a.extend(n.Nb,e),n.Nb.sparse=!0,!n.yc){var t,r,i,f=!1,h=null,d=0,o=n.Qa,a=n.cb;n.Qa=function(e){o&&o.call(n,e),"arrayChange"===e&&function(){function e(){if(d){var e,t=[].concat(n.w()||[]);n.Wa("arrayChange")&&((!h||1<d)&&(h=S.a.Ob(r,t,n.Nb)),e=h),r=t,h=null,d=0,e&&e.length&&n.notifySubscribers(e,"arrayChange")}}f?e():(f=!0,i=n.notifySubscribers,n.notifySubscribers=function(e,t){return t&&"change"!==t||++d,i.apply(this,arguments)},r=[].concat(n.w()||[]),h=null,t=n.subscribe(e))}()},n.cb=function(e){a&&a.call(n,e),"arrayChange"!==e||n.Wa("arrayChange")||(i&&(n.notifySubscribers=i,i=vha),t&&t.s(),t=null,f=!1,r=vha)},n.yc=function(e,t,n){function r(e,t,n){return i[i.length]={status:e,value:t,index:n}}if(f&&!d){var i=[],o=e.length,a=n.length,s=0;switch(t){case"push":s=o;case"unshift":for(t=0;t<a;t++)r("added",n[t],s+t);break;case"pop":s=o-1;case"shift":o&&r("deleted",e[s],s);break;case"splice":t=Math.min(Math.max(0,n[0]<0?o+n[0]:n[0]),o),o=1===a?o:Math.min(t+(n[1]||0),o),a=t+a-2,s=Math.max(o,a);for(var u=[],l=[],c=2;t<s;++t,++c)t<o&&l.push(r("deleted",e[t],t)),t<a&&u.push(r("added",n[c],t));S.a.Jc(l,u);break;default:return}h=i}}}};var P=S.a.Da("_state");S.o=S.$=function(e,t,n){function r(){if(0<arguments.length){if("function"!=typeof i)throw Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.");return i.apply(o.lb,arguments),this}return o.qa||S.v.ac(r),(o.ka||o.G&&r.Xa())&&r.ha(),o.X}if("object"==typeof e?n=e:(n=n||{},e&&(n.read=e)),"function"!=typeof n.read)throw Error("Pass a function that returns the value of the ko.computed");var i=n.write,o={X:vha,ra:!0,ka:!0,pb:!1,hc:!1,qa:!1,vb:!1,G:!1,Vc:n.read,lb:t||n.owner,l:n.disposeWhenNodeIsRemoved||n.l||null,Sa:n.disposeWhen||n.Sa,Qb:null,F:{},V:0,Hc:null};return r[P]=o,r.Mc="function"==typeof i,S.a.Ba||S.a.extend(r,S.R.fn),S.R.fn.ob(r),S.a.zb(r,L),n.pure?(o.vb=!0,o.G=!0,S.a.extend(r,R)):n.deferEvaluation&&S.a.extend(r,I),S.options.deferUpdates&&S.Ta.deferred(r,!0),o.l&&(o.hc=!0,o.l.nodeType||(o.l=null)),o.G||n.deferEvaluation||r.ha(),o.l&&r.ja()&&S.a.I.za(o.l,o.Qb=function(){r.s()}),r};var L={equalityComparer:n,pa:function(){return this[P].V},Va:function(){var n=[];return S.a.O(this[P].F,function(e,t){n[t.La]=t.da}),n},Ub:function(t){if(!this[P].V)return!1;var e=this.Va();return-1!==S.a.A(e,t)||!!S.a.Lb(e,function(e){return e.Ub&&e.Ub(t)})},tc:function(e,t,n){if(this[P].vb&&t===this)throw Error("A 'pure' computed must not be called recursively");(this[P].F[e]=n).La=this[P].V++,n.Ma=t.mb()},Xa:function(){var e,t,n=this[P].F;for(e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&(t=n[e],this.Ja&&t.da.Ka||t.da.Cd(t.Ma)))return!0},Id:function(){this.Ja&&!this[P].pb&&this.Ja(!1)},ja:function(){var e=this[P];return e.ka||0<e.V},Qd:function(){this.Ka?this[P].ka&&(this[P].ra=!0):this.Gc()},Zc:function(e){if(e.Hb){var t=e.subscribe(this.Id,this,"dirty"),n=e.subscribe(this.Qd,this);return{da:e,s:function(){t.s(),n.s()}}}return e.subscribe(this.Gc,this)},Gc:function(){var e=this,t=e.throttleEvaluation;t&&0<=t?(clearTimeout(this[P].Hc),this[P].Hc=S.a.setTimeout(function(){e.ha(!0)},t)):e.Ja?e.Ja(!0):e.ha(!0)},ha:function(e){var t=this[P],n=t.Sa,r=!1;if(!t.pb&&!t.qa){if(t.l&&!S.a.Rb(t.l)||n&&n()){if(!t.hc)return void this.s()}else t.hc=!1;t.pb=!0;try{r=this.yd(e)}finally{t.pb=!1}return r}},yd:function(e){var t=this[P],n=!1,r=t.vb?vha:!t.V;n={pd:this,kb:t.F,Pb:t.V},S.v.wc({od:n,nd:s,o:this,rb:r}),t.F={},t.V=0;var i=this.xd(t,n);return(n=t.V?this.qb(t.X,i):(this.s(),!0))&&(t.G?this.Gb():this.notifySubscribers(t.X,"beforeChange"),t.X=i,this.notifySubscribers(t.X,"spectate"),!t.G&&e&&this.notifySubscribers(t.X),this.qc&&this.qc()),r&&this.notifySubscribers(t.X,"awake"),n},xd:function(e,t){try{var n=e.Vc;return e.lb?n.call(e.lb):n()}finally{S.v.end(),t.Pb&&!e.G&&S.a.O(t.kb,i),e.ra=e.ka=!1}},w:function(e){var t=this[P];return(t.ka&&(e||!t.V)||t.G&&this.Xa())&&this.ha(),t.X},tb:function(e){S.R.fn.tb.call(this,e),this.mc=function(){return this[P].G||(this[P].ra?this.ha():this[P].ka=!1),this[P].X},this.Ja=function(e){this.oc(this[P].X),this[P].ka=!0,e&&(this[P].ra=!0),this.pc(this,!e)}},s:function(){var e=this[P];!e.G&&e.F&&S.a.O(e.F,function(e,t){t.s&&t.s()}),e.l&&e.Qb&&S.a.I.xb(e.l,e.Qb),e.F=vha,e.V=0,e.qa=!0,e.ra=!1,e.ka=!1,e.G=!1,e.l=vha,e.Sa=vha,e.Vc=vha,this.Mc||(e.lb=vha)}},R={Qa:function(e){var i=this,o=i[P];if(!o.qa&&o.G&&"change"==e){if(o.G=!1,o.ra||i.Xa())o.F=null,o.V=0,i.ha()&&i.Gb();else{var n=[];S.a.O(o.F,function(e,t){n[t.La]=e}),S.a.C(n,function(e,t){var n=o.F[e],r=i.Zc(n.da);r.La=t,r.Ma=n.Ma,o.F[e]=r}),i.Xa()&&i.ha()&&i.Gb()}o.qa||i.notifySubscribers(o.X,"awake")}},cb:function(e){var n=this[P];n.qa||"change"!=e||this.Wa("change")||(S.a.O(n.F,function(e,t){t.s&&(n.F[e]={da:t.da,La:t.La,Ma:t.Ma},t.s())}),n.G=!0,this.notifySubscribers(vha,"asleep"))},mb:function(){var e=this[P];return e.G&&(e.ra||this.Xa())&&this.ha(),S.R.fn.mb.call(this)}},I={Qa:function(e){"change"!=e&&"beforeChange"!=e||this.w()}};S.a.Ba&&S.a.setPrototypeOf(L,S.R.fn);var F,B,H,q,$,V,z,U,W,J,Y,K,X,G,Q,Z=S.sa.Na;function ee(r,i,o){if(o=o||new te,"object"!=typeof(r=i(r))||null===r||r===vha||r instanceof RegExp||r instanceof Date||r instanceof String||r instanceof Number||r instanceof Boolean)return r;var a=r instanceof Array?[]:{};return o.save(r,a),function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)t(n);"function"==typeof e.toJSON&&t("toJSON")}else for(n in e)t(n)}(r,function(e){var t=i(r[e]);switch(typeof t){case"boolean":case"number":case"string":case"function":a[e]=t;break;case"object":case"undefined":var n=o.get(t);a[e]=n!==vha?n:ee(t,i,o)}}),a}function te(){this.keys=[],this.values=[]}function ne(e){123===(e=S.a.Cb(e)).charCodeAt(0)&&(e=e.slice(1,-1));var t,n=[],r=(e+="\n,").match(H),i=[],o=0;if(1<r.length){for(var a,s=0;a=r[s];++s){var u=a.charCodeAt(0);if(44===u){if(o<=0){n.push(t&&i.length?{key:t,value:i.join("")}:{unknown:t||i.join("")}),t=o=0,i=[];continue}}else if(58===u){if(!o&&!t&&1===i.length){t=i.pop();continue}}else{if(47===u&&1<a.length&&(47===a.charCodeAt(1)||42===a.charCodeAt(1)))continue;47===u&&s&&1<a.length?(u=r[s-1].match(q))&&!$[u[0]]&&(r=(e=e.substr(e.indexOf(a)+1)).match(H),s=-1,a="/"):40===u||123===u||91===u?++o:41===u||125===u||93===u?--o:t||i.length||34!==u&&39!==u||(a=a.slice(1,-1))}i.push(a)}if(0<o)throw Error("Unbalanced parentheses, braces, or brackets")}return n}function re(e){return 8==e.nodeType&&U.test(z?e.text:e.nodeValue)}function ie(e){return 8==e.nodeType&&W.test(z?e.text:e.nodeValue)}function oe(e,t){for(var n=e,r=1,i=[];n=n.nextSibling;){if(ie(n)&&(S.a.g.set(n,Y,!0),0==--r))return i;i.push(n),re(n)&&r++}if(!t)throw Error("Cannot find closing comment tag to match: "+e.nodeValue);return null}function ae(e,t){var n=oe(e,t);return n?0<n.length?n[n.length-1].nextSibling:e.nextSibling:null}function se(r,e){var i,o=Object.prototype.hasOwnProperty.call(X,r)?X[r]:K;o?o.subscribe(e):((o=X[r]=new S.R).subscribe(e),function(e,n){ue("getConfig",[e],function(t){t?ue("loadComponent",[e,t],function(e){n(e,t)}):n(null,null)})}(r,function(e,t){var n=!(!t||!t.synchronous);G[r]={definition:e,Fd:n},delete X[r],i||n?o.notifySubscribers(e):S.ma.yb(function(){o.notifySubscribers(e)})}),i=!0)}function ue(t,n,r,i){i||(i=S.i.loaders.slice(0));var e=i.shift();if(e){var o=e[t];if(o){var a=!1;if(o.apply(e,n.concat(function(e){a?r(null):null!==e?r(e):ue(t,n,r,i)}))!==K&&(a=!0,!e.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else ue(t,n,r,i)}else r(null)}L[Z]=S.o,S.Nc=function(e){return"function"==typeof e&&e[Z]===L[Z]},S.Ed=function(e){return S.Nc(e)&&e[P]&&e[P].vb},S.b("computed",S.o),S.b("dependentObservable",S.o),S.b("isComputed",S.Nc),S.b("isPureComputed",S.Ed),S.b("computed.fn",L),S.J(L,"peek",L.w),S.J(L,"dispose",L.s),S.J(L,"isActive",L.ja),S.J(L,"getDependenciesCount",L.pa),S.J(L,"getDependencies",L.Va),S.wb=function(e,t){return"function"==typeof e?S.o(e,t,{pure:!0}):((e=S.a.extend({},e)).pure=!0,S.o(e,t))},S.b("pureComputed",S.wb),S.$c=function(e){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return ee(e,function(e){for(var t=0;S.N(e)&&t<10;t++)e=e();return e})},S.toJSON=function(e,t,n){return e=S.$c(e),S.a.fc(e,t,n)},te.prototype={constructor:te,save:function(e,t){var n=S.a.A(this.keys,e);0<=n?this.values[n]=t:(this.keys.push(e),this.values.push(t))},get:function(e){return 0<=(e=S.a.A(this.keys,e))?this.values[e]:vha}},S.b("toJS",S.$c),S.b("toJSON",S.toJSON),S.Vd=function(r,e,i){function t(t){var e=S.wb(r,i).extend({Ga:"always"}),n=e.subscribe(function(e){e&&(n.s(),t(e))});return e.notifySubscribers(e.w()),n}return"function"!=typeof Promise||e?t(e.bind(i)):new Promise(t)},S.b("when",S.Vd),S.u={L:function(e){switch(S.a.P(e)){case"option":return!0===e.__ko__hasDomDataOptionValue__?S.a.g.get(e,S.f.options.Yb):S.a.W<=7?e.getAttributeNode("value")&&e.getAttributeNode("value").specified?e.value:e.text:e.value;case"select":return 0<=e.selectedIndex?S.u.L(e.options[e.selectedIndex]):vha;default:return e.value}},ya:function(e,t,n){switch(S.a.P(e)){case"option":"string"==typeof t?(S.a.g.set(e,S.f.options.Yb,vha),"__ko__hasDomDataOptionValue__"in e&&delete e.__ko__hasDomDataOptionValue__,e.value=t):(S.a.g.set(e,S.f.options.Yb,t),e.__ko__hasDomDataOptionValue__=!0,e.value="number"==typeof t?t:"");break;case"select":""!==t&&null!==t||(t=vha);for(var r,i=-1,o=0,a=e.options.length;o<a;++o)if((r=S.u.L(e.options[o]))==t||""===r&&t===vha){i=o;break}(n||0<=i||t===vha&&1<e.size)&&(e.selectedIndex=i,6===S.a.W&&S.a.setTimeout(function(){e.selectedIndex=i},0));break;default:null!==t&&t!==vha||(t=""),e.value=t}}},S.b("selectExtensions",S.u),S.b("selectExtensions.readValue",S.u.L),S.b("selectExtensions.writeValue",S.u.ya),S.m=(F=["true","false","null","undefined"],B=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,H=RegExp("\"(?:\\\\.|[^\"])*\"|'(?:\\\\.|[^'])*'|`(?:\\\\.|[^`])*`|/\\*(?:[^*]|\\*+[^*/])*\\*+/|//.*\n|/(?:\\\\.|[^/])+/w*|[^\\s:,/][^,\"'`{}()/:[\\]]*[^\\s,\"'`{}()/:[\\]]|[^\\s]","g"),q=/[\])"'A-Za-z0-9_$]+$/,$={in:1,return:1,typeof:1},{Ra:[],va:V={},Zb:ne,ub:function(e,t){function i(e,t){var n;if(!u){var r=S.getBindingHandler(e);if(r&&r.preprocess&&!(t=r.preprocess(t,e,i)))return;(r=V[e])&&(n=t,r=n=!(0<=S.a.A(F,n))&&null!==(r=n.match(B))&&(r[1]?"Object("+r[1]+")"+r[2]:n)),r&&a.push("'"+("string"==typeof V[e]?V[e]:e)+"':function(_z){"+n+"=_z}")}s&&(t="function(){return "+t+" }"),o.push("'"+e+"':"+t)}var o=[],a=[],s=(t=t||{}).valueAccessors,u=t.bindingParams,n="string"==typeof e?ne(e):e;return S.a.C(n,function(e){i(e.key||e.unknown,e.value)}),a.length&&i("_ko_property_writers","{"+a.join(",")+" }"),o.join(",")},Hd:function(e,t){for(var n=0;n<e.length;n++)if(e[n].key==t)return!0;return!1},$a:function(e,t,n,r,i){e&&S.N(e)?!S.Ya(e)||i&&e.w()===r||e(r):(e=t.get("_ko_property_writers"))&&e[n]&&e[n](r)}}),S.b("expressionRewriting",S.m),S.b("expressionRewriting.bindingRewriteValidators",S.m.Ra),S.b("expressionRewriting.parseObjectLiteral",S.m.Zb),S.b("expressionRewriting.preProcessBindings",S.m.ub),S.b("expressionRewriting._twoWayBindings",S.m.va),S.b("jsonExpressionRewriting",S.m),S.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",S.m.ub),z=xha&&"\x3c!--test--\x3e"===xha.createComment("test").text,U=z?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,W=z?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,J={ul:!0,ol:!0},Y="__ko_matchedEndComment__",S.h={ea:{},childNodes:function(e){return re(e)?oe(e):e.childNodes},Ea:function(e){if(re(e))for(var t=0,n=(e=S.h.childNodes(e)).length;t<n;t++)S.removeNode(e[t]);else S.a.Sb(e)},ua:function(e,t){if(re(e)){S.h.Ea(e);for(var n=e.nextSibling,r=0,i=t.length;r<i;r++)n.parentNode.insertBefore(t[r],n)}else S.a.ua(e,t)},Uc:function(e,t){re(e)?e.parentNode.insertBefore(t,e.nextSibling):e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)},Vb:function(e,t,n){n?re(e)?e.parentNode.insertBefore(t,n.nextSibling):n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):S.h.Uc(e,t)},firstChild:function(e){if(re(e))return!e.nextSibling||ie(e.nextSibling)?null:e.nextSibling;if(e.firstChild&&ie(e.firstChild))throw Error("Found invalid end comment, as the first child of "+e);return e.firstChild},nextSibling:function(e){if(re(e)&&(e=ae(e)),e.nextSibling&&ie(e.nextSibling)){var t=e.nextSibling;if(ie(t)&&!S.a.g.get(t,Y))throw Error("Found end comment without a matching opening comment, as child of "+e);return null}return e.nextSibling},Bd:re,Ud:function(e){return(e=(z?e.text:e.nodeValue).match(U))?e[1]:null},Rc:function(e){if(J[S.a.P(e)]){var t=e.firstChild;if(t)do{if(1===t.nodeType){var n,r=null;if(n=t.firstChild)do{if(r)r.push(n);else if(re(n)){var i=ae(n,!0);i?n=i:r=[n]}else ie(n)&&(r=[n])}while(n=n.nextSibling);if(n=r)for(r=t.nextSibling,i=0;i<n.length;i++)r?e.insertBefore(n[i],r):e.appendChild(n[i])}}while(t=t.nextSibling)}}},S.b("virtualElements",S.h),S.b("virtualElements.allowedBindings",S.h.ea),S.b("virtualElements.emptyNode",S.h.Ea),S.b("virtualElements.insertAfter",S.h.Vb),S.b("virtualElements.prepend",S.h.Uc),S.b("virtualElements.setDomNodeChildren",S.h.ua),S.ga=function(){this.md={}},S.a.extend(S.ga.prototype,{nodeHasBindings:function(e){switch(e.nodeType){case 1:return null!=e.getAttribute("data-bind")||S.i.getComponentNameForNode(e);case 8:return S.h.Bd(e);default:return!1}},getBindings:function(e,t){var n=(n=this.getBindingsString(e,t))?this.parseBindingsString(n,t,e):null;return S.i.sc(n,e,t,!1)},getBindingAccessors:function(e,t){var n=(n=this.getBindingsString(e,t))?this.parseBindingsString(n,t,e,{valueAccessors:!0}):null;return S.i.sc(n,e,t,!0)},getBindingsString:function(e){switch(e.nodeType){case 1:return e.getAttribute("data-bind");case 8:return S.h.Ud(e);default:return null}},parseBindingsString:function(t,e,n,r){try{var i,o=this.md,a=t+(r&&r.valueAccessors||"");if(!(i=o[a])){var s,u="with($context){with($data||{}){return{"+S.m.ub(t,r)+"}}}";s=new Function("$context","$element",u),i=o[a]=s}return i(e,n)}catch(e){throw e.message="Unable to parse bindings.\nBindings value: "+t+"\nMessage: "+e.message,e}}}),S.ga.instance=new S.ga,S.b("bindingProvider",S.ga),function(){function r(e){var t=(e=S.a.g.get(e,m))&&e.M;t&&(e.M=null,t.Sc())}function i(e,t,n){this.node=e,this.xc=t,this.ib=[],this.T=!1,t.M||S.a.I.za(e,r),n&&n.M&&(n.M.ib.push(e),this.Kb=n)}function o(e){return function(){return e}}function d(e){return e()}function a(n){return S.a.Ha(S.v.K(n),function(e,t){return function(){return n()[t]}})}function p(e,t){return a(this.getBindings.bind(this,e,t))}function s(e,t){var n=S.h.firstChild(t);if(n){var r,i=S.ga.instance,o=i.preprocessNode;if(o){for(;r=n;)n=S.h.nextSibling(r),o.call(i,r);n=S.h.firstChild(t)}for(;r=n;)n=S.h.nextSibling(r),u(e,r)}S.j.Ga(t,S.j.T)}function u(e,t){var n=e,r=1===t.nodeType;r&&S.h.Rc(t),(r||S.ga.instance.nodeHasBindings(t))&&(n=l(t,null,e).bindingContextForDescendants),n&&!f[S.a.P(t)]&&s(n,t)}function l(i,e,t){var o,n=S.a.g.Tb(i,m,{}),r=n.gd;if(!e){if(r)throw Error("You cannot apply bindings multiple times to the same element.");n.gd=!0}if(r||(n.context=t),e&&"function"!=typeof e)o=e;else{var a=S.ga.instance,s=a.getBindingAccessors||p,u=S.$(function(){return(o=e?e(t,i):s.call(a,i,t))&&(t[v]&&t[v](),t[g]&&t[g]()),o},null,{l:i});o&&u.ja()||(u=null)}var l,c=t;if(o){function f(){return S.a.Ha(u?u():o,d)}var h=u?function(e){return function(){return d(u()[e])}}:function(e){return o[e]};f.get=function(e){return o[e]&&d(h(e))},f.has=function(e){return e in o},S.j.T in o&&S.j.subscribe(i,S.j.T,function(){var e=(0,o[S.j.T])();if(e){var t=S.h.childNodes(i);t.length&&e(t,S.Dc(t[0]))}}),S.j.oa in o&&(c=S.j.Bb(i,t),S.j.subscribe(i,S.j.oa,function(){var e=(0,o[S.j.oa])();e&&S.h.firstChild(i)&&e(i)})),n=function(r){var i=[],o={},a=[];return S.a.O(r,function t(e){if(!o[e]){var n=S.getBindingHandler(e);n&&(n.after&&(a.push(e),S.a.C(n.after,function(e){if(r[e]){if(-1!==S.a.A(a,e))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+a.join(", "));t(e)}}),a.length--),i.push({key:e,Lc:n})),o[e]=!0}}),i}(o),S.a.C(n,function(e){var t=e.Lc.init,n=e.Lc.update,r=e.key;if(8===i.nodeType&&!S.h.ea[r])throw Error("The binding '"+r+"' cannot be used with virtual elements");try{"function"==typeof t&&S.v.K(function(){var e=t(i,h(r),f,c.$data,c);if(e&&e.controlsDescendantBindings){if(l!==vha)throw Error("Multiple bindings ("+l+" and "+r+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");l=r}}),"function"==typeof n&&S.$(function(){n(i,h(r),f,c.$data,c)},null,{l:i})}catch(e){throw e.message='Unable to process binding "'+r+": "+o[r]+'"\nMessage: '+e.message,e}})}return{shouldBindDescendants:n=l===vha,bindingContextForDescendants:n&&c}}function c(e,t){return e&&e instanceof S.fa?e:new S.fa(e,vha,vha,t)}var v=S.a.Da("_subscribable"),h=S.a.Da("_ancestorBindingInfo"),g=S.a.Da("_dataDependency");S.f={};var f={script:!0,textarea:!0,template:!0};S.getBindingHandler=function(e){return S.f[e]};var b={};S.fa=function(e,n,r,i,t){function o(){var e=c?l():l,t=S.a.c(e);return n?(S.a.extend(s,n),h in n&&(s[h]=n[h])):(s.$parents=[],s.$root=t,s.ko=S),s[v]=a,u?t=s.$data:(s.$rawData=e,s.$data=t),r&&(s[r]=t),i&&i(s,n,t),n&&n[v]&&!S.U.o().Ub(n[v])&&n[v](),f&&(s[g]=f),s.$data}var a,s=this,u=e===b,l=u?vha:e,c="function"==typeof l&&!S.N(l),f=t&&t.dataDependency;t&&t.exportDependencies?o():((a=S.wb(o)).w(),a.ja()?a.equalityComparer=null:s[v]=vha)},S.fa.prototype.createChildContext=function(t,n,r,e){if(!e&&n&&"object"==typeof n&&(n=(e=n).as,r=e.extend),n&&e&&e.noChildContext){var i="function"==typeof t&&!S.N(t);return new S.fa(b,this,null,function(e){r&&r(e),e[n]=i?t():t},e)}return new S.fa(t,this,n,function(e,t){e.$parentContext=t,e.$parent=t.$data,e.$parents=(t.$parents||[]).slice(0),e.$parents.unshift(e.$parent),r&&r(e)},e)},S.fa.prototype.extend=function(t,e){return new S.fa(b,this,null,function(e){S.a.extend(e,"function"==typeof t?t(e):t)},e)};var m=S.a.g.Z();i.prototype.Sc=function(){this.Kb&&this.Kb.M&&this.Kb.M.rd(this.node)},i.prototype.rd=function(e){S.a.hb(this.ib,e),!this.ib.length&&this.T&&this.Bc()},i.prototype.Bc=function(){this.T=!0,this.xc.M&&!this.ib.length&&(this.xc.M=null,S.a.I.xb(this.node,r),S.j.Ga(this.node,S.j.oa),this.Sc())},S.j={T:"childrenComplete",oa:"descendantsComplete",subscribe:function(e,t,n,r){return(e=S.a.g.Tb(e,m,{})).Fa||(e.Fa=new S.R),e.Fa.subscribe(n,r,t)},Ga:function(e,t){var n=S.a.g.get(e,m);if(n&&(n.Fa&&n.Fa.notifySubscribers(e,t),t==S.j.T))if(n.M)n.M.Bc();else if(n.M===vha&&n.Fa&&n.Fa.Wa(S.j.oa))throw Error("descendantsComplete event not supported for bindings on this node")},Bb:function(e,t){var n=S.a.g.Tb(e,m,{});return n.M||(n.M=new i(e,n,t[h])),t[h]==n?t:t.extend(function(e){e[h]=n})}},S.Sd=function(e){return(e=S.a.g.get(e,m))&&e.context},S.eb=function(e,t,n){return 1===e.nodeType&&S.h.Rc(e),l(e,t,c(n))},S.kd=function(e,t,n){return n=c(n),S.eb(e,function(e,t,n){return"function"==typeof e?a(e.bind(null,t,n)):S.a.Ha(e,o)}(t,n,e),n)},S.Pa=function(e,t){1!==t.nodeType&&8!==t.nodeType||s(c(e),t)},S.uc=function(e,t,n){if(!zha&&wha.jQuery&&(zha=wha.jQuery),arguments.length<2){if(!(t=xha.body))throw Error("ko.applyBindings: could not find document.body; has the document been loaded?")}else if(!t||1!==t.nodeType&&8!==t.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");u(c(e,n),t)},S.Cc=function(e){return!e||1!==e.nodeType&&8!==e.nodeType?vha:S.Sd(e)},S.Dc=function(e){return(e=S.Cc(e))?e.$data:vha},S.b("bindingHandlers",S.f),S.b("bindingEvent",S.j),S.b("bindingEvent.subscribe",S.j.subscribe),S.b("bindingEvent.startPossiblyAsyncContentBinding",S.j.Bb),S.b("applyBindings",S.uc),S.b("applyBindingsToDescendants",S.Pa),S.b("applyBindingAccessorsToNode",S.eb),S.b("applyBindingsToNode",S.kd),S.b("contextFor",S.Cc),S.b("dataFor",S.Dc)}(),X={},G={},S.i={get:function(e,t){var n=Object.prototype.hasOwnProperty.call(G,e)?G[e]:K;n?n.Fd?S.v.K(function(){t(n.definition)}):S.ma.yb(function(){t(n.definition)}):se(e,t)},Ac:function(e){delete G[e]},nc:ue},S.i.loaders=[],S.b("components",S.i),S.b("components.get",S.i.get),S.b("components.clearCachedDefinition",S.i.Ac),function(){function i(e){switch(S.a.P(e)){case"script":return S.a.ta(e.text);case"textarea":return S.a.ta(e.value);case"template":if(o(e.content))return S.a.Ca(e.content.childNodes)}return S.a.Ca(e.childNodes)}function o(e){return wha.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function u(e,t,n){"string"==typeof t.require?r||wha.require?(r||wha.require)([t.require],n):e("Uses require, but no AMD loader is present"):n(t)}function a(t){return function(e){throw Error("Component '"+t+"': "+e)}}var n={};S.i.register=function(e,t){if(!t)throw Error("Invalid configuration for "+e);if(S.i.sb(e))throw Error("Component "+e+" is already registered");n[e]=t},S.i.sb=function(e){return Object.prototype.hasOwnProperty.call(n,e)},S.i.unregister=function(e){delete n[e],S.i.Ac(e)},S.i.Ec={getConfig:function(e,t){t(S.i.sb(e)?n[e]:null)},loadComponent:function(t,e,n){var r=a(t);u(r,e,function(e){!function(t,e,n,r){function i(){0==--a&&r(o)}var o={},a=2,s=n.template;n=n.viewModel,s?u(e,s,function(e){S.i.nc("loadTemplate",[t,e],function(e){o.template=e,i()})}):i(),n?u(e,n,function(e){S.i.nc("loadViewModel",[t,e],function(e){o[l]=e,i()})}):i()}(t,r,e,n)})},loadTemplate:function(e,t,n){if(e=a(e),"string"==typeof t)n(S.a.ta(t));else if(t instanceof Array)n(t);else if(o(t))n(S.a.la(t.childNodes));else if(t.element)if(t=t.element,wha.HTMLElement?t instanceof HTMLElement:t&&t.tagName&&1===t.nodeType)n(i(t));else if("string"==typeof t){var r=xha.getElementById(t);r?n(i(r)):e("Cannot find element with ID "+t)}else e("Unknown element type: "+t);else e("Unknown template value: "+t)},loadViewModel:function(e,t,n){!function e(t,n,r){if("function"==typeof n)r(function(e){return new n(e)});else if("function"==typeof n[l])r(n[l]);else if("instance"in n){var i=n.instance;r(function(){return i})}else"viewModel"in n?e(t,n.viewModel,r):t("Unknown viewModel value: "+n)}(a(e),t,n)}};var l="createViewModel";S.b("components.register",S.i.register),S.b("components.isRegistered",S.i.sb),S.b("components.unregister",S.i.unregister),S.b("components.defaultLoader",S.i.Ec),S.i.loaders.push(S.i.Ec),S.i.cd=n}(),function(){S.i.getComponentNameForNode=function(e){var t=S.a.P(e);if(S.i.sb(t)&&(-1!=t.indexOf("-")||"[object HTMLUnknownElement]"==""+e||S.a.W<=8&&e.tagName===t))return t},S.i.sc=function(e,t,n,r){if(1===t.nodeType){var i=S.i.getComponentNameForNode(t);if(i){if((e=e||{}).component)throw Error('Cannot use the "component" binding on a custom element matching a component');var o={name:i,params:function(n,e){if(t=n.getAttribute("params")){var t=a.parseBindingsString(t,e,n,{valueAccessors:!0,bindingParams:!0}),r=(t=S.a.Ha(t,function(e){return S.o(e,null,{l:n})}),S.a.Ha(t,function(t){var e=t.w();return t.ja()?S.o({read:function(){return S.a.c(t())},write:S.Ya(e)&&function(e){t()(e)},l:n}):e}));return Object.prototype.hasOwnProperty.call(r,"$raw")||(r.$raw=t),r}return{$raw:{}}}(t,n)};e.component=r?function(){return o}:o}}return e};var r,t,a=new S.ga;S.a.W<9&&(S.i.register=(t=S.i.register,function(e){return t.apply(this,arguments)}),xha.createDocumentFragment=(r=xha.createDocumentFragment,function(){var e,t=r(),n=S.i.cd;for(e in n);return t}))}(),Q=0,S.f.component={init:function(a,t,e,n,s){function u(){var e=l&&l.dispose;"function"==typeof e&&e.call(l),f&&f.s(),c=l=f=null}var l,c,f,h=S.a.la(S.h.childNodes(a));return S.h.Ea(a),S.a.I.za(a,u),S.o(function(){var n,r,e=S.a.c(t());if("string"==typeof e?n=e:(n=S.a.c(e.name),r=S.a.c(e.params)),!n)throw Error("No component name specified");var i=S.j.Bb(a,s),o=c=++Q;S.i.get(n,function(e){if(c===o){if(u(),!e)throw Error("Unknown component '"+n+"'");!function(e,t,n){if(!(t=t.template))throw Error("Component '"+e+"' has no template");e=S.a.Ca(t),S.h.ua(n,e)}(n,e,a);var t=function(e,t,n){var r=e.createViewModel;return r?r.call(e,t,n):t}(e,r,{element:a,templateNodes:h});e=i.createChildContext(t,{extend:function(e){e.$component=t,e.$componentTemplateNodes=h}}),t&&t.koDescendantsComplete&&(f=S.j.subscribe(a,S.j.oa,t.koDescendantsComplete,t)),l=t,S.Pa(e,a)}})},null,{l:a}),{controlsDescendantBindings:!0}}},S.h.ea.component=!0;var le={class:"className",for:"htmlFor"};function ce(e,d,p){S.f[e]={init:function(i,o,e,t,a){var s,u,l,c,f,h={};if(d){t=e.get("as");var n=e.get("noChildContext");h={as:t,noChildContext:n,exportDependencies:f=!(t&&n)}}return c=(l="render"==e.get("completeOn"))||e.has(S.j.oa),S.o(function(){var e,t=S.a.c(o()),n=!p!=!t,r=!u;!f&&n===s||(c&&(a=S.j.Bb(i,a)),n&&(d&&!f||(h.dataDependency=S.U.o()),e=d?a.createChildContext("function"==typeof t?t:o,h):S.U.pa()?a.extend(null,h):a),r&&S.U.pa()&&(u=S.a.Ca(S.h.childNodes(i),!0)),n?(r||S.h.ua(i,S.a.Ca(u)),S.Pa(e,i)):(S.h.Ea(i),l||S.j.Ga(i,S.j.T)),s=n)},null,{l:i}),{controlsDescendantBindings:!0}}},S.m.Ra[e]=!1,S.h.ea[e]=!0}S.f.attr={update:function(i,e){var t=S.a.c(e())||{};S.a.O(t,function(e,t){t=S.a.c(t);var n=e.indexOf(":"),r=(n="lookupNamespaceURI"in i&&0<n&&i.lookupNamespaceURI(e.substr(0,n)),!1===t||null===t||t===vha);r?n?i.removeAttributeNS(n,e):i.removeAttribute(e):t=t.toString(),S.a.W<=8&&e in le?(e=le[e],r?i.removeAttribute(e):i[e]=t):r||(n?i.setAttributeNS(n,e,t):i.setAttribute(e,t)),"name"===e&&S.a.Xc(i,r?"":t)})}},S.f.checked={after:["value","attr"],init:function(o,a,s){function e(){var e=o.checked,t=u();if(!S.U.rb()&&(e||!c&&!S.U.pa())){var n=S.v.K(a);if(f){var r=h?n.w():n,i=d;i!==(d=t)?e&&(S.a.Oa(r,t,!0),S.a.Oa(r,i,!1)):S.a.Oa(r,t,e),h&&S.Ya(n)&&n(r)}else l&&(t===vha?t=e:e||(t=vha)),S.m.$a(n,s,"checked",t,!0)}}var u=S.wb(function(){return s.has("checkedValue")?S.a.c(s.get("checkedValue")):n?s.has("value")?S.a.c(s.get("value")):o.value:void 0}),l="checkbox"==o.type,c="radio"==o.type;if(l||c){var t=a(),f=l&&S.a.c(t)instanceof Array,h=!(f&&t.push&&t.splice),n=c||f,d=f?u():vha;c&&!o.name&&S.f.uniqueName.init(o,function(){return!0}),S.o(e,null,{l:o}),S.a.H(o,"click",e),S.o(function(){var e=S.a.c(a()),t=u();f?(o.checked=0<=S.a.A(e,t),d=t):o.checked=l&&t===vha?!!e:u()===e},null,{l:o}),t=vha}}},S.m.va.checked=!0,S.f.checkedValue={update:function(e,t){e.value=S.a.c(t())}},S.f.class={update:function(e,t){var n=S.a.Cb(S.a.c(t()));S.a.Eb(e,e.__ko__cssValue,!1),e.__ko__cssValue=n,S.a.Eb(e,n,!0)}},S.f.css={update:function(n,e){var t=S.a.c(e());null!==t&&"object"==typeof t?S.a.O(t,function(e,t){t=S.a.c(t),S.a.Eb(n,e,t)}):S.f.class.update(n,e)}},S.f.enable={update:function(e,t){var n=S.a.c(t());n&&e.disabled?e.removeAttribute("disabled"):n||e.disabled||(e.disabled=!0)}},S.f.disable={update:function(e,t){S.f.enable.update(e,function(){return!S.a.c(t())})}},S.f.event={init:function(e,o,a,s,u){var t=o()||{};S.a.O(t,function(i){"string"==typeof i&&S.a.H(e,i,function(e){var t,n=o()[i];if(n){try{var r=S.a.la(arguments);s=u.$data,r.unshift(s),t=n.apply(s,r)}finally{!0!==t&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1===a.get(i+"Bubble")&&(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}})})}},S.f.foreach={Qc:function(n){return function(){var e=n(),t=S.a.$b(e);return t&&"number"!=typeof t.length?(S.a.c(e),{foreach:t.data,as:t.as,noChildContext:t.noChildContext,includeDestroyed:t.includeDestroyed,afterAdd:t.afterAdd,beforeRemove:t.beforeRemove,afterRender:t.afterRender,beforeMove:t.beforeMove,afterMove:t.afterMove,templateEngine:S.ba.Na}):{foreach:e,templateEngine:S.ba.Na}}},init:function(e,t){return S.f.template.init(e,S.f.foreach.Qc(t))},update:function(e,t,n,r,i){return S.f.template.update(e,S.f.foreach.Qc(t),n,r,i)}},S.m.Ra.foreach=!1,S.h.ea.foreach=!0,S.f.hasfocus={init:function(r,i,o){function e(e){r.__ko_hasfocusUpdating=!0;var t=r.ownerDocument;if("activeElement"in t){var n;try{n=t.activeElement}catch(e){n=t.body}e=n===r}t=i(),S.m.$a(t,o,"hasfocus",e,!0),r.__ko_hasfocusLastValue=e,r.__ko_hasfocusUpdating=!1}var t=e.bind(null,!0),n=e.bind(null,!1);S.a.H(r,"focus",t),S.a.H(r,"focusin",t),S.a.H(r,"blur",n),S.a.H(r,"focusout",n),r.__ko_hasfocusLastValue=!1},update:function(e,t){var n=!!S.a.c(t());e.__ko_hasfocusUpdating||e.__ko_hasfocusLastValue===n||(n?e.focus():e.blur(),!n&&e.__ko_hasfocusLastValue&&e.ownerDocument.body.focus(),S.v.K(S.a.Fb,null,[e,n?"focusin":"focusout"]))}},S.m.va.hasfocus=!0,S.f.hasFocus=S.f.hasfocus,S.m.va.hasFocus="hasfocus",S.f.html={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){S.a.dc(e,t())}},ce("if"),ce("ifnot",!1,!0),ce("with",!0),S.f.let={init:function(e,t,n,r,i){return t=i.extend(t),S.Pa(t,e),{controlsDescendantBindings:!0}}},S.h.ea.let=!0;var fe,he,de,pe,ve={};function ge(e,t,n,r){e=S.m.Zb(e);for(var i=S.m.Ra,o=0;o<e.length;o++){var a=e[o].key;if(Object.prototype.hasOwnProperty.call(i,a)){var s=i[a];if("function"==typeof s){if(a=s(e[o].value))throw Error(a)}else if(!s)throw Error("This template engine does not support the '"+a+"' binding within its templates")}}return n="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+S.m.ub(e,{valueAccessors:!0})+" } })()},'"+n.toLowerCase()+"')",r.createJavaScriptEvaluatorBlock(n)+t}function be(e,t,n,r,i){var o,a,s,u,l,c=Math.min,f=Math.max,h=[],d=e.length,p=t.length,v=p-d||1,g=d+p+1;for(o=0;o<=d;o++)for(u=s,h.push(s=[]),l=c(p,o+v),a=f(0,o-1);a<=l;a++)s[a]=a?o?e[o-1]===t[a-1]?u[a-1]:c(u[a]||g,s[a-1]||g)+1:a+1:o+1;for(c=[],f=[],v=[],o=d,a=p;o||a;)p=h[o][a]-1,a&&p===h[o][a-1]?f.push(c[c.length]={status:n,value:t[--a],index:a}):o&&p===h[o-1][a]?v.push(c[c.length]={status:r,value:e[--o],index:o}):(--a,--o,i.sparse||c.push({status:"retained",value:t[a]}));return S.a.Jc(v,f,!i.dontLimitMoves&&10*d),c.reverse()}function me(t,n,r,i,o){var a=[],e=S.$(function(){var e=n(r,o,S.a.Ua(a,t))||[];0<a.length&&(S.a.Wc(a,e),i&&S.v.K(i,null,[r,e,o])),a.length=0,S.a.gb(a,e)},null,{l:t,Sa:function(){return!S.a.jd(a)}});return{Y:a,$:e.ja()?e:vha}}S.f.options={init:function(e){if("select"!==S.a.P(e))throw Error("options binding applies only to SELECT elements");for(;0<e.length;)e.remove(0);return{controlsDescendantBindings:!0}},update:function(r,e,i){function t(){return S.a.fb(r.options,function(e){return e.selected})}function o(e,t,n){var r=typeof t;return"function"==r?t(e):"string"==r?e[t]:n}function n(e,t){if(d&&l)S.u.ya(r,S.a.c(i.get("value")),!0);else if(h.length){var n=0<=S.a.A(h,S.u.L(t[0]));S.a.Yc(t[0],n),d&&!n&&S.v.K(S.a.Fb,null,[r,"change"])}}var a=r.multiple,s=0!=r.length&&a?r.scrollTop:null,u=S.a.c(e()),l=i.get("valueAllowUnset")&&i.has("value"),c=i.get("optionsIncludeDestroyed");e={};var f,h=[];l||(a?h=S.a.Mb(t(),S.u.L):0<=r.selectedIndex&&h.push(S.u.L(r.options[r.selectedIndex]))),u&&(void 0===u.length&&(u=[u]),f=S.a.fb(u,function(e){return c||e===vha||null===e||!S.a.c(e._destroy)}),!i.has("optionsCaption")||null!==(u=S.a.c(i.get("optionsCaption")))&&u!==vha&&f.unshift(ve));var d=!1;e.beforeRemove=function(e){r.removeChild(e)},u=n,i.has("optionsAfterRender")&&"function"==typeof i.get("optionsAfterRender")&&(u=function(e,t){n(0,t),S.v.K(i.get("optionsAfterRender"),null,[t[0],e!==ve?e:vha])}),S.a.cc(r,f,function(e,t,n){return n.length&&(h=!l&&n[0].selected?[S.u.L(n[0])]:[],d=!0),t=r.ownerDocument.createElement("option"),e===ve?(S.a.Ab(t,i.get("optionsCaption")),S.u.ya(t,vha)):(n=o(e,i.get("optionsValue"),e),S.u.ya(t,S.a.c(n)),e=o(e,i.get("optionsText"),n),S.a.Ab(t,e)),[t]},e,u),S.v.K(function(){l?S.u.ya(r,S.a.c(i.get("value")),!0):(a?h.length&&t().length<h.length:h.length&&0<=r.selectedIndex?S.u.L(r.options[r.selectedIndex])!==h[0]:h.length||0<=r.selectedIndex)&&S.a.Fb(r,"change")}),S.a.vd(r),s&&20<Math.abs(s-r.scrollTop)&&(r.scrollTop=s)}},S.f.options.Yb=S.a.g.Z(),S.f.selectedOptions={after:["options","foreach"],init:function(n,r,i){S.a.H(n,"change",function(){var e=r(),t=[];S.a.C(n.getElementsByTagName("option"),function(e){e.selected&&t.push(S.u.L(e))}),S.m.$a(e,i,"selectedOptions",t)})},update:function(e,t){if("select"!=S.a.P(e))throw Error("values binding applies only to SELECT elements");var n=S.a.c(t()),r=e.scrollTop;n&&"number"==typeof n.length&&S.a.C(e.getElementsByTagName("option"),function(e){var t=0<=S.a.A(n,S.u.L(e));e.selected!=t&&S.a.Yc(e,t)}),e.scrollTop=r}},S.m.va.selectedOptions=!0,S.f.style={update:function(r,e){var t=S.a.c(e()||{});S.a.O(t,function(e,t){if(null!==(t=S.a.c(t))&&t!==vha&&!1!==t||(t=""),zha)zha(r).css(e,t);else if(/^--/.test(e))r.style.setProperty(e,t);else{e=e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()});var n=r.style[e];(r.style[e]=t)===n||r.style[e]!=n||isNaN(t)||(r.style[e]=t+"px")}})}},S.f.submit={init:function(r,i,e,t,o){if("function"!=typeof i())throw Error("The value for a submit binding must be a function");S.a.H(r,"submit",function(e){var t,n=i();try{t=n.call(o.$data,r)}finally{!0!==t&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}})}},S.f.text={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){S.a.Ab(e,t())}},S.h.ea.text=!0,function(){if(wha&&wha.navigator){function e(e){if(e)return parseFloat(e[1])}var f,h,d,p,v,t=wha.navigator.userAgent;(f=wha.opera&&wha.opera.version&&parseInt(wha.opera.version()))||(v=e(t.match(/Edge\/([^ ]+)$/)))||e(t.match(/Chrome\/([^ ]+)/))||(h=e(t.match(/Version\/([^ ]+) Safari/)))||(d=e(t.match(/Firefox\/([^ ]+)/)))||(p=S.a.W||e(t.match(/MSIE ([^ ]+)/)))||(p=e(t.match(/rv:([^ )]+)/)))}if(8<=p&&p<10){function r(e){var t=this.activeElement;(t=t&&S.a.g.get(t,o))&&t(e)}var i=S.a.g.Z(),o=S.a.g.Z(),g=function(e,t){var n=e.ownerDocument;S.a.g.get(n,i)||(S.a.g.set(n,i,!0),S.a.H(n,"selectionchange",r)),S.a.g.set(e,o,t)}}S.f.textInput={init:function(n,r,t){function e(e,t){S.a.H(n,e,t)}function i(){a||(s=n.value,a=S.a.setTimeout(o,4))}function o(){clearTimeout(a),s=a=vha;var e=n.value;u!==e&&(u=e,S.m.$a(r(),t,"textInput",e))}var a,s,u=n.value,l=9==S.a.W?i:o,c=!1;p&&e("keypress",o),p<11&&e("propertychange",function(e){c||"value"!==e.propertyName||l(e)}),8==p&&(e("keyup",o),e("keydown",o)),g&&(g(n,l),e("dragend",i)),(!p||9<=p)&&e("input",l),h<5&&"textarea"===S.a.P(n)?(e("keydown",i),e("paste",i),e("cut",i)):f<11?e("keydown",i):d<4?(e("DOMAutoComplete",o),e("dragdrop",o),e("drop",o)):v&&"number"===n.type&&e("keydown",i),e("change",o),e("blur",o),S.o(function e(){var t=S.a.c(r());null!==t&&t!==vha||(t=""),s!==vha&&t===s?S.a.setTimeout(e,4):n.value!==t&&(c=!0,n.value=t,c=!1,u=n.value)},null,{l:n})}},S.m.va.textInput=!0,S.f.textinput={preprocess:function(e,t,n){n("textInput",e)}}}(),S.f.uniqueName={init:function(e,t){if(t()){var n="ko_unique_"+ ++S.f.uniqueName.qd;S.a.Xc(e,n)}}},S.f.uniqueName.qd=0,S.f.using={init:function(e,t,n,r,i){var o;return n.has("as")&&(o={as:n.get("as"),noChildContext:n.get("noChildContext")}),t=i.createChildContext(t,o),S.Pa(t,e),{controlsDescendantBindings:!0}}},S.h.ea.using=!0,S.f.value={after:["options","foreach"],init:function(n,r,i){var o=S.a.P(n),e="input"==o;if(!e||"checkbox"!=n.type&&"radio"!=n.type){var a,t=["change"],s=i.get("valueUpdate"),u=!1,l=null;function c(){l=null,u=!1;var e=r(),t=S.u.L(n);S.m.$a(e,i,"value",t)}s&&("string"==typeof s&&(s=[s]),S.a.gb(t,s),t=S.a.vc(t)),!S.a.W||!e||"text"!=n.type||"off"==n.autocomplete||n.form&&"off"==n.form.autocomplete||-1!=S.a.A(t,"propertychange")||(S.a.H(n,"propertychange",function(){u=!0}),S.a.H(n,"focus",function(){u=!1}),S.a.H(n,"blur",function(){u&&c()})),S.a.C(t,function(e){var t=c;S.a.Td(e,"after")&&(t=function(){l=S.u.L(n),S.a.setTimeout(c,0)},e=e.substring(5)),S.a.H(n,e,t)}),a=e&&"file"==n.type?function(){var e=S.a.c(r());null===e||e===vha||""===e?n.value="":S.v.K(c)}:function(){var e=S.a.c(r()),t=S.u.L(n);null!==l&&e===l?S.a.setTimeout(a,0):e===t&&t!==vha||("select"===o?(t=i.get("valueAllowUnset"),S.u.ya(n,e,t),t||e===S.u.L(n)||S.v.K(c)):S.u.ya(n,e))},S.o(a,null,{l:n})}else S.eb(n,{checkedValue:r})},update:function(){}},S.m.va.value=!0,S.f.visible={update:function(e,t){var n=S.a.c(t()),r="none"!=e.style.display;n&&!r?e.style.display="":!n&&r&&(e.style.display="none")}},S.f.hidden={update:function(e,t){S.f.visible.update(e,function(){return!S.a.c(t())})}},S.f.click={init:function(e,t,n,r,i){return S.f.event.init.call(this,e,function(){var e={};return e.click=t(),e},n,r,i)}},S.ca=function(){},S.ca.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},S.ca.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},S.ca.prototype.makeTemplateSource=function(e,t){if("string"==typeof e){var n=(t=t||xha).getElementById(e);if(!n)throw Error("Cannot find template with ID "+e);return new S.B.D(n)}if(1==e.nodeType||8==e.nodeType)return new S.B.ia(e);throw Error("Unknown template type: "+e)},S.ca.prototype.renderTemplate=function(e,t,n,r){return e=this.makeTemplateSource(e,r),this.renderTemplateSource(e,t,n,r)},S.ca.prototype.isTemplateRewritten=function(e,t){return!1===this.allowTemplateRewriting||this.makeTemplateSource(e,t).data("isRewritten")},S.ca.prototype.rewriteTemplate=function(e,t,n){t=t((e=this.makeTemplateSource(e,n)).text()),e.text(t),e.data("isRewritten",!0)},S.b("templateEngine",S.ca),S.ic=(fe=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,he=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g,{wd:function(e,t,n){t.isTemplateRewritten(e,n)||t.rewriteTemplate(e,function(e){return S.ic.Kd(e,t)},n)},Kd:function(e,o){return e.replace(fe,function(e,t,n,r,i){return ge(i,t,n,o)}).replace(he,function(e,t){return ge(t,"\x3c!-- ko --\x3e","#comment",o)})},ld:function(r,i){return S.aa.Wb(function(e,t){var n=e.nextSibling;n&&n.nodeName.toLowerCase()===i&&S.eb(n,r,t)})}}),S.b("__tr_ambtns",S.ic.ld),function(){S.B={},S.B.D=function(e){if(this.D=e){var t=S.a.P(e);this.Db="script"===t?1:"textarea"===t?2:"template"==t&&e.content&&11===e.content.nodeType?3:4}},S.B.D.prototype.text=function(){var e=1===this.Db?"text":2===this.Db?"value":"innerHTML";if(0==arguments.length)return this.D[e];var t=arguments[0];"innerHTML"==e?S.a.dc(this.D,t):this.D[e]=t};var t=S.a.g.Z()+"_";S.B.D.prototype.data=function(e){if(1===arguments.length)return S.a.g.get(this.D,t+e);S.a.g.set(this.D,t+e,arguments[1])};var r=S.a.g.Z();S.B.D.prototype.nodes=function(){var e=this.D;if(0==arguments.length){var t=S.a.g.get(e,r)||{},n=t.jb||(3===this.Db?e.content:4===this.Db?e:vha);return n&&!t.hd||(t=this.text())&&(n=S.a.Ld(t,e.ownerDocument),this.text(""),S.a.g.set(e,r,{jb:n,hd:!0})),n}S.a.g.set(e,r,{jb:arguments[0]})},S.B.ia=function(e){this.D=e},S.B.ia.prototype=new S.B.D,S.B.ia.prototype.constructor=S.B.ia,S.B.ia.prototype.text=function(){if(0==arguments.length){var e=S.a.g.get(this.D,r)||{};return e.jc===vha&&e.jb&&(e.jc=e.jb.innerHTML),e.jc}S.a.g.set(this.D,r,{jc:arguments[0]})},S.b("templateSources",S.B),S.b("templateSources.domElement",S.B.D),S.b("templateSources.anonymousTemplate",S.B.ia)}(),function(){function r(e,t,n){var r;for(t=S.h.nextSibling(t);e&&(r=e)!==t;)n(r,e=S.h.nextSibling(r))}function h(e,t){if(e.length){var i=e[0],o=e[e.length-1],n=i.parentNode,a=S.ga.instance,s=a.preprocessNode;if(s){if(r(i,o,function(e,t){var n=e.previousSibling,r=s.call(a,e);r&&(e===i&&(i=r[0]||t),e===o&&(o=r[r.length-1]||n))}),e.length=0,!i)return;i===o?e.push(i):(e.push(i,o),S.a.Ua(e,n))}r(i,o,function(e){1!==e.nodeType&&8!==e.nodeType||S.uc(t,e)}),r(i,o,function(e){1!==e.nodeType&&8!==e.nodeType||S.aa.bd(e,[t])}),S.a.Ua(e,n)}}function u(e){return e.nodeType?e:0<e.length?e[0]:null}function d(e,t,n,r,i){i=i||{};var o=(e&&u(e)||n||{}).ownerDocument,a=i.templateEngine||l;if(S.ic.wd(n,a,o),"number"!=typeof(n=a.renderTemplate(n,r,i,o)).length||0<n.length&&"number"!=typeof n[0].nodeType)throw Error("Template engine must return an array of DOM nodes");switch(o=!1,t){case"replaceChildren":S.h.ua(e,n),o=!0;break;case"replaceNode":S.a.Wc(e,n),o=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+t)}return o&&(h(n,r),i.afterRender&&S.v.K(i.afterRender,null,[n,r[i.as||"$data"]]),"replaceChildren"==t&&S.j.Ga(e,S.j.T)),n}function p(e,t,n){return S.N(e)?e():"function"==typeof e?e(t,n):e}var l;S.ec=function(e){if(e!=vha&&!(e instanceof S.ca))throw Error("templateEngine must inherit from ko.templateEngine");l=e},S.bc=function(n,r,i,o,a){if(((i=i||{}).templateEngine||l)==vha)throw Error("Set a template engine before calling renderTemplate");if(a=a||"replaceChildren",o){var s=u(o);return S.$(function(){var e=r&&r instanceof S.fa?r:new S.fa(r,null,null,null,{exportDependencies:!0}),t=p(n,e.$data,e);e=d(o,a,t,e,i),"replaceNode"==a&&(s=u(o=e))},null,{Sa:function(){return!s||!S.a.Rb(s)},l:s&&"replaceNode"==a?s.parentNode:s})}return S.aa.Wb(function(e){S.bc(n,r,i,e,"replaceNode")})},S.Pd=function(r,t,i,o,a){function n(e,t){S.v.K(S.a.cc,null,[o,e,u,i,s,t]),S.j.Ga(o,S.j.T)}function s(e,t){h(t,l),i.afterRender&&i.afterRender(t,e),l=null}function u(e,t){l=a.createChildContext(e,{as:c,noChildContext:i.noChildContext,extend:function(e){e.$index=t,c&&(e[c+"Index"]=t)}});var n=p(r,e,l);return d(o,"ignoreTargetNode",n,l,i)}var l,c=i.as,f=!1===i.includeDestroyed||S.options.foreachHidesDestroyed&&!i.includeDestroyed;if(f||i.beforeRemove||!S.Oc(t))return S.$(function(){var e=S.a.c(t)||[];void 0===e.length&&(e=[e]),f&&(e=S.a.fb(e,function(e){return e===vha||null===e||!S.a.c(e._destroy)})),n(e)},null,{l:o});n(t.w());var e=t.subscribe(function(e){n(t(),e)},null,"arrayChange");return e.l(o),e};var a=S.a.g.Z(),i=S.a.g.Z();S.f.template={init:function(e,t){var n=S.a.c(t());if("string"==typeof n||n.name)S.h.Ea(e);else if("nodes"in n){if(n=n.nodes||[],S.N(n))throw Error('The "nodes" option must be a plain, non-observable array.');var r=n[0]&&n[0].parentNode;r&&S.a.g.get(r,i)||(r=S.a.Xb(n),S.a.g.set(r,i,!0)),new S.B.ia(e).nodes(r)}else{if(!(0<(n=S.h.childNodes(e)).length))throw Error("Anonymous template defined, but no template content was provided");r=S.a.Xb(n),new S.B.ia(e).nodes(r)}return{controlsDescendantBindings:!0}},update:function(e,t,n,r,i){var o=t();n=!0,r=null,"string"==typeof(t=S.a.c(o))?t={}:(o=t.name,"if"in t&&(n=S.a.c(t.if)),n&&"ifnot"in t&&(n=!S.a.c(t.ifnot))),"foreach"in t?r=S.Pd(o||e,n&&t.foreach||[],t,e,i):n?(n=i,"data"in t&&(n=i.createChildContext(t.data,{as:t.as,noChildContext:t.noChildContext,exportDependencies:!0})),r=S.bc(o||e,n,t,e)):S.h.Ea(e),i=r,(t=S.a.g.get(e,a))&&"function"==typeof t.s&&t.s(),S.a.g.set(e,a,!i||i.ja&&!i.ja()?vha:i)}},S.m.Ra.template=function(e){return 1==(e=S.m.Zb(e)).length&&e[0].unknown||S.m.Hd(e,"name")?null:"This template engine does not support anonymous templates nested within its templates"},S.h.ea.template=!0}(),S.b("setTemplateEngine",S.ec),S.b("renderTemplate",S.bc),S.a.Jc=function(e,t,n){var r,i,o,a,s;if(e.length&&t.length)for(r=i=0;(!n||r<n)&&(a=e[i]);++i){for(o=0;s=t[o];++o)if(a.value===s.value){a.moved=s.index,s.moved=a.index,t.splice(o,1),r=o=0;break}r+=o}},S.a.Ob=function(e,t,n){return n="boolean"==typeof n?{dontLimitMoves:n}:n||{},t=t||[],(e=e||[]).length<t.length?be(e,t,"added","deleted",n):be(t,e,"deleted","added",n)},S.b("utils.compareArrays",S.a.Ob),de=S.a.g.Z(),pe=S.a.g.Z(),S.a.cc=function(t,e,n,r,i,o){function a(e){l={Aa:e,nb:S.sa(b++)},v.push(l),p||x.push(l)}function s(e){l=d[e],b!==l.nb.w()&&w.push(l),l.nb(b++),S.a.Ua(l.Y,t),v.push(l)}function u(t,n){if(t)for(var r=0,e=n.length;r<e;r++)S.a.C(n[r].Y,function(e){t(e,r,n[r].Aa)})}void 0===(e=e||[]).length&&(e=[e]),r=r||{};var l,c,f,h,d=S.a.g.get(t,de),p=!d,v=[],g=0,b=0,m=[],y=[],_=[],w=[],x=[],k=0;if(p)S.a.C(e,a);else{if(!o||d&&d._countWaitingForRemove){var C=S.a.Mb(d,function(e){return e.Aa});o=S.a.Ob(C,e,{dontLimitMoves:r.dontLimitMoves,sparse:!0})}var T,E,O;for(C=0;T=o[C];C++)switch(E=T.moved,O=T.index,T.status){case"deleted":for(;g<O;)s(g++);E===vha&&((l=d[g]).$&&(l.$.s(),l.$=vha),S.a.Ua(l.Y,t).length&&(r.beforeRemove&&(v.push(l),k++,l.Aa===pe?l=null:_.push(l)),l&&m.push.apply(m,l.Y))),g++;break;case"added":for(;b<O;)s(g++);E!==vha?(y.push(v.length),s(E)):a(T.value)}for(;b<e.length;)s(g++);v._countWaitingForRemove=k}S.a.g.set(t,de,v),u(r.beforeMove,w),S.a.C(m,r.beforeRemove?S.na:S.removeNode);try{h=t.ownerDocument.activeElement}catch(e){}if(y.length)for(;(C=y.shift())!=vha;){for(l=v[C],c=vha;C;)if((f=v[--C].Y)&&f.length){c=f[f.length-1];break}for(e=0;g=l.Y[e];c=g,e++)S.h.Vb(t,g,c)}for(C=0,y=S.h.firstChild(t);l=v[C];C++){for(l.Y||S.a.extend(l,me(t,n,l.Aa,i,l.nb)),e=0;g=l.Y[e];y=g.nextSibling,c=g,e++)g!==y&&S.h.Vb(t,g,c);!l.Dd&&i&&(i(l.Aa,l.Y,l.nb),l.Dd=!0,c=l.Y[l.Y.length-1])}for(h&&t.ownerDocument.activeElement!=h&&h.focus(),u(r.beforeRemove,_),C=0;C<_.length;++C)_[C].Aa=pe;u(r.afterMove,w),u(r.afterAdd,x)},S.b("utils.setDomNodeChildrenFromArrayMapping",S.a.cc),S.ba=function(){this.allowTemplateRewriting=!1},S.ba.prototype=new S.ca,S.ba.prototype.constructor=S.ba,S.ba.prototype.renderTemplateSource=function(e,t,n,r){return(t=S.a.W<9||!e.nodes?null:e.nodes())?S.a.la(t.cloneNode(!0).childNodes):(e=e.text(),S.a.ta(e,r))},S.ba.Na=new S.ba,S.ec(S.ba.Na),S.b("nativeTemplateEngine",S.ba),function(){S.Za=function(){var o=this.Gd=function(){if(!zha||!zha.tmpl)return 0;try{if(0<=zha.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(e){}return 1}();this.renderTemplateSource=function(e,t,n,r){if(r=r||xha,n=n||{},o<2)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var i=e.data("precompiled");return i||(i=e.text()||"",i=zha.template(null,"{{ko_with $item.koBindingContext}}"+i+"{{/ko_with}}"),e.data("precompiled",i)),e=[t.$data],t=zha.extend({koBindingContext:t},n.templateOptions),(t=zha.tmpl(i,e,t)).appendTo(r.createElement("div")),zha.fragments={},t},this.createJavaScriptEvaluatorBlock=function(e){return"{{ko_code ((function() { return "+e+" })()) }}"},this.addTemplate=function(e,t){xha.write("<script type='text/html' id='"+e+"'>"+t+"<\/script>")},0<o&&(zha.tmpl.tag.ko_code={open:"__.push($1 || '');"},zha.tmpl.tag.ko_with={open:"with($1) {",close:"} "})},S.Za.prototype=new S.ca,S.Za.prototype.constructor=S.Za;var e=new S.Za;0<e.Gd&&S.ec(e),S.b("jqueryTmplTemplateEngine",S.Za)}()})?sha.apply(qha,tha):sha)||(pha.exports=uha)}()},function(e,t,n){n(5),n(2),n(6),n(7),n(9),n(0),n(10),n(11),n(12),n(13),n(3),n(14),n(15),n(16),n(17),n(18),n(19),n(20),e.exports=n(8)}],f.c=e,f.i=function(e){return e},f.d=function(e,t,n){f.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},f.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(t,"a",t),t},f.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},f.p="",f(f.s=33);function f(t){if(e[t])return e[t].exports;var n=e[t]={i:t,l:!1,exports:{}};return d[t].call(n.exports,n,n.exports,f),n.l=!0,n.exports}var d,e});