/*! * ------------------------------------------- START OF THIRD PARTY NOTICE ----------------------------------------- * * This file is based on or incorporates material from the projects listed below (Third Party IP). The original copyright notice and the license under which Microsoft received such Third Party IP, are set forth below. Such licenses and notices are provided for informational purposes only. Microsoft licenses the Third Party IP to you under the licensing terms for the Microsoft product. Microsoft reserves all other rights not expressly granted under this agreement, whether by implication, estoppel or otherwise. * * json2.js (2016-05-01) * https://github.com/douglascrockford/JSON-js * License: Public Domain * * Provided for Informational Purposes Only * * ----------------------------------------------- END OF THIRD PARTY NOTICE ------------------------------------------ */!function(e){function n(n){for(var t,r,o=n[0],a=n[1],s=0,u=[];s0){var e=o.slice();o=[],setTimeout((function(){for(var n=0,t=e.length;n"~"||-1!==e.indexOf(" "))return!1;var n=e.indexOf("@");if(-1===n||-1===e.indexOf(".",n))return!1;var t=e.split("@");if(t.length>2||t[0].length<1||t[1].length<2)return!1;if(a.ServerData.fApplyAsciiRegexOnInput){var r=new RegExp(/^[\x21-\x7E]+$/);return!!e.match(r)}return!0},isPhoneNumber:function(e){var n=e.replace(/\D+/g,"");return n.length>=4&&n.length<=50},isSkypeName:function(e){e=u.trim(e);var n=new RegExp(/^[a-zA-Z][a-zA-Z0-9.,\-_:']{0,128}$/);return!!e.match(n)},extractDomain:function(e,n,t){if(!u.isEmailAddress(e))return e;var r=u.trim(e).split("@")[1];return e=t?"@":"",n?e+r.slice(0,r.lastIndexOf(".")+1):e+r},extractDomainFromUrl:function(e){if(e){var n=document.createElement("a");return n.href=e,n.hostname}return""},extractOriginFromUrl:function(e){if(e){var n=document.createElement("a");n.href=e;var t=n.origin;return t||(t=n.protocol+"//"+n.hostname+(n.port?":"+n.port:"")),t}return""},doOriginsMatch:function(e,n){var t=u.extractOriginFromUrl(e);return u.extractOriginFromUrl(n)===t},capFirst:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},cleanseUsername:function(e,n){if(!e)return"";if(e=u.trim(e).toLowerCase(),!u.isEmailAddress(e)&&!u.isSkypeName(e)&&u.isPhoneNumber(e)){var t="";return n&&"+"===e.charAt(0)&&(t="+"),t+e.replace(/\D+/g,"")}return e},maskString:function(e,n){if(!e)return"";if(e.length<=2*n)return e;var t=e.length-2*n,r=Array(t+1).join("*");return e.substring(0,n)+r+e.substring(n+t)}},c=n.Array={first:r.utils.arrayFirst,forEach:r.utils.arrayForEach,map:r.utils.arrayMap,removeItem:r.utils.arrayRemoveItem,arrayFilter:r.utils.arrayFilter,findIndex:function(e,n){if(e&&"object"==typeof e&&e.length)for(var t=0;t=10){var n=P.getIEVersion();d=null!==n&&n>=12}}return d},isChrome:function(){return null===g&&(g=navigator.userAgent.toLowerCase().indexOf("chrome")>-1),g},isFirefoxNewerThan:function(e){if(p[e]===undefined){var n=P.getFirefoxVersion();p[e]=n&&n>e}return p[e]},isChromeNewerThan:function(e){if(h[e]===undefined){var n=P.getChromeVersion();h[e]=n&&n>e}return h[e]},isIOSSafari:function(){if(null===v){var e=l.navigator.userAgent.toLowerCase();v=/safari/.test(e)&&/iphone|ipod|ipad/.test(e)&&!l.MSStream}return v},isIOSUIWebView:function(){if(null===m){var e=l.navigator.userAgent.toLowerCase();m=!1===/safari/.test(e)&&/iphone|ipod|ipad/.test(e)&&!l.MSStream}return m},isQtCarBrowser:function(){return null===b&&(b=navigator.userAgent.toLowerCase().indexOf("qtcarbrowser")>-1),b},isEdgeClientBrowser:function(){return null===y&&(y=navigator.userAgent.toLowerCase().indexOf("edgeclient/")>-1),y},isOnTouchStartEventSupported:function(){return"ontouchstart"in document.documentElement},getIEVersion:function(){var e=l.navigator.userAgent,n=e.indexOf("MSIE ");if(n>0)return parseInt(e.substring(n+5,e.indexOf(".",n)),10);if(e.indexOf("Trident/")>0){var t=e.indexOf("rv:");return parseInt(e.substring(t+3,e.indexOf(".",t)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):null},getFirefoxVersion:function(){var e=l.navigator.userAgent.match(/(firefox(?=\/))\/?\s*(\d+)/i);return e&&3===e.length&&"firefox"===e[1].toLowerCase()?parseInt(e[2]):null},getChromeVersion:function(){var e=l.navigator.userAgent.match(/(chrome(?=\/))\/?\s*(\d+)/i);return e&&3===e.length&&"chrome"===e[1].toLowerCase()?parseInt(e[2]):null},getWindowsVersion:function(){return null!==new RegExp("Windows NT ([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent)?parseFloat(RegExp.$1):null},htmlEscape:function(e){if(!e)return"";var n=document.createElement("textarea");return n.innerText=e,n.innerHTML},htmlUnescape:function(e){if(!e)return"";if(e.match(/<[^<>]+>/))return e;var n=document.createElement("textarea");return n.innerHTML=e,n.value},getStackSize:function(e){var n=0,t=null==e;try{!function r(){n++,(t||n<=e)&&r()}()}catch(r){}return n},getAnimationEndEventName:function(){var e=document.createElement("div"),n={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(var t in n)if(e.style[t]!==undefined)return n[t];return""},isStackSizeGreaterThan:function(e){return e=e||0,P.getStackSize(e)>e},isSvgImgSupported:function(){return null===T&&(T=document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")),T},isPlaceholderAttributeAllowed:function(e){return null===E&&(E=P.isChromeNewerThan(16)||P.isEdge()||P.isFirefoxNewerThan(14)||e&&P.isIOSUIWebView()||P.isIOSSafari()||P.isQtCarBrowser()),E},isCSSAnimationSupported:function(){var e=!1,n=document.createElement("div");(e=n.style.animationName!==undefined)||(e=!!c.first(["Webkit","Moz","O"],(function(e){return n.style[e+"AnimationName"]!==undefined})));return e},isStyleSupported:function(e){return e in document.documentElement.style},isCORSSupported:function(){return l.XDomainRequest||l.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest},isHistorySupported:function(){if(null===C){if(C=l.history&&l.history.pushState&&"undefined"!=typeof l.history.state&&"undefined"!=typeof l.onpopstate)try{l.history.replaceState("__history_test",""),("__history_test"!==l.history.state||P.isEdgeClientBrowser())&&(C=!1)}catch(e){C=!1}}return C},isFidoSupportedAsync:function(e){return l.navigator.credentials!==undefined&&l.navigator.credentials.create!==undefined&&l.navigator.credentials.get!==undefined&&l.PublicKeyCredential!==undefined&&l.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable!==undefined?l.PublicKeyCredential.isExternalCTAP2SecurityKeySupported?a.newPromiseWithTimeout(l.PublicKeyCredential.isExternalCTAP2SecurityKeySupported,r.PromiseTimeout,!1):o.resolve(e):o.resolve(!1)},isChangingInputTypeSupported:function(){return!P.isIEOlderThan(9)},isHighContrast:function(){if(null===S){var e=document.createElement("span");e.style.borderLeftColor="red",e.style.borderRightColor="blue",e.style.position="absolute",e.style.top="-999px",document.body.appendChild(e);var n=P.getComputedStyle(e);S=n.borderLeftColor===n.borderRightColor,document.body.removeChild(e)}return S},getHighContrastTheme:function(){if(P.isHighContrast()){var e=document.getElementsByTagName("body")[0],n=P.getComputedStyle(e);if(n.backgroundColor){var t=n.backgroundColor.toLowerCase().replace(new RegExp(" ","g"),"");if("rgb(0,0,0)"===t||"#000000"===t||"#000"===t||("rgb(32,32,32)"===t||"#202020"===t)||("rgb(45,50,54)"===t||"#2d3236"===t))return"black";if("rgb(255,255,255)"===t||"#ffffff"===t||"#fff"===t||("rgb(255,250,239)"===t||"#fffaef"===t))return"white"}}},getComputedStyle:function(e){return document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(e,null):e.currentStyle?e.currentStyle:{}},history:{pushState:function(e,n){P.isHistorySupported()&&l.history.pushState(e,n)},replaceState:function(e,n){P.isHistorySupported()&&l.history.replaceState(e,n)}},addEventListener:function(e,n,t,r){e.addEventListener?e.addEventListener(n,t,r):e.attachEvent&&e.attachEvent("on"+n,t)},removeEventListener:function(e,n,t,r){e.removeEventListener?e.removeEventListener(n,t,r):e.detachEvent&&e.detachEvent("on"+n,t)},getEventTarget:function(e){return e?e.target?e.target:e.srcElement?e.srcElement:null:null}},A=n.QueryString={parse:function(e){var n=e,t=null,r=null;if(e){var i=e.indexOf("?"),o=e.indexOf("#");-1!==o&&(-1===i||or?e:a},remove:function(e,n){var t=A.parse(e);t.query=t.query||{};var r=s.findOwnProperty(t.query,n,!0);return r&&delete t.query[r],A.join(t)},extract:function(e,n){n||""===n||(n=document.location.search);var t=A.parse(n);t.query=t.query||{};var r=s.findOwnProperty(t.query,e,!0);return r?t.query[r]:""},appendOrReplaceFromCurrentUrl:function(e,n){var t=A.extract(n);return t?A.appendOrReplace(e,n,t):e},stripQueryStringAndFragment:function(e){return A.parse(e).originAndPath}},_=n.Cookies={expireDate:"Thu, 30-Oct-1980 16:00:00 GMT",persistTTLDays:390,cookieSafeRegex:/^[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]+$/,enabled:function(){var e="G"+(new Date).getTime();_.write("CkTst",e);var n=!!_.getCookie("CkTst");return _.remove("CkTst"),n},getCookies:function(){return u.doubleSplit(document.cookie,";","=",!1,u.trim)},getCookie:function(e){var n=_.getCookies();return n[e]?n[e]:null},getObject:function(e){var n=_.getCookie(e)||"";return u.doubleSplit(n,"&","=")},remove:function(e,n,t){var r=n||document.location.hostname,i=r.split("."),o=i.length,a=i[o-2]+"."+i[o-1],s=t||"/",c="https:"===document.location.protocol,l=c?";secure":"",d=_.getDefaultSameSiteAttribute(c);document.cookie=u.format("{0}= ;domain=.{1};path={2};expires={3}{4}{5}",e,a,s,_.expireDate,l,d),document.cookie=u.format("{0}= ;domain=.{1};path={2};expires={3}{4}{5}",e,r,s,_.expireDate,l,d)},write:function(e,n,t,r,i,o,a,s,u){var c=o?".":"",l=document.domain.split(".");i&&l.splice(0,Math.max(0,l.length-2));var d=c+l.join(".");_.writeWithExpiration(e,n,t,r?_.getPersistDate():null,d,a,s,u)},writeWithExpiration:function(e,n,t,r,i,o,a,c){if(""===n)_.remove(e,i);else{"object"==typeof n&&(n=s.join(n,"&","="));var l,d=r?";expires="+r:"",f=i?";domain="+i:"",p=o||"/",h=t?";secure":"";l=a&&"none"!==a.toLowerCase()?";SameSite="+a:_.getDefaultSameSiteAttribute(t);var g=u.format("{0};path={1}{2}{3}{4}",f,p,d,h,l);if(c){for(var v=4e3-g.length-e.length-1,m=Math.ceil(n.length/v),b=_.getCookies(),y=0;yS.a.A(n,e)&&n.push(e)})),n},Mb:function(e,n,t){var r=[];if(e)for(var i=0,o=e.length;ir?t&&e.push(n):t||e.splice(r,1)},Ba:o,extend:n,setPrototypeOf:t,Ab:o?t:n,P:e,Ga:function(e,n,t){if(!e)return e;var r,o={};for(r in e)i.call(e,r)&&(o[r]=n.call(t,e[r],r,e));return o},Tb:function(e){for(;e.firstChild;)S.removeNode(e.firstChild)},Yb:function(e){for(var n=((e=S.a.la(e))[0]&&e[0].ownerDocument||u).createElement("div"),t=0,r=e.length;tm?e.setAttribute("selected",n):e.selected=n},Db:function(e){return null===e||e===a?"":e.trim?e.trim():e.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ud:function(e,n){return e=e||"",!(n.length>e.length)&&e.substring(0,n.length)===n},vd:function(e,n){if(e===n)return!0;if(11===e.nodeType)return!1;if(n.contains)return n.contains(1!==e.nodeType?e.parentNode:e);if(n.compareDocumentPosition)return 16==(16&n.compareDocumentPosition(e));for(;e&&e!=n;)e=e.parentNode;return!!e},Sb:function(e){return S.a.vd(e,e.ownerDocument.documentElement)},kd:function(e){return!!S.a.Lb(e,S.a.Sb)},R:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},Ac:function(e){return S.onError?function(){try{return e.apply(this,arguments)}catch(n){throw S.onError&&S.onError(n),n}}:e},setTimeout:function(e,n){return setTimeout(S.a.Ac(e),n)},Gc:function(e){setTimeout((function(){throw S.onError&&S.onError(e),e}),0)},B:function(e,n,t){var r=S.a.Ac(t);if(t=v[n],S.options.useOnlyNativeEvents||t||!l)if(t||"function"!=typeof e.addEventListener){if("undefined"==typeof e.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var i=function(n){r.call(e,n)},o="on"+n;e.attachEvent(o,i),S.a.K.za(e,(function(){e.detachEvent(o,i)}))}else e.addEventListener(n,r,!1);else g||(g="function"==typeof l(e).on?"on":"bind"),l(e)[g](n,r)},Fb:function(e,n){if(!e||!e.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var t;if(t=!("input"!==S.a.R(e)||!e.type||"click"!=n.toLowerCase())&&("checkbox"==(t=e.type)||"radio"==t),S.options.useOnlyNativeEvents||!l||t)if("function"==typeof u.createEvent){if("function"!=typeof e.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");(t=u.createEvent(h[n]||"HTMLEvents")).initEvent(n,!0,!0,s,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(t)}else if(t&&e.click)e.click();else{if("undefined"==typeof e.fireEvent)throw Error("Browser doesn't support triggering events");e.fireEvent("on"+n)}else l(e).trigger(n)},f:function(e){return S.O(e)?e():e},bc:function(e){return S.O(e)?e.v():e},Eb:function(e,n,t){var i;n&&("object"==typeof e.classList?(i=e.classList[t?"add":"remove"],S.a.D(n.match(b),(function(n){i.call(e.classList,n)}))):"string"==typeof e.className.baseVal?r(e.className,"baseVal",n,t):r(e,"className",n,t))},Bb:function(e,n){var t=S.a.f(n);null!==t&&t!==a||(t="");var r=S.h.firstChild(e);!r||3!=r.nodeType||S.h.nextSibling(r)?S.h.va(e,[e.ownerDocument.createTextNode(t)]):r.data=t,S.a.Ad(e)},Yc:function(e,n){if(e.name=n,7>=m)try{var r=e.name.replace(/[&<>'"]/g,(function(e){return"&#"+e.charCodeAt(0)+";"}));e.mergeAttributes(u.createElement(""),!1)}catch(t){}},Ad:function(e){9<=m&&(e=1==e.nodeType?e:e.parentNode).style&&(e.style.zoom=e.style.zoom)},wd:function(e){if(m){var n=e.style.width;e.style.width=0,e.style.width=n}},Pd:function(e,n){e=S.a.f(e),n=S.a.f(n);for(var t=[],r=e;r<=n;r++)t.push(r);return t},la:function(e){for(var n=[],t=0,r=e.length;t",""],tbody:g,tfoot:g,tr:[2,"","
"],td:v=[3,"","
"],th:v,option:m=[1,""],optgroup:m},y=8>=S.a.W,S.a.ua=function(e,n){var t;if(l){if(l.parseHTML)t=l.parseHTML(e,n)||[];else if((t=l.clean([e],n))&&t[0]){for(var r=t[0];r.parentNode&&11!==r.parentNode.nodeType;)r=r.parentNode;r.parentNode&&r.parentNode.removeChild(r)}}else{(t=n)||(t=u),r=t.parentWindow||t.defaultView||s;var i,o=S.a.Db(e).toLowerCase(),a=t.createElement("div");for(i=(o=o.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&b[o[1]]||h,o=i[0],i="ignored
"+i[1]+e+i[2]+"
","function"==typeof r.innerShiv?a.appendChild(r.innerShiv(i)):(y&&t.body.appendChild(a),a.innerHTML=i,y&&a.parentNode.removeChild(a));o--;)a=a.lastChild;t=S.a.la(a.lastChild.childNodes)}return t},S.a.Md=function(e,n){var t=S.a.ua(e,n);return t.length&&t[0].parentElement||S.a.Yb(t)},S.a.fc=function(e,n){if(S.a.Tb(e),null!==(n=S.a.f(n))&&n!==a)if("string"!=typeof n&&(n=n.toString()),l)l(e).html(n);else for(var t=S.a.ua(n,e.ownerDocument),r=0;rn){if(5e3<=++i){o=r,S.a.Gc(Error("'Too much recursion' after processing "+i+" task groups."));break}n=r}try{e()}catch(a){S.a.Gc(a)}}}function n(){e(),o=r=t.length=0}var t=[],r=0,i=1,o=0;return{scheduler:s.MutationObserver?function(e){var n=u.createElement("div");return new MutationObserver(e).observe(n,{attributes:!0}),function(){n.classList.toggle("foo")}}(n):u&&"onreadystatechange"in u.createElement("script")?function(e){var n=u.createElement("script");n.onreadystatechange=function(){n.onreadystatechange=null,u.documentElement.removeChild(n),n=null,e()},u.documentElement.appendChild(n)}:function(e){setTimeout(e,0)},zb:function(e){return r||S.na.scheduler(n),t[r++]=e,i++},cancel:function(e){(e-=i-r)>=o&&et[0]?o+t[0]:t[0]),o),o=1===a?o:Math.min(n+(t[1]||0),o),a=n+a-2,l=Math.max(o,a);for(var d=[],f=[],p=2;nn;n++)e=e();return e}))},S.toJSON=function(e,n,t){return e=S.ad(e),S.a.hc(e,n,t)},n.prototype={constructor:n,save:function(e,n){var t=S.a.A(this.keys,e);0<=t?this.values[t]=n:(this.keys.push(e),this.values.push(n))},get:function(e){return 0<=(e=S.a.A(this.keys,e))?this.values[e]:a}}}(),S.b("toJS",S.ad),S.b("toJSON",S.toJSON),S.Wd=function(e,n,t){function r(n){var r=S.xb(e,t).extend({ma:"always"}),i=r.subscribe((function(e){e&&(i.s(),n(e))}));return r.notifySubscribers(r.v()),i}return"function"!=typeof Promise||n?r(n.bind(t)):new Promise(r)},S.b("when",S.Wd),S.w={M:function(e){switch(S.a.R(e)){case"option":return!0===e.__ko__hasDomDataOptionValue__?S.a.g.get(e,S.c.options.$b):7>=S.a.W?e.getAttributeNode("value")&&e.getAttributeNode("value").specified?e.value:e.text:e.value;case"select":return 0<=e.selectedIndex?S.w.M(e.options[e.selectedIndex]):a;default:return e.value}},cb:function(e,n,t){switch(S.a.R(e)){case"option":"string"==typeof n?(S.a.g.set(e,S.c.options.$b,a),"__ko__hasDomDataOptionValue__"in e&&delete e.__ko__hasDomDataOptionValue__,e.value=n):(S.a.g.set(e,S.c.options.$b,n),e.__ko__hasDomDataOptionValue__=!0,e.value="number"==typeof n?n:"");break;case"select":""!==n&&null!==n||(n=a);for(var r,i=-1,o=0,s=e.options.length;o=u){t.push(n&&s.length?{key:n,value:s.join("")}:{unknown:n||s.join("")}),n=u=0,s=[];continue}}else if(58===d){if(!u&&!n&&1===s.length){n=s.pop();continue}}else{if(47===d&&1arguments.length){if(!(n=u.body))throw Error("ko.applyBindings: could not find document.body; has the document been loaded?")}else if(!n||1!==n.nodeType&&8!==n.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");f(h(e,t),n)},S.Dc=function(e){return!e||1!==e.nodeType&&8!==e.nodeType?a:S.Td(e)},S.Ec=function(e){return(e=S.Dc(e))?e.$data:a},S.b("bindingHandlers",S.c),S.b("bindingEvent",S.i),S.b("bindingEvent.subscribe",S.i.subscribe),S.b("bindingEvent.startPossiblyAsyncContentBinding",S.i.Cb),S.b("applyBindings",S.vc),S.b("applyBindingsToDescendants",S.Oa),S.b("applyBindingAccessorsToNode",S.ib),S.b("applyBindingsToNode",S.ld),S.b("contextFor",S.Dc),S.b("dataFor",S.Ec)}(),function(e){function n(n,r){var a,s=Object.prototype.hasOwnProperty.call(i,n)?i[n]:e;s?s.subscribe(r):((s=i[n]=new S.T).subscribe(r),t(n,(function(e,t){var r=!(!t||!t.synchronous);o[n]={definition:e,Gd:r},delete i[n],a||r?s.notifySubscribers(e):S.na.zb((function(){s.notifySubscribers(e)}))})),a=!0)}function t(e,n){r("getConfig",[e],(function(t){t?r("loadComponent",[e,t],(function(e){n(e,t)})):n(null,null)}))}function r(n,t,i,o){o||(o=S.j.loaders.slice(0));var a=o.shift();if(a){var s=a[n];if(s){var u=!1;if(s.apply(a,t.concat((function(e){u?i(null):null!==e?i(e):r(n,t,i,o)})))!==e&&(u=!0,!a.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else r(n,t,i,o)}else i(null)}var i={},o={};S.j={get:function(t,r){var i=Object.prototype.hasOwnProperty.call(o,t)?o[t]:e;i?i.Gd?S.u.G((function(){r(i.definition)})):S.na.zb((function(){r(i.definition)})):n(t,r)},Bc:function(e){delete o[e]},oc:r},S.j.loaders=[],S.b("components",S.j),S.b("components.get",S.j.get),S.b("components.clearCachedDefinition",S.j.Bc)}(),function(){function e(e,n,t,r){function o(){0==--s&&r(a)}var a={},s=2,u=t.template;t=t.viewModel,u?i(n,u,(function(n){S.j.oc("loadTemplate",[e,n],(function(e){a.template=e,o()}))})):o(),t?i(n,t,(function(n){S.j.oc("loadViewModel",[e,n],(function(e){a[c]=e,o()}))})):o()}function t(e){switch(S.a.R(e)){case"script":return S.a.ua(e.text);case"textarea":return S.a.ua(e.value);case"template":if(r(e.content))return S.a.Ca(e.content.childNodes)}return S.a.Ca(e.childNodes)}function r(e){return s.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function i(e,t,r){"string"==typeof t.require?n||s.require?(n||s.require)([t.require],(function(e){e&&"object"==typeof e&&e.Xd&&e["default"]&&(e=e["default"]),r(e)})):e("Uses require, but no AMD loader is present"):r(t)}function o(e){return function(n){throw Error("Component '"+e+"': "+n)}}var a={};S.j.register=function(e,n){if(!n)throw Error("Invalid configuration for "+e);if(S.j.tb(e))throw Error("Component "+e+" is already registered");a[e]=n},S.j.tb=function(e){return Object.prototype.hasOwnProperty.call(a,e)},S.j.unregister=function(e){delete a[e],S.j.Bc(e)},S.j.Fc={getConfig:function(e,n){n(S.j.tb(e)?a[e]:null)},loadComponent:function(n,t,r){var a=o(n);i(a,t,(function(t){e(n,a,t,r)}))},loadTemplate:function(e,n,i){if(e=o(e),"string"==typeof n)i(S.a.ua(n));else if(n instanceof Array)i(n);else if(r(n))i(S.a.la(n.childNodes));else if(n.element)if(n=n.element,s.HTMLElement?n instanceof HTMLElement:n&&n.tagName&&1===n.nodeType)i(t(n));else if("string"==typeof n){var a=u.getElementById(n);a?i(t(a)):e("Cannot find element with ID "+n)}else e("Unknown element type: "+n);else e("Unknown template value: "+n)},loadViewModel:function(e,n,t){!function r(e,n,t){if("function"==typeof n)t((function(e){return new n(e)}));else if("function"==typeof n[c])t(n[c]);else if("instance"in n){var i=n.instance;t((function(){return i}))}else"viewModel"in n?r(e,n.viewModel,t):e("Unknown viewModel value: "+n)}(o(e),n,t)}};var c="createViewModel";S.b("components.register",S.j.register),S.b("components.isRegistered",S.j.tb),S.b("components.unregister",S.j.unregister),S.b("components.defaultLoader",S.j.Fc),S.j.loaders.push(S.j.Fc),S.j.dd=a}(),function(){function e(e,t){if(r=e.getAttribute("params")){var r=n.parseBindingsString(r,t,e,{valueAccessors:!0,bindingParams:!0}),i=(r=S.a.Ga(r,(function(n){return S.o(n,null,{l:e})})),S.a.Ga(r,(function(n){var t=n.v();return n.ja()?S.o({read:function(){return S.a.f(n())},write:S.Za(t)&&function(e){n()(e)},l:e}):t})));return Object.prototype.hasOwnProperty.call(i,"$raw")||(i.$raw=r),i}return{$raw:{}}}S.j.getComponentNameForNode=function(e){var n=S.a.R(e);if(S.j.tb(n)&&(-1!=n.indexOf("-")||"[object HTMLUnknownElement]"==""+e||8>=S.a.W&&e.tagName===n))return n},S.j.tc=function(n,t,r,i){if(1===t.nodeType){var o=S.j.getComponentNameForNode(t);if(o){if((n=n||{}).component)throw Error('Cannot use the "component" binding on a custom element matching a component');var a={name:o,params:e(t,r)};n.component=i?function(){return a}:a}}return n};var n=new S.ga;9>S.a.W&&(S.j.register=function(e){return function(n){return e.apply(this,arguments)}}(S.j.register),u.createDocumentFragment=function(e){return function(){var n,t=e(),r=S.j.dd;for(n in r);return t}}(u.createDocumentFragment))}(),function(){var e=0;S.c.component={init:function(n,t,r,i,o){function a(){var e=s&&s.dispose;"function"==typeof e&&e.call(s),c&&c.s(),u=s=c=null}var s,u,c,l=S.a.la(S.h.childNodes(n));return S.h.Ea(n),S.a.K.za(n,a),S.o((function(){var r,i,d=S.a.f(t());if("string"==typeof d?r=d:(r=S.a.f(d.name),i=S.a.f(d.params)),!r)throw Error("No component name specified");var f=S.i.Cb(n,o),p=u=++e;S.j.get(r,(function(e){if(u===p){if(a(),!e)throw Error("Unknown component '"+r+"'");!function(e,n,t){if(!(n=n.template))throw Error("Component '"+e+"' has no template");e=S.a.Ca(n),S.h.va(t,e)}(r,e,n);var t=function(e,n,t){var r=e.createViewModel;return r?r.call(e,n,t):n}(e,i,{element:n,templateNodes:l});e=f.createChildContext(t,{extend:function(e){e.$component=t,e.$componentTemplateNodes=l}}),t&&t.koDescendantsComplete&&(c=S.i.subscribe(n,S.i.pa,t.koDescendantsComplete,t)),s=t,S.Oa(e,n)}}))}),null,{l:n}),{controlsDescendantBindings:!0}}},S.h.ea.component=!0}();var N={"class":"className","for":"htmlFor"};S.c.attr={update:function(e,n){var t=S.a.f(n())||{};S.a.P(t,(function(n,t){t=S.a.f(t);var r=n.indexOf(":"),i=(r="lookupNamespaceURI"in e&&0=S.a.W&&n in N?(n=N[n],i?e.removeAttribute(n):e[n]=t):i||(r?e.setAttributeNS(r,n,t):e.setAttribute(n,t)),"name"===n&&S.a.Yc(e,i?"":t)}))}},S.c.checked={after:["value","attr"],init:function(e,n,t){function r(){var r=e.checked,u=i();if(!S.S.Ya()&&(r||!s&&!S.S.qa())){var d=S.u.G(n);if(c){var p=l?d.v():d,h=f;f=u,h!==u?r&&(S.a.Na(p,u,!0),S.a.Na(p,h,!1)):S.a.Na(p,u,r),l&&S.Za(d)&&d(p)}else o&&(u===a?u=r:r||(u=a)),S.m.eb(d,t,"checked",u,!0)}}var i=S.xb((function(){return t.has("checkedValue")?S.a.f(t.get("checkedValue")):d?t.has("value")?S.a.f(t.get("value")):e.value:void 0})),o="checkbox"==e.type,s="radio"==e.type;if(o||s){var u=n(),c=o&&S.a.f(u)instanceof Array,l=!(c&&u.push&&u.splice),d=s||c,f=c?i():a;s&&!e.name&&S.c.uniqueName.init(e,(function(){return!0})),S.o(r,null,{l:e}),S.a.B(e,"click",r),S.o((function(){var t=S.a.f(n()),r=i();c?(e.checked=0<=S.a.A(t,r),f=r):e.checked=o&&r===a?!!t:i()===t}),null,{l:e}),u=a}}},S.m.wa.checked=!0,S.c.checkedValue={update:function(e,n){e.value=S.a.f(n())}},S.c["class"]={update:function(e,n){var t=S.a.Db(S.a.f(n()));S.a.Eb(e,e.__ko__cssValue,!1),e.__ko__cssValue=t,S.a.Eb(e,t,!0)}},S.c.css={update:function(e,n){var t=S.a.f(n());null!==t&&"object"==typeof t?S.a.P(t,(function(n,t){t=S.a.f(t),S.a.Eb(e,n,t)})):S.c["class"].update(e,n)}},S.c.enable={update:function(e,n){var t=S.a.f(n());t&&e.disabled?e.removeAttribute("disabled"):t||e.disabled||(e.disabled=!0)}},S.c.disable={update:function(e,n){S.c.enable.update(e,(function(){return!S.a.f(n())}))}},S.c.event={init:function(e,n,t,r,i){var o=n()||{};S.a.P(o,(function(o){"string"==typeof o&&S.a.B(e,o,(function(e){var a,s=n()[o];if(s){try{var u=S.a.la(arguments);r=i.$data,u.unshift(r),a=s.apply(r,u)}finally{!0!==a&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1===t.get(o+"Bubble")&&(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}}))}))}},S.c.foreach={Rc:function(e){return function(){var n=e(),t=S.a.bc(n);return t&&"number"!=typeof t.length?(S.a.f(n),{foreach:t.data,as:t.as,noChildContext:t.noChildContext,includeDestroyed:t.includeDestroyed,afterAdd:t.afterAdd,beforeRemove:t.beforeRemove,afterRender:t.afterRender,beforeMove:t.beforeMove,afterMove:t.afterMove,templateEngine:S.ba.Ma}):{foreach:n,templateEngine:S.ba.Ma}}},init:function(e,n){return S.c.template.init(e,S.c.foreach.Rc(n))},update:function(e,n,t,r,i){return S.c.template.update(e,S.c.foreach.Rc(n),t,r,i)}},S.m.Ra.foreach=!1,S.h.ea.foreach=!0,S.c.hasfocus={init:function(e,n,t){function r(r){e.__ko_hasfocusUpdating=!0;var i=e.ownerDocument;if("activeElement"in i){var o;try{o=i.activeElement}catch(a){o=i.body}r=o===e}i=n(),S.m.eb(i,t,"hasfocus",r,!0),e.__ko_hasfocusLastValue=r,e.__ko_hasfocusUpdating=!1}var i=r.bind(null,!0),o=r.bind(null,!1);S.a.B(e,"focus",i),S.a.B(e,"focusin",i),S.a.B(e,"blur",o),S.a.B(e,"focusout",o),e.__ko_hasfocusLastValue=!1},update:function(e,n){var t=!!S.a.f(n());e.__ko_hasfocusUpdating||e.__ko_hasfocusLastValue===t||(t?e.focus():e.blur(),!t&&e.__ko_hasfocusLastValue&&e.ownerDocument.body.focus(),S.u.G(S.a.Fb,null,[e,t?"focusin":"focusout"]))}},S.m.wa.hasfocus=!0,S.c.hasFocus=S.c.hasfocus,S.m.wa.hasFocus="hasfocus",S.c.html={init:function(){return{controlsDescendantBindings:!0}},update:function(e,n){S.a.fc(e,n())}},function(){function e(e,n,t){S.c[e]={init:function(e,r,i,o,a){var s,u,c,l,d,f={};if(n){o=i.get("as");var p=i.get("noChildContext");f={as:o,noChildContext:p,exportDependencies:d=!(o&&p)}}return l=(c="render"==i.get("completeOn"))||i.has(S.i.pa),S.o((function(){var i,o=S.a.f(r()),p=!t!=!o,h=!u;(d||p!==s)&&(l&&(a=S.i.Cb(e,a)),p&&(n&&!d||(f.dataDependency=S.S.o()),i=n?a.createChildContext("function"==typeof o?o:r,f):S.S.qa()?a.extend(null,f):a),h&&S.S.qa()&&(u=S.a.Ca(S.h.childNodes(e),!0)),p?(h||S.h.va(e,S.a.Ca(u)),S.Oa(i,e)):(S.h.Ea(e),c||S.i.ma(e,S.i.H)),s=p)}),null,{l:e}),{controlsDescendantBindings:!0}}},S.m.Ra[e]=!1,S.h.ea[e]=!0}e("if"),e("ifnot",!1,!0),e("with",!0)}(),S.c["let"]={init:function(e,n,t,r,i){return n=i.extend(n),S.Oa(n,e),{controlsDescendantBindings:!0}}},S.h.ea["let"]=!0;var D={};S.c.options={init:function(e){if("select"!==S.a.R(e))throw Error("options binding applies only to SELECT elements");for(;0r)var c=S.a.g.Z(),l=S.a.g.Z(),d=function(e){var n=this.activeElement;(n=n&&S.a.g.get(n,l))&&n(e)},f=function(e,n){var t=e.ownerDocument;S.a.g.get(t,c)||(S.a.g.set(t,c,!0),S.a.B(t,"selectionchange",d)),S.a.g.set(e,l,n)};S.c.textInput={init:function(o,s,u){function c(e,n){S.a.B(o,e,n)}function l(){p||(h=o.value,p=S.a.setTimeout(d,4))}function d(){clearTimeout(p),h=p=a;var e=o.value;g!==e&&(g=e,S.m.eb(s(),u,"textInput",e))}var p,h,g=o.value,v=9==S.a.W?l:d,m=!1;r&&c("keypress",d),11>r&&c("propertychange",(function(e){m||"value"!==e.propertyName||v(e)})),8==r&&(c("keyup",d),c("keydown",d)),f&&(f(o,v),c("dragend",l)),(!r||9<=r)&&c("input",v),5>n&&"textarea"===S.a.R(o)?(c("keydown",l),c("paste",l),c("cut",l)):11>e?c("keydown",l):4>t?(c("DOMAutoComplete",d),c("dragdrop",d),c("drop",d)):i&&"number"===o.type&&c("keydown",l),c("change",d),c("blur",d),S.o((function b(){var e=S.a.f(s());null!==e&&e!==a||(e=""),h!==a&&e===h?S.a.setTimeout(b,4):o.value!==e&&(m=!0,o.value=e,m=!1,g=o.value)}),null,{l:o})}},S.m.wa.textInput=!0,S.c.textinput={preprocess:function(e,n,t){t("textInput",e)}}}(),S.c.uniqueName={init:function(e,n){if(n()){var t="ko_unique_"+ ++S.c.uniqueName.rd;S.a.Yc(e,t)}}},S.c.uniqueName.rd=0,S.c.using={init:function(e,n,t,r,i){var o;return t.has("as")&&(o={as:t.get("as"),noChildContext:t.get("noChildContext")}),n=i.createChildContext(n,o),S.Oa(n,e),{controlsDescendantBindings:!0}}},S.h.ea.using=!0,S.c.value={init:function(e,n,t){var r=S.a.R(e),i="input"==r;if(!i||"checkbox"!=e.type&&"radio"!=e.type){var o=[],s=t.get("valueUpdate"),u=!1,c=null;s&&(o="string"==typeof s?[s]:S.a.wc(s),S.a.Pa(o,"change"));var l,d,f=function(){c=null,u=!1;var r=n(),i=S.w.M(e);S.m.eb(r,t,"value",i)};!S.a.W||!i||"text"!=e.type||"off"==e.autocomplete||e.form&&"off"==e.form.autocomplete||-1!=S.a.A(o,"propertychange")||(S.a.B(e,"propertychange",(function(){u=!0})),S.a.B(e,"focus",(function(){u=!1})),S.a.B(e,"blur",(function(){u&&f()}))),S.a.D(o,(function(n){var t=f;S.a.Ud(n,"after")&&(t=function(){c=S.w.M(e),S.a.setTimeout(f,0)},n=n.substring(5)),S.a.B(e,n,t)})),l=i&&"file"==e.type?function(){var t=S.a.f(n());null===t||t===a||""===t?e.value="":S.u.G(f)}:function(){var i=S.a.f(n()),o=S.w.M(e);null!==c&&i===c?S.a.setTimeout(l,0):i===o&&o!==a||("select"===r?(o=t.get("valueAllowUnset"),S.w.cb(e,i,o),o||i===S.w.M(e)||S.u.G(f)):S.w.cb(e,i))},"select"===r?S.i.subscribe(e,S.i.H,(function(){d?t.get("valueAllowUnset")?l():f():(S.a.B(e,"change",f),d=S.o(l,null,{l:e}))}),null,{notifyImmediately:!0}):(S.a.B(e,"change",f),S.o(l,null,{l:e}))}else S.ib(e,{checkedValue:n})},update:function(){}},S.m.wa.value=!0,S.c.visible={update:function(e,n){var t=S.a.f(n()),r="none"!=e.style.display;t&&!r?e.style.display="":!t&&r&&(e.style.display="none")}},S.c.hidden={update:function(e,n){S.c.visible.update(e,(function(){return!S.a.f(n())}))}},function(e){S.c[e]={init:function(n,t,r,i,o){return S.c.event.init.call(this,n,(function(){var n={};return n[e]=t(),n}),r,i,o)}}}("click"),S.ca=function(){},S.ca.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},S.ca.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},S.ca.prototype.makeTemplateSource=function(e,n){if("string"==typeof e){var t=(n=n||u).getElementById(e);if(!t)throw Error("Cannot find template with ID "+e);return new S.C.F(t)}if(1==e.nodeType||8==e.nodeType)return new S.C.ia(e);throw Error("Unknown template type: "+e)},S.ca.prototype.renderTemplate=function(e,n,t,r){return e=this.makeTemplateSource(e,r),this.renderTemplateSource(e,n,t,r)},S.ca.prototype.isTemplateRewritten=function(e,n){return!1===this.allowTemplateRewriting||this.makeTemplateSource(e,n).data("isRewritten")},S.ca.prototype.rewriteTemplate=function(e,n,t){n=n((e=this.makeTemplateSource(e,t)).text()),e.text(n),e.data("isRewritten",!0)},S.b("templateEngine",S.ca),S.kc=function(){function e(e,n,t,r){e=S.m.ac(e);for(var i=S.m.Ra,o=0;o]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,t=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{xd:function(e,n,t){n.isTemplateRewritten(e,t)||n.rewriteTemplate(e,(function(e){return S.kc.Ld(e,n)}),t)},Ld:function(r,i){return r.replace(n,(function(n,t,r,o,a){return e(a,t,r,i)})).replace(t,(function(n,t){return e(t,"\x3c!-- ko --\x3e","#comment",i)}))},md:function(e,n){return S.aa.Xb((function(t,r){var i=t.nextSibling;i&&i.nodeName.toLowerCase()===n&&S.ib(i,e,r)}))}}}(),S.b("__tr_ambtns",S.kc.md),function(){S.C={},S.C.F=function(e){if(this.F=e){var n=S.a.R(e);this.ab="script"===n?1:"textarea"===n?2:"template"==n&&e.content&&11===e.content.nodeType?3:4}},S.C.F.prototype.text=function(){var e=1===this.ab?"text":2===this.ab?"value":"innerHTML";if(0==arguments.length)return this.F[e];var n=arguments[0];"innerHTML"===e?S.a.fc(this.F,n):this.F[e]=n};var e=S.a.g.Z()+"_";S.C.F.prototype.data=function(n){if(1===arguments.length)return S.a.g.get(this.F,e+n);S.a.g.set(this.F,e+n,arguments[1])};var n=S.a.g.Z();S.C.F.prototype.nodes=function(){var e=this.F;if(0==arguments.length){var t=S.a.g.get(e,n)||{},r=t.lb||(3===this.ab?e.content:4===this.ab?e:a);if(!r||t.jd){var i=this.text();i&&i!==t.bb&&(r=S.a.Md(i,e.ownerDocument),S.a.g.set(e,n,{lb:r,bb:i,jd:!0}))}return r}t=arguments[0],this.ab!==a&&this.text(""),S.a.g.set(e,n,{lb:t})},S.C.ia=function(e){this.F=e},S.C.ia.prototype=new S.C.F,S.C.ia.prototype.constructor=S.C.ia,S.C.ia.prototype.text=function(){if(0==arguments.length){var e=S.a.g.get(this.F,n)||{};return e.bb===a&&e.lb&&(e.bb=e.lb.innerHTML),e.bb}S.a.g.set(this.F,n,{bb:arguments[0]})},S.b("templateSources",S.C),S.b("templateSources.domElement",S.C.F),S.b("templateSources.anonymousTemplate",S.C.ia)}(),function(){function e(e,n,t){var r;for(n=S.h.nextSibling(n);e&&(r=e)!==n;)t(r,e=S.h.nextSibling(r))}function n(n,t){if(n.length){var r=n[0],i=n[n.length-1],o=r.parentNode,a=S.ga.instance,s=a.preprocessNode;if(s){if(e(r,i,(function(e,n){var t=e.previousSibling,o=s.call(a,e);o&&(e===r&&(r=o[0]||n),e===i&&(i=o[o.length-1]||t))})),n.length=0,!r)return;r===i?n.push(r):(n.push(r,i),S.a.Ua(n,o))}e(r,i,(function(e){1!==e.nodeType&&8!==e.nodeType||S.vc(t,e)})),e(r,i,(function(e){1!==e.nodeType&&8!==e.nodeType||S.aa.cd(e,[t])})),S.a.Ua(n,o)}}function t(e){return e.nodeType?e:0S.a.W||!e.nodes?null:e.nodes())?S.a.la(n.cloneNode(!0).childNodes):(e=e.text(),S.a.ua(e,r))},S.ba.Ma=new S.ba,S.gc(S.ba.Ma),S.b("nativeTemplateEngine",S.ba),function(){S.$a=function(){var e=this.Hd=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(n,t,r,i){if(i=i||u,r=r||{},2>e)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var o=n.data("precompiled");return o||(o=n.text()||"",o=l.template(null,"{{ko_with $item.koBindingContext}}"+o+"{{/ko_with}}"),n.data("precompiled",o)),n=[t.$data],t=l.extend({koBindingContext:t},r.templateOptions),(t=l.tmpl(o,n,t)).appendTo(i.createElement("div")),l.fragments={},t},this.createJavaScriptEvaluatorBlock=function(e){return"{{ko_code ((function() { return "+e+" })()) }}"},this.addTemplate=function(e,n){u.write("