text: !function(){!function(e){var n=this||(0,eval)("this"),t=n.document,a=n.navigator,r=n.jQuery,i=n.JSON;!function(e){"function"==typeof define&&define.amd?define(["exports","require"],e):e("object"==typeof exports&&"object"==typeof module?module.exports||exports:n.ko={})}(function(o,u){function c(e,n){return null===e||typeof e in v?e===n:!1}function s(n,t){var a;return function(){a||(a=b.a.setTimeout(function(){a=e,n()},t))}}function f(e,n){var t;return function(){clearTimeout(t),t=b.a.setTimeout(e,n)}}function l(e,n){n&&n!==g?"beforeChange"===n?this.Ob(e):this.Ja(e,n):this.Pb(e)}function d(e,n){null!==n&&n.k&&n.k()}function p(e,n){var t=this.Mc,a=t[k];a.T||(this.ob&&this.Oa[n]?(t.Sb(n,e,this.Oa[n]),this.Oa[n]=null,--this.ob):a.s[n]||t.Sb(n,e,a.t?{$:e}:t.yc(e)),e.Ha&&e.Hc())}function h(e,n,t,a){b.d[e]={init:function(e,r,i,o,u){var c,s;return b.m(function(){var i=r(),o=b.a.c(i),o=!t!=!o,f=!s;(f||n||o!==c)&&(f&&b.xa.Ca()&&(s=b.a.wa(b.f.childNodes(e),!0)),o?(f||b.f.fa(e,b.a.wa(s)),b.hb(a?a(u,i):u,e)):b.f.za(e),c=o)},null,{i:e}),{controlsDescendantBindings:!0}}},b.h.va[e]=!1,b.f.aa[e]=!0}var b="undefined"!=typeof o?o:{};b.b=function(e,n){for(var t=e.split("."),a=b,r=0;r<t.length-1;r++)a=a[t[r]];a[t[t.length-1]]=n},b.H=function(e,n,t){e[n]=t},b.version="3.4.2",b.b("version",b.version),b.options={deferUpdates:!1,useOnlyNativeEvents:!1},b.a=function(){function o(e,n){for(var t in e)e.hasOwnProperty(t)&&n(t,e[t])}function u(e,n){if(n)for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function c(e,n){return e.__proto__=n,e}function s(e,n,t,a){var r=e[n].match(g)||[];b.a.r(t.match(g),function(e){b.a.ra(r,e,a)}),e[n]=r.join(" ")}var f={__proto__:[]}instanceof Array,l="function"==typeof Symbol,d={},p={};d[a&&/Firefox\/2/i.test(a.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],d.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" "),o(d,function(e,n){if(n.length)for(var t=0,a=n.length;a>t;t++)p[n[t]]=e});var h={propertychange:!0},v=t&&function(){for(var n=3,a=t.createElement("div"),r=a.getElementsByTagName("i");a.innerHTML="<!--[if gt IE "+ ++n+"]><i></i><![endif]-->",r[0];);return n>4?n:e}(),g=/\S+/g;return{gc:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],r:function(e,n){for(var t=0,a=e.length;a>t;t++)n(e[t],t)},o:function(e,n){if("function"==typeof Array.prototype.indexOf)return Array.prototype.indexOf.call(e,n);for(var t=0,a=e.length;a>t;t++)if(e[t]===n)return t;return-1},Vb:function(e,n,t){for(var a=0,r=e.length;r>a;a++)if(n.call(t,e[a],a))return e[a];return null},Na:function(e,n){var t=b.a.o(e,n);t>0?e.splice(t,1):0===t&&e.shift()},Wb:function(e){e=e||[];for(var n=[],t=0,a=e.length;a>t;t++)0>b.a.o(n,e[t])&&n.push(e[t]);return n},ib:function(e,n){e=e||[];for(var t=[],a=0,r=e.length;r>a;a++)t.push(n(e[a],a));return t},Ma:function(e,n){e=e||[];for(var t=[],a=0,r=e.length;r>a;a++)n(e[a],a)&&t.push(e[a]);return t},ta:function(e,n){if(n instanceof Array)e.push.apply(e,n);else for(var t=0,a=n.length;a>t;t++)e.push(n[t]);return e},ra:function(e,n,t){var a=b.a.o(b.a.Bb(e),n);0>a?t&&e.push(n):t||e.splice(a,1)},la:f,extend:u,$a:c,ab:f?c:u,D:o,Ea:function(e,n){if(!e)return e;var t,a={};for(t in e)e.hasOwnProperty(t)&&(a[t]=n(e[t],t,e));return a},rb:function(e){for(;e.firstChild;)b.removeNode(e.firstChild)},nc:function(e){e=b.a.W(e);for(var n=(e[0]&&e[0].ownerDocument||t).createElement("div"),a=0,r=e.length;r>a;a++)n.appendChild(b.ba(e[a]));return n},wa:function(e,n){for(var t=0,a=e.length,r=[];a>t;t++){var i=e[t].cloneNode(!0);r.push(n?b.ba(i):i)}return r},fa:function(e,n){if(b.a.rb(e),n)for(var t=0,a=n.length;a>t;t++)e.appendChild(n[t])},uc:function(e,n){var t=e.nodeType?[e]:e;if(0<t.length){for(var a=t[0],r=a.parentNode,i=0,o=n.length;o>i;i++)r.insertBefore(n[i],a);for(i=0,o=t.length;o>i;i++)b.removeNode(t[i])}},Ba:function(e,n){if(e.length){for(n=8===n.nodeType&&n.parentNode||n;e.length&&e[0].parentNode!==n;)e.splice(0,1);for(;1<e.length&&e[e.length-1].parentNode!==n;)e.length--;if(1<e.length){var t=e[0],a=e[e.length-1];for(e.length=0;t!==a;)e.push(t),t=t.nextSibling;e.push(a)}}return e},wc:function(e,n){7>v?e.setAttribute("selected",n):e.selected=n},cb:function(n){return null===n||n===e?"":n.trim?n.trim():n.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},sd:function(e,n){return e=e||"",n.length>e.length?!1:e.substring(0,n.length)===n},Rc:function(e,n){if(e===n)return!0;if(11===e.nodeType)return!1;if(n.contains)return n.contains(3===e.nodeType?e.parentNode:e);if(n.compareDocumentPosition)return 16==(16&n.compareDocumentPosition(e));for(;e&&e!=n;)e=e.parentNode;return!!e},qb:function(e){return b.a.Rc(e,e.ownerDocument.documentElement)},Tb:function(e){return!!b.a.Vb(e,b.a.qb)},A:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},Zb:function(e){return b.onError?function(){try{return e.apply(this,arguments)}catch(n){throw b.onError&&b.onError(n),n}}:e},setTimeout:function(e,n){return setTimeout(b.a.Zb(e),n)},dc:function(e){setTimeout(function(){throw b.onError&&b.onError(e),e},0)},q:function(e,n,t){var a=b.a.Zb(t);if(t=v&&h[n],b.options.useOnlyNativeEvents||t||!r)if(t||"function"!=typeof e.addEventListener){if("undefined"==typeof e.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var i=function(n){a.call(e,n)},o="on"+n;e.attachEvent(o,i),b.a.G.qa(e,function(){e.detachEvent(o,i)})}else e.addEventListener(n,a,!1);else r(e).bind(n,a)},Fa:function(e,a){if(!e||!e.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var i;if("input"===b.a.A(e)&&e.type&&"click"==a.toLowerCase()?(i=e.type,i="checkbox"==i||"radio"==i):i=!1,b.options.useOnlyNativeEvents||!r||i)if("function"==typeof t.createEvent){if("function"!=typeof e.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");i=t.createEvent(p[a]||"HTMLEvents"),i.initEvent(a,!0,!0,n,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(i)}else if(i&&e.click)e.click();else{if("undefined"==typeof e.fireEvent)throw Error("Browser doesn't support triggering events");e.fireEvent("on"+a)}else r(e).trigger(a)},c:function(e){return b.I(e)?e():e},Bb:function(e){return b.I(e)?e.p():e},fb:function(e,n,t){var a;n&&("object"==typeof e.classList?(a=e.classList[t?"add":"remove"],b.a.r(n.match(g),function(n){a.call(e.classList,n)})):"string"==typeof e.className.baseVal?s(e.className,"baseVal",n,t):s(e,"className",n,t))},bb:function(n,t){var a=b.a.c(t);(null===a||a===e)&&(a="");var r=b.f.firstChild(n);!r||3!=r.nodeType||b.f.nextSibling(r)?b.f.fa(n,[n.ownerDocument.createTextNode(a)]):r.data=a,b.a.Wc(n)},vc:function(e,n){if(e.name=n,7>=v)try{e.mergeAttributes(t.createElement("<input name='"+e.name+"'/>"),!1)}catch(a){}},Wc:function(e){v>=9&&(e=1==e.nodeType?e:e.parentNode,e.style&&(e.style.zoom=e.style.zoom))},Sc:function(e){if(v){var n=e.style.width;e.style.width=0,e.style.width=n}},nd:function(e,n){e=b.a.c(e),n=b.a.c(n);for(var t=[],a=e;n>=a;a++)t.push(a);return t},W:function(e){for(var n=[],t=0,a=e.length;a>t;t++)n.push(e[t]);return n},bc:function(e){return l?Symbol(e):e},xd:6===v,yd:7===v,C:v,ic:function(e,n){for(var t=b.a.W(e.getElementsByTagName("input")).concat(b.a.W(e.getElementsByTagName("textarea"))),a="string"==typeof n?function(e){return e.name===n}:function(e){return n.test(e.name)},r=[],i=t.length-1;i>=0;i--)a(t[i])&&r.push(t[i]);return r},kd:function(e){return"string"==typeof e&&(e=b.a.cb(e))?i&&i.parse?i.parse(e):new Function("return "+e)():null},Gb:function(e,n,t){if(!i||!i.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 i.stringify(b.a.c(e),n,t)},ld:function(e,n,a){a=a||{};var r=a.params||{},i=a.includeFields||this.gc,u=e;if("object"==typeof e&&"form"===b.a.A(e))for(var u=e.action,c=i.length-1;c>=0;c--)for(var s=b.a.ic(e,i[c]),f=s.length-1;f>=0;f--)r[s[f].name]=s[f].value;n=b.a.c(n);var l=t.createElement("form");l.style.display="none",l.action=u,l.method="post";for(var d in n)e=t.createElement("input"),e.type="hidden",e.name=d,e.value=b.a.Gb(b.a.c(n[d])),l.appendChild(e);o(r,function(e,n){var a=t.createElement("input");a.type="hidden",a.name=e,a.value=n,l.appendChild(a)}),t.body.appendChild(l),a.submitter?a.submitter(l):l.submit(),setTimeout(function(){l.parentNode.removeChild(l)},0)}}}(),b.b("utils",b.a),b.b("utils.arrayForEach",b.a.r),b.b("utils.arrayFirst",b.a.Vb),b.b("utils.arrayFilter",b.a.Ma),b.b("utils.arrayGetDistinctValues",b.a.Wb),b.b("utils.arrayIndexOf",b.a.o),b.b("utils.arrayMap",b.a.ib),b.b("utils.arrayPushAll",b.a.ta),b.b("utils.arrayRemoveItem",b.a.Na),b.b("utils.extend",b.a.extend),b.b("utils.fieldsIncludedWithJsonPost",b.a.gc),b.b("utils.getFormFields",b.a.ic),b.b("utils.peekObservable",b.a.Bb),b.b("utils.postJson",b.a.ld),b.b("utils.parseJson",b.a.kd),b.b("utils.registerEventHandler",b.a.q),b.b("utils.stringifyJson",b.a.Gb),b.b("utils.range",b.a.nd),b.b("utils.toggleDomNodeCssClass",b.a.fb),b.b("utils.triggerEvent",b.a.Fa),b.b("utils.unwrapObservable",b.a.c),b.b("utils.objectForEach",b.a.D),b.b("utils.addOrRemoveItem",b.a.ra),b.b("utils.setTextContent",b.a.bb),b.b("unwrap",b.a.c),Function.prototype.bind||(Function.prototype.bind=function(e){var n=this;if(1===arguments.length)return function(){return n.apply(e,arguments)};var t=Array.prototype.slice.call(arguments,1);return function(){var a=t.slice(0);return a.push.apply(a,arguments),n.apply(e,a)}}),b.a.e=new function(){function n(n,i){var o=n[a];if(!o||"null"===o||!r[o]){if(!i)return e;o=n[a]="ko"+t++,r[o]={}}return r[o]}var t=0,a="__ko__"+(new Date).getTime(),r={};return{get:function(t,a){var r=n(t,!1);return r===e?e:r[a]},set:function(t,a,r){(r!==e||n(t,!1)!==e)&&(n(t,!0)[a]=r)},clear:function(e){var n=e[a];return n?(delete r[n],e[a]=null,!0):!1},J:function(){return t++ +a}}},b.b("utils.domData",b.a.e),b.b("utils.domData.clear",b.a.e.clear),b.a.G=new function(){function n(n,t){var r=b.a.e.get(n,a);return r===e&&t&&(r=[],b.a.e.set(n,a,r)),r}function t(e){var a=n(e,!1);if(a)for(var a=a.slice(0),r=0;r<a.length;r++)a[r](e);if(b.a.e.clear(e),b.a.G.cleanExternalData(e),o[e.nodeType])for(a=e.firstChild;e=a;)a=e.nextSibling,8===e.nodeType&&t(e)}var a=b.a.e.J(),i={1:!0,8:!0,9:!0},o={1:!0,9:!0};return{qa:function(e,t){if("function"!=typeof t)throw Error("Callback must be a function");n(e,!0).push(t)},tc:function(t,r){var i=n(t,!1);i&&(b.a.Na(i,r),0==i.length&&b.a.e.set(t,a,e))},ba:function(e){if(i[e.nodeType]&&(t(e),o[e.nodeType])){var n=[];b.a.ta(n,e.getElementsByTagName("*"));for(var a=0,r=n.length;r>a;a++)t(n[a])}return e},removeNode:function(e){b.ba(e),e.parentNode&&e.parentNode.removeChild(e)},cleanExternalData:function(e){r&&"function"==typeof r.cleanData&&r.cleanData([e])}}},b.ba=b.a.G.ba,b.removeNode=b.a.G.removeNode,b.b("cleanNode",b.ba),b.b("removeNode",b.removeNode),b.b("utils.domNodeDisposal",b.a.G),b.b("utils.domNodeDisposal.addDisposeCallback",b.a.G.qa),b.b("utils.domNodeDisposal.removeDisposeCallback",b.a.G.tc),function(){var a=[0,"",""],i=[1,"<table>","</table>"],o=[3,"<table><tbody><tr>","</tr></tbody></table>"],u=[1,"<select multiple='multiple'>","</select>"],c={thead:i,tbody:i,tfoot:i,tr:[2,"<table><tbody>","</tbody></table>"],td:o,th:o,option:u,optgroup:u},s=8>=b.a.C;b.a.na=function(e,i){var o;if(r){if(r.parseHTML)o=r.parseHTML(e,i)||[];else if((o=r.clean([e],i))&&o[0]){for(var u=o[0];u.parentNode&&11!==u.parentNode.nodeType;)u=u.parentNode;u.parentNode&&u.parentNode.removeChild(u)}}else{(o=i)||(o=t);var f,u=o.parentWindow||o.defaultView||n,l=b.a.cb(e).toLowerCase(),d=o.createElement("div");for(f=(l=l.match(/^<([a-z]+)[ >]/))&&c[l[1]]||a,l=f[0],f="ignored<div>"+f[1]+e+f[2]+"</div>","function"==typeof u.innerShiv?d.appendChild(u.innerShiv(f)):(s&&o.appendChild(d),d.innerHTML=f,s&&d.parentNode.removeChild(d));l--;)d=d.lastChild;o=b.a.W(d.lastChild.childNodes)}return o},b.a.Eb=function(n,t){if(b.a.rb(n),t=b.a.c(t),null!==t&&t!==e)if("string"!=typeof t&&(t=t.toString()),r)r(n).html(t);else for(var a=b.a.na(t,n.ownerDocument),i=0;i<a.length;i++)n.appendChild(a[i])}}(),b.b("utils.parseHtmlFragment",b.a.na),b.b("utils.setHtml",b.a.Eb),b.N=function(){function n(e,t){if(e)if(8==e.nodeType){var a=b.N.pc(e.nodeValue);null!=a&&t.push({Qc:e,hd:a})}else if(1==e.nodeType)for(var a=0,r=e.childNodes,i=r.length;i>a;a++)n(r[a],t)}var t={};return{yb:function(e){if("function"!=typeof e)throw Error("You can only pass a function to ko.memoization.memoize()");var n=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return t[n]=e,"<!--[ko_memo:"+n+"]-->"},Bc:function(n,a){var r=t[n];if(r===e)throw Error("Couldn't find any memo with ID "+n+". Perhaps it's already been unmemoized.");try{return r.apply(null,a||[]),!0}finally{delete t[n]}},Cc:function(e,t){var a=[];n(e,a);for(var r=0,i=a.length;i>r;r++){var o=a[r].Qc,u=[o];t&&b.a.ta(u,t),b.N.Bc(a[r].hd,u),o.nodeValue="",o.parentNode&&o.parentNode.removeChild(o)}},pc:function(e){return(e=e.match(/^\[ko_memo\:(.*?)\]$/))?e[1]:null}}}(),b.b("memoization",b.N),b.b("memoization.memoize",b.N.yb),b.b("memoization.unmemoize",b.N.Bc),b.b("memoization.parseMemoText",b.N.pc),b.b("memoization.unmemoizeDomNodeAndDescendants",b.N.Cc),b.Z=function(){function e(){if(i)for(var e,n=i,t=0;i>u;)if(e=r[u++]){if(u>n){if(5e3<=++t){u=i,b.a.dc(Error("'Too much recursion' after processing "+t+" task groups."));break}n=i}try{e()}catch(a){b.a.dc(a)}}}function a(){e(),u=i=r.length=0}var r=[],i=0,o=1,u=0;return{scheduler:n.MutationObserver?function(e){var n=t.createElement("div");return new MutationObserver(e).observe(n,{attributes:!0}),function(){n.classList.toggle("foo")}}(a):t&&"onreadystatechange"in t.createElement("script")?function(e){var n=t.createElement("script");n.onreadystatechange=function(){n.onreadystatechange=null,t.documentElement.removeChild(n),n=null,e()},t.documentElement.appendChild(n)}:function(e){setTimeout(e,0)},Za:function(e){return i||b.Z.scheduler(a),r[i++]=e,o++},cancel:function(e){e-=o-i,e>=u&&i>e&&(r[e]=null)},resetForTesting:function(){var e=i-u;return u=i=r.length=0,e},rd:e}}(),b.b("tasks",b.Z),b.b("tasks.schedule",b.Z.Za),b.b("tasks.runEarly",b.Z.rd),b.Aa={throttle:function(e,n){e.throttleEvaluation=n;var t=null;return b.B({read:e,write:function(a){clearTimeout(t),t=b.a.setTimeout(function(){e(a)},n)}})},rateLimit:function(e,n){var t,a,r;"number"==typeof n?t=n:(t=n.timeout,a=n.method),e.gb=!1,r="notifyWhenChangesStop"==a?f:s,e.Wa(function(e){return r(e,t)})},deferred:function(n,t){if(!0!==t)throw Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");n.gb||(n.gb=!0,n.Wa(function(t){var a,r=!1;return function(){if(!r){b.Z.cancel(a),a=b.Z.Za(t);try{r=!0,n.notifySubscribers(e,"dirty")}finally{r=!1}}}}))},notify:function(e,n){e.equalityComparer="always"==n?null:c}};var v={undefined:1,"boolean":1,number:1,string:1};b.b("extenders",b.Aa),b.zc=function(e,n,t){this.$=e,this.jb=n,this.Pc=t,this.T=!1,b.H(this,"dispose",this.k)},b.zc.prototype.k=function(){this.T=!0,this.Pc()},b.K=function(){b.a.ab(this,m),m.ub(this)};var g="change",m={ub:function(e){e.F={change:[]},e.Qb=1},Y:function(e,n,t){var a=this;t=t||g;var r=new b.zc(a,n?e.bind(n):e,function(){b.a.Na(a.F[t],r),a.Ka&&a.Ka(t)});return a.ua&&a.ua(t),a.F[t]||(a.F[t]=[]),a.F[t].push(r),r},notifySubscribers:function(e,n){if(n=n||g,n===g&&this.Kb(),this.Ra(n)){var t=n===g&&this.Fc||this.F[n].slice(0);try{b.l.Xb();for(var a,r=0;a=t[r];++r)a.T||a.jb(e)}finally{b.l.end()}}},Pa:function(){return this.Qb},Zc:function(e){return this.Pa()!==e},Kb:function(){++this.Qb},Wa:function(e){var n,t,a,r,i=this,o=b.I(i);i.Ja||(i.Ja=i.notifySubscribers,i.notifySubscribers=l);var u=e(function(){i.Ha=!1,o&&r===i&&(r=i.Mb?i.Mb():i());var e=t||i.Ua(a,r);t=n=!1,e&&i.Ja(a=r)});i.Pb=function(e){i.Fc=i.F[g].slice(0),i.Ha=n=!0,r=e,u()},i.Ob=function(e){n||(a=e,i.Ja(e,"beforeChange"))},i.Hc=function(){i.Ua(a,i.p(!0))&&(t=!0)}},Ra:function(e){return this.F[e]&&this.F[e].length},Xc:function(e){if(e)return this.F[e]&&this.F[e].length||0;var n=0;return b.a.D(this.F,function(e,t){"dirty"!==e&&(n+=t.length)}),n},Ua:function(e,n){return!this.equalityComparer||!this.equalityComparer(e,n)},extend:function(e){var n=this;return e&&b.a.D(e,function(e,t){var a=b.Aa[e];"function"==typeof a&&(n=a(n,t)||n)}),n}};b.H(m,"subscribe",m.Y),b.H(m,"extend",m.extend),b.H(m,"getSubscriptionsCount",m.Xc),b.a.la&&b.a.$a(m,Function.prototype),b.K.fn=m,b.lc=function(e){return null!=e&&"function"==typeof e.Y&&"function"==typeof e.notifySubscribers},b.b("subscribable",b.K),b.b("isSubscribable",b.lc),b.xa=b.l=function(){function e(e){a.push(t),t=e}function n(){t=a.pop()}var t,a=[],r=0;return{Xb:e,end:n,sc:function(e){if(t){if(!b.lc(e))throw Error("Only subscribable things can act as dependencies");t.jb.call(t.Lc,e,e.Gc||(e.Gc=++r))}},w:function(t,a,r){try{return e(),t.apply(a,r||[])}finally{n()}},Ca:function(){return t?t.m.Ca():void 0},Va:function(){return t?t.Va:void 0}}}(),b.b("computedContext",b.xa),b.b("computedContext.getDependenciesCount",b.xa.Ca),b.b("computedContext.isInitial",b.xa.Va),b.b("ignoreDependencies",b.wd=b.l.w);var y=b.a.bc("_latestValue");b.O=function(e){function n(){return 0<arguments.length?(n.Ua(n[y],arguments[0])&&(n.ia(),n[y]=arguments[0],n.ha()),this):(b.l.sc(n),n[y])}return n[y]=e,b.a.la||b.a.extend(n,b.K.fn),b.K.fn.ub(n),b.a.ab(n,w),b.options.deferUpdates&&b.Aa.deferred(n,!0),n};var w={equalityComparer:c,p:function(){return this[y]},ha:function(){this.notifySubscribers(this[y])},ia:function(){this.notifySubscribers(this[y],"beforeChange")}};b.a.la&&b.a.$a(w,b.K.fn);var x=b.O.md="__ko_proto__";w[x]=b.O,b.Qa=function(n,t){return null===n||n===e||n[x]===e?!1:n[x]===t?!0:b.Qa(n[x],t)},b.I=function(e){return b.Qa(e,b.O)},b.Da=function(e){return"function"==typeof e&&e[x]===b.O||"function"==typeof e&&e[x]===b.B&&e.$c?!0:!1},b.b("observable",b.O),b.b("isObservable",b.I),b.b("isWriteableObservable",b.Da),b.b("isWritableObservable",b.Da),b.b("observable.fn",w),b.H(w,"peek",w.p),b.H(w,"valueHasMutated",w.ha),b.H(w,"valueWillMutate",w.ia),b.ma=function(e){if(e=e||[],"object"!=typeof e||!("length"in e))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");return e=b.O(e),b.a.ab(e,b.ma.fn),e.extend({trackArrayChanges:!0})},b.ma.fn={remove:function(e){for(var n=this.p(),t=[],a="function"!=typeof e||b.I(e)?function(n){return n===e}:e,r=0;r<n.length;r++){var i=n[r];a(i)&&(0===t.length&&this.ia(),t.push(i),n.splice(r,1),r--)}return t.length&&this.ha(),t},removeAll:function(n){if(n===e){var t=this.p(),a=t.slice(0);return this.ia(),t.splice(0,t.length),this.ha(),a}return n?this.remove(function(e){return 0<=b.a.o(n,e)}):[]},destroy:function(e){var n=this.p(),t="function"!=typeof e||b.I(e)?function(n){return n===e}:e;this.ia();for(var a=n.length-1;a>=0;a--)t(n[a])&&(n[a]._destroy=!0);this.ha()},destroyAll:function(n){return n===e?this.destroy(function(){return!0}):n?this.destroy(function(e){return 0<=b.a.o(n,e)}):[]},indexOf:function(e){var n=this();return b.a.o(n,e)},replace:function(e,n){var t=this.indexOf(e);t>=0&&(this.ia(),this.p()[t]=n,this.ha())}},b.a.la&&b.a.$a(b.ma.fn,b.O.fn),b.a.r("pop push reverse shift sort splice unshift".split(" "),function(e){b.ma.fn[e]=function(){var n=this.p();this.ia(),this.Yb(n,e,arguments);var t=n[e].apply(n,arguments);return this.ha(),t===n?this:t}}),b.a.r(["slice"],function(e){b.ma.fn[e]=function(){var n=this();return n[e].apply(n,arguments)}}),b.b("observableArray",b.ma),b.Aa.trackArrayChanges=function(n,t){function a(){if(!o){o=!0,i=n.notifySubscribers,n.notifySubscribers=function(e,n){return n&&n!==g||++c,i.apply(this,arguments)};var e=[].concat(n.p()||[]);u=null,r=n.Y(function(t){if(t=[].concat(t||[]),n.Ra("arrayChange")){var a;(!u||c>1)&&(u=b.a.lb(e,t,n.kb)),a=u}e=t,u=null,c=0,a&&a.length&&n.notifySubscribers(a,"arrayChange")})}}if(n.kb={},t&&"object"==typeof t&&b.a.extend(n.kb,t),n.kb.sparse=!0,!n.Yb){var r,i,o=!1,u=null,c=0,s=n.ua,f=n.Ka;n.ua=function(e){s&&s.call(n,e),"arrayChange"===e&&a()},n.Ka=function(t){f&&f.call(n,t),"arrayChange"!==t||n.Ra("arrayChange")||(i&&(n.notifySubscribers=i,i=e),r.k(),o=!1)},n.Yb=function(e,n,t){function a(e,n,t){return r[r.length]={status:e,value:n,index:t}}if(o&&!c){var r=[],i=e.length,s=t.length,f=0;switch(n){case"push":f=i;case"unshift":for(n=0;s>n;n++)a("added",t[n],f+n);break;case"pop":f=i-1;case"shift":i&&a("deleted",e[f],f);break;case"splice":n=Math.min(Math.max(0,0>t[0]?i+t[0]:t[0]),i);for(var i=1===s?i:Math.min(n+(t[1]||0),i),s=n+s-2,f=Math.max(i,s),l=[],d=[],p=2;f>n;++n,++p)i>n&&d.push(a("deleted",e[n],n)),s>n&&l.push(a("added",t[p],n));b.a.hc(d,l);break;default:return}u=r}}}};var k=b.a.bc("_state");b.m=b.B=function(n,t,a){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.sb,arguments),this}return b.l.sc(r),(o.V||o.t&&r.Sa())&&r.U(),o.M}if("object"==typeof n?a=n:(a=a||{},n&&(a.read=n)),"function"!=typeof a.read)throw Error("Pass a function that returns the value of the ko.computed");var i=a.write,o={M:e,da:!0,V:!0,Ta:!1,Hb:!1,T:!1,Ya:!1,t:!1,od:a.read,sb:t||a.owner,i:a.disposeWhenNodeIsRemoved||a.i||null,ya:a.disposeWhen||a.ya,pb:null,s:{},L:0,fc:null};return r[k]=o,r.$c="function"==typeof i,b.a.la||b.a.extend(r,b.K.fn),b.K.fn.ub(r),b.a.ab(r,E),a.pure?(o.Ya=!0,o.t=!0,b.a.extend(r,T)):a.deferEvaluation&&b.a.extend(r,C),b.options.deferUpdates&&b.Aa.deferred(r,!0),o.i&&(o.Hb=!0,o.i.nodeType||(o.i=null)),o.t||a.deferEvaluation||r.U(),o.i&&r.ca()&&b.a.G.qa(o.i,o.pb=function(){r.k()}),r};var E={equalityComparer:c,Ca:function(){return this[k].L},Sb:function(e,n,t){if(this[k].Ya&&n===this)throw Error("A 'pure' computed must not be called recursively");this[k].s[e]=t,t.Ia=this[k].L++,t.pa=n.Pa()},Sa:function(){var e,n,t=this[k].s;for(e in t)if(t.hasOwnProperty(e)&&(n=t[e],this.oa&&n.$.Ha||n.$.Zc(n.pa)))return!0},gd:function(){this.oa&&!this[k].Ta&&this.oa(!1)},ca:function(){var e=this[k];return e.V||0<e.L},qd:function(){this.Ha?this[k].V&&(this[k].da=!0):this.ec()},yc:function(e){if(e.gb&&!this[k].i){var n=e.Y(this.gd,this,"dirty"),t=e.Y(this.qd,this);return{$:e,k:function(){n.k(),t.k()}}}return e.Y(this.ec,this)},ec:function(){var e=this,n=e.throttleEvaluation;n&&n>=0?(clearTimeout(this[k].fc),this[k].fc=b.a.setTimeout(function(){e.U(!0)},n)):e.oa?e.oa(!0):e.U(!0)},U:function(e){var n=this[k],t=n.ya,a=!1;if(!n.Ta&&!n.T){if(n.i&&!b.a.qb(n.i)||t&&t()){if(!n.Hb)return void this.k()}else n.Hb=!1;n.Ta=!0;try{a=this.Vc(e)}finally{n.Ta=!1}return n.L||this.k(),a}},Vc:function(n){var t=this[k],a=!1,r=t.Ya?e:!t.L,i={Mc:this,Oa:t.s,ob:t.L};return b.l.Xb({Lc:i,jb:p,m:this,Va:r}),t.s={},t.L=0,i=this.Uc(t,i),this.Ua(t.M,i)&&(t.t||this.notifySubscribers(t.M,"beforeChange"),t.M=i,t.t?this.Kb():n&&this.notifySubscribers(t.M),a=!0),r&&this.notifySubscribers(t.M,"awake"),a},Uc:function(e,n){try{var t=e.od;return e.sb?t.call(e.sb):t()}finally{b.l.end(),n.ob&&!e.t&&b.a.D(n.Oa,d),e.da=e.V=!1}},p:function(e){var n=this[k];return(n.V&&(e||!n.L)||n.t&&this.Sa())&&this.U(),n.M},Wa:function(e){b.K.fn.Wa.call(this,e),this.Mb=function(){return this[k].da?this.U():this[k].V=!1,this[k].M},this.oa=function(e){this.Ob(this[k].M),this[k].V=!0,e&&(this[k].da=!0),this.Pb(this)}},k:function(){var e=this[k];!e.t&&e.s&&b.a.D(e.s,function(e,n){n.k&&n.k()}),e.i&&e.pb&&b.a.G.tc(e.i,e.pb),e.s=null,e.L=0,e.T=!0,e.da=!1,e.V=!1,e.t=!1,e.i=null}},T={ua:function(e){var n=this,t=n[k];if(!t.T&&t.t&&"change"==e){if(t.t=!1,t.da||n.Sa())t.s=null,t.L=0,n.U()&&n.Kb();else{var a=[];b.a.D(t.s,function(e,n){a[n.Ia]=e}),b.a.r(a,function(e,a){var r=t.s[e],i=n.yc(r.$);i.Ia=a,i.pa=r.pa,t.s[e]=i})}t.T||n.notifySubscribers(t.M,"awake")}},Ka:function(n){var t=this[k];t.T||"change"!=n||this.Ra("change")||(b.a.D(t.s,function(e,n){n.k&&(t.s[e]={$:n.$,Ia:n.Ia,pa:n.pa},n.k())}),t.t=!0,this.notifySubscribers(e,"asleep"))},Pa:function(){var e=this[k];return e.t&&(e.da||this.Sa())&&this.U(),b.K.fn.Pa.call(this)}},C={ua:function(e){"change"!=e&&"beforeChange"!=e||this.p()}};b.a.la&&b.a.$a(E,b.K.fn);var N=b.O.md;b.m[N]=b.O,E[N]=b.m,b.bd=function(e){return b.Qa(e,b.m)},b.cd=function(e){return b.Qa(e,b.m)&&e[k]&&e[k].Ya},b.b("computed",b.m),b.b("dependentObservable",b.m),b.b("isComputed",b.bd),b.b("isPureComputed",b.cd),b.b("computed.fn",E),b.H(E,"peek",E.p),b.H(E,"dispose",E.k),b.H(E,"isActive",E.ca),b.H(E,"getDependenciesCount",E.Ca),b.rc=function(e,n){return"function"==typeof e?b.m(e,n,{pure:!0}):(e=b.a.extend({},e),e.pure=!0,b.m(e,n))},b.b("pureComputed",b.rc),function(){function n(r,i,o){if(o=o||new a,r=i(r),"object"!=typeof r||null===r||r===e||r instanceof RegExp||r instanceof Date||r instanceof String||r instanceof Number||r instanceof Boolean)return r;var u=r instanceof Array?[]:{};return o.save(r,u),t(r,function(t){var a=i(r[t]);switch(typeof a){case"boolean":case"number":case"string":case"function":u[t]=a;break;case"object":case"undefined":var c=o.get(a);u[t]=c!==e?c:n(a,i,o)}}),u}function t(e,n){if(e instanceof Array){for(var t=0;t<e.length;t++)n(t);"function"==typeof e.toJSON&&n("toJSON")}else for(t in e)n(t)}function a(){this.keys=[],this.Lb=[]}b.Ac=function(e){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return n(e,function(e){for(var n=0;b.I(e)&&10>n;n++)e=e();return e})},b.toJSON=function(e,n,t){return e=b.Ac(e),b.a.Gb(e,n,t)},a.prototype={save:function(e,n){var t=b.a.o(this.keys,e);t>=0?this.Lb[t]=n:(this.keys.push(e),this.Lb.push(n))},get:function(n){return n=b.a.o(this.keys,n),n>=0?this.Lb[n]:e}}}(),b.b("toJS",b.Ac),b.b("toJSON",b.toJSON),function(){b.j={u:function(n){switch(b.a.A(n)){case"option":return!0===n.__ko__hasDomDataOptionValue__?b.a.e.get(n,b.d.options.zb):7>=b.a.C?n.getAttributeNode("value")&&n.getAttributeNode("value").specified?n.value:n.text:n.value;case"select":return 0<=n.selectedIndex?b.j.u(n.options[n.selectedIndex]):e;default:return n.value}},ja:function(n,t,a){switch(b.a.A(n)){case"option":switch(typeof t){case"string":b.a.e.set(n,b.d.options.zb,e),"__ko__hasDomDataOptionValue__"in n&&delete n.__ko__hasDomDataOptionValue__,n.value=t;break;default:b.a.e.set(n,b.d.options.zb,t),n.__ko__hasDomDataOptionValue__=!0,n.value="number"==typeof t?t:""}break;case"select":(""===t||null===t)&&(t=e);for(var r,i=-1,o=0,u=n.options.length;u>o;++o)if(r=b.j.u(n.options[o]),r==t||""==r&&t===e){i=o;break}(a||i>=0||t===e&&1<n.size)&&(n.selectedIndex=i);break;default:(null===t||t===e)&&(t=""),n.value=t}}}}(),b.b("selectExtensions",b.j),b.b("selectExtensions.readValue",b.j.u),b.b("selectExtensions.writeValue",b.j.ja),b.h=function(){function e(e){e=b.a.cb(e),123===e.charCodeAt(0)&&(e=e.slice(1,-1));var n,t=[],o=e.match(a),u=[],c=0;if(o){o.push(",");for(var s,f=0;s=o[f];++f){var l=s.charCodeAt(0);if(44===l){if(0>=c){t.push(n&&u.length?{key:n,value:u.join("")}:{unknown:n||u.join("")}),n=c=0,u=[];continue}}else if(58===l){if(!c&&!n&&1===u.length){n=u.pop();continue}}else 47===l&&f&&1<s.length?(l=o[f-1].match(r))&&!i[l[0]]&&(e=e.substr(e.indexOf(s)+1),o=e.match(a),o.push(","),f=-1,s="/"):40===l||123===l||91===l?++c:41===l||125===l||93===l?--c:n||u.length||34!==l&&39!==l||(s=s.slice(1,-1));u.push(s)}}return t}var n=["true","false","null","undefined"],t=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,a=RegExp("\"(?:[^\"\\\\]|\\\\.)*\"|'(?:[^'\\\\]|\\\\.)*'|/(?:[^/\\\\]|\\\\.)*/w*|[^\\s:,/][^,\"'{}()/:[\\]]*[^\\s,\"'{}()/:[\\]]|[^\\s]","g"),r=/[\])"'A-Za-z0-9_$]+$/,i={"in":1,"return":1,"typeof":1},o={};return{va:[],ga:o,Ab:e,Xa:function(a,r){function i(e,a){var r;if(!f){var l=b.getBindingHandler(e);if(l&&l.preprocess&&!(a=l.preprocess(a,e,i)))return;(l=o[e])&&(r=a,0<=b.a.o(n,r)?r=!1:(l=r.match(t),r=null===l?!1:l[1]?"Object("+l[1]+")"+l[2]:r),l=r),l&&c.push("'"+e+"':function(_z){"+r+"=_z}")}s&&(a="function(){return "+a+" }"),u.push("'"+e+"':"+a)}r=r||{};var u=[],c=[],s=r.valueAccessors,f=r.bindingParams,l="string"==typeof a?e(a):a;return b.a.r(l,function(e){i(e.key||e.unknown,e.value)}),c.length&&i("_ko_property_writers","{"+c.join(",")+" }"),u.join(",")},fd:function(e,n){for(var t=0;t<e.length;t++)if(e[t].key==n)return!0;return!1},Ga:function(e,n,t,a,r){e&&b.I(e)?!b.Da(e)||r&&e.p()===a||e(a):(e=n.get("_ko_property_writers"))&&e[t]&&e[t](a)}}}(),b.b("expressionRewriting",b.h),b.b("expressionRewriting.bindingRewriteValidators",b.h.va),b.b("expressionRewriting.parseObjectLiteral",b.h.Ab),b.b("expressionRewriting.preProcessBindings",b.h.Xa),b.b("expressionRewriting._twoWayBindings",b.h.ga),b.b("jsonExpressionRewriting",b.h),b.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",b.h.Xa),function(){function e(e){return 8==e.nodeType&&o.test(i?e.text:e.nodeValue)}function n(e){return 8==e.nodeType&&u.test(i?e.text:e.nodeValue)}function a(t,a){for(var r=t,i=1,o=[];r=r.nextSibling;){if(n(r)&&(i--,0===i))return o;o.push(r),e(r)&&i++}if(!a)throw Error("Cannot find closing comment tag to match: "+t.nodeValue);return null}function r(e,n){var t=a(e,n);return t?0<t.length?t[t.length-1].nextSibling:e.nextSibling:null}var i=t&&"<!--test-->"===t.createComment("test").text,o=i?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,u=i?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,c={ul:!0,ol:!0};b.f={aa:{},childNodes:function(n){return e(n)?a(n):n.childNodes},za:function(n){if(e(n)){n=b.f.childNodes(n);for(var t=0,a=n.length;a>t;t++)b.removeNode(n[t])}else b.a.rb(n)},fa:function(n,t){if(e(n)){b.f.za(n);for(var a=n.nextSibling,r=0,i=t.length;i>r;r++)a.parentNode.insertBefore(t[r],a)}else b.a.fa(n,t)},qc:function(n,t){e(n)?n.parentNode.insertBefore(t,n.nextSibling):n.firstChild?n.insertBefore(t,n.firstChild):n.appendChild(t)},kc:function(n,t,a){a?e(n)?n.parentNode.insertBefore(t,a.nextSibling):a.nextSibling?n.insertBefore(t,a.nextSibling):n.appendChild(t):b.f.qc(n,t)},firstChild:function(t){return e(t)?!t.nextSibling||n(t.nextSibling)?null:t.nextSibling:t.firstChild},nextSibling:function(t){return e(t)&&(t=r(t)),t.nextSibling&&n(t.nextSibling)?null:t.nextSibling},Yc:e,vd:function(e){return(e=(i?e.text:e.nodeValue).match(o))?e[1]:null},oc:function(t){if(c[b.a.A(t)]){var a=t.firstChild;if(a)do if(1===a.nodeType){var i;i=a.firstChild;var o=null;if(i)do if(o)o.push(i);else if(e(i)){var u=r(i,!0);u?i=u:o=[i]}else n(i)&&(o=[i]);while(i=i.nextSibling);if(i=o)for(o=a.nextSibling,u=0;u<i.length;u++)o?t.insertBefore(i[u],o):t.appendChild(i[u])}while(a=a.nextSibling)}}}}(),b.b("virtualElements",b.f),b.b("virtualElements.allowedBindings",b.f.aa),b.b("virtualElements.emptyNode",b.f.za),b.b("virtualElements.insertAfter",b.f.kc),b.b("virtualElements.prepend",b.f.qc),b.b("virtualElements.setDomNodeChildren",b.f.fa),function(){b.S=function(){this.Kc={}},b.a.extend(b.S.prototype,{nodeHasBindings:function(e){switch(e.nodeType){case 1:return null!=e.getAttribute("data-bind")||b.g.getComponentNameForNode(e);case 8:return b.f.Yc(e);default:return!1}},getBindings:function(e,n){var t=this.getBindingsString(e,n),t=t?this.parseBindingsString(t,n,e):null;return b.g.Rb(t,e,n,!1)},getBindingAccessors:function(e,n){var t=this.getBindingsString(e,n),t=t?this.parseBindingsString(t,n,e,{valueAccessors:!0}):null;return b.g.Rb(t,e,n,!0)},getBindingsString:function(e){switch(e.nodeType){case 1:return e.getAttribute("data-bind");case 8:return b.f.vd(e);default:return null}},parseBindingsString:function(e,n,t,a){try{var r,i=this.Kc,o=e+(a&&a.valueAccessors||"");if(!(r=i[o])){var u,c="with($context){with($data||{}){return{"+b.h.Xa(e,a)+"}}}";u=new Function("$context","$element",c),r=i[o]=u}return r(n,t)}catch(s){throw s.message="Unable to parse bindings.\nBindings value: "+e+"\nMessage: "+s.message,s}}}),b.S.instance=new b.S}(),b.b("bindingProvider",b.S),function(){function t(e){return function(){return e}}function a(e){
  return e()}function i(e){return b.a.Ea(b.l.w(e),function(n,t){return function(){return e()[t]}})}function o(e,n,a){return"function"==typeof e?i(e.bind(null,n,a)):b.a.Ea(e,t)}function u(e,n){return i(this.getBindings.bind(this,e,n))}function c(e,n,t){var a,r=b.f.firstChild(n),i=b.S.instance,o=i.preprocessNode;if(o){for(;a=r;)r=b.f.nextSibling(a),o.call(i,a);r=b.f.firstChild(n)}for(;a=r;)r=b.f.nextSibling(a),s(e,a,t)}function s(e,n,t){var a=!0,r=1===n.nodeType;r&&b.f.oc(n),(r&&t||b.S.instance.nodeHasBindings(n))&&(a=l(n,null,e,t).shouldBindDescendants),a&&!p[b.a.A(n)]&&c(e,n,!r)}function f(e){var n=[],t={},a=[];return b.a.D(e,function r(i){if(!t[i]){var o=b.getBindingHandler(i);o&&(o.after&&(a.push(i),b.a.r(o.after,function(n){if(e[n]){if(-1!==b.a.o(a,n))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+a.join(", "));r(n)}}),a.length--),n.push({key:i,jc:o})),t[i]=!0}}),n}function l(n,t,r,i){var o=b.a.e.get(n,h);if(!t){if(o)throw Error("You cannot apply bindings multiple times to the same element.");b.a.e.set(n,h,!0)}!o&&i&&b.xc(n,r);var c;if(t&&"function"!=typeof t)c=t;else{var s=b.S.instance,l=s.getBindingAccessors||u,d=b.B(function(){return(c=t?t(r,n):l.call(s,n,r))&&r.Q&&r.Q(),c},null,{i:n});c&&d.ca()||(d=null)}var p;if(c){var v=d?function(e){return function(){return a(d()[e])}}:function(e){return c[e]},g=function(){return b.a.Ea(d?d():c,a)};g.get=function(e){return c[e]&&a(v(e))},g.has=function(e){return e in c},i=f(c),b.a.r(i,function(t){var a=t.jc.init,i=t.jc.update,o=t.key;if(8===n.nodeType&&!b.f.aa[o])throw Error("The binding '"+o+"' cannot be used with virtual elements");try{"function"==typeof a&&b.l.w(function(){var t=a(n,v(o),g,r.$data,r);if(t&&t.controlsDescendantBindings){if(p!==e)throw Error("Multiple bindings ("+p+" and "+o+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");p=o}}),"function"==typeof i&&b.B(function(){i(n,v(o),g,r.$data,r)},null,{i:n})}catch(u){throw u.message='Unable to process binding "'+o+": "+c[o]+'"\nMessage: '+u.message,u}})}return{shouldBindDescendants:p===e}}function d(e){return e&&e instanceof b.R?e:new b.R(e)}b.d={};var p={script:!0,textarea:!0,template:!0};b.getBindingHandler=function(e){return b.d[e]},b.R=function(n,t,a,r,i){function o(){var e=l?n():n,i=b.a.c(e);return t?(t.Q&&t.Q(),b.a.extend(f,t),f.Q=s):(f.$parents=[],f.$root=i,f.ko=b),f.$rawData=e,f.$data=i,a&&(f[a]=i),r&&r(f,t,i),f.$data}function u(){return c&&!b.a.Tb(c)}var c,s,f=this,l="function"==typeof n&&!b.I(n);i&&i.exportDependencies?o():(s=b.B(o,null,{ya:u,i:!0}),s.ca()&&(f.Q=s,s.equalityComparer=null,c=[],s.Dc=function(n){c.push(n),b.a.G.qa(n,function(n){b.a.Na(c,n),c.length||(s.k(),f.Q=s=e)})}))},b.R.prototype.createChildContext=function(e,n,t,a){return new b.R(e,this,n,function(e,n){e.$parentContext=n,e.$parent=n.$data,e.$parents=(n.$parents||[]).slice(0),e.$parents.unshift(e.$parent),t&&t(e)},a)},b.R.prototype.extend=function(e){return new b.R(this.Q||this.$data,this,null,function(n,t){n.$rawData=t.$rawData,b.a.extend(n,"function"==typeof e?e():e)})},b.R.prototype.ac=function(e,n){return this.createChildContext(e,n,null,{exportDependencies:!0})};var h=b.a.e.J(),v=b.a.e.J();b.xc=function(e,n){return 2!=arguments.length?b.a.e.get(e,v):(b.a.e.set(e,v,n),void(n.Q&&n.Q.Dc(e)))},b.La=function(e,n,t){return 1===e.nodeType&&b.f.oc(e),l(e,n,d(t),!0)},b.Ic=function(e,n,t){return t=d(t),b.La(e,o(n,t,e),t)},b.hb=function(e,n){1!==n.nodeType&&8!==n.nodeType||c(d(e),n,!0)},b.Ub=function(e,t){if(!r&&n.jQuery&&(r=n.jQuery),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");t=t||n.document.body,s(d(e),t,!0)},b.nb=function(n){switch(n.nodeType){case 1:case 8:var t=b.xc(n);if(t)return t;if(n.parentNode)return b.nb(n.parentNode)}return e},b.Oc=function(n){return(n=b.nb(n))?n.$data:e},b.b("bindingHandlers",b.d),b.b("applyBindings",b.Ub),b.b("applyBindingsToDescendants",b.hb),b.b("applyBindingAccessorsToNode",b.La),b.b("applyBindingsToNode",b.Ic),b.b("contextFor",b.nb),b.b("dataFor",b.Oc)}(),function(e){function n(n,a){var o,u=r.hasOwnProperty(n)?r[n]:e;u?u.Y(a):(u=r[n]=new b.K,u.Y(a),t(n,function(e,t){var a=!(!t||!t.synchronous);i[n]={definition:e,dd:a},delete r[n],o||a?u.notifySubscribers(e):b.Z.Za(function(){u.notifySubscribers(e)})}),o=!0)}function t(e,n){a("getConfig",[e],function(t){t?a("loadComponent",[e,t],function(e){n(e,t)}):n(null,null)})}function a(n,t,r,i){i||(i=b.g.loaders.slice(0));var o=i.shift();if(o){var u=o[n];if(u){var c=!1;if(u.apply(o,t.concat(function(e){c?r(null):null!==e?r(e):a(n,t,r,i)}))!==e&&(c=!0,!o.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else a(n,t,r,i)}else r(null)}var r={},i={};b.g={get:function(t,a){var r=i.hasOwnProperty(t)?i[t]:e;r?r.dd?b.l.w(function(){a(r.definition)}):b.Z.Za(function(){a(r.definition)}):n(t,a)},$b:function(e){delete i[e]},Nb:a},b.g.loaders=[],b.b("components",b.g),b.b("components.get",b.g.get),b.b("components.clearCachedDefinition",b.g.$b)}(),function(){function e(e,n,t,a){function r(){0===--u&&a(i)}var i={},u=2,c=t.template;t=t.viewModel,c?o(n,c,function(n){b.g.Nb("loadTemplate",[e,n],function(e){i.template=e,r()})}):r(),t?o(n,t,function(n){b.g.Nb("loadViewModel",[e,n],function(e){i[f]=e,r()})}):r()}function a(e,n,t){if("function"==typeof n)t(function(e){return new n(e)});else if("function"==typeof n[f])t(n[f]);else if("instance"in n){var r=n.instance;t(function(){return r})}else"viewModel"in n?a(e,n.viewModel,t):e("Unknown viewModel value: "+n)}function r(e){switch(b.a.A(e)){case"script":return b.a.na(e.text);case"textarea":return b.a.na(e.value);case"template":if(i(e.content))return b.a.wa(e.content.childNodes)}return b.a.wa(e.childNodes)}function i(e){return n.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function o(e,t,a){"string"==typeof t.require?u||n.require?(u||n.require)([t.require],a):e("Uses require, but no AMD loader is present"):a(t)}function c(e){return function(n){throw Error("Component '"+e+"': "+n)}}var s={};b.g.register=function(e,n){if(!n)throw Error("Invalid configuration for "+e);if(b.g.wb(e))throw Error("Component "+e+" is already registered");s[e]=n},b.g.wb=function(e){return s.hasOwnProperty(e)},b.g.ud=function(e){delete s[e],b.g.$b(e)},b.g.cc={getConfig:function(e,n){n(s.hasOwnProperty(e)?s[e]:null)},loadComponent:function(n,t,a){var r=c(n);o(r,t,function(t){e(n,r,t,a)})},loadTemplate:function(e,a,o){if(e=c(e),"string"==typeof a)o(b.a.na(a));else if(a instanceof Array)o(a);else if(i(a))o(b.a.W(a.childNodes));else if(a.element)if(a=a.element,n.HTMLElement?a instanceof HTMLElement:a&&a.tagName&&1===a.nodeType)o(r(a));else if("string"==typeof a){var u=t.getElementById(a);u?o(r(u)):e("Cannot find element with ID "+a)}else e("Unknown element type: "+a);else e("Unknown template value: "+a)},loadViewModel:function(e,n,t){a(c(e),n,t)}};var f="createViewModel";b.b("components.register",b.g.register),b.b("components.isRegistered",b.g.wb),b.b("components.unregister",b.g.ud),b.b("components.defaultLoader",b.g.cc),b.g.loaders.push(b.g.cc),b.g.Ec=s}(),function(){function e(e,t){var a=e.getAttribute("params");if(a){var a=n.parseBindingsString(a,t,e,{valueAccessors:!0,bindingParams:!0}),a=b.a.Ea(a,function(n){return b.m(n,null,{i:e})}),r=b.a.Ea(a,function(n){var t=n.p();return n.ca()?b.m({read:function(){return b.a.c(n())},write:b.Da(t)&&function(e){n()(e)},i:e}):t});return r.hasOwnProperty("$raw")||(r.$raw=a),r}return{$raw:{}}}b.g.getComponentNameForNode=function(e){var n=b.a.A(e);return b.g.wb(n)&&(-1!=n.indexOf("-")||"[object HTMLUnknownElement]"==""+e||8>=b.a.C&&e.tagName===n)?n:void 0},b.g.Rb=function(n,t,a,r){if(1===t.nodeType){var i=b.g.getComponentNameForNode(t);if(i){if(n=n||{},n.component)throw Error('Cannot use the "component" binding on a custom element matching a component');var o={name:i,params:e(t,a)};n.component=r?function(){return o}:o}}return n};var n=new b.S;9>b.a.C&&(b.g.register=function(e){return function(n){return t.createElement(n),e.apply(this,arguments)}}(b.g.register),t.createDocumentFragment=function(e){return function(){var n,t=e(),a=b.g.Ec;for(n in a)a.hasOwnProperty(n)&&t.createElement(n);return t}}(t.createDocumentFragment))}(),function(e){function n(e,n,t){if(n=n.template,!n)throw Error("Component '"+e+"' has no template");e=b.a.wa(n),b.f.fa(t,e)}function t(e,n,t,a){var r=e.createViewModel;return r?r.call(e,a,{element:n,templateNodes:t}):a}var a=0;b.d.component={init:function(r,i,o,u,c){function s(){var e=f&&f.dispose;"function"==typeof e&&e.call(f),l=f=null}var f,l,d=b.a.W(b.f.childNodes(r));return b.a.G.qa(r,s),b.m(function(){var o,u,p=b.a.c(i());if("string"==typeof p?o=p:(o=b.a.c(p.name),u=b.a.c(p.params)),!o)throw Error("No component name specified");var h=l=++a;b.g.get(o,function(a){if(l===h){if(s(),!a)throw Error("Unknown component '"+o+"'");n(o,a,r);var i=t(a,r,d,u);a=c.createChildContext(i,e,function(e){e.$component=i,e.$componentTemplateNodes=d}),f=i,b.hb(a,r)}})},null,{i:r}),{controlsDescendantBindings:!0}}},b.f.aa.component=!0}();var S={"class":"className","for":"htmlFor"};b.d.attr={update:function(n,t){var a=b.a.c(t())||{};b.a.D(a,function(t,a){a=b.a.c(a);var r=!1===a||null===a||a===e;r&&n.removeAttribute(t),8>=b.a.C&&t in S?(t=S[t],r?n.removeAttribute(t):n[t]=a):r||n.setAttribute(t,a.toString()),"name"===t&&b.a.vc(n,r?"":a.toString())})}},function(){b.d.checked={after:["value","attr"],init:function(n,t,a){function r(){var e=n.checked,r=p?o():e;if(!b.xa.Va()&&(!c||e)){var i=b.l.w(t);if(f){var u=l?i.p():i;d!==r?(e&&(b.a.ra(u,r,!0),b.a.ra(u,d,!1)),d=r):b.a.ra(u,r,e),l&&b.Da(i)&&i(u)}else b.h.Ga(i,a,"checked",r,!0)}}function i(){var e=b.a.c(t());n.checked=f?0<=b.a.o(e,o()):u?e:o()===e}var o=b.rc(function(){return a.has("checkedValue")?b.a.c(a.get("checkedValue")):a.has("value")?b.a.c(a.get("value")):n.value}),u="checkbox"==n.type,c="radio"==n.type;if(u||c){var s=t(),f=u&&b.a.c(s)instanceof Array,l=!(f&&s.push&&s.splice),d=f?o():e,p=c||f;c&&!n.name&&b.d.uniqueName.init(n,function(){return!0}),b.m(r,null,{i:n}),b.a.q(n,"click",r),b.m(i,null,{i:n}),s=e}}},b.h.ga.checked=!0,b.d.checkedValue={update:function(e,n){e.value=b.a.c(n())}}}(),b.d.css={update:function(e,n){var t=b.a.c(n());null!==t&&"object"==typeof t?b.a.D(t,function(n,t){t=b.a.c(t),b.a.fb(e,n,t)}):(t=b.a.cb(String(t||"")),b.a.fb(e,e.__ko__cssValue,!1),e.__ko__cssValue=t,b.a.fb(e,t,!0))}},b.d.enable={update:function(e,n){var t=b.a.c(n());t&&e.disabled?e.removeAttribute("disabled"):t||e.disabled||(e.disabled=!0)}},b.d.disable={update:function(e,n){b.d.enable.update(e,function(){return!b.a.c(n())})}},b.d.event={init:function(e,n,t,a,r){var i=n()||{};b.a.D(i,function(i){"string"==typeof i&&b.a.q(e,i,function(e){var o,u=n()[i];if(u){try{var c=b.a.W(arguments);a=r.$data,c.unshift(a),o=u.apply(a,c)}finally{!0!==o&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1===t.get(i+"Bubble")&&(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}})})}},b.d.foreach={mc:function(e){return function(){var n=e(),t=b.a.Bb(n);return t&&"number"!=typeof t.length?(b.a.c(n),{foreach:t.data,as:t.as,includeDestroyed:t.includeDestroyed,afterAdd:t.afterAdd,beforeRemove:t.beforeRemove,afterRender:t.afterRender,beforeMove:t.beforeMove,afterMove:t.afterMove,templateEngine:b.X.vb}):{foreach:n,templateEngine:b.X.vb}}},init:function(e,n){return b.d.template.init(e,b.d.foreach.mc(n))},update:function(e,n,t,a,r){return b.d.template.update(e,b.d.foreach.mc(n),t,a,r)}},b.h.va.foreach=!1,b.f.aa.foreach=!0,b.d.hasfocus={init:function(e,n,t){function a(a){e.__ko_hasfocusUpdating=!0;var r=e.ownerDocument;if("activeElement"in r){var i;try{i=r.activeElement}catch(o){i=r.body}a=i===e}r=n(),b.h.Ga(r,t,"hasfocus",a,!0),e.__ko_hasfocusLastValue=a,e.__ko_hasfocusUpdating=!1}var r=a.bind(null,!0),i=a.bind(null,!1);b.a.q(e,"focus",r),b.a.q(e,"focusin",r),b.a.q(e,"blur",i),b.a.q(e,"focusout",i)},update:function(e,n){var t=!!b.a.c(n());e.__ko_hasfocusUpdating||e.__ko_hasfocusLastValue===t||(t?e.focus():e.blur(),!t&&e.__ko_hasfocusLastValue&&e.ownerDocument.body.focus(),b.l.w(b.a.Fa,null,[e,t?"focusin":"focusout"]))}},b.h.ga.hasfocus=!0,b.d.hasFocus=b.d.hasfocus,b.h.ga.hasFocus=!0,b.d.html={init:function(){return{controlsDescendantBindings:!0}},update:function(e,n){b.a.Eb(e,n())}},h("if"),h("ifnot",!1,!0),h("with",!0,!1,function(e,n){return e.ac(n)});var _={};b.d.options={init:function(e){if("select"!==b.a.A(e))throw Error("options binding applies only to SELECT elements");for(;0<e.length;)e.remove(0);return{controlsDescendantBindings:!0}},update:function(n,t,a){function r(){return b.a.Ma(n.options,function(e){return e.selected})}function i(e,n,t){var a=typeof n;return"function"==a?n(e):"string"==a?e[n]:t}function o(e,t){if(h&&f)b.j.ja(n,b.a.c(a.get("value")),!0);else if(p.length){var r=0<=b.a.o(p,b.j.u(t[0]));b.a.wc(t[0],r),h&&!r&&b.l.w(b.a.Fa,null,[n,"change"])}}var u=n.multiple,c=0!=n.length&&u?n.scrollTop:null,s=b.a.c(t()),f=a.get("valueAllowUnset")&&a.has("value"),l=a.get("optionsIncludeDestroyed");t={};var d,p=[];f||(u?p=b.a.ib(r(),b.j.u):0<=n.selectedIndex&&p.push(b.j.u(n.options[n.selectedIndex]))),s&&("undefined"==typeof s.length&&(s=[s]),d=b.a.Ma(s,function(n){return l||n===e||null===n||!b.a.c(n._destroy)}),a.has("optionsCaption")&&(s=b.a.c(a.get("optionsCaption")),null!==s&&s!==e&&d.unshift(_)));var h=!1;t.beforeRemove=function(e){n.removeChild(e)},s=o,a.has("optionsAfterRender")&&"function"==typeof a.get("optionsAfterRender")&&(s=function(n,t){o(0,t),b.l.w(a.get("optionsAfterRender"),null,[t[0],n!==_?n:e])}),b.a.Db(n,d,function(t,r,o){return o.length&&(p=!f&&o[0].selected?[b.j.u(o[0])]:[],h=!0),r=n.ownerDocument.createElement("option"),t===_?(b.a.bb(r,a.get("optionsCaption")),b.j.ja(r,e)):(o=i(t,a.get("optionsValue"),t),b.j.ja(r,b.a.c(o)),t=i(t,a.get("optionsText"),o),b.a.bb(r,t)),[r]},t,s),b.l.w(function(){f?b.j.ja(n,b.a.c(a.get("value")),!0):(u?p.length&&r().length<p.length:p.length&&0<=n.selectedIndex?b.j.u(n.options[n.selectedIndex])!==p[0]:p.length||0<=n.selectedIndex)&&b.a.Fa(n,"change")}),b.a.Sc(n),c&&20<Math.abs(c-n.scrollTop)&&(n.scrollTop=c)}},b.d.options.zb=b.a.e.J(),b.d.selectedOptions={after:["options","foreach"],init:function(e,n,t){b.a.q(e,"change",function(){var a=n(),r=[];b.a.r(e.getElementsByTagName("option"),function(e){e.selected&&r.push(b.j.u(e))}),b.h.Ga(a,t,"selectedOptions",r)})},update:function(e,n){if("select"!=b.a.A(e))throw Error("values binding applies only to SELECT elements");var t=b.a.c(n()),a=e.scrollTop;t&&"number"==typeof t.length&&b.a.r(e.getElementsByTagName("option"),function(e){var n=0<=b.a.o(t,b.j.u(e));e.selected!=n&&b.a.wc(e,n)}),e.scrollTop=a}},b.h.ga.selectedOptions=!0,b.d.style={update:function(n,t){var a=b.a.c(t()||{});b.a.D(a,function(t,a){a=b.a.c(a),(null===a||a===e||!1===a)&&(a=""),n.style[t]=a})}},b.d.submit={init:function(e,n,t,a,r){if("function"!=typeof n())throw Error("The value for a submit binding must be a function");b.a.q(e,"submit",function(t){var a,i=n();try{a=i.call(r.$data,e)}finally{!0!==a&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}})}},b.d.text={init:function(){return{controlsDescendantBindings:!0}},update:function(e,n){b.a.bb(e,n())}},b.f.aa.text=!0,function(){if(n&&n.navigator)var t=function(e){return e?parseFloat(e[1]):void 0},a=n.opera&&n.opera.version&&parseInt(n.opera.version()),r=n.navigator.userAgent,i=t(r.match(/^(?:(?!chrome).)*version\/([^ ]*) safari/i)),o=t(r.match(/Firefox\/([^ ]*)/));if(10>b.a.C)var u=b.a.e.J(),c=b.a.e.J(),s=function(e){var n=this.activeElement;(n=n&&b.a.e.get(n,c))&&n(e)},f=function(e,n){var t=e.ownerDocument;b.a.e.get(t,u)||(b.a.e.set(t,u,!0),b.a.q(t,"selectionchange",s)),b.a.e.set(e,c,n)};b.d.textInput={init:function(n,t,r){function u(e,t){b.a.q(n,e,t)}function c(){var a=b.a.c(t());(null===a||a===e)&&(a=""),p!==e&&a===p?b.a.setTimeout(c,4):n.value!==a&&(h=a,n.value=a)}function s(){d||(p=n.value,d=b.a.setTimeout(l,4))}function l(){clearTimeout(d),p=d=e;var a=n.value;h!==a&&(h=a,b.h.Ga(t(),r,"textInput",a))}var d,p,h=n.value,v=9==b.a.C?s:l;10>b.a.C?(u("propertychange",function(e){"value"===e.propertyName&&v(e)}),8==b.a.C&&(u("keyup",l),u("keydown",l)),8<=b.a.C&&(f(n,v),u("dragend",s))):(u("input",l),5>i&&"textarea"===b.a.A(n)?(u("keydown",s),u("paste",s),u("cut",s)):11>a?u("keydown",s):4>o&&(u("DOMAutoComplete",l),u("dragdrop",l),u("drop",l))),u("change",l),b.m(c,null,{i:n})}},b.h.ga.textInput=!0,b.d.textinput={preprocess:function(e,n,t){t("textInput",e)}}}(),b.d.uniqueName={init:function(e,n){if(n()){var t="ko_unique_"+ ++b.d.uniqueName.Nc;b.a.vc(e,t)}}},b.d.uniqueName.Nc=0,b.d.value={after:["options","foreach"],init:function(e,n,t){if("input"!=e.tagName.toLowerCase()||"checkbox"!=e.type&&"radio"!=e.type){var a=["change"],r=t.get("valueUpdate"),i=!1,o=null;r&&("string"==typeof r&&(r=[r]),b.a.ta(a,r),a=b.a.Wb(a));var u=function(){o=null,i=!1;var a=n(),r=b.j.u(e);b.h.Ga(a,t,"value",r)};!b.a.C||"input"!=e.tagName.toLowerCase()||"text"!=e.type||"off"==e.autocomplete||e.form&&"off"==e.form.autocomplete||-1!=b.a.o(a,"propertychange")||(b.a.q(e,"propertychange",function(){i=!0}),b.a.q(e,"focus",function(){i=!1}),b.a.q(e,"blur",function(){i&&u()})),b.a.r(a,function(n){var t=u;b.a.sd(n,"after")&&(t=function(){o=b.j.u(e),b.a.setTimeout(u,0)},n=n.substring(5)),b.a.q(e,n,t)});var c=function(){var a=b.a.c(n()),r=b.j.u(e);if(null!==o&&a===o)b.a.setTimeout(c,0);else if(a!==r)if("select"===b.a.A(e)){var i=t.get("valueAllowUnset"),r=function(){b.j.ja(e,a,i)};r(),i||a===b.j.u(e)?b.a.setTimeout(r,0):b.l.w(b.a.Fa,null,[e,"change"])}else b.j.ja(e,a)};b.m(c,null,{i:e})}else b.La(e,{checkedValue:n})},update:function(){}},b.h.ga.value=!0,b.d.visible={update:function(e,n){var t=b.a.c(n()),a="none"!=e.style.display;t&&!a?e.style.display="":!t&&a&&(e.style.display="none")}},function(e){b.d[e]={init:function(n,t,a,r,i){return b.d.event.init.call(this,n,function(){var n={};return n[e]=t(),n},a,r,i)}}}("click"),b.P=function(){},b.P.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},b.P.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},b.P.prototype.makeTemplateSource=function(e,n){if("string"==typeof e){n=n||t;var a=n.getElementById(e);if(!a)throw Error("Cannot find template with ID "+e);return new b.v.n(a)}if(1==e.nodeType||8==e.nodeType)return new b.v.sa(e);throw Error("Unknown template type: "+e)},b.P.prototype.renderTemplate=function(e,n,t,a){return e=this.makeTemplateSource(e,a),this.renderTemplateSource(e,n,t,a)},b.P.prototype.isTemplateRewritten=function(e,n){return!1===this.allowTemplateRewriting?!0:this.makeTemplateSource(e,n).data("isRewritten")},b.P.prototype.rewriteTemplate=function(e,n,t){e=this.makeTemplateSource(e,t),n=n(e.text()),e.text(n),e.data("isRewritten",!0)},b.b("templateEngine",b.P),b.Ib=function(){function e(e,n,t,a){e=b.h.Ab(e);for(var r=b.h.va,i=0;i<e.length;i++){var o=e[i].key;if(r.hasOwnProperty(o)){var u=r[o];if("function"==typeof u){if(o=u(e[i].value))throw Error(o)}else if(!u)throw Error("This template engine does not support the '"+o+"' binding within its templates")}}return t="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+b.h.Xa(e,{valueAccessors:!0})+" } })()},'"+t.toLowerCase()+"')",a.createJavaScriptEvaluatorBlock(t)+n}var n=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,t=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{Tc:function(e,n,t){n.isTemplateRewritten(e,t)||n.rewriteTemplate(e,function(e){return b.Ib.jd(e,n)},t)},jd:function(a,r){return a.replace(n,function(n,t,a,i,o){return e(o,t,a,r)}).replace(t,function(n,t){return e(t,"<!-- ko -->","#comment",r)})},Jc:function(e,n){return b.N.yb(function(t,a){var r=t.nextSibling;r&&r.nodeName.toLowerCase()===n&&b.La(r,e,a)})}}}(),b.b("__tr_ambtns",b.Ib.Jc),function(){b.v={},b.v.n=function(e){if(this.n=e){var n=b.a.A(e);this.eb="script"===n?1:"textarea"===n?2:"template"==n&&e.content&&11===e.content.nodeType?3:4}},b.v.n.prototype.text=function(){var e=1===this.eb?"text":2===this.eb?"value":"innerHTML";if(0==arguments.length)return this.n[e];var n=arguments[0];"innerHTML"===e?b.a.Eb(this.n,n):this.n[e]=n};var n=b.a.e.J()+"_";b.v.n.prototype.data=function(e){return 1===arguments.length?b.a.e.get(this.n,n+e):void b.a.e.set(this.n,n+e,arguments[1])};var t=b.a.e.J();b.v.n.prototype.nodes=function(){var n=this.n;return 0==arguments.length?(b.a.e.get(n,t)||{}).mb||(3===this.eb?n.content:4===this.eb?n:e):void b.a.e.set(n,t,{mb:arguments[0]})},b.v.sa=function(e){this.n=e},b.v.sa.prototype=new b.v.n,b.v.sa.prototype.text=function(){if(0==arguments.length){var n=b.a.e.get(this.n,t)||{};return n.Jb===e&&n.mb&&(n.Jb=n.mb.innerHTML),n.Jb}b.a.e.set(this.n,t,{Jb:arguments[0]})},b.b("templateSources",b.v),b.b("templateSources.domElement",b.v.n),b.b("templateSources.anonymousTemplate",b.v.sa)}(),function(){function n(e,n,t){var a;for(n=b.f.nextSibling(n);e&&(a=e)!==n;)e=b.f.nextSibling(a),t(a,e)}function t(e,t){if(e.length){var a=e[0],r=e[e.length-1],i=a.parentNode,o=b.S.instance,u=o.preprocessNode;if(u){if(n(a,r,function(e,n){var t=e.previousSibling,i=u.call(o,e);i&&(e===a&&(a=i[0]||n),e===r&&(r=i[i.length-1]||t))}),e.length=0,!a)return;a===r?e.push(a):(e.push(a,r),b.a.Ba(e,i))}n(a,r,function(e){1!==e.nodeType&&8!==e.nodeType||b.Ub(t,e)}),n(a,r,function(e){1!==e.nodeType&&8!==e.nodeType||b.N.Cc(e,[t])}),b.a.Ba(e,i)}}function a(e){return e.nodeType?e:0<e.length?e[0]:null}function r(e,n,r,i,u){u=u||{};var c=(e&&a(e)||r||{}).ownerDocument,s=u.templateEngine||o;if(b.Ib.Tc(r,s,c),r=s.renderTemplate(r,i,u,c),"number"!=typeof r.length||0<r.length&&"number"!=typeof r[0].nodeType)throw Error("Template engine must return an array of DOM nodes");switch(c=!1,n){case"replaceChildren":b.f.fa(e,r),c=!0;break;case"replaceNode":b.a.uc(e,r),c=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+n)}return c&&(t(r,i),u.afterRender&&b.l.w(u.afterRender,null,[r,i.$data])),r}function i(e,n,t){return b.I(e)?e():"function"==typeof e?e(n,t):e}var o;b.Fb=function(n){if(n!=e&&!(n instanceof b.P))throw Error("templateEngine must inherit from ko.templateEngine");o=n},b.Cb=function(n,t,u,c,s){if(u=u||{},(u.templateEngine||o)==e)throw Error("Set a template engine before calling renderTemplate");if(s=s||"replaceChildren",c){var f=a(c);return b.B(function(){var e=t&&t instanceof b.R?t:new b.R(t,null,null,null,{exportDependencies:!0}),o=i(n,e.$data,e),e=r(c,s,o,e,u);"replaceNode"==s&&(c=e,f=a(c))},null,{ya:function(){return!f||!b.a.qb(f)},i:f&&"replaceNode"==s?f.parentNode:f})}return b.N.yb(function(e){b.Cb(n,t,u,e,"replaceNode")})},b.pd=function(n,a,o,u,c){function s(e,n){t(n,l),o.afterRender&&o.afterRender(n,e),l=null}function f(e,t){l=c.createChildContext(e,o.as,function(e){e.$index=t});var a=i(n,e,l);return r(null,"ignoreTargetNode",a,l,o)}var l;return b.B(function(){var n=b.a.c(a)||[];"undefined"==typeof n.length&&(n=[n]),n=b.a.Ma(n,function(n){return o.includeDestroyed||n===e||null===n||!b.a.c(n._destroy)}),b.l.w(b.a.Db,null,[u,n,f,o,s])},null,{i:u})};var u=b.a.e.J();b.d.template={init:function(e,n){var t=b.a.c(n());if("string"==typeof t||t.name)b.f.za(e);else{if("nodes"in t){if(t=t.nodes||[],b.I(t))throw Error('The "nodes" option must be a plain, non-observable array.')}else t=b.f.childNodes(e);t=b.a.nc(t),new b.v.sa(e).nodes(t)}return{controlsDescendantBindings:!0}},update:function(n,t,a,r,i){var o=t();t=b.a.c(o),a=!0,r=null,"string"==typeof t?t={}:(o=t.name,"if"in t&&(a=b.a.c(t["if"])),a&&"ifnot"in t&&(a=!b.a.c(t.ifnot))),"foreach"in t?r=b.pd(o||n,a&&t.foreach||[],t,n,i):a?(i="data"in t?i.ac(t.data,t.as):i,r=b.Cb(o||n,i,t,n)):b.f.za(n),i=r,(t=b.a.e.get(n,u))&&"function"==typeof t.k&&t.k(),b.a.e.set(n,u,i&&i.ca()?i:e)}},b.h.va.template=function(e){return e=b.h.Ab(e),1==e.length&&e[0].unknown||b.h.fd(e,"name")?null:"This template engine does not support anonymous templates nested within its templates"},b.f.aa.template=!0}(),b.b("setTemplateEngine",b.Fb),b.b("renderTemplate",b.Cb),b.a.hc=function(e,n,t){if(e.length&&n.length){var a,r,i,o,u;for(a=r=0;(!t||t>a)&&(o=e[r]);++r){for(i=0;u=n[i];++i)if(o.value===u.value){o.moved=u.index,u.moved=o.index,n.splice(i,1),a=i=0;break}a+=i}}},b.a.lb=function(){function e(e,n,t,a,r){var i,o,u,c,s,f=Math.min,l=Math.max,d=[],p=e.length,h=n.length,v=h-p||1,g=p+h+1;for(i=0;p>=i;i++)for(c=u,d.push(u=[]),s=f(h,i+v),o=l(0,i-1);s>=o;o++)u[o]=o?i?e[i-1]===n[o-1]?c[o-1]:f(c[o]||g,u[o-1]||g)+1:o+1:i+1;for(f=[],l=[],v=[],i=p,o=h;i||o;)h=d[i][o]-1,o&&h===d[i][o-1]?l.push(f[f.length]={status:t,value:n[--o],index:o}):i&&h===d[i-1][o]?v.push(f[f.length]={status:a,value:e[--i],index:i}):(--o,--i,r.sparse||f.push({status:"retained",value:n[o]}));return b.a.hc(v,l,!r.dontLimitMoves&&10*p),f.reverse()}return function(n,t,a){return a="boolean"==typeof a?{dontLimitMoves:a}:a||{},n=n||[],t=t||[],n.length<t.length?e(n,t,"added","deleted",a):e(t,n,"deleted","added",a)}}(),b.b("utils.compareArrays",b.a.lb),function(){function n(n,t,a,r,i){var o=[],u=b.B(function(){var e=t(a,i,b.a.Ba(o,n))||[];0<o.length&&(b.a.uc(o,e),r&&b.l.w(r,null,[a,e,i])),o.length=0,b.a.ta(o,e)},null,{i:n,ya:function(){return!b.a.Tb(o)}});return{ea:o,B:u.ca()?u:e}}var t=b.a.e.J(),a=b.a.e.J();b.a.Db=function(r,i,o,u,c){function s(e,n){x=d[n],m!==n&&(T[e]=x),x.tb(m++),b.a.Ba(x.ea,r),v.push(x),w.push(x)}function f(e,n){if(e)for(var t=0,a=n.length;a>t;t++)n[t]&&b.a.r(n[t].ea,function(a){e(a,t,n[t].ka)})}i=i||[],u=u||{};var l=b.a.e.get(r,t)===e,d=b.a.e.get(r,t)||[],p=b.a.ib(d,function(e){return e.ka}),h=b.a.lb(p,i,u.dontLimitMoves),v=[],g=0,m=0,y=[],w=[];i=[];for(var x,k,E,T=[],p=[],C=0;k=h[C];C++)switch(E=k.moved,k.status){case"deleted":E===e&&(x=d[g],x.B&&(x.B.k(),x.B=e),b.a.Ba(x.ea,r).length&&(u.beforeRemove&&(v.push(x),w.push(x),x.ka===a?x=null:i[C]=x),x&&y.push.apply(y,x.ea))),g++;break;case"retained":s(C,g++);break;case"added":E!==e?s(C,E):(x={ka:k.value,tb:b.O(m++)},v.push(x),w.push(x),l||(p[C]=x))}b.a.e.set(r,t,v),f(u.beforeMove,T),b.a.r(y,u.beforeRemove?b.ba:b.removeNode);for(var N,C=0,l=b.f.firstChild(r);x=w[C];C++){for(x.ea||b.a.extend(x,n(r,o,x.ka,c,x.tb)),g=0;h=x.ea[g];l=h.nextSibling,N=h,g++)h!==l&&b.f.kc(r,h,N);!x.ad&&c&&(c(x.ka,x.ea,x.tb),x.ad=!0)}for(f(u.beforeRemove,i),C=0;C<i.length;++C)i[C]&&(i[C].ka=a);f(u.afterMove,T),f(u.afterAdd,p)}}(),b.b("utils.setDomNodeChildrenFromArrayMapping",b.a.Db),b.X=function(){this.allowTemplateRewriting=!1},b.X.prototype=new b.P,b.X.prototype.renderTemplateSource=function(e,n,t,a){return(n=(9>b.a.C?0:e.nodes)?e.nodes():null)?b.a.W(n.cloneNode(!0).childNodes):(e=e.text(),b.a.na(e,a))},b.X.vb=new b.X,b.Fb(b.X.vb),b.b("nativeTemplateEngine",b.X),function(){b.xb=function(){var e=this.ed=function(){if(!r||!r.tmpl)return 0;try{if(0<=r.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(e){}return 1}();this.renderTemplateSource=function(n,a,i,o){if(o=o||t,i=i||{},2>e)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var u=n.data("precompiled");return u||(u=n.text()||"",u=r.template(null,"{{ko_with $item.koBindingContext}}"+u+"{{/ko_with}}"),n.data("precompiled",u)),n=[a.$data],a=r.extend({koBindingContext:a},i.templateOptions),a=r.tmpl(u,n,a),a.appendTo(o.createElement("div")),r.fragments={},a},this.createJavaScriptEvaluatorBlock=function(e){return"{{ko_code ((function() { return "+e+" })()) }}"},this.addTemplate=function(e,n){t.write("<script type='text/html' id='"+e+"'>"+n+"</script>")},e>0&&(r.tmpl.tag.ko_code={open:"__.push($1 || '');"},r.tmpl.tag.ko_with={open:"with($1) {",close:"} "})},b.xb.prototype=new b.P;var e=new b.xb;0<e.ed&&b.Fb(e),b.b("jqueryTmplTemplateEngine",b.xb)}()})}()}();