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